"use strict";this.default_kevlar_base=this.default_kevlar_base||{};(function(_){var window=this;
try{
_._F_toggles_initialize=function(K){(typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:this)._F_toggles=K||[]};
(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
*/
/*


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var XP,K4M,HOw,Py,zn,s3O,o3,Tn,rw,AM,zyl,fl9,ww,uPw,qlP,Ul,Yll,pyO,Bw3,PN,L4y,Twq,AMT,yM4,W4P,QO,pW,rL,At,UqM,jU,hyM,yO,eU,vN,Gnl,$C,VO,vdn,OOO,VPP,IC,EdM,Kt,bO3,PF,gdO,HF,CTl,xqM,XNM,ek,FtP,Pu3,HWO,sCP,zT9,d1,Il9,w1,knw,KtT,YZl,MUq,nCl,lW,cty,pNO,BLy,SZl,Ltl,TLl,jCP,bW,Wtw,eTP,UV3,lQP,vC4,No,k5,aQ4,gCM,PJ,ECT,iW4,Cul,sB,NLO,HJ,oCd,uc,Y8,Qd,zm,nx,kEM,xVM,IQl,Sy,KvT,XFO,FvT,HtP,PWl,jy,ss3,z8d,px,Dod,u8n,R0,Jwq,Mky,m0,SVl,Zty,o5l,Lvy,T1y,Wvw,jsy,a0,$8,e8l,Uoq,h8y,v5q,Vkl,xo4,XJM,zHM,sv,DRy,qBM,qv,ZX,
Yi,Mv,ns,Ao,wF,yz,c0n,mk,BjP,L0M,bi,Cs,r0d,ii,xi,If,ki,j0T,wJT,y0P,W0l,dR9,eHP,RHM,URy,hH4,Gm9,Hk,Pk,lsO,v8y,asy,$RM,tyd,Oxn,Z4,g8P,YE,Qw,Mc,nZ,pZ,bx4,ow,NjO,KkM,Ts,X$d,Fk9,Pil,AT,HsP,sfd,yw,Wk,DvM,eO,Jol,Zsw,Rw,Qfl,YvO,Miq,niO,coy,p$P,mq,BFO,Svy,Gs,oiT,Lk3,lK,vk,aw,tT,TFw,AoO,row,O2,w$n,yoO,WkO,gE,bK,CZ,Nc,iK,xE,Iw,dvq,ed4,Rdn,Uvd,hdl,mv9,Gpn,lXw,viw,aX3,ti4,K8,$vl,OsM,Pf,Vin,sO,z8,giO,Cin,NFP,isy,IXl,kpq,Kqw,HZP,swq,zQ4,f4d,Dcl,ugy,q23,Qwq,uk,MOq,nEl,cTd,pkP,BEn,S2n,Lq3,hQT,mcw,GsP,vEP,a49,cf,tOy,
Bf,EEy,bZl,CKP,NEw,iZT,xcn,I44,ksq,rp,Xf4,VOw,FPy,Pk3,H8w,sRP,z9P,fw9,D4M,us4,qOq,YOT,Z8l,npd,QRy,MAy,BpO,SOd,opP,cEw,Tpn,pf3,AEq,vf,jRy,aR,$p,wfd,WP3,d4P,U4T,VA4,m4y,h9d,lwy,aw4,G8P,CkT,Epy,Np9,i8P,x49,IwT,k8q,X_4,K8l,F8P,PB4,HJy,sz4,fLy,uAO,qwO,JHw,Ywq,ZJq,AH4,N4,jzy,yHw,W8w,dgl,ejl,RjP,hjO,mgP,G33,FA,P_,lLP,OJd,fJ,DL,bJ9,CB4,Hvl,Yg9,YL,R_y,Us4,lKw,msy,GvP,B_,vM4,aKP,$s3,Ov9,VjO,gMT,EMy,bv9,C_l,ivl,xsP,kvy,IKd,Fzw,yY,eM,H93,sU4,zDy,fql,DuP,uoy,JVl,YNy,Z94,VY,Ew,bB,jUP,wdl,iB,Wzn,duT,kL,RD9,eDn,
$uP,O99,V84,EU4,i9T,Iq9,kry,KSl,XmO,PDq,stT,zOl,PM,qUT,YU9,Qtn,Mp3,nSw,cvP,ZGy,u$w,DUM,sg,fr3,pmP,SU3,rvP,LSl,DK,jtq,yv4,WS3,dUw,eOw,ZK,ROl,hOO,UUn,mUl,lrd,nv,ES9,CDw,iG9,Irn,kyP,XEn,oD,Tv,Lv,saM,K3P,zEn,jj,qMy,WM,YMT,ngP,pE3,BGy,SM4,ej,ogd,L3T,TGP,A94,jal,wEy,y9O,diP,Ug,eEq,REM,mh,vM,mil,Goy,lT9,tZ,ttl,$iT,Vtq,Ns,iQd,xiy,ITO,kow,KcP,kM,Xo,Fo,zMd,Pd,fWy,DFT,uYT,qjP,QI4,n3d,c_y,MFT,sN,pu9,LcO,zr,o3n,TcM,Bcl,r_9,Dq,jI9,wuT,y_w,Wcw,eMw,dF9,RMn,mFw,UFP,lWO,VF4,E3O,Cyy,iLT,kTn,IWl,xFT,K7q,F7q,HDP,Pvy,
s2l,zbw,fpM,Dzl,r2,Jgl,qiT,ZDy,Yi9,j8,w2,Q2M,nhP,pby,ohn,TgM,L7M,b9,rgP,cgP,ebw,RbT,UzT,IU,hb9,GBn,apT,ODT,$zd,bD3,CvT,Ngl,iD4,Ip3,PXl,kBP,XgP,FHl,HyP,sJP,fvM,zFM,u1w,D$w,qU,qcP,Zy4,Ycl,cDl,pG,Bm,pg3,B_3,Sp,T_3,Av,jp,wS,wgy,yq,d$4,ep,eFP,RFy,U$P,hF9,hv,m$4,lvl,vr4,t4y,Oyy,ErM,CXP,Vq,N_P,iyq,x$y,IvP,kY9,Kbl,XW9,Fbn,bD,s7w,z3O,fOd,Dm3,u0O,qsP,Jcn,ZlM,Ysy,Q7d,Mv4,nX3,ccy,XC,Wby,dmP,FC,PE,HE,e3w,R3n,UmT,h39,mmP,G6d,lOy,Oly,VvO,gXP,EXP,bly,DT,ZT,Yg,Qc,cE,pQ,BE,Nbn,oa,xmd,LQ,IOl,k6l,To,KXy,Xvy,FXd,J7q,
Yzq,pvq,LXw,oxP,ZIy,TIP,jA4,tJ4,RXw,ExM,hXl,gxO,bIP,WE,NI9,et,xaM,IHM,K5P,XIy,F5M,H$P,h9,zZ9,fmT,DDy,uNn,qm9,J6w,Z$M,sj4,M0l,n1y,c6y,Go,Tqy,r6l,L54,jjT,wIl,W5l,dDn,y6y,lmP,amw,$Dl,V0P,Ni,i$4,Nq3,Xcy,PbP,HaT,sgl,zeT,fAO,DYw,Hu,cAP,Bll,Mu3,Qgq,pcw,qod,ocP,ReP,rAn,AA4,jgP,OaO,gcO,$Y9,xYn,tul,uUq,iaw,TlM,ee3,Vun,So4,Zaw,JAl,Yo3,nc9,aAl,SF,ZB9,QvM,M9n,nOy,cYq,jvy,RcM,U0y,RI,m0y,vOd,OBy,$0n,gO3,EOP,N$l,CHP,iB4,Oj,x03,Iad,KWP,kDq,Vy,zWl,sxw,H4O,qeq,fFq,Jel,uqO,Z4T,by,YeM,cen,Md9,nfT,Bnd,LWd,x3,AeO,Tnq,jx4,
dBP,eWl,hWn,G9l,XS,FS,td9,$BM,Pb,Hb,O43,si,zB,VdO,fD,gfy,Dp,Efl,b4O,qz,CCy,NnM,i4P,xBP,IFl,K_d,k9M,F_P,skl,HS3,z4l,fbl,XpP,Dd4,Jfn,qy9,P64,ZSn,Yyq,Mz,Qkn,cf3,M6P,pp4,BVP,oaO,Syw,L_q,cb,rfT,Af4,TVP,wpl,yfO,W_3,Ud3,GlO,$dd,EaO,pD,NVl,iSM,Bb,xdP,TB,rg,Pfd,o2,wg,HjM,sn3,fVy,DyM,qD4,ZjP,YDy,QnP,MIT,pGl,TM3,oRO,cqT,rqy,Aql,eW,Lmy,jnw,hg,wGl,yql,Wm4,dyq,hIT,eIO,Uyn,vRl,aVy,gRn,VI9,Cfl,KlM,XjT,PrM,siw,zUP,DLn,uJw,q$d,Zkn,Y$3,Qid,c4P,oAO,Lld,pjy,r4d,jiP,A4T,THl,wjy,WlO,dLM,eUP,RUM,ULd,bv,CD,xh,kh,Gtq,lZM,
aZT,OkP,Ky,X1,VNy,F1,bkM,Crn,NH3,Hg,KgT,HMO,ztT,fRd,Den,uXn,qX4,YXy,zY,Qcn,cby,fy,pL9,o_P,Lgl,Td9,SXl,Wgd,RtP,deT,Ue9,GQn,v_l,t33,g_P,V39,Nd4,Zv,iMT,xew,Yr,IRl,Qn,kQl,KDl,XzP,Pt4,FDn,Hb4,sYP,z1O,fn9,QYy,now,pzP,cI9,JIn,u7O,SEl,LDy,wzw,yIw,e13,lnO,anq,Bg,thy,Obl,VhP,Eoq,ibP,In3,K6P,XDq,F6P,PaT,D6T,Hun,ZuO,YQ9,MQl,Ly,crP,pD9,BYq,SQy,ovO,L6y,TYM,Arn,jGy,j4,wDq,yrP,ehq,yn,d6w,U63,lGl,d_,vvM,aGl,tQM,VQy,gvl,$6P,bu9,x6l,IGl,k4d,GY,K9w,H13,s5P,tD,DET,z0q,fBP,qh4,Z19,Yhq,cmn,ShP,BRq,pVy,o0M,TRO,rmy,dEd,AmO,
e03,h0y,R0q,ta3,VaT,E0P,CRM,Pz4,sKM,zLy,qrl,Zwn,Ll,ev,pTP,LN3,osM,rKw,AKw,wTT,jKl,yK3,WNP,R7,BI9,B9n,T9l,Sr4,WW,Os,RLO,UOM,hLy,mOO,Vi,GOn,gb,l1d,vs9,a1P,tqO,Cl,$Oy,gs4,bw3,Czy,X0O,P$3,HYT,srd,foM,DMw,Pv,qKl,JLl,ZY3,YK9,QrP,MTT,cLq,BZP,o44,LyM,yLl,jrd,zrP,uvy,q_d,qa,JPy,ZTP,Y_w,nww,pxq,cPn,S_y,L2y,Q4,rPP,APd,TCw,jyn,wxy,W2l,erl,dfd,RrM,yP9,Ufy,hrd,mf4,Ged,l_y,vwy,a_9,tLT,$fM,gwP,VLy,Ewn,C4l,bTl,Ma,NCO,I_l,POO,iTT,HzM,sZT,znO,f6P,Mgy,cpO,pHw,SHq,o29,wI,Ap9,WQl,enM,y4,m2q,hnP,GI3,eJ,l63,v23,a6l,$2M,
OzM,Vgq,g29,bzO,CO9,HpM,Kfy,Ff3,z6l,sEy,fgy,DAl,qLl,ZpO,QEl,nll,jEO,Wf4,e6q,R6T,UAP,h6T,mA4,lgn,vlw,$AO,Opq,V74,glP,ElM,bpy,Cmq,Nzw,Igl,Fi9,gI,Ez,bj,CI,PZP,xx,su3,Qu9,Sxq,pU9,GPy,l9q,vuy,f9M,Yxw,qxP,tET,$Tn,OEw,nul,gu3,bEl,Nk4,I9d,kPw,uN,Zm,Y1,zlw,s93,qT4,J1y,STw,LdT,r1w,A1l,y1P,dly,WdM,Ul3,mlq,O3y,tYM,lP3,$l9,vqO,VYT,Cs3,yh,Pdy,KEP,sWn,zkP,DhT,uaP,e0,q6T,Y6d,MnP,nWd,pCn,cjT,h6,rj9,t6,jW4,wCM,Om,yj9,WEq,dhy,ekO,Rky,Uh9,hkd,mhl,G_w,lDT,vWl,aDP,tnw,$hP,OA9,Vh,Vnq,gWO,EWy,bA3,Cd9,NKT,iAl,xhn,IDP,k_M,
KYT,XR4,Em,PqP,sXl,fYP,qIl,YIl,QX4,M1n,cl9,BrP,SIy,ozy,FU,jX3,rld,wRy,ylM,WYP,Rvy,USP,hvw,GZT,QQ,vzT,ZA,t1P,$S3,MY,OfO,V1P,gzy,EzM,cc,if3,IYM,PJy,Fry,sBT,zpM,rl,ffP,D1O,qGP,Z53,YGd,MZl,n$y,JNT,cNn,Lrl,jBM,wYy,AA,yNP,WrP,hp4,d1d,RpP,U1q,tZy,G5P,$13,VZM,E$y,b5O,CJM,NJM,i5P,x1P,k5y,Kjq,XAy,Fj9,Pey,sQy,f5T,qaP,QQM,cUn,BQl,LjP,Rg,TQy,rUT,AUd,jQn,wAq,Wjy,dry,em4,Rm9,Url,hm4,mr9,Gkq,l5P,vFy,a5w,$ry,tGO,gFl,bUP,ma,CeP,xrO,iUO,lb,KLy,Xsq,Hil,zwy,sbw,P8l,uBM,Dx4,Qbl,qY4,Oo,ZiT,oQd,cxy,psw,Bu9,SYl,LLd,rxd,Tul,
VQ,gl,ewO,jbd,dxq,WLw,wsM,yxP,hwl,GzP,vQ3,lMP,OiT,$xP,EQy,biP,Nu3,iiT,C8n,xx9,kzM,IMd,X8d,HFy,kc,sdM,zSd,ux3,Qd4,S43,Xl,LTn,jdT,dkO,WTP,w83,ynw,zD,hSl,eS9,RS3,mkP,ljP,Ggy,t5q,$kn,V5P,gJl,EJy,bF9,Chl,iFP,xkO,Bn,kgn,ov,KFw,HCd,sLn,AY,zaM,D9l,chM,d$,ZCl,njl,Y7q,QLM,ojl,LFq,S79,TN3,rhy,yhM,Ah9,WF4,d9O,Rv,Ra4,U94,hal,eaP,G2l,m9T,UP,tSd,C0T,NNl,iCw,x99,Iel,k2l,P1T,XSP,FoT,KoP,sOy,Dny,JuT,ZKy,QOT,cuT,MK9,nY3,pS4,Sty,oYy,Lo4,TTw,ruq,Au4,wSP,OP,yuM,e53,dn4,UnP,R59,h59,mnP,GaP,VB,vY9,iKP,C1y,kaM,KJT,zi3,fE4,
Db9,utd,qWP,JRl,Q8T,MRO,nNd,cRn,SWP,oNq,LJy,TxO,rRM,ARy,j8d,wXy,yRl,WJ4,eiO,RiP,Ub4,GGT,vNO,OXd,$by,tRn,aEl,bXO,gNw,NxT,uC,iX4,xb9,IEy,FOO,kGP,PI3,KOy,H79,Yf,sVy,zfM,fhy,Xa4,D5P,Ypl,QVP,MHy,n4,nbT,csw,pay,BD9,Sp9,obT,TDl,rsl,AsP,jVl,WOy,ysT,hf3,wa4,p4,m59,d5l,U5y,vbM,tHP,Ebd,VHT,gbP,O7l,$5w,Ae,b7q,ND4,i73,x5w,Ih4,kUM,HRw,Xon,Ksn,FsP,M_l,YAl,PLw,ZRT,LsP,TBT,rBw,ABn,jMP,wow,yB9,e2T,UZ3,mZn,lkd,vGP,akw,V_d,ORP,gGw,bRl,Ee,iRy,xZ9,Ikd,k7w,C4,NB,FIl,s1w,JFy,Mm3,n9l,cFy,p5l,BXO,S1y,LI3,rFO,TXy,AFy,w54,yFy,
WIy,dXy,eNO,RNn,KS,UXy,tmy,$Xl,l0P,GxO,a0l,v9d,iNT,bNP,Hp,xX3,I0P,kxP,Kwl,XBl,FwP,P5T,H_P,sel,fNd,uHy,JaM,YfM,MzM,BvO,Sf9,oyP,raP,TvT,Lwy,Aad,jeT,ya9,Wwl,dQy,eGT,qd,UQq,hGl,mQ4,lNT,GLO,vyy,tzO,$QT,O_w,gyl,Eyd,Vz4,IN4,Xqd,FMl,PM9,Hr9,zoP,sqP,fCl,qRw,Jdn,Zr4,YRl,MeP,Qqy,cdT,LMl,oP9,rdw,AdP,jqy,eol,Ro4,Uwn,hon,lCP,vP9,$w9,Vel,OrT,gPT,dV,EP3,bry,CMT,N8y,kAw,ICP,KKO,X6y,Ppl,HHn,fJP,uun,qSl,J5n,ZHn,YSn,QpP,MlP,nnl,c5y,p6y,SSP,BhP,onw,LKP,ThM,r5T,A5T,jpM,w6O,WKl,dJP,y5O,l6,UJq,hB4,mJn,G14,lJd,aJl,$JM,OHl,
VlP,gny,End,bHM,Nhl,iHM,IJP,KBy,FBP,zRd,HPn,PAy,sPd,fcO,q0n,Djd,upd,ZP9,MCn,nkw,c2P,BW9,S0l,okd,TWd,A2w,LBP,jP3,w2d,y2n,WB9,djw,eRy,Ujl,RRw,hR9,mjO,GHO,lcw,vkl,ac3,tCP,$jy,gky,EkO,OPd,VCd,iP4,xj9,xa,FRq,PgT,s_d,D8d,fyP,uVw,qd3,Ik,Kj,Z0l,Ydl,PG,HG,cX3,Q_l,Mx4,Sdw,Tyl,AXT,j_P,wZ3,yXy,WRT,e$T,R$3,U8y,h$4,m8O,GWn,lyd,fj,v64,ayy,uf,tx9,$8T,O0M,Vxn,g6P,E6M,ZV,YR,b0T,CgO,Q$,Nyl,i0n,x89,Iyl,KV9,XwP,PEO,Dpn,fty,zYM,ubM,qkw,nKq,Yk4,Qll,Zel,Mrq,nj,SkO,oKq,LVP,TaT,rJn,jlO,dp9,yJ4,cG,ww4,mp9,ltn,vKn,atO,tr3,$pT,
Vr4,gKO,EK3,bew,Nan,ieq,xpl,kFl,KpM,FpP,PoP,D7q,qCw,uhP,ZoP,c$O,ptd,BOw,SCP,Lp9,Lj,rM,TX,TOl,r$T,A$q,jHM,y$9,WpT,d7T,eJP,U74,m73,Gqy,lx9,Aq,vTy,tfq,$7q,gT3,ET9,jI,wM,NOd,boP,ioy,kqy,x7O,KZl,WG,FZl,P3l,zKn,DCP,dM,qb3,JSw,Zgy,Ybd,Q$d,Ms3,ne4,pP9,LZn,Tf3,j$T,rSP,AST,wPl,eKy,ySP,dC3,RKl,UCO,hKw,l8O,veq,a8d,tsy,$CM,C3w,bgq,KU3,PGT,OD,HdT,w_y,sTn,z7P,DWn,qFq,J3M,peP,Bm9,Cj,SFl,oDn,LUw,r3y,A39,weP,WUy,jT4,y3w,e7n,dWy,mW9,UWP,G09,lzn,vDl,az3,twy,Odl,$Wl,bd9,idO,CGn,xWq,Izn,k09,kR,Ku9,XKd,XJ,Pnl,Fuy,H6O,son,
fUn,DPl,qqy,JOl,Z69,Yq9,Qoy,cOl,Sqy,Tid,Lul,rOP,AOy,yOy,vIn,Rx9,tBw,$Pw,VB9,gId,Ni4,i6P,xPd,IUl,kN9,KCl,X74,P7l,zuT,fSl,DIl,u_O,Zq4,Jz3,nHT,czT,p7d,Be4,S3l,oHy,Ten,cj,Az4,oi,w7w,WCl,dIT,mIn,lSM,$Iy,Vcl,gHO,bqP,C7y,Ned,xIy,kcP,K1P,PPl,sFy,DNl,f3l,zsl,wH,q83,udy,Jyq,ZmP,Y8d,QFl,M$y,ntd,cyy,Btq,S8q,otO,L1n,TtM,ry3,Ayy,jFy,wQw,W1M,dNP,vt3,a3l,t$n,$N9,Omd,Et9,h4,I3w,kR4,KnO,Xr3,Fny,ml,g0,qnM,vj,JCP,cC4,n74,ai,BUw,VyP;
_.KO=function(K,X){if(Error.captureStackTrace)Error.captureStackTrace(this,_.KO);else{var F=Error().stack;F&&(this.stack=F)}K&&(this.message=String(K));X!==void 0&&(this.cause=X)};
XP=function(){throw Error("B");};
K4M=function(K,X){X=String.fromCharCode.apply(null,X);return K==null?X:K+X};
HOw=function(K){var X=!1;X=X===void 0?!1:X;if(XyP){if(X&&(F4n?!K.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(K)))throw Error("C");K=(PTT||(PTT=new TextEncoder)).encode(K)}else{for(var F=0,P=new Uint8Array(3*K.length),H=0;H<K.length;H++){var f=K.charCodeAt(H);if(f<128)P[F++]=f;else{if(f<2048)P[F++]=f>>6|192;else{if(f>=55296&&f<=57343){if(f<=56319&&H<K.length){var u=K.charCodeAt(++H);if(u>=56320&&u<=57343){f=(f-55296)*1024+u-56320+65536;P[F++]=f>>18|
240;P[F++]=f>>12&63|128;P[F++]=f>>6&63|128;P[F++]=f&63|128;continue}else H--}if(X)throw Error("C");f=65533}P[F++]=f>>12|224;P[F++]=f>>6&63|128}P[F++]=f&63|128}}K=F===P.length?P:P.subarray(0,F)}return K};
Py=function(K){_.FP.setTimeout(function(){throw K;},0)};
_.Hy=function(K,X){return K.lastIndexOf(X,0)==0};
zn=function(K,X){var F=K.length-X.length;return F>=0&&K.indexOf(X,F)==F};
_.fO=function(K){return/^[\s\xa0]*$/.test(K)};
_.qq=function(K,X){return K.indexOf(X)!=-1};
_.JM=function(K,X){return _.qq(K.toLowerCase(),X.toLowerCase())};
_.Q9=function(K,X){var F=0;K=Yd(String(K)).split(".");X=Yd(String(X)).split(".");for(var P=Math.max(K.length,X.length),H=0;F==0&&H<P;H++){var f=K[H]||"",u=X[H]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];u=/(\d*)(\D*)(.*)/.exec(u)||["","","",""];if(f[0].length==0&&u[0].length==0)break;F=s3O(f[1].length==0?0:parseInt(f[1],10),u[1].length==0?0:parseInt(u[1],10))||s3O(f[2].length==0,u[2].length==0)||s3O(f[2],u[2]);f=f[3];u=u[3]}while(F==0)}return F};
s3O=function(K,X){return K<X?-1:K>X?1:0};
_.nO=function(){var K=_.FP.navigator;return K&&(K=K.userAgent)?K:""};
o3=function(K){if(!cy||!SP)return!1;for(var X=0;X<SP.brands.length;X++){var F=SP.brands[X].brand;if(F&&_.qq(F,K))return!0}return!1};
Tn=function(K){return _.qq(_.nO(),K)};
rw=function(){return cy?!!SP&&SP.brands.length>0:!1};
AM=function(){return rw()?!1:Tn("Opera")};
zyl=function(){return rw()?!1:Tn("Trident")||Tn("MSIE")};
fl9=function(){return rw()?o3("Microsoft Edge"):Tn("Edg/")};
ww=function(){return Tn("Firefox")||Tn("FxiOS")};
_.R3=function(){return Tn("Safari")&&!(_.dw()||(rw()?0:Tn("Coast"))||AM()||(rw()?0:Tn("Edge"))||fl9()||(rw()?o3("Opera"):Tn("OPR"))||ww()||Tn("Silk")||Tn("Android"))};
_.dw=function(){return rw()?o3("Chromium"):(Tn("Chrome")||Tn("CriOS"))&&!(rw()?0:Tn("Edge"))||Tn("Silk")};
_.Dq3=function(){return Tn("Android")&&!(_.dw()||ww()||AM()||Tn("Silk"))};
uPw=function(K){var X={};K.forEach(function(F){X[F[0]]=F[1]});
return function(F){return X[F.find(function(P){return P in X})]||""}};
qlP=function(K){var X=_.nO();if(K==="Internet Explorer"){if(zyl())if((K=/rv: *([\d\.]*)/.exec(X))&&K[1])X=K[1];else{K="";var F=/MSIE +([\d\.]+)/.exec(X);if(F&&F[1])if(X=/Trident\/(\d.\d)/.exec(X),F[1]=="7.0")if(X&&X[1])switch(X[1]){case "4.0":K="8.0";break;case "5.0":K="9.0";break;case "6.0":K="10.0";break;case "7.0":K="11.0"}else K="7.0";else K=F[1];X=K}else X="";return X}var P=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");F=[];for(var H;H=P.exec(X);)F.push([H[1],H[2],H[3]||void 0]);
X=uPw(F);switch(K){case "Opera":if(AM())return X(["Version","Opera"]);if(rw()?o3("Opera"):Tn("OPR"))return X(["OPR"]);break;case "Microsoft Edge":if(rw()?0:Tn("Edge"))return X(["Edge"]);if(fl9())return X(["Edg"]);break;case "Chromium":if(_.dw())return X(["Chrome","CriOS","HeadlessChrome"])}return K==="Firefox"&&ww()||K==="Safari"&&_.R3()||K==="Android Browser"&&_.Dq3()||K==="Silk"&&Tn("Silk")?(X=F[2])&&X[1]||"":""};
_.JMd=function(K){if(rw()&&K!=="Silk"){var X=SP.brands.find(function(F){return F.brand===K});
if(!X||!X.version)return NaN;X=X.version.split(".")}else{X=qlP(K);if(X==="")return NaN;X=X.split(".")}return X.length===0?NaN:Number(X[0])};
Ul=function(){return cy?!!SP&&!!SP.platform:!1};
_.ZOl=function(){return Ul()?SP.platform==="Android":Tn("Android")};
Yll=function(){return Tn("iPhone")&&!Tn("iPod")&&!Tn("iPad")};
_.hM=function(){return Yll()||Tn("iPad")||Tn("iPod")};
_.Q3l=function(){return Ul()?SP.platform==="macOS":Tn("Macintosh")};
_.MPl=function(){return Ul()?SP.platform==="Windows":Tn("Windows")};
_.ndy=function(){return Ul()?SP.platform==="Chrome OS":Tn("CrOS")};
_.m4=function(K){return K[K.length-1]};
_.lT=function(K,X,F){X=_.cMl(K,X,F);return X<0?null:typeof K==="string"?K.charAt(X):K[X]};
_.cMl=function(K,X,F){for(var P=K.length,H=typeof K==="string"?K.split(""):K,f=0;f<P;f++)if(f in H&&X.call(F,H[f],f,K))return f;return-1};
pyO=function(K){for(var X=_.vy,F=typeof K==="string"?K.split(""):K,P=K.length-1;P>=0;P--)if(P in F&&X.call(void 0,F[P],P,K))return P;return-1};
_.Ol=function(K,X){return _.tM(K,X)>=0};
_.El=function(K,X){_.Ol(K,X)||K.push(X)};
_.CO=function(K,X){X=_.tM(K,X);var F;(F=X>=0)&&_.bT(K,X);return F};
_.bT=function(K,X){Array.prototype.splice.call(K,X,1)};
_.Nq=function(K){var X=K.length;if(X>0){for(var F=Array(X),P=0;P<X;P++)F[P]=K[P];return F}return[]};
_.I3=function(K,X){for(var F=1;F<arguments.length;F++){var P=arguments[F];if(_.xd(P)){var H=K.length||0,f=P.length||0;K.length=H+f;for(var u=0;u<f;u++)K[H+u]=P[u]}else K.push(P)}};
_.Sly=function(K,X,F,P){Array.prototype.splice.apply(K,Bw3(arguments,1))};
Bw3=function(K,X,F){return arguments.length<=2?Array.prototype.slice.call(K,X):Array.prototype.slice.call(K,X,F)};
PN=function(K,X){X=X||K;for(var F=0,P=0,H={};P<K.length;){var f=K[P++],u=_.XL(f)?"o"+_.FL(f):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(H,u)||(H[u]=!0,X[F++]=f)}X.length=F};
_.ody=function(K,X,F){F=F||_.HN;for(var P=0,H=K.length,f;P<H;){var u=P+(H-P>>>1);var J=F(X,K[u]);J>0?P=u+1:(H=u,f=!J)}return f?P:-P-1};
_.fW=function(K,X,F){if(!_.xd(K)||!_.xd(X)||K.length!=X.length)return!1;var P=K.length;F=F||L4y;for(var H=0;H<P;H++)if(!F(K[H],X[H]))return!1;return!0};
_.HN=function(K,X){return K>X?1:K<X?-1:0};
L4y=function(K,X){return K===X};
Twq=function(K,X,F){X=Array.prototype.splice.call(K,X,1);Array.prototype.splice.call(K,F,0,X[0])};
AMT=function(K){return rMl[K]||""};
yM4=function(K){if(!j3w)return _.Jt(K);K=wyP.test(K)?K.replace(wyP,AMT):K;K=atob(K);for(var X=new Uint8Array(K.length),F=0;F<K.length;F++)X[F]=K.charCodeAt(F);return X};
W4P=function(K,X){K.__closure__error__context__984382||(K.__closure__error__context__984382={});K.__closure__error__context__984382.severity=X};
_.ZQ=function(K){K=Error(K);W4P(K,"warning");return K};
QO=function(K,X){if(K!=null){var F;var P=(F=dqO)!=null?F:dqO={};F=P[K]||0;F>=X||(P[K]=F+1,K=Error(),W4P(K,"incident"),Py(K))}};
pW=function(K,X,F){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(F===void 0?0:F)&&Symbol.for&&K?Symbol.for(K):K!=null?Symbol(K):Symbol():X};
rL=function(K,X){oC||_.LW in K||ey9(K,RyM);K[_.LW]|=X};
At=function(K,X){oC||_.LW in K||ey9(K,RyM);K[_.LW]=X};
UqM=function(K){if(4&K)return 512&K?512:1024&K?1024:0};
jU=function(K){rL(K,34);return K};
hyM=function(K){rL(K,32);return K};
yO=function(){return typeof BigInt==="function"};
eU=function(K,X){return X===void 0?K.copyOnWrite!==WN&&!!(2&(K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.LW]|0)):!!(2&X)&&K.copyOnWrite!==WN};
_.lu=function(K,X){if(K!=null)if(typeof K==="string")K=K?new UZ(K,mt):_.GE();else if(K.constructor!==UZ)if(mqd&&K!=null&&K instanceof Uint8Array)K=K.length?new UZ(new Uint8Array(K),mt):_.GE();else{if(!X)throw Error();K=void 0}return K};
vN=function(K,X){if(typeof X!=="number"||X<0||X>=K.length)throw Error();};
Gnl=function(K,X,F){var P=X&128?0:-1,H=K.length,f;if(f=!!H)f=K[H-1],f=f!=null&&typeof f==="object"&&f.constructor===Object;var u=H+(f?-1:0);for(X=X&128?1:0;X<u;X++)F(X-P,K[X]);if(f){K=K[H-1];for(var J in K)!isNaN(J)&&F(+J,K[J])}};
$C=function(K){return K&128?aC:void 0};
VO=function(K){K.isGuard_doNotManuallySetPrettyPlease=!0;return K};
vdn=function(){var K=llw;return VO(function(X){for(var F in K)if(X===K[F]&&!/^[0-9]+$/.test(F))return!0;return!1})};
_.CW=function(K){var X=K;if(alT(X)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(X))throw Error(String(X));}else if(tPP(X)&&!Number.isSafeInteger(X))throw Error(String(X));return EZ?BigInt(K):K=$qP(K)?K?"1":"0":alT(K)?K.trim()||"0":String(K)};
OOO=function(K,X){if(K.length>X.length)return!1;if(K.length<X.length||K===X)return!0;for(var F=0;F<K.length;F++){var P=K[F],H=X[F];if(P>H)return!1;if(P<H)return!0}};
VPP=function(K){var X=K>>>0;iu=X;xC=(K-X)/4294967296>>>0};
IC=function(K){if(K<0){VPP(-K);var X=_.D(gdO(iu,xC));K=X.next().value;X=X.next().value;iu=K>>>0;xC=X>>>0}else VPP(K)};
EdM=function(K,X){var F=X*4294967296+(K>>>0);return Number.isSafeInteger(F)?F:_.kC(K,X)};
Kt=function(K,X){var F=X&2147483648;F&&(K=~K+1>>>0,X=~X>>>0,K==0&&(X=X+1>>>0));K=EdM(K,X);return typeof K==="number"?F?-K:K:F?"-"+K:K};
_.kC=function(K,X){X>>>=0;K>>>=0;if(X<=2097151)var F=""+(4294967296*X+K);else yO()?F=""+(BigInt(X)<<BigInt(32)|BigInt(K)):(F=(K>>>24|X<<8)&16777215,X=X>>16&65535,K=(K&16777215)+F*6777216+X*6710656,F+=X*8147497,X*=2,K>=1E7&&(F+=K/1E7>>>0,K%=1E7),F>=1E7&&(X+=F/1E7>>>0,F%=1E7),F=X+bO3(F)+bO3(K));return F};
bO3=function(K){K=String(K);return"0000000".slice(K.length)+K};
_.F8=function(K,X){X&2147483648?yO()?K=""+(BigInt(X|0)<<BigInt(32)|BigInt(K>>>0)):(X=_.D(gdO(K,X)),K=X.next().value,X=X.next().value,K="-"+_.kC(K,X)):K=_.kC(K,X);return K};
PF=function(K){if(K.length<16)IC(Number(K));else if(yO())K=BigInt(K),iu=Number(K&BigInt(4294967295))>>>0,xC=Number(K>>BigInt(32)&BigInt(4294967295));else{var X=+(K[0]==="-");xC=iu=0;for(var F=K.length,P=X,H=(F-X)%6+X;H<=F;P=H,H+=6)P=Number(K.slice(P,H)),xC*=1E6,iu=iu*1E6+P,iu>=4294967296&&(xC+=Math.trunc(iu/4294967296),xC>>>=0,iu>>>=0);X&&(X=_.D(gdO(iu,xC)),K=X.next().value,X=X.next().value,iu=K,xC=X)}};
gdO=function(K,X){X=~X;K?K=~K+1:X+=1;return[K,X]};
HF=function(K){return Array.prototype.slice.call(K)};
_.zJ=function(K,X){throw Error(X===void 0?"unexpected value "+K+"!":X);};
_.uW=function(K){if(K!=null&&typeof K!=="number")throw Error("I`"+typeof K+"`"+K);return K};
_.qo=function(K){if(K==null||typeof K==="number")return K;if(K==="NaN"||K==="Infinity"||K==="-Infinity")return Number(K)};
CTl=function(K){if(K!=null&&typeof K!=="boolean")throw Error("J`"+_.Jw(K)+"`"+K);return K};
_.Nw9=function(K){if(K==null||typeof K==="boolean")return K;if(typeof K==="number")return!!K};
_.pt=function(K){switch(typeof K){case "bigint":return!0;case "number":return Mo(K);case "string":return iOl.test(K);default:return!1}};
_.os=function(K){if(!Mo(K))throw _.ZQ("enum");return K|0};
_.Lt=function(K){return K==null?K:Mo(K)?K|0:void 0};
xqM=function(K){if(typeof K!=="number")throw _.ZQ("int32");if(!Mo(K))throw _.ZQ("int32");return K|0};
_.r1=function(K){return K==null?K:xqM(K)};
_.Aw=function(K){if(K==null)return K;if(typeof K==="string"&&K)K=+K;else if(typeof K!=="number")return;return Mo(K)?K|0:void 0};
_.jk=function(K){if(K==null)return K;if(typeof K==="string"&&K)K=+K;else if(typeof K!=="number")return;return Mo(K)?K>>>0:void 0};
XNM=function(K){var X=0;X=X===void 0?0:X;if(!_.pt(K))throw _.ZQ("int64");var F=typeof K;switch(X){case 512:switch(F){case "string":return w1(K);case "bigint":return String(yG(64,K));default:return Il9(K)}case 1024:switch(F){case "string":return knw(K);case "bigint":return _.CW(yG(64,K));default:return KtT(K)}case 0:switch(F){case "string":return w1(K);case "bigint":return _.CW(yG(64,K));default:return d1(K)}default:return _.zJ(X,"Unknown format requested type for int64")}};
ek=function(K){return K==null?K:XNM(K)};
FtP=function(K){if(K[0]==="-")return!1;var X=K.length;return X<20?!0:X===20&&Number(K.substring(0,6))<184467};
Pu3=function(K){var X=K.length;return K[0]==="-"?X<20?!0:X===20&&Number(K.substring(0,7))>-922337:X<19?!0:X===19&&Number(K.substring(0,6))<922337};
HWO=function(K){if(K<0){IC(K);var X=_.kC(iu,xC);K=Number(X);return Rs(K)?K:X}X=String(K);if(FtP(X))return X;IC(K);return EdM(iu,xC)};
sCP=function(K){if(Pu3(K))return K;PF(K);return _.F8(iu,xC)};
zT9=function(K){if(FtP(K))return K;PF(K);return _.kC(iu,xC)};
d1=function(K){K=UV(K);Rs(K)||(IC(K),K=Kt(iu,xC));return K};
_.fQP=function(K){K=UV(K);return K>=0&&Rs(K)?K:HWO(K)};
Il9=function(K){K=UV(K);if(Rs(K))K=String(K);else{var X=String(K);Pu3(X)?K=X:(IC(K),K=_.F8(iu,xC))}return K};
_.DVq=function(K){K=UV(K);if(K>=0&&Rs(K))K=String(K);else{var X=String(K);FtP(X)?K=X:(IC(K),K=_.kC(iu,xC))}return K};
w1=function(K){var X=UV(Number(K));if(Rs(X))return String(X);X=K.indexOf(".");X!==-1&&(K=K.substring(0,X));return sCP(K)};
knw=function(K){var X=UV(Number(K));if(Rs(X))return _.CW(X);X=K.indexOf(".");X!==-1&&(K=K.substring(0,X));return yO()?_.CW(yG(64,BigInt(K))):_.CW(sCP(K))};
KtT=function(K){return Rs(K)?_.CW(d1(K)):_.CW(Il9(K))};
_.uLd=function(K){return Rs(K)?_.CW(_.fQP(K)):_.CW(_.DVq(K))};
_.qZO=function(K){var X=UV(Number(K));if(Rs(X)&&X>=0)return String(X);X=K.indexOf(".");X!==-1&&(K=K.substring(0,X));return zT9(K)};
_.Jt9=function(K){var X=UV(Number(K));if(Rs(X)&&X>=0)return _.CW(X);X=K.indexOf(".");X!==-1&&(K=K.substring(0,X));return yO()?_.CW((0,_.hw)(64,BigInt(K))):_.CW(zT9(K))};
_.ZW4=function(K){if(K==null)return K;if(typeof K==="bigint")return mv(K)?K=Number(K):(K=yG(64,K),K=mv(K)?Number(K):String(K)),K;if(_.pt(K))return typeof K==="number"?d1(K):w1(K)};
YZl=function(K,X){X=X===void 0?!1:X;var F=typeof K;if(K==null)return K;if(F==="bigint")return String(yG(64,K));if(_.pt(K))return F==="string"?w1(K):X?Il9(K):d1(K)};
_.QCq=function(K){var X=typeof K;if(K==null)return K;if(X==="bigint")return _.CW(yG(64,K));if(_.pt(K))return X==="string"?knw(K):KtT(K)};
MUq=function(K){if(K==null)return K;var X=typeof K;if(X==="bigint")return String(yG(64,K));if(_.pt(K)){if(X==="string")return w1(K);if(X==="number")return d1(K)}};
nCl=function(K){if(K==null)return K;var X=typeof K;if(X==="bigint")return String((0,_.hw)(64,K));if(_.pt(K)){if(X==="string")return _.qZO(K);if(X==="number")return _.fQP(K)}};
_.GJ=function(K){if(typeof K!=="string")throw Error();return K};
lW=function(K){if(K!=null&&typeof K!=="string")throw Error();return K};
_.vF=function(K){return K==null||typeof K==="string"?K:void 0};
cty=function(K,X,F,P){if(K!=null&&K[as]===$5)return K;if(!Array.isArray(K))return F?P&2?((K=X[OV])||(K=new X,jU(K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),K=X[OV]=K),X=K):X=new X:X=void 0,X;F=K[_.LW]|0;P=F|P&32|P&2;P!==F&&At(K,P);return new X(K)};
pNO=function(K,X,F){K=X?xqM(K):_.Aw(K);return K==null?F?0:void 0:K|0};
BLy=function(K){return K};
SZl=function(K){return K};
Ltl=function(K,X,F,P,H,f){K=cty(K,P,F,f);H&&(K=oCd(K));return K};
TLl=function(K){return[K,this.get(K)]};
jCP=function(){return rtP||(rtP=new VG(jU([]),void 0,void 0,void 0,Aty))};
bW=function(K){var X=g1(EV);return X?K[X]:void 0};
Wtw=function(K,X){var F=F===void 0?!1:F;if(g1(wNd)&&g1(EV)&&void 0===wNd){var P=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H=P[EV];if(!H)return;if(H=H.reviveUnknownFields)try{H(P,X,ytP);return}catch(f){Py(f)}}F&&(K=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(F=g1(EV))&&F in K&&(K=K[F])&&delete K[X])};
eTP=function(K,X){var F=g1(EV),P;oC&&F&&((P=K[F])==null?void 0:P[X])!=null&&QO(dV4,3)};
UV3=function(K,X){X<100||QO(RTP,1)};
lQP=function(K,X,F,P){var H=P!==void 0;P=!!P;var f=g1(EV),u;!H&&oC&&f&&(u=K[f])&&Ct(u,UV3);f=[];var J=K.length;u=4294967295;var Z=!1,M=!!(X&64),n=M?X&128?0:-1:void 0;if(!(X&1)){var c=J&&K[J-1];c!=null&&typeof c==="object"&&c.constructor===Object?(J--,u=J):c=void 0;if(M&&!(X&128)&&!H){Z=!0;var B;u=((B=hT4)!=null?B:BLy)(u-n,n,K,c)+n}}X=void 0;for(B=0;B<J;B++){var L=K[B];if(L!=null&&(L=F(L,P))!=null)if(M&&B>=u){var A=B-n,d=void 0;((d=X)!=null?d:X={})[A]=L}else f[B]=L}if(c)for(var R in c)J=c[R],J!=null&&
(J=F(J,P))!=null&&(B=+R,L=void 0,M&&!Number.isNaN(B)&&(L=B+n)<u?f[L]=J:(B=void 0,((B=X)!=null?B:X={})[R]=J));X&&(Z?f.push(X):f[u]=X);H&&g1(EV)&&(K=bW(K))&&K instanceof mV4&&(f[EV]=GEd(K));return f};
vC4=function(K){K[0]=No(K[0]);K[1]=No(K[1]);return K};
No=function(K){switch(typeof K){case "number":return Number.isFinite(K)?K:""+K;case "bigint":return mv(K)?Number(K):""+K;case "boolean":return K?1:0;case "object":if(Array.isArray(K)){var X=K[_.LW]|0;return K.length===0&&X&1?void 0:lQP(K,X,No)}if(K!=null&&K[as]===$5)return aQ4(K);if(K instanceof UZ){X=K.JSC$6830_value_;if(X==null)K="";else if(typeof X==="string")K=X;else{if(j3w){for(var F="",P=0,H=X.length-10240;P<H;)F+=String.fromCharCode.apply(null,X.subarray(P,P+=10240));F+=String.fromCharCode.apply(null,
P?X.subarray(P):X);X=btoa(F)}else X=_.iW(X);K=K.JSC$6830_value_=X}return K}if(K instanceof VG)return K=K.size!==0?Array.from(Is.prototype.entries.call(K),vC4):void 0,K;return}return K};
k5=function(K,X){if(X){hT4=X==null||X===BLy||X[tUP]!==$Vy?BLy:X;try{return aQ4(K)}finally{hT4=void 0}}return aQ4(K)};
aQ4=function(K){K=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return lQP(K,K[_.LW]|0,No)};
gCM=function(K){switch(typeof K){case "boolean":return OWO||(OWO=[0,void 0,!0]);case "number":return K>0?void 0:K===0?VU4||(VU4=[0,void 0]):[-K,void 0];case "string":return[0,K];case "object":return K}};
PJ=function(K,X,F){return K=_.Fm(K,X[0],X[1],F?1:2)};
_.Fm=function(K,X,F,P){P=P===void 0?0:P;if(K==null){var H=32;F?(K=[F],H|=128):K=[];X&&(H=H&-8380417|(X&1023)<<13)}else{if(!Array.isArray(K))throw Error("L");H=K[_.LW]|0;2048&H&&!(2&H)&&ECT();if(H&256)throw Error("N");if(H&64)return P!==0||H&2048||At(K,H|2048),K;if(F&&(H|=128,F!==K[0]))throw Error("O");a:{F=K;H|=64;var f=F.length;if(f){var u=f-1,J=F[u];if(J!=null&&typeof J==="object"&&J.constructor===Object){X=H&128?0:-1;u-=X;if(u>=1024)throw Error("Q");for(var Z in J)f=+Z,f<u&&(F[f+X]=J[Z],delete J[Z]);
H=H&-8380417|(u&1023)<<13;break a}}if(X){Z=Math.max(X,f-(H&128?0:-1));if(Z>1024)throw Error("R");H=H&-8380417|(Z&1023)<<13}}}H|=64;P===0&&(H|=2048);At(K,H);return K};
ECT=function(){QO(bWy,5)};
iW4=function(K,X){if(typeof K!=="object")return K;if(Array.isArray(K)){var F=K[_.LW]|0;return K.length===0&&F&1?void 0:Cul(K,F,X)}if(K!=null&&K[as]===$5)return NLO(K);if(K instanceof VG){X=K.arrayState;if(X&2)return K;if(!K.size)return;F=jU(Array.from(Is.prototype.entries.call(K)));if(K.valueCtor)for(K=0;K<F.length;K++){var P=F[K],H=P[1];H==null||typeof H!=="object"?H=void 0:H!=null&&H[as]===$5?H=NLO(H):Array.isArray(H)?H=Cul(H,H[_.LW]|0,!!(X&32)):H=void 0;P[1]=H}return F}if(K instanceof UZ)return K};
Cul=function(K,X,F){if(X&2)return K;!F||4096&X||16&X?K=HJ(K,X,!1,F&&!(X&16)):(rL(K,34),X&4&&Object.freeze(K));return K};
sB=function(K,X,F){K=new K.constructor(X);F&&(K.copyOnWrite=WN);K.noLegacyNull=WN;return K};
NLO=function(K){var X=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=X[_.LW]|0;return eU(K,F)?K:zm(K,X,F)?sB(K,X):HJ(X,F)};
HJ=function(K,X,F,P){P!=null||(P=!!(34&X));K=lQP(K,X,iW4,P);P=32;F&&(P|=2);X=X&8380609|P;At(K,X);return K};
oCd=function(K){var X=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=X[_.LW]|0;return eU(K,F)?zm(K,X,F)?sB(K,X,!0):new K.constructor(HJ(X,F,!1)):K};
uc=function(K){if(K.copyOnWrite!==WN)return!1;var X=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;X=HJ(X,X[_.LW]|0);rL(X,2048);K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=X;K.copyOnWrite=void 0;K.noLegacyNull=void 0;return!0};
Y8=function(K){if(!uc(K)&&eU(K,K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.LW]|0))throw Error();};
Qd=function(K,X){X===void 0&&(X=K[_.LW]|0);X&32&&!(X&4096)&&At(K,X|4096)};
zm=function(K,X,F){return F&2?!0:F&32&&!(F&4096)?(At(X,F|2),K.copyOnWrite=WN,!0):!1};
nx=function(K,X,F,P,H){var f=F+(H?0:-1),u=K.length-1;if(u>=1+(H?0:-1)&&f>=u){var J=K[u];if(J!=null&&typeof J==="object"&&J.constructor===Object)return J[F]=P,X}if(f<=u)return K[f]=P,X;if(P!==void 0){var Z;u=((Z=X)!=null?Z:X=K[_.LW]|0)>>13&1023||536870912;F>=u?P!=null&&(f={},K[u+(H?0:-1)]=(f[F]=P,f)):K[f]=P}return X};
_.BJ=function(K,X,F,P,H){var f=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=f[_.LW]|0;P=eU(K,u)?1:P;H=!!H||P===3;P===2&&uc(K)&&(f=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=f[_.LW]|0);K=xVM(f,X);var J=K===cJ?7:K[_.LW]|0,Z=IQl(J,u);var M=4&Z?!1:!0;if(M){4&Z&&(K=HF(K),J=0,Z=px(Z,u),u=nx(f,u,X,K));for(var n=0,c=0;n<K.length;n++){var B=F(K[n]);B!=null&&(K[c++]=B)}c<n&&(K.length=c);F=(Z|4)&-513;Z=F&=-1025;Z&=-4097}Z!==J&&(At(K,Z),2&Z&&Object.freeze(K));return K=kEM(K,Z,f,
u,X,P,M,H)};
kEM=function(K,X,F,P,H,f,u,J){var Z=X;f===1||(f!==4?0:2&X||!(16&X)&&32&P)?Sy(X)||(X|=!K.length||u&&!(4096&X)||32&P&&!(4096&X||16&X)?2:256,X!==Z&&At(K,X),Object.freeze(K)):(f===2&&Sy(X)&&(K=HF(K),Z=0,X=px(X,P),P=nx(F,P,H,K)),Sy(X)||(J||(X|=16),X!==Z&&At(K,X)));2&X||!(4096&X||16&X)||Qd(F,P);return K};
xVM=function(K,X,F){K=o0(K,X,F);return Array.isArray(K)?K:cJ};
IQl=function(K,X){2&X&&(K|=2);return K|1};
Sy=function(K){return!!(2&K)&&!!(4&K)||!!(256&K)};
KvT=function(K){return _.lu(K,!0)};
XFO=function(K,X){var F=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P=F[_.LW]|0;a:{var H=P;P=eU(K,P);!P&&uc(K)&&(F=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H=F[_.LW]|0);var f=o0(F,X);K=!1;if(f==null){if(P){X=jCP();break a}f=[]}else if(f.constructor===VG)if(f.arrayState&2&&!P)f=Array.from(Is.prototype.entries.call(f));else{X=f;break a}else Array.isArray(f)?K=!!((f[_.LW]|0)&2):f=[];if(P){if(!f.length){X=jCP();break a}K||(K=!0,jU(f))}else if(K){K=!1;P=f;P=HF(P);for(f=0;f<
P.length;f++){var u=P[f]=HF(P[f]);Array.isArray(u[1])&&(u[1]=jU(u[1]))}f=P}!K&&H&32&&hyM(f);P=new VG(f,void 0,pNO,pNO);H=nx(F,H,X,P);K||Qd(F,H);X=P}return X};
_.Lx=function(K,X,F,P){Y8(K);var H=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=H[_.LW]|0;if(F==null)return nx(H,f,X),K;var u=F===cJ?7:F[_.LW]|0,J=u,Z=Sy(u),M=Z||Object.isFrozen(F);Z||(u=0);M||(F=HF(F),J=0,u=px(u,f),M=!1);u|=5;var n;Z=(n=UqM(u))!=null?n:0;for(n=0;n<F.length;n++){var c=F[n],B=P(c,Z);Object.is(c,B)||(M&&(F=HF(F),J=0,u=px(u,f),M=!1),F[n]=B)}u!==J&&(M&&(F=HF(F),u=px(u,f)),At(F,u));nx(H,f,X,F);return K};
_.Tm=function(K,X,F,P,H){Y8(K);var f=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;nx(f,f[_.LW]|0,X,(P==="0"?Number(F)===0:F===P)?void 0:F,H);return K};
_.rj=function(K,X,F){if(X&2)throw Error();var P=$C(X),H=xVM(K,F,P),f=H===cJ?7:H[_.LW]|0,u=IQl(f,X);if(2&u||Sy(u)||16&u)H=HF(H),f=0,u=px(u,X),nx(K,X,F,H,P);u&=-13;u!==f&&At(H,u);return H};
FvT=function(K){if(oC){var X;return(X=K[A0])!=null?X:K[A0]=new Map}if(A0 in K)return K[A0];X=new Map;Object.defineProperty(K,A0,{value:X});return X};
HtP=function(K,X,F,P,H){var f=FvT(K),u=PWl(f,K,X,F,H);u!==P&&(u&&(X=nx(K,X,u,void 0,H)),f.set(F,P));return X};
PWl=function(K,X,F,P,H){var f=K.get(P);if(f!=null)return f;for(var u=f=0;u<P.length;u++){var J=P[u];o0(X,J,H)!=null&&(f!==0&&(F=nx(X,F,f,void 0,H)),f=J)}K.set(P,f);return f};
jy=function(K,X,F,P,H){var f=!1;P=o0(K,P,H,function(u){var J=cty(u,F,!1,X);f=J!==u&&J!=null;return J});
if(P!=null)return f&&!eU(P)&&Qd(K,X),P};
ss3=function(K,X,F,P,H,f,u,J){var Z=eU(K,F);f=Z?1:f;u=!!u||f===3;Z=J&&!Z;(f===2||Z)&&uc(K)&&(X=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=X[_.LW]|0);K=xVM(X,H);var M=K===cJ?7:K[_.LW]|0,n=IQl(M,F);if(J=!(4&n)){var c=K,B=F,L=!!(2&n);L&&(B|=2);for(var A=!L,d=!0,R=0,l=0;R<c.length;R++){var a=cty(c[R],P,!1,B);if(a instanceof P){if(!L){var E=eU(a);A&&(A=!E);d&&(d=E)}c[l++]=a}}l<R&&(c.length=l);n|=4;n=d?n&-4097:n|4096;n=A?n|8:n&-9}n!==M&&(At(K,n),2&n&&Object.freeze(K));if(Z&&!(8&n||!K.length&&
(f===1||(f!==4?0:2&n||!(16&n)&&32&F)))){Sy(n)&&(K=HF(K),n=px(n,F),F=nx(X,F,H,K));P=K;Z=n;for(M=0;M<P.length;M++)c=P[M],n=oCd(c),c!==n&&(P[M]=n);Z|=8;n=Z=P.length?Z|4096:Z&-4097;At(K,n)}return K=kEM(K,n,X,F,H,f,J,u)};
z8d=function(K){K==null&&(K=void 0);return K};
px=function(K,X){return K=(2&X?K|2:K&-3)&-273};
_.fdn=function(K,X,F,P,H){Y8(K);X=_.BJ(K,X,H,2,!0);var f;H=(f=UqM(X===cJ?7:X[_.LW]|0))!=null?f:0;X.push(F(P,H));return K};
Dod=function(K,X,F,P,H,f,u){Y8(K);var J=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;K=ss3(K,J,J[_.LW]|0,F,X,2,!0);if(f&&u)H!=null||(H=K.length-1),vN(K,H),K.splice(H,f),K.length||(K[_.LW]&=-4097);else{if(f){if(typeof H!=="number"||H<0||H>K.length)throw Error();}else P=P!=null?P:new F;H!=void 0?K.splice(H,f,P):K.push(P);H=F=K===cJ?7:K[_.LW]|0;(P=eU(P))?(F&=-9,K.length===1&&(F&=-4097)):F|=4096;F!==H&&At(K,F);P||Qd(J)}};
u8n=function(K,X){if(typeof K==="string")return new wj(yM4(K),X);if(Array.isArray(K))return new wj(new Uint8Array(K),X);if(K.constructor===Uint8Array)return new wj(K,!1);if(K.constructor===ArrayBuffer)return K=new Uint8Array(K),new wj(K,!1);if(K.constructor===UZ)return X=ey(K)||new Uint8Array(0),new wj(X,!0,K);if(K instanceof Uint8Array)return K=K.constructor===Uint8Array?K:new Uint8Array(K.buffer,K.byteOffset,K.byteLength),new wj(K,!1);throw Error();};
R0=function(){var K=function(){throw Error();};
Object.setPrototypeOf(K,K.prototype);return K};
Jwq=function(K,X){var F=F===void 0?qVy:F;return new UB(K,X,F)};
Mky=function(K,X,F,P,H){X=Zty(X,P);X!=null&&(F=_.YV4(K,F),H(X,K),_.Qs4(K,F))};
m0=function(K,X,F,P){var H=P[K];if(H)return H;H={};H.binaryFields=P;H.messageMetadata=gCM(P[0]);var f=P[1],u=1;f&&f.constructor===Object&&(H.extensions=f,f=P[++u],typeof f==="function"&&(H.isMessageSet=!0,n59!=null||(n59=f),cwy!=null||(cwy=P[u+1]),f=P[u+=2]));for(var J={};f&&Array.isArray(f)&&f.length&&typeof f[0]==="number"&&f[0]>0;){for(var Z=0;Z<f.length;Z++)J[f[Z]]=f;f=P[++u]}for(Z=1;f!==void 0;){typeof f==="number"&&(Z+=f,f=P[++u]);var M=void 0;if(f instanceof UB)var n=f;else n=pFM,u--;f=void 0;
if((f=n)==null?0:f.$$isMsg){f=P[++u];M=P;var c=u;typeof f==="function"&&(f=f(),M[c]=f);M=f}f=P[++u];c=Z+1;typeof f==="number"&&f<0&&(c-=f,f=P[++u]);for(;Z<c;Z++){var B=J[Z];M?F(H,Z,n,M,B):X(H,Z,n,B)}}return P[K]=H};
SVl=function(K){return Array.isArray(K)?K[0]instanceof UB?K:[B1d,K]:[K,void 0]};
Zty=function(K,X){if(K instanceof _.Gm)return K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(K))return PJ(K,X,!1)};
o5l=function(K,X,F,P){var H=F.$$binaryReaderFn;K[X]=P?function(f,u,J){return H(f,u,J,P)}:H};
Lvy=function(K,X,F,P,H){var f=F.$$binaryReaderFn,u,J;K[X]=function(Z,M,n){return f(Z,M,n,J||(J=m0(lc,o5l,Lvy,P).messageMetadata),u||(u=T1y(P)),H)}};
T1y=function(K){var X=K[rw3];if(X!=null)return X;var F=m0(lc,o5l,Lvy,K);X=F.isMessageSet?function(P,H){return n59(P,H,F)}:function(P,H){for(;AwP(H)&&H.nextWireType_!=4;){var f=H.nextField_,u=F[f];
if(u==null){var J=F.extensions;J&&(J=J[f])&&(J=jsy(J),J!=null&&(u=F[f]=J))}if(u==null||!u(H,P,f)){J=H;u=J.fieldCursor_;vJ(J);if(J.discardUnknownFields)var Z=void 0;else{var M=J.decoder_.cursor_-u;J.decoder_.cursor_=u;Z=wFy(J.decoder_,M)}M=J=u=void 0;var n=P;Z&&((u=(J=(M=n[EV])!=null?M:n[EV]=new mV4)[f])!=null?u:J[f]=[]).push(Z)}}if(P=bW(P))P.reviveUnknownFields=F.binaryFields[yw4];return!0};
K[rw3]=X;K[yw4]=Wvw.bind(K);return X};
Wvw=function(K,X,F,P){var H=this[lc],f=this[rw3],u=PJ(void 0,H.messageMetadata,!1),J=bW(K);if(J){var Z=!1,M=H.extensions;if(M){H=function(A,d,R){if(R.length!==0)if(M[d])for(A=_.D(R),d=A.next();!d.done;d=A.next()){d=don(d.value);try{Z=!0,f(u,d)}finally{d.free()}}else P==null||P(K,d,R)};
if(X==null)Ct(J,H);else if(J!=null){var n=J[X];n&&H(J,X,n)}if(Z){var c=K[_.LW]|0;if(c&2&&c&2048&&(F==null||!F.reviveIntoImmutable))throw Error();var B=$C(c),L=function(A,d){if(o0(K,A,B)!=null)switch(F==null?void 0:F.resolutionBehavior){case 1:return;default:throw Error();}d!=null&&(c=nx(K,c,A,d,B));delete J[A]};
X==null?Gnl(u,u[_.LW]|0,function(A,d){L(A,d)}):L(X,o0(u,X,B))}}}};
jsy=function(K){K=SVl(K);var X=K[0].$$binaryReaderFn;if(K=K[1]){var F=T1y(K),P=m0(lc,o5l,Lvy,K).messageMetadata;return function(H,f,u){return X(H,f,u,P,F)}}return X};
a0=function(K,X,F){K[X]=F.$$binaryWriterFn};
$8=function(K,X,F,P){var H,f,u=F.$$binaryWriterFn;K[X]=function(J,Z,M){return u(J,Z,M,f||(f=m0(t0,a0,$8,P).messageMetadata),H||(H=e8l(P)))}};
e8l=function(K){var X=K[R83];if(!X){var F=m0(t0,a0,$8,K);X=function(P,H){return Uoq(P,H,F)};
K[R83]=X}return X};
Uoq=function(K,X,F){Gnl(K,K[_.LW]|0,function(P,H){if(H!=null){var f=h8y(F,P);f?f(X,H,P):P<500||QO(mo3,3)}});
(K=bW(K))&&Ct(K,function(P,H,f){OB(X,X.encoder_.end());for(P=0;P<f.length;P++)OB(X,ey(f[P])||new Uint8Array(0))})};
h8y=function(K,X){var F=K[X];if(F)return F;if(F=K.extensions)if(F=F[X]){F=SVl(F);var P=F[0].$$binaryWriterFn;if(F=F[1]){var H=e8l(F),f=m0(t0,a0,$8,F).messageMetadata;F=K.isMessageSet?cwy(f,H):function(u,J,Z){return P(u,J,Z,f,H)}}else F=P;
return K[X]=F}};
_.GJq=function(K,X,F){if(Array.isArray(X)){var P=X[_.LW]|0;if(P&4)return X;for(var H=0,f=0;H<X.length;H++){var u=K(X[H]);u!=null&&(X[f++]=u)}f<H&&(X.length=f);F&&(At(X,(P|5)&-1537),P&2&&Object.freeze(X));return X}};
_.Vd=function(K,X,F){return new UB(K,X,F)};
_.ldn=function(K,X,F){return new UB(K,X,F)};
_.gj=function(K,X,F){nx(K,K[_.LW]|0,X,F,$C(K[_.LW]|0))};
v5q=function(K,X,F){X=_.qo(X);X!=null&&(_.bc(K,F,1),K=K.encoder_,F=Cx||(Cx=new DataView(new ArrayBuffer(8))),F.setFloat64(0,+X,!0),iu=F.getUint32(0,!0),xC=F.getUint32(4,!0),_.NR(K,iu),_.NR(K,xC))};
_.ic=function(K,X,F){X=MUq(X);if(X!=null){switch(typeof X){case "string":adl(X)}if(X!=null)switch(_.bc(K,F,0),typeof X){case "number":K=K.encoder_;IC(X);tkl(K,iu,xC);break;case "bigint":F=BigInt.asUintN(64,X);F=new $oO(Number(F&BigInt(4294967295)),Number(F>>BigInt(32)));tkl(K.encoder_,F.JSC$6874_lo,F.JSC$6874_hi);break;default:F=adl(X),tkl(K.encoder_,F.JSC$6874_lo,F.JSC$6874_hi)}}};
Vkl=function(K,X,F){X=_.Aw(X);X!=null&&X!=null&&(_.bc(K,F,0),_.Otq(K.encoder_,X))};
_.E5P=function(K,X,F){g5P(K,F,nCl(X))};
_.CWM=function(K,X,F){X=_.Nw9(X);X!=null&&(_.bc(K,F,0),K.encoder_.JSC$6876_buffer_.push(X?1:0))};
_.itT=function(K,X,F){X=_.vF(X);X!=null&&N1n(K,F,HOw(X))};
xo4=function(K,X,F,P,H){X=Zty(X,P);X!=null&&(F=_.YV4(K,F),H(X,K),_.Qs4(K,F))};
_.Idd=function(K,X,F){X=X==null||typeof X=="string"||X instanceof UZ?X:void 0;X!=null&&N1n(K,F,u8n(X,!0).buffer)};
_.kJq=function(K,X,F){X=_.Aw(X);X!=null&&(X=parseInt(X,10),_.bc(K,F,0),_.Otq(K.encoder_,X))};
_.x8=function(K,X){return function(F,P){var H={treatNewDataAsImmutable:!0};P&&Object.assign(H,P);F=don(F,void 0,void 0,H);try{var f=new K,u=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;T1y(X)(u,F);var J=f}finally{F.free()}return J}};
_.I0=function(K){return function(X){return K0w(X,K)}};
XJM=function(K){return function(){return K0w(this,K)}};
_.k8=function(K){return VO(function(X){return X instanceof K&&!eU(X)})};
_.Ks=function(K){return function(X){return F0y(K,X)}};
zHM=function(K,X){return Pcw({child:K,origin:X||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:Hxw,getPayloadCase:function(F){return F.getPayloadCase()},
createInitMessage:function(F){var P=new Xw,H=new s0w;F=_.Fw(H,1,F);return _.P$(P,5,H$,F)}})};
sv=function(K){return{valueOf:K}.valueOf()};
DRy=function(){var K=null;if(!fsl)return K;try{var X=function(F){return F};
K=fsl.createPolicy("goog#html",{createHTML:X,createScript:X,createScriptURL:X})}catch(F){}return K};
qBM=function(){umO===void 0&&(umO=DRy());return umO};
_.DX=function(K){var X=qBM();K=X?X.createScriptURL(K):K;return new zp(K)};
_.ui=function(K){if(K instanceof zp)return K.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
qv=function(K){return K.toString().indexOf("`")===-1};
ZX=function(K){return new _.Jo(J03,K)};
Yi=function(K){return K instanceof _.Jo};
_.Qz=function(K){if(Yi(K))return K.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
Mv=function(K){return new Zx9(function(X){return X.substr(0,K.length+1).toLowerCase()===K+":"})};
ns=function(K,X){X=X===void 0?YBq:X;if(Yi(K))return K;for(var F=0;F<X.length;++F){var P=X[F];if(P instanceof Zx9&&P.isValid(K))return ZX(K)}};
_.ps=function(K,X){X=X===void 0?YBq:X;return ns(K,X)||c$};
_.Si=function(K){var X=window;if(typeof MediaSource!=="undefined"&&K instanceof MediaSource||typeof X.ManagedMediaSource!=="undefined"&&K instanceof X.ManagedMediaSource)return ZX(URL.createObjectURL(K));X=K.type;X.toLowerCase()==="application/octet-stream"?X=!0:(X=X.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),X=(X==null?void 0:X.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(X[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(X[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(X[1])||/^font\/[\w-]+$/i.test(X[1])));if(!X)throw Error("da");return ZX(URL.createObjectURL(K))};
_.Tp=function(K){for(var X=_.Ls.apply(1,arguments),F=[K[0]],P=0;P<X.length;P++)F.push(String(X[P])),F.push(K[P+1]);return ZX(F.join(""))};
_.MyT=function(K){if(!Q04){a:{var X=document.createElement("a");try{X.href=K}catch(F){K=void 0;break a}K=X.protocol;K=K===":"||K===""?"https:":K}return K}try{X=new URL(K)}catch(F){return"https:"}return X.protocol};
_.rF=function(K){K instanceof _.Jo?K=_.Qz(K):K=n8d.test(K)?K:void 0;return K};
Ao=function(K,X){X=_.rF(X);X!==void 0&&(K.href=X)};
wF=function(K){var X=qBM();K=X?X.createHTML(K):K;return new ji(K)};
yz=function(K){if(K instanceof ji)return K.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.W$=function(K,X){K.src=_.ui(X).toString()};
c0n=function(K,X){K.setAttribute("sandbox","");for(var F=0;F<X.length;F++)K.sandbox.supports&&!K.sandbox.supports(X[F])||K.sandbox.add(X[F])};
_.pJn=function(K,X,F){K.removeAttribute("srcdoc");switch(X){case 0:if(F instanceof zp)throw new dF("TrustedResourceUrl",0);c0n(K,[]);X=_.rF(F);X!==void 0&&(K.src=X);break;case 1:if(!(F instanceof zp))throw new dF(typeof F,1);c0n(K,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.W$(K,F);break;case 2:if(F instanceof zp)throw new dF("TrustedResourceUrl",2);c0n(K,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
X=_.rF(F);X!==void 0&&(K.src=X);break;default:_.zJ(X)}};
_.ei=function(K,X,F,P){X=_.rF(X);return X!==void 0?K.open(X,F,P):null};
_.Rf=function(K){K=K===void 0?document:K;var X,F;K=(F=(X=K).querySelector)==null?void 0:F.call(X,"script[nonce]");return K==null?"":K.nonce||K.getAttribute("nonce")||""};
_.ho=function(K){var X=qBM();K=X?X.createScript(K):K;return new _.Uv(K)};
mk=function(K){if(K instanceof _.Uv)return K.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
BjP=function(K){var X=_.Rf(K.ownerDocument);X&&K.setAttribute("nonce",X)};
_.Gp=function(K,X){K.textContent=mk(X);BjP(K)};
_.li=function(K,X){K.src=_.ui(X);BjP(K)};
_.v$=function(K,X){if(K.nodeType===1&&/^(script|style)$/i.test(K.tagName))throw Error("da");K.innerHTML=yz(X)};
_.af=function(K,X,F,P){if(K.length===0)throw Error("da");K=K.map(function(f){if(f instanceof SBd)f=f.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return f});
var H=F.toLowerCase();if(K.every(function(f){return H.indexOf(f)!==0}))throw Error("ea`"+F);
X.setAttribute(F,P)};
_.Vz=function(K,X,F){if(X instanceof zp)K.href=_.ui(X).toString(),K.rel=F;else{if(o8T.indexOf(F)===-1)throw Error("fa`"+F);X=_.rF(X);X!==void 0&&(K.href=X,K.rel=F)}};
L0M=function(K){return"function"==typeof _.gF&&K instanceof _.gF};
_.Tj3=function(K){if(L0M(K))return K.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.Ev=function(K,X){X=_.rF(X);X!==void 0&&(K.href=X)};
bi=function(K,X){K&&(X=K.indexOf(X),0<=X&&K.splice(X,1))};
Cs=function(K){return typeof K==="function"};
r0d=function(K){return K instanceof Nv||K&&"closed"in K&&Cs(K.remove)&&Cs(K.add)&&Cs(K.unsubscribe)};
ii=function(){};
xi=function(K){A09(function(){throw K;})};
If=function(K){return K};
ki=function(){return j0T(_.Ls.apply(0,arguments))};
j0T=function(K){return K.length===0?If:K.length===1?K[0]:function(X){return K.reduce(function(F,P){return P(F)},X)}};
wJT=function(K){var X;return(X=K!=null?K:void 0)!=null?X:Promise};
y0P=function(K,X){return new KZ(function(F){var P=0;return X.schedule(function(){P===K.length?F.complete():(F.next(K[P++]),F.closed||this.schedule())})})};
W0l=function(K,X){if(!K)throw Error("ga");return new KZ(function(F){var P=new Nv;P.add(X.schedule(function(){var H=K[Symbol.asyncIterator]();P.add(X.schedule(function(){var f=this;H.next().then(function(u){u.done?F.complete():(F.next(u.value),f.schedule())})}))}));
return P})};
dR9=function(K,X,F){X=X.schedule(function(){try{F.call(this)}catch(P){K.error(P)}},0);
K.add(X)};
eHP=function(K,X){return new KZ(function(F){var P;F.add(X.schedule(function(){P=K[Xg]();dR9(F,X,function(){var H=P.next(),f=H.value;H.done?F.complete():(F.next(f),this.schedule())})}));
return function(){var H;return Cs((H=P)==null?void 0:H.return)&&P.return()}})};
RHM=function(K,X){return new KZ(function(F){var P=new Nv;P.add(X.schedule(function(){var H=K[Fg]();P.add(H.subscribe({next:function(f){P.add(X.schedule(function(){return F.next(f)}))},
error:function(f){P.add(X.schedule(function(){return F.error(f)}))},
complete:function(){P.add(X.schedule(function(){return F.complete()}))}}))}));
return P})};
URy=function(K,X){return new KZ(function(F){return X.schedule(function(){return K.then(function(P){F.add(X.schedule(function(){F.next(P);F.add(X.schedule(function(){return F.complete()}))}))},function(P){F.add(X.schedule(function(){return F.error(P)}))})})})};
hH4=function(K){return new TypeError("ha`"+(K!==null&&typeof K==="object"?"an invalid object":"'"+K+"'"))};
Gm9=function(K,X){if(K!=null){if(Cs(K[Fg]))return RHM(K,X);if(mRw(K))return y0P(K,X);if(Cs(K==null?void 0:K.then))return URy(K,X);if(Symbol.asyncIterator&&Cs(K==null?void 0:K[Symbol.asyncIterator]))return W0l(K,X);if(Cs(K==null?void 0:K[Xg]))return eHP(K,X)}throw hH4(K);};
Hk=function(K,X){return X?Gm9(K,X):Pk(K)};
Pk=function(K){if(K instanceof KZ)return K;if(K!=null){if(Cs(K[Fg]))return lsO(K);if(mRw(K))return v8y(K);if(Cs(K==null?void 0:K.then))return asy(K);if(Symbol.asyncIterator&&Cs(K==null?void 0:K[Symbol.asyncIterator]))return tyd(K);if(Cs(K==null?void 0:K[Xg]))return $RM(K)}throw hH4(K);};
lsO=function(K){return new KZ(function(X){var F=K[Fg]();if(Cs(F.subscribe))return F.subscribe(X);throw new TypeError("ia");})};
v8y=function(K){return new KZ(function(X){for(var F=0;F<K.length&&!X.closed;F++)X.next(K[F]);X.complete()})};
asy=function(K){return new KZ(function(X){K.then(function(F){X.closed||(X.next(F),X.complete())},function(F){return X.error(F)}).then(null,xi)})};
$RM=function(K){return new KZ(function(X){for(var F=K[Xg]();!X.closed;){var P=F.next(),H=P.value;P.done?X.complete():X.next(H)}return function(){return Cs(F==null?void 0:F.return)&&F.return()}})};
tyd=function(K){return new KZ(function(X){Oxn(K,X).catch(function(F){return X.error(F)})})};
Oxn=function(K,X){var F,P,H,f,u,J;return _.q(function(Z){switch(Z.nextAddress){case 1:_.s2(Z,2,3);var M=K[Symbol.asyncIterator];f=M!==void 0?M.call(K):new VyP(_.D(K));case 5:return _.Y(Z,f.next(),8);case 8:P=Z.yieldResult;if(P.done){Z.jumpTo(3);break}u=P.value;X.next(u);Z.jumpTo(5);break;case 3:_.fZ(Z);_.D4(Z,9);if(!P||P.done||!(H=f.return)){Z.jumpTo(9);break}return _.Y(Z,H.call(f),9);case 9:_.fZ(Z,0,0,1);if(F)throw F.error;_.uK(Z,10,1);break;case 10:_.uK(Z,4);break;case 2:J=_.qc(Z);F={error:J};Z.jumpTo(3);
break;case 4:X.complete(),_.JT(Z)}})};
Z4=function(K,X){return X?y0P(K,X):v8y(K)};
g8P=function(K){return Cs(K[K.length-1])?K.pop():void 0};
YE=function(K){var X=K[K.length-1];return X&&Cs(X.schedule)?K.pop():void 0};
Qw=function(){var K=_.Ls.apply(0,arguments),X=YE(K);return X?y0P(K,X):Z4(K)};
Mc=function(K){var X=Cs(K)?K:function(){return K};
return new KZ(function(F){return F.error(X())})};
nZ=function(K){return function(X){if(Cs(X==null?void 0:X.lift))return X.lift(function(F){try{return K(F,this)}catch(P){this.error(P)}});
throw new TypeError("ja");}};
pZ=function(){return nZ(function(K,X){var F=null;K._refCount++;var P=new ck(X,void 0,void 0,void 0,function(){if(!K||K._refCount<=0||0<--K._refCount)F=null;else{var H=K._connection,f=F;F=null;!H||f&&H!==f||H.unsubscribe();X.unsubscribe()}});
K.subscribe(P);P.closed||(F=K.connect())})};
bx4=function(){var K=E8n;var X=X===void 0?0:X;return nZ(function(F,P){P.add(K.schedule(function(){return F.subscribe(P)},X))})};
ow=function(K){return nZ(function(X,F){var P=0;X.subscribe(new ck(F,function(H){F.next(K.call(void 0,H,P++))}))})};
NjO=function(K){return ow(function(X){return CcP(X)?K.apply(null,_.LZ(X)):K(X)})};
KkM=function(K){if(K.length===1){var X=K[0];if(ixw(X))return{args:X,keys:null};if(X&&typeof X==="object"&&xR4(X)===Isw)return K=km9(X),{args:K.map(function(F){return X[F]}),
keys:K}}return{args:K,keys:null}};
Ts=function(){var K=_.Ls.apply(0,arguments),X=YE(K),F=g8P(K);K=KkM(K);var P=K.args,H=K.keys;if(P.length===0)return Hk([],X);X=new KZ(X$d(P,X,H?function(f){for(var u={},J=0;J<f.length;J++)u[H[J]]=f[J];return u}:If));
return F?X.pipe(NjO(F)):X};
X$d=function(K,X,F){F=F===void 0?If:F;return function(P){Fk9(X,function(){for(var H=K.length,f=Array(H),u=H,J=K.map(function(){return!1}),Z=!0,M={i$jscomp$216:0};M.i$jscomp$216<H;M={i$jscomp$216:M.i$jscomp$216},M.i$jscomp$216++)Fk9(X,function(n){return function(){Hk(K[n.i$jscomp$216],X).subscribe(new rE(P,function(c){f[n.i$jscomp$216]=c;
Z&&(J[n.i$jscomp$216]=!0,Z=!J.every(If));Z||P.next(F(f.slice()))},function(){return--u===0}))}}(M),P)},P)}};
Fk9=function(K,X,F){K?F.add(K.schedule(X)):X()};
Pil=function(K,X,F,P){var H=[],f=0,u=0,J=!1,Z=function(M){f++;Pk(F(M,u++)).subscribe(new ck(X,function(n){X.next(n)},void 0,function(){f--;
for(var n={};H.length&&f<P;n={bufferedValue:void 0})n.bufferedValue=H.shift(),Z(n.bufferedValue);!J||H.length||f||X.complete()}))};
K.subscribe(new ck(X,function(M){return f<P?Z(M):H.push(M)},void 0,function(){J=!0;
!J||H.length||f||X.complete()}));
return function(){H=null}};
AT=function(K,X){var F=F===void 0?Infinity:F;if(Cs(X))return AT(function(P,H){return ow(function(f,u){return X(P,f,H,u)})(Pk(K(P,H)))},F);
typeof X==="number"&&(F=X);return nZ(function(P,H){return Pil(P,H,K,F)})};
HsP=function(K){K=K===void 0?Infinity:K;return AT(If,K)};
sfd=function(){var K=_.Ls.apply(0,arguments);return HsP(1)(Z4(K,YE(K)))};
yw=function(K){return new KZ(function(X){Pk(K()).subscribe(X)})};
Wk=function(K,X,F){if(Cs(F)){var P=F;F=void 0}if(P)return Wk(K,X,F).pipe(NjO(P));P=_.D(Cs(K.addEventListener)&&Cs(K.removeEventListener)?zdP.map(function(u){return function(J){return K[u](X,J,F)}}):Cs(K.addListener)&&Cs(K.removeListener)?fXd.map(DvM(K,X)):Cs(K.on)&&Cs(K.off)?uwy.map(DvM(K,X)):[]);
var H=P.next().value,f=P.next().value;return!H&&mRw(K)?AT(function(u){return Wk(u,X,F)})(Z4(K)):new KZ(function(u){if(!H)throw new TypeError("ka");
var J=function(){var Z=_.Ls.apply(0,arguments);return u.next(1<Z.length?Z:Z[0])};
H(J);return function(){return f(J)}})};
DvM=function(K,X){return function(F){return function(P){return K[F](X,P)}}};
eO=function(){var K=_.Ls.apply(0,arguments),X=YE(K);var F=typeof K[K.length-1]==="number"?K.pop():Infinity;return K.length?K.length===1?Pk(K[0]):HsP(F)(Z4(K,X)):dE};
Jol=function(K){return K.length===1&&qv3(K[0])?K[0]:K};
Zsw=function(){var K=Jol(_.Ls.apply(0,arguments));return nZ(function(X,F){var P=[X].concat(_.LZ(K)),H=function(){if(!F.closed)if(P.length>0){try{var f=Pk(P.shift())}catch(J){H();return}var u=new ck(F,void 0,ii,ii);F.add(f.subscribe(u));u.add(H)}else F.complete()};
H()})};
Rw=function(K){return nZ(function(X,F){var P=0;X.subscribe(new ck(F,function(H){return K.call(void 0,H,P++)&&F.next(H)}))})};
Qfl=function(){var K=_.Ls.apply(0,arguments);K=Jol(K);return K.length===1?Pk(K[0]):new KZ(YvO(K))};
YvO=function(K){return function(X){for(var F=[],P={i$jscomp$219:0};F&&!X.closed&&P.i$jscomp$219<K.length;P={i$jscomp$219:P.i$jscomp$219},P.i$jscomp$219++)F.push(Pk(K[P.i$jscomp$219]).subscribe(new ck(X,function(H){return function(f){if(F){for(var u=0;u<F.length;u++)u!==H.i$jscomp$219&&F[u].unsubscribe();F=null}X.next(f)}}(P))))}};
Miq=function(){var K=_.Ls.apply(0,arguments),X=g8P(K),F=Jol(K);return F.length?new KZ(function(P){var H=F.map(function(){return[]}),f=F.map(function(){return!1});
P.add(function(){H=f=null});
for(var u={sourceIndex$jscomp$1:0};!P.closed&&u.sourceIndex$jscomp$1<F.length;u={sourceIndex$jscomp$1:u.sourceIndex$jscomp$1},u.sourceIndex$jscomp$1++)Pk(F[u.sourceIndex$jscomp$1]).subscribe(new ck(P,function(J){return function(Z){H[J.sourceIndex$jscomp$1].push(Z);H.every(function(M){return M.length})&&(Z=H.map(function(M){return M.shift()}),P.next(X?X.apply(null,_.LZ(Z)):Z),H.some(function(M,n){return!M.length&&f[n]})&&P.complete())}}(u),void 0,function(J){return function(){f[J.sourceIndex$jscomp$1]=
!0;
!H[J.sourceIndex$jscomp$1].length&&P.complete()}}(u)));
return function(){H=f=null}}):dE};
niO=function(K){var X,F,P;return!!K&&typeof K.active==="boolean"&&typeof((X=K.clock)==null?void 0:X.now)==="function"&&((F=K.clock)==null?void 0:F.timeline)!==void 0&&!((P=K.lastMeasurement)==null||!P.timestamp)&&typeof K.equivalentTo==="function"&&typeof K.extrapolateToNow==="function"&&typeof K.extrapolateToTime==="function"&&typeof K.map==="function"&&typeof K.joinWith==="function"};
coy=function(K){function X(F){return typeof F==="boolean"||typeof F==="string"||typeof F==="number"||F===void 0||F===null}
return X(K)?!0:Array.isArray(K)?K.every(X):typeof K==="object"?Object.keys(K).every(function(F){return typeof F==="string"})&&Object.values(K).every(function(F){return Array.isArray(F)?F.every(X):X(F)}):!1};
p$P=function(K){if(coy(K))return K;if(niO(K))return{lastMeasurement:{value:p$P(K.lastMeasurement.value),timestamp:U2(K.lastMeasurement.timestamp,new hT(0,K.lastMeasurement.timestamp.timeline))},active:K.active};try{return JSON.parse(JSON.stringify(K))}catch(X){}return String(K)};
mq=function(K,X){return function(F){return new KZ(function(P){return F.subscribe(function(H){K.timeExecution(X,function(){P.next(H)})()},function(H){K.timeExecution(X,function(){P.error(H)})()},function(){K.timeExecution(X,function(){P.complete()})()})})}};
BFO=function(K,X){var F=!1;return new KZ(function(P){var H=K.setTimeout(function(){F=!0;P.next(!0);P.complete()},X);
return function(){F||K.clearTimeout(H)}})};
Svy=function(K){K=K.global;if(K.fetchLater)return K.fetchLater.bind(K)};
Gs=function(K){return nZ(function(X,F){var P=null,H=!1,f;P=X.subscribe(new ck(F,void 0,function(u){f=Pk(K(u,Gs(K)(X)));P?(P.unsubscribe(),P=null,f.subscribe(F)):H=!0}));
H&&(P.unsubscribe(),P=null,f.subscribe(F))})};
oiT=function(K,X,F){return function(P,H){var f=F,u=X,J=0;P.subscribe(new ck(H,function(Z){var M=J++;u=f?K(u,Z,M):(f=!0,Z);H.next(u)},void 0,void 0))}};
Lk3=function(K){K=K===void 0?null:K;return nZ(function(X,F){var P=!1;X.subscribe(new ck(F,function(H){P=!0;F.next(H)},void 0,function(){P||F.next(K);
F.complete()}))})};
lK=function(){return nZ(function(K,X){K.subscribe(new ck(X,ii))})};
vk=function(K){return nZ(function(X,F){X.subscribe(new ck(F,function(){return F.next(K)}))})};
aw=function(K){return K<=0?function(){return dE}:nZ(function(X,F){var P=0;
X.subscribe(new ck(F,function(H){++P<=K&&(F.next(H),K<=P&&F.complete())}))})};
tT=function(K){var X=X===void 0?If:X;var F;K=(F=K)!=null?F:TFw;return nZ(function(P,H){var f,u=!0;P.subscribe(new ck(H,function(J){var Z=X(J);if(u||!K(f,Z))u=!1,f=Z,H.next(J)}))})};
TFw=function(K,X){return K===X};
AoO=function(K){K=K===void 0?row:K;return nZ(function(X,F){var P=!1;X.subscribe(new ck(F,function(H){P=!0;F.next(H)},void 0,function(){return P?F.complete():F.error(K())}))})};
row=function(){return new jfl};
O2=function(){var K=_.Ls.apply(0,arguments);return function(X){return sfd(X,Qw.apply(null,_.LZ(K)))}};
w$n=function(K){return nZ(function(X,F){var P=0;X.subscribe(new ck(F,function(H){K.call(void 0,H,P++,X)||(F.next(!1),F.complete())},void 0,function(){F.next(!0);
F.complete()}))})};
yoO=function(){return nZ(function(K,X){var F=[];K.subscribe(new ck(X,function(P){F.push(P);1<F.length&&F.shift()},void 0,function(){for(var P=_.D(F),H=P.next();!H.done;H=P.next())X.next(H.value);
X.complete()},function(){F=null}))})};
WkO=function(K,X){var F=arguments.length>=2;return function(P){return P.pipe(K?Rw(function(H,f){return K(H,f,P)}):If,yoO(),F?Lk3(X):AoO(function(){return new jfl}))}};
gE=function(K){var X=Cs(K)?K:function(){return K};
return Cs()?nZ(function(F,P){var H=X();(void 0)(H).subscribe(P).add(F.subscribe(H))}):function(F){var P=new Vw(F,X);
Cs(F==null?void 0:F.lift)&&(P.lift=F.lift);P.source=F;P.subjectFactory=X;return P}};
bK=function(K){var X=new E2(K,void 0,void 0);return function(F){return gE(function(){return X})(F)}};
CZ=function(K,X){return nZ(oiT(K,X,arguments.length>=2))};
Nc=function(){var K=_.Ls.apply(0,arguments),X=YE(K);return nZ(function(F,P){(X?sfd(K,F,X):sfd(K,F)).subscribe(P)})};
iK=function(K){return nZ(function(X,F){var P=null,H=0,f=!1;X.subscribe(new ck(F,function(u){var J;(J=P)==null||J.unsubscribe();J=H++;Pk(K(u,J)).subscribe(P=new ck(F,function(Z){return F.next(Z)},void 0,function(){P=null;
f&&!P&&F.complete()}))},void 0,function(){(f=!0,!P)&&F.complete()}))})};
xE=function(K,X){X=X===void 0?!1:X;return nZ(function(F,P){var H=0;F.subscribe(new ck(P,function(f){var u=K(f,H++);(u||X)&&P.next(f);!u&&P.complete()}))})};
Iw=function(K,X,F){var P=Cs(K)||X||F?{next:K,error:X,complete:F}:K;return P?nZ(function(H,f){H.subscribe(new ck(f,function(u){var J;(J=P.next)==null||J.call(P,u);f.next(u)},function(u){var J;
(J=P.error)==null||J.call(P,u);f.error(u)},function(){var u;
(u=P.complete)==null||u.call(P);f.complete()}))}):If};
dvq=function(){var K=_.Ls.apply(0,arguments),X=g8P(K);return nZ(function(F,P){for(var H=K.length,f=Array(H),u=K.map(function(){return!1}),J=!1,Z={i$jscomp$229:0};Z.i$jscomp$229<H;Z={i$jscomp$229:Z.i$jscomp$229},Z.i$jscomp$229++)Pk(K[Z.i$jscomp$229]).subscribe(new ck(P,function(M){return function(n){f[M.i$jscomp$229]=n;
J||u[M.i$jscomp$229]||(u[M.i$jscomp$229]=!0,(J=u.every(If))&&(u=null))}}(Z),void 0,ii));
F.subscribe(new ck(P,function(M){J&&(M=[M].concat(_.LZ(f)),P.next(X?X.apply(null,_.LZ(M)):M))}))})};
ed4=function(K){var X=[],F=0,P;for(P in K)X[F++]=P;return X};
Rdn=function(K,X){for(var F in K)if(K[F]==X)return!0;return!1};
Uvd=function(K,X,F){for(var P in K)if(X.call(F,K[P],P,K))return P};
hdl=function(K){if(!K||typeof K!=="object")return K;if(typeof K.clone==="function")return K.clone();if(typeof Map!=="undefined"&&K instanceof Map)return new Map(K);if(typeof Set!=="undefined"&&K instanceof Set)return new Set(K);if(K instanceof Date)return new Date(K.getTime());var X=Array.isArray(K)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(K)||K instanceof DataView?{}:new K.constructor(K.length),F;for(F in K)X[F]=hdl(K[F]);return X};
mv9=function(K){var X=arguments.length;if(X==1&&Array.isArray(arguments[0]))return mv9.apply(null,arguments[0]);if(X%2)throw Error("oa");for(var F={},P=0;P<X;P+=2)F[arguments[P]]=arguments[P+1];return F};
Gpn=function(K){var X=arguments.length;if(X==1&&Array.isArray(arguments[0]))return Gpn.apply(null,arguments[0]);for(var F={},P=0;P<X;P++)F[arguments[P]]=!0;return F};
_.kE=function(K){return new SBd(K[0].toLowerCase())};
lXw=function(K){try{return new URL(K,window.document.baseURI)}catch(X){return new URL("about:invalid")}};
viw=function(K,X){var F=X.createRange();F.selectNode(X.body);K=wF(K);return F.createContextualFragment(yz(K))};
aX3=function(K){K=K.nodeName;return typeof K==="string"?K:"FORM"};
ti4=function(K){K=K.nodeType;return K===1||typeof K!=="number"};
K8=function(K,X,F){K.setAttribute(X,F)};
$vl=function(K){return K.parts.map(function(X){var F=X.descriptor;return""+X.url+(F?" "+F:"")}).join(" , ")};
_.Xs=function(K){var X=_.Ls.apply(1,arguments);if(X.length===0)return _.DX(K[0]);for(var F=K[0],P=0;P<X.length;P++)F+=encodeURIComponent(X[P])+K[P+1];return _.DX(F)};
_.Fs=function(K,X){K=_.ui(K).toString();var F=K.split(/[?#]/),P=/[?]/.test(K)?"?"+F[1]:"";return OsM(F[0],P,/[#]/.test(K)?"#"+(P?F[2]:F[1]):"",X)};
OsM=function(K,X,F,P){function H(u,J){u!=null&&(Array.isArray(u)?u.forEach(function(Z){return H(Z,J)}):(X+=f+encodeURIComponent(J)+"="+encodeURIComponent(u),f="&"))}
var f=X.length?"&":"?";P.constructor===Object&&(P=Object.entries(P));Array.isArray(P)?P.forEach(function(u){return H(u[1],u[0])}):P.forEach(H);
return _.DX(K+X+F)};
Pf=function(K,X,F,P){this.top=K;this.right=X;this.bottom=F;this.left=P};
Vin=function(K){K=K.global;if(K.PendingGetBeacon)return K.PendingGetBeacon};
sO=function(K){return function(X){return X.pipe(giO(K,gE(new Hf)))}};
z8=function(K){return function(X){return X.pipe(giO(K,bK(1)))}};
giO=function(K,X){function F(P){return new KZ(function(H){return P.subscribe(function(f){f8(K,function(){return void H.next(f)},3)},function(f){f8(K,function(){return void H.error(f)},3)},function(){f8(K,function(){return void H.complete()},3)})})}
return ki(F,bx4(),X,pZ(),F)};
Cin=function(K){var X=Eiy(K);return X===null?new Dw(null):X.pipe(ow(function(F){F=F.serialize();if(bsO)F=_.FP.btoa(F);else{for(var P=[],H=0,f=0;f<F.length;f++){var u=F.charCodeAt(f);u>255&&(P[H++]=u&255,u>>=8);P[H++]=u}F=_.iW(P)}return F}),aw(1),z8(K.queue))};
NFP=function(K){var X=X===void 0?{}:X;if(typeof Event==="function")return new Event(K,X);if(typeof document!=="undefined"){var F=document.createEvent("CustomEvent");F.initCustomEvent(K,X.bubbles||!1,X.cancelable||!1,X.detail);return F}throw Error();};
isy=function(K){return typeof K==="string"?document.getElementById(K):K};
IXl=function(K){var X=!1;X=X===void 0?!1:X;if(K.tagName==="IMG"){if(K.complete&&(!K.naturalWidth||!K.naturalHeight))return!0;var F;if(X&&((F=K.style)==null?void 0:F.display)==="none")return!0}var P,H;return xvP.test((P=K.getAttribute("width"))!=null?P:"")&&xvP.test((H=K.getAttribute("height"))!=null?H:"")};
kpq=function(K,X){if(K.tagName==="IMG")return K.naturalWidth&&K.naturalHeight?!0:!1;try{if(K.readyState)var F=K.readyState;else{var P,H;F=(P=K.contentWindow)==null?void 0:(H=P.document)==null?void 0:H.readyState}return F==="complete"}catch(f){return X===void 0?!1:X}};
Kqw=function(K){K||(K=function(X,F,P){X.addEventListener(F,P)});
return K};
HZP=function(K,X){var F=Xkn();F=F===void 0?new Fqy:F;if(K=isy(K)){var P=Kqw(P);for(var H=!1,f=function(R){H||(H=!0,X(R))},u,J=2,Z=0;Z<PKd.length;++Z)if(PKd[Z]===K.tagName){J=3;
u=[K];break}u||(u=K.querySelectorAll(PKd.join(",")));var M=0,n=0,c=!0,B=K=!1;Z={};for(var L=0;L<u.length;Z={isImg:void 0},L++){var A=u[L];if(!IXl(A))if(Z.isImg=A.tagName==="IMG",kpq(A,F.crossDomainLoadedDefault))K=!0,Z.isImg&&(c=!0);else{M++;var d=function(R){return function(l){M--;!M&&c&&f(J);R.isImg&&(l=l&&l.type==="error",n--,l||(c=!0),!n&&B&&c&&f(J))}}(Z);
P(A,"load",d);Z.isImg&&(n++,P(A,"error",d))}}n===0&&(c=!0);u=null;u=_.FP.document.readyState==="complete";if(M===0&&!K&&u)J=5;else if(M||!K){P(_.FP,"load",function(){!F.pendingImagesBlockLoad||!n&&c?f(4):B=!0});
return}f(J)}};
swq=function(K,X,F){if(K)for(var P=0;K!=null&&P<500&&!F(K);++P)K=X(K)};
zQ4=function(K,X){swq(K,function(F){try{return F===F.parent?null:F.parent}catch(P){}return null},X)};
f4d=function(K,X){if(K.tagName=="IFRAME")X(K);else{K=K.querySelectorAll("IFRAME");for(var F=0;F<K.length&&!X(K[F]);++F);}};
Dcl=function(K){return(K=K.ownerDocument)&&(K.parentWindow||K.defaultView)||null};
ugy=function(K,X,F){try{var P=JSON.parse(F.data)}catch(u){}if(typeof P==="object"&&P&&P.type==="creativeLoad"){var H=Dcl(K);if(F.source&&H){var f;zQ4(F.source,function(u){try{if(u.parent===H)return f=u,!0}catch(J){}});
f&&f4d(K,function(u){if(u.contentWindow===f)return X(P),!0})}}};
q23=function(K){return typeof K==="string"?document.getElementById(K):K};
Qwq=function(){var K={};return K[0]=_.Xs(JTT,"current"),K[1]=_.Xs(ZZw),K[2]=_.Xs(Y24),K};
uk=function(K,X){return K.left===X.left&&K.top===X.top&&K.width===X.width&&K.height===X.height};
MOq=function(K,X){return{left:Math.max(K.left,X.left),top:Math.max(K.top,X.top),width:Math.max(0,Math.min(K.left+K.width,X.left+X.width)-Math.max(K.left,X.left)),height:Math.max(0,Math.min(K.top+K.height,X.top+X.height)-Math.max(K.top,X.top))}};
nEl=function(K,X){return{left:Math.round(K.left+X.x),top:Math.round(K.top+X.y),width:K.width,height:K.height}};
cTd=function(K,X,F){if(K&&X!==null&&X!=X.top){if(!X.top)return new _.q4(-12245933,-12245933);X=X.top}try{return(F===void 0?0:F)?(new _.q4(X.innerWidth,X.innerHeight)).round():_.JE(X).round()}catch(P){return new _.q4(-12245933,-12245933)}};
pkP=function(K,X,F){try{if(K){if(!X.top)return new Pf(-12245933,-12245933,-12245933,-12245933);X=X.top}var P=cTd(K,X,F),H=P.height,f=P.width;if(f===-12245933)return new Pf(f,f,f,f);var u=Zw(Yp(X.document)),J=u.x,Z=u.y;return new Pf(Z,J+f,Z+H,J)}catch(M){return new Pf(-12245933,-12245933,-12245933,-12245933)}};
BEn=function(K){var X;return(X=K.google_tag_data)!=null?X:K.google_tag_data={}};
S2n=function(K){var X,F;return typeof((X=K.navigator)==null?void 0:(F=X.userAgentData)==null?void 0:F.getHighEntropyValues)==="function"};
Lq3=function(K){if(!S2n(K))return null;var X=BEn(K);if(X.uach_promise)return X.uach_promise;K=K.navigator.userAgentData.getHighEntropyValues(oEM).then(function(F){X.uach!=null||(X.uach=F);return F});
return X.uach_promise=K};
hQT=function(K){var X;return TEd(rT9(ATy(jw9(wkO(yTd(WqT(dcO(eQ9(new RQP,K.architecture||""),K.bitness||""),K.mobile||!1),K.model||""),K.platform||""),K.platformVersion||""),K.uaFullVersion||""),((X=K.fullVersionList)==null?void 0:X.map(function(F){var P=new UcM;P=_.Qf(P,1,F.brand);return _.Qf(P,2,F.version)}))||[]),K.wow64||!1)};
mcw=function(K){var X,F;return(F=(X=Lq3(K))==null?void 0:X.then(function(P){return hQT(P)}))!=null?F:null};
GsP=function(K,X){return new KZ(function(F){var P=!1,H=Array(X.length);H.fill(void 0);var f=new Set,u=new Set,J=function(c,B){K.running?(H[B]=c,f.add(B),P||(P=!0,f8(K,function(){P=!1;F.next(_.Nq(H))},1))):F.error(new M4(B))},Z=function(c,B){u.add(B);
f.add(B);f8(K,function(){F.error(c)},1)},M=function(c){u.add(c);
f8(K,function(){u.size===X.length&&F.complete()},1)},n=X.map(function(c,B){return c.subscribe(function(L){return void J(L,B)},function(L){return void Z(L,B)},function(){return void M(B)})});
return function(){n.forEach(function(c){return void c.unsubscribe()})}})};
vEP=function(K,X,F){function P(){if(X.debugChannel){var R=X.debugChannel,l=R.next;var a={creativeId:X.debugNames.getName(F),requiredSignals:H,signals:Object.assign({},f),hasPrematurelyCompleted:u,errorMessage:J,erroredSignalKey:Z};a={specMajor:2,specMinor:0,specPatch:0,timestamp:U2(X.timeProvider.now(),new hT(0,X.timeProvider.timeline)),instanceId:X.debugNames.getName(X.symbol),creativeState:a};l.call(R,a)}}
for(var H=Object.keys(K),f={},u=!1,J=null,Z=null,M={},n=new Set,c=[],B=[],L=_.D(H),A=L.next(),d={};!A.done;d={key$jscomp$374:void 0},A=L.next())d.key$jscomp$374=A.value,A=K[d.key$jscomp$374],A instanceof Dw?(M[d.key$jscomp$374]=A.value,n.add(d.key$jscomp$374),X.debugChannel&&(f[String(d.key$jscomp$374)]=p$P(A.value))):(A=A.pipe(tT(function(R,l){return niO(R)||niO(l)?!1:R===l}),ow(function(R){return function(l){X.debugChannel&&(f[String(R.key$jscomp$374)]=p$P(l),P());
var a={};return a[R.key$jscomp$374]=l,a}}(d)),Gs(function(R){return function(l){if(l instanceof M4)throw new l49(String(R.key$jscomp$374));
throw l;}}(d)),Iw(function(R){return function(){n.add(R.key$jscomp$374)}}(d),function(R){return function(l){Z=String(R.key$jscomp$374);
J=String(l);P()}}(d),function(R){return function(){n.has(R.key$jscomp$374)||(u=!0,P())}}(d))),B.push(d.key$jscomp$374),c.push(A));
(K=Object.keys(f).length>0)&&P();L=GsP(X.queue,c).pipe(Gs(function(R){if(R instanceof M4)throw new n8(String(B[R.inputObservableIndex]));throw R;}),ow(function(R){return Object.freeze(Object.assign.apply(Object,[{},
M].concat(_.LZ(R))))}));
return(c=c.length>0)&&K?eO(Qw(Object.freeze(M)),L):c?L:Qw(Object.freeze(M))};
a49=function(K,X,F,P,H){return K.performanceMonitor.timeExecution.bind(K.performanceMonitor)(733,function(){var f={};try{return X.pipe(Gs(function(u){P(Object.assign({},f,{error:u}));return dE}),AT(function(u){try{var J=F(K,u)}catch(M){return P(Object.assign({},f,{error:M instanceof Error?M:String(M)})),dE}var Z={};
return vEP(J,K,u.symbol).pipe(Iw(function(M){Z=M}),bK(1),pZ()).pipe(H,Gs(function(M){P(Object.assign({},Z,{error:M}));
return dE}),O2(void 0),ow(function(){return!0}))})).pipe(CZ(function(u){return u+1},0),Gs(function(u){P(Object.assign({},f,{error:u}));
return dE}))}catch(u){return P(Object.assign({},f,{error:u})),dE}})()};
cf=function(K){var X=new Map;if(typeof K!=="object"||K===null)return X;Object.values(K).forEach(function(F){F&&typeof F.extrapolateToNow==="function"&&(X.has(F.clock.timeline)||X.set(F.clock.timeline,F.clock.now()))});
return X};
tOy=function(K,X){return typeof K==="string"?encodeURIComponent(K):typeof K==="number"?String(K):Array.isArray(K)?K.map(function(F){return tOy(F,X)}).join(","):K instanceof hT?K.toString():K&&typeof K.extrapolateToNow==="function"?tOy(K.extrapolateUsingTimestampMap(X).value,X):K===!0?"1":K===!1?"0":K===void 0||K===null?null:K instanceof $cT?OZ9(K):[K.top,
K.left,K.top+K.height,K.left+K.width].join()};
Bf=function(K,X){K=Object.entries(K).map(function(F){var P=_.D(F);F=P.next().value;P=P.next().value;P=tOy(P,X);return P===null?"":F+"="+P}).filter(function(F){return F!==""});
return K.length?K.join("&"):""};
EEy=function(K,X){var F=VOw,P=gEl;X=X===void 0?.01:X;return function(H){X>0&&Math.random()<=X&&(K.global.HTMLFencedFrameElement&&K.global.fence&&typeof K.global.fence.reportEvent==="function"&&K.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),H=Object.assign({},H,{errorMessage:H.error instanceof Error&&H.error.message?H.error.message:String(H.error),errorStack:H.error instanceof Error&&H.error.stack?String(H.error.stack):null,errorName:H.error instanceof
Error&&H.error.name?String(H.error.name):null,errorContext:String(K.performanceMonitor.timedFunctionContext),errorEscapedQueryId:H.escapedQueryId}),F(Object.assign({},H,{payloadMapper:function(){return function(f){try{return P(Object.assign({},f))}catch(u){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),cf(H)).forEach(function(f){K.beaconFactory.makeBeacon(f).sendNow()}))}};
bZl=function(){var K=_.Ls.apply(0,arguments);return function(X){var F=X.pipe(bK(1),pZ());X=K.map(function(P){return F.pipe(P,O2(!0))});
return Ts(X).pipe(aw(1),lK())}};
CKP=function(){var K=_.Ls.apply(0,arguments);return function(X){var F=X.pipe(bK(1),pZ());X=K.map(function(P){return F.pipe(P,O2(!0))});
return eO.apply(null,_.LZ(X)).pipe(aw(1),lK())}};
NEw=function(K,X){return function(F){var P=F.pipe(bK(1),pZ());F=P.pipe(K,O2(!0));P=P.pipe(ki(X,bK(),pZ()),O2(!0));F=Ts([F,P]);return Qfl(F,P).pipe(aw(1),lK())}};
iZT=function(K,X,F){F(!0)};
xcn=function(K,X){return ki(iK(function(F){var P=K(F),H=X(F),f={};return P&&H&&f?new KZ(function(u){H(P,f,function(J){u.next(Object.assign({},F,{canEmit:J}));u.complete()});
return function(){}}):SA}),Rw(function(F){return F.canEmit}))};
I44=function(K){var X={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(F){return F.pipe(iK(function(P){return new KZ(function(H){function f(){J.disconnect();Z.unsubscribe()}
var u=K.MutationObserver;if(u&&P.ref!==void 0){var J=new u(function(M){H.next(M)});
J.observe(P.ref,X);var Z=P.JSC$7371_released.subscribe(f);return f}})}))}};
ksq=function(K){if(K.measurementDeferralState===3)return null;if(K.timeOnScreenReason!==void 0){var X=K.creativeFound===!1?"n":null;if(X!==null)return X}return K.geometricMeasurementErrors instanceof oR?"msf":K.contextValidationErrors instanceof L8?"c":K.contextVisibilityKnown===!1?"pv":K.geometricMeasurementErrors||K.contextValidationErrors?"x":null};
rp=function(K,X){return K.replace(KPl,function(F,P){try{var H=_.T8.get(X,P);if(H==null||H.toString()==null)return F;H=H.toString();if(H==""||!_.fO(H==null?"":String(H)))return encodeURIComponent(H).replace(/%2C/g,",")}catch(f){}return F})};
Xf4=function(K,X){var F=Object.assign({},K),P=K.userAgentClientHints;F=(delete F.userAgentClientHints,F);F=K.payloadMapper(F);var H=Bf(F,X);return _.AE(K.urlPrefixes,function(f){var u="";typeof P==="string"&&(u="&"+Bf({uach:P},X));var J={};return rp(f,(J.VIEWABILITY=H,J))+u})};
VOw=function(K,X){var F=K.payloadMapper(K),P=Bf(F,X);return P?_.AE(K.urlPrefixes,function(H){H=H.indexOf("?")>=0?H:H+"?";H="?&".indexOf(H.slice(-1))>=0?H:H+"&";return H+P}):K.urlPrefixes};
FPy=function(){return ki(Rw(function(K){return K!==void 0}),ow(function(K){return K}))};
Pk3=function(K){return ki(ow(function(){return!0}),Nc(!1),z8(K))};
H8w=function(K){return K.length<=0?dE:Ts(K.map(function(X){var F=0;return X.pipe(ow(function(P){return{index:F++,value:P}}))})).pipe(Rw(function(X){return X.every(function(F){return F.index===X[0].index})}),ow(function(X){return X.map(function(F){return F.value})}))};
sRP=function(K,X){K.currentState&&(K.previousState=K.currentState);K.currentState=X;K.previousState&&K.previousState.value?(X=Math.max(0,U2(X.timestamp,K.previousState.timestamp)),K.totalTime+=X,K.consecutiveTime+=X):K.consecutiveTime=0;return K};
z9P=function(){return ki(CZ(sRP,{totalTime:0,consecutiveTime:0}),ow(function(K){return K.totalTime}))};
fw9=function(){return ki(CZ(sRP,{totalTime:0,consecutiveTime:0}),ow(function(K){return K.consecutiveTime}))};
D4M=function(K,X){return function(F){return H8w(X.map(function(P){return F.pipe(K(P))}))}};
us4=function(){var K;return ki(Iw(function(X){return void(K=X.timestamp)}),fw9(),ow(function(X){return{timestamp:K,
value:Math.round(X)}}))};
qOq=function(K,X){return uk(K.topWindowViewportExternalGeometry,X.topWindowViewportExternalGeometry)&&uk(K.elementGeometry,X.elementGeometry)&&uk(K.exposedViewportLocalGeometry,X.exposedViewportLocalGeometry)&&uk(K.intersectionGeometry,X.intersectionGeometry)&&K.elementGeometrySourceName===X.elementGeometrySourceName&&K.measurementRequests===X.measurementRequests&&K.viewportGeometrySourceName===X.viewportGeometrySourceName&&K.viewportLocalAppOffset.x===X.viewportLocalAppOffset.x&&K.viewportLocalAppOffset.y===
X.viewportLocalAppOffset.y};
YOT=function(K,X){return function(F){return function(P){var H=P.pipe(gE(new Hf),pZ());P=F.element.pipe(tT());H=H.pipe(ow(function(f){return f.value}));
return Ts([P,H,X]).pipe(ow(function(f){var u=_.D(f);f=u.next().value;var J=u.next().value;u=u.next().value;if(f.ref===void 0)var Z={top:0,left:0,width:0,height:0};else{Z=f.ref.getBoundingClientRect();var M=f.ref,n=K.global,c=new _.jA(0,0),B=wp(_.yf(M));if(Wf(B,"parent")){do{if(B==n)var L=_.dp(M);else L=JEn(M),L=new _.jA(L.left,L.top);c.x+=L.x;c.y+=L.y}while(B&&B!=n&&B!=B.parent&&(M=B.frameElement)&&(B=B.parent))}Z={top:c.y,left:c.x,width:Z.width,height:Z.height}}Z=nEl(Z,J.viewportLocalAppOffset);
n=MOq(Z,J.exposedViewportLocalGeometry);c=K.timeProvider.now();B=Object;M=B.assign;if(u!==2||K.inCrossDomainIframe||n.width<=0||n.height<=0)var A=!1;else try{var d=K.document.elementFromPoint(n.left+n.width/2,n.top+n.height/2);A=d?!Z8l(d,f):!1}catch(R){A=!1}return{timestamp:c,value:M.call(B,{},J,{elementGeometrySourceName:"geo",intersectionGeometry:A?eA.intersectionGeometry:n,elementGeometry:Z})}}),sO(K.queue))}}};
Z8l=function(K,X,F){F=F===void 0?0:F;return K.ref===void 0||X.ref===void 0?!1:K.ref===X.ref||_.RR(X.ref,function(P){return P===K.ref})?!0:X.ref.ownerDocument&&X.ref.ownerDocument.defaultView&&X.ref.ownerDocument.defaultView===X.ref.ownerDocument.defaultView.top?!1:F<10&&X.ref.ownerDocument&&X.ref.ownerDocument.defaultView&&X.ref.ownerDocument.defaultView.frameElement?Z8l(K,new UO(X.ref.ownerDocument.defaultView.frameElement),F+1):!0};
npd=function(K){return function(X){return X.pipe(K.ResizeObserver?QRy(K):MAy(K),bK(1),pZ())}};
QRy=function(K){return function(X){return X.pipe(iK(function(F){var P=K.ResizeObserver;if(!P||F.ref===void 0)return Qw(eA.elementGeometry);var H=(new KZ(function(f){function u(){F.ref!==void 0&&J.unobserve(F.ref);J.disconnect();Z.unsubscribe()}
if(F.ref===void 0)return f.complete(),function(){};
var J=new P(function(M){M.forEach(function(n){f.next(n)})});
J.observe(F.ref);var Z=F.JSC$7371_released.subscribe(u);return u})).pipe(mq(K.performanceMonitor,736),ow(function(f){return f.contentRect}));
return eO(Qw(F.ref.getBoundingClientRect()),H)}),tT(uk))}};
MAy=function(K){return function(X){var F=X.pipe(I44(K)),P=K.onResize;F=eO(X.pipe(ow(function(){return NFP("resize")})),F,P);
return Ts(X,F).pipe(mq(K.performanceMonitor,737),ow(function(H){H=_.D(H).next().value;return H.ref===void 0?void 0:H.ref.getBoundingClientRect()}),FPy(),tT(uk))}};
BpO=function(K,X){var F=cEw(K,X).pipe(bK(1),pZ());return function(P){return function(H){H=H.pipe(iK(function(f){return f.element}),tT());
return Ts([F,H]).pipe(iK(function(f){var u=_.D(f);f=u.next().value;u=u.next().value;return pf3(K,f.intersectionObserver,npd(K),f.observations,P,f.flushRecords,u)}),sO(K.queue))}}};
SOd=function(K){return ow(function(X){return X.value.viewportGeometrySourceName!=="nio"?X:Object.assign({},X,{value:Object.assign({},X.value,{exposedViewportLocalGeometry:hE(K,!0),topWindowViewportExternalGeometry:hE(K,!0)})})})};
opP=function(K,X){return Qw(X).pipe(K,ow(function(){return X}))};
cEw=function(K,X){return K.timeProvider.timeline!==LPy?Mc(new oR(2)):K.MutationObserver?typeof IntersectionObserver==="undefined"?Mc(new oR(0)):(new KZ(function(F){var P=new Hf,H=new mP(P.next.bind(P),{threshold:[].concat(_.LZ(X))});F.next({observations:P.pipe(mq(K.performanceMonitor,735)),intersectionObserver:H,flushRecords:function(f){f=H.takeRecords(f);f.length>0&&P.next(f)}})})).pipe(aw(1),bK(1),pZ()):Mc(new oR(1))};
Tpn=function(K){return Gm9(K.sort(function(X,F){return X.time-F.time}),E8n)};
pf3=function(K,X,F,P,H,f,u){return new KZ(function(J){function Z(){A||(A=!0,u.ref!==void 0&&X.unobserve(H,u.ref),n.unsubscribe(),L.unsubscribe(),B.unsubscribe(),d.unsubscribe())}
if(u.ref!==void 0){rE4(X,H);X.observe(H,u.ref);var M=new G8({timestamp:K.timeProvider.now(),value:Object.assign({},eA,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),n=P.pipe(AT(function(R){return Tpn(R)}),Rw(function(R){return R.target===u.ref}),ow(function(R){return{timestamp:new hT(R.time,LPy),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:R.rootBounds||lk,topWindowViewportExternalGeometry:R.rootBounds||hE(K,!0),measurementRequests:c,elementGeometrySourceName:"nio",intersectionGeometry:R.intersectionRect,elementGeometry:R.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:R.isIntersecting,isV2Visible:R.isVisible}}}),gE(M),pZ()).subscribe(J),c=new Hf,B=c.subscribe(function(){f(H);
J.next({timestamp:K.timeProvider.now(),value:M.value.value});u.ref!==void 0&&(X.unobserve(H,u.ref),X.observe(H,u.ref))}),L=opP(F,u).subscribe(function(){c.next()}),A=!1,d=u.JSC$7371_released.subscribe(function(){return Z()});
return Z}})};
AEq=function(K,X){var F=K.getOnBackgrounded().pipe(ow(function(){return"b"}));
return Qfl(X,F).pipe(aw(1),z8(K.queue))};
vf=function(K){return function(X){var F;return X.pipe(Iw(function(P){return void(F=P.timestamp)}),ow(function(P){return P.value}),K,ow(function(P){return{timestamp:F,
value:P}}))}};
jRy=function(K){return K.intersectionGeometry.width*K.intersectionGeometry.height/(K.elementGeometry.width*K.elementGeometry.height)};
aR=function(K,X,F){F=F===void 0?function(P,H){return P===H}:F;
return K.timestamp.equals(X.timestamp)&&F(K.value,X.value)};
$p=function(K,X){return X.pipe(ow(function(F){return new tE(K.timeProvider,{timestamp:K.timeProvider.now(),value:F})}))};
wfd=function(K){return function(X){return X.pipe(dvq(K),ow(function(F){var P=_.D(F);F=P.next().value;P=P.next().value;var H=F.value;return{timestamp:F.timestamp,value:H>=1?!0:H<=0?!1:H>=P}}))}};
WP3=function(){return ki(Rw(function(K,X){return X>0}),yEd,Nc(-1),tT())};
d4P=function(K,X,F){return K?Ts([X,F]).pipe(Rw(function(P){var H=_.D(P);P=H.next().value;H=H.next().value;return P.timestamp.equals(H.timestamp)}),ow(function(P){var H=_.D(P);
P=H.next().value;H=H.next().value;return P.value>H.value?P:H})):X};
U4T=function(K){return function(X){var F=X.pipe(e9O),P=X.pipe(R9O);return K instanceof KZ?K.pipe(iK(function(H){return d4P(H,F,P)})):d4P(K.value,F,P)}};
VA4=function(K,X,F,P){var H=P.geometryIsOccluded,f=P.exposureThreshold,u=P.wasLargeAdAtRender,J=P.allowLargeAdThreshold,Z=P.largeAdExposureThreshold,M=P.mayUseViewportShareExposure,n=P.hasMeasurementStarted;P=P.useIntersectionObserverV2;X=h9d(K,F,X);F=m4y(K,F);P=G8P(X,P);var c=lwy(K,H,M,X),B=c.pipe(ow(function(x){return x.value}),tT(),z8(K),CZ(function(x,N){return Math.max(x,N)},0)),L=c.pipe(ow(function(x){return x.value}),WP3(),z8(K)),A=X.pipe(vp9,ow(function(x){return x.value}),aw(2),tT(),z8(K));
u=aw4(K,X,u,J);var d=u.pipe(Nc(!1),tT(),ow(function(x){return x?Z:f}));
J=c.pipe(wfd(d),tT(),z8(K));var R=Ts([J,X]).pipe(Rw(function(x){var N=_.D(x);x=N.next().value;N=N.next().value;return x.timestamp.equals(N.timestamp)}),ow(function(x){var N=_.D(x);
x=N.next().value;N=N.next().value;return{visible:x.value,geometry:N.value.elementGeometry}}),CZ(function(x,N){return!N.visible&&x.visible?x:N},{visible:!1,
geometry:lk}),ow(function(x){return x.geometry}),Nc(lk),z8(K),tT(uk));
M=M instanceof KZ?M.pipe(tT(),vk()):SA;d=Ts([M,d]).pipe(vk());var l=X.pipe(Rw(function(x){return x.value.viewportGeometrySourceName!=="ns"&&x.value.elementGeometrySourceName!=="ns"}),CZ(function(x){return x+1},0),Nc(0),z8(K)),a=F.pipe(vk(!0),Nc(!1),z8(K));
a=Ts([n,a]).pipe(ow(function(x){var N=_.D(x);x=N.next().value;N=N.next().value;return x&&!N}),z8(K));
var E=X.pipe(tA3,tT()),V=E.pipe(ow(function(x){return x.value}),CZ(function(x,N){return Math.max(x,N)},0),tT(),z8(K));
K=E.pipe(ow(function(x){return x.value}),WP3(),z8(K));
return{shouldResetExposureSignals:M,shouldResetViewabilitySignals:d,geometrySignals:{readyGeometryWithDefault:X,measurementStrategy:X.pipe($4q),creativePosition:R.pipe(tT(uk)),visible:J.pipe(tT(aR)),timestampedExposure:c.pipe(tT(aR)),maximumExposure:B,minimumExposure:L,browserSize:X.pipe(O8y,tT(_.fW)),timestampedScreenShare:E,maxScreenShare:V,minScreenShare:K,geometricMeasurementErrors:F,measurementRequests:X.pipe(ow(function(x){return x.value.measurementRequests})),
isLargeAd:u,geometryIsOccluded:H,hasMeasurementStarted:n,geometryMeasurable:a,validMeasurementCount:l,loadTimeExposure:A,v2VisibilityBitVector:P}}};
m4y=function(K,X){return X.pipe(Rw(function(){return!1}),ow(function(F){return F}),Gs(function(F){return OO(new Dw(F),K)}))};
h9d=function(K,X,F){return X.pipe(Zsw(SA),z8(K)).pipe(tT(function(P,H){return aR(P,H,qOq)}),Nc({timestamp:F.now(),
value:eA}),z8(K))};
lwy=function(K,X,F,P){F=P.pipe(U4T(F),vf(ow(function(H){return Math.round(H*100)/100})),z8(K));
return X instanceof Dw?F:Ts([F,X]).pipe(ow(function(H){var f=_.D(H);H=f.next().value;f=f.next().value;return{timestamp:f.timestamp.maximum(H.timestamp),value:f.value?0:H.value}}),tT(aR),z8(K))};
aw4=function(K,X,F,P){X=[X.pipe(ow(function(H){return H.value.elementGeometry.width*H.value.elementGeometry.height>=242500}))];
F instanceof KZ&&X.push(F.pipe(ow(function(H){return!!H})));
F=Ts(X);return P?F.pipe(ow(function(H){return H.some(function(f){return f})}),Nc(!1),tT(),z8(K)):OO(new Dw(!1),K)};
G8P=function(K,X){K=Ts([K,X]).pipe(ow(function(H){var f=_.D(H);H=f.next().value;if(f.next().value&&H.value.isIntersecting)return H.value.isV2Visible}),tT());
var F=K.pipe(ow(function(H){return H===void 0?!0:H}),CZ(function(H,f){return H||!f},!1)),P=K.pipe(CZ(function(H,f){return f===void 0?H:f?!1:H!=null?H:!0},void 0),ow(function(H){return!!H}));
return Ts([X,Miq(K,F,P)]).pipe(ow(function(H){var f=_.D(H);H=f.next().value;var u=_.D(f.next().value);f=u.next().value;var J=u.next().value;u=u.next().value;var Z=0;if(!H)return 0;if(f===void 0)return 16;f&&(Z|=1);f||(Z|=2);J&&(Z|=4);u&&(Z|=8);return Z}))};
CkT=function(K,X,F,P,H){var f=Vf.timeThresholdMs;var u=u===void 0?new gpl(X,P):u;return(new KZ(function(J){var Z=F.pipe(Nc(void 0),iK(function(){return Epy(H)})).pipe(ow(function(M){var n=M.value;
M=M.timestamp;var c=n.visible;n=n.consecutiveViewTime;var B=n>=f;B||!c?gp(u):(M=Math.max(0,U2(X.now(),M)),b8n(u,Math.max(0,f-n-M)));return B}),CZ(function(M,n){return n||M},!1),tT()).subscribe(J);
return function(){u.dispose();Z.unsubscribe()}})).pipe(xE(function(J){return!J},!0),z8(K))};
Epy=function(K){return H8w([K,K.pipe(us4())]).pipe(ow(function(X){var F=_.D(X);X=F.next().value;F=F.next().value;return{timestamp:X.timestamp,value:{visible:X.value,consecutiveViewTime:F.value}}}),tT(function(X,F){return aR(X,F,function(P,H){return P.consecutiveViewTime===H.consecutiveViewTime&&P.visible===H.visible})}))};
Np9=function(){return ki(fw9(),CZ(function(K,X){return Math.max(K,X)},0),ow(function(K){return Math.round(K)}))};
i8P=function(K){return ki(wfd(Qw(K)),Np9())};
x49=function(K,X){return X instanceof KZ?X.pipe(iK(function(F){return(F=F?15:null)?Mc(new oR(F)):K})):(X=X.value?15:null)?Mc(new oR(X)):K};
IwT=function(K){var X=new oR(13);if(K.length<1)return{chain:dE,capturedErrors:dE};var F=new Hf,P=K[0];return{chain:K.slice(1).reduce(function(H,f){return H.pipe(Gs(function(u){F.next(u);return f}))},P).pipe(Gs(function(H){F.next(H);
return Mc(X)}),gE(new Hf),pZ()),
capturedErrors:F}};
k8q=function(K,X){var F=K.pipe(gE(new Hf),pZ());return iK(function(P){return F.pipe(X(P))})};
X_4=function(K,X){if(K.inCrossDomainIframe)return Mc(new oR(6));var F=new Hf;return eO(Qw({}),X,F).pipe(ow(function(){return{timestamp:K.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:K8l(K),topWindowViewportExternalGeometry:hE(K,!0),measurementRequests:F,viewportLocalAppOffset:{x:0,y:0}}}}),sO(K.queue))};
K8l=function(K){var X=hE(K,!1);if(!K.inIframe||!EO(K.global.parent)||K.global.parent===K.global)return X;var F=new bk(K.global.parent,K.debugChannel);F.beaconFactory=K.beaconFactory;F=K8l(F);K=K.global.frameElement.getBoundingClientRect();return MOq(nEl(MOq(F,K),{x:X.left-K.left,y:X.top-K.top}),X)};
F8P=function(K){if(K.prerendering)return 3;var X;return(X={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[K.visibilityState||K.webkitVisibilityState||K.mozVisibilityState||""])!=null?X:0};
PB4=function(K){return K.document.JSC$7382_onVisibilityChange.pipe(ow(function(X){return X==="visible"}),tT(),z8(K.queue))};
HJy=function(K,X,F){var P;return X.pipe(tT(),iK(function(H){return F.pipe(ow(function(){if(!P){P=!0;try{H.next()}finally{P=!1}}return!0}))}),Nc(!1),z8(K.queue))};
sz4=function(K){return ki(vf(ow(function(X){return X>=1?!0:X<=0?!1:X>=K})),z9P(),ow(function(X){return Math.round(X)}))};
fLy=function(K,X,F,P,H){var f=zjl;if(f.length>1)for(var u=0;u<f.length-1;u++)if(f[u]<f[u+1])throw Error();u=H.pipe(Nc(void 0),iK(function(){return F.pipe(us4())}),tT(),z8(K));
H=H.pipe(Nc(void 0),iK(function(){return F.pipe(Np9())}),tT(),z8(K));
return{totalMeasurementTime:P.pipe(Nc(void 0),iK(function(){return X.pipe(ow(function(J){return{timestamp:J.timestamp,value:!0}}),z9P())}),tT(),z8(K)),
totalUnviewedTime:P.pipe(Nc(void 0),iK(function(){return X.pipe(ow(function(J){return{timestamp:J.timestamp,value:J.value===0}}),z9P())}),tT(),z8(K)),
maxTimeOnScreen:P.pipe(Nc(void 0),iK(function(){return X.pipe(D4M(i8P,f))}),tT(_.fW),z8(K)),
timeOnScreen:P.pipe(Nc(void 0),iK(function(){return X.pipe(D4M(sz4,f),ow(function(J){return J.map(function(Z,M){return M>0?Z-J[M-1]:Z})}))}),tT(_.fW),z8(K)),
maxConsecutiveViewTime:H,consecutiveViewTime:u.pipe(tT(aR),z8(K))}};
uAO=function(K){var X=!0;X=X===void 0?!1:X;return ki(iK(function(F){return Dg3(K.document,F,X)}),z8(K.queue))};
qwO=function(K,X,F){var P=F.pipe(ow(function(H){return{value:H,timestamp:K.timeProvider.now()}}),tT(aR));
return X instanceof KZ?X.pipe(tT(),iK(function(H){return H?OO(new Dw({value:!1,timestamp:K.timeProvider.now()}),K.queue):P})):X.value===!1?P:new Dw(!1)};
JHw=function(K,X,F,P,H,f,u){var J=Vf;X=X instanceof KZ?X.pipe(Nc(!1),tT()):X;var Z=!K.isMobile();F=qwO(K,F,P);K=u.measurableCreative.pipe(Pk3(K.queue));return Object.assign({},J,{geometryIsOccluded:F,wasLargeAdAtRender:H,allowLargeAdThreshold:Z,mayUseViewportShareExposure:X,hasMeasurementStarted:K,useIntersectionObserverV2:f})};
Ywq=function(K,X,F,P,H,f){var u=1;f=f===void 0?!0:f;u=u===void 0?.01:u;var J=J===void 0?K.timeProvider.intervalObservable(100).pipe(z8(K.queue)):J;return K.performanceMonitor.timeExecution(916,function(){return ZJq(K,X.pipe(sO(K.queue)),F.pipe(sO(K.queue)),P,H,f,u,J)})()};
ZJq=function(K,X,F,P,H,f,u,J){var Z=PB4(K).pipe(ow(function(n){return!n})),M=new Qzl(K,[new MMw(K,zjl),
new nLM(K,J)]);J=bZl(cH9,p_w);return a49(K,X,function(n,c){var B=OO(new Dw(c.element),n.queue).pipe(uAO(n),z8(n.queue)),L={loadedElement:B,shouldMeasure:B.pipe(vk(!0)),measurableCreative:B.pipe(ow(function(x){var N=N===void 0?Symbol():N;return Object.freeze({symbol:N,element:OO(new Dw(x),n.queue)})})),
creativeSearchResult:OO(new Dw("mue"),n.queue)},A=new Dw(!1),d=new Dw(!1),R=new Dw(17),l=new Dw(!1),a=new Dw(!1),E=OO(C8,n.queue);A=M.buildGeometrySource(L,{inApp:A,useV2:!1,requestSource:OO(R,n.queue)}).geometrySource;L=JHw(n,l,d,Z,a,E,L);d=VA4(n.queue,n.timeProvider,A,L);L=d.geometrySignals;l=d.shouldResetViewabilitySignals;d=fLy(n.queue,L.timestampedExposure,L.visible,d.shouldResetExposureSignals,l);l=CkT(n.queue,n.timeProvider,l,L.measurementRequests,L.visible);a=F.pipe(Rw(function(x){return x===
c.element.ref}),ow(function(){return"ur"}));
E=BFO(n.timeProvider,H).pipe(vk("t"));a=AEq(n,eO(a,E));E=HJy(n,L.measurementRequests,a.pipe(Rw(function(x){return x!==null})));
A=a.pipe(Rw(function(x){return x!==null}),ow(function(){return F8P(n.global.document)===1}));
var V=B09(n.document);return Object.assign({},{beaconFactory:new Dw(n.beaconFactory),context:new Dw(n),inferredPingId:new Dw("lidar2"),timeOnScreenPingId:new Dw("lidartos"),binaryContext:new Dw(17),binaryVersion:new Dw(P),requestSource:R,contextValidationErrors:new Dw(n.validate()?null:new L8),contextVisibilityKnown:new Dw(V),payloadMapper:new Dw(gEl),endOfSessionReason:a,timeOnScreenReason:a,requestMeasurementOnEndOfSession:E,hasImpressionFired:SwP,crossDomainIframeState:new Dw(n.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:C8,inFetchLaterBeaconExperiment:C8,isTurtlex:C8,turtlexReportEventData:new Dw(""),reportFencedFrameEvent:SA,isViewableAttributionEnabled:C8,inViewableAttributionExperiment:new Dw(0),fetchBeaconFactory:SA,supportsPendingBeacon:C8,supportsFetchLater:C8,emit:new Dw(iZT),beginToRenderEvent:new Dw(Symbol()),activeViewUnmeasurableEvent:new Dw(Symbol()),activeViewViewableEvent:new Dw(Symbol()),creativeFound:SwP,immediateUrlPrefixes:new Dw(c.immediateUrls),timeOnScreenUrlPrefixes:new Dw(c.timeOnScreenUrls),
cpmavUrls:SA,viewableRelayUrls:SA,measurementDeferralState:new Dw(2),urlSerializer:new Dw(Xf4),viewUrlSerializer:new Dw(oL3),isCreativeLoaded:B.pipe(Pk3(n.queue)),pageVisible:Z.pipe(ow(function(x){return!x})),
eosPageVisible:A,timestampedExposureHistory:L.timestampedExposure.pipe(CZ(function(x,N){x.push(N);return x},[]))},L,{viewable:$p(n,l),
maxTimeOnScreen:$p(n,d.maxTimeOnScreen),timeOnScreen:$p(n,d.timeOnScreen),maxConsecutiveViewTime:$p(n,d.maxConsecutiveViewTime),consecutiveViewTime:d.consecutiveViewTime.pipe(ow(function(x){return new tE(n.timeProvider,x)})),
totalMeasurementTime:$p(n,d.totalMeasurementTime),totalUnviewedTime:$p(n,d.totalUnviewedTime),userAgentClientHints:Cin(n),clientOrderPingCounter:new Dw(new $cT)})},EEy(K,u),CKP(f?NEw(J,L8d):NEw(J,T0P),rHM))};
AH4=function(K){var X=_.Ls.apply(1,arguments).filter(Boolean).join("&");if(!X)return K;var F=K.match(/[?&]adurl=/);return F?K.slice(0,F.index+1)+X+"&"+K.slice(F.index+1):K+(K.indexOf("?")<0?"?":"&")+X};
N4=function(K,X){return X?"&"+K+"="+encodeURIComponent(X):""};
jzy=function(){try{var K,X;return!!((K=window)==null?0:(X=K.top)==null?0:X.location.href)&&!1}catch(F){return!0}};
_.ik=function(K){K&&typeof K.dispose=="function"&&K.dispose()};
_.xp=function(K){for(var X=0,F=arguments.length;X<F;++X){var P=arguments[X];_.xd(P)?_.xp.apply(null,P):_.ik(P)}};
yHw=function(){var K=w_y();K=K===void 0?"bevasrsg":K;return new Promise(function(X){var F=window===window.top?window:jzy()?window:window.top,P=F[K],H;((H=P)==null?0:H.bevasrs)?X(new IR(P.bevasrs)):(P||(P={},P=(P.nqfbel=[],P),F[K]=P),P.nqfbel.push(function(f){X(new IR(f))}))})};
W8w=function(K){var X={c:K.fS,e:K.m68,mc:K.yQH,me:K.rQ8};K.uB&&(X.co={c:K.uB.jnK,a:K.uB.eP2,s:K.uB.cLz});return X};
dgl=function(K){var X,F,P={fS:K.c,m68:K.e,yQH:(X=K.mc)!=null?X:!1,rQ8:(F=K.me)!=null?F:!1};K.co&&(P.uB={jnK:K.co.c,eP2:K.co.a,cLz:K.co.s});return P};
ejl=function(K){return function(){var X;return _.q(function(F){if(F.nextAddress==1)return _.Y(F,K(),2);X=F.yieldResult;return F.return({f:function(){return X.geQ()},
c:function(P){return X.olm(P)},
m:function(P){return X.vX(dgl(P))},
mws:function(P){return X.ke(dgl(P))}})})}};
RjP=function(K,X){var F=w_y();F=F===void 0?"bevasrsg":F;X={s:function(f){var u;return K.snapshot(Object.assign({},f.c&&{fS:f.c},f.s&&{x3C:f.s},{hxd:(u=f.p)!=null?u:!0}))},
e:function(f){var u;return void((u=K.yeU)==null?void 0:u.call(K,f))},
c:function(f,u){return K.oYH(f,u)},
p:K.qH3,l:function(){return K.o3C()},
wpc:X?ejl(X):void 0};var P=window===window.top?window:jzy()?window:window.top,H=P[F];if(H){H.bevasrs=X;if(H.nqfbel!==void 0)for(F=_.D(H.nqfbel),P=F.next();!P.done;P=F.next())P=P.value,P(X);H.nqfbel=void 0}else H={},H=(H.bevasrs=X,H.nqfbel=void 0,H),P[F]=H};
hjO=function(K){var X=X===void 0?49:X;var F=[];_.kp(K,Ugd,6,_.KJ()).forEach(function(P){_.XA(P,2)<=X&&F.push(_.XA(P,1))});
return F};
mgP=function(K){var X=X===void 0?49:X;var F=[];_.kp(K,Ugd,6,_.KJ()).forEach(function(P){_.XA(P,2)>X&&F.push(_.XA(P,1))});
return F};
G33=function(K){K.then(function(){},function(){})};
FA=function(K){return{fieldType:1,fieldName:K}};
P_=function(K){return{fieldType:2,fieldName:K}};
_.H_=function(K){return{fieldType:3,fieldName:K}};
lLP=function(){function K(){H[0]=1732584193;H[1]=4023233417;H[2]=2562383102;H[3]=271733878;H[4]=3285377520;n=M=0}
function X(c){for(var B=u,L=0;L<64;L+=4)B[L/4]=c[L]<<24|c[L+1]<<16|c[L+2]<<8|c[L+3];for(L=16;L<80;L++)c=B[L-3]^B[L-8]^B[L-14]^B[L-16],B[L]=(c<<1|c>>>31)&4294967295;c=H[0];var A=H[1],d=H[2],R=H[3],l=H[4];for(L=0;L<80;L++){if(L<40)if(L<20){var a=R^A&(d^R);var E=1518500249}else a=A^d^R,E=1859775393;else L<60?(a=A&d|R&(A|d),E=2400959708):(a=A^d^R,E=3395469782);a=((c<<5|c>>>27)&4294967295)+a+l+E+B[L]&4294967295;l=R;R=d;d=(A<<30|A>>>2)&4294967295;A=c;c=a}H[0]=H[0]+c&4294967295;H[1]=H[1]+A&4294967295;H[2]=
H[2]+d&4294967295;H[3]=H[3]+R&4294967295;H[4]=H[4]+l&4294967295}
function F(c,B){if(typeof c==="string"){c=unescape(encodeURIComponent(c));for(var L=[],A=0,d=c.length;A<d;++A)L.push(c.charCodeAt(A));c=L}B||(B=c.length);L=0;if(M==0)for(;L+64<B;)X(c.slice(L,L+64)),L+=64,n+=64;for(;L<B;)if(f[M++]=c[L++],n++,M==64)for(M=0,X(f);L+64<B;)X(c.slice(L,L+64)),L+=64,n+=64}
function P(){var c=[],B=n*8;M<56?F(J,56-M):F(J,64-(M-56));for(var L=63;L>=56;L--)f[L]=B&255,B>>>=8;X(f);for(L=B=0;L<5;L++)for(var A=24;A>=0;A-=8)c[B++]=H[L]>>A&255;return c}
for(var H=[],f=[],u=[],J=[128],Z=1;Z<64;++Z)J[Z]=0;var M,n;K();return{reset:K,update:F,digest:P,digestString:function(){for(var c=P(),B="",L=0;L<c.length;L++)B+="0123456789ABCDEF".charAt(Math.floor(c[L]/16))+"0123456789ABCDEF".charAt(c[L]%16);return B}}};
OJd=function(K,X){X=X===void 0?vL4:X;if(!aL4){var F;K=(F=K.navigator)==null?void 0:F.userAgentData;if(!K||typeof K.getHighEntropyValues!=="function"||K.brands&&typeof K.brands.map!=="function")return Promise.reject(Error("ya"));tMP((K.brands||[]).map(function(H){var f=new $g3;f=_.Qf(f,1,H.brand);return _.Qf(f,2,H.version)}));
typeof K.mobile==="boolean"&&_.sw(z3,2,K.mobile);aL4=K.getHighEntropyValues(X)}var P=new Set(X);return aL4.then(function(H){var f=z3.clone();P.has("platform")&&_.Qf(f,3,H.platform);P.has("platformVersion")&&_.Qf(f,4,H.platformVersion);P.has("architecture")&&_.Qf(f,5,H.architecture);P.has("model")&&_.Qf(f,6,H.model);P.has("uaFullVersion")&&_.Qf(f,7,H.uaFullVersion);return f.serialize()}).catch(function(){return z3.serialize()})};
fJ=function(K,X,F,P){this.initialValue_=K;this.maxValue_=X;this.currBaseValue_=this.currValue_=K;this.randomFactor_=F||0;this.backoffFactor_=P||2};
DL=function(K){this.src=K;this.listeners={};this.typeCount_=0};
bJ9=function(){for(var K;K=VMT.remove();){try{K.fn.call(K.scope)}catch(X){Py(X)}gLy.put(K)}ELP=!1};
_.uB=function(K){switch(K){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}};
CB4=function(K){switch(K){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""}};
_.N04=function(){};
Hvl=function(K){return{lD9:new iJ3(K),errorCount:new xgy(K),eventCount:new ILq(K),ePz:new k3w(K),jW0:new Khd(K),ju0:new XMM(K),ffj:new Fhq(K),nCd:new P_M(K)}};
Yg9=function(K,X,F,P){K=sDM(z_O(fKq(new _.qg(1828,"0"),K),new Ds9));X.length&&unP(K,qgl(new JZw,X));P!==void 0&&(K.destinationUrl=P);var H=new ZvP(1828,"","",!1,"",K.build());_.JH(H,K);var f=new ZL({flush:function(u){try{H.flush(u)}catch(J){F(J)}}});
f.addOnDisposeCallback(function(){setTimeout(function(){try{f.snapshotAndFlush()}finally{H.dispose()}})});
f.invocationLimit=1E5;f.flushInterval=3E4;f.JSC$7798_flushTimer.setInterval(3E4);return f};
YL=function(){var K,X,F;return(F=(K=globalThis.performance)==null?void 0:(X=K.now)==null?void 0:X.call(K))!=null?F:Date.now()};
R_y=function(K,X,F){if(K.disable)return new e_l;X=X?hjO(X):[];if(F)return F.sFH(X),F.share();K={uS:K.uS,ly7:K.gst,vTN:K.pMy,destinationUrl:K.destinationUrl,jtA:K.jtA,rr:K.rr};F=X;F=F===void 0?[]:F;return new QY(K,F)};
Us4=function(K){if(!K)return null;K=_.Mg(K,2);return K===null||K===void 0?null:wF(K)};
_.h_T=function(K){if(!K)return null;K=_.Mg(K,4);return K===null||K===void 0?null:_.DX(K)};
lKw=function(K,X){return X?msy(X):K?GvP(K):Promise.resolve()};
msy=function(K){return new Promise(function(X,F){var P=_.nJ("SCRIPT"),H=_.h_T(K);_.li(P,H);P.onload=function(){_.c_(P);X()};
P.onerror=function(){_.c_(P);F(Error("Ja"))};
(pJ("HEAD")[0]||document.documentElement).appendChild(P)})};
GvP=function(K){return new Promise(function(X){var F=_.nJ("SCRIPT");if(K){var P=_.Mg(K,6);P=P===null||P===void 0?null:_.ho(P)}else P=null;_.Gp(F,P);(pJ("HEAD")[0]||document.documentElement).appendChild(F);_.c_(F);X()})};
B_=function(K,X,F){var P,H=new Promise(function(f){P=setTimeout(f,X)});
return Promise.race([K.finally(function(){return void clearTimeout(P)}),
H.then(F)])};
vM4=function(K,X){try{return globalThis.sessionStorage.setItem(K,X),!0}catch(F){return!1}};
aKP=function(K,X,F,P){X=X===void 0?0:X;F=F===void 0?K.length:F;var H=0;for(P&&(H=aKP(P));X<F;X++)P=typeof K==="string"?K.charCodeAt(X):K[X],H=tjP(31,H)+P|0;return H};
$s3=function(K,X){return[aKP(K,0,K.length>>1,X),aKP(K,K.length>>1)]};
Ov9=function(K){var X=_.D($s3(K,SM));K=X.next().value;X=X.next().value;return K.toString(16)+X.toString(16)};
VjO=function(K,X){var F=$s3(X);K=new Uint32Array(K.buffer);X=K[0];var P=_.D(F);F=P.next().value;P=P.next().value;for(var H=1;H<K.length;H+=2){for(var f=X,u=H,J=F,Z=P,M=0;M<22;M++)u=u>>>8|u<<24,u+=f|0,u^=J+38293,f=f<<3|f>>>29,f^=u,Z=Z>>>8|Z<<24,Z+=J|0,Z^=M+38293,J=J<<3|J>>>29,J^=Z;f=[f,u];K[H]^=f[0];H+1<K.length&&(K[H+1]^=f[1])}};
gMT=function(K,X,F,P,H){var f=(4-(SM.length+F.length)%4)%4,u=new Uint8Array(4+f+SM.length+4+F.length),J=new DataView(u.buffer),Z=0;J.setUint32(Z,Math.random()*4294967295);Z=Z+4+f;u.set(SM,Z);Z+=SM.length;J.setUint32(Z,H);u.set(F,Z+4);VjO(u,P);return K.insert(X,function(M){return void globalThis.sessionStorage.removeItem(M)})?vM4(X,_.iW(u))?"s":"t":"i"};
EMy=function(K,X){var F=globalThis.sessionStorage.getItem(K);if(!F)return["m"];try{var P=_.Jt(F);VjO(P,X)}catch(H){return globalThis.sessionStorage.removeItem(K),["c"]}for(X=4;X<7&&P[X]===0;)X++;for(F=0;F<SM.length;F++)if(P[X++]!==SM[F])return globalThis.sessionStorage.removeItem(K),["d"];F=(new DataView(P.buffer)).getUint32(X);return Math.floor(Date.now()/1E3)>=F?(globalThis.sessionStorage.removeItem(K),["e"]):["a",new Uint8Array(P.buffer,X+4)]};
bv9=function(K){return globalThis.TextEncoder?(new TextEncoder).encode(K):_.oz(K)};
C_l=function(K){var X=K,F;return function(){if(X){var P=X;X=void 0;F=P.apply(this,arguments)}return F}};
ivl=function(K){return VO(function(X){if(X instanceof K)return!0;var F,P,H=X==null?void 0:(F=X.ownerDocument)==null?void 0:(P=F.defaultView)==null?void 0:P[K.name];return Nsn(H)&&X instanceof H})};
_.r0=function(K,X,F){_.LJ.call(this);this.JSC$8011_listener_=K;this.JSC$8011_interval_=X||0;this.handler_=F;this.callback_=(0,_.T3)(this.JSC$8013_doAction_,this)};
_.AH=function(K){K=xsP(K);return _.DX(K)};
xsP=function(K){return K===null?"null":K===void 0?"undefined":K};
kvy=function(K){if(K&&K.focus)if(K!==document.activeElement)K.focus();else return IKd(function(){return _.q(function(X){document.activeElement&&document.activeElement.blur();return X.return(IKd(function(){K.focus()}))})})};
_.Kz3=function(K){var X=X===void 0?5:X;setTimeout(function(){var F;return _.q(function(P){P.nextAddress==1&&(F=document.activeElement);if(P.nextAddress!=5)return(document.activeElement===F||document.activeElement===document.body)&&X>=0&&K?_.Y(P,kvy(K),5):P.jumpTo(0);if(document.activeElement===K)return P.return();K=K.parentElement;--X;return P.jumpTo(2)})},15)};
IKd=function(K){return new Promise(function(X){requestAnimationFrame(function(){X(K())})})};
Fzw=function(K){if(_.jM)K(_.jM);else{var X;((X=Xdd)!=null?X:Xdd=[]).push(K)}};
yY=function(){!_.jM&&_.w0&&_.P9P(_.w0());return _.jM};
_.P9P=function(K){_.jM=K;var X;(X=Xdd)==null||X.forEach(Fzw);Xdd=void 0};
_.W_=function(K){_.jM&&_.jM.beforeLoadModuleCode(K)};
_.d0=function(){_.jM&&_.jM.JSC$8954_setLoaded()};
eM=function(K){return mv(K)?Number(K):String(K)};
H93=function(K){this.action=K;this.wfv=!1};
sU4=function(K,X){H93.call(this,"set-drive-options");this.appId=K;this.appOrigin=X};
zDy=function(K){H93.call(this,"visibility");this.visible=K};
fql=function(K,X,F){Rz.call(this,K,X,F)};
DuP=function(K){Uw.call(this,K)};
uoy=function(K){K=K&&K.getWindow()||window;return K.gadgets&&K.gadgets.rpc};
JVl=function(K,X){var F=X&&X.getWindow()||window;if(uoy(X))K();else if(qNy)qNy.push(K);else var P=qNy=[K],H=F.setInterval(function(){if(uoy(X)){F.clearInterval(H);for(var f=0;f<P.length;f++)P[f]();qNy=null}},100)};
YNy=function(K,X){var F=new hH(K);_.JH(X,F);var P={passive:!1};X.listen(F,"mousewheel",function(H){return void Z94(K,H)},P).listen(K,"scroll",function(H){return void Z94(K,H)},P)};
Z94=function(K,X){var F;a:{for(F=X.target;F;){if(F.nodeType==1){var P=_.m8(F,"overflowY");if(P=="auto"||P=="scroll")break a}F=F.parentNode}F=null}if(!F||!_.G3(K,F)||F.scrollHeight==F.clientHeight||X.deltaY>0&&Math.abs(F.scrollTop-(F.scrollHeight-F.clientHeight))<=1||X.deltaY<0&&F.scrollTop==0)X.preventDefault(),X.stopPropagation()};
VY=function(K,X,F,P,H,f,u,J,Z){J=J===void 0?!1:J;Z=Z===void 0?!1:Z;Rz.call(this,void 0,void 0,void 0);Rz.call(this,f?f+" picker modal-dialog":"picker modal-dialog",!0,F);_.lB(K,"protocol");this.iframeManager_=new QUy;this.targetId_=v_();this.rpcToken_=v_();K=_.az(K);_.tH(K,"hostId");F=_.tH(K,"parent");this.useGapi_=!Z&&!0||(F==null?void 0:F.includes("onepick.corp.google.com"));J&&_.$L(K,"fv2","true");this.setUrl(K.toString());this.preferredDialogWidth_=P;this.preferredDialogHeight_=H;P!==void 0||
H!==void 0?P=!0:(P=_.tH(_.az(K.toString()),"hostId"),M8l||(M8l=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),P=!M8l.has(P));this.autoSizeDialog_=P;this.JSC$8201_gadgetsDomHelper_=u||this.JSC$8152_dom_;X&&(u=this.JSC$8201_gadgetsDomHelper_,X=_.tH(_.az(this.JSC$8203_url_),"grugl")=="true"?nUl:cVw,uoy(u)||(u=u||Yp(document),P=u.createElement("SCRIPT"),_.li(P,X),P.type="text/javascript",u.JSC$7337_document_.body.appendChild(P)));
K=K.toString();X=null;u=K.indexOf("/picker?");u>-1?X=K.substring(0,u+8-1):zn(K,"/picker")&&(X=K);X&&this.setRelayUrl(X+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(K=this.buttons_,K.JSC$8186_element_=this.buttonEl_,K.render()):_.v$(this.buttonEl_,pdl),_.Ow(this.buttonEl_,!!this.buttons_))};
_.Lzq=function(K){var X=X===void 0?B29:X;var F=_.FL(K),P=function(f){f=_.D(f);f.next();f=g0(f);return X(F,f)},H=function(f){var u=_.D(f);
f=u.next().value;u=g0(u);return K.apply(f,u)};
return function(){var f=_.Ls.apply(0,arguments),u=this||_.FP,J=SNT.get(u);J||(J={},SNT.set(u,J));return oU9(J,[this].concat(_.LZ(f)),H,P)}};
Ew=function(K){var X={};K=K.replace(/\r/g,"").split("\n");for(var F=0;F<K.length;F++){var P=K[F],H=P.indexOf(":");H<0||(X[P.substring(0,H)]=P.substring(H+2,P.length))}return X};
bB=function(K,X,F){F=F===void 0?function(){}:F;
return K?X():F()};
_.rVl=function(K){var X;return((X=T2w.documentOverride)!=null?X:K).__wizdispatcher};
_.Ng=function(K){var X=CJ;CJ=K;return X};
jUP=function(K){return K===AVn||(K==null?void 0:K.name)==="\u0275NotFound"};
wdl=function(K,X){var F;if((F=K)==null?0:F.isDisposed)throw Error("nb`"+String(K.debugName));for(;K!==void 0;){F=K;if(F.retrieve)return F.retrieve(X,{optional:!0});K=K.parent}return AVn};
iB=function(K){return{"\u0275prov":{providedIn:"root",token:Symbol(K),factory:void 0,value:void 0}}};
_.yVO=function(K){var X=CJ;if(!X){switch(K===void 0?3:K){case 0:K=Error("mb");break;case 1:K=Error("ob");break;case 2:K=Error("pb");break;default:K=Error("qb")}throw K;}return X};
Wzn=function(K){var X=_.Ng(K);K={};return K[Symbol.dispose]=function(){_.Ng(X)},K};
duT=function(K,X){K.disposables||(K.disposables=[]);K.disposables.push(X)};
kL=function(K){var X=CJ;X&&!X.isDisposed&&(duT(X,K),K.parent=X)};
RD9=function(K){if(K.disposables){for(var X=_.D(K.disposables),F=X.next();!F.done;F=X.next())F=F.value,typeof F==="function"?F():eDn(F);K.disposables.length=0}};
eDn=function(K){if(!K.isDisposed){K.isDisposed=!0;var X;(X=K[Symbol.dispose])==null||X.call(K);delete K.parent;RD9(K)}};
$uP=function(K){var X={retrieve:function(F){switch(F.\u0275prov.token){case UuP.\u0275prov.token:var P=K.asyncDeps;break;case hDl.\u0275prov.token:P=K.rootElement;break;case mu3.\u0275prov.token:P=K.modelRootElement;break;case Grl.\u0275prov.token:P=K.appContext;break;case lqO.\u0275prov.token:P=K.rendererData;break;case vUl.\u0275prov.token:P=K.injectingConstructor;break;case aqd.\u0275prov.token:P=K.dispatcher}if(P)F=P;else a:{for(P=X.parent;P;){var H=P;if(H.retrieve){F=H.retrieve(F);break a}P=
P.parent}P=F.\u0275prov.token;H=t8P[P];H!==void 0?F=H:(H=F.\u0275prov.providedIn,F.\u0275prov.factory?(F=F.\u0275prov.factory(),P&&H==="root"&&(t8P[P]=F)):F=AVn)}return F}};
kL(X);return X};
O99=function(){var K=_.yVO(1),X=wdl(K,Grl);jUP(X)&&(K=wdl(K,aqd),jUP(K)||K.getOptionalAppContext())};
V84=function(K){if(typeof document!=="undefined"&&document&&document.getElementById&&(K=document.getElementById(K))){var X=K.tagName.toUpperCase();if(X=="SCRIPT"||X=="LINK")return K}return null};
EU4=function(K,X){if((K=K===void 0?"":K)&&X)throw Error("ub");var F="";var P=_.FP._F_jsUrl;(K=X||V84(K))&&(F=K.src?K.src:K.getAttribute("href"));if(P&&F){if(P!=F)throw Error("vb`"+P+"`"+F);F=P}else F=P||F;if(!gUw(F))throw Error("wb");return F};
i9T=function(){if(!b9d){b9d=!0;try{var K=EU4(_.FP._F_jsUrl?"":"base-js")}catch(P){return}var X=C9T(N24(K)),F=Object.keys(X);F.length!==0&&Fzw(function(P){for(var H=_.D(F),f=H.next();!f.done;f=H.next()){f=f.value;for(var u=_.D(Object.keys(X[f])),J=u.next();!J.done;J=u.next())P.addExtraEdge(f,J.value)}})}};
Iq9=function(){var K=Object.assign({},xuq);Object.getOwnPropertyNames(xuq).forEach(function(X){_.Kv[X]!==void 0&&(K[X]=_.Kv[X])});
return K};
kry=function(K,X){if(_.Kv.enablePerformanceTiming){var F,P;(P=(F=performance).mark)==null||P.call(F,K+"Start__"+X)}};
KSl=function(K,X){if(_.Kv.enablePerformanceTiming){var F,P;(P=(F=performance).measure)==null||P.call(F,K+"__"+X,K+"Start__"+X)}};
XmO=function(K,X,F){var P;return K&&X?K+"__"+X:(P=K!=null?K:X)!=null?P:F};
PDq=function(K,X){var F=Object.create(FSd);F.debugName=X;!CJ||kL(F);X=_.Ng(F);try{K(F)}finally{_.Ng(X)}return function(){return void eDn(F)}};
stT=function(K){return Xn(K)&&HGO in K};
zOl=function(K,X){return Object.is(K,X)};
PM=function(K){var X=Fn;Fn=K;return X};
qUT=function(K){if(HM)throw Error("da");if(Fn!==null){var X=Fn.nextProducerIndex++;fr3(Fn);X<Fn.producerNode.length&&Fn.producerNode[X]!==K&&sg(Fn)&&DUM(Fn.producerNode[X],Fn.producerIndexOfThis[X]);Fn.producerNode[X]!==K&&(Fn.producerNode[X]=K,Fn.producerIndexOfThis[X]=sg(Fn)?u$w(K,Fn,X):0);Fn.producerLastReadVersion[X]=K.version}};
YU9=function(K){if(!sg(K)||K.dirty)if(K.dirty||K.lastCleanEpoch!==Jvy)(K.producerMustRecompute(K)||ZGy(K))&&K.producerRecomputeValue(K),K.dirty=!1,K.lastCleanEpoch=Jvy};
Qtn=function(K){if(K.liveConsumerNode!==void 0){var X=HM;HM=!0;try{for(var F=_.D(K.liveConsumerNode),P=F.next();!P.done;P=F.next()){var H=P.value;H.dirty||(K=void 0,H.dirty=!0,Qtn(H),(K=H.consumerMarkedDirty)==null||K.call(H,H))}}finally{HM=X}}};
Mp3=function(){var K;return((K=Fn)==null?void 0:K.consumerAllowSignalWrites)!==!1};
nSw=function(K){K&&(K.nextProducerIndex=0);return PM(K)};
cvP=function(K,X){PM(X);if(K&&K.producerNode!==void 0&&K.producerIndexOfThis!==void 0&&K.producerLastReadVersion!==void 0){if(sg(K))for(X=K.nextProducerIndex;X<K.producerNode.length;X++)DUM(K.producerNode[X],K.producerIndexOfThis[X]);for(;K.producerNode.length>K.nextProducerIndex;)K.producerNode.pop(),K.producerLastReadVersion.pop(),K.producerIndexOfThis.pop()}};
ZGy=function(K){fr3(K);for(var X=0;X<K.producerNode.length;X++){var F=K.producerNode[X],P=K.producerLastReadVersion[X];if(P!==F.version)return!0;YU9(F);if(P!==F.version)return!0}return!1};
u$w=function(K,X,F){pmP(K);if(K.liveConsumerNode.length===0&&K.producerNode!==void 0)for(var P=0;P<K.producerNode.length;P++)K.producerIndexOfThis[P]=u$w(K.producerNode[P],K,P);K.liveConsumerIndexOfThis.push(F);return K.liveConsumerNode.push(X)-1};
DUM=function(K,X){pmP(K);if(K.liveConsumerNode.length===1&&K.producerNode!==void 0)for(var F=0;F<K.producerNode.length;F++)DUM(K.producerNode[F],K.producerIndexOfThis[F]);F=K.liveConsumerNode.length-1;K.liveConsumerNode[X]=K.liveConsumerNode[F];K.liveConsumerIndexOfThis[X]=K.liveConsumerIndexOfThis[F];K.liveConsumerNode.length--;K.liveConsumerIndexOfThis.length--;X<K.liveConsumerNode.length&&(F=K.liveConsumerIndexOfThis[X],K=K.liveConsumerNode[X],fr3(K),K.producerIndexOfThis[F]=X)};
sg=function(K){var X,F;return K.consumerIsAlwaysLive||((F=K==null?void 0:(X=K.liveConsumerNode)==null?void 0:X.length)!=null?F:0)>0};
fr3=function(K){K.producerNode!=null||(K.producerNode=[]);K.producerIndexOfThis!=null||(K.producerIndexOfThis=[]);K.producerLastReadVersion!=null||(K.producerLastReadVersion=[])};
pmP=function(K){K.liveConsumerNode!=null||(K.liveConsumerNode=[]);K.liveConsumerIndexOfThis!=null||(K.liveConsumerIndexOfThis=[])};
SU3=function(K){var X=Object.create(BSl);X.computation=K;K=function(){YU9(X);qUT(X);if(X.value===zv)throw X.error;return X.value};
K[fv]=X;return K};
rvP=function(K,X){var F=Object.create(oSP);F.value=K;X!==void 0&&(F.equal=X);K=function(){qUT(F);return F.value};
K[fv]=F;return[K,function(P){return LSl(F,P)},
function(P){Mp3()||TSl(F);LSl(F,P(F.value))}]};
LSl=function(K,X){Mp3()||TSl(K);if(!K.equal(K.value,X)){K.value=X;K.version++;Jvy++;Qtn(K);var F;(F=Av9)==null||F(K)}};
DK=function(K){var X=PM(null);try{return K()}finally{PM(X)}};
_.u_=function(K,X,F){F=F===void 0?"":F;K=rvP(K,X==null?void 0:X.equals);var P=K[0],H=P[fv];H.debugName=XmO(X==null?void 0:X.debugName,F,"[signal]");if(!_.Kv.enablePerformanceTiming)return K;var f=K[1],u=K[2];return[P,function(J){jtq(function(){return void f(J)},H)},
function(J){jtq(function(){return void u(J)},H)}]};
jtq=function(K,X){kry("signalSet",X.debugName);try{K()}finally{KSl("signalSet",X.debugName)}};
yv4=function(K,X){var F=_.D(_.u_(K,void 0,"cPpJzc"));K=F.next().value;F=F.next().value;K[wmw]=F;K[qs]=X;return K};
WS3=function(K){return!!K&&typeof K==="object"&&Object.getPrototypeOf(K)===Object.prototype};
dUw=function(K){return typeof K==="function"&&wmw in K&&typeof K[wmw]==="function"};
eOw=function(K,X){Object.defineProperty(K,qs,{get:function(){return X}})};
ZK=function(K,X){if(JZ(K)){var F=K.map(function(f){return ZK(f,X)});
eOw(F,X);return F}if(WS3(K)){F={};K=_.D(Object.entries(K));for(var P=K.next();!P.done;P=K.next()){var H=_.D(P.value);P=H.next().value;H=H.next().value;F[P]=ZK(H,X)}eOw(F,X);return F}return yv4(K,X)};
ROl=function(K){if(JZ(K))return K.map(function(H){return ROl(H)});
if(WS3(K)){var X={};K=_.D(Object.entries(K));for(var F=K.next();!F.done;F=K.next()){var P=_.D(F.value);F=P.next().value;P=P.next().value;X[F]=ROl(P)}return X}return dUw(K)?K():K};
hOO=function(){var K={height:0,width:0};if(!WS3(K))throw Error("Ib");var X=Symbol("Jb");return[ZK(K,X),function(F,P){if(F[qs]===X)if(typeof P==="function"){var H=[].concat(_.LZ(ROl(F)));P=P(H)||H;UUn(F,[].concat(_.LZ(P)))}else UUn(F,P);else throw Error("Kb");}]};
UUn=function(K,X){if(dUw(K))K[wmw](X);else if(JZ(K)&&JZ(X))X=ZK(X,K[qs]),K.length=0,K.push.apply(K,_.LZ(X));else if((WS3(K)||JZ(K))&&(JZ(X)||typeof X==="object"&&X!==null)){X=_.D(Object.entries(X));for(var F=X.next();!F.done;F=X.next()){var P=_.D(F.value);F=P.next().value;P=P.next().value;var H=K,f=H[F];Object.hasOwn(K,F)?UUn(f,P):H[F]=ZK(P,K[qs])}}else throw Error("Lb");};
mUl=function(K){return Object.create(Object.assign({},YM,K))};
lrd=function(){var K;return(K=GyO)!=null?K:GyO=mUl({consumerAllowSignalWrites:!0})};
_.Qs=function(K,X,F){F=F===void 0?"":F;K=SU3(K);var P=K[fv];P.debugName=XmO(X==null?void 0:X.debugName,F,"[computed]");(X==null?void 0:X.equals)!=null&&(P.equal=X.equals);return K};
nv=function(K){var X=PM(vSO);try{K()}finally{PM(X)}};
ES9=function(K){if(!K.isDisposed)switch(K.effectType){case arT:tpn.schedule(K);break;case $Uy:OGT.schedule(K);break;case Vp3:gSl.schedule(K);break;default:_.zJ(K.effectType)}};
CDw=function(K){bG3.push(K);return function(){var X=bG3.indexOf(K);X!==-1&&bG3.splice(X,1)}};
iG9=function(){if(cM>0)tpn.flush();else for(var K=_.D(NSy),X=K.next();!X.done;X=K.next())X.value.flush()};
Irn=function(K){for(var X=_.D(K),F=X.next();!F.done;F=X.next()){var P=F.value;for(F=[P];P.parent!==void 0;)P=P.parent,xU9(P)&&K.has(P)&&F.push(P);for(;F.length>0;)P=F.pop(),K.delete(P),P.run()}};
kyP=function(K){cM--;if(K){K=_.D(NSy);for(var X=K.next();!X.done;X=K.next())X.value.clear()}else cM>0||iG9()};
XEn=function(K,X,F){var P=K3P(K);pv={name:F?P+" ("+F+")":P,isReactive:K.componentType!==BM,parent:pv};K=X();pv=pv.parent;return K};
oD=function(){var K=pv;return K?K.isReactive:!1};
Tv=function(K,X){var F=pv;X&&(pv=X);try{return K()}catch(f){K=f;Lv(K,pv);if(K!==F3n){PUM=pv;X=[];for(var P=CJ;P;){var H=void 0;X.push((H=P.debugName)!=null?H:"[context]");H=void 0;P=(H=P.parent)!=null?H:null}HQl=X.reverse()}F3n=K;throw K;}finally{pv=F}};
Lv=function(K,X){try{var F=saM(X);if(F&&!K.componentStack&&(K.componentStack=F,_.Kv.enableComponentStacksInErrorMessages)){var P=K.message+"\n\nComponent stack: "+F;K.stack&&(K.stack=K.stack.replace(K.message,P));K.message=P}}catch(H){}};
saM=function(K){if(Xn(K)&&K.name!==void 0&&K.isReactive!==void 0&&K.parent!==void 0||K===null){for(var X=0,F="";X<20&&K;)F+=K.name+" > ",K=K.parent,X++;K=F.slice(0,-3)}else if(_.Kv.enableContextBasedComponentStacks){a:{for(K=K===void 0?CJ:K;K;){if(stT(K))break a;X=void 0;K=(X=K.parent)!=null?X:null}K=null}K=K.getComponentStack().slice(0,20).join(" > ")}else K="";return K};
K3P=function(K){return K.debugName||K.name||"[component]"};
zEn=function(K,X,F){X=Object.create(X);X.effectFn=K;F&&(X.debugName=F);kL(X);X.componentStack=pv;return X};
_.rs=function(K,X){K=zEn(K,fTO,X);ES9(K)};
_.AZ=function(K){var X=CJ;if(X){var F=pv;duT(X,function(){var P=PM(lrd());try{Tv(function(){return void K()},F)}catch(H){throw _.Kv.enableContextBasedComponentStacks&&Lv(H),H;
}finally{PM(P)}})}};
jj=function(K,X){var F={};(X===void 0||X)&&kL(F);X=_.Ng(F);try{K(F)}finally{_.Ng(X)}return function(){return void eDn(F)}};
_.ws=function(K){return typeof K==="function"?K():(K==null?0:K[DiT])?K.get():K};
_.ys=function(K,X){K=zEn(K,uC4,X);ES9(K)};
qMy=function(K){if(CJ)throw Error("rb");jj(K,!1)};
WM=function(K,X){K=_.Ng(K);try{return DK(X)}finally{_.Ng(K)}};
_.ds=function(K,X){var F=saM(PUM),P,H;var f=(H=(P=HQl)==null?void 0:P.slice())!=null?H:[];X={componentStack:F,contextTrace:f,errorSeverity:3,featureFlags:Iq9(),tagName:X};return[K,X]};
YMT=function(K,X,F){if(Object.hasOwnProperty.call(J9n,K)&&(K=J9n[K],Object.hasOwnProperty.call(K,X)&&(K=K[X],K instanceof Array))){for(var P=null,H=!1,f=0,u=K.length;f<u;++f){var J=K[f],Z=J.contingentAttribute;if(!Z)return J.contract;P===null&&(P={});Z=Object.hasOwnProperty.call(P,Z)?P[Z]:P[Z]=F(Z);if(Z===J.requiredValue)return J.contract;Z==null&&(H=!0)}if(H)return null}X=ZQO[X];return typeof X==="number"?X:null};
ngP=function(K,X,F){var P=null;(K=QaT[K])&&(P=K[X]);return typeof P!=="number"&&((K=QaT["*"])&&(P=K[X]),typeof P!=="number")?!1:!0===Mtl[P][String(F).toLowerCase()]};
pE3=function(K,X){X=YMT(K.toLowerCase(),X,function(){var P;(P=_.Kv.handleError)==null||P.call.apply(P,[_.Kv].concat(_.LZ(_.ds(Error("Qb"),K.toLowerCase()))))});
if(X===null)return null;var F;return(F=c9y[X])!=null?F:null};
BGy=function(K,X,F){if(F===null||F===void 0)return F;K=pE3(K,X);return K===null?F:K(X,F)};
SM4=function(){};
ej=function(K,X){for(;K.length>X;)K.pop()};
ogd=function(K){K=Array(K);ej(K,0);return K};
L3T=function(K,X,F){if(F==null)K.removeAttribute(X);else{var P;(P=X.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":X.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?K.setAttributeNS(P,X,F):K.setAttribute(X,F)}};
TGP=function(K,X,F){K[X]=F};
A94=function(K,X,F){K=K.style;if(typeof F==="string")K.cssText=F;else{K.cssText="";for(var P in F)if(r94.call(F,P)){X=K;var H=P,f=F[P];H.indexOf("-")>=0?X.setProperty(H,f):X[H]=f}}};
jal=function(K,X,F){var P=typeof F;P==="object"||P==="function"?K[X]=F:L3T(K,X,F)};
wEy=function(){var K=new SM4;K[RD.default]=jal;K.style=A94;return K};
y9O=function(K,X,F,P){(P[X]||P[RD.default])(K,X,F)};
diP=function(K,X,F){X=new W3y(X,F);return K.__incrementalDOMData=X};
Ug=function(K,X){if(K.__incrementalDOMData)return K.__incrementalDOMData;var F=K.nodeType===1?K.localName:K.nodeName,P=K.nodeType===1?K.getAttribute("key"):null;X=diP(K,F,K.nodeType===1?P||X:null);if(K.nodeType===1&&(K=K.attributes,F=K.length)){P=X._attrsArr||(X._attrsArr=ogd(F*2));for(var H=0,f=0;H<F;H+=1,f+=2){var u=K[H],J=u.value;P[f]=u.name;P[f+1]=J}}return X};
eEq=function(K,X,F,P,H){return X==F&&P==H};
REM=function(K){for(var X=hZ,F=mh();F!==K;){var P=F.nextSibling;X.removeChild(F);Gv.deleted.push(F);F=P}};
mh=function(){return l_?l_.nextSibling:hZ.firstChild};
vM=function(){l_=mh()};
mil=function(K,X,F){vM();var P;a:{if(P=l_){do{var H=P,f=K,u=X,J=Ug(H,u);if(Uil(H,f,J.nameOrCtor,u,J.key))break a}while(X&&(P=P.nextSibling))}P=null}P||(K==="#text"?(F=aD.createTextNode(""),diP(F,"#text",null),K=F):(P=aD,H=hZ,typeof K==="function"?P=new K:P=(H=K==="svg"?"http://www.w3.org/2000/svg":K==="math"?"http://www.w3.org/1998/Math/MathML":H==null||Ug(H).nameOrCtor==="foreignObject"?null:H.namespaceURI)?P.createElementNS(H,K):P.createElement(K),diP(P,K,X),K=P,F&&K.setAttribute("nonce",F)),Gv.created.push(K),
P=K);F=P;if(F!==l_){if(hE4.indexOf(F)>=0)for(K=hZ,X=F.nextSibling,P=l_;P!==null&&P!==F;)H=P.nextSibling,K.insertBefore(P,X),P=H;else hZ.insertBefore(F,l_);l_=F}};
Goy=function(K,X,F){mil(K,X,F);hZ=l_;l_=null;return hZ};
lT9=function(){REM(null);l_=hZ;hZ=hZ.parentNode};
tZ=function(){l_=hZ.lastChild};
ttl=function(K,X){X=X===void 0?{}:X;var F=X.matches===void 0?eEq:X.matches;return function(P,H,f){var u=Gv,J=aD,Z=hE4,M=$M,n=gs,c=l_,B=hZ,L=Uil;aD=P.ownerDocument;Gv=new vgl(P);Uil=F;$M=[];gs=[];l_=null;var A=hZ=P.parentNode,d,R=aTd.call(P);if((d=R.nodeType===11||R.nodeType===9?R.activeElement:null)&&P.contains(d)){for(R=[];d!==A;)R.push(d),d=d.parentNode||(A?d.host:null);A=R}else A=[];hE4=A;try{return K(P,H,f)}finally{P=Gv,Eg&&P.deleted.length>0&&Eg(P.deleted),aD=J,Gv=u,Uil=L,$M=M,gs=n,l_=c,hZ=B,
hE4=Z}}};
$iT=function(K,X,F,P){b_.push(y9O);b_.push(K);b_.push(X);b_.push(F);b_.push(P)};
Vtq=function(K,X,F){var P=gs;X=X._attrsArr||(X._attrsArr=ogd(P.length));for(var H=!X.length||!1,f=0;f<P.length;f+=2){var u=P[f];if(H)X[f]=u;else if(X[f]!==u)break;var J=P[f+1];if(H||X[f+1]!==J)X[f+1]=J,$iT(K,u,J,F)}if(f<P.length||f<X.length){for(f=H=f;f<X.length;f+=2)Cv[X[f]]=X[f+1];for(f=H;f<P.length;f+=2)H=P[f],u=P[f+1],Cv[H]!==u&&$iT(K,H,u,F),X[f]=H,X[f+1]=u,delete Cv[H];ej(X,P.length);for(var Z in Cv)$iT(K,Z,void 0,F),delete Cv[Z]}K=OQ3;OQ3=F=b_.length;for(Z=K;Z<F;Z+=5)(0,b_[Z])(b_[Z+1],b_[Z+
2],b_[Z+3],b_[Z+4]);OQ3=K;ej(b_,K);ej(P,0)};
Ns=function(K){mil("#text",null);var X=l_;var F=Ug(X);if(F.text!==K){F=F.text=K;for(var P=1;P<arguments.length;P+=1)F=(0,arguments[P])(F);X.data!==F&&(X.data=F)}};
iQd=function(K,X,F){if(F===!1&&ggl.has(X))L3T(K,X,null);else if(X!=="idomKey"&&X!=="skip"&&X!=="skipchildren"&&X!=="children"&&X!=="el"){if(X.startsWith("on"))if(X[2]===":"){if(F===void 0||F===null){var P;(P=_.Kv.handleError)==null||P.call.apply(P,[_.Kv].concat(_.LZ(_.ds(Error("Ub`"+X),K.tagName))));K[X]=void 0;return}if(typeof F!=="object"||F===null)throw Error("Vb`"+X+"`"+typeof F);if(typeof F.getFn!=="function")throw Error("Wb`"+X+"`"+Object.keys(F));var H=F.getFn(0),f=X.slice(3);if((P=oD())&&
K["on"+f]===void 0)K.addEventListener(f,H),_.AZ(function(){return void K.removeEventListener(f,H)});
else if(P||!Egn.includes(f))K["on"+f]=H}else{bQq(K,X,F);return}else if(X.startsWith("data-")&&typeof F==="string")try{F=CUd(F)}catch(u){F="zSoyz"}typeof F!=="function"||K._disposeEffects!=null?(_.Kv.enableAttributeSanitization&&(F=BGy(K.tagName,X,F)),X==="style"?NGl(K,X,F):X.startsWith("prop:")?(X=X.slice(5),K[X]=F):bQq(K,X,F)):(K._signalProps||(K._signalProps=[]),K._signalValues||(K._signalValues=[]),K._signalProps.push(X))}};
xiy=function(K,X,F){F=(F===void 0?{}:F).isReactive;if(X==null?0:X.el){var P=X.el;if(typeof P==="function")P(K);else{var H;(H=P.onRender)==null||H.call(P,K);K._disposeRef||(K._disposeRef=function(){var f;(f=P.onUnmount)==null||f.call(P);delete K._disposeRef},F&&_.AZ(function(){var f;
return void((f=K._disposeRef)==null?void 0:f.call(K))}))}}};
ITO=function(K){return Xn(K)&&i_ in K};
kow=function(K){return ITO(K)?K[i_].flattened:K};
KcP=function(K,X){var F=_.Ls.apply(2,arguments),P;X=(P=X)!=null?P:{};P={};return P.type=K,P.props=X,P.children=F,P[xM]=!0,P};
_.ID=function(K){return K.children};
kM=function(K){var X=Xu9!==KcP;Xu9=K?Fcn:KcP;return X};
_.K9=function(K){return _.XL(K)?"nodeType"in K:!1};
Xo=function(){return document.createTextNode("")};
Fo=function(K){K=document.createTextNode(String(K));K._isSignalTextNode=!0;return K};
zMd=function(K){var X=document.createElement("div");if(Py3(K)&&Us4(K))_.v$(X,Us4(K));else if(K instanceof ji)_.v$(X,K);else if(HLl(K)){if(K.contentKind!==sIy)throw Error("Tb");K=wF(K.toString());_.v$(X,K)}K=_.D(X.childNodes);for(var F=K.next();!F.done;F=K.next())F.value._isSafeOrSanitizedHtmlNode=!0;return X};
Pd=function(K){K=typeof K;return K==="string"||K==="number"||K==="boolean"};
fWy=function(K){return K instanceof zp||Yi(K)||"function"==typeof _.gF&&K instanceof _.gF||!1};
DFT=function(K,X){var F=K.parentElement;if(!F)return X;F.replaceChild(X,K);return X};
uYT=function(K,X){var F=K[0].parentElement;if(F)if(K[0].previousSibling||K[K.length-1].nextSibling){F.insertBefore(X,K[0]);for(var P=K.length-1;P>=0;P--)F.removeChild(K[P])}else F.textContent="",F.appendChild(X);return X};
qjP=function(K,X){if(K[0].parentElement)for(var F=K[0].parentElement,P=X.length,H=K.length,f=P,u=0,J=0,Z=K[H-1].nextSibling,M=null;u<H||J<f;)if(K[u]===X[J])u++,J++;else{for(;K[H-1]===X[f-1];)H--,f--;if(H===u)for(var n=f<P?J?X[J-1].nextSibling:X[f-J]:Z;J<f;){var c=X[J++];F.insertBefore(c,n)}else if(f===J)for(;u<H;)n=K[u],M&&M.has(n)||F.removeChild(n),u++;else if(K[u]===X[f-1]&&X[J]===K[H-1])n=K[--H].nextSibling,F.insertBefore(X[J++],K[u++].nextSibling),F.insertBefore(X[--f],n),K[H]=X[f];else{if(!M)for(M=
new Map,n=J;n<f;)M.set(X[n],n++);n=M.get(K[u]);if(n==null)F.removeChild(K[u]),u++;else if(J<n&&n<f){c=u;for(var B=1,L=void 0;++c<H&&c<f&&(L=M.get(K[c]))!=null&&L===n+B;)B++;if(B>n-J)for(c=K[u];J<n;)F.insertBefore(X[J++],c);else F.replaceChild(X[J++],K[u++])}else u++}}return X};
QI4=function(K,X){var F;X!=null?F=X:F=_.rVl(document).getAppContext();F.get(J_d).JSC$25480_getEventTarget().dispatchEvent(new ZLw(Yjy,K,sIy))};
n3d=function(K){if(Array.isArray(K)){if(K.length>1)throw Error("ec`"+K.length+"`"+K.map(MFT).join(", "));K=K[0]}if(K==null)return null;if(!(K instanceof _.Uv)){var X,F;if((X=window)==null?0:(F=X.trustedTypes)==null?0:F.isScript(K))throw Error("dc");if(String(K).trim().length===0)return null;throw Error("fc`"+MFT(K));}return K};
c_y=function(K){if(Array.isArray(K)){if(K.length>1)throw Error("gc`"+K.length+"`"+K.map(MFT).join(", "));K=K[0]}if(K==null)return null;if(!L0M(K)){if(String(K).trim().length===0)return null;throw Error("hc`"+MFT(K));}return K};
MFT=function(K){return"("+typeof K+") "+(K!=null&&typeof K==="object"?K.constructor.name:typeof K)+" "+K};
sN=function(K,X){function F(){H=!1;X.isControlFlowComponent&&cM++;var f=P[0],u=P[i_].flattened,J=kM(!0);try{var Z=K(),M=pu9(f,Z,P);Array.isArray(M)||(P[i_].flattened=[M]);var n=P[i_].flattened;if(u&&(!Array.isArray(u)||u.length!==0)){var c=Array.isArray(u)?u[0]:u,B=c[Hd],L=c._disposeEffects;c._disposeEffects=void 0;c=Array.isArray(n)?n[0]:n;c[Hd]=B;c[Hd]&&(c[Hd].numNodes=c===n?1:n.length);c._disposeEffects=L}P[0]=M;X.isControlFlowComponent&&kyP(!1)}catch(A){throw X.isControlFlowComponent&&kyP(!0),
A;}finally{kM(J)}}
X=X===void 0?{}:X;var P=Bcl(),H=!0;_.Kv.legacyTriggerSoyRendererEvents&&O99();_.ys(function(){(SjP==null?0:SjP.logger)&&!H?(SjP.logger.logGraft(P[0],F),SjP.logger.resetBuilder()):F()},X.debugName);
return P};
pu9=function(K,X,F){for(;typeof X==="function";)X=X();if(X!=null&&X[xM]){var P,H,f;(f=_.Kv.handleError)==null||f.call.apply(f,[_.Kv].concat(_.LZ(_.ds(Error("ic`"+((P=X.type)==null?void 0:P.TAG_NAME)),(H=X.type)==null?void 0:H.TAG_NAME))))}if(K==null)return X==null?Xo():Pd(X)?Fo(X):fWy(X)?Fo(X.toString()):_.K9(X)?X:X.length===0?Xo():o3n(X,F);if(_.K9(K)){if(X==null)return DFT(K,Xo());if(Pd(X))return LcO(K,X);if(fWy(X))return LcO(K,X.toString());if(_.K9(X))return DFT(K,X);if(X.length===0)return DFT(K,
Xo());X=o3n(X,F);qjP([K],F[i_].flattened);return X}K=zr(K);if(X==null)return uYT(K,Xo());if(Pd(X))return uYT(K,Fo(X));if(fWy(X))return uYT(K,Fo(X.toString()));if(_.K9(X))return qjP(K,[X])[0];if(X.length===0)return uYT(K,Xo());X=o3n(X,F);qjP(K,F[i_].flattened);return X};
LcO=function(K,X){K.nodeType===Node.TEXT_NODE?K.textContent!==String(X)&&(K.textContent=String(X)):K=DFT(K,Fo(X));return K};
zr=function(K,X,F){return TcM(K,X!=null?X:[],F===void 0?!1:F)};
o3n=function(K,X){var F=zr(K,void 0,!0);if(F.length===0)return Xo();X[i_].flattened=F;return K};
TcM=function(K,X,F,P,H){X=X===void 0?[]:X;F=F===void 0?!1:F;H=H===void 0?-1:H;if(K==null)return X;if(K instanceof f9)return K=K.render(),TcM(K,X,F,P,H);if(_.K9(X)&&X.nodeType===Node.ELEMENT_NODE)switch(X.tagName){case "SCRIPT":F=n3d(K);F!==null&&_.Gp(X,F);return;case "STYLE":F=c_y(K);F!==null&&(X.textContent=_.Tj3(F));return}Pd(K)&&(K=Fo(K),P&&F&&(P[H]=K));if(HLl(K)||K instanceof ji||Py3(K)){F=zMd(K);F=Array.from(F.childNodes);F=_.D(F);for(K=F.next();!K.done;K=F.next())r_9(X,K.value);return X}fWy(K)&&
(K=Fo(K.toString()),P&&F&&(P[H]=K));if(_.K9(K))return r_9(X,K);if(Array.isArray(K)){for(var f=0;f<K.length;f++)TcM(K[f],X,F,K,f);return X}if(typeof K==="function"){K=sN(K,{debugName:"qmF2ne"})[0];if(Array.isArray(K)){F=_.D(K);for(K=F.next();!K.done;K=F.next())r_9(X,K.value);return X}P&&F&&(P[H]=K);return r_9(X,K)}if(K!=null&&K[xM]){P=kM(!0);H=Xu9;try{f=H.apply(null,[K.type,K.props].concat(_.LZ(K.children)))}finally{kM(P)}return TcM(f,X,F)}var u;(u=_.Kv.handleError)==null||u.call.apply(u,[_.Kv].concat(_.LZ(_.ds(Error("jc")))));
return X};
Bcl=function(K){var X={};X=Object.assign([],(X[i_]={flattened:[]},X));if(!K)return X;X[0]=o3n(K,X);return X};
r_9=function(K,X){Array.isArray(K)?K.push(X):K.appendChild(X);return K};
Dq=function(K){if(!_.Kv.enableLazyTsx)return K;if(Array.isArray(K)){for(var X=0;X<K.length;X++)K[X]=Dq(K[X]);return K}return K instanceof f9?(K=K.render(),Dq(K)):K};
jI9=function(K,X){var F,P,H=K3P(K),f=function(L){P=L;L=kM(!0);var A=PM(u9);kry("render",H);try{F=Dq(K(X))}finally{KSl("render",H),PM(A),kM(L)}};
f=_.Kv.enableContextPerComponent?PDq(f,H):jj(f,_.Kv.alwaysTrackContexts||!!CJ);stT(P);if(!X.renderedFromIdom){var u=_.Ng(P);try{return A_w(K,X,F),F}finally{_.Ng(u)}}!ITO(F)&&Array.isArray(F)&&(F=Bcl(F));var J=kow(F);u=Array.isArray(J)?J[0]:J;var Z=!1;if(u){var M,n=(M=X==null?void 0:X.idomKey)!=null?M:K;M=J!==u;u._disposeEffects=f;var c=u[Hd]||{},B=ITO(F)?F:c.sourceDynamicRange;Object.assign(c,{key:n,numNodes:M?J.length:1,context:P,higherOrder:!!u[Hd],sourceDynamicRange:B});u[Hd]=c}else Z=!0;(function(){var L=
_.Ng(P);try{A_w(K,X,J)}finally{_.Ng(L)}})();
Z&&f();return F};
wuT=function(K){var X={},F;for(F in K)X={prev$jscomp$23:void 0,next$jscomp$32:void 0},X.prev$jscomp$23=Zq[F],X.next$jscomp$32=K[F],Zq[F]=function(P){return function(){var H=_.Ls.apply(0,arguments);P.prev$jscomp$23.apply(null,_.LZ(H));P.next$jscomp$32.apply(null,_.LZ(H))}}(X)};
y_w=function(){if(oD())throw Error("kc");return Q8};
Wcw=function(K,X){if(!K.__unmounted&&X){K.__unmounted=!0;try{K.didUnmount()}catch(H){var F,P;(P=_.Kv.handleError)==null||P.call.apply(P,[_.Kv].concat(_.LZ(_.ds(H,(F=K.JSC$8275___type)==null?void 0:F.TAG_NAME))))}Zq.didUnmount(K);K.el=null;X.__instance&&delete X.__instance}};
eMw=function(K,X,F){K._signalProps!=null&&K._disposeEffects==null&&((F===void 0?0:F)?K._disposeEffects=jj(function(){return void dF9(K,X)},_.Kv.alwaysTrackContexts||!!CJ):dF9(K,X))};
dF9=function(K,X){_.ys(function(){for(var F=K._signalProps,P=K._signalValues,H=0;H<F.length;H++){var f=F[H],u=X[f]();P[H]!==u&&(P[H]=u,iQd(K,f,u))}},"e3YVbb")};
RMn=function(K,X,F){var P,H=[];K._disposeEffects=jj(function(){_.ys(function(){var f=F();if(f===null||f===void 0)f="";if(Pd(f)||f===null)P!=null||(P=document.createTextNode("")),P.parentNode!==K&&(P._isSignalTextNode=!0,K.insertBefore(P,X)),P.textContent=String(f);else if(HLl(f)||f instanceof ji||Py3(f)){for(var u=H.length>0?H[H.length-1].nextSibling:X,J=_.D(H),Z=J.next();!Z.done;Z=J.next())K.removeChild(Z.value);f=zMd(f);H=Array.from(f.childNodes);f=_.D(H);for(J=f.next();!J.done;J=f.next())K.insertBefore(J.value,
u)}else throw Z=(J=(u=pv)==null?void 0:u.name)!=null?J:"unknown",Error("$b`"+Z+"`"+typeof f);},"VvDgC")},_.Kv.alwaysTrackContexts||!!CJ)};
mFw=function(K,X){var F=_.Ls.apply(2,arguments);X!=null||(X={});return!_.Kv.enableLazyTsx||pv!=null&&!oD()?UFP(K,X,F):new hMq(K,X,F)};
UFP=function(K,X,F){if(K===_.ID)return F;if(typeof K==="function")return pv&&!oD()&&(X.renderedFromIdom=!0),XEn(K,function(){var f=GT4(K,X,F);if(f)return f;F.length>0&&(X.children=F.length===1?F[0]:F);if(K.componentType===BM){var u;PDq(function(){var J=X;if(K.componentType!==BM)u=!1;else{J||(J={});var Z=new Mu(J,K),M=PM(u9);try{var n=Z.render(J)}finally{PM(M)}n instanceof HTMLElement?(n.__instance=Z,Z.el=n,Z.JSC$8275___type=K,K.TAG_NAME=n.tagName.toLowerCase(),Zq.didPatch(Z),u=n):u=n}},K.name);
if(u)return u}return jI9(K,X)},X.debugInstance);
var P=lWO(K,X),H;for(H in X)iQd(P,H,X[H]);eMw(P,X);zr(F,P);xiy(P,X,{isReactive:!0});v3M(P,X);return P};
lWO=function(K,X){K=(aWw.has(K.toLowerCase())?0:tFT.has(K.startsWith("svg:")?K.replace("svg:",""):K))?document.createElementNS("http://www.w3.org/2000/svg",K.startsWith("svg:")?K.replace("svg:",""):K):$Fd(K,X)||document.createElement(K);K[OLO]=!0;return K};
VF4=function(K){if(K){var X;(X=K._disposeRef)==null||X.call(K);var F;(F=K._disposeEffects)==null||F.call(K);K.__instance&&K.__instance instanceof n9&&(X=K.__instance,Wcw(X,K),X instanceof Mu&&X.disposeEffects());for(X=0;X<K.childNodes.length;X++)VF4(K.childNodes[X])}};
E3O=function(K){g3P.push(K)===1&&requestAnimationFrame(function(){setTimeout(function(){var X=[].concat(_.LZ(g3P));g3P=[];X=_.D(X);for(var F=X.next();!F.done;F=X.next()){F=F.value;try{for(var P=0;P<F.length;P++)VF4(F[P])}catch(H){P=F=void 0,(P=(F=_.Kv).handleError)==null||P.call.apply(P,[F].concat(_.LZ(_.ds(H))))}}})})};
_.Q=function(K,X){return Xu9.apply(null,[K,X].concat(_.LZ(_.Ls.apply(2,arguments))))};
Cyy=function(){var K=document.body.firstElementChild;window.ng||K.__ngContext__||(K.__ngContext__={},K.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=bL4)};
_.p=function(K){var X=K.cond;if(X===void 0)return K.else&&K.else();var F=_.Qs(function(){return!!X()},void 0,"JHVi8"),P=function(){var H=X();
if(!H){var f;(f=_.Kv.handleError)==null||f.call.apply(f,[_.Kv].concat(_.LZ(_.ds(Ncy.nonNullableCondIsNull()))))}return H};
return sN(function(){var H=F(),f;jj(function(){var u=PM(u9);try{f=Dq(H?K.then(P):K.else&&K.else())}finally{PM(u)}},!0);
return f},{debugName:K.debugInstance,
isControlFlowComponent:!0})};
iLT=function(K){return _.p(K)};
_.cd=function(K){return K.keyBy==="INDEX"?xFT(K):IWl(K)};
kTn=function(K){K=_.D(K);for(var X=K.next();!X.done;X=K.next()){var F=void 0;(F=X.value)==null||F()}};
IWl=function(K){var X=K.keyBy===void 0||K.keyBy==="REFERENCE",F=X?function(n){return n}:K.keyBy,P=[],H=[],f=[],u=[],J=[],Z=[],M=!0;
_.AZ(function(){kTn(u)});
return sN(function(){var n=K.each(),c=n.length;if(c===0){if(P.length===0&&!M)return f;kTn(u);P=n;H=[];for(n=0;n<P.length;n++)H.push(F(P[n]));f=[];u=[];J=[];Z=[];K.fallback&&(u[0]=K7q(function(){f[0]=Dq(K.fallback())}));
M=!1;return f}for(var B=new XbP,L=P.length-1;L>=0;L--)B.push(H[L],L);L=Array(c);for(var A=Array(c),d=Array(c),R=Array(c),l=Array(X?0:c),a={i$jscomp$442:0};a.i$jscomp$442<c;a={i$jscomp$442:a.i$jscomp$442,item$jscomp$103:void 0,key$jscomp$523:void 0},a.i$jscomp$442++){a.item$jscomp$103=n[a.i$jscomp$442];a.key$jscomp$523=F(a.item$jscomp$103);var E=B.pop(a.key$jscomp$523);E!=null?(d[a.i$jscomp$442]=f[E],A[a.i$jscomp$442]=H[E],L[a.i$jscomp$442]=u[E],R[a.i$jscomp$442]=J[E],X||(l[a.i$jscomp$442]=Z[E]),nv(function(V){return function(){R[V.i$jscomp$442](V.i$jscomp$442);
if(!X)l[V.i$jscomp$442](V.item$jscomp$103)}}(a)),delete u[E]):L[a.i$jscomp$442]=K7q(function(V){return function(){var x=_.D(_.u_(V.i$jscomp$442,void 0,"Fqk1zd")),N=x.next().value;
x=x.next().value;R[V.i$jscomp$442]=x;A[V.i$jscomp$442]=V.key$jscomp$523;if(X)d[V.i$jscomp$442]=Dq(K.children(V.item$jscomp$103,N));else{var Dl=_.D(_.u_(V.item$jscomp$103,void 0,"GBj5de"));x=Dl.next().value;Dl=Dl.next().value;l[V.i$jscomp$442]=Dl;d[V.i$jscomp$442]=Dq(K.children(x,N))}}}(a))}kTn(u);
P=n;H=A;f=d;u=L;J=R;Z=l;M=!1;return d},{debugName:K.debugInstance,
isControlFlowComponent:!0})};
xFT=function(K){var X=[],F=[],P=[],H=[],f=!1;_.AZ(function(){for(var u=_.D(H),J=u.next();!J.done;J=u.next())J=J.value,J()});
return sN(function(){var u=K.each();f&&u.length>0&&(H.pop()(),X.pop(),f=!1);for(var J=Array(u.length),Z={i$jscomp$443:0};Z.i$jscomp$443<u.length;Z={i$jscomp$443:Z.i$jscomp$443},Z.i$jscomp$443++)if(Z.i$jscomp$443<X.length)X[Z.i$jscomp$443]!==u[Z.i$jscomp$443]&&(nv(function(n){return function(){return void F[n.i$jscomp$443](u[n.i$jscomp$443])}}(Z)),X[Z.i$jscomp$443]=u[Z.i$jscomp$443]),J[Z.i$jscomp$443]=P[Z.i$jscomp$443];
else{var M=K7q(function(n){return function(){X[n.i$jscomp$443]=u[n.i$jscomp$443];var c=_.D(_.u_(u[n.i$jscomp$443],void 0,"kGMqJe")),B=c.next().value;c=c.next().value;F[n.i$jscomp$443]=c;J[n.i$jscomp$443]=Dq(K.children(B,n.i$jscomp$443))}}(Z));
H[Z.i$jscomp$443]=M}for(;X.length>u.length;)X.pop(),H.pop()(),F.pop();u.length===0&&!f&&K.fallback&&(Z=K7q(function(){J[0]=Dq(K.fallback())}),H[0]=Z,f=!0);
return P=J},{debugName:K.debugInstance,
isControlFlowComponent:!0})};
K7q=function(K){var X=CJ;return jj(function(F){var P=PM(u9);try{F.parent=X,K(F)}finally{PM(P)}},!1)};
_.p9=function(K){return K};
_.Bd=function(K){return{isDefault:!0,children:K.children}};
_.S8=function(K){var X=F7q(K),F=_.Qs(function(){return Pvy(X)},void 0,"F1PF4");
return sN(function(){var P=F(),H;jj(function(){var f=PM(u9);try{H=Dq(P())}finally{PM(f)}});
return H},{debugName:K.debugInstance,
isControlFlowComponent:!0})};
F7q=function(K){K=K.children;return Array.isArray(K)?K:[K]};
HDP=function(K){var X=K.props;K=K.getChildren()[0];return X.when?{when:X.when,children:K}:{isDefault:!0,children:K}};
Pvy=function(K){var X=function(){return null};
K=_.D(K);for(var F=K.next();!F.done;F=K.next())if(F=F.value,F!=null&&F[xM]&&(F=F.type===_.Bd?{isDefault:!0,children:F.children[0]}:{when:F.props.when,children:F.children[0]}),F instanceof f9&&(F=HDP(F)),F.isDefault)X=F.children;else if(F.when())return F.children;return X};
s2l=function(K){var X=null,F;return{value:null,onRender:function(P){if(F&&P!==F){var H;(H=X)==null||H();F._disposeRef=void 0}F=P;X=K(P)||null},
onUnmount:function(){var P;(P=X)==null||P();X=null}}};
zbw=function(K){var X=y_w();if(X==null)throw _.oU.PRIMITIVE_INVALID_HOOK_CALL();var F=X.hookCounter++;X.hooks||(X.hooks=[]);var P=X.hooks;P[F]||(P[F]={key:K,host:X});if(K!==P[F].key){if(X.JSC$8275___type){var H;K=(H=X.JSC$8275___type)==null?void 0:H.name}else K=X instanceof Mu?K3P(X.functionComponent):"<"+X.el.tagName.toLowerCase()+">";throw _.oU.OUT_OF_ORDER_HOOK_CALL(K);}return P[F]};
fpM=function(K,X){return!K||K.length!==(X==null?void 0:X.length)||K.some(function(F,P){return F!==X[P]})};
Dzl=function(K,X){var F=zbw("onChange"),P=y_w();fpM(F.deps,X)&&(F.deps=X,F.pendingEffect=K,P.__syncEffects||(P.__syncEffects=[]),P.__syncEffects.push(F))};
_.L9=function(K,X){var F=F===void 0?{enableDevtools:!1}:F;var P=_.Kv.legacyTriggerSoyRendererEvents,H=F.appContext,f=Tv(function(){var u=PM(u9);try{return jj(function(){var J=_.rVl(_.yf(K)),Z;var M=$uP({rootElement:{value:K},appContext:H||(J==null?void 0:(Z=J.getOptionalAppContext)==null?void 0:Z.call(J)),dispatcher:J});J=_.Ng(M);M=kM(!0);cM++;try{zr(X(),K),kyP(!1)}catch(n){throw kyP(!0),n;}finally{kM(M),_.Ng(J)}},!1)}catch(J){throw _.Kv.enableContextBasedComponentStacks&&Lv(J),J;
}finally{PM(u)}});
K[uSO]=!0;P&&QI4(K,H);return function(){K.textContent="";f();K[uSO]=!1}};
_.Tr=function(K){if(xU9(Fn)){var X;(X=_.Kv.handleError)==null||X.call.apply(X,[_.Kv].concat(_.LZ(_.ds(Error("Zb")))))}var F=CJ,P=pv;Promise.resolve().then(function(){if(F&&!F.isDisposed){var H=_.Ng(F);try{Tv(function(){return void K()},P)}catch(f){throw _.Kv.enableContextBasedComponentStacks&&Lv(f),f;
}finally{_.Ng(H)}}})};
r2=function(K,X){Dzl(function(){return DK(K)},X)};
_.AV=function(K){oD()?_.Tr(function(){DK(K)}):Dzl(function(){return DK(K)},[])};
Jgl=function(K){var X=[].concat(_.LZ(K));K.length=0;K=_.D(X);for(X=K.next();!X.done;X=K.next()){X=X.value;qiT(X);var F=X.pendingEffect;X.pendingEffect=null;if(F=F==null?void 0:F())X.pendingCleanup=F}};
qiT=function(K){var X=K.pendingCleanup;K.pendingCleanup=null;X==null||X()};
ZDy=function(K,X){if(oD())return K();var F=zbw("useMemoInternal");fpM(F.deps,X)&&(F.deps=X,F.value=K());return F.value};
Yi9=function(K,X){return ZDy(K,X)};
j8=function(K){return ZDy(K,[])};
w2=function(K){return j8(function(){return{value:K}})};
_.y8=function(K,X){if(!K)return null;K=Object.keys(K);K=_.D(K);for(var F=K.next();!F.done;F=K.next()){F=F.value;var P=F.toLowerCase();if(P.indexOf(X,P.length-X.length)>-1)return F}return null};
_.d2=function(){var K=arguments,X=_.Wd;K.length>1?X[K[0]]=K[1]:K.length===1&&Object.assign(X,K[0])};
_.e8=function(K,X){return K in _.Wd?_.Wd[K]:X};
_.RU=function(K,X){return!!_.e8(K,X)};
Q2M=function(K){var X=_.Wd.EXPERIMENT_FLAGS;return X?X[K]:void 0};
nhP=function(K){MWl.forEach(function(X){return X(K)})};
_.hV=function(K){return K&&window.yterr?function(){try{return K.apply(this,arguments)}catch(X){_.UN(X)}}:K};
_.UN=function(K){var X=_.mz("yt.logging.errors.log");X?X(K,"ERROR",void 0,void 0,void 0,void 0,void 0):(X=_.e8("ERRORS",[]),X.push([K,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.d2("ERRORS",X));nhP(K)};
_.Gr=function(K,X,F,P,H){var f=_.mz("yt.logging.errors.log");f?f(K,"WARNING",X,F,P,void 0,H):(f=_.e8("ERRORS",[]),f.push([K,"WARNING",X,F,P,void 0,H]),_.d2("ERRORS",f))};
pby=function(K,X){X=K.split(X);for(var F={},P=0,H=X.length;P<H;P++){var f=X[P].split("=");if(f.length===1&&f[0]||f.length===2)try{var u=cgP(f[0]||""),J=cgP(f[1]||"");if(u in F){var Z=F[u];Array.isArray(Z)?_.I3(Z,J):F[u]=[Z,J]}else F[u]=J}catch(B){var M=B,n=f[0],c=String(pby);M.args=[{key:n,value:f[1],query:K,method:Bgw===c?"unchanged":c}];SiP.hasOwnProperty(n)||_.Gr(M)}}return F};
ohn=function(K){var X=[];_.T8.forEach(K,function(F,P){var H=_.l9(P);_.vd(Array.isArray(F)?F:[F],function(f){f==""?X.push(H):X.push(H+"="+_.l9(f))})});
return X.join("&")};
_.aU=function(K){K.charAt(0)==="?"&&(K=K.substring(1));return pby(K,"&")};
_.tV=function(K){return K.indexOf("?")!==-1?(K=(K||"").split("#")[0],K=K.split("?",2),_.aU(K.length>1?K[1]:K[0])):{}};
_.$U=function(K,X){return L7M(K,X||{},!0)};
TgM=function(K,X){return L7M(K,X||{},!1)};
L7M=function(K,X,F){var P=K.split("#",2);K=P[0];P=P.length>1?"#"+P[1]:"";var H=K.split("?",2);K=H[0];H=_.aU(H[1]||"");for(var f in X)if(F||!_.T8.containsKey(H,f))H[f]=X[f];return _.ON(K,H)+P};
b9=function(K){if(!X)var X=window.location.href;var F=_.V8(K)[1]||null,P=_.g2(K);return F&&P?EN(K,X):P?_.g2(X)===P&&(Number(_.V8(X)[4]||null)||null)===(Number(_.V8(K)[4]||null)||null):!0};
_.Ag3=function(K){K=rgP(K);return K===null?!1:K[0]==="com"&&K[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
rgP=function(K){K=_.g2(K);return K!==null?K.split(".").reverse():null};
cgP=function(K){return K&&K.match(j2y)?K:C9(K)};
_.Nu=function(K){return new wb4(K)};
_.i9=function(){ygl||(ygl=new W7P);return ygl};
ebw=function(K){var X=_.xU,F,P;_.q(function(H){F=_.i9();return(P=F.resolve(_.Nu(X)))?(K(P),H.return(Promise.resolve(P))):H.return(F.resolve(new dzM(X)).then(function(f){K(f);return f}))})};
_.S=function(K){K=IU(K);return typeof K==="string"&&K==="false"?!1:!!K};
_.kU=function(K,X){K=IU(K);return K===void 0&&X!==void 0?X:Number(K||0)};
RbT=function(K){K=IU(K);return Array.isArray(K)?_.AE(K,function(X){return Number(X||0)}):[Number(K||0)]};
_.KG=function(K){K=IU(K);return K!==void 0?String(K):""};
_.X$=function(K){K=IU(K);return Array.isArray(K)?_.AE(K,function(X){return String(X||"")}):[String(K||"")]};
UzT=function(){return _.e8("EXPERIMENTS_TOKEN","")};
IU=function(K){return _.e8("EXPERIMENT_FLAGS",{})[K]};
hb9=function(){for(var K=[],X=_.e8("EXPERIMENTS_FORCED_FLAGS",{}),F=_.D(Object.keys(X)),P=F.next();!P.done;P=F.next())P=P.value,K.push({key:P,value:String(X[P])});F=_.e8("EXPERIMENT_FLAGS",{});P=_.D(Object.keys(F));for(var H=P.next();!H.done;H=P.next())H=H.value,H.startsWith("force_")&&X[H]===void 0&&K.push({key:H,value:String(F[H])});return K};
GBn=function(){if(!mzn)return null;var K=mzn();return"open"in K?K:null};
_.lpd=function(K){switch(_.F$(K)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.F$=function(K){return K&&"status"in K?K.status:-1};
_.Pm=function(K,X){typeof K==="function"&&(K=_.hV(K));return window.setTimeout(K,X)};
_.Hm=function(K,X){typeof K==="function"&&(K=_.hV(K));return window.setInterval(K,X)};
_.sU=function(K){window.clearTimeout(K)};
apT=function(K){K=_.tV(K);for(var X=_.D(vhn),F=X.next();!F.done;F=X.next())if(K[F.value]!==void 0)return!0;return!1};
ODT=function(K,X,F,P,H,f,u,J){F=F===void 0?"GET":F;P=P===void 0?"":P;J=J===void 0?!1:J;var Z=GBn();if(!Z)return null;var M=function(){(Z&&"readyState"in Z?Z.readyState:0)===4&&X&&_.hV(X)(Z)};
"onloadend"in Z?Z.addEventListener("loadend",M,!1):Z.onreadystatechange=M;_.S("debug_forward_web_query_parameters")&&(K=tWl(K,window.location.search));Z.open(F,K,!0);f&&(Z.responseType=f);u&&(Z.withCredentials=!0);F=F==="POST"&&(window.FormData===void 0||!(P instanceof FormData));if(H=$zd(K,H))for(var n in H)Z.setRequestHeader(n,H[n]),"content-type"===n.toLowerCase()&&(F=!1);F&&Z.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(J&&"setAttributionReporting"in XMLHttpRequest.prototype){K=
{eventSourceEligible:!0,triggerEligible:!1};try{Z.setAttributionReporting(K)}catch(c){_.Gr(c)}}Z.send(P);return Z};
$zd=function(K,X){X=X===void 0?{}:X;var F=b9(K),P=_.e8("INNERTUBE_CLIENT_NAME"),H=_.S("web_ajax_ignore_global_headers_if_set"),f;for(f in VWT){var u=_.e8(VWT[f]),J=f==="X-Goog-AuthUser"||f==="X-Goog-PageId";f!=="X-Goog-Visitor-Id"||u||(u=_.e8("VISITOR_DATA"));var Z;if(!(Z=!u)){if(!(Z=F||(_.g2(K)?!1:!0))){Z=K;var M;if(M=_.S("add_auth_headers_to_remarketing_google_dot_com_ping")&&f==="Authorization"&&(P==="TVHTML5"||P==="TVHTML5_UNPLUGGED"||P==="TVHTML5_SIMPLY"))M=rgP(Z),M=M===null?!1:M[1]==="google"?
!0:M[2]==="google"?M[0]==="au"&&M[1]==="com"?!0:M[0]==="uk"&&M[1]==="co"?!0:!1:!1;M&&(Z=_.zy(Z)||"",Z=Z.split("/"),Z="/"+(Z.length>1?Z[1]:""),M=Z==="/pagead");Z=M?!0:!1}Z=!Z}Z||H&&X[f]!==void 0||P==="TVHTML5_UNPLUGGED"&&J||(X[f]=u)}"X-Goog-EOM-Visitor-Id"in X&&"X-Goog-Visitor-Id"in X&&delete X["X-Goog-Visitor-Id"];if(F||!_.g2(K))X["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(F||!_.g2(K)){try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(c){}n&&(X["X-YouTube-Time-Zone"]=
n)}document.location.hostname.endsWith("youtubeeducation.com")||!F&&_.g2(K)||(X["X-YouTube-Ad-Signals"]=ohn(ghy()));return X};
_.Ehy=function(K,X){var F=_.g2(K);_.S("debug_handle_relative_url_for_query_forward_killswitch")||!F&&b9(K)&&(F=document.location.hostname);var P=_.zy(K);P=(F=F&&(F.endsWith("youtube.com")||F.endsWith("youtube-nocookie.com")))&&P&&P.startsWith("/api/");if(!F||P)return K;var H=_.aU(X),f={};_.vd(vhn,function(u){H[u]&&(f[u]=H[u])});
return TgM(K,f)};
bD3=function(K,X){X.method="POST";X.postParams||(X.postParams={});return _.fG(K,X)};
CvT=function(K,X){var F=_.e8("XSRF_FIELD_NAME"),P;X.headers&&(P=X.headers["Content-Type"]);return!X.excludeXsrf&&(!_.g2(K)||X.withCredentials||_.g2(K)===document.location.hostname)&&X.method==="POST"&&(!P||P==="application/x-www-form-urlencoded")&&!(X.postParams&&X.postParams[F])};
_.fG=function(K,X){var F=X.format||"JSON";K=Ngl(K,X);var P=iD4(K,X),H=!1,f=xzw(K,function(Z){if(!H){H=!0;J&&_.sU(J);var M=_.lpd(Z),n=null,c=400<=Z.status&&Z.status<500,B=500<=Z.status&&Z.status<600;if(M||c||B)n=Ip3(K,F,Z,X.convertToSafeHtml);M&&(M=kBP(F,Z,n));n=n||{};c=X.context||_.FP;M?X.onSuccess&&X.onSuccess.call(c,Z,n):X.onError&&X.onError.call(c,Z,n);X.onFinish&&X.onFinish.call(c,Z,n)}},X.method,P,X.headers,X.responseType,X.withCredentials);
P=X.timeout||0;if(X.onTimeout&&P>0){var u=X.onTimeout;var J=_.Pm(function(){H||(H=!0,f.abort(),_.sU(J),u.call(X.context||_.FP,f))},P)}return f};
Ngl=function(K,X){X.includeDomain&&(K=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+K);var F=_.e8("XSRF_FIELD_NAME");if(X=X.urlParams)X[F]&&delete X[F],K=_.$U(K,X);return K};
iD4=function(K,X){var F=_.e8("XSRF_FIELD_NAME"),P=_.e8("XSRF_TOKEN"),H=X.postBody||"",f=X.postParams;CvT(K,X)&&(f||(f={}),f[F]=P);(_.S("ajax_parse_query_data_only_when_filled")&&f&&Object.keys(f).length>0||f)&&typeof H==="string"&&(H=_.aU(H),_.T8.extend(H,f),H=X.postBodyFormat&&X.postBodyFormat==="JSON"?JSON.stringify(H):_.Dr(H));f=H||f&&!_.T8.isEmpty(f);!KH4&&f&&X.method!=="POST"&&(KH4=!0,_.UN(Error("Dc")));return H};
Ip3=function(K,X,F,P){var H=null;switch(X){case "JSON":try{var f=F.responseText}catch(u){throw P=Error("Ec"),P.params=K,_.Gr(P),u;}K=F.getResponseHeader("Content-Type")||"";f&&K.indexOf("json")>=0&&(f.substring(0,5)===")]}'\n"&&(f=f.substring(5)),H=JSON.parse(f));break;case "XML":if(K=(K=F.responseXML)?XgP(K):null)H={},_.vd(K.getElementsByTagName("*"),function(u){H[u.tagName]=FHl(u)})}P&&PXl(H);
return H};
PXl=function(K){if(_.XL(K))for(var X in K)X==="html_content"||zn(X,"_html")?K[X]=wF(K[X]):PXl(K[X])};
kBP=function(K,X,F){if(X&&X.status===204)return!0;switch(K){case "JSON":return!!F;case "XML":return Number(F&&F.return_code)===0;case "RAW":return!0;default:return!!F}};
XgP=function(K){return K?(K=("responseXML"in K?K.responseXML:K).getElementsByTagName("root"))&&K.length>0?K[0]:null:null};
FHl=function(K){var X="";_.vd(K.childNodes,function(F){X+=F.nodeValue});
return X};
HyP=function(K){if(K.name==="JavaException")return!0;K=K.stack;return K.includes("chrome://")||K.includes("-extension://")||K.includes("webkit-masked-url://")};
sJP=function(K){if(!K.stack)return!0;var X=!K.stack.includes("\n");return X&&K.stack.includes("ErrorType: ")||X&&K.stack.includes("Anonymous function (Unknown script")||K.stack.toLowerCase()==="not available"||K.fileName==="user-script"||K.fileName.startsWith("user-script:")?!0:!1};
_.uD=function(K){_.LJ.call(this);this.JSC$8446_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!K};
fvM=function(K,X){var F=K.length,P=0,H=function(){return K.charCodeAt(P++)};
do{var f=zFM(H);if(f===Infinity)break;var u=f>>3;switch(f&7){case 0:f=zFM(H);if(u===X)return f;break;case 1:if(u===X)return;P+=8;break;case 2:f=zFM(H);if(u===X)return K.substr(P,f);P+=f;break;case 5:if(u===X)return;P+=4;break;default:return}}while(P<F)};
zFM=function(K){var X=K(),F=X&127;if(X<128)return F;X=K();F|=(X&127)<<7;if(X<128)return F;X=K();F|=(X&127)<<14;if(X<128)return F;X=K();return X<128?F|(X&127)<<21:Infinity};
u1w=function(K,X,F,P){if(K)if(Array.isArray(K)){var H=P;for(P=0;P<K.length&&!(K[P]&&(H+=D$w(P,K[P],X,F),H>500));P++);P=H}else if(typeof K==="object")for(H in K){if(K[H]){var f=H;var u=K[H],J=X,Z=F;f=typeof u!=="string"||f!=="clickTrackingParams"&&f!=="trackingParams"?0:(u=fvM(atob(u.replace(/-/g,"+").replace(/_/g,"/")),2))?D$w(f+".ve",u,J,Z):0;P+=f;P+=D$w(H,K[H],X,F);if(P>500)break}}else F[X]=qU(K),P+=F[X].length;else F[X]=qU(K),P+=F[X].length;return P};
D$w=function(K,X,F,P){F+="."+K;K=qU(X);P[F]=K;return F.length+K.length};
qU=function(K){try{return(typeof K==="string"?K:String(JSON.stringify(K))).substr(0,500)}catch(X){return"unable to serialize "+typeof K+" ("+X.message+")"}};
qcP=function(K){switch(K){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}};
_.Zr=function(K,X,F,P,H){_.Jv.set(K,X,{maxAge:F,path:"/",domain:P===void 0?"youtube.com":P,secure:H===void 0?!1:H})};
_.JDP=function(K,X,F){_.Jv.remove(K,X===void 0?"/":X,F===void 0?"youtube.com":F)};
_.YS=function(){if(_.S("embeds_web_enable_cookie_detection_fix")){if(!_.FP.navigator.cookieEnabled)return!1}else if(!_.Jv.isEnabled())return!1;if(!_.Jv.isEmpty())return!0;_.S("embeds_web_enable_cookie_detection_fix")?_.Jv.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.Jv.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.Jv.get("TESTCOOKIESENABLED")!=="1")return!1;_.Jv.remove("TESTCOOKIESENABLED");return!0};
Zy4=function(){var K=_.FP.navigator;return K?K.connection:void 0};
Ycl=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(K){}};
_.M44=function(){var K=Zy4();if(K){var X=QJl[K.type||"unknown"]||"CONN_UNKNOWN";K=QJl[K.effectiveType||"unknown"]||"CONN_UNKNOWN";X==="CONN_CELLULAR_UNKNOWN"&&K!=="CONN_UNKNOWN"&&(X=K);if(X!=="CONN_UNKNOWN")return X;if(K!=="CONN_UNKNOWN")return K}};
cDl=function(){var K=Zy4();if(K!=null&&K.effectiveType)return nr3.hasOwnProperty(K.effectiveType)?nr3[K.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.MU=function(){try{return _.Qq(),!0}catch(K){return!1}};
_.Qq=function(K){if(_.e8("DATASYNC_ID")!==void 0)return _.e8("DATASYNC_ID");throw new _.nG("Datasync ID not set",K===void 0?"unknown":K);};
_.cm=function(K){this.mechanism=K};
pG=function(K){this.mechanism=K};
Bm=function(K){this.storage_=K;this.cachedIsStorageAvailable_=null};
pg3=function(){var K=null;try{K=_.FP.localStorage||null}catch(X){}Bm.call(this,K)};
B_3=function(){var K=null;try{K=_.FP.sessionStorage||null}catch(X){}Bm.call(this,K)};
Sp=function(K,X){this.mechanism_=K;this.JSC$8548_prefix_=X+"::"};
_.ScO=function(K){var X=new pg3;return X.isAvailable()?K?new Sp(X,K):X:null};
_.orw=function(K){var X=new B_3;return X.isAvailable()?K?new Sp(X,K):X:null};
T_3=function(){var K;return(K=LHw())==null?void 0:K.get("LAST_RESULT_ENTRY_KEY",!0)};
_.rS=function(K){rDy||(_.ot?_.ot.logError(K):(_.Ty.push({type:"ERROR",payload:K}),_.Ty.length>10&&_.Ty.shift()))};
Av=function(K,X){rDy||(_.ot?_.ot.logEvent(K,X):(_.Ty.push({type:"EVENT",eventType:K,payload:X}),_.Ty.length>10&&_.Ty.shift()))};
jp=function(K){if(K.indexOf(":")>=0)throw Error("Lc");};
wS=function(K){return K.substr(0,K.indexOf(":"))||K};
wgy=function(){return(AD3||jJy)&&yq("applewebkit")&&!yq("version")&&(!yq("safari")||yq("gsa/"))};
yq=function(K){var X=_.nO();return X?X.toLowerCase().indexOf(K)>=0:!1};
d$4=function(K,X,F,P){X=wS(X);var H=K instanceof Error?K:Error("Mc`"+K);if(H instanceof Wm)return H;K={objectStoreNames:F,dbName:X,dbVersion:P};if(H.name==="QuotaExceededError")return new Wm("QUOTA_EXCEEDED",K);if(_.dS&&H.name==="UnknownError")return new Wm("QUOTA_MAYBE_EXCEEDED",K);if(H instanceof yDO)return new Wm("MISSING_INDEX",Object.assign({},K,{objectStore:H.objectStore,index:H.index}));if(H.name==="InvalidStateError"&&WH4.some(function(f){return H.message.includes(f)}))return new Wm("EXECUTE_TRANSACTION_ON_CLOSED_DB",
K);
if(H.name==="AbortError")return new Wm("UNKNOWN_ABORT",K,H.message);H.args=[Object.assign({},K,{name:"IdbError",originalName:H.name})];H.level="WARNING";return H};
ep=function(K,X,F){var P=T_3();return new Wm("IDB_NOT_SUPPORTED",{context:{caller:K,publicName:X,version:F,hasSucceededOnce:P==null?void 0:P.hasSucceededOnce}})};
eFP=function(K){if(!K)throw Error();throw K;};
RFy=function(K){return K};
U$P=function(K,X,F){var P=function(){try{K.removeEventListener("success",H),K.removeEventListener("error",f)}catch(u){}},H=function(){X(K.result);
P()},f=function(){F(K.error);
P()};
K.addEventListener("success",H);K.addEventListener("error",f)};
hF9=function(K){return new Promise(function(X,F){U$P(K,X,F)})};
hv=function(K){return new Rt(new UU(function(X,F){U$P(K,X,F)}))};
m$4=function(K,X){return new Rt(new UU(function(F,P){var H=function(){var f=K?X(K):null;f?f.then(function(u){K=u;H()},P):F()};
H()}))};
lvl=function(K,X,F){return new Promise(function(P,H){var f=X!==void 0?self.indexedDB.open(K,X):self.indexedDB.open(K);var u=F.blocked,J=F.blocking,Z=F.terminated,M=F.upgrade,n=F.closed,c,B=function(){c||(c=new mS(f.result,{closed:n}));return c};
f.addEventListener("upgradeneeded",function(L){try{if(L.newVersion===null)throw Error("Rc");if(f.transaction===null)throw Error("Sc");L.dataLoss&&L.dataLoss!=="none"&&Av("IDB_DATA_CORRUPTED",{reason:L.dataLossMessage||"unknown reason",dbName:wS(K)});var A=B(),d=new GYl(f.transaction);M&&M(A,function(R){return L.oldVersion<R&&L.newVersion>=R},d);
d.done.catch(function(R){H(R)})}catch(R){H(R)}});
f.addEventListener("success",function(){var L=f.result;J&&L.addEventListener("versionchange",function(){J(B())});
L.addEventListener("close",function(){Av("IDB_UNEXPECTEDLY_CLOSED",{dbName:wS(K),dbVersion:L.version});Z&&Z()});
P(B())});
f.addEventListener("error",function(){H(f.error)});
u&&f.addEventListener("blocked",function(){u()})})};
vr4=function(K,X,F){F=F===void 0?{}:F;return lvl(K,X,F)};
_.lD=function(K,X){X=X===void 0?{}:X;var F,P,H,f;return _.q(function(u){if(u.nextAddress==1)return _.s2(u,2),F=self.indexedDB.deleteDatabase(K),P=X,(H=P.blocked)&&F.addEventListener("blocked",function(){H()}),_.Y(u,hF9(F),4);
if(u.nextAddress!=2)return _.Gy(u,0);f=_.qc(u);throw d$4(f,K,"",-1);})};
t4y=function(K,X){var F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,_.vm(avy,X),2);F=P.yieldResult;return P.return(_.at(F,["databases"],{enableRetries:!0,mode:"readwrite"},function(H){var f=H.objectStore("databases");return f.get(K.actualName).then(function(u){if(u?K.actualName!==u.actualName||K.publicName!==u.publicName||K.userIdentifier!==u.userIdentifier:1)return f.put(K).then(function(){})})}))})};
_.tv=function(K,X){var F;return _.q(function(P){if(P.nextAddress==1)return K?_.Y(P,_.vm(avy,X),2):P.return();F=P.yieldResult;return P.return(F.delete("databases",K))})};
_.$$d=function(K,X){var F,P;return _.q(function(H){return H.nextAddress==1?(F=[],_.Y(H,_.vm(avy,X),2)):H.nextAddress!=3?(P=H.yieldResult,_.Y(H,_.at(P,["databases"],{enableRetries:!0,mode:"readonly"},function(f){F.length=0;return $S(f.objectStore("databases"),{},function(u){K(u.getValue())&&F.push(u.getValue());return u.continue()})}),3)):H.return(F)})};
Oyy=function(K,X){return _.$$d(function(F){return F.publicName===K&&F.userIdentifier!==void 0},X)};
ErM=function(){var K,X,F,P;return _.q(function(H){switch(H.nextAddress){case 1:K=T_3();if((X=K)==null?0:X.hasSucceededOnce)return H.return(!0);var f;if(f=V4q)f=/WebKit\/([0-9]+)/.exec(_.nO()),f=!!(f&&parseInt(f[1],10)>=600);f&&(f=/WebKit\/([0-9]+)/.exec(_.nO()),f=!(f&&parseInt(f[1],10)>=602));if(f||OU)return H.return(!1);try{if(F=self,!(F.indexedDB&&F.IDBIndex&&F.IDBKeyRange&&F.IDBObjectStore))return H.return(!1)}catch(u){return H.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return H.return(!1);
_.s2(H,2);P={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.Y(H,t4y(P,gr3),4);case 4:return _.Y(H,_.tv("yt-idb-test-do-not-use",gr3),5);case 5:return H.return(!0);case 2:return _.qc(H),H.return(!1)}})};
CXP=function(){if(byy!==void 0)return byy;rDy=!0;return byy=ErM().then(function(K){rDy=!1;var X;if((X=LHw())!=null&&X.expiringStorage_){var F;X={hasSucceededOnce:((F=T_3())==null?void 0:F.hasSucceededOnce)||K};var P;(P=LHw())==null||P.set("LAST_RESULT_ENTRY_KEY",X,2592E3,!0)}return K})};
Vq=function(){return _.mz("ytglobal.idbToken_")||void 0};
_.EU=function(){var K=Vq();return K?Promise.resolve(K):CXP().then(function(X){(X=X?gr3:void 0)&&_.gS("ytglobal.idbToken_",X);return X})};
N_P=function(K){if(!_.MU())throw K=new Wm("AUTH_INVALID",{dbName:K}),_.rS(K),K;var X=_.Qq();return{actualName:K+":"+X,publicName:K,userIdentifier:X}};
iyq=function(K,X,F,P){var H,f,u,J,Z,M;return _.q(function(n){switch(n.nextAddress){case 1:return f=(H=Error().stack)!=null?H:"",_.Y(n,_.EU(),2);case 2:u=n.yieldResult;if(!u)throw J=ep("openDbImpl",K,X),_.S("ytidb_async_stack_killswitch")||(J.stack=J.stack+"\n"+f.substring(f.indexOf("\n")+1)),_.rS(J),J;jp(K);Z=F?{actualName:K,publicName:K,userIdentifier:void 0}:N_P(K);_.s2(n,3);return _.Y(n,t4y(Z,u),5);case 5:return _.Y(n,vr4(Z.actualName,X,P),6);case 6:return n.return(n.yieldResult);case 3:return M=
_.qc(n),_.s2(n,7),_.Y(n,_.tv(Z.actualName,u),9);case 9:_.Gy(n,8);break;case 7:_.qc(n);case 8:throw M;}})};
x$y=function(K,X,F){F=F===void 0?{}:F;return iyq(K,X,!1,F)};
IvP=function(K,X,F){F=F===void 0?{}:F;return iyq(K,X,!0,F)};
kY9=function(K,X){X=X===void 0?{}:X;var F,P;return _.q(function(H){if(H.nextAddress==1)return _.Y(H,_.EU(),2);if(H.nextAddress!=3){F=H.yieldResult;if(!F)return H.return();jp(K);P=N_P(K);return _.Y(H,_.lD(P.actualName,X),3)}return _.Y(H,_.tv(P.actualName,F),0)})};
Kbl=function(K,X,F){K=K.map(function(P){return _.q(function(H){return H.nextAddress==1?_.Y(H,_.lD(P.actualName,X),2):_.Y(H,_.tv(P.actualName,F),0)})});
return Promise.all(K).then(function(){})};
XW9=function(K){var X=X===void 0?{}:X;var F,P;return _.q(function(H){if(H.nextAddress==1)return _.Y(H,_.EU(),2);if(H.nextAddress!=3){F=H.yieldResult;if(!F)return H.return();jp(K);return _.Y(H,Oyy(K,F),3)}P=H.yieldResult;return _.Y(H,Kbl(P,X,F),0)})};
Fbn=function(K,X){X=X===void 0?{}:X;var F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,_.EU(),2);if(P.nextAddress!=3){F=P.yieldResult;if(!F)return P.return();jp(K);return _.Y(P,_.lD(K,X),3)}return _.Y(P,_.tv(K,F),0)})};
bD=function(K,X){return PYP(K,X)};
s7w=function(K){return _.vm(Hl3(),K)};
z3O=function(K,X,F,P){var H,f,u;return _.q(function(J){switch(J.nextAddress){case 1:return H={config:K,hashData:X,timestamp:P!==void 0?P:(0,_.CG)()},_.Y(J,s7w(F),2);case 2:return f=J.yieldResult,_.Y(J,f.clear("hotConfigStore"),3);case 3:return _.Y(J,f.put("hotConfigStore",H),4);case 4:return u=J.yieldResult,J.return(u)}})};
fOd=function(K,X,F,P,H){var f,u,J;return _.q(function(Z){switch(Z.nextAddress){case 1:return f={config:K,hashData:X,configData:F,timestamp:H!==void 0?H:(0,_.CG)()},_.Y(Z,s7w(P),2);case 2:return u=Z.yieldResult,_.Y(Z,u.clear("coldConfigStore"),3);case 3:return _.Y(Z,u.put("coldConfigStore",f),4);case 4:return J=Z.yieldResult,Z.return(J)}})};
Dm3=function(K){var X,F;return _.q(function(P){return P.nextAddress==1?_.Y(P,s7w(K),2):P.nextAddress!=3?(X=P.yieldResult,F=void 0,_.Y(P,_.at(X,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(H){return _.NU(H.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){F=f.getValue()})}),3)):P.return(F)})};
u0O=function(K){var X,F;return _.q(function(P){return P.nextAddress==1?_.Y(P,s7w(K),2):P.nextAddress!=3?(X=P.yieldResult,F=void 0,_.Y(P,_.at(X,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(H){return _.NU(H.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){F=f.getValue()})}),3)):P.return(F)})};
qsP=function(){return _.q(function(K){return _.Y(K,XW9("ytGcfConfig"),0)})};
Jcn=function(){return"INNERTUBE_API_KEY"in _.Wd&&"INNERTUBE_API_VERSION"in _.Wd};
_.iD=function(){return{innertubeApiKey:_.e8("INNERTUBE_API_KEY"),innertubeApiVersion:_.e8("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.e8("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.e8("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.e8("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.e8("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.e8("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.e8("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.e8("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.RU("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.RU("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.e8("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.pWy=function(K){var X={client:{hl:K.innertubeContextHostLanguage,gl:K.innertubeContextGeoLocation,clientName:K.innertubeContextClientName,clientVersion:K.innertubeContextClientVersion,configInfo:K.innertubeContextClientConfigInfo}};navigator.userAgent&&(X.client.userAgent=String(navigator.userAgent));var F=_.FP.devicePixelRatio;F&&F!=1&&(X.client.screenDensityFloat=String(F));F=UzT();F!==""&&(X.client.experimentsToken=F);F=hb9();F.length>0&&(X.request={internalExperimentFlags:F});ZlM(K,void 0,X);
Ysy(void 0,X);Q7d(void 0,X);Mv4(K,void 0,X);nX3(void 0,X);_.S("start_client_gcf")&&ccy(void 0,X);_.e8("DELEGATED_SESSION_ID")&&!_.S("pageid_as_header_web")&&(X.user={onBehalfOfUser:_.e8("DELEGATED_SESSION_ID")});!_.S("fill_delegate_context_in_gel_killswitch")&&(K=_.e8("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(X.user=Object.assign({},X.user,{serializedDelegationContext:K}));K=_.e8("INNERTUBE_CONTEXT");var P;if(_.S("enable_persistent_device_token")&&(K==null?0:(P=K.client)==null?0:P.rolloutToken)){var H;
X.client.rolloutToken=K==null?void 0:(H=K.client)==null?void 0:H.rolloutToken}P=Object;H=P.assign;K=X.client;F={};for(var f=_.D(Object.entries(_.aU(_.e8("DEVICE","")))),u=f.next();!u.done;u=f.next()){var J=_.D(u.value);u=J.next().value;J=J.next().value;u==="cbrand"?F.deviceMake=J:u==="cmodel"?F.deviceModel=J:u==="cbr"?F.browserName=J:u==="cbrver"?F.browserVersion=J:u==="cos"?F.osName=J:u==="cosver"?F.osVersion=J:u==="cplatform"&&(F.platform=J)}X.client=H.call(P,K,F);return X};
ZlM=function(K,X,F){K=K.innertubeContextClientName;if(K==="WEB"||K==="MWEB"||K===1||K===2)if(X){F=_.xS(X,BbP,96)||new BbP;var P=Ssy();P=Object.keys(oXP).indexOf(P);P=P===-1?null:P;P!==null&&_.It(F,3,P);_.Fw(X,96,F)}else F&&(F.client.mainAppWebInfo=(P=F.client.mainAppWebInfo)!=null?P:{},F.client.mainAppWebInfo.webDisplayMode=Ssy())};
Ysy=function(K,X){var F=_.mz("yt.embedded_player.embed_url");F&&(K?(X=_.xS(K,Lbl,7)||new Lbl,_.Qf(X,4,F),_.Fw(K,7,X)):X&&(X.thirdParty={embedUrl:F}))};
Q7d=function(K,X){var F;if(_.S("web_log_memory_total_kbytes")&&((F=_.FP.navigator)==null?0:F.deviceMemory)){var P;F=(P=_.FP.navigator)==null?void 0:P.deviceMemory;K?_.kS(K,95,ek(F*1E6)):X&&(X.client.memoryTotalKbytes=""+F*1E6)}};
Mv4=function(K,X,F){if(K.appInstallData)if(X){var P;F=(P=_.xS(X,KQ,62))!=null?P:new KQ;_.Qf(F,6,K.appInstallData);_.Fw(X,62,F)}else F&&(F.client.configInfo=F.client.configInfo||{},F.client.configInfo.appInstallData=K.appInstallData)};
nX3=function(K,X){var F=_.M44();F&&(K?_.It(K,61,Tbq[F]):X&&(X.client.connectionType=F));_.S("web_log_effective_connection_type")&&(F=cDl())&&(K?_.It(K,94,rcd[F]):X&&(X.client.effectiveConnectionType=F))};
_.wW9=function(K,X,F){F=F===void 0?{}:F;var P={};_.e8("EOM_VISITOR_DATA")?P={"X-Goog-EOM-Visitor-Id":_.e8("EOM_VISITOR_DATA")}:P={"X-Goog-Visitor-Id":F.visitorData||_.e8("VISITOR_DATA","")};if(X&&X.includes("www.youtube-nocookie.com"))return P;X=F.authorization||_.e8("AUTHORIZATION");X||(K?X="Bearer "+_.mz("gapi.auth.getToken")().access_token:(Acy.instance||(Acy.instance=new Acy),K=j79(),_.S("pageid_as_header_web")||delete K["X-Goog-PageId"],P=Object.assign({},P,K)));X&&(P.Authorization=X);return P};
ccy=function(K,X){var F=ycd();if(F){var P=F.coldConfigData,H=F.coldHashData;F=F.hotHashData;if(K){var f;X=(f=_.xS(K,KQ,62))!=null?f:new KQ;P=_.Qf(X,1,P);_.Qf(P,3,H).setHotHashData(F);_.Fw(K,62,X)}else X&&(X.client.configInfo=X.client.configInfo||{},P&&(X.client.configInfo.coldConfigData=P),H&&(X.client.configInfo.coldHashData=H),F&&(X.client.configInfo.hotHashData=F))}};
XC=function(K){for(var X=K.length;--X>=0;)K[X]=0};
Wby=function(K,X,F,P,H){this.static_tree=K;this.extra_bits=X;this.extra_base=F;this.elems=P;this.max_length=H;this.has_stree=K&&K.length};
dmP=function(K,X){this.dyn_tree=K;this.max_code=0;this.stat_desc=X};
FC=function(K,X){K.pending_buf[K.pending++]=X&255;K.pending_buf[K.pending++]=X>>>8&255};
PE=function(K,X,F){K.bi_valid>16-F?(K.bi_buf|=X<<K.bi_valid&65535,FC(K,K.bi_buf),K.bi_buf=X>>16-K.bi_valid,K.bi_valid+=F-16):(K.bi_buf|=X<<K.bi_valid&65535,K.bi_valid+=F)};
HE=function(K,X,F){PE(K,F[X*2],F[X*2+1])};
e3w=function(K,X){var F=0;do F|=K&1,K>>>=1,F<<=1;while(--X>0);return F>>>1};
R3n=function(K,X,F){var P=Array(16),H=0,f;for(f=1;f<=15;f++)P[f]=H=H+F[f-1]<<1;for(F=0;F<=X;F++)H=K[F*2+1],H!==0&&(K[F*2]=e3w(P[H]++,H))};
UmT=function(K){var X;for(X=0;X<286;X++)K.dyn_ltree[X*2]=0;for(X=0;X<30;X++)K.dyn_dtree[X*2]=0;for(X=0;X<19;X++)K.bl_tree[X*2]=0;K.dyn_ltree[512]=1;K.opt_len=K.static_len=0;K.last_lit=K.matches=0};
h39=function(K){K.bi_valid>8?FC(K,K.bi_buf):K.bi_valid>0&&(K.pending_buf[K.pending++]=K.bi_buf);K.bi_buf=0;K.bi_valid=0};
mmP=function(K,X,F){h39(K);FC(K,F);FC(K,~F);sM.arraySet(K.pending_buf,K.window,X,F,K.pending);K.pending+=F};
G6d=function(K,X,F,P){var H=X*2,f=F*2;return K[H]<K[f]||K[H]===K[f]&&P[X]<=P[F]};
lOy=function(K,X,F){for(var P=K.heap[F],H=F<<1;H<=K.heap_len;){H<K.heap_len&&G6d(X,K.heap[H+1],K.heap[H],K.depth)&&H++;if(G6d(X,P,K.heap[H],K.depth))break;K.heap[F]=K.heap[H];F=H;H<<=1}K.heap[F]=P};
Oly=function(K,X,F){var P=0;if(K.last_lit!==0){do{var H=K.pending_buf[K.d_buf+P*2]<<8|K.pending_buf[K.d_buf+P*2+1];var f=K.pending_buf[K.l_buf+P];P++;if(H===0)HE(K,f,X);else{var u=zo[f];HE(K,u+256+1,X);var J=vX9[u];J!==0&&(f-=aOl[u],PE(K,f,J));H--;u=H<256?fQ[H]:fQ[256+(H>>>7)];HE(K,u,F);J=tvM[u];J!==0&&(H-=$ml[u],PE(K,H,J))}}while(P<K.last_lit)}HE(K,256,X)};
VvO=function(K,X){var F=X.dyn_tree,P=X.stat_desc.static_tree,H=X.stat_desc.has_stree,f=X.stat_desc.elems,u,J=-1;K.heap_len=0;K.heap_max=573;for(u=0;u<f;u++)F[u*2]!==0?(K.heap[++K.heap_len]=J=u,K.depth[u]=0):F[u*2+1]=0;for(;K.heap_len<2;){var Z=K.heap[++K.heap_len]=J<2?++J:0;F[Z*2]=1;K.depth[Z]=0;K.opt_len--;H&&(K.static_len-=P[Z*2+1])}X.max_code=J;for(u=K.heap_len>>1;u>=1;u--)lOy(K,F,u);Z=f;do u=K.heap[1],K.heap[1]=K.heap[K.heap_len--],lOy(K,F,1),P=K.heap[1],K.heap[--K.heap_max]=u,K.heap[--K.heap_max]=
P,F[Z*2]=F[u*2]+F[P*2],K.depth[Z]=(K.depth[u]>=K.depth[P]?K.depth[u]:K.depth[P])+1,F[u*2+1]=F[P*2+1]=Z,K.heap[1]=Z++,lOy(K,F,1);while(K.heap_len>=2);K.heap[--K.heap_max]=K.heap[1];u=X.dyn_tree;Z=X.max_code;P=X.stat_desc.static_tree;H=X.stat_desc.has_stree;f=X.stat_desc.extra_bits;var M=X.stat_desc.extra_base,n=X.stat_desc.max_length,c,B=0;for(c=0;c<=15;c++)K.bl_count[c]=0;u[K.heap[K.heap_max]*2+1]=0;for(X=K.heap_max+1;X<573;X++){var L=K.heap[X];c=u[u[L*2+1]*2+1]+1;c>n&&(c=n,B++);u[L*2+1]=c;if(!(L>
Z)){K.bl_count[c]++;var A=0;L>=M&&(A=f[L-M]);var d=u[L*2];K.opt_len+=d*(c+A);H&&(K.static_len+=d*(P[L*2+1]+A))}}if(B!==0){do{for(c=n-1;K.bl_count[c]===0;)c--;K.bl_count[c]--;K.bl_count[c+1]+=2;K.bl_count[n]--;B-=2}while(B>0);for(c=n;c!==0;c--)for(L=K.bl_count[c];L!==0;)P=K.heap[--X],P>Z||(u[P*2+1]!==c&&(K.opt_len+=(c-u[P*2+1])*u[P*2],u[P*2+1]=c),L--)}R3n(F,J,K.bl_count)};
gXP=function(K,X,F){var P,H=-1,f=X[1],u=0,J=7,Z=4;f===0&&(J=138,Z=3);X[(F+1)*2+1]=65535;for(P=0;P<=F;P++){var M=f;f=X[(P+1)*2+1];++u<J&&M===f||(u<Z?K.bl_tree[M*2]+=u:M!==0?(M!==H&&K.bl_tree[M*2]++,K.bl_tree[32]++):u<=10?K.bl_tree[34]++:K.bl_tree[36]++,u=0,H=M,f===0?(J=138,Z=3):M===f?(J=6,Z=3):(J=7,Z=4))}};
EXP=function(K,X,F){var P,H=-1,f=X[1],u=0,J=7,Z=4;f===0&&(J=138,Z=3);for(P=0;P<=F;P++){var M=f;f=X[(P+1)*2+1];if(!(++u<J&&M===f)){if(u<Z){do HE(K,M,K.bl_tree);while(--u!==0)}else M!==0?(M!==H&&(HE(K,M,K.bl_tree),u--),HE(K,16,K.bl_tree),PE(K,u-3,2)):u<=10?(HE(K,17,K.bl_tree),PE(K,u-3,3)):(HE(K,18,K.bl_tree),PE(K,u-11,7));u=0;H=M;f===0?(J=138,Z=3):M===f?(J=6,Z=3):(J=7,Z=4)}}};
bly=function(K){var X=4093624447,F;for(F=0;F<=31;F++,X>>>=1)if(X&1&&K.dyn_ltree[F*2]!==0)return 0;if(K.dyn_ltree[18]!==0||K.dyn_ltree[20]!==0||K.dyn_ltree[26]!==0)return 1;for(F=32;F<256;F++)if(K.dyn_ltree[F*2]!==0)return 1;return 0};
DT=function(K,X,F){K.pending_buf[K.d_buf+K.last_lit*2]=X>>>8&255;K.pending_buf[K.d_buf+K.last_lit*2+1]=X&255;K.pending_buf[K.l_buf+K.last_lit]=F&255;K.last_lit++;X===0?K.dyn_ltree[F*2]++:(K.matches++,X--,K.dyn_ltree[(zo[F]+256+1)*2]++,K.dyn_dtree[(X<256?fQ[X]:fQ[256+(X>>>7)])*2]++);return K.last_lit===K.lit_bufsize-1};
ZT=function(K,X){K.msg=qi[X];return X};
Yg=function(K){for(var X=K.length;--X>=0;)K[X]=0};
Qc=function(K){var X=K.state,F=X.pending;F>K.avail_out&&(F=K.avail_out);F!==0&&(sM.arraySet(K.output,X.pending_buf,X.pending_out,F,K.next_out),K.next_out+=F,X.pending_out+=F,K.total_out+=F,K.avail_out-=F,X.pending-=F,X.pending===0&&(X.pending_out=0))};
cE=function(K,X){var F=K.block_start>=0?K.block_start:-1,P=K.strstart-K.block_start,H=0;if(K.level>0){K.strm.data_type===2&&(K.strm.data_type=bly(K));VvO(K,K.l_desc);VvO(K,K.d_desc);gXP(K,K.dyn_ltree,K.l_desc.max_code);gXP(K,K.dyn_dtree,K.d_desc.max_code);VvO(K,K.bl_desc);for(H=18;H>=3&&K.bl_tree[CYM[H]*2+1]===0;H--);K.opt_len+=3*(H+1)+5+5+4;var f=K.opt_len+3+7>>>3;var u=K.static_len+3+7>>>3;u<=f&&(f=u)}else f=u=P+5;if(P+4<=f&&F!==-1)PE(K,X?1:0,3),mmP(K,F,P);else if(K.strategy===4||u===f)PE(K,2+(X?
1:0),3),Oly(K,Mi,nQ);else{PE(K,4+(X?1:0),3);F=K.l_desc.max_code+1;P=K.d_desc.max_code+1;H+=1;PE(K,F-257,5);PE(K,P-1,5);PE(K,H-4,4);for(f=0;f<H;f++)PE(K,K.bl_tree[CYM[f]*2+1],3);EXP(K,K.dyn_ltree,F-1);EXP(K,K.dyn_dtree,P-1);Oly(K,K.dyn_ltree,K.dyn_dtree)}UmT(K);X&&h39(K);K.block_start=K.strstart;Qc(K.strm)};
pQ=function(K,X){K.pending_buf[K.pending++]=X};
BE=function(K,X){K.pending_buf[K.pending++]=X>>>8&255;K.pending_buf[K.pending++]=X&255};
Nbn=function(K,X){var F=K.max_chain_length,P=K.strstart,H=K.prev_length,f=K.nice_match,u=K.strstart>K.w_size-262?K.strstart-(K.w_size-262):0,J=K.window,Z=K.w_mask,M=K.prev,n=K.strstart+258,c=J[P+H-1],B=J[P+H];K.prev_length>=K.good_match&&(F>>=2);f>K.lookahead&&(f=K.lookahead);do{var L=X;if(J[L+H]===B&&J[L+H-1]===c&&J[L]===J[P]&&J[++L]===J[P+1]){P+=2;for(L++;J[++P]===J[++L]&&J[++P]===J[++L]&&J[++P]===J[++L]&&J[++P]===J[++L]&&J[++P]===J[++L]&&J[++P]===J[++L]&&J[++P]===J[++L]&&J[++P]===J[++L]&&P<n;);
L=258-(n-P);P=n-258;if(L>H){K.match_start=X;H=L;if(L>=f)break;c=J[P+H-1];B=J[P+H]}}}while((X=M[X&Z])>u&&--F!==0);return H<=K.lookahead?H:K.lookahead};
oa=function(K){var X=K.w_size,F;do{var P=K.window_size-K.lookahead-K.strstart;if(K.strstart>=X+(X-262)){sM.arraySet(K.window,K.window,X,X,0);K.match_start-=X;K.strstart-=X;K.block_start-=X;var H=F=K.hash_size;do{var f=K.head[--H];K.head[H]=f>=X?f-X:0}while(--F);H=F=X;do f=K.prev[--H],K.prev[H]=f>=X?f-X:0;while(--F);P+=X}if(K.strm.avail_in===0)break;H=K.strm;F=K.window;f=K.strstart+K.lookahead;var u=H.avail_in;u>P&&(u=P);u===0?F=0:(H.avail_in-=u,sM.arraySet(F,H.input,H.next_in,u,f),H.state.wrap===
1?H.adler=ilM(H.adler,F,u,f):H.state.wrap===2&&(H.adler=St(H.adler,F,u,f)),H.next_in+=u,H.total_in+=u,F=u);K.lookahead+=F;if(K.lookahead+K.insert>=3)for(P=K.strstart-K.insert,K.ins_h=K.window[P],K.ins_h=(K.ins_h<<K.hash_shift^K.window[P+1])&K.hash_mask;K.insert&&!(K.ins_h=(K.ins_h<<K.hash_shift^K.window[P+3-1])&K.hash_mask,K.prev[P&K.w_mask]=K.head[K.ins_h],K.head[K.ins_h]=P,P++,K.insert--,K.lookahead+K.insert<3););}while(K.lookahead<262&&K.strm.avail_in!==0)};
xmd=function(K,X){for(var F;;){if(K.lookahead<262){oa(K);if(K.lookahead<262&&X===0)return 1;if(K.lookahead===0)break}F=0;K.lookahead>=3&&(K.ins_h=(K.ins_h<<K.hash_shift^K.window[K.strstart+3-1])&K.hash_mask,F=K.prev[K.strstart&K.w_mask]=K.head[K.ins_h],K.head[K.ins_h]=K.strstart);F!==0&&K.strstart-F<=K.w_size-262&&(K.match_length=Nbn(K,F));if(K.match_length>=3)if(F=DT(K,K.strstart-K.match_start,K.match_length-3),K.lookahead-=K.match_length,K.match_length<=K.max_lazy_match&&K.lookahead>=3){K.match_length--;
do K.strstart++,K.ins_h=(K.ins_h<<K.hash_shift^K.window[K.strstart+3-1])&K.hash_mask,K.prev[K.strstart&K.w_mask]=K.head[K.ins_h],K.head[K.ins_h]=K.strstart;while(--K.match_length!==0);K.strstart++}else K.strstart+=K.match_length,K.match_length=0,K.ins_h=K.window[K.strstart],K.ins_h=(K.ins_h<<K.hash_shift^K.window[K.strstart+1])&K.hash_mask;else F=DT(K,0,K.window[K.strstart]),K.lookahead--,K.strstart++;if(F&&(cE(K,!1),K.strm.avail_out===0))return 1}K.insert=K.strstart<2?K.strstart:2;return X===4?(cE(K,
!0),K.strm.avail_out===0?3:4):K.last_lit&&(cE(K,!1),K.strm.avail_out===0)?1:2};
LQ=function(K,X){for(var F,P;;){if(K.lookahead<262){oa(K);if(K.lookahead<262&&X===0)return 1;if(K.lookahead===0)break}F=0;K.lookahead>=3&&(K.ins_h=(K.ins_h<<K.hash_shift^K.window[K.strstart+3-1])&K.hash_mask,F=K.prev[K.strstart&K.w_mask]=K.head[K.ins_h],K.head[K.ins_h]=K.strstart);K.prev_length=K.match_length;K.prev_match=K.match_start;K.match_length=2;F!==0&&K.prev_length<K.max_lazy_match&&K.strstart-F<=K.w_size-262&&(K.match_length=Nbn(K,F),K.match_length<=5&&(K.strategy===1||K.match_length===3&&
K.strstart-K.match_start>4096)&&(K.match_length=2));if(K.prev_length>=3&&K.match_length<=K.prev_length){P=K.strstart+K.lookahead-3;F=DT(K,K.strstart-1-K.prev_match,K.prev_length-3);K.lookahead-=K.prev_length-1;K.prev_length-=2;do++K.strstart<=P&&(K.ins_h=(K.ins_h<<K.hash_shift^K.window[K.strstart+3-1])&K.hash_mask,K.prev[K.strstart&K.w_mask]=K.head[K.ins_h],K.head[K.ins_h]=K.strstart);while(--K.prev_length!==0);K.match_available=0;K.match_length=2;K.strstart++;if(F&&(cE(K,!1),K.strm.avail_out===0))return 1}else if(K.match_available){if((F=
DT(K,0,K.window[K.strstart-1]))&&cE(K,!1),K.strstart++,K.lookahead--,K.strm.avail_out===0)return 1}else K.match_available=1,K.strstart++,K.lookahead--}K.match_available&&(DT(K,0,K.window[K.strstart-1]),K.match_available=0);K.insert=K.strstart<2?K.strstart:2;return X===4?(cE(K,!0),K.strm.avail_out===0?3:4):K.last_lit&&(cE(K,!1),K.strm.avail_out===0)?1:2};
IOl=function(K,X){for(var F,P,H,f=K.window;;){if(K.lookahead<=258){oa(K);if(K.lookahead<=258&&X===0)return 1;if(K.lookahead===0)break}K.match_length=0;if(K.lookahead>=3&&K.strstart>0&&(P=K.strstart-1,F=f[P],F===f[++P]&&F===f[++P]&&F===f[++P])){for(H=K.strstart+258;F===f[++P]&&F===f[++P]&&F===f[++P]&&F===f[++P]&&F===f[++P]&&F===f[++P]&&F===f[++P]&&F===f[++P]&&P<H;);K.match_length=258-(H-P);K.match_length>K.lookahead&&(K.match_length=K.lookahead)}K.match_length>=3?(F=DT(K,1,K.match_length-3),K.lookahead-=
K.match_length,K.strstart+=K.match_length,K.match_length=0):(F=DT(K,0,K.window[K.strstart]),K.lookahead--,K.strstart++);if(F&&(cE(K,!1),K.strm.avail_out===0))return 1}K.insert=0;return X===4?(cE(K,!0),K.strm.avail_out===0?3:4):K.last_lit&&(cE(K,!1),K.strm.avail_out===0)?1:2};
k6l=function(K,X){for(var F;;){if(K.lookahead===0&&(oa(K),K.lookahead===0)){if(X===0)return 1;break}K.match_length=0;F=DT(K,0,K.window[K.strstart]);K.lookahead--;K.strstart++;if(F&&(cE(K,!1),K.strm.avail_out===0))return 1}K.insert=0;return X===4?(cE(K,!0),K.strm.avail_out===0?3:4):K.last_lit&&(cE(K,!1),K.strm.avail_out===0)?1:2};
To=function(K,X,F,P,H){this.good_length=K;this.max_lazy=X;this.nice_length=F;this.max_chain=P;this.func=H};
KXy=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 sM.Buf16(1146);this.dyn_dtree=new sM.Buf16(122);this.bl_tree=new sM.Buf16(78);Yg(this.dyn_ltree);Yg(this.dyn_dtree);Yg(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new sM.Buf16(16);this.heap=new sM.Buf16(573);Yg(this.heap);this.heap_max=this.heap_len=0;this.depth=new sM.Buf16(573);Yg(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};
Xvy=function(K,X){if(!K||!K.state||X>5||X<0)return K?ZT(K,-2):-2;var F=K.state;if(!K.output||!K.input&&K.avail_in!==0||F.status===666&&X!==4)return ZT(K,K.avail_out===0?-5:-2);F.strm=K;var P=F.last_flush;F.last_flush=X;if(F.status===42)if(F.wrap===2)K.adler=0,pQ(F,31),pQ(F,139),pQ(F,8),F.gzhead?(pQ(F,(F.gzhead.text?1:0)+(F.gzhead.hcrc?2:0)+(F.gzhead.extra?4:0)+(F.gzhead.name?8:0)+(F.gzhead.comment?16:0)),pQ(F,F.gzhead.time&255),pQ(F,F.gzhead.time>>8&255),pQ(F,F.gzhead.time>>16&255),pQ(F,F.gzhead.time>>
24&255),pQ(F,F.level===9?2:F.strategy>=2||F.level<2?4:0),pQ(F,F.gzhead.os&255),F.gzhead.extra&&F.gzhead.extra.length&&(pQ(F,F.gzhead.extra.length&255),pQ(F,F.gzhead.extra.length>>8&255)),F.gzhead.hcrc&&(K.adler=St(K.adler,F.pending_buf,F.pending,0)),F.gzindex=0,F.status=69):(pQ(F,0),pQ(F,0),pQ(F,0),pQ(F,0),pQ(F,0),pQ(F,F.level===9?2:F.strategy>=2||F.level<2?4:0),pQ(F,3),F.status=113);else{var H=8+(F.w_bits-8<<4)<<8;H|=(F.strategy>=2||F.level<2?0:F.level<6?1:F.level===6?2:3)<<6;F.strstart!==0&&(H|=
32);F.status=113;BE(F,H+(31-H%31));F.strstart!==0&&(BE(F,K.adler>>>16),BE(F,K.adler&65535));K.adler=1}if(F.status===69)if(F.gzhead.extra){for(H=F.pending;F.gzindex<(F.gzhead.extra.length&65535)&&(F.pending!==F.pending_buf_size||(F.gzhead.hcrc&&F.pending>H&&(K.adler=St(K.adler,F.pending_buf,F.pending-H,H)),Qc(K),H=F.pending,F.pending!==F.pending_buf_size));)pQ(F,F.gzhead.extra[F.gzindex]&255),F.gzindex++;F.gzhead.hcrc&&F.pending>H&&(K.adler=St(K.adler,F.pending_buf,F.pending-H,H));F.gzindex===F.gzhead.extra.length&&
(F.gzindex=0,F.status=73)}else F.status=73;if(F.status===73)if(F.gzhead.name){H=F.pending;do{if(F.pending===F.pending_buf_size&&(F.gzhead.hcrc&&F.pending>H&&(K.adler=St(K.adler,F.pending_buf,F.pending-H,H)),Qc(K),H=F.pending,F.pending===F.pending_buf_size)){var f=1;break}f=F.gzindex<F.gzhead.name.length?F.gzhead.name.charCodeAt(F.gzindex++)&255:0;pQ(F,f)}while(f!==0);F.gzhead.hcrc&&F.pending>H&&(K.adler=St(K.adler,F.pending_buf,F.pending-H,H));f===0&&(F.gzindex=0,F.status=91)}else F.status=91;if(F.status===
91)if(F.gzhead.comment){H=F.pending;do{if(F.pending===F.pending_buf_size&&(F.gzhead.hcrc&&F.pending>H&&(K.adler=St(K.adler,F.pending_buf,F.pending-H,H)),Qc(K),H=F.pending,F.pending===F.pending_buf_size)){f=1;break}f=F.gzindex<F.gzhead.comment.length?F.gzhead.comment.charCodeAt(F.gzindex++)&255:0;pQ(F,f)}while(f!==0);F.gzhead.hcrc&&F.pending>H&&(K.adler=St(K.adler,F.pending_buf,F.pending-H,H));f===0&&(F.status=103)}else F.status=103;F.status===103&&(F.gzhead.hcrc?(F.pending+2>F.pending_buf_size&&Qc(K),
F.pending+2<=F.pending_buf_size&&(pQ(F,K.adler&255),pQ(F,K.adler>>8&255),K.adler=0,F.status=113)):F.status=113);if(F.pending!==0){if(Qc(K),K.avail_out===0)return F.last_flush=-1,0}else if(K.avail_in===0&&(X<<1)-(X>4?9:0)<=(P<<1)-(P>4?9:0)&&X!==4)return ZT(K,-5);if(F.status===666&&K.avail_in!==0)return ZT(K,-5);if(K.avail_in!==0||F.lookahead!==0||X!==0&&F.status!==666){P=F.strategy===2?k6l(F,X):F.strategy===3?IOl(F,X):rG[F.level].func(F,X);if(P===3||P===4)F.status=666;if(P===1||P===3)return K.avail_out===
0&&(F.last_flush=-1),0;if(P===2&&(X===1?(PE(F,2,3),HE(F,256,Mi),F.bi_valid===16?(FC(F,F.bi_buf),F.bi_buf=0,F.bi_valid=0):F.bi_valid>=8&&(F.pending_buf[F.pending++]=F.bi_buf&255,F.bi_buf>>=8,F.bi_valid-=8)):X!==5&&(PE(F,0,3),mmP(F,0,0),X===3&&(Yg(F.head),F.lookahead===0&&(F.strstart=0,F.block_start=0,F.insert=0))),Qc(K),K.avail_out===0))return F.last_flush=-1,0}if(X!==4)return 0;if(F.wrap<=0)return 1;F.wrap===2?(pQ(F,K.adler&255),pQ(F,K.adler>>8&255),pQ(F,K.adler>>16&255),pQ(F,K.adler>>24&255),pQ(F,
K.total_in&255),pQ(F,K.total_in>>8&255),pQ(F,K.total_in>>16&255),pQ(F,K.total_in>>24&255)):(BE(F,K.adler>>>16),BE(F,K.adler&65535));Qc(K);F.wrap>0&&(F.wrap=-F.wrap);return F.pending!==0?0:1};
FXd=function(K){if(!(this instanceof FXd))return new FXd(K);K=this.options=sM.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},K||{});K.raw&&K.windowBits>0?K.windowBits=-K.windowBits:K.gzip&&K.windowBits>0&&K.windowBits<16&&(K.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new PjP;this.strm.avail_out=0;var X=this.strm;var F=K.level,P=K.method,H=K.windowBits,f=K.memLevel,u=K.strategy;if(X){var J=1;F===-1&&(F=6);H<0?(J=0,H=-H):H>15&&
(J=2,H-=16);if(f<1||f>9||P!==8||H<8||H>15||F<0||F>9||u<0||u>4)X=ZT(X,-2);else{H===8&&(H=9);var Z=new KXy;X.state=Z;Z.strm=X;Z.wrap=J;Z.gzhead=null;Z.w_bits=H;Z.w_size=1<<Z.w_bits;Z.w_mask=Z.w_size-1;Z.hash_bits=f+7;Z.hash_size=1<<Z.hash_bits;Z.hash_mask=Z.hash_size-1;Z.hash_shift=~~((Z.hash_bits+3-1)/3);Z.window=new sM.Buf8(Z.w_size*2);Z.head=new sM.Buf16(Z.hash_size);Z.prev=new sM.Buf16(Z.w_size);Z.lit_bufsize=1<<f+6;Z.pending_buf_size=Z.lit_bufsize*4;Z.pending_buf=new sM.Buf8(Z.pending_buf_size);
Z.d_buf=Z.lit_bufsize;Z.l_buf=3*Z.lit_bufsize;Z.level=F;Z.strategy=u;Z.method=P;if(X&&X.state){X.total_in=X.total_out=0;X.data_type=2;F=X.state;F.pending=0;F.pending_out=0;F.wrap<0&&(F.wrap=-F.wrap);F.status=F.wrap?42:113;X.adler=F.wrap===2?0:1;F.last_flush=0;if(!HI4){P=Array(16);for(f=u=0;f<28;f++)for(aOl[f]=u,H=0;H<1<<vX9[f];H++)zo[u++]=f;zo[u-1]=f;for(f=u=0;f<16;f++)for($ml[f]=u,H=0;H<1<<tvM[f];H++)fQ[u++]=f;for(u>>=7;f<30;f++)for($ml[f]=u<<7,H=0;H<1<<tvM[f]-7;H++)fQ[256+u++]=f;for(H=0;H<=15;H++)P[H]=
0;for(H=0;H<=143;)Mi[H*2+1]=8,H++,P[8]++;for(;H<=255;)Mi[H*2+1]=9,H++,P[9]++;for(;H<=279;)Mi[H*2+1]=7,H++,P[7]++;for(;H<=287;)Mi[H*2+1]=8,H++,P[8]++;R3n(Mi,287,P);for(H=0;H<30;H++)nQ[H*2+1]=5,nQ[H*2]=e3w(H,5);sAl=new Wby(Mi,vX9,257,286,15);zXP=new Wby(nQ,tvM,0,30,15);fHn=new Wby([],Daw,0,19,7);HI4=!0}F.l_desc=new dmP(F.dyn_ltree,sAl);F.d_desc=new dmP(F.dyn_dtree,zXP);F.bl_desc=new dmP(F.bl_tree,fHn);F.bi_buf=0;F.bi_valid=0;UmT(F);F=0}else F=ZT(X,-2);F===0&&(X=X.state,X.window_size=2*X.w_size,Yg(X.head),
X.max_lazy_match=rG[X.level].max_lazy,X.good_match=rG[X.level].good_length,X.nice_match=rG[X.level].nice_length,X.max_chain_length=rG[X.level].max_chain,X.strstart=0,X.block_start=0,X.lookahead=0,X.insert=0,X.match_length=X.prev_length=2,X.match_available=0,X.ins_h=0);X=F}}else X=-2;if(X!==0)throw Error(qi[X]);K.header&&(X=this.strm)&&X.state&&X.state.wrap===2&&(X.state.gzhead=K.header);if(K.dictionary){var M;typeof K.dictionary==="string"?M=uFd(K.dictionary):qzP.call(K.dictionary)==="[object ArrayBuffer]"?
M=new Uint8Array(K.dictionary):M=K.dictionary;K=this.strm;f=M;u=f.length;if(K&&K.state)if(M=K.state,X=M.wrap,X===2||X===1&&M.status!==42||M.lookahead)X=-2;else{X===1&&(K.adler=ilM(K.adler,f,u,0));M.wrap=0;u>=M.w_size&&(X===0&&(Yg(M.head),M.strstart=0,M.block_start=0,M.insert=0),F=new sM.Buf8(M.w_size),sM.arraySet(F,f,u-M.w_size,M.w_size,0),f=F,u=M.w_size);F=K.avail_in;P=K.next_in;H=K.input;K.avail_in=u;K.next_in=0;K.input=f;for(oa(M);M.lookahead>=3;){f=M.strstart;u=M.lookahead-2;do M.ins_h=(M.ins_h<<
M.hash_shift^M.window[f+3-1])&M.hash_mask,M.prev[f&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=f,f++;while(--u);M.strstart=f;M.lookahead=2;oa(M)}M.strstart+=M.lookahead;M.block_start=M.strstart;M.insert=M.lookahead;M.lookahead=0;M.match_length=M.prev_length=2;M.match_available=0;K.next_in=P;K.input=H;K.avail_in=F;M.wrap=X;X=0}else X=-2;if(X!==0)throw Error(qi[X]);this._dict_set=!0}};
J7q=function(K,X){X=X||{};X.gzip=!0;X=new FXd(X);X.push(K,!0);if(X.err)throw X.msg||qi[X.err];return X.result};
Yzq=function(K,X){var F=ZIy();F&&F.publish.call(F,K.toString(),K,X)};
pvq=function(K,X,F){var P=ZIy();if(!P)return 0;var H=P.subscribe(K.toString(),function(f,u){var J=_.mz("ytPubsub2Pubsub2SkipSubKey");J&&J==H||(J=function(){if(QAP[H])try{if(u&&K instanceof MJq&&K!=f)try{var Z=K.dataClass,M=u;if(!M.args||!M.version)throw Error("Uc");try{if(!Z.version_){var n=new Z;Z.version_=n.version}var c=Z.version_}catch(B){}if(!c||M.version!=c)throw Error("Vc");try{u=Reflect.construct(Z,_.Nq(M.args))}catch(B){throw B.message="yt.pubsub2.Data.deserialize(): "+B.message,B;}}catch(B){throw B.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+K.toString()+": "+B.message,B;}X.call(F||window,u)}catch(B){_.UN(B)}},nxq[K.toString()]?_.mz("yt.scheduler.instance")?_.A9.addLowPriorityJob(J):_.Pm(J,0):J())});
QAP[H]=!0;c7w[K.toString()]||(c7w[K.toString()]=[]);c7w[K.toString()].push(H);return H};
LXw=function(){var K=BI9,X=pvq(Szy,function(F){K.apply(void 0,arguments);oxP(X)});
return X};
oxP=function(K){var X=ZIy();X&&(typeof K==="number"&&(K=[K]),_.vd(K,function(F){X.unsubscribeByKey(F);delete QAP[F]}))};
ZIy=function(){return _.mz("ytPubsub2Pubsub2Instance")};
TIP=function(K,X,F){F=F===void 0?{sampleRate:.1}:F;Math.random()<Math.min(.02,F.sampleRate/100)&&Yzq("meta_logging_csi_event",{timerName:K,timelineData:X})};
_.r7P=function(K){return K?(K=K.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.ho(K):null:null};
_.jt=function(K){return K?(K=K.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.DX(K):null:null};
jA4=function(){A7T||(A7T=_.jt(_.e8("WORKER_SERIALIZATION_URL")));return A7T||void 0};
_.y7M=function(){var K=jA4();wvP||K===void 0||(wvP=new Worker(_.ui(K),void 0));return wvP};
_.WXP=function(){return typeof Worker==="function"&&jA4()?!0:!1};
_.UaP=function(){if(_.WXP()&&!daO){var K=function(F){F=F.data;if(F.op==="gzippedGelBatch"){var P=eXy.get(F.key);P&&(RXw(F.gzippedBatch,P.latencyPayload,P.url,P.options,P.sendFn),eXy.delete(F.key))}},X=_.y7M();
X&&(X.addEventListener("message",K),X.onerror=function(){eXy.clear()},daO=!0)}};
tJ4=function(K,X,F,P,H){H=H===void 0?!1:H;var f={startTime:(0,_.CG)(),ticks:{},infos:{}};if(wG)try{var u=hXl(X);if(u!=null&&(u>maP||u<GSl))P(K,F);else{if(_.S("gzip_gel_with_worker")&&(_.S("initial_gzip_use_main_thread")&&!lHP||!_.S("initial_gzip_use_main_thread"))){daO||_.UaP();var J=_.y7M();if(J&&!H){eXy.set(vxT,{latencyPayload:f,url:K,options:F,sendFn:P});J.postMessage({op:"gelBatchToGzip",serializedBatch:X,key:vxT});vxT++;return}}var Z=J7q(aHP(X));RXw(Z,f,K,F,P)}}catch(M){_.Gr(M),P(K,F)}else P(K,
F)};
RXw=function(K,X,F,P,H){lHP=!1;var f=(0,_.CG)();X.ticks.gelc=f;yc++;_.S("disable_compression_due_to_performance_degredation")&&f-X.startTime>=$aw&&(OI9++,_.S("abandon_compression_after_N_slow_zips")?yc===_.kU("compression_disable_point")&&OI9>VJq&&(wG=!1):wG=!1);gxO(X);P.headers||(P.headers={});P.headers["Content-Encoding"]="gzip";P.postBody=K;P.postParams=void 0;H(F,P)};
ExM=function(K){var X=X===void 0?!1:X;var F=F===void 0?!1:F;var P=(0,_.CG)(),H={startTime:P,ticks:{},infos:{}},f=X?_.mz("yt.logging.gzipForFetch",!1):!0;if(wG&&f){if(!K.body)return K;try{var u=F?K.body:typeof K.body==="string"?K.body:JSON.stringify(K.body);f=u;if(!F&&typeof u==="string"){var J=hXl(u);if(J!=null&&(J>maP||J<GSl))return K;F=X?{level:1}:void 0;f=J7q(aHP(u),F);var Z=(0,_.CG)();H.ticks.gelc=Z;if(X){yc++;if((_.S("disable_compression_due_to_performance_degredation")||_.S("disable_compression_due_to_performance_degradation_lr"))&&
Z-P>=$aw)if(OI9++,_.S("abandon_compression_after_N_slow_zips")||_.S("abandon_compression_after_N_slow_zips_lr")){X=OI9/yc;var M=VJq/_.kU("compression_disable_point");yc>0&&yc%_.kU("compression_disable_point")===0&&X>=M&&(wG=!1)}else wG=!1;gxO(H)}}K.headers=Object.assign({},{"Content-Encoding":"gzip"},K.headers||{});K.body=f;return K}catch(n){return _.Gr(n),K}}else return K};
hXl=function(K){try{return(new Blob(K.split(""))).size}catch(X){return _.Gr(X),null}};
gxO=function(K){_.S("gel_compression_csi_killswitch")||!_.S("log_gel_compression_latency")&&!_.S("log_gel_compression_latency_lr")||TIP("gel_compression",K,{sampleRate:.1})};
bIP=function(){this.blockSize=-1};
WE=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var K=1;K<this.blockSize;++K)this.pad_[K]=0;this.total_=this.inbuf_=0;this.reset()};
NI9=function(K){K=Object.assign({},K);delete K.Authorization;var X=Cjd();if(X){var F=new WE;F.update(_.e8("INNERTUBE_API_KEY"));F.update(X);K.hash=_.iW(F.digest(),3)}return K};
et=function(){iIO||(iIO=new _.dG("yt.innertube"));return iIO};
xaM=function(K,X,F,P){if(P)return null;P=et().get("nextId",!0)||1;var H=et().get("requests",!0)||{};H[P]={method:K,request:X,authState:NI9(F),requestTime:Math.round((0,_.CG)())};et().set("nextId",P+1,86400,!0);et().set("requests",H,86400,!0);return P};
IHM=function(K){var X=et().get("requests",!0)||{};delete X[K];et().set("requests",X,86400,!0)};
K5P=function(K){var X=et().get("requests",!0);if(X){for(var F in X){var P=X[F];if(!(Math.round((0,_.CG)())-P.requestTime<6E4)){var H=P.authState,f=NI9(_.wW9(!1));_.T8.equals(H,f)&&(H=P.request,"requestTimeMs"in H&&(H.requestTimeMs=Math.round((0,_.CG)())),kS9(K,P.method,H,{}));delete X[F]}}et().set("requests",X,86400,!0)}};
XIy=function(K){var X;return(K=K==null?void 0:(X=K.error)==null?void 0:X.code)&&K>=400&&K<=599?!1:!0};
F5M=function(K){var X;K=K==null?void 0:(X=K.error)==null?void 0:X.code;return!(K!==400&&K!==415)};
H$P=function(){if(PNP)return PNP();var K={};PNP=bD("LogsDatabaseV2",{objectStores:(K.LogsRequestsStore={addedAtVersion:2},K),shared:!1,upgrade:function(X,F,P){F(2)&&Ra(X,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});F(3);F(5)&&(P=P.objectStore("LogsRequestsStore"),P.JSC$8607_wrapped.indexNames.contains("newRequest")&&P.JSC$8607_wrapped.deleteIndex("newRequest"),UM(P,"newRequestV2",["status","interface","timestamp"]));F(7)&&X.JSC$8592_wrapped.objectStoreNames.contains("sapisid")&&X.JSC$8592_wrapped.deleteObjectStore("sapisid");
F(9)&&X.JSC$8592_wrapped.objectStoreNames.contains("SWHealthLog")&&X.JSC$8592_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return PNP()};
h9=function(K){return _.vm(H$P(),K)};
zZ9=function(K,X){var F,P,H,f;return _.q(function(u){if(u.nextAddress==1)return F={startTime:(0,_.CG)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.Y(u,h9(X),2);if(u.nextAddress!=3)return P=u.yieldResult,H=Object.assign({},K,{options:JSON.parse(JSON.stringify(K.options)),interface:_.e8("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.Y(u,P.put("LogsRequestsStore",H),3);f=u.yieldResult;F.ticks.tc=(0,_.CG)();sj4(F);return u.return(f)})};
fmT=function(K,X){var F,P,H,f,u,J,Z,M;return _.q(function(n){if(n.nextAddress==1)return F={startTime:(0,_.CG)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.Y(n,h9(X),2);if(n.nextAddress!=3)return P=n.yieldResult,H=_.e8("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[K,H,0],u=[K,H,(0,_.CG)()],J=IDBKeyRange.bound(f,u),Z="prev",_.S("use_fifo_for_networkless")&&(Z="next"),M=void 0,_.Y(n,_.at(P,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(c){return _.NU(c.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:J,direction:Z},function(B){B.getValue()&&(M=B.getValue(),K==="NEW"&&(M.status="QUEUED",B.update(M)))})}),3);
F.ticks.tc=(0,_.CG)();sj4(F);return n.return(M)})};
DDy=function(K,X){var F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,h9(X),2);F=P.yieldResult;return P.return(_.at(F,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(H){var f=H.objectStore("LogsRequestsStore");return f.get(K).then(function(u){if(u)return u.status="QUEUED",f.put(u).then(function(){return u})})}))})};
uNn=function(K,X,F,P){F=F===void 0?!0:F;var H;return _.q(function(f){if(f.nextAddress==1)return _.Y(f,h9(X),2);H=f.yieldResult;return f.return(_.at(H,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(u){var J=u.objectStore("LogsRequestsStore");return J.get(K).then(function(Z){return Z?(Z.status="NEW",F&&(Z.sendCount+=1),P!==void 0&&(Z.options.compress=P),J.put(Z).then(function(){return Z})):Rt.resolve(void 0)})}))})};
qm9=function(K,X){var F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,h9(X),2);F=P.yieldResult;return P.return(F.delete("LogsRequestsStore",K))})};
J6w=function(K){var X,F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,h9(K),2);X=P.yieldResult;F=(0,_.CG)()-2592E6;return _.Y(P,_.at(X,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(H){return $S(H.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=F)return f.delete().then(function(){return f.continue()})})}),0)})};
Z$M=function(){_.q(function(K){return _.Y(K,XW9("LogsDatabaseV2"),0)})};
sj4=function(K){_.S("nwl_csi_killswitch")||TIP("networkless_performance",K,{sampleRate:1})};
_.Qjy=function(K){return _.vm(Ym3(),K)};
M0l=function(K){var X,F;_.q(function(P){if(P.nextAddress==1)return _.Y(P,_.Qjy(K),2);X=P.yieldResult;F=(0,_.CG)()-2592E6;return _.Y(P,_.at(X,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(H){return $S(H.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=F)return f.delete().then(function(){return f.continue()})})}),0)})};
n1y=function(K){var X;return _.q(function(F){if(F.nextAddress==1)return _.Y(F,_.Qjy(K),2);X=F.yieldResult;return _.Y(F,X.clear("SWHealthLog"),0)})};
_.m3=function(K,X,F,P,H,f,u){H=H===void 0?"":H;f=f===void 0?!1:f;u=u===void 0?!1:u;if(K)if(F&&!yq("cobalt"))_.Gr(new _.nG("Legacy referrer-scrubbed ping detected")),K&&c6y(K,void 0,{scrubReferrer:!0});else if(H)ODT(K,X,"POST",H,P);else if(_.e8("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||P||u)ODT(K,X,"GET","",P,void 0,f,u);else{b:{try{c:{var J=new pId({url:K});if(J.urlParamValues_.dsh==="1")var Z=null;else{var M=J.urlParamValues_.ae;if(M==="1"){var n=J.urlParamValues_.adurl;if(n)try{Z={version:3,directUrl:decodeURIComponent(n),
asyncUrl:AH4(J.JSC$7487_url_,"act=1","ri=1",Bqw(J))};break c}catch(A){}}Z=M==="2"?{version:4,directUrl:AH4(J.JSC$7487_url_,"dct=1","suid="+J.suid_,""),asyncUrl:AH4(J.JSC$7487_url_,"act=1","ri=1","suid="+J.suid_)}:null}}if(Z){var c=_.zy(K);var B=!(!c||!c.endsWith("/aclk")||_.lB(K,"ri")!=="1");break b}}catch(A){}B=!1}if(B){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(K,"")){var L=!0;break b}}catch(A){}L=!1}L?(X&&X(),F=!0):F=!1}else F=!1;F||c6y(K,X)}};
c6y=function(K,X,F){F=F===void 0?{}:F;var P=new Image,H=""+Smy++;o19[H]=P;P.onload=P.onerror=function(){X&&o19[H]&&X();delete o19[H]};
F.scrubReferrer&&(P.referrerPolicy="no-referrer");P.src=K};
Go=function(K,X){L54(K,X==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
Tqy=function(K){var X;return((X=document.featurePolicy)==null?0:X.allowedFeatures().includes("attribution-reporting"))?K+"&nis=6":K+"&nis=5"};
r6l=function(K){if(!K)return!1;try{var X;if(((X=_.aU(K))==null?void 0:X.asm)==="4")return!0}catch(F){_.UN(F)}return!1};
L54=function(K,X){X?(K=Tqy(K),_.m3(K,void 0,void 0,void 0,"",!0,!0)):_.m3(K)};
jjT=function(){A69||(A69=new _.dG("yt.offline"));return A69};
wIl=function(K){if(_.S("offline_error_handling")){var X=jjT().get("errors",!0)||{};X[K.message]={name:K.name,stack:K.stack};K.level&&(X[K.message].level=K.level);jjT().set("errors",X,2592E3,!0)}};
W5l=function(K,X,F,P){P=P===void 0?!1:P;X=_.S("web_fp_via_jspb")?Object.assign({},X):X;_.S("use_cfr_monitor")&&y6y(K,X);if(_.S("use_request_time_ms_header"))X.headers&&b9(K)&&(X.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.CG)())));else{var H;if((H=X.postParams)==null?0:H.requestTimeMs)X.postParams.requestTimeMs=Math.round((0,_.CG)())}F&&Object.keys(X).length===0?_.m3(K):X.compress?X.postBody?(typeof X.postBody!=="string"&&(X.postBody=JSON.stringify(X.postBody)),tJ4(K,X.postBody,
X,_.fG,P)):tJ4(K,JSON.stringify(X.postParams),X,bD3,P):_.fG(K,X)};
dDn=function(K,X){_.S("use_event_time_ms_header")&&b9(K)&&(X.headers||(X.headers={}),X.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.CG)())));return X};
_.RZP=function(){eZO||(eZO=new _.lU({logOfflineErrors:!0,enablePolling:!0}));return eZO};
y6y=function(K,X){var F=X.onError?X.onError:function(){};
X.onError=function(H,f){vE().requestComplete(K,!1);F(H,f)};
var P=X.onSuccess?X.onSuccess:function(){};
X.onSuccess=function(H,f){vE().requestComplete(K,!0);P(H,f)}};
_.UDd=function(){return _.g2(document.location.toString())!=="www.youtube-nocookie.com"};
_.GwP=function(){return _.mz("ytNetworklessLoggingInitializationOptions")?_.hZw.isNwlInitialized:_.mDP};
lmP=function(K,X){if(_.S("polymer_on_demand_shady_dom")){var F;var P=(F=K.__shady_native_firstElementChild)!=null?F:K.firstElementChild}else P=K.firstElementChild;for(;P;){if(K=X(P)?P:lmP(P,X))return K;P=P.nextElementSibling}return null};
amw=function(){var K=document;if("visibilityState"in K)return K.visibilityState;var X=v14+"VisibilityState";if(X in K)return K[X]};
_.t04=function(K,X){var F;aa(K,function(P){F=X[P];return!!F});
return F};
_.Vc=function(K){var X=$Dl(K);X?X.focus(void 0):_.OM(K)};
$Dl=function(K){return(K=lmP(K,function(X){return _.gG(X)?O$q(X)&&!!X.offsetParent:!1}))?K:null};
_.OM=function(K,X){K.hasAttribute("tabindex")||K.setAttribute("tabindex","-1");K.focus(X)};
V0P=function(K,X,F,P){P=P===void 0?{}:P;K.addEventListener&&(X!="mouseenter"||"onmouseenter"in document?X!="mouseleave"||"onmouseenter"in document?X=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(X="MozMousePixelScroll"):X="mouseout":X="mouseover");return _.T8.findKey(EM,function(H){var f=typeof H[4]==="boolean"&&H[4]==!!P,u=_.XL(H[4])&&_.XL(P)&&_.T8.equals(H[4],P);return!!H.length&&H[0]==K&&H[1]==X&&H[2]==F&&(f||u)})};
_.CQ=function(K,X,F,P){P=P===void 0?{}:P;if(!K||!K.addEventListener&&!K.attachEvent)return"";var H=V0P(K,X,F,P);if(H)return H;H=++g1l.count+"";var f=!(X!="mouseenter"&&X!="mouseleave"||!K.addEventListener||"onmouseenter"in document);var u=f?function(J){J=new bU(J);if(!_.RR(J.relatedTarget,function(Z){return Z==K},!0))return J.currentTarget=K,J.type=X,F.call(K,J)}:function(J){J=new bU(J);
J.currentTarget=K;return F.call(K,J)};
u=_.hV(u);K.addEventListener?(X=="mouseenter"&&f?X="mouseover":X=="mouseleave"&&f?X="mouseout":X=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(X="MozMousePixelScroll"),E19()||typeof P==="boolean"?K.addEventListener(X,u,P):K.addEventListener(X,u,!!P.capture)):K.attachEvent("on"+X,u);EM[H]=[K,X,F,u,P];return H};
_.CNT=function(K,X,F){var P=P===void 0?{}:P;var H=_.CQ(K,X,function(){_.b$3(H);F.apply(K,arguments)},P)};
_.b$3=function(K){K&&(typeof K=="string"&&(K=[K]),_.vd(K,function(X){if(X in EM){var F=EM[X],P=F[0],H=F[1],f=F[3];F=F[4];P.removeEventListener?E19()||typeof F==="boolean"?P.removeEventListener(H,f,F):P.removeEventListener(H,f,!!F.capture):P.detachEvent&&P.detachEvent("on"+H,f);delete EM[X]}}))};
Ni=function(K){this.callback_=K;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(K=0;K<4;K++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.CQ(window,"mousemove",(0,_.T3)(this.onMouseMove_,this));this.timerId_=_.Hm((0,_.T3)(this.checkPosition_,this),25)};
i$4=function(){var K={};var X=K.preferMobileEvents===void 0?!1:K.preferMobileEvents;K=K.enableScrollEventListener===void 0?!0:K.enableScrollEventListener;if(_.mz("_lact",window)==null){var F=parseInt(_.e8("LACT"),10);F=isFinite(F)?Date.now()-Math.max(F,0):-1;_.gS("_lact",F,window);_.gS("_fact",F,window);F==-1&&_.iU();_.CQ(document,"keydown",_.iU);_.CQ(document,"keyup",_.iU);_.CQ(document,"mousedown",_.iU);_.CQ(document,"mouseup",_.iU);X?_.CQ(window,"touchmove",function(){Nq3("touchmove",200)},{passive:!0}):
(_.CQ(window,"resize",function(){Nq3("resize",200)}),K&&_.CQ(window,"scroll",function(){Nq3("scroll",200)}));
new Ni(function(){Nq3("mouse",100)});
_.CQ(document,"touchstart",_.iU,{passive:!0});_.CQ(document,"touchend",_.iU,{passive:!0})}};
Nq3=function(K,X){xDy[K]||(xDy[K]=!0,_.A9.addLowPriorityJob(function(){_.iU();xDy[K]=!1},X))};
_.iU=function(){_.mz("_lact",window)==null&&i$4();var K=Date.now();_.gS("_lact",K,window);_.mz("_fact",window)==-1&&_.gS("_fact",K,window);(K=_.mz("ytglobal.ytUtilActivityCallback_"))&&K()};
_.xg=function(){var K=_.mz("_lact",window);return K==null?-1:Math.max(Date.now()-K,0)};
_.XY=function(K,X,F){var P=_.Ia();if(P&&X){var H=P.subscribe(K,function(){var f=arguments,u=function(){kg[H]&&X.apply&&typeof X.apply=="function"&&X.apply(F||window,f)};
try{_.Imq[K]?u():_.Pm(u,0)}catch(J){_.UN(J)}},F);
kg[H]=!0;KL[K]||(KL[K]=[]);KL[K].push(H);return H}return 0};
_.kwl=function(K){var X=_.Ia();X&&(typeof K==="number"?K=[K]:typeof K==="string"&&(K=[parseInt(K,10)]),_.vd(K,function(F){X.unsubscribeByKey(F);delete kg[F]}))};
_.Kad=function(K,X){var F=_.Ia();F&&F.publish.apply(F,arguments)};
_.Fay=function(K){var X=_.Ia();if(X)if(X.clear(K),K)Xcy(K);else for(var F in KL)Xcy(F)};
_.Ia=function(){return _.FP.ytPubsubPubsubInstance};
Xcy=function(K){KL[K]&&(K=KL[K],_.vd(K,function(X){kg[X]&&delete kg[X]}),K.length=0)};
PbP=function(){var K,X;return"h5vcc"in FY&&((K=FY.h5vcc.traceEvent)==null?0:K.traceBegin)&&((X=FY.h5vcc.traceEvent)==null?0:X.traceEnd)?1:"performance"in FY&&FY.performance.mark&&FY.performance.measure?2:0};
HaT=function(K){var X=PbP();switch(X){case 1:FY.h5vcc.traceEvent.traceBegin("YTLR",K);break;case 2:FY.performance.mark(K+"-start");break;case 0:break;default:_.zJ(X,"unknown trace type")}};
sgl=function(K){var X=PbP();switch(X){case 1:FY.h5vcc.traceEvent.traceEnd("YTLR",K);break;case 2:X=K+"-start";var F=K+"-end";FY.performance.mark(F);FY.performance.measure(K,X,F);break;case 0:break;default:_.zJ(X,"unknown trace type")}};
zeT=function(K){var X,F;(F=(X=window).onerror)==null||F.call(X,K.message,"",0,0,K)};
fAO=function(K){if(_.S("web_lifecycle_error_handling_killswitch"))return K();try{return K()}catch(X){zeT(X)}};
DYw=function(K){return[K.auth===void 0?"undefined":K.auth,K.isJspb===void 0?"undefined":K.isJspb,K.cttAuthInfo===void 0?"undefined":K.cttAuthInfo,K.tier===void 0?"undefined":K.tier].join("/")};
_.T=function(K,X){if(K)return K[X.name]};
Hu=function(){var K=_.mz("yt.logging.ims");K||(K=new Pu,_.gS("yt.logging.ims",K));return K};
cAP=function(K,X){if(K.endpoint==="log_event"){uUq(K);var F=qod(K),P=JAl(K.payload)||"",H=Zaw(P),f=200;if(H){if(H.enabled===!1&&!_.S("web_payload_policy_disabled_killswitch"))return;f=Yo3(H.tier);if(f===400){Qgq(K,X);return}}sj[F]=!0;F={cttAuthInfo:F,isJspb:!1,tier:f};Hu().storePayload(F,K.payload);Mu3(X,!1,F,nc9(P))}};
Bll=function(K,X,F){if(X.endpoint==="log_event"){uUq(void 0,X);var P=qod(X,!0),H=Zaw(K),f=200;if(H){if(H.enabled===!1&&!_.S("web_payload_policy_disabled_killswitch"))return;f=Yo3(H.tier);if(f===400){pcw(K,X,F);return}}sj[P]=!0;P={cttAuthInfo:P,isJspb:!0,tier:f};Hu().storePayload(P,k5(X.payload));Mu3(F,!0,P,nc9(K))}};
Mu3=function(K,X,F,P){X=X===void 0?!1:X;P=P===void 0?!1:P;K&&(zT=new K);K=_.kU("tvhtml5_logging_max_batch_ads_fork")||_.kU("tvhtml5_logging_max_batch")||_.kU("web_logging_max_batch")||100;var H=(0,_.CG)(),f=So4(X,F.tier),u=f.lastDebounceQueueFromLogTimeMs;P&&(f.useVideoStatsEndPoint=!0);P=0;F&&(P=Hu().getSequenceCount(F));var J=function(){ocP({writeThenSend:!0},X,F.tier)};
P>=1E3?J():P>=K?LaT||(LaT=TlM(function(){J();LaT=void 0},0)):H-u>=10&&(rAn(X,F.tier),f.lastDebounceQueueFromLogTimeMs=H)};
Qgq=function(K,X){if(K.endpoint==="log_event"){_.S("more_accurate_gel_parser")&&Hu().storePayload({isJspb:!1},K.payload);uUq(K);var F=qod(K),P=new Map;P.set(F,[K.payload]);var H=JAl(K.payload)||"";X&&(zT=new X);return new _.fL(function(f,u){zT&&zT.isReady()?AA4(P,zT,f,u,{bypassNetworkless:!0},!0,nc9(H)):f()})}};
pcw=function(K,X,F){if(X.endpoint==="log_event"){uUq(void 0,X);var P=qod(X,!0),H=new Map;H.set(P,[k5(X.payload)]);F&&(zT=new F);return new _.fL(function(f){zT&&zT.isReady()?jgP(H,zT,f,{bypassNetworkless:!0},!0,nc9(K)):f()})}};
qod=function(K,X){var F="";if(K.dangerousLogToVisitorSession)F="visitorOnlyApprovedKey";else if(K.cttAuthInfo){if(X===void 0?0:X){X=K.cttAuthInfo.token;F=K.cttAuthInfo;var P=new wc3;F.videoId?P.setVideoId(F.videoId):F.playlistId&&DW(P,2,yAl,lW(F.playlistId));Wal[X]=P}else X=K.cttAuthInfo,F={},X.videoId?F.videoId=X.videoId:X.playlistId&&(F.playlistId=X.playlistId),dYy[K.cttAuthInfo.token]=F;F=K.cttAuthInfo.token}return F};
ocP=function(K,X,F){K=K===void 0?{}:K;X=X===void 0?!1:X;new _.fL(function(P,H){var f=So4(X,F),u=f.useVideoStatsEndPoint;f.useVideoStatsEndPoint=!1;ee3(f.queueTimer);ee3(f.queueMaxTimer);f.queueMaxTimer=0;zT&&zT.isReady()?F===void 0&&_.S("enable_web_tiered_gel")?ReP(P,H,K,X,300,u):ReP(P,H,K,X,F,u):(rAn(X,F),P())})};
ReP=function(K,X,F,P,H,f){var u=zT;F=F===void 0?{}:F;P=P===void 0?!1:P;H=H===void 0?200:H;f=f===void 0?!1:f;var J=new Map,Z=new Map,M={isJspb:P,cttAuthInfo:void 0,tier:H},n={isJspb:P,cttAuthInfo:void 0};if(P){X=_.D(Object.keys(sj));for(H=X.next();!H.done;H=X.next())H=H.value,Z=_.S("enable_web_tiered_gel")?Hu().smartExtractMatchingEntries({keys:[M,n],sizeLimit:1E3}):Hu().extractMatchingEntries({isJspb:!0,cttAuthInfo:H}),Z.length>0&&J.set(H,Z),(_.S("web_fp_via_jspb_and_json")&&F.writeThenSend||!_.S("web_fp_via_jspb_and_json"))&&
delete sj[H];jgP(J,u,K,F,!1,f)}else{J=_.D(Object.keys(sj));for(M=J.next();!M.done;M=J.next())M=M.value,n=_.S("enable_web_tiered_gel")?Hu().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:M,tier:H},{isJspb:!1,cttAuthInfo:M}],sizeLimit:1E3}):Hu().extractMatchingEntries({isJspb:!1,cttAuthInfo:M}),n.length>0&&Z.set(M,n),(_.S("web_fp_via_jspb_and_json")&&F.writeThenSend||!_.S("web_fp_via_jspb_and_json"))&&delete sj[M];AA4(Z,u,K,X,F,!1,f)}};
rAn=function(K,X){K=K===void 0?!1:K;X=X===void 0?200:X;var F=function(){ocP({writeThenSend:!0},K,X)},P=So4(K,X),H=P===UYP||P===he3?5E3:mYl;
_.S("web_gel_timeout_cap")&&!P.queueMaxTimer&&(H=TlM(function(){F()},H),P.queueMaxTimer=H);
ee3(P.queueTimer);H=_.e8("LOGGING_BATCH_TIMEOUT",_.kU("web_gel_debounce_ms",1E4));_.S("shorten_initial_gel_batch_timeout")&&GbM&&(H=lAO);H=TlM(function(){_.kU("gel_min_batch_size")>0?Hu().getSequenceCount({cttAuthInfo:void 0,isJspb:K,tier:X})>=vc4&&F():F()},H);
P.queueTimer=H};
AA4=function(K,X,F,P,H,f,u){H=H===void 0?{}:H;var J=Math.round((0,_.CG)()),Z=K.size,M=aAl(u);K=_.D(K);var n=K.next();for(u={};!n.done;u={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},n=K.next()){var c=_.D(n.value);n=c.next().value;c=c.next().value;u.batchRequest=_.T8.unsafeClone({context:_.pWy(X.config_||_.iD())});if(!_.xd(c)&&!_.S("throw_err_when_logevent_malformed_killswitch")){P();break}u.batchRequest.events=c;
(c=dYy[n])&&tul(u.batchRequest,n,c);delete dYy[n];u.dangerousLogToVisitorSession=n==="visitorOnlyApprovedKey";$Y9(u.batchRequest,J,u.dangerousLogToVisitorSession);OaO(H);u.onSuccess$jscomp$3=function(B){_.S("start_client_gcf")&&_.A9.addLowPriorityJob(function(){return _.q(function(L){return _.Y(L,Vun(B),0)})});
Z--;Z||F()};
u.networkFailures=0;u.onError$jscomp$5=function(B){return function(){B.networkFailures++;if(H.bypassNetworkless&&B.networkFailures===1)try{kS9(X,M,B.batchRequest,gcO({writeThenSend:!0},B.dangerousLogToVisitorSession,B.onSuccess$jscomp$3,B.onError$jscomp$5,f)),GbM=!1}catch(L){_.UN(L),P()}Z--;Z||F()}}(u);
try{kS9(X,M,u.batchRequest,gcO(H,u.dangerousLogToVisitorSession,u.onSuccess$jscomp$3,u.onError$jscomp$5,f)),GbM=!1}catch(B){_.UN(B),P()}}};
jgP=function(K,X,F,P,H,f){P=P===void 0?{}:P;var u=Math.round((0,_.CG)()),J={value:K.size},Z=new Map([].concat(_.LZ(K)));Z=_.D(Z);for(var M=Z.next();!M.done;M=Z.next()){var n=_.D(M.value).next().value,c=K.get(n);M=new Ecy;var B=X.config_||_.iD(),L=new uy,A=new ba4;_.Qf(A,1,B.innertubeContextHostLanguage);_.Qf(A,2,B.innertubeContextGeoLocation);_.It(A,16,B.innertubeContextClientNameFieldNumber);_.Qf(A,17,B.innertubeContextClientVersion);if(B.innertubeContextClientConfigInfo){var d=B.innertubeContextClientConfigInfo,
R=new KQ;d.coldConfigData&&_.Qf(R,1,d.coldConfigData);d.appInstallData&&_.Qf(R,6,d.appInstallData);d.coldHashData&&_.Qf(R,3,d.coldHashData);d.hotHashData&&R.setHotHashData(d.hotHashData);_.Fw(A,62,R)}(d=_.FP.devicePixelRatio)&&d!=1&&_.kS(A,65,_.uW(d));d=UzT();d!==""&&_.Qf(A,54,d);d=hb9();if(d.length>0){R=new CbO;for(var l=0;l<d.length;l++){var a=new qF;a.setKey(d[l].key);DW(a,2,NlP,lW(d[l].value));J_(R,15,qF,a)}_.Fw(L,5,R)}ZlM(B,A);Ysy(L);Q7d(A);Mv4(B,A);nX3(A);_.S("start_client_gcf")&&ccy(A);_.e8("DELEGATED_SESSION_ID")&&
!_.S("pageid_as_header_web")&&(B=new ZW,_.Qf(B,3,_.e8("DELEGATED_SESSION_ID")));!_.S("fill_delegate_context_in_gel_killswitch")&&(d=_.e8("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(R=_.xS(L,ZW,3)||new ZW,B=L,d=_.Qf(R,18,d),_.Fw(B,3,d));B=A;d=_.D(Object.entries(_.aU(_.e8("DEVICE",""))));for(R=d.next();!R.done;R=d.next())l=_.D(R.value),R=l.next().value,l=l.next().value,R==="cbrand"?_.Qf(B,12,l):R==="cmodel"?_.Qf(B,13,l):R==="cbr"?_.Qf(B,87,l):R==="cbrver"?_.Qf(B,88,l):R==="cos"?_.Qf(B,18,
l):R==="cosver"?_.Qf(B,19,l):R==="cplatform"&&_.It(B,42,qcP(l));L.setClient(A);_.Fw(M,1,L);if(A=Wal[n])a:{if(_.Mg(A,Y3(A,yAl,1)))L=1;else if(A.getPlaylistId())L=2;else break a;_.Fw(M,4,A);A=M.getContext()||new uy;B=_.xS(A,ZW,3)||new ZW;d=new Qy;d.setToken(n);_.It(d,1,L);J_(B,12,Qy,d);_.Fw(A,3,B)}delete Wal[n];n=n==="visitorOnlyApprovedKey";iaw()||_.MF(M,2,u);!n&&(L=_.e8("EVENT_ID"))&&(A=xYn(),B=new IAP,_.Qf(B,1,L),_.MF(B,2,A),_.Fw(M,5,B));OaO(P);if(_.S("jspb_serialize_with_worker")&&(L=_.y7M())&&
P.writeThenSend){_.kbO.set(K$9,{client:X,resolve:F,networklessOptions:P,isIsolated:H,useVSSEndpoint:f,dangerousLogToVisitorSession:n,requestsOutstanding:J});L.postMessage({op:"gelBatchToSerialize",batchRequest:k5(M),clientEvents:c,key:K$9});K$9++;break}if(c){L=[];for(A=0;A<c.length;A++)try{L.push(new nL(c[A]))}catch(E){_.UN(new _.nG("Transport failed to deserialize "+String(c[A])))}c=L}else c=[];c=_.D(c);for(L=c.next();!L.done;L=c.next())J_(M,3,nL,L.value);c={startTime:(0,_.CG)(),ticks:{},infos:{}};
M=M.serialize();c.ticks.geljspc=(0,_.CG)();_.S("log_jspb_serialize_latency")&&TIP("gel_jspb_serialize",c,{sampleRate:.1});_.Xn3(M,X,F,P,H,f,n,J)}};
_.Xn3=function(K,X,F,P,H,f,u,J){P=P===void 0?{}:P;J=J===void 0?{value:0}:J;f=aAl(f);P=gcO(P,u,function(Z){_.S("start_client_gcf")&&_.A9.addLowPriorityJob(function(){return _.q(function(M){return _.Y(M,Vun(Z),0)})});
J.value--;J.value||F()},function(){J.value--;
J.value||F()},H);
P.headers["Content-Type"]="application/json+protobuf";P.postBodyFormat="JSPB";P.postBody=K;kS9(X,f,"",P);GbM=!1};
OaO=function(K){_.S("always_send_and_write")&&(K.writeThenSend=!1)};
gcO=function(K,X,F,P,H){K={retry:!0,onSuccess:F,onError:P,networklessOptions:K,dangerousLogToVisitorSession:X,bypassMonitoring:!!H,headers:{},postBodyFormat:"",postBody:"",compress:_.S("compress_gel")||_.S("compress_gel_lr")};iaw()&&(K.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.CG)())));return K};
$Y9=function(K,X,F){iaw()||(K.requestTimeMs=String(X));_.S("unsplit_gel_payloads_in_logs")&&(K.unsplitGelPayloadsInLogs=!0);!F&&(X=_.e8("EVENT_ID"))&&(F=xYn(),K.serializedClientEventId={serializedEventId:X,clientCounter:String(F)})};
xYn=function(){var K=_.e8("BATCH_CLIENT_COUNTER")||0;K||(K=Math.floor(Math.random()*65535/2));K++;K>65535&&(K=1);_.d2("BATCH_CLIENT_COUNTER",K);return K};
tul=function(K,X,F){if(F.videoId)var P="VIDEO";else if(F.playlistId)P="PLAYLIST";else return;K.credentialTransferTokenTargetId=F;K.context=K.context||{};K.context.user=K.context.user||{};K.context.user.credentialTransferTokens=[{token:X,scope:P}]};
uUq=function(K,X){var F=_.KG("il_payload_scraping")==="enable_il_payload_scraping";if(!_.mz("yt.logging.transport.enableScrapingForTest"))if(F)F$T=[],_.gS("yt.logging.transport.enableScrapingForTest",!0),_.gS("yt.logging.transport.scrapedPayloadsForTesting",F$T),_.gS("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.gS("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.gS("yt.logging.transport.scrapeClientEvent",!0);else return;F=_.mz("yt.logging.transport.scrapedPayloadsForTesting");var P=_.mz("yt.logging.transport.payloadToScrape");X&&(X=_.mz("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(X.payload)())&&F.push(X);X=_.mz("yt.logging.transport.scrapeClientEvent");if(P&&P.length>=1)for(var H=0;H<P.length;H++)if(K&&K.payload[P[H]])if(X)F.push(K.payload);else{var f=void 0;F.push(((f=K)==null?void 0:f.payload)[P[H]])}_.gS("yt.logging.transport.scrapedPayloadsForTesting",
F)};
iaw=function(){return _.S("use_request_time_ms_header")||_.S("lr_use_request_time_ms_header")};
TlM=function(K,X){return _.S("transport_use_scheduler")===!1?_.Pm(K,X):_.S("logging_avoid_blocking_during_navigation")||_.S("lr_logging_avoid_blocking_during_navigation")?_.cu(_.A9,function(){if(_.PH9().currentState==="none")K();else{var F={};_.PH9().install((F.none={callback:K},F))}},X):_.cu(_.A9,K,X)};
ee3=function(K){_.S("transport_use_scheduler")?_.A9.cancelJob(K):_.sU(K)};
Vun=function(K){var X,F,P,H,f,u,J,Z,M,n;return _.q(function(c){return c.nextAddress==1?(P=(X=K)==null?void 0:(F=X.responseContext)==null?void 0:F.globalConfigGroup,H=_.T(P,HBl),u=(f=P)==null?void 0:f.hotHashData,J=_.T(P,svd),M=(Z=P)==null?void 0:Z.coldHashData,(n=_.i9().resolve(_.Nu(pL)))?u?H?_.Y(c,zcy(n,u,H),2):_.Y(c,zcy(n,u),2):c.jumpTo(2):c.return()):M?J?_.Y(c,faM(n,M,J),0):_.Y(c,faM(n,M),0):c.jumpTo(0)})};
So4=function(K,X){X=X===void 0?200:X;return K?X===300?UYP:D0w:X===300?he3:ul3};
Zaw=function(K){if(_.S("enable_web_tiered_gel")){K=qPq[K||""];var X,F,P,H=_.i9().resolve(_.Nu(pL))==null?void 0:(X=JYn())==null?void 0:(F=X.loggingHotConfig)==null?void 0:(P=F.eventLoggingConfig)==null?void 0:P.payloadPolicies;if(H)for(X=0;X<H.length;X++)if(H[X].payloadNumber===K)return H[X]}};
JAl=function(K){K=Object.keys(K);K=_.D(K);for(var X=K.next();!X.done;X=K.next())if(X=X.value,qPq[X])return X};
Yo3=function(K){switch(K){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}};
nc9=function(K){return K==="gelDebuggingEvent"};
aAl=function(K){return(K===void 0?0:K)&&_.S("vss_through_gel_video_stats")?"video_stats":"log_event"};
SF=function(K,X,F,P){P=P===void 0?{}:P;var H={},f=Math.round(P.timestamp||(0,_.CG)());H.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;H[K]=X;K=_.xg();H.context={lastActivityMs:String(P.timestamp||!isFinite(K)?-1:K)};P.sequenceGroup&&!_.S("web_gel_sequence_info_killswitch")&&(K=H.context,X=P.sequenceGroup,X={index:ZB9(X),groupKey:X},K.sequence=X,P.endOfSequence&&delete Bu[P.sequenceGroup]);(P.sendIsolatedPayload?Qgq:cAP)({endpoint:"log_event",payload:H,cttAuthInfo:P.cttAuthInfo,dangerousLogToVisitorSession:P.dangerousLogToVisitorSession},
F)};
ZB9=function(K){Bu[K]=K in Bu?Bu[K]+1:0;return Bu[K]};
_.LL=function(K,X,F){F=F===void 0?{}:F;var P=oI;_.RU("ytLoggingEventsDefaultDisabled",!1)&&oI===oI&&(P=null);SF(K,X,P,F)};
_.A_=function(){if(_.S("web_fp_via_jspb")){var K=!0;K=K===void 0?!1:K;var X=YPy;YPy=[];if(X){X=_.D(X);for(var F=X.next();!F.done;F=X.next())F=F.value,K?SF(F.payloadName,F.payload,oI,F.options):_.LL(F.payloadName,F.payload,F.options)}ocP(void 0,!0);if(!_.S("web_fp_via_jspb_and_json"))return}ocP(void 0,!1)};
QvM=function(K,X){var F;if((F=X)==null?0:F.componentStack)return X;if(K=K.componentStack)X||(X={}),X.componentStack=K;return X};
M9n=function(){_.vd(_.e8("ERRORS")||[],function(K){_.jF.apply(null,K)});
_.d2("ERRORS",[])};
_.wc=function(K){_.jF(K)};
_.yy=function(K){_.jF(K,"WARNING")};
nOy=function(K){K instanceof Error?_.jF(K):(K=_.XL(K)?JSON.stringify(K):String(K),K=new _.nG(K),K.name="RejectedPromiseError",_.yy(K))};
cYq=function(K,X,F,P,H,f){X=X===void 0?"Unknown file":X;F=F===void 0?0:F;var u=!1,J=Q2M("log_window_onerror_fraction");if(J&&Math.random()<J)u=!0;else{J=document.getElementsByTagName("script");for(var Z=0,M=J.length;Z<M;Z++)if(J[Z].src.indexOf("/debug-")>0){u=!0;break}}u&&(u=!1,H?u=!0:(typeof K==="string"?J=K:ErrorEvent&&K instanceof ErrorEvent?(u=!0,J=K.message,X=K.filename,F=K.lineno,P=K.colno):(J="Unknown error",X="Unknown file",F=0),H=new _.nG(J),H.name="UnhandledWindowError",H.message=J,H.fileName=
X,H.lineNumber=F,isNaN(P)?delete H.columnNumber:H.columnNumber=P),_.S("wiz_enable_component_stack_propagation_killswitch")||(f=QvM(H,f)),f&&_.Wu(H,f),u?_.jF(H):_.yy(H))};
_.jF=function(K,X,F,P,H,f,u,J){f=f===void 0?{}:f;f.name=F||_.e8("INNERTUBE_CONTEXT_CLIENT_NAME",1);f.version=P||_.e8("INNERTUBE_CONTEXT_CLIENT_VERSION");F=f;X=X===void 0?"ERROR":X;u=u===void 0?!1:u;X=X===void 0?"ERROR":X;u=u===void 0?!1:u;if(K&&(K.hasOwnProperty("level")&&K.level&&(X=K.level),_.S("console_log_js_exceptions")&&(P=[],P.push("Name: "+K.name),P.push("Message: "+K.message),K.hasOwnProperty("params")&&P.push("Error Params: "+JSON.stringify(K.params)),K.hasOwnProperty("args")&&P.push("Error args: "+
JSON.stringify(K.args)),P.push("File name: "+K.fileName),P.push("Stacktrace: "+K.stack),P=P.join("\n"),window.console.log(P,K)),!(pnT>=5))){P=[];H=_.D(B$T);for(f=H.next();!f.done;f=H.next()){f=f.value;try{f()&&P.push(f())}catch(R){}}P=[].concat(_.LZ(SPy),_.LZ(P));var Z=oOT(K);H=Z.message||"Unknown Error";f=Z.name||"UnknownError";var M=Z.stack||K.stacktrace||"Not available";if(M.startsWith(f+": "+H)){var n=M.split("\n");n.shift();M=n.join("\n")}n=Z.lineNumber||"Not available";Z=Z.fileName||"Not available";
var c=0;if(K.hasOwnProperty("args")&&K.args&&K.args.length)for(var B=0;B<K.args.length&&!(c=u1w(K.args[B],"params."+B,F,c),c>=500);B++);else if(K.hasOwnProperty("params")&&K.params){var L=K.params;if(typeof K.params==="object")for(B in L){if(L[B]){var A="params."+B,d=qU(L[B]);F[A]=d;c+=A.length+d.length;if(c>500)break}}else F.params=qU(L)}if(P.length)for(B=0;B<P.length&&!(c=u1w(P[B],"params.context."+B,F,c),c>=500);B++);navigator.vendor&&!F.hasOwnProperty("vendor")&&(F["device.vendor"]=navigator.vendor);
B={message:H,name:f,lineNumber:n,fileName:Z,stack:M,params:F,sampleWeight:1};F=Number(K.columnNumber);isNaN(F)||(B.lineNumber=B.lineNumber+":"+F);if(K.level==="IGNORED")K=0;else a:{K=L$d();F=_.D(K.messageWeights);for(P=F.next();!P.done;P=F.next())if(P=P.value,B.message&&B.message.match(P.messageRegExp)){K=P.weight;break a}K=_.D(K.callbackWeights);for(F=K.next();!F.done;F=K.next())if(F=F.value,F.callback(B)){K=F.weight;break a}K=1}B.sampleWeight=K;K=_.D(T$n);for(F=K.next();!F.done;F=K.next())if(F=
F.value,F.patternsForType[B.name])for(H=_.D(F.patternsForType[B.name]),P=H.next();!P.done;P=H.next())if(f=P.value,P=B.message.match(f.regexp)){B.params["params.error.original"]=P[0];H=f.groups;f={};for(n=0;n<H.length;n++)f[H[n]]=P[n+1],B.params["params.error."+H[n]]=P[n+1];B.message=F.messageFn(f);break}B.params||(B.params={});K=L$d();B.params["params.errorServiceSignature"]="msg="+K.messageWeights.length+"&cb="+K.callbackWeights.length;B.params["params.serviceWorker"]="false";_.FP.document&&_.FP.document.querySelectorAll&&
(B.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new dc(rYw,"sample")).constructor!==dc&&(B.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(B);if(B.sampleWeight!==0&&!AYT.has(B.message)){if(u&&_.S("web_enable_error_204"))jvy(X===void 0?"ERROR":X,B);else{X=X===void 0?"ERROR":X;X==="ERROR"?(wnd.publish("handleError",B),_.S("record_app_crashed_web")&&yYl===0&&B.sampleWeight===1&&(yYl++,u={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.S("report_client_error_with_app_crash_ks")||(u.systemHealth={crashData:{clientError:{logMessage:{message:B.message}}}}),_.LL("appCrashed",u)),W$9++):X==="WARNING"&&wnd.publish("handleWarning",B);if(_.S("kevlar_gel_error_routing")){u=X;J=J===void 0?{}:J;b:{K=_.D(d0n);for(F=K.next();!F.done;F=K.next())if(yq(F.value.toLowerCase())){K=!0;break b}K=!1}if(K)J=void 0;else{F={stackTrace:B.stack};B.fileName&&(F.filename=B.fileName);K=B.lineNumber&&B.lineNumber.split?B.lineNumber.split(":"):[];K.length!==
0&&(K.length!==1||isNaN(Number(K[0]))?K.length!==2||isNaN(Number(K[0]))||isNaN(Number(K[1]))||(F.lineNumber=Number(K[0]),F.columnNumber=Number(K[1])):F.lineNumber=Number(K[0]));K={level:"ERROR_LEVEL_UNKNOWN",message:B.message,errorClassName:B.name,sampleWeight:B.sampleWeight};u==="ERROR"?K.level="ERROR_LEVEL_ERROR":u==="WARNING"&&(K.level="ERROR_LEVEL_WARNNING");F={isObfuscated:!0,browserStackInfo:F};J.pageUrl=window.location.href;J.kvPairs=[];_.e8("FEXP_EXPERIMENTS")&&(J.experimentIds=_.e8("FEXP_EXPERIMENTS"));
P=_.e8("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!Q2M("web_disable_gel_stp_ecatcher_killswitch")&&P)for(H=_.D(Object.keys(P)),f=H.next();!f.done;f=H.next())f=f.value,J.kvPairs.push({key:f,value:String(P[f])});if(P=B.params)for(H=_.D(Object.keys(P)),f=H.next();!f.done;f=H.next())f=f.value,J.kvPairs.push({key:"client."+f,value:String(P[f])});P=_.e8("SERVER_NAME");H=_.e8("SERVER_VERSION");P&&H&&(J.kvPairs.push({key:"server.name",value:P}),J.kvPairs.push({key:"server.version",value:H}));J={errorMetadata:J,
stackTrace:F,logMessage:K}}J&&(_.LL("clientError",J),(u==="ERROR"||_.S("errors_flush_gel_always_killswitch"))&&_.A_())}_.S("suppress_error_204_logging")||jvy(X,B)}try{AYT.add(B.message)}catch(R){}pnT++}}};
jvy=function(K,X){var F=X.params||{};K={urlParams:{a:"logerror",t:"jserror",type:X.name,msg:X.message.substr(0,250),line:X.lineNumber,level:K,"client.name":F.name},postParams:{url:_.e8("PAGE_NAME",window.location.href),file:X.fileName},method:"POST"};F.version&&(K["client.version"]=F.version);if(K.postParams){X.stack&&(K.postParams.stack=X.stack);X=_.D(Object.keys(F));for(var P=X.next();!P.done;P=X.next())P=P.value,K.postParams["client."+P]=F[P];if(F=_.e8("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(X=
_.D(Object.keys(F)),P=X.next();!P.done;P=X.next())P=P.value,K.postParams[P]=F[P];(F=_.e8("LAVA_VERSION"))&&(K.postParams["lava.version"]=F);F=_.e8("SERVER_NAME");X=_.e8("SERVER_VERSION");F&&X&&(K.postParams["server.name"]=F,K.postParams["server.version"]=X)}_.fG(_.e8("ECATCHER_REPORT_HOST","")+"/error_204",K)};
_.ec9=function(K,X){X=X===void 0?"ERROR":X;var F=F===void 0?{}:F;var P=_.mz("ytbin.polymer.shared.lib.tampering.info");P&&(P=P())&&(F["params.tamperingInfo"]=P.sort().join(","));_.jF(K,X,void 0,void 0,!0,F)};
_.Wu=function(K){var X=_.Ls.apply(1,arguments);K.args||(K.args=[]);Array.isArray(K.args)&&K.args.push.apply(K.args,_.LZ(X))};
RcM=function(K){K.level="IGNORED"};
U0y=function(K,X){SPy.push(K);X();SPy.pop()};
RI=function(K,X){for(var F in X)X.hasOwnProperty(F)&&(K=_.eF(K,F,X[F]));return K};
_.hcn=function(K,X,F){F=F===void 0?!1:F;if(!K)return null;if(K.adInfoDialogEndpoint||K.backstageImageUploadEndpoint||K.confirmDialogEndpoint||K.clientActionEndpoint||K.createBackstagePostDialogEndpoint||K.createCommentReplyDialogEndpoint||K.flowEndpoint||K.guideBuilderEndpoint||K.liveChatDialogEndpoint||K.modalEndpoint||K.openPopupAction||K.shareEndpoint||K.shareEntityEndpoint||K.showLiveChatItemEndpoint||K.subscriptionManagerEndpoint||K.unlimitedCreateFamilyEndpoint||K.unlimitedFamilyFlowEndpoint||
K.updateCommentDialogEndpoint||K.updateCommentReplyDialogEndpoint||K.userFeedbackEndpoint||K.videoEditorEndpoint||K.ypcCancelSurveyEndpoint)return X=_.kU("polymer_report_client_url_requested_rate"),!F&&Math.random()<X&&_.yy(new _.nG("urlForEndpoint used on client endpoint",K)),null;var P=_.kU("polymer_report_missing_web_navigation_endpoint_rate");if(K.liveChatEndpoint||K.liveChatReplayEndpoint)P=0;if(!K.commandMetadata&&!K.clickTrackingParams&&Math.random()<P){var H={},f;for(f in K)H[f]="1";_.yy(new _.nG("Missing navigation data",
H))}H="";if(K.commandMetadata&&K.commandMetadata.webCommandMetadata&&K.commandMetadata.webCommandMetadata.url)H=K.commandMetadata.webCommandMetadata.url;else if(K.searchEndpoint)Math.random()<P&&_.yy(new _.nG("Should not manually handle search",K)),H="/results?search_query="+encodeURIComponent(K.searchEndpoint.query).replace(/%20/g,"+"),K.searchEndpoint.params&&(H+="&sp="+K.searchEndpoint.params);else if(K.watchEndpoint)Math.random()<P&&_.yy(new _.nG("Should not manually handle watch",K)),H="/watch?v="+
K.watchEndpoint.videoId,K.watchEndpoint.playlistId&&(H+="&list="+K.watchEndpoint.playlistId),K.watchEndpoint.index&&(H+="&index="+K.watchEndpoint.index),K.watchEndpoint.startTimeSeconds&&(H+="&t="+K.watchEndpoint.startTimeSeconds);else if(K.browseEndpoint)P=K.browseEndpoint.browseId,(f=K.browseEndpoint.canonicalBaseUrl)?H=f:P&&(H=P.substr(0,2),H=H==="FE"?P==="FEwhat_to_watch"?"/":P==="FEmy_videos"?"/my_videos":"/feed/"+P.substr(2):H==="VL"?"/playlist?list="+P.substr(2):"/channel/"+P),H&&K.browseEndpoint.query&&
(H=RI(H+"/search",{query:K.browseEndpoint.query})),H&&K.browseEndpoint.params&&(H=RI(H,{params:K.browseEndpoint.params}));else{if(K.urlEndpoint)return K.urlEndpoint.url;K.signInEndpoint?(H="https://accounts.google.com/ServiceLogin",P={},_.T8.extend(P,X||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),X=P):K.uploadEndpoint?H="//www.youtube.com/upload":K.liveChatEndpoint?(H=K.liveChatEndpoint,P=_.T8.clone(H),_.XL(H.continuation)&&(f=Object.keys(H.continuation)[0],
P.continuation=H.continuation[f].continuation),H=RI("/youtubei/v1/live_chat/get_live_chat",P)):K.liveChatReplayEndpoint?(H=_.T8.clone(K.liveChatReplayEndpoint),H.currentPlayerState&&(_.T8.extend(H,H.currentPlayerState),delete H.currentPlayerState),H=RI("/youtubei/v1/live_chat/get_live_chat_replay",H)):K.liveChatItemContextMenuEndpoint?H=RI("/youtubei/v1/live_chat/get_item_context_menu",K.liveChatItemContextMenuEndpoint):K.liveChatPurchaseMessageEndpoint?H=RI("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
K.liveChatPurchaseMessageEndpoint):K.openSuperStickerBuyFlowCommand?H=RI("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",K.openSuperStickerBuyFlowCommand):K.videoEditEndpoint?H=RI("/edit",{video_id:K.videoEditEndpoint.videoId}):K.liveDashboardEndpoint?H=K.liveDashboardEndpoint.videoId?RI("/live_dashboard",{v:K.liveDashboardEndpoint.videoId}):"/live_dashboard":K.signalNavigationEndpoint&&K.signalNavigationEndpoint.signal&&K.signalNavigationEndpoint.signal==="WEBCAM"?H="/webcam":K.getPdgBuyFlowCommand&&
(H=RI(K.getPdgBuyFlowCommand.buyflowApiPath,{params:K.getPdgBuyFlowCommand.params}))}return H||F?RI(H,X||{}):(_.yy(new _.nG("Error: Can't construct url for endpoint","keys:"+Object.keys(K).sort().join(","),K)),null)};
m0y=function(K){if(K){if(K.browseEndpoint)return!!K.browseEndpoint.nofollow;if(K.watchEndpoint)return!!K.watchEndpoint.nofollow;if(K.urlEndpoint)return!!K.urlEndpoint.nofollow}return!1};
_.la4=function(K,X){var F=X+K,P=GDn.get(F);if(P)return P;K=X+"-"+K.replace(/([A-Z])/g,"-$1").toLowerCase();GDn.set(F,K);return K};
vOd=function(K){var X=_.y8(K,"action")||_.y8(K,"command")||_.y8(K,"endpoint");if(!X)return null;X=_.la4(X,"yt");_.T(K,_.Uj)&&(X+="-"+_.T(K,_.Uj).signal.toLowerCase().replace(/_/g,"-"));return X};
OBy=function(K){try{var X=Object.keys(K)}catch(H){return[]}for(var F=0;F<X.length;F++){var P=X[F];if(aaT.test(P)||t9P.test(P))return $0n(K[P])}return[]};
$0n=function(K){return K.command?[K.command]:K.onExecutionAction?[K.onExecutionAction]:K.onResponseReceivedCommand?[K.onResponseReceivedCommand]:K.updateFlowCommand?[K.updateFlowCommand]:K.clientActions?K.clientActions:K.action?[K.action]:K.actions||K.commands||K.onResponseReceivedActions||K.onResponseReceivedCommands||K.onResponseReceivedEndpoints||[]};
gO3=function(K,X){X=X===void 0?!1:X;var F=_.i9().resolve(_.Nu(h_));F||(F=new V9M,_.i9().addProvider({provide:h_,useValue:F}));return F&&K&&!_.T8.isEmpty(K)?F.getUrl(K,X):""};
EOP=function(K,X,F){F=F===void 0?"":F;if(X){K.data=X;var P=gO3(X);P?(Ao(K,P),m0y(X)||!b9(P)?K.rel="nofollow":K.removeAttribute("rel"),_.T(X,_.mc)&&_.T(X,_.mc).target==="TARGET_NEW_WINDOW"?K.target="_blank":F?K.target=F:K.removeAttribute("target")):(K.removeAttribute("href"),K.removeAttribute("rel"),K.removeAttribute("target"))}};
_.aI=function(K,X){var F=CJ;if(oD())bBT(K,function(){var f=_.Ls.apply(0,arguments);WM(F,function(){X.apply(null,_.LZ(f))})});
else{var P=_.GT.getInstance(),H=w2(X);Dzl(function(){H.value=X});
_.AV(function(){var f={},u=_.ly(P,(f[K]=function(){var J=_.Ls.apply(0,arguments);WM(F,function(){H.value.apply(H,_.LZ(J))})},f));
return function(){var J={};_.vu(P,(J[K]="",J),u)}})}};
_.t_=function(K){return oD()?CHP(K):N$l(K)};
_.$3=function(K){return oD()?CHP(K):N$l(K)};
N$l=function(K){return j8(function(){return CHP(K)})};
CHP=function(K){var X=s2l(function(F){X.value&&X.value===F||(X.__count=X.__count?X.__count+1:1);X.value=F;var P=function(){var H=PM(null);try{return K==null?void 0:K(F)}finally{PM(H)}}();
return function(){P==null||P();X.value=null}});
return X};
iB4=function(K){var X=CJ,F=pv;return{getFn:function(){return function(P){X.isDisposed||Tv(function(){return DK(function(){return K(P)})},F)!==!0&&P.stopPropagation()}}}};
Oj=function(K){if(typeof K.children==="function")return K.children(),null;K=_.D(K.children);for(var X=K.next();!X.done;X=K.next())X=X.value,X();return null};
x03=function(K){var X;return((X=K.prototype)==null?void 0:X.render)===void 0};
Iad=function(K){K=K.items.map(K.children);return K.length>0&&typeof K[0]==="string"?K.join(""):K};
KWP=function(K,X,F){F=F===void 0?!1:F;Tv(function(){return kDq(K,X,F)})};
kDq=function(K,X,F){F=((F===void 0?0:F)?XOn:FWy)(K,function(){Vy(X)});
return F===null?K:F};
Vy=function(K){if(K!==void 0&&K!==null)if(K instanceof f9)for(var X=hZ;mh()!=null&&OLO in mh()&&X.contains(mh());)vM();else if(Array.isArray(K))for(X=_.D(K),K=X.next();!K.done;K=X.next())Vy(K.value);else if(K instanceof zp||"function"==typeof _.gF&&K instanceof _.gF)Ns(K.toString());else if(_.K9(K)){if(mh()!==K){var F,P;X=(P=(F=pv)==null?void 0:F.name)!=null?P:"unknown";throw Error("cc`"+K.tagName+"`"+X);}vM()}else if(HLl(K)||K instanceof ji||Py3(K))for(X=zMd(K),X=Array.from(X.childNodes),X=_.D(X),
K=X.next();!K.done;K=X.next())hZ.appendChild(K.value),vM();else if(Yi(K)&&(K=K.toString()),F=typeof K,F==="boolean"||F==="number"||F==="string")Ns(K);else if(typeof K==="function"){X=hZ;var H=mh();H&&(H._isSignalTextNode||H._isSafeOrSanitizedHtmlNode)||RMn(X,H,K);vM()}else if(K.type===Iad)Vy(K.type(Object.assign({},K.props,{children:K.children[0]})));else{Zq.beforeVisit(K);if(typeof K.type==="string"){a:{K.__open||Goy(K.type,K.props.idomKey);H=hZ;for(X in K.props)if(K.props[X]!==PCd){var f=K.props[X];
F=gs;F.push(X);F.push(f)}X=_.Kv.attributes;X=X===void 0?Ej:X;f=hZ;F=Ug(f);Vtq(f,F,X);eMw(H,K.props,!0);if((K.props.skip||K.props.skipchildren)&&hZ.hasChildNodes())tZ();else{if(K.type==="style"&&c_y(K.children)===null){tZ();X=void 0;break a}Vy(K.children)}lT9();K.__open&&(K.__open=!1);xiy(H,K.props);X=H}return X}if(K.type===_.ID)Vy(K.children);else if(!H4O(K)){X=K;try{sxw(X)}catch(u){K=u,(f=_.Kv.handleError)==null||f.call.apply(f,[_.Kv].concat(_.LZ(_.ds(K,(H=X.type)==null?void 0:H.TAG_NAME))))}X.__open&&
(lT9(),X.__open=!1)}}};
zWl=function(K,X){var F;x03(K)?F=new Mu(X,K):F=new K(X);F.JSC$8275___type=K;F.__updateContext={nextState:F.state,isForced:!1};return F};
sxw=function(K){var X=K.type,F=X.TAG_NAME;if(X===Oj)K.props.children=K.children,X(K.props);else{K.children.length>0&&(K.props.children=K.children);var P;(P=K.props).idomKey||(P.idomKey=X);if(F){var H=Goy(F,K.props.idomKey);K.__open=!0;var f=H.__instance}f||(f=zWl(X,K.props),f.props=null,H&&(H.__instance=f,f.el=H));var u;F=((u=f.__updateContext)!=null?u:{nextState:f.state,isForced:!1}).nextState;f.__updateContext=void 0;X.getDerivedStateFromProps&&(F=X.getDerivedStateFromProps(K.props,F));f.props=
K.props;f.state=F;u=function(){var J=f;Zq.beforeRender(J);var Z=J.render(J.props);Zq.afterRender(J,Z);Z?(J.props.idomKey&&(Z.props.idomKey=J.props.idomKey),J=Z):J=void 0;if(Z=J)if(Z.__open=K.__open,J=Vy(Z),K.__open=Z.__open,!X.TAG_NAME)if(J)X.TAG_NAME=J.tagName.toLowerCase(),J.__instance=f,f.el=J;else{var M;if((M=f.hooks)==null?0:M.length){var n;(n=_.Kv.handleError)==null||n.call.apply(n,[_.Kv].concat(_.LZ(_.ds(Error("hd")))))}}f.didPatch();Zq.didPatch(f)};
(F=f.functionComponent)?XEn(F,u,f.props.debugInstance):u()}};
H4O=function(K){var X=K.type;if(!x03(X)||X===Oj||X.componentType===BM)return!1;K.props.children=K.children.length>1?K.children:K.children[0];var F,P=(F=K.props.idomKey)!=null?F:K.type,H;if(mh()&&((H=mh()[Hd])==null?void 0:H.key)===P){var f=mh(),u=f[Hd];if(!u)throw Error("bc`"+f.tagName);var J;(J=u.updateSignalsFromIdomProps)==null||J.call(u,K.props);fFq(u);return!0}if(DBq.has(X.name))throw J=X.name,X=(u=(f=pv)==null?void 0:f.name)!=null?u:"unknown",Error("ac`"+J+"`"+X);GT4(K.type,K.props,K.children);
K.props.renderedFromIdom=!0;(J=XEn(K.type,function(){return jI9(K.type,K.props)},K.props.debugInstance))&&uqO(J);
return!0};
qeq=function(K){for(var X=0;X<zr(K).length;X++)vM()};
fFq=function(K){var X=Jel();if(X)qeq(X);else for(var F=0;F<K.numNodes;F++)(X=Jel())?qeq(X):vM()};
Jel=function(){var K;return(K=mh()[Hd])==null?void 0:K.sourceDynamicRange};
uqO=function(K){K=kow(K);K=Array.isArray(K)?K:[K];K=_.D(K);for(var X=K.next();!X.done;X=K.next())hZ.insertBefore(X.value,mh()),vM()};
Z4T=function(K){var X=y_w(),F=j8(function(){return{value:typeof K==="function"?K():K}});
return[F.value,function(P){if(Q8!==null){var H;(H=_.Kv.handleError)==null||H.call.apply(H,[_.Kv].concat(_.LZ(_.ds(Error("id")))))}F.value=typeof P==="function"?P(F.value):P;X.__updateContext={nextState:X.state,isForced:!0};P=_.Ng(X.effectContext);H=kM(!1);try{if(X.el){var f,u={},J=(u.props=X.props,u.type=X.JSC$8275___type,u.children=(f=X.props.children)!=null?f:[],u[xM]=!0,u);try{KWP(X.el,J,!0)}catch(n){var Z,M;(M=_.Kv.handleError)==null||M.call.apply(M,[_.Kv].concat(_.LZ(_.ds(n,(Z=X.JSC$8275___type)==
null?void 0:Z.TAG_NAME))))}}}finally{kM(H),_.Ng(P)}}]};
by=function(K,X){var F=CJ,P=function(H){WM(F,function(){X(H)})};
window.addEventListener(K,P,void 0);_.AZ(function(){window.removeEventListener(K,P,void 0)})};
_.NF=function(K,X){var F=CJ;_.AV(function(){var P,H=(P=X.observer)!=null?P:_.i9().resolve(CL);if(P=K.value){var f=YeM(P),u=[];X.showOption&&u.push(H.observe(P,function(){WM(F,function(){X.visibilityCallback(!0)})},X.showOption));
X.hideOption&&u.push(H.observe(P,function(){WM(F,function(){X.visibilityCallback(!1)})},X.hideOption));
X.prescanOption&&X.prescanCallback&&u.push(H.observe(P,function(){WM(F,function(){X.prescanCallback()})},X.prescanOption));
var J;f.visibilityMonitorKeys=((J=f.visibilityMonitorKeys)!=null?J:[]).concat(u)}})};
YeM=function(K){var X;return(X=K.polymerController)!=null?X:K};
_.iy=function(K){K.componentType=BM};
cen=function(K,X){var F=Qxy;return _.Q(_.ID,null,bB(_.Kv.enableLazyTsx,function(){return _.Q(Md9,{id:F,value:K,children:X})},function(){var P=nfT(F,K);
kL(P);P=_.Ng(P);try{return X()}finally{_.Ng(P)}}))};
Md9=function(K){var X=K.children;K=nfT(K.id,K.value);kL(K);K=_.Ng(K);try{return _.Q(_.ID,null,Dq(X()))}finally{_.Ng(K)}};
nfT=function(K,X){return Object.assign(Object.create(pOq),{id:K,contextValue:X})};
Bnd=function(K){var X,F=CJ;_.ys(function(){var P=_.Ng(F),H=kM(!X);try{if(X)KWP(X,K.children(),!0);else if(X=Dq(K.children()),!(X instanceof Element))throw Error("jd");}finally{kM(H),_.Ng(P)}});
return X};
_.Sel=function(K,X){var F;X=jj(function(){var P=kM(!0);try{F=zr(K())}finally{kM(P)}},X===void 0?!1:X);
return[F,X]};
LWd=function(K){K=K.buf.charCodeAt(K.pos++);return of4[K]};
x3=function(K){var X=0,F=0;do{var P=LWd(K);X|=(P&31)<<F;F+=5}while(P&32);return X<0?X+4294967296:X};
AeO=function(K,X,F){Tnq(K,X);K[X][re4].unshift(F)};
Tnq=function(K,X){if(!K[X]||!K[X][re4]){var F=K[X],P=F?[F]:[];K[X]=function(){for(var H=_.D(P),f=H.next();!f.done;f=H.next())f.value.apply(this,arguments)};
K[X][re4]=P}};
jx4=function(K){if(!K)return[];var X=[];K=_.D(K);for(var F=K.next();!F.done;F=K.next())F=F.value,Array.isArray(F)?X.push.apply(X,_.LZ(jx4(F))):X.push(F);return X};
_.k3=function(K,X){if(K&&wOy.test(K)||K==="//")return K;if(yeM===void 0){yeM=!1;try{var F=new URL("b","http://a");F.pathname="c%20d";yeM=F.href==="http://a/c%20d"}catch(P){}}X||(X=document.baseURI||window.location.href);if(yeM)try{return(new URL(K,X)).href}catch(P){return K}II||(II=document.implementation.createHTMLDocument("temp"),II.base=II.createElement("base"),II.head.appendChild(II.base),II.anchor=II.createElement("a"),II.body.appendChild(II.anchor));II.base.href=X;II.anchor.href=K;return II.anchor.href||
K};
dBP=function(K,X){return K.replace(WWw,function(F,P,H,f){return P+"'"+_.k3(H.replace(/["']/g,""),X)+"'"+f})};
eWl=function(K){return K.substring(0,K.lastIndexOf("/")+1)};
hWn=function(){RWw=!1;for(var K=KD.length,X=0;X<K;X++){var F=KD[X];if(F)try{F()}catch(P){setTimeout(function(){throw P;})}}KD.splice(0,K);
UBn+=K};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(K){console.log("["+K.is+"]: registered")};
G9l=function(K){mBn.push(K)};
XS=function(K){return lF9[K]||(lF9[K]=K.indexOf("-")<0?K:K.replace(vfO,function(X){return X[1].toUpperCase()}))};
FS=function(K){return lF9[K]||(lF9[K]=K.replace(aFn,"-$1").toLowerCase())};
td9=function(K,X){var F=X.parentInfo&&td9(K,X.parentInfo);if(F)for(K=F.firstChild,F=0;K;K=K.nextSibling){if(X.parentIndex===F++)return K}else return K};
$BM=function(K,X){K=K._methodHost||K;return function(F){if(K[X])K[X](F,F.detail);else console.warn("listener method `"+X+"` not defined")}};
Pb=function(K){return K.indexOf(".")>=0};
Hb=function(K){var X=K.indexOf(".");return X===-1?K:K.slice(0,X)};
O43=function(K,X){return K.indexOf(X+".")===0};
si=function(K,X){return X.indexOf(K+".")===0};
zB=function(K,X,F){return X+F.slice(K.length)};
VdO=function(K,X){return K===X||O43(K,X)||si(K,X)};
fD=function(K){if(Array.isArray(K)){for(var X=[],F=0;F<K.length;F++)for(var P=K[F].toString().split("."),H=0;H<P.length;H++)X.push(P[H]);return X.join(".")}return K};
gfy=function(K){return Array.isArray(K)?fD(K).split("."):K.toString().split(".")};
Dp=function(K,X,F){X=gfy(X);for(var P=0;P<X.length;P++){if(!K)return;K=K[X[P]]}F&&(F.path=X.join("."));return K};
Efl=function(K,X,F){var P=gfy(X),H=P[P.length-1];if(P.length>1){for(X=0;X<P.length-1;X++)if(K=K[P[X]],!K)return;K[H]=F}else K[X]=F;return P.join(".")};
b4O=function(K,X,F){var P=K[X];if(!P)P=K[X]={};else if(!K.hasOwnProperty(X)&&(P=K[X]=Object.create(K[X]),F))for(var H in P)for(K=P[H],X=P[H]=Array(K.length),F=0;F<K.length;F++)X[F]=K[F];return P};
qz=function(K,X,F,P,H,f){if(X){var u=!1,J=uv++,Z;for(Z in F){var M=H?Hb(Z):Z;if(M=X[M])for(var n=0,c=M.length,B=void 0;n<c&&(B=M[n]);n++)B.info&&B.info.lastRun===J||H&&!CCy(Z,B.trigger)||(B.info&&(B.info.lastRun=J),B.fn(K,Z,F,P,B.info,H,f),u=!0)}return u}return!1};
CCy=function(K,X){if(X){var F=X.name;return F==K||!(!X.structured||!O43(F,K))||!(!X.wildcard||!si(F,K))}return!0};
NnM=function(K,X,F,P,H){X=typeof H.method==="string"?K[H.method]:H.method;F=H.property;X?X.call(K,K.__data[F],P[F]):H.dynamicFn||console.warn("observer method `"+H.method+"` not defined")};
i4P=function(K,X,F,P){F={value:F,queueProperty:!0};P&&(F.path=P);(0,_.Jg)(K).dispatchEvent(new CustomEvent(X,{detail:F}))};
xBP=function(K,X,F,P,H,f){f=(P=(f?Hb(X):X)!=X?X:null)?Dp(K,P):K.__data[X];P&&f===void 0&&(f=F[X]);i4P(K,H.eventName,f,P)};
IFl=function(K,X,F,P,H){F=K.__data[X];Zp&&(F=Zp(F,H.attrName,"attribute",K));K._propertyToAttribute(X,H.attrName,F)};
K_d=function(K){var X=K.constructor.__orderedComputedDeps;if(!X){X=new Map;for(var F=K.__computeEffects,P=k9M(K),H=P.counts,f=P.ready,u=P.total;P=f.shift();)X.set(P,X.size),(P=F[P])&&P.forEach(function(J){J=J.info.methodInfo;--u;--H[J]===0&&f.push(J)});
u!==0&&console.warn("Computed graph for "+K.localName+" incomplete; circular?");K.constructor.__orderedComputedDeps=X}return X};
k9M=function(K){var X=K.__computeInfo,F={};K=K.__computeEffects;var P=[],H=0,f;for(f in X){var u=X[f];H+=F[f]=u.args.filter(function(Z){return!Z.literal}).length+(u.dynamicFn?1:0)}for(var J in K)X[J]||P.push(J);
return{counts:F,ready:P,total:H}};
F_P=function(K,X,F,P,H){X=XpP(K,X,F,P,H);if(X===Yh)return!1;H=H.methodInfo;if(K.__dataHasAccessor&&K.__dataHasAccessor[H])return K._setPendingProperty(H,X,!0);K[H]=X;return!1};
skl=function(K,X,F,P,H,f,u){F.bindings=F.bindings||[];P={kind:P,target:H,parts:f,literal:u,isCompound:f.length!==1};F.bindings.push(P);P.target&&P.kind!="attribute"&&P.kind!="text"&&!P.isCompound&&P.parts[0].mode==="{"&&(F=P.parts[0],f=F.negate,P.listenerEvent=F.event||FS(H)+"-changed",P.listenerNegate=f);H=X.nodeInfoList.length;for(F=0;F<P.parts.length;F++){var J=P.parts[F];J.compoundIndex=F;f=K;u=X;var Z=P,M=J,n=H;if(!M.literal)if(Z.kind==="attribute"&&Z.target[0]==="-")console.warn("Cannot set attribute "+
Z.target+' because "-" is not a valid attribute starting character');else for(J=M.dependencies,Z={index:n,binding:Z,part:M,evaluator:f},M=0;M<J.length;M++)n=J[M],typeof n=="string"&&(n=P64(n),n.wildcard=!0),f._addTemplatePropertyEffect(u,n.rootProperty,{fn:HS3,info:Z,trigger:n})}};
HS3=function(K,X,F,P,H,f,u){u=u[H.index];var J=H.binding,Z=H.part;f&&Z.source&&X.length>Z.source.length&&J.kind=="property"&&!J.isCompound&&u.__isPropertyEffectsClient&&u.__dataHasAccessor&&u.__dataHasAccessor[J.target]?(F=F[X],X=zB(Z.source,J.target,X),u._setPendingPropertyOrPath(X,F,!1,!0)&&K._enqueueClient(u)):(X=H.evaluator._evaluateBinding(K,Z,X,F,P,f),X!==Yh&&(J.isCompound&&(F=u.__dataCompoundStorage[J.target],F[Z.compoundIndex]=X,X=F.join("")),J.kind==="attribute"||J.target!=="textContent"&&
(J.target!=="value"||u.localName!=="input"&&u.localName!=="textarea")||(X=X==void 0?"":X),Z=X,Zp&&(Z=Zp(Z,J.target,J.kind,u)),J.kind=="attribute"?K._valueToNodeAttribute(u,Z,J.target):(J=J.target,u.__isPropertyEffectsClient&&u.__dataHasAccessor&&u.__dataHasAccessor[J]?u.__readOnly&&u.__readOnly[J]||u._setPendingProperty(J,Z)&&K._enqueueClient(u):K._setUnmanagedPropertyToNode(u,J,Z))))};
z4l=function(K,X,F){if(F.listenerEvent){var P=F.parts[0];K.addEventListener(F.listenerEvent,function(H){var f=F.target,u=P.source,J=P.negate,Z=H.detail,M=Z&&Z.path;M?(u=zB(f,u,M),H=Z&&Z.value):H=H.currentTarget[f];X.__readOnly&&X.__readOnly[u]||!X._setPendingPropertyOrPath(u,J?!H:H,!0,!!M)||Z&&Z.queueProperty||X._invalidateProperties()})}};
fbl=function(K,X,F,P,H,f){f=X.static||f&&(typeof f!=="object"||f[X.methodName]);H={methodName:X.methodName,args:X.args,methodInfo:H,dynamicFn:f};for(var u=0,J=void 0;u<X.args.length&&(J=X.args[u]);u++)J.literal||K._addPropertyEffect(J.rootProperty,F,{fn:P,info:H,trigger:J});f&&K._addPropertyEffect(X.methodName,F,{fn:P,info:H});return H};
XpP=function(K,X,F,P,H){P=K._methodHost||K;var f=P[H.methodName];if(f)return K=K._marshalArgs(H.args,X,F),K===Yh?Yh:f.apply(P,K);H.dynamicFn||console.warn("method `"+H.methodName+"` not defined")};
Dd4=function(K){for(var X="",F=0;F<K.length;F++)X+=K[F].literal||"";return X};
Jfn=function(K){if(K=K.match(/([^\s]+?)\(([\s\S]*)\)/)){var X={methodName:K[1],static:!0,args:ujT};return K[2].trim()?qy9(K[2].replace(/\\,/g,"&comma;").split(","),X):X}return null};
qy9=function(K,X){X.args=K.map(function(F){F=P64(F);F.literal||(X.static=!1);return F},this);
return X};
P64=function(K){K=K.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var X={name:K,value:"",literal:!1},F=K[0];F==="-"&&(F=K[1]);F>="0"&&F<="9"&&(F="#");switch(F){case "'":case '"':X.value=K.slice(1,-1);X.literal=!0;break;case "#":X.value=Number(K),X.literal=!0}X.literal||(X.rootProperty=Hb(K),X.structured=Pb(K),X.structured&&(X.wildcard=K.slice(-2)==".*",X.wildcard&&(X.name=K.slice(0,-2))));return X};
ZSn=function(K,X,F){K=Dp(K,F);K===void 0&&(K=X[F]);return K};
Yyq=function(K,X,F,P){P={indexSplices:P};QF&&!K._overrideLegacyUndefined&&(X.splices=P);K.notifyPath(F+".splices",P);K.notifyPath(F+".length",X.length);QF&&!K._overrideLegacyUndefined&&(P.indexSplices=[])};
Mz=function(K,X,F,P,H,f){Yyq(K,X,F,[{index:P,addedCount:H,removed:f,object:X,type:"splice"}])};
Qkn=function(K){K=dBP((K.body?K.body:K).textContent,K.baseURI);var X=document.createElement("style");X.textContent=K;return X};
cf3=function(K){K=K.trim().split(/\s+/);for(var X=[],F=0;F<K.length;F++)X.push.apply(X,_.LZ(M6P(K[F])));return X};
M6P=function(K){var X=nD.import(K);if(!X)return console.warn("Could not find style data in module named",K),[];if(X._styles===void 0){K=[];K.push.apply(K,_.LZ(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(X)));var F=X.querySelector("template");F&&K.push.apply(K,_.LZ(pp4(F,X.assetpath)));X._styles=K}return X._styles};
pp4=function(K,X){if(!K._styles){for(var F=[],P=K.content.querySelectorAll("style"),H=0;H<P.length;H++){var f=P[H],u=f.getAttribute("include");u&&F.push.apply(F,_.LZ(cf3(u).filter(function(J,Z,M){return M.indexOf(J)===Z})));
X&&(f.textContent=dBP(f.textContent,X));F.push(f)}K._styles=F}return K._styles};
BVP=function(K){return(K=nD.import(K))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(K):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(K){var X=[];K=K.querySelectorAll("link[rel=import][type~=css]");for(var F=0;F<K.length;F++){var P=K[F];if(P.import){var H=P.import;if((P=P.hasAttribute("shady-unscoped"))&&!H._unscopedStyle){var f=Qkn(H);f.setAttribute("shady-unscoped","");H._unscopedStyle=f}else H._style||(H._style=Qkn(H));X.push(P?H._unscopedStyle:H._style)}}return X};
oaO=function(K){K=K.trim().split(/\s+/);for(var X="",F=0;F<K.length;F++)X+=Syw(K[F]);return X};
Syw=function(K){var X=nD.import(K);if(X&&X._cssText===void 0){var F=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(X),P=X.querySelector("template");P&&(F+=L_q(P,X.assetpath));X._cssText=F||null}X||console.warn("Could not find style data in module named",K);return X&&X._cssText||""};
L_q=function(K,X){var F="";K=pp4(K,X);for(X=0;X<K.length;X++){var P=K[X];P.parentNode&&P.parentNode.removeChild(P);F+=P.textContent}return F};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(K){var X="";K=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(K);for(var F=0;F<K.length;F++)X+=K[F].textContent;return X};
cb=function(K,X){return{index:K,removed:[],addedCount:X}};
rfT=function(K,X,F,P){var H=0,f=0,u=0,J=0,Z=Math.min(X-H,P-f);if(H==0&&f==0)a:{for(u=0;u<Z;u++)if(K[u]!==F[u])break a;u=Z}if(X==K.length&&P==F.length){J=K.length;for(var M=F.length,n=0;n<Z-u&&TVP(K[--J],F[--M]);)n++;J=n}H+=u;f+=u;X-=J;P-=J;if(X-H==0&&P-f==0)return[];if(H==X){for(X=cb(H,0);f<P;)X.removed.push(F[f++]);return[X]}if(f==P)return[cb(H,X-H)];Z=H;u=f;P=P-u+1;J=X-Z+1;X=Array(P);for(M=0;M<P;M++)X[M]=Array(J),X[M][0]=M;for(M=0;M<J;M++)X[0][M]=M;for(M=1;M<P;M++)for(n=1;n<J;n++)if(K[Z+n-1]===
F[u+M-1])X[M][n]=X[M-1][n-1];else{var c=X[M-1][n]+1,B=X[M][n-1]+1;X[M][n]=c<B?c:B}Z=X.length-1;u=X[0].length-1;P=X[Z][u];for(K=[];Z>0||u>0;)Z==0?(K.push(2),u--):u==0?(K.push(3),Z--):(J=X[Z-1][u-1],M=X[Z-1][u],n=X[Z][u-1],c=M<n?M<J?M:J:n<J?n:J,c==J?(J==P?K.push(0):(K.push(1),P=J),Z--,u--):c==M?(K.push(3),Z--,P=M):(K.push(2),u--,P=n));K.reverse();X=void 0;Z=[];for(u=0;u<K.length;u++)switch(K[u]){case 0:X&&(Z.push(X),X=void 0);H++;f++;break;case 1:X||(X=cb(H,0));X.addedCount++;H++;X.removed.push(F[f]);
f++;break;case 2:X||(X=cb(H,0));X.addedCount++;H++;break;case 3:X||(X=cb(H,0)),X.removed.push(F[f]),f++}X&&Z.push(X);return Z};
Af4=function(K,X){return rfT(K,K.length,X,X.length)};
TVP=function(K,X){return K===X};
wpl=function(K){if(K instanceof jkP)return K.value;throw Error("Ad`"+K);};
yfO=function(K,X){for(var F in X)F===null?K.style.removeProperty(F):K.style.setProperty(F,X[F])};
W_3=function(K,X){return(K=window.getComputedStyle(K).getPropertyValue(X))?K.trim():""};
Ud3=function(K){requestAnimationFrame(function(){dd4?dd4(K):(e4l||(e4l=new Promise(function(X){R4q=X}),document.readyState==="complete"?R4q():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&R4q()})),e4l.then(function(){K&&K()}))})};
GlO=function(K){h49=K&&K.shimcssproperties?!1:mdl||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
$dd=function(K){if(!(lb4.indexOf(K)>-1)&&K!=="touchend"&&vad&&ab4&&t63)return{passive:!0}};
EaO=function(K){for(var X=OSl?["click"]:lb4,F=0,P;F<X.length;F++)P=X[F],K?(V6w.length=0,document.addEventListener(P,gad,!0)):document.removeEventListener(P,gad,!0)};
pD=function(K){var X=K.type;return lb4.indexOf(X)>-1?X==="mousemove"?(X=K.buttons===void 0?1:K.buttons,K instanceof window.MouseEvent&&!bS4&&(X=C6P[K.which]||0),!!(X&1)):(K.button===void 0?0:K.button)===0:!1};
NVl=function(K){if(K.type==="click"){if(K.detail===0)return!0;var X=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K);if(!X.nodeType||X.nodeType!==Node.ELEMENT_NODE)return!0;X=X.getBoundingClientRect();var F=K.pageX;K=K.pageY;return!(F>=X.left&&F<=X.right&&K>=X.top&&K<=X.bottom)}return!1};
iSM=function(K,X,F){K.movefn=X;K.upfn=F;document.addEventListener("mousemove",X);document.addEventListener("mouseup",F)};
Bb=function(K){document.removeEventListener("mousemove",K.movefn);document.removeEventListener("mouseup",K.upfn);K.movefn=null;K.upfn=null};
xdP=function(K,X){for(var F=document.elementFromPoint(K,X),P=F;P&&P.shadowRoot&&!window.ShadyDOM;){var H=P;P=P.shadowRoot.elementFromPoint(K,X);if(H===P)break;P&&(F=P)}return F};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(K){var X=IbO(K);return X.length>0?X[0]:K.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(K){var X=K.type,F=K.currentTarget.__polymerGestures;if(F&&(F=F[X])){if(!K.__polymerGesturesHandled&&(K.__polymerGesturesHandled={},X.slice(0,5)==="touch")){var P=K.changedTouches[0];X==="touchstart"&&K.touches.length===1&&(kln=P.identifier);if(kln!==P.identifier)return;vad||(X==="touchstart"||X==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K)}P=
K.__polymerGesturesHandled;if(!P.skip){for(var H=0,f;H<SW.length;H++)f=SW[H],F[f.name]&&!P[f.name]&&f.flow&&f.flow.start.indexOf(K.type)>-1&&f.reset&&f.reset();for(H=0;H<SW.length;H++)f=SW[H],F[f.name]&&!P[f.name]&&(P[f.name]=!0,f[X](K))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(K){var X=K.changedTouches[0],F=K.type;if(F==="touchstart")Kml=X.clientX,XGP=X.clientY,Fm4=!1;else if(F==="touchmove"&&!Fm4){Fm4=!0;F="auto";for(var P=IbO(K),H=0,f;H<P.length;H++)if(f=P[H],f.__polymerGesturesTouchAction){F=f.__polymerGesturesTouchAction;break}P=!1;H=Math.abs(Kml-X.clientX);X=Math.abs(XGP-X.clientY);K.cancelable&&(F==="none"?P=!0:F==="pan-x"?P=X>H:F==="pan-y"&&(P=H>X));P?K.preventDefault():
o2("track")}};
TB=function(K,X,F){return LD[X]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K,X,F),!0):!1};
rg=function(K,X,F){return LD[X]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K,X,F),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(K,X,F){var P=LD[X],H=P.deps,f=P.name,u=K.__polymerGestures;u||(K.__polymerGestures=u={});for(var J=0,Z,M;J<H.length;J++)Z=H[J],OSl&&lb4.indexOf(Z)>-1&&Z!=="click"||((M=u[Z])||(u[Z]=M={_count:0}),M._count===0&&K.addEventListener(Z,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,$dd(Z)),M[f]=(M[f]||0)+1,M._count=(M._count||0)+1);K.addEventListener(X,F);P.touchAction&&_.Ag(K,P.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(K,X,F){var P=LD[X],H=P.deps;P=P.name;var f=K.__polymerGestures;if(f)for(var u=0,J,Z;u<H.length;u++)J=H[u],(Z=f[J])&&Z[P]&&(Z[P]=(Z[P]||1)-1,Z._count=(Z._count||1)-1,Z._count===0&&K.removeEventListener(J,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,$dd(J)));K.removeEventListener(X,F)};
Pfd=function(K){SW.push(K);for(var X=0;X<K.emits.length;X++)LD[K.emits[X]]=K};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(K){for(var X=0,F;X<SW.length;X++){F=SW[X];for(var P=0,H;P<F.emits.length;P++)if(H=F.emits[P],H===K)return F}return null};
_.Ag=function(K,X){vad&&K instanceof HTMLElement&&jW.run(function(){K.style.touchAction=X});
K.__polymerGesturesTouchAction=X};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(K,X,F){X=new Event(X,{bubbles:!0,cancelable:!0,composed:!0});X.detail=F;(0,_.Jg)(K).dispatchEvent(X);X.defaultPrevented&&(K=F.preventer||F.sourceEvent)&&K.preventDefault&&K.preventDefault()};
o2=function(K){K=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K);K.info&&(K.info.prevent=!0)};
wg=function(K,X,F,P){X&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X,K,{x:F.clientX,y:F.clientY,sourceEvent:F,preventer:P,prevent:function(H){return o2(H)}})};
HjM=function(K,X,F){if(K.prevent)return!1;if(K.started)return!0;F=Math.abs(K.y-F);return Math.abs(K.x-X)>=5||F>=5};
sn3=function(K,X,F){if(X){var P=K.moves[K.moves.length-2],H=K.moves[K.moves.length-1],f=H.x-K.x,u=H.y-K.y,J=0;if(P){var Z=H.x-P.x;J=H.y-P.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X,"track",{state:K.state,x:F.clientX,y:F.clientY,dx:f,dy:u,ddx:Z,ddy:J,sourceEvent:F,hover:function(){return xdP(F.clientX,F.clientY)}})}};
fVy=function(K,X,F){var P=Math.abs(X.clientX-K.x),H=Math.abs(X.clientY-K.y),f=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F||X);!f||zIq[f.localName]&&f.hasAttribute("disabled")||!(isNaN(P)||isNaN(H)||P<=25&&H<=25||NVl(X))||K.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f,"tap",{x:X.clientX,y:X.clientY,sourceEvent:X,preventer:F})};
DyM=function(K,X,F,P,H){var f;H&&(f=typeof F==="object"&&F!==null)&&(P=K.__dataTemp[X]);P=P!==F&&(P===P||F===F);f&&P&&(K.__dataTemp[X]=F);return P};
qD4=function(){if(yF&&!Wb){if(!uc3){uc3=!0;var K=document.createElement("style");K.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(K)}return!0}return!1};
ZjP=function(){return Jqy};
YDy=function(K,X){Jqy=K;Object.setPrototypeOf(K,X.prototype);new X;Jqy=null};
QnP=function(K,X){for(var F=0;F<X.length;F++){var P=X[F];if(!!K!=!!P.__hideTemplateChildren__)if(P.nodeType===Node.TEXT_NODE)K?(P.__polymerTextContent__=P.textContent,P.textContent=""):P.textContent=P.__polymerTextContent__;else if(P.localName==="slot")if(K)P.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.Jg)((0,_.Jg)(P).parentNode).replaceChild(P.__polymerReplaced__,P);else{var H=P.__polymerReplaced__;H&&(0,_.Jg)((0,_.Jg)(H).parentNode).replaceChild(P,H)}else P.style&&(K?(P.__polymerDisplay__=
P.style.display,P.style.display="none"):P.style.display=P.__polymerDisplay__);P.__hideTemplateChildren__=K;P._showHideChildren&&P._showHideChildren(K)}};
MIT=function(K){return(K=K.__dataHost)&&K._methodHost||K};
pGl=function(K,X,F){var P=F.mutableData?nRO:dg;eW.mixin&&(P=eW.mixin(P));var H=function(){return P.apply(this,arguments)||this};
_.r(H,P);H.prototype.__templatizeOptions=F;H.prototype._bindTemplate(K);cqT(H,K,X,F);return H};
TM3=function(K,X,F,P){var H=F.forwardHostProp;if(H&&X.hasHostProps){var f=K.localName=="template",u=X.templatizeTemplateClass;if(!u){if(f){var J=F.mutableData?BMy:SD4;u=function(){return J.apply(this,arguments)||this};
_.r(u,J);u=X.templatizeTemplateClass=u}else{var Z=K.constructor;u=function(){return Z.apply(this,arguments)||this};
_.r(u,Z);u=X.templatizeTemplateClass=u}var M=X.hostProps,n;for(n in M)u.prototype._addPropertyEffect("_host_"+n,u.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:oRO(H)}),u.prototype._createNotifyingProperty("_host_"+n);R2&&P&&Lmy(X,F,P)}K.__dataProto&&Object.assign(K.__data,K.__dataProto);if(f)YDy(K,u),K.__dataTemp={},K.__dataPending=null,K.__dataOld=null,K._enableProperties();else{Object.setPrototypeOf(K,u.prototype);X=X.hostProps;for(var c in X)c="_host_"+c,c in K&&(X=K[c],delete K[c],K.__data[c]=
X)}}};
oRO=function(K){return function(X,F,P){K.call(X.__templatizeOwner,F.substring(6),P[F])}};
cqT=function(K,X,F,P){var H=F.hostProps||{},f;for(f in P.instanceProps){delete H[f];var u=P.notifyInstanceProp;u&&K.prototype._addPropertyEffect(f,K.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:rqy(u)})}if(P.forwardHostProp&&X.__dataHost)for(var J in H)F.hasHostProps||(F.hasHostProps=!0),K.prototype._addPropertyEffect(J,K.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Aql()})};
rqy=function(K){return function(X,F,P){K.call(X.__templatizeOwner,X,F,P[F])}};
Aql=function(){return function(K,X,F){K.__dataHost._setPendingPropertyOrPath("_host_"+X,F[X],!0,!0)}};
eW=function(K,X,F){if(Ui&&!MIT(K))throw Error("Gd");F=F||{};if(K.__templatizeOwner)throw Error("Hd");K.__templatizeOwner=X;var P=(X?X.constructor:dg)._parseTemplate(K),H=P.templatizeInstanceClass;H||(H=pGl(K,P,F),P.templatizeInstanceClass=H);var f=MIT(K);TM3(K,P,F,f);F=function(){return H.apply(this,arguments)||this};
_.r(F,H);F.prototype._methodHost=f;F.prototype.__dataHost=K;F.prototype.__templatizeOwner=X;F.prototype.__hostProps=P.hostProps;return F};
Lmy=function(K,X,F){F=F.constructor._properties;K=K.propertyEffects;X=X.instanceProps;for(var P in K)if(!(F[P]||X&&X[P]))for(var H=K[P],f=0;f<H.length;f++){var u=H[f].info.part;if(!u.signature||!u.signature.static){console.warn("Property '"+P+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
jnw=function(K,X){for(var F;X;)if(F=X.__dataHost?X:X.__templatizeInstance)if(F.__dataHost!=K)X=F.__dataHost;else return F;else X=(0,_.Jg)(X).parentNode;return null};
hg=function(K){return K.localName==="slot"};
wGl=function(){for(var K=m7.prototype,X="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),F={},P=0;P<X.length;F={method$jscomp$30:void 0},P++)F.method$jscomp$30=X[P],K[F.method$jscomp$30]=function(H){return function(){return this.node[H.method$jscomp$30].apply(this.node,arguments)}}(F)};
yql=function(K,X){for(var F={},P=0;P<X.length;F={name$jscomp$380:void 0},P++)F.name$jscomp$380=X[P],Object.defineProperty(K,F.name$jscomp$380,{get:function(H){return function(){return this.node[H.name$jscomp$380]}}(F),
configurable:!0})};
Wm4=function(){for(var K=m7.prototype,X=["textContent","innerHTML","className"],F={},P=0;P<X.length;F={name$jscomp$381:void 0},P++)F.name$jscomp$381=X[P],Object.defineProperty(K,F.name$jscomp$381,{get:function(H){return function(){return this.node[H.name$jscomp$381]}}(F),
set:function(H){return function(f){this.node[H.name$jscomp$381]=f}}(F),
configurable:!0})};
dyq=function(){GB=document.documentElement.getAttribute("dir");GB=document.documentElement.getAttribute("dir");for(var K=0;K<lv.length;K++){var X=lv[K];X.__autoDirOptOut||X.setAttribute("dir",GB)}};
hIT=function(){vb=!0;requestAnimationFrame(function(){vb=!1;eIO(RIy);setTimeout(function(){for(var K=0,X=a2.length;K<X;K++)Uyn(a2.shift())})})};
eIO=function(K){for(;K.length;)Uyn(K.shift())};
Uyn=function(K){var X=K[0],F=K[1];K=K[2];try{F.apply(X,K)}catch(P){setTimeout(function(){throw P;})}};
_.myy=function(K,X,F){vb||hIT();RIy.push([K,X,F])};
_.tg=function(K,X,F){vb||hIT();a2.push([K,X,F])};
vRl=function(K,X){X=X===void 0?!1:X;if(!GXP||!lVl||!GXP.handlesDynamicScoping)return null;var F=lVl.ScopingShim;if(!F)return null;var P=F.scopeForNode(K),H=(0,_.Jg)(K).getRootNode(),f=function(u){if((0,_.Jg)(u).getRootNode()===H){var J=Array.from(GXP.nativeMethods.querySelectorAll.call(u,"*"));J.push(u);for(u=0;u<J.length;u++){var Z=J[u];if((0,_.Jg)(Z).getRootNode()===H){var M=F.currentScopeForNode(Z);M!==P&&(M!==""&&F.unscopeNode(Z,M),F.scopeNode(Z,P))}}}};
f(K);return X?(X=new MutationObserver(function(u){for(var J=0;J<u.length;J++)for(var Z=u[J],M=0;M<Z.addedNodes.length;M++){var n=Z.addedNodes[M];n.nodeType===Node.ELEMENT_NODE&&f(n)}}),X.observe(K,{childList:!0,
subtree:!0}),X):null};
aVy=function(){document.body.removeAttribute("unresolved")};
gRn=function(K){var X=K=K.replace(tIO,"").replace($y4,""),F=new OjM;F.start=0;F.end=X.length;for(var P=F,H=0,f=X.length;H<f;H++)if(X[H]==="{"){P.rules||(P.rules=[]);var u=P,J=u.rules[u.rules.length-1]||null;P=new OjM;P.start=H+1;P.parent=u;P.previous=J;u.rules.push(P)}else X[H]==="}"&&(P.end=H+1,P=P.parent||F);return VI9(F,K)};
VI9=function(K,X){var F=X.substring(K.start,K.end-1);K.parsedCssText=K.cssText=F.trim();K.parent&&(F=X.substring(K.previous?K.previous.end:K.parent.start,K.start-1),F=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(F),F=F.replace(ER4," "),F=F.substring(F.lastIndexOf(";")+1),F=K.parsedSelector=K.selector=F.trim(),K.atRule=F.indexOf("@")===0,K.atRule?F.indexOf("@media")===0?K.type=4:F.match(bjw)&&(K.type=7,K.keyframesName=K.selector.split(ER4).pop()):F.indexOf("--")===
0?K.type=1E3:K.type=1);if(F=K.rules)for(var P=0,H=F.length,f=void 0;P<H&&(f=F[P]);P++)VI9(f,X);return K};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(K){return K.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var X=arguments[1],F=6-X.length;F--;)X="0"+X;return"\\"+X})};
Cfl=function(K,X,F){F=F===void 0?"":F;var P="";if(K.cssText||K.rules){var H=K.rules;if(H&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(H))for(var f=0,u=H.length,J=void 0;f<u&&(J=H[f]);f++)P=Cfl(J,X,P);else X?X=K.cssText:(X=K.cssText,X=X.replace(NMP,"").replace(ij3,""),X=X.replace(xy3,"").replace(IVl,"")),(P=X.trim())&&(P="  "+P+"\n")}P&&(K.selector&&(F+=K.selector+" {\n"),F+=P,K.selector&&(F+="}\n\n"));return F};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(K){K=K[0];return!!K&&!!K.selector&&K.selector.indexOf("--")===0};
KlM=function(K){if(K=kXy[K])K._applyShimCurrentVersion=K._applyShimCurrentVersion||0,K._applyShimValidatingVersion=K._applyShimValidatingVersion||0,K._applyShimNextVersion=(K._applyShimNextVersion||0)+1};
XjT=function(K){return K._applyShimCurrentVersion===K._applyShimNextVersion};
PrM=function(K){K._applyShimValidatingVersion=K._applyShimNextVersion;K._validating||(K._validating=!0,FlT.then(function(){K._applyShimCurrentVersion=K._applyShimNextVersion;K._validating=!1}))};
siw=function(K){if(!K)return"";typeof K==="string"&&(K=gRn(K));return Cfl(K,Hk3)};
zUP=function(K){!K.__cssRules&&K.textContent&&(K.__cssRules=gRn(K.textContent));return K.__cssRules||null};
DLn=function(K,X,F,P){if(K){var H=!1,f=K.type;if(P&&f===4){var u=K.selector.match(fZn);u&&(window.matchMedia(u[1]).matches||(H=!0))}f===1?X(K):F&&f===7?F(K):f===1E3&&(H=!0);if((K=K.rules)&&!H)for(H=0,f=K.length,u=void 0;H<f&&(u=K[H]);H++)DLn(u,X,F,P)}};
uJw=function(K,X){var F=K.indexOf("var(");if(F===-1)return X(K,"","","");a:{var P=0;var H=F+3;for(var f=K.length;H<f;H++)if(K[H]==="(")P++;else if(K[H]===")"&&--P===0)break a;H=-1}P=K.substring(F+4,H);F=K.substring(0,F);K=uJw(K.substring(H+1),X);f=P.indexOf(",");if(f===-1)return X(F,P.trim(),"",K);H=P.substring(0,f).trim();P=P.substring(f+1).trim();return X(F,H,P,K)};
q$d=function(K){if($h!==void 0)return $h;if(K.__cssBuild===void 0){var X=K.getAttribute("css-build");if(X)K.__cssBuild=X;else{a:{X=K.localName==="template"?K.content.firstChild:K.firstChild;if(X instanceof Comment&&(X=X.textContent.trim().split(":"),X[0]==="css-build")){X=X[1];break a}X=""}if(X!==""){var F=K.localName==="template"?K.content.firstChild:K.firstChild;F.parentNode.removeChild(F)}K.__cssBuild=X}}return K.__cssBuild||""};
Zkn=function(K,X,F,P){for(var H=X._noAccessors,f=Object.getOwnPropertyNames(X),u=0;u<f.length;u++){var J=f[u];if(!(J in P))if(H)K[J]=X[J];else{var Z=Object.getOwnPropertyDescriptor(X,J);Z&&(Z.configurable=!0,Object.defineProperty(K,J,Z))}}for(var M in J4w)X[M]&&(F[M]=F[M]||[],F[M].push(X[M]))};
Y$3=function(K,X,F){X=X||[];for(var P=K.length-1;P>=0;P--){var H=K[P];H?Array.isArray(H)?Y$3(H,X):X.indexOf(H)<0&&(!F||F.indexOf(H)<0)&&X.unshift(H):console.warn("behavior is null, check for missing or 404 import")}return X};
Qid=function(K,X){for(var F in X){var P=K[F],H=X[F];K[F]=!("value"in H)&&P&&"value"in P?Object.assign({value:P.value},H):H}};
c4P=function(K,X,F){var P={},H=function(){return X.apply(this,arguments)||this};
_.r(H,X);H._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(u)for(var Z=0,M;Z<u.length;Z++)M=u[Z],M.properties&&this.createProperties(M.properties),M.observers&&this.createObservers(M.observers,M.properties);K.properties&&this.createProperties(K.properties);K.observers&&this.createObservers(K.observers,K.properties);this._prepareTemplate()}else X._finalizeClass.call(this)};
H.prototype.created=function(){X.prototype.created.call(this);var Z=P.created;if(Z)for(var M=0;M<Z.length;M++)Z[M].call(this)};
H.prototype._registered=function(){var Z=H.prototype;if(!Z.hasOwnProperty("__hasRegisterFinished")){Z.__hasRegisterFinished=!0;X.prototype._registered.call(this);yF&&J(Z);Z=Object.getPrototypeOf(this);var M=P.beforeRegister;if(M)for(var n=0;n<M.length;n++)M[n].call(Z);if(M=P.registered)for(n=0;n<M.length;n++)M[n].call(Z)}};
H.prototype._applyListeners=function(){X.prototype._applyListeners.call(this);var Z=P.listeners;if(Z)for(var M=0;M<Z.length;M++){var n=Z[M];if(n)for(var c in n)this._addMethodEventListenerToNode(this,c,n[c])}};
H.prototype._ensureAttributes=function(){var Z=P.hostAttributes;if(Z)for(var M=Z.length-1;M>=0;M--){var n=Z[M],c;for(c in n)this._ensureAttribute(c,n[c])}X.prototype._ensureAttributes.call(this)};
H.prototype.ready=function(){X.prototype.ready.call(this);var Z=P.ready;if(Z)for(var M=0;M<Z.length;M++)Z[M].call(this)};
H.prototype.attached=function(){X.prototype.attached.call(this);var Z=P.attached;if(Z)for(var M=0;M<Z.length;M++)Z[M].call(this)};
H.prototype.detached=function(){X.prototype.detached.call(this);var Z=P.detached;if(Z)for(var M=0;M<Z.length;M++)Z[M].call(this)};
H.prototype.attributeChanged=function(Z,M,n){X.prototype.attributeChanged.call(this);var c=P.attributeChanged;if(c)for(var B=0;B<c.length;B++)c[B].call(this,Z,M,n)};
_.Oi.Object.defineProperties(H,{properties:{configurable:!0,enumerable:!0,get:function(){var Z={};if(u)for(var M=0;M<u.length;M++)Qid(Z,u[M].properties);Qid(Z,K.properties);return Z}},
observers:{configurable:!0,enumerable:!0,get:function(){var Z=[];if(u)for(var M=0,n;M<u.length;M++)n=u[M],n.observers&&(Z=Z.concat(n.observers));K.observers&&(Z=Z.concat(K.observers));return Z}}});
if(F){Array.isArray(F)||(F=[F]);var f=X.prototype.behaviors;var u=Y$3(F,null,f);H.prototype.behaviors=f?f.concat(F):u}var J=function(Z){if(u)for(var M=u,n=0;n<M.length;n++)Zkn(Z,M[n],P,MNq);Zkn(Z,K,P,nAT)};
yF||J(H.prototype);H.generatedFrom=K;return H};
oAO=function(K){var X=typeof K!=="string"?K:{is:K,notifyObserversOnUndefined:!0};X.fastInit===void 0&&(X.fastInit=!0);return function(F){if(!X.disableInheritanceCheck&&Object.getPrototypeOf(F.prototype).constructor!==_.VF)throw Error("Ld");var P=F.prototype;P.is=X.is;AeO(P,"created",function(){this.hostElement=this;this.polymerController=this});
pjy(P,F,X.fastInit);X.notifyObserversOnUndefined&&(P._overrideLegacyUndefined=!0);if(BHP)for(var H=_.D(Object.getOwnPropertyNames(P)),f=H.next();!f.done;f=H.next()){f=f.value;var u=Object.getOwnPropertyDescriptor(P,f);u.enumerable===!1&&(u.enumerable=!0,Object.defineProperty(P,f,u))}if("template"in F)var J=function(){return F.template};
else X.template!==void 0&&(J=X.template);if(J!==void 0){var Z;Object.defineProperty(P,"_template",{get:function(){Z===void 0&&(Z=J());return Z},
set:function(M){Z=M},
configurable:!0,enumerable:!0})}Polymer(P);F[S$P]=P}};
Lld=function(K){K=K===void 0?{}:K;K.fastInit===void 0&&(K.fastInit=!0);return function(X){if(!K.disableInheritanceCheck&&Object.getPrototypeOf(X.prototype).constructor!==gg)throw Error("Md");pjy(X.prototype,X,K.fastInit)}};
pjy=function(K,X,F){F=F===void 0?!1:F;THl(X);F?AeO(K,"created",function(){this.disableEnforceFastDefaultValuesCheck||r4d(X,this)}):AeO(K,"ready",function(){for(var P={},H=_.D(jx4(this.behaviors)),f=H.next();!f.done;f=H.next())f=f.value,f.properties&&Object.assign(P,A4T(this,f.properties));
Object.assign(P,A4T(this,this.properties));r4d(X,this);H=_.D(Object.keys(P));for(f=H.next();!f.done;f=H.next())f=f.value,this[f]=P[f]})};
r4d=function(K,X){if(BHP){K=new K;for(var F=_.D(Object.getOwnPropertyNames(K)),P=F.next();!P.done;P=F.next())P=P.value,X[P]=K[P];for(F=X;F&&F!==Object.prototype;F=Object.getPrototypeOf(F)){P=_.D(Object.getOwnPropertyNames(F));for(var H=P.next();!H.done;H=P.next())H=H.value,K.hasOwnProperty(H)||Object.defineProperty(K,H,jiP(X,H))}}else K.apply(X)};
jiP=function(K,X){return{get:function(){var F=K[X];return F instanceof Function?F.bind(K):F},
set:function(F){K[X]=F}}};
A4T=function(K,X){if(!X)return{};for(var F={},P=_.D(Object.keys(X)),H=P.next();!H.done;H=P.next())if(H=H.value,!X[H].readOnly){var f=K[H];f!==void 0&&(F[H]=f)}return F};
THl=function(K){var X=new K;K=K.prototype.properties||{};for(var F=_.D(Object.keys(K)),P=F.next();!P.done;P=F.next())if(P=P.value,X.hasOwnProperty(P)){var H=K[P];typeof H==="function"&&(K[P]=H={type:H});X[P]!=null&&H.type===Object&&(H.type=wjy(X[P].constructor))}};
wjy=function(K){for(var X=_.D(y4d),F=X.next();!F.done;F=X.next())if(F=F.value,K===F)return F;return Object};
WlO=function(K){return function(X,F){X.behaviors=X.behaviors||[];X.behaviors.push(K||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",X,F).prototype:void 0));Object.defineProperty(X,F,{get:function(){return this},
enumerable:!0,configurable:!0})}};
dLM=function(K){K=K===void 0?{}:K;return function(X,F){X.properties=X.properties||{};K.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?K.type=wjy(Reflect.getMetadata("design:type",X,F)):K.type=String);var P=K,H=X.properties[F];X.properties[F]=H?Object.assign({},H,P):P}};
eUP=function(K){return function(X,F){X.listeners=X.listeners||{};X.listeners[K]=F}};
RUM=function(){var K=_.Ls.apply(0,arguments);if(K.length===0)throw Error("Nd");return function(X,F){X.observers=X.observers||[];X.observers.push(F+"("+K.join(",")+")")}};
ULd=function(){var K=_.Ls.apply(0,arguments);return function(X,F,P){var H=Object.getOwnPropertyDescriptor(X,F).get,f="__compute__"+F;Object.defineProperty(X,f,{value:H,enumerable:!0});X.properties=X.properties||{};H=X.properties[F];H||(H={},X.properties[F]=H);H.computed=f+"("+K.join(",")+")";P.get=void 0}};
_.Ei=function(K,X,F){_.LJ.call(this);this.JSC$9220_id_=null;this.usingListeners_=!1;this.JSC$9220_listener_=K;this.handler_=F;this.JSC$9220_win_=X||window;this.callback_=(0,_.T3)(this.JSC$9222_doAction_,this)};
bv=function(K){this.range_=K};
CD=function(K){this.range_=K};
xh=function(K,X,F){_.LJ.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=K;this.scrollTimer_=new _.Nz(50);this.JSC$9299_eventHandler_=new _.iv(this);this.scrollDelta_=new _.jA;this.containerIsActuallyContent_=K.tagName==="BODY"||K.tagName==="HTML";this.containerBounds_=hUq(K);this.containerIsActuallyContent_&&(K=_.JE(),this.containerBounds_.height=K.height,this.containerBounds_.width=K.width);this.margin_=X||0;if(X){if(X=this.containerBounds_.clone(),K=this.margin_){var P=
Math.min(K,X.height*.25);X.top+=P;X.height-=2*P;K=Math.min(K,X.width*.25);X.left+=K;X.width-=2*K}}else X=this.containerBounds_;this.scrollBounds_=X;F||this.JSC$9299_eventHandler_.listen(_.yf(this.containerNode_),"mousemove",this.JSC$9301_onMouseMove);this.JSC$9299_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9301_onTick_)};
_.I2=function(K){this.mechanism=K};
kh=function(K,X){this.JSC$9397_key_=K;this.JSC$9397_value_=X};
Gtq=function(K){if(K>=55296&&K<=57343||K>1114111)return"\ufffd";K in mLd&&(K=mLd[K]);var X="";K>65535&&(K-=65536,X+=String.fromCharCode(K>>>10&1023|55296),K=56320|K&1023);return X+=String.fromCharCode(K)};
lZM=function(K,X){return K<X?1:-1};
aZT=function(){return function(K){return K.charAt(1)==="#"?K.charAt(2)==="X"||K.charAt(2)==="x"?Gtq(parseInt(K.substr(3),16)):Gtq(parseInt(K.substr(2),10)):vA9[K.slice(1,-1)]}};
OkP=function(K){return K.slice(1,K.length-1).trim().replace(tN9,function(X){return $L3[X]||" "})};
Ky=function(K){return K===32||K===9};
X1=function(K,X){return X<K.length?K.charCodeAt(X):-1};
VNy=function(K){for(;K;){if(K._lastLineBlank)return!0;var X=K.type;if(X==="list"||X==="item")K=K._lastChild;else break}return!1};
F1=function(K){if(gAq.test(K)){var X=1,F=0,P=0;for(K[F]=="|"&&F++;F<K.length;){switch(K[F]){case "|":P=1;break;case " ":break;case "\t":break;default:P&&(P=0,X++)}F++}return EA3.test(K)?-X:X}return 0};
bkM=function(K){return K=="table"||K=="row"||K=="cell"};
Crn=function(){return new Pg("document",[[1,1],[0,0]])};
NH3=function(){};
Hg=function(){var K={safe:!1};K=K||{};K.softbreak=K.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=K};
KgT=function(K,X){var F="";if(K)if(K=K.toLowerCase(),K===" "||iky.test(K))F="space";else if(xLO.test(K))F="esc";else if(K.length==1){if(!X||IZn.test(K))F=K}else F=ktP.test(K)?K.replace("arrow",""):K=="multiply"?"*":K;return F};
HMO=function(K,X){var F=K.hasModifiers;if(X.key)F=KgT(X.key,F);else if(X.detail&&X.detail.key)F=KgT(X.detail.key,F);else{F=X.keyIdentifier;var P="";F&&(F in XL4?P=XL4[F]:Fgn.test(F)?(F=parseInt(F.replace("U+","0x"),16),P=String.fromCharCode(F).toLowerCase()):P=F.toLowerCase());(F=P)||(F=X.keyCode,P="",Number(F)&&(F>=65&&F<=90?P=String.fromCharCode(32+F):F>=112&&F<=123?P="f"+(F-112+1):F>=48&&F<=57?P=String(F-48):F>=96&&F<=105?P=String(F-96):P=PQw[F]),F=P);F=F||""}return F===K.key&&(!K.hasModifiers||
!!X.shiftKey===!!K.shiftKey&&!!X.ctrlKey===!!K.ctrlKey&&!!X.altKey===!!K.altKey&&!!X.metaKey===!!K.metaKey)};
ztT=function(K){return K.length===1?{combo:K,key:K,event:"keydown"}:K.split("+").reduce(function(X,F){var P=F.split(":");F=P[0];P=P[1];F in sc9?(X[sc9[F]]=!0,X.hasModifiers=!0):(X.key=F,X.event=P||"keydown");return X},{combo:K.split(":").shift()})};
fRd=function(K){return K.trim().split(" ").map(function(X){return ztT(X)})};
Den=function(K,X){if(K&&K.fn){var F=K.fn;K.fn=function(){try{F.apply(this,arguments)}catch(P){if(P instanceof sc)console.warn("Argument '"+P.arg+"'"+(X?" for method '"+X+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw P;}}}return K};
uXn=function(){var K=_.Ls.apply(0,arguments);return K.length===0?function(X){return X}:K.length===1?K[0]:K.reduce(function(X,F){return function(){return X(F.apply(null,_.LZ(_.Ls.apply(0,arguments))))}})};
qX4=function(){var K=_.Ls.apply(0,arguments);return function(X){return function(F,P){F=X(F,P);var H=function(){throw Error("xe");},f={getState:F.getState,
dispatch:function(u){return H.apply(null,[u].concat(_.LZ(_.Ls.apply(1,arguments))))}};
P=K.map(function(u){return u(f)});
H=uXn.apply(null,_.LZ(P))(F.dispatch);return Object.assign({},F,{dispatch:H})}}};
YXy=function(K){Object.keys(K).forEach(function(X){var F=K[X];if(typeof F(void 0,{type:JbT})==="undefined")throw Error("ye`"+X);if(typeof F(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+ZM9()})==="undefined")throw Error("ze`"+X+"`"+JbT);})};
zY=function(K){for(var X=Object.keys(K),F={},P=0;P<X.length;P++){var H=X[P];typeof K[H]==="function"&&(F[H]=K[H])}var f=Object.keys(F);try{YXy(F)}catch(J){var u=J}return function(J,Z){J=J===void 0?{}:J;if(u)throw u;for(var M=!1,n={},c=0;c<f.length;c++){var B=f[c],L=J[B],A=(0,F[B])(L,Z);if(typeof A==="undefined")throw J=Z&&Z.type,Error("Ae`"+(J?'"'+String(J)+'"':"(unknown type)")+"`"+B);n[B]=A;M=M||A!==L}return(M=M||f.length!==Object.keys(J).length)?n:J}};
Qcn=function(K,X,F){function P(){if(n)throw Error("Be");return J}
function H(L){if(typeof L!=="function")throw Error("Ce`"+typeof L);if(n)throw Error("De");var A=!0;M===Z&&(M=Z.slice());M.push(L);return function(){if(A){if(n)throw Error("Ee");A=!1;M===Z&&(M=Z.slice());var d=M.indexOf(L);M.splice(d,1);Z=null}}}
function f(L){if(typeof L!=="object"||L===null)var A=!1;else{for(A=L;Object.getPrototypeOf(A)!==null;)A=Object.getPrototypeOf(A);A=Object.getPrototypeOf(L)===A}if(!A)throw Error("Fe`"+typeof L);if(typeof L.type==="undefined")throw Error("Ge");if(n)throw Error("He");try{n=!0,J=u(J,L)}finally{n=!1}A=Z=M;for(var d=0;d<A.length;d++)(0,A[d])();return L}
if(typeof X==="function"&&typeof F==="function"||typeof F==="function"&&typeof arguments[3]==="function")throw Error("Ie");typeof X==="function"&&typeof F==="undefined"&&(F=X,X=void 0);if(typeof F!=="undefined"){if(typeof F!=="function")throw Error("Je`"+typeof F);return F(Qcn)(K,X)}if(typeof K!=="function")throw Error("Ke`"+typeof K);var u=K,J=X,Z=[],M=Z,n=!1;f({type:JbT});var c={},B=(c.dispatch=f,c.subscribe=H,c.getState=P,c.replaceReducer=function(L){if(typeof L!=="function")throw Error("Le`"+
typeof L);u=L;f({type:M3T});return B},c[n_9]=function(){var L={};
return L.subscribe=function(A){function d(){A.next&&A.next(P())}
if(typeof A!=="object"||A===null)throw new TypeError("Me`"+typeof A);d();return{unsubscribe:H(d)}},L[n_9]=function(){return this},L},c);
return B};
cby=function(K){function X(){H&&(H=!1,K());f&&P()}
function F(){requestAnimationFrame(X)}
function P(){var J=Date.now();if(H){if(J-u<2)return;f=!0}else H=!0,f=!1,setTimeout(F,20);u=J}
var H=!1,f=!1,u=0;return P};
fy=function(K){return typeof K==="number"?K:parseFloat(K)||0};
pL9=function(K){return _.Ls.apply(1,arguments).reduce(function(X,F){return X+fy(K["border-"+F+"-width"])},0)};
_.w=function(K,X){X=yz(wF(X));K.innerHTML=X};
o_P=function(K){var X=BdO;X||(X=SXl(),X=BdO=_.T8.transpose(X));X=X[K];return typeof X==="string"?X:_.Dv(K)};
Lgl=function(K){K=String(K).toLowerCase();var X=SXl()[K];return typeof X==="string"?X:_.uX(K)};
Td9=function(K){K=K.toLowerCase();K=SXl()[K];return typeof K==="string"?K:null};
SXl=function(){if(!rbq){for(var K=Object.assign({},Ab4),X=_.D(jcM),F=X.next();!F.done;F=X.next())F=F.value,K[F.toLowerCase()]=F;rbq=K}return rbq};
Wgd=function(K,X){var F=window.customElements;return F&&F.get(K)||wLP[K]===!0?2:X.name==="HTMLUnknownElement"?1:X.name==="HTMLElement"&&ybl.test(K)?3:0};
RtP=function(K,X){switch(X){case "innerHTML":return deT(K)===1?2:null;case "textContent":return K=deT(K),K===1||K===6?1:null;default:var F,P;return(P=(F=etd[K.localName])==null?void 0:F[X])!=null?P:null}};
deT=function(K){var X=K.localName,F=Wgd(X,K.constructor);switch(F){case 0:case 1:return Ue9(X,K);case 3:case 2:return 1;default:_.zJ(F,"got an unknown element classification")}};
Ue9=function(K,X){var F=Object.hasOwnProperty.call(htM,K)?htM[K]:null;return F!==null?F:Object.hasOwnProperty.call(meP,K)&&X instanceof SVGElement?meP[K]:null};
GQn=function(K,X){return X};
v_l=function(K){return(K=K.split(lR3,2))?{url:K[0],metadata:K[1]}:null};
t33=function(K){var X=String(K.url).replace(aR4,encodeURIComponent);if(K=K.metadata){aR4.lastIndex=0;if(aR4.test(K))return null;X+=" "+K}return X};
g_P=function(K){function X(M){var n=M.localName;if(!M.getAttribute("is")&&Wgd(n,M.constructor)===2){var c;return(c=Z)!=null?c:Z=document.createElement("polyresinuncustomized")}(M=J[n])||(M=J[n]=document.createElement(n));return M}
var F=K.reportHandler||void 0,P=K.safeTypesBridge||$eP,H=/^$/;if(K=K.allowedIdentifierPrefixes){K=_.D(K);for(var f=K.next();!f.done;f=K.next())H=new RegExp(H.source+"|^"+_.OM9(f.value))}F&&F(!1,"initResin",null);var u=V39(H,P,F),J={},Z=null;return function(M,n,c){var B=M.nodeType;if(B!==Node.ELEMENT_NODE){if(B===Node.TEXT_NODE){n=M.parentElement;c=!n;if(n&&n.nodeType===Node.ELEMENT_NODE){B=n.localName;var L=Wgd(B,n.constructor);switch(L){case 0:case 1:n=Ue9(B,n);c=n===1||n===6;break;case 3:case 2:c=
!0;break;default:_.zJ(L,"got an unknown element classification")}}if(c)return function(l){return""+P(l,"STRING",l)}}return function(l){if(!l&&l!==document.all)return l;
F&&F(!0,"Failed to sanitize "+(M.parentElement&&M.parentElement.nodeName)+" #text node to value "+l,M.parentElement);return q$}}var A=M.localName;
B=X(M);var d=null;switch(c){case "attribute":if(Lgl(n)in B)break;return function(l){return l};
case "property":if(n in B){d=RtP(B,n);break}if((L=Td9(n))&&L in B)break;return function(l){return l};
default:_.zJ(c,"got an unknown resin type, expected either 'property' or 'attribute'")}var R=c==="attribute"?n.toLowerCase():o_P(n);d||(d=YMT(A,R,function(l){var a=M.getAttribute(l);return!a||/[\[\{]/.test(l)?null:a}));
return function(l){var a=JD,E=null;if(!l&&l!==document.all)return l;if(d!=null){var V=u[d],x=V.safeType;E=V.safeReplacement;x&&(a=P(l,x,JD));a===JD&&(V.filterString?(a=String(P(l,"STRING",l)),a=V.filterString(A,R,a)):V.filterRaw&&(a=V.filterRaw(A,R,l,M)),a===E&&(a=JD))}a===JD&&(a=E||q$,F&&F(!0,"Failed to sanitize attribute of <"+A+">: <"+A+" "+R+'="'+l+'">',M));return a}}};
V39=function(K,X,F){return[,{filterRaw:function(P,H,f){return f},
filterString:void 0,safeReplacement:void 0,safeType:void 0},{filterRaw:void 0,filterString:void 0,safeReplacement:void 0,safeType:"HTML"},{filterRaw:void 0,filterString:void 0,safeReplacement:E_P,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:E_P,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:q$,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:bMw,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(P,H,f){f=
String(f).toLowerCase();return ngP(P,H,f)?f:q$},
safeReplacement:q$,safeType:void 0},,{filterRaw:void 0,filterString:function(P,H,f){return K.test(f)?f:q$},
safeReplacement:q$,safeType:"CONSTANT"},{filterRaw:function(P,H,f,u){if(typeof f==="string")var J=(J=f.match(CQ3))?J.map(v_l).filter(Boolean):[];else if(Array.isArray(f))J=f;else return E_P;var Z=J;J=[];var M=[],n={};if(Array.isArray(Z))for(var c=0,B=Z.length;c<B;++c){var L=Z[c],A=L&&L.url;if(A){var d=X(A,"URL",n);if(d){var R=d!==n;(R?J:M).push({url:R?d:A,metadata:L.metadata})}}}else M.push(Z);Z=M.length?JSON.stringify(M):null;M=JD;if(J.length){if(!Array.isArray(J))throw Error();M=J.map(t33).filter(Boolean).join(" , ")||
JD}Z&&F&&F(!0,"Failed to sanitize attribute value of <"+P+">: <"+P+" "+H+'="'+f+'">: '+Z,u);return M===JD?E_P:M},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
Nd4=function(K){var X=g_P(K);return function(F,P,H,f){return f||f===document.all?X(F,P,H)(f):f}};
Zv=function(K,X){function F(){function H(J,Z,M){for(Z=Reflect.getMetadata("parameters",J)||[];Z.length<=M;)Z.push(null);Z[M]=Z[M]||[];Z[M].push(u);Reflect.defineMetadata(Z,J);return J}
var f=_.Ls.apply(0,arguments);if(this instanceof F)return P.apply(this,f),this;var u=new (Function.prototype.bind.apply(F,[null].concat(_.LZ(f))));H.annotation=u;return H}
var P=iMT(X);F.prototype.toString=function(){return"@"+K};
return F.annotationCls=F};
iMT=function(K){return function(){var X=_.Ls.apply(0,arguments),F=this;K.forEach(function(P,H){H=X[H];if(Array.isArray(P))F[P[0]]=H&&H!==void 0?H:P[1];else for(var f in P)F[f]=H&&H[f]!==void 0?H[f]:P[f]})}};
xew=function(K){return K!==void 0&&K!==null};
Yr=function(K){if(typeof K==="string")return K;if(K===void 0||K===null)return""+K;if(K.overriddenName)return K.overriddenName;if(K.name)return K.name;K=K.toString();var X=K.indexOf("\n");return X===-1?K:K.substring(0,X)};
IRl=function(K){K.__forward_ref__=IRl;K.toString=function(){return Yr(this())};
return K};
Qn=function(K){return typeof K==="function"&&K.hasOwnProperty("__forward_ref__")&&K.__forward_ref__===IRl?K():K};
kQl=function(K){return K?K.map(function(X){return new (Function.prototype.bind.apply(X.type.annotationCls,[null].concat(_.LZ(X.args?X.args:[]))))}):[]};
KDl=function(K){for(var X=[],F=0;F<K.length;++F){if(X.indexOf(K[F])>-1){X.push(K[F]);break}X.push(K[F])}return X};
XzP=function(K){return K.length>1?" ("+KDl(K.slice().reverse()).map(function(X){return Yr(X.token)}).join(" -> ")+")":""};
Pt4=function(K,X,F,P){if(P){var H=Error("Te``"+(P instanceof Error?P.message:P));H.ngOriginalError=P}else H=Error();H.addKey=FDn;H.keys=[X];H.injectors=[K];H.constructResolvingMessage=F;H.message=H.constructResolvingMessage();H.ngOriginalError=P;return H};
FDn=function(K,X){this.injectors.push(K);this.keys.push(X);this.message=this.constructResolvingMessage()};
Hb4=function(K,X){return Pt4(K,X,function(){return"No provider for "+Yr(this.keys[0].token)+"!"+XzP(this.keys)})};
sYP=function(K,X){return Pt4(K,X,function(){return"Cannot instantiate cyclic dependency!"+XzP(this.keys)})};
z1O=function(K,X,F){return Pt4(K,F,function(){var P=Yr(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+P+"!"+XzP(this.keys)+"."},X)};
fn9=function(K,X){for(var F=[],P=0,H=X.length;P<H;P++){var f=X[P];f&&f.length!=0?F.push(f.map(Yr).join(" ")):F.push("?")}return Error("Xe`"+Yr(K)+"`"+F.join(", ")+"`"+Yr(K))};
QYy=function(K){var X=void 0,F=void 0;if(K&&K.useClass!==void 0){X=K.useClass;var P=Qn(K.useClass);var H=D_l.factory(P);P=u7O(P)}else K&&K.useExisting!==void 0?(H=function(f){return f},P=[qET(ny.get(Qn(K.useExisting)))]):K&&K.useFactory!==void 0?(H=K.useFactory,P=JIn(K.useFactory,K.deps)):(F=K.useValue,H=function(){return K.useValue},P=ZbP);
return new YE9(H,P,X,F)};
now=function(K){return new Mh3(ny.get(Qn(K.provide)),[QYy(K)],K.multi)};
pzP=function(K){K=cI9(K,[]).map(now);for(var X=new Map,F=0;F<K.length;F++){var P=K[F],H=X.get(P.key.id);if(H){if(P.multiProvider!==H.multiProvider)throw Error("Ze`"+H+"`"+P);if(P.multiProvider)for(var f=0;f<P.resolvedFactories.length;f++)H.resolvedFactories.push(P.resolvedFactories[f]);else X.set(P.key.id,P)}else H=void 0,P.multiProvider?H=new Mh3(P.key,P.resolvedFactories.slice(),P.multiProvider):H=P,X.set(P.key.id,H)}return Array.from(X.values())};
cI9=function(K,X){K.forEach(function(F){if(F instanceof BP4)X.push({provide:F,useClass:F});else if(F&&typeof F=="object"&&F.provide!==void 0)X.push(F);else if(F instanceof Array)cI9(F,X);else throw Error("We`"+F);});
return X};
JIn=function(K,X){if(X){var F=X.map(function(P){return[P]});
return X.map(function(P){return SEl(K,P,F)})}return u7O(K)};
u7O=function(K){var X=D_l.parameters(K);if(!X)return[];if(X.some(function(F){return F==null}))throw fn9(K,X);
return X.map(function(F){return SEl(K,F,X)})};
SEl=function(K,X,F){var P=null,H=!1;if(!Array.isArray(X))return X instanceof ooT?LDy(X.token,H,null):LDy(X,H,null);for(var f=null,u=0;u<X.length;++u){var J=X[u];if(J instanceof BP4)P=J;else if(J instanceof ooT)P=J.token;else if(J instanceof TPP)H=!0;else if(J instanceof rIl||J instanceof AIy)f=J}P=Qn(P);if(P!=null)return LDy(P,H,f);throw fn9(K,F);};
LDy=function(K,X,F){return new jYl(ny.get(Qn(K)),X,F)};
wzw=function(K,X){for(var F=Array(K.providers.length),P=0;P<K.providers.length;++P){var H=P;if(P<0||P>=K.providers.length)throw Error("Ye`"+P);F[H]=X(K.providers[P])}return F};
yIw=function(K){return typeof K==="function"&&D_l.parameters(K).every(function(X){return!!X})};
e13=function(K){var X=WD3;d_y.get(K)||d_y.set(K,new X);return d_y.get(K)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(K){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(K)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(K){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(K)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(K,X){var F,P;if(K.contains(X))return!0;K=_.cg(K).querySelectorAll("content,slot");for(F=0;F<K.length;++F){var H=_.cg(K[F]).getDistributedNodes();for(P=0;P<H.length;++P)if(H[P].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(H[P],X))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(K){K.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(K)&&K.preventDefault();K.targetTouches&&(K=K.targetTouches[0],R1y=K.pageX,U_T=K.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 K=0,X=py.length;K<X;K++)document.addEventListener(py[K],_._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 K=0,X=py.length;K<X;K++)document.removeEventListener(py[K],_._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(K){var X=_.cg(K).rootTarget;K.type!=="touchmove"&&h1T!==X&&(h1T=X,m_M=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.cg(K).path));if(!m_M.length)return!0;if(K.type==="touchstart")return!1;K=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(K);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(m_M,K.deltaX,K.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(K){for(var X=[],F=K.indexOf(GMO),P=0;P<=F;P++)if(K[P].nodeType===Node.ELEMENT_NODE){var H=K[P],f=H.style;f.overflow!=="scroll"&&f.overflow!=="auto"&&(f=window.getComputedStyle(H));f.overflow!=="scroll"&&f.overflow!=="auto"||X.push(H)}return X};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(K,X,F){if(X||F)for(var P=Math.abs(F)>=Math.abs(X),H=0;H<K.length;H++){var f=K[H];if(P?F<0?f.scrollTop>0:f.scrollTop<f.scrollHeight-f.clientHeight:X<0?f.scrollLeft>0:f.scrollLeft<f.scrollWidth-f.clientWidth)return f}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(K){var X={deltaX:K.deltaX,deltaY:K.deltaY};"deltaX"in K||("wheelDeltaX"in K&&"wheelDeltaY"in K?(X.deltaX=-K.wheelDeltaX,X.deltaY=-K.wheelDeltaY):"wheelDelta"in K?(X.deltaX=0,X.deltaY=-K.wheelDelta):"axis"in K?(X.deltaX=K.axis===1?K.detail:0,X.deltaY=K.axis===2?K.detail:0):K.targetTouches&&(K=K.targetTouches[0],X.deltaX=R1y-K.pageX,X.deltaY=U_T-K.pageY));return X};
lnO=function(K){this.element=K;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
anq=function(K){this.element=K;this.color=window.getComputedStyle(K).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");_.cg(this.waveContainer).appendChild(this.wave);vo9(this)};
Bg=function(K,X){for(var F in K)if(F.toLowerCase()===X.toLowerCase())return K[F]};
thy=function(K,X){for(var F in K)if(F.toLowerCase()===X.toLowerCase()){delete K[F];break}};
Obl=function(K){K=_.T8.clone(K);for(var X=0;X<$_y.length;++X){var F=$_y[X],P=Bg(K,F);P&&(K["X-Goog-Upload-Header-"+F]=P,thy(K,F))}return K};
VhP=function(K){K=_.T8.clone(K);thy(K,"X-Goog-Upload-Status")};
Eoq=function(K){return goP.some(function(X){return X.test(K)})};
ibP=function(K,X){var F;var P=(F=K.formContent)==null?void 0:F.locale;F=P==null?void 0:P.split("-")[0];P=P&&bby.includes(P)?P:F&&bby.includes(F)?F:void 0;P=(P!=null?P:"en").replaceAll("-","_").toLowerCase();var H;K=((H=K.initializationData)==null?0:H.useNightlyRelease)?"nightly":"live";var f;return(X==null?0:(f=X.getEnableAlohaBinarySplit)==null?0:f.call(X))?_.Xs(Ct9,K):_.Xs(NPd,K,P)};
In3=function(K,X,F,P){if(x_3)return x_3;var H=ibP(K,P);return x_3=X.feedbackV2GlobalObject?Promise.resolve(X.feedbackV2GlobalObject):new Promise(function(f,u){var J=_.nJ("SCRIPT");_.li(J,H);J.onload=function(){X.feedbackV2GlobalObject?f(X.feedbackV2GlobalObject):u(Error("bf"))};
J.onerror=function(){u(Error("cf`"+H.toString()))};
F.body.appendChild(J)})};
K6P=function(K,X,F,P){if(kMy)return kMy;var H=ibP(K,P);return kMy=X.feedbackV2GlobalObject?Promise.resolve(X.feedbackV2GlobalObject):new Promise(function(f,u){var J=_.nJ("SCRIPT");_.li(J,H);J.onload=function(){X.feedbackV2GlobalObject?f(X.feedbackV2GlobalObject):u(Error("bf"))};
J.onerror=function(){u(Error("cf`"+H.toString()))};
F.body.appendChild(J)})};
XDq=function(K,X,F,P,H){H=H===void 0?!0:H;var f,u,J,Z,M;return _.q(function(n){switch(n.nextAddress){case 1:return f=Date.now(),_.Y(n,In3(K,F,P,X),2);case 2:u=n.yieldResult;if(!(H||((Z=K.initializationData)==null?0:Z.useNightlyRelease)||((M=K.initializationData)==null?0:M.isLocalServer))){J=u.initializeFeedbackClient(K,f,X);n.jumpTo(3);break}return _.Y(n,u.initializeFeedbackClientAsync(K,f,X),4);case 4:J=n.yieldResult;case 3:return J.initiateAloha(),n.return(J)}})};
F6P=function(K,X,F,P){var H,f,u;return _.q(function(J){if(J.nextAddress==1)return H=Date.now(),_.Y(J,K6P(K,F,P.document,X),2);if(J.nextAddress!=3)return f=J.yieldResult,_.Y(J,f.initializeFeedbackClientAsync(K,H,X,P),3);u=J.yieldResult;u.initiateAloha();return J.return(u)})};
PaT=function(K,X,F){var P=!0;P=P===void 0?!0:P;var H,f,u,J,Z,M,n,c,B,L;return _.q(function(A){H=F||_.FP;if((f=X)==null?0:(J=(u=f).getEnableAlohaBinarySplit)==null?0:J.call(u)){Z=H;if(Z.isFormOpened)throw M=Error("df"),M.name="DuplicateFormError",M;Z.isFormOpened=!0;K.callbacks=K.callbacks||{};n=K.callbacks.onClose||function(){};
K.callbacks.onClose=function(d){Z.isFormOpened=!1;n(d)};
try{return A.return(F6P(K,X,Z,H))}catch(d){throw Z.isFormOpened=!1,d;}}else{c=H;if(c.isFormOpened)throw B=Error("df"),B.name="DuplicateFormError",B;c.isFormOpened=!0;K.callbacks=K.callbacks||{};L=K.callbacks.onClose||function(){};
K.callbacks.onClose=function(d){c.isFormOpened=!1;L(d)};
try{return A.return(XDq(K,X,c,H.document,P))}catch(d){throw c.isFormOpened=!1,d;}}_.JT(A)})};
D6T=function(K,X){return _.q(function(F){return F.return(new Promise(function(P){var H=Hun(X!=null?X:"")+"/aloha_form_properties?productId="+K;sGM(H,function(f){f=f.target;var u=null;try{var J=JSON,Z=J.stringify;if(f.JSC$7807_xhr_){var M=f.JSC$7807_xhr_.responseText;M.indexOf(")]}'\n")==0&&(M=M.substring(5));var n=(0,_.S4)(M)}else n=void 0;u=F0y(zhM,Z.call(J,n))}catch(c){Z=new zhM,n=fG4(),n=_.oJ(n,13,!1),n=_.oJ(n,14,!0),n=_.oJ(n,15,!0),n=_.oJ(n,20,!1),u=_.Fw(Z,1,n)}P(u)},"GET","",{},2E3,!0)}))})};
Hun=function(K){return Eoq(K)?K:"https://www.google.com/tools/feedback"};
ZuO=function(K){K=K.match(new RegExp(uOd,"gi"))||[];K=_.D(K);for(var X=K.next();!X.done;X=K.next()){X=X.value;a:{var F=_.D(qQ9);for(var P=F.next();!P.done;P=F.next())if(P.value.test(X)){F=!1;break a}F=!0}if(!F)a:{F=_.D(Jrl);for(P=F.next();!P.done;P=F.next())if(P.value.test(X)){F=!0;break a}F=!1}if(F)return!0}return!1};
YQ9=function(K){switch(K){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"}};
MQl=function(K){if(window.crypto&&window.crypto.getRandomValues)try{var X=Array(K),F=new Uint8Array(K);window.crypto.getRandomValues(F);for(var P=0;P<X.length;P++)X[P]=F[P];return X}catch(f){}X=Array(K);for(F=0;F<K;F++){P=Date.now();for(var H=0;H<P%23;H++)X[F]=Math.random();X[F]=Math.floor(Math.random()*256)}if(QGy)for(F=1,P=0;P<QGy.length;P++)X[F%K]^=X[(F-1)%K]/4^QGy.charCodeAt(P),F++;return X};
Ly=function(K){K=MQl(K);for(var X=[],F=0;F<K.length;F++)X.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(K[F]&63));return X.join("")};
crP=function(K){K&&_.LL("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:nvd,clientScreenNonce:K})};
pD9=function(K){return _.e8("client-screen-nonce-store",{})[K===void 0?0:K]};
BYq=function(K,X){X=X===void 0?0:X;var F=_.e8("client-screen-nonce-store");F||(F={},_.d2("client-screen-nonce-store",F));F[X]=K};
SQy=function(K){K=K===void 0?0:K;return K===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+K};
ovO=function(K){return _.e8(SQy(K===void 0?0:K))};
_.r_=function(K){return(K=ovO(K===void 0?0:K))?new _.TY({veType:K,youtubeData:void 0,jspbYoutubeData:void 0}):null};
L6y=function(){var K=_.e8("csn-to-ctt-auth-info");K||(K={},_.d2("csn-to-ctt-auth-info",K));return K};
TYM=function(){return Object.values(_.e8("client-screen-nonce-store",{})).filter(function(K){return K!==void 0})};
_.AD=function(K){K=pD9(K===void 0?0:K);if(!K&&!_.RU("USE_CSN_FALLBACK",!0))return null;K||(K="UNDEFINED_CSN");return K?K:null};
Arn=function(K){for(var X=_.D(Object.values(rry)),F=X.next();!F.done;F=X.next())if(_.AD(F.value)===K)return!0;return!1};
jGy=function(K,X,F){var P=L6y();(F=_.AD(F))&&delete P[F];X&&(P[K]=X)};
j4=function(K){return L6y()[K]};
_.w_=function(K,X,F,P){F=F===void 0?0:F;if(K!==pD9(F)||X!==_.e8(SQy(F)))if(jGy(K,P,F),BYq(K,F),_.d2(SQy(F),X),X=function(){setTimeout(function(){crP(K)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(X)}catch(H){X()}else X()};
wDq=function(K,X){X=X===void 0?"":X;var F=[],P;for(P in K)if(K.hasOwnProperty(P)){var H=X!==""?X+"."+P:P;typeof K[P]==="object"?F.push.apply(F,_.LZ(wDq(K[P],H))):F.push([H,K[P]])}F.sort();return F};
_.W6O=function(K){var X=_.Ls.apply(1,arguments);if(!yn(K)||X.some(function(P){return!yn(P)}))throw Error("ef");
X=_.D(X);for(var F=X.next();!F.done;F=X.next())yrP(K,F.value)};
yrP=function(K,X){for(var F in X)if(yn(X[F])){if(F in K&&!yn(K[F]))throw Error("ff");F in K||(K[F]={});yrP(K[F],X[F])}else if(d6w(X[F])){if(F in K&&!d6w(K[F]))throw Error("gf");F in K||(K[F]=[]);ehq(K[F],X[F])}else K[F]=X[F];return K};
ehq=function(K,X){X=_.D(X);for(var F=X.next();!F.done;F=X.next())F=F.value,yn(F)?K.push(yrP({},F)):d6w(F)?K.push(ehq([],F)):K.push(F);return K};
yn=function(K){return typeof K==="object"&&!Array.isArray(K)};
d6w=function(K){return typeof K==="object"&&Array.isArray(K)};
U63=function(K){for(var X=_.D(Object.entries(Rhy)),F=X.next();!F.done;F=X.next())if(F=_.D(F.value),F.next(),F=F.next().value,F==="SLI_STATUS_"+K)return F;return"SLI_STATUS_UNKNOWN"};
_.Wg=function(K,X,F,P){return hhn(K,X,function(){return new _.m6l(K,X,F,P)})};
_.G44=function(){return _.Wg("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
lGl=function(){return _.Wg("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
d_=function(){return _.Wg("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
vvM=function(){return _.Wg("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
aGl=function(){return _.Wg("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
tQM=function(){return _.Wg("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
VQy=function(K){K&&(K.dataset?K.dataset[$6P()]="true":_.af([_.kE(Ouw)],K,"data-loaded","true".toString()))};
gvl=function(K){return K?K.dataset?K.dataset[$6P()]:K.getAttribute("data-loaded"):null};
$6P=function(){return Ev3.loaded||(Ev3.loaded="loaded".replace(/\-([a-z])/g,function(K,X){return X.toUpperCase()}))};
_.e4=function(K,X,F){bu9(K,X,F===void 0?null:F)};
_.NYd=function(K,X){K&&X&&(K=""+_.FL(X),(K=CaP[K])&&_.kwl(K))};
bu9=function(K,X,F){F=F===void 0?null:F;var P=_.iun(K),H=document.getElementById(P),f=H&&gvl(H),u=H&&!f;f?X&&X():(X&&(f=_.XY(P,X),X=""+_.FL(X),CaP[X]=f),u||(H=x6l(K,P,function(){gvl(H)||(VQy(H),_.Kad(P),_.Pm(function(){_.Fay(P)},0))},F)))};
x6l=function(K,X,F,P){P=P===void 0?null:P;var H=_.nJ("SCRIPT");H.id=X;H.onload=function(){F&&setTimeout(F,0)};
H.onreadystatechange=function(){switch(H.readyState){case "loaded":case "complete":H.onload()}};
P&&H.setAttribute("nonce",P);_.li(H,_.AH(K));K=document.getElementsByTagName("head")[0]||document.body;K.insertBefore(H,K.firstChild);return H};
_.iun=function(K){var X=document.createElement("a");Ao(X,K);return"js-"+RJ(X.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
IGl=function(K){var X=_.e8("INNERTUBE_HOST_OVERRIDE");X&&(K=String(X)+String(_.Uc(K)));return K};
k4d=function(K){var X={};_.S("json_condensed_response")&&(X.prettyPrint="false");return K=TgM(K,X)};
_.hD=function(K){return b9(K)?"same-origin":"include"};
_.mH=function(K){return b9(K)?"same-origin":"cors"};
GY=function(K,X,F){F=F===void 0?{}:F;K={method:X===void 0?"POST":X,mode:_.mH(K),credentials:_.hD(K)};X={};for(var P=_.D(Object.keys(F)),H=P.next();!H.done;H=P.next())H=H.value,F[H]&&(X[H]=F[H]);Object.keys(X).length>0&&(K.headers=X);return K};
_.lX=function(K,X){X=X===void 0?{}:X;return"service:"+K+"/"+Object.keys(X).sort().map(function(F){return F+":"+X[F]}).join("/")};
K9w=function(K){var X,F,P,H;K=(X=_.T(K,_.vg))==null?void 0:(F=X.watchEndpointSupportedOnesieConfig)==null?void 0:(P=F.html5PlaybackOnesieConfig)==null?void 0:(H=P.commonConfig)==null?void 0:H.url;if(!K)return[];X=new _.aJ(K);return X.JSC$8042_domain_?["https://"+X.JSC$8042_domain_+"/generate_204"]:[]};
_.PRn=function(){return XVl()||wgy()||F9P&&yq("version/")?!0:_.e8("EOM_VISITOR_DATA")?!1:!0};
H13=function(K){var X=K.docid||K.video_id||K.videoId||K.id;if(X)return X;X=K.raw_player_response;X||(K=K.player_response)&&(X=JSON.parse(K));return X&&X.videoDetails&&X.videoDetails.videoId||null};
s5P=function(K){return K.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
tD=function(K){return!isNaN(Number(K))&&!_.fO(K)};
_.Oc=function(K,X,F,P){P=P===void 0?!0:P;var H=_.e8("VALID_SESSION_TEMPDATA_DOMAINS",[]),f=_.g2(window.location.href);f&&H.push(f);f=_.g2(K);if(_.Ol(H,f)||!f&&_.Hy(K,"/"))if(H=document.createElement("a"),Ao(H,K),K=H.href)if(K=_.Uc(K),K=_.$r(K))P&&!X.csn&&(X.itct||X.ved)&&(X=Object.assign({csn:_.AD()},X)),F?(F=parseInt(F,10),isFinite(F)&&F>0&&z0q(K,X,F)):z0q(K,X)};
DET=function(K){var X=_.e8("VALID_SESSION_TEMPDATA_DOMAINS",[]),F=_.g2(window.location.href);F&&X.push(F);F=_.g2(K);if(!(_.Ol(X,F)||!F&&_.Hy(K,"/")))return null;K=_.Uc(K);(K=_.$r(K))?(K=fBP(K),K=(K=_.Jv.get(K,void 0)||null)?_.aU(K):{}):K=null;return K};
z0q=function(K,X,F){K=fBP(K);X=X?_.Dr(X):"";F=F||5;_.PRn()&&_.Zr(K,X,F)};
fBP=function(K){for(var X=_.D(ukP),F=X.next();!F.done;F=X.next())K=_.Vn(K,F.value);return"ST-"+RJ(K).toString(36)};
qh4=function(K,X){K.commandMetadata&&_.T(K.commandMetadata,_.g_)&&_.T(K.commandMetadata,_.g_).url&&(K=_.tV(_.T(K.commandMetadata,_.g_).url).adurl)&&_.Ag3(K)&&_.Oc(_.Uc(K),{encoded_ad_playback_context:X})};
_.JmT=function(K){if(K.requestFullscreen)K=K.requestFullscreen(void 0);else if(K.webkitRequestFullscreen)K=K.webkitRequestFullscreen();else if(K.mozRequestFullScreen)K=K.mozRequestFullScreen();else if(K.msRequestFullscreen)K=K.msRequestFullscreen();else if(K.webkitEnterFullscreen)K=K.webkitEnterFullscreen();else return Promise.reject(Error("qf"));return K instanceof Promise?K:Promise.resolve()};
_.bX=function(K){var X;_.t04(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.Ec()==K&&(X=document):X=K;if(X&&(K=_.t04(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],X))){K.call(X)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.Ec=function(){var K=K===void 0?!1:K;var X=_.t04(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(K)for(;X&&X.shadowRoot;)X=X.shadowRoot.fullscreenElement;return X?X:null};
_.Cy=function(K,X){X=X===void 0?!0:X;K.addEventListener("wheel",Z19);K.overscrollConfig={cooldown:X}};
_.N$=function(K){K.overscrollConfig=void 0;K.removeEventListener("wheel",Z19)};
Z19=function(K){var X=K.deltaY,F=K.target,P=null;if(window.Polymer&&window.Polymer.Element){if(F=K.path||K.composedPath&&K.composedPath()){F=_.D(F);for(var H=F.next();!H.done&&(H=H.value,!Yhq(H,X));H=F.next())if(H.overscrollConfig){P=H;break}}}else for(;F&&!Yhq(F,X);){if(F.overscrollConfig){P=F;break}F=F.parentElement}P&&(X=P.overscrollConfig,X.cooldown?(P=K.deltaY,F=X.lastDeltaY||0,X.lastDeltaY=P,H=X.lastStopped||0,F&&H&&F>0==P>0?Math.abs(F)>=Math.abs(P)?(P=H+1200,F=!1):(P=H+600,F=!0):(P=Date.now()+
600,F=!0),P>Date.now()&&(K.preventDefault(),F&&(X.lastStopped=Date.now()))):K.preventDefault())};
Yhq=function(K,X){return X<0&&K.scrollTop>0||X>0&&K.scrollTop<K.scrollHeight-K.clientHeight-1?(K=getComputedStyle(K).overflowY,K=="auto"||K=="scroll"):!1};
_.iX=function(K,X,F,P){P||(P={bubbles:!0,cancelable:!1,composed:!0});F!==null&&F!==void 0&&(P.detail=F);var H=new CustomEvent(X,P);_.S("untrack_fire_custom_event_killswitch")?K.dispatchEvent(H):DK(function(){return void K.dispatchEvent(H)});
return H};
_.xr=function(K,X,F,P){X=new Q5w(X,!(P===void 0||!P),F);_.iX(K,"yt-action",X);return X.returnValue};
_.IJ=function(K,X,F){return _.xr(K,X,F,!0)};
_.kr=function(K,X,F){return _.xr(K,X,F)[0]};
_.X0=function(K,X,F,P){X&&X.length&&X.forEach(function(H){var f=vOd(H);f&&(_.S("handle_service_request_actions")&&H.commandMetadata&&H.commandMetadata.webCommandMetadata&&H.commandMetadata.webCommandMetadata.sendPost?_.Kl(F?F:K,[H]):_.IJ(K,f,[H,F,P]))})};
_.Kl=function(K,X){var F=[K];X&&F.push.apply(F,X);X=_.xr(K,"yt-service-request",F);return X.length>0&&(X=X[0],_.iX(K,"yt-service-request-sent",X),X&&X.ajaxPromise)?(X.ajaxPromise.then(function(P){_.iX(K,"yt-service-request-completed",P)},function(P){_.iX(K,"yt-service-request-error",{error:P,
params:F})},K),X.ajaxPromise):_.F0()};
_.HW=function(K,X){if(_.S("handle_service_request_actions"))_.X0(X,K,X);else{K=_.D(K);for(var F=K.next();!F.done;F=K.next()){F=F.value;var P=void 0;((P=_.T(F,_.PW))==null?0:P.commands)?_.HW(_.T(F,_.PW).commands,X):(P=void 0,((P=_.T(F,_.ss))==null?0:P.actions)?_.HW(_.T(F,_.ss).actions,X):(P=void 0,((P=_.T(F.commandMetadata,_.g_))==null?0:P.sendPost)?_.Kl(X,[F]):_.X0(X,[F],X)))}}};
_.n0T=function(K,X,F){X=X===void 0?{}:X;typeof X==="function"&&(X={callback:X});F||X._c&&X._c.jsl&&X._c.jsl.h||_.T8.extend(X,{_c:{jsl:{h:_.e8("GAPI_HINT_PARAMS")}}});(X.gapiHintOverride||_.e8("GAPI_HINT_OVERRIDE"))&&(F=_.tV(document.location.href).gapi_jsh)&&_.T8.extend(X,{_c:{jsl:{h:F}}});Mal(K,X)};
_.uY=function(K,X,F){X=X===void 0?{}:X;K=(K=K in DO?DO[K]:F)||"";F={};for(var P in X){F={key$jscomp$788:F.key$jscomp$788};F.key$jscomp$788=P;var H=function(f){return function(){return String(X[f.key$jscomp$788])}}(F);
K=K.replace(new RegExp("\\$\\{"+F.key$jscomp$788+"\\}","gi"),H);K=K.replace(new RegExp("\\$"+F.key$jscomp$788,"gi"),H)}return K};
_.qm=function(K,X){return cmn(K in DO?DO[K]:{},X)};
cmn=function(K,X){var F=_.e8("I18N_PLURAL_RULES");F||(F=function(P){return P==1?"one":"other"});
return(K=K["case"+X]||K[F(X)])?K.replace("#",X.toString()):X+""};
ShP=function(K){var X=pVy(K),F=document.getElementById(X),P=F&&gvl(F);P||F&&!P||(F=BRq(K,X,function(){if(!gvl(F)){VQy(F);_.Kad(X);var H=_.Jc(_.Fay,X);_.Pm(H,0)}}))};
BRq=function(K,X,F){var P=document.createElement("link");P.id=X;P.onload=function(){F&&setTimeout(F,0)};
K=_.AH(K);_.Vz(P,K,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(P);return P};
pVy=function(K){var X=_.nJ("A");Ao(X,ZX(K));return"css-"+RJ(X.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.L9T=function(K){var X=o0M();K!==X&&(X=_.ZO(),!_.S("web_autonav_allow_off_by_default")&&K||_.YX(0,141,!0),_.YX(0,140,!K),X.save())};
o0M=function(){var K=_.ZO();return _.S("web_autonav_allow_off_by_default")&&!K.getFlag(141)&&_.e8("AUTONAV_OFF_BY_DEFAULT")?!1:!K.getFlag(140)};
TRO=function(K,X){var F,P;K=((F=K.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(P=F.videoAuthorizationToken)==null?void 0:P.credentialTransferTokens)||[];for(F=0;F<K.length;++F)if(K[F].scope===X)return K[F].token||void 0};
rmy=function(K){for(var X=0,F=0;F<K.length;F++)X=X*31+K.charCodeAt(F),F<K.length-1&&(X%=0x800000000000);return X%1E5};
_.Qi=function(K){return _.mz("ytcsi."+(K||"")+"data_")||AmO(K)};
_.j5q=function(K){K=_.Qi(K);K.metadata||(K.metadata={});return K.metadata};
_.wVy=function(K){K=_.Qi(K);K.tick||(K.tick={});return K.tick};
_.ymq=function(K){K=_.Qi(K);if(K.gel){var X=K.gel;X.gelInfos||(X.gelInfos={});X.gelTicks||(X.gelTicks={})}else K.gel={gelTicks:{},gelInfos:{}};return K.gel};
_.W9y=function(K){K=_.ymq(K);K.gelInfos||(K.gelInfos={});return K.gelInfos};
dEd=function(K){var X=_.Qi(K).nonce;X||(X=Ly(16),_.Qi(K).nonce=X);return X};
AmO=function(K){var X={tick:{},info:{}};_.gS("ytcsi."+(K||"")+"data_",X);return X};
e03=function(){var K=_.mz("ytcsi.debug");K||(K=[],_.gS("ytcsi.debug",K),_.gS("ytcsi.reference",{}));return K};
_.UEl=function(K){K=K||"";var X=R0q();if(X[K])return X[K];var F=e03(),P={timerName:K,info:{},tick:{},span:{},jspbInfo:[]};F.push(P);return X[K]=P};
h0y=function(K){K=K||"";var X=R0q();X[K]&&delete X[K];var F=e03(),P={timerName:K,info:{},tick:{},span:{},jspbInfo:[]};F.push(P);X[K]=P};
R0q=function(){var K=_.mz("ytcsi.reference");if(K)return K;e03();return _.mz("ytcsi.reference")};
_.GVq=function(K){return mEl[K]||"LATENCY_ACTION_UNKNOWN"};
ta3=function(K,X,F){F=F===void 0?{}:F;var P=!1;_.RU("ytLoggingEventsDefaultDisabled",!1)&&(P=!0);P=P?null:oI;F=F===void 0?{}:F;var H=Math.round(F.timestamp||(0,_.CG)());_.MF(X,1,H<Number.MAX_SAFE_INTEGER?H:0);H=new lBw;if(F.lact)_.MF(H,1,isFinite(F.lact)?F.lact:-1);else if(F.timestamp)_.MF(H,1,-1);else{var f=_.xg();_.MF(H,1,isFinite(f)?f:-1)}if(F.sequenceGroup&&!_.S("web_gel_sequence_info_killswitch")){f=F.sequenceGroup;var u=ZB9(f),J=new v0l;_.MF(J,2,u);_.Qf(J,1,f);_.Fw(H,3,J);F.endOfSequence&&delete aB4[F.sequenceGroup]}_.Fw(X,
33,H);(F.sendIsolatedPayload?pcw:Bll)(K,{endpoint:"log_event",payload:X,cttAuthInfo:F.cttAuthInfo,dangerousLogToVisitorSession:F.dangerousLogToVisitorSession},P)};
_.nl=function(){return(_.S("csi_use_time_origin")||_.S("csi_use_time_origin_tvhtml5"))&&_.Mm.timeOrigin?Math.floor(_.Mm.timeOrigin):_.Mm.timing.navigationStart};
_.$EO=function(K,X){_.cW("_start",K,X)};
_.pl=function(K,X){if(!_.S("web_csi_action_sampling_enabled")||!_.Qi(X).actionDisabled){var F=_.UEl(X||"");_.W6O(F.info,K);K.loadType&&(F=K.loadType,_.j5q(X).loadType=F);_.W6O(_.W9y(X),K);F=dEd(X);X=_.Qi(X).cttAuthInfo;O1M().info(K,F,X)}};
VaT=function(){var K,X,F,P;return((P=_.i9().resolve(_.Nu(pL))==null?void 0:(K=JYn())==null?void 0:(X=K.loggingHotConfig)==null?void 0:(F=X.csiConfig)==null?void 0:F.debugTicks)!=null?P:[]).map(function(H){return Object.values(H)[0]})};
_.cW=function(K,X,F){if(!_.S("web_csi_action_sampling_enabled")||!_.Qi(F).actionDisabled){var P=dEd(F),H;if(H=_.S("web_csi_debug_sample_enabled")&&P){(_.i9().resolve(_.Nu(pL))==null?0:JYn())&&!g0P&&(g0P=!0,_.cW("gcfl",(0,_.CG)(),F));var f,u,J;H=(_.i9().resolve(_.Nu(pL))==null?void 0:(f=JYn())==null?void 0:(u=f.loggingHotConfig)==null?void 0:(J=u.csiConfig)==null?void 0:J.debugSampleWeight)||0;if(f=H!==0)b:{f=VaT();if(f.length>0)for(u=0;u<f.length;u++)if(K===f[u]){f=!0;break b}f=!1}f?(H=rmy(P)%H!==
0,_.Qi(F).debugTicksExcludedLogged||(f={},f.debugTicksExcluded=H,_.pl(f,F)),_.Qi(F).debugTicksExcludedLogged=!0):H=!1}if(!H){K[0]!=="_"&&E0P(K,F,X);H=_.UEl(F||"");H.tick[K]=X||(0,_.CG)();if(H.callback&&H.callback[K])for(H=_.D(H.callback[K]),f=H.next();!f.done;f=H.next())f=f.value,f();H=_.ymq(F);H.gelTicks&&(H.gelTicks[K]=!0);f=_.wVy(F);H=X||(0,_.CG)();_.S("log_repeated_ytcsi_ticks")?K in f||(f[K]=H):f[K]=H;f=_.Qi(F).cttAuthInfo;K==="_start"?O1M().baseline(P,X,f):O1M().tick(K,P,X,f);_.b1n(F);return H}}};
E0P=function(K,X,F){if(_.Mm.mark)if(K.startsWith("mark_")||(K="mark_"+K),X&&(K+=" ("+X+")"),F===void 0||_.S("web_csi_disable_alt_time_performance_mark"))_.Mm.mark(K);else{F=_.S("csi_use_performance_navigation_timing")?F-_.Mm.timeOrigin:F-(_.Mm.timeOrigin||_.Mm.timing.navigationStart);try{_.Mm.mark(K,{startTime:F})}catch(P){}}};
CRM=function(){var K,X=(K=_.Mm.getEntriesByType)==null?void 0:K.call(_.Mm,"mark");X&&X.forEach(function(F){if(F.name.startsWith("mark_")){var P;(P=_.Mm.clearMarks)==null||P.call(_.Mm,F.name)}})};
_.NRl=function(){switch(amw()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.i1M=function(K){var X={},F=function(f,u,J){u=u.match("_rid")?u.split("_rid")[0]:u;typeof J==="number"&&(J=JSON.stringify(J));f.requestIds?f.requestIds.push({endpoint:u,id:J}):f.requestIds=[{endpoint:u,id:J}]};
K=_.D(Object.entries(K));for(var P=K.next();!P.done;P=K.next()){var H=_.D(P.value);P=H.next().value;H=H.next().value;switch(P){case "GetBrowse_rid":F(X,P,H);break;case "GetGuide_rid":F(X,P,H);break;case "GetHome_rid":F(X,P,H);break;case "GetPlayer_rid":F(X,P,H);break;case "GetSearch_rid":F(X,P,H);break;case "GetSettings_rid":F(X,P,H);break;case "GetTrending_rid":F(X,P,H);break;case "GetWatchNext_rid":F(X,P,H);break;case "yt_red":X.isRedSubscriber=!!H;break;case "yt_ad":X.isMonetized=!!H}}return X};
_.xEl=function(K){var X=_.o7("aft",K);if(X)return X;X=_.e8((K||"")+"TIMING_AFT_KEYS",["ol"]);for(var F=X.length,P=0;P<F;P++){var H=_.o7(X[P],K);if(H)return H}return NaN};
_.IBq=function(K,X){_.gS("ytglobal.timing"+(X||"")+"ready_",K)};
_.o7=function(K,X){if(K=_.wVy(X)[K])return typeof K==="number"?K:K[K.length-1]};
_.b1n=function(K){var X=_.o7("_start",K),F=_.xEl(K),P=!kVP;X&&F&&P&&(Yzq(KNO,new XTd(Math.round(F-X),K)),kVP=!0)};
Pz4=function(K){AmO(K);FNT();CRM();K||(_.e8("TIMING_ACTION")&&_.d2("PREVIOUS_ACTION",_.e8("TIMING_ACTION")),_.d2("TIMING_ACTION",""))};
_.Hwn=function(K){K=K===void 0?{}:K;_.hV(function(){Ll();h0y();Pz4();_.IBq(!1);K.cttAuthInfo&&(_.Qi().cttAuthInfo=K.cttAuthInfo);_.d2("TIMING_AFT_KEYS",[]);K.isHot?_.T6({loadType:"hot"}):_.T6({loadType:"warm"});_.d2("TIMING_ACTION","");delete _.e8("TIMING_INFO",{}).yt_lt;_.hV(_.$EO)(K.startTime,void 0)})()};
_.rb=function(K,X,F,P){X=X===void 0?{}:X;_.hV(function(){var H=F?F:K;sKM(H);var f=X.sampleRate;if(!_.S("web_csi_action_sampling_enabled")||f===void 0||f<=1)f=!1;else{var u=dEd(H);f=rmy(u)%f!==0}f&&(_.Qi(H).actionDisabled=!0);_.UEl(H||"").info.actionType=K;X.cttAuthInfo&&(_.Qi(H).cttAuthInfo=X.cttAuthInfo);_.d2(H+"TIMING_ACTION",K);_.hV(_.$EO)(X.startTime,H);f={actionType:P||_.GVq(K)};X.logPreviousAction&&(f.previousAction=_.GVq(_.e8("TIMING_ACTION")));(u=_.AD())&&u!=="UNDEFINED_CSN"&&(f.clientScreenNonce=
u);_.T6(f,H);_.IBq(!0,H)})()};
sKM=function(K){_.hV(function(){Ll(K);h0y(K);Pz4(K)})()};
zLy=function(){_.hV(function(){var K=[],X;for(X in _.mz("ytcsi.".slice(0,-1)))X.endsWith("data_")&&K.push(X.slice(0,-5));K=_.D(K);for(X=K.next();!X.done;X=K.next())sKM(X.value);Ll()})()};
_.DOq=function(K){return _.hV(function(){return _.f14("_start",K)})()};
_.T6=function(K,X,F){_.hV(_.pl)(K,X,F===void 0?!1:F)};
_.Ac=function(K,X,F){return _.hV(_.cW)(K,X,F)};
_.f14=function(K,X){return _.hV(function(){var F=_.wVy(X);return K in F})()};
qrl=function(K){if(!_.S("universal_csi_network_ticks"))return"";K=_.zy(K)||"";for(var X=Object.keys(ur9),F=0;F<X.length;F++){var P=X[F];if(K.includes(P))return P}return""};
Zwn=function(K){if(!_.S("universal_csi_network_ticks"))return function(){};
var X=ur9[K];return X?(_.jv(X),function(){var F=_.S("universal_csi_network_ticks")?(F=JK9[K])?_.jv(F):!1:!1;return F}):function(){}};
_.jv=function(K,X,F){return _.hV(function(){if(_.f14(K,F))return!1;_.Ac(K,X,F);return!0})()};
_.wb=function(K,X,F){_.hV(function(){if(!_.DOq(F)||_.f14(K,F))return!1;_.Ac(K,X,F);return!0})()};
_.yi=function(K){return _.hV(_.o7)(K,void 0)};
Ll=function(K){_.DOq(K)&&_.Ac("aa",void 0,K)};
_.cKy=function(K,X,F,P,H,f,u,J,Z){var M=Yrw();J=new _.TY({veType:X,youtubeData:f,jspbYoutubeData:J});f=WW({},M);H&&(f.cttAuthInfo=H);H={csn:M,pageVe:J.getAsJson()};_.S("expectation_logging")&&Z&&Z.screenCreatedLoggingExpectations&&(H.screenCreatedLoggingExpectations=Z.screenCreatedLoggingExpectations);F&&F.visualElement?(H.implicitGesture={parentCsn:F.clientScreenNonce,gesturedVe:F.visualElement.getAsJson()},u&&(H.implicitGesture.gestureType=u)):F&&_.yy(new _.nG("newScreen() parent element does not have a VE - rootVe",
X));P&&(H.cloneCsn=P);K?SF("screenCreated",H,K,f):_.LL("screenCreated",H,f);Yzq(Szy,new QKT(M));db.clear();Mqy.clear();nsn.clear();return M};
ev=function(K,X,F,P,H){pTP(K,X,F,[P],H===void 0?!1:H)};
pTP=function(K,X,F,P,H){H=H===void 0?!1:H;for(var f=WW({cttAuthInfo:j4(X)||void 0},X),u=_.D(P),J=u.next();!J.done;J=u.next()){J=J.value;var Z=J.getAsJson();(_.T8.isEmpty(Z)||!Z.trackingParams&&!Z.veType)&&_.yy(Error("rf"));if(_.S("no_client_ve_attach_unless_shown")){var M=B9n(J,X);if(Z.veType&&!Mqy.has(M)&&!nsn.has(M)&&!H){if(!_.S("il_attach_cache_limit")||db.size<1E3){db.set(M,[K,X,F,J]);return}_.S("il_attach_cache_limit")&&db.size>1E3&&_.yy(new _.nG("IL Attach cache exceeded limit"))}J=B9n(F,X);
db.has(J)?Sr4(F,X):nsn.set(J,!0)}}P=P.filter(function(n){n.csn!==X?(n.csn=X,n=!0):n=!1;return n});
F={csn:X,parentVe:F.getAsJson(),childVes:_.AE(P,function(n){return n.getAsJson()})};
X==="UNDEFINED_CSN"?R7("visualElementAttached",f,F):K?SF("visualElementAttached",F,K,f):_.LL("visualElementAttached",F,f)};
LN3=function(K,X,F,P,H){osM(K,X,F,H)};
osM=function(K,X,F,P){T9l(F,X);var H=WW({cttAuthInfo:j4(X)||void 0},X);F={csn:X,ve:F.getAsJson(),eventType:1};P&&(F.clientData=P);X==="UNDEFINED_CSN"?R7("visualElementShown",H,F):K?SF("visualElementShown",F,K,H):_.LL("visualElementShown",F,H)};
rKw=function(K,X,F,P){T9l(F,X);var H=WW({cttAuthInfo:j4(X)||void 0},X);F={csn:X,ve:F.getAsJson(),eventType:4};P&&(F.clientData=P);X==="UNDEFINED_CSN"?R7("visualElementShown",H,F):K?SF("visualElementShown",F,K,H):_.LL("visualElementShown",F,H)};
AKw=function(K,X,F,P,H){var f=(P=P===void 0?!1:P)?16:8;P=WW({cttAuthInfo:j4(X)||void 0,endOfSequence:P},X);F={csn:X,ve:F.getAsJson(),eventType:f};H&&(F.clientData=H);X==="UNDEFINED_CSN"?R7("visualElementHidden",P,F):K?SF("visualElementHidden",F,K,P):_.LL("visualElementHidden",F,P)};
wTT=function(K,X,F,P,H){jKl(K,X,F,void 0,P,H)};
jKl=function(K,X,F,P,H){T9l(F,X);P=P||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var f=WW({cttAuthInfo:j4(X)||void 0},X);F={csn:X,ve:F.getAsJson(),gestureType:P};H&&(F.clientData=H);X==="UNDEFINED_CSN"?R7("visualElementGestured",f,F):K?SF("visualElementGestured",F,K,f):_.LL("visualElementGestured",F,f)};
yK3=function(K,X,F,P){var H=WW({cttAuthInfo:j4(X)||void 0},X);F={csn:X,ve:F.getAsJson(),clientData:P};X==="UNDEFINED_CSN"?R7("visualElementStateChanged",H,F):K?SF("visualElementStateChanged",F,K,H):_.LL("visualElementStateChanged",F,H)};
WNP=function(){var K=MQl(16);for(var X=[],F=0;F<K.length;F++)X.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(K[F]&63));return X.join("")};
R7=function(K,X,F){dO9.push({payloadName:K,payload:F,jspbPayload:void 0,options:X});eLP||(eLP=LXw())};
BI9=function(K){if(dO9){for(var X=_.D(dO9),F=X.next();!F.done;F=X.next())F=F.value,F.payload&&(F.payload.csn=K.csn,_.LL(F.payloadName,F.payload,F.options));dO9.length=0}eLP=0};
B9n=function(K,X){return""+K.getAsJson().veType+K.getAsJson().veCounter+X};
T9l=function(K,X){if(_.S("no_client_ve_attach_unless_shown")){var F=B9n(K,X);Mqy.set(F,!0);Sr4(K,X)}};
Sr4=function(K,X){K=B9n(K,X);db.has(K)&&(X=db.get(K)||[],ev(X[0],X[1],X[2],X[3],!0),db.delete(K))};
WW=function(K,X){_.S("log_sequence_info_on_gel_web")&&(K.sequenceGroup=X);return K};
_.Us=function(K,X,F){_.hV(ev)(void 0,K,X,F)};
_.hc=function(K,X,F){_.hV(pTP)(void 0,K,X,F)};
_.mb=function(K,X){_.hV(LN3)(void 0,K,X,void 0,void 0,void 0)};
_.G6=function(K,X,F){_.hV(function(){_.vd(X,function(P){rKw(void 0,K,P,F)})})()};
_.lY=function(K,X,F,P){_.hV(function(){_.vd(X,function(H){AKw(void 0,K,H,F,P)})})()};
_.vW=function(K,X,F){_.hV(wTT)(void 0,K,X,F,void 0)};
_.a7=function(K,X,F,P){_.hV(jKl)(void 0,K,X,F,P,void 0)};
_.tc=function(K,X,F){_.hV(yK3)(void 0,K,X,F,void 0)};
Os=function(K){return $X.get(K)};
RLO=function(K,X){$X.set(K,X)};
UOM=function(K,X){var F=Object.keys(K);K=new _.nG("[Command Handler] "+X,{filteredCommandNames:F,originalCommand:K});_.jF(K)};
hLy=function(K,X){UOM(K,X+" was called but not set")};
mOO=function(K){return function(){return new K}};
Vi=function(K){return function(){return _.i9().resolve(K)}};
GOn=function(K,X){var F=_.T(K,_.Uj);if(F&&(F=X[F.signal]))return F();K=_.D(Object.keys(K));for(F=K.next();!F.done;F=K.next())if(F=F.value,X[F]&&(F=X[F]))return F()};
gb=function(K,X,F,P){return{browseEndpoint:{browseId:K},commandMetadata:{webCommandMetadata:{url:X,rootVe:F,webPageType:P===void 0?"WEB_PAGE_TYPE_BROWSE":P}}}};
l1d=function(K,X,F){var P=X=X===void 0?0:X;F=F===void 0?0:F;var H=F-P;return _.Es(K,"PPSV",void 0,void 0,(H>600?0:H<60||F<=0||P/F>.9)?0:X)};
_.Es=function(K,X,F,P,H){var f="/watch?v="+K;K={videoId:K};X&&(K.playlistId=X,f+="&list="+X);P&&(f+="&pp="+P);H&&(K.startTimeSeconds=H,f+="&t="+H+"s");X={watchEndpoint:K,commandMetadata:{webCommandMetadata:{url:f,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};F&&(X.clickTrackingParams=F);P&&(_.T(X,_.vg).playerParams=P);return X};
vs9=function(K){return{browseEndpoint:{browseId:"VL"+K},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+K,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
a1P=function(K){if(K){var X;if(K){var F=(X=_.T(K.commandMetadata,_.g_))==null?void 0:X.url;X=!(!F||F==="/service_ajax")}else X=!1;if(X)return K;var P;if(K=(P=_.T(K,_.PW))==null?void 0:P.commands)for(P=_.D(K),K=P.next();!K.done;K=P.next())if(K=a1P(K.value))return K}};
_.bY=function(K){return{runs:[{text:K}]}};
tqO=function(K,X){return K&&X?{runs:[{text:K,navigationEndpoint:X}]}:void 0};
Cl=function(K){return K?_.bY(K):void 0};
_.Nm=function(K){return K?{simpleText:K}:void 0};
_.iY=function(K){var X=K.type;K=K.payload;X={type:X};K!==void 0&&(X.payload=K);return X};
$Oy=function(K,X,F){for(var P=Object.assign({},K),H=_.D(Object.keys(X)),f=H.next();!f.done;f=H.next()){f=f.value;var u=K[f],J=X[f];if(J===void 0)delete P[f];else if(u===void 0)P[f]=J;else if(Array.isArray(J)&&Array.isArray(u))P[f]=F?[].concat(_.LZ(u),_.LZ(J)):J;else if(!Array.isArray(J)&&_.XL(J)&&!Array.isArray(u)&&_.XL(u))P[f]=$Oy(u,J,F);else if(typeof J===typeof u)P[f]=J;else return X=new _.nG("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,originalValue:u,updateValue:J}),
_.jF(X),K}return P};
gs4=function(K){if(!K.length)return"";try{if(Oww)return Oww.decode(K);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(K)}catch(u){}for(var X=0,F=[],P=K.length;X<P;){for(var H=0;H<1024&&X<P;){var f=K[X++];if(f<128)Vqy[H++]=f;else{if(f<224)f=(f&31)<<6|K[X++]&63;else if(f<240)f=(f&15)<<12|(K[X++]&63)<<6|K[X++]&63;else{if(H+1===1024){--X;break}f=(f&7)<<18|(K[X++]&63)<<12|(K[X++]&63)<<6|K[X++]&63;f-=65536;Vqy[H++]=55296|f>>10;f=56320|f&1023}Vqy[H++]=f}}f=String.fromCharCode.apply(String,
Vqy);H<1024&&(f=f.substring(0,H));F.push(f)}return F.join("")};
bw3=function(K,X){var F;if((F=Esy)==null?0:F.encodeInto)return X=Esy.encodeInto(K,X),X.read<K.length?K.length*4:X.written;for(var P=F=0;P<K.length;P++){var H=K.charCodeAt(P);H<128?X[F++]=H:(H<2048?X[F++]=H>>6|192:((H&64512)===55296&&P+1<K.length&&(K.charCodeAt(P+1)&64512)===56320?(H=65536+((H&1023)<<10)+(K.charCodeAt(++P)&1023),X[F++]=H>>18|240,X[F++]=H>>12&63|128):X[F++]=H>>12|224,X[F++]=H>>6&63|128),X[F++]=H&63|128)}return F};
Czy=function(K,X){K=new Uint8Array(K);X&&K.set(X);return K};
_.I7=function(K){K=new N93(new iw4([_.Jt(decodeURIComponent(K))]));if(xOM(K,2)){var X=xX(K);var F=K.pos;var P=K.arrayView;F=F===void 0?0:F;var H=X===void 0?-1:X;F=F===void 0?0:F;H=H===void 0?-1:H;if(P.totalLength&&H){H<0&&(H=P.totalLength-F);P.focus(F);if(!(F-P.arrayPos+H<=P.arrays[P.arrayIdx].length)){var f=P.arrayIdx,u=P.arrayPos;P.focus(F+H-1);u=new Uint8Array(P.arrayPos+P.arrays[P.arrayIdx].length-u);for(var J=0,Z=f;Z<=P.arrayIdx;Z++)u.set(P.arrays[Z],J),J+=P.arrays[Z].length;P.arrays.splice(f,
P.arrayIdx-f+1,u);P.arrayIdx=0;P.arrayPos=0;P.focus(F)}f=P.arrays[P.arrayIdx];P=new DataView(f.buffer,f.byteOffset+F-P.arrayPos,H)}else P=new DataView(new ArrayBuffer(0));P=new Uint8Array(P.buffer,P.byteOffset,P.byteLength);K.pos+=X;X=P}else X=void 0;X=X?gs4(X):void 0;K=xOM(K,4)?xX(K):void 0;P=I1M[K];if(typeof P==="undefined")throw K=new _.nG("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:K}),_.jF(K),K;return{entityTypeFieldNumber:K,entityType:P,entityId:X}};
_.XF=function(K,X,F){F=F===void 0?0:F;var P=new kOq;if(Esy)K=Esy.encode(K);else{var H=new Uint8Array(Math.ceil(K.length*1.2)),f=bw3(K,H);H.length<f&&(H=new Uint8Array(f),f=bw3(K,H));H.length>f&&(H=H.subarray(0,f));K=H}K!==void 0&&(kX(P,18),H=K.length,kX(P,H),KI(P,H),P.buf.set(K,P.pos),P.pos+=H);K=Kyw[X];if(typeof K==="undefined")throw F=new _.nG("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:X}),_.jF(F),F;K!==void 0&&(kX(P,32),kX(P,K));kX(P,40);kX(P,1);X=new Uint8Array(P.buf.buffer,
P.buf.byteOffset,P.pos);return encodeURIComponent(_.iW(X,F))};
X0O=function(K){K=K.key||K.id;if(!K)throw Error("uf");return K};
P$3=function(K,X){K=K===void 0?{}:K;return FyP(K,X)};
HYT=function(K,X,F,P){if(P===void 0)return P=Object.assign({},K[X]||{}),F=(delete P[F],P),P={},Object.assign({},K,(P[X]=F,P));var H={},f={};return Object.assign({},K,(f[X]=Object.assign({},K[X],(H[F]=P,H)),f))};
srd=function(K,X,F,P,H){var f=K[X];if(f==null||!f[F])return K;P=$Oy(f[F],P,H==="REPEATED_FIELDS_MERGE_OPTION_APPEND");H={};f={};return Object.assign({},K,(f[X]=Object.assign({},K[X],(H[F]=P,H)),f))};
_.FF=function(K,X,F){return K[X]?K[X][F]||null:null};
foM=function(){if(zVq)return zVq();var K={};zVq=bD("PersistentEntityStoreDb",{objectStores:(K.EntityStore={addedAtVersion:1},K.EntityAssociationStore={addedAtVersion:2},K),shared:!1,upgrade:function(X,F){F(1)&&UM(Ra(X,"EntityStore",{keyPath:"key"}),"entityType","entityType");F(2)&&(X=Ra(X,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),UM(X,"byParentEntityKey","parentEntityKey"),UM(X,"byChildEntityKey","childEntityKey"))},
version:3});return zVq()};
DMw=function(K){return _.vm(foM(),K)};
Pv=function(K){return window.Int32Array?new Int32Array(K):Array(K)};
qKl=function(K){return _.vm(uzT(),K)};
JLl=function(K){return new Hv("WRONG_DATA_TYPE",{encoderVersion:K})};
ZY3=function(K){return K instanceof Error?new Hv("UNKNOWN_ENCODE_ERROR",{originalMessage:K.message}):new Hv("UNKNOWN_ENCODE_ERROR")};
YK9=function(K){return K instanceof Error?new Hv("UNKNOWN_DECODE_ERROR",{originalMessage:K.message}):new Hv("UNKNOWN_DECODE_ERROR")};
QrP=function(K,X){K=K instanceof Hv?K:X(K);_.jF(K);throw K;};
MTT=function(K){K=(new TextEncoder).encode(K).subarray(0,16);var X=new Uint8Array(16);X.set(K);return X};
cLq=function(K){var X=n4O[K];if(X)return X;_.yy(new _.nG("Entity model not found.",{entityType:K}))};
_.sz=function(){p0n||(p0n=BZP());return p0n};
BZP=function(){var K,X,F;return _.q(function(P){if(P.nextAddress==1)return _.s2(P,2),_.Y(P,_.EU(),4);if(P.nextAddress!=2){K=P.yieldResult;if(!K||!_.MU()||typeof _.FP.BroadcastChannel==="undefined")return P.return();X=new SK3;return P.return(new zS(K,X))}F=_.qc(P);F instanceof Error&&_.jF(F);return P.return()})};
_.fI=function(K,X){var F;return _.q(function(P){if(P.nextAddress==1){F=K.mutations;if(!F||F.length<=0)return P.return();X&&X.dispatch(_.iY({type:"ENTITY_LOADED",payload:F}));return _.Y(P,o44(F),2)}F.length=0;_.JT(P)})};
o44=function(K){var X;return _.q(function(F){return F.nextAddress==1?_.Y(F,_.sz(),2):(X=F.yieldResult)?_.Y(F,_.DH(X,"readwrite",function(P){for(var H={},f=_.D(K),u=f.next(),J={};!u.done;J={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},u=f.next())J.mutation$jscomp$4=u.value,J.mutation$jscomp$4.entityKey&&LyM(J.mutation$jscomp$4)&&(J.mutationEntityType$jscomp$3=(0,_.T8.getAnyKey)(J.mutation$jscomp$4.payload),u=void 0,J.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(u=function(Z){return function(){return _.TZ9(P,
Z.mutation$jscomp$4.payload[Z.mutationEntityType$jscomp$3],Z.mutationEntityType$jscomp$3)}}(J)),J.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(u=function(Z){return function(){return rLl(P,Z.mutation$jscomp$4.entityKey)}}(J)),J.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(u=function(Z){return function(){return AL3(P,Z.mutation$jscomp$4.entityKey,Z.mutation$jscomp$4.payload[Z.mutationEntityType$jscomp$3],Z.mutationEntityType$jscomp$3)}}(J)),u&&(H[J.mutation$jscomp$4.entityKey]=
H[J.mutation$jscomp$4.entityKey]?H[J.mutation$jscomp$4.entityKey].then(u):u()));
return Rt.all(Object.values(H))}),0):F.return()})};
LyM=function(K){var X;K=(X=K.options)==null?void 0:X.persistenceOption;return K==="ENTITY_PERSISTENCE_OPTION_PERSIST"||K==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
yLl=function(K,X){var F,P;_.q(function(H){if(H.nextAddress==1)return _.Y(H,_.sz(),2);if(H.nextAddress!=3)return(F=H.yieldResult)?_.Y(H,_.DH(F,"readonly",function(f){var u={},J=Object.keys(X).map(function(Z){var M=X[Z]?[].concat(_.LZ(X[Z])):[];return jrd(f,Z,M,u)});
return Rt.all(J).then(function(){return u})}),3):H.return();
P=H.yieldResult;Object.keys(P).length>0&&K.dispatch(w0n(P));_.JT(H)})};
jrd=function(K,X,F,P){return uj(K,X,F).then(function(H){P[X]=zrP(F,H)})};
zrP=function(K,X){if(X.length!==K.length)throw Error("xf");return X.reduce(function(F,P,H){F[K[H]]=P;return F},{})};
uvy=function(K){var X=K.filter(function(H){var f;return(H==null?void 0:(f=H.transferEntity)==null?void 0:f.transferState)==="TRANSFER_STATE_COMPLETE"}).length,F=K.filter(function(H){var f;
return(H==null?void 0:(f=H.transferEntity)==null?void 0:f.transferState)==="TRANSFER_STATE_FAILED"}).length,P=K.filter(function(H){var f;
return(H==null?void 0:(f=H.transferEntity)==null?void 0:f.transferState)&&f_T.includes(H.transferEntity.transferState)});
if(!(X||P!=null&&P.length))return 0;X=_.Df4(P)+X;K=K.length-F;return K===0?0:Math.round(X*100/K)/100};
_.Df4=function(K){var X=[];X=X.concat.apply(X,_.LZ(K.filter(function(f){return f.streamEntity}).map(function(f){var u=Object.assign({},f.streamEntity),J,Z=(J=f.transferEntity)==null?void 0:J.transferState;
u.streamsProgress=u.streamsProgress||[];u.streamsProgress=u.streamsProgress.map(function(M){var n=Object.assign({},M);n.numBytesDownloaded=Z==="TRANSFER_STATE_COMPLETE"?M.numTotalBytes:M.numBytesDownloaded;return n});
return u}).map(function(f){return f.streamsProgress})));
var F=K=0;X=_.D(X);for(var P=X.next();!P.done;P=X.next()){var H=P.value;P=Number(H.numBytesDownloaded);H=Number(H.numTotalBytes);F+=isNaN(P)?0:P;K+=isNaN(H)?0:H}return K===0?0:Math.round(F*100/K)/100};
q_d=function(K){if(!K||!K.expirationTimestamp||!K.action)return!1;var X=(0,_.CG)()/1E3;return Number(K.expirationTimestamp)>=X};
qa=function(K){return K&&K.expirationTimestamp&&K.action?q_d(K)&&K.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.J7=function(K){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(K||"TRANSFER_STATE_UNKNOWN")};
JPy=function(K){var X=new kOq;if(K!==void 0){var F=Math.ceil(Math.log2(K.length*4+2)/7);F=F===void 0?2:F;kX(X,10);X.submessagePosStack.push(X.pos);X.submessagePosStack.push(F);X.pos+=F;KI(X,K.length*1.2);F=bw3(K,X.buf.subarray(X.pos));X.pos+F>X.buf.length&&(KI(X,F),F=bw3(K,X.buf.subarray(X.pos)));X.pos+=F;K=X.submessagePosStack.pop();F=X.submessagePosStack.pop();for(var P=X.pos-F-K;K--;){var H=K?128:0;X.view.setUint8(F++,P&127|H);P>>=7}}X=new Uint8Array(X.buf.buffer,X.buf.byteOffset,X.pos);return(new TextDecoder("utf-8")).decode(X)};
_.ZH=function(K){var X=0;K=_.D(K);for(var F=K.next(),P={};!F.done;P={transferState$jscomp$3:void 0},F=K.next()){var H=F.value,f=void 0;F=(f=H.streamEntity)!=null?f:{};f=void 0;P.transferState$jscomp$3=(f=H.transferEntity)==null?void 0:f.transferState;f=H=void 0;((H=F)==null?0:(f=H.streamsProgress)==null?0:f.length)&&F.streamsProgress.forEach(function(u){return function(J){J=Number(u.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?J.numTotalBytes:J.numBytesDownloaded);isFinite(J)&&(X+=J)}}(P))}return X};
ZTP=function(K){return K.some(function(X){var F;if(!(X==null?0:(F=X.transferEntity)==null?0:F.transferState)){var P;return!(X==null?0:(P=X.policyEntity)==null?0:P.action)||X.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return f_T.includes(X.transferEntity.transferState)})};
Y_w=function(K,X){if(!X)return!1;if(_.S("of_pb_en_po_ks"))return!0;var F;K=(F=_.FF(K,"offlineVideoPolicy",_.XF(X,"offlineVideoPolicy")))!=null?F:void 0;return!!K&&qa(K)};
_.MLn=function(K){var X=["TRANSFER_STATE_COMPLETE"];X=X===void 0?QyP:X;return K.filter(function(F){var P,H;return X.includes((H=(P=F.transferEntity)==null?void 0:P.transferState)!=null?H:"TRANSFER_STATE_UNKNOWN")})};
nww=function(K,X){if(X){var F,P=(F=_.FF(K,"playbackData",_.XF(X,"playbackData")))!=null?F:null,H;F=(H=_.FF(K,"transfer",_.XF(X,"transfer")))!=null?H:null;var f;H=(f=_.FF(K,"offlineVideoStreams",_.XF(X,"offlineVideoStreams")))!=null?f:null;var u;K=(u=_.FF(K,"offlineVideoPolicy",_.XF(X,"offlineVideoPolicy")))!=null?u:null;if(P||F||H||K)return{playbackDataEntity:P,transferEntity:F,streamEntity:H,policyEntity:K}}};
_.Yx=function(K){var X=K.playbackData;if(!X)return[];var F=[];X=_.D(Object.keys(X));for(var P=X.next();!P.done;P=X.next()){var H=P.value;if(!cPn(K,_.I7(H).entityId)&&(P=nww(K,_.I7(H).entityId))){var f=void 0,u=void 0;H=(u=Number((f=_.FF(K,"playbackData",H))==null?void 0:f.streamDownloadTimestampSeconds))!=null?u:(0,_.CG)();F.push({entity:P,streamDownloadTimestamp:H})}}return F.sort(function(J,Z){var M=J.streamDownloadTimestamp,n=Z.streamDownloadTimestamp;return n===M?J.entity.streamEntity&&!Z.entity.streamEntity?
1:-1:n-M}).map(function(J){return J.entity})};
pxq=function(K){return _.MLn(_.Yx(K))};
_.BCl=function(K){return _.Yx(K).filter(function(X){var F;if(((F=X.policyEntity)==null?0:F.action)&&X.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var P;if((P=X.transferEntity)==null?0:P.transferState){var H;return f_T.includes((H=X.transferEntity)==null?void 0:H.transferState)}return!0})};
cPn=function(K,X){var F;return((F=_.FF(K,"downloadStatusEntity",_.XF(X,"downloadStatusEntity")))==null?void 0:F.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
S_y=function(K){var X;if(K==null?0:(X=K.playbackDataEntity)==null?0:X.key)return _.I7(K.playbackDataEntity.key).entityId;var F;if(K==null?0:(F=K.transferEntity)==null?0:F.key)return _.I7(K.transferEntity.key).entityId;var P;if(K==null?0:(P=K.streamEntity)==null?0:P.key)return _.I7(K.streamEntity.key).entityId;var H;if(K==null?0:(H=K.policyEntity)==null?0:H.key)return _.I7(K.policyEntity.key).entityId};
L2y=function(K){var X=new Set,F;K=(F=K.mainDownloadsListEntity)==null?void 0:F[ow9];var P;if(!(K==null?0:(P=K.downloads)==null?0:P.length))return X;var H;K==null||(H=K.downloads)==null||H.forEach(function(f){(f==null?0:f.videoItem)&&X.add(f.videoItem)});
return X};
Q4=function(K,X){if(X){var F=_.FF(K,"mainVideoEntity",_.XF(X,"mainVideoEntity")),P=_.FF(K,"downloadStatusEntity",_.XF(X,"downloadStatusEntity")),H=_.FF(K,"ytMainChannelEntity",_.XF(X,"ytMainChannelEntity")),f={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};K=nww(K,X);P=(P==null?void 0:P.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.S("woffle_render_failed_download_state_ks")&&(P==null?void 0:P.downloadState)==="DOWNLOAD_STATE_FAILED";!K&&P&&(K=f);if(K&&F&&
H)return Object.assign({},{videoEntity:F,channelEntity:H},K)}};
rPP=function(K,X){return TCw(K,X)==="TRANSFER_STATE_COMPLETE"&&Y_w(K,X)};
APd=function(K,X){if(!X)return!1;var F;K=(F=_.FF(K,"playbackData",_.XF(X,"playbackData")))!=null?F:void 0;return!!K&&!!K.playerResponseJson};
TCw=function(K,X){if(!X)return"TRANSFER_STATE_UNKNOWN";var F=_.FF(K,"transfer",_.XF(X,"transfer"));if(F){var P;return(P=F.transferState)!=null?P:"TRANSFER_STATE_UNKNOWN"}F=_.FF(K,"offlineOrchestrationActionWrapperEntity",_.XF(X,"offlineOrchestrationActionWrapperEntity"));K=_.FF(K,"mainVideoEntity",_.XF(X,"mainVideoEntity"));return F||K?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
jyn=function(K,X){if(!X)return"TRANSFER_STATE_UNKNOWN";if(K=_.FF(K,"transfer",_.XF(X,"transfer"))){var F;return(F=K.transferState)!=null?F:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
wxy=function(K,X){return X&&(K=_.FF(K,"videoPlaybackPositionEntity",_.XF(X,"videoPlaybackPositionEntity")),K==null?0:K.lastPlaybackPositionSeconds)?Number(K.lastPlaybackPositionSeconds):0};
W2l=function(K,X){return yP9(K).some(function(F){var P;return(F==null?void 0:(P=F.mainPlaylistEntity)==null?void 0:P.playlistId)===X})};
erl=function(K,X,F){var P=dfd(K,X);if(!P.length)return[];X=[];P=_.D(P);for(var H=P.next();!H.done;H=P.next()){H=H.value;var f=Q4(K,H);F&&TCw(K,H)!=="TRANSFER_STATE_COMPLETE"||f&&X.push(f)}return X};
dfd=function(K,X){if(!X)return[];var F=_.XF(X,"mainPlaylistEntity"),P;X=(P=K.mainPlaylistEntity)==null?void 0:P[F];P=[];if(X==null||!X.videos)return P;X=_.D(X.videos);for(F=X.next();!F.done;F=X.next()){F=F.value;var H=void 0,f=void 0,u=void 0,J=(H=K)==null?void 0:(f=H.mainPlaylistVideoEntity)==null?void 0:(u=f[F])==null?void 0:u.video;J&&(F=_.I7(J).entityId)&&P.push(F)}return P};
RrM=function(K,X){if(X){var F=_.FF(K,"mainPlaylistEntity",_.XF(X,"mainPlaylistEntity")),P=_.FF(K,"mainPlaylistDownloadStateEntity",_.XF(X,"mainPlaylistDownloadStateEntity"));K=_.FF(K,"ytMainChannelEntity",_.XF(X,"ytMainChannelEntity"));if(P&&F)return Object.assign({},{mainPlaylistEntity:F,mainPlaylistDownloadStateEntity:P},!!K&&{channelEntity:K})}};
yP9=function(K){return Ufy(K).sort(function(X,F){return F.addedTimestampMillis-X.addedTimestampMillis}).map(function(X){return X.downloadedPlaylistEntities})};
Ufy=function(K){var X=K.mainPlaylistDownloadStateEntity,F=[];if(!X)return F;for(var P=_.D(Object.keys(X)),H=P.next();!H.done;H=P.next()){var f=H.value;H=RrM(K,_.I7(f).entityId);var u=void 0;f=Number((u=X[f])==null?void 0:u.addedTimestampMillis);u=isNaN(f)?(0,_.CG)():f;H!==void 0&&F.push({downloadedPlaylistEntities:H,addedTimestampMillis:u})}return F};
hrd=function(K){var X,F=(X=K.mainPlaylistVideoEntity)!=null?X:{};return new Set(yP9(K).reduce(function(P,H){P=P===void 0?[]:P;var f,u;H==null||(f=H.mainPlaylistEntity)==null||(u=f.videos)==null||u.forEach(function(J){var Z;(J=(Z=F[J])==null?void 0:Z.video)&&P.push(J)});
return P},[]))};
mf4=function(K){return"downloadedMusicPlaylistEntities"in K};
Ged=function(K){return"mainPlaylistEntity"in K&&"mainPlaylistDownloadStateEntity"in K};
l_y=function(K){return"videoEntity"in K&&"channelEntity"in K};
vwy=function(K){var X=K.musicPlaylistDownloadMetadataEntity,F=[];if(!X)return F;for(var P=_.D(Object.keys(X)),H=P.next();!H.done;H=P.next()){H=H.value;a:{var f=K,u=_.I7(H).entityId;if(u){var J=_.FF(f,"musicPlaylist",_.XF(u,"musicPlaylist"));f=_.FF(f,"musicPlaylistDownloadMetadataEntity",_.XF(u,"musicPlaylistDownloadMetadataEntity"));if(J&&f){J={musicPlaylistEntity:J,musicPlaylistDownloadStateEntity:f};break a}}J=void 0}f=void 0;H=Number((f=X[H])==null?void 0:f.addedTimestampMillis);H=isNaN(H)?(0,_.CG)():
H;J!==void 0&&F.push({downloadedMusicPlaylistEntities:J,addedTimestampMillis:H})}return F};
a_9=function(K){var X=new Set;K=_.D(K);for(var F=K.next();!F.done;F=K.next())if(F=F.value,"musicPlaylistEntity"in F&&"musicPlaylistDownloadStateEntity"in F){F=_.D(F.musicPlaylistEntity.tracks);for(var P=F.next();!P.done;P=F.next())X.add(P.value)}return X};
tLT=function(K,X){if(X){var F=_.FF(K,"musicTrack",_.XF(X,"musicTrack")),P=_.FF(K,"musicArtist",_.XF(X,"musicArtist"))||{};if((K=nww(K,X))&&F&&P)return Object.assign({},{musicTrackEntity:F,musicArtistEntity:P},K)}};
$fM=function(K){var X=K.musicTrackDownloadMetadataEntity,F=[];if(!X)return[];X=_.D(Object.keys(X));for(var P=X.next();!P.done;P=X.next()){var H=P.value;P=tLT(K,_.I7(H).entityId);var f=void 0;H=Number((f=_.FF(K,"musicTrackDownloadMetadataEntity",H))==null?void 0:f.addedTimestampMillis);f=isNaN(H)?(0,_.CG)():H;P!==void 0&&F.push({downloadedMusicEntities:P,addedTimestampMillis:f})}return F};
gwP=function(K,X){if(!X)return[];if(Object.values(OTn).includes(X))return VLy(K,X);X=_.XF(X,"musicPlaylist");var F;K=(F=K.musicPlaylist)==null?void 0:F[X];F=[];if(K==null||!K.tracks)return F;K=_.D(K.tracks);for(X=K.next();!X.done;X=K.next())(X=_.I7(X.value).entityId)&&F.push(X);return F};
VLy=function(K,X){var F=new Set,P=vwy(K).map(function(f){return f.downloadedMusicPlaylistEntities});
P=a_9(P);P=_.D(P);for(var H=P.next();!H.done;H=P.next())(H=_.I7(H.value).entityId)&&F.add(H);return Ewn(K).downloadedMusicEntities.filter(function(f){var u;if((u=f.musicTrackEntity)!=null&&u.videoId){f=f.musicTrackEntity;if(u=X==="PPOM"?!0:!F.has(f.videoId))b:switch(f=f.musicVideoType,X){case "PPSE":u=f==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:u=f!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}f=u}else f=!1;return f}).map(function(f){var u;
return(u=f.musicTrackEntity)==null?void 0:u.videoId})};
Ewn=function(K){var X=$fM(K).sort(function(F,P){return P.addedTimestampMillis-F.addedTimestampMillis}).map(function(F){return"downloadedMusicEntities"in F?F.downloadedMusicEntities:mf4(F)?F.downloadedMusicPlaylistEntities:{}});
K=vwy(K).sort(function(F,P){return P.addedTimestampMillis-F.addedTimestampMillis}).map(function(F){return"downloadedMusicEntities"in F?F.downloadedMusicEntities:mf4(F)?F.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:X,downloadedMusicPlaylistEntities:K}};
C4l=function(K,X){X=_.e8("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?gwP(K,X):dfd(K,X);if(!X.length)return"TRANSFER_STATE_UNKNOWN";X=X.map(function(F){return jyn(K,F)});
return bTl(X)};
bTl=function(K){var X=new Set(K);if(X.has("TRANSFER_STATE_FAILED")&&X.size===1)return"TRANSFER_STATE_FAILED";X.delete("TRANSFER_STATE_FAILED");if(X.has("TRANSFER_STATE_UNKNOWN")&&X.size===1)return"TRANSFER_STATE_PRE_TRANSFER";X.delete("TRANSFER_STATE_UNKNOWN");if(X.has("TRANSFER_STATE_PRE_TRANSFER")&&X.size===1||X.size===0)return"TRANSFER_STATE_PRE_TRANSFER";K=X.has("TRANSFER_STATE_TRANSFERRING");X=X.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return K||X?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
Ma=function(K){var X=K.mainVideoDownloadStateEntity,F=[];if(!X)return[];X=_.D(Object.keys(X));for(var P=X.next();!P.done;P=X.next()){var H=P.value;if(!cPn(K,_.I7(H).entityId)){P=Q4(K,_.I7(H).entityId);var f=void 0,u=void 0;H=(u=Number((f=_.FF(K,"mainVideoDownloadStateEntity",H))==null?void 0:f.addedTimestampMillis))!=null?u:(0,_.CG)();P!==void 0&&F.push({downloadedVideoEntities:P,addedTimestampMillis:H})}}return F};
NCO=function(K){return Ma(K).sort(function(X,F){return F.addedTimestampMillis-X.addedTimestampMillis}).map(function(X){return X.downloadedVideoEntities})};
_.xf4=function(K){var X=hrd(K),F=_.nI(K),P=L2y(K),H=Ma(K).filter(function(u){var J,Z;if((u==null?void 0:(J=u.downloadedVideoEntities)==null?void 0:(Z=J.transferEntity)==null?void 0:Z.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var M,n;u=u==null?void 0:(M=u.downloadedVideoEntities)==null?void 0:(n=M.videoEntity)==null?void 0:n.key;return _.S("kevlar_use_library_entity")?u&&(P.has(u)||F[u]):u&&!X.has(u)}),f=Ufy(K).filter(function(u){return C4l(K,u.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.LZ(H),_.LZ(f)).sort(function(u,J){return J.addedTimestampMillis-u.addedTimestampMillis}).map(function(u){return iTT(u)})};
I_l=function(K,X){if(X&&Y_w(K,X)){var F,P,H=(P=(F=_.FF(K,"playbackData",_.XF(X,"playbackData")))!=null?F:void 0)==null?void 0:P.playerResponseJson;if(H){try{var f=JSON.parse(H);var u=_.FF(K,"transfer",_.XF(X,"transfer")),J=wxy(K,X);J&&(f=Object.assign({},f,{playerConfig:Object.assign({},f.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+J*1E3}}})}));f.cotn=u==null?void 0:u.cotn}catch(Z){}return f}}};
_.XHl=function(K){var X,F,P;K=(P=(F=((X=K.downloadsPageViewConfigurationEntity)!=null?X:{})[keT])==null?void 0:F.smartDownloadsOptInBannerVisibility)!=null?P:{};var H;return(H=_.T(K,KQd))!=null?H:{}};
_.nI=function(K){var X,F,P;K=(P=(F=((X=K.mainDownloadsListEntity)!=null?X:{})[_.FQn])==null?void 0:F.downloads)!=null?P:[];X={};F=_.D(K);for(P=F.next();!P.done;P=F.next())K=void 0,X[(K=P.value.videoItem)!=null?K:""]=!0;return X};
POO=function(K){var X=_.nI(K);if(Object.keys(X).length===0)return!1;var F=K.mainVideoEntity;if(!F)return!0;F=_.D(Object.keys(F));for(var P=F.next();!P.done;P=F.next()){P=P.value;var H=_.I7(P).entityId;if(X[P]&&!cPn(K,H))return!1}return!0};
_.cv=function(K){var X=_.nI(K);return Ma(K).sort(function(F,P){return F.addedTimestampMillis-P.addedTimestampMillis}).map(function(F){return F.downloadedVideoEntities}).filter(function(F){var P;
return(F=F==null?void 0:(P=F.videoEntity)==null?void 0:P.key)&&!!X[F]})};
iTT=function(K){return"downloadedVideoEntities"in K?K.downloadedVideoEntities:"downloadedPlaylistEntities"in K?K.downloadedPlaylistEntities:{}};
HzM=function(K){var X=_.nI(K),F=hrd(K),P=Ma(K).filter(function(H){var f,u;return(H=H==null?void 0:(f=H.downloadedVideoEntities)==null?void 0:(u=f.videoEntity)==null?void 0:u.key)&&!X[H]&&!F.has(H)});
K=Ufy(K);return[].concat(_.LZ(P),_.LZ(K)).sort(function(H,f){return f.addedTimestampMillis-H.addedTimestampMillis}).map(function(H){return iTT(H)})};
_.pI=function(K){if(!_.S("kevlar_use_library_entity"))return HzM(K);var X=Ma(K).filter(function(P){var H,f;if(H=P=P==null?void 0:(H=P.downloadedVideoEntities)==null?void 0:(f=H.videoEntity)==null?void 0:f.key){var u,J,Z;H=((J=(u=K.mainDownloadsListEntity)==null?void 0:u[ow9])==null?0:(Z=J.downloads)==null?0:Z.length)?L2y(K).has(P):!1}return H}),F=Ufy(K);
return[].concat(_.LZ(X),_.LZ(F)).sort(function(P,H){return H.addedTimestampMillis-P.addedTimestampMillis}).map(function(P){return iTT(P)})};
sZT=function(K){var X=_.nI(K),F=hrd(K);return NCO(K).filter(function(P){var H;return(P=P==null?void 0:(H=P.videoEntity)==null?void 0:H.key)&&!X[P]&&!F.has(P)})};
znO=function(K){if(!_.S("kevlar_use_library_entity"))return sZT(K);var X=_.nI(K),F=L2y(K);return NCO(K).filter(function(P){var H;return(P=P==null?void 0:(H=P.videoEntity)==null?void 0:H.key)&&!X[P]&&F.has(P)})};
f6P=function(K,X){X=_.XF(X,"settingEntity");var F,P,H;return!!((H=(P=((F=K.settingEntity)!=null?F:{})[X])==null?void 0:P.settingOptionValue)!=null?H:{}).boolValue};
_.Bv=function(K){var X=_.cv(K);if(ZTP(X))return 0;var F=[];X=_.D(X);for(var P=X.next();!P.done;P=X.next()){P=P.value;var H=void 0,f=void 0;if((H=P)==null?0:(f=H.videoEntity)==null?0:f.key)H=_.I7(P.videoEntity.key).entityId,P=K,H=_.XF(H,"mainVideoDownloadStateEntity"),P=_.FF(P,"mainVideoDownloadStateEntity",H),(P=Number(P==null?void 0:P.addedTimestampMillis))&&F.push(P)}return Math.max.apply(Math,_.LZ(F))};
_.SJ=function(K){return K.ui.richGridMiniMode};
_.oA=function(K){return K.ui.richGridItemsPerRow};
_.D2y=function(K){return K.ui.richGridSlimItemsPerRow};
_.u5O=function(K){return K.ui.guideIsExpanded};
_.LI=function(K){return K.ui.miniplayerIsActive};
_.qHl=function(K){return K.ui.singleOptionSurveyIsActive};
_.TS=function(K){return K.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.JpP=function(K){return K.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.Zzq=function(K){return K.ui.inlinePreviewIsActive};
_.YHq=function(K){return K.ui.inlinePreviewIsEnabled};
_.QZP=function(K){return K.ui.miniplayerPlaybackState};
Mgy=function(K){return K.ui.isOnline};
_.n2l=function(K){return K.ui.frostedGlassMode};
_.rI=function(K,X){return TCw(K.entities,X)};
_.A7=function(K,X){return C4l(K.entities,X)};
cpO=function(K,X){var F;if(X){var P;K=(P=_.FF(K.entities,"offlineVideoPolicy",_.XF(X,"offlineVideoPolicy")))==null?void 0:P.action}else K=void 0;return(F=K)!=null?F:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
pHw=function(K,X){var F;X?(K=_.FF(K.entities,"offlineVideoPolicy",_.XF(X,"offlineVideoPolicy")),K=Number(K==null?void 0:K.expirationTimestamp)):K=void 0;return(F=K)!=null?F:0};
_.B4P=function(K){return _.Yx(K.entities).length};
SHq=function(K,X){return Q4(K.entities,X)};
o29=function(K,X){return RrM(K.entities,X)};
wI=function(K,X){return(K=Q4(K.entities,X))?_.Df4([K]):0};
_.LQd=function(K,X){var F=_.e8("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(F){var P=K.entities;var H=gwP(P,X);if(H.length){var f=[];H=_.D(H);for(var u=H.next();!u.done;u=H.next())(u=tLT(P,u.value))&&f.push(u);P=f}else P=[]}else P=erl(K.entities,X);var J;if(F){var Z=K.entities;X?(X=_.XF(X,"musicPlaylist"),Z=(J=Z.musicPlaylist)==null?void 0:J[X],J=Z!=null&&Z.tracks?Z.tracks.length:0):J=0}else J=K.entities,X?(X=_.XF(X,"mainPlaylistEntity"),J=(Z=J.mainPlaylistEntity)==null?void 0:Z[X],J=J!=null&&J.videos?
J.videos.length:0):J=0;return P.length!==J?0:P?uvy(P):0};
_.T4d=function(K){return K.download.isLeaderTab};
_.rpO=function(K,X,F){if(!X&&F){var P=K.entities;if(F){var H=JPy(F),f,u;X=(u=(f=_.FF(P,"offlineabilityEntity",_.XF(H,"offlineabilityEntity")))==null?void 0:f.addToOfflineButtonState)!=null?u:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else X="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else f=K.entities,X?(u=JPy(X),X=(H=(P=_.FF(f,"offlineabilityEntity",_.XF(u,"offlineabilityEntity")))==null?void 0:P.addToOfflineButtonState)!=null?H:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):X="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return X};
Ap9=function(K,X){K=K.entities;if(X){X=JPy(X);var F,P;X=(P=(F=_.FF(K,"offlineabilityEntity",_.XF(X,"offlineabilityEntity")))==null?void 0:F.addToOfflineButtonState)!=null?P:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else X="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return X};
_.jZ9=function(K){var X=K.entities;K=Mgy(K);var F=f6P(X,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.S("kevlar_modern_downloads_page")&&F)var P=!1;else{var H,f;X=(f=(H=((P=X.downloadsPageViewConfigurationEntity)!=null?P:{})[keT])==null?void 0:H.smartDownloadsOptInBannerVisibility)!=null?f:{};P=K?!!X.visibleWithConnection:!!X.visibleWithoutConnection}return P};
_.wH3=function(K){return f6P(K.entities,"SMART_DOWNLOADS_ENABLED")};
_.ypn=function(K){return POO(K.entities)};
WQl=function(K){return _.cv(K.entities).every(function(X){var F;return(X==null?void 0:(F=X.transferEntity)==null?void 0:F.transferState)&&!f_T.includes(X.transferEntity.transferState)})};
_.d2P=function(K,X){return cPn(K.entities,X)};
enM=function(K,X){if(X){var F,P;K=(P=(F=_.FF(K.entities,"downloadStatusEntity",_.XF(X,"downloadStatusEntity")))==null?void 0:F.downloadState)!=null?P:"DOWNLOAD_STATE_UNKNOWN"}else K="DOWNLOAD_STATE_UNKNOWN";return K};
y4=function(K,X){return wxy(K.entities,X)};
m2q=function(K){K=_.RnM(K);var X=K.hours===void 0?0:K.hours,F=K.minutes===void 0?0:K.minutes,P=K.seconds===void 0?0:K.seconds,H=X>0;K=[];H&&(X=_.U2q(X),K.push(X));X=H;X=X===void 0?!1:X;F=(["af","be","lt"].includes(_.Wv)||X)&&F<10?hnP().format(F):(new Intl.NumberFormat("en-u-nu-latn")).format(F);K.push(F);F=hnP().format(P);K.push(F);F=":";"da fi id si sr sr-Latn".split(" ").includes(_.Wv)&&(F=".");return K.join(F)};
_.RnM=function(K){var X=K.hours||0,F=K.minutes||0,P=K.seconds||0;X=P+F*60+X*3600+(K.days||0)*86400+(K.weeks||0)*604800+(K.months||0)*2629800+(K.years||0)*31557600;if(X<=0)return{hours:0,minutes:0,seconds:0};K=X;X=Math.floor(K/3600);K%=3600;F=Math.floor(K/60);P=Math.floor(K%60);return{hours:X,minutes:F,seconds:P}};
_.U2q=function(K){K=(new Intl.NumberFormat("en-u-nu-latn")).format(K);var X=["fr"],F="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(_.Wv)?K.replace(",","\u00a0"):X.includes(_.Wv)?K.replace(",","\u202f"):F.includes(_.Wv)?K.replace(",","."):K};
hnP=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
GI3=function(K){try{return(new _.dI(5)).format(K)}catch(X){}};
eJ=function(K){return{thumbnailOverlayDownloadingRenderer:{state:K}}};
l63=function(K){if(K=GI3(K))return{thumbnailOverlaySidePanelRenderer:{text:_.bY(K),icon:{iconType:"PLAYLISTS"}}}};
v23=function(){var K=_.uY("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.bY(K),icon:{iconType:"PLAY_ALL"}}}};
a6l=function(K){K=_.RA(K,2);return _.Wv!=="ru"&&_.Wv!=="es_419"&&_.Wv!=="es-419"&&_.Wv!=="es"&&_.Wv!=="es_US"&&_.Wv!=="es-US"&&_.Wv!=="fr"&&_.Wv!=="pl"&&_.Wv!=="it"&&_.Wv!=="nl"&&_.Wv!=="uk"&&_.Wv!=="fr_CA"&&_.Wv!=="fr-CA"||K===""?K:K[0].toLocaleUpperCase()+K.substring(1)};
$2M=function(K){return function(X){var F=K(),P=_.RA(X,F.dateFormat);X=_.RA(X,F.timeFormat);var H=tgP.DATETIMEFORMATS[F.joinerStyle];H=H.replace(/'(?!')/g,"");H=H.replace("{0}",X);H=H.replace("{1}",P);return F.capitalize(H)}};
OzM=function(K){return K?typeof K.seconds==="string"&&(K.nanos===void 0||typeof K.nanos==="number"):!1};
Vgq=function(K){return new Date(Number(K.seconds)*1E3+(K.nanos||0)*1E-6)};
_.RA=function(K,X){if(typeof K.getTime==="function")K={date:K};else if(OzM(K))K={date:Vgq(K)};else if(typeof OzM(K.timestamp)&&typeof K.i18nInternalSecondsEastOfUtc==="number")K={date:Vgq(K.timestamp),timeZone:Uz(-K.i18nInternalSecondsEastOfUtc/60)};else throw Error("yf`"+JSON.stringify(K));var F=K;K=F.date;F=F.timeZone;X=g29(X).format(K,F);_.Wv==="zh-TW"&&(K=F?Number(g29("H").format(K,F)):K.getHours(),X=K<5?X.replace("\u4e0a\u5348","\u51cc\u6668"):K<8?X.replace("\u4e0a\u5348","\u65e9\u4e0a"):K<12?
X.replace("\u4e0a\u5348","\u4e0a\u5348"):K<13?X.replace("\u4e0b\u5348","\u4e2d\u5348"):K<19?X.replace("\u4e0b\u5348","\u4e0b\u5348"):X.replace("\u4e0b\u5348","\u665a\u4e0a"));return X};
g29=function(K){if(E2P.has(K))return E2P.get(K);var X=bzO(K);X=CO9(X);N4P!==!0&&(N4P=!0);iz4=!0;iz4=!1;X=new h7(X,tgP);E2P.set(K,X);return X};
bzO=function(K){return(new h7(K,tgP)).patternParts_.map(function(X){return X.type===0?"'"+X.text+"'":X.text}).join("")};
CO9=function(K){return _.Wv==="en"||_.Wv==="es_US"||_.Wv==="es-US"?K:K.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(X,F,P){return"H".repeat(F.length)+P})};
HpM=function(K,X){x2l||(_.mX=_.I6y,x2l=new kIO);var F=x2l;a:if(K=Kfy(K),X=Kfy(X||new Date),K>X)F=K.getTime()-X.getTime()>6048E5?_.RA(K,1):Xh4(K);else{for(var P=0;Ff3(K,12*(P+1))<X;)++P;if(P>0)F=F.format(-P,0);else{for(P=0;Ff3(K,P+1)<X;)++P;if(P>0)F=F.format(-P,2);else{K=X.getTime()-K.getTime();X=_.D(PmP);for(P=X.next();!P.done;P=X.next()){P=P.value;var H=P.unit,f=Math.floor(K/P.unitDuration);if(f>=(P.threshold===void 0?1:P.threshold)){F=F.format(-f,H);break a}}F=F.format(-0,7)}}}return F};
Kfy=function(K){if(typeof K.getTime==="function")return K;if(OzM(K))return Vgq(K);throw Error("zf`"+JSON.stringify(K));};
Ff3=function(K,X){for(var F=0,P;;++F)if(P=new Date(K.getFullYear(),K.getMonth()+X,K.getDate()-F,K.getHours(),K.getMinutes(),K.getSeconds()),P.getMonth()===(K.getMonth()+X)%12)return P};
_.GS=function(K){return{runs:[{text:K}]}};
_.lj=function(K){if(K&&K.simpleText)return K.simpleText;var X="";if(K&&K.runs)for(var F=0;F<K.runs.length;F++)K.runs[F].text&&(X+=K.runs[F].text);return X};
z6l=function(K,X,F,P){return K.videoEntity&&!K.policyEntity&&F!=="DOWNLOAD_STATE_FAILED"?[eJ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:qa(K.policyEntity)&&X!=="TRANSFER_STATE_FAILED"&&X!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?X==="TRANSFER_STATE_PAUSED_BY_USER"?[eJ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.J7(X)?[eJ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:K.videoEntity.lengthSeconds?sEy(K.videoEntity.lengthSeconds,P):[]:
[eJ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
sEy=function(K,X){var F=[{thumbnailOverlayTimeStatusRenderer:{text:_.bY(m2q({seconds:K})),style:"DEFAULT"}}];X&&(K=X<=0||K<=0?0:X>=K?100:Math.ceil(X*100/K),K>0&&F.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:K}}));return F};
fgy=function(K,X,F,P,H){if(X==="TRANSFER_STATE_UNKNOWN"||!K)return{};if(_.J7(X)||X==="TRANSFER_STATE_PRE_TRANSFER")var f=[eJ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var u,J;if(X==="TRANSFER_STATE_COMPLETE"&&((u=K.mainPlaylistEntity)==null?0:(J=u.videos)==null?0:J.length)){if(_.S("web_modern_collections_v2")){var Z;var M=(f=K.mainPlaylistEntity)==null?void 0:(Z=f.videos)==null?void 0:Z.length;f=(f=GI3(M))?{thumbnailOverlayBottomPanelRenderer:{text:_.bY(f),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var n;f=l63((M=K.mainPlaylistEntity)==null?void 0:(n=M.videos)==null?void 0:n.length)}var c;f=[v23(),Object.assign({},(c=f)!=null?c:{})]}else f=[]}c=f;a:if(X==="TRANSFER_STATE_PRE_TRANSFER")F=Cl(_.uY("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(X==="TRANSFER_STATE_TRANSFER_IN_QUEUE")F=Cl(_.uY("WAITING_TO_DOWNLOAD"));else if(_.J7(X))F=Math.floor(F*100).toString(),F=Cl(_.uY("DOWNLOADING_PERCENT",{percent:F},"Downloading... "+F+"%"));else{if(P&&(_.S("playlist_is_offline_selector_killswitch")&&
(H=_.i9().resolve(_.lU).isNetworkAvailable()),H)){F=tqO(_.uY("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),vs9(P));break a}F=void 0}X=X==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.uY("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},c.length?{thumbnailOverlays:c}:{},F?{viewPlaylistText:F}:{viewPlaylistText:_.GS("")},X.length?{badges:X}:{})};
DAl=function(K,X,F,P,H,f){if(X==="TRANSFER_STATE_UNKNOWN"||!K)return{};if(P==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var u=z6l(K,X,P);if(K.videoEntity&&!K.policyEntity&&P!=="DOWNLOAD_STATE_FAILED"){var J=_.uY("WAITING_TO_DOWNLOAD");if(J)return{shortViewCountText:_.GS(J),publishedTimeText:void 0,thumbnailOverlays:u}}if(!qa(K.policyEntity)){f=K.policyEntity&&!q_d(K.policyEntity)?_.uY("DOWNLOAD_EXPIRED",{},"Download expired"):
_.uY("TRANSFER_FAILED",{},"Download failed");var Z;if((Z=K.policyEntity)==null?0:Z.shortMessageForDisabledAction)f=K.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:Cl(f),publishedTimeText:void 0,thumbnailOverlays:u}}if(X==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.GS(_.uY("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:u};if(X==="TRANSFER_STATE_FAILED"||X==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.GS(_.uY("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:u};if(X==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(Z=_.uY("WAITING_TO_DOWNLOAD"),P==="DOWNLOAD_STATE_PAUSED"&&(Z=_.uY("DOWNLOAD_PAUSED",{},"Download paused")),Z))return{shortViewCountText:_.GS(Z),publishedTimeText:void 0,thumbnailOverlays:u};if(_.J7(X))return K=Math.floor(F*100).toString(),{shortViewCountText:_.GS(_.uY("DOWNLOADING_PERCENT",{percent:K},"Downloading... "+K+"%")),publishedTimeText:void 0,thumbnailOverlays:u};X=void 0;K.videoEntity.publishedTimestampMillis&&
(X=new Date,H&&(X=new Date(H)),X=Cl(HpM(new Date(Number(K.videoEntity.publishedTimestampMillis)),X)));H=[];_.S("kevlar_woffle_badge_killswitch")||(H=[{metadataBadgeRenderer:{label:_.uY("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var M;K=Cl((M=K.videoEntity.localizedStrings)==null?void 0:M.viewCount);return Object.assign({},f?{shortViewCountText:void 0}:{shortViewCountText:K},f?{}:{publishedTimeText:X},{badges:H,thumbnailOverlays:u})};
qLl=function(K,X){K=K===void 0?uTM:K;switch(X.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:X.payload.playlistId,inviteLinkURL:X.payload.inviteLinkUrl};default:return K}};
ZpO=function(K,X){K=K===void 0?JWq:K;switch(X.type){case "SET_CURRENT_FORM_ID":return X=X.payload.formId,K.currentFormId===X?K:{currentFormId:X,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var F=X.payload;X=F.groupId;F=F.command;if(K.currentFormId){var P=Object.assign({},K.commandsMap);P[X]=F;K=Object.assign({},K,{commandsMap:P})}return K;case "RESET_COMMAND_MAP":return Object.assign({},K,{commandsMap:{}});default:return K}};
QEl=function(K,X){K=K===void 0?YL9:K;switch(X.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},K,{guideIsExpanded:X.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},K,{scrollAtTop:X.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},K,{guideIsVisibleButNotPersistent:X.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},K,{miniplayerIsActive:X.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},K,{singleOptionSurveyIsActive:X.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},K,{slimlineSurveyRatingSelectedIndex:X.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},K,{richGridMiniMode:X.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},K,{richGridItemsPerRow:X.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},K,{richGridSlimItemsPerRow:X.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},K,{richGridContainerWidth:X.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},K,{richGridStyle:X.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},K,{currentPageType:X.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},K,{inlinePreviewIsActive:X.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},K,{inlinePreviewIsEnabled:X.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},K,{darkModeIsEnabled:X.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
K,{miniplayerPlaybackState:X.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},K,{tabGesturesIsActive:X.payload});case "SET_ONLINE_STATUS":return Object.assign({},K,{isOnline:X.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},K,{chipBarIsSticky:X.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},K,{frostedGlassMode:X.payload});default:return K}};
nll=function(K,X){K=K===void 0?M7O:K;switch(X.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},K,{transcription:X.payload});case "SET_OVERLAY_STATE":return Object.assign({},K,{overlay:X.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return K}};
jEO=function(){return zY(Object.assign({},{continuation:cW9,entities:P$3,download:phO,reportChannelAbuse:BzM,share:SL9,talkToRecs:oll,ui:QEl,voiceSearch:nll,watch:LfT,ypc:Tzw,shorts:rW4,radioButtonGroup:ZpO,collabInviteLink:qLl},AWP))};
Wf4=function(){return _.S("web_player_entities_middleware")?new vv(jEO(),[whP,yWy]):new vv(jEO(),[whP])};
_.aA=function(){dAP||(dAP=Wf4());return dAP};
e6q=function(K,X,F){if(K.length)return{titleText:_.bY(X!=null?X:_.uY("DOWNLOADS",void 0,"Downloads")),contents:K.map(function(P){var H=P.videoEntity;P={videoId:H.videoId,title:Cl(H.title),shortBylineText:Cl(P.channelEntity.title),thumbnail:H.thumbnail};var f=H.videoId?y4(_.aA().getState(),H.videoId):0;H.videoId&&F?P.navigationEndpoint=_.Es(H.videoId,F,void 0,void 0,f):H.videoId&&(P.navigationEndpoint=l1d(H.videoId,f,H.lengthSeconds));H.lengthSeconds&&(P.thumbnailOverlays=sEy(H.lengthSeconds,f));return{playlistPanelVideoRenderer:P}}),
totalVideos:K.length}};
R6T=function(K){return(K=(0,_.T8.getValueByKeys)(K,"playlistId"))?{playlistId:K}:null};
UAP=function(){return{}};
h6T=function(K,X){return new _.fL(function(F,P){K.then(function(H){if(H){if(H=X(H))return F(H);P()}},P)})};
mA4=function(K){var X,F,P,H=(X=K.contents)==null?void 0:(F=X.twoColumnWatchNextResults)==null?void 0:(P=F.autoplay)==null?void 0:P.autoplay,f,u,J;X=(f=K.contents)==null?void 0:(u=f.twoColumnWatchNextResults)==null?void 0:(J=u.playlist)==null?void 0:J.playlist;return H&&X&&X.playlistId?{rawResponse:K,autoplayRenderer:H,playlistPanelRenderer:X,playlistId:X.playlistId}:null};
lgn=function(K){var X=X===void 0?"UNKNOWN_INTERFACE":X;if(K.length===1)return K[0];var F=GCd[X];if(F){F=new RegExp(F);for(var P=_.D(K),H=P.next();!H.done;H=P.next())if(H=H.value,F.exec(H))return H}var f=[];Object.entries(GCd).forEach(function(u){var J=_.D(u);u=J.next().value;J=J.next().value;X!==u&&f.push(J)});
F=new RegExp(f.join("|"));K.sort(function(u,J){return u.length-J.length});
P=_.D(K);for(H=P.next();!H.done;H=P.next())if(H=H.value,!F.exec(H))return H;return K[0]};
_.t7=function(K){return"/youtubei/v1/"+lgn(K)};
_.$x=function(K){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:K}}}}};
_.Oz=function(K){return _.$x(_.GS(K))};
vlw=function(K,X){var F={mode:"NORMAL"};K&&(F.autoplayVideo=K.navigationEndpoint,F.nextButtonVideo=K.navigationEndpoint);X&&(F.previousButtonVideo=X.navigationEndpoint);return F};
$AO=function(K,X,F){if(!F||!F.sets)return{sets:[vlw(K,X)]};var P=F.sets.find(function(u){return u.mode==="NORMAL"}),H=(0,_.T8.unsafeClone)(F);
if(!P)return H.sets.push(vlw(K,X)),H;if(!K)return F;P=_.T8.getValueByKeys.apply(null,[P].concat(_.LZ(agd)));var f=_.T8.getValueByKeys.apply(null,[K].concat(_.LZ(t74)));if(P===f)return F;H.sets=H.sets.filter(function(u){return u.mode!=="NORMAL"});
H.sets.push(vlw(K,X));return H};
Opq=function(K){return!!K.playlistPanelVideoRenderer&&!K.playlistPanelVideoRenderer.unplayableText};
V74=function(K){return!!K.playlistPanelVideoRenderer&&!!K.playlistPanelVideoRenderer.title};
glP=function(K,X){if(X.contents&&!(K>=X.contents.length)&&(K=X.contents.slice(K).find(Opq)))return K.playlistPanelVideoRenderer};
ElM=function(K,X){if(X.contents)return(X=X.contents.find(function(F){return!!F.playlistPanelVideoRenderer&&F.playlistPanelVideoRenderer.videoId===K}))?X.playlistPanelVideoRenderer:void 0};
bpy=function(K,X){return X.contents?X.contents.findIndex(function(F){return!!F.playlistPanelVideoRenderer&&F.playlistPanelVideoRenderer.videoId===K}):-1};
Cmq=function(K,X){return X.contents?X.contents.findIndex(function(F){return!!F.playlistPanelVideoRenderer&&F.playlistPanelVideoRenderer.playlistSetVideoId===K}):-1};
Nzw=function(K,X){K.contents&&X!==-1&&K.contents.splice(X,1).length===1&&K.totalVideos!==void 0&&(--K.totalVideos,delete K.videoCountText)};
_.ipw=function(K){var X=[];if(!K||!K.contents)return X;K=_.D(K.contents);for(var F=K.next();!F.done;F=K.next())F=F.value,F.playlistPanelVideoRenderer&&F.playlistPanelVideoRenderer.videoId&&X.push(F.playlistPanelVideoRenderer.videoId);return X};
_.xAM=function(K){if(K&&K.contents)return(K=K.contents.find(function(X){return!!X.playlistPanelVideoRenderer&&!!X.playlistPanelVideoRenderer.selected})||K.contents[K.currentIndex])?K.playlistPanelVideoRenderer:void 0};
Igl=function(K,X,F,P,H,f,u){H=H===void 0?!1:H;f=f===void 0?!1:f;u=u===void 0?!1:u;if(K.contents&&K.contents.length!==0){P&&(K.contents=K.contents.filter(P));P=K.contents.length;for(var J=0;J<P;J++){var Z=K.contents[J].playlistPanelVideoRenderer;Z&&(J===X?(f&&delete Z.menu,Z.indexText=_.GS("\u25b6")):H||K.isInfinite||Z.indexText===void 0?delete Z.indexText:Z.indexText=_.GS((J+1+F).toString()))}K.currentIndex=X+F;u&&(delete K.videoCountText,K.totalVideos=P)}};
_.V4=function(K){K=kCT(K);if(K){var X=K.length;var F=-19%X;F<0&&(F=X+F);K=K.slice(X-F)+K.slice(0,X-F)}else K="";F="";for(X=0;X<K.length&&K[X]!==Ki9;X++)F+=K[X];return F};
_.XU4=function(K,X){var F=document.body;X=X===void 0?function(J){return J}:X;
var P,H=null;K=_.D(K);for(P=K.next();!P.done;P=K.next()){var f=P.value;P=void 0;var u=(P=f[2])!=null?P:"div";P=document.createElement(u);H||(H=P);u=f[0];f=f[1];u&&(P.id=X(u));if(f)for(f=_.D(f),u=f.next();!u.done;u=f.next())P.classList.add(X(u.value));F.appendChild(P);F=P}return[H,F]};
Fi9=function(K,X){for(var F="",P=0;P<X;P++)F+=K.charAt(Math.floor(Math.random()*K.length));return F};
gI=function(K){return Fi9("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",K)};
Ez=function(K){return Fi9("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",K)};
bj=function(K){return Fi9("0123456789",K)};
CI=function(){var K=performance.now(),X=new Date;var F="2."+X.getFullYear()+String(X.getMonth()+1).padStart(2,"0")+String(X.getDate()).padStart(2,"0");for(var P,H=Math.floor(Math.random()*11)+15,f=[],u=0;u<H;u++)f.push(Math.floor(Math.random()*26476865)+24547720);P=f.join(",");var J=gI(10),Z=gI(100),M=gI(102),n=gI(106),c=gI(108),B=gI(11),L=gI(1140),A=gI(123),d=gI(14),R=gI(16),l=gI(1900),a=gI(23),E=gI(26),V=gI(34),x=gI(397),N=gI(44),Dl=gI(5),Mq=gI(72),pO=gI(74),y9=gI(75),Wy=gI(88),eP=gI(91),gw="rr2---sn-q4fl6nss rr3---sn-q4fl6n6z rr1---sn-q4flrnez rr5---sn-aigl6n6s rr2---sn-q4flrnel rr2---sn-q4flrnle rr1---sn-q4fl6nzy rr4---sn-q4flrnl7 rr5---sn-q4flrney rr3---sn-aigl6nl7 rr2---sn-q4flrnee rr4---sn-q4fl6nsl rr2---sn-5hnednss rr1---sn-q4fl6ns6 rr3---sn-q4fl6n6y rr1---sn-q4fzen7e rr3---sn-q4fzen7y rr2---sn-q4flrner rr3---sn-q4fl6nds rr3---sn-5hnekn7k".split(" ");
var a3=gw[Math.floor(Math.random()*gw.length)];var dL=(new Date("2010-01-01")).getTime();var nt=(new Date(dL+Math.random()*((new Date).getTime()-dL))).toISOString().split("T")[0];for(var ht,YC=[],uu=0;uu<4;uu++)YC.push(Math.floor(Math.random()*100));ht=YC.join(".");var X8=Number(bj(5)),qV=Number(bj(6)),J0=Number(bj(7)),yd=Number(bj(9)),uT=bj(1),SU=bj(10),RC=bj(16),tw=bj(19),TE=bj(2),NV=bj(20),$E=bj(21),bu=bj(3),sZ=bj(4),tt=bj(5),BF=bj(6),BN=bj(7),wL=bj(8),Zd=bj(9);var fs=Fi9("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var ft=[Ez(5),Ez(5),Ez(5)].join("%2C"),Bk=[bj(3),bj(5),bj(5)].join("%2C"),z6=Ez(0),OZ=Ez(1),TJ=Ez(10),x5=Ez(108),fx=Ez(11),qu=Ez(12),jO=Ez(13),LG=Ez(14),JV=Ez(15),to=Ez(16),fl=Ez(17),LO=Ez(18),Gn=Ez(19),$d=Ez(2),nW=Ez(20),sV=Ez(22),WJ=Ez(23),Y5=Ez(24),cN=Ez(266),MV=Ez(3),Sk=Ez(30),Zs=Ez(34),zE=Ez(35),B$=Ez(36),Ms=Ez(4),h0=Ez(40),SO=Ez(43),uU=Ez(47),dq=Ez(5),V9=Ez(6),Dd=Ez(7),Ds=Ez(75),Kx=Ez(8),wE=Ez(80),$i=Ez(9),dj="https://www."+Ez(12)+".com",Y_={},Qg={},Q0={},bt4={},Mr={},aH={},t$={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:P}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:F},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+Ez(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:F},{key:"client.name",value:"WEB"},{key:"client.fexp",value:P}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:$E+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+Ez(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:h0,ypcGetOfflineUpsellEndpoint:{params:wE}},trackingParams:zE+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+a3+".googlevideo.com/videoplayback?expire="+SU+"&ei="+a+"&ip="+ht+"&id=o-AF"+SO+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+Bk+"&mn="+ft+"&ms="+ft+"&mv="+OZ+"&mvi="+uT+"&pl="+TE+"&initcwndbps="+BN+"&siu="+uT+"&spc="+N+"&vprv="+uT+"&svpuc="+uT+"&mime=video%2Fmp4&ns="+Y5+"&cnr="+TE+"&ratebypass=yes&dur="+wL+"&lmt="+RC+"&mt="+SU+"&fvip=3&c=WEB&txp="+BN+"&n="+R+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:qV,width:640,height:360,lastModified:RC,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:BN,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+a3+".googlevideo.com/videoplayback?expire="+SU+"&ei="+a+"&ip="+ht+"&id=o-AF"+SO+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+Bk+"&mn="+
ft+"&ms="+ft+"&mv="+OZ+"&mvi="+uT+"&pl="+TE+"&initcwndbps="+BN+"&siu="+uT+"&spc="+N+"&vprv="+uT+"&svpuc="+uT+"&mime=video%2Fmp4&ns="+Y5+"&cnr="+TE+"&ratebypass=yes&dur="+wL+"&lmt="+RC+"&mt="+SU+"&fvip=3&c=WEB&txp="+BN+"&n="+R+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+x5+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:qV,width:1280,
height:720,lastModified:RC,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:BN,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+a3+".googlevideo.com/videoplayback?expire="+SU+"&ei="+a+"&ip="+ht+"&id=o-AF"+SO+"&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="+Bk+"&mn="+ft+"&ms="+
ft+"&mv="+OZ+"&mvi="+uT+"&pl="+TE+"&initcwndbps="+BN+"&siu="+uT+"&spc="+N+"&vprv="+uT+"&svpuc="+uT+"&mime=video%2Fmp4&ns="+Y5+"&gir="+MV+"&clen="+Zd+"&dur="+wL+"&lmt="+RC+"&mt="+SU+"&fvip=3&keepalive="+MV+"&c=WEB&txp="+BN+"&n="+to+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:J0,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:bu,end:sZ},lastModified:RC,contentLength:Zd,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:J0,approxDurationMs:BN},{itag:248,url:"https://"+a3+".googlevideo.com/videoplayback?expire="+SU+"&ei="+a+"&ip="+ht+"&id=o-AF"+SO+"&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="+Bk+"&mn="+ft+"&ms="+ft+"&mv="+
OZ+"&mvi="+uT+"&pl="+TE+"&initcwndbps="+BN+"&siu="+uT+"&spc="+N+"&vprv="+uT+"&svpuc="+uT+"&mime=video%2Fwebm&ns="+Y5+"&gir="+MV+"&clen="+Zd+"&dur="+wL+"&lmt="+RC+"&mt="+SU+"&fvip=3&keepalive="+MV+"&c=WEB&txp="+BN+"&n="+to+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/webm; codecs="vp9"',bitrate:J0,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:bu,end:sZ},lastModified:RC,contentLength:Zd,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:J0,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:BN},{itag:399,url:"https://"+a3+".googlevideo.com/videoplayback?expire="+SU+"&ei="+a+"&ip="+ht+"&id=o-AF"+SO+"&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="+
Bk+"&mn="+ft+"&ms="+ft+"&mv="+OZ+"&mvi="+uT+"&pl="+TE+"&initcwndbps="+BN+"&siu="+uT+"&spc="+N+"&vprv="+uT+"&svpuc="+uT+"&mime=video%2Fmp4&ns="+Y5+"&gir="+MV+"&clen="+Zd+"&dur="+wL+"&lmt="+RC+"&mt="+SU+"&fvip=3&keepalive="+MV+"&c=WEB&txp="+BN+"&n="+to+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:J0,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:bu,end:sZ},lastModified:RC,contentLength:Zd,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:J0,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:BN},{itag:136,url:"https://"+a3+".googlevideo.com/videoplayback?expire="+SU+"&ei="+a+"&ip="+ht+"&id=o-AF"+SO+"&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="+
Bk+"&mn="+ft+"&ms="+ft+"&mv="+OZ+"&mvi="+uT+"&pl="+TE+"&initcwndbps="+BN+"&siu="+uT+"&spc="+N+"&vprv="+uT+"&svpuc="+uT+"&mime=video%2Fmp4&ns="+Y5+"&gir="+MV+"&clen="+Zd+"&dur="+wL+"&lmt="+RC+"&mt="+SU+"&fvip=3&keepalive="+MV+"&c=WEB&txp="+BN+"&n="+to+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:J0,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:bu,end:sZ},lastModified:RC,contentLength:Zd,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:qV,approxDurationMs:BN},{itag:247,url:"https://"+a3+".googlevideo.com/videoplayback?expire="+SU+"&ei="+a+"&ip="+ht+"&id=o-AF"+SO+"&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="+Bk+"&mn="+
ft+"&ms="+ft+"&mv="+OZ+"&mvi="+uT+"&pl="+TE+"&initcwndbps="+BN+"&siu="+uT+"&spc="+N+"&vprv="+uT+"&svpuc="+uT+"&mime=video%2Fwebm&ns="+Y5+"&gir="+MV+"&clen="+Zd+"&dur="+wL+"&lmt="+RC+"&mt="+SU+"&fvip=3&keepalive="+MV+"&c=WEB&txp="+BN+"&n="+to+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/webm; codecs="vp9"',bitrate:J0,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:bu,end:sZ},lastModified:RC,contentLength:Zd,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:qV,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:BN},{itag:398,url:"https://"+a3+".googlevideo.com/videoplayback?expire="+SU+"&ei="+a+"&ip="+ht+"&id=o-AF"+SO+"&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="+
Bk+"&mn="+ft+"&ms="+ft+"&mv="+OZ+"&mvi="+uT+"&pl="+TE+"&initcwndbps="+BN+"&siu="+uT+"&spc="+N+"&vprv="+uT+"&svpuc="+uT+"&mime=video%2Fmp4&ns="+Y5+"&gir="+MV+"&clen="+Zd+"&dur="+wL+"&lmt="+RC+"&mt="+SU+"&fvip=3&keepalive="+MV+"&c=WEB&txp="+BN+"&n="+to+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:J0,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:bu,end:sZ},lastModified:RC,contentLength:Zd,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:qV,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:BN},{itag:135,url:"https://"+a3+".googlevideo.com/videoplayback?expire="+SU+"&ei="+a+"&ip="+ht+"&id=o-AF"+SO+"&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="+
Bk+"&mn="+ft+"&ms="+ft+"&mv="+OZ+"&mvi="+uT+"&pl="+TE+"&initcwndbps="+BN+"&siu="+uT+"&spc="+N+"&vprv="+uT+"&svpuc="+uT+"&mime=video%2Fmp4&ns="+Y5+"&gir="+MV+"&clen="+wL+"&dur="+wL+"&lmt="+RC+"&mt="+SU+"&fvip=3&keepalive="+MV+"&c=WEB&txp="+BN+"&n="+to+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:qV,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:bu,end:sZ},lastModified:RC,contentLength:wL,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:qV,approxDurationMs:BN},{itag:244,url:"https://"+a3+".googlevideo.com/videoplayback?expire="+SU+"&ei="+a+"&ip="+ht+"&id=o-AF"+SO+"&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="+Bk+"&mn="+
ft+"&ms="+ft+"&mv="+OZ+"&mvi="+uT+"&pl="+TE+"&initcwndbps="+BN+"&siu="+uT+"&spc="+N+"&vprv="+uT+"&svpuc="+uT+"&mime=video%2Fwebm&ns="+Y5+"&gir="+MV+"&clen="+wL+"&dur="+wL+"&lmt="+RC+"&mt="+SU+"&fvip=3&keepalive="+MV+"&c=WEB&txp="+BN+"&n="+to+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x5+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/webm; codecs="vp9"',bitrate:qV,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:bu,end:sZ},lastModified:RC,contentLength:wL,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:qV,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:BN},{itag:397,url:"https://"+a3+".googlevideo.com/videoplayback?expire="+SU+"&ei="+a+"&ip="+ht+"&id=o-AF"+SO+"&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="+
Bk+"&mn="+ft+"&ms="+ft+"&mv="+OZ+"&mvi="+uT+"&pl="+TE+"&initcwndbps="+BN+"&siu="+uT+"&spc="+N+"&vprv="+uT+"&svpuc="+uT+"&mime=video%2Fmp4&ns="+Y5+"&gir="+MV+"&clen="+wL+"&dur="+wL+"&lmt="+RC+"&mt="+SU+"&fvip=3&keepalive="+MV+"&c=WEB&txp="+BN+"&n="+to+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:qV,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:bu,end:sZ},lastModified:RC,contentLength:wL,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:qV,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:BN},{itag:134,url:"https://"+a3+".googlevideo.com/videoplayback?expire="+SU+"&ei="+a+"&ip="+ht+"&id=o-AF"+SO+"&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="+
Bk+"&mn="+ft+"&ms="+ft+"&mv="+OZ+"&mvi="+uT+"&pl="+TE+"&initcwndbps="+BN+"&siu="+uT+"&spc="+N+"&vprv="+uT+"&svpuc="+uT+"&mime=video%2Fmp4&ns="+Y5+"&gir="+MV+"&clen="+wL+"&dur="+wL+"&lmt="+RC+"&mt="+SU+"&fvip=3&keepalive="+MV+"&c=WEB&txp="+BN+"&n="+to+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:qV,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:bu,end:sZ},lastModified:RC,contentLength:wL,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:qV,highReplication:!0,approxDurationMs:BN},{itag:243,url:"https://"+a3+".googlevideo.com/videoplayback?expire="+SU+"&ei="+a+"&ip="+ht+"&id=o-AF"+SO+"&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="+
Bk+"&mn="+ft+"&ms="+ft+"&mv="+OZ+"&mvi="+uT+"&pl="+TE+"&initcwndbps="+BN+"&siu="+uT+"&spc="+N+"&vprv="+uT+"&svpuc="+uT+"&mime=video%2Fwebm&ns="+Y5+"&gir="+MV+"&clen="+wL+"&dur="+wL+"&lmt="+RC+"&mt="+SU+"&fvip=3&keepalive="+MV+"&c=WEB&txp="+BN+"&n="+to+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/webm; codecs="vp9"',bitrate:qV,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:bu,end:sZ},lastModified:RC,contentLength:wL,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:qV,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:BN},{itag:396,url:"https://"+a3+".googlevideo.com/videoplayback?expire="+SU+"&ei="+a+"&ip="+ht+"&id=o-AF"+SO+"&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="+
Bk+"&mn="+ft+"&ms="+ft+"&mv="+OZ+"&mvi="+uT+"&pl="+TE+"&initcwndbps="+BN+"&siu="+uT+"&spc="+N+"&vprv="+uT+"&svpuc="+uT+"&mime=video%2Fmp4&ns="+Y5+"&gir="+MV+"&clen="+wL+"&dur="+wL+"&lmt="+RC+"&mt="+SU+"&fvip=3&keepalive="+MV+"&c=WEB&txp="+BN+"&n="+to+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:qV,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:bu,end:sZ},lastModified:RC,contentLength:wL,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:qV,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:BN},{itag:133,url:"https://"+a3+".googlevideo.com/videoplayback?expire="+SU+"&ei="+a+"&ip="+ht+"&id=o-AF"+SO+"&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="+
Bk+"&mn="+ft+"&ms="+ft+"&mv="+OZ+"&mvi="+uT+"&pl="+TE+"&initcwndbps="+BN+"&siu="+uT+"&spc="+N+"&vprv="+uT+"&svpuc="+uT+"&mime=video%2Fmp4&ns="+Y5+"&gir="+MV+"&clen="+wL+"&dur="+wL+"&lmt="+RC+"&mt="+SU+"&fvip=3&keepalive="+MV+"&c=WEB&txp="+BN+"&n="+to+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:qV,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:bu,end:sZ},lastModified:RC,contentLength:wL,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:qV,approxDurationMs:BN},{itag:242,url:"https://"+a3+".googlevideo.com/videoplayback?expire="+SU+"&ei="+a+"&ip="+ht+"&id=o-AF"+SO+"&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="+Bk+"&mn="+
ft+"&ms="+ft+"&mv="+OZ+"&mvi="+uT+"&pl="+TE+"&initcwndbps="+BN+"&siu="+uT+"&spc="+N+"&vprv="+uT+"&svpuc="+uT+"&mime=video%2Fwebm&ns="+Y5+"&gir="+MV+"&clen="+wL+"&dur="+wL+"&lmt="+RC+"&mt="+SU+"&fvip=3&keepalive="+MV+"&c=WEB&txp="+BN+"&n="+to+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/webm; codecs="vp9"',bitrate:qV,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:bu,end:sZ},lastModified:RC,contentLength:wL,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:qV,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:BN},{itag:395,url:"https://"+a3+".googlevideo.com/videoplayback?expire="+SU+"&ei="+a+"&ip="+ht+"&id=o-AF"+SO+"&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="+
Bk+"&mn="+ft+"&ms="+ft+"&mv="+OZ+"&mvi="+uT+"&pl="+TE+"&initcwndbps="+BN+"&siu="+uT+"&spc="+N+"&vprv="+uT+"&svpuc="+uT+"&mime=video%2Fmp4&ns="+Y5+"&gir="+MV+"&clen="+wL+"&dur="+wL+"&lmt="+RC+"&mt="+SU+"&fvip=3&keepalive="+MV+"&c=WEB&txp="+BN+"&n="+to+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:qV,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:bu,end:sZ},lastModified:RC,contentLength:wL,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:qV,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:BN},{itag:160,url:"https://"+a3+".googlevideo.com/videoplayback?expire="+SU+"&ei="+a+"&ip="+ht+"&id=o-AF"+SO+"&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="+
Bk+"&mn="+ft+"&ms="+ft+"&mv="+OZ+"&mvi="+uT+"&pl="+TE+"&initcwndbps="+BN+"&siu="+uT+"&spc="+N+"&vprv="+uT+"&svpuc="+uT+"&mime=video%2Fmp4&ns="+Y5+"&gir="+MV+"&clen="+wL+"&dur="+wL+"&lmt="+RC+"&mt="+SU+"&fvip=3&keepalive="+MV+"&c=WEB&txp="+BN+"&n="+to+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:qV,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:bu,end:sZ},lastModified:RC,contentLength:wL,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:X8,approxDurationMs:BN},{itag:278,url:"https://"+a3+".googlevideo.com/videoplayback?expire="+SU+"&ei="+a+"&ip="+ht+"&id=o-AF"+SO+"&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="+Bk+"&mn="+
ft+"&ms="+ft+"&mv="+OZ+"&mvi="+uT+"&pl="+TE+"&initcwndbps="+BN+"&siu="+uT+"&spc="+N+"&vprv="+uT+"&svpuc="+uT+"&mime=video%2Fwebm&ns="+Y5+"&gir="+MV+"&clen="+wL+"&dur="+wL+"&lmt="+RC+"&mt="+SU+"&fvip=3&keepalive="+MV+"&c=WEB&txp="+BN+"&n="+to+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/webm; codecs="vp9"',bitrate:qV,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:bu,end:sZ},lastModified:RC,contentLength:wL,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:X8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:BN},{itag:394,url:"https://"+a3+".googlevideo.com/videoplayback?expire="+SU+"&ei="+a+"&ip="+ht+"&id=o-AF"+SO+"&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="+
Bk+"&mn="+ft+"&ms="+ft+"&mv="+OZ+"&mvi="+uT+"&pl="+TE+"&initcwndbps="+BN+"&siu="+uT+"&spc="+N+"&vprv="+uT+"&svpuc="+uT+"&mime=video%2Fmp4&ns="+Y5+"&gir="+MV+"&clen="+wL+"&dur="+wL+"&lmt="+RC+"&mt="+SU+"&fvip=3&keepalive="+MV+"&c=WEB&txp="+BN+"&n="+to+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:X8,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:bu,end:sZ},lastModified:RC,contentLength:wL,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:X8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:BN},{itag:140,url:"https://"+a3+".googlevideo.com/videoplayback?expire="+SU+"&ei="+a+"&ip="+ht+"&id=o-AF"+SO+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
Bk+"&mn="+ft+"&ms="+ft+"&mv="+OZ+"&mvi="+uT+"&pl="+TE+"&initcwndbps="+BN+"&siu="+uT+"&spc="+N+"&vprv="+uT+"&svpuc="+uT+"&mime=audio%2Fmp4&ns="+Y5+"&gir="+MV+"&clen="+wL+"&dur="+wL+"&lmt="+RC+"&mt="+SU+"&fvip=3&keepalive="+MV+"&c=WEB&txp="+BN+"&n="+to+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:qV,
initRange:{start:"0",end:"631"},indexRange:{start:bu,end:sZ},lastModified:RC,contentLength:wL,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:qV,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:BN,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+a3+".googlevideo.com/videoplayback?expire="+SU+"&ei="+a+"&ip="+ht+"&id=o-AF"+SO+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+Bk+"&mn="+ft+"&ms="+ft+"&mv="+OZ+"&mvi="+uT+"&pl="+
TE+"&initcwndbps="+BN+"&siu="+uT+"&spc="+N+"&vprv="+uT+"&svpuc="+uT+"&mime=audio%2Fwebm&ns="+Y5+"&gir="+MV+"&clen="+BN+"&dur="+wL+"&lmt="+RC+"&mt="+SU+"&fvip=3&keepalive="+MV+"&c=WEB&txp="+BN+"&n="+to+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'audio/webm; codecs="opus"',bitrate:X8,initRange:{start:"0",end:"265"},indexRange:{start:bu,
end:sZ},lastModified:RC,contentLength:BN,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:X8,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:BN,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+a3+".googlevideo.com/videoplayback?expire="+SU+"&ei="+a+"&ip="+ht+"&id=o-AF"+SO+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+Bk+"&mn="+ft+"&ms="+ft+"&mv="+OZ+"&mvi="+uT+"&pl="+TE+"&initcwndbps="+BN+"&siu="+uT+"&spc="+N+"&vprv="+uT+"&svpuc="+uT+"&mime=audio%2Fwebm&ns="+
Y5+"&gir="+MV+"&clen="+BN+"&dur="+wL+"&lmt="+RC+"&mt="+SU+"&fvip=3&keepalive="+MV+"&c=WEB&txp="+BN+"&n="+to+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'audio/webm; codecs="opus"',bitrate:X8,initRange:{start:"0",end:"265"},indexRange:{start:bu,end:sZ},lastModified:RC,contentLength:BN,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:X8,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:BN,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+a3+".googlevideo.com/videoplayback?expire="+SU+"&ei="+a+"&ip="+ht+"&id=o-AF"+SO+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+Bk+"&mn="+ft+"&ms="+ft+"&mv="+OZ+"&mvi="+uT+"&pl="+TE+"&initcwndbps="+BN+"&siu="+uT+"&spc="+N+"&vprv="+uT+"&svpuc="+uT+"&mime=audio%2Fwebm&ns="+Y5+"&gir="+MV+"&clen="+wL+"&dur="+wL+"&lmt="+RC+"&mt="+SU+"&fvip=3&keepalive="+MV+"&c=WEB&txp="+
BN+"&n="+to+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'audio/webm; codecs="opus"',bitrate:qV,initRange:{start:"0",end:"265"},indexRange:{start:bu,end:sZ},lastModified:RC,contentLength:wL,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:qV,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:BN,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="+Zd+"&docid="+B+"&ei="+a+"&feature="+J+"&fexp="+z6+"&ns="+$d+"&plid="+R+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+OZ+"&el="+TJ+"&len="+sZ+"&of="+sV+
"&uga="+TE+"&vm="+cN},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+Zd+"&docid="+B+"&ei="+a+"&feature="+J+"&fexp="+z6+"&ns="+$d+"&plid="+R+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+OZ+"&el="+TJ+"&len="+sZ+"&of="+sV+"&uga="+TE+"&vm="+cN},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+Zd+"&docid="+B+"&ei="+a+"&feature="+J+"&fexp="+z6+"&ns="+$d+"&plid="+R+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
OZ+"&el="+TJ+"&len="+sZ+"&of="+sV+"&uga="+TE+"&vm="+cN},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+a+"&m="+Wy+"&oid="+sV+"&plid="+R+"&pltype="+Dd+"&ptchn="+sV+"&ptk="+d+"&video_id="+B},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+Zd+"&docid="+B+"&ei="+a+"&event="+LG+"&feature="+J+"&fexp="+z6+"&ns="+$d+"&plid="+R+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+OZ},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+B+"&ei="+a+"&feature="+
J+"&len="+sZ+"&ns="+$d+"&plid="+R+"&ver="+uT,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+B+"&caps="+MV+"&opi="+Zd+"&xoaf="+uT+"&hl="+$d+"&ip="+ht+"&ipbits="+uT+"&expire="+SU+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+ht+"&key="+MV+"&lang="+Dl,name:{simpleText:fl},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+B+"&caps="+MV+"&opi="+Zd+"&xoaf="+uT+"&hl="+$d+"&ip="+ht+"&ipbits="+uT+"&expire="+SU+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+ht+"&key="+MV+"&kind="+MV+"&lang="+$d,name:{simpleText:jO},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:fx,title:$i,lengthSeconds:"1155",keywords:[$i,$i,to,V9],
channelId:Y5,isOwnerViewing:!1,shortDescription:Ms,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+B+"/hqdefault.jpg?sqp=-oaymwE"+B$+"G&rs="+Zs,width:168,height:94},{url:"https://i.ytimg.com/vi/"+B+"/hqdefault.jpg?sqp=-oaymwE"+B$+"G&rs="+Zs,width:196,height:110},{url:"https://i.ytimg.com/vi/"+B+"/hqdefault.jpg?sqp=-oaymwE"+B$+"G&rs="+V,width:246,height:138},{url:"https://i.ytimg.com/vi/"+B+"/hqdefault.jpg?sqp=-oaymwE"+B$+"G&rs="+V,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
B+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:BN,author:jO,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:BN,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+sV+"/featured_channel.jpg?v="+Kx,width:40,height:40}]},trackingParams:zE+"=",navigationEndpoint:{clickTrackingParams:h0,commandMetadata:{webCommandMetadata:{url:"/channel/"+Y5,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Y5}},channelName:jO,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:LO}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Y5,showPreferences:!1,subscribedButtonText:{runs:[{text:LO}]},unsubscribedButtonText:{runs:[{text:LO}]},trackingParams:zE+"=",unsubscribeButtonText:{runs:[{text:$i}]},serviceEndpoints:[{clickTrackingParams:h0,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[Y5],params:Kx}},{clickTrackingParams:h0,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:h0,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:zE+"=",dialogMessages:[{runs:[{text:jO},{text:Ms},{text:Gn}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:fl}]},serviceEndpoint:{clickTrackingParams:h0,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Y5],params:Kx}},accessibility:{label:Gn},trackingParams:zE+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:fl}]},accessibility:{label:dq},trackingParams:zE+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:$i}},unsubscribeAccessibility:{accessibilityData:{label:fx}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:wL},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:h0,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:h0,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Y5],params:Kx}},unsubscribeCommand:{clickTrackingParams:h0,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Y5],params:Kx}},addToWatchLaterCommand:{clickTrackingParams:h0,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:fx,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:h0,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:fx}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+B+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+B$+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
B+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+fx,width:1280,height:720},title:{simpleText:LG},description:{simpleText:to},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+Ms,externalChannelId:Y5,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:BN,category:"Travel & Events",publishDate:nt,ownerChannelName:jO,uploadDate:nt}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:jO},trackingParams:zE+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:h0,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:zE+"="}}],headerText:{simpleText:to},icon:{infoCardIconRenderer:{trackingParams:zE+"="}},closeButton:{infoCardIconRenderer:{trackingParams:zE+"="}},trackingParams:zE+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:zE+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+fx+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:fs,interpreterSafeUrl:(Y_.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+Sk+".js",Y_),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:$i},{text:$i,bold:!0}]},endpoint:{clickTrackingParams:h0,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:zE+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:LG}]},actionButton:{buttonRenderer:{text:{runs:[{text:Ms}]},navigationEndpoint:{clickTrackingParams:h0,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+B,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
B,target:"TARGET_NEW_WINDOW"}},trackingParams:zE+"="}},trackingParams:zE+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+Mq+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+Mq+"=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:BN,endMs:BN,title:{accessibility:{accessibilityData:{label:TJ}},simpleText:TJ},metadata:{simpleText:jO},callToAction:{simpleText:LG},dismiss:{simpleText:nW},endpoint:{clickTrackingParams:h0,commandMetadata:{webCommandMetadata:{url:"/channel/"+Y5,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Y5}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:V9}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Y5,showPreferences:!1,
subscribedButtonText:{runs:[{text:qu}]},unsubscribedButtonText:{runs:[{text:fl}]},trackingParams:zE+"=",unsubscribeButtonText:{runs:[{text:qu}]},serviceEndpoints:[{clickTrackingParams:h0,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Y5],params:Kx}},{clickTrackingParams:h0,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:h0,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:zE+
"=",dialogMessages:[{runs:[{text:JV},{text:to},{text:fl}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:dq}]},serviceEndpoint:{clickTrackingParams:h0,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Y5],params:Kx}},accessibility:{label:Ms},trackingParams:zE+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:TJ}]},
accessibility:{label:JV},trackingParams:zE+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:dq}},unsubscribeAccessibility:{accessibilityData:{label:TJ}}}},trackingParams:zE+"=",isSubscribe:!0,id:NV}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+B+"/hqdefault.jpg?sqp=-oaymwE"+B$+"G&rs="+V,width:168,height:94},{url:"https://i.ytimg.com/vi/"+B+"/hqdefault.jpg?sqp=-oaymwE"+B$+"G&rs="+Zs,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+B+"/hqdefault.jpg?sqp=-oaymwE"+B$+"G&rs="+V,width:246,height:138},{url:"https://i.ytimg.com/vi/"+B+"/hqdefault.jpg?sqp=-oaymwE"+B$+"G&rs="+V,width:336,height:188},{url:"https://i.ytimg.com/vi/"+B+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:BN,endMs:BN,title:{accessibility:{accessibilityData:{label:LO}},simpleText:V9},metadata:{simpleText:JV},endpoint:{clickTrackingParams:h0,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
fx,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:fx,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+a3+".googlevideo.com/videoplayback?source=youtube&oeis="+uT+"&c=WEB&oad="+sZ+"&ovd="+sZ+"&oaad="+tt+"&oavd="+tt+"&ocs="+bu+"&oewis="+uT+"&oputc="+uT+"&ofpcc="+uT+"&siu="+uT+"&msp="+uT+"&odepv="+uT+
"&id=o-AF"+SO+"&ip="+ht+"&initcwndbps="+BN+"&mt="+SU+"&oweuc="+z6}}}}},trackingParams:zE+"=",id:NV,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:to}},simpleText:jO},style:"DEFAULT"}}]}}],startMs:BN,trackingParams:zE+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:uT,offsetEndMilliseconds:tt},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Zd+";dc_trk_cid="+Zd+";dc_dbm_token="+c+";ord="+SU+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+uT+";dc_rui="+uT+";dc_exteid="+NV+";dc_av="+bu+";dc_sk="+uT+";dc_ctype="+TE+";dc_ref=http://www.youtube.com/video/"+fx+";dc_pubid="+uT+";dc_btype=23?gclid="+eP+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
L+"____________"+A+"AxAA&sigh="+fx+"&cid="+E+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+uT+"&ns="+uT+"&event="+uT+"&device="+uT+"&content_v="+B+"&el="+TJ+"&ei="+a+"&devicever="+F+"&bti="+BN+"&format="+BF+"&break_type="+uT+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+uT+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+ht+"&slot_pos="+uT+"&slot_len="+uT+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+Bk+"&ad_len="+tt+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
fx+"&aqi="+a+"&ad_rmp="+uT+"&sli="+uT}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+B+"&cid="+E+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+B+"&cid="+E+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+
";etm1="+uT+";eid1="+TE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+B+"&cid="+E+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+BF+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
L+"____________"+A+"AxAA&sigh="+B+"&cid="+E+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+TE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+B+"&cid="+E+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+B+"&cid="+E+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+TE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+B+"&cid="+E+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+BN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+B+"&cid="+E+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
L+"____________"+A+"AxAA&sigh="+B+"&cid="+E+"&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+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&ctype="+bu+"&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+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_engaged_view&ctype="+bu+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+BF+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Zd+";dc_trk_cid="+Zd+";dc_dbm_token="+c+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+uT+";ord="+Zd+";dc_rui="+uT+";dc_exteid="+tw+";dc_av="+uT+";dc_sk="+uT+";dc_ctype="+TE+";dc_pubid="+uT+";dc_btype=3?gclid="+eP+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+B+"&cid="+E+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+TE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+M+"&sig="+WJ+"&ad_cpn=[AD_CPN]&id="+V9+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+V9+"&dc_pubid="+uT+"&dc_exteid="+NV+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+B+"&cid="+E+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+M+"&sig="+WJ+"&ad_cpn=[AD_CPN]&id="+V9+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+uT},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+V9+"&avm="+uT+"&dc_pubid="+uT+"&dc_exteid="+
NV+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+B+"&cid="+E+"&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="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+TE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
M+"&sig="+WJ+"&ad_cpn=[AD_CPN]&id="+V9+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+uT},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+V9+"&dc_pubid="+uT+"&dc_exteid="+NV+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+TE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+BF+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+TE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+BF+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+B+"&cid="+E+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+TE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:h0,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+
bu+"&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/"+B+"/mqdefault.jpg",width:320,height:180}]},trackingParams:zE+"="},trackingParams:zE+
"=",templatedCountdown:{templatedAdText:{text:JV,isTemplated:!0,trackingParams:zE+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:V9,isTemplated:!1,trackingParams:zE+"="},trackingParams:zE+"="}},trackingParams:zE+"=",skipOffsetMilliseconds:5E3}},trackingParams:zE+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:to},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:h0,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zE+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:V9,isTemplated:!1,trackingParams:zE+"="},trackingParams:zE+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:LG,isTemplated:!0,trackingParams:zE+"="}},trackingParams:zE+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:h0,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Qg.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+l+"&hl="+$d+"&origin=www.youtube.com&ata_theme="+Ms,Qg),trackingParams:zE+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:zE+"="}},hoverText:{runs:[{text:$i}]},trackingParams:zE+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+uU+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:zE+"="},headline:{text:Kx,isTemplated:!1,trackingParams:zE+"="},description:{text:$i,
trackingParams:zE+"="},actionButton:{buttonRenderer:{text:{simpleText:$i},navigationEndpoint:{clickTrackingParams:h0,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Zd+";dc_trk_cid="+Zd+";dc_dbm_token="+c+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+uT+";ord="+Zd+";dc_rui="+uT+";dc_exteid="+NV+";dc_av="+uT+";dc_sk="+uT+";dc_ctype="+TE+";dc_pubid="+uT+";dc_btype=3?gclid="+eP+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zE+"="}},startMs:uT,trackingParams:zE+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Dd},elementId:LO}},elementId:fx,trackingParams:zE+"=",legacyInfoCardVastExtension:qu,sodarExtensionData:{siub:Dd,bgub:Kx,scs:Dd,bgp:Gn},externalVideoId:fx,adLayoutLoggingData:{serializedAdServingDataEntry:jO},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+uU+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:zE+"="},
headline:{text:qu,isTemplated:!1,trackingParams:zE+"="},description:{text:fx,isTemplated:!1,trackingParams:zE+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Kx},navigationEndpoint:{clickTrackingParams:h0,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Zd+";dc_trk_cid="+Zd+";dc_dbm_token="+c+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+uT+";ord="+Zd+";dc_rui="+uT+";dc_exteid="+
NV+";dc_av="+uT+";dc_sk="+uT+";dc_ctype="+TE+";dc_pubid="+uT+";dc_btype=3?gclid="+eP+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+
uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zE+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:zE+"="}},navigationEndpoint:{clickTrackingParams:h0,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Zd+";dc_trk_cid="+
Zd+";dc_dbm_token="+c+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+uT+";ord="+Zd+";dc_rui="+uT+";dc_exteid="+NV+";dc_av="+uT+";dc_sk="+uT+";dc_ctype="+TE+";dc_pubid="+uT+";dc_btype=3?gclid="+eP+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+B+"&cid="+E+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+
A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zE+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:zE+"="},abandonCommands:{commands:[{clickTrackingParams:h0,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+B+"&cid="+E+"&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="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+
uT+"="+uT+";etm1="+uT+";eid1="+TE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:h0,commandExecutorCommand:{commands:[{clickTrackingParams:h0,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+B+"&cid="+E+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:V9,isTemplated:!1,trackingParams:zE+
"="},trackingParams:zE+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:TJ},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+B+"&cid="+E+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+BN+";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="+Zd+";dc_trk_cid="+Zd+";ord="+SU+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+uT+";dc_rui="+uT+";dc_exteid="+NV+";dc_av="+bu+";dc_sk="+uT+";dc_ctype="+TE+";dc_ref=http://www.youtube.com/video/"+fx+";dc_pubid="+uT+";dc_btype=23?gclid="+eP+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+L+"____________"+A+"AxAA&sigh="+fx+"&cid="+E+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+uT+"&ns="+uT+"&event="+uT+"&device="+uT+"&content_v="+B+"&el="+TJ+"&ei="+a+"&devicever="+F+"&bti="+BN+"&format="+BF+"&break_type="+uT+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+uT+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+ht+"&slot_pos="+uT+"&slot_len="+uT+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
Bk+"&ad_len="+tt+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+fx+"&aqi="+a+"&ad_rmp="+uT+"&sli="+uT}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+fx+"&cid="+E+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+fx+"&cid="+E+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+TE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+fx+"&cid="+E+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+BF+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+fx+"&cid="+E+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+TE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+fx+"&cid="+
E+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+fx+"&cid="+E+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+TE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
L+"____________"+A+"AxAA&sigh="+fx+"&cid="+E+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+BN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+fx+"&cid="+E+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+fx+"&cid="+E+"&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+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&ctype="+bu+"&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+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_engaged_view&ctype="+bu+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+BF+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+fx+"&cid="+E+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+TE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+M+"&sig="+WJ+"&ad_cpn=[AD_CPN]&id="+
V9+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+V9+"&dc_pubid="+uT+"&dc_exteid="+NV+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+fx+"&cid="+E+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+M+
"&sig="+WJ+"&ad_cpn=[AD_CPN]&id="+V9+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+uT},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+V9+"&avm="+uT+"&dc_pubid="+uT+"&dc_exteid="+NV+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+fx+"&cid="+E+"&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="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+TE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+M+"&sig="+WJ+"&ad_cpn=[AD_CPN]&id="+V9+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+uT},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+V9+"&dc_pubid="+uT+"&dc_exteid="+NV+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+TE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+BF+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+TE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+BF+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+fx+"&cid="+E+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+TE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:h0,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+
bu+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&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/"+B+"/mqdefault.jpg",width:320,height:180}]},trackingParams:zE+"="},trackingParams:zE+"=",templatedCountdown:{templatedAdText:{text:fx,isTemplated:!0,trackingParams:zE+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:$i,isTemplated:!1,trackingParams:zE+"="},trackingParams:zE+"="}},
trackingParams:zE+"=",skipOffsetMilliseconds:5E3}},trackingParams:zE+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:V9},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:h0,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zE+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:qu,isTemplated:!1,trackingParams:zE+"="},trackingParams:zE+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:nW,
isTemplated:!0,trackingParams:zE+"="}},trackingParams:zE+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:h0,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Q0.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+l+"&hl="+$d+"&origin=www.youtube.com&ata_theme="+Ms,Q0),trackingParams:zE+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:zE+"="}},hoverText:{runs:[{text:JV}]},trackingParams:zE+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+pO+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:zE+"="},headline:{text:$i,isTemplated:!1,trackingParams:zE+"="},description:{text:Ms,trackingParams:zE+"="},actionButton:{buttonRenderer:{text:{simpleText:LG},navigationEndpoint:{clickTrackingParams:h0,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zE+"="}},startMs:uT,trackingParams:zE+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Gn},elementId:LO}},elementId:Dd,trackingParams:zE+"=",legacyInfoCardVastExtension:LG,sodarExtensionData:{siub:jO,bgub:dq,scs:JV,bgp:$i},externalVideoId:fx,adLayoutLoggingData:{serializedAdServingDataEntry:$i},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+pO+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:zE+"="},headline:{text:JV,
isTemplated:!1,trackingParams:zE+"="},description:{text:Kx,isTemplated:!1,trackingParams:zE+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:fx},navigationEndpoint:{clickTrackingParams:h0,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zE+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:zE+"="}},navigationEndpoint:{clickTrackingParams:h0,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
L+"____________"+A+"AxAA&sigh="+fx+"&cid="+E+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+
uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zE+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:zE+"="},abandonCommands:{commands:[{clickTrackingParams:h0,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+fx+"&cid="+E+"&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="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+TE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:h0,commandExecutorCommand:{commands:[{clickTrackingParams:h0,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+fx+"&cid="+E+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:TJ,isTemplated:!1,trackingParams:zE+"="},trackingParams:zE+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:fx},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+fx+"&cid="+E+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uT+";dc_exteid="+NV+";met="+uT+";ecn"+uT+"="+uT+";etm1="+uT+";eid1="+
BN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:dq}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:LO}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:tt,offsetEndMilliseconds:BF},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+a+"&m_pos="+TE+"&token=ALHj"+x+"&index="+uT+"&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="+F+"&m_pos_ms="+tt}},adSlotLoggingData:{serializedSlotAdServingDataEntry:TJ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:BF,offsetEndMilliseconds:BF},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+a+"&m_pos="+bu+"&token=ALHj"+x+"&index="+uT+"&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="+
F+"&m_pos_ms="+BF}},adSlotLoggingData:{serializedSlotAdServingDataEntry:dq}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:BF,offsetEndMilliseconds:BF},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+a+"&m_pos="+bu+"&token=ALHj"+x+"&index="+uT+"&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="+
F+"&m_pos_ms="+BF}},adSlotLoggingData:{serializedSlotAdServingDataEntry:qu}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:BF,offsetEndMilliseconds:BF},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+a+"&m_pos="+bu+"&token=ALHj"+x+"&index="+uT+"&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="+
F+"&m_pos_ms="+BF}},adSlotLoggingData:{serializedSlotAdServingDataEntry:fl}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:BF,offsetEndMilliseconds:TE},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+a+"&m_pos="+bu+"&token=ALHj"+x+"&index="+uT+"&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="+
F+"&m_pos_ms="+BF}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Dd}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:TE,offsetEndMilliseconds:TE},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+a+"&m_pos="+TE+"&token=ALHj"+x+"&index="+uT+"&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="+
F+"&m_pos_ms="+TE}},adSlotLoggingData:{serializedSlotAdServingDataEntry:dq}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:to,isTemplated:!1,trackingParams:zE+"="},description:{text:qu,isTemplated:!1,trackingParams:zE+"="},actionButton:{buttonRenderer:{text:{simpleText:LO},navigationEndpoint:{clickTrackingParams:h0,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Zd+";dc_trk_cid="+Zd+";dc_dbm_token="+c+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+uT+";ord="+Zd+";dc_rui="+uT+";dc_exteid="+NV+";dc_av="+uT+";dc_sk="+uT+";dc_ctype="+TE+";dc_pubid="+uT+";dc_btype=3?gclid="+eP+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zE+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+uU+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:zE+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+y9+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:zE+"="},navigationEndpoint:{clickTrackingParams:h0,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Zd+";dc_trk_cid="+Zd+";dc_dbm_token="+c+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+uT+";ord="+Zd+
";dc_rui="+uT+";dc_exteid="+NV+";dc_av="+uT+";dc_sk="+uT+";dc_ctype="+TE+";dc_pubid="+uT+";dc_btype=3?gclid="+eP+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zE+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:h0,openPopupAction:{popup:{aboutThisAdRenderer:{url:(bt4.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+l+"&hl="+$d+"&origin=www.youtube.com&ata_theme="+Ms,bt4),trackingParams:zE+"="}},popupType:"DIALOG"}},trackingParams:zE+"="}},hoverText:{runs:[{text:V9}]},trackingParams:zE+"="}},adVideoId:fx,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+B+"&cid="+E+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Kx},associatedCompositePlayerBytesLayoutId:to}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:to}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:jO,isTemplated:!1,trackingParams:zE+"="},description:{text:TJ,isTemplated:!1,trackingParams:zE+"="},actionButton:{buttonRenderer:{text:{simpleText:$i},navigationEndpoint:{clickTrackingParams:h0,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+
A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zE+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+pO+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:zE+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Ds+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:zE+"="},navigationEndpoint:{clickTrackingParams:h0,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+
uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zE+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:h0,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Mr.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+l+"&hl="+$d+"&origin=www.youtube.com&ata_theme="+Ms,Mr),trackingParams:zE+"="}},popupType:"DIALOG"}},trackingParams:zE+"="}},
hoverText:{runs:[{text:to}]},trackingParams:zE+"="}},adVideoId:fx,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+fx+"&cid="+E+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:jO},associatedCompositePlayerBytesLayoutId:to}},adSlotLoggingData:{serializedSlotAdServingDataEntry:TJ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:JV,
isTemplated:!1,trackingParams:zE+"="},description:{text:Ms,isTemplated:!1,trackingParams:zE+"="},actionButton:{buttonRenderer:{text:{simpleText:dq},navigationEndpoint:{clickTrackingParams:h0,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Zd+";dc_trk_cid="+Zd+";dc_dbm_token="+c+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+uT+";ord="+Zd+";dc_rui="+uT+";dc_exteid="+NV+";dc_av="+uT+";dc_sk="+uT+";dc_ctype="+
TE+";dc_pubid="+uT+";dc_btype=3?gclid="+eP+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+
V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zE+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+uU+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:zE+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+y9+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:zE+
"="},navigationEndpoint:{clickTrackingParams:h0,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Zd+";dc_trk_cid="+Zd+";dc_dbm_token="+c+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+uT+";ord="+Zd+";dc_rui="+uT+";dc_exteid="+NV+";dc_av="+uT+";dc_sk="+uT+";dc_ctype="+TE+";dc_pubid="+uT+";dc_btype=3?gclid="+eP+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+L+"____________"+A+"AxAA&ase=2&num="+uT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+dj+"&label=video_click_to_advertiser_site&ctype="+bu+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zE+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:h0,openPopupAction:{popup:{aboutThisAdRenderer:{url:(aH.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+l+"&hl="+$d+"&origin=www.youtube.com&ata_theme="+Ms,aH),trackingParams:zE+"="}},popupType:"DIALOG"}},trackingParams:zE+
"="}},hoverText:{runs:[{text:dq}]},trackingParams:zE+"="}},adVideoId:fx,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+L+"____________"+A+"AxAA&sigh="+B+"&cid="+E+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:nW},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:to}},adSlotLoggingData:{serializedSlotAdServingDataEntry:nW}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:Sk,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:Sk,command:{innertubeCommand:{clickTrackingParams:h0,ypcGetOfflineUpsellEndpoint:{params:wE}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:zE+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:SU,nanos:yd}}}},na9=JSON.stringify(t$),$T=performance.now()-K;return{objectRepresentation:t$,jsonRepresentation:na9,generationTime:$T}};
PZP=function(K,X){if(K===X)return!0;if(!K||!X||typeof K!==typeof X)return!1;if(K instanceof Array&&X instanceof Array){if(K.length!==X.length)return!1;for(var F=0;F<K.length;F++)if(!PZP(K[F],X[F]))return!1;return!0}if(typeof K==="object"&&typeof X==="object"&&K&&X){for(F in K)if(!(F in X&&PZP(K[F],X[F])))return!1;for(var P in X)if(!(P in K))return!1;return!0}return!1};
_.ij=function(){if(!Na){Na=new ZL(new HE9);var K=_.kU("client_streamz_web_flush_count",-1);K!==-1&&(Na.invocationLimit=K)}return Na};
xx=function(K,X,F,P){if(K===X)return!0;if(Array.isArray(K)&&Array.isArray(X)){if(K.length!==X.length)return!1;for(var H=0;H<K.length;H++)if(!xx(K[H],X[H],F,P))return!1;return!0}if(K instanceof Set||X instanceof Set){if(K instanceof Set&&X instanceof Set){if(K.size!==X.size)return!1;P=_.D(K.values());for(H=P.next();!H.done;H=P.next())if(!X.has(H.value))return!1;return!0}return!1}if(K instanceof Function){if(P)return!0;K.name===""&&_.jF(Error("Df"),"ERROR");return!1}if(K instanceof Date&&X instanceof
Date)return K.getTime()===X.getTime();if(K instanceof Object&&X instanceof Object){if(su3(K)&&su3(X))try{return K.equals(X)}catch(u){_.jF(Error("Ef`"+u),"ERROR")}H=Object.getOwnPropertyNames(K).filter(function(u){return F?K[u]!==void 0:!0});
var f=Object.getOwnPropertyNames(X).filter(function(u){return F?X[u]!==void 0:!0});
if(H.length!==f.length)return!1;H=_.D(H);for(f=H.next();!f.done;f=H.next())if(f=f.value,!xx(K[f],X[f],F,P))return!1;return!0}return!1};
su3=function(K){K=Object.getPrototypeOf(K).equals;return K instanceof Function&&K.length===1};
_.DTd=function(){return _.q(function(K){if(K.nextAddress==1)return zAd!==2?K.jumpTo(2):_.Y(K,f9M(),3);K.nextAddress!=2&&(zAd=K.yieldResult);return K.return(zAd)})};
_.Jk3=function(){return _.q(function(K){if(K.nextAddress==1)return _.S("ab_pl_man")?uEl!==2?K.jumpTo(2):_.Y(K,qxP(),3):K.return(1);K.nextAddress!=2&&(uEl=K.yieldResult);return K.return(uEl)})};
Qu9=function(){return _.q(function(K){if(K.nextAddress==1)return _.S("ab_fk_sk_cl")?ZEl!==2?K.jumpTo(2):_.Y(K,Yxw(),3):K.return(1);K.nextAddress!=2&&(ZEl=K.yieldResult);return K.return(ZEl)})};
_.ck9=function(){return _.q(function(K){if(K.nextAddress==1)return _.S("ab_det_apb_b")?MEl!==2?K.jumpTo(2):_.Y(K,nul(),3):K.return(1);K.nextAddress!=2&&(MEl=K.yieldResult);return K.return(MEl)})};
Sxq=function(){var K;return _.q(function(X){if(X.nextAddress==1)return _.Y(X,Promise.all([_.DTd(),_.ck9(),_.Jk3(),Qu9()]),2);if(X.nextAddress!=3)return pU9()?X.return(!0):_.Y(X,_.Bkl(),3);K=X.yieldResult;return X.return(K===0)})};
pU9=function(){var K=!1,X=function(F,P){oud.increment(P,F);F===0&&(K=!0)};
X(_.LiP(),"j.s_");X(zAd,"f.i_");X(MEl,"a.b_");X(uEl,"p.m_");X(ZEl,"i.f_");Tkl===2&&(Tkl=_.rk9(Aky));X(Tkl,"e.h_");_.S("ks_det_gpbl")||X(_.ju4(),"p.i_");_.S("ks_get_o_pp")||X(_.wUy(),"g.o_");_.S("ab_deg_unex_thr")||X(_.ykw(),"a.o_");X(Wiy,"s.t_");_.S("ab_det_sc_inj_enf")&&X(_.dTT(),"s.i_");X(eAy,"d.p_");X(_.RA4(_.IA),"o.p_");X(_.UTl()===0?0:_.hAq(),"o.a_");return _.S("debug_sk_em_precheck")?!0:K};
GPy=function(){var K=[].concat(_.LZ(mT3));try{var X=CI();K.push({jsonRepresentation:X.jsonRepresentation,objectRepresentation:X.objectRepresentation})}catch(F){K=[].concat(_.LZ(mT3))}return K};
l9q=function(){var K=["adPlacements","adSlots"];try{return K.filter(function(){return!0}).length!==K.length?0:1}catch(X){return 0}};
_.wUy=function(){if(l9q()===0)return 0;var K=CI(),X=K.objectRepresentation,F=(0,_.T8.unsafeClone)(X),P=[];if(X&&typeof X==="object")for(var H in X)P.push(H);else return 4;K=K.objectRepresentation.adPlacements;if(!(K&&K.length>0))return 4;try{if(!PZP(P,Object.getOwnPropertyNames(X)))return 0}catch(f){return 0}return PZP(F,X)?1:0};
_.RA4=function(K){if(!K||!K.length||typeof K==="string")return 0;for(var X=Object.getOwnPropertyNames(Object.prototype),F=0;F<K.length;F++)for(var P=_.V4(K[F]),H=_.D(X),f=H.next();!f.done;f=H.next())if(P===f.value)return 0;return 1};
vuy=function(K){var X=_.V4(K[1]);if(K[0]===null)return X;K=K[0];for(var F={},P=0;P<K.length;P++){var H=_.V4(K[P]);if(P===0)F[H]=X;else{var f={};f[H]=F;F=f}}return F};
_.UTl=function(){for(var K=_.kx,X=0;X<K.length;X++){var F=vuy(K[X]),P=[];P.push(F);if(P.length===0)return 0}return 1};
_.hAq=function(){for(var K=_.kx,X={},F=0;F<K.length;X={kMH:void 0},F++){var P=[vuy(K[F])];X.kMH=[];P.forEach(function(H){return function(f){H.kMH[H.kMH.length]=f}}(X));
if(X.kMH.length===0)return 0}return 1};
_.LiP=function(){for(var K=_.D(GPy()),X=K.next();!X.done;X=K.next()){var F=X.value;X=F.jsonRepresentation;F=F.objectRepresentation;try{var P=JSON.parse(X);if(!xx(P,F,!1,!1))return 0}catch(H){return 0}}return 1};
_.dTT=function(){try{var K=_.X$("ab_det_sc_inj_val");K.length===1&&K[0]===""&&(K=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var X=document.querySelectorAll("script"),F=_.D(X),P=F.next();!P.done;P=F.next())for(var H=P.value,f=_.D(K),u=f.next();!u.done;u=f.next()){var J=u.value;X=void 0;if((X=H.textContent)==null?0:X.includes(J))return 0}}catch(Z){return 4}return 1};
_.Bkl=function(){var K,X,F,P,H,f,u;return _.q(function(J){switch(J.nextAddress){case 1:_.s2(J,2),K=_.D(mT3),X=K.next();case 4:if(X.done)return J.return(1);P=F=X.value;H=P.jsonRepresentation;f=P.objectRepresentation;return _.Y(J,(new Response(H,{status:200})).json(),7);case 7:u=J.yieldResult;if(!xx(u,f,!1,!1))return J.return(0);X=K.next();J.jumpTo(4);break;case 2:return _.qc(J),J.return(4)}})};
_.ykw=function(){try{btoa("abc")}catch(K){return 0}return 1};
f9M=function(){var K,X,F,P,H,f,u,J,Z,M,n;return _.q(function(c){switch(c.nextAddress){case 1:_.s2(c,2),K=_.D(GPy()),X=K.next();case 4:if(X.done)return c.return(1);P=F=X.value;H=P.jsonRepresentation;f=P.objectRepresentation;u=btoa(H);J="data:application/json;base64,"+u;Z=new Request(J);Object.defineProperty(Z,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(Z,"method",{get:function(){return"POST"}});
Object.defineProperty(Z,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(Z,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(Z,"body",{get:function(){return new ReadableStream}});
return _.Y(c,fetch(Z),7);case 7:return M=c.yieldResult,_.Y(c,M.json(),8);case 8:n=c.yieldResult;if(!xx(n,f,!1,!1))return c.return(0);X=K.next();c.jumpTo(4);break;case 2:return _.qc(c),c.return(4)}})};
_.rk9=function(K){if(!K||!K.length||typeof K==="string")return 0;for(var X=function(H){return _.V4(H)},F=2,P=0;P<K.length&&(F=_.a9w(_.XU4(K[P],X)),F!==0);P++);
return F};
_.a9w=function(K){var X=_.D(K);K=X.next().value;X=X.next().value;try{var F=document.createElement("div");document.body.appendChild(F);var P=getComputedStyle(F).display;document.body.removeChild(F);if(P==="none")return 4;var H=getComputedStyle(X).display==="none"?0:1;document.body.removeChild(K);return H}catch(f){return 4}};
Yxw=function(){var K,X,F;return _.q(function(P){K=new _.K$;X=document.createElement("button");X.classList.add("ytp-ad-skip-button");X.style.opacity="0";X.style.height="0px";X.style.width="0px";X.style.padding="0px";X.style.border="none";F=function(){X.parentElement&&X.parentElement.removeChild(X)};
X.onclick=function(){K.resolve(0);F()};
document.body.appendChild(X);setTimeout(function(){F();K.resolve(1)},50);
return P.return(K.promise)})};
qxP=function(){var K,X,F,P,H,f,u;return _.q(function(J){K=new _.K$;X=document.createElement("ytd-player");try{document.body.prepend(X)}catch(Z){return J.return(4)}F=function(){X.parentElement&&X.parentElement.removeChild(X)};
X.getElementsByTagName("div").length>0?P=X.getElementsByTagName("div")[0]:(P=document.createElement("div"),X.appendChild(P));H=document.createElement("div");P.appendChild(H);f=document.createElement("video");u=new Blob([new Uint8Array([26,69,223,163,159,66,134,129,1,66,247,129,1,66,242,129,4,66,243,129,8,66,130,132,119,101,98,109,66,135,129,4,66,133,129,2,24,83,128,103,1,255,255,255,255,255,255,255,21,73,169,102,153,42,215,177,131,15,66,64,77,128,134,67,104,114,111,109,101,87,65,134,67,104,114,111,
109,101,22,84,174,107,169,174,167,215,129,1,115,197,135,207,96,156,234,24,157,175,131,129,1,85,238,129,1,134,133,86,95,86,80,56,224,138,176,129,1,186,129,1,83,192,129,1,31,67,182,117,1,255,255,255,255,255,255,255,231,129,0,160,204,161,162,129,0,0,0,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,229,106,0,117,161,165,166,163,238,129,1,165,158,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,232,120,0,160,187,161,152,129,3,233,0,177,
1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,129,0,160,188,161,152,129,7,208,0,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,130,3,233])],{type:"video/webm"});f.src=_.Qz(_.Si(u));f.ontimeupdate=function(){F();K.resolve(0)};
H.appendChild(f);f.classList.add("html5-main-video");setTimeout(function(){H.classList.add("ad-interrupting")},200);
setTimeout(function(){F();K.resolve(1)},5E3);
return J.return(K.promise)})};
tET=function(K,X){var F,P;return _.q(function(H){switch(H.nextAddress){case 1:F=[],P=0;case 2:if(!(P<3)){H.jumpTo(4);break}return _.Y(H,fetch(K,{cache:"no-store",method:X}).then(function(f){F.push(f.status)}).catch(function(){F.push(-1)}),3);
case 3:P++;H.jumpTo(2);break;case 4:return H.return(F)}})};
$Tn=function(K){return K.domainLookupStart===0&&K.domainLookupEnd===0&&K.connectStart===0&&K.connectEnd===0};
OEw=function(K,X,F){F=F===void 0?"GET":F;var P,H,f,u,J,Z,M,n,c,B;return _.q(function(L){if(L.nextAddress==1)return _.Y(L,Promise.all([tET(K,F),tET(X,F)]),2);P=L.yieldResult;H=_.D(P);f=H.next().value;u=H.next().value;J=f;Z=u;if(Math.min.apply(Math,_.LZ(Z))!==Math.max.apply(Math,_.LZ(Z))||Math.min.apply(Math,_.LZ(J))!==Math.max.apply(Math,_.LZ(J)))return L.return(2);if(Math.min.apply(Math,_.LZ(Z))===Math.min.apply(Math,_.LZ(J)))return L.return(1);n=(M=performance.getEntriesByName(K))==null?void 0:M[0];
B=(c=performance.getEntriesByName(X))==null?void 0:c[0];return n&&B?$Tn(B)?L.return(1):$Tn(n)?L.return(0):L.return(1):L.return(2)})};
nul=function(){var K;return _.q(function(X){var F=[];var P;var H,f,u;(H=P=(H=CI().objectRepresentation.streamingData)==null?void 0:(f=H.formats)==null?void 0:(u=f[0])==null?void 0:u.url)&&H&&!P.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(H=H.replace("initcwndbps","ctier=L&initcwndbps"),H=H.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),P={testUrl:H,baseUrl:P,method:"GET"}):P=void 0;P&&F.push(P);_.S("ab_net_tp_e")&&F.push({testUrl:_.FP.location.origin+"/ad_companion",baseUrl:_.FP.location.origin+
"/generate_204",method:"OPTIONS"});if(_.S("ad_net_pb_ab")){var J;b:{P=/api\/stats\/ads/;var Z,M,n,c;H=(J=CI().objectRepresentation.adPlacements)==null?void 0:(Z=J[0])==null?void 0:(M=Z.adPlacementRenderer)==null?void 0:(n=M.renderer)==null?void 0:(c=n.linearAdSequenceRenderer)==null?void 0:c.linearAds;if(H!=null&&H.length&&(J=_.T(H[0],VEd))&&(J=J.pings,J!=null&&J.impressionPings))for(Z=[].concat(_.LZ(J.impressionPings)),J.progressPings&&(Z=[].concat(_.LZ(Z),_.LZ(J.progressPings))),J=_.D(Z),Z=J.next();!Z.done;Z=
J.next())if(Z=Z.value,Z.baseUrl&&P.test(Z.baseUrl)){J=Z.baseUrl.replace("https://www.youtube.com","");break b}J=void 0}J&&F.push({testUrl:_.FP.location.origin+J,baseUrl:_.FP.location.origin+"/feed/download",method:"GET"})}if(_.S("ad_net_pb_pbp")){var B;b:{J=/api\/stats\/qoe/;if(Z=CI().objectRepresentation.playbackTracking){M=[];M.push(Z==null?void 0:(B=Z.videostatsPlaybackUrl)==null?void 0:B.baseUrl);var L;M.push(Z==null?void 0:(L=Z.videostatsDelayplayUrl)==null?void 0:L.baseUrl);var A;M.push(Z==
null?void 0:(A=Z.videostatsWatchtimeUrl)==null?void 0:A.baseUrl);var d;M.push(Z==null?void 0:(d=Z.ptrackingUrl)==null?void 0:d.baseUrl);var R;M.push(Z==null?void 0:(R=Z.qoeUrl)==null?void 0:R.baseUrl);var l;M.push(Z==null?void 0:(l=Z.atrUrl)==null?void 0:l.baseUrl);B=_.D(M);for(L=B.next();!L.done;L=B.next())if((L=L.value)&&J.test(L)){B=L.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}B=void 0}B&&F.push({testUrl:_.FP.location.origin+B,baseUrl:_.FP.location.origin+
"/feed/download",method:"GET"})}F=F.length!==0?F[Math.floor(Math.random()*F.length)]:void 0;return(K=F)?X.return(OEw(K.testUrl,K.baseUrl,K.method)):X.return(4)})};
_.ju4=function(){if(_.FP.gfe===void 0||_.FP.gfe===null||typeof _.FP.gfe!=="function")return 2;try{return _.FP.gfe()===!0?0:1}catch(K){return 0}};
gu3=function(K){switch(K){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.zJ(K,"unknown result type")}};
_.EuO=function(K,X){var F=Number(_.e8("CATSTAT",0));if(X.em6===void 0)return F;X=X.em6;K=gu3(K);return F&~(3<<X)|K<<X};
bEl=function(K){var X,F;if((K=(X=K.auxiliaryUi)==null?void 0:(F=X.messageRenderers)==null?void 0:F.bkaEnforcementMessageViewModel)&&K.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return K};
Nk4=function(){for(var K=_.D(Object.values(_.CZP)),X=K.next();!X.done;X=K.next())X=X.value,X.isAsync&&X.em6&&_.d2("CATSTAT",_.EuO(2,X))};
_.HI=function(K,X){K=_.XN("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",K);(X===void 0?0:X)?_.iE3(K,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.FN(_.PI(),K,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
I9d=function(){if(!xTw){if(Polymer.Base){var K=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{K.apply(this,arguments)}catch(c){_.UN(c)}};
var X=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{X.apply(this,arguments)}catch(c){_.UN(c)}};
var F=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{F.apply(this,arguments)}catch(c){_.UN(c)}};
var P=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{P.apply(this,arguments)}catch(c){_.UN(c)}};
var H=Polymer.Base._listen,f=new WeakMap;Polymer.Base._listen=function(c,B,L){var A=function(){try{L.apply(this,arguments)}catch(d){_.UN(d)}};
f.set(L,A);H.call(this,c,B,A)};
var u=Polymer.Base._unlisten;Polymer.Base._unlisten=function(c,B,L){u.call(this,c,B,f.get(L))}}if(Polymer.Async){var J=Polymer.Async,Z=J._atEndOfMicrotask;
J._atEndOfMicrotask=function(){try{Z.apply(J,arguments)}catch(c){_.UN(c)}}}if(Polymer.RenderStatus){var M=Polymer.RenderStatus,n=M.afterNextRender;
M.afterNextRender=function(c,B,L){n.call(M,c,function(){try{B.apply(this,arguments)}catch(A){_.UN(A)}},L)}}xTw=!0}};
_.sm=function(K){var X=K?_.zy(K):"";if(X){if(X.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(X.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(X.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(X.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(X.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(X.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";X=X.toLowerCase();if(X==="/")return"home";if(X===
"/channel_memberships")return"channel-memberships-shopfront";if(X.indexOf("/feed/trending")===0)return"trending";if(X.indexOf("/feed/explore")===0)return"explore";if(X.indexOf("/live")===0)return"live";if(X.indexOf("/results")===0)return"search";if(X.indexOf("/sports")===0)return"sports";if(X.indexOf("/fashion")===0||X.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(X))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(X))return"learning";
if(X.indexOf("/channel/")===0||X.indexOf("/user/")===0||X.indexOf("/gaming")===0||X.indexOf("/post/")===0)return"channel";if(kPw(K))return"show";if(X==="/playlist"||X.indexOf("/playlist/")===0||X==="/view_play_list"||X.indexOf("/view_play_list/")===0||X.indexOf("/show/")===0)return"playlist";if(X==="/feed/history"||X.indexOf("/feed/history/")===0)return"history";if(X==="/new")return"labs";if(X==="/feed/subscriptions")return"subscriptions";if(X.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(X==="/history_controls")return"standalone";if(X.indexOf("/account")===0||X==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(X.indexOf("/paid_memberships")===0||X.indexOf("/refund")===0||X.indexOf("/purchases")===0||X.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(X.indexOf("/product")===0)return"yts-products";if(X.indexOf("/premium")===0||X.indexOf("/musicpremium")===0)return X.indexOf("/premium/offers")===0||X.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(X===
"/cart/checkout"||X==="/cart")return"ypc-checkout";if(X.indexOf("/feed/downloads")===0||X.indexOf("/redeem")===0||X.indexOf("/reporthistory")===0)return"browse";if(X.indexOf("/hashtag")===0)return"hashtag-landing-page";if(X.indexOf("/handle")===0)return"handle";if(X.indexOf("/source")===0)return"audio-pivot";if(X.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(X.indexOf("/playables")===0)return"playables";if(X.indexOf("/create/live/join")===0)return"open-in-app";if(X.indexOf("/shorts")===
0)return"shorts";if(X.indexOf("/feed/channels")===0)return"subscriptions-channels";(X=K?_.zy(K):"")&&X.indexOf("/watch")===0&&_.S("web_watch_enable_learning_journey")?(K=_.tV(K),K=!!K.list&&K.list.indexOf("LJPP")===0):K=!1;if(K)return"learning_journey_watch"}};
_.zw=function(K){var X,F;(K=(F=_.T(K==null?void 0:K.commandMetadata,_.g_))==null?void 0:F.url)&&(X=_.sm(K));return X};
kPw=function(K){var X=K?_.zy(K):"";if(!X)return!1;X=X.toLowerCase();return X.indexOf("/show/")===0||X.indexOf("/playlist")===0&&(K=_.tV(K),K.list&&K.list.indexOf("EL")===0)?!0:!1};
uN=function(K){var X="unknown",F;var P=((F=_.T(K==null?void 0:K.commandMetadata,_.g_))==null?void 0:F.webPageType)||"";P?(F=P.toLowerCase(),F.startsWith("web_page_type_")&&(F=F.slice(14))):F=P;F&&Kdd[F.toUpperCase()]?X=Kdd[F.toUpperCase()]:_.T(K,_.f$)||_.T(K,X9P)?X="browse":_.T(K,_.Dm)?X="search":_.T(K,_.vg)&&(X="watch");X==="watch"&&_.zw(K||null)==="learning_journey_watch"&&(X="learning_journey_watch");X==="unknown"&&_.yy(Error("Gf`"+JSON.stringify({clickTrackingParams:K==null?void 0:K.clickTrackingParams,
commandMetadata:K==null?void 0:K.commandMetadata,allEndpointKeys:Object.keys(K||[])})));return X};
_.qD=function(K){if(!_.Fdy||K)_.Fdy=_.JE();return _.Fdy};
_.Psy=function(K){return!!_.T(K,_.vg)||!!_.T(K,_.J6)&&_.S("kevlar_enable_shorts_prefetch")};
_.H33=function(K,X){K=_.T(K,_.vg)||_.T(K,_.J6);return"v"+K.videoId+(K.playlistId?"-pl"+K.playlistId:"")+(X?"-an1":"")+(K.params?"-pr"+K.params:"")};
Zm=function(K){return function(){return new K}};
Y1=function(K){var X=_.i9();return function(){return X.resolve(K)}};
zlw=function(K){var X=_.kU("web_pbj_log_warning_rate",0);X=X>0&&Math.random()<X;if(!_.T(K,_.J6))return X&&_.yy(Error("Jf")),!1;var F;return _.S("shorts_controller_retrieve_seedless_sequence_v2")&&((F=_.T(K,_.J6))==null?void 0:F.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:s93(K)?!0:(X&&_.yy(Error("Kf")),!1)};
s93=function(K){var X=(_.T(K,_.vg)||_.T(K,_.J6)).videoId;if(!X||!fPy.test(X))return!1;var F;return(K=(F=_.T(K.commandMetadata,_.g_))==null?void 0:F.url)&&(K.includes(X)||K.startsWith("/clip"))?!0:!1};
_.ui9=function(){var K=_.ZO();return K.getFlag(192)?K.getFlag(190):!(_.S("web_watch_cinematics_disabled_by_default")||_.S("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&DlP())};
_.Qh=function(K,X,F){var P={};P.currentUrl=X;P.vis=K.vis!==void 0?K.vis:0;P.splay=!1;X=_.ZO();P.autoCaptionsDefaultOn=X.getFlag(66);X.getFlag(141)?X.getFlag(140)?P.autonavState="STATE_OFF":P.autonavState="STATE_ON":P.autonavState="STATE_NONE";P.html5Preference="HTML5_PREF_WANTS";isNaN(_.e8("STS"))||(P.signatureTimestamp=_.e8("STS"));K.autonav&&(P.autoplay=!0,P.autonav=!0);K.mutedAutoplay&&(P.autoplay=!0,P.mutedAutoplay=!0);K.inlinePlayback&&(P.autoplay=!0,P.autonav=!1,P.isInlineUnmutedPlayback=!!K.inlineUnmuted);
P.referer=F;P.lactMilliseconds=K.lact!==void 0?K.lact.toString():"-1";_.S("enable_unknown_lact_fix_on_html5")&&P.lactMilliseconds==="-1"&&_.yy(new _.nG("Unknown LACT is set in playbackContext.",{"lact in tempData":K.lact||"undefined",autonav:K.autonav||"undefined"}));K={};X.getFlag(194)&&(K.hasShownAmbientMode=!0);X.getFlag(192)&&(K.hasToggledOffAmbientMode=!0);_.ui9()&&(K.watchAmbientModeEnabled=!0);P.watchAmbientModeContext=K;return P};
qT4=function(K){var X={},F=K.pbis||0;F&&(X.playbackBeginsInSeconds=F);K.prefetch_reason&&K.prefetch_reason==="hc_pbis"&&(X.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return X};
_.n$=function(K){K=K===void 0?!1:K;var X=_.ZO(),F="USER_INTERFACE_THEME_LIGHT";X.getFlag(165)?F="USER_INTERFACE_THEME_DARK":X.getFlag(174)?F="USER_INTERFACE_THEME_LIGHT":_.MD()&&(F="USER_INTERFACE_THEME_DARK");return K?F:J1y()||F};
_.Z3M=function(){return!_.S("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.MD=function(){return _.Z3M()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.cI=function(){var K=_.ZO();return _.Z3M()&&!K.getFlag(165)&&!K.getFlag(174)};
J1y=function(){var K=K===void 0?window.location.href:K;if(_.S("kevlar_disable_theme_param"))return null;var X=_.zy(K);if(_.YTP(X))return"USER_INTERFACE_THEME_DARK";try{var F=_.tV(K).theme;return Q9n.get(F)||null}catch(P){}return null};
_.YTP=function(K){return _.S("enable_dark_theme_only_on_shorts")?!(K==null||!K.startsWith("/shorts/")):!1};
_.c13=function(K,X,F,P,H){X=X===void 0?!1:X;F=F===void 0?!1:F;var f=_.e8("INNERTUBE_CONTEXT");if(!f)return _.jF(Error("Nf")),{};f=(0,_.T8.unsafeClone)(f);_.S("web_no_tracking_params_in_shell_killswitch")||delete f.clickTracking;f.client||(f.client={});var u=f.client;u.clientName==="MWEB"&&u.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(u.clientFormFactor=_.e8("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");u.screenWidthPoints=window.innerWidth;u.screenHeightPoints=window.innerHeight;u.screenPixelDensity=
Math.round(window.devicePixelRatio||1);u.screenDensityFloat=window.devicePixelRatio||1;u.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());u.userInterfaceTheme=_.n$();if(!X){var J=_.M44();J&&(u.connectionType=J);_.S("web_log_effective_connection_type")&&(J=cDl())&&(f.client.effectiveConnectionType=J)}var Z;if(_.S("web_log_memory_total_kbytes")&&((Z=_.FP.navigator)==null?0:Z.deviceMemory)){var M;Z=(M=_.FP.navigator)==null?void 0:M.deviceMemory;f.client.memoryTotalKbytes=""+Z*1E6}X&&P&&!_.S("web_it_context_set_original_url_ks")&&
(u.originalUrl=MYy(_.FP.location.href,P).toString());_.S("web_gcf_hashes_innertube")&&(J=ycd())&&(M=J.coldConfigData,Z=J.coldHashData,J=J.hotHashData,f.client.configInfo=f.client.configInfo||{},M&&(f.client.configInfo.coldConfigData=M),Z&&(f.client.configInfo.coldHashData=Z),J&&(f.client.configInfo.hotHashData=J));M=_.tV(_.FP.location.href);!_.S("web_populate_internal_geo_killswitch")&&M.internalcountrycode&&(u.internalGeo=M.internalcountrycode);!_.S("web_populate_client_screen_killswitch")&&H&&(u.clientScreen=
H);u.clientName==="MWEB"||u.clientName==="WEB"?(u.mainAppWebInfo={graftUrl:P||_.FP.location.href},_.S("kevlar_woffle")&&_.p$.instance&&(P=_.p$.instance,u.mainAppWebInfo.pwaInstallabilityStatus=!P.appInstalledEventFired&&P.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),u.mainAppWebInfo.webDisplayMode=Ssy(),u.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):u.clientName==="TVHTML5"&&(!_.S("web_lr_app_quality_killswitch")&&
(P=_.e8("LIVING_ROOM_APP_QUALITY"))&&(u.tvAppInfo=Object.assign(u.tvAppInfo||{},{appQuality:P})),P=_.e8("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(u.tvAppInfo=Object.assign(u.tvAppInfo||{},{certificationScope:P}));!_.S("web_populate_time_zone_itc_killswitch")&&(P=Ycl())&&(u.timeZone=P);(P=UzT())?u.experimentsToken=P:delete u.experimentsToken;u=hb9();P=_.nqy();P=(0,_.T8.getValues)(P.tokenJars);f.request=Object.assign({},f.request,{internalExperimentFlags:u,consistencyTokenJars:P});!_.S("web_prequest_context_killswitch")&&
(u=_.e8("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(f.request.externalPrequestContext=u);P=_.ZO();u=P.getFlag(58);P=P.get("gsml","");f.user=Object.assign({},f.user);u&&(f.user.enableSafetyMode=u);P&&(f.user.lockedSafetyMode=!0);_.S("warm_op_csn_cleanup")?F&&(X=_.AD())&&(f.clientScreenNonce=X):!X&&(X=_.AD())&&(f.clientScreenNonce=X);K&&(f.clickTracking={clickTrackingParams:K});if(K=_.mz("yt.mdx.remote.remoteClient_"))f.remoteClient=K;_.BI.getInstance().setLocationOnInnerTubeContext(f);try{var n=ghy(),
c=n.bid;delete n.bid;f.adSignalsInfo={params:[],bid:c};for(var B=_.D(Object.entries(n)),L=B.next();!L.done;L=B.next()){var A=_.D(L.value),d=A.next().value,R=A.next().value;n=d;c=R;K=void 0;(K=f.adSignalsInfo.params)==null||K.push({key:n,value:""+c})}var l,a;if(((l=f.client)==null?void 0:l.clientName)==="TVHTML5"||((a=f.client)==null?void 0:a.clientName)==="TVHTML5_UNPLUGGED"){var E=_.e8("INNERTUBE_CONTEXT");E.adSignalsInfo&&(f.adSignalsInfo.advertisingId=E.adSignalsInfo.advertisingId,f.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",f.adSignalsInfo.limitAdTracking=E.adSignalsInfo.limitAdTracking)}}catch(V){_.jF(V)}return f};
_.p9T=function(K){var X=new S0(_.e8("ONE_PICK_URL",""));X.urlParamMap_.set("hostId",K);(K=_.e8("GAPI_LOCALE"))&&X.urlParamMap_.set("hl",K);(K=_.e8("SESSION_INDEX"))&&X.urlParamMap_.set("authuser",K);(K=_.e8("DELEGATED_SESSION_ID"))&&X.urlParamMap_.set("groupId",K);return X};
STw=function(){var K=_.i9(),X=K.resolve(_.oj);K=K.resolve(_.L$);return new BAP(X,K)};
LdT=function(K){if(window.IntersectionObserver)return new oql(K,400);throw new TypeError("Uf");};
r1w=function(){var K=Hammer.TouchAction,X=K.prototype.preventDefaults;K.prototype.preventDefaults=function(F){var P=this.actions.indexOf("pan-down")>-1;if(!P)return X.call(this,F);if(!TAl){var H=F.srcEvent;F=F.direction;var f;if((f=this.manager)==null?0:f.session.prevented)H.preventDefault();else if(P&&F&Hammer.DIRECTION_DOWN)return this.preventSrc(H)}}};
A1l=function(K){if(!K||K.size===0)return Hammer.DIRECTION_ALL;if(K.size===2){if(K.has("up")&&K.has("down"))return Hammer.DIRECTION_VERTICAL;if(K.has("right")&&K.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(K.size===1){if(K.has("up"))return Hammer.DIRECTION_UP;if(K.has("down"))return Hammer.DIRECTION_DOWN;if(K.has("right"))return Hammer.DIRECTION_RIGHT;if(K.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.w99=function(){return j93?Promise.resolve(j93):new Promise(function(K,X){var F=self.indexedDB.open("swpushnotificationsdb");F.onerror=X;F.onsuccess=function(){var P=F.result;if(P.objectStoreNames.contains("swpushnotificationsstore"))j93=P,K(j93);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.w99()};
F.onupgradeneeded=y1P})};
y1P=function(K){K=K.target.result;K.objectStoreNames.contains("swpushnotificationsstore")&&K.deleteObjectStore("swpushnotificationsstore");K.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
dly=function(K){var X=WdM(),F;return _.q(function(P){switch(P.nextAddress){case 1:return _.s2(P,2),_.Y(P,K.match(X,{cacheName:"yt-appshell-assets"}),4);case 4:F=P.yieldResult;_.Gy(P,3);break;case 2:_.qc(P);case 3:return P.return(F)}})};
WdM=function(){var K=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?el9.registration.scope:RlM;K.endsWith("/")&&(K=K.slice(0,-1));return K+"/app_shell_home"};
Ul3=function(K){K.map(function(X){return X.source}).join("|")};
_.hlM=function(K){return _.q(function(X){return X.return(dly(K))})};
mlq=function(){var K=window.caches,X;return _.q(function(F){if(F.nextAddress==1)return _.Y(F,_.hlM(K),2);X=F.yieldResult;return F.return(!!X)})};
O3y=function(){_.q(function(K){if(K.nextAddress==1){if(GKO)return K.jumpTo(0);GKO=!0;if(_.S("enable_system_health_primes_monitoring"))return _.Hm(lP3,3E4),vqO(),K.return();if(!(Math.random()<_.kU("web_system_health_fraction")))return K.jumpTo(0);aPM={heightPixels:screen.height,widthPixels:screen.width};Tw&&!isNaN(Tw.jsHeapSizeLimit)&&(aPM.memoryTotalKbytes=String(Math.round(Tw.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(aPM.devicePixelRatio=window.devicePixelRatio);return _.Y(K,tYM(),4)}_.Hm(lP3,
3E4);return _.Y(K,$l9(),0)})};
tYM=function(){return _.q(function(K){if(K.nextAddress==1)return rq.intersectionObserverPresent="IntersectionObserver"in window,rq.serviceWorkerPresent="serviceWorker"in navigator,rq.webSharePresent="share"in navigator,rq.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,rq.cacheStoragePresent="caches"in window,rq.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,rq.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
rq.webkitTemporaryStoragePresent="webkitTemporaryStorage"in A6&&A6.webkitTemporaryStorage&&"queryUsageAndQuota"in A6.webkitTemporaryStorage,rq.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.Y(K,CXP(),2);rq.indexedDbPresent=K.yieldResult;rq.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;rq.broadcastChannelPresent="BroadcastChannel"in window;rq.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(rq.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,rq.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.JT(K)})};
lP3=function(){var K=9E4+Math.random()*2E3;_.xg()>K||(_.S("enable_system_health_primes_monitoring")?vqO():$l9())};
$l9=function(){var K;return _.q(function(X){if(X.nextAddress==1)return _.Y(X,VYT(),2);K=X.yieldResult;_.LL("systemHealthCaptured",K);_.JT(X)})};
vqO=function(){var K={metric:{}},X=gqy();X.networkEvents.length&&(K.metric.networkEvents=EqP(X));_.LL("systemHealthCaptured",K)};
VYT=function(){var K,X,F,P,H,f,u,J,Z,M;return _.q(function(n){switch(n.nextAddress){case 1:K={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)};X=window.screen;_.S("enable_is_extended_monitoring")&&X&&"isExtended"in X&&(K.isExtended=!!X.isExtended);F={metric:{staticContext:aPM,dynamicContext:K,webMetric:b3y,webApiSupport:rq}};
if(P=_.AD())F.csn=P;Tw&&(F.metric.webMetric.currentHeapKbytes=Math.round(Tw.usedJSHeapSize/1E3));window.matchMedia&&(F.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,F.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,F.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in A6&&typeof A6.getBattery==="function")){n.jumpTo(2);break}return _.Y(n,A6.getBattery(),3);case 3:if(H=
n.yieldResult)F.metric.dynamicContext.chargingStatus=H.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(F.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(rq.storageEstimatePresent)return _.Y(n,navigator.storage.estimate(),8);if(!rq.webkitTemporaryStoragePresent){n.jumpTo(5);break}return _.Y(n,Cs3(),7);case 7:f=n.yieldResult;n.jumpTo(5);break;case 8:f=n.yieldResult;case 5:return F.metric.dynamicContext.deviceStorageQuotaMbytes=((u=f)==null?0:u.quota)?String(Math.round(f.quota/
1048576/10)*10):"-1",F.metric.dynamicContext.deviceStorageUsageMbytes=((J=f)==null?0:J.usage)?String(Math.round(f.usage/1048576/10)*10):"-1",Z=F.metric.dynamicContext,_.Y(n,mlq(),9);case 9:return Z.hasAppShell=n.yieldResult,M=gqy(),M.networkEvents.length&&(F.metric.networkEvents=EqP(M)),n.return(F)}})};
Cs3=function(){return new Promise(function(K){var X;rq.webkitTemporaryStoragePresent&&(X=A6.webkitTemporaryStorage)!=null&&X.queryUsageAndQuota?A6.webkitTemporaryStorage.queryUsageAndQuota(function(F,P){K({usage:F,quota:P})}):K(void 0)})};
_.j0=function(K){K&=16777215;K=[(K&16711680)>>16,(K&65280)>>8,K&255];return NAd(K[0],K[1],K[2])};
_.wq=function(K){K=[(K&16711680)>>>16,(K&65280)>>>8,K&255,(K&4278190080)>>>24];var X=_.i3y(K,function(F){return F==(F&255)});
K[3]=(K[3]/255).toFixed(3);if(!X)throw Error("Vf`"+K.join(","));return"rgba("+K.join(",")+")"};
_.xly=function(K){return[(K&16711680)>>>16,(K&65280)>>>8,K&255]};
_.IPd=function(K){K=K.map(function(X){X/=255;return X<=.03928?X/12.92:Math.pow((X+.05)/1.05,2.4)});
return K[0]*.2126+K[1]*.7152+K[2]*.0722};
yh=function(K,X){K=_.xly(K);return"rgba("+K[0]+", "+K[1]+", "+K[2]+", "+X+")"};
_.kKT=function(){try{return!!self.localStorage}catch(K){return!1}};
Pdy=function(){if(KEP())_.yy(Error("Wf"));else{var K=document.createElement("iframe");K.style.display="none";var X=X===void 0?window.location.href:X;var F=_.jt(_.e8("PERSIST_IDENTITY_IFRAME_URL"));X=F?F:(new URL(X)).host.indexOf("studio")===0?_.Xs(XC4,"persist_identity"):_.Xs(FEy,"persist_identity");_.pJn(K,1,X);K.id="persist_identity";var P;(P=document.body)==null||P.appendChild(K)}};
KEP=function(){var K=HAO;K||(K=document.querySelector("#persist_identity"));return K};
sWn=function(){var K=!1;try{K=!!window.sessionStorage.getItem("session_logininfo")}catch(X){K=!0}return(_.e8("INNERTUBE_CLIENT_NAME")==="WEB"||_.e8("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&K};
zkP=function(K,X){if(!sWn())return!1;X||(X=_.e8("LOGIN_INFO"));return X?(K.session_logininfo=X,!0):!1};
DhT=function(K,X){K=K===void 0?!1:K;if((X===void 0||!X)&&fDl!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.RU("LOG_STICKINESS",!1)){X=_.AD();var F=_.r_(),P={identityStickinessData:{initialState:fDl}};X&&F&&_.tc(X,F,P)}if(X=KEP())if(F=X.src?(new URL(X.src)).origin:"*",K){var H;(H=X.contentWindow)==null||H.postMessage({action:"clear"},F)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(K=window.sessionStorage.getItem("session_logininfo"))){var f;(f=X.contentWindow)==null||f.postMessage({loginInfo:K},F)}};
_.WI=function(K){K=K===void 0?!0:K;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.d2("LOGIN_INFO",""),K&&window.sessionStorage.setItem("from_switch_account","1"),DhT(!0,K)}catch(X){}};
uaP=function(K){K&&(K.startsWith("https://accounts.google.com/AddSession")?_.WI():K.startsWith("https://accounts.google.com/ServiceLogin")?_.WI():K.startsWith("https://myaccount.google.com")&&_.az(K).getPath().endsWith("/youtubeoptions")&&_.WI())};
e0=function(K,X){uaP(K);if(_.RU("LOGGED_IN",!0)&&sWn()){var F=DET(K);F==null&&(F={});zkP(F,X)&&_.Oc(K,F)}};
q6T=function(){function K(X){for(X=X.target;X&&X.nodeName!=="A";)if(X=X.parentNode,!(X&&X instanceof HTMLElement))return;if(X&&!X.hasAttribute("download")&&X.getAttribute("rel")!=="external"&&X.href)return X.href}
document.addEventListener("mousedown",function(X){X.button!==0&&(X=K(X))&&e0(X)});
document.addEventListener("click",function(X){(X=K(X))&&e0(X)})};
Y6d=function(){var K=new Jjd;try{if(_.RU("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(J){K.increment(5,!1);return}if(_.e8("LOGIN_INFO")){var X=ZAP?ZAP:window.location;_.e8("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&Pdy();var F=DET(X.href);F==null&&(F={});var P=F.session_logininfo,H=Number(window.sessionStorage.getItem("stickiness_reload")),f=P===_.e8("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
H>=2||f)H>=2?K.increment(2,f):f?K.increment(7,f):window.sessionStorage.getItem("session_logininfo")||(K.increment(3,f),fDl="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.e8("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.e8("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))K.increment(4,f),window.sessionStorage.removeItem("stickiness_reload");
else if(H<2){window.sessionStorage.setItem("stickiness_reload",String(H+1));var u=X.href;u=_.Vn(u,"sttick");e0(u,window.sessionStorage.getItem("session_logininfo"));u=_.$U(u,{sttick:H});K.increment(H,f);_.Ev(X,u)}}else K.increment(6,!1)}else _.WI(!1)}catch(J){}};
_.Rj=function(K,X,F,P,H){X=X===void 0?{}:X;F=F===void 0?"":F;P=P===void 0?window:P;K=_.ON(K,X);e0(K);F=_.ps(K+F,H);_.Ev(P.location,F)};
_.QWy=function(K,X,F,P,H){H=H===void 0?!1:H;F&&_.Oc(K,F);F=_.ps(K);var f=_.Qz(F);K!=f&&_.Gr(Error("Xf`"+K));K=f;X=X||RJ(K).toString(36);try{if(H)return H=K,H=Tqy(H),e0(H),_.ei(window,H,X,"attributionsrc")}catch(u){_.UN(u)}e0(K);return _.ei(window,F,X,P)};
MnP=function(K){if(K.urlEndpoint){if(K=_.tV(K.urlEndpoint.url),K.adurl)return C9(K.adurl)}else if(K.watchEndpoint)return"//www.youtube.com/watch?v="+K.watchEndpoint.videoId;return null};
nWd=function(K){if(!K||!K.reportingPings)return null;var X={};K.reportingPings.forEach(function(F){F.pingType in X?X[F.pingType].push(F.url):X[F.pingType]=[F.url]});
return{adpings:ohn(X)}};
_.Um=function(){return{isShellLoad:_.RU("IS_SHELL_LOAD",!1)}};
pCn=function(){navigator.serviceWorker.getRegistrations().then(function(K){K.forEach(cjT)})};
cjT=function(K){K&&_.BK3(S6P,K.scope)};
_.BK3=function(K,X){X={scope:X||_.KG("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.ui(K),X)};
h6=function(K,X,F,P){if(X&&X.serializedYpcCujLoggingParams){if(F){var H={};H.transactionErrorType=F;P&&(H.errorMessage=P);X.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:H}}}F={};F.ypcCujContext=X;K=_.XN("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",K,F);_.FN(_.PI(),K,"FLOW_TYPE_YPC_ACQUISITION")}};
_.oWd=function(K,X,F,P){var H={};H.serializedTransactionFlowLoggingParams=X;F&&(H.errorType=F);P&&(H.errorMessage=P);_.LL(K,H);_.A_()};
_.LEw=function(K){K&&_.oWd("transactionFlowStarted",K)};
_.TKl=function(K){K&&_.oWd("transactionFlowCancelled",K)};
_.m5=function(K,X,F){X&&_.oWd("transactionFlowFailed",X,K,F)};
rj9=function(K){if(_.S("enable_setting_app_inert_when_buy_flow_opens")){var X=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");X&&(X.inert=K)}};
_.Gw=function(){this.megabloxUrl_=null};
_.lN=function(K){try{var X=Ajy==null?void 0:Ajy.composedPath(K)}catch(F){X=K.composedPath?K.composedPath():[]}return X&&X.length>0?X:K.composedPath?K.composedPath():[]};
_.vI=function(K){return _.lN(K)[0]};
_.aj=function(K){if(!(K instanceof Element))return null;K=K.classList?Array.from(K.classList):void 0;if(!K)return null;var X=K.indexOf("style-scope");return X>-1&&X+1<K.length?K[X+1]:null};
t6=function(K){if(!(K instanceof HTMLElement))return null;var X=K&&(K.$$||K.polymerController)?K.tagName.toLowerCase():null;return X?X:_.aj(K)};
jW4=function(K,X){return K.replace(/[^a-z]*[^\s]+/g,function(F){return F+".style-scope."+X})};
wCM=function(K,X){return X?K.split(",").map(function(F){return jW4(F.trim(),X)}).join(", "):K};
_.$1=function(K){var X,F,P,H;return(H=(P=(F=(X=K.root)!=null?X:K.shadowRoot)!=null?F:K.__shady_native_shadowRoot)!=null?P:K.__shady_shadowRoot)!=null?H:K};
Om=function(K){return K instanceof ShadowRoot?ShadowRoot:K instanceof DocumentFragment?DocumentFragment:K instanceof Document?Document:HTMLElement};
yj9=function(K){var X,F,P;return(P=(F=(X=K.parentElement)!=null?X:K.__shady_native_parentElement)!=null?F:K.__shady_parentElement)!=null?P:null};
WEq=function(K){var X,F,P;return(P=(F=(X=K.parentNode)!=null?X:K.__shady_native_parentNode)!=null?F:K.__shady_parentNode)!=null?P:null};
dhy=function(K){var X,F,P;return(P=(F=(X=K.__shady_parentNode)!=null?X:K.__shady_native_parentNode)!=null?F:K.parentNode)!=null?P:null};
ekO=function(K){var X,F;return(F=(X=WEq(K))!=null?X:K.host)!=null?F:null};
Rky=function(K){var X,F,P;return(P=(F=(X=K.nextSibling)!=null?X:K.__shady_native_nextSibling)!=null?F:K.__shady_nextSibling)!=null?P:null};
Uh9=function(K){var X,F,P;return(P=(F=(X=K.previousSibling)!=null?X:K.__shady_native_previousSibling)!=null?F:K.__shady_previousSibling)!=null?P:null};
hkd=function(K){var X,F,P;return(P=(F=(X=K.nextElementSibling)!=null?X:K.__shady_native_nextElementSibling)!=null?F:K.__shady_nextElementSibling)!=null?P:null};
mhl=function(K){var X,F,P;return(P=(F=(X=K.previousElementSibling)!=null?X:K.__shady_native_previousElementSibling)!=null?F:K.__shady_previousElementSibling)!=null?P:null};
G_w=function(K){var X,F,P;return new Set([].concat(_.LZ((X=K.children)!=null?X:[]),_.LZ((F=K.__shady_native_children)!=null?F:[]),_.LZ((P=K.__shady_children)!=null?P:[])))};
lDT=function(K){var X,F,P;return new Set([].concat(_.LZ((X=K.childNodes)!=null?X:[]),_.LZ((F=K.__shady_native_childNodes)!=null?F:[]),_.LZ((P=K.__shady_childNodes)!=null?P:[])))};
vWl=function(K){if(!K)return null;var X=_.aj(K);if(!X){var F;return(F=Node.prototype.getRootNode)==null?void 0:F.call(K)}X=X.toUpperCase();for(K=yj9(K);K&&K.tagName!==X;)K=yj9(K);return K?_.$1(K):null};
aDP=function(K){for(;K&&!(K instanceof HTMLElement);)K=ekO(K);return K};
tnw=function(K){var X=aDP(K);return K===X?_.aj(K):X?t6(X):null};
$hP=function(K){return(K=aDP(K))?t6(K):null};
OA9=function(K){if(K instanceof Comment)return!1;if(K instanceof Text){var X,F;if(((F=(X=K.textContent)==null?void 0:X.trim())!=null?F:"")==="")return!1}return!0};
Vh=function(K,X,F){var P=X(K);for(F=F===void 0?$hP(K):F;P&&(tnw(P)!==F||!OA9(P));)K=P,P=X(K);return P};
Vnq=function(K,X,F){if(!X)return null;K=$hP(K);return tnw(X)===K&&OA9(X)?X:Vh(X,F,K)};
gWO=function(K){return Vh(K,dhy,_.aj(K))};
EWy=function(K){return Vh(K,hkd)};
bA3=function(K){return Vh(K,Rky)};
Cd9=function(K){return Vh(K,mhl)};
NKT=function(K){return Vh(K,Uh9)};
iAl=function(K){return Vnq(K,K.firstChild||K.__shady_native_firstChild||K.__shady_firstChild||null,Rky)};
xhn=function(K){var X,F,P;var H=(P=(F=(X=K.firstElementChild)!=null?X:K.__shady_native_firstElementChild)!=null?F:K.__shady_firstElementChild)!=null?P:null;return Vnq(K,H,hkd)};
IDP=function(K){var X,F,P;var H=(P=(F=(X=K.lastChild)!=null?X:K.__shady_native_lastChild)!=null?F:K.__shady_lastChild)!=null?P:null;return Vnq(K,H,Uh9)};
k_M=function(K){var X,F,P;var H=(P=(F=(X=K.lastElementChild)!=null?X:K.__shady_native_lastElementChild)!=null?F:K.__shady_lastElementChild)!=null?P:null;return Vnq(K,H,mhl)};
KYT=function(K){var X=$hP(K);return Array.from(lDT(K)).filter(function(F){return tnw(F)===X})};
XR4=function(K){var X=t6(K);return Array.from(G_w(K)).filter(function(F){return _.aj(F)===X})};
_.gq=function(K,X,F){if(K instanceof HTMLElement&&_.aj(K)===F){var P=Array.from(K.classList).indexOf("style-scope");if(P===-1)K.classList.add("style-scope"),K.classList.add(X);else if(!(P+1>=K.classList.length)){P=K.classList[P+1];var H,f;K==null||(H=K.classList)==null||(f=H.replace)==null||f.call(H,P,X)}}if(K instanceof HTMLElement||K instanceof DocumentFragment)for(H=_.D(G_w(K)),f=H.next();!f.done;f=H.next())_.gq(f.value,X,F);return K};
Em=function(K,X){if(K instanceof HTMLElement&&_.aj(K)===X){var F=Array.from(K.classList).indexOf("style-scope");F===-1||F+1>=K.classList.length||K.classList.remove("style-scope",K.classList[F+1])}if(K instanceof HTMLElement||K instanceof DocumentFragment){F=_.D(K.children);for(var P=F.next();!P.done;P=F.next())Em(P.value,X)}return K};
_.FY3=function(K,X){return Om(K).prototype.appendChild.call(K,X)};
PqP=function(K,X){if(K===X)return!0;K=lDT(K);return Array.from(K).some(function(F){return PqP(F,X)})};
_.C$=function(K,X){if(K instanceof bN)return K;(X==null?0:X.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(K,"ownerDocument")&&Object.defineProperty(K,"ownerDocument",{get:function(){return window.document}});
return new bN(K)};
sXl=function(){var K=bN.prototype,X=[].concat(_.LZ(HfT?[]:["getRootNode"]),["setAttribute","removeAttribute"]);X=_.D(X);for(var F=X.next(),P={};!F.done;P={method$jscomp$48:void 0},F=X.next())P.method$jscomp$48=F.value,K[P.method$jscomp$48]=function(H){return function(){return this.host[H.method$jscomp$48].apply(this.host,arguments)}}(P)};
fYP=function(){var K=bN.prototype,X=[].concat(_.LZ(HfT?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.LZ(zvd?[]:["querySelector","querySelectorAll"]));X=_.D(X);for(var F=X.next(),P={};!F.done;P={method$jscomp$49:void 0},F=X.next())P.method$jscomp$49=F.value,K[P.method$jscomp$49]=function(H){return function(){return this.root[H.method$jscomp$49].apply(this.root,arguments)}}(P)};
qIl=function(){var K=bN.prototype,X=[].concat(_.LZ(DSq?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.LZ(uMy?[]:["parentNode"]));X=_.D(X);for(var F=X.next(),P={};!F.done;P={prop$jscomp$62:void 0},F=X.next())P.prop$jscomp$62=F.value,Object.defineProperty(K,P.prop$jscomp$62,{get:function(H){return function(){return this.host[H.prop$jscomp$62]}}(P),
configurable:!0})};
YIl=function(){var K=bN.prototype,X=["activeElement"].concat(_.LZ(DSq?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.LZ(Jl3?[]:["children"]),_.LZ(Zfl?[]:["lastChild"]));X=_.D(X);for(var F=X.next(),P={};!F.done;P={prop$jscomp$63:void 0},F=X.next())P.prop$jscomp$63=F.value,Object.defineProperty(K,P.prop$jscomp$63,{get:function(H){return function(){return this.root[H.prop$jscomp$63]}}(P),
configurable:!0})};
QX4=function(){for(var K=bN.prototype,X=_.D(["innerHTML","textContent"]),F=X.next(),P={};!F.done;P={prop$jscomp$64:void 0},F=X.next())P.prop$jscomp$64=F.value,Object.defineProperty(K,P.prop$jscomp$64,{get:function(H){return function(){return this.root[H.prop$jscomp$64]}}(P),
set:function(H){return function(f){this.root[H.prop$jscomp$64]=f}}(P),
configurable:!0})};
M1n=function(K){var X=bN.prototype;K=_.D(Object.entries(K));for(var F=K.next(),P={};!F.done;P={fn$jscomp$359:void 0},F=K.next()){var H=_.D(F.value);F=H.next().value;H=H.next().value;P.fn$jscomp$359=H;X[F]=function(f){return function(){return f.fn$jscomp$359.apply(null,[this.host.node||this.host].concat(_.LZ(arguments)))}}(P)}};
cl9=function(){for(var K=bN.prototype,X=_.D(Object.entries(nzn)),F=X.next(),P={};!F.done;P={fn$jscomp$360:void 0},F=X.next()){var H=_.D(F.value);F=H.next().value;H=H.next().value;P.fn$jscomp$360=H;Object.defineProperty(K,F,{get:function(f){return function(){return f.fn$jscomp$360.apply(null,[this.host.node||this.host].concat(_.LZ(arguments)))}}(P),
configurable:!0})}};
_.ND=function(K){return K instanceof pRO||K instanceof Document?K:new pRO(K)};
BrP=function(){for(var K=pRO.prototype,X=_.D("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),F=X.next(),P={};!F.done;P={method$jscomp$50:void 0},F=X.next())P.method$jscomp$50=F.value,K[P.method$jscomp$50]=function(H){return function(){return HTMLElement.prototype[H.method$jscomp$50].call.apply(HTMLElement.prototype[H.method$jscomp$50],[this.node].concat(_.LZ(arguments)))}}(P)};
SIy=function(){for(var K=pRO.prototype,X=_.D("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),F=X.next(),P={};!F.done;P={prop$jscomp$65:void 0},F=X.next())P.prop$jscomp$65=F.value,Object.defineProperty(K,P.prop$jscomp$65,{get:function(H){return function(){var f;return(f=this.node["__shady_native_"+H.prop$jscomp$65])!=null?f:this.node[H.prop$jscomp$65]}}(P),
configurable:!0})};
_.iN=function(K,X,F){F===void 0&&(F=!K.classList.contains(X));F?K.classList.add(X):K.classList.remove(X)};
_.x1=function(K,X,F){F===void 0&&(F=!K.hasAttribute(X));if(X==="class")throw Error("ag");F?_.ND(K).setAttribute(X,""):_.ND(K).removeAttribute(X)};
ozy=function(K){return(K.localName!=="slot"?[]:(0,_.Ka)(K).assignedNodes({flatten:!0})).filter(function(X){return X.nodeType===Node.ELEMENT_NODE})};
_.LYd=function(K){return(K=_.C$(K).querySelector("slot"))&&K.localName==="slot"?ozy(K):[]};
_.XU=function(K,X){window.ShadyCSS&&window.ShadyCSS.styleSubtree(K,X)};
FU=function(K,X){var F=X.bind(K);return function(P){F(P,P.detail)}};
_.Pc=function(K,X){var F=Trl.get(K);F||(F=new WeakMap,Trl.set(K,F));if(F.has(X))return F.get(X);if(_.S("web_fi_listen_disable_bound_fn_helper")){var P=X.bind(K);K=function(H){P(H,H==null?void 0:H.detail)}}else K=FU(K,X);
F.set(X,K);return K};
jX3=function(K,X){rld(K);K.created[Aly].push(X)};
rld=function(K){if(!K.created||!K.created[Aly]){var X=K.created,F=X?[X]:[];K.created=function(){for(var P=_.D(F),H=P.next();!H.done;H=P.next())H.value.apply(this)};
K.created[Aly]=F}};
wRy=function(K){return function(){var X=_.Ls.apply(0,arguments);return function(F,P,H){K.apply(null,_.LZ(X))(F,P,H)}}};
ylM=function(){return function(){var K=_.Ls.apply(0,arguments);return function(X,F,P){WlO.apply(null,_.LZ(K))(X,F,P)}}};
_.W=function(K){return ylM()(K)};
_.U=function(){return wRy(ULd).apply(null,_.LZ(_.Ls.apply(0,arguments)))};
_.Hc=function(K){return _.S("pbcm_fi_listen_decorators")?WYP(K):wRy(eUP)(K)};
WYP=function(K){return function(X,F){jX3(X,function(){var P=this[F],H=_.S("web_fi_listen_disable_bound_fn_helper")?function(f){P(f,f.detail)}.bind(this):FU(this,P);
dSO.has(K)?TB(this.hostElement,K,H):this.hostElement.addEventListener(K,H)})}};
_.so=function(){return wRy(RUM).apply(null,_.LZ(_.Ls.apply(0,arguments)))};
_.h=function(K){K=K===void 0?{}:K;return wRy(dLM)(K)};
_.zb=function(K){if(K.hostElement&&K!==K.hostElement){var X=_.cg(K.hostElement);X=K.renderIdom?X:X.shadowRoot}X||(K=K.root,X=K instanceof Node?_.cg(K):null);return X};
_.fa=function(K){return evO?Rvy(K):function(X,F){Object.defineProperty(X,F,{get:function(){var P;return(P=_.zb(this))==null?void 0:P.querySelector(K)},
enumerable:!0,configurable:!0})}};
Rvy=function(K){return function(X,F){Object.defineProperty(X,F,{get:function(){var P,H=(P=_.C$(this.hostElement))==null?void 0:P.querySelector(K);if(H)return H;var f;return(f=_.zb(this))==null?void 0:f.querySelector(K)},
enumerable:!0,configurable:!0})}};
_.DA=function(K){return evO?USP(K):function(X,F){Object.defineProperty(X,F,{get:function(){var P;return(P=_.zb(this))==null?void 0:P.querySelectorAll(K)},
enumerable:!0,configurable:!0})}};
USP=function(K){return function(X,F){Object.defineProperty(X,F,{get:function(){var P,H=(P=_.C$(this.hostElement))==null?void 0:P.querySelectorAll(K);if(H==null?0:H.length)return H;var f;return(f=_.zb(this))==null?void 0:f.querySelectorAll(K)},
enumerable:!0,configurable:!0})}};
hvw=function(K){return function(X){if(![_.VF,_.G].includes(Object.getPrototypeOf(X.prototype).constructor))throw Error("bg");oAO(Object.assign({},typeof K!=="string"?K:{is:K,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(X)}};
_.qY=function(){var K=K===void 0?{}:K;return function(X){if(![gg,_.ub].includes(Object.getPrototypeOf(X.prototype).constructor))throw Error("cg");Lld(Object.assign({},K,{disableInheritanceCheck:!0}))(X)}};
GZT=function(K,X){mSq[K]!=null||(mSq[K]=new Set);mSq[K].add(X)};
_.JA=function(){var K=_.so.apply(null,_.LZ(_.Ls.apply(0,arguments)));return function(X,F){GZT(X.is,F);K(X,F)}};
QQ=function(K,X,F){if(ZA(K)&&!lYP.has(X)){X=X.replace(/^JSC\$[\d]+_/,"");X=X.replace(/\.\d+(\.|$)/g,function(f,u){return".#"+u});
Yc[K]!=null||(Yc[K]={});var P,H;(P=Yc[K])[H=X]!=null||(P[H]=new Set);Yc[K][X].has(F)||(Yc[K][X].add(F),_.LL("polymerPropertyAccessEvent",{componentName:K,propertyName:X,accessType:F}))}};
vzT=function(){return _.S("polymer_property_access_logging_debug")||_.S("polymer_enable_property_access_logging")};
ZA=function(K){if(_.S("polymer_property_access_logging_debug"))return!0;if(!_.S("polymer_enable_property_access_logging"))return!1;aYT||(aYT=Date.now());return(RJ(K)+aYT)%100<_.kU("polymer_property_access_logging_percent")};
t1P=function(K,X){return ZA(X)&&K.hostElement.loggingStatus?new Proxy(K,{get:function(F,P,H){if(F.hostElement.loggingStatus.bypassProxyController)return F[P];F.hostElement.loggingStatus.isExternalGet=!0;var f=F[P];F.hostElement.loggingStatus.isExternalGet=!1;if(f instanceof Function)return function(){var u=_.Ls.apply(0,arguments);try{return F.hostElement.loggingStatus.currentExternalCall=P,QQ(X,P,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),f.apply(this===H?F:this,u)}finally{F.hostElement.loggingStatus.currentExternalCall=
void 0}};
QQ(X,P,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return f},
set:function(F,P,H){if(F.hostElement.loggingStatus.bypassProxyController)return F[P]=H,!0;F.hostElement.loggingStatus.isRendererStamper?QQ(X,P,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):F.hostElement.loggingStatus.isDeclarativeExternal||QQ(X,P,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{F.hostElement.loggingStatus.currentExternalSet=P,F[P]=H}finally{F.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):K};
$S3=function(K,X){K&&K.loggingStatus&&!K.loggingStatus.isDeclarativeExternal&&!K.loggingStatus.isExternalGet&&K.loggingStatus.currentExternalSet!==X&&QQ(K.tagName.toLowerCase(),X,"PROPERTY_ACCESS_GET_INTERNAL")};
MY=function(K,X,F){K&&(F||K.loggingStatus&&!K.loggingStatus.isInitializing&&!K.loggingStatus.isDefiningPropertyAccessor&&K.loggingStatus.currentExternalSet!==X)&&QQ(K.tagName.toLowerCase(),X,"PROPERTY_ACCESS_SET_INTERNAL")};
OfO=function(){return{_definePropertyAccessor:function(K,X){var F=this,P=F.hostElement.loggingStatus;P&&(P.isDefiningPropertyAccessor=!0);var H=F[K];H!==void 0&&(F.__data?F._setPendingProperty(K,H):(F.__dataProto!=null||(F.__dataProto={}),F.__dataProto[K]=H));P&&(P.isDefiningPropertyAccessor=!1);Object.defineProperty(this,K,{get:function(){$S3(F.hostElement,K);return this.__data[K]},
set:function(f){X||this._setPendingProperty(K,f,!0)&&this._invalidateProperties()}})},
created:function(){var K=this._setPendingProperty.bind(this);this._setPendingProperty=function(X,F,P){MY(this.hostElement,X);return K.apply(this,[X,F,P])}}}};
V1P=function(K){vzT()&&_.W(na.prototype)(K.prototype,"__templateBindingLoggingBehavior")};
gzy=function(K,X){if(X.resolvedFactories.length!==K.resolvedFactories.length)return!0;X=_.D(X.resolvedFactories.entries());for(var F=X.next();!F.done;F=X.next()){var P=_.D(F.value);F=P.next().value;P=P.next().value;if(P.providerClass){if(P.providerClass!==K.resolvedFactories[F].providerClass)return!0}else if(P.providerValue){if(P.providerValue!==K.resolvedFactories[F].providerValue)return!0}else if(P.factory!==K.resolvedFactories[F].factory)return!0}return!1};
EzM=function(K,X){K=_.D(K);for(var F=K.next();!F.done;F=K.next())if(F=F.value,F.constructor===Array)EzM(F,X);else{var P=X;P.has(F)||(F.inject&&P.add(F),F.behaviors&&EzM(F.behaviors,P))}};
cc=function(K,X){var F=K[X];K[X]=function(){var P=_.Ls.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(F)return F.apply(this,P)}};
if3=function(){_.pa.Class=function(F,P){F=bfT(F,P);cc(F.prototype,"created");return F};
cc(Bc.prototype,"_initializeProperties");cc(_.Su.prototype,"_initializeProperties");if(CqP)cc(NrP,"created");else{var K=function(){cc(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))K();else{var X=customElements.define;customElements.define=function(F,P,H){X.call(customElements,F,P,H);F==="tp-yt-iron-list"&&(K(),customElements.define=X)}}}};
IYM=function(K,X){K.prototype.behaviors=K.prototype.behaviors||[];K.prototype.behaviors.unshift(xSP.InjectBehavior);K.prototype.provide=X};
_.Tb=function(K){return function(X){if(!K.disableElementRegistration){K.noInjection||IYM(X,K.providers);var F=X.prototype;F.__templateHelpers||WlO(og.prototype)(F,"__templateHelpers");F=K.is;kZ9||(kZ9=Date.now());(RJ(F)+kZ9)%100<_.kU("polymer_log_prop_change_observer_percent")&&WlO(La.prototype)(X.prototype,"__propertyObserverObserver");X.prototype.behaviors=X.prototype.behaviors||[];X.prototype.behaviors.unshift(_.Krn.YtHostElementBehavior);V1P(X);hvw({is:K.is,notifyObserversOnUndefined:K.notifyObserversOnUndefined!==
!1,fastInit:K.fastInit,template:K.template,disableEnforceFastDefaultValuesCheck:!0})(X)}}};
_.v=function(K){return _.Tb({is:K.is,template:K.template,disableElementRegistration:K.disableElementRegistration,cssBuildOptOut:K.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
PJy=function(K,X){if(XYP){K=new K;for(var F=_.D(Object.getOwnPropertyNames(K)),P=F.next();!P.done;P=F.next())P=P.value,X[P]=K[P];for(F=X;F&&F!==Object.prototype;F=Object.getPrototypeOf(F)){P=_.D(Object.getOwnPropertyNames(F));for(var H=P.next();!H.done;H=P.next())H=H.value,K.hasOwnProperty(H)||Object.defineProperty(K,H,Fry(X,H))}}else K.apply(X)};
Fry=function(K,X){return{get:function(){var F=K[X];return F instanceof Function?F.bind(K):F},
set:function(F){K[X]=F}}};
sBT=function(K,X){for(var F=K._noAccessors,P=_.D(Object.getOwnPropertyNames(K)),H=P.next();!H.done;H=P.next())if(H=H.value,!H5T.has(H))if(F)X[H]=K[H];else{var f=Object.getOwnPropertyDescriptor(K,H);f&&(f.configurable=!0,Object.defineProperty(X,H,f))}};
zpM=function(K,X,F){return function(P){if(F){var H=F();P.model=H}if(K[X])K[X](P,P.detail)}};
rl=function(K){var X=[];if(typeof K==="string")K.length>0&&X.push.apply(X,_.LZ(K.split(".")));else{K=_.D(K);for(var F=K.next();!F.done;F=K.next())F=F.value,typeof F==="string"?X.push.apply(X,_.LZ(F.split("."))):X.push(F)}return X};
ffP=function(K,X){if(X[X.length-1]!=="*"&&X[X.length-1]!=="splices"){for(var F=0;F<X.length;F++){if(!K)return;K=K[X[F]]}return K}};
D1O=function(K,X){if(K.length>X.length)return!1;for(var F=0;F<K.length;F++)if(K[F]!==X[F])return!1;return!0};
qGP=function(K,X,F){if(X.type==="compute"){var P=X.getter.bind(F);var H=X.args}else P=function(){return F[X.method.methodName].apply(F,_.LZ(_.Ls.apply(0,arguments)))},H=X.method.args;
uWw(K,X.propertyKey,P,H,X.value)};
Z53=function(K,X){if(X.readOnly){var F=Object.getOwnPropertyDescriptor(K.model,X.propertyKey);Object.defineProperty(K.model,X.propertyKey,{get:F.get,set:function(){}});
K.model[JNT(X.propertyKey)]=F.set}};
YGd=function(K,X,F){if(F){var P=X.propertyKey,H=X.selector;X=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.LZ(X.selectorArgs.map(function(f){return{type:"path",path:f}})));
uWw(K,P,function(f){var u=_.Ls.apply(1,arguments);return H.apply(null,[F.getState()].concat(_.LZ(u)))},X)}};
MZl=function(K,X,F){var P=_.Dv(X.propertyKey)+"-changed";QBw(K,function(H){var f={value:H.value,queueProperty:!0};H.path.split(".").length>1&&(f.path=H.path);F.dispatchEvent(new CustomEvent(P,{detail:f}))},[{type:"wildcard",
path:X.propertyKey}])};
n$y=function(K,X,F){QBw(K,function(){F[X.method.methodName].apply(F,_.LZ(_.Ls.apply(0,arguments)))},X.method.args)};
JNT=function(K){return"_set"+(K.charAt(0).toUpperCase()+K.slice(1))};
cNn=function(){var K,X=jj(function(F){K=F},!1);
return[K,X]};
Lrl=function(K){K=K.trim().replace(pYy,",").replace(BJO,"$1");var X=K[0];X==="-"&&(X=K[1]);if(X>="0"&&X<="9")return{type:"literal",value:Number(K)};if(X==="'"||X==='"')return{type:"literal",value:K.slice(1,-1)};if(X=K.match(SGl)){X=X[1];var F=o$P[X];if(F)return{type:F,path:K.slice(0,-(X.length+1))}}return{type:"path",path:K}};
jBM=function(K){var X=K.match(TJn);if(X)return K={methodName:X[1],args:rNT},X[2].trim()&&(X=X[2].replace(AN3,"&comma;").split(","),K.args=X.map(Lrl)),K};
wYy=function(K,X,F,P){P=P===void 0?!1:P;X=_.Dv(X);var H=Zp;H&&(F=H(F,X,"attribute",K));AA(K,F,X,P)};
AA=function(K,X,F,P){X=yNP(X,P===void 0?!1:P);X===void 0?K.removeAttribute(F):K.setAttribute(F,X)};
yNP=function(K,X){switch(typeof K){case "object":case "function":if(K instanceof Date)return K.toString();if(K){if((X===void 0?0:X)&&!_.S("polymer_reflect_objects_as_boolean_killswitch"))return K?"":void 0;X=window.trustedTypes?window.trustedTypes.isHTML(K)||window.trustedTypes.isScript(K)||window.trustedTypes.isScriptURL(K):void 0;if(X)return K;try{return JSON.stringify(K)}catch(F){_.yy(Error("yg`"+K))}}break;case "boolean":return K?"":void 0;default:return K!==null&&K!==void 0?K.toString():void 0}};
WrP=function(K){if(K===void 0)throw Error("zg");return K};
hp4=function(K,X,F,P){var H=d1d(P);if(H.length){P=F;var f="property";epy.test(F)?f="attribute":F[F.length-1]==="$"&&(F=F.slice(0,-1),f="attribute");var u=RpP(H);u&&f==="attribute"&&(F==="class"&&K.hasAttribute("class")&&(u+=" "+K.getAttribute(F)),AA(K,u,F));f==="attribute"&&P==="disable-upgrade$"&&K.setAttribute("disable-upgrade","");K.localName==="input"&&P==="value"&&K.setAttribute("value","");K.removeAttribute(P);f==="property"&&(F=_.uX(F));X=WrP(X);U1q(X,f,F,H);return!0}return F.slice(0,3)===
"on-"?(K.removeAttribute(F),(f=X).events!=null||(f.events=[]),X.events.push({name:F.slice(3),value:P}),!0):F==="id"?(X.id=P,!0):!1};
d1d=function(K){for(var X=[],F=0,P;(P=m1P.exec(K))!==null;){P.index>F&&X.push({type:"literal",value:K.slice(F,P.index)});var H=P[1][0];F=!!P[2];P=P[3].trim();if(H==="{")throw Error("Ag");(H=jBM(P))?X.push({type:"method",negate:F,signature:H}):X.push({type:"path",negate:F,path:P});F=m1P.lastIndex}F&&F<K.length&&(K=K.substring(F))&&X.push({type:"literal",value:K});return X};
RpP=function(K){for(var X="",F=0;F<K.length;F++){var P=K[F];P.type==="literal"&&(X+=P.value)}return X};
U1q=function(K,X,F,P){K.bindings!=null||(K.bindings=[]);K.bindings.push({kind:X,target:F,parts:P})};
tZy=function(K,X,F){var P=!1;if(K.localName==="template"){P=F;var H=X.stripWhitespace;H=G5P(K,H===void 0?!1:H);var f=K.content.ownerDocument.createDocumentFragment();H.content=f;f.appendChild(K.content);P&&(P.templateInfo=H);P=!0}else K.localName==="slot"&&(X.hasInsertionPoint=!0);if(K.firstChild&&(H=F,K.localName!=="script"&&K.localName!=="style")){f=0;for(var u=K.firstChild;u;){var J=u;if(J.localName==="template"){var Z=J.getAttribute("is");if((u=Z==="dom-if")||Z==="dom-repeat"){J.removeAttribute("is");
Z=J.ownerDocument.createElement("ps-"+Z);J.parentNode.replaceChild(Z,J);Z.appendChild(J);var M=Array.from(J.attributes);M=_.D(M);for(var n=M.next();!n.done;n=M.next())n=n.value,u?lfd.has(n.name)&&AA(Z,n.value,n.name):v$P.has(n.name)?AA(Z,n.value,n.name):afO.has(n.name),J.removeAttribute(n.name);u=Z}else u=J}if(u.nodeType===Node.TEXT_NODE){J=void 0;Z=K;for(M=u;((J=M.nextSibling)==null?void 0:J.nodeType)===Node.TEXT_NODE;)n=void 0,(n=M).textContent!=null||(n.textContent=""),M.nextSibling.textContent&&
(M.textContent+=M.nextSibling.textContent),Z.removeChild(M.nextSibling);if(X.stripWhitespace&&u.textContent&&!u.textContent.trim()){K.removeChild(u);u=u.nextSibling;continue}}tZy(u,X,{parentIndex:f,parentInfo:H});u.parentNode&&f++;u=u.nextSibling}}var c;if((c=K.hasAttributes)==null?0:c.call(K)){c=F=WrP(F);H=!1;f=Array.from(K.attributes);f=_.D(f);for(J=f.next();!J.done;J=f.next())J=J.value,H=hp4(K,c,J.name,J.value)||H;P=H||P}K.nodeType===Node.TEXT_NODE&&(c=d1d(K.textContent),c.length&&(K.textContent=
RpP(c)||" ",F=WrP(F),U1q(F,"text","textContent",c),P=!0));F&&P&&(F.infoIndex=X.nodeInfoList.push(F)-1)};
G5P=function(K,X){X={nodeInfoList:[],stripWhitespace:(X===void 0?!1:X)||K.hasAttribute("strip-whitespace")};tZy(K.content,X);return X};
$13=function(K){Object.assign(K,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
VZM=function(K,X,F){X.signalCache!=null||(X.signalCache={});var P=X.signalCache[F];if(!P){var H=F.split(".");P=!O5O(K,H[0]);if(H.length>1&&P){var f=K.getPathMutationSignal(H);P=function(){var u=WM(K.owner,function(){return K.getWithPath([H[0]])}),J,Z=(J=f())==null?void 0:J.value;
return{rootWasDefined:u!==void 0,value:Z}}}else P=function(){var u=K.getWithPath(H);
return{rootWasDefined:u!==void 0,value:u}};
X.signalCache[F]=P}return P()};
E$y=function(K,X,F,P,H){X=X.parts.map(function(u,J){if(u.type==="literal"){F.partWasDefined!=null||(F.partWasDefined=[]);var Z;(Z=F.partWasDefined)[J]||(Z[J]=u.value!==void 0);return u.value}var M;if(u.type==="method"){var n,c=(n=(M=F.partWasDefined)==null?void 0:M[J])!=null?n:!1;c||(c=u.signature.args.every(function(A){return A.type==="literal"}));
var B=!1,L=!0;M=u.signature.args.map(function(A){if(A.type==="literal")return A.value;if(A.type!=="path")throw Error("Bg`"+A.type);var d=VZM(K,F,A.path);A=d.value;d=d.rootWasDefined;B||(B=d);L&&(L=d);return A});
c||(c=H===1?L:B);F.partWasDefined!=null||(F.partWasDefined={});F.partWasDefined[J]=c;if(!c)return;M=(J=VZM(K,F,u.signature.methodName).value)&&typeof J==="function"?J.apply(P,M):void 0}else n=VZM(K,F,u.path),M=n.value,F.partWasDefined!=null||(F.partWasDefined={}),(c=F.partWasDefined)[J]||(c[J]=M!==void 0||n.rootWasDefined);u.negate&&(M=!M);return M});
if(X.length===1){var f;return((f=F.partWasDefined)==null?0:f[0])?X[0]:g$4}return X.join("")};
b5O=function(K){return typeof K==="object"&&!!K&&"notifyPath"in K&&"canNotifyPath"in K};
CJM=function(K){return typeof K==="object"&&!!K&&"notifyPath"in K};
NJM=function(K){return"polymerController"in K};
i5P=function(K,X){X=""+rl(X)[0];if(b5O(K))return K.canNotifyPath(X);if(NJM(K)&&b5O(K.polymerController))return K.polymerController.canNotifyPath(X);if(CJM(K)){var F;return!((F=K.properties)==null||!F[X])}if(NJM(K)&&CJM(K.polymerController)){var P;return!((P=K.polymerController.properties)==null||!P[X])}return!1};
x1P=function(K,X,F){b5O(K)||CJM(K)?K.notifyPath(X,F):NJM(K)&&(b5O(K.polymerController)||CJM(K.polymerController))&&K.polymerController.notifyPath(X,F)};
k5y=function(K,X,F){if(F!==g$4){K.kind==="attribute"||K.target!=="textContent"&&(K.target!=="value"||X.localName!=="input"&&X.localName!=="textarea")||(F=F===void 0?"":F);var P,H=(P=IfP.Polymer)==null?void 0:P.sanitizeDOMValue;H&&(F=H(F,K.target,K.kind,X));if(K.kind==="attribute"){K=K.target;if(K==="class"||K==="name"||K==="slot")X=(0,_.Ka)(X);AA(X,F,K)}else if(K=K.target,F!==X[K]||typeof F==="object")X.loggingStatus&&(X.loggingStatus.isDeclarativeExternal=!0,QQ(X.localName,K,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
X[K]=F,X.loggingStatus&&(X.loggingStatus.isDeclarativeExternal=!1)}};
Kjq=function(K,X,F,P){var H=X.parts[0];if(X.parts.length!==1||H.type!=="path"||!i5P(F,X.target))return!1;var f=_.D(H.path.split(".")),u=f.next().value,J=g0(f);if(O5O(K,u))return!1;P.signalCache!=null||(P.signalCache={});f=P.signalCache[H.path];var Z;f=(Z=f)==null?void 0:Z().value;if((f==null?void 0:f.path)!==void 0){P=rl(f.path);var M=rl(H.path);P=[X.target].concat(_.LZ(P.slice(M.length-1)));x1P(F,P,H.negate?!f.value:f.value);return!0}var n=ju(K,u);var c=n.getChangeRecordSignal(J),B=!1;f=function(){if(!B){var A=
WM(K.owner,function(){return n.getWithPath([])});
B||(B=A!==void 0)}return{value:c(),rootWasDefined:B}};
P.signalCache[H.path]=f;P.partWasDefined!=null||(P.partWasDefined={});f=f();(M=P.partWasDefined)[0]||(M[0]=f.rootWasDefined);var L=WM(K.owner,function(){return n.getWithPath(J)});
P.partWasDefined[0]&&WM(K.owner,function(){return void k5y(X,F,H.negate?!L:L)});
return!0};
XAy=function(K,X,F,P,H,f){if(!Kjq(K,X,F,P)){var u=E$y(K,X,P,H,f);WM(K.owner,function(){return void k5y(X,F,u)})}};
Fj9=function(K,X,F,P,H,f){F=_.D(F);for(var u=F.next(),J={};!u.done;J={infoIndex:void 0},u=F.next()){u=u.value;var Z=u.bindings;J.infoIndex=u.infoIndex;u=u.parentInfo;if(Z){Z=_.D(Z);for(var M=Z.next(),n={};!M.done;n={b$jscomp$253:void 0,bindingCtx$jscomp$4:void 0},M=Z.next()){n.b$jscomp$253=M.value;if(J.infoIndex===void 0)throw Error("Cg");n.bindingCtx$jscomp$4={};K.effect(function(c,B){return function(){H&&!H()||XAy(K,c.b$jscomp$253,X[B.infoIndex],c.bindingCtx$jscomp$4,P,f)}}(n,J))}}u&&Fj9(K,X,[u],
P,H,f)}};
Pey=function(K,X){K=(X.parentInfo?Pey(K,X.parentInfo):K).firstChild;for(var F=0;K;K=K.nextSibling)if(X.parentIndex===F++)return K;throw Error("Dg");};
sQy=function(K,X,F,P){K=document.importNode(K.content,!0);K.__noInsertionPoint=!(P==null?0:P.hasInsertionPoint);for(var H=Array(X.length),f={},u=0;u<X.length;u++){var J=X[u],Z=Pey(K,J);H[u]=Z;J.id&&(f[J.id]=Z);if(J.templateInfo){var M=Z.parentElement;M&&(M.templateInfo=J.templateInfo,M.parentSignalProxy=F,M.eventListenerHost=P.eventListenerHost,M.stampingEnabled=P.enabledSignal)}M=void 0;if((M=J.events)==null?0:M.length)for(M=0;M<J.events.length;M++){var n=J.events[M];HUM(P.eventListenerHost,Z,n.name,
n.value,P.getModel)}}Fj9(F,H,X,P.thisCtx,P.enabledSignal,P.methodInvocationRequirement);return{root:K,nodes:H,nodesById:f}};
f5T=function(K,X){K=K();var F;(F=zmw.ShadyCSS)==null||F.prepareTemplate(K,X);X=G5P(K);return{template:K,nodeInfoList:X.nodeInfoList,hasInsertionPoint:X.hasInsertionPoint}};
qaP=function(){Dry=!1;for(var K=wl.length,X=0;X<K;X++){var F=wl[X];if(F)try{F()}catch(P){Promise.resolve().then(function(){throw P;})}}wl.splice(0,K);
ufy+=K};
QQM=function(K){Dry||(Dry=!0,JUy.textContent=(ZUw++).toString());wl.push(K);return YaP++};
_.dl=function(K,X,F){yQ++;K=X?new MG4(yQ,K,X,F):new nF4(yQ,K);Wc.set(yQ,K);return yQ};
cUn=function(K){(K=Wc.get(K))&&K.cancel()};
BQl=function(K,X){K=pAO.get(K);return K?(X=K.get(X))?X:null:null};
_.eu=function(K,X,F,P){var H=BQl(K,X);if(!H){H=new Say;var f=pAO.get(K);f||(f=new Map,pAO.set(K,f));f.set(X,H)}K=F.bind(K);H.run(K,P,void 0)};
_.oFy=function(K,X){var F;(F=BQl(K,X))==null||F.cancel()};
LjP=function(K){var X;(X=BQl(K,"doRender"))==null||X.flush()};
Rg=function(K){var X;return(X=K.hostElement)!=null?X:K};
TQy=function(K){var X=K.indexOf(".");return X===-1?K:K.slice(0,X)};
rUT=function(K,X,F,P,H,f){f=(H=(P=f?TQy(X):X)?X:null)?K.get(H):K.__data[X];H&&f===void 0&&(f=F[X]);_.iX(K.hostElement,s5P(P)+"-changed",{value:f,queueProperty:!0,path:H!=null?H:void 0},{bubbles:!1,composed:!1})};
AUd=function(K,X){K.__isReflecting=!0;wYy(K.hostElement,X,K.__data[X]);K.__isReflecting=!1};
jQn=function(K){if(K._onIronRequestResizeNotifications){var X=K._onIronRequestResizeNotifications.bind(K);K._onIronRequestResizeNotifications=function(F){_.vI(F)!==K.hostElement&&X(F)}}K._ariaActiveAttributeChanged&&(K._ariaActiveAttributeChanged=K._ariaActiveAttributeChanged.bind(K.hostElement));
K._activeChanged&&(K._activeChanged=function(F){K.toggles?AA(K.hostElement,F?"true":"false",K.ariaActiveAttribute):K.hostElement.removeAttribute(K.ariaActiveAttribute);K._changedButtonState()});
K._asyncClick&&(K._asyncClick=function(){_.dl(function(){K.hostElement.click()},1)});
!K.keyEventTarget||K.keyEventTarget instanceof EventTarget||(K.keyEventTarget=Rg(K.keyEventTarget));K._disabledChanged&&(K._disabledChanged=K._disabledChanged.bind(K.hostElement));K._observeItems&&(K._observeItems=function(F){var P=Rg(F);return _.cg(P).observeNodes(function(H){K._updateItems();K._updateSelected();_.iX(P,"iron-items-changed",H,{bubbles:!1,cancelable:!1})})});
K._updateItems&&K._updateItems===_.Uo._updateItems&&(K._updateItems=function(){var F=_.cg(K.hostElement).queryDistributedElements(K.selectable||"*");F=Array.prototype.filter.call(F,K._bindFilterItem);K._setItems(F)});
K._computeKeyboardClass&&(K._computeKeyboardClass=function(F){_.iN(K.hostElement,"keyboard-focus",F)});
K.ensureRipple&&(K.ensureRipple=function(F){if(K.hasRipple&&!K.hasRipple()){if(!K._createRipple)return;K._ripple=K._createRipple();K._ripple.noink=K.noink;var P=K._rippleContainer||K.hostElement;P&&_.C$(P).appendChild(K._ripple)}var H;if(F&&((H=K._ripple)==null?0:H.uiDownAction)){P=_.C$(K._rippleContainer||K.hostElement);var f;H=(f=F.composedPath())==null?void 0:f[0];P.contains(H)&&K._ripple.uiDownAction(F)}});
K._updateMultiselectable&&(K._updateMultiselectable=function(F){F?K.hostElement.setAttribute("aria-multiselectable","true"):K.hostElement.removeAttribute("aria-multiselectable")})};
wAq=function(K,X,F){F=_.D(F);for(var P=F.next();!P.done;P=F.next())PJy(P.value.constructor,K);PJy(X.constructor,K)};
Wjy=function(K,X){K=_.D(K);for(var F=K.next();!F.done;F=K.next())if(F=F.value,F.type==="signal"){var P=F.propertyKey;if(X.hasOwnProperty(P)&&X[P]!=null&&F.attributeType===Object){a:{P=X[P].constructor;for(var H=_.D(yUn),f=H.next();!f.done;f=H.next())if(f=f.value,P===f){P=f;break a}P=Object}F.attributeType=P}}};
dry=function(){};
em4=function(K){var X;return(X=K.hostElement)!=null?X:K};
Rm9=function(){throw Error("Hg");};
Url=function(K,X){K.constructor.prototype.useSignals=!0;var F=new K.constructor;wAq(F,K,X.behaviors);Wjy(X.reactiveSchemas,F);F={};for(var P=_.D(X.reactiveSchemas),H=P.next();!H.done;H=P.next())H=H.value,H.type==="signal"&&(F[H.propertyKey]=H.attributeType);var f={copyPropertiesToProto:Rm9,didRegister:!1,typesForSignals:F},u=["disable-upgrade"].concat(_.LZ(X.observedAttributes)),J=function(Z){hA.call(this,K,X,f,Z)};
_.r(J,hA);_.Oi.Object.defineProperties(J,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return u}}});
f.copyPropertiesToProto=function(){for(var Z=0;Z<X.behaviors.length;Z++)sBT(X.behaviors[Z],J.prototype);sBT(K,J.prototype)};
X.legacyOptimizations||f.copyPropertiesToProto();J.prototype.is=K.is;return J};
hm4=function(K,X){if(Object.getPrototypeOf(X.prototype).constructor!==_.G)throw Error("Ig");X.prototype.is=K.is;return Url(X.prototype,K)};
mr9=function(K){return K.type==="compute"||K.type==="computeWithMethod"};
Gkq=function(K){for(var X=K.reactiveSchemas.filter(mr9),F=new Map,P=new Map,H=new Map,f=_.D(X),u=f.next();!u.done;u=f.next())u=u.value,F.set(u.propertyKey,u),P.set(u.propertyKey,[]),H.set(u.propertyKey,0);f=0;X=_.D(X);for(u=X.next();!u.done;u=X.next()){u=u.value;for(var J=_.D(u.type==="computeWithMethod"?u.method.args:u.args),Z=J.next();!Z.done;Z=J.next())Z=Z.value,Z.type!=="literal"&&(Z=Z.path.split(".")[0],P.has(Z)&&(P.get(Z).push(u.propertyKey),H.set(u.propertyKey,H.get(u.propertyKey)+1),f++))}u=
[].concat(_.LZ(P.keys())).filter(function(M){return H.get(M)===0});
for(X=[];u.length;)for(J=u.shift(),X.push(F.get(J)),J=_.D(P.get(J)),Z=J.next();!Z.done;Z=J.next())Z=Z.value,H.set(Z,H.get(Z)-1),f--,H.get(Z)===0&&u.push(Z);F=K.reactiveSchemas.filter(function(M){return!mr9(M)});
K.reactiveSchemas=[].concat(_.LZ(F),_.LZ(X))};
l5P=function(K,X){if(X.properties)for(var F=_.D(Object.entries(X.properties)),P=F.next();!P.done;P=F.next()){var H=_.D(P.value);P=H.next().value;H=H.next().value;K.properties[P]=typeof H==="function"?{type:H}:H}X.observers&&K.observers.push.apply(K.observers,_.LZ(X.observers));X.disabledPolySiReactions&&K.disabledPolySiReactions.push.apply(K.disabledPolySiReactions,_.LZ(X.disabledPolySiReactions))};
vFy=function(K,X){for(var F=X.length-1;F>=0;F--){var P=X[F];Array.isArray(P)?vFy(K,P):K.indexOf(P)<0&&K.unshift(P)}};
a5w=function(K,X){K.reactiveSchemas=K.reactiveSchemas.filter(function(F){return F.type==="observe"&&X.includes(F.method.methodName)||mr9(F)&&X.includes(F.propertyKey)?!1:!0})};
$ry=function(K,X){var F=X.prototype,P,H,f={is:K.is,reactiveSchemas:[],observedAttributes:[],behaviors:[xSP.InjectBehavior,og.prototype],disableElementRegistration:K.disableElementRegistration,provide:(P=K.providers)!=null?P:[],reactivityMode:K.reactivityMode,signalProperties:(H=F.signalProperties)!=null?H:[]};"template"in X?f.templateGetter=function(){return X.template}:K.getTemplate&&(f.templateGetter=K.getTemplate);
F.behaviors&&vFy(f.behaviors,F.behaviors);tGO(f,X);return f};
tGO=function(K,X){for(var F=X.prototype,P={properties:{},observers:[],disabledPolySiReactions:[]},H=_.D(K.behaviors),f=H.next();!f.done;f=H.next())l5P(P,f.value);l5P(P,F);if(K.signalProperties)for(F=_.D(K.signalProperties),H=F.next();!H.done;H=F.next())delete P.properties[H.value];F=_.D(Object.entries(P.properties));for(H=F.next();!H.done;H=F.next()){f=_.D(H.value);H=f.next().value;f=f.next().value;var u=void 0;if((u=K.signalProperties)==null||!u.includes(H)){u=void 0;var J=K,Z=f.type;if(!Z)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{Z=Reflect.getMetadata("design:type",X,H);for(var M=_.D(OUP),n=M.next();!n.done;n=M.next())if(n=n.value,Z===n){Z=n;break a}Z=Object}else Z=String;f.computed||f.selector||(J.reactiveSchemas.push({type:"signal",propertyKey:H,value:f.value,attributeType:Z,readOnly:f.readOnly}),J.observedAttributes.push(_.Dv(H)));f.reflectToAttribute&&J.reactiveSchemas.push({type:"reflect",propertyKey:H});if(f.computed){Z=jBM(f.computed);if(!Z)throw Error("Jg");J.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:H,method:Z,value:f.value})}f.observer&&J.reactiveSchemas.push({type:"observe",method:{methodName:f.observer,args:[{type:"path",path:H}]}});f.notify&&J.reactiveSchemas.push({type:"notify",propertyKey:H});f.selector&&J.reactiveSchemas.push({type:"redux",propertyKey:H,selector:f.selector,selectorArgs:(u=f.selectorArgs)!=null?u:[]})}}VGP&&Gkq(K);X=_.D(P.observers);for(H=X.next();!H.done;H=X.next())F=K,H=H.value,(f=jBM(H))?F.reactiveSchemas.push({type:"observe",method:f}):console.log('Warning: unable to parse observe declaration: "'+
H+'"');a5w(K,P.disabledPolySiReactions)};
gFl=function(K,X){for(var F=0;F<X.length;F++){var P=X[F],H=void 0;(H=P).showHideApi!=null||(H.showHideApi={});H=void 0;!!K!==!((H=P.showHideApi)==null||!H.hideTemplateChildren)&&(P.nodeType===Node.TEXT_NODE?K?(P.showHideApi.polymerTextContent=P.textContent,P.textContent=""):(H=void 0,P.textContent=(H=P.showHideApi.polymerTextContent)!=null?H:null):P instanceof Element&&P.localName==="slot"?K?(P.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.Ka)((0,_.Ka)(P).parentNode).replaceChild(P.showHideApi.polymerReplaced,
P)):(H=P.showHideApi.polymerReplaced)&&(0,_.Ka)((0,_.Ka)(H).parentNode).replaceChild(P,H):P instanceof HTMLElement&&P.style&&(K?(P.showHideApi.polymerDisplay=P.style.display,P.style.display="none"):P.style.display=P.showHideApi.polymerDisplay));P.showHideApi.hideTemplateChildren=K;P.showHideChildren&&P.showHideChildren(K)}};
bUP=function(){if(!EFn){var K=document.createElement("style");K.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(K);EFn=!0}};
ma=function(){return _.S("disable_hidden_dom_if_using_stamper")||_.S("creator_disable_hidden_dom_if_using_stamper")};
CeP=function(K,X){var F=_.Gb().getState();return X?K.apply(null,[F].concat(_.LZ(X))):K(F)};
xrO=function(){if(NQM)return NQM;var K=_.D(_.u_(0,void 0,"Nl6eIe")),X=K.next().value;K.next();var F=K.next().value;_.Gb().subscribe(function(){iUO(F)});
return NQM=X};
iUO=function(K){_.S("delay_redux_signal_update_killswitch")?K(function(X){return X+1}):I5d||(I5d=!0,Promise.resolve().then(function(){K(function(X){return X+1});
I5d=!1}))};
_.Gb=function(){return kkl.getAppStore()};
lb=function(K,X){return kkl.getSelectFn()(K,X)};
_.vc=function(K){kkl.getDispatchFn()(K)};
KLy=function(K,X){var F={},P;for(P in K)F[P]=X(K[P],P);return F};
_.ag=function(K,X){return function(){var F;return(F=_.ws(K))!=null?F:X}};
_.tA=function(K,X){var F=Object.assign({},K),P;for(P in X)X.hasOwnProperty(P)&&(F[P]=_.ag(K[P],X[P]));return F};
Xsq=function(K,X,F){K instanceof Element&&(F.debugName||(F.debugName="<"+K.tagName.toLowerCase()+(K.tagName.includes("-")?">":"."+K.className+">")),_.S("ytwiz_enable_debug_component_props")&&(K.debugProps||(K.debugProps=KLy(X,function(P){return function(){return P()}}))))};
_.$c=function(K,X){var F=function(P){var H=FLP={};var f;if(((f=F)==null?0:f.idomCompat)&&P.renderedFromIdom){var u;f=typeof F.idomCompat==="object"?(u=F)==null?void 0:u.idomCompat.callbacks:{};P=_.D(P8l(P,f,F.debugName));f=P.next().value;P.next();P=P.next().value;u=Hil(K,f);H.privateValue=u;FLP=void 0;Xsq(u,f,F);H=kow(u);H=Array.isArray(H)?H[0]:H;H[Hd]||(H[Hd]={});H[Hd].updateSignalsFromIdomProps=P;H=u}else u=KLy(P,sbw),P=Hil(K,u),H.privateValue=P,FLP=void 0,Xsq(P,u,F),H=P;return H};
F.debugName=X===void 0?"":X;return F};
Hil=function(K,X){K=K(X);return Dq(K)};
zwy=function(K,X){K[X]||(K=new _.nG("IDOM interop setter undefined. Key:",X),_.jF(K))};
sbw=function(K,X){return X==="children"||X==="ref"||typeof K==="function"||K===void 0?K:function(){return _.ws(K)}};
P8l=function(K,X,F){var P={},H={},f={},u={},J;for(J in K){u={key$jscomp$893:u.key$jscomp$893};u.key$jscomp$893=J;var Z=K[u.key$jscomp$893];if(u.key$jscomp$893==="children"||u.key$jscomp$893==="ref")P[u.key$jscomp$893]=Z;else if(typeof Z==="function")u.key$jscomp$893 in X||Z.length>0?(f[u.key$jscomp$893]=Z,P[u.key$jscomp$893]=function(n){return function(){return f[n.key$jscomp$893].apply(f,_.LZ(_.Ls.apply(0,arguments)))}}(u)):P[u.key$jscomp$893]=Z;
else if(!(K[u.key$jscomp$893]===void 0&&u.key$jscomp$893 in X)){var M=_.D(_.u_(K[u.key$jscomp$893],{debugName:"__cwis:"+F+":"+u.key$jscomp$893},"W25zpe"));Z=M.next().value;M=M.next().value;P[u.key$jscomp$893]=Z;H[u.key$jscomp$893]=M}}return[P,H,function(n){var c={},B;for(B in n)c={key$jscomp$894:c.key$jscomp$894,val$jscomp$117:void 0},c.key$jscomp$894=B,c.val$jscomp$117=n[c.key$jscomp$894],c.key$jscomp$894!=="children"&&c.key$jscomp$894!=="ref"&&(typeof c.val$jscomp$117==="function"?c.key$jscomp$894 in
X?f[c.key$jscomp$894]=c.val$jscomp$117:c.val$jscomp$117.length>0&&(f[c.key$jscomp$894]=c.val$jscomp$117,_.yy(new _.nG("Callback detected that was not set in the idomCompat callbacks map. Key:",c.key$jscomp$894))):c.key$jscomp$894 in X&&c.val$jscomp$117===void 0||(zwy(H,c.key$jscomp$894),nv(function(L){return function(){H[L.key$jscomp$894](L.val$jscomp$117)}}(c))))}]};
uBM=function(K,X,F){var P=c4P(K.prototype,fMl,K.prototype.behaviors);P.prototype.is=X;P.prototype.localName=X;F&&Dx4(P,F);return function(H){H&&(P.prototype.hostElement=H);var f=new P;f.root=f;f.hostElement=H;return f}};
Dx4=function(K,X){var F;Object.defineProperty(K.prototype,"_template",{get:function(){F===void 0&&(F=X());return F},
set:function(P){F=P},
configurable:!0,enumerable:!0})};
Qbl=function(K,X,F,P){function H(){if(!L){for(var A=new Set,d=_.D(n),R=d.next();!R.done;R=d.next()){R=R.value;for(var l=_.D(Object.getOwnPropertyNames(R)),a=l.next();!a.done;a=l.next()){a=a.value;var E=void 0,V=(E=Object.getOwnPropertyDescriptor(R,a))==null?void 0:E.value;V&&V instanceof Function&&!Oo(a)&&(!J[a]||_.S("polymer_forward_method_killswitch"))&&A.add(a)}}d=_.D(Object.entries(Object.getOwnPropertyDescriptors(K.prototype)));for(R=d.next();!R.done;R=d.next())l=_.D(R.value),R=l.next().value,
l=l.next().value,l.value instanceof Function&&!Oo(R)&&A.add(R);L=A}return L}
qY4(K,X,P==null?void 0:P.providers);pjy(K.prototype,K,!0);var f=uBM(K,X,F),u,J=(u=K.prototype.properties)!=null?u:{},Z,M,n=(M=(Z=K.prototype.behaviors)==null?void 0:Z.flat(Infinity))!=null?M:[];F=_.D(n);for(u=F.next();!u.done;u=F.next())J=Object.assign({},u.value.properties,J);var c=[].concat(_.LZ(Jxn),_.LZ(Object.keys(J).map(function(A){return _.Dv(A)}))),B=!1,L;
return{ctor:function(A,d){var R=f(A),l,a;A=[].concat(_.LZ((l=P==null?void 0:P.allowedProps)!=null?l:[]),_.LZ((a=P==null?void 0:P.allowedPropsFromBehaviors)!=null?a:[]));R.allowedProps=A.length>0?A:void 0;l={};a=_.D(c);for(A=a.next();!A.done;A=a.next())A=A.value,l[A]=_.uX(A);R.__dataAttributes=l;var E=R.ready.bind(R);R.ready=function(){d.beforeReady();E();if(ZA(X)&&!B){var V=R.__templateInfo;if(V==null?0:V.hostProps){V=_.D(Object.keys(V.hostProps));for(var x=V.next();!x.done;x=V.next())QQ(X,x.value,
"PROPERTY_ACCESS_GET_INTERNAL")}B=!0}};
R._overrideLegacyUndefined=!0;return R},
props:J,observedAttributes:c,getInitialMethods:H,getPropsToForwardBeforeRegister:function(){for(var A=[],d=new Set,R=_.D(Object.keys(J)),l=R.next();!l.done;l=R.next())l=l.value,A.push([l,J[l].readOnly]),d.add(l);R=H();l=_.D(Object.keys(Object.getOwnPropertyDescriptors(K.prototype)));for(var a=l.next();!a.done;a=l.next())a=a.value,!ZiT(a)||R.has(a)||d.has(a)||(A.push([a,!1]),d.add(a));d=_.D(YYw);for(R=d.next();!R.done;R=d.next())A.push([R.value,!0]);return A},
getPropsToForwardBeforeReady:function(A){for(var d=[],R=_.D(Object.entries(A)),l=R.next();!l.done;l=R.next()){var a=_.D(l.value);l=a.next().value;a=a.next().value;if(ZiT(l)&&!(a instanceof Function)&&(d.push([l,!1]),ZA(X))){var E=a=void 0;(E=(a=A)._createPropertyAccessor)==null||E.call(a,l)}}return d},
shouldForwardProp:ZiT,shouldLog:ZA}};
qY4=function(K,X,F){IYM(K,F);K.prototype.behaviors.unshift(MX4);if(vzT()){if(ZA(X)){var P;(P=K.prototype).behaviors!=null||(P.behaviors=[]);K.prototype.behaviors.unshift(OfO())}V1P(K)}_.W(og.prototype)(K.prototype,"__templateHelpers")};
Oo=function(K){return nQl.has(K)||K.startsWith("__compute__")};
ZiT=function(K){return!Oo(K)&&!K.startsWith("_")&&!K.endsWith("_")};
oQd=function(K,X){function F(){var B=Z();B=_.D(B);for(var L=B.next();!L.done;L=B.next()){var A=_.D(L.value);L=A.next().value;A=A.next().value;cxy(c.prototype,L,A)}P=!0}
var P=!1,H=K.ctor,f=K.getInitialMethods,u=K.observedAttributes,J=K.getPropsToForwardBeforeReady,Z=K.getPropsToForwardBeforeRegister,M=K.shouldForwardProp,n=K.shouldLog,c=function(){var B=HTMLElement.call(this)||this;B.didForwardDynamicProps=!1;B.loggingStatus={};P||F();B.inst=H(B,{beforeReady:function(){B.didForwardDynamicProps||(B.forwardDynamicProps(),B.didForwardDynamicProps=!0)}});
B.controllerProxy=t1P(B.inst,X);B.forwardMethods();return B};
_.r(c,HTMLElement);c.prototype.forwardMethods=function(){for(var B=this,L=_.D(this.inst.getExtraMethodsToForward()),A=L.next(),d={};!A.done;d={method$jscomp$60:void 0},A=L.next()){var R=_.D(A.value);A=R.next().value;R=R.next().value;d.method$jscomp$60=R;this[A]=function(l){return function(){return l.method$jscomp$60.call.apply(l.method$jscomp$60,[B.inst].concat(_.LZ(_.Ls.apply(0,arguments))))}}(d)}L=_.D(f());
for(d=L.next();!d.done;d=L.next())d=d.value,M(d)&&psw(this,d),n(X)&&!Oo(d)&&Bu9(this.inst,d)};
c.prototype.forwardDynamicProps=function(){var B=J(this.inst);B=_.D(B);for(var L=B.next();!L.done;L=B.next()){var A=_.D(L.value);L=A.next().value;A=A.next().value;cxy(this,L,A);n(X)&&!Oo(L)&&SYl(this.inst,L)}};
c.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
c.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
c.prototype.attributeChangedCallback=function(B,L,A){this.inst.attributeChangedCallbackWrapper(B,L,A)};
_.Oi.Object.defineProperties(c.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return X}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.Oi.Object.defineProperties(c,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return u}}});
customElements.define(X,c)};
cxy=function(K,X,F){K.hasOwnProperty(X)||Object.defineProperty(K,X,{get:function(){var P,H=((P=K.is)!=null?P:K.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||QQ(H,X,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,P=this.polymerController[X],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,P},
set:function(P){if(!F){var H,f=((H=K.is)!=null?H:K.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||QQ(f,X,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=X,this.loggingStatus.bypassProxyController=!0,this.polymerController[X]!==P&&(H={},this.polymerController.setProperties((H[X]=P,H)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
psw=function(K,X,F){var P=K.polymerController;K[X]=function(){var H=_.Ls.apply(0,arguments);K.loggingStatus.currentExternalCall=X;K.loggingStatus.bypassProxyController=!0;var f,u=((f=K.is)!=null?f:K.tagName).toLowerCase();QQ(u,X,"PROPERTY_ACCESS_CALL_EXTERNAL");var J;f=(J=F!=null?F:P[X])==null?void 0:J.call.apply(J,[P].concat(_.LZ(H)));K.loggingStatus.currentExternalCall=void 0;K.loggingStatus.bypassProxyController=!1;return f}};
Bu9=function(K,X){var F=K.hostElement,P=K[X];K[X]=function(){var H=_.Ls.apply(0,arguments);if(F.loggingStatus.currentExternalCall!==X){var f,u=((f=F.is)!=null?f:F.tagName).toLowerCase();QQ(u,X,"PROPERTY_ACCESS_CALL_INTERNAL")}return P==null?void 0:P.apply(K,H)}};
SYl=function(K,X){var F=Object.getOwnPropertyDescriptor(K,X);F&&!F.get&&Object.defineProperty(K,X,{get:function(){$S3(K.hostElement,X);return F.value},
set:function(P){MY(K.hostElement,X);F.value=P}})};
LLd=function(K){return _.S("poly_si_dom_repeat_detached_fix_killswitch")||K.tagName!=="PS-DOM-REPEAT"?K.tagName==="DOM-REPEAT":!0};
rxd=function(K,X){var F=Tul(K);K instanceof Element&&F.unshift(K);K=_.D(F.filter(LLd));for(var P=K.next();!P.done;P=K.next()){var H=void 0;P=_.D((H=P.value.__instances)!=null?H:[]);for(H=P.next();!H.done;H=P.next())if(H=H.value,H.root){H=Array.from(H.root.children);H=_.D(H);for(var f=H.next();!f.done;f=H.next())F.push.apply(F,_.LZ(rxd(f.value,X)))}}return F.filter(function(u){return u.usePatchedLifecycles&&u.lifecycleIsConnected===X})};
Tul=function(K){var X=null;K instanceof Element?X=Element.prototype.querySelectorAll:K instanceof DocumentFragment&&(X=DocumentFragment.prototype.querySelectorAll);return X?Array.from(X.call(K,"*")):[]};
VQ=function(K){DK(function(){for(var X=_.D(rxd(K,!1)),F=X.next();!F.done;F=X.next()){F=F.value;F.lifecycleIsConnected=!0;try{var P=void 0,H=void 0,f=void 0,u=void 0;(P=(u=F.polymerController)!=null?u:F)==null||(f=(H=P).connectedCallback)==null||f.call(H)}catch(J){_.jF(J)}}})};
gl=function(K){DK(function(){for(var X=_.D(rxd(K,!0)),F=X.next();!F.done;F=X.next()){F=F.value;F.lifecycleIsConnected=!1;try{var P=void 0,H=void 0,f=void 0,u=void 0;(P=(u=F.polymerController)!=null?u:F)==null||(f=(H=P).disconnectedCallback)==null||f.call(H)}catch(J){_.jF(J)}}})};
ewO=function(){if(!AxP){AxP=!0;var K=[Node];Eo&&K.push(Eo.Wrapper);var X=Node.prototype.insertBefore,F=Node.prototype.removeChild;K=_.D(K);for(var P=K.next(),H={};!P.done;H={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},P=K.next())P=P.value,H.nativeInsertBefore=P.prototype.insertBefore,P.prototype.insertBefore=function(u){return function(J,Z){if(J instanceof DocumentFragment){var M=Array.from(J.children);J=u.nativeInsertBefore.call(this,J,Z);
if(this.isConnected&&u.nativeInsertBefore===X)for(Z=_.D(M),M=Z.next();!M.done;M=Z.next())VQ(M.value);return J}M=J instanceof Element&&J.isConnected;Z=u.nativeInsertBefore.call(this,J,Z);M&&gl(J);this.isConnected&&VQ(J);return Z}}(H),H.nativeAppendChild=P.prototype.appendChild,P.prototype.appendChild=function(u){return function(J){if(J instanceof DocumentFragment){var Z=Array.from(J.children);
J=u.nativeAppendChild.call(this,J);if(this.isConnected){Z=_.D(Z);for(var M=Z.next();!M.done;M=Z.next())VQ(M.value)}return J}Z=J instanceof Element&&J.isConnected;M=u.nativeAppendChild.call(this,J);Z&&gl(J);this.isConnected&&VQ(J);return M}}(H),H.nativeRemoveChild=P.prototype.removeChild,P.prototype.removeChild=function(u){return function(J){var Z=J instanceof Element&&J.isConnected,M=u.nativeRemoveChild.call(this,J);
Z&&F===u.nativeRemoveChild&&gl(J);return M}}(H),H.nativeReplaceChild=P.prototype.replaceChild,P.prototype.replaceChild=function(u){return function(J,Z){if(J instanceof DocumentFragment){var M=Array.from(J.children);
J=u.nativeReplaceChild.call(this,J,Z);if(this.isConnected)for(gl(Z),Z=_.D(M),M=Z.next();!M.done;M=Z.next())VQ(M.value);return J}M=J instanceof Element&&J.isConnected;var n=this.isConnected,c=u.nativeReplaceChild.call(this,J,Z);n&&gl(Z);M&&gl(J);n&&VQ(J);return c}}(H);
K=[Element];Eo&&K.push(Eo.Wrapper);K=_.D(K);P=K.next();for(H={};!P.done;H={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},P=K.next())P=P.value,P.prototype.before=jbd(P.prototype.before),P.prototype.after=jbd(P.prototype.after),H.nativeReplaceWith=P.prototype.replaceWith,P.prototype.replaceWith=function(u){return function(){var J=_.Ls.apply(0,arguments),Z=_.D(wsM(J)),M=Z.next().value,
n=Z.next().value;Z=this.isConnected;u.nativeReplaceWith.apply(this,J);J=_.D(n);for(n=J.next();!n.done;n=J.next())gl(n.value);if(Z)for(gl(this),M=_.D(M),Z=M.next();!Z.done;Z=M.next())Z=Z.value,Z instanceof Element&&VQ(Z)}}(H),H.nativeRemove=P.prototype.remove,P.prototype.remove=function(u){return function(){var J=this.isConnected;
u.nativeRemove.call(this);J&&gl(this)}}(H),H.nativeInsertAdjacentElement=P.prototype.insertAdjacentElement,P.prototype.insertAdjacentElement=function(u){return function(J,Z){var M=Z.isConnected;
J=u.nativeInsertAdjacentElement.call(this,J,Z);M&&gl(Z);J.isConnected&&VQ(J);return J}}(H),H.nativeSetAttribute=P.prototype.setAttribute,P.prototype.setAttribute=function(u){return function(J,Z){var M=yxP(this);
if(!M.usePatchedLifecycles)return u.nativeSetAttribute.call(this,J,Z);var n=this.getAttribute(J);u.nativeSetAttribute.call(this,J,Z);Z=this.getAttribute(J);WLw(M,J,n,Z)}}(H),H.nativeRemoveAttribute=P.prototype.removeAttribute,P.prototype.removeAttribute=function(u){return function(J){var Z=yxP(this);
if(!Z.usePatchedLifecycles)return u.nativeRemoveAttribute.call(this,J);var M=this.getAttribute(J);u.nativeRemoveAttribute.call(this,J);M!==null&&WLw(Z,J,M,null)}}(H),H.nativeToggleAttribute=P.prototype.toggleAttribute,P.prototype.toggleAttribute=function(u){return function(J,Z){var M=yxP(this);
if(!this.usePatchedLifecycles)return u.nativeToggleAttribute.call(this,J,Z);var n=this.getAttribute(J),c=n!==null;Z=u.nativeToggleAttribute.call(this,J,Z);Z!==c&&WLw(M,J,n,Z?"":null);return Z}}(H);
K=[Document,DocumentFragment,Element,ShadowRoot];Eo&&K.push(Eo.Wrapper);K=_.D(K);for(H=K.next();!H.done;H=K.next())H=H.value,H.prototype.prepend=jbd(H.prototype.prepend),H.prototype.append=jbd(H.prototype.append);(Eo==null?void 0:Eo.noPatch)===!0&&dxq();document.readyState==="complete"?VQ(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&VQ(document.body)});
var f=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");f&&f.get&&f.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:f.enumerable,configurable:!0,get:f.get,set:function(u){u||gl(this);f.set.call(this,u);return u}})}};
jbd=function(K){return function(){var X=_.Ls.apply(0,arguments),F=_.D(wsM(X)),P=F.next().value;F=F.next().value;K.apply(this,X);X=_.D(F);for(F=X.next();!F.done;F=X.next())gl(F.value);if(this.isConnected)for(P=_.D(P),X=P.next();!X.done;X=P.next())X=X.value,X instanceof Element&&VQ(X)}};
dxq=function(){for(var K=_.D(Rwq),X=K.next();!X.done;X=K.next()){X=X.value.prototype;for(var F=_.D(Ux9),P=F.next();!P.done;P=F.next()){P=P.value;var H=Object.getOwnPropertyDescriptor(X,P);H&&Object.defineProperty(X,"__shady_native_"+P,H)}}};
WLw=function(K,X,F,P){var H,f;if((H=K.polymerController)==null?0:(f=H.observedAttributes)==null?0:f.includes(X))if(K=K.polymerController,K.attributeChangedCallbackWrapper)K.attributeChangedCallbackWrapper.call(K,X,F,P);else{var u;(u=K.attributeChangedCallback)==null||u.call(K,X,F,P)}};
wsM=function(K){var X=[],F=[];K=_.D(K);for(var P=K.next();!P.done;P=K.next())P=P.value,P instanceof Element&&P.isConnected&&F.push(P),P instanceof DocumentFragment?X.push.apply(X,_.LZ(Array.from(P.children))):X.push(P);return[X,F]};
yxP=function(K){return!(K instanceof Element)&&K.node instanceof Element?K.node:K};
hwl=function(K,X){var F=X?["children"].concat(_.LZ(X)):["children"];X=[];F=_.D(F);for(var P=F.next();!P.done;P=F.next()){var H=P.value;if(K.hasOwnProperty(H)){P=K[H];P=typeof P==="function"?P():P;P=Dq(Array.isArray(P)?P:[P]).flat();if(H!=="children"){H=s5P(H);for(var f=_.D(P),u=f.next();!u.done;u=f.next())u=u.value,u instanceof Element&&u.setAttribute("slot",H)}X.push(P)}}X.length===0?K=[]:(K=Dq(_.Q("div",null,X)),K=Array.from(K.childNodes));return K};
GzP=function(K,X,F){var P={};_.ys(function(){var H={},f;for(f in X)if(X.hasOwnProperty(f)){var u=void 0,J=void 0;if(!(((u=F.slotProps)==null?0:u.includes(f))||f==="children"||((J=F.callbackProps)==null?0:J.includes(f))||f==="ref")&&(u=_.ws(X[f]),P[f]!==u)){P[f]=u;J=void 0;var Z=(J=K.hostElement)!=null?J:K;mx9.has(f)&&(Z[f]=u);H[f]=u}}nv(function(){if(K.setProperties)K.setProperties(H);else for(var M=_.D(Object.entries(H)),n=M.next();!n.done;n=M.next()){var c=_.D(n.value);n=c.next().value;c=c.next().value;
K[n]=c}})})};
vQ3=function(K,X,F,P){var H=hwl(F,P.slotProps),f=(0,_.Ka)(K);H=_.D(H);for(var u=H.next();!u.done;u=H.next())f.appendChild(u.value);GzP(X,F,P);P=_.D(P.callbackProps||[]);H=P.next();for(f={};!H.done;f={kebabEventName:void 0,eventListener:void 0},H=P.next())u=H=H.value,String(H).substring(0,2)==="on"&&F[u]?(f.kebabEventName=s5P(String(H).substring(2)),f.eventListener=F[u],K.addEventListener(f.kebabEventName,f.eventListener),_.AZ(function(n){return function(){K.removeEventListener(n.kebabEventName,n.eventListener)}}(f))):
X[u]=F[u];
if(F.ref){F=_.D(lMP(F.ref));var J=F.next().value,Z=F.next().value,M=X.attached.bind(X);X.attached=function(){J(K);M()};
_.AZ(function(){Z()})}};
lMP=function(K){if(typeof K==="function"){var X;return[function(F){X=K(F)},
function(){var F;(F=X)==null||F()}]}if(!K.onRender||!K.onUnmount)throw Error("Ng");
return[K.onRender,K.onUnmount]};
OiT=function(K,X,F,P,H){P=P===void 0?{}:P;var f=aMP,u=!1;f?(u=!0,aMP=void 0):(tXP=X,f=document.createElement(X),tXP=void 0);var J=f;J.usePatchedLifecycles=!0;J.lifecycleIsConnected=!1;f.loggingStatus={};var Z=$xP(K,X,f,P,H);_.AZ(function(){J.lifecycleIsConnected&&(J.lifecycleIsConnected=!1,Z.disconnectedCallback())});
u||vQ3(f,Z,F,P);return f};
$xP=function(K,X,F,P,H){H=H===void 0?Qbl:H;VXd[X]!=null||(VXd[X]=H(K,X,P==null?void 0:P.getTemplate,P));var f=VXd[X],u=f.ctor;H=f.getInitialMethods;var J=f.getPropsToForwardBeforeReady;K=f.getPropsToForwardBeforeRegister;P=f.shouldForwardProp;var Z=f.observedAttributes,M=f.shouldLog,n=u(F,{beforeReady:function(){var c=n;c._takeAttributes?c._takeAttributes():c.setPropertiesFromInitialAttributeValues&&c.setPropertiesFromInitialAttributeValues();c=_.D(J(F.polymerController));for(var B=c.next();!B.done;B=
c.next()){var L=_.D(B.value);B=L.next().value;L=L.next().value;cxy(F,B,L);M(X)&&!Oo(B)&&SYl(F.polymerController,B)}F.polymerController=t1P(n,X)}});
F.polymerController=n;F.polymerController.observedAttributes=Z;f=_.D(n.getExtraMethodsToForward());for(u=f.next();!u.done;u=f.next())Z=_.D(u.value),u=Z.next().value,Z=Z.next().value,psw(F,u,Z);H=_.D(H());for(f=H.next();!f.done;f=H.next())f=f.value,P(f)&&psw(F,f),M(X)&&!Oo(f)&&Bu9(n,f);K=_.D(K());for(P=K.next();!P.done;P=K.next())H=_.D(P.value),P=H.next().value,H=H.next().value,cxy(F,P,H);return n};
EQy=function(K,X){return bb===X?(K.isInert=!0,bb="",!0):gQl===X?(K.isInert=!0,gQl="",!0):!1};
biP=function(K){var X=Ca;Ca=K;return X};
Nu3=function(K){if(NY.has(K))gQl=K;else if(ib.has(K)&&Ca&&C8n(Ca)===K){var X;(X=Ca)._numRenders!=null||(X._numRenders=0);Ca._numRenders++;if(Ca._numRenders>1)throw Error("Og");return Ca}};
iiT=function(K){NY.has(C8n(K))?gQl=C8n(K):ib.has(C8n(K))&&Ca!==K&&(K._isInert=!0)};
C8n=function(K){var X;return(X=K==null?void 0:K.tagName.toLowerCase())!=null?X:""};
xx9=function(K,X){if(K.componentType===BM)throw Error("Pg");ib.add(X);var F=function(){var P=HTMLElement.call(this)||this;P.is=X;if(tXP===X)return P.isInert=!0,P;P.createElement();return P};
_.r(F,HTMLElement);F.prototype.createElement=function(){if(!this.isInert){aMP=this;var P=_.D(_.Sel(function(){return _.Q(K,null)})).next().value;
aMP=void 0;$13(this);return P}};
customElements.define(X,F)};
kzM=function(K,X,F,P,H){K.prototype.is=X;(P==null?0:P.useSink)?IMd(K,X,F,P,H):(F=Qbl(K,X,F,P),oQd(F,X));return K};
IMd=function(K,X,F,P,H){ewO();var f=_.$c(function(u){return OiT(K,X,u,Object.assign({},P,{getTemplate:F}),H)},"a");
xx9(f,X);return f};
X8d=function(K){return!KTq.has(K)};
HFy=function(K,X,F,P){function H(){if(!c){for(var B=new Set(FTO),L=_.D(f.behaviors),A=L.next();!A.done;A=L.next()){A=A.value;for(var d=_.D(Object.getOwnPropertyNames(A)),R=d.next();!R.done;R=d.next()){R=R.value;var l=void 0,a=(l=Object.getOwnPropertyDescriptor(A,R))==null?void 0:l.value;a&&a instanceof Function&&(!M[R]||_.S("polymer_forward_method_killswitch"))&&B.add(R)}}L=_.D(Object.entries(Object.getOwnPropertyDescriptors(K.prototype)));for(A=L.next();!A.done;A=L.next())d=_.D(A.value),A=d.next().value,
d=d.next().value,d.value instanceof Function&&B.add(A);c=B}return c}
var f=$ry({is:X,disableElementRegistration:!1,getTemplate:F,providers:P==null?void 0:P.providers,reactivityMode:P==null?void 0:P.reactivityMode},K);if((P==null?0:P.allowedProps)||(P==null?0:P.allowedPropsFromBehaviors)){var u,J;f.allowedProps=[].concat(_.LZ((u=P.allowedProps)!=null?u:[]),_.LZ((J=P.allowedPropsFromBehaviors)!=null?J:[]))}var Z=hm4(f,K);X=Z.observedAttributes;var M={};F=_.D(f.reactiveSchemas);for(P=F.next();!P.done;P=F.next())if(P=P.value,P.type==="signal")M[P.propertyKey]={readOnly:P.readOnly},
P.readOnly&&(M[JNT(P.propertyKey)]={readOnly:!0});else if(P.type==="compute"||P.type==="computeWithMethod"||P.type==="redux")M[P.propertyKey]={readOnly:!0};var n=f.reactiveSchemas.length,c;return{ctor:function(B,L){B=new Z(B);B.beforeReady=L.beforeReady;return B},
props:M,observedAttributes:X,getInitialMethods:H,getPropsToForwardBeforeRegister:function(){for(var B=[],L=new Set,A=_.D(Ph9),d=A.next();!d.done;d=A.next())d=d.value,B.push([d,d!=="observers"&&d!=="properties"]),L.add(d);A=_.D(Object.keys(M));for(d=A.next();!d.done;d=A.next())d=d.value,B.push([d,M[d].readOnly]),L.add(d);A=H();d=_.D(Object.keys(Object.getOwnPropertyDescriptors(K.prototype)));for(var R=d.next();!R.done;R=d.next())R=R.value,!X8d(R)||A.has(R)||L.has(R)||(B.push([R,!1]),L.add(R));B.push(["allowedProps",
!0]);return B},
getPropsToForwardBeforeReady:function(B){var L=[];B=_.D(Object.keys(B));for(var A=B.next();!A.done;A=B.next()){A=A.value;var d=H();X8d(A)&&!d.has(A)&&L.push([A,!1])}B=_.D(f.reactiveSchemas.slice(n));for(A=B.next();!A.done;A=B.next())A=A.value,A.type!=="compute"&&A.type!=="computeWithMethod"&&A.type!=="redux"&&A.type!=="signal"||L.push([A.propertyKey,A.type==="signal"?A.readOnly:!0]);return L},
shouldForwardProp:X8d,shouldLog:ZA}};
_.t=function(K,X,F,P){var H,f,u=(f=(H=P)==null?void 0:H.mode)!=null?f:0;P!=null||(P={});var J;(J=P).reactivityMode!=null||(J.reactivityMode=0);u===1&&_.X$("creator_poly_si_disable_list").includes(X)&&(u=2);return u===1?kzM(K,X,F,Object.assign({},P,{useSink:!0}),HFy):kzM(K,X,F,Object.assign({},P,{useSink:u===2}))};
_.xc=function(){return function(K,X,F,P){var H,f,u=(f=(H=P)==null?void 0:H.mode)!=null?f:2;P!=null||(P={});var J;(J=P).reactivityMode!=null||(J.reactivityMode=0);if(u===0)throw Error("Qg`"+u);return IMd(K,X,F,P,u===1?HFy:void 0)}};
_.Ig=function(K){return _.S("creator_poly_si_killswitch")?!1:_.S("force_all_poly_si_batches")&&(K==="poly_si_all_on_test_check"||K==="creator_poly_si_batch_050"?0:K)||document.documentElement.hasAttribute("use-signals")?!0:!K||_.S(K+"_holdback_enabled")&&_.S("kevlar_polysi_holdback")?!1:_.S(K)};
kc=function(K){return K?K.icon?K.icon.iconType.toLowerCase():K.customThumbnail?"member":"":""};
sdM=function(K){if(!K)return"";K=_.D(K);for(var X=K.next();!X.done;X=K.next())if((X=X.value)&&X.liveChatAuthorBadgeRenderer&&(X=kc(X.liveChatAuthorBadgeRenderer))&&X!=="verified")return X;return""};
zSd=function(K,X){if(!K)return null;var F;return((F=K.find(function(P){return P&&P.liveChatAuthorBadgeRenderer?kc(P.liveChatAuthorBadgeRenderer)===X:!1}))==null?void 0:F.liveChatAuthorBadgeRenderer)||null};
_.ZFO=function(K){var X=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;K=fjP(K);X=fjP(X);var F=Dky(K.hex);X=Dky(X.hex);var P=X[0]/255;var H=X[1]/255,f=X[2]/255,u=Math.max(P,H,f),J=Math.min(P,H,f),Z=0,M=0,n=.5*(u+J);u!=J&&(u==P?Z=60*(H-f)/(u-J):u==H?Z=60*(f-P)/(u-J)+120:u==f&&(Z=60*(P-H)/(u-J)+240),M=0<n&&n<=.5?(u-J)/(2*n):(u-J)/(2-2*n));P=[Math.round(Z+360)%360,M,n];F=ux3(F,X);for(K=q4w(K.hex);F<4.5;){K=P[2]>=.5?K.darker((4.5-F)/2):K.brighter((4.5-F)/2);F=K.toString();
H=Jn4(F);if(!H.length)throw Error("Pd`"+F);F=H;F=ux3(F,X)}return K.hex()};
ux3=function(K,X){K=_.IPd(K);X=_.IPd(X);return(Math.max(K,X)+.05)/(Math.min(K,X)+.05)};
_.KB=function(K){return"#"+("000000"+(K&16777215).toString(16)).slice(-6)};
_.Y43=function(K){for(var X=0,F=0;F<K.length;F++)X=K.charCodeAt(F)+((X<<5)-X);K="#";for(F=0;F<3;F++)K+=("00"+(X>>F*8&255).toString(16)).slice(-2);return K};
Qd4=function(K){K=(K||"").split(":");K.length===1&&K.unshift("yt-icons");K[1]=K[1].toLowerCase();return K};
S43=function(K,X){var F=(X=X===void 0?!1:X)?M5q:nJM,P=X?cnd:p8l;K.getIconNames().forEach(function(H){H=X?H:H.substring(H.indexOf(":")+1);K.name==="yt-icons"?BoO.add(H):H.includes("-filled")?F.add(H):P.add(H)})};
Xl=function(K,X,F,P){F=F===void 0?!1:F;P=P===void 0?!1:P;var H,f,u;return _.q(function(J){if(J.nextAddress==1)return _.Y(J,oJP,2);if(P)return J.return(BoO.has(K));H=F?M5q:nJM;f=F?cnd:p8l;return X?(u=K.includes("-filled")?K:K.concat("-filled"),J.return(H.has(u))):J.return(f.has(K))})};
_.rnl=function(K){if(LTn(K))return K;var X=K=K.toLowerCase();(K=ToM.get(K))&&(X=K);return X};
_.Fl=function(K){if(LTn(K))return K.toString();var X=An9.get(K);if(X)return X;X=K.toLowerCase();var F="yt-icons",P=X.replace(/_/g,"-");switch(K){case "MY_CHANNEL":X="account_circle";break;case "ADD_TO_LIBRARY":X="add";break;case "ALERT_WARN_RED":X="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":X="person_music";break;case "BLOCK_USER":X="block";break;case "CAPTIONS":X="closed_caption";break;case "CLOSED_CAPTION":F="av";X="closed-caption";break;case "COLLECTION":F="maps";X="layers";break;case "CONTACT":F=
"icons";X="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":F="ytcp-icons";X=P.split("creator-studio-")[1];break;case "DISMISSAL":X="close";break;case "DO_NOT_DISTURB":X="block";break;case "DOGFOOD":F="icons";X="pets";break;case "DRAFT":X="paper_corner_folded";break;
case "EMPTY_LIKE":X="like_outline";break;case "EXIT_APP":X="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":X=P;break;case "GAMES":F="ytg";X="my-games";break;case "GO_TO_PAGE":X="arrow-forward";break;case "GROUP":F="social";break;case "HIDE":X="not_interested";break;case "INPUT_COMPONENT":F="icons";X="settings-input-component";break;case "KIDS_BLOCK":X="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":F="ytg";X="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":F=
"ytg";X="membership-post-purchase";break;case "MULTIVIEW":X="screen_multi_view";break;case "MY_LOCATION":F="maps";X=P;break;case "NOTIFICATIONS_INBOX":X="NOTIFICATIONS";break;case "NEXT":X="chevron_right";break;case "OFFLINE":X="power-settings-new";break;case "PAUSE":F="miniplayer";break;case "PAYMENT":F="icons";break;case "PHONE_DOWNLOAD":X="phone_download";break;case "PREMIUM_STANDALONE":F="yt-logos";X="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":F="yt-logos";X="premium_standalone_cairo";
break;case "QUESTION_ANSWER":X="question_answer";break;case "REDEEM":F="icons";X="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":X="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":X="library_add";break;case "SCHOOL":F="yt-sys-icons";X="creator_academy";break;case "SETTINGS_LIGHT":X="settings_applications";break;case "SETTINGS_MATERIAL":X="settings";break;case "SEARCH_HISTORY":X="watch_history";break;case "SHOPPING_BAG":X="bag";break;case "SOCIAL":case "PEOPLE":F=
"yt-icons";X="people";break;case "STAFF_PICK":F="ytg";X="spotlight";break;case "START_DVR":X="add";break;case "STOP_DVR":F="av";X="stop";break;case "TAB_LIKED":X="like";break;case "TAB_INBOX":X="mail";break;case "TERMS_OF_SERVICE":F="icons";X="description";break;case "TRENDING":X="fire";break;case "UNBLOCK_USER":X="remove";break;case "UNPLUGGED_DARK_THEME":F="image";X="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":X="live";break;case "UNPLUGGED_SPORTS":F="ytu";X="visibility-off";break;
case "VIDEOS":F="av";X="play-circle-filled";break;case "YOUTUBE":F="yt-logos";X="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":F="yt-logos-ext";X="yt-logo-red-updated";break;case "YOUTUBE_LOGO":F="yt-logos-ext";X="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":F="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":F="shorts";X=P;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":F="yt-sys-icons";X="youtube_improve_tv";break;case "OUTLINE_BAG":F=
"yt-sys-icons";X="bag";break;case "QUEUE_PLAY_LAST":F="yt-sys-icons";X="list_queue_last";break;case "SLASH_CIRCLE_LEFT":X="slash_circle_left";break;case "SPEED_1_POINT_2X":X="1_point_2x";break;case "SPEED_1_POINT_5X":X="1_point_5x";break;case "SPEED_1_POINT_8X":X="1_point_8x";break;case "SPEED_POINT_2X":X="point_2x";break;case "SPEED_POINT_5X":X="point_5x";break;case "SPEED_POINT_8X":X="point_8x";break;case "SPEED_1X":X="1x";break;case "SPEED_2X":X="2x";break;case "TAB_BOOKMARK":X="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":F="yt-sys-icons";X="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":F="yt-sys-icons";X="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":F="yt-sys-icons",X="tic_tac_toe"}X=F+":"+X;An9.set(K,X);return X};
LTn=function(K){var X;_.S("kevlar_use_wil_icons")?X=!!_.i9().resolve(_.Pn).resolveIcon({iconName:K.toString()}):X=!1;return X};
_.sP=function(K,X,F,P){F=F===void 0?{}:F;P=P===void 0?!1:P;F===null&&(F={});var H=_.X$("kevlar_command_handler_command_banlist");H=_.D(H);for(var f=H.next();!f.done;f=H.next())if(f=K?K.hasOwnProperty(f.value):void 0,f)return!1;H=_.T(K.commandMetadata,_.g_);return P&&H!=null&&H.url?!1:!X.disableCommandHandlerOverride&&_.Hn.instance?(P=_.Hn.instance,F.form||(F.form={element:X}),F.form.element||(F.form.element=X),!F.clickedVisualElement&&X.visualElement&&(F.clickedVisualElement=X.visualElement),P.resolveCommand(K,
F),!0):!1};
jdT=function(K,X){K=zD(K);for(var F=_.D(K.visibilityMonitorKeys||[]),P=F.next();!P.done;P=F.next())X.unobserveByKey(P.value);K.visibilityMonitorKeys=void 0};
dkO=function(K,X){if(_.AD()){if(_.S("kevlar_vimio_use_shared_monitor"))w83(K,X.data);else if(!w83(K,X.data))return;var F=X.data,P=ynw(F);if(_.S("enable_client_ve_spec_logging"))jdT(K,X.observer);else{var H=zD(K);H.trackedParams&&H.trackedParams!==P&&jdT(K,X.observer)}H=zD(K);!F||H.data&&H.data===F||(H.data=F);WTP(K,X);H.trackedParams=P}};
WTP=function(K,X){var F=X.observer;if(!F&&_.S("web_skip_missing_vimio_observer")){var P,H;_.yy(new _.nG("VisibilityObserver is not defined.",K.tagName,K.trackedParams,(P=X.data)==null?void 0:P.trackingParams,(H=X.data)==null?void 0:H.loggingDirectives))}else{var f=X.layer,u=X.visibilityCallback||function(){},J=X.prescanCallback,Z=zD(K);
P=[];X.showOption&&P.push(F.observe(K,function(){X.skipLogging&&X.skipLogging()||_.fB().reportShown(Z,void 0,f);u(!0)},X.showOption));
X.hideOption&&P.push(F.observe(K,function(){_.fB().reportHidden(Z,void 0,f);u(!1)},X.hideOption));
X.prescanOption&&J&&P.push(F.observe(K,function(){J()},X.prescanOption));
Z.visibilityMonitorKeys=P}};
w83=function(K,X){K=zD(K);if(K.visualElement&&!X)return!0;if(!X)return!1;var F=!1;if(_.S("enable_client_ve_spec_logging")){var P,H;F=!!((P=X.loggingDirectives)==null?0:(H=P.clientVeSpec)==null?0:H.uiType)}P=ynw(X);if(!P&&!F)return!1;_.S("mweb_component_visibility_logging")&&(K.veContainer||(K.veContainer={}),K.veContainer.trackingParams=P);if(K.trackedParams&&K.trackedParams===P)return!1;var f;if(_.S("enable_client_ve_spec_logging")&&((f=K.visualElement)==null?0:f.isClientVe())){var u;f=(u=K.visualElement)==
null?void 0:u.getAsJspb();var J,Z,M,n;if(_.XA(f,2)===((J=X.loggingDirectives)==null?void 0:(Z=J.clientVeSpec)==null?void 0:Z.uiType)&&_.XA(f,3,-1)===((M=X.loggingDirectives)==null?void 0:(n=M.clientVeSpec)==null?void 0:n.elementIndex))return!1}if(_.S("enable_client_ve_spec_logging")){var c,B;!K.visualElement&&((c=X.loggingDirectives)==null?0:(B=c.clientVeSpec)==null?0:B.uiType)&&(J=X.loggingDirectives.clientVeSpec,X=J.uiType,u=J.elementIndex,J=J.clientYoutubeData,K.visualElement=_.Da(_.uH(),{veType:X,
elementIndex:u,clientYouTubeData:J}))}return!0};
ynw=function(K){if(K==null?0:K.rendererContext){var X=_.T(K.rendererContext,_.q0);if(X==null?0:X.loggingDirectives)return X.loggingDirectives.trackingParams}return(K==null?0:K.loggingDirectives)?K.loggingDirectives.trackingParams:K==null?void 0:K.trackingParams};
zD=function(K){var X;return(X=K.polymerController)!=null?X:K};
hSl=function(K){_.fB();if(_.hV(JY().JSC$10470_elementShouldLogGesture).bind(JY())(K,4)){eS9(K);var X=RS3(K);Ukw.set(K,X)}};
eS9=function(K){Ukw.has(K)&&(Ukw.get(K).cancel("untrack hover element"),Ukw.delete(K))};
RS3=function(K){var X,F=[],P=!1,H=new _.fL(function(f,u){Za(K,"mouseenter",_.hV(function(){var J,Z,M;return _.q(function(n){if(n.nextAddress==1)return X=(0,_.CG)(),J=mkP(K),F.push(J),Z=Ggy(K,function(){P=!0;u(Error("Rg"))}),_.Y(n,J,2);
if(n.nextAddress!=3)return Z&&YO(Z),M=ljP(K),F.push(M),_.Y(n,M,3);f();_.JT(n)})}))});
H.then(function(){var f=(0,_.CG)()-X;f=Math.round(f);if(!(500>f||6E5<=f)){var u=K.getScreenLayer?K.getScreenLayer():void 0;u=_.AD(u)||"";var J=vJ3(_.fB(),K);_.a7(u,K.visualElement?K.visualElement:_.QB(J),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:f}})}hSl(K)},function(){M0&&(M0(),M0=null);
P&&(eS9(K),hSl(K))});
return H};
mkP=function(K){var X;return(new _.fL(function(F,P){M0=function(){P(Error("Sg"))};
X=_.A9.debounce(_.hV(function(){YO(H);F()}),1,100);
var H=_.nB(K,"mousemove",X)})).thenCatch(function(){var F=_.A9.cancelDebouncedJobMap.get(X);
F&&_.A9.cancelJob(F)})};
ljP=function(K){var X;return(new _.fL(function(F,P){M0=function(){P(Error("Tg"))};
X=Za(K,"mouseleave",_.hV(function(){F()}))})).thenCatch(function(){YO(X)})};
Ggy=function(K,X){return Za(K,"mouseleave",_.hV(X))};
t5q=function(K){ajy&&_.cn.cancel(ajy);ajy=_.cn.run(function(){_.iX(K,"yt-visibility-refresh");ajy=0})};
$kn=function(K){K=Number(K);return"rgba("+[K>>16&255,K>>8&255,K&255,(K>>24&255)/255].join()+")"};
V5P=function(K){if(!K)return!1;if(_.T(K,_.OF3))return!0;var X;if(K=(X=_.T(K,_.PW))==null?void 0:X.commands)for(X=_.D(K),K=X.next();!K.done;K=X.next())if(_.T(K.value,_.OF3))return!0;return!1};
gJl=function(K){var X=!0;X=X===void 0?!0:X;if(!K.useSignals&&!K.experimentalPropertiesChanged||_.S("experimental_templating_behavior_nopatch_killswitch")){var F=K._propertiesChanged;K._propertiesChanged=function(P,H,f){X?K.debounceRender():K.doRender();F&&F.call(K,P,H,f)}}};
EJy=function(K,X){if(K.useSignals||K.experimentalPropertiesChanged)if(_.S("experimental_templating_behavior_nopatch_killswitch"))K.experimentalPropertiesChanged=function(){};
else return;var F=new Set,P=[K].concat(_.LZ(K.behaviors));P=_.D(P);for(var H=P.next();!H.done;H=P.next()){H=H.value;for(var f in H.properties)F.has(f)||(K._addPropertyEffect(f,"function",X),F.add(f))}};
bF9=function(){var K=Polymer.Element,X=K._prepareTemplate;K._prepareTemplate=function(){X.call(this);var F=this.prototype;if(F.experimentalTemplatingInUse&&F.experimentalTemplatingInUse()&&F.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.jF(Error("Ug"));else{F=this.template.content.childNodes;for(var P=F.length-1;P>=0;P--){var H=F[P];H.nodeName!=="STYLE"&&H.nodeName!=="LINK"&&H.nodeName!=="SCRIPT"&&H.nodeName!=="#comment"&&H.remove()}}}};
Chl=function(K){var X=!0;X=X===void 0?!0:X;bF9();var F=K.ready;K.ready=function(){this._template=null;F.call(this)};
EJy(K,X?K.debounceRender:K.doRender)};
iFP=function(K,X,F){if(F===null||F===void 0)return F;var P=YMT(K.tagName.toLowerCase(),X,function(){throw Error("Qb");});
if(P===null)return F;P=No3[P];var H;if((H=P.isUnwrappable)==null?0:H.call(P,F)){if(P.unwrap)return P.unwrap(F);throw Error("Xg");}return P.filterString?P.filterString(K.tagName,X,String(F)):F};
xkO=function(K,X,F){var P=X[X.length-1]!=="$",H=iFP(K,X,F);if(P)if(typeof H==="function"&&X.startsWith("reactiveon")&&X===X.toLowerCase()){var f=CJ;TGP(K,X.slice(8),function(u){WM(f,function(){H(u)})})}else K[X]=H;
else F=H==null?null:String(H),L3T(K,X.slice(0,-1),F)};
Bn=function(K){IjM.length===0&&requestAnimationFrame(function(){setTimeout(function(){var X=IjM.slice();IjM.length=0;X=_.D(X);for(var F=X.next();!F.done;F=X.next()){F=F.value;try{F()}catch(P){_.pB(P)}}})});
IjM.push(K)};
kgn=function(K){if(K){var X=K.component;if(X){var F;X==null||(F=X.events)==null||F.publish("DISCONNECTED");var P;X==null||(P=X.onDisconnected)==null||P.call(X)}var H,f;(H=K.__spec)==null||(f=H.didUnmount)==null||f.call(H);for(X=0;X<K.childNodes.length;X++)kgn(K.childNodes[X])}};
ov=function(K,X,F){var P=X&&X.key,H=$M;H[0]=K;H[1]=P;H[2]=void 0;for(var f in X)X.hasOwnProperty(f)&&(K=X[f],P=gs,P.push(f),P.push(K));X=$M;a:{if(f=$M[2])for(K=0;K<f.length;K+=2)if(f[K]==="nonce"){f=f[K+1];break a}f=""}f=Goy(X[0],X[1],f);K=Ug(f);P=X[2];if(!K.staticsApplied&&(K.staticsApplied=!0,P&&P.length))if((H=K._attrsArr)&&H.length){for(H=0;H<P.length;H+=2)S9[P[H]]=H+1;H=K._attrsArr||(K._attrsArr=ogd(0));for(var u=0,J=0;J<H.length;J+=2){var Z=H[J],M=H[J+1],n=S9[Z];n?P[n]===M&&delete S9[Z]:(H[u]=
Z,H[u+1]=M,u+=2)}ej(H,u);for(var c in S9)y9O(f,c,P[S9[c]],Ej),delete S9[c]}else for(c=0;c<P.length;c+=2)y9O(f,P[c],P[c+1],Ej);Vtq(f,K,Ej);ej(X,0);F&&F(hZ);lT9()};
KFw=function(K){var X=K.toString().toLowerCase();return function(F,P){ov(X,F,P)}};
_.LB=function(K,X,F){F===void 0?delete K[X.name]:K[X.name]=F};
_.TD=function(K){var X={androidIncludeFontPadding:!1},F=0,P=[],H=[],f=[];if(K.simpleText)return X.content=K.simpleText,X;if(K.runs===void 0)return X.content="",X;K=_.D(K.runs);for(var u=K.next();!u.done;u=K.next()){u=u.value;var J=u.text,Z=void 0,M=(Z=J)==null?void 0:Z.length;if(J&&M){P.push(J);if(u.bold||u.italics||u.strikethrough||u.underline||u.textColor!=null&&u.textColor!==0||u.deemphasize){J=H;Z=J.push;var n={startIndex:F,length:M};u.bold&&(n.weightLabel="FONT_WEIGHT_MEDIUM");u.italics&&(n.italic=
!0);u.strikethrough&&(n.strikethrough="LINE_STYLE_SINGLE");u.underline&&(n.underline="LINE_STYLE_SINGLE");u.textColor!=null&&u.textColor!==0?document.documentElement.hasAttribute("dark")?n.fontColor=u.darkModeTextColor||u.textColor:n.fontColor=u.textColor:u.deemphasize&&(document.documentElement.hasAttribute("dark")?n.fontColor=parseInt("ff"+XiM("#aaa").substring(1),16):n.fontColor=parseInt("ff"+XiM("#606060").substring(1),16));Z.call(J,n)}u.navigationEndpoint&&(J=f,Z=J.push,n={startIndex:F,length:M,
onTap:{innertubeCommand:u.navigationEndpoint}},u.loggingDirectives&&_.LB(n,FFq,u.loggingDirectives),Z.call(J,n));F+=M}}X.content=P.join("");X.styleRuns=H.length?H:void 0;X.commandRuns=f.length?f:void 0;return X};
HCd=function(K){if(K==null||!K.runs)return!0;K=_.D(K.runs);for(var X=K.next();!X.done;X=K.next())if(X=X.value,X.bracket||X.errorUnderline||X.deemphasize||_.T(X,r$)||_.T(X,P0O))return!1;return!0};
sLn=function(K,X){return function(F){var P=X.unit;if(P!==F)throw Error("$g`"+K+"`"+P+"`"+F);return X}};
AY=function(K){if(!((K==null?0:K.value)&&(K==null?0:K.unit)))return"";switch(K.unit){case "DIMENSION_UNIT_FRACTION":var X="%";break;default:X="px"}K=K.value;X==="%"&&(K*=100);return""+K+X};
zaM=function(K){try{return K()}catch(X){_.yy(X)}};
_.w$=function(K){var X=_.T(K,_.j9);if(X)return X;if((X=_.T(K,fen))&&X.commands)return D9l(X.commands);if((X=_.T(K,ue3))&&X.commands)return D9l(X.commands);if((K=_.T(K,q7n))&&K.identifier&&K.command&&(Jhw||(Jhw=[]),!Jhw.includes(K.identifier)))return Jhw.push(K.identifier),_.T(K.command,_.j9)};
D9l=function(K){if(K.length!==0){var X=[];K=_.D(K);for(var F=K.next();!F.done;F=K.next())(F=_.w$(F.value))&&X.push(F);return{commandExecutorCommand:{commands:X}}}};
_.Wn=function(K){var X=K.defaultTarget,F=K.elementConfig,P=K.elementsCommand,H=K.skipOnClick,f=K.forceNewState,u=K.additionalCommandArgs,J=K.innertubeCommand||_.w$(P);if(J){K={};var Z=ZCl(J);P=Z.navigatingCommand;Z=Z.href;P&&Z?(K.href$=Z,Y7q(K,P,Z,X),_.S("web_atagconfig_pointerdown")&&QLM(K,P),f&&(K["force-new-state$"]=!0)):(K.role$="button",K.href$="javascript:void(0);");_.T(J,MSy)&&(K["aria-haspopup$"]=!0);H||(K.onclick=function(M){if(njl(M)){var n=Object.assign({},{form:{element:M.target,event:M}},
u);M.preventDefault();_.yB(J,n)}});
return Object.assign({},F,K)}};
chM=function(K){if(K.length){if(K.length===1)return K[0];var X={};_.LB(X,_.PW,{commands:K});return X}};
d$=function(K){return K&&K.href$!=="javascript:void(0);"};
ZCl=function(K){var X,F=((X=_.T(K,_.PW))==null?void 0:X.commands)||[K];K=_.D(F);for(X=K.next();!X.done;X=K.next()){X=X.value;var P=void 0,H=void 0;F=(H=_.T((P=X)==null?void 0:P.commandMetadata,_.g_))==null?void 0:H.url;_.S("web_remove_web_navigation_endpoint_data")||(P=void 0,F=F||((P=_.T(X,piy))==null?void 0:P.url));if(F&&F!=="/service_ajax"){if(P=ns(F,BNn))return K=_.Qz(P),{navigatingCommand:X,href:K};_.yy(new _.nG("AttributedString URL could not be sanitized",F))}}return{}};
njl=function(K){return K.button!==void 0?K.button===0&&!(K.shiftKey||K.altKey||K.metaKey||K.ctrlKey):!(K.shiftKey||K.altKey||K.metaKey||K.ctrlKey)};
Y7q=function(K,X,F,P){F=!b9(F);var H,f,u;if((H=_.T(X,_.f$))!=null&&H.nofollow||(f=_.T(X,_.vg))!=null&&f.nofollow||(u=_.T(X,_.mc))!=null&&u.nofollow||F)K.rel$="nofollow";var J;X=((J=_.T(X,_.mc))==null?void 0:J.target)==="TARGET_NEW_WINDOW"?"_blank":P===void 0?"":P;K.target$=X};
QLM=function(K,X){X.clickTrackingParams&&(K.params={itct:X.clickTrackingParams});K.onpointerdown=function(F){S79(F)};
K._data=X};
ojl=function(K){(K.loggingUrls||[]).forEach(function(X){Go(X.baseUrl,X.attributionSrcMode)})};
LFq=function(K){K.currentTarget._data&&ojl(K.currentTarget._data)};
S79=function(K){var X=K.currentTarget;K=zaM(function(){return X.href});
var F=X.params;K&&_.Oc(K,F||{},8,!0)};
TN3=function(K,X){if(X=_.T(X,_.mc))(X==null?void 0:X.target)==="TARGET_NEW_WINDOW"&&(K.target="_blank"),X.nofollow&&(K.rel="nofollow")};
rhy=function(K){K=_.T(K==null?void 0:K.commandMetadata,_.g_);return(K==null?0:K.url)?K.url:null};
_.e9=function(K,X){(K=_.w$(K))&&_.yB(K,X)};
_.yB=function(K,X){ebw(function(F){X?F.resolveCommand(K,X):F.resolveCommand(K)})};
yhM=function(K,X){var F=["yt-core-attributed-string__link"];X!=null&&X.noLinkColor||((X==null?0:X.isOverlay)?F.push("yt-core-attributed-string__link--overlay-call-to-action-color"):F.push("yt-core-attributed-string__link--call-to-action-color"),(X==null?0:X.linkInheritColor)&&F.push("yt-core-attributed-string--link-inherit-color"));F={className:F.join(" "),tabindex$:"0"};var P=K.onTap||K.onLongPress;if(!P)return F;var H=Ah9(K);H&&(F["aria-label$"]=H);X=_.Wn({elementsCommand:P,elementConfig:F,skipOnClick:!(X==
null||!X.skipOnClick),forceNewState:!0});K.onLongPress&&(P=new jL9(function(){var f=_.w$(K.onLongPress);f&&_.i9().resolve(_.xU).resolveCommand(f)}),X&&wid(P,X));
return X||F};
Ah9=function(K){var X,F;return(X=K.onTapOptions)==null?void 0:(F=X.accessibilityInfo)==null?void 0:F.accessibilityLabel};
WF4=function(K){var X=K;K<=16777215&&(X+=parseInt("ff000000",16));return _.wq(X)};
d9O=function(K){var X=K.isDarkTheme;var F=K.extension;K=K.runColor;var P=void 0;if(F=F==null?void 0:F.colorMap){X=X?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";F=_.D(F);for(var H=F.next();!H.done;H=F.next())if(H=H.value,X===H.key){P=H.value;break}}P==null&&K&&(P=K);if(P)return WF4(P)};
Rv=function(K){var X=K.config;var F=K.image;var P=K.imageConfig;var H=K.imageWrapperConfig;var f=K.run;var u=K.tag;var J=K.textLength;var Z=K.startIndex===void 0?0:K.startIndex;K=K.length;Z===void 0&&(Z=0);f={run:f,startIndex:Z,endIndex:K!==void 0?Z+K:J,tag:u};F&&(f.image=F);P&&(f.imageConfig=P);H&&(f.imageWrapperConfig=H);X&&(f.config=X);return f};
Ra4=function(K,X){var F=[];F.push("yt-core-attributed-string");(X==null?0:X.className)&&F.push(X==null?void 0:X.className);(X==null?0:X.ellipsisTruncate)?F.push("yt-core-attributed-string--ellipsis-truncate"):(X==null?0:X.noWrap)?F.push("yt-core-attributed-string--white-space-no-wrap"):(X==null?0:X.noPreWrap)||F.push("yt-core-attributed-string--white-space-pre-wrap");(X==null?0:X.linkInheritColor)&&F.push("yt-core-attributed-string--link-inherit-color");K.alignment&&F.push(eaP(K.alignment));K.lineBreakMode&&
F.push("yt-core-attributed-string--word-wrapping");return F.join(" ")};
U94=function(K){if(K.weight)return K.weight;switch(K.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
hal=function(K){switch(K){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"}};
eaP=function(K){switch(K){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"}};
G2l=function(K,X,F){var P=X;K.content&&F&&(F=K.content.indexOf("\n"),F!==-1&&(P=Math.min(X,F)));if(!K.content||K.content.length<=P)X=K;else if(K.attachmentRuns||K.commandRuns||K.decorationRuns||K.styleRuns||K.paragraphStyleRuns){X=UP(K.content,P);F=P;var H=K.attachmentRuns;if(H){var f=[];H=_.D(H);for(var u=H.next();!u.done;u=H.next())u=Object.assign({},u.value),u.startIndex===void 0||u.startIndex>=F||(u.length||(u.length=0),u.length+u.startIndex>F&&(u.length=F-u.startIndex),f.push(u));F=f}else F=
void 0;f=m9T(P,K.commandRuns);H=P;var J=K.decorationRuns;if(J){u=[];J=_.D(J);for(var Z=J.next();!Z.done;Z=J.next()){Z=Z.value;var M=_.T(Z.textDecorator,hY);if(M&&M.startIndex!==void 0&&!(M.startIndex>=H)){Z=Object.assign({},Z,{textDecorator:{highlightTextDecorator:Object.assign({},M)}});M=_.T(Z.textDecorator,hY);if(!M.length||M.length+M.startIndex>H)M.length=H-M.startIndex;u.push(Z)}}H=u}else H=void 0;u=m9T(P,K.styleRuns);if(J=K.paragraphStyleRuns)for(K=[],J=_.D(J),Z=J.next();!Z.done;Z=J.next()){var n=
Z.value;Z=Object.assign({},n);if(!(Z.startIndex===void 0||Z.startIndex>=P)){if(!Z.length||Z.length+Z.startIndex>P)Z.length=P-Z.startIndex;M=[];var c=void 0,B=void 0;if((c=n)==null?0:(B=c.listGroup)==null?0:B.listItems)for(n=_.D(n.listGroup.listItems),c=n.next();!c.done;c=n.next())if(c=Object.assign({},c.value),!(c.startIndex===void 0||c.startIndex>=P)){if(!c.length||c.length+c.startIndex>P)c.length=P-c.startIndex;M.push(c)}M.length>0&&(Z.listGroup||(Z.listGroup={}),Z.listGroup=Object.assign({},Z.listGroup,
{listItems:M}));K.push(Z)}}else K=void 0;X={content:X,attachmentRuns:F,commandRuns:f,decorationRuns:H,styleRuns:u,paragraphStyleRuns:K}}else X=Object.assign({},K,{content:UP(K.content,P)});return X};
m9T=function(K,X){if(X){var F=[];X=_.D(X);for(var P=X.next();!P.done;P=X.next())if(P=Object.assign({},P.value),!(P.startIndex===void 0||P.startIndex>=K)){if(!P.length||P.length+P.startIndex>K)P.length=K-P.startIndex;F.push(P)}return F}};
UP=function(K,X){var F=X,P;if(P=F>0)P=K.charCodeAt(F-1),P=P>=55296&&P<=56319;P&&(F=K.charCodeAt(F),P=F>=56320&&F<=57343);P&&--X;return K.substring(0,X)};
tSd=function(K,X,F){F=F===void 0?le4:F;if(K){var P=_.i9().resolve(CL);P||_.S("mweb_no_observer_killswitch")?dkO(K,{data:X,observer:P,visibilityCallback:F,hideOption:vjl,showOption:aeP,layer:K.layer}):_.yy(new _.nG("Warning: monitorVisibility called with null observer",K.tagName,X==null?void 0:X.loggingDirectives,X==null?void 0:X.trackingParams))}else _.yy(new _.nG("Warning: monitorVisibility called with null element",X==null?void 0:X.loggingDirectives,X==null?void 0:X.trackingParams,X==null?void 0:
X.rendererContext))};
C0T=function(K,X){var F=[],P=K.content.length,H,f=(H=_.i9().resolve(_.Nu(_.m$)))==null?void 0:H();if(K.paragraphStyleRuns){H=_.D(K.paragraphStyleRuns);for(var u=H.next();!u.done;u=H.next()){var J=F.push,Z=J.apply;var M=void 0;u=u.value;if((M=u.listGroup)!=null&&M.listItems){M=[];b:switch(u.listGroup.listType){case "LIST_TYPE_BULLET":var n="ul";break b;default:n="span"}M.push(Rv({run:u,textLength:P,tag:n,config:{className:"yt-core-attributed-string__list-group"},startIndex:u.startIndex,length:u.length}));
n=_.D(u.listGroup.listItems);for(var c=n.next();!c.done;c=n.next()){c=c.value;b:switch(u.listGroup.listType){case "LIST_TYPE_BULLET":var B="li";break b;default:B="span"}M.push(Rv({run:u,textLength:P,tag:B,startIndex:c.startIndex,length:c.length}))}u=M}else u=[];Z.call(J,F,_.LZ(u))}}if(K.styleRuns&&(X==null||!X.noStyleRuns))for(H=_.D(K.styleRuns),J=H.next();!J.done;J=H.next()){J=J.value;Z=d9O({extension:_.T(J.styleRunExtensions,$99),isDarkTheme:f===void 0?!1:f,runColor:J.fontColor});M=[];Z&&M.push("yt-core-attributed-string--link-inherit-color");
J.italic&&M.push("yt-core-attributed-string--italicized");J.underline&&J.strikethrough?M.push("yt-core-attributed-string--underline-strikethrough",hal(J.underline)):J.underline?M.push("yt-core-attributed-string--underlined",hal(J.underline)):J.strikethrough&&M.push("yt-core-attributed-string--strikethrough",hal(J.strikethrough));if(J.baselineOffset){a:switch(J.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":u="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":u=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:u="yt-core-attributed-string--baseline-offset-unknown"}M.push(u)}u=M.join(" ");M=J;n={};if(M.weight||M.weightLabel)n.fontWeight=U94(M).toString();Z&&(n.color=Z);F.push(Rv({run:J,textLength:P,tag:"span",config:{className:u,style:n},startIndex:J.startIndex,length:J.length}))}if(K.decorationRuns)for(H=_.D(K.decorationRuns),J=H.next();!J.done;J=H.next())J=J.value,Z={},J.textDecorator&&(n=J.textDecorator,u=f===void 0?!1:f,c=[],M=
_.T(n,hY),n=_.T(n,OCy),M?(n=c,c=n.concat,B=[],(u=d9O({extension:_.T(M.highlightTextDecoratorExtensions,VSP),isDarkTheme:u,runColor:M.backgroundColor}))&&B.push("background-color: "+u+";"),M.backgroundCornerRadius!==void 0&&B.push("border-radius: "+M.backgroundCornerRadius+"px;"),M.leftPadding!==void 0&&B.push("padding-left: "+M.leftPadding+"px;"),M.rightPadding!==void 0&&B.push("padding-right: "+M.rightPadding+"px;"),M.topPadding!==void 0&&B.push("padding-top: "+M.topPadding+"px;"),M.bottomPadding!==
void 0&&B.push("padding-bottom: "+M.bottomPadding+"px;"),c=c.call(n,B)):n&&(M=c,c=M.concat,u=u?"#2ba640":"#107516",u=n.color?WF4(n.color):u,u=["padding: 2px;","border-top: solid "+u+" 2px;","border-bottom: solid "+u+" 2px;","background: linear-gradient(135deg, "+u+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+u+" 3px, rgba(0, 0, 0, 0) 3px);"],c=c.call(M,u)),u=c.join(" "),Z.style$=u,u=J.textDecorator,M=[],n=_.T(u,OCy),_.T(u,hY)?M.push("yt-core-attributed-string--highlight-text-decorator"):
n&&M.push("yt-core-attributed-string--bracket-text-decorator"),u=M.join(" "),Z.className=u,Z.dir="auto"),u=_.T(J.textDecorator,hY),M=_.T(J.textDecorator,OCy),n=_.T(J.textDecorator,hY),c=_.T(J.textDecorator,OCy),F.push(Rv({run:J,textLength:P,tag:"span",config:Z,startIndex:(u==null?void 0:u.startIndex)||(M==null?void 0:M.startIndex)||0,length:(n==null?void 0:n.length)||(c==null?void 0:c.length)||0}));if(K.commandRuns&&(X==null||!X.noEndpoints))for(f=_.D(K.commandRuns),H=f.next();!H.done;H=f.next())H=
H.value,J=yhM(H,X),F.push(Rv({run:H,textLength:P,tag:"a",config:J,startIndex:H.startIndex,length:H.length}));if(K.attachmentRuns)for(K=_.D(K.attachmentRuns),f=K.next();!f.done;f=K.next()){f=f.value;Z=J=void 0;H={className:"yt-core-attributed-string--inline-block-mod"};if((Z=f.element)==null?0:Z.properties){Z=(J=f.element)==null?void 0:J.properties;J=[];Z=_.T(Z,gjl);if(Z==null?0:Z.margin)Z=Z.margin,Z.left&&J.push("margin-left: "+AY(Z.left)+";"),Z.right&&J.push("margin-right: "+AY(Z.right)+";"),Z.top&&
J.push("margin-top: "+AY(Z.top)+";"),Z.bottom&&J.push("margin-bottom: "+AY(Z.bottom)+";");J=J.length!==0?J.join(" "):void 0;H.style$=J}u=void 0;J={alt:"",preserveHeight:!0,preserveWidth:!0};Z=["yt-core-attributed-string__image-element"];if(f.alignment){a:switch(f.alignment){case "ALIGNMENT_BASELINE":M="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":M="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:M=
"yt-core-attributed-string__image-element--image-alignment-bottom"}Z.push(M)}if((u=f.element)==null?0:u.properties)u=[],M=_.T(f.element.properties,gjl),(M==null?0:M.height)&&u.push("height: "+AY(M.height)+";"),(M==null?0:M.width)&&u.push("width: "+AY(M.width)+";"),u=u.length!==0?u.join(" "):void 0,J.style$=u,M=void 0,u=((M=_.T(f.element.properties,Ejy))==null?void 0:M.label)||"",J.alt=u;J.className=Z.join(" ");Z=void 0;n=M=void 0;u=((n=f.element)==null?0:n.type)?(M=_.T(f.element.type,bCq))==null?
void 0:M.image:void 0;F.push(Rv({run:f,textLength:P,tag:"img",image:u,imageConfig:J,imageWrapperConfig:H,startIndex:f.startIndex,length:(Z=f.length)!=null?Z:0}))}if(X==null?0:X.headerRuns)for(X=_.D(X.headerRuns),K=X.next();!K.done;K=X.next())if(K=K.value,K.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(K.headerMapping)){a:{switch(K.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":f=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":f="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":f="yt-core-attributed-string--heading-3";break a}f=void 0}F.push(Rv({run:K,textLength:P,tag:"span",config:f?{className:f}:void 0,startIndex:K.startIndex,length:K.length}))}return F};
_.GD=function(K){return(K==null?void 0:K.content)!==void 0};
NNl=function(K){return _.GD(K)?K:_.TD(K)};
iCw=function(K){return K.image!==void 0&&K.imageConfig!==void 0};
x99=function(K,X){if(X==null?0:X.userInput)for(K=_.D(K),X=K.next();!X.done;X=K.next())if(X=X.value,X.tag!=="a"&&X.tag!=="li"){var F=void 0;(F=X).config||(F.config={});X.config.dir=X.tag==="ul"?_.i9().resolve(_.lH):"auto"}};
Iel=function(K){return function(X){var F=K.run;(F.onTap!==void 0||F.onLongPress!==void 0)&&_.T(F,FFq)&&tSd(X,{loggingDirectives:_.T(F,FFq)})}};
k2l=function(K){return function(X){for(var F in K)(Ej[F]||Ej[RD["default"]])(X,F,K[F])}};
P1T=function(K,X){KoP(X);var F={data:null,start:0,end:K.length,parts:[]};X=_.D(X);for(var P=X.next();!P.done;P=X.next())P=P.value,XSP(F,P.startIndex,P.endIndex,P);FoT(K,F);return F};
XSP=function(K,X,F,P){for(var H=_.D(K.parts),f=H.next();!f.done;f=H.next()){f=f.value;if(typeof f==="string")throw Error("bh");if(f.start<=X&&F<=f.end){XSP(f,X,F,P);return}}K.parts.push({data:P,parts:[],start:X,end:F})};
FoT=function(K,X){for(var F=X.parts.length;F>=0;F--){var P=X.parts[F],H=X.parts[F-1],f=F===X.parts.length?X.end:P.start;H=F===0?X.start:H.end;f!==H&&X.parts.splice(F,0,K.slice(H,f));P&&FoT(K,P)}};
KoP=function(K){K.sort(function(X,F){if(X.startIndex<F.startIndex)return-1;if(F.startIndex<X.startIndex)return 1;X=X.endIndex-X.startIndex;F=F.endIndex-F.startIndex;return X>F?-1:F>X?1:0})};
_.HKM=function(K){var X=K.thumbnails;if(X){K={sources:[]};X=_.D(X);for(var F=X.next();!F.done;F=X.next()){F=F.value;var P={};P.url=F.url;P.width=F.width;P.height=F.height;K.sources.push(P)}return K}};
sOy=function(K,X,F,P){if(!X)return K.length>=1?K[K.length-1]:null;if(P)for(var H=_.D(K),f=H.next();!f.done;f=H.next()){f=f.value;var u=void 0,J=(u=f.url)==null?void 0:u.indexOf(P);if(J!==void 0&&J>=0)return f}P=_.D(K);for(H=P.next();!H.done;H=P.next())if(H=H.value,H.width&&H.height&&(F&&H.width>=X||!F&&H.height>=X))return H;for(X=K.length-1;X>=0;X--)if(F&&K[X].width||!F&&K[X].height)return K[X];return K[0]};
_.z5d=function(K){var X;return(K=(X=K.sources)==null?void 0:X[0])?K.width/K.height:0};
_.fud=function(K){if(K.sources){K=_.D(K.sources);for(var X=K.next();!X.done;X=K.next()){X=X.value;var F=void 0;if((F=X.clientResource)==null?0:F.imageName)return X}}};
Dny=function(K){var X;if((X=K.clientResource)!=null&&X.imageColor)return _.wq(K.clientResource.imageColor)};
_.qtn=function(K,X,F,P,H,f,u){if(!X||X.length===0||X[0].clientResource)return null;if(F&&X[0].url)return X[0].url;P===void 0&&(P=!0);if(P){var J;K=uZn*(H||(K==null?void 0:(J=K.getBoundingClientRect())==null?void 0:J.width)||0)}else{var Z;K=uZn*(f||(K==null?void 0:(Z=K.getBoundingClientRect())==null?void 0:Z.height)||0)}X=sOy(X,K,P,u);return(X==null?0:X.url)?X.url:(X==null?0:X.imageData)?X.imageData:null};
JuT=function(K,X,F){F=F?[F]:[];K.opacity&&F.push("opacity: "+K.opacity+";");X&&K.placeholderColor?(K=_.wq(K.placeholderColor),F.push("background-color: "+K+";")):F.push("background-color: transparent;");return F.join(" ")};
ZKy=function(K,X,F,P,H){var f=["yt-core-image"];X&&f.push(X);F||f.push("yt-core-image--fill-parent-height");P||f.push("yt-core-image--fill-parent-width");switch(K.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":f.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":f.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":f.push("yt-core-image--content-mode-center");break;default:f.push("yt-core-image--content-mode-scale-to-fill")}K.flipForRtlLayout&&
f.push("yt-core-image--flip-rtl");switch(H){case "TOP_START":var u;f.push(((u=document.body)==null?void 0:u.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return f.join(" ")};
QOT=function(K){var X;if(K==null?0:(X=K.clientResource)==null?0:X.imageName){var F;K=(F=K.clientResource)==null?void 0:F.imageName;a:{switch(K){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":F="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":F="yt-logos-ext:yt-logo-updated";break a}F=void 0}return F||Ytw.get(K)||K}};
cuT=function(K){return _.S("mweb_wiz_skip_render")?MK9(K):nY3(K)};
MK9=function(K){return function(X){var F=Goy("wink-root");tZ();lT9();KWP(F,_.Q(K,X))}};
nY3=function(K){var X=X===void 0?!1:X;return function(F){if(!X||!_.S("mweb_skip_keto_to_c3_if_no_data")||F.data!==void 0){var P=kM(!1);try{var H=F.children;_.S("mweb_render_outside_patch_killswitch")||hZ?H?Vy(_.Q(K,F,H)):Vy(_.Q(K,F)):_.yy(new _.nG("ketoToC3 called outside of a patch",{tagName:K.TAG_NAME}))}finally{kM(P)}}}};
pS4=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
Sty=function(K,X){K.onViewportEntered=X;BTO.observe(K)};
oYy=function(){var K={rootMargin:"10%",threshold:.01};_.S("mweb_enable_set_io_root_to_null_safari")?K.root=null:_.S("mweb_enable_set_io_root_to_body_safari")&&(K.root=document.body);return new IntersectionObserver(function(X,F){X.filter(function(P){return P.intersectionRect.height>0}).forEach(function(P){P=P.target;
if(!_.S("mweb_enable_only_update_image_when_connected")||P.isConnected!==!1){var H;(H=P.onViewportEntered)==null||H.call(P);F.unobserve(P)}})},K)};
Lo4=function(K,X,F,P,H){function f(){if(P){var J=P.loadedClass,Z=P.notifyOnUnloaded;J&&_.vn(K,J);Z&&K.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function u(){var J=F(X,K);J&&K.getAttribute("src")!==J&&(_.S("mweb_enable_only_update_image_when_connected")&&K.isConnected===!1||J===K.src||(K.src=J),f())}
H=H===void 0?!0:H;K.removeAttribute("src");f();X&&(H?Sty(K,u):u())};
TTw=function(K,X,F){if(!X)return!1;X=F(X,K);F=K.getAttribute("src");return X&&X===F&&K.complete};
ruq=function(K,X){for(var F in X)F==="className"?K.className=X[F]:(Ej[F]||Ej[RD.default])(K,F,X[F])};
Au4=function(K,X,F,P){cuT(_.av)({contentMode:X.contentMode,loadedClass:X.loadedClass,isPreloaded:X.isPreloaded,notifyOnLoaded:X.notifyOnLoaded,notifyOnUnloaded:X.notifyOnUnloaded,preferredThumbnail:X.preferredThumbnail,preserveHeight:X.preserveHeight,preserveWidth:X.preserveWidth,objectPosition:X.objectPosition,targetWidth:X.targetWidth,targetHeight:X.targetHeight,shouldShowPlaceholder:X.shouldShowPlaceholder,useWidth:X.useWidth,alt:X.alt,className:X.className,onerror:X.onerror,onload:X.onload,style$:X.style$,
color:X.color,width:X.width,height:X.height,"aria-hidden$":X["aria-hidden$"],draggable:X.draggable,"data-disabled$":X["data-disabled$"],data:K,callback:F,renderLazy:P===void 0?!0:P,hideOn404:!1})};
wSP=function(K,X,F){F=F===void 0?!1:F;var P=K.sources!==void 0?K:_.HKM(K);if(P){var H=X.onload;X.onload=function(Z){var M=Z.target;F&&M.naturalWidth===120||_.tY(M,"yt-core-image--loaded");X.notifyOnLoaded&&M.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));H==null||H(Z)};
X.targetWidth&&X.preserveWidth&&(X.width=X.targetWidth);X.targetHeight&&X.preserveHeight&&(X.height=X.targetHeight);var f=_.fud(P),u=f&&QOT(f);if(u)return(K=Dny(f))&&(X.color=K),{type:"icon",iconName:u,config:Object.assign({},X,X.alt?{}:{"aria-hidden$":"true"},{"aria-label$":X.alt,role:"img"})};if(K.sources===void 0){X.alt=K.accessibility&&K.accessibility.accessibilityData&&K.accessibility.accessibilityData.label||X.alt;X.style$=JuT(K,X.shouldShowPlaceholder,X.style$);var J;X.isPreloaded=!((J=_.T(K,
jOM))==null||!J.isPreloaded)}X.contentMode&&!P.contentMode&&(P.contentMode=X.contentMode);X.className=ZKy(P,X.className,X.preserveHeight,X.preserveWidth,X.objectPosition);X.loadedClass="yt-core-image--loaded";return{type:"image",image:P,config:X}}};
_.$O=function(){var K=_.Ls.apply(0,arguments);return _.$3(function(X){var F=K.map(function(P){return P(X)});
return function(){return void F.forEach(function(P){return void(P==null?void 0:P())})}})};
OP=function(K,X){var F=X==null?void 0:X.initial;return _.Qs(function(){_.ws(!0);return F=K(F)},{equals:X==null?void 0:X.isEqual},"rSlKsc")};
yuM=function(K,X){if(K===X)return!0;if(K===void 0||X===void 0)return!1;var F,P,H,f,u,J,Z,M;return K.content===X.content&&((F=K.styleRuns)==null?void 0:F.length)===((P=X.styleRuns)==null?void 0:P.length)&&((H=K.commandRuns)==null?void 0:H.length)===((f=X.commandRuns)==null?void 0:f.length)&&((u=K.attachmentRuns)==null?void 0:u.length)===((J=X.attachmentRuns)==null?void 0:J.length)&&((Z=K.decorationRuns)==null?void 0:Z.length)===((M=X.decorationRuns)==null?void 0:M.length)};
e53=function(K,X){if(K){var F=NNl(K);if(F!=null&&F.content)if(_.S("attr_string_reactive"))cuT(WoP)({text:K,config:X});else{var P=!(X==null||!X.ariaLabel)||!(F.commandRuns&&F.commandRuns.length!==0||F.paragraphStyleRuns&&F.paragraphStyleRuns.length!==0);K=P?X==null?void 0:X.ariaLabel:null;P=P?"text":null;ov("span",{className:Ra4(F,X),dir$:(X==null?0:X.userInput)?"auto":void 0,"aria-label$":K,role$:P},function(){if(F.styleRuns||F.commandRuns||F.attachmentRuns||F.decorationRuns){var H=C0T(F,X);x99(H,
X);H=P1T(F.content,H);H=_.D(H.parts);for(var f=H.next();!f.done;f=H.next())dn4(f.value)}else Ns(F.content)})}}};
dn4=function(K){typeof K==="string"?Ns(K):iCw(K.data)?ov("span",K.data.imageWrapperConfig,function(){Au4(K.data.image,K.data.imageConfig)}):ov(K.data.tag,K.data.config,function(X){Iel(K.data)(X);
X=_.D(K.parts);for(var F=X.next();!F.done;F=X.next())dn4(F.value)})};
UnP=function(K){return K.parts.map(R59)};
R59=function(K){if(typeof K==="string")return K;K=iCw(K.data)?_.Q("span",{el:_.$O(k2l(K.data.imageWrapperConfig))},_.Q(_.av,Object.assign({},{data:K.data.image},K.data.imageConfig))):_.Q(K.data.tag,{el:_.$O(Iel(K.data),k2l(K.data.config))},K.parts.map(R59));return Dq(K)};
h59=function(K,X){return K===X?!0:K===void 0||X===void 0?!1:K.noStyleRuns===X.noStyleRuns&&K.noLinkColor===X.noLinkColor&&K.noEndpoints===X.noEndpoints&&K.headerRuns===X.headerRuns&&K.isOverlay===X.isOverlay&&K.linkInheritColor===X.linkInheritColor&&K.userInput===X.userInput};
mnP=function(K){return function(){var X,F,P,H,f,u,J,Z,M,n,c,B,L,A;return{ariaLabel:(X=K.ariaLabel)==null?void 0:X.call(K),className:(F=K.className)==null?void 0:F.call(K),ellipsisTruncate:(P=K.ellipsisTruncate)==null?void 0:P.call(K),isOverlay:(H=K.isOverlay)==null?void 0:H.call(K),linkInheritColor:(f=K.linkInheritColor)==null?void 0:f.call(K),noEndpoints:(u=K.noEndpoints)==null?void 0:u.call(K),noStyleRuns:(J=K.noStyleRuns)==null?void 0:J.call(K),noLinkColor:(Z=K.noLinkColor)==null?void 0:Z.call(K),
noPreWrap:(M=K.noPreWrap)==null?void 0:M.call(K),noWrap:(n=K.noWrap)==null?void 0:n.call(K),skipOnClick:(c=K.skipOnClick)==null?void 0:c.call(K),stopPropagation:(B=K.stopPropagation)==null?void 0:B.call(K),userInput:(L=K.userInput)==null?void 0:L.call(K),headerRuns:(A=K.headerRuns)==null?void 0:A.call(K)}}};
GaP=function(K){return K.value===""||K.value==="true"?!0:K.value==="false"?!1:isNaN(Number(K.value))?K.value:Number(K.value)};
VB=function(K,X){K=new lul(K,X);_.jF(K);throw K;};
vY9=function(K,X,F){var P=biP(K);K._numRenders=0;try{var H=_.Sel(function(){return _.Q(X,Object.assign({},F))})}catch(u){var f=function(J){J.args||(J.args=[]);
J.args.push("Error in web component wrapper");J.args.push(K.tagName.toLowerCase());return J};
_.wc(u instanceof Error?f(u):new lul("Wiz rendering error",K.tagName.toLowerCase()));throw u;}finally{biP(P)}return H};
_.EP=function(K,X,F){function P(n){var c={};n=_.D(n);for(var B=n.next();!B.done;B=n.next()){B=B.value;var L=void 0,A=void 0,d=void 0,R=_.uX((d=(A=(L=B).getAttribute)==null?void 0:A.call(L,"slot"))!=null?d:"children");if(L=c[R])L.push(B);else if(R in f||R==="children")c[R]=[B]}n=_.D(Object.keys(c));R=n.next();for(B={};!R.done;B={content$jscomp$55:void 0},R=n.next())R=R.value,R!=="children"&&(B.content$jscomp$55=c[R],c[R]=function(l){return function(){return l.content$jscomp$55}}(B));
return c}
F=F===void 0?{}:F;K.componentType!==BM||VB("Components must be marked reactive to be used from web component wrapper.",X);NY.has(X)&&VB("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",X);var H,f=(H=F.props)!=null?H:{};ib.add(X);var u=auP();H=function(){var n=u.apply(this,arguments)||this;n.rawProps={};n.queuingRender=!1;n.dispose=function(){};
n.isWebComponentWrapper=!0;n.isReparenting=!1;n.hasRendered=!1;return n};
_.r(H,u);H.prototype.render=function(){this.hasRendered=!0;for(var n=_.D([].concat(_.LZ(this.attributes))),c=n.next();!c.done;c=n.next())c=c.value,c.name!=="slot"&&this.removeAttribute(c.name);n=Object.assign({},this.componentProps,this.slotProps);c=_.D(vY9(this,K,n));n=c.next().value;c=c.next().value;!(n[0]instanceof Element)||n.length>1?VB("Wrapped Wiz components must return a single root element.",X):(n=n[0].tagName.toLowerCase(),n!==X&&VB("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(n+" !== '"+X),X),this.dispose=c)};
H.prototype.setUpProps=function(){for(var n=this.rawProps,c=this.attributes,B=_.D(Object.keys(f)),L=B.next();!L.done;L=B.next()){L=L.value;var A=void 0;((A=this)==null?0:A[L])&&this[L]!==tKy&&n[L]===void 0&&(n[L]=this[L],(A=Object.getOwnPropertyDescriptor(this.constructor.prototype,L))&&Object.defineProperty(this,L,A))}B=_.D(c);for(L=B.next();!L.done;L=B.next()){A=L.value;L=_.uX(A.name);var d=L==="class"&&!c.getNamedItem("class-name");if(L in f||d)A=GaP(A),L!=="class"||n.className?n[L]=A:n.className=
A}c={};for(var R in f)f[R]!==_.g$&&f[R]!==$nn&&(n[R]instanceof Function&&VB("Function props must be configured as STATIC, not SIGNAL.",X),L=_.D(_.u_(n[R],void 0,"Ri8MSe")),B=L.next().value,L=L.next().value,c[R]=L,n[R]=B);n=_.D([n,c]);this.componentProps=n.next().value;this.setters=n.next().value;this.slotProps=P(this.childNodes)};
H.prototype.connectedCallback=function(){bb===X&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in f&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
H.prototype.disconnectedCallback=function(){if(!this._isInert){var n;a:{if(_.OKO)for(n=this;n;){if(_.VKw.has(n)){n=!0;break a}n=n.parentElement}n=!1}if(n)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){n=_.D([].concat(_.LZ(this.attributes)));for(var c=n.next();!c.done;c=n.next())c=c.value,c.name!=="slot"&&this.removeAttribute(c.name)}this.innerText="";$13(this)}}};
H.prototype._setPendingPropertyOrPath=function(){};
H.prototype.notifyPath=function(){};
_.Oi.Object.defineProperties(H.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var J=_.D(Object.keys(f)),Z=J.next(),M={};!Z.done;M={prop$jscomp$104:void 0},Z=J.next())M.prop$jscomp$104=Z.value,Z=void 0,((Z=F.legacyPolymer)==null?0:Z.forwardHostProps)&&mx9.has(M.prop$jscomp$104)||Object.defineProperty(H.prototype,M.prop$jscomp$104,{set:function(n){return function(c){var B=this;this._isInert||(this.setters?nv(function(){var L,A;return void((A=(L=B.setters)[n.prop$jscomp$104])==null?void 0:A.call(L,c))}):(this.rawProps[n.prop$jscomp$104]=c,this.queuingRender&&n.prop$jscomp$104===
"data"&&c!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(M),
get:gYy.has(M.prop$jscomp$104)?void 0:function(){return tKy}});
customElements.define(X,H)};
_.EYl=function(K,X){return(K=_.bH(K,X))?_.Qz(_.ps(K)):null};
_.CB=function(K){if(K=_.bH(K,Number.MAX_VALUE,void 0,"width"))return _.ps(K)};
_.bH=function(K,X,F,P){P=P===void 0?"width":P;if(!K||!K.length)return null;if(_.S("kevlar_tuner_should_always_use_device_pixel_ratio")){var H=window.devicePixelRatio;_.S("kevlar_tuner_should_clamp_device_pixel_ratio")?H=Math.min(H,_.kU("kevlar_tuner_clamp_device_pixel_ratio")):_.S("kevlar_tuner_should_use_thumbnail_factor")&&(H=_.kU("kevlar_tuner_thumbnail_factor"));bKy=H}else bKy||(bKy=window.devicePixelRatio);H=bKy;_.S("kevlar_tuner_should_always_use_device_pixel_ratio")?X*=H:H>1&&(X*=H);if(_.S("kevlar_tuner_min_thumbnail_quality"))return K[0].url||
null;H=K.length;if(_.S("kevlar_tuner_max_thumbnail_quality"))return K[H-1].url||null;if(F)for(var f=0;f<H;f++)if(K[f].url.indexOf(F)>=0)return K[f].url||null;for(F=0;F<H;F++)if(K[F][P]>=X)return K[F].url||null;for(X=H-1;X>0;X--)if(K[X][P])return K[X].url||null;return K[0].url||null};
iKP=function(){N0.size?setTimeout(function(){iH(C1y)},0):NTO=0};
C1y=function(){var K=(0,_.CG)(),X=null,F=!1;N0.forEach(function(H){H.loaded=!0;H.loadTime=K;H.pendingPaint=!1;var f=xn9.get(H);f&&f.resolve(K);X=H;F||!H.ftlEligible&&H.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(F=!0)});
var P;((P=X)==null?0:P.markDirty)&&X.markDirty();N0.clear();NTO=0;F&&Iu3(K)};
kaM=function(K){N0.add(K);K.pendingPaint=!0;NTO||(NTO=_.xO(_.A9,iKP))};
KJT=function(K){K.loaded=!1;K.loadTime=Infinity;var X=xn9.get(K);X&&(X.reject(Error("hh")),xn9.delete(K));K.pendingPaint&&(N0.delete(K),K.pendingPaint=!1)};
_.XXP=function(K){var X=K.indexOf(":");return X===-1?{originalName:K}:{originalName:K.substring(0,X),datasyncId:K.substring(X+1)}};
_.PwT=function(){return _.q(function(K){if(FJl!==void 0)return K.return(FJl);FJl=new Promise(function(X){var F;return _.q(function(P){switch(P.nextAddress){case 1:return _.s2(P,2),_.Y(P,_.Iv.open("test-only"),4);case 4:return _.Y(P,_.Iv.delete("test-only"),5);case 5:_.Gy(P,3);break;case 2:if(F=_.qc(P),F instanceof Error&&F.name==="SecurityError")return X(!1),P.return();case 3:X("caches"in window),_.JT(P)}})});
return K.return(FJl)})};
zi3=function(){return _.q(function(K){if(K.nextAddress==1)return _.Y(K,_.PwT(),2);if(!K.yieldResult)return K.return(void 0);HXd||(HXd=new s8w);return K.return(HXd)})};
fE4=function(K){var X,F,P,H;return _.q(function(f){switch(f.nextAddress){case 1:return _.Y(f,zi3(),2);case 2:X=f.yieldResult;if(!X)throw Error("jh");return _.Y(f,X.open("yt-player-local-img"),3);case 3:return F=f.yieldResult,_.Y(f,F.match(K),4);case 4:P=f.yieldResult;if(!P)throw Error("kh");return _.Y(f,P.blob(),5);case 5:return H=f.yieldResult,f.return(H)}})};
Db9=function(K,X){for(var F in K)if(K.hasOwnProperty(F)&&X[F])return F;return null};
utd=function(K){return"stamp"+K.replace("-","_")+"_"};
qWP=function(K){var X=K.match(/\[\[([\w\.]+)\]\]/);if(X&&X.length>1)return X[1];_.jF(Error("mh`"+K));return null};
JRl=function(K){return K===void 0?_.RU("REUSE_COMPONENTS",!1):K||!1};
Q8T=function(K,X,F){F&&(X.is?(ZXP.has(X)&&(K=ZXP.get(X),F=K.listener,delete X[K.property],F.type==="element"&&X.removeEventListener(F.eventName,F.handler),ZXP.delete(X)),YW3(X)):X.__proto__==HTMLElement.prototype&&(X=new _.nG("Rendererstamper removed a non custom element","Stamper: "+K+" element: "+(X&&X.nodeName)),_.yy(X)))};
MRO=function(K,X,F,P){var H=X.node?X.node:X;_.C$(F).parentNode===H&&(X.removeChild(F),Q8T(K,F,P));if(K=kO.get(F))kO.delete(F),_.A9.cancelJob(K);F.hidden=!1};
nNd=function(K,X,F,P){if(X&&X.children&&(F=X.children[F]))if(_.RU("DEFERRED_DETACH"))for(;F&&!kO.has(F);){var H=K,f=X,u=F,J=P;u.hidden=!0;H=_.cu(_.A9,MRO.bind(null,H,f,u,J),0);kO.set(u,H);F=F.nextElementSibling}else for(;(u=X.lastElementChild)&&(X.removeChild(u),Q8T(K,u,P),u!=F););};
cRn=function(K){var X=_.t_();_.AV(function(){for(var F=_.D(K.slotContent),P=F.next();!P.done;P=F.next())X.value.appendChild(P.value)});
return _.Q("__slot-el",{el:X,skip:!0})};
_.K4=function(K,X,F){F=F===void 0?pXw:F;NY.add(X);var P;(P=F).propNames!=null||(P.propNames=[]);var H=new Set(F.propNames),f=auP();P=function(){var M=f.call(this)||this;M.props={};M.isUpdating=!1;M.hasAttached=!1;M.isInert=!1;M.updateQueued=!1;M.initialClasses=[];EQy(M,X);return M};
_.r(P,f);P.prototype.forwardKebabCaseProp=function(M,n){M=_.uX(M);if(H.has(M)||M==="children")this.props[M]=n};
P.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var M=_.D(this.initialClasses),n=M.next();!n.done;n=M.next())(n=n.value)&&this.classList.add(n);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
P.prototype.handleSlottedContent=function(){for(var M=new Map,n=_.D(this.children),c=n.next();!c.done;c=n.next()){c=c.value;var B=void 0,L=(B=c.getAttribute("slot"))!=null?B:"children";(B=M.get(L))?B.push(c):M.set(L,[c]);if(!c.getAttribute("key")){var A=void 0,d=void 0;c.setAttribute("key",L+"_"+((d=(A=B)==null?void 0:A.length)!=null?d:0))}}M=_.D(M);for(n=M.next();!n.done;n=M.next())c=_.D(n.value),n=c.next().value,c=c.next().value,this.forwardKebabCaseProp(n,_.Q(cRn,{slotContent:c}))};
P.prototype.connectedCallback=function(){var M=this;if(!EQy(this,X)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var n=_.D(this.attributes),c=n.next();!c.done;c=n.next())c=c.value,this.forwardKebabCaseProp(c.name,GaP(c));this.handleSlottedContent();F.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){M.afterFirstPatch()});
this.hasAttached=!0}};
P.prototype.attributeChangedCallback=function(M,n,c){this.isInert||this.isUpdating||this.isConnected||M!=="class"||this.initialClasses.push.apply(this.initialClasses,_.LZ(c.split(" ")))};
P.prototype.disconnectedCallback=function(){VF4(this)};
P.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var M,n;KWP(this,_.Q(K,Object.assign({},this.props,{idomKey:(n=(M=this.__incrementalDOMData)==null?void 0:M.key)!=null?n:X})),!0)}catch(B){var c=B instanceof Error?B:new _.nG("Wiz rendering error");c.args||(c.args=[]);c.args.push("Error in deprecated web component wrapper");c.args.push(X.toLowerCase());_.jF(c);throw B;}finally{this.updateQueued=this.isUpdating=!1}}};
P.prototype.enqueueUpdate=function(){var M=this;return _.q(function(n){if(F.synchronous)return M.update(),n.return();if(M.updateQueued)return n.return();M.updateQueued=!0;return n.return(Promise.resolve().then(function(){M.update()}))})};
P.prototype.notifyPath=function(){F.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.Oi.Object.defineProperties(P,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var u=_.D(F.propNames),J=u.next(),Z={};!J.done;Z={prop$jscomp$106:void 0},J=u.next())Z.prop$jscomp$106=J.value,Object.defineProperty(P.prototype,Z.prop$jscomp$106,{set:function(M){return function(n){this.isInert||n===this.props[M.prop$jscomp$106]||(this.props[M.prop$jscomp$106]=n,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(Z)});
customElements.define(X,P)};
_.BxP=function(K,X){return _.FF(K.entities,"markersEngagementPanelSyncEntity",X)};
SWP=function(K,X){return _.FF(K.entities,"fantasyWinProbabilityEntity",X)};
oNq=function(K,X){return _.FF(K.entities,"fantasyTeamEntity",X)};
LJy=function(K,X){return _.FF(K.entities,"fantasyPlayerEntity",X)};
TxO=function(K,X){return _.FF(K.entities,"booleanEntity",X)};
rRM=function(K,X){return _.FF(K.entities,"qrCodeEntity",X)};
ARy=function(K){return _.FF(K.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
j8d=function(){if(Xq)return Xq;if(window.lottie)return Xq=Promise.resolve(window.lottie);var K=_.jt(_.e8("LOTTIE_URL"));return K?Xq=new Promise(function(X,F){var P=document.createElement("script");P.addEventListener("load",function(){X(lottie)});
P.addEventListener("error",function(H){var f="Lottie library failed to load.";H?H.message&&(f+=" Original description: "+H.message,_.Wu(H,f)):H=Error(f);_.yy(H);F(H)});
P.setAttribute("async","");_.li(P,K);document.head.appendChild(P)}):Promise.reject(Error("nh"))};
wXy=function(){return Xq?Xq:j8d()};
yRl=function(K){if(K)switch(K){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.S("kevlar_use_wil_icons"))return K=(K=ARy(_.aA().getState()))&&K.animationLightUrl&&K.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:K.animationLightUrl,pathDarkTheme:K.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:60,lazyLoad:!0}:void 0,K?K:Fq.get("LIKE")}};
WJ4=function(K){var X=yRl(K);if(X)return X;switch(K){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return Fq.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return Fq.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return Fq.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return Fq.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return Fq.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return Fq.get("NOTIFICATION_BELL")}};
eiO=function(K,X){if(!K||db4)X=!1;else{if(K.closest){var F=!!yRl(X);F=_.e8("ID_TOKEN")&&F?!!K.closest("segmented-like-dislike-button-view-model"):!1}else F=!1;if(!F)if(K.closest)if(F=!_.e8("ID_TOKEN"),K=K.closest("ytd-subscription-notification-toggle-button-renderer-next"),F||!K)F=!1;else{var P;F=((P=K.data)==null?void 0:P.targetId)==="notification-bell"&&X!=="EXPAND_MORE"}else F=!1;X=F}return X};
RiP=function(K){var X,F;return _.q(function(P){switch(P.nextAddress){case 1:return _.s2(P,2),_.Y(P,fetch(K),4);case 4:return X=P.yieldResult,_.Y(P,X.json(),5);case 5:return P.return(P.yieldResult);case 2:F=_.qc(P),_.yy(F),_.JT(P)}})};
Ub4=function(K,X){var F,P,H;return _.q(function(f){if(f.nextAddress==1)return(F=X?K.pathDarkTheme:K.path)?_.Y(f,Promise.all([RiP(F),j8d()]),2):f.return();P=f.yieldResult;H=P[0];PO.set(F,H);_.JT(f)})};
_.HO=function(){var K=_.Ls.apply(0,arguments);return function(){for(var X="",F=_.D(K),P=F.next();!P.done;P=F.next())if(P=P.value,typeof P==="function"&&(P=P()),P)if(typeof P==="string")X+=" "+P;else for(var H in P)if(P.hasOwnProperty(H)){var f=P[H];typeof f==="function"&&(f=f());f&&(X+=" "+H)}X=X.trim()||void 0;return _.ws(X)}};
_.se=function(K){var X;var F=K.data;var P=K.className;var H=K.animationName;var f=K.animationRef;var u=(X=K.elRefForInterop)||_.t_(),J;_.AZ(function(){var n;return void((n=J)==null?void 0:n.destroy())});
var Z;_.rs(function(){var n=_.ws(H);if(n!==Z){Z=n;var c=Object.assign({},{animationName:n,animationRef:_.ws(f)},_.ws(F));try{_.i9().resolve(hiw)().then(function(A){var d;(d=J)==null||d.destroy();d=c.animationRef;var R=c.listeners;A=A.loadAnimation(Object.assign({},{container:u.value},c.animationConfig));d&&(d.lottieEl=A);if(R)for(d=_.D(Object.entries(R)),R=d.next();!R.done;R=d.next()){var l=_.D(R.value);R=l.next().value;(l=l.next().value)&&A.addEventListener(R,l)}J=A})}catch(A){n=A;
var B="LottieComponent error.";n.message&&(B+=" Original description: "+n.message);_.Wu(n,B);_.yy(n);var L;((L=c.listeners)==null?0:L.error)&&c.listeners.error(n)}}},"Cu2JNe");
var M=_.HO("ytLottieComponentHost",P);return _.Q(iLT,{cond:function(){return!X},
then:function(){return _.Q("lottie-component",{class:M,el:u})}})};
GGT=function(K,X,F,P){function H(u,J){if(X.value===J&&K!=null&&K.value){for(;K.value.firstChild;)K.value.removeChild(K.value.firstChild);K.value.classList.add("yt-spec-icon-shape");u(K.value,P)}}
F=_.mby(_.i9().resolve(_.Pn),F);if(typeof F==="function")X.value=null,H(F,null);else{var f=new _.fL(F.then,F);X.value=f;f.then(function(u){H(u,f)})}};
vNO=function(K,X){var F=document.createElement("div"),P=_.L9(F,function(){return _.Q(_.p,{cond:K,then:function(H){return _.Q(lEn,{data:H,options:X})}})});
return[F,P]};
_.z9=function(){for(var K=[],X=_.D(_.Ls.apply(0,arguments)),F=X.next();!F.done;F=X.next())if(F=F.value)if(typeof F==="string")K.push(F);else{F=_.D(Object.entries(F));for(var P=F.next();!P.done;P=F.next()){var H=_.D(P.value);P=H.next().value;(H=H.next().value)&&K.push(P)}}return K.join(" ")};
OXd=function(K){var X=_.t_(),F=w2(),P=tD(K.character)||tD(K.previousCharacter);Dzl(function(){if(K.marginMultiplier){var H;(H=F.value)==null||H.cancel();P?(H=K.previousCharacter?Number(K.previousCharacter)+10:K.rollUp?0:30,K.shouldAnimate||(H-=aEl(K,H))):(H=K.rollUp?0:2,K.shouldAnimate||(H-=K.rollUp?-1:1));X.value.style.marginTop="-"+H*K.marginMultiplier+"px";K.shouldAnimate?F.value=tRn(X.value,K,H,P):X.value.style.display=K.character?"":"none"}});
return _.Q("animated-rolling-character",{el:X,class:"animated-rolling-character-wiz"},bB(P,function(){for(var H=[],f=1;f<30;f++)H.push(_.Q("div",null,f%10));return _.Q(_.ID,null,_.Q("div",null,"\u00a0"),H,_.Q("div",null,"\u00a0"))},function(){return $by(K.character)}))};
$by=function(K){return _.Q(_.ID,null,_.Q("div",null,"\u00a0"),_.Q(_.ID,null,bB(!K||_.fO(K),function(){return _.Q("div",null,"\u00a0")},function(){return _.Q("div",null,K)})),_.Q("div",null,"\u00a0"))};
tRn=function(K,X,F,P){F=new Animation(new KeyframeEffect(K,[{transform:"translateY(0px)"},{transform:"translateY("+(P?aEl(X,F):X.rollUp?-1:1)*X.marginMultiplier+"px)"}],VR9),document.timeline);X.character?(K.style.display="",F.onfinish=null):F.onfinish=function(){K.style.display="none"};
F.play();return F};
aEl=function(K,X){var F=Number(K.character)+10;if(K.previousCharacter)if(K.character){var P=Number(K.character),H=Number(K.previousCharacter);K=K.rollUp?H<P?F:F+10:H<P?F-10:F}else K=K.rollUp?30:0;else K=K.character==="0"?F:K.rollUp?F-10:F+10;return X-K};
_.f4=function(K,X){return function(F){var P={},H;for(H in F){var f=void 0,u=void 0;((f=X)==null?0:(u=f.callbacks)==null?0:u[H])||(P[H]=F[H])}return _.Q(Bnd,null,function(){for(var J in P)F[J]=_.ws(P[J]);F.disableReactiveLogging=!0;return _.Q(K,Object.assign({},F))})}};
bXO=function(K,X,F,P,H,f,u){F=new Animation(new KeyframeEffect(K,[{transform:"translateY(0px)"},{transform:"translateY("+(f?gNw(X,F,P,H):P?-1:1)*u+"px)"}],ENT),document.timeline);X?(K.style.display="",F.onfinish=null):F.onfinish=function(){K.style.display="none"};
F.play();return F};
gNw=function(K,X,F,P){var H=Number(K)+10;X?K?(K=Number(K),X=Number(X),F=F?X<K?H:H+10:X<K?H-10:H):F=F?30:0:F=K==="0"?H:F?H-10:H+10;return P-F};
NxT=function(K){var X=w2(),F=w2();r2(function(){X.value=K.numberText;F.value=K.numberValue},[K.numberText]);
var P=K.fontSizeMultiplier?K.heightPx*K.fontSizeMultiplier:K.heightPx,H=Yi9(function(){if(K.numberText){var u=K.numberText;var J=K.forceRollUp||!F.value||!K.numberValue||F.value<K.numberValue;var Z=!!K.shouldAnimate,M=X.value,n=[],c=0,B=0,L=(M?M.replace(/\D/g,"").length:0)-(u?u.replace(/\D/g,"").length:0);M=M?M.split(/(\d)/).filter(Boolean):[];for(u=u.split(/(\d)/).filter(Boolean);L<0;){var A=u[B];n.push({character:A,rollUp:J,marginMultiplier:P,shouldAnimate:Z});B++;tD(A)&&L++}for(;c<L;)A=M[c],n.push({previousCharacter:A,
rollUp:J,marginMultiplier:P,shouldAnimate:Z}),c++,tD(A)||L++;for(;B<u.length;)L=u[B],A=M[c],tD(L)===tD(A)?(B++,c++):tD(L)?(c++,L=void 0):tD(A)&&(B++,A=void 0),n.push({character:L,previousCharacter:A,rollUp:J,marginMultiplier:P,shouldAnimate:Z});J=n}else J=[];return J},[K.numberText]),f=K.numberText?["height: "+P+"px;",
"line-height: "+K.heightPx+"px;"].join(" "):"";return _.Q("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:f,dir:"ltr","aria-hidden":"true"},H.map(function(u){return _.Q(CwP,Object.assign({},u))}))};
_.DF=function(K){return iB4(function(X){X=K==null?void 0:K(X);return typeof X==="boolean"?X:!0})};
uC=function(K){return function(){return K()?K():void 0}};
iX4=function(K){return new KeyframeEffect(K,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
xb9=function(K){return new KeyframeEffect(K,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.qB=function(K){var X=OP(function(F){F=F?DK(F[0]):void 0;return _.u_(K(F),void 0,"AwTxXe")},{isEqual:function(F,P){return DK(F[0])===DK(P[0])}});
return[function(){return X()[0]()},
function(F){return void X()[1](F)}]};
_.Je=function(K){return function(){var X="",F;for(F in K){for(var P=K[F];typeof P==="function";)P=P();P!==void 0&&P!==null&&(X+="; "+F+": "+P)}return X.length>0?_.ws(X.slice(2)):_.ws()}};
IEy=function(K){switch(K){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"}};
FOO=function(K,X,F,P,H,f){var u=kGP(K),J=u.disabled,Z=u.iconPosition,M=u.style,n=u.focused,c=function(){return!!A()&&Z()==="icon-only"},B=function(){return!!A()&&Z()==="icon-only-40"},L=function(){return!!A()&&Z()==="icon-with-label"},A=function(){return!!X||!(P==null||!P())};
return{type:function(){return M()==="call-to-action-inverse"?"text":M()==="overlay-dark"&&K().type!=="filled"&&K().type!=="tonal"?"tonal":K().type},
shouldFocus:function(){return(n()||(f==null?void 0:f()))&&!J()},
hasIconLeading:function(){return!!A()&&Z()==="leading"},
hasIconTrailing:function(){return!!A()&&Z()==="trailing"},
hasIconLeadingTrailing:function(){return!!A()&&!!(F||H!=null&&H())&&Z()==="leading-trailing"},
hasIconOnly:c,hasIconOnly40:B,hasIconWithLabel:L,iconButton:function(){return c()||B()||L()},
visiblyDisabled:function(){return(J()?"disabled":K().state)==="disabled"||J()},
overrideSmallSizeIcon:function(){return KOy(K(),A())},
iconToRender:X?X:function(){return _.Q(_.ZF,{icon:P,size:function(){return Yf(K(),!0)},
active:function(){return K().toggled},
iconFilter:function(){return Xa4(K())}})},
secondaryIconToRender:F?F:function(){return _.Q(_.ZF,{icon:H,size:function(){return Yf(K(),!0)},
active:function(){return K().toggled},
iconFilter:function(){return Xa4(K())}})}}};
kGP=function(K){return{size:function(){return K().size},
style:function(){return K().style},
focused:function(){return K().focused},
disabled:function(){return K().disabled},
onTap:function(X){var F,P;return(P=(F=K()).onTap)==null?void 0:P.call(F,X)},
alignByText:function(){return K().alignByText},
aTagConfig:function(){return K().aTagConfig},
customColors:function(){return K().customColors},
segmentedPosition:function(){return K().segmentedPosition},
toggled:function(){return K().toggled},
toggleable:function(){return K().toggleable},
accessibilityLabel:function(){return K().accessibilityLabel},
onToggle:function(X){var F,P;return(P=(F=K()).onToggle)==null?void 0:P.call(F,X)},
iconPosition:function(){return K().iconPosition},
oneOffCustomTextWrap:function(){return K().oneOffCustomTextWrap},
disableTextEllipsis:function(){return K().disableTextEllipsis},
disableBackdropFilter:function(){return K().disableBackdropFilter},
tooltipText:function(){return K().tooltipText},
ariaHidden:function(){return K().ariaHidden},
tabIndex:function(){return K().tabIndex},
buttonText:function(){return K().buttonText},
formattedButtonText:function(){return K().formattedButtonText},
animatedTextProps:function(){return K().animatedTextProps}}};
PI3=function(K){return K.style==="overlay-dark"?4:K.style==="overlay"?K.type==="filled"?4:3:K.type==="filled"||K.style==="call-to-action-inverse"||K.style==="mono-inverse"?2:1};
KOy=function(K,X){X=(K.iconPosition==="icon-only"||K.iconPosition==="icon-only-40"||K.iconPosition==="icon-with-label")&&X;return!K.segmentedPosition&&X&&K.size==="S"};
H79=function(){return!_.S("web_disable_backdrop_filter")};
Yf=function(K,X){switch(K.size){case "XS":return 16;case "S":return KOy(K,X)?24:16;default:return 24}};
sVy=function(K){switch(K){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"}};
zfM=function(K){switch(K){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"}};
fhy=function(K){switch(K){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"}};
Xa4=function(K){if(K.style==="overlay-dark"&&K.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
D5P=function(K){if(!K)return{};var X=K.color,F=K.backgroundColor;K=K.borderColor;var P="";X&&(P+="color: "+X+";");F&&(P+="background-color: "+F+";");K&&(P+="border-color: "+K+";");return{style:P}};
Ypl=function(K,X,F){var P=K.buttonText,H=K.formattedButtonText,f=K.formattedButtonTextLegacy,u=K.animatedTextProps,J=K.style,Z=K.size,M=K.focused,n=K.disabled,c=K.onTap,B=K.alignByText,L=K.aTagConfig,A=K.customColors,d=K.segmentedPosition,R=K.toggled,l=K.toggleable,a=K.accessibilityLabel,E=K.onToggle,V=K.iconPosition,x=K.oneOffCustomTextWrap,N=K.disableTextEllipsis,Dl=K.disableBackdropFilter,Mq=K.tooltipText,pO=K.ariaHidden,y9=K.tabIndex,Wy=K.state,eP=K.type;J==="call-to-action-inverse"&&(eP="text");
J==="overlay-dark"&&eP!=="filled"&&eP!=="tonal"&&(eP="tonal");var gw=!!X&&V==="leading",a3=!!X&&V==="trailing",dL=!!X&&!!F&&V==="leading-trailing",nt=!!X&&V==="icon-only",ht=!!X&&V==="icon-only-40",YC=!!X&&V==="icon-with-label",uu=nt||ht||YC;n&&(Wy="disabled");var X8=Wy==="disabled"||n;Wy=KOy(K,!!X);var qV={},J0=(qV["yt-spec-button-shape-next"]=!0,qV[sVy(eP)]=!0,qV[zfM(J)]=!X8,qV["yt-spec-button-shape-next--disabled"]=!!X8,qV[fhy(Z)]=!0,qV["yt-spec-button-shape-next--focused"]=!!M&&!n,qV["yt-spec-button-shape-next--icon-trailing"]=
a3,qV["yt-spec-button-shape-next--icon-leading"]=gw,qV["yt-spec-button-shape-next--icon-leading-trailing"]=dL,qV["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=dL&&!(P||H),qV["yt-spec-button-shape-next--icon-button"]=nt||YC,qV["yt-spec-button-shape-next--icon-only-default"]=ht,qV["yt-spec-button-shape-next--align-by-text"]=!!B,qV["yt-spec-button-shape-next--segmented-start"]=d==="start",qV["yt-spec-button-shape-next--segmented-end"]=d==="end",qV["yt-spec-button-shape-next--override-small-size-icon"]=
Wy,qV["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!x,qV["yt-spec-button-shape-next--disable-text-ellipsis"]=!!N,qV["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!Dl&&H79(),qV),yd=function(){if(u)cuT(_.u64)(u);else if(f)f(V==="icon-with-label"||x?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(H){var NV=V==="icon-with-label"||x;e53(Object.assign({},H,NV?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:
{}),{noLinkColor:!0,noWrap:!NV})}else P&&Ns(P)},uT=function(NV){c==null||c(NV);
l&&(E==null||E(NV))},SU=L?qp3:Js9,RC=L?"aria-current$":"aria-pressed$",tw=function(){X&&(gw||dL||uu)&&function(){Qk({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){X()})}();
(P||H||f||u)&&!uu&&function(){Qk({className:"yt-spec-button-shape-next__button-text-content"},function(){yd()})}();
a3&&function(){Qk({className:"yt-spec-button-shape-next__icon"},function(){X()})}();
dL&&function(){Qk({className:"yt-spec-button-shape-next__secondary-icon"},function(){F()})}();
n||cuT(_.MB)({model:{color:PI3(K)}})},TE=function(){var NV={};
SU(Object.assign({},(NV.className=_.z9(J0),NV.onclick=L?void 0:uT,NV.disabled=n,NV["aria-disabled$"]=X8,NV.style=n&&L?"pointer-events:none":void 0,NV[RC]=l?!!R:void 0,NV["aria-label$"]=a,NV.title$=Mq!=null?Mq:"",NV["aria-hidden$"]=pO,NV.tabindex$=y9,NV),L,D5P(A)),function(){tw()})};
YC?(Z={},J=(Z["yt-spec-button-shape-with-label"]=!0,Z["yt-spec-button-shape-with-label--is-overlay"]=J==="overlay"||J==="overlay-dark",Z),Z7P({className:_.z9(J)},function(){TE();Qk({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},yd)})):TE()};
QVP=function(K,X){if(!CJ){var F;qMy(function(){return F=cen(K,X)});
return F}return cen(K,X)};
MHy=function(){var K=wdl(CJ||void 0,Qxy);return jUP(K)?void 0:K};
n4=function(K,X){_.yB(K,Object.assign({},X,{forceClickLogging:!0}))};
nbT=function(K,X,F,P){var H=void 0;return function(f){var u=_.w$(F?K==null?void 0:K.onDisabledTap:K==null?void 0:K.onTap);if(u){var J;H=(J=H)!=null?J:X==null?void 0:X.value;if(u)if(_.S("web_button_vm_click_client_ve_killswitch"))n4(u,Object.assign({},{form:{element:H,event:f}},void 0));else{var Z;J=u==null?void 0:u.clickTrackingParams;var M,n=K==null?void 0:(Z=K.loggingDirectives)==null?void 0:(M=Z.clientVeSpec)==null?void 0:M.uiType;Z=n&&!J?_.cO(n):void 0;n4(u,Object.assign({},{form:{element:H,event:f}},
{clickedVisualElement:Z}))}}P&&P(f)}};
csw=function(K){switch(K){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"}};
pay=function(K){switch(K){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"}};
BD9=function(K){switch(K){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"}};
Sp9=function(K){switch(K){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"}};
obT=function(K,X){return _.FF(K.entities,"engagementToolbarStateEntityPayload",X)};
TDl=function(K){(K=_.QB(K))&&_.LOP(K)};
_.LOP=function(K){var X=_.AD();X&&_.mb(X,K)};
rsl=function(K,X,F){_.xr(K,"yt-open-popup-action",[X,F||K])};
AsP=function(K,X){var F=_.y8(K,"endpoint"),P=_.y8(K,"action");return(F=P?P:F)&&X&&(F=X.navigationEndpointPopupMap[F])&&(K=_.mz(F,K),(F=_.y8(K,"renderer"))&&X.supportedPopups.hasOwnProperty(F))?{openPopupAction:{popupType:X.popupTypeMap[F],popup:K}}:null};
jVl=function(K,X,F,P){if(P){var H;F=F==null?void 0:(H=F.data)==null?void 0:H.contents;(H=F instanceof Array&&F.length?F[0]:F)&&(F=_.y8(H,"renderer"))&&P.supportedPopups.hasOwnProperty(F)&&(X.stopPropagation(),rsl(K,{openPopupAction:{popupType:P.popupTypeMap[F],popup:H}}))}};
WOy=function(K,X,F,P){P=P===void 0?!1:P;var H=wa4(X);if(H){H.href&&e0(H.href);var f=X.button;f=f!==void 0?f===0&&!p4(X):!p4(X);H.data&&f&&ysT(K,H,X,F,P)}};
ysT=function(K,X,F,P,H){H=H===void 0?!1:H;var f=_.kU("pbj_navigate_limit",-1)===0;d5l(X);_.i9().resolve(_.Nu(h_));var u=X.data;if(Object.keys(u).length!==0)if(!_.S("unplugged_web_disable_actions_for_cec_endpoint")&&_.T(u,_.PW))_.S("endpoint_behavior_command_executor_fix_killswitch")||(F.preventDefault(),F.stopPropagation()),_.X0(K,[u],K);else if(P=AsP(u,P))u.loggingUrls&&u.loggingUrls.forEach(function(Z){Z.baseUrl&&_.m3(Z.baseUrl)}),F.preventDefault(),F.stopPropagation(),rsl(K,P,X);
else{var J=efM(0,X.data,F);if(K=X.getForm)K=K(),J.tempData=J.tempData||{},J.tempData=Object.assign({},J.tempData,K);K=_.lN(F);if(P=K.find(function(Z){return!!Z.visualElement}))J.createScreenConfig=J.createScreenConfig||{},J.createScreenConfig.clickedVisualElement=P.visualElement;
if(!f)if(F.preventDefault(),F.stopPropagation(),_.T(u,_.Rf3)&&!H&&_.Hn.instance)_.Hn.instance.resolveCommand(u,J);else if(_.S("kevlar_command_handler_formatted_string")&&!H&&_.Hn.instance&&U5y(u))H=K.find(function(Z){return!!Z.is})||F.target,F={form:Object.assign({},J,{event:F,
element:H,originatingNode:X})},_.Hn.instance.resolveCommand(u,F);else{u=_.lN(F);F=[];for(H=0;H<u.length;H++)(f=u[H].is)&&F.push(f);U0y({parents:F.join(","),text:X.innerText},function(){_.iX(X,"yt-navigate",J)})}}};
hf3=function(K){if(K=wa4(K))d5l(K),uaP(K.href)};
wa4=function(K){K=_.lN(K);for(var X,F=0;F<K.length;F++)if(X=K[F],X.tagName==="A"&&X.classList.contains("yt-simple-endpoint")){if(!X.data)break;return X}return null};
p4=function(K){return K.shiftKey||K.altKey||K.metaKey||K.ctrlKey};
m59=function(K,X){var F={itct:X.clickTrackingParams};_.S("kevlar_client_side_screens")&&(!_.T(X,_.J6)||_.S("kevlar_exclude_endpoint_killswitch"))&&(F.endpoint=JSON.stringify(X));_.S("enable_unknown_lact_fix_on_html5")&&_.i9().resolve(_.Nu(_.BO))&&(F.lact=_.xg());zkP(F);_.Oc(K,F)};
d5l=function(K){K.href&&Object.keys(K.data).length!==0&&m59(K.href,K.data)};
U5y=function(K){for(var X=_.D(GUl),F=X.next();!F.done;F=X.next())if(K[F.value])return!1;return!0};
_.Sd=function(K,X){if(X){var F={};lhw.forEach(function(P){P=vbM(X,P,"--yt-lightsource-");Object.assign(F,P)});
ahd.forEach(function(P){P=vbM(X,P,"--yt-basic-");Object.assign(F,P)});
_.XU(K,F)}};
vbM=function(K,X,F){var P={};P[F+_.Dv(X)]=K&&K[X]?_.wq(K[X]):"";return P};
_.L4=function(K,X,F){ox[K]||(ox[K]={});ox[K][X]=F};
_.T9=function(K){ox[K]||(ox[K]={});return ox[K]};
tHP=function(K){if(!K)return{};var X=K.foregroundTitleColor,F=K.backgroundColor;K=K.borderColor;var P="text";K?P="outline":F&&(P="filled");return{type:P,customColors:{color:X?_.wq(X):void 0,backgroundColor:F?_.wq(F):void 0,borderColor:K?_.wq(K):void 0}}};
Ebd=function(K){var X=K.renderer;var F=K.element;var P=K.commandController;var H=K.onTapCallback;var f=K.skipCommandHandling;var u=K.overrides;var J=K.forceIcon;var Z=K.forceModernIconButton;var M=K.forceDisabled;var n=K.isSubscribe===void 0?!1:K.isSubscribe;var c=K.isPressed===void 0?!1:K.isPressed;var B=K.useButtonSize===void 0?!1:K.useButtonSize;K=$5w(X);n&&(K.style="mono",K.type="filled");J=!X.icon||!J&&X.text?X.icon?X.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:Z?"icon-only":"icon-only-40";J==="icon-only-40"&&(K.type="text");var L;Z=Object;n=Z.assign;B=O7l(X,B);c=!!X.isSelected||!_.S("web_propagate_is_pressed_killswitch")&&!!c;var A=X.isSelected!==void 0;M=M===void 0?X.isDisabled:M;var d=X.text?_.TD(X.text):void 0;var R,l,a,E=((R=X.accessibilityData)==null?void 0:(l=R.accessibilityData)==null?void 0:l.label)||((a=X.accessibility)==null?void 0:a.label);R=E?E:_.lj(X.text);F=VHT(X,F,P,H,f);P=gbP(X);P!=null&&P.length?(P=_.Wn({innertubeCommand:chM(P),
forceNewState:!0}),P=d$(P)?P:void 0):P=void 0;return n.call(Z,{},K,B,{iconPosition:J},u,{focused:!1,toggled:c,toggleable:A,disabled:M,formattedButtonText:d,accessibilityLabel:R,onTap:F,aTagConfig:P},tHP((L=X.colorData)==null?void 0:L.basicColorPaletteData),{oneOffCustomTextWrap:X.oneOffCustomTextWrap})};
VHT=function(K,X,F,P,H){return function(f){var u=gbP(K);P(u,f);if(!H){u=_.D(u);for(var J=u.next();!J.done;J=u.next())n4(J.value,{form:{element:X,event:f},commandController:F})}}};
gbP=function(K){var X=[];K.command&&X.push(K.command);K.serviceEndpoint&&X.push(K.serviceEndpoint);K.navigationEndpoint&&X.push(K.navigationEndpoint);return X};
O7l=function(K,X){if(X)switch(K.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(K.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
$5w=function(K){switch(K.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",
type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",
type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.rn=function(K){return _.Qs(function(){xrO()();return lb(K)},void 0,"Icv7j")};
Ae=function(K,X){return _.FF(K.entities,"likeStatusEntity",X)};
b7q=function(K,X){return _.FF(K.entities,"likeCountEntity",X)};
_.CIy=function(K,X){return _.FF(K.entities,"stringEntity",X)};
ND4=function(K,X){if(!K)return!1;var F,P=(F=_.T(K,_.ss))==null?void 0:F.signal;if(P&&X.signalEndpointMap)return!!X.signalEndpointMap[P];var H;if((F=(H=_.T(K,_.jd))==null?void 0:H.request)&&X.continuationEndpointMap)return!!X.continuationEndpointMap[F];for(var f in K)if(X.commandEndpointMap[f])return!0;return!1};
i73=function(K,X){if(X.streamingEndpointMap)for(var F in K)if(X.streamingEndpointMap[F]&&(K=X.streamingEndpointMap[F]))return K()};
x5w=function(K,X){var F,P=(F=_.T(K,_.ss))==null?void 0:F.signal;if(P&&X.signalEndpointMap&&(F=X.signalEndpointMap[P]))return F();var H;if((F=(H=_.T(K,_.jd))==null?void 0:H.request)&&X.continuationEndpointMap&&(H=X.continuationEndpointMap[F]))return H();for(var f in K)if(X.commandEndpointMap[f]&&(K=X.commandEndpointMap[f]))return K()};
Ih4=function(K){var X={"Content-Type":"application/json"};_.e8("EOM_VISITOR_DATA")?X["X-Goog-EOM-Visitor-Id"]=_.e8("EOM_VISITOR_DATA"):_.e8("VISITOR_DATA")&&(X["X-Goog-Visitor-Id"]=_.e8("VISITOR_DATA"));X["X-Youtube-Bootstrap-Logged-In"]=_.e8("LOGGED_IN",!1);_.e8("DEBUG_SETTINGS_METADATA")&&(X["X-Debug-Settings-Metadata"]=_.e8("DEBUG_SETTINGS_METADATA"));K!=="cors"&&((K=_.e8("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(X["X-Youtube-Client-Name"]=K),(K=_.e8("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(X["X-Youtube-Client-Version"]=
K),(K=_.e8("CHROME_CONNECTED_HEADER"))&&(X["X-Youtube-Chrome-Connected"]=K),(K=_.e8("DOMAIN_ADMIN_STATE"))&&(X["X-Youtube-Domain-Admin-State"]=K),_.RU("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(K=_.e8("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(X["X-YouTube-Lava-Device-Context"]=K));return X};
kUM=function(K,X){X.watchNextResponse||X.reelItemWatchResponse?X.watchNextResponse?K.content=X.watchNextResponse:K.content=X.reelItemWatchResponse:X.playerResponse?K.player=X.playerResponse:X.reelWatchSequenceResponse&&(K.reelSequence=X.reelWatchSequenceResponse)};
_.wn=function(K){if(!K)return null;for(var X=[],F=0;F<K.textSegments.length;F++){var P=K.textSegments[F];P.text?X.push(P):P.emojiId&&X.push({emoji_id:P.emojiId})}return{text_segments:X}};
HRw=function(K,X,F,P,H,f,u){f=f===void 0?[]:f;var J=new _.yk;J.endpoint=F;if(!F)return _.wc(new _.nG("handle undefined endpoint",X.tagName)),J;var Z=OBy(F);Z.length&&(_.X0(K,Z,X,P),J.actions=Z);F.loggingUrls&&F.loggingUrls.forEach(function(n){n.baseUrl&&Go(n.baseUrl,n.attributionSrcMode)});
Z=!_.S("web_skip_impression_click_killswitch")&&P&&P.impression;if(F.clickTrackingParams&&!Ksn(F)&&!Xon(X)&&!Z&&(Z=_.uH(),!_.WO(Z,X))){var M=X.getScreenLayer&&X.getScreenLayer();M?Z.clickCommand(F,null,M):Z.clickCommand(F,null)}Z=!1;for(M=0;M<f.length;M++)if((0,f[M])(X,F,P)){Z=!0;break}!Z&&FsP(F)&&(J.ajaxPromise=PLw(K,X,F,P,H,u));return J};
Xon=function(K){var X;return(K=(X=K.data)==null?void 0:X.navigationEndpoint)&&!!K.clickTrackingParams};
Ksn=function(K){var X=_.T(K,_.ss);if(X&&(X=X.signal)&&sMd.indexOf(X)>=0)return!0;for(var F in K)if(z2y.indexOf(F)>=0)return!0;return!1};
FsP=function(K){var X;if(((X=_.T(K,_.ss))==null?void 0:X.signal)==="CLIENT_SIGNAL")return!1;for(var F in K)if(fkl.indexOf(F)>=0)return!1;K=Object.keys(K);return K.length===1&&K[0]==="loggingUrls"?!1:!0};
M_l=function(K,X,F,P,H,f,u){var J=_.dn.instance;if(J&&_.ed(J,P))var Z=_.Rx(J,P,H).then(function(n){return(n==null?0:n.data)?n:{data:n}});
else Z=K.requestDataForServiceEndpoint(P,H),_.T(P,DZ3)||_.T(P,uDT)||_.T(P,_.qAO)||_.T(P,JBO)||_.yy(new _.nG("No RequestBuilder for endpoint",P));var M=_.Ue();M.promise.thenCatch(function(){var n=_.y8(P,"action")||_.y8(P,"command")||_.y8(P,"endpoint");n&&(n=P[n],n.hasOwnProperty("onFailureAction")?_.X0(X,[n.onFailureAction],F):n.hasOwnProperty("onFailureCommand")&&_.X0(X,n.onFailureCommand,F));Z.cancel("Resolver promise rejected")});
Z.then(function(n){if(n){var c=n.error;if(c){if(f&&f.onServerError)f.onServerError(P,n);M.reject(new _.nG("Response error",P,c))}else if(n=n.data)if(c=n.error){if(f&&f.onServerError)f.onServerError(P,n);M.reject(new _.nG("Returned error",P,c))}else{ZRT(X,F,n,P);YAl(n);if(c=$0n(n))for(var B=_.D(c),L=B.next();!L.done;L=B.next()){L=L.value;var A=_.i9().resolve(_.Nu(QMP))||he;if(!_.dn.instance||!A.some(function(R){return!!_.T(P,R)})||_.S("kevlar_response_processor_allowlist_killswitch")){var d=A=void 0;
((d=_.T((A=L)==null?void 0:A.commandMetadata,_.g_))==null?0:d.sendPost)?_.Kl(X,[L]):_.X0(X,[L],F)}}(B=_.T(n==null?void 0:n.frameworkUpdates,mW))&&u&&u(B);if(f&&f.onSuccess)f.onSuccess(P,n);M.resolve(new _.G9(n,c))}}else M.reject(new _.nG("Invalid service endpoint provided",P))},function(n){M.reject(n)});
return M.promise};
YAl=function(K){var X;(K=(X=_.T(K==null?void 0:K.onResponseReceivedCommand,_.nG4))==null?void 0:X.continuationItems)&&(K==null?void 0:K.length)===1&&_.T(K[0],cBq)&&_.Ac("so_r",void 0,"search_overview_answer")};
PLw=function(K,X,F,P,H,f){var u;return(u=X.getNetworkManager&&X.getNetworkManager()?X.getNetworkManager():_.i9().resolve(_.Nu(_.oj)))?M_l(u,K,X,F,P,H,f):_.pB("No network manager.")};
ZRT=function(K,X,F,P){if(F=F.trackingParams||F.loggingDirectives&&F.loggingDirectives.trackingParams){var H;(_.T(P,poq)||_.T(P,BBO)||_.T(P,SAl))&&P.clickTrackingParams?H=_.QB(P.clickTrackingParams):_.S("web_graft_to_parent_command")&&P.clickTrackingParams&&(H=_.QB(P.clickTrackingParams));var f;P=(f=X.getScreenLayer)==null?void 0:f.call(X);X=_.uH().graftServerVe(F,H,P);_.IJ(K,"yt-store-grafted-ve-action",[X])}};
_.oGl=function(K){var X=new Image;return new _.fL(function(F,P){X.addEventListener("load",function(){F()});
X.addEventListener("error",function(){P()});
X.src=K})};
LsP=function(K){return!!K};
TBT=function(K){return!!K};
rBw=function(K,X,F){var P=K.rowIndex;P!==void 0&&_.IJ(K.hostElement,"yt-section-reactive-dismissal",[P,X,F])};
_.lC=function(K,X,F){K=_.D(K);for(var P=K.next();!P.done;P=K.next()){P=P.value;if(P===X)break;for(var H=_.D(F),f=H.next();!f.done;f=H.next())if(f=f.value,P.tagName===f||!_.S("web_event_button_role_check_killswitch")&&P.role==="button"&&f==="BUTTON")return!0}return!1};
_.vO=function(K,X,F){K=_.D(K);for(var P=K.next();!P.done;P=K.next()){P=P.value;if(P===X)break;for(var H=_.D(F),f=H.next();!f.done;f=H.next())if(P.id===f.value)return!0}return!1};
ABn=function(K,X){if(!K&&!X)return"medium";K=Math.max(K||0,X||0);return K>=256?"large":K>=96?"medium":"small"};
jMP=function(K){switch(K){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.$f=function(){var K=_.i9().resolve(_.Nu(_.ax));return K?(K=K.getCurrentPage())?_.te(K):null:null};
_.Oe=function(){var K=_.$f();if(!K){var X=_.i9().resolve(_.Nu(_.ax)),F=X?typeof X:"no page manager";X=X?X.getCurrentPage():null;F=new _.nG("Player is missing when requested.",F,X?X.tagName:"no page");_.jF(F)}return K};
_.te=function(K){return K&&K.getPlayer?K.getPlayer():null};
wow=function(K,X){K={args:{raw_player_response:K}};X&&(K.args=Object.assign({},K.args,X));return K};
yB9=function(K){if(K.args){if(K.args.raw_player_response)return K.args.raw_player_response;if(K.args.player_response)return JSON.parse(K.args.player_response)}};
_.Ws4=function(K,X){var F={url:"/watch?v="+K.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};K.playlistId&&(F.url+="&list="+K.playlistId);K.playerParams&&(F.url+="&pp="+K.playerParams);K={watchEndpoint:K,commandMetadata:{webCommandMetadata:F}};X&&(K.clickTrackingParams=X);return K};
e2T=function(){return dZl||!!_.mz("yt.player.Application")};
UZ3=function(){return R2l||!!document.querySelector("link#player-css")};
mZn=function(){function K(){dZl=!0;h24.resolve()}
var X,F;return _.q(function(P){h24||(h24=new _.K$,e2T()?K():(X=document.createElement("script"),X.addEventListener("load",K),F=_.AH(_.e8("PLAYER_JS_URL")),_.li(X,F),document.head.appendChild(X)));return P.return(h24.promise)})};
lkd=function(){function K(){R2l=!0;G7P.resolve()}
if(!G7P)if(G7P=new _.K$,UZ3())K();else{var X=document.createElement("link");X.id="player-css";X.addEventListener("load",K);var F=_.AH(_.e8("PLAYER_CSS_URL"));_.Vz(X,F,"stylesheet");document.head.appendChild(X)}return G7P.promise};
vGP=function(){return e2T()&&UZ3()?Promise.resolve([]):Promise.all([mZn(),lkd()])};
akw=function(K,X,F){var P={args:{}};K&&(P.args.raw_player_response=K);X&&(P.args.raw_watch_next_response=X);F&&(P.args=Object.assign({},P.args,F));return P};
V_d=function(K,X,F){var P=!1;P=P===void 0?!0:P;K=typeof K==="string"?_.Vk(document,K):K;var H=t_P+"_"+_.FL(K),f=$Zy[H];if(f&&P)return ORP(X,F)?f.api.loadVideoByPlayerVars(X.args||null):f.loadNewVideoConfig(X),f.api;f=new gn(K,H,X,F,void 0);$Zy[H]=f;f.addOnDisposeCallback(function(){delete $Zy[f.getId()]});
return f.api};
ORP=function(K,X){return X&&X.serializedExperimentFlags?X.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):K&&K.args&&K.args.fflags?K.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
gGw=function(){var K=new _.K$;K.resolved=!1;var X=K.resolve;K.resolve=function(F){K.resolved=!0;X(F)};
return K};
bRl=function(K){var X={};EG3().install((X.document_disposed={callback:K},X))};
Ee=function(K,X){if(!K&&Math.random()<=_.kU("kevlar_unified_player_logging_threshold")){K=Error("ph`"+(X?X:"Unspecified error"));if(_.S("kevlar_unified_player_throw_errors"))throw K;_.yy(K)}};
_.CLq=function(){var K=_.mz("ytDebugData.callbacks");K||(K={},_.gS("ytDebugData.callbacks",K));return K};
iRy=function(K,X){var F=_.CLq();if(_.S("web_dd_iu")||NBP.includes(K))F[K]=X};
xZ9=function(){return _.q(function(K){return K.return({isLeader:_.T4d(_.aA().getState()),c:_.e8("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.e8("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
Ikd=function(){var K;_.q(function(X){if(X.nextAddress==1)return iRy("APP_STATE",xZ9),_.Y(X,_.i9().resolve(_.bC),2);K=X.yieldResult;iRy("PI",function(){return _.q(function(F){return F.return(K.getVideoStats())})});
_.JT(X)})};
k7w=function(K){var X=_.$r(_.Uc(_.FP.location.href));K=_.$r(_.Uc(K));return _.S("kevlar_clear_non_displayable_url_params")?X==C4(K):C4(X)==C4(K)};
C4=function(K){var X=_.KIl(K);K=K.slice(0);var F=["frags"];_.S("kevlar_hide_pp_url_param")&&F.push("pp");_.S("kevlar_hide_time_continue_url_param")&&F.push("time_continue");F=_.D(F);for(var P=F.next();!P.done;P=F.next())P=P.value,K=_.Vn(_.$r(K),P);return _.$r(K)+(X?"#"+X:"")};
NB=function(K,X){X=Number(X)*1E3;var F=Math.round((0,_.CG)()),P=F.toString();K={innertubeResponse:K,serverDateTimestampMs:P,lastModifiedTimestampMs:P,expireTimestampMs:(F+X).toString()};if(X=_.e8("INNERTUBE_CONTEXT_CLIENT_NAME"))K.clientName=X;return K};
FIl=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++X5P};
_.PSd=function(){var K=_.r_(),X=_.AD();X&&K&&_.lY(X,[K],!0)};
s1w=function(K){return K&&HNy.some(function(X){return K.includes(X)})};
JFy=function(K){var X=_.T(K,_.mc);if(!X)return!1;var F=X.url,P=X.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!F)return _.jF(Error("uh")),!1;if(X.target==="TARGET_NEW_WINDOW"){var H={};_.S("resolve_url_parent_tracking_params")&&(!_.g2(F)||EN(window.location.href,F))&&(H={endpoint:K,itct:K.clickTrackingParams});zkP(H);K=null;try{if(P)return K=_.QWy(F,"_blank",H,void 0,P),zNn(_.i9().resolve(f0y),K,F),!0}catch(B){_.jF(B)}_.Oc(F,H);X={target:"_blank",noopener:_.S("set_window_noopener_ks")&&
!X.allowOpener};K=window;P=Yi(F)?F:_.ps(typeof F.href!="undefined"?F.href:String(F));H=self.crossOriginIsolated!==void 0;var f="strict-origin-when-cross-origin";window.Request&&(f=(new Request("/")).referrerPolicy);var u=X.noreferrer;if(H&&u&&f==="unsafe-url")throw Error("ne");f=u&&!H;u=X.target||F.target;var J=[],Z=[],M=!1;for(c in X){var n=X[c];switch(c){case "width":case "height":case "top":case "left":J.push(c+"="+n);break;case "target":break;case "noopener":case "noreferrer":n?Z.push(c):(M=!0,
Z.push(c+"=false"));break;case "attributionsrc":J.push(c+(n?"="+n:""));break;default:J.push(c+"="+(n?1:0))}}var c=u!==void 0&&!["_blank","_self","_top","_parent",""].includes(u);c=ww()&&c;DXd&&H&&J.length===0&&Z.length>0&&!c&&!M?(Z.length===2&&(Z=["noreferrer"]),_.ei(K,P,u,Z[0]),K=uKM()):(c=J.join(","),_.hM()&&K.navigator&&K.navigator.standalone&&u&&u!="_self"?(c=_.nJ("A"),Ao(c,P),c.target=u,f&&(c.rel="noreferrer"),((X=X.attributionsrc)||X==="")&&c.setAttribute("attributionsrc",X),X=document.createEvent("MouseEvent"),
X.initMouseEvent("click",!0,!0,K,1),c.dispatchEvent(X),K=uKM()):f?(K=_.ei(K,"",u,c),X=_.Qz(P),K&&(K.opener=null,X===""&&(X="javascript:''"),X='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+iC(X)+'">',X=wF(X),(P=K.document)&&P.write&&(P.write(yz(X)),P.close()))):((K=_.ei(K,P,u,c))&&X.noopener&&(K.opener=null),K&&X.noreferrer&&(K.opener=null)));zNn(_.i9().resolve(f0y),K,F);return!0}X=_.zy(F);X=s1w(X)||F==="https://studio.youtube.com/";P=!(!_.g2(F)||EN(window.location.href,
F));c=F.indexOf("disable_polymer=1")>=0;if(P||c||X)e0(F),Ll(),_.Rj(F,void 0,void 0,window.top,q1P);else return _.yy(new _.nG("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",K)),!1;return!0};
_.Q1l=function(K,X){X=X===void 0?0:X;if(!(_.T(K,ZNP)||_.T(K,Y1P)||_.T(K,_.mc)&&_.T(K,_.mc).url))return!1;var F,P=(F=_.T(K,_.mc))==null?void 0:F.url;F=P?{externalLinkData:{url:P}}:null;return _.uH().clickCommand(K,F,X)};
Mm3=function(K,X){return _.FF(K.entities,"subscriptionStateEntity",X)};
n9l=function(K,X){return _.FF(K.entities,"subscriptionNotificationStateEntity",X)};
cFy=function(K,X){return _.FF(K.entities,"upcomingEventReminderStateEntity",X)};
p5l=function(K,X){return _.FF(K.entities,"engagementToolbarSurfaceEntityPayload",X)};
BXO=function(K,X){return _.FF(K.entities,"triStateButtonStateEntityPayload",X)};
S1y=function(K,X){return _.FF(K.entities,"commerceCartCheckoutButtonEntity",X)};
_.o99=function(K,X){return _.FF(K.entities,"playlistLoopStateEntity",X)};
LI3=function(K,X){return _.FF(K.entities,"commandEntity",X)};
rFO=function(K,X,F,P,H){H=H===void 0?{}:H;return function(f){var u,J;var Z=((u=K.loggingDirectives)==null?0:(J=u.clientVeSpec)==null?0:J.uiType)?_.cO(K.loggingDirectives.clientVeSpec.uiType):void 0;H.clickedVisualElement||(H.clickedVisualElement=Z);Z=TXy(K,X);F(Z,f);Z=_.D(Z);for(u=Z.next();!u.done;u=Z.next()){u=u.value;J=P;var M=f,n=H;n.form?n.form.event=M:n.form={element:J,event:M};n4(u,n)}}};
TXy=function(K,X){var F=[];X?(K.toggledCommand&&F.push(K.toggledCommand),K.toggledServiceEndpoint&&F.push(K.toggledServiceEndpoint)):(K.defaultCommand&&F.push(K.defaultCommand),K.defaultServiceEndpoint&&F.push(K.defaultServiceEndpoint),K.defaultNavigationEndpoint&&F.push(K.defaultNavigationEndpoint));return F};
AFy=function(K,X){var F=K.toggledStyle||K.style,P;switch((P=X?F:K.style)==null?void 0:P.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"}}};
_.xf=function(){return _.q(function(K){return K.nextAddress==1?_.Y(K,_.i9().resolve(_.bC),2):K.return(_.i9().resolve(j1M)())})};
_.Ix=function(){return _.i9().resolve(j1M)()};
_.kf=function(){return j8(function(){return{lottieEl:void 0}})};
w54=function(K,X){return K.startsWith(X.uniqueId)};
yFy=function(K){var X,F;_.q(function(P){if(P.nextAddress==1)return _.Y(P,_.xf(),2);X=P.yieldResult;if((F=X)==null||!F.addEventListener)return KS(),P.return();X.addEventListener("onCueRangeEnter",K);_.JT(P)})};
WIy=function(K){var X,F;_.q(function(P){if(P.nextAddress==1)return _.Y(P,_.xf(),2);X=P.yieldResult;if((F=X)==null||!F.removeEventListener)return KS(),P.return();X.removeEventListener("onCueRangeEnter",K);_.JT(P)})};
dXy=function(K){var X,F,P,H,f;_.q(function(u){if(u.nextAddress==1)return _.Y(u,_.xf(),2);X=u.yieldResult;if((F=X)==null||!F.addCueRange)return KS(),u.return();P=_.D(K.timings);for(H=P.next();!H.done;H=P.next())f=H.value,X.addCueRange(K.uniqueId+"-"+f,f/1E3,(f+100)/1E3);_.JT(u)})};
eNO=function(K){var X,F,P,H,f;_.q(function(u){if(u.nextAddress==1)return _.Y(u,_.xf(),2);X=u.yieldResult;if((F=X)==null||!F.removeCueRange)return KS(),u.return();P=_.D(K.timings);for(H=P.next();!H.done;H=P.next())f=H.value,X.removeCueRange(K.uniqueId+"-"+f);_.JT(u)})};
RNn=function(){var K,X,F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,_.xf(),2);K=P.yieldResult;if((X=K)==null||!X.getPlayerState)return KS(),P.return();F=K.getPlayerState();return P.return(F===2)})};
KS=function(){_.yy(new _.nG("Smartimation player does not exist or is corrupted"))};
UXy=function(){try{var K;return(K=window.CSS)!=null&&K.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(X){return _.yy(new _.nG("Smartimation CSS.supports threw an error")),!1}};
tmy=function(K,X,F,P,H){var f=K.playlistId?hNO:mXn;X=X();F=F();H=!!K.videoId&&H()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.J7(X))return GxO({data:K,actionType:f,disabled:H},F);if(K.videoId&&P())return l0P({data:K,actionType:f,disabled:H});switch(X){case "TRANSFER_STATE_UNKNOWN":return l0P({data:K,actionType:f,disabled:H});case "TRANSFER_STATE_FAILED":return K.videoId?v9d({data:K,actionType:f,disabled:H}):a0l({data:K,actionType:f,disabled:H});case "TRANSFER_STATE_COMPLETE":return a0l({data:K,
actionType:f,disabled:H});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return GxO({data:K,actionType:f,disabled:H},F);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return K.videoId?v9d({data:K,actionType:f,disabled:H}):l0P({data:K,actionType:f,disabled:H});default:return l0P({data:K,actionType:f,disabled:H})}};
$Xl=function(K,X){var F=K.onTapCommand,P=_.w$(F);if(K.videoId&&_.T(P,_.Xj))return _.T(P,_.Xj).action=X,F;K.playlistId&&_.T(P,_.Fj)&&(_.T(P,_.Fj).action=X);return F};
l0P=function(K){var X=K.data;var F=K.actionType;K=K.disabled;return{text:ONP,iconType:"OFFLINE_DOWNLOAD",onTap:$Xl(X,F.ACTION_ADD),disabled:K}};
GxO=function(K,X){var F=K.data;var P=K.actionType;K=K.disabled;var H="OFFLINE_DOWNLOAD";X>=0&&X<=.1?H="OFFLINE_DOWNLOADING_ZERO":X>.1&&X<=.3?H="OFFLINE_DOWNLOADING_TWENTY":X>.3&&X<=.5?H="OFFLINE_DOWNLOADING_FORTY":X>.5&&X<=.7?H="OFFLINE_DOWNLOADING_SIXTY":X>.7&&X<1?H="OFFLINE_DOWNLOADING_EIGHTY":X===1&&(H="OFFLINE_PIN");return{text:VmO,iconType:H,onTap:$Xl(F,P.ACTION_REMOVE_WITH_PROMPT),disabled:K}};
a0l=function(K){var X=K.data;var F=K.actionType;K=K.disabled;return{text:g9M,iconType:"OFFLINE_PIN",onTap:$Xl(X,F.ACTION_REMOVE_WITH_PROMPT),disabled:K}};
v9d=function(K){var X=K.data;var F=K.actionType;K=K.disabled;return{text:E9n,iconType:"OFFLINE_DOWNLOAD",onTap:$Xl(X,F.ACTION_RETRY),disabled:K}};
iNT=function(K){var X=bNP;CS9.push(K);NXP||(X(function(){for(var F=_.D(CS9),P=F.next();!P.done;P=F.next())P=P.value,P();CS9.length=0;NXP=!1}),NXP=!0)};
bNP=function(K){Promise.resolve().then(K)};
Hp=function(K){K=_.D(Z4T(K));var X=K.next().value,F=K.next().value,P=!1;_.AV(function(){return function(){P=!0}});
return[X,function(H){iNT(function(){P&&!_.S("cow_prevent_state_setter_after_cleanup_killswitch")||F(H)})}]};
xX3=function(){var K=_.D(Hp(!1)),X=K.next().value,F=K.next().value;return function(){F(!X)}};
I0P=function(K){return j8(function(){return{value:K}})};
kxP=function(K,X){var F=I0P(K),P=I0P(X);r2(function(){F.value=K},[K]);
r2(function(){P.value=X},X&&X.length>=1?X:[void 0]);
var H=j8(function(){return{value:void 0}});
if(K!==F.value||P.value!==X||H.value===void 0)H.value=lb(K,X);var f=xX3();_.AV(function(){function u(){var Z=lb(F.value,X);Z!==H.value&&(H.value=Z,f())}
var J=_.Gb().subscribe(u);u();return J});
return H.value};
_.sy=function(K,X){var F=xrO();return _.Qs(function(){F();return lb(K,[_.ws(X)||""])},void 0,"HaeHEc")};
Kwl=function(K){var X=_.sy(_.rI,function(){return K().videoId}),F=_.sy(_.A7,function(){return K().playlistId});
return function(){return K().videoId?X:K().playlistId?F:_.D(_.u_("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
XBl=function(K){var X=_.sy(wI,function(){return K().videoId}),F=_.sy(_.LQd,function(){return K().playlistId});
return function(){return K().videoId?X:K().playlistId?F:_.D(_.u_(0,void 0,"K4tgOc")).next().value}};
FwP=function(K){var X=_.sy(_.d2P,function(){return K().videoId});
return function(){return K().videoId?X:_.D(_.u_(!1,void 0,"Oaxwcf")).next().value}};
P5T=function(K){var X=_.sy(Ap9,function(){return K().videoId});
return function(){return K().videoId?X:_.D(_.u_("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
H_P=function(){return{}};
sel=function(){var K,X;return(X=(K=_.i9().resolve(_.Nu(_.m$)))==null?void 0:K())!=null?X:!1};
fNd=function(K,X){K=K===void 0?zGy:K;switch(X.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},K,{isOpen:X.payload});default:return K}};
uHy=function(K,X){K=K===void 0?DQy:K;switch(X.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},K,{isAllowed:X.payload});default:return K}};
JaM=function(K,X){K=K===void 0?qf4:K;switch(X.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},K,{errorMessage:X.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},K,{title:X.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},K,{privacy:X.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},K,{isDisabled:X.payload});default:return K}};
YfM=function(K,X){K=K===void 0?Z_3:K;switch(X.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},K,{isOpen:X.payload});default:return K}};
MzM=function(K,X){K=K===void 0?Qeq:K;switch(X.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},K,{isFullscreen:X.payload});case "SET_NAVIGATION_BUTTON":var F=X.payload.targetId,P=Object.assign({},K.navigationButtons);P[F]=X.payload.button;return Object.assign({},K,{navigationButtons:P});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},K,{topPanelId:X.payload});case "SET_SECONDARY_HEADER":return F=X.payload.panelId,P=Object.assign({},K.secondaryHeader),P[F]=X.payload.secondaryHeader,
Object.assign({},K,{secondaryHeader:P});default:return K}};
BvO=function(){return zY(Object.assign({},{entities:P$3,voiceSearch:nll,engagementPanel:MzM,bottomSheet:fNd,cinematicSetting:uHy,shorts:rW4,drawerLayout:YfM,createPlaylist:JaM,locationCollection:nyl,reportChannel:caO,reportForm:pBT},AWP))};
Sf9=function(K,X){_.A9.addLowPriorityJob(function(){var F,P,H;return _.q(function(f){switch(f.nextAddress){case 1:return _.s2(f,2),_.Y(f,j8d(),4);case 4:return _.Y(f,fetch(K),5);case 5:return F=f.yieldResult,_.Y(f,F.json(),6);case 6:P=f.yieldResult;PO.set(K,P);requestAnimationFrame(function(){X(P)});
_.Gy(f,0);break;case 2:H=_.qc(f),_.yy(H),_.JT(f)}})})};
oyP=function(K){var X={animationConfig:{},listeners:{}},F=function(){K(!0)};
X.listeners.data_failed=F;X.listeners.error=F;X.listeners.data_ready=function(){K(!1)};
return X};
raP=function(K){var X=K.model;var F=K.subscribed;var P=K.isOverlay;var H=K.element;var f=K.commandController;var u=K.notificationState;if(F){var J,Z;var M=(X==null?void 0:(J=X.buttonStyle)==null?void 0:J.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:X==null?void 0:(Z=X.unsubscribeButtonContent)==null?void 0:Z.buttonText}else{var n;M=X==null?void 0:(n=X.subscribeButtonContent)==null?void 0:n.buttonText}a:{var c;switch(X==null?void 0:(c=X.buttonStyle)==
null?void 0:c.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":J="S";break a;default:J="M"}}a:if(P)P="overlay";else switch(X.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":P="overlay";break a;default:P="mono"}a:if(F)var B="tonal";else switch((B=X.buttonStyle)==
null?void 0:B.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":B="tonal";break a;default:B="filled"}return{style:P,type:B,state:X.disableSubscribeButton?"disabled":"active",size:J,focused:K.focused,toggled:F,accessibilityLabel:Lwy(X,F,u),buttonText:M,iconPosition:X.disableNotificationBell?"none":"leading-trailing",onTap:TvT(X,F,H,f),disableTextEllipsis:!!K.disableTextEllipsis}};
TvT=function(K,X,F,P){return function(H){if(X){var f;var u=K.disableNotificationBell?_.w$(K==null?void 0:(f=K.unsubscribeButtonContent)==null?void 0:f.onTapCommand):_.w$(K==null?void 0:K.onShowSubscriptionOptions)}else{var J;u=_.w$(K==null?void 0:(J=K.subscribeButtonContent)==null?void 0:J.onTapCommand)}u&&n4(u,{form:{element:F==null?void 0:F.value},commandController:P});H.stopPropagation()}};
Lwy=function(K,X,F){if(X){if(K==null?0:K.disableNotificationBell){var P;return K==null?void 0:(P=K.unsubscribeButtonContent)==null?void 0:P.accessibilityText}switch(F){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var H;return K==null?void 0:(H=K.bellAccessibilityData)==null?void 0:H.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var f;return K==null?void 0:(f=K.bellAccessibilityData)==null?void 0:f.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var u;return K==null?void 0:(u=
K.bellAccessibilityData)==null?void 0:u.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var J;return K==null?void 0:(J=K.bellAccessibilityData)==null?void 0:J.disabledLabel;default:var Z;return K==null?void 0:(Z=K.unsubscribeButtonContent)==null?void 0:Z.accessibilityText}}else{var M;return K==null?void 0:(M=K.subscribeButtonContent)==null?void 0:M.accessibilityText}};
Aad=function(K){if(K){switch(K){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":K="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":K="NOTIFICATIONS_OFF";break;default:K="NOTIFICATIONS_NONE"}return K}};
jeT=function(K,X,F){F.subscribed!==X&&((F=F.key)&&_.vc(_.zl("subscriptionStateEntity",F,{key:F,subscribed:X})),K.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:X})),X||_.xr(K,"yt-unsubscribe-action"))};
ya9=function(K){K=_.T(_.w$(K),_.fS);var X,F,P,H;return(H=_.T(K==null?void 0:(X=K.panelLoadingStrategy)==null?void 0:(F=X.inlineContent)==null?void 0:(P=F.sheetViewModel)==null?void 0:P.content,wBT))==null?void 0:H.listItems};
Wwl=function(K,X){if(K.onShowSubscriptionOptions&&X&&(K=ya9(K.onShowSubscriptionOptions),K!=null&&K.length)){var F=Aad(X);K.forEach(function(P){P=_.T(P,_.Db);var H,f,u,J,Z=P==null?void 0:(H=P.leadingImage)==null?void 0:(f=H.sources)==null?void 0:(u=f[0])==null?void 0:(J=u.clientResource)==null?void 0:J.imageName;P&&Z&&(P.isSelected=Z===F)})}};
dQy=function(K,X,F,P){X&&F?K.style.width=F+"px":!X&&P&&(K.style.width=P+"px")};
eGT=function(K,X,F){var P;(P=K.lottieEl)==null||P.goToAndPlay(0);var H;(H=X.lottieEl)==null||H.goToAndPlay(0);_.u6(_.A9,function(){var f;(f=F.lottieEl)==null||f.goToAndPlay(0)},300)};
qd=function(){return _.i9().resolve(_.Nu(RGP))||{}};
UQq=function(K){return typeof K==="function"};
_.Jf=function(K){Object.keys(K);var X=function(F,P){var H=X.mapping||K;if(!F)return _.Q(_.ID,null);if(Array.isArray(F)&&(F=hGl(H,X,F),Array.isArray(F))){if(!F.length)return _.Q(_.ID,null);if(F.length>1){for(var f=!1,u=!1,J=[],Z={},M=0;M<F.length;Z={data$jscomp$1847:void 0},M++)if(Z.data$jscomp$1847=F[M],Z.data$jscomp$1847){var n=mQ4(Z.data$jscomp$1847,H),c=n.mappingEntry;n=n.rendererName;c&&n&&(c&&(!UQq(c)&&GLO(c)&&(u=!0),!UQq(c)&&c.asyncId||(f=!0)),J.push(lNT(Z.data$jscomp$1847,c,n,X,P)))}return u&&
!f?_.Q(_.ID,null,vyy()):_.Q(_.ID,null,J)}F=F[0]}if(!F)return _.Q(_.ID,null);F=hGl(H,X,[F])[0];if(!F)return _.Q(_.ID,null);f=mQ4(F,H);H=f.mappingEntry;f=f.rendererName;return H&&f?_.Q(_.ID,null,lNT(F,H,f,X,P)):_.Q(_.ID,null)};
X.mapping=K;return X};
_.aNy=function(K){var X=void 0,F;for(F in K)if(K.hasOwnProperty(F)){X=F;break}return X};
hGl=function(K,X,F){var P,H=(P=qd().preProcessOptions)==null?void 0:P.idomOptions;if(!H)return F;qd();return H.preProcessPropsIdom(K,F,X.triggerRerender)};
mQ4=function(K,X){return(K=_.aNy(K))?{mappingEntry:X[K],rendererName:K}:{mappingEntry:void 0,rendererName:void 0}};
lNT=function(K,X,F,P,H){if(!X)return _.Q(_.ID,null);var f={};H&&H[F]&&(f=Object.assign({},H[F]));K[F]!==void 0&&(f.data=K[F]);if(UQq(X))return X.debugName||(X.debugName=F),_.Q(X,f);X.asyncId&&(P.pendingIdsMap=P.pendingIdsMap||{},P.pendingIdsMap[F]=X.asyncId);return X.templateFn?X.templateFn(f):GLO(X)?vyy():_.Q(_.ID,null)};
GLO=function(K){var X;return(X=K.showPlaceholder)!=null?X:qd().defaultShowPlaceholder};
vyy=function(){var K=qd().placeholder;return K()};
tzO=function(K,X){X=X===void 0?{shouldPersist:!0}:X;return{useUpdatableData:function(F,P){var H=[],f=_.D(_.qB(function(){var M=F();if(P!=null&&P.length&&H){var n=H.length>0;for(var c=!1,B=0;B<P.length;B++){var L=P[B]();n&&L!==H[B]&&(c=!0);H[B]=L}n=c}else n=!1;if(n)_.Zb.remove(Z());else if(n=_.Zb.get(Z()))return n;return M})),u=f.next().value,J=f.next().value,Z=_.Qs(function(){return K(F())},void 0,"VFraLb");
_.rs(function(){if(Z()!=null){Ya.set(Z(),[u,J,!1]);var M=Z();_.AZ(function(){Ya.delete(M)})}},"Fdafud");
return[u,function(M){J(M);X.shouldPersist&&_.Zb.set(Z(),M)}]},
getData:function(F){var P;return(P=Ya.get(K(F)))==null?void 0:P[0]()},
updateData:function(F,P){F=K(F);var H=Ya.get(F);if(!H)return!1;var f=_.D(H);H=f.next().value;f=f.next().value;P=P(H());f(P);X.shouldPersist&&_.Zb.set(F,P);return!0},
useUpdatableDataIdom:function(F,P){var H=K(F),f=_.Zb.get(H),u=_.D(Hp(f!=null?f:F)),J=u.next().value,Z=u.next().value,M=w2(f!=null?f:F);r2(function(){if(H!=null)return Ya.set(H,[function(){return M.value},
function(n){Z(n);M.value=n},
Ya.has(H)]),_.A9.addJob(function(){_.QW(_.A9,function(){var n=Ya.get(H);n&&(n[2]=!1)},0)},8),function(){var n;
((n=Ya.get(H))==null?0:n[2])||Ya.delete(H)}},[H]);
r2(function(){J!==F&&(Z(F),M.value=F)},P?[].concat(_.LZ(P),[H]):[H]);
return[J,Z]}}};
$QT=function(K){var X=_.D(_.u_(!0,void 0,"bKtO6d")),F=X.next().value;X.next();return function(){var P=Dq(K.children());return _.Q(_.p,{cond:F,then:function(){return P},
else:K.fallback})}()};
_.Md=function(K){var X=O_w(K),F=X.data,P=X.mapping,H=X.wrapper;X=X.pendingFallback;var f=function(){return Vz4(_.ws(F))},u=function(){var J=f(),Z=[];
J=_.D(J);for(var M=J.next();!M.done;M=J.next()){var n=void 0;M=M.value;var c=void 0;for(n in M)if(!(!M).hasOwnProperty(n)){c=n;break}(n=c)&&Z.push(n)}return Z};
return K.data?_.Q($QT,{fallback:X},function(){return _.Q(_.cd,{each:u},function(J,Z){var M=H?function(c){return H(function(){return P[J](c,Z)},n,Z)}:function(c){return P[J](c,Z)};
M.debugName||(M.debugName=String(J));if(!P[String(J)])return document.createComment("");var n=gyl(f,J,Z);return _.Q(M,{data:n})})}):_.Q(_.ID,null)};
O_w=function(K){var X=K.targetId||Eyd(K.children);if(!K.data||!X||_.S("mweb_new_replaceables_killswitch"))return Object.assign({},K,{mapping:K.children,wrapper:void 0});var F="stamper-"+b_3++,P=function(){var J;return(J=_.ws(K.targetId))!=null?J:F};
X=_.D(C5w(function(){var J=Vz4(K.data());J.targetId=P;return J})).next().value;
var H=Object.assign({},qd().replaceableMapping,K.children);if(K.replacementWrapper){var f=H.notificationTextRenderer,u=H.notificationMultiActionRenderer;f&&(H.notificationTextRenderer=function(J,Z){return K.replacementWrapper(f({data:J.data},Z))});
u&&(H.notificationMultiActionRenderer=function(J,Z){return K.replacementWrapper(u({data:J.data},Z))})}return Object.assign({},K,{data:X,
mapping:H,wrapper:function(J,Z,M){return QVP({targetId:P,stamperIndex:M},J)}})};
gyl=function(K,X,F){var P;return _.Qs(function(){var H=K()[F()];if(H)P=H[X];else return _.yy(new _.nG("Stamper failed to find "+String(X)+" at index "+F()+" of data array of length "+(K().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),P;return H[X]},void 0,"DHuMIe")};
Eyd=function(K){K=_.D(Object.keys(K));for(var X=K.next();!X.done;X=K.next())if(X=X.value,Nvl.includes(X)||i_n.includes(X)||xQl.includes(X))return!0;return!1};
Vz4=function(K){return K?Array.isArray(K)?K:[K]:[]};
IN4=function(K){K=_.T(K,_.nS);return(K==null?void 0:K.iconName)&&!(K==null?0:K.title)};
Xqd=function(K,X,F){var P;return _.Q(_.ID,null,K==null?void 0:(P=K.actions)==null?void 0:P.map(function(H){return _.Q("div",{class:function(){var f={"yt-flexible-actions-view-model-wiz__action":!0};f["yt-flexible-actions-view-model-wiz__action--row-action"]=X;f["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(IN4(H))var u=!0;else if(u=_.T(H,_.cp),(u==null?0:u.isToggled)&&IN4(u==null?void 0:u.toggledButtonViewModel)||(u==null||!u.isToggled)&&IN4(u==null?void 0:u.defaultButtonViewModel))u=
!0;else{var J;u=((J=_.T(H,kL3))==null?0:J.playlistId)?!0:!1}f=(f["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=u,f["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=F,f);return _.z9(f)}},KMl([H],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!X}}))}))};
FMl=function(K){var X=K.layout===1,F,P=((F=K.data)==null?void 0:F.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";F={};P=(F["yt-flexible-actions-view-model-wiz"]=!0,F["yt-flexible-actions-view-model-wiz--inline"]=!X,F["yt-flexible-actions-view-model-wiz--scrollable"]=P,F);var H,f;return _.Q("yt-flexible-actions-view-model",{class:_.z9(K.className,P)},(H=K.data)==null?void 0:(f=H.actionsRows)==null?void 0:f.map(function(u){if(X){var J;return _.Q("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
Xqd(u,X,!((J=K.data)==null||!J.respectActionIntrinsicWidth)))}return Xqd(u,X,!1)}))};
PM9=function(K){return!(K==null||!K.iconName||(K==null?0:K.title))};
Hr9=function(K){var X=_.T(K.data.toggleButtonViewModel,_.cp),F,P=(F=K.data.dislikeEntityKey)!=null?F:"",H=kxP(Ae,[P]);X=Object.assign({},X,{isToggled:H?H.likeStatus==="DISLIKE":X.isToggled});return _.Q("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.Q(_.pS,{data:X,buttonShapeOverrides:K.buttonShapeOverrideables,onToggle:function(f){H&&f!==(H.likeStatus==="DISLIKE")&&H.key&&_.vc(_.Bp("likeStatusEntity",H.key,{likeStatus:f?"DISLIKE":"INDIFFERENT",hadUserInteraction:f}))}}))};
zoP=function(K){var X=_.S("web_supports_animations_api"),F=_.T(K.data.toggleButtonViewModel,_.cp),P,H,f,u,J=_.D(Hp({numberText:(u=(P=K.likeCountEntity)==null?void 0:(H=P.likeCountIfIndifferent)==null?void 0:H.content)!=null?u:"",numberValue:Number((f=K.likeCountEntity)==null?void 0:f.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),Z=J.next().value,M=J.next().value,n,c,B,L;P=_.D(Hp({numberText:(L=(n=K.likeCountEntity)==null?void 0:(c=n.likeCountIfLiked)==null?void 0:c.content)!=null?
L:"",numberValue:Number((B=K.likeCountEntity)==null?void 0:B.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));n=P.next().value;var A=P.next().value;c=_.D(Hp());var d=c.next().value,R=c.next().value,l;c=(l=K.data.likeStatusEntityKey)!=null?l:"";var a,E;l=(E=(a=K.likeCountEntity)==null?void 0:a.key)!=null?E:"";var V=kxP(Ae,[c]),x=kxP(b7q,[l]);a=Yi9(function(){return(V==null?void 0:V.likeStatus)==="LIKE"},[V]);
r2(function(){var N,Dl=x&&((N=x.likeCountIfIndifferent)==null?void 0:N.content)!==Z.numberText;if(!d&&Dl){var Mq,pO;M({numberText:(pO=x==null?void 0:(Mq=x.likeCountIfIndifferent)==null?void 0:Mq.content)!=null?pO:"",numberValue:Number(x==null?void 0:x.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var y9,Wy;A({numberText:(Wy=x==null?void 0:(y9=x.likeCountIfLiked)==null?void 0:y9.content)!=null?Wy:"",numberValue:Number(x==null?void 0:x.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[x]);
F=Object.assign({},F,{isToggled:a});X=X&&K.likeCountEntity;return _.Q("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.Q(_.pS,{data:F,buttonShapeOverrides:K.buttonShapeOverrideables,animatedTextPropsDefault:X?Z:void 0,animatedTextPropsToggled:X?n:void 0,onToggle:function(N){sqP(N,V,d,R)},
style:function(){return K.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
sqP=function(K,X,F,P){F&&_.A9.cancelJob(F);F=_.A9.addLowPriorityJob(function(){P(void 0)},5E3);
P(F);X&&K!==(X.likeStatus==="LIKE")&&X.key&&_.vc(_.zl("likeStatusEntity",X.key,{key:X.key,likeStatus:K?"LIKE":"INDIFFERENT",hadUserInteraction:K}))};
fCl=function(K,X,F,P){F&&_.A9.cancelJob(F);F=_.A9.addLowPriorityJob(function(){P(void 0)},5E3);
P(F);X&&K!==(X.likeStatus==="LIKE")&&X.key&&_.vc(_.zl("likeStatusEntity",X.key,{key:X.key,likeStatus:K?"LIKE":"INDIFFERENT",hadUserInteraction:K}))};
qRw=function(K){var X,F=_.T((X=K.data)==null?void 0:X.likeButtonViewModel,_.S6),P;X=_.T((P=K.data)==null?void 0:P.dislikeButtonViewModel,_.ok);var H,f=(H=kxP(Ae,[(F==null?void 0:F.likeStatusEntityKey)||""]))!=null?H:F==null?void 0:F.likeStatusEntity;P=Yi9(function(){var u=K.data,J;u=(u==null?void 0:(J=u.timedAnimationData)==null?void 0:J.animationTiming)||[];return{uniqueId:"like-dislike",timings:u,enabled:(f==null?void 0:f.likeStatus)==="INDIFFERENT"&&u.length>0,experimentEnabled:u.length>0}},[K.data,
f]);return _.Q("segmented-like-dislike-button-view-model",{class:_.z9(K.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.Q(LS,{settings:P},_.Q("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},F?_.Q(DwP,{data:F,likeCountEntity:K.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,X?_.Q(u3T,{data:X,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
Jdn=function(K,X){var F=Os(K)||{layerNode:X};F.layerNode=X;RLO(K,F);K.getScreenLayer=function(){return Tl(F.layerNode)}};
Zr4=function(K){var X;K=K.parentNode;for(var F;K&&((X=Os(K))==null||!X.isRenderer)&&!((F=K.polymerController)!=null?F:K).isRenderer_;)K=K.parentNode||K.host;if(X=K)return Os(X)};
YRl=function(K){if(K){$X.delete(K);var X=_.i9().resolve(CL);jdT(K,X)}};
MeP=function(K,X,F){if(F===void 0?0:F){if(F=K.getAttribute("client-ve-type"),X.data&&!X.disableReactiveLogging||F)_.ys(function(){Qqy(K,_.ws(X.data))}),_.AZ(function(){return void YRl(K)})}else typeof X.data!=="function"&&Qqy(K,X.data)};
Qqy=function(K,X){nPP++;cdT(K,X)&&_.A9.addJob(function(){_.QW(_.A9,function(){if(cdT(K,X)&&K.ownerDocument.documentElement===document.documentElement&&K){var F;if(K.getAttribute("layer")){var P=F=Number(K.getAttribute("layer")),H=Os(K);H?H.layerNode.layer=P:Jdn(K,new pqO(P));(P=Zr4(K))&&(H=Os(K))!=null&&(H.layerNode.parent=P.layerNode)}else if(F=Os(K))F=Tl(F.layerNode);else{F=Tl;P=new pqO;if(H=Zr4(K))P.parent=H.layerNode;Jdn(K,P);F=F(P)}F!=null||(F=0);P=K.getAttribute("client-ve-type");H=Number(P);
var f=!1;P=!1;var u=Os(K),J;if((J=u)&&!(J=u[rV]!==X)&&(J=H)){var Z;J=((Z=$X.get(K))==null?void 0:Z.clientVeType)===void 0}J&&(u[rV]=X,f=P=u.isRenderer=!0);$X.has(K)&&($X.get(K).clientVeType=H);K.visualElement&&(P=!0);if(_.S("wiz_next_ld_fix_client_ve_spec")){var M;Z=((M=_.T(X==null?void 0:X.rendererContext,_.q0))==null?void 0:M.loggingDirectives)||(X==null?void 0:X.loggingDirectives)}else Z=X==null?void 0:X.loggingDirectives;Z&&Z.clientVeSpec&&(M=B8q(_.fB(),K),M=_.SRO(_.uH(),Z,M||void 0,F))&&(K.visualElement=
M);!K.visualElement&&H&&f&&(K.veType=H,M=void 0,_.S("wiz_next_client_ve_parent_fix")&&(M=B8q(_.fB(),K)),M=_.Da(_.uH(),K,M,F),K.visualElement=M);P&&(M=_.i9().resolve(CL),dkO(K,{data:X,observer:M,layer:F,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
cdT=function(K,X){return(X==null?0:X.trackingParams)||(X==null?0:X.loggingDirectives)||_.T(X==null?void 0:X.rendererContext,_.q0)||K.getAttribute("client-ve-type")?!0:!1};
LMl=function(K){return _.S("cow_logging_in_component_wrapper")?function(X){MeP(X,K,!0)}:oP9};
oP9=function(){};
_.T8P=function(K,X){return _.FF(K.entities,"accountLinkStatusEntity",X)};
rdw=function(K,X){return _.FF(K.entities,"hatsSurveyEntity",X)};
AdP=function(K,X){return _.FF(K.entities,"hatsSurveyStateEntity",X)};
jqy=function(K,X){return _.FF(K.entities,"quantityIncrementerEntity",X)};
eol=function(K){var X=K.data;var F=K.className===void 0?"":K.className;var P=K.setMinWidth;K=K.forceIconOnly;var H=_.t_(LMl({data:X}));P=P?"ytwAccountLinkButtonViewModelHostMinWidth":"";var f=_.sy(_.T8P,function(){var c;return(c=_.ws(X).accountLinkStatusEntityKey)!=null?c:""}),u=_.sy(_.T8P,function(){var c;
return(c=_.ws(X).accountLinkStatusSecondaryEntityKey)!=null?c:""}),J=function(){if(!_.S("web_account_link_secondary_killswitch")){var c,B;
return((c=f())==null?void 0:c.linked)||((B=u())==null?void 0:B.linked)}var L;return(L=f())==null?void 0:L.linked};
_.rs(function(){var c=f();if(c){var B=wqT(new ydn,WMy(new dwO,!!c.linked));_.xf().then(function(L){L&&(L.setAccountLinkState(_.iW(B.JSC$10074_serializeBinary(),4)),L.updateAccountLinkingConfig(!!c.linked))})}},"lLLHt");
var Z=function(){return _.T(_.ws(X).toggleButtonViewModel,_.cp)};
_.aI("yt-signal-action-show-account-link-dialog",function(){if(Z()){var c=J()?Z().toggledButtonViewModel:Z().defaultButtonViewModel;c=_.T(c,_.nS);var B;if((B=f())==null?0:B.isWarning){B=_.T(_.ws(X).warningButtonViewModel,_.nS);if(!B){_.Gr(Error("vh"));return}c=B}var L;(B=_.w$((L=c)==null?void 0:L.onTap))&&_.HW([B],H.value)}else _.Gr(Error("wh"))});
var M=function(){var c=Z();return Object.assign({},c,{isToggled:J()})},n=K?{iconPosition:"icon-only"}:{};
return _.Q("account-link-button-view-model",{class:_.HO("ytwAccountLinkButtonViewModelHost",function(){return _.ws(F)},P),
el:H,"button-renderer":!0},_.Q("div",null,_.Q(_.p,{cond:function(){var c;if((c=f())==null?0:c.isWarning)return(c=_.T(_.ws(X).warningButtonViewModel,_.nS))||_.Gr(Error("vh")),c},
then:function(c){return _.Q(_.Af,{data:c,buttonOverrides:n})},
else:function(){return _.Q(_.pS,{data:M,buttonShapeOverrides:n})}})))};
Ro4=function(K){switch(K){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;default:return 0}};
Uwn=function(K){switch(K){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}};
hon=function(K){switch(K){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.GA4=function(K){var X=_.kU("web_generic_client_event_wait_period ",0);X||(X=3E5);var F=mww.get(K);!_.S("enable_web_client_experiment_event_timeout_killswitch")&&F&&(0,_.CG)()-F<X||(mww.set(K,(0,_.CG)()),_.LL("genericClientExperimentEvent",{eventType:K}))};
lCP=function(K){switch(K){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
vP9=function(K){if(!K)return"";var X,F=(X=_.i9().resolve(_.Nu(_.m$)))==null?void 0:X(),P;if(!F&&((P=K.vibrantColorPalette)==null?0:P.iconInactiveColor))return yh(K.vibrantColorPalette.iconInactiveColor,"1");var H;return F&&((H=K.darkColorPalette)==null?0:H.iconInactiveColor)?yh(K.darkColorPalette.iconInactiveColor,"1"):K.color?yh(K.color,"1"):K.sampledThumbnailColor?(K=K.sampledThumbnailColor,"rgba("+K.red+","+K.green+","+K.blue+");"):""};
_.j6=function(K,X){if(!K.includes("DATE_PLACEHOLDER"))return K;var F=new Date(0);F.setUTCSeconds(X);return K.replace("DATE_PLACEHOLDER",aC9(F))};
_.wV=function(K){return K!=null&&K.watch?K.watch.isTheaterMode:!1};
_.yW=function(K){return K!=null&&K.watch?K.watch.isWatchFullscreen:!1};
_.Wp=function(K){K=_.tey(K);return _.S("web_watch_enable_single_column_grid_view")?K:!1};
_.tey=function(K){return K.watch.isWatchNarrowWidth};
$w9=function(K,X,F){return function(P){var H=K.command;H&&(n4(H,{form:{element:F}}),X([H],P))}};
Vel=function(K,X,F,P,H){return function(f){var u=OrT(K,F);u&&n4(u,{form:{element:P},commandController:H});X&&X.stopPropagation&&f.stopPropagation()}};
OrT=function(K,X){if(K.signInEndpoint&&!_.S("web_subscribe_sign_in_endpoint_killswitch"))return K.signInEndpoint;if(X){if(K.serviceEndpoints)return K.serviceEndpoints[1];if(K.onUnsubscribeEndpoints)return K.onUnsubscribeEndpoints[0]}else{if(K.serviceEndpoints)return K.serviceEndpoints[0];if(K.onSubscribeEndpoints)return K.onSubscribeEndpoints[0]}};
gPT=function(K,X){var F,P,H,f;X=X&&((F=K.unsubscribeAccessibility)==null?void 0:(P=F.accessibilityData)==null?void 0:P.label)||((H=K.subscribeAccessibility)==null?void 0:(f=H.accessibilityData)==null?void 0:f.label);return K.longSubscriberCountText?[X,_.lj(K.longSubscriberCountText)].filter(function(u){return u}).join(" "):X};
dV=function(K,X){return X||(K==null?0:K.isChannelDelegate)?"disabled":"active"};
EP3=function(K,X){var F;switch((F=K.style)==null?void 0:F.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:dV(K)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:dV(K)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:dV(K,!0)};case "OVERLAY":return X?{style:"overlay",type:"tonal",state:dV(K)}:{style:"overlay",type:"filled",state:dV(K)};default:return X?{style:"mono",type:"tonal",state:dV(K)}:{style:"mono",type:"filled",state:dV(K)}}};
bry=function(K){switch(K){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
CMT=function(K){switch(K){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
N8y=function(K,X){var F=K.map(function(P){return P.toString()});
return _.DF(function(P){if(F.includes(P.key)){X&&P.preventDefault();var H;(H=P.currentTarget)==null||H.click()}})};
_.irP=function(){return N8y(["Enter"])};
_.xwd=function(){return N8y(["Enter"," "],!0)};
_.e6=function(K){if(K.composedPath)return K.composedPath();if(!K.__composedPath){for(var X=[],F=K.target;F;)X.push(F),F=F.parentNode;X.push(window);K.__composedPath=X}return K.__composedPath};
_.Rk=function(K,X,F){K=_.D(K);for(var P=K.next();!P.done;P=K.next()){P=P.value;if(P===X)break;for(var H=_.D(F),f=H.next();!f.done;f=H.next())if(f=f.value,P.tagName===f||P.role==="button"&&f==="BUTTON")return!0}return!1};
kAw=function(K,X){var F,P=(F=X.observer)!=null?F:_.i9().resolve(CL);if(K){F=ICP(K);var H=[];X.showOption&&H.push(P.observe(K,function(){X.visibilityCallback(!0)},X.showOption));
X.hideOption&&H.push(P.observe(K,function(){X.visibilityCallback(!1)},X.hideOption));
X.prescanOption&&X.prescanCallback&&H.push(P.observe(K,function(){X.prescanCallback()},X.prescanOption));
var f;F.visibilityMonitorKeys=((f=F.visibilityMonitorKeys)!=null?f:[]).concat(H)}};
ICP=function(K){var X;return(X=K.polymerController)!=null?X:K};
_.hf=function(K){return!!_.Uy(K)};
_.FK3=function(K,X){var F=MHy();r2(function(){var P=K.value;if(P)return KKO(P,X),X6y(P,X,void 0,void 0,void 0,F)},[X])};
_.m_=function(K,X,F,P,H,f){var u=MHy();_.rs(function(){var J=K.value;J&&(KKO(J,X(),f),J=X6y(J,X(),F,P,H,u),_.AZ(J))},"GXtnHd")};
KKO=function(K,X,F){var P=Ppl(X),H=HHn(X);X=P&&spP;var f=H&&zBO;(P||H)&&kAw(K,{visibilityCallback:function(u){var J=_.i9().resolve(_.xU);u&&P?J.resolveCommand(P,{form:{element:F?K:void 0},disableClickTracking:!0}):!u&&H&&J.resolveCommand(H,{form:{element:F?K:void 0},disableClickTracking:!0})},
showOption:X,hideOption:f})};
X6y=function(K,X,F,P,H,f){var u=new Map;if(X=_.Uy(X)){var J;K=(P==null?void 0:(J=P.onTap)==null?void 0:J.value)||K;F=fJP(X,K,F==null?void 0:F.onTap,H,f);K.addEventListener("click",F);u.set("click",F)}return function(){for(var Z=_.D(u),M=Z.next();!M.done;M=Z.next()){var n=_.D(M.value);M=n.next().value;n=n.next().value;K.removeEventListener(M,n)}}};
_.Uy=function(K){var X;return(K=(X=_.T(K,DJl))==null?void 0:X.onTap)&&_.w$(K)};
Ppl=function(K){var X;return(K=(X=_.T(K,DJl))==null?void 0:X.onVisible)&&_.w$(K)};
HHn=function(K){var X;return(K=(X=_.T(K,DJl))==null?void 0:X.onHidden)&&_.w$(K)};
fJP=function(K,X,F,P,H){var f=function(J){_.i9().resolve(_.xU).resolveCommand(K,J)},u=function(J){P&&_.Rk(_.e6(J),X,P)||f(J.target?{form:{element:J.target,
sourceData:K,mutationContext:H}}:void 0)};
F&&(u=function(J){F(J,f)});
return u};
uun=function(K){switch(K){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}};
qSl=function(K){var X=K.numAvatarsInCluster;switch(K.clusterSize){case "small":return X===2?22:18;case "40":return X===2?24:22;default:return X===2?24:20}};
J5n=function(K,X){return function(F){var P=Object.keys(X);_.rs(function(){if(K()){for(var H=_.D(P),f=H.next();!f.done;f=H.next())f=f.value,F.addEventListener(f,X[f]);_.AZ(function(){for(var u=_.D(P),J=u.next();!J.done;J=u.next())J=J.value,F.removeEventListener(J,X[J])})}},"bXZGfe")}};
ZHn=function(K){switch(qSl(K)){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""}};
YSn=function(K){switch(K){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""}};
QpP=function(K){switch(qSl(K)){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""}};
MlP=function(K){switch(K){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""}};
nnl=function(K){switch(K){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}};
c5y=function(K){return K==="medium"||K==="48"||K==="large"||K==="extra-large"||K==="extra-extra-large"||K==="giant"};
p6y=function(K){return!!((K==null?0:K.includes(3))||(K==null?0:K.includes(5)))};
SSP=function(K){return{size:BhP(K.data.avatarImageSize),onTap:K.onTap,decorations:K.decorations||[],badgeText:K.badgeText,accessibilityText:K.accessibilityText,avatarButtonCustomClassName:K.avatarButtonCustomClassName,clusterLayoutConfig:K.clusterLayoutConfig}};
BhP=function(K){switch(K){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"}};
onw=function(K){switch(K){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}};
LKP=function(K){switch(K){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
ThM=function(K){var X=K.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",F,P=K.avatars&&K.avatars.length>0?(F=_.T(K.avatars[0],_.Gl))==null?void 0:F.avatarImageSize:"AVATAR_SIZE_UNKNOWN";F=onw(P)||0;if(X){var H,f=(H=K.avatarClusterSize)!=null?H:"AVATAR_SIZE_M";X=onw(f);var u,J,Z=Math.min((J=(u=K.avatars)==null?void 0:u.length)!=null?J:0,4),M;return{avatars:((M=K.avatars)==null?void 0:M.slice(0,4))||[],avatarSizeInPx:F,avatarStackStyle:{width:X+"px",height:X+"px",position:"relative"},avatarStyle:function(c){var B=
qSl({clusterSize:BhP(f),numAvatarsInCluster:Z,avatarIndex:c});var L=onw(f);Z===3&&c===2?(L=(L-B)/2,L=(_.e8("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*L):L=void 0;return{position:"absolute",top:Z===2&&c===1||Z===3&&c===2||Z===4&&c>=2?"0":void 0,bottom:Z===2&&c===0||Z>2&&c<2?"0":void 0,left:Z===2&&c===1||Z>2&&(c===1||c===3)?"0":void 0,right:Z<=3&&c===0||Z===4&&(c===0||c===2)?"0":void 0,transform:L?"translateX("+L+"px)":void 0,width:B+"px",height:B+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(c){return{clusterSize:BhP(K.avatarClusterSize),numAvatarsInCluster:Z,avatarIndex:c}},
avatarButtonCustomClassName:void 0}}var n;return{avatars:((n=K.avatars)==null?void 0:n.slice())||[],avatarSizeInPx:F,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:LKP(P),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
r5T=function(K,X,F){return function(){n4(K,{form:{element:X},commandController:F})}};
A5T=function(K){switch(K){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
jpM=function(K){switch(K){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
w6O=function(K){var X=K.data;K=K.hidden===void 0?!1:K.hidden;var F={};K={class:_.z9("yt-page-indicator-view-model",(F["yt-page-indicator-view-model__indicator--hidden"]=!X.indicatorCount,F)),hidden:K};if(X.indicatorCount){F=[];for(var P=0;P<X.indicatorCount;P++){var H={};H=_.z9("yt-page-indicator-view-model__indicator",(H["yt-page-indicator-view-model__indicator--selected"]=X.selectedIndex===P,H));F.push(_.Q("div",{class:H}))}X=_.Q(_.ID,null,F)}else X=_.Q(_.ID,null);return _.Q("yt-page-indicator-view-model",
K,X)};
WKl=function(K){K&&(y5O(K)?delete K.inlinePlayerData:"inlinePlaybackEndpoint"in K&&delete K.inlinePlaybackEndpoint)};
dJP=function(K){if("accessibilityText"in K)return K.accessibilityText||"";if("title"in K){var X,F,P;return((X=K.title)==null?void 0:(F=X.accessibility)==null?void 0:(P=F.accessibilityData)==null?void 0:P.label)||""}if("accessibility"in K){var H,f;return((H=K.accessibility)==null?void 0:(f=H.accessibilityData)==null?void 0:f.label)||""}return""};
y5O=function(K){return"inlinePlayerData"in K};
l6=function(K){return new eBO(K)};
_.RBn=function(K,X,F,P,H,f){var u=function(M){M.preventDefault()},J=function(){var M=K.value;
if(M)return(M._data=X)?(M.addEventListener("touchstart",S79,{passive:!0}),M.addEventListener("click",LFq),X.clickTrackingParams&&(M.params={itct:X.clickTrackingParams}),TN3(M,X),Ao(M,rhy(X)||"")):M.addEventListener("click",u),function(){X?(M.removeEventListener("touchstart",S79,{passive:!0}),M.removeEventListener("click",LFq)):M.removeEventListener("click",u)}},Z=function(){var M=K.value;
if(M){var n=_.Wn({innertubeCommand:X,elementsCommand:F,forceNewState:P,stopPropagation:f});if(n)return M._data=n._data,n["aria-haspopup$"]&&M.setAttribute("aria-haspopup",n["aria-haspopup$"].toString()),n["force-new-state$"]&&M.setAttribute("force-new-state",n["force-new-state$"].toString()),n.href$&&Ao(M,n.href$),n.rel$&&(M.rel=n.rel$),n.role$&&M.setAttribute("role",n.role$),n.target$&&(M.target=n.target$),M.params=n.params,n.onclick&&M.addEventListener("click",n.onclick),n.onpointerdown&&M.addEventListener("onpointerdown",
n.onpointerdown),function(){n.onclick&&M.removeEventListener("click",n.onclick);n.onpointerdown&&M.removeEventListener("onpointerdown",n.onpointerdown)}}};
r2(H?Z:J,[X,F])};
UJq=function(K){var X=K.children;var F=K.className;var P=K.dir;var H=K.style;var f=K.role;var u=K.ariaSelected;var J=K.ariaLabel;var Z=K.ariaHidden;var M=K.ariaLabelledby;var n=K.ariaDescribedby;var c=K.command;var B=K.elementsCommand;var L=K.forceNewState;var A=K.isPlaceholder;var d=K.tabIdentifier;var R=K.target;var l=K.tabIndex;var a=K.useATagConfig;var E=K.stopPropagation;K=_.t_();_.RBn(K,c,B,L,a,E);return _.Q("a",{el:K,"on:click":_.DF(function(){return E===!1}),
class:F,style:H,dir:P,role:f?f:c?void 0:"group","aria-hidden":Z?!0:void 0,"aria-label":J,"aria-labelledby":M,"aria-describedby":n,"aria-selected":u,tabindex:l!==void 0?l:void 0,target:R,"tab-identifier":d,"force-new-state":L?!0:void 0,"is-placeholder":A?!0:void 0},X)};
hB4=function(K){var X=K.data;K=_.DF(function(){var H=_.T(X.onTap,_.j9);H&&_.i9().resolve(_.xU).resolveCommand(H);return!1});
var F={sources:[{url:X.thumbnailUrl,width:120,height:90}]},P=X.rating&&X.ratingA11yLabel&&X.reviewsCount&&X.reviewsCountA11yLabel;return _.Q("place-data-view-model",null,X.placeName&&X.placeCategory?_.Q("div",{class:"yt-spec-place-data-view-model-shape","on:click":K},_.Q(_.av,{data:F,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.Q(UJq,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.T(X.onTap,_.j9),forceNewState:!0,useATagConfig:!0},
_.Q("h3",{class:"yt-spec-place-data-view-model-shape__name",title:X.placeName},X.placeName)),_.Q("div",{class:"yt-spec-place-data-view-model-shape__metadata"},P?_.Q("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.Q("span",{class:"score",title:X.ratingA11yLabel},X.rating),_.Q("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.Q(_.ZF,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.Q("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:X.reviewsCountA11yLabel},X.reviewsCount)):_.Q("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.Q("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.Q("span",{class:"category",title:X.placeCategory},X.placeCategory)))):null)};
mJn=function(K){return function(X){K&&(K.thumbnailElRef=X.thumbnailElRef,K.thumbnail=X.thumbnail,K.thumbnailOverlays=X.thumbnailOverlays,K.thumbnailSize=X.thumbnailSize)}};
G14=function(K){var X;return(X=K.sharedUi)==null?void 0:X.animatedThumbnailEnabled};
lJd=function(K){var X;return(X=K.sharedUi)==null?void 0:X.inlinePreviewEnabled};
_.vny=function(K){var X;return(X=K.sharedUi)==null?void 0:X.currentPageSubType};
aJl=function(K){switch(K){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
$JM=function(K){var X=_.D(_.u_(!1,void 0,"RIOonf")),F=X.next().value,P=X.next().value;_.AV(function(){var H=K==null?void 0:K();if(H){var f=_.i9().resolve(_.Nu(tll));if(f){var u={triggeringElement:H,onDwellTriggeredFn:function(){P(!0)},
onDwellEndFn:function(){P(!1)}};
f.registerElement(u);_.AZ(function(){f.unregisterElement(u)})}}});
return F};
OHl=function(K,X,F){F?F(X):_.e9(X,K.target?{form:{element:K.target}}:void 0)};
_.vp=function(K,X,F,P){_.rs(function(){var H=K.value;if(H){var f=new Map,u,J=(u=X())==null?void 0:u.onTap;J&&(u=function(Z){a:{var M=Z.composedPath();M=_.D(M);for(var n=M.next();!n.done;n=M.next()){n=n.value;if(n===H)break;if(n.className.indexOf("HostIsClickableAdComponent")>=0||n.tagName==="A".toString()||n.tagName==="BUTTON".toString()){M=!0;break a}}M=!1}M||(_.S("enable_square_image_components_ui_web_with_float_button")?_.iX(K.value,"yt-navigate",{endpoint:_.w$(J)}):OHl(Z,J,F))},(P==null?0:P())||
_.S("enable_web_home_top_landscape_image_layout_level_click")?(H.addEventListener("tap",u),f.set("tap",u)):(H.addEventListener("click",u),f.set("click",u)));
_.AZ(function(){for(var Z=_.D(f),M=Z.next();!M.done;M=Z.next()){var n=_.D(M.value);M=n.next().value;n=n.next().value;H.removeEventListener(M,n)}})}},"NUPHue")};
VlP=function(K,X){var F,P=(F=K.interaction)==null?void 0:F.onTap;if(K=_.Wn({elementsCommand:P,forceNewState:!0,skipOnClick:!0}))return K.onclick=function(H){njl(H)&&(H.preventDefault(),P&&OHl(H,P,X))},d$(K)?K:void 0};
gny=function(K){switch(K){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
End=function(K){switch(K){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"}};
bHM=function(K){switch(K){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"}};
_.Cpy=function(K){return _.S("rich_grid_enable_dynamic_offset")&&K?Math.max(Math.round((K-_.kU("rich_grid_dynamic_offset_anchor_width",1300))/100*_.kU("rich_grid_dynamic_offset_offset_per_100",10)),_.kU("rich_grid_dynamic_offset_lower_bound",-60)):0};
Nhl=function(K,X){switch(X){case 4:return 16;case 1:return K<528?16:K<1024?32:48;case 2:return(K>=528?16:8)/2;case 3:return(K<528?16:K<1024?32:48)+(K>=528?16:8)/2;default:return 0}};
iHM=function(K){var X=K.originalContainerWidth;var F=K.sizing;var P=K.standardUnit;if(K.isCompactList&&X<528)return 1;switch(F){case "STANDARD":return P;case "COMPACT":return P+1;case "EXTRA_COMPACT":return _.S("web_responsive_extra_compact_2x")?P*2:_.S("web_responsive_current")?P===1?2:P%2===0?P/2*3:P+2:P<4?P*2:Math.ceil(P*3/2);case "MINI":return P>1?P*2:3;default:return P}};
IJP=function(K){var X=K.containerWidth;var F=K.peek;var P=K.gutter;var H=K.numItems;K=K.ignoreMaxWidthLimit;X=F?Math.max((X-F-P*H)/H,0):Math.max((X-P*(H-1))/H,0);return K?X:Math.min(X,xJn)};
_.ak=function(K){var X=K.containerWidth;var F=K.hasPeek;var P=K.sizing;var H=K.marginSettings;var f=K.isCompactList;var u=K.enableFullBleedForSingleCol;var J=K.standardUnitMinWidth;P=P||"STANDARD";F=!!F;K=X>=528?16:8;var Z=F?X>=528?48:24:0;H=Nhl(X,H);var M=Math.max(X-H*2,0);J=_.S("kevlar_disable_min_width_override")?void 0:J;J=Math.min(Math.max(Math.floor((M-Z+K)/((J!=null?J:k1M)+_.Cpy(X)+K)),1),6);var n=(u=!!u&&J===1)||J===1&&P!=="STANDARD";F=F||n?M:Math.min(M,(xJn+K)*J-K);P=iHM({originalContainerWidth:X,
sizing:P,standardUnit:J,isCompactList:f});return{itemWidth:IJP({containerWidth:F,peek:Z,gutter:K,numItems:P,ignoreMaxWidthLimit:n}),gutter:K,maxContainerWidth:F,numItems:P,margin:u?0:H,contentMargin:Nhl(X,1),typographyBump:IJP({containerWidth:F,peek:Z,gutter:K,numItems:J,ignoreMaxWidthLimit:n})>400&&!(f&&X<528),standardUnit:J}};
KBy=function(K){switch(K){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.X2w=function(K){if(K){var X;if((X=K.responsiveContainerConfiguration)==null?0:X.responsiveSize)return KBy(K.responsiveContainerConfiguration.responsiveSize);if(K.layoutSizing)switch(K.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"}}};
FBP=function(K){if(K.fullbleed)return 1;switch(K.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
zRd=function(K,X,F,P,H,f,u,J){a:switch(K){case 4:f=!!(f&&f<100);break a;default:f=!1}a:switch(K){case 3:case 4:var Z=P==="LOCKUP_CONTENT_TYPE_CHANNEL"||P==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:Z=!1}a:switch(K){case 5:var M=!0;break a;case 4:M=!1;break a;default:M=!1}a:if(K===4&&P==="LOCKUP_CONTENT_TYPE_SOURCE")var n=1;else switch(K){case 3:n=1;break a;default:n=0}return{isOverlay:M,isCard:PAy(P,u),sizing:X!=null?X:"STANDARD",typographyBump:F!=null?F:!1,isTiny:f,isCentered:Z,isCollection:HPn(P),
arrangement:n,addMarginForFullbleed:K===1&&P!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:K===1&&P==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:sPd(P,H,J),disableRounding:K===5||PAy(P,u)||K===1&&P==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:HPn(P)?2:0,useLegacyTypography:!(J==null||!J.useLegacyTypography),useRichGridLegacyTypography:!(J==null||!J.useRichGridLegacyTypography)&&!_.S("web_enable_typography_bump")}};
HPn=function(K){switch(K){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
PAy=function(K,X){if(X&&K==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(K){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
sPd=function(K,X,F){if(X&&(F==null||!F.alwaysRespectPodcastShowAspectRatio||K!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(K){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}};
fcO=function(K){switch(K){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"}};
q0n=function(K,X,F){a:switch(K.badgeStyle){case "BADGE_OVERLAY":var P=!0;break a;default:P=!1}return{type:X?16:Djd(K.badgeStyle),brNzRatingBadgeType:upd(K.badgeStyle),text:K.badgeText,icon:K.iconName,isOverlay:P,modern:F||_.S("web_modern_badge_view_model")}};
Djd=function(K){switch(K){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
upd=function(K){switch(K){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}};
ZP9=function(K){var X=K.data?q0n(K.data,!!K.workaroundShortsIsThumbnailBadge,K.modern):void 0;return _.Q("yt-badge-view-model",{class:_.z9("yt-badge-view-model-wiz",K.class)},bB(X==null?void 0:X.brNzRatingBadgeType,function(){return _.Q(J2l,{data:X})}),bB(X&&!X.brNzRatingBadgeType,function(){return _.Q(_.tf,{data:X})}))};
_.$a=function(K){if(K){var X;return((X=_.i9().resolve(_.Nu(_.m$)))==null?0:X())?K.darkThemeImage:K.image}};
MCn=function(K,X,F,P,H,f){if(H&&f&&X==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:H,height:f};if(!F)return{};H=F.size;F=F.allowFullWidth;if(X==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&F)return{fullWidth:!0};if(H===void 0)return{};switch(K){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:H,height:H};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:H,height:1/Y0P*H};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:H*
QP4,height:H};default:return(P==null?0:P.height)&&(P==null?0:P.width)?P.width/P.height>1?{maxWidth:H*QP4}:{maxWidth:H}:{maxWidth:H}}};
nkw=function(K){var X;return K&&((X=_.$a(K.themedImage))!=null?X:K.image)};
c2P=function(K){var X;return K==null?void 0:(X=K.sources)==null?void 0:X[0]};
BW9=function(K,X){var F,P;return!!((K==null?0:(F=K.byline)==null?0:F.hideAvatar)&&((P=_.T(X,p29))==null?void 0:P.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
S0l=function(K,X){var F,P;return!!((K==null?0:(F=K.byline)==null?0:F.addPadding)&&((P=_.T(X,p29))==null?void 0:P.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
okd=function(K,X,F,P){var H={},f=(H["yt-content-metadata-view-model-wiz__delimiter"]=!0,H["yt-content-metadata-view-model-wiz__delimiter--standalone"]=P,H);return bB(X-1>F,function(){return _.Q("span",{class:_.z9(f),"aria-hidden":!0},K)})};
TWd=function(K,X){return _.Q(_.Oy,{text:K.text,linkInheritColor:!0,className:LBP(X),userInput:!0})};
A2w=function(K){var X=K.metadataPart;var F=K.isOverlay;var P=K.useMediumText;var H=K.hideAvatar;var f=1;X.maxLines!==void 0&&(f=X.maxLines);return _.Q(_.ID,null,bB(X.avatarStack,function(){return r2T(X.avatarStack,{avatarStackViewModel:{isOverlay:F,useMediumText:P,hideAvatar:H}})}),bB(X.text,function(){var u=f;
return _.Q(_.ID,null,X.tooltip?_.Q("span",{title:X.tooltip,role:"tooltip"},TWd(X,u)):TWd(X,u))}))};
LBP=function(K){switch(K){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
jP3=function(K){var X=K.metadataRow;var F=K.isInline;var P=K.delimiter;var H=K.isOverlay;var f=K.useMediumText;var u=K.extensions;var J=BW9(u==null?void 0:u.lockupMetadata,X);K=S0l(u==null?void 0:u.lockupMetadata,X);u=!(!((u==null?0:u.lockupMetadata)&&X.badges)||X.metadataParts);var Z={};K=(Z["yt-content-metadata-view-model-wiz__metadata-row"]=!0,Z["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=F,Z["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=
K,Z["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=u,Z);var M,n;return _.Q("div",{class:_.z9(K)},(M=X.badges)==null?void 0:M.map(function(c){return _.Q("div",{class:"yt-content-metadata-view-model-wiz__badge"},r2T(c))}),(n=X.metadataParts)==null?void 0:n.map(function(c,B){return _.Q(_.ID,null,A2w({metadataPart:c,
isOverlay:H,useMediumText:f,hideAvatar:J}),okd(P,X.metadataParts.length,B,!1))}),bB(X.isSpacerRow&&!F,function(){return _.Q("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
w2d=function(K){var X=K.className;var F=K.data;var P=K.layout===void 0?0:K.layout;var H=K.isOverlay===void 0?!1:K.isOverlay;var f=K.useMediumText;var u=K.extensions;K=_.t_();var J=P===0;P={};P=(P["yt-content-metadata-view-model-wiz"]=!0,P["yt-content-metadata-view-model-wiz--inline"]=J,P["yt-content-metadata-view-model-wiz--tappable"]=_.hf(F.rendererContext),P["yt-content-metadata-view-model-wiz--medium-text"]=f,P);_.FK3(K,F.rendererContext);return _.Q("yt-content-metadata-view-model",{class:_.z9(X,
P),el:K},bB(F.metadataRows,function(){return F.metadataRows.map(function(Z,M){return _.Q(_.ID,null,jP3({metadataRow:Z,isInline:J,delimiter:F.delimiter,isOverlay:H,useMediumText:f,extensions:u}),bB(J&&!Z.isSpacerRow,function(){return okd(F.delimiter,F.metadataRows.length,M,!0)}))})}))};
y2n=function(K){switch(K){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
WB9=function(K){switch(K.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"}}};
djw=function(K){var X=_.vny(_.Gb().getState())||"";return K?K+X:""};
eRy=function(K){switch(K){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
Ujl=function(K){var X=_.D(_.u_(void 0,void 0,"BIquNb")),F=X.next().value,P=X.next().value,H=_.D(_.u_(void 0,void 0,"eR0GH"));X=H.next().value;var f=H.next().value;H=_.D(_.u_(void 0,void 0,"UmkP0"));var u=H.next().value,J=H.next().value;return{touchFeedbackEvents:{pointerUpEvent:F,pointerDownEvent:X,pointerLeaveEvent:u},touchFeedbackOnPointerUp:_.DF(function(Z){if(RRw(_.e6(Z)))return!1;P(Z);f(void 0);J(void 0);return!0}),
touchFeedbackOnPointerDown:_.DF(function(Z){K==null||K(Z);if(RRw(_.e6(Z)))return!1;f(Z);P(void 0);J(void 0);return!0}),
touchFeedbackOnPointerLeave:_.DF(function(Z){RRw(_.e6(Z))||(J(Z),f(void 0),P(void 0))})}};
RRw=function(K){var X=["BUTTON".toString()];K=_.D(K);for(var F=K.next();!F.done;F=K.next()){F=F.value;for(var P=_.D(X),H=P.next();!H.done;H=P.next())if(F.tagName===H.value)return!0}return!1};
hR9=function(K){switch(K){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"}};
mjO=function(K,X){var F;return G2l(K,((F=K.content)==null?void 0:F.length)||0,!X)};
GHO=function(K,X){X=mjO(K,X);var F,P;return(((F=K.content)==null?void 0:F.length)||0)>(((P=X.content)==null?void 0:P.length)||0)};
lcw=function(K){var X=K.isTruncated;var F=K.isAbsoluteButton;var P=K.lineHeight;var H=K.contentRef.value,f=K.placeholderTruncationTextRef.value,u=K.truncationTextRef.value;K=K.appDirection==="rtl";if(H&&f){var J=f.offsetLeft;K&&(J=H.offsetWidth-f.offsetWidth-f.offsetLeft);if(X){X=f.offsetWidth;f=H.offsetWidth;var Z=F?f-X-70:J-70;P="linear-gradient(\n      to top, transparent 0%,\n      transparent "+P+"px,\n      #000 "+P+"px,\n      #000 100%), linear-gradient(\n      to "+((K?"left":"right")+",\n      #000 0px,\n      #000 "+
Z+"px,\n      transparent "+(F?f-X:Z+70)+"px)");H.style.setProperty("-webkit-mask-image",P);H.style.setProperty("mask-image",P)}else H.style.setProperty("-webkit-mask-image",""),H.style.setProperty("mask-image","");F?K?(u.style.setProperty("left","0"),u.style.setProperty("right","unset")):(u.style.setProperty("left",""),u.style.setProperty("right","0")):K?(u.style.setProperty("left","unset"),u.style.setProperty("right",J+"px")):(u.style.setProperty("left",J+"px"),u.style.setProperty("right","unset"))}};
vkl=function(K,X,F,P,H,f,u){var J=_.t_(),Z=_.t_(),M=_.t_(),n=mjO(K,H),c=_.i9().resolve(_.lH),B=_.D(Hp(GHO(K,H))),L=B.next().value,A=B.next().value,d=w2(null);r2(function(){function R(){if(J.value&&Z.value&&M.value){var E=J.value;E.scrollHeight-E.offsetHeight>1?(A(!0),P||lcw({isTruncated:!0,isAbsoluteButton:!0,lineHeight:F,contentRef:J,placeholderTruncationTextRef:Z,truncationTextRef:M,appDirection:c})):(E=GHO(K,H),A(E),P||lcw({isTruncated:E,isAbsoluteButton:!1,lineHeight:F,contentRef:J,placeholderTruncationTextRef:Z,
truncationTextRef:M,appDirection:c}))}}
var l,a;(l=d.value)==null||(a=l.stop)==null||a.call(l);l=new _.VW(R,17);R();d.value=l},[K.content,
X,F,c,P,f,u,H]);_.AV(function(){var R=function(){var a,E;(a=d.value)==null||(E=a.fire)==null||E.call(a)};
if(window.ResizeObserver){var l=new ResizeObserver(R);l.observe(J.value);return function(){var a,E;(a=d.value)==null||(E=a.stop)==null||E.call(a);l.disconnect()}}window.addEventListener("resize",R);
return function(){var a,E;(a=d.value)==null||(E=a.stop)==null||E.call(a);window.removeEventListener("resize",R)}});
return{isTruncated:L,displayText:n,contentRef:J,placeholderTruncationTextRef:Z,truncationTextRef:M}};
ac3=function(K){return _.Q("button",{"aria-disabled":!0,disabled:!0,class:K.className,el:K.elRef,style:"line-height: "+K.lineHeight+"px;"},_.Q(_.Oy,{text:K.text}))};
tCP=function(K){var X=K.text;var F=K.alwaysShowTruncationText;var P=K.truncationText;var H=K.onExpandClick;var f=K.lineHeight===void 0?16:K.lineHeight;var u=K.maxLines===void 0?2:K.maxLines;var J=K.disableTextMask===void 0?!1:K.disableTextMask;var Z=K.textStyle===void 0?"default":K.textStyle;var M=K.accessibilityLabel===void 0?"":K.accessibilityLabel;var n=K.textSize===void 0?"small":K.textSize;var c=_.DF(function(){return void(H==null?void 0:H())}),B=vkl(X,u,f,J,K.alwaysTruncateAtMaxLines===void 0?
!1:K.alwaysTruncateAtMaxLines,n,Z),L=B.isTruncated;
K=B.displayText;X=B.contentRef;var A=B.placeholderTruncationTextRef;B=B.truncationTextRef;var d={};F=_.z9((d["truncated-text-wiz__absolute-button"]=!J,d["truncated-text-wiz__bottom-button"]=J,d["truncated-text-wiz--hidden"]=!(F||L),d));J={};Z=_.z9((J["truncated-text-wiz"]=!0,J["truncated-text-wiz--overlay"]=Z==="overlay",J["truncated-text-wiz--medium-text"]=n==="medium",J["truncated-text-wiz--large-text"]=n==="large",J["truncated-text-wiz--primary-text"]=Z==="primary-text",J));return _.Q("truncated-text",
{class:Z,"on:click":c,style:"line-height: "+f+"px;"},_.Q("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",el:X,style:"max-height: "+u*f+"px;"},_.Q(_.Oy,{text:K}),_.Q(ac3,{text:P,lineHeight:f,elRef:A,className:"truncated-text-wiz__inline-button"})),_.Q("button",{"aria-label":M,class:F,el:B,style:"line-height: "+f+"px;"},_.Q(_.Oy,{text:P})))};
$jy=function(K){return{content:K!=null?K:""}};
gky=function(K){var X=K.data;var F;K={class:K.className};a:switch(X.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var P="yt-video-attribute-view-model--vertical";break a;default:P="yt-video-attribute-view-model--horizontal"}a:switch(X.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var H="yt-video-attribute-view-model--image-small";break a;default:H="yt-video-attribute-view-model--image-large"}a:switch(X.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var f="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":f="yt-video-attribute-view-model--image-avatar";break a;default:f=""}a:switch(X.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var u="yt-video-attribute-view-model--metadata-header";break a;default:u=""}a:switch(X.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var J="yt-video-attribute-view-model--container-card";break a;default:J=""}var Z=_.w$(X.onTap)||_.Uy(X.rendererContext)?"yt-video-attribute-view-model--clickable":"";
P=["yt-video-attribute-view-model",P,H,f,u,J,Z].join(" ");if(X.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var M="";else H=X.lightColorPalette,f=X.darkColorPalette,u=((M=_.i9().resolve(_.Nu(_.m$)))==null?0:M())&&f?f:H,M=(M=u==null?void 0:u.section2Color)?_.wq(M):"";return _.Q("yt-video-attribute-view-model",K,_.Q("div",{class:P,style:_.Je({"background-color":M})},_.Q(UJq,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(F=_.w$(X.onTap))!=
null?F:_.Uy(X.rendererContext),role:"group",ariaLabel:X.title,forceNewState:!0},X.heroText||X.image?_.Q(OPd,{data:X}):null,_.Q(VCd,{data:X,sizeSmall:X.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
EkO=function(K){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:K.overflowMenuA11yLabel,onTap:function(X){X.preventDefault();X.stopPropagation();if(K.overflowMenuOnTap){var F=_.Wn({elementsCommand:K.overflowMenuOnTap,forceNewState:!0});if(F==null?0:F.onclick)F.onclick(X)}}}};
OPd=function(K){K=K.data;var X,F=((X=_.i9().resolve(_.Nu(_.m$)))==null?0:X())&&K.darkThemeImage?K.darkThemeImage:K.image;X=EkO(K);return _.Q("div",{class:"yt-video-attribute-view-model__hero-section"},F?_.Q(_.av,{data:F,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):K.heroText?_.Q("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.Q("span",{class:"yt-video-attribute-view-model__hero-text"},K.heroText)):null,K.overflowMenuOnTap?
_.Q("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.Q(gV,{data:X,iconName:"MORE_VERT"})):null)};
VCd=function(K){var X=K.data;K=K.sizeSmall;var F=X.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",P=_.w$(X.onTap)||_.Uy(X.rendererContext);P=_.Wn({innertubeCommand:P});P=d$(P);var H={};K={class:_.z9("yt-video-attribute-view-model__metadata",(H["yt-video-attribute-view-model--small-font"]=K,H)),role:P?"link":"group"};P=_.Q("h1",{class:"yt-video-attribute-view-model__title"},X.title);F=X.subtitle?_.Q("h4",{class:"yt-video-attribute-view-model__subtitle"},F?_.Q(tCP,{text:$jy(X.subtitle),truncationText:$jy(X.subtitleTruncationText),
maxLines:2}):_.Q("span",null,X.subtitle)):null;if(X.secondarySubtitle){H=X.secondarySubtitle;if(H!=null&&H.attachmentRuns){for(var f=[],u=_.D(H.attachmentRuns),J=u.next();!J.done;J=u.next())J=J.value,J.element&&f.push(Object.assign({},J,{element:Object.assign({},J.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));H=Object.assign({},H,{attachmentRuns:f})}H=_.Q("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.Q(_.Oy,{text:H}))}else H=null;return _.Q("div",K,P,F,H,X.buttonViewModel?bP4(X.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
_.Ey=function(K,X,F,P,H){P=P===void 0?{}:P;if(!H||Math.random()<5E-4){X=X||null;F=F||null;K=K instanceof Error?K:new _.nG(K);if(K.args)for(var f=_.D(K.args),u=f.next();!u.done;u=f.next())u=u.value,u instanceof Object&&(P=Object.assign({},u,P));P.category="H5 Ads Control Flow";X&&(P.slot=X?"slot:  "+X.slotType:"");F&&(P.layout=F?"layout:  "+F.layoutType:"",P.layoutId=F.layoutId);H&&(P.known_error_aggressively_sampled=!0);K.args=[P];_.yy(K)}};
_.CAn=function(K,X){_.xr(K,"yt-open-popup-action",[_.$x(X),K])};
_.b6=function(K,X){_.CAn(K,_.GS(X))};
iP4=function(K){if(!K)return"";if(NWP[K])return NWP[K];CS||(CS=_.nJ("A"));CS.href!==K&&Ao(CS,K);var X=CS.pathname;NWP[K]=X.startsWith("/")?X:"/"+X;return NWP[K]};
xj9=function(){var K=iP4(window.location.href);if(K==="/")return"home";if(K.startsWith("/results"))return"search";if(K.startsWith("/watch"))return"watch";if(K.startsWith("/shorts"))return"shorts";if(K.startsWith("/hashtag"))return"hashtag";if(K.startsWith("/create_channel"))return"create_channel";if(K.startsWith("/@")||K.startsWith("/user/")||K.startsWith("/channel/"))return"channel";if(K.startsWith("/experiments"))return"experiments";if(K.startsWith("/sponsor_channel"))return"sponsorship";if(K.startsWith("/select_site"))return"settings";
if(K.startsWith("/locate"))return"locate";if(K.startsWith("/redeem"))return"redeem";if(K.startsWith("/musicpremium")||K.startsWith("/premium")||K.startsWith("/red"))return"premium";if(K.startsWith("/paid_memberships"))return"paid_memberships";if(K.startsWith("/oops"))return"oops";if(K.startsWith("/clip"))return"clip";var X;return(Nd==null?void 0:(X=Nd.response)==null?void 0:X.page)==="404"?"404":K.startsWith("/feed/history")?"history":K.startsWith("/feed/library")?"library":K.startsWith("/feed/subscriptions")?
"subscriptions":K.startsWith("/feed/trending")?"trending":K.startsWith("/feed/news_destination")?"news":K.startsWith("/playlist")?"playlist":K.startsWith("/minor_moment")?"minor_moment":K.startsWith("/playable/")||K.match("^/playables/(?!saved).")?"mini_app":K.startsWith("/playables")?"playables":K.startsWith("/create/live/join")?"open_in_app":K.startsWith("/feed/explore")?"explore":"browse"};
_.XZT=function(){var K=Nd==null?void 0:Nd.response,X=K==null?void 0:K.endpoint;if(!X)return(K==null?void 0:K.page)==="watch"?"watch":xj9();var F;K=(F=_.T(X==null?void 0:X.commandMetadata,_.g_))==null?void 0:F.webPageType;F=!1;if(K&&!IcM.includes(K))switch(K){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 P;return((P=_.T(X==null?void 0:X.commandMetadata,_.g_))==null?0:P.url)&&iP4(_.T(X.commandMetadata,_.g_).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var H;return(X=(H=_.T(X,_.f$))==null?void 0:H.browseId)?kHw[X]||"browse":"browse";default:F=!0}if(_.T(X,_.i6)||_.T(X,KR3))return"sponsorship";H=iP4(window.location.href);if(H.startsWith("/experiments"))return"experiments";if(H.startsWith("/create_channel"))return"create_channel";
if(_.T(X,_.mc)&&H.startsWith("/shorts"))return"shorts";if(_.T(X,_.mc)&&H.startsWith("/watch"))return"watch";F&&(X=new _.nG("Unsupported mWeb page type",{pathname:H,webPageType:K}),_.jF(X));return"browse"};
xa=function(K,X,F,P){return K&&X?K!==F||X!==P?(_.Ey(Error("Ch"),void 0,void 0,{"stored-slot":K,"stored-layout":X,"latest-slot":F,"latest-layout":P}),!1):!0:!1};
FRq=function(K,X,F){return K({targetId:X},function(P){return F.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},P,{header:F.continuationItems?F.continuationItems[0]:void 0}):Object.assign({},P,{contents:F.continuationItems?F.continuationItems:[]})})};
PgT=function(K,X,F,P){if(X=X.trackingParams){var H,f=(H=F.getScreenLayer)==null?void 0:H.call(F);F=_.AD(f);H=_.r_(f);if(F&&H){var u=_.QB(X);_.S("combine_ve_grafts")?K.graftServerVe(X,H,f):_.Us(F,H,u);P==null||P(u)}}};
s_d=function(K){var X;return((X=H0M.get(K))==null?void 0:X.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
D8d=function(K,X){var F={type:X.slotType,controlFlowManagerLayer:z$4.get(X.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};X.slotEntryTrigger&&(F.entryTriggerType=X.slotEntryTrigger.triggerType);X.slotPhysicalPosition!==1&&(F.slotPhysicalPosition=X.slotPhysicalPosition);if(K){F.debugData={slotId:X.slotId};if(K=X.slotEntryTrigger)F.debugData.slotEntryTriggerData=fyP(K);K=X.slotFulfillmentTriggers;F.debugData.fulfillmentTriggerData=[];K=_.D(K);for(var P=K.next();!P.done;P=K.next())F.debugData.fulfillmentTriggerData.push(fyP(P.value));
X=X.slotExpirationTriggers;F.debugData.expirationTriggerData=[];X=_.D(X);for(K=X.next();!K.done;K=X.next())F.debugData.expirationTriggerData.push(fyP(K.value))}return F};
fyP=function(K,X){var F={type:K.triggerType};X!=null&&(F.category=X);K.triggeringSlotId!=null&&(F.triggerSourceData||(F.triggerSourceData={}),F.triggerSourceData.associatedSlotId=K.triggeringSlotId);K.triggeringLayoutId!=null&&(F.triggerSourceData||(F.triggerSourceData={}),F.triggerSourceData.associatedLayoutId=K.triggeringLayoutId);return F};
uVw=function(K,X,F,P){X={opportunityType:X};K&&(P||F)&&(P=_.AE(P||[],function(H){return D8d(K,H)}),X.debugData=Object.assign({},F&&F.length>0?{associatedSlotId:F}:{},P.length>0?{slots:P}:{}));
return X};
qd3=function(K){return Ik(K.opportunityAdapterMap).concat(Ik(K.triggerAdapterMap)).concat(Ik(K.fulfillmentAdapterFactoryMap)).concat(Ik(K.slotAdapterFactoryMap)).concat(Ik(K.layoutRenderingAdapterFactoryMap))};
Ik=function(K){var X=[];K=_.D(K.values());for(var F=K.next();!F.done;F=K.next())F=F.value,F.isAdsControlFlowEventListener&&X.push(F);return X};
Kj=function(K){var X=K.slotId,F=K.slotType,P=K.slotPhysicalPosition;return X===void 0?new ka("Cannot construct a slot due to the missing id.",{adSlotMetadata:K}):F===void 0?new ka("Cannot construct a slot due to the missing type.",{adSlotMetadata:K}):P===void 0?new ka("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:K}):{slotId:X,slotType:F,slotPhysicalPosition:P,managerLayer:"external",adSlotLoggingData:K.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new JX4}};
Z0l=function(K){var X=K.layoutId,F=K.layoutType;return X===void 0?new Xc("Cannot construct a layout due to the missing id.",{adLayoutMetadata:K}):F===void 0?new Xc("Cannot construct a layout due to the missing type.",{adLayoutMetadata:K}):{layoutId:X,layoutType:F,managerLayer:"external",adLayoutLoggingData:K.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new JX4,interactionLoggingAdsClientData:{}}};
Ydl=function(K){if((K=K.value)&&K.querySelector("img")){var X=K.querySelector("img");X.addEventListener("error",function(){fE4(X.src).then(function(F){(F=_.Si(F).toString())?X.src=F:X.removeAttribute("src")}).catch(function(){X.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
PG=function(K,X){if(X&&(Q_l(X.viewableCommand)||Q_l(X.endOfSessionCommand))){K=K.value;var F=Mx4(X==null?void 0:X.viewableCommand);X=Mx4(X==null?void 0:X.endOfSessionCommand);if(!Fc){var P=_.kU("custom_active_view_tos_timeout_ms");Fc=P>0&&P!==36E5?new n6P(cX3(),P):new n6P(cX3())}pZl(Fc,K);ByM(Fc,K,F,X)}};
HG=function(K){Fc&&pZl(Fc,K.value)};
cX3=function(){var K=_.e8("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(K==null?void 0:K.length)===2?K[1]:null};
Q_l=function(K){K=_.w$(K);return!(K==null||!K.loggingUrls)&&K.loggingUrls.length>0};
Mx4=function(K){if(!K)return[];var X=[],F,P;((P=(F=_.w$(K))==null?void 0:F.loggingUrls)!=null?P:[]).forEach(function(H){H.baseUrl&&X.push(H.baseUrl)});
return X};
Sdw=function(K){return K.shorts.isDesktopSmallWidth};
_.o6l=function(K){return K.shorts.isWatchWhileMode};
_.sD=function(K){return K.shorts.isFullscreen};
_.zX=function(K){return K.shorts.isShortsPipActive};
Tyl=function(K){var X,F;if(K=(X=_.T(K.reelsAdCardButtoned,LRd))==null?void 0:(F=X.animatedRenderingConfig)==null?void 0:F.easeOutSeconds)return K+"s"};
AXT=function(K,X,F){return _.q(function(P){return P.return(new Promise(function(H){var f=new Image;f.onload=function(){H(new rX3(K,X,F,f.naturalWidth,f.naturalHeight))};
f.src=F.toString()}))})};
j_P=function(K,X){return Math.round(K/1E-5)===Math.round(X/1E-5)};
wZ3=function(K,X){return Math.round(K/1E-5)===Math.round(X/1E-5)};
yXy=function(K,X){return K.year===X.year&&K.month===X.month&&K.day===X.day};
WRT=function(K,X){return K.year!==X.year?K.year<X.year:K.month!==X.month?K.month<X.month:K.day<X.day};
e$T=function(K){return K.day===d8M(K.year,K.month)?K.month===11?{year:K.year+1,month:0,day:1}:{year:K.year,month:K.month+1,day:1}:{year:K.year,month:K.month,day:K.day+1}};
R$3=function(){var K=new Date,X={year:K.getFullYear(),month:K.getMonth(),day:K.getDate()};return{start:X,end:{year:K.getFullYear()+2,month:K.getMonth(),day:K.getDate()},selectedDate:e$T(X)}};
U8y=function(K){return(new h7(2)).format(new Date(K.year,K.month,K.day))};
h$4=function(K){return{year:K.getFullYear(),month:K.getMonth(),day:K.getDate()}};
m8O=function(K,X){K=(K+(Number(X.utcOffsetSec)+(new Date(K*1E3)).getTimezoneOffset()*60))*1E3;X=h$4(new Date(K));return{date:X,secondsSinceMidnight:Math.floor((K-(new Date(X.year,X.month,X.day)).getTime())/1E3)}};
GWn=function(K,X){X=X.months.findIndex(function(F){return F.year===K.year&&F.month===K.month});
return X>=0?X:void 0};
lyd=function(K){if(!K)return!1;try{if(K.host&&K.host.tagName==="YT-FORMATTED-STRING"&&K.host.id==="contenteditable-textarea"||K.nodeType===Node.ELEMENT_NODE&&K.tagName==="YTD-COMMENTBOX")return!0}catch(X){return!1}return lyd(K.parentNode)};
fj=function(K){return K?!(K.tagName!=="A"||!K.href||!K.classList.contains("yt-simple-endpoint")):!1};
v64=function(K){return K?K.tagName==="IMG"&&K.classList.contains("emoji"):!1};
ayy=function(K,X,F){if(!K)return null;var P=fj(K);if(P&&F)return X=K.pathname.substring(K.pathname.indexOf("/channel/")+9),document.createTextNode("@"+X);if(P&&!F)return document.createTextNode("");if(v64(K))return F=K.alt,K=K.dataset.emojiId,!K&&X&&(X=_.DV(X,F))&&X.isCustomEmoji&&(K=X.emojiId),K?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+K+">"):document.createTextNode(F);P=K.cloneNode(!1);for(var H=0;H<K.childNodes.length;++H){var f=ayy(K.childNodes[H],X,F);f&&P.appendChild(f)}return P};
uf=function(K){return K?fj(K)?K:uf(K.lastChild):null};
tx9=function(K){return K?fj(K)?K:tx9(K.firstChild):null};
$8T=function(K){if(!K)return null;for(var X=K.previousSibling;X;)if(X.nodeType===Node.ELEMENT_NODE&&X.nodeName==="BR")X=X.previousSibling;else if(X.nodeType===Node.TEXT_NODE&&/\s+/.test(X.textContent))X=X.previousSibling;else break;(X=uf(X))?K=X:K=(K=K.parentNode)?uf(K.previousElementSibling):null;return K};
O0M=function(K){if(!K)return null;for(var X=K.nextSibling;X;)if(X.nodeType===Node.ELEMENT_NODE&&X.nodeName==="BR")X=X.nextSibling;else if(X.nodeType===Node.TEXT_NODE&&/\s+/.test(X.textContent))X=X.nextSibling;else break;return(X=tx9(X))?X:O0M(K.parentNode)};
Vxn=function(K){var X=_.qy(),F=X.JSC$9253_getStartNode();if(!lyd(F.parentNode))return null;X=X.JSC$9253_getStartOffset();if(F.nodeType===Node.TEXT_NODE){var P=_.RR(F,fj);if(P){if(K&&X===0||!K&&X===F.length)return P}else{if(K&&X===F.length)return!F||F.nodeName==="BR"||F.nextElementSibling&&_.Jq(F.nextElementSibling,"display")==="block"?null:tx9(F.nextElementSibling);if(!K&&X===0)return F?uf(F.previousElementSibling):null}}if(F.nodeType===Node.ELEMENT_NODE)if(K){if(0<=X&&X<F.childNodes.length)return tx9(F.childNodes[X])}else if(0<
X&&X<=F.childNodes.length)return uf(F.childNodes[X-1]);return null};
g6P=function(K,X,F){if(!K)return null;if(K.nodeType===Node.TEXT_NODE)if(F){var P=$8T(K);if(P&&!/^\s+\S/.test(K.wholeText.substr(0,X)))return P}else if((P=O0M(K))&&!/\S\s+/.test(K.wholeText.substr(X,K.wholeText.length)))return P;return K.nodeType===Node.ELEMENT_NODE?F?$8T(K.childNodes[X]):O0M(K.childNodes[X]):g6P(K.parentNode,X,F)};
E6M=function(K){if(K.hasChildNodes())switch(K.tagName){case "DIV":case "A":case "SPAN":var X="";for(K=K.firstChild;K;K=K.nextSibling)X+=E6M(K);return X;default:return""}else switch(K.nodeType){case 3:return K.textContent;default:return""}};
ZV=function(K,X){return K.year===X.year&&K.month===X.month&&K.day===X.day};
YR=function(K,X){return K.year!==X.year?K.year<X.year:K.month!==X.month?K.month<X.month:K.day<X.day};
b0T=function(K){return{year:K.getFullYear(),month:K.getMonth(),day:K.getDate()}};
CgO=function(K){var X=a6l;X=X===void 0?a6l:X;X(new Date(K.year,K.month,K.day))};
Q$=function(K){return b0T(new Date(Number(K.seconds)*1E3))};
Nyl=function(K){return K.year!==void 0&&K.month!==void 0&&K.day!==void 0};
i0n=function(K){return K.start!==void 0&&K.end!==void 0};
x89=function(K){return i0n(K)?K.start:K};
Iyl=function(K){return i0n(K)?K.end:void 0};
KV9=function(K,X){for(var F=[],P=new Date(K.start.year,K.start.month);P.getFullYear()<K.end.year||P.getFullYear()===K.end.year&&P.getMonth()<=K.end.month;){var H=F,f=H.push,u=P.getFullYear(),J=P.getMonth(),Z=K,M=X,n=void 0,c=[],B=Object.freeze({extraCssClass:"invisible"}),L=new Date(u,J),A=b0T(L);L=L.getDay();for(var d=b0T(new Date);A.month===J;){L!==kWl&&n||(n=Array.from({length:7}).fill(B),c.push(n));var R={date:{year:u,month:J,day:A.day},extraCssClass:"",debugClass:""};R.extraCssClass=M(R.date,
A,d,Z).trim();n[(L-kWl+7)%7]=R;A=A.day===d8M(A.year,A.month)?A.month===11?{year:A.year+1,month:0,day:1}:{year:A.year,month:A.month+1,day:1}:{year:A.year,month:A.month,day:A.day+1};L=(L+1)%7}f.call(H,{weeks:c,monthLabel:My.SHORTMONTHS[J]+" "+u,year:u,month:J,monthLabelExtraCssClass:c[0][2]===B?"shift-down-label":""});P.setMonth(P.getMonth()+1)}return F};
XwP=function(K,X){X=X.months.findIndex(function(F){return F.year===K.year&&F.month===K.month});
return X>=0?X:void 0};
PEO=function(K,X){a:{var F=F===void 0?[2,3]:F;F=_.D(F);for(var P=F.next();!P.done;P=F.next()){var H=new Date;if((new FVP(P.value)).parse(X,H,{validate:!0})){H.setHours(0,0,0,0);X=H;break a}}X=null}if(!X)return{isValid:!1,value:void 0};X=b0T(X);F=K.end;return YR(X,K.start)||YR(F,X)?{isValid:!1,value:void 0}:{isValid:!0,value:X}};
Dpn=function(K){var X=HeP;X=X===void 0?sld:X;var F=K.columnsToShow||[],P=zYM(K.columnDimensions,K.columnsToShow,K.leftFloatingColumns,X);return F.map(function(H,f){var u=K.columns[H];if(u===void 0)throw Error("Ih");var J=P?P[f]:"";var Z=K.getCustomTooltip?K.getCustomTooltip(H,u.headerTooltipParagraphs):u.headerTooltipParagraphs;var M=fty(K,H);return{type:H,index:f,style:J,classes:M,headerName:u.headerName||"",headerIcon:u.headerIcon,headerTooltipParagraphs:Z||[],headerTooltipHelpContext:u.headerTooltipHelpContext,
sortOrders:u.sortOrders||[],selectionState:u.isSelectionCheckbox?K.selectionState:void 0}})};
fty=function(K,X){var F=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],P=K.columns[X];if(P===void 0)return"";var H=F.includes("DEFAULTS")&&P.cssClass?[P.cssClass]:[];if(F.includes("SORTING")){P.sortOrders&&P.sortOrders.length&&H.push("sortable");if(K.sorting&&K.sorting.columnType===X)a:switch(K.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var f="column-sorted";break a;default:f=""}else f="";f&&H.push(f)}F.includes("FLOATING")&&(X=K.columnsToShow.indexOf(X),K.leftFloatingColumns&&X<K.leftFloatingColumns&&
H.push("floating-column"),K.leftFloatingColumns&&X===K.leftFloatingColumns-1&&H.push("last-floating-column"));F.includes("RIGHT_ALIGN")&&P.rightAlignHeader&&H.push("right-align");return H.filter(function(u){return u}).join(" ")};
zYM=function(K,X,F,P){F=F===void 0?0:F;P=P===void 0?sld:P;if(K){var H=[],f=0;ubM(K,X,P).forEach(function(u,J){var Z="min-width:"+u.minWidth+"px;padding-left:"+u.paddingLeft+"px;padding-right:"+u.paddingRight+"px;flex:"+u.flexGrow+" 0 "+u.minWidth+"px;";u.maxWidth!==Infinity&&(Z=[Z,"max-width:"+u.maxWidth+"px;"].join(""));f>0&&J<F&&(Z=[Z,"left:"+f+"px;"].join(""));H.push(Z);f+=u.minWidth+u.paddingLeft+u.paddingRight});
return H}};
ubM=function(K,X,F){F=F===void 0?sld:F;return X.map(function(P,H){P=K&&K[P]||{};var f=H===0?F.paddingLeftFirstColumn:F.padding;P.paddingLeft!==void 0&&(f=P.paddingLeft);H=H===X.length-1?F.paddingRightLastColumn:F.padding;P.paddingRight!==void 0&&(H=P.paddingRight);return{paddingLeft:f,paddingRight:H,minWidth:P.minWidth!==void 0?P.minWidth:F.minWidth,maxWidth:P.maxWidth!==void 0?P.maxWidth:F.maxWidth,flexGrow:P.flexGrow!==void 0?P.flexGrow:F.flexGrow}})};
qkw=function(K){var X=K.reduce(function(P,H){var f=H.columnId,u={};H.headerText&&(u.headerName=_.lj(H.headerText));H.rightAlignHeader&&(u.rightAlignHeader=H.rightAlignHeader);var J;if((J=H.headerIcon)==null?0:J.iconType)u.headerIcon=_.Fl(H.headerIcon.iconType);P[f]=u;return P},{}),F=K.filter(function(P){return!P.hideColumn}).map(function(P){return P.columnId});
K=K.filter(function(P){return!!P.dimensions}).reduce(function(P,H){P[H.columnId]=H.dimensions;
return P},{});
return{columns:X,columnsToShow:F,columnDimensions:K}};
_.JJl=function(K){return K?K.simpleText?K.simpleText:K.runs?K.runs.map(function(X){return X.text}).join(""):"":""};
nKq=function(K){var X=K.data;var F=K.onTap;var P=K.isSelected;var H=K.onFocusIn;if(!X)return{};K=Zel(X);P===void 0&&(P=X==null?void 0:X.isSelected);var f;return{text:Yk4(X,K),startIcon:(f=X.icon)==null?void 0:f.iconType,state:P?0:2,type:0,onTap:Qll(X,F),accessibilityLabel:Mrq(X,K),onFocusIn:function(){return H==null?void 0:H()}}};
Yk4=function(K,X){if(!X)return K.text?_.JJl(K.text):void 0};
Qll=function(K,X){return function(F){X==null||X(F,K)}};
Zel=function(K){K=K.style&&K.style.styleType;return!cJy&&K==="STYLE_EXPLORE_LAUNCHER_CHIP"};
Mrq=function(K,X){if(X){var F,P,H;return(H=(F=K.accessibilityData)==null?void 0:(P=F.accessibilityData)==null?void 0:P.label)!=null?H:Yk4(K,!1)}};
nj=function(K){return{signalAction:{signal:K}}};
SkO=function(){return _.e8("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?pw3:_.Baq};
oKq=function(K,X){K=K===void 0?"SOFT_RELOAD_PAGE":K;X=X===void 0?49504:X;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.bY(_.uY("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:X}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:K}}]}}}};
LVP=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.bY(_.uY("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:SkO()}};
TaT=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.bY(_.uY("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:SkO()}};
rJn=function(K,X){var F=_.bY(_.uY("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),P=_.bY(_.uY("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),H={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.bY(_.uY("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};H.serviceEndpoint=K?K:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[nj("SOFT_RELOAD_PAGE")]}};return{title:F,bodyText:P,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:H},
style:{value:X!=null?X:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
jlO=function(K){K=K===void 0?{}:K;return{title:_.bY(K.localizedZeroStateTitleText===void 0?"":K.localizedZeroStateTitleText),bodyText:_.bY(K.localizedZeroStateMessage===void 0?"":K.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.bY(K.localizedZeroStateButtonText===void 0?"":K.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[AJM]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.WVw=function(K,X,F,P,H,f,u,J){P=P===void 0?!1:P;H=H===void 0?!1:H;f=f===void 0?0:f;u=u===void 0?-Infinity:u;J=J===void 0?!1:J;var Z=[],M=_.bY(_.uY("SMART_DOWNLOADS",void 0,"Smart downloads"));u=_.bY(ww4(f,u,K.length));f=void 0;P?f=K.length>0?yJ4(K,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.S("kevlar_manual_downloads_above"),M,u):J?{alertBannerViewModel:{heading:{content:F.localizedOptInBannerTitleText===void 0?"":F.localizedOptInBannerTitleText},body:{content:F.localizedPromptMessage===
void 0?"":F.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.uY("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.uY("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:_.FQn}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:{backgroundPromoRenderer:{bodyText:_.bY(_.uY("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/grey_loading_spinner.gif"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"}}}:H&&(f={alertBannerViewModel:{heading:{content:F.localizedOptInBannerTitleText===void 0?"":F.localizedOptInBannerTitleText},body:{content:F.localizedOptInMessage===
void 0?"":F.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.uY("TURN_ON",void 0,"Turn on"),accessibilityText:_.uY("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}}}}}});F=_.bY(_.uY("YOUR_DOWNLOADS",void 0,"Your downloads"));H=void 0;X.length>0?(H=void 0,_.S("kevlar_display_downloads_numbers")&&(H=_.bY(_.qm("VIDEO_COUNT",X.length))),H=yJ4(X,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,F,H)):P||K.length||(H={backgroundPromoRenderer:{bodyText:_.bY(_.uY("VIDEOS_WILL_APPEAR_HERE",void 0,"Videos you download will appear here")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/downloads_empty_state.png"}]},
style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:120848}}}});f&&!_.S("kevlar_manual_downloads_above")&&Z.push({richSectionRenderer:{content:f,loggingDirectives:{clientVeSpec:{uiType:139572}}}});H&&Z.push({richSectionRenderer:{content:H,loggingDirectives:{clientVeSpec:{uiType:51721}}}});f&&_.S("kevlar_manual_downloads_above")&&Z.push({richSectionRenderer:{content:f,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(X.length>0||P&&K.length>0)&&Z.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.bY(_.uY("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:Z}};
_.eYq=function(K){return dp9(K,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.RYl=function(K){return dp9(K,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
dp9=function(K,X){var F=[];K=yJ4(K,X,!0);F.push({richSectionRenderer:{content:K}});return{contents:F}};
yJ4=function(K,X,F,P,H){F=F===void 0?!1:F;var f="RESPONSIVE_SIZE_STANDARD";_.S("kevlar_modern_downloads_compact")?f="RESPONSIVE_SIZE_COMPACT":_.S("kevlar_modern_downloads_extra_compact")&&(f="RESPONSIVE_SIZE_EXTRA_COMPACT");K={isExpanded:F,contents:cG(K),entitySelectorType:X,responsiveContainerConfiguration:{responsiveSize:f}};P&&(K.title=P);H&&(K.subtitle=H);F||(_.S("kevlar_smart_downloads_show_more_button")?(K.showMoreButton={buttonRenderer:{accessibility:{label:_.uY("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.bY(_.uY("SHOW_MORE",void 0,"Show more"))}},K.showLessButton={buttonRenderer:{accessibility:{label:_.uY("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.bY(_.uY("SHOW_LESS",void 0,"Show less"))}}):(K.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.uY("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}}}},K.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.uY("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}}}},K.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.uY("VIEW_ALL",void 0,"View all"),accessibilityText:_.uY("VIEW_ALL",void 0,"View all"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:242898}},onTap:{innertubeCommand:gb("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:K}};
cG=function(K){var X=[];K=_.D(K);for(var F=K.next();!F.done;F=K.next())if(F=F.value,l_y(F)){var P=X,H=P.push;var f=void 0;if(F==null?0:(f=F.videoEntity)==null?0:f.videoId){f=y4(_.aA().getState(),F.videoEntity.videoId);var u=_.aA().getState();var J=_.XF(F.videoEntity.videoId,"mainVideoEntity");u=!!_.nI(u.entities)[J];u={videoId:F.videoEntity.videoId,title:Cl(F.videoEntity.title),shortBylineText:Cl(F.channelEntity.title),thumbnail:F.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:u&&_.S("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:l1d(F.videoEntity.videoId,f,F.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.uY("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};F.videoEntity.lengthSeconds&&(u.thumbnailOverlays=sEy(F.videoEntity.lengthSeconds,f));u.isWatched=f>0;_.S("kevlar_modern_downloads_page")&&(u.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:F.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.uY("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},u.badges=void 0);F=u}else F={};H.call(P,{richItemRenderer:{content:{videoRenderer:F},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(Ged(F)){P=X;H=P.push;var Z=J=f=void 0,M=void 0,n=void 0,c=void 0,B=void 0,L=void 0,A=void 0,d=void 0,R=void 0,l=void 0;u=F.mainPlaylistEntity.playlistId;var a=F==null?void 0:(l=F.mainPlaylistEntity)==null?void 0:(R=l.thumbnailStyleData)==null?void 0:(d=R[0])==null?void 0:(A=d.value)==null?void 0:(L=A.collageThumbnail)==
null?void 0:L.coverThumbnail;if(u&&a){L=vs9(u);!_.S("enable_offline_playlist_page")&&(F==null?0:(B=F.mainPlaylistEntity)==null?0:B.videos)&&(B=F==null?void 0:(c=F.mainPlaylistEntity)==null?void 0:(n=c.videos)==null?void 0:n[0],n=_.I7(B).entityId,n=JSON.parse(n).videoId,n!==void 0&&(c=y4(_.aA().getState(),n),L=_.Es(n,u,void 0,void 0,c)));n=[];if(F==null?0:(M=F.mainPlaylistEntity)==null?0:(Z=M.videos)==null?0:Z.length)n=[v23(),Object.assign({},(J=l63(F==null?void 0:F.mainPlaylistEntity.videos.length))!=
null?J:{})];F={playlistId:u,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:a}},navigationEndpoint:L,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:n,title:Cl(F.mainPlaylistEntity.title),shortBylineText:Cl(F==null?void 0:(f=F.channelEntity)==null?void 0:f.title),badges:[{metadataBadgeRenderer:{label:_.uY("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.S("kevlar_modern_downloads_page")&&(F.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:Upy,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:u,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.uY("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},F.badges=void 0)}else F=void 0;H.call(P,{richItemRenderer:{content:{playlistRenderer:F},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return X};
ww4=function(K,X,F){K=K?hYy(K):"";X!==void 0&&isFinite(X)?X===0?X=_.uY("UPDATING",void 0,"Updating..."):(X=HpM(new Date(X),new Date),X=_.uY("UPDATED_TIME",{relative_time:X},"Updated "+X)):X="";var P="";K&&X&&(P=" \u2022 ");if(F&&_.S("kevlar_display_downloads_numbers")){F=_.qm("VIDEO_COUNT",F);if(K||X)P=" \u2022 ";return F+P+K+P+X}return K+P+X};
mp9=function(K){return yP9(K.entities).length};
_.GF3=function(K,X){var F=KBy(K.responsiveSize),P;K=!((P=K.responsiveMap)==null||!P.some(function(H){return H.containerSize==="CONTAINER_SIZE_NARROW"&&H.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:X,sizing:F,enableFullBleedForSingleCol:!1,isCompactList:F==="COMPACT"&&K}};
ltn=function(K,X){return _.FF(K.entities,"votingEntity",X)};
vKn=function(K){if(K){var X;return((X=_.i9().resolve(_.Nu(_.m$)))==null?0:X())?K.darkTheme:K.lightTheme}};
atO=function(K,X){if(K.simpleText)return Object.assign({},K,{simpleText:UP(K.simpleText,X)});if(!K.runs)return K;for(var F=Object.assign({},K,{runs:[]}),P=0,H=_.D(K.runs),f=H.next();!f.done;f=H.next())if(f=f.value,f.text)if(P+f.text.length<=X)F.runs.push(f),P+=f.text.length;else return F.runs.push(Object.assign({},f,{text:UP(f.text,X-P)})),F;return K};
tr3=function(K,X){return _.FF(K.entities,"chipBarStateEntity",X)};
$pT=function(K,X){return _.FF(K.entities,"chipEntity",X)};
Vr4=function(K,X,F,P){return function(){var H=Oeq.has(K.displayType)&&K.selected,f=H&&K.deselectCommand?K.deselectCommand:K.tapCommand;!f||H&&P||_.e9(f,{form:{element:X==null?void 0:X.value}});F==null||F()}};
gKO=function(K){switch(K){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
EK3=function(K,X){return{triggeringElement:K,onDwellTriggeredFn:function(){var F={triggeringElement:K,loadVideoPreviewEventData:X},P=document.querySelector(".video-preview");P&&P.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:F}))},
onDwellEndFn:function(){var F=document.querySelector(".video-preview");F&&F.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
bew=function(K,X){var F=_.i9().resolve(_.Nu(tll)),P=function(){var H=X();return F&&H?EK3(K.value,H):null};
_.rs(function(){var H=P();F&&H&&Promise.resolve().then(function(){F.registerElement(H)});
_.AZ(function(){F&&H&&Promise.resolve().then(function(){F.unregisterElement(H)})})},"csPUge")};
Nan=function(K){var X=K.dataset.resizeObserverId;if(X)return X;X=""+CEy++;return K.dataset.resizeObserverId=X};
ieq=function(K,X){var F=Nan(K);pj.has(F)||pj.set(F,new Set);pj.get(F).add(X);BG.has(F)&&X(Object.assign({},{target:K},BG.get(F)))};
xpl=function(K){K=_.D(K);for(var X=K.next();!X.done;X=K.next()){X=X.value;var F=Nan(X.target),P=Object.assign({},{target:X.target},BG.get(F));if(P!=null&&P.contentRect?P.contentRect.width!==X.contentRect.width||P.contentRect.height!==X.contentRect.height:1)for(BG.set(F,{borderBoxSize:X.borderBoxSize,contentBoxSize:X.contentBoxSize,contentRect:X.contentRect,devicePixelContentBoxSize:X.devicePixelContentBoxSize}),F=_.D(pj.get(F)||[]),P=F.next();!P.done;P=F.next())P=P.value,P(X)}};
kFl=function(){return SI?SI:SI=new Itq(xpl)};
KpM=function(K,X){var F=Nan(K);pj.has(F)&&(pj.get(F).delete(X),pj.get(F).size===0&&(pj.delete(F),BG.delete(F),SI.unobserve(K),delete K.dataset.resizeObserverId));pj.size===0&&SI&&(SI.disconnect(),SI=void 0)};
FpP=function(K,X){var F=_.i9().resolve(CL);return XtP.map(function(P){return F.observe(K,X,P)})};
PoP=function(K){var X=_.i9().resolve(CL);K.forEach(function(F){X.unobserveByKey(F)})};
_.zJn=function(K,X){var F=Object.assign({},Ho4,X);X=_.D(hOO());var P=X.next().value,H=X.next().value,f=function(u){var J=u.contentRect.height;if((u=u.contentRect.width)||J||F.canHaveZeroSize)P.width()===u&&P.height()===J||H(P,{height:J,width:u})};
_.AV(function(){var u=K instanceof HTMLElement?K:K.value,J=sHP(f,F.throttleMs),Z=[];F.useVisibilityObserver&&(Z=FpP(u,function(M,n){requestAnimationFrame(function(){n==="visible"?(ieq(u,J),kFl().observe(u)):KpM(u,J)})}));
Z.length||(ieq(u,J),kFl().observe(u));_.AZ(function(){Z.length&&(PoP(Z),Z.length=0);KpM(u,J)})});
return P};
D7q=function(K){var X=K.data;var F=K.callback;var P=K.enableSingleChipSelection;var H=K.disableChipsScrollAnimation;var f=_.$3(),u=w2(!1),J=w2(0);K={};K=_.D(Hp(X.autoselectedChipIndex!=null?(K[X.autoselectedChipIndex]=!0,K):{}));var Z=K.next().value,M=K.next().value,n=function(){var Mq=f.value;return Mq==null||Mq.scrollLeft-1<=0},c=function(){var Mq=f.value;
return Mq==null?!1:Mq.scrollLeft+1>=(Mq==null?NaN:Mq.scrollWidth)-(Mq==null?NaN:Mq.clientWidth)};
K=_.D(Hp(n()));var B=K.next().value,L=K.next().value;K=_.D(Hp(c()));var A=K.next().value,d=K.next().value;K=X.isHorizontallyScrollable;var R=function(Mq){f.value!=null&&(_.e8("HTML_DIR")==="rtl"&&(Mq=-Mq),f.value.scrollBy({left:Mq,behavior:H?"instant":"smooth"}))},l=function(){R(-320)},a=function(){R(320)},E=_.DF(function(Mq){u.value=!0;
J.value=Mq.clientX}),V=_.DF(function(Mq){if(u.value){Mq=Mq.clientX;
var pO=Mq-J.value;J.value=Mq;var y9;(y9=f.value)==null||y9.scrollBy({left:-pO})}}),x=_.DF(function(){var Mq=n(),pO=c();
Mq!==B&&L(Mq);pO!==A&&d(pO)});
by("pointerup",function(){u.value&&(u.value=!1)});
var N={},Dl={};return _.Q("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},bB(X.title,function(){return _.Q("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.Q("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},X.title),fxP(X.overflowButton))}),_.Q("div",{class:"ytChipsShelfViewModelChipsShelfContent"},bB(X.previousButton!=null,function(){var Mq={};
return _.Q("div",{class:_.z9("ytChipsShelfViewModelLeftArrowContainer",(Mq.ytChipsShelfViewModelLeftArrowContainerIsHidden=B,Mq))},fxP(X.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:l}}))}),_.Q("div",{el:f,
"on:pointerdown":E,"on:pointermove":V,"on:scroll":x,class:_.z9("ytChipsShelfViewModelChipsScrollContainer",(N.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!K,N))},_.Q("div",{class:_.z9("ytChipsShelfViewModelChipsContainer",(Dl.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!K,Dl.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!K&&!1,Dl))},(X.contents||[]).map(function(Mq,pO){return _.Q("div",{class:"ytChipsShelfViewModelChipWrapper"},fxP(Mq,
{chipViewModel:{callback:function(y9,Wy){if(P){var eP={};M((eP[pO]=Wy,eP))}else eP={},M(Object.assign({},Z,(eP[pO]=Wy,eP)));F==null||F(y9,Wy,pO)},
disableDeselection:P,selected:!!Z[pO]}}))}))),bB(X.nextButton!=null,function(){var Mq={};
return _.Q("div",{class:_.z9("ytChipsShelfViewModelRightArrowContainer",(Mq.ytChipsShelfViewModelRightArrowContainerIsHidden=A,Mq))},fxP(X.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:a}}))})))};
qCw=function(K,X,F,P,H){K=X?K.switchOffCommand:K.switchOnCommand;if(P&&H)uhP(K,F,H);else{var f,u;(f=_.Wn({elementsCommand:K}))==null||(u=f.onclick)==null||u.call(f,F)}};
uhP=function(K,X,F){K=_.Wn({elementsCommand:K,additionalCommandArgs:{commandController:{onSuccess:function(){F(!1)},
onServerError:function(){F(!1)}}}});
if(K==null?0:K.onclick)K.onclick(X),F(!0)};
ZoP=function(K){if(K)return _.T(K,J$P)};
c$O=function(K,X,F){if(X)return[YCl];switch(K){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[on];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return F?[on]:[QHP,on];case "TRANSFER_STATE_PAUSED_BY_USER":return[Mfq,on];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[nTl,on];default:return[YCl]}};
ptd=function(K,X,F,P){return c$O(K,X,P).map(function(H){var f=H.text,u=H.iconType,J=H.videoAction;H=H.playlistAction;f=f?{content:f}:void 0;u=u&&{sources:[{clientResource:{imageName:u}}]};var Z=(0,_.T8.unsafeClone)(F);if(Z){var M=_.T(Z,_.Xj),n=_.T(Z,_.Fj);M&&J?M.action=J:n&&H&&(n.action=H)}return{title:f,leadingImage:u,rendererContext:Z&&{commandContext:{onTap:{innertubeCommand:Z}}}}})};
BOw=function(K){K=_.Uy(K.rendererContext);var X;return(X=_.T(K,_.Fj))==null?void 0:X.playlistId};
SCP=function(K){var X;return(X=K.listItems)==null?void 0:X.some(function(F){var P;return _.hf((P=_.T(F,_.Db))==null?void 0:P.rendererContext)})};
Lp9=function(K){var X;return(X=K.listItems)==null?void 0:X.some(function(F){F=_.T(F,_.Db);return!!_.T(F==null?void 0:F.leadingAccessory,oT9)})};
Lj=function(K){var X=_.i9().resolve(_.Nu(_.m$));return X!=null&&X()?K.darkThemeColorPalette:K.lightThemeColorPalette};
rM=function(K){return{primaryTextColor:TX(K,0),secondaryTextColor:TX(K,1),optionColor:TX(K,2),backgroundColor:TX(K,3),videoBackgroundColor:TX(K,4)}};
TX=function(K,X){if(K){switch(X){case 0:K=K.primaryTitleColor;break;case 1:K=K.secondaryTitleColor;break;case 2:K=K.surgeColor;break;case 3:K=K.section2Color;break;case 4:K=K.section3Color;break;default:return}if(K)return _.j0(K)}};
TOl=function(K){return K?_.wq(K):""};
r$T=function(K){return(K==null?void 0:K.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
A$q=function(K,X){var F;return"linear-gradient(to bottom, "+((F=X==null?void 0:X.map(function(P){var H=K?P.darkThemeColor:P.lightThemeColor;return H?_.wq(H)+" "+((P==null?void 0:P.startLocation)||0)*100+"%":"transparent"}))==null?void 0:F.join(", "))+")"};
jHM=function(K,X,F,P,H){if(!((P==null?0:P.height)&&(P==null?0:P.width)))return{size:0};var f=P.width;P=P.height;if(H)return X==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||X==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&f>P?{size:312/QP4}:X==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(F!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||K!==1&&K!==2||X!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&X!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&X!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(X==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||X==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||P===f)switch(K){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(X==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||P>f)switch(K){case 1:case 3:return{size:240*Y0P};default:return{size:360*Y0P}}switch(K){case 1:case 2:return{size:1/QP4*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.wtn=function(K){if(!("matchMedia"in window))return _.Gr(Error("Jh")),function(){return!1};
var X=window.matchMedia(K);K=_.D(_.u_(X.matches,void 0,"jLJc8e"));var F=K.next().value,P=K.next().value,H=function(f){P(f.matches)};
X.addEventListener?(X.addEventListener("change",H),_.AZ(function(){X.removeEventListener("change",H)})):X.addListener&&(X.addListener(H),_.AZ(function(){X.removeListener(H)}));
return F};
y$9=function(K){return K==="IMAGE_BANNER_STYLE_INSET"||K==="IMAGE_BANNER_STYLE_UNKNOWN"};
WpT=function(){if(!("matchMedia"in window))return _.Gr(Error("Jh")),function(){return 0};
var K=j8(function(){return window.matchMedia("(max-width: 527.9px)")}),X=j8(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),F=j8(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),P=j8(function(){return window.matchMedia("(min-width: 1024px)")}),H=_.D(_.u_(K.matches,void 0,"og9kEc")),f=H.next().value,u=H.next().value;
H=_.D(_.u_(X.matches,void 0,"ybDWCb"));var J=H.next().value,Z=H.next().value;H=_.D(_.u_(F.matches,void 0,"o0Gfh"));var M=H.next().value,n=H.next().value;H=_.D(_.u_(P.matches,void 0,"yqUUgd"));var c=H.next().value,B=H.next().value,L=j8(function(){return function(l){u(l.matches)}}),A=j8(function(){return function(l){Z(l.matches)}}),d=j8(function(){return function(l){n(l.matches)}}),R=j8(function(){return function(l){B(l.matches)}});
_.AV(function(){K.addEventListener?(K.addEventListener("change",L),X.addEventListener("change",A),F.addEventListener("change",d),P.addEventListener("change",R)):K.addListener&&(K.addListener(L),X.addListener(A),F.addListener(d),P.addListener(R));_.AZ(function(){K.removeEventListener?(K.removeEventListener("change",L),X.removeEventListener("change",A),F.removeEventListener("change",d),P.removeEventListener("change",R)):K.removeListener&&(K.removeListener(L),X.removeListener(A),F.removeListener(d),
P.removeListener(R))})});
return function(){return f()?1:J()?2:M()?3:c()?4:0}};
d7T=function(K){var X=0;K=_.D([K.title,K.metadata,K.actions,K.description,K.attribution]);for(var F=K.next();!F.done;F=K.next())F.value&&X++;return X};
eJP=function(K){return K===1||K===2?1:0};
U74=function(K){var X,F=((X=_.i9().resolve(_.Nu(_.m$)))==null?0:X())&&K.data.darkThemeImage?K.data.darkThemeImage:K.data.image;X=_.Q("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.Q("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},F?_.Q(_.av,{data:F,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),RJ3(K.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));F=_.Q(_.Oy,{text:K.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var P=K.data;if(P.bodyText){var H=[];P=_.D(P.bodyText);for(var f=P.next();!f.done;f=P.next())H.push(_.Q(_.Oy,{text:f.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else H=_.Q(_.ID,null);return _.Q("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},X,F,H,RJ3(K.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.Q(_.Oy,{text:K.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.Q(_.Oy,{text:K.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
m73=function(K){K=(new hJO).parse(K);return(new Hg).render(K).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(X){var F=X.split(":").map(Number),P=0,H=0;if(F.length===3)F=_.D(F),P=F.next().value,H=F.next().value,F=F.next().value;else if(F.length===2)F=_.D(F),H=F.next().value,F=F.next().value;else if(F.length===1)F=_.D(F).next().value;else throw Error("Kh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(P*3600+H*60+F)+'" role="button">'+X+"</span>"})};
Gqy=function(K){K=_.D(K.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var X=K.next(),F={};!X.done;F={clickHandler$jscomp$4:void 0},X=K.next()){X=X.value;F.clickHandler$jscomp$4=function(H){H=Number(H.target.getAttribute("data-time"));if(isNaN(H))throw Error("Lh");var f;(f=_.Ix())==null||f.seekTo(H,!0)};
var P=function(H){return function(f){f.key!=="Enter"&&f.key!=="Space"||(0,H.clickHandler$jscomp$4)(f)}}(F);
X.setAttribute("tabindex","0");X.removeEventListener("click",F.clickHandler$jscomp$4);X.removeEventListener("keydown",P);X.addEventListener("click",F.clickHandler$jscomp$4);X.addEventListener("keydown",P)}};
lx9=function(){return _.Q("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.Q(Aq,{percentWidth:100}),_.Q(Aq,{animationDelay:200}),_.Q(Aq,{animationDelay:400}),_.Q(Aq,{animationDelay:600}),_.Q(Aq,{animationDelay:800,percentWidth:60}),_.Q("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.Q(Aq,{percentWidth:100}),_.Q(Aq,{animationDelay:200}),_.Q(Aq,{animationDelay:400}),_.Q(Aq,{animationDelay:600,percentWidth:50}))};
Aq=function(K){return _.Q("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(K.percentWidth===void 0?100:K.percentWidth)+"%"},_.Q("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(K.animationDelay===void 0?0:K.animationDelay)+"ms"}))};
vTy=function(){var K=_.D(_.u_(function(){return""},void 0,"v2wS5e")),X=K.next().value;
return[function(){return X()()},
K.next().value]};
tfq=function(K){K=K===void 0?{}:K;return{title:_.bY(K.localizedOptInBannerTitleText===void 0?"":K.localizedOptInBannerTitleText),titleLength:19,subtitle:_.bY(K.localizedOptInMessage===void 0?"":K.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.bY(_.uY("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:_.bY(_.uY("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:[ax9]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
$7q=function(K,X){K=K?hYy(K):"";X!==void 0&&isFinite(X)?X===0?X=_.uY("UPDATING",void 0,"Updating..."):(X=HpM(new Date(X),new Date),X=_.uY("UPDATED_TIME",{relative_time:X},"Updated "+X)):X="";var F="";K&&X&&(F=" \u2022 ");return _.bY(K+F+X)};
gT3=function(K,X,F,P,H,f){X=X===void 0?0:X;var u=Oo3[X],J=u.title,Z=u.iconType,M=u.topButtonRenderer,n=u.sectionClientVE;u=u.videoClientVE;var c;if(X!==1||K.length){F=[];K=_.D(K);for(P=K.next();!P.done;P=K.next()){var B=P.value;if(l_y(B))F.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:B.videoEntity.videoId,title:Cl(B.videoEntity.title),shortBylineText:Cl(B.channelEntity.title),thumbnail:B.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:B.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.uY("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:u}}}}}});else if(Ged(B)){P=F;var L=P.push;var A=void 0,d=void 0,R=void 0,l=void 0,a=void 0,E=void 0,V=void 0,x=void 0,N=B.mainPlaylistEntity.playlistId,Dl=B==null?void 0:(x=B.mainPlaylistEntity)==null?void 0:(V=x.thumbnailStyleData)==null?void 0:(E=V[0])==null?void 0:(a=E.value)==null?void 0:(l=a.collageThumbnail)==null?void 0:l.coverThumbnail;l=vs9(N);if(!_.S("enable_offline_playlist_page")&&
(B==null?0:(R=B.mainPlaylistEntity)==null?0:R.videos)){b:{R=B==null?void 0:(d=B.mainPlaylistEntity)==null?void 0:d.videos;d=_.aA().getState().entities;if(R!=null&&R.length&&d)for(R=_.D(R),a=R.next();!a.done;a=R.next())if(a=_.I7(a.value).entityId,(a=JSON.parse(a).videoId)&&jyn(d,a)==="TRANSFER_STATE_COMPLETE"){d=a;break b}d=""}d!==void 0&&(l=y4(_.aA().getState(),d),l=_.Es(d,N,void 0,void 0,l))}d=tqO(_.uY("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),vs9(N));B=N&&Dl&&d?{playlistId:N,navigationEndpoint:l,
viewPlaylistText:d,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:Dl}},title:Cl(B.mainPlaylistEntity.title),shortBylineText:Cl(B==null?void 0:(A=B.channelEntity)==null?void 0:A.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:VfM,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:N,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.uY("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:u}}}:
void 0;L.call(P,{gridPlaylistRenderer:B})}}u={gridRenderer:{items:F}};X===1&&(c=$7q(H,f))}else if(P){var Mq=_.bY((L=F==null?void 0:F.localizedPromptMessage)!=null?L:"");u={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.bY(_.uY("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.FQn}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.bY(_.uY("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};c=$7q(H,f)}else Mq=_.bY(_.uY("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
u={};return{contents:[{shelfRenderer:{title:J,titleAnnotation:c,icon:{iconType:Z},subtitle:Mq,content:u,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:M}]}}}}],loggingDirectives:{clientVeSpec:{uiType:n}}}};
ET9=function(K,X,F,P,H,f,u,J){F=F===void 0?{}:F;P=P===void 0?!1:P;H=H===void 0?!1:H;f=f===void 0?!1:f;u=u===void 0?0:u;J=J===void 0?-Infinity:J;if(!X.length&&!K.length&&!P)return H?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:jlO(F)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.bY(_.uY("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 Z=[];K.length&&Z.push(gT3(K,0));P?Z.push(gT3(X,1,F,f,u,J)):H&&Z.push({contents:[{statementBannerRenderer:tfq(F)}]});(P&&X.length||K.length)&&Z.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.bY(_.uY("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 Z.map(function(M){return{itemSectionRenderer:M}})};
jI=function(K,X){if(typeof K!=="object")return null;K=_.D(Object.entries(K));for(var F=K.next();!F.done;F=K.next()){var P=_.D(F.value);F=P.next().value;P=P.next().value;if(F===X)return F;if(P=jI(P,X))return F+"."+P}return null};
wM=function(K){var X=K.content;return(K=K.styleRuns)&&X?{runs:K.map(function(F){var P={text:X.slice(F.startIndex,F.startIndex+F.length)};F.fontColor&&(P.textColor=F.fontColor);return P})}:{simpleText:X}};
NOd=function(K,X,F,P){var H=boP;P&&(K.quantity=P);if(!K.quantity||!K.maxQuantity)return{};P=K.minusButton;var f=K.plusButton,u,J,Z,M;return{value:K.quantity,maxValue:K.maxQuantity,onChangeCallback:function(n){H(K,n)},
minusLabel:(u=_.T(P,CoM))==null?void 0:u.label,minimumReachedLabel:(J=_.T(P,CoM))==null?void 0:J.limitReachedLabel,plusLabel:(Z=_.T(f,CoM))==null?void 0:Z.label,maximumReachedLabel:(M=_.T(f,CoM))==null?void 0:M.limitReachedLabel,disabled:X,onRemoveCommand:F}};
boP=function(K,X){var F=K.quantityIncrementerEntityKey;if(F){var P={};P.quantity=X;_.vc(_.Bp("quantityIncrementerEntity",F,P));K.onChangeCommand&&_.e9(K.onChangeCommand)}};
ioy=function(K){return _.S("kevlar_comments_clone_data_killswitch")?K:_.T8.unsafeClone(K)};
kqy=function(K,X){(K=x7O(K))&&(X?Ixd.push({command:K,sourceData:{},commandContext:void 0}):_.i9().resolve(_.xU).resolveCommand(K))};
x7O=function(K){return _.T(K,_.j9)};
KZl=function(){var K=window.performance.timeOrigin+window.performance.now(),X=(new _.y$).setSeconds(K/1E9);return _.Tm(X,2,_.r1(K%1E9),0)};
WG=function(K,X){var F=_.T(_.T(K,_.j9),XPM);F&&(X&&(F.serializedAdditionalMetadata=_.iW(X)),kqy(K,!0))};
FZl=function(K){switch(K){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"}};
P3l=function(){return!!_.e8("ID_TOKEN")};
zKn=function(K){return K instanceof Error&&K.cause instanceof Hgy&&K.cause.rpcErrorCode!==void 0?!s$d.includes(K.cause.rpcErrorCode):!0};
DCP=function(){return _.ON(f83,{authuser:""+(_.e8("SESSION_INDEX")||0)})};
dM=function(K,X,F,P){F=F===void 0?"MINI_APP_SDK_API_UNSPECIFIED":F;P=P===void 0?"":P;var H=new _.nG;F={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:P,sdkApi:F};K instanceof Error&&(H.message=K.message,H.name=K.name,K.cause instanceof Hgy&&K.cause.rpcErrorCode!==void 0&&(F.rpcErrorCode=K.cause.rpcErrorCode));var f;(f=X.onError)==null||f.call(X,{loggingError:H,metadata:F})};
qb3=function(K,X,F,P){switch(K){case "MINI_APP_SOURCE_GAMESNACKS":return new eI(X,F,P);default:return new uRw(X,F,P)}};
JSw=function(K){switch(K){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"}};
Zgy=function(K){switch(K){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"}};
Ybd=function(K){switch(K){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"}};
Q$d=function(){return Math.floor(Math.random()*4)+1};
Ms3=function(K,X,F,P){K=_.D(Object.entries(K));for(var H=K.next(),f={};!H.done;f={message$jscomp$957:void 0},H=K.next()){var u=_.D(H.value);H=u.next().value;u=u.next().value;f.message$jscomp$957=u;X.push(setTimeout(function(J){return function(){P(!1);F(J.message$jscomp$957.text)}}(f),f.message$jscomp$957.delayMs));
Number(H)>0&&X.push(setTimeout(function(){P(!0)},f.message$jscomp$957.delayMs-400))}};
ne4=function(K,X){var F=F===void 0?le4:F;_.S("mweb_fix_monitor_visibility_after_render")?K&&Bn(function(){tSd(K,X,F)}):Bn(function(){tSd(K,X,F)})};
pP9=function(K){var X=K.data;var F=K.uniqueId;K=K.overrides;var P,H=((P=X.timedAnimationData)==null?void 0:P.animationTiming)||[];return _.Q("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.Q(LS,{settings:{uniqueId:F,timings:H,experimentEnabled:H.length>0,enabled:H.length>0}},cSd(X.buttonRenderer,{buttonRenderer:{buttonOverrides:K}})))};
LZn=function(K){Bfd||(Bfd=Sbl(new _.dI(1,void 0,void 0,oeO),0));var X=Bfd.format(Math.floor(K));X=_.Wv==="be"||_.Wv==="bg"||_.Wv==="es"||_.Wv==="et"||_.Wv==="hu"||_.Wv==="ka"||_.Wv==="lv"||_.Wv==="pl"||_.Wv==="pt-PT"||_.Wv==="sq"?X.replace(new RegExp("^(\\d)"+oeO.GROUP_SEP.replace(".","\\.")+"(\\d+("+oeO.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):X;return K>=1E3&&K<=9999&&X[1]==="."&&(_.Wv==="sl"||_.Wv==="it")?X.replace(".",""):X};
Tf3=function(K,X){ov("ytd-button-renderer",{data:K,className:X?X.className:"",overrides:X==null?void 0:X.buttonOverrides},tZ)};
j$T=function(K,X,F,P){if(K)return P=P||K.likeStatus,X?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:P==="LIKE",isDisabled:!K.likesAllowed,defaultIcon:{iconType:F},defaultText:P==="LIKE"?K.likeCountWithUnlikeText:K.likeCountText,toggledText:P==="LIKE"?K.likeCountText:K.likeCountWithLikeText,defaultNavigationEndpoint:rSP(K,"LIKE"),defaultServiceEndpoint:AST(K,"LIKE"),toggledServiceEndpoint:AST(K,"INDIFFERENT"),defaultTooltip:_.lj(K.likeCountTooltipText),toggledTooltip:_.lj(K.likeCountTooltipText),
targetId:K.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:P==="DISLIKE",isDisabled:!K.likesAllowed,defaultIcon:{iconType:F},defaultText:P==="DISLIKE"?K.dislikeCountWithUndislikeText:K.dislikeCountText,toggledText:P==="DISLIKE"?K.dislikeCountText:K.dislikeCountWithDislikeText,defaultNavigationEndpoint:rSP(K,"DISLIKE"),defaultServiceEndpoint:AST(K,"DISLIKE"),toggledServiceEndpoint:AST(K,"INDIFFERENT"),defaultTooltip:_.lj(K.dislikeCountTooltipText),
toggledTooltip:_.lj(K.dislikeCountTooltipText)}};
rSP=function(K,X){if(X==="LIKE")return K.likeCommand;if(X==="DISLIKE")return K.dislikeNavigationEndpoint};
AST=function(K,X){var F;return(F=K.serviceEndpoints)==null?void 0:F.find(function(P){var H;return((H=_.T(P,_.Rn))==null?void 0:H.status)===X})};
_.WZy=function(K,X,F){return window.spf&&!_.S("web_disable_spfjs_client")?wPl(K,X,F):ySP(K,X)};
wPl=function(K,X,F){var P=null,H=(new _.fL(function(f,u){var J={};if(X){J.method=X.method;var Z=X.postParams||{};CvT(K,X)&&(Z[_.e8("XSRF_FIELD_NAME")]=_.e8("XSRF_TOKEN"));J.postData=_.Dr(Z);X.type&&(J.type=X.type);Z=X.headers}J.headers=$zd(K,Z);_.S("debug_forward_web_query_parameters")&&(K=_.Ehy(K,window.location.search));J.experimental_headers=J.headers;J.onError=function(M){M.err&&M.xhr&&(M.err.params={url:M.xhr.responseURL,response:M.xhr.responseText.substr(0,64)});u(M.err)};
J.onPartDone=function(M){F&&F.call(null,M.part)};
J.onDone=function(M){var n=dC3(M.response,"xsrf_token");EN(window.location.href,K)&&n&&_.d2("XSRF_TOKEN",n);if(n=dC3(M.response,"service_worker_killswitch"))_.d2("SERVICE_WORKER_KILLSWITCH",n),pCn();f(M.response)};
P=spf.request(K,J)})).then(eKy);
H.thenCatch(function(f){var u=f instanceof _.UD,J=f&&f.hasOwnProperty("params")&&f.params.response?f.params.response:"";f instanceof Error&&(J?u?RcM(f):J===')]}\'\n{"reload":"now"}'?RcM(f):(RKl(f,K,J),UCO(f,J)?_.yy(f):_.jF(f)):RcM(f));P&&P.abort()});
return H};
eKy=function(K){if(K.type==="multipart"){var X=K.timing;K=K.parts.reduce(function(F,P){Object.assign(F,P);return F},{});
K.timing=K.timing||{};Object.assign(K.timing,X);K.type="reduced"}return K};
ySP=function(K,X){X=X===void 0?{}:X;var F=null,P=new _.fL(function(H,f){X.onFinish=function(u){if(u.readyState===XMLHttpRequest.DONE)if(u.status===200){if(u.responseType!=="json"){var J=u.response;J.substring(0,5)===")]}'\n"&&(J=J.substring(5));try{var Z=JSON.parse(J)}catch(M){Z=M}}else Z=u.response;Z instanceof Error?f(Z):(J=dC3(Z,"xsrf_token"),EN(window.location.href,K)&&J&&_.d2("XSRF_TOKEN",J),u=u.responseURL,window.performance&&window.performance.getEntriesByName?(J=window.performance.getEntriesByName(u).pop())?
u={responseStart:(0,_.CG)()-(J.responseEnd-J.responseStart)}:(Math.random()<.01&&(J=Error("Xh"),J.params=u,_.yy(J)),u={responseStart:-1}):u={responseStart:0},Z.timing=Z.timing||{},Object.assign(Z.timing,u),H(Z))}else f(Error("Wh`"+u.status))};
(F=_.fG(K,X))||f(Error("Wh`"+F.status))});
P.thenCatch(function(H){H instanceof Error&&(RKl(H,K),UCO(H)&&(H.level="WARNING"))});
_.S("cancel_pending_navs")&&P.thenCatch(function(){F.abort()});
return P};
dC3=function(K,X){var F=K[X],P=K.parts;K.type==="multipart"&&P&&(F=(K=P.find(function(H){return X in H}))&&K[X]);
return F};
RKl=function(K,X,F){var P=K.message||"";X={original:P,url:X};if(F)if(P=P.match(/position:?\s*(\d+)/)){P=P&&Number(P[1])?Number(P[1]):0;var H=Math.max(P-25,0);X.position=P;X.response=F.substring(H,P+25)}else X.response=F.substring(0,50);_.Wu(K,X);try{K.message="JSON parse error"}catch(f){}};
UCO=function(K,X){K=K.message||"";K=!!(K.indexOf("<")>=0||K.indexOf("end of ")>=0||K.indexOf("Unterminated string")>=0||K.indexOf("Unexpected EOF"));if(!K&&X)for(var F=X.length,P=!1,H=0;H<F;H++)if(P&&X[H]==="\\")H++;else if(X[H]==='"')P=!P;else if(X[H]==="<"&&!P){K=!0;break}return K};
hKw=function(){return document.documentElement.hasAttribute("dark")};
_.mCq=function(K,X){if(K!=="GFEEDBACK"&&K!=="GUIDED_HELP")_.UN(Error("Yh`"+K));else{var F=_.i9().resolve(_.Nu(_.ax));if(F&&(F=F.getCurrentPage())&&F.getServiceTrackingParams&&(F=F.getServiceTrackingParams()))for(var P=0,H;H=F[P++];)if(H.service===K){if(K=H.params)for(F=0;P=K[F++];)X[P.key]=P.value;break}}};
_.Guy=function(K){var X=_.$f();X&&(X=X.getPlayer())&&(X.pauseVideo(),K.playback_id=X.getVideoData().cpn,K.eid=X.getVideoData().eventId,Object.assign(K,X.getFeedbackProductData()))};
l8O=function(){var K={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.e8("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(K.enableAnonymousFeedback=!0);_.e8("SESSION_INDEX")&&(K.authuser=String(_.e8("SESSION_INDEX")));_.S("enable_pageid_for_feedback")&&_.e8("DELEGATED_SESSION_ID")&&(K.pageId=String(_.e8("DELEGATED_SESSION_ID")));return K};
_.hq=function(K){_.S("enable_ypc_spinners")&&_.xr(K,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},K])};
_.mm=function(K){_.S("enable_ypc_spinners")&&_.xr(K,"yt-close-popup-action",["yt-loading-renderer"])};
veq=function(K){return new Promise(function(X,F){_.yB({verifyCommand:{recaptchaToken:K.recaptchaResponse}},{commandController:{onSuccess:function(P,H){H||F("ChallengeService did not return a response.");var f;X({challengeCompleted:(f=H.verified)!=null?f:!1})},
onServerError:function(P,H){F(H)}}})})};
a8d=function(K,X,F,P){X({recaptchaResponse:P}).then(function(H){H.challengeCompleted?_.YS()?(F(3),_.i9().resolve(_.xU).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:K}})):F(2):F(4)},function(){F(4)})};
tsy=function(K,X,F){_.e4("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.e8("HL"),function(){var P;(P=window.grecaptcha)==null||P.ready(function(){var H=window.grecaptcha;H?(F(H.render(K,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:a8d.bind(null,K,veq,X)})),X(1)):X(4)})})};
$CM=function(K,X){return function(){switch(X()){case 0:return K().captchaLoadingMessage;case 1:return K().challengeReason;case 3:return K().captchaSuccessfulMessage;case 2:return K().captchaCookieSetFailureMessage;case 4:return K().captchaFailedMessage;default:return K().challengeReason}}()};
_.GX=function(){if(!Ogd){var K=document.querySelector("#player.skeleton");K&&(_.c_(K),Ogd=!0)}};
_.geP=function(){return Vs3=pU9()};
C3w=function(){return _.q(function(K){return EeM!==void 0?K.return():_.Y(K,bgq(),0)})};
bgq=function(){return _.q(function(K){if(K.nextAddress==1)return _.Y(K,Sxq(),2);Vs3=K.yieldResult;EeM=_.A9.addLowPriorityJob(bgq,5E3);_.JT(K)})};
KU3=function(K){var X=X===void 0?NfM:X;var F,P,H=(F=K.responseContext)==null?void 0:(P=F.mainAppWebResponseContext)==null?void 0:P.trackingParam;if(!H){X.increment("MISSING");var f,u,J,Z,M,n;_.yy(new _.nG("282054944_a",{udt:!!((f=K.responseContext)==null?0:(u=f.mainAppWebResponseContext)==null?0:u.loggedOut),oAr:((J=K.responseContext)==null?void 0:J.mainAppWebResponseContext)===void 0,fbd:K.responseContext===void 0,j8S:(Z=K.playabilityStatus)==null?void 0:Z.contextParams,p4C:(((M=K.streamingData)==
null?void 0:M.formats)||[]).length>0,hE0:(((n=K.streamingData)==null?void 0:n.adaptiveFormats)||[]).length>0,os:!!K.offlineState,cotn:K.cotn}));return 2}F="";try{F=igO(H)}catch(L){return X.increment("C_ERROR"),_.jF(L),2}try{var c=_.xCT(F);var B=I89(c)}catch(L){return X.increment("P_ERROR"),_.jF(L),2}B=_.kp(B,kuT,1,_.KJ());H=[];B=_.D(B);for(c=B.next();!c.done;c=B.next())P=c.value,c=P.getPath(),F=(0,_.T8.getValueByKeys)(K,c.split(".")),F=String(F===void 0||F===null?"":F),P=P.getValue()||"",f=/[+\-\/_]/g,
F.replace(f,"")!==P.replace(f,"")&&(X.increment("MISMATCH"),_.S("ab_mis_log_err")&&(F=new _.nG("282054944_p",{l9Z:c,g:String(F),e:String(P)}),_.jF(F)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(c)||(c.match(/enforcementMessageViewModel/i)?H.push(3):H.push(2)));if(H.length>0)return Math.max.apply(Math,_.LZ(H));X.increment("SUCCESS");return 1};
PGT=function(K){var X=new tq;if(K.interpreterJavascript){var F=_.r7P(K.interpreterJavascript);F=mk(F).toString();var P=new Xe9;_.Qf(P,6,F);_.Fw(X,1,P,aC)}else K.interpreterUrl&&(F=_.jt(K.interpreterUrl),F=_.ui(F).toString(),P=new _.FU9,_.Qf(P,4,F),_.Fw(X,2,P,aC));K.interpreterHash&&_.$R(X,3,K.interpreterHash,aC);K.program&&_.$R(X,4,K.program,aC);K.globalName&&_.$R(X,5,K.globalName,aC);K.clientExperimentsStateBlob&&_.$R(X,7,K.clientExperimentsStateBlob,aC);return X};
OD=function(K){var X={};K=_.D(K.split("&"));for(var F=K.next();!F.done;F=K.next())F=F.value.split("="),F.length===2&&(X[F[0]]=F[1]);return X};
HdT=function(K){return Number(K.t)||7200};
w_y=function(){if(_.S("bg_st_hr"))return"havuokmhhs-0";var K,X=((K=performance)==null?void 0:K.timeOrigin)||0;return"havuokmhhs-"+Math.floor(X)};
sTn=function(){return new Promise(function(K){var X=window.top;X.ntpevasrs!==void 0?K(new V$(X.ntpevasrs)):(X.ntpqfbel===void 0&&(X.ntpqfbel=[]),X.ntpqfbel.push(function(F){K(new V$(F))}))})};
z7P=function(K){var X=K.xdQ.bind(K);_.gS("yt.aba.att",X);K=K.yh2.bind(K);_.gS("yt.aba.att2",K)};
DWn=function(K){switch(_.zy(K.input)){case _.t7(fz3):var X={};return X.encryptedVideoId=K.innerTubeRequest.externalVideoId,X}return{}};
qFq=function(K){switch(_.zy(K.input)){case _.t7(fz3):if(_.S("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.t7(gM):if(_.S("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&K.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.t7(uyq):var X,F;if(_.S("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((F=_.T((X=K.config)==null?void 0:X.command,
poq))==null?0:F.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.Zdw=function(K){var X;if(K.playlistVideoRenderer&&((X=K.playlistVideoRenderer)==null?0:X.engagementBar))return J3M(K.playlistVideoRenderer.engagementBar);if(_.T(K,ED)){var F;if(K=(F=_.T(K,ED))==null?void 0:F.engagementBar)return J3M(K)}return""};
J3M=function(K){if(!K)return"";K=_.T(K,_.YFP);if(K==null||!K.actions)return"";K=_.D(K.actions);for(K=K.next();!K.done;K=K.next()){K=_.T(K.value,_.QTP);var X=void 0;if((X=K)==null||!X.itemId)break;return K.itemId}return""};
_.MwP=function(K){var X;if(K.playlistVideoRenderer&&((X=K.playlistVideoRenderer)==null?0:X.videoId))return K.playlistVideoRenderer.videoId;if(_.T(K,ED)){var F,P;if(K=(F=_.T(K,ED))==null?void 0:(P=F.playlistItemData)==null?void 0:P.videoId)return K}return""};
_.nD9=function(K){var X;if(K.playlistVideoRenderer&&((X=K.playlistVideoRenderer)==null?0:X.voteCount))return K.playlistVideoRenderer.voteCount;if(_.T(K,ED)){var F,P;if(K=(F=_.T(K,ED))==null?void 0:(P=F.playlistItemData)==null?void 0:P.voteCount)return K}return 0};
_.bf=function(K,X){return _.FF(K.entities,"flowStateEntity",X)};
peP=function(K,X,F,P){var H=void 0;K=_.D(K[X.iconName]||[]);for(var f=K.next();!f.done;f=K.next()){f=f.value;var u=X.iconSize;var J=X.iconStyle;u=!u||u===f[2];var Z=c3P[f[0]];P&&P!==f[1]||!u||J&&J!==Z?J=!1:H?(J=c3P[f[0]],J=!!X.iconStyle||J==="youtube_outline",u=H.version<=f[1],J=(!!X.iconSize||f[2]===24)&&J&&u):J=!0;J&&(H={name:X.iconName,style:c3P[f[0]],size:f[2],version:f[1],allowMirroring:!!f[3],url:F(X.iconName,f)})}return H};
Bm9=function(K,X,F,P){return K+(""+c3P[F[0]]+((P===void 0?0:P)?"_experimental":"")+"/"+X+"/v"+F[1]+"/")+(F[2]+"px.svg")};
Cj=function(K){return _.S("web_bookmark_playlist_save_icon")?"bookmark":K};
SFl=function(K,X){return Bm9("https://fonts.gstatic.com/s/i/",K,X)};
oDn=function(K,X){return Bm9("https://fonts.gstatic.com/s/i/",K,X,!0)};
LUw=function(K,X){return Bm9("https://www.gstatic.com/youtube/img/icons/web/",K,X)};
r3y=function(K){var X=K.enabled;var F=K.itemPlaybackModel;var P=K.thumbnailElRef;var H=K.containerElRef;var f=K.options;var u;_.rs(function(){var J=H==null?void 0:H.value;var Z,M=(Z=P())==null?void 0:Z.value;Z=F();var n=f();if(X&&Z&&J&&M&&(n==null?0:n.thumbnail)){var c={data:Z,hostElement:J},B,L,A=_.S("web_explore_hub_on_hover")||_.S("web_client_explore_hub_on_hover")?[].concat(_.LZ((B=n.thumbnailOverlays)!=null?B:[]),_.LZ((L=Z.overlays)!=null?L:[])):n.thumbnailOverlays||[],d,R;J={mediaRenderer:c,
lockupElement:J,thumbnailElement:M,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.w$((d=Z.inlinePlayerData)==null?void 0:d.onVisible),navigationEndpoint:_.w$((R=Z.inlinePlayerData)==null?void 0:R.onSelect),thumbnail:n.thumbnail,thumbnailOverlays:A,accessibilityText:n.accessibilityText||""},thumbnailSize:n.thumbnailSize,enableRounding:n.enableRounding}}}else J=void 0;if(d=J){var l;(l=u)==null||Ny(l);u=l6(d);var a,E;((a=F())==null?0:(E=a.inlinePlayerData)==null?0:E.forceImpAutoplay)&&
Tmw(u)}},"B33dEc");
_.AZ(function(){var J;(J=u)==null||Ny(J)})};
A39=function(K){K=atob(K);for(var X=[],F=0;F<K.length;F++)X.push(K.charCodeAt(F));return new Blob([new Uint8Array(X)],{type:"image/png"})};
weP=function(K,X,F,P){P=P===void 0?"INSERTION_POSITION_UNSPECIFIED":P;return K({targetId:X},function(H){var f,u=(f=H.contents)!=null?f:[];f=F!=null?F:[];var J=jT4(u);switch(P){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},H,{contents:[].concat(_.LZ(u.slice(0,J)),_.LZ(f),_.LZ(u.slice(J+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},H,{contents:[].concat(_.LZ(f),_.LZ(u))});case "INSERTION_POSITION_LAST":return Object.assign({},H,{contents:[].concat(_.LZ(u),_.LZ(f))});
default:return H}})};
WUy=function(K,X,F,P,H){H=H===void 0?"RELATIVE_INSERTION_POSITION_AFTER":H;return K({targetId:X},function(f){var u,J=(u=f.contents)!=null?u:[];u=y3w(J,F);if(u<0)return f;u=H==="RELATIVE_INSERTION_POSITION_BEFORE"?u:u+1;return Object.assign({},f,{contents:[].concat(_.LZ(J.slice(0,u)),_.LZ(P),_.LZ(J.slice(u)))})})};
jT4=function(K){var X=K.findIndex(function(F){return _.T(F,_.xR)});
return X>=0?X:K.length};
y3w=function(K,X){return K.findIndex(function(F){a:{F=_.D(Object.values(F));for(var P=F.next();!P.done;P=F.next())if((P=P.value)&&P.targetId){F=P.targetId;break a}F=""}return F===X})};
e7n=function(K,X,F){return K({targetId:X},function(P){var H,f=(H=P.contents)!=null?H:[];return Object.assign({},P,{contents:dWy(f,F)})})};
dWy=function(K,X){return K.filter(function(F){var P=X.includes;a:{F=_.D(Object.values(F));for(var H=F.next();!H.done;H=F.next())if((H=H.value)&&H.targetId){F=H.targetId;break a}F=""}return!P.call(X,F||"")})};
_.R7P=function(K,X){return{engagementPanelSectionListRenderer:{panelIdentifier:K,identifier:X,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
_.h7d=function(K){var X,F=(X=K.getOption("captions","tracklist",{includeAsr:!0}))!=null?X:[];return F=UWP(F,K)};
mW9=function(K){return K.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
UWP=function(K,X){X=mW9(X);if(X==null||!X.length)return K;var F=X.filter(function(u){return u});
X=K.filter(function(u){return u.languageCode.startsWith("en")});
F=_.D(F);for(var P=F.next();!P.done;P=F.next())if(P=P.value,X.length){var H=X[0],f=Object.assign({},H);H.languageCode!==P.languageCode&&(f.displayName=H.languageName+" >> "+P.languageName,f.translationLanguage=P,K.push(f))}return K};
G09=function(K,X,F){K=_.h7d(K);if(K.length)return F?K.find(function(P){if(typeof(P==null?void 0:P.translationLanguage)==="object"){var H;return((H=P.translationLanguage)==null?void 0:H.languageCode)===X}return!1}):K==null?void 0:K.find(function(P){return P.languageCode===X})};
lzn=function(K){return K.getOption("captions","tracklist",{includeAsr:!0})};
vDl=function(K){return K.getOption("captions","tracklist",{includeAsr:!0})};
az3=function(K){var X=vDl(K);if(X==null?0:X.length)return X;K.loadModule("captions");return vDl(K)};
twy=function(K){var X=K.getOption("captions","track");if(X)return X;K.loadModule("captions");return K.getOption("captions","track")};
Odl=function(K){var X=az3(K);if(X!=null&&X.length){var F=twy(K),P;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.uY("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(F==null?0:F.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.LZ(X.map(function(H){return{listItemViewModel:{title:{content:H.displayName},
isSelected:H.displayName===(F==null?void 0:F.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:H.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.uY("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!F.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!F.translationLanguage&&{selectionText:{content:(F==null?void 0:(P=F.translationLanguage)==null?void 0:P.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[$Wl(K)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
$Wl=function(K){var X=mW9(K);if(X==null||!X.length)throw Error("vi");var F=twy(K);K=X.filter(function(P){return!P.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.LZ(K.map(function(P){var H;return{listItemViewModel:{title:{content:P.languageName},isSelected:P.languageName===(F==null?void 0:(H=F.translationLanguage)==null?void 0:H.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:P.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
bd9=function(K){return new Promise(function(X,F){if(K===void 0)_.jF(Error("zi"),"ERROR"),F(Error("zi"));else{F=new _.Vwy;var P=_.gDT();F=F.init();var H=_.ED9(_.e8("YPC_MB_URL"),!0);Promise.all([F,H]).then(function(){var f=payments.business.integration.ClientTokenFactory.createClientToken(K,P);X(f)})}})};
idO=function(K,X,F,P,H,f,u){var J=_.Ue();F=F.replace(/-/g,"+").replace(/_/g,"/");var Z=_.ZO().get("hl"),M=_.In(_.Gw),n=X==null?void 0:X.element;n&&_.hq(n);CGn(X,!0);_.NmO(M,F,J.resolve,function(){n&&_.mm(n)},function(c){n&&_.mm(n);
J.reject(c)},Z,P?function(c){P&&_.Rx(K,P,{backend_analytics:c})}:void 0,J.resolve,H,f,u);
return J.promise};
CGn=function(K,X){!(K=K==null?void 0:K.element)||K.tagName!=="YT-BUTTON-RENDERER"&&K.tagName!=="YTD-BUTTON-RENDERER"||(K.disabled=X)};
xWq=function(){var K=_.uY("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.bY(K),actionButton:{buttonRenderer:TaT()}}},popupType:"TOAST"}};
Izn=function(){var K=_.uY("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.bY(K),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
k09=function(K){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:K}]}}};
kR=function(K,X,F,P){var H;return _.q(function(f){if(f.nextAddress==1)return _.s2(f,2),_.Y(f,K,4);if(f.nextAddress!=2)return(H=_.Yx(X.getState().entities).length>0)?f.return({title:_.bY(_.uY("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.bY(_.uY("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:LVP()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
f.return(rJn(F,P));_.qc(f);return f.return(rJn(F,P))})};
Ku9=function(K,X){return X?X==="PPSV"||W2l(K,X):!1};
XKd=function(K){K.responseContext||(K.responseContext={});K.responseContext.maxAgeSeconds=0;return K};
XJ=function(K){var X;return _.q(function(F){return F.nextAddress==1?_.Y(F,Fuy(K,"service:topbar:fallback"),2):(X=F.yieldResult)&&_.Kk(X)?F.return(XKd(_.Kk(X))):F.return()})};
Pnl=function(K){var X;return _.q(function(F){return F.nextAddress==1?_.Y(F,Fuy(K,"service:downloads_settings:fallback"),2):(X=F.yieldResult)&&_.Kk(X)?F.return(X):F.return()})};
Fuy=function(K,X){var F;return _.q(function(P){if(P.nextAddress==1)return K?_.Y(P,K.get(X),2):P.return();F=P.yieldResult;return!F||!_.Kk(F)||!isNaN(Number(F.data.expireTimestampMs))&&F.isExpired()?P.return():P.return(F)})};
H6O=function(K){var X=_.i9().resolve(FJ).getState().entities;return K.playlistId?Ku9(X,K.playlistId):!1};
son=function(K,X){var F;if(X==null?0:(F=X.requestTemplate)==null?0:F.panelId)K.panelId=X.requestTemplate.panelId;var P;if(X==null?0:(P=X.requestTemplate)==null?0:P.params)K.params=X.requestTemplate.params};
fUn=function(){if(zx4)return zx4();var K=!_.S("idb_response_store_auth_killswitch"),X={};zx4=bD("yt-it-response-store",{objectStores:(X.ResponseStore={addedAtVersion:1},X),shared:!K,upgrade:function(F,P){P(1)&&(F=Ra(F,"ResponseStore",{keyPath:["key","clientName"]}),UM(F,"byExpiration","expireTimestampMs"),UM(F,"byInterface","clientName"))},
version:1});return zx4()};
DPl=function(K){return _.vm(fUn(),K)};
qqy=function(K,X){var F;return _.q(function(P){return P.nextAddress==1?_.Y(P,_.EU(),2):(F=P.yieldResult)?P.return(new u2y(K,X,F)):P.return()})};
JOl=function(K){var X=Object.keys(K)[0];if(X)return K.screenExit&&(X=X+";"+K.screenExit.screen),X};
Z69=function(K){var X=new Map;K=_.D(K);for(var F=K.next();!F.done;F=K.next())F=F.value,F!=null&&(X.has(F.taskType)||X.set(F.taskType,[]),X.get(F.taskType).push(F));return X};
Yq9=function(K){return!isNaN(K)&&K>0};
Qoy=function(K){K=[].concat(_.LZ(K)).sort(function(F,P){return F-P});
var X=Math.floor(K.length/2);return K.length%2?K[X]:(K[X-1]+K[X])/2};
cOl=function(K,X){K=K===void 0?cYq:K;X=X===void 0?{}:X;_.gS("yt.logging.errors.log",_.jF);M9n();MBl(L$d(),X);window.onerror=K;nIP=nOy;window.addEventListener("unhandledrejection",function(F){if(F.reason instanceof Error){var P=F.reason;_.Wu(P,{source:"unhandledrejection"});P.name==="AbortError"&&(P.level="WARNING")}nOy(F.reason);F.preventDefault()})};
_.pKw=function(K){return K.a11y.ephemeralAction||null};
_.Biw=function(K){var X,F,P,H,f,u,J,Z,M,n,c,B,L,A,d,R,l,a,E,V,x,N,Dl,Mq,pO,y9,Wy,eP,gw,a3,dL,nt,ht,YC,uu,X8,qV,J0,yd,uT;return _.q(function(SU){if(SU.nextAddress==1)return _.Y(SU,_.DH(K,{mode:"readonly",enableRetries:!0},function(RC){return uj(RC,"playbackData").then(function(tw){var TE=tw.map(function(sZ){return sZ.transfer}).filter(function(sZ){return!!sZ}),NV=tw.map(function(sZ){return sZ.offlineVideoPolicy}).filter(function(sZ){return!!sZ}),$E=tw.filter(function(sZ){return!!sZ.key}).map(function(sZ){return _.XF(_.I7(sZ.key).entityId,
"downloadStatusEntity")});
TE=uj(RC,"transfer",TE);NV=uj(RC,"offlineVideoPolicy",NV);$E=uj(RC,"downloadStatusEntity",$E);var bu=TE.then(function(sZ){sZ=sZ.reduce(function(tt,BF){(BF==null?0:BF.offlineVideoStreams)&&tt.push.apply(tt,_.LZ(BF.offlineVideoStreams));return tt},[]).filter(function(tt){return!!tt});
return uj(RC,"offlineVideoStreams",sZ)});
return Rt.all([TE,NV,bu,$E]).then(function(sZ){var tt=_.D(sZ);sZ=tt.next().value;var BF=tt.next().value;var BN=tt.next().value;tt=tt.next().value;return[tw,sZ,BF,BN,tt]})})}),2);
if(SU.nextAddress!=3)return X=SU.yieldResult,_.Y(SU,_.DH(K,{mode:"readonly",enableRetries:!0},function(RC){return uj(RC,"mainDownloadsListEntity").then(function(tw){var TE,NV;return(NV=(TE=tw[0])==null?void 0:TE.downloads)!=null?NV:[]})}),3);
F=SU.yieldResult;P=_.D(X);H=P.next().value;f=P.next().value;u=P.next().value;J=P.next().value;Z=P.next().value;M=H;n=f;c=u;B=J;L=Z;A={};d={};R={};l={};a={};E=[];V=_.D(n);for(x=V.next();!x.done;x=V.next())(N=x.value)&&(A[N.key]=N);Dl=_.D(c);for(Mq=Dl.next();!Mq.done;Mq=Dl.next())(pO=Mq.value)&&(d[pO.key]=pO);y9=_.D(L);for(Wy=y9.next();!Wy.done;Wy=y9.next())(eP=Wy.value)&&(R[eP.key]=eP);gw=_.D(B);for(a3=gw.next();!a3.done;a3=gw.next())(dL=a3.value)&&(l[dL.key]=dL);nt=_.D(F);for(ht=nt.next();!ht.done;ht=
nt.next())YC=ht.value,uu=void 0,a[(uu=YC.videoItem)!=null?uu:""]=!0,YC.videoItem&&(qV=X8=void 0,J0=(qV=(X8=_.I7(YC.videoItem))==null?void 0:X8.entityId)!=null?qV:"",E.push({externalVideoId:J0}));yd=M.filter(function(RC){if(!RC||!RC.key||!RC.offlineVideoPolicy)return!1;RC=_.I7(RC.key).entityId;RC=_.XF(RC,"downloadStatusEntity");var tw;return!(RC&&((tw=R[RC])==null?void 0:tw.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
uT=yd.map(function(RC){var tw=A[RC.transfer],TE=[];if(tw==null?0:tw.offlineVideoStreams)for(var NV=_.D(tw.offlineVideoStreams),$E=NV.next();!$E.done;$E=NV.next())($E=l[$E.value])&&TE.push($E);NV=d[RC.offlineVideoPolicy];$E=a;var bu=RC==null?void 0:RC.playerResponseTimestamp,sZ=_.I7(NV.key).entityId;RC=_.XF(sZ,"mainVideoEntity");if(NV.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var tt="OFFLINE_VIDEO_STATE_DISABLED";NV.expirationTimestamp&&Number(NV.expirationTimestamp)<Date.now()/1E3&&(tt="OFFLINE_VIDEO_STATE_EXPIRED")}else if(NV.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")tt="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(tw==null?void 0:tw.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":tt="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":tt="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":tt="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":tt="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":tt="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":tt="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:tt="OFFLINE_VIDEO_STATE_UNKNOWN"}if(tt==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(tw==null?void 0:tw.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":tt="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":tt="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":tt=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}sZ={id:sZ,videoState:tt};if(tw==null?0:tw.cotn)sZ.cotn=tw.cotn;if(tw==null?0:tw.maximumDownloadQuality)sZ.selectedVideoQuality=tw==null?void 0:tw.maximumDownloadQuality;if(tw==null?0:tw.lastProgressTimeMs)sZ.lastProgressTimeMs=tw.lastProgressTimeMs;bu&&(sZ.playerResponseSavedTimeMs=String(Number(bu)*1E3));tw=String;bu=0;TE=_.D(TE);for(tt=TE.next();!tt.done;tt=TE.next())if(tt=tt.value,tt.streamsProgress){tt=_.D(tt.streamsProgress);for(var BF=tt.next();!BF.done;BF=
tt.next()){var BN=void 0;bu+=Number((BN=BF.value.numBytesDownloaded)!=null?BN:0)}}sZ.downloadedBytes=tw(bu);sZ.selectedOfflineMode=$E[RC]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";NV.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(sZ.offlinePlaybackDisabledReason=NV.offlinePlaybackDisabledReason);return sZ});
return SU.return({offlineVideos:uT,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:E}}})})};
Sqy=function(){var K;return _.q(function(X){return X.nextAddress==1?_.Y(X,_.sz(),2):(K=X.yieldResult)?X.return(_.Biw(K)):X.return({state:"PES Unavailable"})})};
Tid=function(){var K,X,F,P;return _.q(function(H){if(H.nextAddress==1)return _.Y(H,_.sz(),2);if(H.nextAddress!=3)return(K=H.yieldResult)?_.Y(H,oIT(K),3):H.return({state:"PES Unavailable"});X=H.yieldResult;F={};P=X.reduce(function(f,u){f[u.key]=u;return f},F);
return H.return(Lul(P))})};
Lul=function(K){for(var X={},F=[],P=_.D(Object.keys(K)),H=P.next();!H.done;H=P.next()){var f=H.value;H=K[f];var u=void 0;if(((u=H)==null?void 0:u.entityType)==="mainVideoEntity"){delete K[f];var J=H.data;H={};if(J){var Z=void 0;u=(Z=J.videoId)!=null?Z:"vid-"+f;f=K;H.video=J;delete H.video.formattedDescription;delete H.video.thumbnail;J.owner&&(Z=f[J.owner],Z==null?0:Z.data)&&(delete f[Z.key],H.video.owner=Z.data,delete H.video.owner.avatar);if(J=J.downloadState)if(Z=f[J],Z==null?0:Z.data)if(delete f[J],
J=Z.data.playbackData)if(Z=f[J],Z!=null&&Z.data){delete f[J];J=Z.data;delete J.playerResponseJson;H.playbackData=J;if(J.transfer&&(Z=f[J.transfer],Z==null?0:Z.data)){delete f[Z.key];var M=Z.data;H.transfer=M;Z=[];M=_.D(M.offlineVideoStreams||[]);for(var n=M.next();!n.done;n=M.next())if(n=f[n.value])delete f[n.key],Z.push(n.data);Z&&(H.streams=Z)}(J=J.offlineVideoPolicy)&&(J=f[J])&&J.data&&(delete f[J.key],H.offlineVideoPolicy=J.data)}X[u]=H}}else H&&H.entityType==="offlineOrchestrationActionWrapperEntity"&&
H.data&&(delete K[H.key],u=H.data,f=void 0,F.push({id:u.rootActionId,type:((f=u.actionProto)==null?void 0:f.actionType)||"",entity:H}))}X.wrapperEntities=F;Object.keys(K).length>0&&(X.unknownKeys=K);return X};
rOP=function(){var K,X,F,P,H,f,u,J,Z;return _.q(function(M){if(M.nextAddress==1)return K=!!(new _.dG("")).expiringStorage_,P=!!((X=_.FP.crypto)==null?0:(F=X.subtle)==null?0:F.importKey),H=!!_.FP.BroadcastChannel,f=!!_.FP.navigator.locks,_.Y(M,CXP(),2);u=M.yieldResult;J=K&&P&&H&&f&&u;Z={isSupported:J};if(J)return M.return(Z);Z.missingBrowserFeatures=[];u||Z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");K||Z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
P||Z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");H||Z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");f||Z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return M.return(Z)})};
AOy=function(){var K;return!((K=Pj?Pj:null)==null||!K.window)};
_.wK9=function(K){if(_.dw()&&_.JMd("Chromium")>=120){var X=_.joM().mediaSession;try{X.setActionHandler("enterpictureinpicture",function(){K()})}catch(F){}}};
yOy=function(K){for(var X=[],F=_.D(document.styleSheets),P=F.next(),H={};!P.done;H={node$jscomp$725:void 0},P=F.next())H.node$jscomp$725=P.value.ownerNode,H.node$jscomp$725&&(H.node$jscomp$725 instanceof HTMLStyleElement||H.node$jscomp$725 instanceof HTMLLinkElement)&&X.push(new Promise(function(f){return function(u){var J=f.node$jscomp$725.cloneNode(!0);J.onload=function(){u()};
J.onerror=function(){_.yy(Error("bj"));u()};
K.document.head.appendChild(J)}}(H)));
return Promise.all(X)};
vIn=function(K){var X=[_.kE(Wuy),_.kE(dPT),_.kE(exT)];Rx9(window.document.documentElement,K.document.documentElement,[_.kE(UPy),_.kE(hxl),_.kE(mPd),_.kE(GNP),_.kE(lUw)]);Rx9(window.document.body,K.document.body,X)};
Rx9=function(K,X,F){K=_.D(K.attributes);for(var P=K.next();!P.done;P=K.next())if(P=P.value)try{_.af(F,X,P.name,P.value)}catch(H){}};
tBw=function(K,X){K=new _.Hj(K.document.documentElement);K.start(aUy,X);return K};
$Pw=function(K){var X=K.document.documentElement;X.addEventListener("click",function(F){WOy(X,F)});
X.addEventListener("touchstart",function(F){hf3(F)});
X.addEventListener("mousedown",function(F){hf3(F)})};
VB9=function(K,X,F,P){P=P===void 0?!1:P;X=new O6T(X||K,F||K);return{x:K.x+((P===void 0?0:P)?X.lengthX*-1:X.lengthX)*.2,y:K.y+((P===void 0?0:P)?X.lengthY*-1:X.lengthY)*.2}};
gId=function(K){if(!K)return!1;var X=K.status==="OK"||K.status==="LIVE_STREAM_OFFLINE",F,P,H,f=(H=(F=K.errorScreen)==null?void 0:F.playerLegacyDesktopYpcTrailerRenderer)!=null?H:(P=K.errorScreen)==null?void 0:P.ypcTrailerRenderer;return!!X||!!f};
_.EIl=function(K,X){if(!K)return!1;var F,P=(F=K.errorScreen)==null?void 0:F.playerLegacyDesktopYpcOfferRenderer,H;X=!!(X==null?0:(H=X.playerOverlayRenderer)==null?0:H.gatedActionsOverlayRenderer);return!!gId(K)||!!P||!!X};
Ni4=function(K){return b6y(K,0,"gclid",K.search(Cnq))>=0||b6y(K,0,"gad_source",K.search(Cnq))>=0};
i6P=function(K){return new Promise(function(X){window.setTimeout(X,K)})};
xPd=function(K){var X={bicf:function(f){K.jqe=f},
blc:function(){return K.getLatestChallengeResponse()},
bcr:function(f){K.kI1.push(f)}},F=window.top;
F.ntpevasrs=X;if(F.ntpqfbel!==void 0)for(var P=_.D(F.ntpqfbel),H=P.next();!H.done;H=P.next())H=H.value,H(X);F.ntpqfbel=void 0};
IUl=function(K){return _.q(function(X){if(X.nextAddress==1)return _.s2(X,2),_.Y(X,K.geQ(),4);if(X.nextAddress!=2)return _.Gy(X,0);_.qc(X);_.JT(X)})};
kN9=function(K){var X,F;(X=K.ytcsi)==null||(F=X.tick)==null||F.call(X,"pot_ist")};
KCl=function(K){if(K instanceof Error){var X=_.mz("yt.logging.errors.log");X&&X(K,"WARNING")}};
X74=function(K){try{var X=JSON.parse(K);if(X.bgChallenge)return X}catch(F){}};
P7l=function(){var K=window,X={networkStatusManagerPromise:_.i9().resolve(new dzM(_.lU)),initialChallengeSli:_.S("wpo_att_sli")?new _.m6l("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};K=K===void 0?window:K;var F=K.ytAtR,P;X==null||(P=X.initialChallengeSli)==null||_.s$(P);if(F){if(F=X74(F)){var H;X==null||(H=X.initialChallengeSli)==null||_.zt(H,"SUCCESS");FCq(F,X)}K.ytAtR=void 0}else K.ytAtRC=function(f){if(f=X74(f)){var u;X==null||(u=X.initialChallengeSli)==null||
_.zt(u,"SUCCESS");FCq(f,X);K.ytAtRC=void 0}}};
zuT=function(){if(HqP)return HqP;try{var K=_.nJ("IFRAME");_.W$(K,_.Xs(s6d));K.sandbox.add("allow-same-origin");K.style.display="none";document.body.appendChild(K);return HqP=K}catch(X){K=new _.nG("Failed to create sandbox iframe"),_.jF(K)}};
fSl=function(K){var X,F;return(F=K==null?void 0:(X=K.contentWindow)==null?void 0:X.fetch)!=null?F:window.fetch};
DIl=function(K){var X,F;return(F=K==null?void 0:(X=K.contentWindow)==null?void 0:X.JSON.parse)!=null?F:JSON.parse};
u_O=function(K){var X,F;return(F=K==null?void 0:(X=K.contentWindow)==null?void 0:X.Request)!=null?F:window.Request};
Zq4=function(){if(amw()==="hidden")var K="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else amw()==="visible"&&(K="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",q3y=null);K&&Jz3(K)};
Jz3=function(K){if(K==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||K==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(Y33===K)return;Y33=K}var X=9E4+Math.random()*2E3;if(K!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.xg()>X)&&amw()==="visible"){X=-1;q3y&&(X=Math.round((0,_.CG)()-q3y));var F=String;var P=_.mz("_fact",window);P=P==null||P==-1?-1:Math.max(Date.now()-P,0);_.LL("foregroundHeartbeat",{firstActivityMs:F(P),clientDocumentNonce:nvd,index:String(Q64),lastEventDeltaMs:String(X),trigger:K});
_.gS("_fact",-1,window);Q64++;q3y=(0,_.CG)()}};
_.Mc3=function(){try{return!!self.sessionStorage}catch(K){return!1}};
nHT=function(){var K=navigator;return new Promise(function(X,F){var P;(P=K.webkitTemporaryStorage)!=null&&P.queryUsageAndQuota?K.webkitTemporaryStorage.queryUsageAndQuota(function(H,f){X({usage:H,quota:f})},function(H){F(H)}):F(Error("kj"))})};
czT=function(K,X){var F={errorSeverity:X.errorSeverity.toString(),wizFeatureFlags:Object.entries(X.featureFlags).join("\n")};QvM(X,F);X=X.errorSeverity;X===3?_.jF(K,"ERROR",void 0,void 0,void 0,F):X===2&&_.jF(K,"WARNING",void 0,void 0,void 0,F);_.S("cow_if_errors_in_popup")&&X===3&&K.message.indexOf("<If>")!==-1&&window.alert(K.message)};
p7d=function(K,X,F){K.componentType!==BM&&F instanceof HTMLElement&&X&&!_.S("cow_logging_in_component_wrapper")&&MeP(F,X,!0)};
Be4=function(K,X,F){X=X===void 0?{}:X;var P,H=(P=_.T(K.commandMetadata,_.g_))==null?void 0:P.url;P=X.form||{};!F||P.element||P.skipDefaultElement||(X.form=X.form||{},X.form.element=F);if(H&&H!=="/service_ajax")return{type:0,command:K,form:X.form};if(_.S("kevlar_service_command_check")){if(_.ed(_.i9().resolve(_.L$),K))return Object.assign({},{type:1,command:K},X)}else{var f;if((f=_.T(K.commandMetadata,_.g_))==null?0:f.apiUrl)return Object.assign({},{type:1,command:K},X)}return{type:2,command:K,form:X.form}};
S3l=function(K){if(K.form){var X=K.form,F=Object.assign({},X);X=X.element;F=(delete F.element,F);if(X)return[_.Kl(X,[K.command,F,K.commandController])]}return[]};
oHy=function(K){if(K.form){var X=K.form,F=Object.assign({},X);X=X.element;F=(delete F.element,F);X&&_.X0(X,[K.command],X,F)}};
Ten=function(K,X,F){var P=new LCl(K,X),H=new fk(K,X,F);K={"/youtubei/v1/browse":new DZ(K,X,F),"/youtubei/v1/player":P,"/youtubei/v1/navigation/resolve_url":new ur,"/youtubei/v1/next":H,"/youtubei/v1/guide":new qL(F),"/youtubei/v1/search":new J4(K,X,F),"/youtubei/v1/reel/reel_item_watch":new ZZ(K,X,F),"/youtubei/v1/get_watch":new YA(P,H)};K["/youtubei/v1/account/account_menu"]=new QP;K["/youtubei/v1/notification/get_notification_menu"]=new ML;return K};
cj=function(){var K=_.i9().resolve(nk);return Promise.resolve(rzl(K,_.FP.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
Az4=function(K){return K&&(K=_.pk(_.KIl(K)))?(new URLSearchParams(K)).get("service"):null};
oi=function(K,X){_.xO(_.Bj(),function(){_.Ac("adl")});
_.i9().resolve(j6T)(X);K=K.root;K.loadData&&K.loadData(X);(X==null?0:X.response)?_.zt(vvM(),"SUCCESS"):_.yy(new _.nG("Lifecycle: No response in data",_.RU("IS_SHELL_LOAD"),X?X.page:"NO_PAGE",X?X.endpoint:"NO_ENDPOINT"));K.polymerController.$["page-manager"].lazyPrepareCriticalPages((X==null?void 0:X.page)||"",X.endpoint);var F,P;((P=_.T(X==null?void 0:(F=X.endpoint)==null?void 0:F.commandMetadata,_.g_))==null?0:P.webPageType)&&_.aA().dispatch(_.SN(_.T(X.endpoint.commandMetadata,_.g_).webPageType))};
w7w=function(){var K,X;return _.q(function(F){switch(F.nextAddress){case 1:K=window;if(!K.getDataPromise){F.jumpTo(2);break}_.s2(F,3);return _.Y(F,K.getDataPromise(),5);case 5:return F.return(F.yieldResult);case 3:return _.qc(F),_.Y(F,cj(),6);case 6:return F.return(F.yieldResult);case 2:if(K.getInitialData)return X=K.getInitialData(),K.getInitialData=void 0,F.return(X);throw Error("mj`"+_.FP.location.href);}})};
WCl=function(){_.d2("CSI_SERVICE_NAME","youtube");_.T6({loadType:"cold"});_.S("kevlar_log_lcp")&&yzn(function(K){_.Ac("lcp",K.value)})};
dIT=function(){var K=_.lB(document.location.href,"enable");K&&K.indexOf("scraper")>-1&&_.d2("ADD_SCRAPER_ATTRIBUTES",!0)};
mIn=function(K){var X=K.root;K=[eud,RuO,_.Lk];_.S("web_feedback_endpoint_autolog_allowlist_killswitch")&&K.push(_.Tt,UIy);hul(function(F,P){return Be4(F,P,X)},function(F){if(!F.command)return[];
var P;((P=F.form)==null?0:P.element)?F.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},F.form,{endpoint:F.command})})):X.handleNavigate(F);return[]},K);
_.i9().addProvider({provide:_.xU,useValue:_.Hn.instance})};
lSM=function(){var K={},X={},F;for(F in Gc3){var P=_.D(_.u_(Gc3[F],void 0,"NBH2te"));K[F]=P.next().value;X[F]=P.next().value}return[K,function(H){for(var f in H){var u=void 0;(u=X[f])==null||u(H[f])}}]};
_.tcM=function(K,X){var F=_.T8.getValueByKeys(K,"contents","twoColumnWatchNextResults","results","results","contents"),P=_.T8.getValueByKeys(K,"contents","twoColumnWatchNextResults","playlist","playlist")||null,H=null,f=null;if(P)H=_.T8.getValueByKeys(P,"titleText"),f=_.T8.unsafeClone(_.T8.getValueByKeys(P,"longBylineText")),F="",f&&(F=_.lj(f)),f=_.GS(F);else if(F){F=_.D(F);for(var u=F.next();!u.done;u=F.next())u=u.value,u.videoPrimaryInfoRenderer&&(H=_.T8.getValueByKeys.apply(_.T8,[u].concat(_.LZ(vHn)))),
u.videoSecondaryInfoRenderer&&(f=_.T8.getValueByKeys.apply(_.T8,[u].concat(_.LZ(aSy))))}else _.Gr(Error("rj"));var J;K.currentVideoEndpoint?J=K.currentVideoEndpoint:_.Gr(Error("sj"));var Z;X&&(Z=_.T8.getValueByKeys(X,"playabilityStatus","miniplayer","miniplayerRenderer"));K={miniplayerTitle:H,miniplayerSubtitle:f,watchEndpoint:J,playlistData:P};Z&&(K.miniplayerRenderer=Z);return K};
$Iy=function(K){if(K)return _.TD(K)};
_.OqT=function(){return{isFullscreen:function(){throw Error("tj");},
toggleFullscreen:function(){throw Error("uj");},
exitFullscreen:function(){throw Error("vj");},
isAutonavEnabled:function(){throw Error("wj");},
setAutonavEnabled:function(){throw Error("xj");},
isAutoplaySetExplicitly:function(){throw Error("yj");}}};
Vcl=function(K){return K.videoDuration?K.numTaps>1&&K.tapDirection!==0?_.rH(K.draggedTime/K.videoDuration,0,1):_.rH((K.playedTime||0)/K.videoDuration,0,1):0};
gHO=function(K){return K.videoDuration?K.isDragging||K.numTaps>1&&K.tapDirection!==0?_.rH(K.draggedTime/K.videoDuration,0,1):_.rH((K.playedTime||0)/K.videoDuration,0,1):0};
bqP=function(K){var X,F,P;return _.T(K==null?void 0:(X=K.markersMap)==null?void 0:(F=X.find(function(H){return H.key==="HEATSEEKER"}))==null?void 0:(P=F.value)==null?void 0:P.heatmap,EHP)};
C7y=function(K){var X,F;return(F=(X=bqP(K))==null?void 0:X.heatMarkersDecorations)!=null?F:[]};
Ned=function(K){if(_.S("mweb_supported_chapters_killswitch"))return!0;var X;return!!(K==null?0:(X=K.markersMap)==null?0:X.find(function(F){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(F.key)}))};
_.iqO=function(K){var X=Object,F=X.assign,P;K={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(P=K==null?void 0:K.getPlayerState())!=null?P:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return F.call(X,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},K,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
xIy=function(K){return function(X){var F=K(),P,H=(P=F.playerApi)==null?void 0:P.getPlayerState();X&&X!==F.playerState&&(X===1||X===2)&&F.setState({playerState:H})}};
kcP=function(K){return function(X){var F=K(),P=F.playerApi;P&&(X==null?void 0:X.type)==="newdata"&&(ISd&&(clearTimeout(ISd),ISd=void 0),_.S("web_shorts_use_progress_state_for_gapless")?(X=P==null?void 0:P.getProgressState(X==null?void 0:X.playertype),X=X.seekableEnd-X.seekableStart):X=P==null?void 0:P.getDuration(X==null?void 0:X.playertype),F.setState({playedTime:0,videoDuration:X}))}};
K1P=function(K){return function(X){var F=K(),P=F.playerApi;if(P){var H=P.getPresentingPlayerType();_.S("web_shorts_use_progress_state_for_gapless")?(P=P.getProgressState(H),P=P.seekableEnd-P.seekableStart):P=P.getDuration(H);F.setState({playedTime:X,videoDuration:P})}}};
PPl=function(K){var X=K.element;var F=K.veType;var P=K.storedVisualElement===void 0?null:K.storedVisualElement;var H=K.elementIndex===void 0?0:K.elementIndex;K=K.clientYouTubeData;var f=_.AD();f!==XQT&&(F1l.clear(),XQT=f);if(X.visualElement&&F1l.has(X.visualElement))return null;if(P&&F1l.has(P))return X.visualElement=P,null;F=_.Da(_.uH(),{veType:F,elementIndex:H,clientYouTubeData:K});if(!F)return null;X.visualElement=F;F1l.add(F);return F};
_.A4=function(K,X,F,P){F=F===void 0?null:F;P=P===void 0?le4:P;var H=H===void 0?null:H;Bn(function(){if(X){F instanceof Function&&(F=F());var f=PPl({element:X,veType:K,storedVisualElement:F,clientYouTubeData:void 0});f&&(tSd(X,H),P(f))}})};
sFy=function(K){_.A4(112394,K,function(){return Hm4},function(X){Hm4=X})};
DNl=function(K,X){if(!K)return[];var F,P,H;K=((F=K.markersMap)==null?void 0:(P=F.find(function(f){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(f.key)}))==null?void 0:(H=P.value)==null?void 0:H.chapters)||[];
!zsl(K)||(X==null?0:X.ignoreStub)||(K=[f3l()].concat(_.LZ(K)));return K};
f3l=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
zsl=function(K){if(K.length===0)return!1;var X;return((X=_.T(K[0],jN))==null?void 0:X.timeRangeStartMillis)!==0};
wH=function(K){return K?K.timeRangeStartMillis||0:0};
q83=function(K,X){if(K.isDragging&&X)return K=udy(K,X),K===-1?f3l():DNl(X)[K]};
udy=function(K,X){return K.isDragging&&X?DNl(X,{ignoreStub:!0}).findIndex(function(F,P,H){F=Jyq(K);return ZmP(F,H,P).scrubberHovering}):-1};
Jyq=function(K){return Object.assign({},K,{videoDuration:K.videoDuration*1E3,playedTime:K.playedTime*1E3,draggedTime:K.draggedTime*1E3})};
ZmP=function(K,X,F){var P=wH(_.T(X[F],jN));X=wH(_.T(X[F+1],jN))||K.videoDuration;F=K.isDragging;var H;if(H=K.isDragging)H=K.draggedTime,H=H!==null&&H>=P&&H<X;var f=K.playedTime;return f!==null&&f>=P&&f<X?{videoPosition:"active",isScrubbing:F,scrubberHovering:H}:K.playedTime<P?{videoPosition:"pending",isScrubbing:F,scrubberHovering:H}:{videoPosition:"seen",isScrubbing:F,scrubberHovering:H}};
Y8d=function(K,X){return K.videoPosition==="seen"||(X===void 0?0:X)>0};
QFl=function(K,X,F){X=K/X.storyboardInterval;var P=DNl(F);if(!P.length)return-X*72;F=0;P=_.D(P);for(var H=P.next();!H.done;H=P.next())if(wH(_.T(H.value,jN))/1E3<K)F++;else break;return-(X*72)-F*56};
M$y=function(K){return K?K.width/K.columns:0};
ntd=function(K){return K.isHovering?K.hoveredTime:K.draggedTime};
cyy=function(K,X){K=K.draggedTime*1E3;return K>=X.visibleTimeRangeStartMillis&&K<=X.visibleTimeRangeEndMillis};
_.pQ9=function(K){if(K===void 0||Number.isNaN(K))return"--:--";var X=Math.abs(Math.floor(K)),F=Math.floor(X/86400),P=Math.floor(X%86400/3600),H=Math.floor(X%3600/60);X=Math.floor(X%60);var f="";F>0&&(f+=F+":",P<10&&(f+="0"));if(F>0||P>0)f+=P+":",H<10&&(f+="0");f+=H+":";X<10&&(f+="0");f+=X;return K>=0?f:"-"+f};
Btq=function(K,X){return function(){var F=ntd(K());var P=X();var H=K().playerApi;if(H&&H.getNumberOfStoryboardLevels()!==0){var f=H.getStoryboardFrameIndex(F,1);f!==-1?P=H.getStoryboardFrame(f,1):(F=H.getStoryboardFrameIndex(F,0),H=H.getStoryboardFrame(F,0),P&&H&&(H.height*=3,H.width*=3),P=H)}else P=null;if(!P)return null;X()&&(P.width=90*P.columns,P.height=160*P.rows);return P}};
_.yP=function(K){if(!K||K.getVideoData)return K};
S8q=function(){var K;return{playerApi:(K=_.Ix())!=null?K:void 0}};
otO=function(K){var X;_.q(function(F){if(F.nextAddress==1)return _.Y(F,_.xf(),2);if(X=F.yieldResult)X.unMute(!0),X.setVolume(K,!0);_.JT(F)})};
L1n=function(K,X){K&&(K.value=""+X,K.style.setProperty("--gradient-percent",X+"%"))};
TtM=function(K){var X;return(X=K==null?void 0:K.value)!=null?X:0};
ry3=function(){var K;_.q(function(X){if(X.nextAddress==1)return _.Y(X,_.xf(),2);K=X.yieldResult;if(!K)return X.return();K.isMuted()?K.unMute(!0):K.mute(!0);_.JT(X)})};
Ayy=function(K){var X=_.i9().resolve(_.Wj).getPlayerElement();X&&K&&(K===1?X.pause():X.play())};
jFy=function(K){_.IJ(K,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
wQw=function(K){_.IJ(K,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
W1M=function(K){return _.L9(K.document.body,function(){return _.Q(yyT,null)})};
dNP=function(){var K=window.performance.getEntriesByType("navigation");return K?K.map(function(X){return X.type}).includes("reload"):!1};
vt3=function(){dH(dH(dH(dH(dH(dH(dH(_.i9().resolve(_.eN),_.es9),_.RsT),_.UNP),_.hsl),_.mNw),_.GR3),_.l3d)};
a3l=function(K,X){X=X===void 0?!1:X;var F,P,H,f;return _.q(function(u){if(u.nextAddress==1)return X||!_.S("kevlar_shorts_seedless_retry_initial_load")||(F=window,P=!(!F.getDataPromise&&!F.getInitialData),P)?_.Y(u,w7w(),2):(setTimeout(a3l.bind(window,K,!0),1E3),u.return());if(u.nextAddress!=3)return H=u.yieldResult,_.Y(u,t$n(H),3);f=u.yieldResult;oi(K,f);_.JT(u)})};
t$n=function(K){var X;if((X=K.response)==null||!X.replacementEndpoint)return _.F0(K);X=_.i9().resolve(nk);K=K.response;_.T(K.replacementEndpoint,_.J6)&&K.sequenceContinuation&&(_.T(K.replacementEndpoint,_.J6).sequenceParams=K.sequenceContinuation);return Ri(X,K.replacementEndpoint,{},_.FP.location.href,"shorts",function(){},function(){return!1})};
$N9=function(K){var X=_.aA(),F,P=_.T((F=K.response)==null?void 0:F.frameworkUpdates,mW),H;F=_.T((H=K.playerResponse)==null?void 0:H.frameworkUpdates,mW);var f;K=_.T((f=K.reelWatchSequenceResponse)==null?void 0:f.frameworkUpdates,mW);P&&_.fI(P,X);F&&_.fI(F,X);K&&_.fI(K,X)};
Omd=function(K){var X;_.S("enable_redirect_linking_for_desktop_web_client")&&((X=window.location.hash)==null?0:X.includes("redirect_state"))&&K.url&&(K.url=K.url.toString()+window.location.hash)};
Et9=function(K){var X=_.i9(),F=X.resolve(nk);X=X.resolve(_.V$9);K.endpoint&&(F=gt9(F,K.endpoint),F.content&&K.response&&_.U$(X,K.response,F.content),F.player&&K.playerResponse&&_.U$(X,K.playerResponse,F.player),F.reelSequence&&K.reelWatchSequenceResponse&&_.U$(X,K.reelWatchSequenceResponse,F.reelSequence))};
h4=function(K,X){$N9(X);var F;(X==null?0:X.url)&&((F=window.location.hash)==null?0:F.includes("redirect_state"))&&(Omd(X),(F=Az4(X.url))&&_.xr(K.root,"yt-initialize-third-party",[F,X]));Et9(X);F=_.i9();var P=F.resolve(bmP);X.playerResponse&&F.resolve(CPl).handleResponse(X.playerResponse);if(X.playerResponse){F=void 0;if(_.S("ab_v_vid_sig")&&X.endpoint){var H,f=(H=_.T(X.endpoint,_.vg))!=null?H:_.T(X.endpoint,_.J6);f&&(F=f.videoId)}Nty(P,X.playerResponse,F)}X.playerResponse&&bEl(X.playerResponse)&&
_.S("web_enable_ab_rsp_cl")?C3w().then(function(){imw(P,X.playerResponse);oi(K,X)}):oi(K,X)};
I3w=function(K){if(K=K.root.data){var X=_.i9().resolve(xNO);K.endpoint&&(K.response&&X.handleResponse(K.response,void 0,document.querySelector("ytd-app")),K.playerResponse&&X.handleResponse(K.playerResponse),K.reelWatchSequenceResponse&&X.handleResponse(K.reelWatchSequenceResponse))}};
kR4=function(K){var X,F,P,H,f,u;return _.q(function(J){switch(J.nextAddress){case 1:X=window;if(!X.getDataPromise){J.jumpTo(2);break}_.s2(J,3);return _.Y(J,X.getDataPromise(),5);case 5:F=J.yieldResult;h4(K,F);_.Gy(J,4);break;case 3:return _.qc(J),_.Y(J,cj(),6);case 6:P=J.yieldResult,oi(K,P);case 4:return J.return();case 2:if(!_.S("sw_nav_preload_pbj")){J.jumpTo(7);break}X.fetchInitialData=function(){var Z;return _.q(function(M){if(M.nextAddress==1)return _.Y(M,cj(),2);Z=M.yieldResult;oi(K,Z);_.JT(M)})};
if(X.getInitialData){X.loadInitialData=function(Z){h4(K,Z)};
H=X.getInitialData();X.getInitialData=void 0;h4(K,H);J.jumpTo(8);break}X.fetchInitialData=void 0;return _.Y(J,cj(),9);case 9:f=J.yieldResult,oi(K,f);case 8:return J.return();case 7:X.getInitialData?(u=X.getInitialData(),X.getInitialData=void 0,h4(K,u)):X.loadInitialData=function(Z){h4(K,Z)},_.JT(J)}})};
KnO=function(K){var X=0;return function(){return X<K.length?{done:!1,value:K[X++]}:{done:!0}}};
Xr3=typeof Object.defineProperties=="function"?Object.defineProperty:function(K,X,F){if(K==Array.prototype||K==Object.prototype)return K;K[X]=F.value;return K};
Fny=function(K){K=["object"==typeof globalThis&&globalThis,K,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var X=0;X<K.length;++X){var F=K[X];if(F&&F.Math==Math)return F}throw Error("a");};
_.Oi=Fny(this);ml=function(K,X){if(X)a:{var F=_.Oi;K=K.split(".");for(var P=0;P<K.length-1;P++){var H=K[P];if(!(H in F))break a;F=F[H]}K=K[K.length-1];P=F[K];X=X(P);X!=P&&X!=null&&Xr3(F,K,{configurable:!0,writable:!0,value:X})}};
ml("Symbol",function(K){if(K)return K;var X=function(f,u){this.$jscomp$symbol$id_=f;Xr3(this,"description",{configurable:!0,writable:!0,value:u})};
X.prototype.toString=function(){return this.$jscomp$symbol$id_};
var F="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",P=0,H=function(f){if(this instanceof H)throw new TypeError("b");return new X(F+(f||"")+"_"+P++,f)};
return H});
ml("Symbol.iterator",function(K){if(K)return K;K=Symbol("c");for(var X="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),F=0;F<X.length;F++){var P=_.Oi[X[F]];typeof P==="function"&&typeof P.prototype[K]!="function"&&Xr3(P.prototype,K,{configurable:!0,writable:!0,value:function(){return Px4(KnO(this))}})}return K});
ml("Symbol.asyncIterator",function(K){return K?K:Symbol("d")});
var Px4=function(K){K={next:K};K[Symbol.iterator]=function(){return this};
return K},Hhl=typeof Object.create=="function"?Object.create:function(K){var X=function(){};
X.prototype=K;return new X},sNy=function(){function K(){function F(){}
new F;Reflect.construct(F,[],function(){});
return new F instanceof F}
if(typeof Reflect!="undefined"&&Reflect.construct){if(K())return Reflect.construct;var X=Reflect.construct;return function(F,P,H){F=X(F,P);H&&Reflect.setPrototypeOf(F,H.prototype);return F}}return function(F,P,H){H===void 0&&(H=F);
H=Hhl(H.prototype||Object.prototype);return Function.prototype.apply.call(F,H,P)||H}}(),zzM;
if(typeof Object.setPrototypeOf=="function")zzM=Object.setPrototypeOf;else{var fIO;a:{var DK9={a:!0},uQP={};try{uQP.__proto__=DK9;fIO=uQP.a;break a}catch(K){}fIO=!1}zzM=fIO?function(K,X){K.__proto__=X;if(K.__proto__!==X)throw new TypeError("e`"+K);return K}:null}_.Gt=zzM;
_.r=function(K,X){K.prototype=Hhl(X.prototype);K.prototype.constructor=K;if(_.Gt)(0,_.Gt)(K,X);else for(var F in X)if(F!="prototype")if(Object.defineProperties){var P=Object.getOwnPropertyDescriptor(X,F);P&&Object.defineProperty(K,F,P)}else K[F]=X[F];K.superClass_=X.prototype};
_.D=function(K){var X=typeof Symbol!="undefined"&&Symbol.iterator&&K[Symbol.iterator];if(X)return X.call(K);if(typeof K.length=="number")return{next:KnO(K)};throw Error("f`"+String(K));};
g0=function(K){for(var X,F=[];!(X=K.next()).done;)F.push(X.value);return F};
_.LZ=function(K){return K instanceof Array?K:g0(_.D(K))};
_.lr=function(K){return qnM(K,K)};
qnM=function(K,X){K.raw=X;Object.freeze&&(Object.freeze(K),Object.freeze(X));return K};
vj=function(K,X){return Object.prototype.hasOwnProperty.call(K,X)};
JCP=typeof Object.assign=="function"?Object.assign:function(K,X){for(var F=1;F<arguments.length;F++){var P=arguments[F];if(P)for(var H in P)vj(P,H)&&(K[H]=P[H])}return K};
ml("Object.assign",function(K){return K||JCP});
var ZhO=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},Yny=function(K){if(K.isRunning_)throw new TypeError("h");
K.isRunning_=!0};
ZhO.prototype.JSC$6750_next_=function(K){this.yieldResult=K};
var QN3=function(K,X){K.abruptCompletion_={exception:X,isException:!0};K.nextAddress=K.catchAddress_||K.finallyAddress_};
ZhO.prototype.return=function(K){this.abruptCompletion_={return:K};this.nextAddress=this.finallyAddress_};
_.Y=function(K,X,F){K.nextAddress=F;return{value:X}};
ZhO.prototype.jumpTo=function(K){this.nextAddress=K};
_.JT=function(K){K.nextAddress=0};
_.s2=function(K,X,F){K.catchAddress_=X;F!=void 0&&(K.finallyAddress_=F)};
_.D4=function(K,X){K.catchAddress_=0;K.finallyAddress_=X||0};
_.Gy=function(K,X,F){K.nextAddress=X;K.catchAddress_=F||0};
_.qc=function(K,X){K.catchAddress_=X||0;X=K.abruptCompletion_.exception;K.abruptCompletion_=null;return X};
_.fZ=function(K,X,F,P){P?K.finallyContexts_[P]=K.abruptCompletion_:K.finallyContexts_=[K.abruptCompletion_];K.catchAddress_=X||0;K.finallyAddress_=F||0};
_.uK=function(K,X,F){F=K.finallyContexts_.splice(F||0)[0];(F=K.abruptCompletion_=K.abruptCompletion_||F)?F.isException?K.nextAddress=K.catchAddress_||K.finallyAddress_:F.jumpTo!=void 0&&K.finallyAddress_<F.jumpTo?(K.nextAddress=F.jumpTo,K.abruptCompletion_=null):K.nextAddress=K.finallyAddress_:K.nextAddress=X};
_.M24=function(K){this.JSC$6755_context_=new ZhO;this.program_=K};
cC4=function(K,X){Yny(K.JSC$6755_context_);var F=K.JSC$6755_context_.yieldAllIterator_;if(F)return n74(K,"return"in F?F["return"]:function(P){return{value:P,done:!0}},X,K.JSC$6755_context_.return);
K.JSC$6755_context_.return(X);return ai(K)};
n74=function(K,X,F,P){try{var H=X.call(K.JSC$6755_context_.yieldAllIterator_,F);if(!(H instanceof Object))throw new TypeError("g`"+H);if(!H.done)return K.JSC$6755_context_.isRunning_=!1,H;var f=H.value}catch(u){return K.JSC$6755_context_.yieldAllIterator_=null,QN3(K.JSC$6755_context_,u),ai(K)}K.JSC$6755_context_.yieldAllIterator_=null;P.call(K.JSC$6755_context_,f);return ai(K)};
ai=function(K){for(;K.JSC$6755_context_.nextAddress;)try{var X=K.program_(K.JSC$6755_context_);if(X)return K.JSC$6755_context_.isRunning_=!1,{value:X.value,done:!1}}catch(F){K.JSC$6755_context_.yieldResult=void 0,QN3(K.JSC$6755_context_,F)}K.JSC$6755_context_.isRunning_=!1;if(K.JSC$6755_context_.abruptCompletion_){X=K.JSC$6755_context_.abruptCompletion_;K.JSC$6755_context_.abruptCompletion_=null;if(X.isException)throw X.exception;return{value:X.return,done:!0}}return{value:void 0,done:!0}};
_.prP=function(K){this.next=function(X){Yny(K.JSC$6755_context_);K.JSC$6755_context_.yieldAllIterator_?X=n74(K,K.JSC$6755_context_.yieldAllIterator_.next,X,K.JSC$6755_context_.JSC$6750_next_):(K.JSC$6755_context_.JSC$6750_next_(X),X=ai(K));return X};
this.throw=function(X){Yny(K.JSC$6755_context_);K.JSC$6755_context_.yieldAllIterator_?X=n74(K,K.JSC$6755_context_.yieldAllIterator_["throw"],X,K.JSC$6755_context_.JSC$6750_next_):(QN3(K.JSC$6755_context_,X),X=ai(K));return X};
this.return=function(X){return cC4(K,X)};
this[Symbol.iterator]=function(){return this}};
BUw=function(K){function X(P){return K.next(P)}
function F(P){return K.throw(P)}
return new Promise(function(P,H){function f(u){u.done?P(u.value):Promise.resolve(u.value).then(X,F).then(f,H)}
f(K.next())})};
_.q=function(K){return BUw(new _.prP(new _.M24(K)))};
VyP=function(K){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return K};
this.next=function(X){return Promise.resolve(K.next(X))};
this["throw"]=function(X){return new Promise(function(F,P){var H=K["throw"];H!==void 0?F(H.call(K,X)):(F=K["return"],F!==void 0&&F.call(K),P(new TypeError("i")))})};
K["return"]!==void 0&&(this["return"]=function(X){return Promise.resolve(K["return"](X))})};
_.Ls=function(){for(var K=Number(this),X=[],F=K;F<arguments.length;F++)X[F-K]=arguments[F];return X};
ml("globalThis",function(K){return K||_.Oi});
ml("Reflect",function(K){return K?K:{}});
ml("Reflect.construct",function(){return sNy});
ml("Reflect.setPrototypeOf",function(K){return K?K:_.Gt?function(X,F){try{return(0,_.Gt)(X,F),!0}catch(P){return!1}}:null});
ml("Promise",function(K){function X(){this.batch_=null}
function F(u){return u instanceof H?u:new H(function(J){J(u)})}
if(K&&(typeof _.Oi.PromiseRejectionEvent!=="undefined"||!_.Oi.Promise||_.Oi.Promise.toString().indexOf("[native code]")===-1))return K;X.prototype.asyncExecute=function(u){if(this.batch_==null){this.batch_=[];var J=this;this.asyncExecuteFunction(function(){J.executeBatch_()})}this.batch_.push(u)};
var P=_.Oi.setTimeout;X.prototype.asyncExecuteFunction=function(u){P(u,0)};
X.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var u=this.batch_;this.batch_=[];for(var J=0;J<u.length;++J){var Z=u[J];u[J]=null;try{Z()}catch(M){this.asyncThrow_(M)}}}this.batch_=null};
X.prototype.asyncThrow_=function(u){this.asyncExecuteFunction(function(){throw u;})};
var H=function(u){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var J=this.createResolveAndReject_();try{u(J.resolve,J.reject)}catch(Z){J.reject(Z)}};
H.prototype.createResolveAndReject_=function(){function u(M){return function(n){Z||(Z=!0,M.call(J,n))}}
var J=this,Z=!1;return{resolve:u(this.resolveTo_),reject:u(this.JSC$6771_reject_)}};
H.prototype.resolveTo_=function(u){if(u===this)this.JSC$6771_reject_(new TypeError("j"));else if(u instanceof H)this.settleSameAsPromise_(u);else{a:switch(typeof u){case "object":var J=u!=null;break a;case "function":J=!0;break a;default:J=!1}J?this.resolveToNonPromiseObj_(u):this.fulfill_(u)}};
H.prototype.resolveToNonPromiseObj_=function(u){var J=void 0;try{J=u.then}catch(Z){this.JSC$6771_reject_(Z);return}typeof J=="function"?this.settleSameAsThenable_(J,u):this.fulfill_(u)};
H.prototype.JSC$6771_reject_=function(u){this.settle_(2,u)};
H.prototype.fulfill_=function(u){this.settle_(1,u)};
H.prototype.settle_=function(u,J){if(this.state_!=0)throw Error("k`"+u+"`"+J+"`"+this.state_);this.state_=u;this.result_=J;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
H.prototype.scheduleUnhandledRejectionCheck_=function(){var u=this;P(function(){if(u.notifyUnhandledRejection_()){var J=_.Oi.console;typeof J!=="undefined"&&J.error(u.result_)}},1)};
H.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var u=_.Oi.CustomEvent,J=_.Oi.Event,Z=_.Oi.dispatchEvent;if(typeof Z==="undefined")return!0;typeof u==="function"?u=new u("unhandledrejection",{cancelable:!0}):typeof J==="function"?u=new J("unhandledrejection",{cancelable:!0}):(u=_.Oi.document.createEvent("CustomEvent"),u.initCustomEvent("unhandledrejection",!1,!0,u));u.promise=this;u.reason=this.result_;return Z(u)};
H.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var u=0;u<this.onSettledCallbacks_.length;++u)f.asyncExecute(this.onSettledCallbacks_[u]);this.onSettledCallbacks_=null}};
var f=new X;H.prototype.settleSameAsPromise_=function(u){var J=this.createResolveAndReject_();u.callWhenSettled_(J.resolve,J.reject)};
H.prototype.settleSameAsThenable_=function(u,J){var Z=this.createResolveAndReject_();try{u.call(J,Z.resolve,Z.reject)}catch(M){Z.reject(M)}};
H.prototype.then=function(u,J){function Z(B,L){return typeof B=="function"?function(A){try{M(B(A))}catch(d){n(d)}}:L}
var M,n,c=new H(function(B,L){M=B;n=L});
this.callWhenSettled_(Z(u,M),Z(J,n));return c};
H.prototype.catch=function(u){return this.then(void 0,u)};
H.prototype.callWhenSettled_=function(u,J){function Z(){switch(M.state_){case 1:u(M.result_);break;case 2:J(M.result_);break;default:throw Error("l`"+M.state_);}}
var M=this;this.onSettledCallbacks_==null?f.asyncExecute(Z):this.onSettledCallbacks_.push(Z);this.isRejectionHandled_=!0};
H.resolve=F;H.reject=function(u){return new H(function(J,Z){Z(u)})};
H.race=function(u){return new H(function(J,Z){for(var M=_.D(u),n=M.next();!n.done;n=M.next())F(n.value).callWhenSettled_(J,Z)})};
H.all=function(u){var J=_.D(u),Z=J.next();return Z.done?F([]):new H(function(M,n){function c(A){return function(d){B[A]=d;L--;L==0&&M(B)}}
var B=[],L=0;do B.push(void 0),L++,F(Z.value).callWhenSettled_(c(B.length-1),n),Z=J.next();while(!Z.done)})};
return H});
var t4=function(K,X,F){if(K==null)throw new TypeError("m`"+F);if(X instanceof RegExp)throw new TypeError("n`"+F);return K+""};
ml("String.prototype.startsWith",function(K){return K?K:function(X,F){var P=t4(this,X,"startsWith"),H=P.length,f=X.length;F=Math.max(0,Math.min(F|0,P.length));for(var u=0;u<f&&F<H;)if(P[F++]!=X[u++])return!1;return u>=f}});
ml("Object.setPrototypeOf",function(K){return K||_.Gt});
ml("Symbol.dispose",function(K){return K?K:Symbol("o")});
ml("SuppressedError",function(K){function X(F,P,H){if(!(this instanceof X))return new X(F,P,H);H=Error(H);"stack"in H&&(this.stack=H.stack);this.message=H.message;this.error=F;this.suppressed=P}
if(K)return K;_.r(X,Error);X.prototype.name="SuppressedError";return X});
var Sn9=function(K,X,F){K instanceof String&&(K=String(K));for(var P=K.length,H=0;H<P;H++){var f=K[H];if(X.call(F,f,H,K))return{i:H,v:f}}return{i:-1,v:void 0}};
ml("Array.prototype.find",function(K){return K?K:function(X,F){return Sn9(this,X,F).v}});
ml("WeakMap",function(K){function X(){}
function F(Z){var M=typeof Z;return M==="object"&&Z!==null||M==="function"}
function P(Z){if(!vj(Z,f)){var M=new X;Xr3(Z,f,{value:M})}}
function H(Z){var M=Object[Z];M&&(Object[Z]=function(n){if(n instanceof X)return n;Object.isExtensible(n)&&P(n);return M(n)})}
if(function(){if(!K||!Object.seal)return!1;try{var Z=Object.seal({}),M=Object.seal({}),n=new K([[Z,2],[M,3]]);if(n.get(Z)!=2||n.get(M)!=3)return!1;n.delete(Z);n.set(M,4);return!n.has(Z)&&n.get(M)==4}catch(c){return!1}}())return K;
var f="$jscomp_hidden_"+Math.random();H("freeze");H("preventExtensions");H("seal");var u=0,J=function(Z){this.JSC$6778_id_=(u+=Math.random()+1).toString();if(Z){Z=_.D(Z);for(var M;!(M=Z.next()).done;)M=M.value,this.set(M[0],M[1])}};
J.prototype.set=function(Z,M){if(!F(Z))throw Error("p");P(Z);if(!vj(Z,f))throw Error("q`"+Z);Z[f][this.JSC$6778_id_]=M;return this};
J.prototype.get=function(Z){return F(Z)&&vj(Z,f)?Z[f][this.JSC$6778_id_]:void 0};
J.prototype.has=function(Z){return F(Z)&&vj(Z,f)&&vj(Z[f],this.JSC$6778_id_)};
J.prototype.delete=function(Z){return F(Z)&&vj(Z,f)&&vj(Z[f],this.JSC$6778_id_)?delete Z[f][this.JSC$6778_id_]:!1};
return J});
ml("Map",function(K){if(function(){if(!K||typeof K!="function"||!K.prototype.entries||typeof Object.seal!="function")return!1;try{var J=Object.seal({x:4}),Z=new K(_.D([[J,"s"]]));if(Z.get(J)!="s"||Z.size!=1||Z.get({x:4})||Z.set({x:4},"t")!=Z||Z.size!=2)return!1;var M=Z.entries(),n=M.next();if(n.done||n.value[0]!=J||n.value[1]!="s")return!1;n=M.next();return n.done||n.value[0].x!=4||n.value[1]!="t"||!M.next().done?!1:!0}catch(c){return!1}}())return K;
var X=new WeakMap,F=function(J){this[0]={};this[1]=f();this.size=0;if(J){J=_.D(J);for(var Z;!(Z=J.next()).done;)Z=Z.value,this.set(Z[0],Z[1])}};
F.prototype.set=function(J,Z){J=J===0?0:J;var M=P(this,J);M.list||(M.list=this[0][M.id]=[]);M.entry?M.entry.value=Z:(M.entry={next:this[1],previous:this[1].previous,head:this[1],key:J,value:Z},M.list.push(M.entry),this[1].previous.next=M.entry,this[1].previous=M.entry,this.size++);return this};
F.prototype.delete=function(J){J=P(this,J);return J.entry&&J.list?(J.list.splice(J.index,1),J.list.length||delete this[0][J.id],J.entry.previous.next=J.entry.next,J.entry.next.previous=J.entry.previous,J.entry.head=null,this.size--,!0):!1};
F.prototype.clear=function(){this[0]={};this[1]=this[1].previous=f();this.size=0};
F.prototype.has=function(J){return!!P(this,J).entry};
F.prototype.get=function(J){return(J=P(this,J).entry)&&J.value};
F.prototype.entries=function(){return H(this,function(J){return[J.key,J.value]})};
F.prototype.keys=function(){return H(this,function(J){return J.key})};
F.prototype.values=function(){return H(this,function(J){return J.value})};
F.prototype.forEach=function(J,Z){for(var M=this.entries(),n;!(n=M.next()).done;)n=n.value,J.call(Z,n[1],n[0],this)};
F.prototype[Symbol.iterator]=F.prototype.entries;var P=function(J,Z){var M=Z&&typeof Z;M=="object"||M=="function"?X.has(Z)?M=X.get(Z):(M=""+ ++u,X.set(Z,M)):M="p_"+Z;var n=J[0][M];if(n&&vj(J[0],M))for(J=0;J<n.length;J++){var c=n[J];if(Z!==Z&&c.key!==c.key||Z===c.key)return{id:M,list:n,index:J,entry:c}}return{id:M,list:n,index:-1,entry:void 0}},H=function(J,Z){var M=J[1];
return Px4(function(){if(M){for(;M.head!=J[1];)M=M.previous;for(;M.next!=M.head;)return M=M.next,{done:!1,value:Z(M)};M=null}return{done:!0,value:void 0}})},f=function(){var J={};
return J.previous=J.next=J.head=J},u=0;
return F});
ml("Set",function(K){if(function(){if(!K||typeof K!="function"||!K.prototype.entries||typeof Object.seal!="function")return!1;try{var F=Object.seal({x:4}),P=new K(_.D([F]));if(!P.has(F)||P.size!=1||P.add(F)!=P||P.size!=1||P.add({x:4})!=P||P.size!=2)return!1;var H=P.entries(),f=H.next();if(f.done||f.value[0]!=F||f.value[1]!=F)return!1;f=H.next();return f.done||f.value[0]==F||f.value[0].x!=4||f.value[1]!=f.value[0]?!1:H.next().done}catch(u){return!1}}())return K;
var X=function(F){this.JSC$6792_map_=new Map;if(F){F=_.D(F);for(var P;!(P=F.next()).done;)this.add(P.value)}this.size=this.JSC$6792_map_.size};
X.prototype.add=function(F){F=F===0?0:F;this.JSC$6792_map_.set(F,F);this.size=this.JSC$6792_map_.size;return this};
X.prototype.delete=function(F){F=this.JSC$6792_map_.delete(F);this.size=this.JSC$6792_map_.size;return F};
X.prototype.clear=function(){this.JSC$6792_map_.clear();this.size=0};
X.prototype.has=function(F){return this.JSC$6792_map_.has(F)};
X.prototype.entries=function(){return this.JSC$6792_map_.entries()};
X.prototype.values=function(){return this.JSC$6792_map_.values()};
X.prototype.keys=X.prototype.values;X.prototype[Symbol.iterator]=X.prototype.values;X.prototype.forEach=function(F,P){var H=this;this.JSC$6792_map_.forEach(function(f){return F.call(P,f,f,H)})};
return X});
ml("Math.log2",function(K){return K?K:function(X){return Math.log(X)/Math.LN2}});
ml("Object.values",function(K){return K?K:function(X){var F=[],P;for(P in X)vj(X,P)&&F.push(X[P]);return F}});
ml("Object.is",function(K){return K?K:function(X,F){return X===F?X!==0||1/X===1/F:X!==X&&F!==F}});
ml("Array.prototype.includes",function(K){return K?K:function(X,F){var P=this;P instanceof String&&(P=String(P));var H=P.length;F=F||0;for(F<0&&(F=Math.max(F+H,0));F<H;F++){var f=P[F];if(f===X||Object.is(f,X))return!0}return!1}});
ml("String.prototype.includes",function(K){return K?K:function(X,F){return t4(this,X,"includes").indexOf(X,F||0)!==-1}});
ml("Array.from",function(K){return K?K:function(X,F,P){F=F!=null?F:function(J){return J};
var H=[],f=typeof Symbol!="undefined"&&Symbol.iterator&&X[Symbol.iterator];if(typeof f=="function"){X=f.call(X);for(var u=0;!(f=X.next()).done;)H.push(F.call(P,f.value,u++))}else for(f=X.length,u=0;u<f;u++)H.push(F.call(P,X[u],u));return H}});
ml("Object.entries",function(K){return K?K:function(X){var F=[],P;for(P in X)vj(X,P)&&F.push([P,X[P]]);return F}});
ml("Number.isFinite",function(K){return K?K:function(X){return typeof X!=="number"?!1:!isNaN(X)&&X!==Infinity&&X!==-Infinity}});
ml("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
ml("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
ml("Number.isInteger",function(K){return K?K:function(X){return Number.isFinite(X)?X===Math.floor(X):!1}});
ml("Number.isSafeInteger",function(K){return K?K:function(X){return Number.isInteger(X)&&Math.abs(X)<=Number.MAX_SAFE_INTEGER}});
ml("String.prototype.endsWith",function(K){return K?K:function(X,F){var P=t4(this,X,"endsWith");F===void 0&&(F=P.length);F=Math.max(0,Math.min(F|0,P.length));for(var H=X.length;H>0&&F>0;)if(P[--F]!=X[--H])return!1;return H<=0}});
var o7P=function(K,X){K instanceof String&&(K+="");var F=0,P=!1,H={next:function(){if(!P&&F<K.length){var f=F++;return{value:X(f,K[f]),done:!1}}P=!0;return{done:!0,value:void 0}}};
H[Symbol.iterator]=function(){return H};
return H};
ml("Array.prototype.entries",function(K){return K?K:function(){return o7P(this,function(X,F){return[X,F]})}});
ml("Math.trunc",function(K){return K?K:function(X){X=Number(X);if(isNaN(X)||X===Infinity||X===-Infinity||X===0)return X;var F=Math.floor(Math.abs(X));return X<0?-F:F}});
ml("Number.isNaN",function(K){return K?K:function(X){return typeof X==="number"&&isNaN(X)}});
ml("Array.prototype.keys",function(K){return K?K:function(){return o7P(this,function(X){return X})}});
ml("Array.prototype.values",function(K){return K?K:function(){return o7P(this,function(X,F){return F})}});
ml("Array.prototype.fill",function(K){return K?K:function(X,F,P){var H=this.length||0;F<0&&(F=Math.max(0,H+F));if(P==null||P>H)P=H;P=Number(P);P<0&&(P=Math.max(0,H+P));for(F=Number(F||0);F<P;F++)this[F]=X;return this}});
var $A=function(K){return K?K:Array.prototype.fill};
ml("Int8Array.prototype.fill",$A);ml("Uint8Array.prototype.fill",$A);ml("Uint8ClampedArray.prototype.fill",$A);ml("Int16Array.prototype.fill",$A);ml("Uint16Array.prototype.fill",$A);ml("Int32Array.prototype.fill",$A);ml("Uint32Array.prototype.fill",$A);ml("Float32Array.prototype.fill",$A);ml("Float64Array.prototype.fill",$A);
ml("Object.fromEntries",function(K){return K?K:function(X){var F={};if(!(Symbol.iterator in X))throw new TypeError("r`"+X);X=X[Symbol.iterator].call(X);for(var P=X.next();!P.done;P=X.next()){P=P.value;if(Object(P)!==P)throw new TypeError("s");F[P[0]]=P[1]}return F}});
ml("String.prototype.replaceAll",function(K){return K?K:function(X,F){if(X instanceof RegExp&&!X.global)throw new TypeError("t");return X instanceof RegExp?this.replace(X,F):this.replace(new RegExp(String(X).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),F)}});
ml("Object.getOwnPropertySymbols",function(K){return K?K:function(){return[]}});
ml("String.prototype.repeat",function(K){return K?K:function(X){var F=t4(this,null,"repeat");if(X<0||X>1342177279)throw new RangeError("u");X|=0;for(var P="";X;)if(X&1&&(P+=F),X>>>=1)F+=F;return P}});
ml("Array.prototype.findIndex",function(K){return K?K:function(X,F){return Sn9(this,X,F).i}});
ml("Array.prototype.flatMap",function(K){return K?K:function(X,F){var P=[];Array.prototype.forEach.call(this,function(H,f){H=X.call(F,H,f,this);Array.isArray(H)?P.push.apply(P,H):P.push(H)});
return P}});
ml("String.prototype.codePointAt",function(K){return K?K:function(X){var F=t4(this,null,"codePointAt"),P=F.length;X=Number(X)||0;if(X>=0&&X<P){X|=0;var H=F.charCodeAt(X);if(H<55296||H>56319||X+1===P)return H;X=F.charCodeAt(X+1);return X<56320||X>57343?H:(H-55296)*1024+X+9216}}});
ml("String.fromCodePoint",function(K){return K?K:function(X){for(var F="",P=0;P<arguments.length;P++){var H=Number(arguments[P]);if(H<0||H>1114111||H!==Math.floor(H))throw new RangeError("v`"+H);H<=65535?F+=String.fromCharCode(H):(H-=65536,F+=String.fromCharCode(H>>>10&1023|55296),F+=String.fromCharCode(H&1023|56320))}return F}});
ml("String.prototype.padStart",function(K){return K?K:function(X,F){var P=t4(this,null,"padStart");X-=P.length;F=F!==void 0?String(F):" ";return(X>0&&F?F.repeat(Math.ceil(X/F.length)).substring(0,X):"")+P}});
ml("Promise.prototype.finally",function(K){return K?K:function(X){return this.then(function(F){return Promise.resolve(X()).then(function(){return F})},function(F){return Promise.resolve(X()).then(function(){throw F;
})})}});
ml("Math.imul",function(K){return K?K:function(X,F){X=Number(X);F=Number(F);var P=X&65535,H=F&65535;return P*H+((X>>>16&65535)*H+P*(F>>>16&65535)<<16>>>0)|0}});
ml("Object.hasOwn",function(K){return K?K:function(X,F){return Object.prototype.hasOwnProperty.call(X,F)}});
ml("Math.sign",function(K){return K?K:function(X){X=Number(X);return X===0||isNaN(X)?X:X>0?1:-1}});
ml("Array.prototype.flat",function(K){return K?K:function(X){X=X===void 0?1:X;var F=[];Array.prototype.forEach.call(this,function(P){Array.isArray(P)&&X>0?(P=Array.prototype.flat.call(P,X-1),F.push.apply(F,P)):F.push(P)});
return F}});
ml("String.raw",function(K){return K?K:function(X,F){if(X==null)throw new TypeError("w");for(var P=X.raw,H=P.length,f="",u=0;u<H;++u)f+=P[u],u+1<H&&u+1<arguments.length&&(f+=String(arguments[u+1]));return f}});
ml("Reflect.ownKeys",function(K){return K?K:function(X){var F=[],P=Object.getOwnPropertyNames(X);X=Object.getOwnPropertySymbols(X);for(var H=0;H<P.length;H++)(P[H].substring(0,14)=="jscomp_symbol_"?X:F).push(P[H]);return F.concat(X)}});
ml("Object.getOwnPropertyDescriptors",function(K){return K?K:function(X){for(var F={},P=Reflect.ownKeys(X),H=0;H<P.length;H++)F[P[H]]=Object.getOwnPropertyDescriptor(X,P[H]);return F}});
ml("WeakSet",function(K){if(function(){if(!K||!Object.seal)return!1;try{var F=Object.seal({}),P=Object.seal({}),H=new K([F]);if(!H.has(F)||H.has(P))return!1;H.delete(F);H.add(P);return!H.has(F)&&H.has(P)}catch(f){return!1}}())return K;
var X=function(F){this.JSC$6799_map_=new WeakMap;if(F){F=_.D(F);for(var P;!(P=F.next()).done;)this.add(P.value)}};
X.prototype.add=function(F){this.JSC$6799_map_.set(F,!0);return this};
X.prototype.has=function(F){return this.JSC$6799_map_.has(F)};
X.prototype.delete=function(F){return this.JSC$6799_map_.delete(F)};
return X});
ml("Promise.allSettled",function(K){function X(P){return{status:"fulfilled",value:P}}
function F(P){return{status:"rejected",reason:P}}
return K?K:function(P){var H=this;P=Array.from(P,function(f){return H.resolve(f).then(X,F)});
return H.all(P)}});
ml("Number.parseInt",function(K){return K||parseInt});
_._DumpException=window._DumpException||function(K){throw K;};
window._DumpException=_._DumpException;var Lnq,TUP,O$,VP,rC4,ACP,jN9,wr4,g1,yCP;Lnq=Lnq||{};_.FP=this||self;_.gS=function(K,X,F){K=K.split(".");F=F||_.FP;for(var P;K.length&&(P=K.shift());)K.length||X===void 0?F[P]&&F[P]!==Object.prototype[P]?F=F[P]:F=F[P]={}:F[P]=X};
TUP=function(K){var X=_.mz("WIZ_global_data.oxN3nb");K=X&&X[K];return K!=null?K:!1};
O$=_.FP._F_toggles||[];VP=function(){};
VP.get=function(){return null};
_.mz=function(K,X){K=K.split(".");X=X||_.FP;for(var F=0;F<K.length;F++)if(X=X[K[F]],X==null)return null;return X};
_.gH=function(K){K.instance_=void 0;K.getInstance=function(){return K.instance_?K.instance_:K.instance_=new K}};
_.Jw=function(K){var X=typeof K;return X!="object"?X:K?Array.isArray(K)?"array":X:"null"};
_.xd=function(K){var X=_.Jw(K);return X=="array"||X=="object"&&typeof K.length=="number"};
_.XL=function(K){var X=typeof K;return X=="object"&&K!=null||X=="function"};
_.FL=function(K){return Object.prototype.hasOwnProperty.call(K,rC4)&&K[rC4]||(K[rC4]=++ACP)};
rC4="closure_uid_"+(Math.random()*1E9>>>0);ACP=0;jN9=function(K,X,F){return K.call.apply(K.bind,arguments)};
wr4=function(K,X,F){if(!K)throw Error();if(arguments.length>2){var P=Array.prototype.slice.call(arguments,2);return function(){var H=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(H,P);return K.apply(X,H)}}return function(){return K.apply(X,arguments)}};
_.T3=function(K,X,F){_.T3=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?jN9:wr4;return _.T3.apply(null,arguments)};
_.Jc=function(K,X){var F=Array.prototype.slice.call(arguments,1);return function(){var P=F.slice();P.push.apply(P,arguments);return K.apply(this,P)}};
_.E$=function(){return Date.now()};
g1=function(K){return K};
_.br=function(K,X){function F(){}
F.prototype=X.prototype;K.superClass_=X.prototype;K.prototype=new F;K.prototype.constructor=K;K.base=function(P,H,f){for(var u=Array(arguments.length-2),J=2;J<arguments.length;J++)u[J-2]=arguments[J];return X.prototype[H].apply(P,u)}};
yCP=function(K){return K};var Wnl,dKn;_.O=function(K,X,F,P){var H=arguments.length,f=H<3?X:P===null?P=Object.getOwnPropertyDescriptor(X,F):P,u;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")f=Reflect.decorate(K,X,F,P);else for(var J=K.length-1;J>=0;J--)if(u=K[J])f=(H<3?u(f):H>3?u(X,F,f):u(X,F))||f;return H>3&&f&&Object.defineProperty(X,F,f),f};
_.g=function(K,X){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(K,X)};
Wnl=function(K,X){if(X!==null&&X!==void 0){if(typeof X!=="object"&&typeof X!=="function")throw new TypeError("x");if(F===void 0){if(!Symbol.dispose)throw new TypeError("z");var F=X[Symbol.dispose]}if(typeof F!=="function")throw new TypeError("A");K.stack.push({value:X,dispose:F,async:!1})}return X};
dKn=function(K){function X(f){K.error=K.hasError?new SuppressedError(f,K.error,"An error was suppressed during disposal."):f;K.hasError=!0}
function F(){for(;P=K.stack.pop();)try{if(!P.async&&H===1)return H=0,K.stack.push(P),Promise.resolve().then(F);if(P.dispose){var f=P.dispose.call(P.value);if(P.async)return H|=2,Promise.resolve(f).then(F,function(u){X(u);return F()})}else H|=1}catch(u){X(u)}if(H===1)return K.hasError?Promise.reject(K.error):Promise.resolve();
if(K.hasError)throw K.error;}
var P,H=0;F()};_.br(_.KO,Error);_.KO.prototype.name="CustomError";var ezl;var Rzl=void 0,UKT,hz9=typeof TextDecoder!=="undefined",PTT,F4n=typeof String.prototype.isWellFormed==="function",XyP=typeof TextEncoder!=="undefined";var mKy;_.oz=function(K){for(var X=[],F=0,P=0;P<K.length;P++){var H=K.charCodeAt(P);H<128?X[F++]=H:(H<2048?X[F++]=H>>6|192:((H&64512)==55296&&P+1<K.length&&(K.charCodeAt(P+1)&64512)==56320?(H=65536+((H&1023)<<10)+(K.charCodeAt(++P)&1023),X[F++]=H>>18|240,X[F++]=H>>12&63|128):X[F++]=H>>12|224,X[F++]=H>>6&63|128),X[F++]=H&63|128)}return X};
mKy=function(K){for(var X=[],F=0,P=0;F<K.length;){var H=K[F++];if(H<128)X[P++]=String.fromCharCode(H);else if(H>191&&H<224){var f=K[F++];X[P++]=String.fromCharCode((H&31)<<6|f&63)}else if(H>239&&H<365){f=K[F++];var u=K[F++],J=K[F++];H=((H&7)<<18|(f&63)<<12|(u&63)<<6|J&63)-65536;X[P++]=String.fromCharCode(55296+(H>>10));X[P++]=String.fromCharCode(56320+(H&1023))}else f=K[F++],u=K[F++],X[P++]=String.fromCharCode((H&15)<<12|(f&63)<<6|u&63)}return X.join("")};var Yd=String.prototype.trim?function(K){return K.trim()}:function(K){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(K)[1]},Ghq=/&/g,lIn=/</g,v7P=/>/g,aIy=/"/g,t2P=/'/g,$Kd=/\x00/g,Ohw=/[\x00&<>"']/;var V2T=!!(O$[0]>>15&1),g7T=!!(O$[0]>>16&1),E73=!!(O$[0]&2),bhl=!!(O$[0]&4),Cxy=!!(O$[0]&16);var cy=V2T?g7T:TUP(610401301),NUP=V2T?E73:TUP(513659523),ih3=V2T?bhl:TUP(568333945),DXd=V2T?Cxy:TUP(1331761403);var SP,xKl=_.FP.navigator;SP=xKl?xKl.userAgentData||null:null;var aa;_.tM=function(K,X){return Array.prototype.indexOf.call(K,X,void 0)};
_.vd=function(K,X,F){Array.prototype.forEach.call(K,X,F)};
_.Ck=function(K,X,F){return Array.prototype.filter.call(K,X,F)};
_.AE=function(K,X,F){return Array.prototype.map.call(K,X,F)};
aa=function(K,X,F){return Array.prototype.some.call(K,X,F)};
_.i3y=function(K,X,F){return Array.prototype.every.call(K,X,F)};var NL=function(K){NL[" "](K);return K};
NL[" "]=function(){};
var Wf=function(K,X){try{return NL(K[X]),!0}catch(F){}return!1},oU9=function(K,X,F,P){P=P?P(X):X;
return Object.prototype.hasOwnProperty.call(K,P)?K[P]:K[P]=F(X)};var IIn,OU,kh4,KxP,Fxl,Pln,F9P,Hnw,smT,zCl,cJy,DG4,uGn,Y5y,Qmy,MVP;_.joM=function(){return _.FP.navigator||null};
IIn=AM();_.ir=zyl();OU=Tn("Edge");kh4=OU||_.ir;_.xA=Tn("Gecko")&&!(_.JM(_.nO(),"WebKit")&&!Tn("Edge"))&&!(Tn("Trident")||Tn("MSIE"))&&!Tn("Edge");_.Ii=_.JM(_.nO(),"WebKit")&&!Tn("Edge");KxP=_.Ii&&Tn("Mobile");_.Xll=_.Q3l();Fxl=_.MPl();Pln=(Ul()?SP.platform==="Linux":Tn("Linux"))||_.ndy();F9P=_.ZOl();Hnw=Yll();smT=Tn("iPad");zCl=Tn("iPod");_.f7T=_.hM();cJy=_.JM(_.nO(),"KaiOS");DG4=function(){var K=_.FP.document;return K?K.documentMode:void 0};
a:{var q5l="",J89=function(){var K=_.nO();if(_.xA)return/rv:([^\);]+)(\)|;)/.exec(K);if(OU)return/Edge\/([\d\.]+)/.exec(K);if(_.ir)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(K);if(_.Ii)return/WebKit\/(\S+)/.exec(K);if(IIn)return/(?:Version)[ \/]?(\S+)/.exec(K)}();
J89&&(q5l=J89?J89[1]:"");if(_.ir){var Znq=DG4();if(Znq!=null&&Znq>parseFloat(q5l)){uGn=String(Znq);break a}}uGn=q5l}Y5y=uGn;Qmy={};_.kA=function(K){return oU9(Qmy,K,function(){return _.Q9(Y5y,K)>=0})};
if(_.FP.document&&_.ir){var nB3=DG4();MVP=nB3?nB3:parseInt(Y5y,10)||void 0}else MVP=void 0;_.c84=MVP;var AD3,jJy,plq;_.KM=ww();AD3=Yll()||Tn("iPod");jJy=Tn("iPad");plq=_.Dq3();_.XX=_.dw();_.dS=_.R3()&&!_.hM();var B6P,FX,bsO,kCT,oBw,S5d;B6P={};FX=null;bsO=_.xA||_.Ii||typeof _.FP.btoa=="function";_.iW=function(K,X){X===void 0&&(X=0);S5d();X=B6P[X];for(var F=Array(Math.floor(K.length/3)),P=X[64]||"",H=0,f=0;H<K.length-2;H+=3){var u=K[H],J=K[H+1],Z=K[H+2],M=X[u>>2];u=X[(u&3)<<4|J>>4];J=X[(J&15)<<2|Z>>6];Z=X[Z&63];F[f++]=M+u+J+Z}M=0;Z=P;switch(K.length-H){case 2:M=K[H+1],Z=X[(M&15)<<2]||P;case 1:K=K[H],F[f]=X[K>>2]+X[(K&3)<<4|M>>4]+Z+P}return F.join("")};
kCT=function(K){var X="";oBw(K,function(F){X+=String.fromCharCode(F)});
return X};
_.xCT=function(K){var X=[];oBw(K,function(F){X.push(F)});
return X};
_.Jt=function(K){var X=K.length,F=X*3/4;F%3?F=Math.floor(F):_.qq("=.",K[X-1])&&(F=_.qq("=.",K[X-2])?F-2:F-1);var P=new Uint8Array(F),H=0;oBw(K,function(f){P[H++]=f});
return H!==F?P.subarray(0,H):P};
oBw=function(K,X){function F(Z){for(;P<K.length;){var M=K.charAt(P++),n=FX[M];if(n!=null)return n;if(!_.fO(M))throw Error("E`"+M);}return Z}
S5d();for(var P=0;;){var H=F(-1),f=F(0),u=F(64),J=F(64);if(J===64&&H===-1)break;X(H<<2|f>>4);u!=64&&(X(f<<4&240|u>>2),J!=64&&X(u<<6&192|J))}};
S5d=function(){if(!FX){FX={};for(var K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),X=["+/=","+/","-_=","-_.","-_"],F=0;F<5;F++){var P=K.concat(X[F].split(""));B6P[F]=P;for(var H=0;H<P.length;H++){var f=P[H];FX[f]===void 0&&(FX[f]=H)}}}};var mqd=typeof Uint8Array!=="undefined",j3w=!_.ir&&typeof btoa==="function",wyP=/[-_.]/g,rMl={"-":"+",_:"/",".":"="},mt={};var UZ,T6l;UZ=function(K,X){if(X!==mt)throw Error("G");this.JSC$6830_value_=K;if(K!=null&&K.length===0)throw Error("F");};
_.GE=function(){return Lxq||(Lxq=new UZ(null,mt))};
T6l=function(K){return new Uint8Array(ey(K)||0)};
UZ.prototype.isEmpty=function(){return this.JSC$6830_value_==null};
UZ.prototype.sizeBytes=function(){var K=ey(this);return K?K.length:0};
var ey=function(K){if(mt!==mt)throw Error("G");var X=K.JSC$6830_value_;X=X==null||mqd&&X!=null&&X instanceof Uint8Array?X:typeof X==="string"?yM4(X):null;return X==null?X:K.JSC$6830_value_=X},Lxq;var dqO=void 0;var oC=typeof Symbol==="function"&&typeof Symbol()==="symbol",r8O=pW("jas",void 0,!0),OV=pW(void 0,"0di"),A0=pW(void 0,"1oa"),EV=pW(void 0,Symbol()),dV4=pW(void 0,"0ub"),RTP=pW(void 0,"0ubs"),mo3=pW(void 0,"0ubsb"),bWy=pW(void 0,"0actk"),as=pW("m_m","messagePrototypeMarker",!0),tUP=pW(void 0,"vps"),wNd=pW();var RyM,ey9,cJ,A8P;RyM={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};ey9=Object.defineProperties;_.LW=oC?r8O:"internalArrayState";A8P=[];At(A8P,7);cJ=Object.freeze(A8P);var $5={},WN={},jmP=function(K,X,F){this.iterable=K;this.mapper=X;this.thisArg=F};
jmP.prototype.next=function(){var K=this.iterable.next();K.done||(K.value=this.mapper.call(this.thisArg,K.value));return K};
jmP.prototype[Symbol.iterator]=function(){return this};
var wly=Object.freeze({}),aC={};_.y8l=VO(function(K){return K!==null&&K!==void 0});var tPP=VO(function(K){return typeof K==="number"}),alT=VO(function(K){return typeof K==="string"}),$qP=VO(function(K){return typeof K==="boolean"}),WxP=VO(function(K){return K!=null&&typeof K==="object"&&typeof K.then==="function"}),Nsn=VO(function(K){return typeof K==="function"}),Xn=VO(function(K){return!!K&&(typeof K==="object"||typeof K==="function")});var EZ=typeof _.FP.BigInt==="function"&&typeof _.FP.BigInt(0)==="bigint";var mv=VO(function(K){return EZ?K>=dGO&&K<=eCP:K[0]==="-"?OOO(K,RCP):OOO(K,UG3)}),RCP=Number.MIN_SAFE_INTEGER.toString(),dGO=EZ?BigInt(Number.MIN_SAFE_INTEGER):void 0,UG3=Number.MAX_SAFE_INTEGER.toString(),eCP=EZ?BigInt(Number.MAX_SAFE_INTEGER):void 0;var hCT=typeof Uint8Array.prototype.slice==="function",iu=0,xC=0,Cx;var yG,Rs,Mo,UV,iOl;yG=typeof BigInt==="function"?BigInt.asIntN:void 0;_.hw=typeof BigInt==="function"?BigInt.asUintN:void 0;Rs=Number.isSafeInteger;Mo=Number.isFinite;UV=Math.trunc;iOl=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var $Vy={};var Aty={},mGy=function(){try{var K=function(){return sNy(Map,[],this.constructor)};
_.r(K,Map);NL(new K);return!1}catch(X){return!0}}(),PL=function(){this.JSC$6850_map_=new Map};
_.z=PL.prototype;_.z.get=function(K){return this.JSC$6850_map_.get(K)};
_.z.set=function(K,X){this.JSC$6850_map_.set(K,X);this.size=this.JSC$6850_map_.size;return this};
_.z.delete=function(K){K=this.JSC$6850_map_.delete(K);this.size=this.JSC$6850_map_.size;return K};
_.z.clear=function(){this.JSC$6850_map_.clear();this.size=this.JSC$6850_map_.size};
_.z.has=function(K){return this.JSC$6850_map_.has(K)};
_.z.entries=function(){return this.JSC$6850_map_.entries()};
_.z.keys=function(){return this.JSC$6850_map_.keys()};
_.z.values=function(){return this.JSC$6850_map_.values()};
_.z.forEach=function(K,X){return this.JSC$6850_map_.forEach(K,X)};
PL.prototype[Symbol.iterator]=function(){return this.entries()};
var Is=function(){if(mGy)return Object.setPrototypeOf(PL.prototype,Map.prototype),Object.defineProperties(PL.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),PL;var K=function(){return sNy(Map,[],this.constructor)};
_.r(K,Map);return K}(),VG=function(K,X,F,P){F=F===void 0?SZl:F;
P=P===void 0?SZl:P;var H=Is.call(this)||this;H.arrayState=K[_.LW]|0;H.valueCtor=X;H.keyToApi=F;H.valueToApi=H.valueCtor?Ltl:P;for(var f=0;f<K.length;f++){var u=K[f],J=F(u[0],!1,!0),Z=u[1];X?Z===void 0&&(Z=null):Z=P(u[1],!1,!0,void 0,void 0,H.arrayState);Is.prototype.set.call(H,J,Z)}return H};
_.r(VG,Is);var Gjl=function(K){if(K.arrayState&2)throw Error("K");};
_.z=VG.prototype;_.z.clear=function(){Gjl(this);Is.prototype.clear.call(this)};
_.z.delete=function(K){Gjl(this);return Is.prototype.delete.call(this,this.keyToApi(K,!0,!1))};
_.z.entries=function(){if(this.valueCtor){var K=Is.prototype.keys.call(this);K=new jmP(K,TLl,this)}else K=Is.prototype.entries.call(this);return K};
_.z.values=function(){if(this.valueCtor){var K=Is.prototype.keys.call(this);K=new jmP(K,VG.prototype.get,this)}else K=Is.prototype.values.call(this);return K};
_.z.forEach=function(K,X){this.valueCtor?Is.prototype.forEach.call(this,function(F,P,H){K.call(X,H.get(P),P,H)}):Is.prototype.forEach.call(this,K,X)};
_.z.set=function(K,X){Gjl(this);K=this.keyToApi(K,!0,!1);return K==null?this:X==null?(Is.prototype.delete.call(this,K),this):Is.prototype.set.call(this,K,this.valueToApi(X,!0,!0,this.valueCtor,!1,this.arrayState))};
_.z.has=function(K){return Is.prototype.has.call(this,this.keyToApi(K,!1,!1))};
_.z.get=function(K){K=this.keyToApi(K,!1,!1);var X=Is.prototype.get.call(this,K);if(X!==void 0){var F=this.valueCtor;return F?(F=this.valueToApi(X,!1,!0,F,this.callToMutableOnAccess,this.arrayState),F!==X&&Is.prototype.set.call(this,K,F),F):X}};
VG.prototype[Symbol.iterator]=function(){return this.entries()};
VG.prototype.toJSON=void 0;var rtP;var mV4=function(){},Ct=function(K,X){for(var F in K)!isNaN(F)&&X(K,+F,K[F])},GEd=function(K){var X=new mV4;
Ct(K,function(F,P,H){X[P]=HF(H)});
X.reviveUnknownFields=K.reviveUnknownFields;return X},ytP={reviveIntoImmutable:!0};var hT4;var OWO,VU4;var l7w,o0,DW,Y3,vBd,Jb,J_,a7O,tVy,cL,$Gl,pM,oc,LM;l7w=_.CW(0);_.HL={};_.sX=function(K,X,F,P,H){X=o0(K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X,F,H);if(X!==null||P&&K.noLegacyNull!==WN)return X};
o0=function(K,X,F,P){if(X===-1)return null;var H=X+(F?0:-1),f=K.length-1;if(!(f<1+(F?0:-1))){if(H>=f){var u=K[f];if(u!=null&&typeof u==="object"&&u.constructor===Object){F=u[X];var J=!0}else if(H===f)F=u;else return}else F=K[H];if(P&&F!=null){P=P(F);if(P==null)return P;if(!Object.is(P,F))return J?u[X]=P:K[H]=P,P}return F}};
_.kS=function(K,X,F,P){Y8(K);var H=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;nx(H,H[_.LW]|0,X,F,P);return K};
_.zQ=function(K,X,F){K=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return jy(K,K[_.LW]|0,X,F)!==void 0};
_.fM=function(K,X,F,P){var H=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return jy(H,H[_.LW]|0,X,Y3(K,P,F))!==void 0};
_.KJ=function(K){return K===wly?2:4};
_.DR=function(K,X){K=_.sX(K,X,void 0,void 0,KvT);return K==null?_.GE():K};
DW=function(K,X,F,P){Y8(K);var H=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=H[_.LW]|0;if(P==null){var u=FvT(H);if(PWl(u,H,f,F)===X)u.set(F,0);else return K}else f=HtP(H,f,F,X);nx(H,f,X,P);return K};
_.uQ=function(K,X,F,P){var H=K[_.LW]|0,f=$C(H);H=HtP(K,H,F,X,f);nx(K,H,X,P,f)};
Y3=function(K,X,F){return _.qe(K,X)===F?F:-1};
_.qe=function(K,X){K=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return PWl(FvT(K),K,void 0,X,void 0)};
vBd=function(K,X,F){var P=K[_.LW]|0,H=$C(P),f=o0(K,F,H);if(f!=null&&f[as]===$5){if(!eU(f))return uc(f),f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var u=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(f)&&(u=f);if(u){var J=u[_.LW]|0;J&2&&(u=HJ(u,J))}u=PJ(u,X,!0);u!==f&&nx(K,P,F,u,H);return u};
_.xS=function(K,X,F,P){var H=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=H[_.LW]|0;X=jy(H,f,X,F,P);if(X==null)return X;f=H[_.LW]|0;if(!eU(K,f)){var u=oCd(X);u!==X&&(uc(K)&&(H=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=H[_.LW]|0),X=u,f=nx(H,f,F,X,P),Qd(H,f))}return X};
_.kp=function(K,X,F,P){var H=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return ss3(K,H,H[_.LW]|0,X,F,P,!1,!0)};
_.Fw=function(K,X,F,P){F=z8d(F);_.kS(K,X,F,P);F&&!eU(F)&&Qd(K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return K};
_.P$=function(K,X,F,P){P=z8d(P);DW(K,X,F,P);P&&!eU(P)&&Qd(K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return K};
Jb=function(K,X,F){Y8(K);var P=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H=P[_.LW]|0;if(F==null)return nx(P,H,X),K;for(var f=F===cJ?7:F[_.LW]|0,u=f,J=Sy(f),Z=J||Object.isFrozen(F),M=!0,n=!0,c=0;c<F.length;c++){var B=F[c];J||(B=eU(B),M&&(M=!B),n&&(n=B))}J||(f=M?13:5,f=n?f&-4097:f|4096);Z&&f===u||(F=HF(F),u=0,f=px(f,H));f!==u&&At(F,f);H=nx(P,H,X,F);2&f||!(4096&f||16&f)||Qd(P,H);return K};
J_=function(K,X,F,P){Dod(K,X,F,P);return K};
a7O=function(K,X,F){Dod(K,X,ZR,void 0,F,1,!0);return K};
_.Me=function(K,X,F){K=_.sX(K,X,void 0,F);X=typeof K;K=K==null?K:X==="bigint"?_.CW((0,_.hw)(64,K)):_.pt(K)?X==="string"?_.Jt9(K):_.uLd(K):void 0;return K};
_.nM=function(K,X){var F=F===void 0?!1:F;var P;return(P=_.Nw9(_.sX(K,X)))!=null?P:F};
_.XA=function(K,X,F){F=F===void 0?0:F;var P;return(P=_.Aw(_.sX(K,X)))!=null?P:F};
tVy=function(K,X){var F=F===void 0?0:F;K=_.jk(_.sX(K,X));return K!=null?K:F};
cL=function(K,X,F){F=F===void 0?l7w:F;var P;return(P=_.QCq(_.sX(K,X)))!=null?P:F};
$Gl=function(K){var X=X===void 0?l7w:X;var F;return(F=_.Me(K,23))!=null?F:X};
pM=function(K,X){var F=F===void 0?0:F;var P;return(P=_.sX(K,X,void 0,void 0,_.qo))!=null?P:F};
_.BL=function(K,X,F,P){F=F===void 0?"":F;var H;return(H=_.vF(_.sX(K,X,P)))!=null?H:F};
_.S3=function(K,X){var F=F===void 0?0:F;var P;return(P=_.Lt(_.sX(K,X)))!=null?P:F};
oc=function(K,X){var F=F===void 0?"0":F;K=YZl(_.sX(K,X),!0);return K!=null?K:F};
LM=function(K,X,F){return _.BL(K,Y3(K,F,X))};
_.TQ=function(K,X,F,P){return _.xS(K,X,Y3(K,P,F),void 0)};
_.Mg=function(K,X){return _.vF(_.sX(K,X,void 0,_.HL))};
_.sw=function(K,X,F){return _.kS(K,X,CTl(F))};
_.oJ=function(K,X,F){return _.Tm(K,X,CTl(F),!1)};
_.rd=function(K,X,F){return _.kS(K,X,_.r1(F))};
_.MF=function(K,X,F){return _.kS(K,X,ek(F))};
_.Qf=function(K,X,F){return _.kS(K,X,lW(F))};
_.$R=function(K,X,F,P){return _.Tm(K,X,lW(F),"",P)};
_.It=function(K,X,F){return _.kS(K,X,F==null?F:_.os(F))};
_.Ab=function(K,X,F){return _.Tm(K,X,F==null?F:_.os(F),0)};var wj=function(K,X,F){this.buffer=K;if(F&&!X)throw Error();this.JSC$6862_isImmutable=X};var OnO=function(K,X,F,P){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6865_start_=0;this.init(K,X,F,P)},j3,gBw,EB3,Cll,wFy,VVP;
_.z=OnO.prototype;_.z.init=function(K,X,F,P){var H=P===void 0?{}:P;P=H.aliasBytesFields===void 0?!1:H.aliasBytesFields;H=H.treatNewDataAsImmutable===void 0?!1:H.treatNewDataAsImmutable;this.aliasBytesFields=P;this.treatNewDataAsImmutable=H;K&&(K=u8n(K,this.treatNewDataAsImmutable),this.bytes_=K.buffer,this.bytesAreImmutable_=K.JSC$6862_isImmutable,this.JSC$6865_start_=X||0,this.end_=F!==void 0?this.JSC$6865_start_+F:this.bytes_.length,this.cursor_=this.JSC$6865_start_)};
_.z.free=function(){this.clear();VVP.length<100&&VVP.push(this)};
_.z.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6865_start_=0;this.aliasBytesFields=!1};
_.z.reset=function(){this.cursor_=this.JSC$6865_start_};
_.z.atEnd=function(){return this.cursor_==this.end_};
_.wd=function(K,X){var F=0,P=0,H=0,f=K.bytes_,u=K.cursor_;do{var J=f[u++];F|=(J&127)<<H;H+=7}while(H<32&&J&128);H>32&&(P|=(J&127)>>4);for(H=3;H<32&&J&128;H+=7)J=f[u++],P|=(J&127)<<H;j3(K,u);if(J<128)return X(F>>>0,P>>>0);throw Error("X");};
j3=function(K,X){K.cursor_=X;if(X>K.end_)throw Error("Y`"+X+"`"+K.end_);};
_.yg=function(K){var X=K.bytes_,F=K.cursor_,P=X[F++],H=P&127;if(P&128&&(P=X[F++],H|=(P&127)<<7,P&128&&(P=X[F++],H|=(P&127)<<14,P&128&&(P=X[F++],H|=(P&127)<<21,P&128&&(P=X[F++],H|=P<<28,P&128&&X[F++]&128&&X[F++]&128&&X[F++]&128&&X[F++]&128&&X[F++]&128)))))throw Error("X");j3(K,F);return H};
_.WL=function(K){var X=K.bytes_,F=K.cursor_,P=X[F],H=X[F+1],f=X[F+2];X=X[F+3];j3(K,K.cursor_+4);return(P<<0|H<<8|f<<16|X<<24)>>>0};
gBw=function(K){var X=_.WL(K);K=_.WL(K);return EdM(X,K)};
EB3=function(K){var X=_.WL(K),F=_.WL(K);K=(F>>31)*2+1;var P=F>>>20&2047;X=4294967296*(F&1048575)+X;return P==2047?X?NaN:K*Infinity:P==0?K*4.9E-324*X:K*Math.pow(2,P-1075)*(X+4503599627370496)};
_.bnd=function(K){for(var X=0,F=K.cursor_,P=F+10,H=K.bytes_;F<P;){var f=H[F++];X|=f;if((f&128)===0)return j3(K,F),!!(X&127)}throw Error("X");};
Cll=function(K,X){if(X<0)throw Error("Z`"+X);var F=K.cursor_,P=F+X;if(P>K.end_)throw Error("Y`"+(K.end_-F)+"`"+X);K.cursor_=P;return F};
wFy=function(K,X){if(X==0)return _.GE();var F=Cll(K,X);K.aliasBytesFields&&K.bytesAreImmutable_?F=K.bytes_.subarray(F,F+X):(K=K.bytes_,X=F+X,F=F===X?new Uint8Array(0):hCT?K.slice(F,X):new Uint8Array(K.subarray(F,X)));return F.length==0?_.GE():new UZ(F,mt)};
VVP=[];var inl=function(K,X,F,P){if(VVP.length){var H=VVP.pop();H.init(K,X,F,P);K=H}else K=new OnO(K,X,F,P);this.decoder_=K;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;N6l(this,P)},N6l=function(K,X){X=X===void 0?{}:X;
K.discardUnknownFields=X.discardUnknownFields===void 0?!1:X.discardUnknownFields},don=function(K,X,F,P){if(xG9.length){var H=xG9.pop();
N6l(H,P);H.decoder_.init(K,X,F,P);return H}return new inl(K,X,F,P)},AwP,vJ,I7d,xG9;
inl.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;xG9.length<100&&xG9.push(this)};
inl.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
AwP=function(K){if(K.decoder_.atEnd())return!1;K.fieldCursor_=K.decoder_.cursor_;var X=_.yg(K.decoder_)>>>0,F=X>>>3;X&=7;if(!(X>=0&&X<=5))throw Error("T`"+X+"`"+K.fieldCursor_);if(F<1)throw Error("U`"+F+"`"+K.fieldCursor_);K.nextField_=F;K.nextWireType_=X;return!0};
vJ=function(K){switch(K.nextWireType_){case 0:K.nextWireType_!=0?vJ(K):_.bnd(K.decoder_);break;case 1:K=K.decoder_;j3(K,K.cursor_+8);break;case 2:if(K.nextWireType_!=2)vJ(K);else{var X=_.yg(K.decoder_)>>>0;K=K.decoder_;j3(K,K.cursor_+X)}break;case 5:K=K.decoder_;j3(K,K.cursor_+4);break;case 3:X=K.nextField_;do{if(!AwP(K))throw Error("V");if(K.nextWireType_==4){if(K.nextField_!=X)throw Error("W");break}vJ(K)}while(1);break;default:throw Error("T`"+K.nextWireType_+"`"+K.fieldCursor_);}};
I7d=function(K,X,F){var P=K.decoder_.end_,H=_.yg(K.decoder_)>>>0,f=K.decoder_.cursor_+H,u=f-P;u<=0&&(K.decoder_.end_=f,F(X,K,void 0,void 0,void 0),u=f-K.decoder_.cursor_);if(u)throw Error("S`"+H+"`"+(H-u));K.decoder_.cursor_=f;K.decoder_.end_=P};
_.kjy=function(K){var X=_.yg(K.decoder_)>>>0;K=K.decoder_;var F=Cll(K,X);K=K.bytes_;if(hz9){var P=K,H;(H=UKT)||(H=UKT=new TextDecoder("utf-8",{fatal:!0}));X=F+X;P=F===0&&X===P.length?P:P.subarray(F,X);try{var f=H.decode(P)}catch(M){if(Rzl===void 0){try{H.decode(new Uint8Array([128]))}catch(n){}try{H.decode(new Uint8Array([97])),Rzl=!0}catch(n){Rzl=!1}}!Rzl&&(UKT=void 0);throw M;}}else{f=F;X=f+X;F=[];for(var u=null,J,Z;f<X;)J=K[f++],J<128?F.push(J):J<224?f>=X?XP():(Z=K[f++],J<194||(Z&192)!==128?(f--,
XP()):F.push((J&31)<<6|Z&63)):J<240?f>=X-1?XP():(Z=K[f++],(Z&192)!==128||J===224&&Z<160||J===237&&Z>=160||((H=K[f++])&192)!==128?(f--,XP()):F.push((J&15)<<12|(Z&63)<<6|H&63)):J<=244?f>=X-2?XP():(Z=K[f++],(Z&192)!==128||(J<<28)+(Z-144)>>30!==0||((H=K[f++])&192)!==128||((P=K[f++])&192)!==128?(f--,XP()):(J=(J&7)<<18|(Z&63)<<12|(H&63)<<6|P&63,J-=65536,F.push((J>>10&1023)+55296,(J&1023)+56320))):XP(),F.length>=8192&&(u=K4M(u,F),F.length=0);f=K4M(u,F)}return f};
_.Ke3=function(K){var X=_.yg(K.decoder_)>>>0;return wFy(K.decoder_,X)};
_.X34=function(K,X,F){var P=_.yg(K.decoder_)>>>0;for(P=K.decoder_.cursor_+P;K.decoder_.cursor_<P;)F.push(X(K.decoder_))};
xG9=[];var FeT=function(K,X){this.JSC$6872_lo=K>>>0;this.JSC$6872_hi=X>>>0},HcO=function(K){if(!K)return PFP||(PFP=new FeT(0,0));
if(!/^\d+$/.test(K))return null;PF(K);return new FeT(iu,xC)},PFP,$oO=function(K,X){this.JSC$6874_lo=K>>>0;
this.JSC$6874_hi=X>>>0},adl=function(K){if(!K)return s4O||(s4O=new $oO(0,0));
if(!/^-?\d+$/.test(K))return null;PF(K);return new $oO(iu,xC)},s4O;var zgd=function(){this.JSC$6876_buffer_=[]},tkl,f$w;
zgd.prototype.length=function(){return this.JSC$6876_buffer_.length};
zgd.prototype.end=function(){var K=this.JSC$6876_buffer_;this.JSC$6876_buffer_=[];return K};
tkl=function(K,X,F){for(;F>0||X>127;)K.JSC$6876_buffer_.push(X&127|128),X=(X>>>7|F<<25)>>>0,F>>>=7;K.JSC$6876_buffer_.push(X)};
f$w=function(K,X){for(;X>127;)K.JSC$6876_buffer_.push(X&127|128),X>>>=7;K.JSC$6876_buffer_.push(X)};
_.Otq=function(K,X){if(X>=0)f$w(K,X);else{for(var F=0;F<9;F++)K.JSC$6876_buffer_.push(X&127|128),X>>=7;K.JSC$6876_buffer_.push(1)}};
_.NR=function(K,X){K.JSC$6876_buffer_.push(X>>>0&255);K.JSC$6876_buffer_.push(X>>>8&255);K.JSC$6876_buffer_.push(X>>>16&255);K.JSC$6876_buffer_.push(X>>>24&255)};var DHO,OB,g5P,N1n;DHO=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new zgd};
OB=function(K,X){X.length!==0&&(K.blocks_.push(X),K.totalLength_+=X.length)};
_.YV4=function(K,X){_.bc(K,X,2);X=K.encoder_.end();OB(K,X);X.push(K.totalLength_);return X};
_.Qs4=function(K,X){var F=X.pop();for(F=K.totalLength_+K.encoder_.length()-F;F>127;)X.push(F&127|128),F>>>=7,K.totalLength_++;X.push(F);K.totalLength_++};
_.bc=function(K,X,F){f$w(K.encoder_,X*8+F)};
g5P=function(K,X,F){if(F!=null){switch(typeof F){case "string":HcO(F)}_.bc(K,X,1);switch(typeof F){case "number":K=K.encoder_;VPP(F);_.NR(K,iu);_.NR(K,xC);break;case "bigint":F=BigInt.asUintN(64,F);F=new FeT(Number(F&BigInt(4294967295)),Number(F>>BigInt(32)));K=K.encoder_;X=F.JSC$6872_hi;_.NR(K,F.JSC$6872_lo);_.NR(K,X);break;default:F=HcO(F),K=K.encoder_,X=F.JSC$6872_hi,_.NR(K,F.JSC$6872_lo),_.NR(K,X)}}};
N1n=function(K,X,F){_.bc(K,X,2);f$w(K.encoder_,F.length);OB(K,K.encoder_.end());OB(K,F)};var qVy,JGT,Zcw,Moy,nVw;qVy=R0();_.uIP=R0();_.q9l=R0();JGT=R0();Zcw=R0();_.Y94=R0();_.dd=R0();_.Q4w=R0();Moy=R0();nVw=R0();_.cGy=R0();_.p3y=R0();_.Gm=function(K,X,F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K,X,F)};
_.Gm.prototype.toJSON=function(){return k5(this)};
_.Gm.prototype.serialize=function(K){return JSON.stringify(k5(this,K))};
var F0y=function(K,X){if(X==null||X=="")return new K;X=JSON.parse(X);if(!Array.isArray(X))throw Error("$");return new K(hyM(X))};
_.Gm.prototype.getExtension=function(K){eTP(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K.fieldIndex);Wtw(this,K.fieldIndex);return K.ctor?K.isRepeated?K.getExtensionFn(this,K.ctor,K.fieldIndex,_.KJ(),K.JSC$6887_hasMessageId):K.getExtensionFn(this,K.ctor,K.fieldIndex,K.JSC$6887_hasMessageId):K.isRepeated?K.getExtensionFn(this,K.fieldIndex,_.KJ(),K.JSC$6887_hasMessageId):K.getExtensionFn(this,K.fieldIndex,K.defaultValue,K.JSC$6887_hasMessageId)};
_.Gm.prototype.clone=function(){var K=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=K[_.LW]|0;return zm(this,K,X)?sB(this,K,!0):new this.constructor(HJ(K,X,!1))};
_.Gm.prototype[as]=$5;_.Gm.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var UB=function(K,X,F){this.$$binaryReaderFn=K;this.$$binaryWriterFn=X;K=g1(qVy);this.$$isMsg=!!K&&F===K||!1},pFM=Jwq(function(K,X,F,P,H){if(K.nextWireType_!==2)return!1;
I7d(K,vBd(X,P,F),H);return!0},Mky),B1d=Jwq(function(K,X,F,P,H){if(K.nextWireType_!==2)return!1;
I7d(K,vBd(X,P,F),H);return!0},Mky),t0=Symbol(),lc=Symbol(),rw3=Symbol(),R83=Symbol(),yw4=Symbol(),n59,cwy;var K0w,B7n,S9n,oVd,LeP,T7n,rGd,AGP,j4y,w3q,yG3,dH9,egl,UHy,hg4;K0w=function(K,X){var F=new DHO;Uoq(K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F,m0(t0,a0,$8,X));OB(F,F.encoder_.end());K=new Uint8Array(F.totalLength_);X=F.blocks_;for(var P=X.length,H=0,f=0;f<P;f++){var u=X[f];K.set(u,H);H+=u.length}F.blocks_=[K];return K};
B7n=_.Vd(function(K,X,F){if(K.nextWireType_!==1)return!1;_.gj(X,F,EB3(K.decoder_));return!0},v5q,nVw);
S9n=_.Vd(function(K,X,F,P){if(K.nextWireType_!==1)return!1;_.uQ(X,F,P,EB3(K.decoder_));return!0},v5q,nVw);
oVd=_.Vd(function(K,X,F,P){if(K.nextWireType_!==5)return!1;var H=_.WL(K.decoder_);K=(H>>31)*2+1;var f=H>>>23&255;H&=8388607;_.uQ(X,F,P,f==255?H?NaN:K*Infinity:f==0?K*1.401298464324817E-45*H:K*Math.pow(2,f-150)*(H+8388608));return!0},function(K,X,F){X=_.qo(X);
X!=null&&(_.bc(K,F,5),K=K.encoder_,F=Cx||(Cx=new DataView(new ArrayBuffer(8))),F.setFloat32(0,+X,!0),xC=0,iu=F.getUint32(0,!0),_.NR(K,iu))},Moy);
_.e3=_.Vd(function(K,X,F){if(K.nextWireType_!==0)return!1;_.gj(X,F,_.wd(K.decoder_,Kt));return!0},_.ic,_.dd);
LeP=_.Vd(function(K,X,F){if(K.nextWireType_!==0)return!1;K=_.wd(K.decoder_,Kt);_.gj(X,F,K===0?void 0:K);return!0},_.ic,_.dd);
T7n=_.Vd(function(K,X,F,P){if(K.nextWireType_!==0)return!1;_.uQ(X,F,P,_.wd(K.decoder_,Kt));return!0},_.ic,_.dd);
_.Rc=_.Vd(function(K,X,F){if(K.nextWireType_!==0)return!1;_.gj(X,F,_.yg(K.decoder_));return!0},Vkl,JGT);
rGd=_.Vd(function(K,X,F){if(K.nextWireType_!==0)return!1;K=_.yg(K.decoder_);_.gj(X,F,K===0?void 0:K);return!0},Vkl,JGT);
AGP=_.Vd(function(K,X,F,P){if(K.nextWireType_!==0)return!1;_.uQ(X,F,P,_.yg(K.decoder_));return!0},Vkl,JGT);
j4y=_.Vd(function(K,X,F){if(K.nextWireType_!==1)return!1;_.gj(X,F,gBw(K.decoder_));return!0},_.E5P,_.Q4w);
w3q=_.ldn(function(K,X,F){if(K.nextWireType_!==1&&K.nextWireType_!==2)return!1;X=_.rj(X,X[_.LW]|0,F);K.nextWireType_==2?_.X34(K,gBw,X):X.push(gBw(K.decoder_));return!0},function(K,X,F){X=_.GJq(nCl,X,!1);
if(X!=null)for(var P=0;P<X.length;P++)g5P(K,F,X[P])},_.Q4w);
_.UX=_.Vd(function(K,X,F){if(K.nextWireType_!==0)return!1;_.gj(X,F,_.bnd(K.decoder_));return!0},_.CWM,_.uIP);
yG3=_.Vd(function(K,X,F,P){if(K.nextWireType_!==0)return!1;_.uQ(X,F,P,_.bnd(K.decoder_));return!0},_.CWM,_.uIP);
_.mg=_.Vd(function(K,X,F){if(K.nextWireType_!==2)return!1;_.gj(X,F,_.kjy(K));return!0},_.itT,_.q9l);
_.Wel=_.Vd(function(K,X,F,P){if(K.nextWireType_!==2)return!1;_.uQ(X,F,P,_.kjy(K));return!0},_.itT,_.q9l);
dH9=_.ldn(function(K,X,F){if(K.nextWireType_!==2)return!1;K=_.kjy(K);_.rj(X,X[_.LW]|0,F).push(K);return!0},function(K,X,F){X=_.GJq(_.vF,X,!0);
if(X!=null)for(var P=0;P<X.length;P++){var H=K,f=F,u=X[P];u!=null&&N1n(H,f,HOw(u))}},_.q9l);
egl=void 0;egl=egl===void 0?qVy:egl;_.GQ=new UB(function(K,X,F,P,H){if(K.nextWireType_!==2)return!1;P=PJ(void 0,P,!0);_.rj(X,X[_.LW]|0,F).push(P);I7d(K,P,H);return!0},function(K,X,F,P,H){if(Array.isArray(X))for(var f=0;f<X.length;f++)xo4(K,X[f],F,P,H)},egl);
_.lQ=Jwq(function(K,X,F,P,H,f){if(K.nextWireType_!==2)return!1;var u=X[_.LW]|0;HtP(X,u,f,F,$C(u));X=vBd(X,P,F);I7d(K,X,H);return!0},xo4);
_.RgP=_.Vd(function(K,X,F){if(K.nextWireType_!==2)return!1;_.gj(X,F,_.Ke3(K));return!0},_.Idd,_.cGy);
UHy=_.Vd(function(K,X,F,P){if(K.nextWireType_!==2)return!1;_.uQ(X,F,P,_.Ke3(K));return!0},_.Idd,_.cGy);
hg4=_.Vd(function(K,X,F,P){if(K.nextWireType_!==0)return!1;_.uQ(X,F,P,_.yg(K.decoder_)>>>0);return!0},function(K,X,F){X=_.jk(X);
X!=null&&X!=null&&(_.bc(K,F,0),f$w(K.encoder_,X))},Zcw);
_.vL=_.Vd(function(K,X,F){if(K.nextWireType_!==0)return!1;_.gj(X,F,_.yg(K.decoder_));return!0},_.kJq,_.p3y);var l$P=function(){var K=mHl,X=Gdy;this.fieldIndex=175237375;this.ctor=X;this.isRepeated=0;this.getExtensionFn=_.xS;this.defaultValue=void 0;this.JSC$6887_hasMessageId=K.messageId!=null?aC:void 0};
l$P.prototype.register=function(){NL(this)};var vVd=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(vVd,_.Gm);var a$q=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(a$q,_.Gm);var s0w=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(s0w,_.Gm);var toy=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(toy,_.Gm);var $HO=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r($HO,_.Gm);var Ocn=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(Ocn,_.Gm);var Vo4=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(Vo4,_.Gm);Vo4.prototype.getData=function(){return _.DR(this,2)};var gVP=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(gVP,_.Gm);var EVn=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(EVn,_.Gm);EVn.prototype.getStyle=function(){return _.xS(this,vVd,1)};var Xw=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(Xw,_.Gm);Xw.prototype.getPayloadCase=function(){return _.qe(this,H$)};
Xw.prototype.getStyle=function(){return _.TQ(this,EVn,6,H$)};
var bc4=function(){var K=new Xw,X=new $HO;return _.P$(K,7,H$,X)},CFy=function(){var K=new Xw,X=new Ocn;
return _.P$(K,8,H$,X)},H$=[1,
2,3,4,5,6,7,8];var N74=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(N74,_.Gm);var icw=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(icw,_.Gm);var xHy=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(xHy,_.Gm);var I$l=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(I$l,_.Gm);var kdP=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(kdP,_.Gm);var KGO=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(KGO,_.Gm);var X1q=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(X1q,_.Gm);var FGT=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(FGT,_.Gm);FGT.prototype.getData=function(){return _.DR(this,2)};var P2O=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(P2O,_.Gm);var Hxw=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(Hxw,_.Gm);Hxw.prototype.getPayloadCase=function(){return _.qe(this,ac)};
var ac=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var tb=function(K,X){K=Error.call(this,K);this.message=K.message;"stack"in K&&(this.stack=K.stack);this.code=X===void 0?2:X};
_.r(tb,Error);var HVT=Promise;var shy=function(K){this.channelPromise=K};
shy.prototype.send=function(K,X,F){this.channelPromise.then(function(P){P.send(K,X,F)})};var zPP=function(K,X){this.data=K;this.channel=X};
zPP.prototype.reply=function(K,X,F){this.channel.send(K,X,F)};var f29=function(K){this.JSC$6953_port_=K};
f29.prototype.send=function(K,X,F){F=F===void 0?[]:F;var P=new MessageChannel;D3l(P.port1,X);this.JSC$6953_port_.postMessage(K,[P.port2].concat(F))};
var u9P=function(K,X){D3l(K,X);return new f29(K)},D3l=function(K,X){X&&(K.onmessage=function(F){X(new zPP(F.data,u9P(F.ports[0])))})};var qu9=function(K){this.verifier_=K},JQl=function(K){var X=Object.create(null);
(typeof K==="string"?[K]:K).forEach(function(F){if(F==="null")throw Error("ba");X[F]=!0});
return function(F){return X[F]===!0}};_.ZVM=function(){if(!_.FP.addEventListener||!Object.defineProperty)return!1;var K=!1,X=Object.defineProperty({},"passive",{get:function(){K=!0}});
try{var F=function(){};
_.FP.addEventListener("test",F,X);_.FP.removeEventListener("test",F,X)}catch(P){}return K}();var YuP;_.$_=function(K){var X=K.destination;var F=K.iframe;var P=K.origin;var H=K.channelName===void 0?"ZNWN1d":K.channelName;var f=K.onMessage===void 0?void 0:K.onMessage;K=K.onEstablished===void 0?void 0:K.onEstablished;return YuP({destination:X,getSource:function(){return F.contentWindow},
originVerifier:P instanceof qu9?P:typeof P==="function"?new qu9(P):new qu9(JQl(P)),channelName:H,onMessage:f,onEstablished:K})};
YuP=function(K){var X=K.destination;var F=K.getSource;var P=K.originVerifier;var H=K.token===void 0?void 0:K.token;var f=K.channelName;var u=K.onMessage===void 0?void 0:K.onMessage;var J=K.onEstablished===void 0?void 0:K.onEstablished;return new shy(new HVT(function(Z,M){var n=function(c){c.source&&c.source===F()&&P.verifier_(c.origin)&&(c.data.n||c.data)===f&&(X.removeEventListener("message",n,!1),H&&c.data.t!==H?M(Error("ca`"+f+"`"+H+"`"+c.data.t)):(Z(u9P(c.ports[0],u)),J&&J(c)))};
X.addEventListener("message",n,!1)}))};var Qhl=function(K){try{K()}catch(X){Py(X)}};var nmP=function(K){var X=this;var F=K.getMessageType;var P=K.onUnregisteredMessage===void 0?function(){}:K.onUnregisteredMessage;
var H=K.onBeforeRegisteredMessage===void 0?function(){}:K.onBeforeRegisteredMessage;
K=K.onAfterRegisteredMessage===void 0?function(){}:K.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=F;this.onUnregisteredMessage_=P;this.onBeforeRegisteredMessage_=H;this.onAfterRegisteredMessage_=K;this.onMessage=function(f){return MbP(X,f)}};
nmP.prototype.register=function(K,X){this.registry_.set(K,X);return this};
var MbP=function(K,X){var F=K.getMessageType_(X.data),P=K.registry_.get(F);P?(Qhl(function(){return K.onBeforeRegisteredMessage_(X,F)}),Qhl(function(){return P(X)}),Qhl(function(){return K.onAfterRegisteredMessage_(X,F)})):Qhl(function(){return K.onUnregisteredMessage_(X,F)})};var cQP=function(K){this.JSC$6970_channel_=K},B3T,SuT;
cQP.prototype.send=function(K,X,F){this.JSC$6970_channel_.send(k5(K),X,F)};
_.p1q=function(K,X){return function(F){var P=new K(F.data);return X(new zPP(P,F.channel))}};
B3T=function(K){return function(X){return K(new zPP(X.data,new cQP(X.channel)))}};
SuT=function(K,X){return B3T(_.p1q(K,X))};var omy=function(K,X,F,P){this.registry=K;this.delegate=X;this.receiveMessageConstructor=F;this.createInitMessage=P;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},Pcw=function(K){var X=new nmP({getMessageType:K.getPayloadCase});
return new omy(X,new cQP(_.$_({iframe:K.child,destination:window,origin:K.origin,channelName:K.channelName,onMessage:SuT(K.receiveMessageConstructor,X.onMessage)})),K.receiveMessageConstructor,K.createInitMessage)},LGl=function(K,X){K.createInitMessage=X};
omy.prototype.send=function(K){if(!this.initialised)throw new tb("Attempted to send a message before initialisation.");this.delegate.send(K)};
var T3P=function(K,X){return _.q(function(F){if(!K.initialised)throw new tb("Attempted to send a message before initialisation.");return F.return(new Promise(function(P){K.delegate.send(X,SuT(K.receiveMessageConstructor,P))}))})};
omy.prototype.init=function(){var K=this;return _.q(function(X){if(K.initialised)throw new tb("Attempted to initialise twice. The SDK can only be initialised once.");if(K.createInitMessage!==void 0){var F=K.delegate,P=F.send,H=K.createInitMessage;var f=new a$q;var u=[].concat(_.LZ(K.features));f=_.Lx(f,1,u,_.os);P.call(F,H.call(K,f))}K.initialised=!0;_.JT(X)})};
var OX=function(K,X){if(K.initialised)throw new tb('Attempted to set up API "'+X+'" after initialisation. All APIs must be set up before initialising the SDK.');K.features.add(X);return K.registry};
_.Oi.Object.defineProperties(omy.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var rQP=function(K){this.channel=K;this.registered=!1};
rQP.prototype.update=function(K){if(this.channel.isInitialised){if(!this.registered)throw new tb("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var X=new Xw;var F=new toy;F=_.sw(F,1,K);X=_.P$(X,2,H$,F);this.channel.send(X)}else this.register();this.JSC$6984_audioEnabled=K};
rQP.prototype.register=function(){OX(this.channel,1);this.registered=!0};
rQP.prototype.isAudioEnabled=function(){return this.JSC$6984_audioEnabled};var AQM=function(K){this.channel=K};
_.z=AQM.prototype;_.z.onFirstFrameReady=function(K){OX(this.channel,2).register(11,function(X){X=_.TQ(X.data,N74,11,ac);if(!X)throw new tb("Unexpectedly nonexistent GameFirstFrameReadyEvent");K(_.BL(X,1))})};
_.z.onReady=function(K){OX(this.channel,2).register(4,function(X){X=_.TQ(X.data,xHy,4,ac);if(!X)throw new tb("Unexpectedly nonexistent GameReadyEvent");K(_.BL(X,1))})};
_.z.onLevelComplete=function(K){OX(this.channel,2).register(5,function(X){X=_.TQ(X.data,I$l,5,ac);if(!X)throw new tb("Unexpectedly nonexistent LevelCompleteEvent");K(_.BL(X,1),_.XA(X,2))})};
_.z.onGameOver=function(K){OX(this.channel,2).register(6,function(X){X=_.TQ(X.data,icw,6,ac);if(!X)throw new tb("Unexpectedly nonexistent GameOverEvent");K(_.BL(X,1))})};
_.z.pause=function(){var K=this;if(!this.channel.isInitialised)return OX(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new tb("Using unregistered Game Feature: pause.");var X=bc4();return new Promise(function(F){return _.q(function(P){if(P.nextAddress==1)return _.Y(P,T3P(K.channel,X),2);F();_.JT(P)})})};
_.z.resume=function(){var K=this;if(!this.channel.isInitialised)return OX(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new tb("Using unregistered Game Feature: resume.");var X=CFy();return new Promise(function(F){return _.q(function(P){if(P.nextAddress==1)return _.Y(P,T3P(K.channel,X),2);F();_.JT(P)})})};var jhy=function(K){this.channel=K};
jhy.prototype.onReady=function(K){OX(this.channel,5).register(8,function(X){if(!_.TQ(X.data,kdP,8,ac))throw new tb("Unexpectedly nonexistent PageReadyEvent");K()})};var w14=function(K){this.channel=K};
w14.prototype.onChange=function(K){OX(this.channel,3).register(7,function(X){X=_.TQ(X.data,KGO,7,ac);if(!X)throw new tb("Unexpectedly nonexistent ScoreEvent");K(_.BL(X,1),_.XA(X,2))})};var yQl={load:function(){throw new tb("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new tb("Storage used, but storage.onSave() listener not set!");}},WGM=function(K){this.channel=K;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},d39=function(K){OX(K.channel,4).register(2,yQl.load).register(3,yQl.save);
K.initialSetupDone=!0};
WGM.prototype.onLoad=function(K){this.initialSetupDone||d39(this);this.loadRegistered||(this.loadRegistered=!0,OX(this.channel,4).register(2,function(X){var F,P,H;return _.q(function(f){if(f.nextAddress==1){F=_.TQ(X.data,X1q,2,ac);if(!F)throw new tb("Unexpectedly nonexistent StorageLoad");P=_.BL(F,1);return _.Y(f,K(P),2)}H=f.yieldResult;var u=X.reply,J=new Xw;var Z=new Vo4;Z=_.Qf(Z,1,P);Z=_.kS(Z,2,_.lu(H,!1));J=_.P$(J,3,H$,Z);u.call(X,J);_.JT(f)})}))};
WGM.prototype.onSave=function(K){this.initialSetupDone||d39(this);this.saveRegistered||(this.saveRegistered=!0,OX(this.channel,4).register(3,function(X){var F,P,H;return _.q(function(f){if(f.nextAddress==1){F=_.TQ(X.data,FGT,3,ac);if(!F)throw new tb("Unexpectedly nonexistent StorageSave");P=_.BL(F,1);H=T6l(F.getData());return _.Y(f,K(P,H),2)}var u=X.reply,J=new Xw;var Z=new gVP;Z=_.Qf(Z,1,P);J=_.P$(J,4,H$,Z);u.call(X,J);_.JT(f)})}))};var ePq=function(K){this.channel=K};
ePq.prototype.update=function(K){if(!this.channel.features.has(6))throw new tb("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var X=new Xw,F=new EVn;K=_.Fw(F,1,K);X=_.P$(X,6,H$,K);this.channel.send(X)};
ePq.prototype.register=function(){OX(this.channel,6)};var RPM=function(K){this.channel=K;this.userActivityLoggingIntervalMs=0};
RPM.prototype.onUserActivity=function(K,X){this.userActivityLoggingIntervalMs=X;OX(this.channel,7).register(9,function(F){if(!_.TQ(F.data,P2O,9,ac))throw new tb("Unexpectedly nonexistent ClickEvent");K()})};var U3O=function(K){var X=this;this.channel=K;this.init=this.channel.init.bind(this.channel);this.page=new jhy(this.channel);this.game=new AQM(this.channel);this.audio=new rQP(this.channel);this.score=new w14(this.channel);this.storage=new WGM(this.channel);this.style=new ePq(this.channel);this.userActivity=new RPM(this.channel);LGl(this.channel,function(F){var P=new s0w;F=_.Fw(P,1,F);F=_.rd(F,3,X.userActivity.userActivityLoggingIntervalMs);P=X.audio.isAudioEnabled();P!==void 0&&_.sw(F,2,P);P=new Xw;
return _.P$(P,5,H$,F)})};var hP9=function(){this.timedFunctionContext=0};
hP9.prototype.timeExecution=function(K,X){var F=this;return function(){var P=_.Ls.apply(0,arguments);F.timedFunctionContext=K;return X.apply(null,_.LZ(P))}};var m3l=function(){var K={};this.priorityTasks=(K[3]=[],K[2]=[],K[1]=[],K);this.isFlushing=!1},f8=function(K,X,F){var P=G$9(K,F);
K.priorityTasks[F].push(X);P&&K.priorityTasks[F].length===1&&K.flush()},G$9=function(K,X){return Object.keys(K.priorityTasks).map(function(F){return Number(F)}).filter(function(F){return!isNaN(F)&&F>X}).every(function(F){return K.priorityTasks[F].length===0})};
m3l.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(K){return K.length>0});)l29(this,3),l29(this,2),l29(this,1)}catch(K){throw Object.values(this.priorityTasks).forEach(function(X){return void X.splice(0,X.length)}),K;
}finally{this.isFlushing=!1}}};
var l29=function(K,X){for(;G$9(K,X)&&K.priorityTasks[X].length>0;)K.priorityTasks[X][0](),K.priorityTasks[X].shift()};
_.Oi.Object.defineProperties(m3l.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(K){return K.length>0})}}});var J03={};var vmM=globalThis.trustedTypes,fsl=vmM,umO;var zp=function(K){this.privateDoNotAccessOrElseWrappedResourceUrl=K};
zp.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var a2d=_.lr([""]),tby=qnM(["\x00"],["\\0"]),$3T=qnM(["\n"],["\\n"]),OVT=qnM(["\x00"],["\\u0000"]);qv(function(K){return K(a2d)})||qv(function(K){return K(tby)})||qv(function(K){return K($3T)})||qv(function(K){return K(OVT)});var c$;_.Jo=function(K,X){this.privateDoNotAccessOrElseWrappedUrl=X};
_.Jo.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.VbP=ZX("about:blank");c$=ZX("about:invalid#zClosurez");var Zx9=function(K){this.isValid=K},gmd=new Zx9(function(K){return/^[^:]*([/?#]|$)/.test(K)}),EmT=Mv("data"),bVq=Mv("http"),C2l=Mv("https"),N33=Mv("ftp"),iVd=Mv("mailto"),x3n=Mv("intent"),I2y=Mv("vnd.youtube"),YBq=[EmT,
bVq,C2l,iVd,N33,gmd],Q04=sv(function(){return typeof URL==="function"}),k$n=["data:",
"http:","https:","mailto:","ftp:"],n8d=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var ji=function(K){this.privateDoNotAccessOrElseWrappedHtml=K};
ji.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var pdl=sv(function(){return new ji(vmM?vmM.emptyHTML:"")});var KAq={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"},dF=function(K,X){var F=Error.call(this,K+" cannot be used with intent "+KAq[X]);this.message=F.message;"stack"in F&&(this.stack=F.stack);this.type=K;this.intent=X;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.r(dF,Error);_.Uv=function(K){this.privateDoNotAccessOrElseWrappedScript=K};
_.Uv.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var SBd=function(K){this.privateDoNotAccessOrElseWrappedAttributePrefix=K};
SBd.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var o8T="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var oOT=function(K){var X=_.mz("window.location.href");K==null&&(K='Unknown Error of type "null/undefined"');if(typeof K==="string")return{message:K,name:"Unknown error",lineNumber:"Not available",fileName:X,stack:"Not available"};var F=!1;try{var P=K.lineNumber||K.line||"Not available"}catch(u){P="Not available",F=!0}try{var H=K.fileName||K.filename||K.sourceURL||_.FP.$googDebugFname||X}catch(u){H="Not available",F=!0}X=X4y(K);if(!(!F&&K.lineNumber&&K.fileName&&K.stack&&K.message&&K.name)){F=K.message;
if(F==null){if(K.constructor&&K.constructor instanceof Function){if(K.constructor.name)F=K.constructor.name;else if(F=K.constructor,Vg[F])F=Vg[F];else{F=String(F);if(!Vg[F]){var f=/function\s+([^\(]+)/m.exec(F);Vg[F]=f?f[1]:"[Anonymous]"}F=Vg[F]}F='Unknown Error of type "'+F+'"'}else F="Unknown Error of unknown type";typeof K.toString==="function"&&Object.prototype.toString!==K.toString&&(F+=": "+K.toString())}return{message:F,name:K.name||"UnknownError",lineNumber:P,fileName:H,stack:X||"Not available"}}return{message:K.message,
name:K.name,lineNumber:K.lineNumber,fileName:K.fileName,stack:X}},X4y=function(K,X){X||(X={});
X[FAl(K)]=!0;var F=K.stack||"",P=K.cause;P&&!X[FAl(P)]&&(F+="\nCaused by: ",P.stack&&P.stack.indexOf(P.toString())==0||(F+=typeof P==="string"?P:P.message+"\n"),F+=X4y(P,X));K=K.errors;if(Array.isArray(K)){P=1;var H;for(H=0;H<K.length&&!(P>4);H++)X[FAl(K[H])]||(F+="\nInner error "+P++ +": ",K[H].stack&&K[H].stack.indexOf(K[H].toString())==0||(F+=typeof K[H]==="string"?K[H]:K[H].message+"\n"),F+=X4y(K[H],X));H<K.length&&(F+="\n... "+(K.length-H)+" more inner errors")}return F},FAl=function(K){var X=
"";
typeof K.toString==="function"&&(X=""+K);return X+K.stack},Vg={};var PVl,C9,iC,sSl,zql,H2w,v_,RJ,Dt3;PVl=function(K,X){for(var F=K.split("%s"),P="",H=Array.prototype.slice.call(arguments,1);H.length&&F.length>1;)P+=F.shift()+H.shift();return P+F.join("%s")};
_.l9=function(K){return encodeURIComponent(String(K))};
C9=function(K){return decodeURIComponent(K.replace(/\+/g," "))};
iC=function(K){Ohw.test(K)&&(K.indexOf("&")!=-1&&(K=K.replace(Ghq,"&amp;")),K.indexOf("<")!=-1&&(K=K.replace(lIn,"&lt;")),K.indexOf(">")!=-1&&(K=K.replace(v7P,"&gt;")),K.indexOf('"')!=-1&&(K=K.replace(aIy,"&quot;")),K.indexOf("'")!=-1&&(K=K.replace(t2P,"&#39;")),K.indexOf("\x00")!=-1&&(K=K.replace($Kd,"&#0;")));return K};
sSl=function(K){var X={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var F=_.FP.document.createElement("div");return K.replace(H2w,function(P,H){var f=X[P];if(f)return f;H.charAt(0)=="#"&&(H=Number("0"+H.slice(1)),isNaN(H)||(f=String.fromCharCode(H)));f||(_.v$(F,wF(P+" ")),f=F.firstChild.nodeValue.slice(0,-1));return X[P]=f})};
zql=function(K){return K.replace(/&([^;]+);/g,function(X,F){switch(F){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return F.charAt(0)!="#"||(F=Number("0"+F.slice(1)),isNaN(F))?X:String.fromCharCode(F)}})};
H2w=/&([^;\s<&]+);?/g;_.OM9=function(K){return String(K).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.fiT=String.prototype.repeat?function(K,X){return K.repeat(X)}:function(K,X){return Array(X+1).join(K)};
_.gd=function(K,X){if(!Number.isFinite(K))return String(K);K=String(K);var F=K.indexOf(".");F===-1&&(F=K.length);var P=K[0]==="-"?"-":"";P&&(K=K.substring(1));return P+(0,_.fiT)("0",Math.max(0,X-F))+K};
v_=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.E$()).toString(36)};
RJ=function(K){for(var X=0,F=0;F<K.length;++F)X=31*X+K.charCodeAt(F)>>>0;return X};
_.uX=function(K){return String(K).replace(/\-([a-z])/g,function(X,F){return F.toUpperCase()})};
_.Dv=function(K){return String(K).replace(/([A-Z])/g,"-$1").toLowerCase()};
Dt3=function(K){return K.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(X,F,P){return F+P.toUpperCase()})};var u4n=function(){this.names=new Map};
u4n.prototype.getName=function(K){var X=this.names.get(K);if(X)return X;var F;X=(F=K.description)!=null?F:v_();this.names.set(K,X);return X};var qJd=function(K){var X=Error.call(this,K?K.length+" errors occurred during unsubscription:\n"+K.map(function(F,P){return P+1+") "+F.toString()}).join("\n  "):"");
this.message=X.message;"stack"in X&&(this.stack=X.stack);this.errors=K;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.r(qJd,Error);var Nv=function(K){this.initialTeardown=K;this.closed=!1;this._teardowns=this._parentage=null};
_.z=Nv.prototype;
_.z.unsubscribe=function(){if(!this.closed){this.closed=!0;var K=this._parentage;if(Array.isArray(K))for(var X=_.D(K),F=X.next();!F.done;F=X.next())F.value.remove(this);else K==null||K.remove(this);X=this.initialTeardown;if(Cs(X))try{X()}catch(f){var P=f instanceof qJd?f.errors:[f]}var H=this._teardowns;if(H)for(this._teardowns=null,X=_.D(H),F=X.next();!F.done;F=X.next()){F=F.value;try{Cs(F)?F():F.unsubscribe()}catch(f){F=void 0,P=(F=P)!=null?F:[],f instanceof qJd?P=[].concat(_.LZ(P),_.LZ(f.errors)):
P.push(f)}}if(P)throw new qJd(P);}};
_.z.add=function(K){if(K&&K!==this)if(this.closed)Cs(K)?K():K.unsubscribe();else{if(K instanceof Nv){if(K.closed||K._hasParent(this))return;K._addParent(this)}var X;(this._teardowns=(X=this._teardowns)!=null?X:[]).push(K)}};
_.z._hasParent=function(K){var X=this._parentage;return X===K||Array.isArray(X)&&X.includes(K)};
_.z._addParent=function(K){var X=this._parentage;this._parentage=Array.isArray(X)?(X.push(K),X):X?[X,K]:K};
_.z._removeParent=function(K){var X=this._parentage;X===K?this._parentage=null:Array.isArray(X)&&bi(X,K)};
_.z.remove=function(K){var X=this._teardowns;X&&bi(X,K);K instanceof Nv&&K._removeParent(this)};
var Jiy=new Nv;Jiy.closed=!0;Nv.JSC$7080_EMPTY=Jiy;var A09=function(){setTimeout.apply(null,_.LZ(_.Ls.apply(0,arguments)))};var EX=function(K){Nv.call(this);this.JSC$7085_isStopped=!1;this.destination=K instanceof EX?K:new bQ(!K||Cs(K)?{next:K!=null?K:void 0}:K);r0d(K)&&K.add(this)};
_.r(EX,Nv);EX.JSC$7080_EMPTY=Nv.JSC$7080_EMPTY;EX.create=function(K,X,F){return new CM(K,X,F)};
_.z=EX.prototype;_.z.next=function(K){this.JSC$7085_isStopped||this._next(K)};
_.z.error=function(K){this.JSC$7085_isStopped||(this.JSC$7085_isStopped=!0,this._error(K))};
_.z.complete=function(){this.JSC$7085_isStopped||(this.JSC$7085_isStopped=!0,this._complete())};
_.z.unsubscribe=function(){this.closed||(this.JSC$7085_isStopped=!0,Nv.prototype.unsubscribe.call(this))};
_.z._next=function(K){this.destination.next(K)};
_.z._error=function(K){this.destination.error(K);this.unsubscribe()};
_.z._complete=function(){this.destination.complete();this.unsubscribe()};
var bQ=function(K){this.partialObserver=K};
bQ.prototype.next=function(K){var X=this.partialObserver;if(X.next)try{X.next(K)}catch(F){xi(F)}};
bQ.prototype.error=function(K){var X=this.partialObserver;if(X.error)try{X.error(K)}catch(F){xi(F)}else xi(K)};
bQ.prototype.complete=function(){var K=this.partialObserver;if(K.complete)try{K.complete()}catch(X){xi(X)}};
var CM=function(K,X,F){EX.call(this);var P;Cs(K)||!K?P={next:K!=null?K:void 0,error:X!=null?X:void 0,complete:F!=null?F:void 0}:P=K;this.destination=new bQ(P)};
_.r(CM,EX);CM.JSC$7080_EMPTY=EX.JSC$7080_EMPTY;CM.create=EX.create;var Fg=typeof Symbol==="function"&&Symbol.observable||"@@observable";var KZ=function(K){K&&(this._subscribe=K)};
_.z=KZ.prototype;_.z.lift=function(K){var X=new KZ;X.source=this;X.operator=K;return X};
_.z.subscribe=function(K,X,F){K=K&&K instanceof EX||K&&Cs(K.next)&&Cs(K.error)&&Cs(K.complete)&&r0d(K)?K:new CM(K,X,F);X=this.operator;F=this.source;K.add(X?X.call(K,F):F?this._subscribe(K):this._trySubscribe(K));return K};
_.z._trySubscribe=function(K){try{return this._subscribe(K)}catch(X){K.error(X)}};
_.z.forEach=function(K,X){var F=this;X=wJT(X);return new X(function(P,H){var f=F.subscribe(function(u){try{K(u)}catch(J){H(J),f==null||f.unsubscribe()}},H,P)})};
_.z._subscribe=function(K){var X;return(X=this.source)==null?void 0:X.subscribe(K)};
KZ.prototype[Fg]=function(){return this};
KZ.prototype.pipe=function(){var K=_.Ls.apply(0,arguments);return K.length?j0T(K)(this):this};
KZ.create=function(K){return new KZ(K)};var Z2l=function(){var K=Error.call(this,"object unsubscribed");this.message=K.message;"stack"in K&&(this.stack=K.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.r(Z2l,Error);var Hf=function(){this.observers=[];this.hasError=this.JSC$7101_isStopped=this.closed=!1;this.thrownError=null};
_.r(Hf,KZ);_.z=Hf.prototype;_.z.lift=function(K){var X=new Ne(this,this);X.operator=K;return X};
_.z._throwIfClosed=function(){if(this.closed)throw new Z2l;};
_.z.next=function(K){this._throwIfClosed();if(!this.JSC$7101_isStopped){var X=this.observers.slice();X=_.D(X);for(var F=X.next();!F.done;F=X.next())F.value.next(K)}};
_.z.error=function(K){this._throwIfClosed();if(!this.JSC$7101_isStopped){this.hasError=this.JSC$7101_isStopped=!0;this.thrownError=K;for(var X=this.observers;X.length;)X.shift().error(K)}};
_.z.complete=function(){this._throwIfClosed();if(!this.JSC$7101_isStopped){this.JSC$7101_isStopped=!0;for(var K=this.observers;K.length;)K.shift().complete()}};
_.z.unsubscribe=function(){this.JSC$7101_isStopped=this.closed=!0;this.observers=null};
_.z._trySubscribe=function(K){this._throwIfClosed();return KZ.prototype._trySubscribe.call(this,K)};
_.z._subscribe=function(K){this._throwIfClosed();this._checkFinalizedStatuses(K);return this._innerSubscribe(K)};
_.z._innerSubscribe=function(K){var X=this,F=this.JSC$7101_isStopped,P=this.observers;return this.hasError||F?Nv.JSC$7080_EMPTY:(P.push(K),new Nv(function(){return bi(X.observers,K)}))};
_.z._checkFinalizedStatuses=function(K){var X=this.thrownError,F=this.JSC$7101_isStopped;this.hasError?K.error(X):F&&K.complete()};
Hf.create=function(K,X){return new Ne(K,X)};
var Ne=function(K,X){Hf.call(this);this.destination=K;this.source=X};
_.r(Ne,Hf);Ne.create=Hf.create;Ne.prototype.next=function(K){var X,F;(X=this.destination)==null||(F=X.next)==null||F.call(X,K)};
Ne.prototype.error=function(K){var X,F;(X=this.destination)==null||(F=X.error)==null||F.call(X,K)};
Ne.prototype.complete=function(){var K,X;(K=this.destination)==null||(X=K.complete)==null||X.call(K)};
Ne.prototype._subscribe=function(K){var X,F;return(F=(X=this.source)==null?void 0:X.subscribe(K))!=null?F:Nv.JSC$7080_EMPTY};var G8=function(K){Hf.call(this);this._value=K};
_.r(G8,Hf);G8.create=Hf.create;G8.prototype._subscribe=function(K){var X=Hf.prototype._subscribe.call(this,K);!X.closed&&K.next(this._value);return X};
G8.prototype.getValue=function(){var K=this.thrownError,X=this._value;if(this.hasError)throw K;this._throwIfClosed();return X};
G8.prototype.next=function(K){Hf.prototype.next.call(this,this._value=K)};
_.Oi.Object.defineProperties(G8.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var dE=new KZ(function(K){return K.complete()});var Xg=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var mRw=function(K){return K&&typeof K.length==="number"&&typeof K!=="function"};var YJn={now:function(){return(YJn.delegate||Date).now()},
delegate:void 0};var E2=function(K,X,F){K=K===void 0?Infinity:K;X=X===void 0?Infinity:X;F=F===void 0?YJn:F;Hf.call(this);this.JSC$7123_bufferSize=K;this.windowTime=X;this.timestampProvider=F;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=X===Infinity;this.JSC$7123_bufferSize=Math.max(1,K);this.windowTime=Math.max(1,X)};
_.r(E2,Hf);E2.create=Hf.create;E2.prototype.next=function(K){var X=this.buffer,F=this.infiniteTimeWindow,P=this.timestampProvider,H=this.windowTime;this.JSC$7101_isStopped||(X.push(K),!F&&X.push(P.now()+H));QST(this);Hf.prototype.next.call(this,K)};
E2.prototype._subscribe=function(K){this._throwIfClosed();QST(this);for(var X=this._innerSubscribe(K),F=this.infiniteTimeWindow,P=this.buffer.slice(),H=0;H<P.length&&!K.closed;H+=F?1:2)K.next(P[H]);this._checkFinalizedStatuses(K);return X};
var QST=function(K){var X=K.JSC$7123_bufferSize,F=K.timestampProvider,P=K.buffer;K=K.infiniteTimeWindow;var H=(K?1:2)*X;X<Infinity&&H<P.length&&P.splice(0,P.length-H);if(!K){X=F.now();F=0;for(K=1;K<P.length&&P[K]<=X;K+=2)F=K;F&&P.splice(0,F+1)}};var nZP=function(K,X){X=X===void 0?MD9:X;this.schedulerActionCtor=K;this.now=X};
nZP.prototype.schedule=function(K,X,F){X=X===void 0?0:X;return(new this.schedulerActionCtor(this,K)).schedule(F,X)};
var MD9=YJn.now;var jfl=function(){var K=Error.call(this,"no elements in sequence");this.message=K.message;"stack"in K&&(this.stack=K.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.r(jfl,Error);var ck=function(K,X,F,P,H){EX.call(this,K);this.onUnsubscribe=H;X&&(this._next=function(f){try{X(f)}catch(u){this.destination.error(u)}});
F&&(this._error=function(f){try{F(f)}catch(u){this.destination.error(u)}this.unsubscribe()});
P&&(this._complete=function(){try{P()}catch(f){this.destination.error(f)}this.unsubscribe()})};
_.r(ck,EX);ck.JSC$7080_EMPTY=EX.JSC$7080_EMPTY;ck.create=EX.create;ck.prototype.unsubscribe=function(){var K;this.closed||(K=this.onUnsubscribe)!=null&&K.call(this);EX.prototype.unsubscribe.call(this)};var Vw=function(K,X){this.source=K;this.subjectFactory=X;this._subject=null;this._refCount=0;this._connection=null};
_.r(Vw,KZ);Vw.create=KZ.create;Vw.prototype._subscribe=function(K){return ciP(this).subscribe(K)};
var ciP=function(K){var X=K._subject;if(!X||X.JSC$7101_isStopped)K._subject=K.subjectFactory();return K._subject};
Vw.prototype._teardown=function(){this._refCount=0;var K=this._connection;this._subject=this._connection=null;K==null||K.unsubscribe()};
Vw.prototype.connect=function(){var K=this,X=this._connection;if(!X){X=this._connection=new Nv;var F=ciP(this);X.add(this.source.subscribe(new ck(F,void 0,function(P){K._teardown();F.error(P)},function(){K._teardown();
F.complete()},function(){return K._teardown()})));
X.closed&&(this._connection=null,X=Nv.JSC$7080_EMPTY)}return X};var CcP=Array.isArray;var ixw=Array.isArray,p4M=Object,xR4=p4M.getPrototypeOf,Isw=p4M.prototype,km9=p4M.keys;var rE=function(K,X,F){EX.call(this,K);this._next=X;this.shouldComplete=F};
_.r(rE,EX);rE.JSC$7080_EMPTY=EX.JSC$7080_EMPTY;rE.create=EX.create;rE.prototype._complete=function(){this.shouldComplete()?EX.prototype._complete.call(this):this.unsubscribe()};var fXd=["addListener","removeListener"],zdP=["addEventListener","removeEventListener"],uwy=["on","off"];var iQ=function(){Nv.call(this)};
_.r(iQ,Nv);iQ.JSC$7080_EMPTY=Nv.JSC$7080_EMPTY;iQ.prototype.schedule=function(){return this};var B54=function(K,X){return setInterval.apply(null,[K,X].concat(_.LZ(_.Ls.apply(2,arguments))))};var x_=function(K,X){Nv.call(this);this.scheduler=K;this.work=X;this.pending=!1};
_.r(x_,iQ);x_.JSC$7080_EMPTY=iQ.JSC$7080_EMPTY;x_.prototype.schedule=function(K,X){X=X===void 0?0:X;if(this.closed)return this;this.state=K;K=this.id;var F=this.scheduler;K!=null&&(this.id=SJy(this,K,X));this.pending=!0;this.delay=X;this.id=this.id||this.requestAsyncId(F,this.id,X);return this};
x_.prototype.requestAsyncId=function(K,X,F){F=F===void 0?0:F;return B54(K.flush.bind(K,this),F)};
var SJy=function(K,X,F){F=F===void 0?0:F;if(F!=null&&K.delay===F&&K.pending===!1)return X;clearInterval(X)};
x_.prototype.execute=function(K,X){if(this.closed)return Error("la");this.pending=!1;if(K=this._execute(K,X))return K;this.pending===!1&&this.id!=null&&(this.id=SJy(this,this.id,null))};
x_.prototype._execute=function(K){var X=!1;try{this.work(K)}catch(P){X=!0;var F=!!P&&P||Error(P)}if(X)return this.unsubscribe(),F};
x_.prototype.unsubscribe=function(){if(!this.closed){var K=this.id,X=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;bi(X,this);K!=null&&(this.id=SJy(this,K,null));this.delay=null;iQ.prototype.unsubscribe.call(this)}};var oZP=function(K,X){X=X===void 0?MD9:X;nZP.call(this,K,X);this.actions=[];this.active=!1;this.scheduled=void 0};
_.r(oZP,nZP);oZP.prototype.flush=function(K){var X=this.actions;if(this.active)X.push(K);else{var F;this.active=!0;do if(F=K.execute(K.state,K.delay))break;while(K=X.shift());this.active=!1;if(F){for(;K=X.shift();)K.unsubscribe();throw F;}}};var SA=new KZ(ii);var qv3=Array.isArray;var Ic=function(K,X){x_.call(this,K,X);this.scheduler=K;this.work=X};
_.r(Ic,x_);Ic.JSC$7080_EMPTY=x_.JSC$7080_EMPTY;Ic.prototype.schedule=function(K,X){X=X===void 0?0:X;if(X>0)return x_.prototype.schedule.call(this,K,X);this.delay=X;this.state=K;this.scheduler.flush(this);return this};
Ic.prototype.execute=function(K,X){return X>0||this.closed?x_.prototype.execute.call(this,K,X):this._execute(K,X)};
Ic.prototype.requestAsyncId=function(K,X,F){F=F===void 0?0:F;return F!=null&&F>0||F==null&&this.delay>0?x_.prototype.requestAsyncId.call(this,K,X,F):K.flush(this)};var LAy=function(){oZP.apply(this,arguments)};
_.r(LAy,oZP);var E8n=new LAy(Ic);var T59=function(){this.performanceMonitor=new hP9;this.queue=new m3l;this.internalSymbol=Symbol();this.debugNames=new u4n};
T59.prototype.getOnBackgrounded=function(){return SA};
_.Oi.Object.defineProperties(T59.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var k_=function(K,X){X=Error.call(this,X?K+": "+X:String(K));this.message=X.message;"stack"in X&&(this.stack=X.stack);this.code=K;this.__proto__=k_.prototype;this.name=String(K)};
_.r(k_,Error);var oR=function(K){k_.call(this,1E3,'sfr:"'+K+'"');this.measurementStrategyFailureReason=K;this.__proto__=oR.prototype};
_.r(oR,k_);var L8=function(){k_.call(this,1003);this.__proto__=L8.prototype};
_.r(L8,k_);var Kb=function(){k_.call(this,1009);this.__proto__=Kb.prototype};
_.r(Kb,k_);var rin=function(){k_.call(this,1011);this.__proto__=rin.prototype};
_.r(rin,k_);var Aiw=function(){k_.call(this,1007);this.__proto__=L8.prototype};
_.r(Aiw,k_);var M4=function(K){k_.call(this,1004,String(K));this.inputObservableIndex=K;this.__proto__=M4.prototype};
_.r(M4,k_);var l49=function(K){k_.call(this,1010,K);this.__proto__=n8.prototype};
_.r(l49,k_);var n8=function(K){k_.call(this,1005,K);this.__proto__=n8.prototype};
_.r(n8,k_);var jSy=function(K){var X=_.Ls.apply(1,arguments),F=this;this.orderedFactories=[];this.orderedFactories.push(K);X.forEach(function(P){F.orderedFactories.push(P)})};
jSy.prototype.isSupported=function(K){return this.orderedFactories.some(function(X){return X.isSupported(K)})};
jSy.prototype.makeBeacon=function(K,X){for(var F=0;F<this.orderedFactories.length;F++)if(this.orderedFactories[F].isSupported(X))return this.orderedFactories[F].makeBeacon(K,X);throw new Kb;};var LPy=Symbol("ma"),w4w=Symbol("na"),hT=function(K,X){this.value=K;this.timeline=X},U2=function(K,X){if(X.timeline!==K.timeline)throw new Aiw;
return K.value-X.value};
_.z=hT.prototype;_.z.equals=function(K){return U2(this,K)===0};
_.z.maximum=function(K){if(K.timeline!==this.timeline)throw new Aiw;return this.value>=K.value?this:K};
_.z.round=function(){return new hT(Math.round(this.value),this.timeline)};
_.z.add=function(K){return new hT(this.value+K,this.timeline)};
_.z.toString=function(){return String(this.value)};var X7=function(K,X){this.context=K;this.JSC$7207_pinger=X};
X7.prototype.isSupported=function(K){return this.JSC$7207_pinger.isSupported(K)};
X7.prototype.makeBeacon=function(K,X){if(!this.isSupported(X))throw new Kb;return new F7(this.context,this.JSC$7207_pinger,X!=null?X:void 0,K)};
var F7=function(K,X,F,P){var H=this;this.JSC$7213_pinger=X;this.properties=F;this.url=P;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var f;this.method=(f=F==null?void 0:F.beaconMethod)!=null?f:"GET";this.backgroundedSubscription=K.getOnBackgrounded().subscribe(function(){H.sendNow()})};
F7.prototype.deactivate=function(){this.internalIsPending=!1};
F7.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7213_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var K,X;this.JSC$7213_pinger.pingWithHeadersAndBody((K=this.properties)!=null?K:{},this.customHeaders,(X=this.body)!=null?X:"",this.url)}else this.JSC$7213_pinger.ping(this.url);this.internalIsPending=!1}catch(F){}else this.internalIsPending=!1};
F7.prototype.setHeader=function(K){this.customHeaders.set(K,void 0)};
_.Oi.Object.defineProperties(F7.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var WAn=function(){for(var K=_.D(_.Ls.apply(0,arguments)),X=K.next();!X.done;X=K.next())if(X=X.value,X.available()){this.timeProvider=X;return}this.timeProvider=new yiO};
_.z=WAn.prototype;_.z.available=function(){return this.timeProvider.available()};
_.z.now=function(){return this.timeProvider.now()};
_.z.setTimeout=function(K,X){return this.timeProvider.setTimeout(K,X)};
_.z.clearTimeout=function(K){this.timeProvider.clearTimeout(K)};
_.z.interval=function(K,X){var F=this.intervalObservable(K).subscribe(X);return function(){return void F.unsubscribe()}};
_.z.intervalObservable=function(K){return this.timeProvider.intervalObservable(K)};
_.Oi.Object.defineProperties(WAn.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var yiO=function(){this.timeline=Symbol()};
_.z=yiO.prototype;_.z.available=function(){return!1};
_.z.now=function(){return new hT(0,this.timeline)};
_.z.setTimeout=function(){return 0};
_.z.clearTimeout=function(){};
_.z.interval=function(){return function(){}};
_.z.intervalObservable=function(){return SA};var Pz=function(K,X){this.intrinsicFunctionNamespace=K;this.performanceMonitor=X};
_.z=Pz.prototype;_.z.setTimeout=function(K,X){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,K),X)};
_.z.clearTimeout=function(K){this.intrinsicFunctionNamespace.clearTimeout(K)};
_.z.interval=function(K,X){var F=this.intervalObservable(K).subscribe(X);return function(){return void F.unsubscribe()}};
_.z.intervalObservable=function(K){var X=this;return new KZ(function(F){var P=0,H=X.intrinsicFunctionNamespace.setInterval(function(){F.next(P++)},K);
return function(){X.intrinsicFunctionNamespace.clearInterval(H)}})};
_.z.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var dtl=function(K,X){Pz.call(this,K,X);this.timeline=w4w};
_.r(dtl,Pz);dtl.prototype.now=function(){return new hT(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
dtl.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&Pz.prototype.available.call(this)};var eql=function(K,X){Pz.call(this,K,X);this.timeline=LPy};
_.r(eql,Pz);eql.prototype.now=function(){return new hT(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
eql.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&Pz.prototype.available.call(this)};var Uty=function(K){this.context=K;if(Rqd===void 0)a:{var X,F,P=(X=K.global)==null?void 0:(F=X.document)==null?void 0:F.createElement("meta");if(P)try{P.httpEquiv="origin-trial";P.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";K.global.document.head.append(P);Rqd=P;break a}catch(H){}Rqd=void 0}},
Rqd;
Uty.prototype.isSupported=function(K){return Svy(this.context)!==void 0&&!(K==null||!K.endOfSession)&&!Hz(this.context)&&!(K==null?0:K.attributionEnabled)&&!(K==null?0:K.customHeaders)&&!(K==null?0:K.customBody)};
Uty.prototype.makeBeacon=function(K,X){if(!this.isSupported(X))throw new Kb;return new sE(this.context,K,X)};
var sE=function(K,X,F){this.context=K;this.properties=F;this.JSC$7240_urlWithoutToken=X;var P;this.beaconMethod=(P=F==null?void 0:F.beaconMethod)!=null?P:"GET";K=Svy(this.context);if(K===void 0)throw Error();this.fetchLater=K;hqP(this,mtT(this))},hqP=function(K,X){K.beaconResult&&K.beaconResult.activated||(K.beaconAbort=new AbortController,K.beaconResult=K.fetchLater(X,{method:K.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:K.beaconAbort.signal,activateAfter:96E4}))},mtT=function(K){K=K.JSC$7240_urlWithoutToken;
return(K.slice(-1)[0]==="&"?K:K+"&")+"flapi=1"};
sE.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
sE.prototype.sendNow=function(){};
sE.prototype.setHeader=function(){};
_.Oi.Object.defineProperties(sE.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7240_urlWithoutToken},
set:function(K){this.JSC$7240_urlWithoutToken=K;K=mtT(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);hqP(this,K)}},
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 GfP=function(K){this.context=K};
GfP.prototype.isSupported=function(){return!Hz(this.context)&&!!this.context.global.fetch};
GfP.prototype.ping=function(){var K=this;return eO.apply(null,_.LZ(_.Ls.apply(0,arguments).map(function(X){return Hk(K.context.global.fetch(X,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(ow(function(F){return F.status===200}))}))).pipe(w$n(function(X){return X}),WkO())};
GfP.prototype.pingWithHeadersAndBody=function(K,X,F){for(var P=_.Ls.apply(3,arguments),H=this,f=new Headers,u=_.D(X.entries()),J=u.next();!J.done;J=u.next()){var Z=_.D(J.value);J=Z.next().value;Z=Z.next().value;f.set(J,Z)}var M,n=(M=K.keepAlive)!=null?M:!1;eO.apply(null,_.LZ(P.map(function(c){return Hk(H.context.global.fetch(c,Object.assign({},{method:String(K.beaconMethod),cache:"no-cache"},n?{keepalive:!0}:{},{mode:"no-cors",headers:f,body:F}))).pipe(ow(function(B){return B.status===200}))}))).pipe(w$n(function(c){return c}),
WkO())};var liy,sHP;_.zM=function(){};
_.vy=function(K){return K};
liy=function(K){var X=X||0;return function(){return K.apply(this,Array.prototype.slice.call(arguments,0,X))}};
_.fb=function(K){var X=!1,F;return function(){X||(F=K(),X=!0);return F}};
_.Dn=function(K,X){var F=0;return function(P){_.FP.clearTimeout(F);var H=arguments;F=_.FP.setTimeout(function(){K.apply(void 0,H)},X)}};
sHP=function(K,X){var F=0,P=!1,H=[],f=function(){F=0;P&&(P=!1,u())},u=function(){F=_.FP.setTimeout(f,X);
var J=H;H=[];K.apply(void 0,J)};
return function(J){H=arguments;F?P=!0:u()}};var aiy=function(){return cy&&SP?SP.mobile:!vZy()&&(Tn("iPod")||Tn("iPhone")||Tn("Android")||Tn("IEMobile"))},vZy=function(){return cy&&SP?!SP.mobile&&(Tn("iPad")||Tn("Android")||Tn("Silk")):Tn("iPad")||Tn("Android")&&!Tn("Mobile")||Tn("Silk")};var tDy;_.T8={};tDy="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.T8.add=function(K,X,F){if(K!==null&&X in K)throw Error("pa`"+X);K[X]=F};
_.T8.clear=function(K){for(var X in K)delete K[X]};
_.T8.clone=function(K){var X={},F;for(F in K)X[F]=K[F];return X};
_.T8.contains=function(K,X){return Rdn(K,X)};
_.T8.containsKey=function(K,X){return K!==null&&X in K};
_.T8.containsValue=Rdn;_.T8.create=mv9;_.T8.createImmutableView=function(K){var X=K;Object.isFrozen&&!Object.isFrozen(K)&&(X=Object.create(K),Object.freeze(X));return X};
_.T8.createSet=Gpn;_.T8.equals=function(K,X){for(var F in K)if(!(F in X)||K[F]!==X[F])return!1;for(var P in X)if(!(P in K))return!1;return!0};
_.T8.every=function(K,X,F){for(var P in K)if(!X.call(F,K[P],P,K))return!1;return!0};
_.T8.extend=function(K,X){for(var F,P,H=1;H<arguments.length;H++){P=arguments[H];for(F in P)K[F]=P[F];for(var f=0;f<tDy.length;f++)F=tDy[f],Object.prototype.hasOwnProperty.call(P,F)&&(K[F]=P[F])}};
_.T8.filter=function(K,X,F){var P={},H;for(H in K)X.call(F,K[H],H,K)&&(P[H]=K[H]);return P};
_.T8.findKey=Uvd;_.T8.findValue=function(K,X,F){return(X=Uvd(K,X,F))&&K[X]};
_.T8.forEach=function(K,X,F){for(var P in K)X.call(F,K[P],P,K)};
_.T8.get=function(K,X,F){return K!==null&&X in K?K[X]:F};
_.T8.getAllPropertyNames=function(K,X,F){if(!K)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return ed4(K);for(var P={};K&&(K!==Object.prototype||X)&&(K!==Function.prototype||F);){for(var H=Object.getOwnPropertyNames(K),f=0;f<H.length;f++)P[H[f]]=!0;K=Object.getPrototypeOf(K)}return ed4(P)};
_.T8.getAnyKey=function(K){for(var X in K)return X};
_.T8.getAnyValue=function(K){for(var X in K)return K[X]};
_.T8.getCount=function(K){var X=0,F;for(F in K)X++;return X};
_.T8.getKeys=ed4;_.T8.getSuperClass=function(K){return(K=Object.getPrototypeOf(K.prototype))&&K.constructor};
_.T8.getValueByKeys=function(K,X){var F=_.xd(X),P=F?X:arguments;for(F=F?0:1;F<P.length;F++){if(K==null)return;K=K[P[F]]}return K};
_.T8.getValues=function(K){var X=[],F=0,P;for(P in K)X[F++]=K[P];return X};
_.T8.isEmpty=function(K){for(var X in K)return!1;return!0};
_.T8.isImmutableView=function(K){return!!Object.isFrozen&&Object.isFrozen(K)};
_.T8.map=function(K,X,F){var P={},H;for(H in K)P[H]=X.call(F,K[H],H,K);return P};
_.T8.remove=function(K,X){var F;(F=X in K)&&delete K[X];return F};
_.T8.set=function(K,X,F){K[X]=F};
_.T8.setIfUndefined=function(K,X,F){return X in K?K[X]:K[X]=F};
_.T8.setWithReturnValueIfNotSet=function(K,X,F){if(X in K)return K[X];F=F();return K[X]=F};
_.T8.some=function(K,X,F){for(var P in K)if(X.call(F,K[P],P,K))return!0;return!1};
_.T8.transpose=function(K){var X={},F;for(F in K)X[K[F]]=F;return X};
_.T8.unsafeClone=hdl;var ut=function(K,X,F,P,H){this.allowedElements=K;this.elementPolicies=X;this.allowedGlobalAttributes=F;this.globalAttributePolicies=P;this.globallyAllowedAttributePrefixes=H},$ty=function(K,X,F){F=K.elementPolicies.get(F);
return(F==null?0:F.has(X))?F.get(X):K.allowedGlobalAttributes.has(X)?{policyAction:1}:(F=K.globalAttributePolicies.get(X))?F:K.globallyAllowedAttributePrefixes&&[].concat(_.LZ(K.globallyAllowedAttributePrefixes)).some(function(P){return X.indexOf(P)===0})?{policyAction:1}:{policyAction:0}};var O2O="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(" "),
VDy=[["A",new Map([["href",{policyAction:2}]])],["AREA",new Map([["href",{policyAction:2}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],gZw="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(" "),
EZ9=[["dir",{policyAction:3,conditions:sv(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:sv(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:sv(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:sv(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],b2M=new ut(new Set(O2O),new Map(VDy),new Set(gZw),new Map(EZ9)),CVy=new ut(new Set(O2O.concat(["BUTTON",
"INPUT"])),new Map(VDy),new Set(sv(function(){return gZw.concat(["class","id","name"])})),new Map(sv(function(){return EZ9.concat([["style",
{policyAction:1}]])})));var N53,i2P,Iin;N53=function(K,X,F,P){this.JSC$7300_sanitizerTable=K;this.styleElementSanitizer=X;this.styleAttributeSanitizer=F;this.JSC$7300_resourceUrlPolicy=P;this.changes=[]};
_.xty=function(K,X){var F=document.implementation.createHTMLDocument("");K=i2P(K,X,F);F=F.body;F.appendChild(K);F=(new XMLSerializer).serializeToString(F);F=F.slice(F.indexOf(">")+1,F.lastIndexOf("</"));return wF(F)};
i2P=function(K,X,F){X=viw(X,F);X=document.createTreeWalker(X,5,function(J){if(J.nodeType===3)J=1;else if(ti4(J))if(J=aX3(J),J===null)J=2;else{var Z=K.JSC$7300_sanitizerTable;J=J!=="FORM"&&(Z.allowedElements.has(J)||Z.elementPolicies.has(J))?1:2}else J=2;return J});
for(var P=X.nextNode(),H=F.createDocumentFragment(),f=H;P!==null;){var u=void 0;if(P.nodeType===3)K.styleElementSanitizer&&f.nodeName==="STYLE"?(P=K.styleElementSanitizer(P.data),u=K.createTextNode(P)):u=K.createTextNode(P.data);else if(ti4(P))u=Iin(K,P,F);else throw Error("da");f.appendChild(u);if(P=X.firstChild())f=u;else for(;!(P=X.nextSibling())&&(P=X.parentNode());)f=f.parentNode}return H};
N53.prototype.createTextNode=function(K){return document.createTextNode(K)};
Iin=function(K,X,F){var P,H=aX3(X);F=F.createElement(H);X=X.attributes;for(var f=_.D(X),u=f.next();!u.done;u=f.next()){var J=u.value;u=J.name;J=J.value;var Z=$ty(K.JSC$7300_sanitizerTable,u,H);a:{if(P=Z.conditions){P=_.D(P);for(var M=P.next();!M.done;M=P.next()){var n=_.D(M.value);M=n.next().value;n=n.next().value;var c=void 0;if((M=(c=X.getNamedItem(M))==null?void 0:c.value)&&!n.has(M)){P=!1;break a}}}P=!0}if(P)switch(Z.policyAction){case 1:K8(F,u,J);break;case 2:Z=_.MyT(J);J=Z!==void 0&&k$n.indexOf(Z.toLowerCase())!==
-1?J:"about:invalid#zClosurez";K8(F,u,J);break;case 3:K8(F,u,J.toLowerCase());break;case 4:K.styleAttributeSanitizer?(J=K.styleAttributeSanitizer(J),K8(F,u,J)):K8(F,u,J);break;case 5:K.JSC$7300_resourceUrlPolicy?(Z={type:2,attributeName:u,elementName:H},J=lXw(J),(J=K.JSC$7300_resourceUrlPolicy(J,Z))&&K8(F,u,J.toString())):K8(F,u,J);break;case 6:if(K.JSC$7300_resourceUrlPolicy){Z={type:2,attributeName:u,elementName:H};P=[];J=_.D(J.split(","));for(M=J.next();!M.done;M=J.next())n=_.D(M.value.trim().split(/\s+/,
2)),M=n.next().value,n=n.next().value,P.push({url:M,descriptor:n});J={parts:[]};P=_.D(P);for(M=P.next();!M.done;M=P.next())M=M.value,n=lXw(M.url),(n=K.JSC$7300_resourceUrlPolicy(n,Z))&&J.parts.push({url:n.toString(),descriptor:M.descriptor});K8(F,u,$vl(J))}else K8(F,u,J)}}return F};
_.kfl=sv(function(){return new N53(b2M)});
_.K4t=sv(function(){return new N53(CVy)});var XyU=function(){this.calledBuild=!1;this.JSC$7312_sanitizerTable=b2M},F4E=function(){XyU.apply(this,arguments)};
_.r(F4E,XyU);F4E.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new N53(this.JSC$7312_sanitizerTable,void 0,void 0,this.JSC$7312_resourceUrlPolicy)};var PTu=/[^#]*/;var EO=function(K){try{return!!K&&K.location.href!=null&&Wf(K,"foo")}catch(X){return!1}},s3W=function(K){var X=HOL;
if(X)for(var F in X)Object.prototype.hasOwnProperty.call(X,F)&&K(X[F],F,X)},zyQ=function(){var K=[];
s3W(function(X){K.push(X)});
return K},HOL={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"},flO=_.fb(function(){return zyQ()}),uPL=function(){var K=DqC("IFRAME"),
X={};
_.vd(flO(),function(F){K.sandbox&&K.sandbox.supports&&K.sandbox.supports(F)&&(X[F]=!0)});
return X},DqC=function(K,X){X=X===void 0?document:X;
return X.createElement(String(K).toLowerCase())};var q_;_.rH=function(K,X,F){return Math.min(Math.max(K,X),F)};
q_=function(K,X,F){return K+F*(X-K)};_.jA=function(K,X){this.x=K!==void 0?K:0;this.y=X!==void 0?X:0};
_.z=_.jA.prototype;_.z.clone=function(){return new _.jA(this.x,this.y)};
_.z.equals=function(K){return K instanceof _.jA&&(this==K?!0:this&&K?this.x==K.x&&this.y==K.y:!1)};
_.z.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.z.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.z.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.z.translate=function(K,X){K instanceof _.jA?(this.x+=K.x,this.y+=K.y):(this.x+=Number(K),typeof X==="number"&&(this.y+=X));return this};
_.z.scale=function(K,X){this.x*=K;this.y*=typeof X==="number"?X:K;return this};_.q4=function(K,X){this.width=K;this.height=X};
_.z=_.q4.prototype;_.z.clone=function(){return new _.q4(this.width,this.height)};
_.z.area=function(){return this.width*this.height};
_.z.aspectRatio=function(){return this.width/this.height};
_.z.isEmpty=function(){return!this.area()};
_.z.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.z.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.z.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.z.scale=function(K,X){this.width*=K;this.height*=typeof X==="number"?X:K;return this};var dc=function(K,X){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=K===rYw&&X||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=qlL};
dc.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var JMC=function(K){return K instanceof dc&&K.constructor===dc&&K.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===qlL?K.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},qlL={},rYw={};
new dc(rYw,"");var Yp,pJ,Zn,ZOQ,MPZ,Q3Q,wp,cMQ,BwC,pyW,nb,SlT,wyL,j3L,AMu,yMt,W4U,dqW,eyO,O$q,Ryt,hyt,mqC,Uqt,JI;Yp=function(K){return K?new JI(_.yf(K)):ezl||(ezl=new JI)};
_.Vk=function(K,X){return typeof X==="string"?K.getElementById(X):X};
pJ=function(K,X){return(X||document).getElementsByTagName(String(K))};
_.YlZ=function(K){return ZOQ("yt-formatted-string","paper-input-input",K)};
Zn=function(K,X,F,P){K=P||K;return(X=X&&X!="*"?String(X).toUpperCase():"")||F?K.querySelectorAll(X+(F?"."+F:"")):K.getElementsByTagName("*")};
ZOQ=function(K,X,F){var P=document,H=K&&K!="*"?String(K).toUpperCase():"";return H||X?(F||P).querySelector(H+(X?"."+X:"")):Zn(P,K,X,F)[0]||null};
MPZ=function(K,X){_.T8.forEach(X,function(F,P){P=="style"?K.style.cssText=F:P=="class"?K.className=F:P=="for"?K.htmlFor=F:Q3Q.hasOwnProperty(P)?K.setAttribute(Q3Q[P],F):_.Hy(P,"aria-")||_.Hy(P,"data-")?K.setAttribute(P,F):K[P]=F})};
Q3Q={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"};_.JE=function(K){K=(K||window).document;K=K.compatMode=="CSS1Compat"?K.documentElement:K.body;return new _.q4(K.clientWidth,K.clientHeight)};
_.ndT=function(K){var X=_.Yo(K);K=K.defaultView;return new _.jA(K.pageXOffset||X.scrollLeft,K.pageYOffset||X.scrollTop)};
_.Yo=function(K){return K.scrollingElement?K.scrollingElement:_.Ii||K.compatMode!="CSS1Compat"?K.body||K.documentElement:K.documentElement};
wp=function(K){return K?K.defaultView:window};
_.Qm=function(K,X,F){return cMQ(document,arguments)};
cMQ=function(K,X){var F=X[1],P=pyW(K,String(X[0]));F&&(typeof F==="string"?P.className=F:Array.isArray(F)?P.className=F.join(" "):MPZ(P,F));X.length>2&&BwC(K,P,X,2);return P};
BwC=function(K,X,F,P){function H(J){J&&X.appendChild(typeof J==="string"?K.createTextNode(J):J)}
for(;P<F.length;P++){var f=F[P];if(!_.xd(f)||_.XL(f)&&f.nodeType>0)H(f);else{a:{if(f&&typeof f.length=="number"){if(_.XL(f)){var u=typeof f.item=="function"||typeof f.item=="string";break a}if(typeof f==="function"){u=typeof f.item=="function";break a}}u=!1}_.vd(u?_.Nq(f):f,H)}}};
_.nJ=function(K){return pyW(document,K)};
pyW=function(K,X){X=String(X);K.contentType==="application/xhtml+xml"&&(X=X.toLowerCase());return K.createElement(X)};
_.M_=function(){return document.createTextNode("\n")};
nb=function(K){if(K.nodeType!=1)return!1;switch(K.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};
SlT=function(K,X){BwC(_.yf(K),K,arguments,1)};
_.cz=function(K){for(var X;X=K.firstChild;)K.removeChild(X)};
_.pb=function(K,X){X.parentNode&&X.parentNode.insertBefore(K,X)};
_.Bz=function(K,X){X.parentNode&&X.parentNode.insertBefore(K,X.nextSibling)};
_.c_=function(K){return K&&K.parentNode?K.parentNode.removeChild(K):null};
_.odN=function(K,X){var F=X.parentNode;F&&F.replaceChild(K,X)};
_.L4N=function(K){var X,F=K.parentNode;if(F&&F.nodeType!=11)if(K.removeNode)K.removeNode(!1);else{for(;X=K.firstChild;)F.insertBefore(X,K);_.c_(K)}};
_.Sh=function(K){return K.children!=void 0?K.children:Array.prototype.filter.call(K.childNodes,function(X){return X.nodeType==1})};
_.rMQ=function(K){return K.nextElementSibling!==void 0?K.nextElementSibling:_.TwV(K.nextSibling,!0)};
_.TwV=function(K,X){for(;K&&K.nodeType!=1;)K=X?K.nextSibling:K.previousSibling;return K};
_.gG=function(K){return _.XL(K)&&K.nodeType==1};
_.G3=function(K,X){if(!K||!X)return!1;if(K.contains&&X.nodeType==1)return K==X||K.contains(X);if(typeof K.compareDocumentPosition!="undefined")return K==X||!!(K.compareDocumentPosition(X)&16);for(;X&&K!=X;)X=X.parentNode;return X==K};
wyL=function(K,X){if(K==X)return 0;if(K.compareDocumentPosition)return K.compareDocumentPosition(X)&2?1:-1;if("sourceIndex"in K||K.parentNode&&"sourceIndex"in K.parentNode){var F=K.nodeType==1,P=X.nodeType==1;if(F&&P)return K.sourceIndex-X.sourceIndex;var H=K.parentNode,f=X.parentNode;return H==f?AMu(K,X):!F&&_.G3(H,X)?-1*j3L(K,X):!P&&_.G3(f,K)?j3L(X,K):(F?K.sourceIndex:H.sourceIndex)-(P?X.sourceIndex:f.sourceIndex)}P=_.yf(K);F=P.createRange();F.selectNode(K);F.collapse(!0);K=P.createRange();K.selectNode(X);
K.collapse(!0);return F.compareBoundaryPoints(_.FP.Range.START_TO_END,K)};
j3L=function(K,X){var F=K.parentNode;if(F==X)return-1;for(;X.parentNode!=F;)X=X.parentNode;return AMu(X,K)};
AMu=function(K,X){for(;X=X.previousSibling;)if(X==K)return-1;return 1};
yMt=function(K){var X,F=arguments.length;if(!F)return null;if(F==1)return arguments[0];var P=[],H=Infinity;for(X=0;X<F;X++){for(var f=[],u=arguments[X];u;)f.unshift(u),u=u.parentNode;P.push(f);H=Math.min(H,f.length)}f=null;for(X=0;X<H;X++){u=P[0][X];for(var J=1;J<F;J++)if(u!=P[J][X])return f;f=u}return f};
_.yf=function(K){return K.nodeType==9?K:K.ownerDocument||K.document};
W4U=function(K){return K.contentDocument||K.contentWindow.document};
_.oY=function(K,X){if("textContent"in K)K.textContent=X;else if(K.nodeType==3)K.data=String(X);else if(K.firstChild&&K.firstChild.nodeType==3){for(;K.lastChild!=K.firstChild;)K.removeChild(K.lastChild);K.firstChild.data=String(X)}else _.cz(K),K.appendChild(_.yf(K).createTextNode(String(X)))};
dqW={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};eyO={IMG:" ",BR:"\n"};O$q=function(K){var X;K.tagName=="A"&&K.hasAttribute("href")||K.tagName=="INPUT"||K.tagName=="TEXTAREA"||K.tagName=="SELECT"||K.tagName=="BUTTON"?X=!K.disabled&&(!K.hasAttribute("tabindex")||Ryt(K)):X=K.hasAttribute("tabindex")&&Ryt(K);return X};
Ryt=function(K){K=K.tabIndex;return typeof K==="number"&&K>=0&&K<32768};
hyt=function(K){var X=[];Uqt(K,X,!0);K=X.join("");K=K.replace(/ \xAD /g," ").replace(/\xAD/g,"");K=K.replace(/\u200B/g,"");K=K.replace(/ +/g," ");K!=" "&&(K=K.replace(/^\s*/,""));return K};
mqC=function(K){var X=[];Uqt(K,X,!1);return X.join("")};
Uqt=function(K,X,F){if(!(K.nodeName in dqW))if(K.nodeType==3)F?X.push(String(K.nodeValue).replace(/(\r\n|\r|\n)/g,"")):X.push(K.nodeValue);else if(K.nodeName in eyO)X.push(eyO[K.nodeName]);else for(K=K.firstChild;K;)Uqt(K,X,F),K=K.nextSibling};
_.GnZ=function(K,X,F){if(!X&&!F)return null;var P=X?String(X).toUpperCase():null;return _.RR(K,function(H){return(!P||H.nodeName==P)&&(!F||typeof H.className==="string"&&_.Ol(H.className.split(/\s+/),F))},!0)};
_.RR=function(K,X,F){K&&!F&&(K=K.parentNode);for(F=0;K;){if(X(K))return K;K=K.parentNode;F++}return null};
JI=function(K){this.JSC$7337_document_=K||_.FP.document||document};
_.z=JI.prototype;_.z.getElement=function(K){return _.Vk(this.JSC$7337_document_,K)};
_.z.$=JI.prototype.getElement;_.z.getElementsByTagName=function(K,X){return(X||this.JSC$7337_document_).getElementsByTagName(String(K))};
_.z.getElementsByTagNameAndClass=function(K,X,F){return Zn(this.JSC$7337_document_,K,X,F)};
_.z.$$=JI.prototype.getElementsByTagNameAndClass;_.z.setProperties=MPZ;_.z.JSC$7339_createDom=function(K,X,F){return cMQ(this.JSC$7337_document_,arguments)};
_.z.createElement=function(K){return pyW(this.JSC$7337_document_,K)};
_.z.createTextNode=function(K){return this.JSC$7337_document_.createTextNode(String(K))};
_.z.getWindow=function(){return this.JSC$7337_document_.defaultView};
var Zw=function(K){return _.ndT(K.JSC$7337_document_)};
_.z=JI.prototype;_.z.appendChild=function(K,X){K.appendChild(X)};
_.z.append=SlT;_.z.canHaveChildren=nb;_.z.removeNode=_.c_;_.z.getChildren=_.Sh;_.z.contains=_.G3;_.z=Pf.prototype;_.z.getWidth=function(){return this.right-this.left};
_.z.getHeight=function(){return this.bottom-this.top};
_.z.clone=function(){return new Pf(this.top,this.right,this.bottom,this.left)};
_.z.contains=function(K){return this&&K?K instanceof Pf?K.left>=this.left&&K.right<=this.right&&K.top>=this.top&&K.bottom<=this.bottom:K.x>=this.left&&K.x<=this.right&&K.y>=this.top&&K.y<=this.bottom:!1};
_.z.expand=function(K,X,F,P){_.XL(K)?(this.top-=K.top,this.right+=K.right,this.bottom+=K.bottom,this.left-=K.left):(this.top-=K,this.right+=Number(X),this.bottom+=Number(F),this.left-=Number(P));return this};
_.z.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
_.z.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
_.z.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
_.z.translate=function(K,X){K instanceof _.jA?(this.left+=K.x,this.right+=K.x,this.top+=K.y,this.bottom+=K.y):(this.left+=K,this.right+=K,typeof X==="number"&&(this.top+=X,this.bottom+=X));return this};
_.z.scale=function(K,X){X=typeof X==="number"?X:K;this.left*=K;this.right*=K;this.top*=X;this.bottom*=X;return this};var Lb=function(K,X,F,P){this.left=K;this.top=X;this.width=F;this.height=P};
_.z=Lb.prototype;_.z.clone=function(){return new Lb(this.left,this.top,this.width,this.height)};
_.z.boundingRect=function(K){var X=Math.max(this.left+this.width,K.left+K.width),F=Math.max(this.top+this.height,K.top+K.height);this.left=Math.min(this.left,K.left);this.top=Math.min(this.top,K.top);this.width=X-this.left;this.height=F-this.top};
_.z.contains=function(K){return K instanceof _.jA?K.x>=this.left&&K.x<=this.left+this.width&&K.y>=this.top&&K.y<=this.top+this.height:this.left<=K.left&&this.left+this.width>=K.left+K.width&&this.top<=K.top&&this.top+this.height>=K.top+K.height};
_.z.distance=function(K){var X=K.x<this.left?this.left-K.x:Math.max(K.x-(this.left+this.width),0);K=K.y<this.top?this.top-K.y:Math.max(K.y-(this.top+this.height),0);return Math.sqrt(X*X+K*K)};
_.z.getSize=function(){return new _.q4(this.width,this.height)};
_.z.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.z.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.z.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.z.translate=function(K,X){K instanceof _.jA?(this.left+=K.x,this.top+=K.y):(this.left+=K,typeof X==="number"&&(this.top+=X));return this};
_.z.scale=function(K,X){X=typeof X==="number"?X:K;this.left*=K;this.width*=K;this.top*=X;this.height*=X;return this};var vdE,AI,JEn,rP,OOW,$qU,VPU,hUq,gdW,bOC;_.TM=function(K,X,F){if(typeof X==="string")(X=_.llL(K,X))&&(K.style[X]=F);else for(var P in X){F=K;var H=X[P],f=_.llL(F,P);f&&(F.style[f]=H)}};
vdE={};_.llL=function(K,X){var F=vdE[X];if(!F){var P=_.uX(X);F=P;K.style[P]===void 0&&(P=(_.Ii?"Webkit":_.xA?"Moz":null)+Dt3(P),K.style[P]!==void 0&&(F=P));vdE[X]=F}return F};
_.Jq=function(K,X){var F=_.yf(K);return F.defaultView&&F.defaultView.getComputedStyle&&(K=F.defaultView.getComputedStyle(K,null))?K[X]||K.getPropertyValue(X)||"":""};
_.m8=function(K,X){return _.Jq(K,X)||(K.currentStyle?K.currentStyle[X]:null)||K.style&&K.style[X]};
_.alu=function(K){return _.m8(K,"position")};
AI=function(K,X,F){if(X instanceof _.jA){var P=X.x;X=X.y}else P=X,X=F;K.style.left=rP(P,!1);K.style.top=rP(X,!1)};
JEn=function(K){try{return K.getBoundingClientRect()}catch(X){return{left:0,top:0,right:0,bottom:0}}};
_.dp=function(K){var X=_.yf(K),F=new _.jA(0,0);if(K==(X?_.yf(X):document).documentElement)return F;K=JEn(K);X=Zw(Yp(X));F.x=K.left+X.x;F.y=K.top+X.y;return F};
_.tPU=function(K,X,F){if(X instanceof _.q4)F=X.height,X=X.width;else if(F==void 0)throw Error("sa");K.style.width=rP(X,!0);K.style.height=rP(F,!0)};
rP=function(K,X){typeof K=="number"&&(K=(X?Math.round(K):K)+"px");return K};
OOW=function(K){return $qU(K)};
$qU=function(K){var X=VPU;if(_.m8(K,"display")!="none")return X(K);var F=K.style,P=F.display,H=F.visibility,f=F.position;F.visibility="hidden";F.position="absolute";F.display="inline";K=X(K);F.display=P;F.position=f;F.visibility=H;return K};
VPU=function(K){var X=K.offsetWidth,F=K.offsetHeight,P=_.Ii&&!X&&!F;return(X===void 0||P)&&K.getBoundingClientRect?(K=JEn(K),new _.q4(K.right-K.left,K.bottom-K.top)):new _.q4(X,F)};
hUq=function(K){var X=_.dp(K);K=$qU(K);return new Lb(X.x,X.y,K.width,K.height)};
gdW=function(K,X){K=K.style;"opacity"in K?K.opacity=X:"MozOpacity"in K?K.MozOpacity=X:"filter"in K&&(K.filter=X===""?"":"alpha(opacity="+Number(X)*100+")")};
_.Ow=function(K,X){K.style.display=X?"":"none"};
_.Edt=function(K){return"rtl"==_.m8(K,"direction")};
bOC=function(K){var X=_.Jq(K,"marginLeft"),F=_.Jq(K,"marginRight"),P=_.Jq(K,"marginTop");K=_.Jq(K,"marginBottom");return new Pf(parseFloat(P),parseFloat(F),parseFloat(K),parseFloat(X))};
_.CTZ=function(K){var X=_.Jq(K,"borderLeftWidth"),F=_.Jq(K,"borderRightWidth"),P=_.Jq(K,"borderTopWidth");K=_.Jq(K,"borderBottomWidth");return new Pf(parseFloat(P),parseFloat(F),parseFloat(K),parseFloat(X))};var jh=function(K){this.context=K};
jh.prototype.isSupported=function(K){return(K==null?0:K.attributionEnabled)||(K==null?void 0:K.beaconMethod)==="POST"||(K==null?0:K.customHeaders)||(K==null?0:K.customBody)||(K==null?0:K.keepAlive)?!1:!Hz(this.context)};
jh.prototype.ping=function(){var K=this;return Qw(_.Ls.apply(0,arguments).map(function(X){try{var F=K.context.global,P=!1;P=P===void 0?!1:P;F.google_image_requests||(F.google_image_requests=[]);var H=DqC("IMG",F.document);P&&(H.attributionSrc="");H.src=X;F.google_image_requests.push(H);return!0}catch(f){return!1}}).every(function(X){return X}))};
jh.prototype.pingWithHeadersAndBody=function(K,X,F){this.ping.apply(this,_.LZ(_.Ls.apply(3,arguments)))};var NwO=function(K){this.context=K};
NwO.prototype.isSupported=function(K){return iOQ&&!Hz(this.context)&&Vin(this.context)!==void 0&&!(K==null?0:K.attributionEnabled)&&(K==null?void 0:K.beaconMethod)!=="POST"&&!(K==null?0:K.customHeaders)&&!(K==null?0:K.customBody)};
NwO.prototype.makeBeacon=function(K,X){if(!this.isSupported(X))throw new Kb;return new wP(this.context,K)};
var iOQ=!1,wP=function(K,X){this.context=K;this.JSC$7358_urlWithoutToken=X;K=Vin(this.context);if(K===void 0)throw Error();this.wrappedBeacon=new K(xqt(this),{})},xqt=function(K){K=K.JSC$7358_urlWithoutToken;
return(K.slice(-1)[0]==="&"?K:K+"&")+"pbapi=1"};
wP.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
wP.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
wP.prototype.setHeader=function(){};
_.Oi.Object.defineProperties(wP.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7358_urlWithoutToken},
set:function(K){this.JSC$7358_urlWithoutToken=K;this.wrappedBeacon.setURL(xqt(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(K){if(K!=="GET")throw new Kb;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var IlO=function(K){this.context=K};
IlO.prototype.isSupported=function(K){if((K==null?0:K.attributionEnabled)||(K==null?void 0:K.beaconMethod)==="GET"||(K==null?0:K.customHeaders)||(K==null?0:K.customBody)||(K==null?0:K.keepAlive))return!1;var X;return!Hz(this.context)&&((X=this.context.global.navigator)==null?void 0:X.sendBeacon)!==void 0};
IlO.prototype.ping=function(){var K=this;return Qw(_.Ls.apply(0,arguments).map(function(X){var F;return(F=K.context.global.navigator)==null?void 0:F.sendBeacon(X)}).every(function(X){return X}))};
IlO.prototype.pingWithHeadersAndBody=function(K,X,F){this.ping.apply(this,_.LZ(_.Ls.apply(3,arguments)))};var Dw=function(K){this.value=K},OO=function(K,X){return Qw(K.value).pipe(z8(X))},C8=new Dw(!1),SwP=new Dw(!0);var UO=function(K){this.value=K;this.releasedSubject=new Hf};
UO.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.Oi.Object.defineProperties(UO.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7371_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var PKd=["FRAME","IMG","IFRAME"],xvP=/^[01](px)?$/,Fqy=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},Xkn=function(){var K=new Fqy;
K.crossDomainLoadedDefault=!0;K.pendingImagesBlockLoad=!0;return K};var knL=function(K,X){var F=q23(K);if(F)if(F.onCreativeLoad)F.onCreativeLoad(X);else{var P=X?[X]:[],H=function(f){for(var u=0;u<P.length;++u)try{P[u](1,f)}catch(J){}P={push:function(J){J(1,f)}}};
F.onCreativeLoad=function(f){P.push(f)};
F.setAttribute("data-creative-load-listener","");F.addEventListener("creativeLoad",function(f){H(f.detail)});
_.FP.addEventListener("message",function(f){ugy(F,H,f)})}};var ym=function(K,X){var F=this;this.global=K;this.parentContext=X;this.JSC$7382_onVisibilityChange=this.document?eO(Qw(!0),Wk(this.document,"visibilitychange")).pipe(mq(this.parentContext.performanceMonitor,748),ow(function(){return F.getVisibilityState()}),tT()):Qw("visible");
this.document?Wk(this.document,"DOMContentLoaded").pipe(mq(this.parentContext.performanceMonitor,739),aw(1)):Qw(NFP("DOMContentLoaded"))},B09=function(K){return K.document!==null&&K.document.visibilityState!==void 0};
ym.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
ym.prototype.querySelector=function(K){return this.document?this.document.querySelector(K):null};
ym.prototype.querySelectorAll=function(K){return this.document?_.Nq(this.document.querySelectorAll(K)):[]};
ym.prototype.elementFromPoint=function(K,X){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;K=this.document.elementFromPoint(K,X);return K===null?null:new UO(K)};
var Dg3=function(K,X,F){F=F===void 0?!1:F;if(X.ref===void 0||!K.document)return Qw(X).pipe(mq(K.parentContext.performanceMonitor,749));var P=new E2(1),H=function(){P.next(X)};
F||knL(X.ref,H);HZP(X.ref,H);return P.pipe(mq(K.parentContext.performanceMonitor,749),aw(1))};
_.Oi.Object.defineProperties(ym.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return Wf(this.global,"document")?this.global.document||null:null}}});var JTT=_.lr(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),ZZw=_.lr(["./reach_worklet.js"]),Y24=_.lr(["./reach_worklet.js"]),Ktu=_.lr(["./reach_worklet.html"]),XNt=_.lr(["./reach_worklet.js"]),FtL=_.lr(["./reach_worklet.js"]);_.Xs(Ktu);_.Xs(XNt);_.Xs(FtL);var lk={left:0,top:0,width:0,height:0};var PuC,HWW,sCL,zTO,EN,DVV,uLC,qZW,b6y,Cnq,YZQ,QCV;PuC=function(K,X,F,P,H,f,u){var J="";K&&(J+=K+":");F&&(J+="//",X&&(J+=X+"@"),J+=F,P&&(J+=":"+P));H&&(J+=H);f&&(J+="?"+f);u&&(J+="#"+u);return J};
HWW=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.V8=function(K){return K.match(HWW)};
_.pk=function(K,X){return K?X?decodeURI(K):decodeURIComponent(K):K};
sCL=function(K){K=_.V8(K)[1]||null;!K&&_.FP.self&&_.FP.self.location&&(K=_.FP.self.location.protocol.slice(0,-1));return K?K.toLowerCase():""};
_.g2=function(K){return _.pk(_.V8(K)[3]||null,!0)};
_.zy=function(K){return _.pk(_.V8(K)[5]||null,!0)};
_.KIl=function(K){var X=K.indexOf("#");return X<0?null:K.slice(X+1)};
zTO=function(K){K=_.V8(K);return PuC(K[1],K[2],K[3],K[4])};
_.fQL=function(K){K=_.V8(K);return PuC(K[1],null,K[3],K[4])};
_.Uc=function(K){K=_.V8(K);return PuC(null,null,null,null,K[5],K[6],K[7])};
_.$r=function(K){var X=K.indexOf("#");return X<0?K:K.slice(0,X)};
EN=function(K,X){K=_.V8(K);X=_.V8(X);return K[3]==X[3]&&K[1]==X[1]&&K[4]==X[4]};
DVV=function(K,X){if(K){K=K.split("&");for(var F=0;F<K.length;F++){var P=K[F].indexOf("="),H=null;if(P>=0){var f=K[F].substring(0,P);H=K[F].substring(P+1)}else f=K[F];X(f,H?C9(H):"")}}};
uLC=function(K){var X=K.indexOf("#");X<0&&(X=K.length);var F=K.indexOf("?");if(F<0||F>X){F=X;var P=""}else P=K.substring(F+1,X);return[K.slice(0,F),P,K.slice(X)]};
qZW=function(K,X){return X?K?K+"&"+X:X:K};
_.JtO=function(K,X){if(!X)return K;K=uLC(K);K[1]=qZW(K[1],X);return K[0]+(K[1]?"?"+K[1]:"")+K[2]};
_.ZWt=function(K,X,F){if(Array.isArray(X))for(var P=0;P<X.length;P++)_.ZWt(K,String(X[P]),F);else X!=null&&F.push(K+(X===""?"":"="+_.l9(X)))};
_.Dr=function(K){var X=[],F;for(F in K)_.ZWt(F,K[F],X);return X.join("&")};
_.ON=function(K,X){X=_.Dr(X);return _.JtO(K,X)};
_.Wz=function(K,X,F){F=F!=null?"="+_.l9(F):"";return _.JtO(K,X+F)};
b6y=function(K,X,F,P){for(var H=F.length;(X=K.indexOf(F,X))>=0&&X<P;){var f=K.charCodeAt(X-1);if(f==38||f==63)if(f=K.charCodeAt(X+H),!f||f==61||f==38||f==35)return X;X+=H+1}return-1};
Cnq=/#|$/;_.lB=function(K,X){var F=K.search(Cnq),P=b6y(K,0,X,F);if(P<0)return null;var H=K.indexOf("&",P);if(H<0||H>F)H=F;P+=X.length+1;return C9(K.slice(P,H!==-1?H:0))};
YZQ=/[?&]($|#)/;_.Vn=function(K,X){for(var F=K.search(Cnq),P=0,H,f=[];(H=b6y(K,P,X,F))>=0;)f.push(K.substring(P,H)),P=Math.min(K.indexOf("&",H)+1||F,F);f.push(K.slice(P));return f.join("").replace(YZQ,"$1")};
_.eF=function(K,X,F){return _.Wz(_.Vn(K,X),X,F)};
QCV=function(K){var X=uLC(window.location.href),F=X[1],P=[];F&&F.split("&").forEach(function(H){var f=H.indexOf("=");f=f>=0?H.slice(0,f):H;K.hasOwnProperty(f)||P.push(H)});
X[1]=qZW(P.join("&"),_.Dr(K));return X[0]+(X[1]?"?"+X[1]:"")+X[2]};var UcM=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(UcM,_.Gm);UcM.prototype.getVersion=function(){return _.BL(this,2)};var RQP=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(RQP,_.Gm);var jw9=function(K,X){return _.Qf(K,2,X)},eQ9=function(K,X){return _.Qf(K,3,X)};
RQP.prototype.getModel=function(){return _.BL(this,4)};
var yTd=function(K,X){return _.Qf(K,4,X)},ATy=function(K,X){return _.Qf(K,5,X)},dcO=function(K,X){return _.Qf(K,9,X)},rT9=function(K,X){return Jb(K,10,X)},TEd=function(K,X){return _.sw(K,11,X)},wkO=function(K,X){return _.Qf(K,1,X)},WqT=function(K,X){return _.sw(K,7,X)};var oEM="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var bk=function(K,X,F,P){K=K===void 0?window:K;X=X===void 0?null:X;F=F===void 0?new hP9:F;P=P===void 0?Qwq():P;T59.call(this);var H=this;this.global=K;this.debugChannel=X;this.performanceMonitor=F;this.onPageHide=yw(function(){return Wk(H.global,"pagehide")}).pipe(mq(this.performanceMonitor,941));
this.onLoad=yw(function(){return Wk(H.global,"load")}).pipe(mq(this.performanceMonitor,738),aw(1));
this.onResize=yw(function(){return Wk(H.global,"resize")}).pipe(mq(this.performanceMonitor,741));
this.onMessage=yw(function(){return Wk(H.global,"message")}).pipe(mq(this.performanceMonitor,740));
this.document=new ym(this.global,this);this.timeProvider=new WAn(new eql(this.intrinsicFunctionNamespace,this.performanceMonitor),new dtl(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new jSy(new Uty(this),new NwO(this),new X7(this,new GfP(this)),new X7(this,new IlO(this)),new X7(this,new jh(this)))};
_.r(bk,T59);var Hz=function(K){var X=K.global;return!!K.global.HTMLFencedFrameElement&&!!X.fence&&typeof X.fence.reportEvent==="function"};
_.z=bk.prototype;_.z.reportFencedFrameEvent=function(K){Hz(this)&&this.global.fence.reportEvent(K)};
_.z.getOnBackgrounded=function(){return this.onPageHide.pipe(mq(this.performanceMonitor,942),z8(this.queue),ow(function(){}))};
_.z.postMessage=function(K,X,F){F=F===void 0?[]:F;this.global.postMessage(K,X,F)};
_.z.getWidth=function(){return EO(this.global)?this.global.width:0};
_.z.getHeight=function(){return EO(this.global)?this.global.height:0};
_.z.isMobile=function(){return vZy()||aiy()};
var hE=function(K,X){try{var F=pkP(X,K.global,K.isMobile());return{left:F.left,top:F.top,width:F.getWidth(),height:F.getHeight()}}catch(P){return lk}};
bk.prototype.validate=function(){var K=this.beaconFactory.isSupported()||Hz(this);return this.global&&this.timeProvider.available()&&K};
var Eiy=function(K){return(K=mcw(K.global))?Hk(K):null};
_.Oi.Object.defineProperties(bk.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(K){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!EO(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}}});_.MUV=!_.ir&&!_.R3();var oL3=function(K){return K};var T0P=function(K){return K.pipe(Rw(function(X){var F=X.endOfSessionReason;var P;return((P=X.viewable)==null?void 0:P.extrapolateToNow().value)||F!=void 0}),aw(1),lK())};var $cT=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},OZ9=function(K){var X=K.sequenceNumber.toString(10).padStart(2,"0");
X=""+K.startTime+X;K.sequenceNumber<99&&K.sequenceNumber++;return X};var p_w=ki(xE(function(K){return K.endOfSessionReason===void 0}),ow(function(K){return Object.assign({},K,{timestamps:cf(K)})}),Rw(function(K){var X=K.viewable;
K=K.timestamps;var F;return(F=X==null?void 0:X.extrapolateUsingTimestampMap(K).value)!=null?F:!1}),ow(function(K){var X=K.beaconFactory;
var F=K.timestampedExposureHistory;var P=K.timeOnScreen;var H=K.binaryContext;K=K.timestamps;if(X===void 0||F===void 0||P===void 0||H===void 0)return!1;if(P.extrapolateUsingTimestampMap(K).value.every(function(f){return f>=0}))return!0;
F=F.map(function(f){return f.timestamp+":"+f.value}).join(",");
P=Bf({bin:H,tos:P},K);X.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+P+("&eh="+F)).sendNow();return!0}),xE(function(K){return!K}),lK());var gEl=function(K){return{id:K.pingId,mcvt:K.maxConsecutiveViewTime,p:K.creativePosition,asp:K.adSpeedPosition,tm:K.totalMeasurementTime,tu:K.totalUnviewedTime,mtos:K.maxTimeOnScreen,tos:K.timeOnScreen,v:K.binaryVersion,bin:K.binaryContext,avms:K.measurementStrategy,bs:K.browserSize,mc:K.maximumExposure,"if":K.crossDomainIframeState,vu:K.delayedImpressionJsState,app:K.inApp,mse:K.mraidError,mtop:K.mraidSituation,itpl:K.injectedTemplateId,adk:K.adKey,exk:K.awbidKey,rs:K.requestSource,la:K.isLargeAd,
cr:K.isContentRecommendationAd,uach:K.userAgentClientHints,vs:K.viewState,r:K.reasonCode,pay:K.hasCpmavUrl,co:K.clientPingOrderCounter,rst:K.adRenderStartTime,rpt:K.adRenderPeriodTime,isd:K.initialScrollDepth,lsd:K.loadedScrollDepth,context:K.errorContext,msg:K.errorMessage,stack:K.errorStack,name:K.errorName,ec:K.hasElementChanged,sfr:K.strategyFailureReasons,met:K.creativeSearchResult,wmsd:K.webMeasurementStartDiagnostic,pv:K.pageVisible,epv:K.eosPageVisible,pbe:K.inStatefulBeaconExperiment,fle:K.inFetchLaterBeaconExperiment,
vae:K.inViewableAttributionExperiment,spb:K.supportsPendingBeacon,sfl:K.supportsFetchLater,ffslot:K.isFencedFrameSlotTurtlex,reach:K.sharedStorageReachMode,io2:K.v2VisibilityBitVector,rxdbg:K.rxDebugger,omida:K.omidAppId,omidp:K.omidPartner,omidpv:K.omidPartnerVersion,omidor:K.omidOcclusionReasons,omidv:K.omidVersion,omids:K.omidSessionType,omidam:K.omidAccessMode,omidct:K.omidCreativeType,omidia:K.omidInApp,omiddc:K.omidDeviceCategory,omidlat:K.omidLastActivity,omiddit:K.omidDeviceIdleTime,qid:K.errorEscapedQueryId}};var L8d=function(K){var X=[];return K.pipe(ow(function(F){var P=F.beaconFactory,H=F.fetchBeaconFactory,f=F.timeOnScreen,u=F.timeOnScreenUrlPrefixes,J=F.payloadMapper,Z=F.timeOnScreenPingId,M=F.timeOnScreenReason,n=F.urlSerializer,c=F.viewable,B=F.hasImpressionFired,L=F.inStatefulBeaconExperiment,A=F.supportsPendingBeacon,d=F.supportsFetchLater,R=F.turtlexReportEventData;if(!F.geometryMeasurable||!B||F.maxTimeOnScreen===void 0||f===void 0||u===void 0||J===void 0||Z===void 0||n===void 0||P===void 0)return!1;
if(F.isTurtlex){if(M===void 0)return!1;u=F.reportFencedFrameEvent;if(!u)return!1;u({eventType:"active-view-time-on-screen",eventData:R!=null?R:"",destination:["buyer"]});return!0}if(!(L||d||M))return!1;R=cf(F);var l;c=(l=c==null?void 0:c.extrapolateUsingTimestampMap(R).value)!=null?l:!1;l=n(Object.assign({},F,{pingId:Z,viewState:c?4:3,reasonCode:M!=null?M:"u",payloadMapper:J,urlPrefixes:u}),R);if(L){for(;X.length>u.length;)F=void 0,(F=X.shift())==null||F.deactivate();l.forEach(function(E,V){V>=X.length?
X.push(P.makeBeacon(E)):X[V].url=E});
return A&&H&&M!==void 0?(l.forEach(function(E){H.makeBeacon(E).sendNow()}),!0):M!==void 0}if(A&&H&&M!==void 0)return l.forEach(function(E){H.makeBeacon(E).sendNow()}),!0;
if(d&&H){for(;X.length>u.length;)A=void 0,(A=X.shift())==null||A.deactivate();var a=n(Object.assign({},F,{pingId:Z,viewState:c?4:3,reasonCode:M!=null?M:"u",payloadMapper:J,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),R)[0];l.forEach(function(E,V){V>=X.length?X.push(P.makeBeacon(a,{endOfSession:!0})):X[V].url=a});
return M!==void 0?(l.forEach(function(E){H.makeBeacon(E).sendNow()}),!0):M!==void 0}return M!==void 0?(l.forEach(function(E){P.makeBeacon(E).sendNow()}),!0):!1}),xE(function(F){return!F}),lK())};var rHM=ki(Rw(function(K){return K.immediateUrlPrefixes!==void 0&&K.payloadMapper!==void 0&&K.urlSerializer!==void 0&&K.inferredPingId!==void 0&&K.beaconFactory!==void 0}),Rw(function(K){return ksq(K)!==null}),xcn(function(K){return K.activeViewUnmeasurableEvent},function(K){return K.emit}),ow(function(K){if(K.isTurtlex){var X=K.reportFencedFrameEvent;
if(X){var F;X({eventType:"active-view-unmeasurable",eventData:(F=K.turtlexReportEventData)!=null?F:"",destination:["buyer"]})}}else{F=void 0;var P=ksq(K);if(P==="x"){var H,f=(H=K.geometricMeasurementErrors)!=null?H:K.contextValidationErrors;f&&(X=f.stack,F=f.message)}K.urlSerializer(Object.assign({},K,{urlPrefixes:K.immediateUrlPrefixes,payloadMapper:K.payloadMapper,pingId:K.inferredPingId,viewState:2,reasonCode:P,errorMessage:F,errorStack:X}),cf(K)).forEach(function(u){K.beaconFactory.makeBeacon(u).sendNow()})}}),
aw(1),lK());var KPl=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var cH9=ki(Rw(function(K){return K.payloadMapper!==void 0&&K.immediateUrlPrefixes!==void 0&&K.urlSerializer!==void 0&&K.inferredPingId!==void 0&&K.beaconFactory!==void 0}),ow(function(K){return Object.assign({},K,{timestamps:cf(K)})}),Rw(function(K){var X=K.viewable;
var F=K.hasImpressionFired;K=K.timestamps;var P;return!!F&&((P=X==null?void 0:X.extrapolateUsingTimestampMap(K).value)!=null?P:!1)}),xcn(function(K){return K.activeViewViewableEvent},function(K){return K.emit}),ow(function(K){var X=K.beaconFactory,F=K.turtlexReportEventData;
if(K.isTurtlex){var P=K.reportFencedFrameEvent;if(!P)return!1;P({eventType:"active-view-viewable",eventData:F!=null?F:"",destination:["buyer"]});return!0}F=K.urlSerializer(Object.assign({},K,{urlPrefixes:K.immediateUrlPrefixes,payloadMapper:K.payloadMapper,pingId:K.inferredPingId,viewState:4,reasonCode:"v"}),K.timestamps);(P=K.cpmavUrls)&&P.length>0&&K.viewUrlSerializer&&K.viewUrlSerializer(P,K).forEach(function(H){X.makeBeacon(H).sendNow()});
(P=K.viewableRelayUrls)&&P.length>0&&K.viewUrlSerializer&&K.viewUrlSerializer(P,K).forEach(function(H){X.makeBeacon(H).sendNow()});
F.forEach(function(H){X.makeBeacon(H,{attributionEnabled:K.isViewableAttributionEnabled}).sendNow()});
return!0}),xE(function(K){return!K}),lK());var O8y=ow(function(K){return[K.value.topWindowViewportExternalGeometry.width,K.value.topWindowViewportExternalGeometry.height]});var mP=function(K,X){this.callback=K;this.options=X;this.intersectionObserverV2=this.intersectionObserverV1=null},rE4=function(K,X){X?K.intersectionObserverV2||(X=Object.assign({},K.options,{delay:100,
trackVisibility:!0}),K.intersectionObserverV2=new IntersectionObserver(K.callback,X)):K.intersectionObserverV1||(K.intersectionObserverV1=new IntersectionObserver(K.callback,K.options))},nCZ=function(K,X){K=X?K.intersectionObserverV2:K.intersectionObserverV1;
if(!K)throw new rin;return K};
mP.prototype.observe=function(K,X){nCZ(this,K).observe(X)};
mP.prototype.unobserve=function(K,X){nCZ(this,K).unobserve(X)};
mP.prototype.disconnect=function(K){nCZ(this,K).disconnect()};
mP.prototype.takeRecords=function(K){return nCZ(this,K).takeRecords()};var eA={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:lk,topWindowViewportExternalGeometry:lk,measurementRequests:new Hf,elementGeometrySourceName:"ns",elementGeometry:lk,intersectionGeometry:lk,viewportLocalAppOffset:{x:0,y:0}};var e9O=vf(ki(ow(function(K){var X;return(X=K.exposureOverride)!=null?X:jRy(K)}),ow(function(K){return isFinite(K)?K:0}))),vp9=vf(ki(ow(function(K){var X;
return(X=K.exposureOverride)!=null?X:jRy(K)}),ow(function(K){return isFinite(K)?K:-1})));var dP=function(K,X){this.a=K;this.b=X;if(K.clock.timeline!==X.clock.timeline)throw Error();};
dP.prototype.equivalentTo=function(K){return K instanceof dP?this.a.equivalentTo(K.a)&&this.b.equivalentTo(K.b):!1};
dP.prototype.extrapolateToTime=function(K){var X=this.a.extrapolateToTime(K).value,F=this.b.extrapolateToTime(K).value;return{timestamp:K,value:[X,F]}};
_.Oi.Object.defineProperties(dP.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 K=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),X=this.a.lastMeasurement.timestamp.equals(K)?this.a.lastMeasurement.value:this.a.extrapolateToTime(K).value,F=this.b.lastMeasurement.timestamp.equals(K)?this.b.lastMeasurement.value:this.b.extrapolateToTime(K).value;return{timestamp:K,value:[X,F]}}}});var eh=function(K,X){this.input=K;this.mapFunction=X;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
eh.prototype.equivalentTo=function(K){return K instanceof eh?this.input.equivalentTo(K.input)&&this.mapFunction===K.mapFunction:!1};
eh.prototype.extrapolateToTime=function(K){K=this.input.extrapolateToTime(K);return{timestamp:K.timestamp,value:this.mapFunction(K.value)}};
_.Oi.Object.defineProperties(eh.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var RY=function(){};
RY.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
RY.prototype.extrapolateUsingTimestampMap=function(K){var X=this.clock.timeline,F,P=(F=K.get(X))!=null?F:this.clock.now();K.set(X,P);return this.extrapolateToTime(P)};
RY.prototype.map=function(K){return new ctN(this,K)};
RY.prototype.joinWith=function(K){return new pNW(this,K)};
var pNW=function(){dP.apply(this,arguments);this.map=RY.prototype.map;this.joinWith=RY.prototype.joinWith;this.extrapolateToNow=RY.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=RY.prototype.extrapolateUsingTimestampMap};
_.r(pNW,dP);var ctN=function(){eh.apply(this,arguments);this.map=RY.prototype.map;this.joinWith=RY.prototype.joinWith;this.extrapolateToNow=RY.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=RY.prototype.extrapolateUsingTimestampMap};
_.r(ctN,eh);var tE=function(K,X){this.lastMeasurement=X;this.extrapolateToNow=RY.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=RY.prototype.extrapolateUsingTimestampMap;this.map=RY.prototype.map;this.joinWith=RY.prototype.joinWith;this.clock=K};
tE.prototype.equivalentTo=function(K){return K.active};
tE.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.Oi.Object.defineProperties(tE.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var $4q=ow(function(K){if(K.value.viewportGeometrySourceName==="omid"){if(K.value.elementGeometrySourceName==="nio")return"omio";if(K.value.elementGeometrySourceName==="geo")return"omgeo"}return K.value.elementGeometrySourceName==="geo"||K.value.elementGeometrySourceName==="nio"?K.value.viewportGeometrySourceName:K.value.elementGeometrySourceName});var yEd=ki(Rw(function(K){return!isNaN(K)}),CZ(function(K,X){return isNaN(K)?X:Math.min(K,X)},NaN),tT());var R9O=vf(ki(ow(function(K){return K.intersectionGeometry.width*K.intersectionGeometry.height/(K.exposedViewportLocalGeometry.width*K.exposedViewportLocalGeometry.height)}),ow(function(K){return isFinite(K)?Math.min(1,K):0})));var tA3=ki(vf(ow(function(K){K=K.exposureOverride?K.elementGeometry.width*K.elementGeometry.height*K.exposureOverride/(K.topWindowViewportExternalGeometry.width*K.topWindowViewportExternalGeometry.height):K.intersectionGeometry.width*K.intersectionGeometry.height/(K.topWindowViewportExternalGeometry.width*K.topWindowViewportExternalGeometry.height);return isFinite(K)?K:0})));var gpl=function(K,X){var F=this;this.timeProvider=K;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=X.pipe(tT()).subscribe(function(P){gp(F);F.measurementRequestObserver=P})},b8n=function(K,X){gp(K);
K.lastMeasurementRequest=K.timeProvider.setTimeout(function(){var F;return void((F=K.measurementRequestObserver)==null?void 0:F.next())},X)},gp=function(K){K.lastMeasurementRequest!==null&&K.timeProvider.clearTimeout(K.lastMeasurementRequest);
K.lastMeasurementRequest=null};
gpl.prototype.dispose=function(){gp(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var BLN=function(){};var Qzl=function(K,X){this.context=K;this.strategies=X};
_.r(Qzl,BLN);Qzl.prototype.buildGeometrySource=function(K,X){var F=this.strategies.map(function(f){return f.buildGeometrySource(K,X)}),P=IwT(F.map(function(f){return f.geometrySource})),H=P.capturedErrors.pipe(SZZ());
return{geometrySource:P.chain.pipe(z8(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:H,strategyErrors:P.capturedErrors}].concat(_.LZ(F.map(function(f){return f.additionalOutputs}))))}};
var SZZ=function(){return CZ(function(K,X){X instanceof oR?K.push(X.measurementStrategyFailureReason):K.push(-1);return K},[])};var nLM=function(K,X){this.context=K;this.poller=X};
_.r(nLM,BLN);nLM.prototype.buildGeometrySource=function(K,X){var F=k8q(X_4(this.context,this.poller),YOT(this.context,X.requestSource));return{geometrySource:x49(K.measurableCreative.pipe(F),X.inApp),additionalOutputs:{}}};var MMw=function(K,X,F){F=F===void 0?BpO(K,X):F;this.context=K;this.intersectionObserverStrategy=F};
_.r(MMw,BLN);MMw.prototype.buildGeometrySource=function(K,X){var F=this.intersectionObserverStrategy(X.useV2);return{geometrySource:x49(K.measurableCreative.pipe(F,SOd(this.context)),X.inApp),additionalOutputs:{}}};var oCC=function(K,X,F){var P=P===void 0?Symbol():P;this.element=K;this.immediateUrls=X;this.timeOnScreenUrls=F;this.symbol=P};var Vf=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),zjl=Object.freeze([1,.75,Vf.exposureThreshold,Vf.largeAdExposureThreshold,0]);var n6P=function(K,X){X=X===void 0?36E5:X;var F=F===void 0?!0:F;this.creatives=new Hf;this.elementsToUnregister=new Hf;this.elementMap=new Map;var P=new bk(window,null);P.beaconFactory=new X7(P,new jh(P));Ywq(P,this.creatives,this.elementsToUnregister,K,X,F).subscribe()},ByM=function(K,X,F,P){if(!K.elementMap.has(X)){var H=new UO(X);
K.elementMap.set(X,H);K.creatives.next(new oCC(H,F,P))}},pZl=function(K,X){K.elementsToUnregister.next(X);
var F=K.elementMap.get(X);F!==void 0&&(F.release(),K.elementMap.delete(X))};var pId=function(K){var X=K.url;K=K.uaDataValues;this.JSC$7487_url_=X;this.uaDataValues_=K;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var F=/[?&]([^&=]+)=([^&]*)/g;K=F.exec(X);)this.urlParamValues_[K[1]]=K[2]},Bqw=function(K){K=K.uaDataValues_;
if(!K)return"";var X=N4("uap",K.platform)+N4("uapv",K.platformVersion)+N4("uafv",K.uaFullVersion)+N4("uaa",K.architecture)+N4("uam",K.model)+N4("uab",K.bitness);K.fullVersionList&&(X+="&uafvl="+encodeURIComponent(K.fullVersionList.map(function(F){return encodeURIComponent(F.brand)+";"+encodeURIComponent(F.version)}).join("|")));
K.wow64!=null&&(X+="&uaw="+Number(K.wow64));return X.slice(1)};var UE=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(UE,_.Gm);UE.prototype.getId=function(){return _.BL(this,1)};
UE.prototype.setId=function(K){return _.$R(this,1,K)};var hI=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(hI,_.Gm);hI.prototype.getSeconds=function(){return cL(this,1)};
hI.prototype.setSeconds=function(K){return _.Tm(this,1,ek(K),"0")};_.y$=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(_.y$,_.Gm);_.y$.prototype.getSeconds=function(){return cL(this,1)};
_.y$.prototype.setSeconds=function(K){return _.Tm(this,1,ek(K),"0")};
_.LtZ=function(K){var X=Number(oc(K,1));K=_.XA(K,2);return new Date(X*1E3+K/1E6)};var mD=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(mD,_.Gm);mD.prototype.getUrl=function(){return _.BL(this,1)};
mD.prototype.setUrl=function(K){return _.$R(this,1,K)};
mD.prototype.getHeight=function(){return _.XA(this,2)};
mD.prototype.getWidth=function(){return _.XA(this,3)};var GM=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(GM,_.Gm);GM.prototype.getAspectRatio=function(){return pM(this,1)};
GM.prototype.setAspectRatio=function(K){return _.Tm(this,1,_.uW(K),0)};
GM.prototype.getDuration=function(){return _.xS(this,hI,2)};var TLZ=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(TLZ,_.Gm);var rtU=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(rtU,_.Gm);var AtT=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(AtT,_.Gm);var jCL=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(jCL,_.Gm);var wNC=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(wNC,_.Gm);var ytL=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(ytL,_.Gm);var WtL=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(WtL,_.Gm);var dVt=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(dVt,_.Gm);var eTL=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(eTL,_.Gm);var lt=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(lt,_.Gm);var vz=[2,4,5,6,7];var RTL=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(RTL,_.Gm);var ZR=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(ZR,_.Gm);_.z=ZR.prototype;_.z.getId=function(){return _.xS(this,UE,1)};
_.z.setId=function(K){return _.Fw(this,1,K)};
_.z.getName=function(){return _.BL(this,2)};
_.z.setDescription=function(K){return _.$R(this,3,K)};
_.z.getUrl=function(){return _.BL(this,8)};
_.z.setUrl=function(K){return _.$R(this,8,K)};
var aY=function(K){return _.kp(K,mD,10,_.KJ())};
ZR.prototype.getOwner=function(K){var X=_.BJ(this,40,_.vF,3,!0);vN(X,K);return X[K]};
ZR.prototype.getVersion=function(){return cL(this,45)};
var tI=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(tI,_.Gm);_.UVC=[0,LeP,rGd];_.hTt=[0,LeP,rGd];var mVt=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(mVt,_.Gm);var $o=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r($o,_.Gm);$o.prototype.getStatus=function(){return _.S3(this,1)};
$o.prototype.removeItem=function(K){return a7O(this,2,K)};var GEC=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(GEC,_.Gm);GEC.prototype.getName=function(){return _.BL(this,8)};var OE=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(OE,_.Gm);OE.prototype.getCommand=function(){return _.S3(this,1)};
OE.prototype.getSource=function(){return _.xS(this,GEC,2)};
OE.prototype.setVisible=function(K){return _.oJ(this,5,K)};
OE.prototype.removeItem=function(K){return a7O(this,7,K)};var lQL=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(lQL,_.Gm);lQL.prototype.getCommand=function(){return _.S3(this,1)};
lQL.prototype.removeItem=function(K){return a7O(this,4,K)};
var vCt=_.Ks(lQL);var Vm=function(K,X,F){F=F===void 0?Error():F;var P=Error.call(this);this.message=P.message;"stack"in P&&(this.stack=P.stack);this.code=K;X+=":";F instanceof Error?(this.message=X+F.message,this.stack=F.stack||""):(this.message=X+String(F),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.r(Vm,Error);_.LJ=function(){this.JSC$7545_disposed_=this.JSC$7545_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.LJ.prototype.JSC$7545_disposed_=!1;_.LJ.prototype.isDisposed=function(){return this.JSC$7545_disposed_};
_.LJ.prototype.dispose=function(){this.JSC$7545_disposed_||(this.JSC$7545_disposed_=!0,this.disposeInternal())};
_.LJ.prototype[Symbol.dispose]=function(){this.dispose()};
_.JH=function(K,X){K.addOnDisposeCallback(_.Jc(_.ik,X))};
_.LJ.prototype.addOnDisposeCallback=function(K,X){this.JSC$7545_disposed_?X!==void 0?K.call(X):K():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),X&&(K=K.bind(X)),this.onDisposeCallbacks_.push(K))};
_.LJ.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var gP=function(K){_.LJ.call(this);this.wpc=K};
_.r(gP,_.LJ);gP.prototype.geQ=function(){return this.wpc.f()};
gP.prototype.olm=function(K){return this.wpc.c(K)};
gP.prototype.vX=function(K){return this.wpc.m(W8w(K))};
gP.prototype.ke=function(K){return this.wpc.mws(W8w(K))};
var IR=function(K){_.LJ.call(this);var X=this;this.xh=K;this.jp2="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.moM=void 0;this.qH3=this.xh.p;this.t5z=this.yeU.bind(this);this.addOnDisposeCallback(function(){return void aQt(X)})};
_.r(IR,_.LJ);var tUL=function(K){var X;return _.q(function(F){if(F.nextAddress==1){if(!K.xh.wpc)throw new Vm(30,"NWA");return K.uuC?F.return(K.uuC):_.Y(F,K.xh.wpc(),2)}X=F.yieldResult;K.uuC=new gP(X);return F.return(K.uuC)})};
IR.prototype.snapshot=function(K){return this.xh.s(Object.assign({},K.fS&&{c:K.fS},K.x3C&&{s:K.x3C},K.eGj!==void 0&&{p:K.eGj}))};
IR.prototype.yeU=function(K){this.xh.e(K)};
IR.prototype.oYH=function(K,X){return this.xh.c(K,X,!1)};
var aQt=function(K){K.moM!==void 0&&(K.jp2.forEach(function(X){var F;(F=K.moM)==null||F.removeEventListener(X,K.t5z)}),K.moM=void 0)};
IR.prototype.o3C=function(){return this.xh.l()};var $VT,EE=function(){_.LJ.apply(this,arguments);this.kt8=1;this[$VT]=this.dispose};
_.r(EE,_.LJ);EE.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.kt8++;return this};
EE.prototype.dispose=function(){--this.kt8||_.LJ.prototype.dispose.call(this)};
$VT=Symbol.dispose;var iJ3=function(K){this.wPM=K;K.addNewEventMetric("/client_streamz/bg/frs",_.H_("mk"))};
iJ3.prototype.record=function(K,X){this.wPM.record("/client_streamz/bg/frs",K,X)};
var Khd=function(K){this.qGj=K;K.addNewEventMetric("/client_streamz/bg/wrl",_.H_("mn"),P_("ac"),P_("sc"),_.H_("rk"),_.H_("mk"))};
Khd.prototype.record=function(K,X,F,P,H,f){this.qGj.record("/client_streamz/bg/wrl",K,X,F,P,H,f)};
var ILq=function(K){this.dlI=K;K.addNewCounter("/client_streamz/bg/ec",_.H_("en"),_.H_("mk"))};
ILq.prototype.increment=function(K,X){this.dlI.JSC$7798_incrementCounter("/client_streamz/bg/ec",K,X)};
var k3w=function(K){this.zGI=K;K.addNewEventMetric("/client_streamz/bg/el",_.H_("en"),_.H_("mk"))};
k3w.prototype.record=function(K,X,F){this.zGI.record("/client_streamz/bg/el",K,X,F)};
var xgy=function(K){this.cij=K;K.addNewCounter("/client_streamz/bg/cec",P_("ec"),_.H_("mk"))};
xgy.prototype.increment=function(K,X){this.cij.JSC$7798_incrementCounter("/client_streamz/bg/cec",K,X)};
var XMM=function(K){this.yiT=K;K.addNewCounter("/client_streamz/bg/po/csc",P_("cs"),_.H_("mk"))};
XMM.prototype.increment=function(K,X){this.yiT.JSC$7798_incrementCounter("/client_streamz/bg/po/csc",K,X)};
var Fhq=function(K){this.riS=K;K.addNewCounter("/client_streamz/bg/po/ctav",_.H_("av"),_.H_("mk"))};
Fhq.prototype.increment=function(K,X){this.riS.JSC$7798_incrementCounter("/client_streamz/bg/po/ctav",K,X)};
var P_M=function(K){this.loY=K;K.addNewCounter("/client_streamz/bg/po/cwsc",_.H_("su"),_.H_("mk"))};
P_M.prototype.increment=function(K,X){this.loY.JSC$7798_incrementCounter("/client_streamz/bg/po/cwsc",K,X)};var JZw=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(JZw,_.Gm);var qgl=function(K,X){return _.Lx(K,3,X,xqM)};var OWW=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(OWW,_.Gm);var VUt=[1,2,3];var gCt=[0,VUt,_.Wel,AGP,yG3];var ECu=[0,_.GQ,[0,B7n,_.e3]];var bWN=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(bWN,_.Gm);var CuZ=[1,2,3];var NLW=[0,CuZ,T7n,S9n,_.lQ,ECu];var iWt=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(iWt,_.Gm);var xVt=[0,_.GQ,gCt,NLW];var IQQ=[0,_.mg];var kEt=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(kEt,_.Gm);var Kvu=[0,_.mg,-1,_.UX];var XFW=[0,_.mg,-1,_.Rc,_.UX];var Fvu=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(Fvu,_.Gm);var PWQ=[1,2,3];var HtU=[0,PWQ,_.lQ,Kvu,_.lQ,XFW,_.lQ,IQQ];var ssC=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(ssC,_.Gm);ssC.prototype.JSC$7618_serializeBinary=XJM([0,_.mg,HtU,dH9,_.GQ,xVt,j4y,w3q]);var z8C=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(z8C,_.Gm);var u8E=function(K){var X=new ssC;X=_.Qf(X,1,K.JSC$7734_metricName);var F=fdE(K);X=_.Lx(X,3,F,_.GJ);F=[];for(var P=[],H=_.D(K.cellMap.keys()),f=H.next();!f.done;f=H.next())P.push(f.value.split(","));for(H=0;H<P.length;H++){f=P[H];for(var u=K.cellType,J=K.getCells(f)||[],Z=[],M=0;M<J.length;M++){var n=J[M],c=n&&n.cellValue;n=new bWN;switch(u){case 3:c=Number(c);Number.isFinite(c)&&DW(n,1,CuZ,ek(c));break;case 2:DW(n,2,CuZ,_.uW(Number(c)))}Z.push(n)}u=Z;for(J=0;J<u.length;J++){Z=u[J];M=new iWt;Z=_.Fw(M,
2,Z);M=[];n=DoC(K);for(c=0;c<n.length;c++){var B=n[c],L=f[c],A=new OWW;switch(B){case 3:DW(A,1,VUt,lW(String(L)));break;case 2:B=Number(L);Number.isFinite(B)&&DW(A,2,VUt,_.r1(B));break;case 1:DW(A,3,VUt,CTl(L==="true"))}M.push(A)}Jb(Z,1,M);F.push(Z)}}Jb(X,4,F);return X};var qVN=function(K){if(!K)return"";if(/^about:(?:blank|srcdoc)$/.test(K))return window.origin||"";K.indexOf("blob:")===0&&(K=K.substring(5));K=K.split("#")[0].split("?")[0];K=K.toLowerCase();K.indexOf("//")==0&&(K=window.location.protocol+K);/^[\w\-]*:\/\//.test(K)||(K=window.location.href);var X=K.substring(K.indexOf("://")+3),F=X.indexOf("/");F!=-1&&(X=X.substring(0,F));F=K.substring(0,K.indexOf("://"));if(!F)throw Error("ua`"+K);if(F!=="http"&&F!=="https"&&F!=="chrome-extension"&&F!=="moz-extension"&&
F!=="file"&&F!=="android-app"&&F!=="chrome-search"&&F!=="chrome-untrusted"&&F!=="chrome"&&F!=="app"&&F!=="devtools")throw Error("va`"+F);K="";var P=X.indexOf(":");if(P!=-1){var H=X.substring(P+1);X=X.substring(0,P);if(F==="http"&&H!=="80"||F==="https"&&H!=="443")K=":"+H}return F+"://"+X+K};var ZtN=function(K,X,F){var P=String(_.FP.location.href);return P&&K&&X?[X,JwV(qVN(P),K,F||null)].join(" "):null},JwV=function(K,X,F){var P=[],H=[];
if((Array.isArray(F)?2:1)==1)return H=[X,K],_.vd(P,function(J){H.push(J)}),YVt(H.join(" "));
var f=[],u=[];_.vd(F,function(J){u.push(J.key);f.push(J.value)});
F=Math.floor((new Date).getTime()/1E3);H=f.length==0?[F,X,K]:[f.join(":"),F,X,K];_.vd(P,function(J){H.push(J)});
K=YVt(H.join(" "));K=[F,K];u.length==0||K.push(u.join(""));return K.join("_")},YVt=function(K){var X=lLP();
X.update(K);return X.digestString().toLowerCase()};var bt=function(K){this.JSC$7629_document_=K||{cookie:""}},Qst;
_.z=bt.prototype;_.z.isEnabled=function(){if(!_.FP.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
_.z.set=function(K,X,F){var P=!1;if(typeof F==="object"){var H=F.sameSite;P=F.secure||!1;var f=F.domain||void 0;var u=F.path||void 0;var J=F.maxAge}if(/[;=\s]/.test(K))throw Error("wa`"+K);if(/[;\r\n]/.test(X))throw Error("xa`"+X);J===void 0&&(J=-1);F=f?";domain="+f:"";u=u?";path="+u:"";P=P?";secure":"";J=J<0?"":J==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+J*1E3)).toUTCString();this.JSC$7629_document_.cookie=K+"="+X+F+u+J+P+(H!=null?";samesite="+H:"")};
_.z.get=function(K,X){for(var F=K+"=",P=(this.JSC$7629_document_.cookie||"").split(";"),H=0,f;H<P.length;H++){f=Yd(P[H]);if(f.lastIndexOf(F,0)==0)return f.slice(F.length);if(f==K)return""}return X};
_.z.remove=function(K,X,F){var P=this.containsKey(K);this.set(K,"",{maxAge:0,path:X,domain:F});return P};
_.z.getKeys=function(){return Qst(this).keys};
_.z.getValues=function(){return Qst(this).values};
_.z.isEmpty=function(){return!this.JSC$7629_document_.cookie};
_.z.getCount=function(){return this.JSC$7629_document_.cookie?(this.JSC$7629_document_.cookie||"").split(";").length:0};
_.z.containsKey=function(K){return this.get(K)!==void 0};
_.z.containsValue=function(K){for(var X=Qst(this).values,F=0;F<X.length;F++)if(X[F]==K)return!0;return!1};
_.z.clear=function(){for(var K=Qst(this).keys,X=K.length-1;X>=0;X--)this.remove(K[X])};
Qst=function(K){K=(K.JSC$7629_document_.cookie||"").split(";");for(var X=[],F=[],P,H,f=0;f<K.length;f++)H=Yd(K[f]),P=H.indexOf("="),P==-1?(X.push(""),F.push(H)):(X.push(H.substring(0,P)),F.push(H.substring(P+1)));return{keys:X,values:F}};
_.Jv=new bt(typeof document=="undefined"?null:document);var XVl=function(){var K=_.FP.__SAPISID||_.FP.__APISID||_.FP.__3PSAPISID||_.FP.__1PSAPISID||_.FP.__OVERRIDE_SID;if(K)return!0;typeof document!=="undefined"&&(K=new bt(document),K=K.get("SAPISID")||K.get("APISID")||K.get("__Secure-3PAPISID")||K.get("__Secure-1PAPISID"));return!!K},MkT=function(K,X,F,P){(K=_.FP[K])||typeof document==="undefined"||(K=(new bt(document)).get(X));
return K?ZtN(K,F,P):null},Cjd=function(K){var X=qVN(_.FP==null?void 0:_.FP.location.href),F=[];
if(XVl()){X=X.indexOf("https:")==0||X.indexOf("chrome-extension:")==0||X.indexOf("chrome-untrusted://new-tab-page")==0||X.indexOf("moz-extension:")==0;var P=X?_.FP.__SAPISID:_.FP.__APISID;P||typeof document==="undefined"||(P=new bt(document),P=P.get(X?"SAPISID":"APISID")||P.get("__Secure-3PAPISID"));(P=P?ZtN(P,X?"SAPISIDHASH":"APISIDHASH",K):null)&&F.push(P);X&&((X=MkT("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",K))&&F.push(X),(K=MkT("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",K))&&F.push(K))}return F.length==
0?null:F.join(" ")};var n5O=function(){this.minSize=1024};
n5O.prototype.compress=function(K){var X,F,P,H;return _.q(function(f){switch(f.nextAddress){case 1:return X=new CompressionStream("gzip"),F=(new Response(X.readable)).arrayBuffer(),P=X.writable.getWriter(),_.Y(f,P.write((new TextEncoder).encode(K)),2);case 2:return _.Y(f,P.close(),3);case 3:return H=Uint8Array,_.Y(f,F,4);case 4:return f.return(new H(f.yieldResult))}})};
n5O.prototype.isSupported=function(K){return K<this.minSize?!1:typeof CompressionStream!=="undefined"};var cwN=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(cwN,_.Gm);var Cb=function(K,X){this.intervalMs=K;this.callback=X;this.enabled=!1;this.nowFn=function(){return _.E$()};
this.lastTimeMs=this.nowFn()};
Cb.prototype.setInterval=function(K){this.intervalMs=K;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
Cb.prototype.start=function(){var K=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){K.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
Cb.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
Cb.prototype.tick=function(){var K=this;if(this.enabled){var X=Math.max(this.nowFn()-this.lastTimeMs,0);X<this.intervalMs*.8?this.timer=setTimeout(function(){K.tick()},this.intervalMs-X):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var pFt=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(pFt,_.Gm);var B1C=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(B1C,_.Gm);var SVQ=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(SVQ,_.Gm);SVQ.prototype.getTransmissionType=function(){return _.S3(this,1)};var $g3=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r($g3,_.Gm);$g3.prototype.getVersion=function(){return _.BL(this,2)};var N_=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(N_,_.Gm);var tMP=function(K){Jb(z3,1,K)};
N_.prototype.getModel=function(){return _.BL(this,6)};
var o5Z=_.Ks(N_);var LvT=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(LvT,_.Gm);var vL4=["platform","platformVersion","architecture","model","uaFullVersion"],z3=new N_,aL4=null;var T1N=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(T1N,_.Gm);var rwC=function(K){return _.It(K,1,1)};var AwU=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K,4)};
_.r(AwU,_.Gm);_.xo=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K,36)};
_.r(_.xo,_.Gm);_.xo.prototype.getExperimentIds=function(){return _.xS(this,cwN,16)};var jsN=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K,19)};
_.r(jsN,_.Gm);jsN.prototype.setLogSource=function(K){return _.It(this,2,K)};
jsN.prototype.setScheduler=function(K){return _.It(this,10,K)};var ywt=function(K,X){this.isServiceWorkerScope=X=X===void 0?!1:X;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new jsN;Number.isInteger(K)&&this.logRequest.setLogSource(K);X||(this.locale=document.documentElement.getAttribute("lang"));wFN(this,new T1N)};
ywt.prototype.setLogSource=function(K){this.logRequest.setLogSource(K);return this};
var wFN=function(K,X){_.Fw(K.logRequest,1,X);_.S3(X,1)||rwC(X);K.isServiceWorkerScope||(X=IY(K),_.BL(X,5)||_.Qf(X,5,K.locale));K.uach&&(X=IY(K),_.xS(X,N_,9)||_.Fw(X,9,K.uach))},WvL=function(K,X){K.transmissionType=X},doE=function(K){var X=X===void 0?vL4:X;
var F=K.isServiceWorkerScope?void 0:wp();F?OJd(F,X).then(function(P){K.uach=o5Z(P!=null?P:"[]");P=IY(K);_.Fw(P,9,K.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},IY=function(K){K=_.xS(K.logRequest,T1N,1);
var X=_.xS(K,LvT,11);X||(X=new LvT,_.Fw(K,11,X));return X};
ywt.prototype.build=function(K,X,F,P,H,f){X=X===void 0?0:X;F=F===void 0?0:F;P=P===void 0?null:P;H=H===void 0?0:H;f=f===void 0?0:f;if(!this.isServiceWorkerScope){var u=IY(this);var J=new SVQ;J=_.It(J,1,this.transmissionType);J=_.sw(J,2,this.isFinal);F=_.rd(J,3,F>0?F:void 0);F=_.rd(F,4,H>0?H:void 0);F=_.rd(F,5,f>0?f:void 0);H=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;f=H[_.LW]|0;F=eU(F,f)?F:zm(F,H,f)?sB(F,H):new F.constructor(HJ(H,f,!0));_.Fw(u,10,F)}u=this.logRequest.clone();F=Date.now().toString();
u=_.kS(u,4,ek(F));K=K.slice();K=Jb(u,3,K);P&&(u=new pFt,P=_.rd(u,13,P),u=new B1C,P=_.Fw(u,2,P),u=new AwU,P=_.Fw(u,1,P),P=_.It(P,2,9),_.Fw(K,18,P));X&&_.MF(K,14,X);return K};fJ.prototype.currBackoffCount_=0;fJ.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
fJ.prototype.getValue=function(){return this.currValue_};
var e8Z=function(K){K.currBaseValue_=Math.min(K.maxValue_,K.currBaseValue_*K.backoffFactor_);K.currValue_=Math.min(K.maxValue_,K.currBaseValue_+(K.randomFactor_?Math.round(K.randomFactor_*(Math.random()-.5)*2*K.currBaseValue_):0));K.currBackoffCount_++};var mHl=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K,8)};
_.r(mHl,_.Gm);var R8C=_.Ks(mHl);var Gdy=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(Gdy,_.Gm);var ko;ko=new l$P;var Ku=function(K){_.LJ.call(this);var X=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7707_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$7707_sendBeaconApiEnabled=!1;this.logSource=K.logSource;this.getAuthHeaderValue=
K.getAuthHeaderValue||function(){};
this.logRequestBuilder=new ywt(K.logSource,K.isServiceWorkerScope);this.network=K.network||null;this.productID=K.productID||null;this.clearcutUrl=K.urlOverride||null;this.sessionIndex=K.sessionIndex||null;this.disableAutomaticFlush=K.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!K.disableWithCredentials;this.isServiceWorkerScope=K.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!wp()&&!!wp().navigator&&wp().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(UoV())).searchParams&&!!(new URL(UoV())).searchParams.set;var F=rwC(new T1N);wFN(this.logRequestBuilder,F);this.flushBackoff=new fJ(1E4,3E5,.1);K=h8T(this,K.backgroundJobDeferrer);this.JSC$7707_flushTimer=new Cb(this.flushBackoff.getValue(),K);this.backupTimer=new Cb(6E5,K);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){moC(X);
var P;(P=X.metalogService)==null||P.flush()}}),document.addEventListener("pagehide",function(){moC(X);
var P;(P=X.metalogService)==null||P.flush()}))};
_.r(Ku,_.LJ);var h8T=function(K,X){return K.isBrowserSupported?X?function(){X().then(function(){K.flush()})}:function(){K.flush()}:function(){}};
Ku.prototype.disposeInternal=function(){moC(this);this.JSC$7707_flushTimer.stop();this.backupTimer.stop();_.LJ.prototype.disposeInternal.call(this)};
var GJV=function(K){K.clearcutUrl||(K.clearcutUrl=UoV());try{return(new URL(K.clearcutUrl)).toString()}catch(X){return(new URL(K.clearcutUrl,wp().location.origin)).toString()}};
Ku.prototype.dispatch=function(K){if(K instanceof _.xo)this.log(K);else try{var X=new _.xo,F=K.serialize();var P=_.Qf(X,8,F);this.log(P)}catch(H){XO(this,4,1)}};
var XO=function(K,X,F){K.metalogService&&K.metalogService.increment(X,F)};
Ku.prototype.log=function(K){XO(this,2,1);if(this.isBrowserSupported){K=K.clone();var X=this.sequencePosition++;K=_.MF(K,21,X);this.componentId&&_.Qf(K,26,this.componentId);X=K;if(YZl(_.sX(X,1))==null){var F=Date.now();F=Number.isFinite(F)?F.toString():"0";_.kS(X,1,ek(F))}_.ZW4(_.sX(X,15))!=null||_.MF(X,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(F=this.experimentIds.clone(),_.Fw(X,16,F));XO(this,1,1);X=this.pendingEvents.length-1E3+1;X>0&&(this.pendingEvents.splice(0,X),this.numLogsDroppedSinceLastFlush+=
X,XO(this,3,X));this.pendingEvents.push(K);this.disableAutomaticFlush||this.JSC$7707_flushTimer.enabled||this.JSC$7707_flushTimer.start()}};
Ku.prototype.flush=function(K,X){var F=this;if(this.pendingEvents.length===0)K&&K();else if(this.JSC$7707_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,ldE(this);else{var P=Date.now();if(this.noFlushUntilMs>P&&this.startWaitingMs<P)X&&X("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?WvL(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var H=this.pendingEvents.length,
f=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),u=this.getAuthHeaderValue();if(u&&this.lastFailedAuth===u)X&&X("stale-auth-token");else{this.pendingEvents=[];this.JSC$7707_flushTimer.enabled&&this.JSC$7707_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;P=f.serialize();var J;this.JSC$7707_compressor&&this.JSC$7707_compressor.isSupported(P.length)&&
(J=this.JSC$7707_compressor.compress(P));var Z=v5V(this,P,u),M=function(B){F.flushBackoff.reset();F.JSC$7707_flushTimer.setInterval(F.flushBackoff.getValue());if(B){var L=null;try{var A=JSON.stringify(JSON.parse(B.replace(")]}'\n","")));L=R8C(A)}catch(d){}L&&(B=Number(cL(L,1,_.CW("-1"))),B>0&&(F.startWaitingMs=Date.now(),F.noFlushUntilMs=F.startWaitingMs+B),eTP(L.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,ko.fieldIndex),Wtw(L,ko.fieldIndex),L=ko.ctor?ko.getExtensionFn(L,ko.ctor,ko.fieldIndex,
ko.JSC$6887_hasMessageId):ko.getExtensionFn(L,ko.fieldIndex,null,ko.JSC$6887_hasMessageId),L=L===null?void 0:L)&&(L=_.XA(L,1,-1),L!==-1&&(F.flushBackoff=new fJ(L<1?1:L,3E5,.1),F.JSC$7707_flushTimer.setInterval(F.flushBackoff.getValue())))}K&&K();F.numRetriesSinceLastSuccessfulFlush=0},n=function(B,L){var A=_.kp(f,_.xo,3,_.KJ());
var d=Number(cL(f,14));e8Z(F.flushBackoff);F.JSC$7707_flushTimer.setInterval(F.flushBackoff.getValue());B===401&&u&&(F.lastFailedAuth=u);d&&(F.numLogsDroppedSinceLastFlush+=d);L===void 0&&(L=F.isRetryable(B));L&&(F.pendingEvents=A.concat(F.pendingEvents),F.disableAutomaticFlush||F.JSC$7707_flushTimer.enabled||F.JSC$7707_flushTimer.start());XO(F,7,1);X&&X("net-send-failed",B);++F.numRetriesSinceLastSuccessfulFlush},c=function(){F.network&&F.network.send(Z,M,n)};
J?J.then(function(B){XO(F,5,H);Z.requestHeaders["Content-Encoding"]="gzip";Z.requestHeaders["Content-Type"]="application/binary";Z.body=B;Z.bodyType=2;c()},function(){XO(F,6,H);
c()}):c()}}}};
var v5V=function(K,X,F){F=F===void 0?null:F;var P=P===void 0?K.withCredentials:P;var H={},f=new URL(GJV(K));F&&(H.Authorization=F);K.sessionIndex&&(H["X-Goog-AuthUser"]=K.sessionIndex,f.searchParams.set("authuser",K.sessionIndex));K.pageId&&(Object.defineProperty(H,"X-Goog-PageId",{value:K.pageId}),f.searchParams.set("pageId",K.pageId));return{url:f.toString(),body:X,bodyType:1,requestHeaders:H,requestType:"POST",withCredentials:P,timeoutMillis:K.timeoutMillis}},moC=function(K){K.logRequestBuilder.isFinal=
!0;
K.flush();K.logRequestBuilder.isFinal=!1},ldE=function(K){adQ(K,function(X,F){X=new URL(X);
X.searchParams.set("format","json");var P=!1;try{P=wp().navigator.sendBeacon(X.toString(),F.serialize())}catch(H){}P||(K.isSendBeaconSupported=!1);return P})},adQ=function(K,X){if(K.pendingEvents.length!==0){var F=new URL(GJV(K));
F.searchParams.delete("format");var P=K.getAuthHeaderValue();P&&F.searchParams.set("auth",P);F.searchParams.set("authuser",K.sessionIndex||"0");for(P=0;P<10&&K.pendingEvents.length;++P){var H=K.pendingEvents.slice(0,32),f=K.logRequestBuilder.build(H,K.numLogsDroppedSinceLastFlush,K.numRetriesSinceLastSuccessfulFlush,K.productID,K.persistedLogRecoveredCount,K.persistedLogExpiredCount);if(!X(F.toString(),f)){++K.numRetriesSinceLastSuccessfulFlush;break}K.numLogsDroppedSinceLastFlush=0;K.numRetriesSinceLastSuccessfulFlush=
0;K.persistedLogRecoveredCount=0;K.persistedLogExpiredCount=0;K.pendingEvents=K.pendingEvents.slice(H.length)}K.JSC$7707_flushTimer.enabled&&K.JSC$7707_flushTimer.stop()}};
Ku.prototype.isRetryable=function(K){return 500<=K&&K<600||K===401||K===0};
var UoV=function(){return"https://play.google.com/log?format=json&hasfast=true"};var tkQ=function(){this.abortSupported=typeof AbortController!=="undefined"};
tkQ.prototype.send=function(K,X,F){var P=this,H,f,u,J,Z,M,n,c,B,L;return _.q(function(A){switch(A.nextAddress){case 1:return f=(H=P.abortSupported?new AbortController:void 0)?setTimeout(function(){H.abort()},K.timeoutMillis):void 0,_.s2(A,2,3),u=Object.assign({},{method:K.requestType,
headers:Object.assign({},K.requestHeaders)},K.body&&{body:K.body},K.withCredentials&&{credentials:"include"},{signal:K.timeoutMillis&&H?H.signal:null}),_.Y(A,fetch(K.url,u),5);case 5:J=A.yieldResult;if(J.status!==200){(Z=F)==null||Z(J.status);A.jumpTo(3);break}if((M=X)==null){A.jumpTo(7);break}return _.Y(A,J.text(),8);case 8:M(A.yieldResult);case 7:case 3:_.fZ(A);clearTimeout(f);_.uK(A,0);break;case 2:n=_.qc(A);switch((c=n)==null?void 0:c.name){case "AbortError":(B=F)==null||B(408);break;default:(L=
F)==null||L(400)}A.jumpTo(3)}})};
tkQ.prototype.getTransmissionType=function(){return 4};_.qg=function(K,X){X=X===void 0?"0":X;_.LJ.call(this);this.logSource=K;this.sessionIndex=X;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7725_clearExperimentIds=this.productID=null;this.JSC$7725_sendBeaconApiEnabled=!1;this.pageId=null};
_.r(_.qg,_.LJ);var fKq=function(K,X){K.buildLabel=X;return K},z_O=function(K,X){K.network=X;
return K},unP=function(K,X){K.JSC$7725_clearExperimentIds=X},sDM=function(K){K.JSC$7725_sendBeaconApiEnabled=!0;
return K};
_.qg.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.qg.prototype.build=function(){this.network||(this.network=new tkQ);var K=new Ku({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:Cjd,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.JH(this,K);if(this.buildLabel){var X=this.buildLabel,F=IY(K.logRequestBuilder);
_.Qf(F,7,X)}K.JSC$7707_compressor=new n5O;this.componentId&&(K.componentId=this.componentId);this.productID&&(K.productID=this.productID);this.pageId&&(K.pageId=this.pageId);this.JSC$7725_clearExperimentIds&&((F=this.JSC$7725_clearExperimentIds)?(K.experimentIds||(K.experimentIds=new cwN),X=K.experimentIds,F=F.serialize(),_.Qf(X,4,F)):K.experimentIds&&_.kS(K.experimentIds,4));this.JSC$7725_sendBeaconApiEnabled&&(K.JSC$7707_sendBeaconApiEnabled=K.isSendBeaconSupported);doE(K.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(K);return K};var ZvP=function(K,X,F,P,H,f,u){K=K===void 0?-1:K;X=X===void 0?"":X;F=F===void 0?"":F;P=P===void 0?!1:P;H=H===void 0?"":H;_.LJ.call(this);this.logSource=K;this.componentId=X;f?X=f:(K=new _.qg(K,"0"),K.componentId=X,_.JH(this,K),F!==""&&(K.destinationUrl=F),P&&(K.serviceWorkerScopeEnabled=!0),H&&fKq(K,H),u&&z_O(K,u),X=K.build());this.JSC$7729_transport=X};
_.r(ZvP,_.LJ);ZvP.prototype.flush=function(K){K=K||[];if(K.length){for(var X=new z8C,F=[],P=0;P<K.length;P++){var H=K[P],f=u8E(H);F.push(f);H.clear()}Jb(X,1,F);this.JSC$7729_transport.dispatch(X);this.JSC$7729_transport.flush()}};var $oW=function(K){this.cellValue=K};var FO=function(K,X,F){this.JSC$7734_metricName=K;this.cellType=X;this.fields=F||[];this.cellMap=new Map},DoC=function(K){return K.fields.map(function(X){return X.fieldType})},fdE=function(K){return K.fields.map(function(X){return X.fieldName})};
_.z=FO.prototype;_.z.addCell=function(K){var X=_.Ls.apply(1,arguments),F=this.getCells(X);F?F.push(new $oW(K)):this.JSC$7734_setCell(K,X)};
_.z.JSC$7734_setCell=function(K){var X=this.JSC$7734_getKey(_.Ls.apply(1,arguments));this.cellMap.set(X,[new $oW(K)])};
_.z.getCells=function(){var K=this.JSC$7734_getKey(_.Ls.apply(0,arguments));return this.cellMap.has(K)?this.cellMap.get(K):void 0};
_.z.getCell=function(){var K=this.getCells(_.Ls.apply(0,arguments));return K&&K.length?K[0]:void 0};
_.z.clear=function(){this.cellMap.clear()};
_.z.JSC$7734_getKey=function(){var K=_.Ls.apply(0,arguments);return K?K.join(","):"key"};var OtV=function(K,X){FO.call(this,K,3,X)};
_.r(OtV,FO);OtV.prototype.JSC$7737_incrementCounterBy=function(K){var X=_.Ls.apply(1,arguments),F=0,P=this.getCell(X);P&&(F=P.cellValue);this.JSC$7734_setCell(F+K,X)};var VkZ=function(K,X){FO.call(this,K,2,X)};
_.r(VkZ,FO);VkZ.prototype.record=function(K){this.addCell(K,_.Ls.apply(1,arguments))};_.PD=function(K){this.id=K};
_.PD.prototype.toString=function(){return this.id};_.HD=function(K,X){this.type=K instanceof _.PD?String(K):K;this.currentTarget=this.target=X;this.defaultPrevented=this.propagationStopped_=!1};
_.HD.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.HD.prototype.preventDefault=function(){this.defaultPrevented=!0};_.sQ=function(K,X){_.HD.call(this,K?K.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;K&&this.init(K,X)};
_.br(_.sQ,_.HD);
_.sQ.prototype.init=function(K,X){var F=this.type=K.type,P=K.changedTouches&&K.changedTouches.length?K.changedTouches[0]:null;this.target=K.target||K.srcElement;this.currentTarget=X;X=K.relatedTarget;X||(F=="mouseover"?X=K.fromElement:F=="mouseout"&&(X=K.toElement));this.relatedTarget=X;P?(this.clientX=P.clientX!==void 0?P.clientX:P.pageX,this.clientY=P.clientY!==void 0?P.clientY:P.pageY,this.screenX=P.screenX||0,this.screenY=P.screenY||0):(this.offsetX=_.Ii||K.offsetX!==void 0?K.offsetX:K.layerX,
this.offsetY=_.Ii||K.offsetY!==void 0?K.offsetY:K.layerY,this.clientX=K.clientX!==void 0?K.clientX:K.pageX,this.clientY=K.clientY!==void 0?K.clientY:K.pageY,this.screenX=K.screenX||0,this.screenY=K.screenY||0);this.button=K.button;this.keyCode=K.keyCode||0;this.key=K.key||"";this.charCode=K.charCode||(F=="keypress"?K.keyCode:0);this.ctrlKey=K.ctrlKey;this.altKey=K.altKey;this.shiftKey=K.shiftKey;this.metaKey=K.metaKey;this.pointerId=K.pointerId||0;this.pointerType=K.pointerType;this.state=K.state;
this.timeStamp=K.timeStamp;this.event_=K;K.defaultPrevented&&_.sQ.superClass_.preventDefault.call(this)};
_.sQ.prototype.stopPropagation=function(){_.sQ.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.sQ.prototype.preventDefault=function(){_.sQ.superClass_.preventDefault.call(this);var K=this.event_;K.preventDefault?K.preventDefault():K.returnValue=!1};var g5L="closure_listenable_"+(Math.random()*1E6|0),z4=function(K){return!(!K||!K[g5L])};var E5U=0;var btt=function(K,X,F,P,H){this.listener=K;this.proxy=null;this.src=X;this.type=F;this.capture=!!P;this.handler=H;this.key=++E5U;this.removed=this.callOnce=!1},CWt=function(K){K.removed=!0;
K.listener=null;K.proxy=null;K.src=null;K.handler=null};DL.prototype.add=function(K,X,F,P,H){var f=K.toString();K=this.listeners[f];K||(K=this.listeners[f]=[],this.typeCount_++);var u=N1E(K,X,P,H);u>-1?(X=K[u],F||(X.callOnce=!1)):(X=new btt(X,this.src,f,!!P,H),X.callOnce=F,K.push(X));return X};
DL.prototype.remove=function(K,X,F,P){K=K.toString();if(!(K in this.listeners))return!1;var H=this.listeners[K];X=N1E(H,X,F,P);return X>-1?(CWt(H[X]),_.bT(H,X),H.length==0&&(delete this.listeners[K],this.typeCount_--),!0):!1};
var itu=function(K,X){var F=X.type;if(!(F in K.listeners))return!1;var P=_.CO(K.listeners[F],X);P&&(CWt(X),K.listeners[F].length==0&&(delete K.listeners[F],K.typeCount_--));return P};
DL.prototype.removeAll=function(K){K=K&&K.toString();var X=0,F;for(F in this.listeners)if(!K||F==K){for(var P=this.listeners[F],H=0;H<P.length;H++)++X,CWt(P[H]);delete this.listeners[F];this.typeCount_--}return X};
DL.prototype.getListener=function(K,X,F,P){K=this.listeners[K.toString()];var H=-1;K&&(H=N1E(K,X,F,P));return H>-1?K[H]:null};
DL.prototype.hasListener=function(K,X){var F=K!==void 0,P=F?K.toString():"",H=X!==void 0;return _.T8.some(this.listeners,function(f){for(var u=0;u<f.length;++u)if(!(F&&f[u].type!=P||H&&f[u].capture!=X))return!0;return!1})};
var N1E=function(K,X,F,P){for(var H=0;H<K.length;++H){var f=K[H];if(!f.removed&&f.listener==X&&f.capture==!!F&&f.handler==P)return H}return-1};var xot,IdC,kJV,XJt,F0T,Za,YO,s0L,PcL,HxL,fu,zHt,K0L;xot="closure_lm_"+(Math.random()*1E6|0);IdC={};kJV=0;_.nB=function(K,X,F,P,H){if(P&&P.once)return Za(K,X,F,P,H);if(Array.isArray(X)){for(var f=0;f<X.length;f++)_.nB(K,X[f],F,P,H);return null}F=K0L(F);return z4(K)?K.listen(X,F,_.XL(P)?!!P.capture:!!P,H):XJt(K,X,F,!1,P,H)};
XJt=function(K,X,F,P,H,f){if(!X)throw Error("za");var u=_.XL(H)?!!H.capture:!!H,J=fu(K);J||(K[xot]=J=new DL(K));F=J.add(X,F,P,u,f);if(F.proxy)return F;P=F0T();F.proxy=P;P.src=K;P.listener=F;if(K.addEventListener)_.ZVM||(H=u),H===void 0&&(H=!1),K.addEventListener(X.toString(),P,H);else if(K.attachEvent)K.attachEvent(PcL(X.toString()),P);else if(K.addListener&&K.removeListener)K.addListener(P);else throw Error("Aa");kJV++;return F};
F0T=function(){var K=HxL,X=function(F){return K.call(X.src,X.listener,F)};
return X};
Za=function(K,X,F,P,H){if(Array.isArray(X)){for(var f=0;f<X.length;f++)Za(K,X[f],F,P,H);return null}F=K0L(F);return z4(K)?K.listenOnce(X,F,_.XL(P)?!!P.capture:!!P,H):XJt(K,X,F,!0,P,H)};
_.DG=function(K,X,F,P,H){if(Array.isArray(X))for(var f=0;f<X.length;f++)_.DG(K,X[f],F,P,H);else P=_.XL(P)?!!P.capture:!!P,F=K0L(F),z4(K)?K.unlisten(X,F,P,H):K&&(K=fu(K))&&(X=K.getListener(X,F,P,H))&&YO(X)};
YO=function(K){if(typeof K==="number"||!K||K.removed)return!1;var X=K.src;if(z4(X))return itu(X.eventTargetListeners_,K);var F=K.type,P=K.proxy;X.removeEventListener?X.removeEventListener(F,P,K.capture):X.detachEvent?X.detachEvent(PcL(F),P):X.addListener&&X.removeListener&&X.removeListener(P);kJV--;(F=fu(X))?(itu(F,K),F.typeCount_==0&&(F.src=null,X[xot]=null)):CWt(K);return!0};
s0L=function(K,X,F,P,H){F=K0L(F);P=!!P;return z4(K)?K.getListener(X,F,P,H):K?(K=fu(K))?K.getListener(X,F,P,H):null:null};
PcL=function(K){return K in IdC?IdC[K]:IdC[K]="on"+K};
HxL=function(K,X){if(K.removed)K=!0;else{X=new _.sQ(X,this);var F=K.listener,P=K.handler||K.src;K.callOnce&&YO(K);K=F.call(P,X)}return K};
fu=function(K){K=K[xot];return K instanceof DL?K:null};
zHt="__closure_events_fn_"+(Math.random()*1E9>>>0);K0L=function(K){if(typeof K==="function")return K;K[zHt]||(K[zHt]=function(X){return K.handleEvent(X)});
return K[zHt]};_.ua=function(){_.LJ.call(this);this.eventTargetListeners_=new DL(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.br(_.ua,_.LJ);_.ua.prototype[g5L]=!0;_.z=_.ua.prototype;_.z.setParentEventTarget=function(K){this.parentEventTarget_=K};
_.z.addEventListener=function(K,X,F,P){_.nB(this,K,X,F,P)};
_.z.removeEventListener=function(K,X,F,P){_.DG(this,K,X,F,P)};
_.z.dispatchEvent=function(K){var X,F=this.parentEventTarget_;if(F)for(X=[];F;F=F.parentEventTarget_)X.push(F);F=this.actualEventTarget_;var P=K.type||K;if(typeof K==="string")K=new _.HD(K,F);else if(K instanceof _.HD)K.target=K.target||F;else{var H=K;K=new _.HD(P,F);_.T8.extend(K,H)}H=!0;var f;if(X)for(f=X.length-1;!K.propagationStopped_&&f>=0;f--){var u=K.currentTarget=X[f];H=fsZ(u,P,!0,K)&&H}K.propagationStopped_||(u=K.currentTarget=F,H=fsZ(u,P,!0,K)&&H,K.propagationStopped_||(H=fsZ(u,P,!1,K)&&
H));if(X)for(f=0;!K.propagationStopped_&&f<X.length;f++)u=K.currentTarget=X[f],H=fsZ(u,P,!1,K)&&H;return H};
_.z.disposeInternal=function(){_.ua.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.z.listen=function(K,X,F,P){return this.eventTargetListeners_.add(String(K),X,!1,F,P)};
_.z.listenOnce=function(K,X,F,P){return this.eventTargetListeners_.add(String(K),X,!0,F,P)};
_.z.unlisten=function(K,X,F,P){return this.eventTargetListeners_.remove(String(K),X,F,P)};
_.z.removeAllListeners=function(K){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(K):0};
var fsZ=function(K,X,F,P){X=K.eventTargetListeners_.listeners[String(X)];if(!X)return!0;X=X.concat();for(var H=!0,f=0;f<X.length;++f){var u=X[f];if(u&&!u.removed&&u.capture==F){var J=u.listener,Z=u.handler||u.src;u.callOnce&&itu(K.eventTargetListeners_,u);H=J.call(Z,P)!==!1&&H}}return H&&!P.defaultPrevented};
_.ua.prototype.getListener=function(K,X,F,P){return this.eventTargetListeners_.getListener(String(K),X,F,P)};
_.ua.prototype.hasListener=function(K,X){return this.eventTargetListeners_.hasListener(K!==void 0?String(K):void 0,X)};var q6=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(K){return K&&AsyncContext.Snapshot.wrap(K)}:function(K){return K};var DRN=function(K,X){this.create_=K;this.reset_=X;this.occupants_=0;this.JSC$7769_head_=null};
DRN.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var K=this.JSC$7769_head_;this.JSC$7769_head_=K.next;K.next=null}else K=this.create_();return K};
DRN.prototype.put=function(K){this.reset_(K);this.occupants_<100&&(this.occupants_++,K.next=this.JSC$7769_head_,this.JSC$7769_head_=K)};var umW=function(){this.workTail_=this.workHead_=null};
umW.prototype.add=function(K,X){var F=gLy.get();F.set(K,X);this.workTail_?this.workTail_.next=F:this.workHead_=F;this.workTail_=F};
umW.prototype.remove=function(){var K=null;this.workHead_&&(K=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),K.next=null);return K};
var gLy=new DRN(function(){return new qBt},function(K){return K.reset()}),qBt=function(){this.next=this.scope=this.fn=null};
qBt.prototype.set=function(K,X){this.fn=K;this.scope=X;this.next=null};
qBt.prototype.reset=function(){this.next=this.scope=this.fn=null};var J0C,ELP,VMT,ZxO;ELP=!1;VMT=new umW;_.Jr=function(K,X){J0C||ZxO();ELP||(J0C(),ELP=!0);VMT.add(K,X)};
ZxO=function(){var K=Promise.resolve(void 0);J0C=function(){K.then(bJ9)}};var YBV=function(K){K.prototype.$goog_Thenable=!0},Q0t=function(K){if(!K)return!1;
try{return!!K.$goog_Thenable}catch(X){return!1}};var Myu,n8C,c0E,BjU,SBC,o8u,A0O,y0L,RHt,dRO,nIP;_.fL=function(K,X){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(K!=_.zM)try{var F=this;K.call(X,function(P){F.resolve_(2,P)},function(P){F.resolve_(3,P)})}catch(P){this.resolve_(3,P)}};
Myu=function(){this.next=this.context=this.JSC$7780_onRejected=this.JSC$7780_onFulfilled=this.child=null;this.always=!1};
Myu.prototype.reset=function(){this.context=this.JSC$7780_onRejected=this.JSC$7780_onFulfilled=this.child=null;this.always=!1};
n8C=new DRN(function(){return new Myu},function(K){K.reset()});
c0E=function(K,X,F){var P=n8C.get();P.JSC$7780_onFulfilled=K;P.JSC$7780_onRejected=X;P.context=F;return P};
_.F0=function(K){if(K instanceof _.fL)return K;var X=new _.fL(_.zM);X.resolve_(2,K);return X};
_.pB=function(K){return new _.fL(function(X,F){F(K)})};
BjU=function(K,X,F){pJE(K,X,F,null)||_.Jr(_.Jc(X,K))};
_.ZG=function(K){return new _.fL(function(X,F){var P=K.length,H=[];if(P)for(var f=function(M,n){P--;H[M]=n;P==0&&X(H)},u=function(M){F(M)},J,Z=0;Z<K.length;Z++)J=K[Z],BjU(J,_.Jc(f,Z),u);
else X(H)})};
SBC=function(K){return new _.fL(function(X){var F=K.length,P=[];if(F)for(var H=function(J,Z,M){F--;P[J]=Z?{fulfilled:!0,value:M}:{fulfilled:!1,reason:M};F==0&&X(P)},f,u=0;u<K.length;u++)f=K[u],BjU(f,_.Jc(H,u,!0),_.Jc(H,u,!1));
else X(P)})};
o8u=function(K){return new _.fL(function(X,F){var P=K.length,H=[];if(P)for(var f=function(M){X(M)},u=function(M,n){P--;
H[M]=n;P==0&&F(H)},J,Z=0;Z<K.length;Z++)J=K[Z],BjU(J,f,_.Jc(u,Z));
else X(void 0)})};
_.Ue=function(){var K,X,F=new _.fL(function(P,H){K=P;X=H});
return new L0t(F,K,X)};
_.fL.prototype.then=function(K,X,F){return TjC(this,q6(typeof K==="function"?K:null),q6(typeof X==="function"?X:null),F)};
YBV(_.fL);A0O=function(K,X,F,P){r0C(K,c0E(X||_.zM,F||null,P))};
_.Yv=function(K,X){X=q6(X);X=c0E(X,X);X.always=!0;r0C(K,X);return K};
_.fL.prototype.finally=function(K){var X=this;K=q6(K);return new Promise(function(F,P){A0O(X,function(H){K();F(H)},function(H){K();
P(H)})})};
_.fL.prototype.thenCatch=function(K,X){return TjC(this,null,q6(K),X)};
_.fL.prototype.catch=_.fL.prototype.thenCatch;_.fL.prototype.cancel=function(K){if(this.state_==0){var X=new _.UD(K);_.Jr(function(){j0u(this,X)},this)}};
var j0u=function(K,X){if(K.state_==0)if(K.parent_){var F=K.parent_;if(F.callbackEntries_){for(var P=0,H=null,f=null,u=F.callbackEntries_;u&&(u.always||(P++,u.child==K&&(H=u),!(H&&P>1)));u=u.next)H||(f=u);H&&(F.state_==0&&P==1?j0u(F,X):(f?(P=f,P.next==F.callbackEntriesTail_&&(F.callbackEntriesTail_=P),P.next=P.next.next):wJu(F),y0L(F,H,3,X)))}K.parent_=null}else K.resolve_(3,X)},r0C=function(K,X){K.callbackEntries_||K.state_!=2&&K.state_!=3||W0Q(K);
K.callbackEntriesTail_?K.callbackEntriesTail_.next=X:K.callbackEntries_=X;K.callbackEntriesTail_=X},TjC=function(K,X,F,P){var H=c0E(null,null,null);
H.child=new _.fL(function(f,u){H.JSC$7780_onFulfilled=X?function(J){try{var Z=X.call(P,J);f(Z)}catch(M){u(M)}}:f;
H.JSC$7780_onRejected=F?function(J){try{var Z=F.call(P,J);Z===void 0&&J instanceof _.UD?u(J):f(Z)}catch(M){u(M)}}:u});
H.child.parent_=K;r0C(K,H);return H.child};
_.fL.prototype.unblockAndFulfill_=function(K){this.state_=0;this.resolve_(2,K)};
_.fL.prototype.unblockAndReject_=function(K){this.state_=0;this.resolve_(3,K)};
_.fL.prototype.resolve_=function(K,X){this.state_==0&&(this===X&&(K=3,X=new TypeError("Ba")),this.state_=1,pJE(X,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=X,this.state_=K,this.parent_=null,W0Q(this),K!=3||X instanceof _.UD||dRO(this,X)))};
var pJE=function(K,X,F,P){if(K instanceof _.fL)return A0O(K,X,F,P),!0;if(Q0t(K))return K.then(X,F,P),!0;if(_.XL(K))try{var H=K.then;if(typeof H==="function")return eHL(K,H,X,F,P),!0}catch(f){return F.call(P,f),!0}return!1},eHL=function(K,X,F,P,H){var f=!1,u=function(Z){f||(f=!0,F.call(H,Z))},J=function(Z){f||(f=!0,P.call(H,Z))};
try{X.call(K,u,J)}catch(Z){J(Z)}},W0Q=function(K){K.executing_||(K.executing_=!0,_.Jr(K.executeCallbacks_,K))},wJu=function(K){var X=null;
K.callbackEntries_&&(X=K.callbackEntries_,K.callbackEntries_=X.next,X.next=null);K.callbackEntries_||(K.callbackEntriesTail_=null);return X};
_.fL.prototype.executeCallbacks_=function(){for(var K;K=wJu(this);)y0L(this,K,this.state_,this.result_);this.executing_=!1};
y0L=function(K,X,F,P){if(F==3&&X.JSC$7780_onRejected&&!X.always)for(;K&&K.hadUnhandledRejection_;K=K.parent_)K.hadUnhandledRejection_=!1;if(X.child)X.child.parent_=null,RHt(X,F,P);else try{X.always?X.JSC$7780_onFulfilled.call(X.context):RHt(X,F,P)}catch(H){nIP.call(null,H)}n8C.put(X)};
RHt=function(K,X,F){X==2?K.JSC$7780_onFulfilled.call(K.context,F):K.JSC$7780_onRejected&&K.JSC$7780_onRejected.call(K.context,F)};
dRO=function(K,X){K.hadUnhandledRejection_=!0;_.Jr(function(){K.hadUnhandledRejection_&&nIP.call(null,X)})};
nIP=Py;_.UD=function(K){_.KO.call(this,K)};
_.br(_.UD,_.KO);_.UD.prototype.name="cancel";var L0t=function(K,X,F){this.promise=K;this.resolve=X;this.reject=F};var Qt;_.Nz=function(K,X){_.ua.call(this);this.JSC$7792_interval_=K||1;this.timerObject_=X||_.FP;this.boundTick_=(0,_.T3)(this.tick_,this);this.last_=_.E$()};
_.br(_.Nz,_.ua);_.z=_.Nz.prototype;_.z.enabled=!1;_.z.JSC$7794_timer_=null;_.z.setInterval=function(K){this.JSC$7792_interval_=K;this.JSC$7794_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7794_timer_&&this.stop()};
_.z.tick_=function(){if(this.enabled){var K=_.E$()-this.last_;K>0&&K<this.JSC$7792_interval_*.8?this.JSC$7794_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7792_interval_-K):(this.JSC$7794_timer_&&(this.timerObject_.clearTimeout(this.JSC$7794_timer_),this.JSC$7794_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.z.start=function(){this.enabled=!0;this.JSC$7794_timer_||(this.JSC$7794_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7792_interval_),this.last_=_.E$())};
_.z.stop=function(){this.enabled=!1;this.JSC$7794_timer_&&(this.timerObject_.clearTimeout(this.JSC$7794_timer_),this.JSC$7794_timer_=null)};
_.z.disposeInternal=function(){_.Nz.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
Qt=function(K,X,F){if(typeof K==="function")F&&(K=(0,_.T3)(K,F));else if(K&&typeof K.handleEvent=="function")K=(0,_.T3)(K.handleEvent,K);else throw Error("Ca");return Number(X)>2147483647?-1:_.FP.setTimeout(K,X||0)};
_.URN=function(K){var X=null;return(new _.fL(function(F,P){X=Qt(function(){F(void 0)},K);
X==-1&&P(Error("Da"))})).thenCatch(function(F){_.FP.clearTimeout(X);
throw F;})};var ZL=function(K){_.LJ.call(this);this.streamzLogger=K;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7798_flushTimer=new _.Nz(this.flushInterval);this.JSC$7798_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.JH(this,this.JSC$7798_flushTimer)};
_.r(ZL,_.LJ);ZL.prototype.sendIsolatedPayload=function(K){this.shouldSendIsolatedPayload=K;this.invocationLimit=1};
var hHt=function(K){K.JSC$7798_flushTimer.enabled||K.JSC$7798_flushTimer.start();K.invocationCount++;K.invocationCount>=K.invocationLimit&&K.snapshotAndFlush()};
ZL.prototype.snapshotAndFlush=function(){var K=this.metricMap.values();K=[].concat(_.LZ(K)).filter(function(X){return X.cellMap.size});
K.length&&this.streamzLogger.flush(K,this.shouldSendIsolatedPayload);mRL(K);this.invocationCount=0;this.JSC$7798_flushTimer.enabled&&this.JSC$7798_flushTimer.stop()};
ZL.prototype.addNewCounter=function(K){var X=_.Ls.apply(1,arguments);this.metricMap.has(K)||this.metricMap.set(K,new OtV(K,X))};
ZL.prototype.addNewEventMetric=function(K){var X=_.Ls.apply(1,arguments);this.metricMap.has(K)||this.metricMap.set(K,new VkZ(K,X))};
var GmO=function(K,X){return K.disabledMetrics.has(X)?void 0:K.metricMap.get(X)};
ZL.prototype.JSC$7798_incrementCounter=function(K){this.JSC$7798_incrementCounterBy(K,1,_.Ls.apply(1,arguments))};
ZL.prototype.JSC$7798_incrementCounterBy=function(K,X){var F=_.Ls.apply(2,arguments),P=GmO(this,K);P&&P instanceof OtV&&(P.JSC$7737_incrementCounterBy(X,F),hHt(this))};
ZL.prototype.record=function(K,X){var F=_.Ls.apply(2,arguments),P=GmO(this,K);P&&P instanceof VkZ&&(P.record(X,F),hHt(this))};
var mRL=function(K){for(var X=0;X<K.length;X++)K[X].clear()};_.M6=function(K,X,F){F=F===void 0?{}:F;X=Error.call(this,X);this.message=X.message;"stack"in X&&(this.stack=X.stack);this.code=K;this.metadata=F;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.r(_.M6,Error);_.M6.prototype.toString=function(){var K="RpcError("+(CB4(this.code)||String(this.code))+")";this.message&&(K+=": "+this.message);return K};_.lsW=_.FP.JSON.parse;_.nu=_.FP.JSON.stringify;_.S4=_.FP.JSON.parse;_.v8N=function(K){switch(K){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 asN=function(K){switch(K){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var tyC,$Rt=function(){};
_.br($Rt,_.N04);$Rt.prototype.createInstance=function(){return new XMLHttpRequest};
tyC=new $Rt;_.cD=function(K){_.ua.call(this);this.headers=new Map;this.JSC$7807_xmlHttpFactory_=K||null;this.JSC$7807_active_=!1;this.JSC$7807_xhr_=null;this.JSC$7807_lastUri_="";this.JSC$7807_lastErrorCode_=0;this.JSC$7807_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7807_timeoutId_=null;this.responseType_="";this.JSC$7807_withCredentials_=!1};
_.br(_.cD,_.ua);var OxE=/^https?$/i,VyU=["POST","PUT"],g8U=[],sGM=function(K,X,F,P,H,f,u){var J=new _.cD;g8U.push(J);X&&J.listen("complete",X);J.listenOnce("ready",J.cleanupSend_);f&&(J.timeoutInterval_=Math.max(0,f));u&&(J.JSC$7807_withCredentials_=u);J.send(K,F,P,H)};
_.cD.prototype.cleanupSend_=function(){this.dispose();_.CO(g8U,this)};
_.cD.prototype.send=function(K,X,F,P){if(this.JSC$7807_xhr_)throw Error("Ea`"+this.JSC$7807_lastUri_+"`"+K);X=X?X.toUpperCase():"GET";this.JSC$7807_lastUri_=K;this.JSC$7807_lastError_="";this.JSC$7807_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7807_active_=!0;this.JSC$7807_xhr_=this.createXhr();this.JSC$7807_xhr_.onreadystatechange=q6((0,_.T3)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7807_xhr_.open(X,String(K),!0),this.inOpen_=!1}catch(u){E8E(this,u);return}K=F||"";F=new Map(this.headers);
if(P)if(Object.getPrototypeOf(P)===Object.prototype)for(var H in P)F.set(H,P[H]);else if(typeof P.keys==="function"&&typeof P.get==="function"){H=_.D(P.keys());for(var f=H.next();!f.done;f=H.next())f=f.value,F.set(f,P.get(f))}else throw Error("Fa`"+String(P));P=Array.from(F.keys()).find(function(u){return"content-type"==u.toLowerCase()});
H=_.FP.FormData&&K instanceof _.FP.FormData;!_.Ol(VyU,X)||P||H||F.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");X=_.D(F);for(P=X.next();!P.done;P=X.next())F=_.D(P.value),P=F.next().value,F=F.next().value,this.JSC$7807_xhr_.setRequestHeader(P,F);this.responseType_&&(this.JSC$7807_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7807_xhr_&&this.JSC$7807_xhr_.withCredentials!==this.JSC$7807_withCredentials_&&(this.JSC$7807_xhr_.withCredentials=this.JSC$7807_withCredentials_);
try{this.JSC$7807_timeoutId_&&(clearTimeout(this.JSC$7807_timeoutId_),this.JSC$7807_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7807_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7807_xhr_.send(K),this.inSend_=!1}catch(u){E8E(this,u)}};
_.cD.prototype.createXhr=function(){return this.JSC$7807_xmlHttpFactory_?this.JSC$7807_xmlHttpFactory_.createInstance():tyC.createInstance()};
_.cD.prototype.timeout_=function(){typeof Lnq!="undefined"&&this.JSC$7807_xhr_&&(this.JSC$7807_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7807_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var E8E=function(K,X){K.JSC$7807_active_=!1;K.JSC$7807_xhr_&&(K.inAbort_=!0,K.JSC$7807_xhr_.abort(),K.inAbort_=!1);K.JSC$7807_lastError_=X;K.JSC$7807_lastErrorCode_=5;bxt(K);CcL(K)},bxt=function(K){K.errorDispatched_||(K.errorDispatched_=!0,K.dispatchEvent("complete"),K.dispatchEvent("error"))};
_.cD.prototype.abort=function(K){this.JSC$7807_xhr_&&this.JSC$7807_active_&&(this.JSC$7807_active_=!1,this.inAbort_=!0,this.JSC$7807_xhr_.abort(),this.inAbort_=!1,this.JSC$7807_lastErrorCode_=K||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),CcL(this))};
_.cD.prototype.disposeInternal=function(){this.JSC$7807_xhr_&&(this.JSC$7807_active_&&(this.JSC$7807_active_=!1,this.inAbort_=!0,this.JSC$7807_xhr_.abort(),this.inAbort_=!1),CcL(this,!0));_.cD.superClass_.disposeInternal.call(this)};
_.cD.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)NjW(this);else this.onReadyStateChangeEntryPoint_()};
_.cD.prototype.onReadyStateChangeEntryPoint_=function(){NjW(this)};
var NjW=function(K){if(K.JSC$7807_active_&&typeof Lnq!="undefined")if(K.inSend_&&_.pu(K)==4)setTimeout(K.onReadyStateChange_.bind(K),0);else if(K.dispatchEvent("readystatechange"),K.isComplete()){K.JSC$7807_active_=!1;try{if(K.isSuccess())K.dispatchEvent("complete"),K.dispatchEvent("success");else{K.JSC$7807_lastErrorCode_=6;try{var X=_.pu(K)>2?K.JSC$7807_xhr_.statusText:""}catch(F){X=""}K.JSC$7807_lastError_=X+" ["+K.getStatus()+"]";bxt(K)}}finally{CcL(K)}}},CcL=function(K,X){if(K.JSC$7807_xhr_){K.JSC$7807_timeoutId_&&
(clearTimeout(K.JSC$7807_timeoutId_),K.JSC$7807_timeoutId_=null);
var F=K.JSC$7807_xhr_;K.JSC$7807_xhr_=null;X||K.dispatchEvent("ready");try{F.onreadystatechange=null}catch(P){}}};
_.cD.prototype.isActive=function(){return!!this.JSC$7807_xhr_};
_.cD.prototype.isComplete=function(){return _.pu(this)==4};
_.cD.prototype.isSuccess=function(){var K=this.getStatus(),X;if(!(X=asN(K))){if(K=K===0)K=sCL(String(this.JSC$7807_lastUri_)),K=!OxE.test(K);X=K}return X};
_.pu=function(K){return K.JSC$7807_xhr_?K.JSC$7807_xhr_.readyState:0};
_.z=_.cD.prototype;_.z.getStatus=function(){try{return _.pu(this)>2?this.JSC$7807_xhr_.status:-1}catch(K){return-1}};
_.z.getResponseText=function(){try{return this.JSC$7807_xhr_?this.JSC$7807_xhr_.responseText:""}catch(K){return""}};
_.z.getResponse=function(){try{if(!this.JSC$7807_xhr_)return null;if("response"in this.JSC$7807_xhr_)return this.JSC$7807_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7807_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7807_xhr_)return this.JSC$7807_xhr_.mozResponseArrayBuffer}return null}catch(K){return null}};
_.z.getAllResponseHeaders=function(){return this.JSC$7807_xhr_&&_.pu(this)>=2?this.JSC$7807_xhr_.getAllResponseHeaders()||"":""};
_.z.getLastError=function(){return typeof this.JSC$7807_lastError_==="string"?this.JSC$7807_lastError_:String(this.JSC$7807_lastError_)};var Ds9=function(){};
Ds9.prototype.send=function(K,X,F){X=X===void 0?function(){}:X;
F=F===void 0?function(){}:F;
sGM(K.url,function(P){P=P.target;P.isSuccess()?X(P.getResponseText()):F(P.getStatus())},K.requestType,K.body,K.requestHeaders,K.timeoutMillis,K.withCredentials)};
Ds9.prototype.getTransmissionType=function(){return 1};var ixL=function(K,X){this.logger=K;this.event=X;this.startTime=YL()};
ixL.prototype.done=function(){this.logger.iU(this.event,YL()-this.startTime)};
var BD=function(){EE.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.r(BD,EE);var SQ=function(K,X,F){var P=YL();X=X();K.iU(F,YL()-P);return X},e_l=function(){BD.apply(this,arguments)};
_.r(e_l,BD);_.z=e_l.prototype;_.z.tFx=function(){};
_.z.oR=function(){};
_.z.iU=function(){};
_.z.logError=function(){};
_.z.cL=function(){};
_.z.bc6=function(){};
_.z.sxK=function(){};
_.z.icK=function(){};
_.z.sFH=function(){};
var xRt=function(K){BD.call(this);var X=this;this.logger=K;this.TEST_ONLY={mCZ:function(){return X.logger},
getExperimentIds:function(){return X.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void X.logger.dispose()})};
_.r(xRt,BD);_.z=xRt.prototype;_.z.update=function(K){this.logger.dispose();this.logger=K};
_.z.oR=function(K){this.logger.oR(K)};
_.z.iU=function(K,X){this.logger.iU(K,X)};
_.z.logError=function(K){this.logger.logError(K)};
_.z.cL=function(){this.logger.cL()};
_.z.bc6=function(K){this.logger.bc6(K)};
_.z.sxK=function(K){this.logger.sxK(K)};
_.z.icK=function(K){this.logger.icK(K)};
_.z.sFH=function(K){this.logger.sFH(K)};
_.z.tFx=function(K){this.logger.tFx(K)};
var IsL=function(K,X){_.LJ.call(this);var F=this;this.callback=K;this.eVj=X;this.iZj=-X;this.addOnDisposeCallback(function(){return void clearTimeout(F.timer)})};
_.r(IsL,_.LJ);var kmO=function(K){if(K.timer===void 0){var X=Math.max(0,K.iZj+K.eVj-YL());K.timer=setTimeout(function(){try{K.callback()}finally{K.iZj=YL(),K.timer=void 0}},X)}},Kkt=function(K,X){BD.call(this);
this.metrics=K;this.uS=X};
_.r(Kkt,BD);_.z=Kkt.prototype;_.z.tFx=function(K){this.metrics.lD9.record(K,this.uS)};
_.z.oR=function(K){this.metrics.eventCount.increment(K,this.uS)};
_.z.iU=function(K,X){this.metrics.ePz.record(X,K,this.uS)};
_.z.logError=function(K){this.metrics.errorCount.increment(K,this.uS)};
_.z.bc6=function(K){this.metrics.ju0.increment(K,this.uS)};
_.z.sxK=function(K){this.metrics.ffj.increment(K,this.uS)};
_.z.icK=function(K){this.metrics.nCd.increment(K,this.uS)};
var QY=function(K,X){X=X===void 0?[]:X;var F={uS:K.uS||"_",ly7:K.ly7||[],vTN:K.vTN|0,destinationUrl:K.destinationUrl,jtA:K.jtA||function(){},
rr:K.rr||function(f,u){return Yg9(f,u,F.jtA,F.destinationUrl)}},P=F.rr("49",F.ly7.concat(X));
Kkt.call(this,Hvl(P),F.uS);var H=this;this.TEST_ONLY={getExperimentIds:function(){return H.options.ly7.concat(H.gSm).sort(function(f,u){return f-u})}};
this.options=F;this.service=P;this.bvg=!K.rr;this.flushDebouncer=new IsL(function(){return void H.service.snapshotAndFlush()},F.vTN);
this.addOnDisposeCallback(function(){H.flushDebouncer.dispose();H.bvg&&H.service.dispose()});
(this.gSm=X.slice()).sort(_.HN)};
_.r(QY,Kkt);QY.prototype.sFH=function(K){var X=this;K=K.slice();K.sort(_.HN);_.fW(K,this.gSm)||(this.flushDebouncer.dispose(),this.bvg&&this.service.dispose(),this.service=this.options.rr("49",this.options.ly7.concat(K)),this.flushDebouncer=new IsL(function(){return void X.service.snapshotAndFlush()},this.options.vTN),this.metrics=Hvl(this.service),this.gSm=K)};
QY.prototype.cL=function(){kmO(this.flushDebouncer)};var Xe9=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(Xe9,_.Gm);_.FU9=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(_.FU9,_.Gm);var tq=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K,0,tq.messageId)};
_.r(tq,_.Gm);var X$C=_.k8(tq);tq.messageId="bfkj";var Ugd=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(Ugd,_.Gm);var FkO=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(FkO,_.Gm);var PiQ=_.Ks(FkO);_.K$=function(){var K=this;this.promise=new Promise(function(X,F){K.resolve=X;K.reject=F})};_.oG=function(K){_.LJ.call(this);var X=this;this.pwD=Math.floor(Math.random()*200);this.ruA=new FkO;if("challenge"in K&&X$C(K.challenge)){var F=_.BL(K.challenge,4,void 0,aC);var P=_.BL(K.challenge,5,void 0,aC);_.BL(K.challenge,7,void 0,aC)&&(this.ruA=PiQ(_.BL(K.challenge,7,void 0,aC)))}else F=K.program,P=K.globalName;this.addOnDisposeCallback(function(){var A,d,R;return _.q(function(l){if(l.nextAddress==1)return _.Y(l,X.tgQ,2);A=l.yieldResult;d=A.fDd;(R=d)==null||R();_.JT(l)})});
this.logger=R_y(K.tb||{},this.ruA,K.xx4);_.JH(this,this.logger);var H=new _.K$;this.tgQ=H.promise;this.logger.oR("t");var f=this.logger.share(),u=new ixL(f,"t"),J=function(A,d,R,l){if(!X.logger.isDisposed()){var a="k";d?a="h":R&&(a="u");a!=="k"?l!==0&&(X.logger.oR(a),X.logger.iU(a,A)):X.pwD<=0?(X.logger.oR(a),X.logger.iU(a,A),X.pwD=Math.floor(Math.random()*200)):X.pwD--}},Z=function(A,d,R,l){Promise.resolve().then(function(){u.done();
f.cL();f.dispose();H.resolve({dvz:A,fDd:d,mge:R,v5z:l})})};
if(!_.FP[P])throw this.logger.logError(25),Error("Ga");if(!_.FP[P].a)throw this.logger.logError(26),Error("Ha");try{var M=_.FP[P].a;P=[];for(var n=[],c=hjO(this.ruA),B=0;B<c.length;B++)P.push(c[B]),n.push(1);var L=mgP(this.ruA);for(c=0;c<L.length;c++)P.push(L[c]),n.push(2);this.iL9=_.D(M(F,Z,!0,K.vIS,J,[P,n],_.BL(this.ruA,5))).next().value;this.qH3=H.promise.then(function(){})}catch(A){throw this.logger.logError(28),A;
}};
_.r(_.oG,_.LJ);_.oG.prototype.snapshot=function(K){if(this.isDisposed())throw Error("Ia");this.logger.oR("n");var X=this.logger.share();return this.tgQ.then(function(F){var P=F.dvz;return new Promise(function(H){var f=new ixL(X,"n");P(function(u){f.done();X.tFx(u.length);X.cL();X.dispose();H(u)},[K.fS,
K.x3C,K.rNy,K.eGj])})})};
_.HsL=function(K,X){if(K.isDisposed())throw Error("Ia");K.logger.oR("n");var F=SQ(K.logger,function(){return K.iL9([X.fS,X.x3C,X.rNy,X.eGj])},"n");
K.logger.tFx(F.length);K.logger.cL();return F};
_.oG.prototype.yeU=function(K){this.tgQ.then(function(X){var F;(F=X.mge)==null||F(K)})};
_.oG.prototype.oYH=function(K,X){return this.tgQ.then(function(F){var P;return(P=F.v5z)==null?void 0:P(K,X,!1)})};
_.oG.prototype.o3C=function(){return this.logger.share()};var sfC=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(sfC,_.Gm);var Py3=_.k8(sfC);var zdU=function(){this.xtX={};this.dk1=null},fXC=function(){zdU.instance||(zdU.instance=new zdU);
return zdU.instance},uwT=function(K,X){return Dvt(K,_.xS(X,Xe9,1,aC),_.xS(X,_.FU9,2,aC),_.BL(X,3,void 0,aC))},Dvt=function(K,X,F,P){if(!X&&!F)return Promise.resolve();
if(!P)return lKw(X,F);var H;(H=K.xtX)[P]||(H[P]=new Promise(function(f,u){lKw(X,F).then(function(){K.dk1=P;f()},function(J){delete K.xtX[P];
u(J)})}));
return K.xtX[P]};var qvC=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(qvC,_.Gm);var JoQ=function(K,X){return _.$R(K,1,X)},ZsL=function(K,X){return _.$R(K,2,X)};var Lu=function(K){_.LJ.call(this);var X=this;this.options=K;this.eIM=new _.K$;this.qH3=this.eIM.promise;this.unL=new _.K$;this.wuj=1;this.llK=new _.K$;this.aoL=[];this.wON=K.wON||function(){};
this.logger=new xRt(R_y(K.tb||{}));YvW(this,K.jR,K.wDz,K.rhL,K.wxt,Object.assign({},QfQ,K.a87||{}));this.addOnDisposeCallback(function(){return void MiV(X)})};
_.r(Lu,_.LJ);Lu.prototype.snapshot=function(K){var X=this;return _.q(function(F){switch(F.nextAddress){case 1:if(X.isDisposed())throw Error("Ia");if(X.eH||X.q4I){F.jumpTo(2);break}return _.Y(F,X.unL.promise,2);case 2:if(!X.eH){F.jumpTo(4);break}return _.Y(F,X.eH.snapshot(K),5);case 5:return F.return(F.yieldResult);case 4:throw X.q4I;}})};
var niW=function(K){var X;return _.q(function(F){if(K.isDisposed())throw Error("Ia");(X=K.qV)!=null&&(X.endTimeMs=0,X.resolver(1));return _.Y(F,K.llK.promise,0)})},MiV=function(K){K.q4I=Error("Ka");
K.unL.resolve();G33(K.eIM.promise);K.eIM.reject(Error("Ka"));K.logger.dispose();Promise.all(K.aoL).then(function(){var F;return _.q(function(P){(F=K.eH)==null||F.dispose();K.eH=void 0;_.JT(P)})});
K.aoL=[];var X;(X=K.qV)!=null&&(X.endTimeMs=0,X.resolver(1));G33(K.llK.promise);K.llK.reject(Error("Ka"))};
Lu.prototype.yeU=function(K){var X,F;(X=this.eH)==null||(F=X.yeU)==null||F.call(X,K)};
Lu.prototype.oYH=function(K,X){var F,P,H;return(H=(F=this.eH)==null?void 0:(P=F.oYH)==null?void 0:P.call(F,K,X))!=null?H:Promise.resolve()};
var coN=function(K,X){var F=K.wON;K.wON=function(){F();X()}},p$U=function(K,X){K.isDisposed()||(K.eH=X,K.logger.update(X.o3C()),K.unL.resolve(),K.eIM.resolve(void 0),K.wON())};
Lu.prototype.handleError=function(K){if(!this.isDisposed()){this.q4I=K;this.unL.resolve();var X,F;(F=(X=this.options).jdy)==null||F.call(X,K)}};
var BFW=function(K,X){X&&(Promise.all(K.aoL).then(function(){return void X.dispose()}),K.aoL=[])},T4=function(K,X){K.wuj=X;
var F,P;(P=(F=K.options).qu4)==null||P.call(F,X)},SvN=function(K){K.isDisposed()||(K.llK.resolve(),K.llK=new _.K$)},YvW=function(K,X,F,P,H,f){P=P===void 0?fXC():P;
H=H===void 0?Promise.resolve(void 0):H;var u,J,Z,M,n,c,B,L,A,d,R,l;_.q(function(a){switch(a.nextAddress){case 1:return _.Y(a,0,3);case 3:J=null;if(!u){a.jumpTo(6);break}T4(K,7);_.s2(a,7);return _.Y(a,B_(u.snapshot({}),f.rcG,function(){return Promise.resolve("E:CTO")}),9);
case 9:J=a.yieldResult;_.Gy(a,6);break;case 7:_.qc(a),J="E:UCE";case 6:Z=void 0,M=u?f.zPj:f.cFI,n=new fJ(M,f.yFI,f.rFT,f.dhI),c=1;case 10:if(!(c<=f.maxAttempts)){a.jumpTo(12);break}if(c===1){a.jumpTo(13);break}T4(K,0);K.qV=new oiu(n.getValue(),f.u1j,f.mke);return _.Y(a,K.qV.promise,14);case 14:B=a.yieldResult,K.qV=void 0,B===1?(c=1,n.reset()):e8Z(n);case 13:_.s2(a,15);L=void 0;if(F){L=F;a.jumpTo(17);break}T4(K,5);A=P.dk1;return _.Y(a,B_(LkC(X,A,J),f.yEG,function(){return Promise.reject(Error("La"))}),
18);
case 18:L=a.yieldResult;case 17:return T4(K,3),_.Y(a,B_(uwT(P,L),f.ykj,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return T4(K,8),_.Y(a,H,20);case 20:return d=new _.oG({challenge:L,tb:K.options.tb,vIS:K.options.vIS}),_.Y(a,B_(d.qH3,f.xZ4,function(){return Promise.reject(Error("Na"))}),21);
case 21:Z=d;a.jumpTo(12);break;case 15:R=_.qc(a),K.handleError(R),SvN(K);case 11:c++;a.jumpTo(10);break;case 12:if(K.isDisposed()){a.jumpTo(5);break}Z&&(F=void 0,BFW(K,u),u=Z,p$U(K,Z),SvN(K));T4(K,2);K.qV=new oiu(f.sNe,f.u1j,f.mke);return _.Y(a,K.qV.promise,22);case 22:K.qV=void 0;if(K.isDisposed()){a.jumpTo(5);break}a.jumpTo(3);break;case 5:(l=u)==null||l.dispose(),_.JT(a)}})};
Lu.prototype.o3C=function(){return this.logger.share()};
var QfQ={sNe:432E5,u1j:3E5,mke:10,rcG:1E4,yEG:3E4,ykj:3E4,xZ4:6E4,cFI:1E3,zPj:6E4,yFI:6E5,rFT:.25,dhI:2,maxAttempts:10},oiu=function(K,X,F){var P=this;this.endTimeMs=Date.now()+K;this.promise=new Promise(function(f){P.resolver=f});
var H=function(){var f=P.endTimeMs-Date.now();f<=F?P.resolver(0):setTimeout(H,Math.min(f,X))};
H()};var TFL,tjP=(TFL=Math.imul)!=null?TFL:function(K,X){return K*X|0},SM=[196,
200,224,18],rY=function(K,X,F){F=F===void 0?[]:F;this.maxItems=K;this.zK=X===void 0?0:X;this.lU=F},roL=function(K){var X=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!X)return new rY(K);var F=X.split(",");if(F.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new rY(K);X=F.slice(1);X.length===1&&X[0]===""&&(X=[]);F=Number(F[0]);return isNaN(F)||F<0||F>X.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new rY(K)):new rY(K,F,X)};
rY.prototype.serialize=function(){return String(this.zK)+","+this.lU.join()};
rY.prototype.insert=function(K,X){var F=void 0;if(this.lU[this.zK]!==K){var P=this.lU.indexOf(K);P!==-1?(this.lU.splice(P,1),P<this.zK&&this.zK--,this.lU.splice(this.zK,0,K)):(F=this.lU[this.zK],this.lU[this.zK]=K)}this.zK=(this.zK+1)%this.maxItems;K=vM4("iU5q-!O9@$",this.serialize());F&&K&&X(F);return K};
var AoW=function(K,X){this.logger=X;try{var F=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(P){F=!1}F&&(this.index=roL(K))},jfZ=function(K,X,F,P,H){var f=K.index?SQ(K.logger,function(){return gMT(K.index,Ov9(X),F,P,H)},"W"):"u";
K.logger.icK(f)},w$E=function(K,X,F){var P=_.D(K.index?SQ(K.logger,function(){return EMy(Ov9(X),F)},"R"):["u"]),H=P.next().value;
P=P.next().value;K.logger.sxK(H);return P};var yoW={toString:function(K){var X=[],F=0;K-=-2147483648;X[F++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(K%52);for(K=Math.floor(K/52);K>0;)X[F++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(K%62),K=Math.floor(K/62);return X.join("")}};var edt=function(K){K=WkW(K);for(var X=2654435769,F=2654435769,P=314159265,H=K.length,f=H,u=0,J=function(){X-=F;X-=P;X^=P>>>13;F-=P;F-=X;F^=X<<8;P-=X;P-=F;P^=F>>>13;X-=F;X-=P;X^=P>>>12;F-=P;F-=X;F^=X<<16;P-=X;P-=F;P^=F>>>5;X-=F;X-=P;X^=P>>>3;F-=P;F-=X;F^=X<<10;P-=X;P-=F;P^=F>>>15};f>=12;f-=12,u+=12)X+=dvV(K,u),F+=dvV(K,u+4),P+=dvV(K,u+8),J();
P+=H;switch(f){case 11:P+=K[u+10]<<24;case 10:P+=K[u+9]<<16;case 9:P+=K[u+8]<<8;case 8:F+=K[u+7]<<24;case 7:F+=K[u+6]<<16;case 6:F+=K[u+5]<<8;case 5:F+=K[u+4];case 4:X+=K[u+3]<<24;case 3:X+=K[u+2]<<16;case 2:X+=K[u+1]<<8;case 1:X+=K[u]}J();return yoW.toString(P)},WkW=function(K){for(var X=[],F=0;F<K.length;F++)X.push(K.charCodeAt(F));
return X},dvV=function(K,X){return K[X]+(K[X+1]<<8)+(K[X+2]<<16)+(K[X+3]<<24)};var RdE,Ar=function(K){_.LJ.call(this);this.logger=K;this.gLe=new _.K$;this[RdE]=this.dispose};
_.r(Ar,_.LJ);var UvC=function(K,X){var F=setTimeout(function(){K.gLe.resolve()},X);
K.addOnDisposeCallback(function(){return void clearTimeout(F)})};
Ar.prototype.ke=function(K,X){var F=this.vX(K);X==null||X(F);return SQ(this.logger,function(){return _.iW(F,2)},this.fyL)};
var hdQ=function(K,X,F,P){return SQ(K.logger,function(){return F?K.ke(X,P):K.vX(X,P)},K.sD)};
RdE=Symbol.dispose;var mvO=function(K,X,F,P){Ar.call(this,K);this.kdj=X;this.vm2=F;this.sD="m";this.fyL="x";this.s3T=0;UvC(this,P)};
_.r(mvO,Ar);mvO.prototype.vX=function(K,X){var F=this;this.logger.oR(this.sD);++this.s3T>=this.vm2&&this.gLe.resolve();var P=K();K=SQ(this.logger,function(){return F.kdj(P)},"C");
if(K===void 0)throw new Vm(17,"YNJ:Undefined");if(!(K instanceof Uint8Array))throw new Vm(18,"ODM:Invalid");X==null||X(K);return K};
var GpE=function(K,X,F){Ar.call(this,K);this.dCq=X;this.sD="f";this.fyL="z";UvC(this,F)};
_.r(GpE,Ar);GpE.prototype.vX=function(){return this.dCq};
var lXL=function(K,X,F){Ar.call(this,K);this.ldS=X;this.sD="w";this.fyL="z";UvC(this,F)};
_.r(lXL,Ar);lXL.prototype.vX=function(){var K=this;return SQ(this.logger,function(){return _.Jt(K.ldS)},"d")};
lXL.prototype.ke=function(){return this.ldS};
var viL=function(K,X){Ar.call(this,K);this.error=X;this.sD="e";this.fyL="y"};
_.r(viL,Ar);var aXC=function(K,X){var F=(X(K.error.message)+":"+X(K.error.stack)).substring(0,2048);X=F.length+1;F=bv9(F);var P=new Uint8Array(4+F.length);P.set([42,X&127|128,X>>7,K.error.code]);P.set(F,4);return P};
viL.prototype.vX=function(){if(this.bOM)return this.bOM;this.bOM=aXC(this,function(K){return"_"+edt(K)});
return aXC(this,function(K){return K})};
var tit=function(K,X,F){Ar.call(this,K);this.y0e=X;this.clientState=F;this.sD="S";this.fyL="q"};
_.r(tit,Ar);tit.prototype.vX=function(){var K=Math.floor(Date.now()/1E3),X=[Math.random()*255,Math.random()*255],F=X.concat([this.y0e&255,this.clientState],[K>>24&255,K>>16&255,K>>8&255,K&255]);K=new Uint8Array(2+F.length);K[0]=34;K[1]=F.length;K.set(F,2);F=K.subarray(2);for(var P=X=X.length;P<F.length;++P)F[P]^=F[P%X];this.logger.bc6(this.clientState);return K};var $vQ={l9z:3E4,hz4:2E4},jQ=function(K){_.LJ.call(this);var X=this;this.peL=new _.K$;this.y1Q=0;this.xz=void 0;this.state=2;this.xh=K.xh;this.jR=K.jR;this.a87=Object.assign({},$vQ,K.a87||{});this.logger=K.xh.o3C();var F;this.onError=(F=K.onError)!=null?F:function(){};
this.x18=K.x18||!1;if(Ost(K)){var P=this.xh;this.tVX=function(){return niW(P).catch(function(u){u=X.reportError(new Vm(X.cP?20:32,"TRG:Disposed",u));X.xz=u;var J;(J=X.cP)==null||J.dispose();X.cP=void 0;X.peL.reject(u)})};
coN(P,function(){return void ViE(X)});
P.wuj===2&&ViE(this)}else this.tVX=K.g81,ViE(this);var H=this.logger.share();H.oR("o");var f=new ixL(H,"o");this.peL.promise.then(function(){f.done();H.cL();H.dispose()},function(){return void H.dispose()});
this.addOnDisposeCallback(function(){X.cP?(X.cP.dispose(),X.cP=void 0):X.xz?X.logger.cL():(X.xz=X.reportError(new Vm(32,"TNP:Disposed")),X.logger.cL(),X.peL.reject(X.xz))});
_.JH(this,this.logger)};
_.r(jQ,_.LJ);jQ.prototype.geQ=function(){return this.peL.promise};
var giW=function(K,X){if(!(X instanceof Vm))if(X instanceof _.M6){var F=Error(X.toString());F.stack=X.stack;X=new Vm(11,"EBH:Error",F)}else X=new Vm(12,"BSO:Unknown",X);return K.reportError(X)},ViE=function(K){var X,F,P,H,f,u,J,Z,M,n,c,B,L,A,d;
return _.q(function(R){switch(R.nextAddress){case 1:X=void 0;K.y1Q++;F=new _.K$;K.xh instanceof Lu&&K.xh.aoL.push(F.promise);if(!K.x18){R.jumpTo(2);break}P=new _.K$;setTimeout(function(){return void P.resolve()});
return _.Y(R,P.promise,2);case 2:return H=K.logger.share(),_.s2(R,4,5),K.state=5,f={},u=[],_.Y(R,B_(K.xh.snapshot({fS:f,rNy:u}),K.a87.hz4,function(){return Promise.reject(new Vm(15,"MDA:Timeout"))}),7);
case 7:J=R.yieldResult;if(K.isDisposed())throw new Vm(K.cP?20:32,"MDA:Disposed");Z=u[0];K.state=6;return _.Y(R,B_(EiN(K.jR,J),K.a87.l9z,function(){return Promise.reject(new Vm(10,"BWB:Timeout"))}),8);
case 8:M=R.yieldResult;if(K.isDisposed())throw new Vm(K.cP?20:32,"BWB:Disposed");K.state=7;X=SQ(H,function(){var a=bsW(K,M,F,Z);a.gLe.promise.then(function(){return void K.tVX()});
return a},"i");
case 5:_.fZ(R);H.dispose();_.uK(R,6);break;case 4:n=_.qc(R);(c=X)==null||c.dispose();if(!K.xz){B=giW(K,n);F.resolve();var l;if(l=K.xh instanceof Lu&&K.y1Q<2)a:if(n instanceof Vm)l=n.code!==32&&n.code!==20&&n.code!==10;else{if(n instanceof _.M6)switch(n.code){case 2:case 13:case 14:case 4:break;default:l=!1;break a}l=!0}if(l)return L=(1+Math.random()*.25)*(K.cP?6E4:1E3),A=setTimeout(function(){return void K.tVX()},L),K.addOnDisposeCallback(function(){return void clearTimeout(A)}),R.return();
K.xz=B}H.logError(K.cP?13:14);K.peL.reject(K.xz);return R.return();case 6:K.state=8,K.y1Q=0,(d=K.cP)==null||d.dispose(),K.cP=X,K.peL.resolve(),_.JT(R)}})},bsW=function(K,X,F,P){var H=tVy(X,2)*1E3;
if(H<=0)throw new Vm(31,"TTM:Invalid");if(_.BL(X,4))return new lXL(K.logger,_.BL(X,4),H);if(!tVy(X,3))return new GpE(K.logger,T6l(_.DR(X,1)),H);if(!P)throw new Vm(4,"PMD:Undefined");P=P(T6l(_.DR(X,1)));if(!(P instanceof Function))throw new Vm(16,"APF:Failed");K.bIj=Math.floor((Date.now()+H)/1E3);K=new mvO(K.logger,P,tVy(X,3),H);K.addOnDisposeCallback(function(){return void F.resolve()});
return K};
jQ.prototype.vX=function(K){return CiE(this,Object.assign({},K),!1)};
jQ.prototype.ke=function(K){return CiE(this,Object.assign({},K),!0)};
jQ.prototype.olm=function(K){if(K>150)return!1;try{return this.cache=new AoW(K,this.logger),!0}catch(X){return this.reportError(new Vm(22,"GBJ:init",X)),!1}};
jQ.prototype.reportError=function(K){this.logger.logError(K.code);this.onError(K);return K};
var NFU=function(K,X){X=X instanceof Vm?X:new Vm(5,"TVD:error",X);return K.reportError(X)},CiE=function(K,X,F){try{if(K.isDisposed())throw new Vm(21,"BNT:disposed");
if(!K.cP&&K.xz)throw K.xz;var P,H;return(H=(P=isN(K,X,F))!=null?P:xvU(K,X,F))!=null?H:IXQ(K,X,F)}catch(f){if(!X.rQ8)throw NFU(K,f);return kpV(K,F,f)}},isN=function(K,X,F){var P;
return(P=K.cP)==null?void 0:hdQ(P,function(){return KqL(K,X)},F,function(H){var f;
if(K.cP instanceof mvO&&((f=X.uB)==null?0:f.cLz))try{var u;(u=K.cache)==null||jfZ(u,KqL(K,X),H,X.uB.jnK,K.bIj-120)}catch(J){K.reportError(new Vm(24,"ELX:write",J))}})},xvU=function(K,X,F){var P;
if((P=X.uB)!=null&&P.eP2)try{var H,f=(H=K.cache)==null?void 0:w$E(H,KqL(K,X),X.uB.jnK);return f?F?SQ(K.logger,function(){return _.iW(f,2)},"a"):f:void 0}catch(u){K.reportError(new Vm(23,"RXO:read",u))}},IXQ=function(K,X,F){var P={stack:[],
error:void 0,hasError:!1};try{if(!X.yQH)throw new Vm(29,"SDF:notready");return hdQ(Wnl(P,new tit(K.logger,0,K.state)),function(){return KqL(K,X)},F)}catch(H){P.error=H,P.hasError=!0}finally{dKn(P)}},kpV=function(K,X,F){var P={stack:[],
error:void 0,hasError:!1};try{var H=NFU(K,F);return hdQ(Wnl(P,new viL(K.logger,H)),function(){return[]},X)}catch(f){P.error=f,P.hasError=!0}finally{dKn(P)}},KqL=function(K,X){return X.m68?X.m68:X.fS?SQ(K.logger,function(){return X.m68=bv9(X.fS)},"c"):[]},Ost=function(K){return VO(function(X){if(!Xn(X))return!1;
for(var F=_.D(Object.entries(K)),P=F.next();!P.done;P=F.next()){var H=_.D(P.value);P=H.next().value;H=H.next().value;if(!(P in X)){if(H.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!H(X[P]))return!1}return!0})}({xh:function(K){return VO(function(X){return X instanceof K})}(Lu)},"");var XkE=function(){var K=_.ij();this.JSC$7925_streamzService=K;K.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",FA("cookie_enabled"),FA("cookie_3p_enabled"),_.H_("browser"))};
XkE.prototype.increment=function(K,X,F){this.JSC$7925_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",K,X,F)};
var Jjd=function(){var K=_.ij();this.JSC$7949_streamzService=K;K.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",P_("tick"),FA("from_st_cookie"))};
Jjd.prototype.increment=function(K,X){this.JSC$7949_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",K,X)};
var FqT=function(){var K=_.ij();this.JSC$7955_streamzService=K;K.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.H_("status"))};
FqT.prototype.increment=function(K){this.JSC$7955_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",K)};
var PKC=function(){var K=_.ij();this.JSC$7958_streamzService=K;K.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.H_("stage"),FA("is_using_ytd_player"),FA("has_expandable_tiles"))};
PKC.prototype.increment=function(K,X,F){this.JSC$7958_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",K,X,F)};
var HZL=function(){var K=_.ij();this.JSC$7961_streamzService=K;K.addNewCounter("/client_streamz/youtube/web/response_signature",_.H_("check_status"))};
HZL.prototype.increment=function(K){this.JSC$7961_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/web/response_signature",K)};
var swV=function(){var K=_.ij();this.JSC$7964_streamzService=K;K.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.H_("sig"),P_("de"))};
swV.prototype.increment=function(K,X){this.JSC$7964_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/web/e_sig_log",K,X)};
var zQt=function(){var K=_.ij();this.JSC$7967_streamzService=K;K.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.H_("sig"),P_("de"))};
zQt.prototype.increment=function(K,X){this.JSC$7967_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/web/e_sig_en",K,X)};
_.f4C=function(){var K=_.ij();this.JSC$7970_streamzService=K;K.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.H_("action"))};
_.f4C.prototype.increment=function(K){this.JSC$7970_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/web/enforcement_intent",K)};var wY=window;var DcQ=(new Date).getTime();var ugT=function(K){this.servicePromise_=K;K.then((0,_.T3)(function(){},this),function(){},this)},q2C=function(K,X,F){K.servicePromise_.then(function(P){var H=P[X];
if(!H)throw Error("Oa`"+X);return H.apply(P,F)})},Y2t=function(K,X,F){for(var P=Array(arguments.length-2),H=2;H<arguments.length;H++)P[H-2]=arguments[H];
H=JTu(K,X).then(function(f){return f.apply(null,P)},function(f){f=Error("Pa`"+X+"`"+K,{cause:f});
delete ZZL[X];return _.pB(f)});
return new ugT(H)},ZZL={},JTu=function(K,X){var F=ZZL[X];
if(F)return F;F=(F=_.mz(X))?_.F0(F):(new _.fL(function(P,H){var f=(new JI(document)).createElement("SCRIPT");f.async=!0;_.li(f,_.DX(JMC(K)));f.onload=f.onreadystatechange=function(){f.readyState&&f.readyState!="loaded"&&f.readyState!="complete"||P()};
f.onerror=function(u){H(Error("Qa`"+X+"`"+K,{cause:u}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(f)})).then(function(){var P=_.mz(X);
if(!P)throw Error("Ra`"+X+"`"+K);return P});
return ZZL[X]=F};var QwV={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},nEZ=function(){var K=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=C_l(function(){return _.q(function(X){if(X.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?X.return(Promise.resolve()):_.Y(X,MOV(K),2);K.rsaForList.length>
0&&document.addEventListener("click",K.requestAccessForHelpPanel);_.JT(X)})});
this.requestAccessForHelpPanel=function(){if(!(K.rsaForPromises.length>0)){for(var X=_.D(K.rsaForList),F=X.next();!F.done;F=X.next()){F=F.value;try{K.rsaForPromises.push(document.requestStorageAccessFor(F))}catch(P){}}Promise.all(K.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){K.reset()})}}};
nEZ.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var MOV=function(K){var X,F,P,H;return _.q(function(f){switch(f.nextAddress){case 1:X=_.D(Object.values(QwV)),F=X.next();case 2:if(F.done){f.jumpTo(0);break}P=F.value;_.s2(f,5);return _.Y(f,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:P}),7);case 7:H=f.yieldResult;H.state!=="granted"&&K.rsaForList.push(P);_.Gy(f,3);break;case 5:_.qc(f);f.jumpTo(0);break;case 3:F=X.next(),f.jumpTo(2)}})};(new nEZ).initialize();var cTC=function(K){this.JSC$7984_loader_=K};
cTC.prototype.startHelp=function(K){q2C(this.JSC$7984_loader_,"startHelp",arguments)};
cTC.prototype.JSC$7986_loadChatSupport=function(K){q2C(this.JSC$7984_loader_,"loadChatSupport",arguments)};
var BEE=function(K,X){X=X||{};K=Y2t(pkL,"help.service.Lazy.create",K,{apiKey:X.apiKey||X.apiKey,asxUiUri:X.asxUiUri||X.asxUiUri,environment:X.environment||X.environment,flow:X.flow||X.flow,frdProductData:X.frdProductData||X.frdProductData,frdProductDataSerializedJspb:X.frdProductDataSerializedJspb||X.frdProductDataSerializedJspb,helpCenterPath:X.helpCenterPath||X.helpCenterPath,locale:X.locale||X.locale||"en-US".replace(/-/g,"_"),nonce:X.nonce||X.nonce,productData:X.productData||X.productData,receiverUri:X.receiverUri||
X.receiverUri,renderApiUri:X.renderApiUri||X.renderApiUri,theme:X.theme||X.theme,window:X.window||X.window});return new cTC(K)},pkL=new dc(rYw,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var S2E=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(S2E,_.Gm);var oEt=_.Ks(S2E);_.LqC=new function(K,X,F,P){this.configType=K;this.flagName=F;this.defaultValue=P;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 rTO=function(){this.retriever=_.i9().resolve(TEC)};ivl(Node);ivl(Element);var ATN=ivl(HTMLElement);ivl(SVGElement);var jwO,wkW,eQ,yTC;jwO=function(K){return typeof K.className=="string"?K.className:K.getAttribute&&K.getAttribute("class")||""};
wkW=function(K){return K.classList?K.classList:jwO(K).match(/\S+/g)||[]};
_.WD=function(K,X){typeof K.className=="string"?K.className=X:K.setAttribute&&K.setAttribute("class",X)};
_.dY=function(K,X){return K.classList?K.classList.contains(X):_.Ol(wkW(K),X)};
_.tY=function(K,X){if(K.classList)K.classList.add(X);else if(!_.dY(K,X)){var F=jwO(K);_.WD(K,F+(F.length>0?" "+X:X))}};
eQ=function(K,X){if(K.classList)Array.prototype.forEach.call(X,function(H){_.tY(K,H)});
else{var F={};Array.prototype.forEach.call(wkW(K),function(H){F[H]=!0});
Array.prototype.forEach.call(X,function(H){F[H]=!0});
X="";for(var P in F)X+=X.length>0?" "+P:P;_.WD(K,X)}};
_.vn=function(K,X){K.classList?K.classList.remove(X):_.dY(K,X)&&_.WD(K,Array.prototype.filter.call(wkW(K),function(F){return F!=X}).join(" "))};
yTC=function(K,X){K.classList?Array.prototype.forEach.call(X,function(F){_.vn(K,F)}):_.WD(K,Array.prototype.filter.call(wkW(K),function(F){return!_.Ol(X,F)}).join(" "))};var Wqu=function(K){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=K.document},RQU=function(K,X){dcW(K);
var F=document.createElement("div"),P;(P=X.parentNode)==null||P.insertBefore(F,X);F.tabIndex=0;F.id="fc-focus-trap-pre-div";F=document.createElement("div");var H;(H=X.parentNode)==null||H.insertBefore(F,X.nextSibling);F.tabIndex=0;F.id="fc-focus-trap-post-div";var f=eQO(K,X),u=eQO(K,X,!0);f&&u&&(K.focusChangeHandler=function(){var J=K.document.activeElement;if(J)if(_.G3(X,J))K.previouslyFocusedElement=J;else if(J===K.document.activeElement)switch(K.previouslyFocusedElement){case f:u.focus();K.previouslyFocusedElement=
u;break;default:f.focus(),K.previouslyFocusedElement=f}},K.document.addEventListener("focus",K.focusChangeHandler,!0),K.document.addEventListener("focusin",K.focusChangeHandler))},dcW=function(K){K.focusChangeHandler&&(document.removeEventListener("focus",K.focusChangeHandler,!0),document.removeEventListener("focusin",K.focusChangeHandler),K.focusChangeHandler=null);
var X;(X=document.getElementById("fc-focus-trap-pre-div"))==null||X.remove();var F;(F=document.getElementById("fc-focus-trap-post-div"))==null||F.remove()},Uct=function(K,X,F,P,H){F=F===void 0?!0:F;
var f;H=(f=H===void 0?null:H)!=null?f:eQO(K,X,P===void 0?!1:P);H!==null&&(H.focus(),F&&RQU(K,X))};
Wqu.prototype.disableButton=function(K,X){X=X===void 0?null:X;K.disabled=!0;X&&_.tY(K,X)};
var eQO=function(K,X,F){F=F===void 0?!1:F;if(O$q(X)&&!F)return X;var P=F?[].slice.call(X.children,0).reverse():X.children;P=_.D(P);for(var H=P.next();!H.done;H=P.next())if(H=H.value,ATN(H)&&(H=eQO(K,H,F)))return H;return O$q(X)&&F?X:null};var hQu=function(K){this.originalBodyOverflow="";this.JSC$8010_domHelper=Yp(K)};_.br(_.r0,_.LJ);_.z=_.r0.prototype;_.z.JSC$8013_id_=0;_.z.disposeInternal=function(){_.r0.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$8011_listener_;delete this.handler_};
_.z.start=function(K){this.stop();this.JSC$8013_id_=Qt(this.callback_,K!==void 0?K:this.JSC$8011_interval_)};
_.z.stop=function(){this.isActive()&&_.FP.clearTimeout(this.JSC$8013_id_);this.JSC$8013_id_=0};
_.z.fire=function(){this.stop();this.JSC$8013_doAction_()};
_.z.isActive=function(){return this.JSC$8013_id_!=0};
_.z.JSC$8013_doAction_=function(){this.JSC$8013_id_=0;this.JSC$8011_listener_&&this.JSC$8011_listener_.call(this.handler_)};_.iv=function(K){_.LJ.call(this);this.handler_=K;this.JSC$8014_keys_={}};
_.br(_.iv,_.LJ);var mcL=[];_.iv.prototype.listen=function(K,X,F,P){Array.isArray(X)||(X&&(mcL[0]=X.toString()),X=mcL);for(var H=0;H<X.length;H++){var f=_.nB(K,X[H],F||this.handleEvent,P||!1,this.handler_||this);if(!f)break;this.JSC$8014_keys_[f.key]=f}return this};
_.iv.prototype.listenOnce=function(K,X,F,P){return GsU(this,K,X,F,P)};
var GsU=function(K,X,F,P,H,f){if(Array.isArray(F))for(var u=0;u<F.length;u++)GsU(K,X,F[u],P,H,f);else{X=Za(X,F,P||K.handleEvent,H,f||K.handler_||K);if(!X)return K;K.JSC$8014_keys_[X.key]=X}return K};
_.iv.prototype.unlisten=function(K,X,F,P,H){if(Array.isArray(X))for(var f=0;f<X.length;f++)this.unlisten(K,X[f],F,P,H);else if(K=s0L(K,X,F||this.handleEvent,_.XL(P)?!!P.capture:!!P,H||this.handler_||this))YO(K),delete this.JSC$8014_keys_[K.key];return this};
_.iv.prototype.removeAll=function(){_.T8.forEach(this.JSC$8014_keys_,function(K,X){this.JSC$8014_keys_.hasOwnProperty(X)&&YO(K)},this);
this.JSC$8014_keys_={}};
_.iv.prototype.disposeInternal=function(){_.iv.superClass_.disposeInternal.call(this);this.removeAll()};
_.iv.prototype.handleEvent=function(){throw Error("Sa");};var RG=function(){_.LJ.call(this);this.services_={}};
_.br(RG,_.LJ);_.z=RG.prototype;_.z.logger=null;_.z.connect=function(K){K&&K()};
_.z.isConnected=function(){return!0};
_.z.registerService=function(K,X,F){this.services_[K]={callback:X,objectPayload:!!F}};
_.z.getService=function(K,X){var F=this.services_[K];return F?F:this.defaultService_?{callback:_.Jc(this.defaultService_,K),objectPayload:_.XL(X)}:null};
var l4O=function(K,X){if(X&&typeof K==="string")try{return JSON.parse(K)}catch(F){return null}else if(!X&&typeof K!=="string")return(0,_.nu)(K);return K};
RG.prototype.disposeInternal=function(){RG.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 UQ=function(K,X){this.sequence_=[];this.onCancelFunction_=K;this.defaultScope_=X||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};
UQ.prototype.cancel=function(K){if(this.fired_)this.result_ instanceof UQ&&this.result_.cancel();else{if(this.parent_){var X=this.parent_;delete this.parent_;K?X.cancel(K):(X.branches_--,X.branches_<=0&&X.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new hr(this))}};
UQ.prototype.continue_=function(K,X){this.blocked_=!1;vEL(this,K,X)};
var vEL=function(K,X,F){K.fired_=!0;K.result_=F;K.hadError_=!X;a4O(K)},$cu=function(K){if(K.fired_){if(!K.silentlyCanceled_)throw new tON(K);
K.silentlyCanceled_=!1}};
UQ.prototype.callback=function(K){$cu(this);vEL(this,!0,K)};
UQ.prototype.errback=function(K){$cu(this);vEL(this,!1,K)};
var OZO=function(K,X,F){m6(K,X,null,F)};
UQ.prototype.finally=function(K){var X=this;return new Promise(function(F,P){m6(X,function(H){K();F(H)},function(H){K();
P(H)})})};
var m6=function(K,X,F,P){var H=K.fired_;H||(X===F?X=F=q6(X):(X=q6(X),F=q6(F)));K.sequence_.push([X,F,P]);H&&a4O(K)};
UQ.prototype.then=function(K,X,F){var P,H,f=new _.fL(function(u,J){H=u;P=J});
m6(this,H,function(u){u instanceof hr?f.cancel():P(u);return VOL},this);
return f.then(K,X,F)};
YBV(UQ);var gEZ=function(K,X){X instanceof UQ?OZO(K,(0,_.T3)(X.branch,X)):OZO(K,function(){return X})};
UQ.prototype.branch=function(K){var X=new UQ;m6(this,X.callback,X.errback,X);K&&(X.parent_=this,this.branches_++);return X};
UQ.prototype.isError=function(K){return K instanceof Error};
var EEN=function(K){return aa(K.sequence_,function(X){return typeof X[1]==="function"})},VOL={},a4O=function(K){if(K.unhandledErrorId_&&K.fired_&&EEN(K)){var X=K.unhandledErrorId_,F=bZZ[X];
F&&(_.FP.clearTimeout(F.JSC$8031_id_),delete bZZ[X]);K.unhandledErrorId_=0}K.parent_&&(K.parent_.branches_--,delete K.parent_);X=K.result_;for(var P=F=!1;K.sequence_.length&&!K.blocked_;){var H=K.sequence_.shift(),f=H[0],u=H[1];H=H[2];if(f=K.hadError_?u:f)try{var J=f.call(H||K.defaultScope_,X);J===VOL&&(J=void 0);J!==void 0&&(K.hadError_=K.hadError_&&(J==X||K.isError(J)),K.result_=X=J);if(Q0t(X)||typeof _.FP.Promise==="function"&&X instanceof _.FP.Promise)P=!0,K.blocked_=!0}catch(Z){X=Z,K.hadError_=
!0,EEN(K)||(F=!0)}}K.result_=X;P&&(J=(0,_.T3)(K.continue_,K,!0),P=(0,_.T3)(K.continue_,K,!1),X instanceof UQ?(m6(X,J,P),X.blocking_=!0):X.then(J,P));F&&(X=new CKU(X),bZZ[X.JSC$8031_id_]=X,K.unhandledErrorId_=X.JSC$8031_id_)},tON=function(){_.KO.call(this)};
_.br(tON,_.KO);tON.prototype.message="Deferred has already fired";tON.prototype.name="AlreadyCalledError";var hr=function(){_.KO.call(this)};
_.br(hr,_.KO);hr.prototype.message="Deferred was canceled";hr.prototype.name="CanceledError";var CKU=function(K){this.JSC$8031_id_=_.FP.setTimeout((0,_.T3)(this.throwError,this),0);this.JSC$8031_error_=K};
CKU.prototype.throwError=function(){delete bZZ[this.JSC$8031_id_];throw this.JSC$8031_error_;};
var bZZ={};var NEL={1:"NativeMessagingTransport"},iZu=["pu","lru","pru","lpu","ppu"],I4t=function(){for(var K=10,X=xcE,F=X.length,P="";K-- >0;)P+=X.charAt(Math.floor(Math.random()*F));return P},xcE="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var G4=function(K){_.LJ.call(this);this.JSC$8034_domHelper_=K||Yp()};
_.br(G4,_.LJ);G4.prototype.transportType=0;G4.prototype.getWindow=function(){return this.JSC$8034_domHelper_.getWindow()};
G4.prototype.getName=function(){return NEL[String(this.transportType)]||""};var la=function(K,X,F,P,H){G4.call(this,F);this.JSC$8037_channel_=K;this.protocolVersion_=H||2;this.peerHostname_=X||"*";this.JSC$8037_eventHandler_=new _.iv(this);this.maybeAttemptToConnectTimer_=new _.Nz(100,this.getWindow());this.oneSidedHandshake_=!!P;this.setupAckReceived_=new UQ;this.setupAckSent_=new UQ;this.JSC$8037_connected_=new UQ;this.endpointId_=I4t();this.peerEndpointId_=null;this.oneSidedHandshake_?ksV(this.JSC$8037_channel_)==1?gEZ(this.JSC$8037_connected_,this.setupAckReceived_):
gEZ(this.JSC$8037_connected_,this.setupAckSent_):(gEZ(this.JSC$8037_connected_,this.setupAckReceived_),this.protocolVersion_==2&&gEZ(this.JSC$8037_connected_,this.setupAckSent_));OZO(this.JSC$8037_connected_,this.notifyConnected_,this);this.JSC$8037_connected_.callback(!0);this.JSC$8037_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.br(la,G4);la.prototype.peerProtocolVersion_=null;la.prototype.initialized_=!1;la.prototype.transportType=1;var KPZ={};la.prototype.sendTimerId_=0;
var PkC=function(K){var X=K.event_.data;if(typeof X!=="string")return!1;var F=X.indexOf("|"),P=X.indexOf(":");if(F==-1||P==-1)return!1;var H=X.substring(0,F);F=X.substring(F+1,P);X=X.substring(P+1);if(P=vD[H])return P.xpcDeliver(F,X,K.event_.origin),!0;P=Xft(X)[0];for(var f in vD){var u=vD[f];if(ksV(u)==1&&!u.isConnected()&&F=="tp"&&(P=="SETUP"||P=="SETUP_NTPV2")&&FPN(u,K.event_.origin))return delete vD[u.name],u.name=H,vD[H]=u,u.xpcDeliver(F,X),!0}return!1},H8L=function(K){K.protocolVersion_!=2||
K.peerProtocolVersion_!=null&&K.peerProtocolVersion_!=2||K.send("tp","SETUP_NTPV2,"+K.endpointId_);
K.peerProtocolVersion_!=null&&K.peerProtocolVersion_!=1||K.send("tp","SETUP")},sRU=function(K,X){if(K.protocolVersion_!=2||K.peerProtocolVersion_!=null&&K.peerProtocolVersion_!=2||X!=2){if(K.peerProtocolVersion_!=null&&K.peerProtocolVersion_!=1||X!=1)return;
K.send("tp","SETUP_ACK")}else K.send("tp","SETUP_ACK_NTPV2");K.setupAckSent_.fired_||K.setupAckSent_.callback(!0)},z9L=function(K,X){X>K.peerProtocolVersion_&&(K.peerProtocolVersion_=X);
K.peerProtocolVersion_==1&&(K.setupAckSent_.fired_||K.oneSidedHandshake_||K.setupAckSent_.callback(!0),K.peerEndpointId_=null)};
_.z=la.prototype;_.z.connect=function(){var K=this.getWindow(),X=_.FL(K),F=KPZ[X];typeof F!=="number"&&(F=0);F==0&&_.nB(K.postMessage?K:K.document,"message",PkC,!1,la);KPZ[X]=F+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.z.maybeAttemptToConnect_=function(){var K=ksV(this.JSC$8037_channel_)==0;this.oneSidedHandshake_&&K||this.JSC$8037_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),H8L(this))};
_.z.send=function(K,X){var F=this.JSC$8037_channel_.peerWindowObject_;F&&(this.send=function(P,H){var f=this,u=this.JSC$8037_channel_.name;this.sendTimerId_=Qt(function(){f.sendTimerId_=0;try{var J=F.postMessage?F:F.document;J.postMessage&&J.postMessage(u+"|"+P+":"+H,f.peerHostname_)}catch(Z){}},0)},this.send(K,X))};
_.z.notifyConnected_=function(){var K=this.JSC$8037_channel_,X=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;K.isConnected()||K.connectionDelay_&&K.connectionDelay_.isActive()||(K.state_=2,_.ik(K.connectionDelay_),X!==void 0?(K.connectionDelay_=new _.r0(K.connectCb_,X),K.connectionDelay_.start()):(K.connectionDelay_=null,K.connectCb_()))};
_.z.disposeInternal=function(){if(this.initialized_){var K=this.getWindow(),X=_.FL(K),F=KPZ[X];KPZ[X]=F-1;F==1&&_.DG(K.postMessage?K:K.document,"message",PkC,!1,la)}this.sendTimerId_&&(_.FP.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.ik(this.JSC$8037_eventHandler_);delete this.JSC$8037_eventHandler_;_.ik(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$8037_connected_.cancel();delete this.JSC$8037_connected_;delete this.send;la.superClass_.disposeInternal.call(this)};
var Xft=function(K){K=K.split(",");K[1]=K[1]||null;return K};_.aG=function(K){if(K.getValues&&typeof K.getValues=="function")return K.getValues();if(typeof Map!=="undefined"&&K instanceof Map||typeof Set!=="undefined"&&K instanceof Set)return Array.from(K.values());if(typeof K==="string")return K.split("");if(_.xd(K)){for(var X=[],F=K.length,P=0;P<F;P++)X.push(K[P]);return X}return _.T8.getValues(K)};
_.fwO=function(K){if(K.getKeys&&typeof K.getKeys=="function")return K.getKeys();if(!K.getValues||typeof K.getValues!="function"){if(typeof Map!=="undefined"&&K instanceof Map)return Array.from(K.keys());if(!(typeof Set!=="undefined"&&K instanceof Set)){if(_.xd(K)||typeof K==="string"){var X=[];K=K.length;for(var F=0;F<K;F++)X.push(F);return X}return _.T8.getKeys(K)}}};
_.D4t=function(K,X,F){if(K.forEach&&typeof K.forEach=="function")K.forEach(X,F);else if(_.xd(K)||typeof K==="string")Array.prototype.forEach.call(K,X,F);else for(var P=_.fwO(K),H=_.aG(K),f=H.length,u=0;u<f;u++)X.call(F,H[u],P&&P[u],K)};var MYy,ba,N6,MAT,ust,JEE,qOV,QRT,Z8Q;
_.aJ=function(K,X){this.JSC$8042_domain_=this.userInfo_=this.scheme_="";this.JSC$8042_port_=null;this.fragment_=this.JSC$8042_path_="";this.JSC$8042_ignoreCase_=!1;var F;K instanceof _.aJ?(this.JSC$8042_ignoreCase_=X!==void 0?X:K.JSC$8042_ignoreCase_,_.tr(this,K.scheme_),this.userInfo_=K.userInfo_,_.$v(this,K.JSC$8042_domain_),_.OQ(this,K.JSC$8042_port_),_.Vt(this,K.getPath()),_.gY(this,K.JSC$8042_queryData_.clone()),_.EQ(this,K.fragment_)):K&&(F=_.V8(String(K)))?(this.JSC$8042_ignoreCase_=!!X,_.tr(this,
F[1]||"",!0),this.userInfo_=ba(F[2]||""),_.$v(this,F[3]||"",!0),_.OQ(this,F[4]),_.Vt(this,F[5]||"",!0),_.gY(this,F[6]||"",!0),_.EQ(this,F[7]||"",!0)):(this.JSC$8042_ignoreCase_=!!X,this.JSC$8042_queryData_=new _.Cu(null,this.JSC$8042_ignoreCase_))};
_.aJ.prototype.toString=function(){var K=[],X=this.scheme_;X&&K.push(N6(X,ust,!0),":");var F=this.JSC$8042_domain_;if(F||X=="file")K.push("//"),(X=this.userInfo_)&&K.push(N6(X,ust,!0),"@"),K.push(_.l9(F).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),F=this.JSC$8042_port_,F!=null&&K.push(":",String(F));if(F=this.getPath())this.JSC$8042_domain_&&F.charAt(0)!="/"&&K.push("/"),K.push(N6(F,F.charAt(0)=="/"?qOV:JEE,!0));(F=this.JSC$8042_queryData_.toString())&&K.push("?",F);(F=this.fragment_)&&K.push("#",N6(F,
Z8Q));return K.join("")};
_.aJ.prototype.resolve=function(K){var X=this.clone(),F=!!K.scheme_;F?_.tr(X,K.scheme_):F=!!K.userInfo_;F?X.userInfo_=K.userInfo_:F=!!K.JSC$8042_domain_;F?_.$v(X,K.JSC$8042_domain_):F=K.JSC$8042_port_!=null;var P=K.getPath();if(F)_.OQ(X,K.JSC$8042_port_);else if(F=!!K.JSC$8042_path_){if(P.charAt(0)!="/")if(this.JSC$8042_domain_&&!this.JSC$8042_path_)P="/"+P;else{var H=X.getPath().lastIndexOf("/");H!=-1&&(P=X.getPath().slice(0,H+1)+P)}H=P;if(H==".."||H==".")P="";else if(_.qq(H,"./")||_.qq(H,"/.")){P=
_.Hy(H,"/");H=H.split("/");for(var f=[],u=0;u<H.length;){var J=H[u++];J=="."?P&&u==H.length&&f.push(""):J==".."?((f.length>1||f.length==1&&f[0]!="")&&f.pop(),P&&u==H.length&&f.push("")):(f.push(J),P=!0)}P=f.join("/")}else P=H}F?_.Vt(X,P):F=K.JSC$8042_queryData_.toString()!=="";F?_.gY(X,K.JSC$8042_queryData_.clone()):F=!!K.fragment_;F&&_.EQ(X,K.fragment_);return X};
_.aJ.prototype.clone=function(){return new _.aJ(this)};
_.tr=function(K,X,F){K.scheme_=F?ba(X,!0):X;K.scheme_&&(K.scheme_=K.scheme_.replace(/:$/,""));return K};
_.$v=function(K,X,F){K.JSC$8042_domain_=F?ba(X,!0):X;return K};
_.OQ=function(K,X){if(X){X=Number(X);if(isNaN(X)||X<0)throw Error("Ta`"+X);K.JSC$8042_port_=X}else K.JSC$8042_port_=null;return K};
_.aJ.prototype.getPath=function(){return this.JSC$8042_path_};
_.Vt=function(K,X,F){K.JSC$8042_path_=F?ba(X,!0):X;return K};
_.gY=function(K,X,F){X instanceof _.Cu?(K.JSC$8042_queryData_=X,YOu(K.JSC$8042_queryData_,K.JSC$8042_ignoreCase_)):(F||(X=N6(X,QRT)),K.JSC$8042_queryData_=new _.Cu(X,K.JSC$8042_ignoreCase_));return K};
_.$L=function(K,X,F){K.JSC$8042_queryData_.set(X,F);return K};
_.tH=function(K,X){return K.JSC$8042_queryData_.get(X)};
_.EQ=function(K,X,F){K.fragment_=F?ba(X):X;return K};
_.ia=function(K){_.$L(K,"zx",v_());return K};
_.az=function(K,X){return K instanceof _.aJ?K.clone():new _.aJ(K,X)};
MYy=function(K,X){K instanceof _.aJ||(K=_.az(K));X instanceof _.aJ||(X=_.az(X));return K.resolve(X)};
ba=function(K,X){return K?X?decodeURI(K.replace(/%25/g,"%2525")):decodeURIComponent(K):""};
N6=function(K,X,F){return typeof K==="string"?(K=encodeURI(K).replace(X,MAT),F&&(K=K.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),K):null};
MAT=function(K){K=K.charCodeAt(0);return"%"+(K>>4&15).toString(16)+(K&15).toString(16)};
ust=/[#\/\?@]/g;JEE=/[#\?:]/g;qOV=/[#\?]/g;QRT=/[#\?@]/g;Z8Q=/#/g;_.Cu=function(K,X){this.count_=this.keyMap_=null;this.encodedQuery_=K||null;this.JSC$8043_ignoreCase_=!!X};
_.xv=function(K){K.keyMap_||(K.keyMap_=new Map,K.count_=0,K.encodedQuery_&&DVV(K.encodedQuery_,function(X,F){K.add(C9(X),F)}))};
_.z=_.Cu.prototype;_.z.getCount=function(){_.xv(this);return this.count_};
_.z.add=function(K,X){_.xv(this);this.encodedQuery_=null;K=IG(this,K);var F=this.keyMap_.get(K);F||this.keyMap_.set(K,F=[]);F.push(X);this.count_+=1;return this};
_.z.remove=function(K){_.xv(this);K=IG(this,K);return this.keyMap_.has(K)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(K).length,this.keyMap_.delete(K)):!1};
_.z.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.z.isEmpty=function(){_.xv(this);return this.count_==0};
_.z.containsKey=function(K){_.xv(this);K=IG(this,K);return this.keyMap_.has(K)};
_.z.containsValue=function(K){var X=this.getValues();return _.Ol(X,K)};
_.z.forEach=function(K,X){_.xv(this);this.keyMap_.forEach(function(F,P){F.forEach(function(H){K.call(X,H,P,this)},this)},this)};
_.z.getKeys=function(){_.xv(this);for(var K=Array.from(this.keyMap_.values()),X=Array.from(this.keyMap_.keys()),F=[],P=0;P<X.length;P++)for(var H=K[P],f=0;f<H.length;f++)F.push(X[P]);return F};
_.z.getValues=function(K){_.xv(this);var X=[];if(typeof K==="string")this.containsKey(K)&&(X=X.concat(this.keyMap_.get(IG(this,K))));else{K=Array.from(this.keyMap_.values());for(var F=0;F<K.length;F++)X=X.concat(K[F])}return X};
_.z.set=function(K,X){_.xv(this);this.encodedQuery_=null;K=IG(this,K);this.containsKey(K)&&(this.count_-=this.keyMap_.get(K).length);this.keyMap_.set(K,[X]);this.count_+=1;return this};
_.z.get=function(K,X){if(!K)return X;K=this.getValues(K);return K.length>0?String(K[0]):X};
_.npC=function(K,X,F){K.remove(X);F.length>0&&(K.encodedQuery_=null,K.keyMap_.set(IG(K,X),_.Nq(F)),K.count_+=F.length)};
_.Cu.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var K=[],X=Array.from(this.keyMap_.keys()),F=0;F<X.length;F++){var P=X[F],H=_.l9(P);P=this.getValues(P);for(var f=0;f<P.length;f++){var u=H;P[f]!==""&&(u+="="+_.l9(P[f]));K.push(u)}}return this.encodedQuery_=K.join("&")};
_.Cu.prototype.clone=function(){var K=new _.Cu;K.encodedQuery_=this.encodedQuery_;this.keyMap_&&(K.keyMap_=new Map(this.keyMap_),K.count_=this.count_);return K};
var IG=function(K,X){X=String(X);K.JSC$8043_ignoreCase_&&(X=X.toLowerCase());return X},YOu=function(K,X){X&&!K.JSC$8043_ignoreCase_&&(_.xv(K),K.encodedQuery_=null,K.keyMap_.forEach(function(F,P){var H=P.toLowerCase();
P!=H&&(this.remove(P),_.npC(this,H,F))},K));
K.JSC$8043_ignoreCase_=X};
_.Cu.prototype.extend=function(K){for(var X=0;X<arguments.length;X++)_.D4t(arguments[X],function(F,P){this.add(P,F)},this)};var kv=function(K,X){RG.call(this);for(var F=0,P;P=iZu[F];F++)if(P in K&&!/^https?:\/\//.test(K[P]))throw Error("Va`"+K[P]+"`"+P);this.cfg_=K;this.name=this.cfg_.cn||I4t();this.JSC$8038_domHelper_=X||Yp();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.iv(this);K.lpu=K.lpu||zTO(this.JSC$8038_domHelper_.getWindow().location.href)+"/robots.txt";K.ppu=K.ppu||zTO(K.pu||"")+"/robots.txt";vD[this.name]=this;s0L(window,"unload",cEL)||Za(window,"unload",cEL)};
_.br(kv,RG);var pfC=RegExp("^%*tp$"),BpW=RegExp("^%+tp$");_.z=kv.prototype;_.z.connectionDelay_=null;_.z.peerWindowDeferred_=null;_.z.transport_=null;_.z.state_=1;_.z.isConnected=function(){return this.state_==2};
_.z.peerWindowObject_=null;_.z.iframeElement_=null;_.z.connect=function(K){this.connectCb_=K||_.zM;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?OZO(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.z.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$8038_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var K=this.iframeElement_.contentWindow;K||(K=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=K}if(!this.peerWindowObject_){if(window==window.top)throw Error("Xa");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$8038_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new la(this,this.cfg_.ph,this.JSC$8038_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Wa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.z.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.ik(this.transport_);this.connectCb_=this.transport_=null;_.ik(this.connectionDelay_);this.connectionDelay_=null};
_.z.send=function(K,X){if(this.isConnected()){try{var F=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(H){F=!1}if(F){_.XL(X)&&(X=(0,_.nu)(X));F=this.transport_;var P=F.send;pfC.test(K)&&(K="%"+K);K=K.replace(/[%:|]/g,encodeURIComponent);P.call(F,K,X)}else this.close()}};
_.z.xpcDeliver=function(K,X,F){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.T3)(this.xpcDeliver,this,K,X,F));else if(FPN(this,F)&&!this.isDisposed()&&this.state_!=3)if(K&&K!="tp")this.isConnected()&&(K=K.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),K=BpW.test(K)?K.substring(1):K,K=this.getService(K,X))&&(X=l4O(X,K.objectPayload),X!=null&&K.callback(X));else switch(K=this.transport_,F=Xft(X),X=F[1],F[0]){case "SETUP_ACK":z9L(K,1);K.setupAckReceived_.fired_||K.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":K.protocolVersion_==2&&(z9L(K,2),K.setupAckReceived_.fired_||K.setupAckReceived_.callback(!0));break;case "SETUP":z9L(K,1);sRU(K,1);break;case "SETUP_NTPV2":K.protocolVersion_==2&&(F=K.peerProtocolVersion_,z9L(K,2),sRU(K,2),F!=1&&K.peerEndpointId_==null||K.peerEndpointId_==X||H8L(K),K.peerEndpointId_=X)}};
var ksV=function(K){var X=K.cfg_.role;return typeof X==="number"?X:window.parent==K.peerWindowObject_?1:0},FPN=function(K,X){var F=K.cfg_.ph;
return _.fO(X==null?"":String(X))||_.fO(F==null?"":String(F))||X==K.cfg_.ph};
kv.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete vD[this.name];_.ik(this.peerLoadHandler_);delete this.peerLoadHandler_;kv.superClass_.disposeInternal.call(this)};
var cEL=function(){for(var K in vD)_.ik(vD[K])},vD={};var opU=function(K,X){this.JSC$8052_win=K;this.allowAdsHttpEndpoint=X;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$8052_domHelper=Yp(K);this.scrollManager=new hQu(K);this.accessibilityManager=new Wqu(K);SOC(this)},SOC=function(K){var X=function(){K.allowAdsPopup&&K.allowAdsPopup.style.setProperty("display","none","important");
K.wallElement.style.setProperty("display","","important");dcW(K.accessibilityManager);Uct(K.accessibilityManager,K.wallElement.querySelector(".fc-dialog-container"),!1,!1,K.wallElement.querySelector(".fc-button-whitelist"));var H=K.scrollManager;H.JSC$8010_domHelper.JSC$7337_document_.body.style.overflow=H.originalBodyOverflow};
K.allowAdsPopup=K.JSC$8052_domHelper.JSC$7339_createDom("DIV",{"class":"fc-whitelist-root"});K.allowAdsPopup.style.setProperty("display","none","important");K.JSC$8052_domHelper.appendChild(K.JSC$8052_domHelper.JSC$7337_document_.body,K.allowAdsPopup);var F=K.JSC$8052_domHelper.JSC$7339_createDom("DIV",{"class":"fc-dialog-overlay"});K.JSC$8052_domHelper.appendChild(K.allowAdsPopup,F);var P=K.JSC$8052_domHelper.JSC$7339_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:X});K.JSC$8052_domHelper.appendChild(K.allowAdsPopup,
P);F=K.JSC$8052_domHelper.JSC$7339_createDom("IFRAME");F.className="fc-whitelist-dialog";F.frameBorder="0";F.id="fc-whitelist-iframe";F.tabIndex="0";_.W$(F,K.allowAdsHttpEndpoint);K.JSC$8052_domHelper.appendChild(P,F);P={};P.pu=_.ui(K.allowAdsHttpEndpoint).toString();P.tp=1;P.cn="fc-whitelist-channel";P.ifrid=F.id;P.osh=!0;K.allowAdsCrossPageChannel=new kv(P);K.allowAdsCrossPageChannel.registerService("close",X);K.allowAdsCrossPageChannel.registerService("refresh",function(){K.JSC$8052_win.location.reload()});
K.allowAdsCrossPageChannel.registerService("resize",function(H){if(H){var f=K.allowAdsPopup.querySelector(".fc-whitelist-dialog");H.width&&f.style.setProperty("width",H.width,"important");H.height&&f.style.setProperty("height",H.height,"important")}},!0);
K.allowAdsCrossPageChannel.connect()};
opU.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$8052_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var K1=window,Xk=document,LPN=K1.location,TpE=function(){},rEt=/\[native code\]/,PV=function(K,X,F){return K[X]=K[X]||F},AEV=function(K){K=K.sort();
for(var X=[],F=void 0,P=0;P<K.length;P++){var H=K[P];H!=F&&X.push(H);F=H}return X},HV=function(){var K;
if((K=Object.create)&&rEt.test(K))K=K(null);else{K={};for(var X in K)K[X]=void 0}return K},sh=PV(K1,"gapi",{});var zV={};zV=PV(K1,"___jsl",HV());PV(zV,"I",0);PV(zV,"hel",10);var jRN=function(){var K=LPN.href;if(zV.dpo)var X=zV.h;else{X=zV.h;var F=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),P=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(K=K&&(F.exec(K)||P.exec(K)))try{X=decodeURIComponent(K[2])}catch(H){}}return X},wfC=function(K){var X=PV(zV,"PQ",[]);
zV.PQ=[];var F=X.length;if(F===0)K();else for(var P=0,H=function(){++P===F&&K()},f=0;f<F;f++)X[f](H)},yEC=function(K){return PV(PV(zV,"H",HV()),K,HV())};var f1=function(K){this.JSC$8054_obj_=K};
f1.prototype.value=function(){return this.JSC$8054_obj_};
f1.prototype.getWidth=function(){return this.JSC$8054_obj_.width};
f1.prototype.getHeight=function(){return this.JSC$8054_obj_.height};
f1.prototype.getStyle=function(){return this.JSC$8054_obj_.style};var WPC=function(K){this.JSC$8057_obj_=K||{}};
_.z=WPC.prototype;_.z.value=function(){return this.JSC$8057_obj_};
_.z.setUrl=function(K){this.JSC$8057_obj_.url=K;return this};
_.z.getUrl=function(){return this.JSC$8057_obj_.url};
_.z.getStyle=function(){return this.JSC$8057_obj_.style};
_.z.setId=function(K){this.JSC$8057_obj_.id=K;return this};
_.z.getId=function(){return this.JSC$8057_obj_.id};
_.z.getContext=function(){return this.JSC$8057_obj_.context};
var d4L=function(K){K.JSC$8057_obj_.attributes=K.JSC$8057_obj_.attributes||{};return new f1(K.JSC$8057_obj_.attributes)};var e9W=function(){WPC.apply(this,arguments)};
_.r(e9W,WPC);var R9W=PV(zV,"perf",HV());PV(R9W,"g",HV());var U4u=PV(R9W,"i",HV());PV(R9W,"r",[]);HV();HV();var m4N=function(K,X,F){X&&X.length>0&&(X=h9C(X),F&&F.length>0&&(X+="___"+h9C(F)),X.length>28&&(X=X.substr(0,28)+(X.length-28)),F=X,X=PV(U4u,"_p",HV()),PV(X,F,HV())[K]=(new Date).getTime(),X=R9W.r,typeof X==="function"?X(K,"_p",F):X.push([K,"_p",F]))},h9C=function(K){return K.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var G8L=HV(),lwN=[],DB=function(K){throw Error("Ya`"+K);};
lwN.push(["jsl",function(K){for(var X in K)if(Object.prototype.hasOwnProperty.call(K,X)){var F=K[X];typeof F=="object"?zV[X]=PV(zV,X,[]).concat(F):PV(zV,X,F)}if(X=K.u)K=PV(zV,"us",[]),K.push(X),(X=/^https:(.*)$/.exec(X))&&K.push("http:"+X[1])}]);
var vpO=/^(\/[a-zA-Z0-9_\-]+)+$/,awt=[/\/amp\//,/\/amp$/,/^\/amp$/],tAC=/^[a-zA-Z0-9\-_\.,!]+$/,$4V=/^gapi\.loaded_[0-9]+$/,O8T=/^[a-zA-Z0-9,._-]+$/,b8E=function(K,X,F,P,H){var f=K.split(";"),u=f.shift(),J=G8L[u],Z=null;J?Z=J(f,X,F,P):DB("no hint processor for: "+u);Z||DB("failed to generate load url");X=Z;F=X.match(VAt);(P=X.match(gpZ))&&P.length===1&&EpT.test(X)&&F&&F.length===1||DB("failed sanity: "+K);try{K="?";if(H&&H.length>0){PN(H);var M=H.join(",");Z=Z+"?le="+M;K="&"}if(zV.rol){var n=zV.ol;
n&&n.length&&(Z=""+Z+K+"ol="+n.length)}}catch(c){}return Z},i8U=function(K,X,F,P){K=Cku(K);
$4V.test(F)||DB("invalid_callback");X=NpO(X);P=P&&P.length?NpO(P):null;var H=function(f){return encodeURIComponent(f).replace(/%2C/g,",")};
return[encodeURIComponent(K.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",H(K.version),"/m=",H(X),P?"/exm="+H(P):"","/rt=j/sv=1/d=1/ed=1",K.activeMods?"/am="+H(K.activeMods):"",K.resourceSig?"/rs="+H(K.resourceSig):"",K.zcms?"/t="+H(K.zcms):"","/cb=",H(F)].join("")},Cku=function(K){K.charAt(0)!=="/"&&DB("relative path");
for(var X=K.substring(1).split("/"),F=[];X.length;){K=X.shift();if(!K.length||K.indexOf(".")==0)DB("empty/relative directory");else if(K.indexOf("=")>0){X.unshift(K);break}F.push(K)}K={};for(var P=0,H=X.length;P<H;++P){var f=X[P].split("="),u=decodeURIComponent(f[0]),J=decodeURIComponent(f[1]);f.length==2&&u&&J&&(K[u]=K[u]||J)}X="/"+F.join("/");vpO.test(X)||DB("invalid_prefix");F=0;for(P=awt.length;F<P;++F)awt[F].test(X)&&DB("invalid_prefix");F=x4O(K,"k",!0);P=x4O(K,"am");H=x4O(K,"rs");K=x4O(K,"t");
return{pathPrefix:X,version:F,activeMods:P,resourceSig:H,zcms:K}},NpO=function(K){for(var X=[],F=0,P=K.length;F<P;++F){var H=K[F].replace(/\./g,"_").replace(/-/g,"_");
O8T.test(H)&&X.push(H)}return X.join(",")},x4O=function(K,X,F){K=K[X];
!K&&F&&DB("missing: "+X);if(K){if(tAC.test(K))return K;DB("invalid: "+X)}return null},EpT=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,gpZ=/\/cb=/g,VAt=/\/\//g;
G8L.m=function(K,X,F,P){(K=K[0])||DB("missing_hint");return"https://apis.google.com"+i8U(K,X,F,P)};
var Iwu=decodeURI("%73cript"),k8V=/^[-+_0-9\/A-Za-z]+={0,2}$/,K8Z=function(K,X){for(var F=[],P=0;P<K.length;++P){var H=K[P],f;if(f=H){a:{for(f=0;f<X.length;f++)if(X[f]===H)break a;f=-1}f=f<0}f&&F.push(H)}return F},X_t=function(){var K=zV.nonce;
return K!==void 0?K&&K===String(K)&&K.match(k8V)?K:zV.nonce=null:Xk.querySelector?(K=Xk.querySelector("script[nonce]"))?(K=K.nonce||K.getAttribute("nonce")||"",K&&K===String(K)&&K.match(k8V)?zV.nonce=K:zV.nonce=null):null:null},HJN=function(K){if(Xk.readyState!="loading")F8U(K);
else{var X=X_t(),F="";X!==null&&(F=' nonce="'+X+'"');K="<"+Iwu+' src="'+encodeURI(K)+'"'+F+"></"+Iwu+">";Xk.write(PBt?PBt.createHTML(K):K)}},F8U=function(K){var X=Xk.createElement(Iwu);
X.setAttribute("src",PBt?PBt.createScriptURL(K):K);K=X_t();K!==null&&X.setAttribute("nonce",K);X.async="true";(K=Xk.getElementsByTagName(Iwu)[0])?K.parentNode.insertBefore(X,K):(Xk.head||Xk.body||Xk.documentElement).appendChild(X)},zjQ=function(K,X,F){szt(function(){var P=X===jRN()?PV(sh,"_",HV()):HV();
P=PV(yEC(X),"_",P);K(P)},F)},Mal=function(K,X){var F=X||{};
typeof X=="function"&&(F={},F.callback=X);var P=(X=F)&&X._c;if(P)for(var H=0;H<lwN.length;H++){var f=lwN[H][0],u=lwN[H][1];u&&Object.prototype.hasOwnProperty.call(P,f)&&u(P[f],K,X)}X=[];K?X=K.split(":"):F.features&&(X=F.features);if(!(K=F.h)&&(K=jRN(),!K))throw Error("Za");fLT(X||[],F,K)},fLT=function(K,X,F){K=AEV(K)||[];
var P=X.callback,H=X.config,f=X.timeout,u=X.ontimeout,J=X.onerror,Z=void 0;typeof J=="function"&&(Z=J);var M=null,n=!1;if(f&&!u||!f&&u)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";J=PV(yEC(F),"r",[]).sort();var c=PV(yEC(F),"L",[]).sort(),B=zV.le||[],L=[].concat(J),A=function(E,V){if(n)return 0;K1.clearTimeout(M);c.push.apply(c,d);var x=((sh||{}).config||{}).update;x?x(H):H&&PV(zV,"cu",[]).push(H);if(V){m4N("me0",E,L);try{zjQ(V,F,Z)}finally{m4N("me1",E,L)}}return 1};
f>0&&(M=K1.setTimeout(function(){n=!0;u()},f));
var d=K8Z(K,c);if(d.length){d=K8Z(K,J);var R=PV(zV,"CP",[]),l=R.length;R[l]=function(E){if(!E)return 0;m4N("ml1",d,L);var V=function(N){R[l]=null;A(d,E)&&wfC(function(){P&&P();N()})},x=function(){var N=R[l+1];
N&&N()};
l>0&&R[l-1]?R[l]=function(){V(x)}:V(x)};
if(d.length){var a="loaded_"+zV.I++;sh[a]=function(E){R[l](E);sh[a]=null};
K=b8E(F,d,"gapi."+a,J,B);J.push.apply(J,d);m4N("ml0",d,L);X.sync||K1.___gapisync?HJN(K):F8U(K)}else R[l](TpE)}else A(d)&&P&&P()},DgC;
var uAW=null,qwW=_.FP.trustedTypes;if(qwW&&qwW.createPolicy){try{uAW=qwW.createPolicy("goog#gapi",{createHTML:yCP,createScript:yCP,createScriptURL:yCP})}catch(K){_.FP.console&&_.FP.console.error(K.message)}DgC=uAW}else DgC=uAW;var PBt=DgC,szt=function(K,X){if(zV.hee&&zV.hel>0)try{return K()}catch(F){X&&X(F),zV.hel--,Mal("debug_error",function(){try{window.___jsl.hefn(F)}catch(P){throw F;}})}else try{return K()}catch(F){throw X&&X(F),F;
}},JHL=sh.load;
JHL&&PV(zV,"ol",[]).push(JHL);sh.load=function(K,X){return szt(function(){return Mal(K,X)})};var Xdd;var ZJV=function(K,X){this.serviceId_=K;this.moduleId_=X||null};
ZJV.prototype.toString=function(){return this.serviceId_};
ZJV.prototype.getModuleId=function(){return this.moduleId_};var J_d=new ZJV("MpJwZc","MpJwZc");var Yjy=new _.PD("a"),ZLw=function(K,X,F){_.HD.call(this,K,X);this.node=X;this.kind=F};
_.r(ZLw,_.HD);var YwV=function(){this.JSC$8070_keys_={};this.urlPrefix_="";this.JSC$8070_queryData_={}};
YwV.prototype.toString=function(){var K=this.urlPrefix_+QzQ(this),X=_.Dr(this.JSC$8070_queryData_),F="";X!=""&&(F="?"+X);return K+F};
var MML=function(K){K=uR(K,"md");return!!K&&K!=="0"},QzQ=function(K){var X=[],F=(0,_.T3)(function(P){this.JSC$8070_keys_[P]!==void 0&&X.push(P+"="+this.JSC$8070_keys_[P])},K);
MML(K)?(F("md"),F("k"),F("ck"),F("am"),F("rs"),F("gssmodulesetproto"),F("slk"),F("dti")):(F("sdch"),F("k"),F("ck"),F("am"),F("rt"),"d"in K.JSC$8070_keys_||qE(K,"d","0"),F("d"),F("exm"),F("excm"),(K.JSC$8070_keys_.excm||K.JSC$8070_keys_.exm)&&X.push("ed=1"),F("im"),F("dg"),F("sm"),uR(K,"br")!="1"&&uR(K,"br")!="0"||F("br"),F("br-d"),uR(K,"rb")=="1"&&F("rb"),uR(K,"zs")!=="0"&&F("zs"),nLt(K)!==""&&F("wt"),F("gssmodulesetproto"),F("ujg"),F("sp"),F("rs"),F("cb"),F("ee"),F("slk"),F("dti"),F("m"));return X.join("/")},
uR=function(K,X){return K.JSC$8070_keys_[X]?K.JSC$8070_keys_[X]:null},qE=function(K,X,F){F?K.JSC$8070_keys_[X]=F:delete K.JSC$8070_keys_[X]},cHO=function(K,X){K.urlPrefix_=X},p_L=function(K,X){X&&X.length>0?(X.sort(),qE(K,"exm",X.join(","))):qE(K,"exm",null)},B0O=function(K,X){X&&X.length>0?(X.sort(),qE(K,"excm",X.join(","))):qE(K,"excm",null)},SwL=function(K){return(K=uR(K,"m"))?K.split(","):[]},nLt=function(K){switch(uR(K,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},oLC=function(K,X){var F=Object.keys(X).filter(function(P){return!!Object.keys(X[P]).length}).map(function(P){var H=Object.keys(X[P]);
H.length>1&&H.sort();return P+":"+H.join(",")});
F.sort();qE(K,"ee",F.join(";"))},C9T=function(K){var X=uR(K,"ee");
if(!X)return{};K={};X=_.D(X.split(";"));for(var F=X.next();!F.done;F=X.next()){var P=_.D(F.value.split(":"));F=P.next().value;P=P.next().value;K[F]={};P=_.D(P.split(","));for(var H=P.next();!H.done;H=P.next())K[F][H.value]=!0}return K},L8C=function(K){delete K.JSC$8070_keys_.m;
delete K.JSC$8070_keys_.exm;delete K.JSC$8070_keys_.ed};
YwV.prototype.clone=function(){var K=new YwV;K.JSC$8070_keys_=Object.assign({},this.JSC$8070_keys_);K.urlPrefix_=this.urlPrefix_;K.JSC$8070_queryData_=Object.assign({},this.JSC$8070_queryData_);return K};
var N24=function(K,X){X=X===void 0?!0:X;var F=T0U(K),P=new YwV,H=_.V8(F)[5];_.T8.forEach(rHt,function(u){var J=H.match("/"+u+"=([^/]+)");J&&qE(P,u,J[1])});
var f="";f=K.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";cHO(P,K.substr(0,K.indexOf(f)+f.length));if(!X)return P;(K=_.V8(F)[6]||null)&&DVV(K,function(u,J){P.JSC$8070_queryData_[u]=J});
return P},gUw=function(K){K=_.zy(T0U(K));
return K===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(K)?/\/k=/.test(K):!1},T0U=function(K){return K.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?K.substr(65):K},rHt={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"},AHt=RegExp("^loaded_(g|h)?[_\\d]+$");_.Jm=function(K){this.JSC$8082_id_=K;this.opts={}};
_.Jm.prototype.JSC$8084_setLabel=function(K){this.label_=K||void 0;return this};
_.Jm.prototype.addUploadMetadata=function(K,X){var F=this.opts.data||{};F[K]=X;this.opts.data=F;return this};
var jzN=function(K){var X=_.T8.filter(K.opts,function(F){return F!==null});
X=_.T8.isEmpty(X)?null:X;K=[K.JSC$8082_id_,K.label_,X];X=pyO(K);return K=K.slice(0,X+1)};
_.Jm.prototype.toString=function(){var K=jzN(this);return"("+_.AE(K,function(X){return JSON.stringify(X)}).join(",")+")"};
_.Jm.prototype.getId=function(){return this.JSC$8082_id_};
_.Jm.prototype.getOptions=function(){return _.T8.clone(this.opts)};var ZB=function(){_.Jm.call(this,"image-search")};
_.r(ZB,_.Jm);ZB.prototype.setSize=function(K){this.opts.imgsz=K;return this};
ZB.prototype.JSC$8084_setLabel=function(K){_.Jm.prototype.JSC$8084_setLabel.call(this,K);return this};
ZB.prototype.addUploadMetadata=function(K,X){_.Jm.prototype.addUploadMetadata.call(this,K,X);return this};var Y0=function(){_.Jm.call(this,"maps")};
_.r(Y0,_.Jm);Y0.prototype.setZoom=function(K){this.opts.zoom=K;return this};
Y0.prototype.JSC$8084_setLabel=function(K){_.Jm.prototype.JSC$8084_setLabel.call(this,K);return this};
Y0.prototype.addUploadMetadata=function(K,X){_.Jm.prototype.addUploadMetadata.call(this,K,X);return this};_.Q2=function(){_.Jm.call(this,"photos")};
_.r(_.Q2,_.Jm);_.Q2.prototype.JSC$8084_setLabel=function(K){_.Jm.prototype.JSC$8084_setLabel.call(this,K);return this};
_.Q2.prototype.addUploadMetadata=function(K,X){_.Jm.prototype.addUploadMetadata.call(this,K,X);return this};var ME=function(){_.Jm.call(this,"url")};
_.r(ME,_.Jm);var w_T=function(){var K=new ME;K.opts.type="video";K.opts.site="youtube.com";return K};
ME.prototype.JSC$8084_setLabel=function(K){_.Jm.prototype.JSC$8084_setLabel.call(this,K);return this};
ME.prototype.addUploadMetadata=function(K,X){_.Jm.prototype.addUploadMetadata.call(this,K,X);return this};var n1=function(){_.Jm.call(this,"video-search")};
_.r(n1,_.Jm);var yHL=function(){var K=new n1;K.opts.site="youtube.com";return K};
n1.prototype.JSC$8084_setLabel=function(K){_.Jm.prototype.JSC$8084_setLabel.call(this,K);return this};
n1.prototype.addUploadMetadata=function(K,X){_.Jm.prototype.addUploadMetadata.call(this,K,X);return this};var W8L=function(){_.Jm.call(this,"web")};
_.r(W8L,_.Jm);W8L.prototype.JSC$8084_setLabel=function(K){_.Jm.prototype.JSC$8084_setLabel.call(this,K);return this};
W8L.prototype.addUploadMetadata=function(K,X){_.Jm.prototype.addUploadMetadata.call(this,K,X);return this};var cV=function(){this.items_=[];this.opts={}},dgZ=function(K){switch(K){case "image-search":return new ZB;
case "maps":return new Y0;case "photos":return new _.Q2;case "url":return new ME;case "video-search":return new n1;case "web":return new W8L}return new _.Jm(K)};
cV.prototype.addView=function(K){this.items_.push(typeof K==="string"?dgZ(K):K);return this};
var ejZ=function(K){return"("+_.AE(K.items_,function(X){return X.toString()}).join(",")+")"};
cV.prototype.toString=function(){return ejZ(this)};
cV.prototype.getViews=function(K,X){X=X===void 0?[]:X;for(var F=this.items_,P=0;P<F.length;P++){var H=F[P];H instanceof cV?H.getViews(K,X):H.getId()==K&&X.push(H)}return X};
cV.prototype.getOptions=function(){return _.T8.clone(this.opts)};var Uw=function(K){this.basePickerUrl_=K||"https://docs.google.com/picker";this.nav_=new cV};
Uw.prototype.nav_=null;Uw.prototype.addView=function(K){this.nav_.addView(K);return this};
Uw.prototype.getBaseUrl=function(){return this.basePickerUrl_};
Uw.prototype.getViews=function(K){return this.nav_.getViews(K)};
_.RjU=function(K,X){K.callback_=X;return K};var UgC=new Map;UgC.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");UgC.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");UgC.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var hjW=new Set;hjW.add("application/vnd.google-apps.kix");hjW.add("application/vnd.google-apps.ritz");hjW.add("application/vnd.google-apps.punch");var bJO=function(K,X,F){var P=F&&_.BL(F,1);F=mgL(F);var H=K[0].getId();switch(_.S3(H,2)){case 13:return G3C(K,X,P,F);case 3:return lLL(K,X,P,F);case 10:return vLt(K,X,P,F);case 27:return vLt(K,X,P,F);case 12:return aLt(K,X);case 2:return tML(K,X,P,F);case 5:return $gC(K,X,P,F);case 9:return OJC(K,X,P,F);case 6:return VMu(K,X,P,F);case 25:return gLN(K,X,P,F);case 1:return _.zQ(K[0],TLZ,26)?ELL(K,X,P,F):vLt(K,X,P,F);default:return{}}},VMu=function(K,X,F,P){K=K.map(function(H){return{id:H.getId().getId(),
serviceId:"youtube",name:H.getName(),description:_.BL(H,3),type:p1(H),lastEditedUtc:_.LtZ(_.xS(H,_.y$,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:H.getUrl(),embedUrl:_.BL(H,13),thumbnails:BV(aY(H))}});
return{action:X,docs:K,viewToken:P,view:F||"youtube",v2Translated:!0}},tML=function(K,X,F,P){var H=K.map(function(f){var u=f.getId().getId(),J=_.BL(f,7),Z=f.getName(),M=p1(f),n=_.LtZ(_.xS(f,_.y$,12)).getTime(),c=f.getUrl(),B=Number($Gl(f)),L=_.BL(f,3),A=_.BL(f,11),d=BV(aY(f));
var R=_.xS(f,tI,21);R=_.nM(R,1);var l=_.xS(f,tI,21);l=_.BL(l,10);var a=_.BL(f,13);var E=_.xS(f,tI,21);E=_.nM(E,9);var V=_.xS(f,tI,21);V=_.BL(V,11);u={id:u,serviceId:"docs",mimeType:J,name:Z,type:M,lastEditedUtc:n,url:c,sizeBytes:B,description:L,iconUrl:A,thumbnails:d,isShared:R,downloadUrl:l,embedUrl:a,copyable:E,resourceKey:V};J=_.xS(f,tI,21);_.nM(J,12)&&(u.uploadState="success",u.isNew=!0);J=_.xS(f,tI,21);_.zQ(J,GM,3)&&(f=_.xS(f,tI,21),f=_.xS(f,GM,3),_.zQ(f,hI,2)&&(J=eM(f.getDuration().getSeconds()),
Z=f.getDuration(),Z=_.XA(Z,2),u.duration=J+Z/1E9),u.aspectRatio=f.getAspectRatio());return u});
return{action:X,docs:H,viewToken:P,view:F||"all",extraUserInputs:CBt(K),v2Translated:!0}},$gC=function(K,X,F,P){K=K.map(function(H){var f=_.xS(H,RTL,15);
f=_.xS(f,mD,1);J_(H,10,mD,f);return{id:H.getId().getId(),serviceId:"web",mimeType:_.BL(H,7),name:H.getName(),type:p1(H),url:H.getUrl(),description:_.BL(H,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:BV(aY(H))}});
return{action:X,docs:K,viewToken:P,view:F||"image-search",v2Translated:!0}},OJC=function(K,X,F,P){K=K.map(function(H){return{serviceId:"url",
name:aY(H)[0].getUrl().split("/").pop(),type:p1(H),mimeType:_.BL(H,7),url:H.getUrl(),description:_.BL(H,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:BV(aY(H))}});
return{action:X,docs:K,viewToken:P,view:F||"url",v2Translated:!0}},ELL=function(K,X,F,P){K=K.map(function(H){return{id:H.getId().getId(),
serviceId:"picasa",name:H.getName(),type:p1(H),description:_.BL(H,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:BV(aY(H))}});
return{action:X,docs:K,viewToken:P,view:F||"webcam",v2Translated:!0}},vLt=function(K,X,F,P){return{action:X,
docs:K.map(N0t),viewToken:P,view:iJC(F||"upload",K),extraUserInputs:CBt(K),v2Translated:!0}},iJC=function(K,X){return X.some(function(F){var P;
return((P=_.xS(F,lt,30))==null?void 0:_.S3(P,3))===9})?K+"/gmailphotos":K},lLL=function(K,X,F,P){var H=K.map(function(f){var u={id:f.getId().getId(),
serviceId:"picasa",mimeType:_.BL(f,7),name:f.getName(),type:p1(f),lastEditedUtc:_.LtZ(_.xS(f,_.y$,12)).getTime(),url:f.getUrl(),sizeBytes:Number($Gl(f)),description:_.BL(f,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:BV(aY(f)),mediaKey:f.getId().getId(),parentId:_.BL(f,4)},J,Z=(J=_.xS(f,jCL,18))==null?void 0:_.xS(J,AtT,3);Z&&(u.latitude=pM(Z,1),u.longitude=pM(Z,2));var M;f=(M=_.xS(f,jCL,18))==null?void 0:cL(M,6);M=f!=null?eM(f):void 0;M&&(u.version=
M);return u});
return{action:X,docs:H,viewToken:P,view:F||"photos",extraUserInputs:CBt(K),v2Translated:!0}},G3C=function(K,X,F,P){K=K.map(function(H){return{id:H.getId().getId(),
serviceId:"et",name:aY(H)[0].getUrl().split("/").pop(),description:_.BL(H,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:BV(aY(H),"etjpg")}});
return{action:X,docs:K,viewToken:P,view:F||"et",v2Translated:!0}},gLN=function(K,X,F,P){K=K.map(function(H){var f=H.getId().getId(),u=P["2"];
return{id:f,serviceId:u.type!=="gmail_themes"&&u.parent==="6226252643674576769"?"picasa":"static_themes",name:H.getName(),mimeType:_.BL(H,7),type:p1(H),description:_.BL(H,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:H.getUrl(),embedUrl:H.getUrl(),thumbnails:BV(aY(H))}});
return{action:X,docs:K,viewToken:P,view:F||"photos",v2Translated:!0}},aLt=function(K,X){K=K.map(function(F){var P=_.xS(F,rtU,27);
P=_.BJ(P,1,_.vF,_.KJ())[0];return{id:F.getId().getId(),serviceId:"contacts",mimeType:_.BL(F,7),name:F.getName(),description:_.BL(F,3),url:"mailto:"+P,thumbnail:[{url:_.BL(F,11)}],email:P}});
return{action:X,docs:K,view:"contacts",v2Translated:!0}},mgL=function(K){if(!K)return{};
var X=_.BL(K,3);X=X&&JSON.parse(X)||{};return{0:_.BL(K,1),1:_.BL(K,2),2:X}},BV=function(K,X){X=X===void 0?"":X;
if(!K.length)return null;X=="etjpg"&&(K=K.filter(function(F){return F.getUrl().includes("w1200-h300")}));
return K.map(function(F){return{url:F.getUrl(),height:F.getHeight(),width:F.getWidth(),type:X}})},CBt=function(K){return{isAttachment:K.some(function(X){return _.nM(X,31)})}},N0t=function(K){var X,F={id:(X=K.getId())==null?void 0:X.getId(),
serviceId:xgN(K),mimeType:_.BL(K,7),name:K.getName(),type:p1(K),sizeBytes:Number($Gl(K)),description:_.BL(K,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:BV(aY(K)),isNew:!0};if(X=_.xS(K,lt,30)){F.dataUrl=_.BL(X,1)||null;a:{var P=_.xS(K,lt,30);switch(_.S3(P,3)){case 9:P=_.TQ(P,dVt,2,vz);P={remoteRefs:P&&_.BL(P,1)};break a;case 10:case 15:P=_.TQ(P,WtL,4,vz);var H=aY(K);P={photo_id:P&&_.BL(P,1),media_key:K.getId().getId(),media_type:_.S3(K,6)===1?1:2,image_url:H&&
H[0].getUrl(),width:H&&String(H[0].getWidth()),height:H&&String(H[0].getHeight())};break a}P=null}F.uploadMetadata=P;F.uploadId=_.BL(X,9)||null;F.uploadState=ILV(X)||null}(P=X&&_.TQ(X,WtL,4,vz))&&(F.id=_.BL(P,1));(P=X&&_.TQ(X,eTL,5,vz))&&(F.contentId=_.BL(P,1));(P=X&&_.TQ(X,wNC,7,vz))&&(F.contentId=_.BL(P,1));(P=X&&_.TQ(X,ytL,6,vz))&&(F.contentId=_.BL(P,1));(X==null?void 0:_.S3(X,3))===1&&(F.mediaKey=K.getId().getId());return F},xgN=function(K){var X;
switch(((X=_.xS(K,lt,30))==null?void 0:_.S3(X,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},p1=function(K){switch(_.S3(K,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 _.BL(K,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},ILV=function(K){switch(K==null?void 0:_.S3(K,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 FhV,k3L,KhC,XMt;_.Sa=function(K,X){var F=X||{};X=F.document||document;var P=_.ui(K).toString(),H=(new JI(X)).createElement("SCRIPT"),f={script_:H,timeout_:void 0},u=new UQ(k3L,f),J=null,Z=F.timeout!=null?F.timeout:5E3;Z>0&&(J=window.setTimeout(function(){KhC(H,!0);u.errback(new XMt(1,"Timeout reached for loading script "+P))},Z),f.timeout_=J);
H.onload=H.onreadystatechange=function(){H.readyState&&H.readyState!="loaded"&&H.readyState!="complete"||(KhC(H,F.cleanupWhenDone||!1,J),u.callback(null))};
H.onerror=function(){KhC(H,!0,J);u.errback(new XMt(0,"Error while loading script "+P))};
f=F.attributes||{};_.T8.extend(f,{type:"text/javascript",charset:"UTF-8"});MPZ(H,f);_.li(H,K);FhV(X).appendChild(H);return u};
FhV=function(K){var X=pJ("HEAD",K);return X&&X.length!==0?X[0]:K.documentElement};
k3L=function(){if(this&&this.script_){var K=this.script_;K&&K.tagName=="SCRIPT"&&KhC(K,!0,this.timeout_)}};
KhC=function(K,X,F){F!=null&&_.FP.clearTimeout(F);K.onload=function(){};
K.onerror=function(){};
K.onreadystatechange=function(){};
X&&window.setTimeout(function(){_.c_(K)},0)};
XMt=function(K,X){var F="Jsloader error (code #"+K+")";X&&(F+=": "+X);_.KO.call(this,F);this.code=K};
_.br(XMt,_.KO);var P_t=_.lr(["https://apis.google.com/js/api.js"]),HvQ=_.Xs(P_t),DsO=function(K,X){var F=!1,P=sDt(K,X).then(function(f){F=!0;return f}),H=_.URN(5E3).then(function(){return F?sDt(K,X):z_W(X).then(function(f){return fKV(f,K)})});
return o8u([P,H])},sDt=function(K,X){return unU(X).then(function(F){return fKV(F,K)})},fKV=function(K,X){var F=_.Hy(X,"gapi.")?X.slice(5):X;
return K[F]?_.F0(K[F]):new _.fL(function(P,H){var f=Qt(function(){H(Error("bb"))},3E4);
K.load(X,{callback:function(){_.FP.clearTimeout(f);P(K[F])},
onerror:function(u){_.FP.clearTimeout(f);H(u)}})})},unU=function(K){return K.gapi&&K.gapi.load?_.F0(K.gapi):z_W(K)},z_W=function(K){return _.Sa(HvQ,{document:K.document}).then(function(){return K.gapi})},qgZ=function(){};
qgZ.prototype.load=function(K,X){X=X===void 0?window:X;var F=Date.now();return DsO(K,X).then(function(P){var H=Date.now();return{library:P,loadStartMs:F,loadEndMs:H}},function(P){throw P instanceof Error?P:Error(String(P));
})};var QUy=function(){_.LJ.call(this);this.gapiLoader_=new qgZ;this.origin_=null;this.gapiPickerIframeResolver_=_.Ue();this.gapiIframesResolver_=_.Ue();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.r(QUy,_.LJ);var JZL=function(K,X){var F=_.mz("gapi.iframes",X);return F?(K=Date.now(),_.F0({library:F,loadStartMs:K,loadEndMs:K})):K.gapiLoader_.load("gapi.iframes",X)},ZvL=function(K,X,F,P,H,f){var u=!1;
u=u===void 0?!1:u;JZL(K,wp(X.ownerDocument)).then(function(J){var Z=J.library;K.gapiIframesResolver_.resolve(Z);J=K.gapiPickerIframeResolver_;var M=J.resolve,n=u;n=n===void 0?!1:n;var c={};c["host-message-handler"]=F;K.hostMessageHandlerInternal_=c;var B=_.az(P);B=_.az(B);B=_.OQ(_.$v(_.tr(new _.aJ,B.scheme_),B.JSC$8042_domain_),B.JSC$8042_port_).toString();K.origin_=B;B=(new e9W).setUrl(P);B.JSC$8057_obj_.where=X;B.JSC$8057_obj_.allowPost=n;B.JSC$8057_obj_.messageHandlers=c;n=_.mz("makeWhiteListIframesFilter",
Z)([K.origin_]);B.JSC$8057_obj_.messageHandlersFilter=n;H!=null&&B.setId(H);f!=null&&(B.JSC$8057_obj_.rpctoken=f);n=d4L(B);n.JSC$8054_obj_.style={display:"block","min-width":"100%",width:"1px"};n.JSC$8054_obj_.height="100%";d4L(B).value().allow="camera 'src' "+K.origin_;Z=Z.getContext().openChild(B.value());M.call(J,Z)},function(J){K.gapiIframesResolver_.reject(J);
K.gapiPickerIframeResolver_.reject(J)});
return K.gapiPickerIframeResolver_.promise},YgO=function(K,X){return _.ZG([K.gapiIframesResolver_.promise,
K.gapiPickerIframeResolver_.promise]).then(function(F){var P=_.D(F);F=P.next().value;return(P=P.next().value)?P.send("picker-message-handler",X,void 0,_.mz("makeWhiteListIframesFilter",F)([K.origin_])):_.pB(Error("cb"))})};
QUy.prototype.disposeInternal=function(){QDt(this);_.LJ.prototype.disposeInternal.call(this)};
var QDt=function(K){K.gapiPickerIframeResolver_.promise.then(function(X){X&&(X.unregister("host-message-handler"),delete K.hostMessageHandlerInternal_["host-message-handler"])})};var MjN=function(){this.nextId=0};var cZt=function(K,X){switch(K.action){case "select-contacts":K=nMZ(K.contacts);break;case "visibility":K=K.visible;var F=new OE;K=_.Ab(F,1,7).setVisible(K);F={};F["iframe-command"]=K.serialize();K=F;break;default:K=null}return K?YgO(X,K):_.F0()},nMZ=function(K){if(!K||K.length==0)return null;
var X=new OE;_.Ab(X,1,11);var F=new MjN;K.forEach(function(P){if(P.email){var H=new ZR;H=_.$R(H,2,P.name?P.name:P.email);var f=new rtU;P=_.fdn(f,1,_.GJ,P.email,_.vF);P=_.Fw(H,27,P);H=P.setId;f=(new UE).setId(":"+(F.nextId++).toString(36));f=_.Ab(f,2,12);P=H.call(P,f)}else P=null;P&&J_(X,7,ZR,P)});
K={};K["iframe-command"]=X.serialize();return K};_.pMu=function(){if(Fxl){var K=/Windows NT ([0-9.]+)/;return(K=K.exec(_.nO()))?K[1]:"0"}return _.Xll?(K=/1[0|1][_.][0-9_.]+/,(K=K.exec(_.nO()))?K[0].replace(/_/g,"."):"10"):F9P?(K=/Android\s+([^\);]+)(\)|;)/,(K=K.exec(_.nO()))?K[1]:""):Hnw||smT||zCl?(K=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(K=K.exec(_.nO()))?K[1].replace(/_/g,"."):""):""}();var o5;o5=function(K){return(K=K.exec(_.nO()))?K[1]:""};
_.BsW=function(){if(_.KM)return o5(/Firefox\/([0-9.]+)/);if(_.ir||OU||IIn)return Y5y;if(_.XX){if(_.hM()||_.Q3l()){var K=o5(/CriOS\/([0-9.]+)/);if(K)return K}return o5(/Chrome\/([0-9.]+)/)}if(_.dS&&!_.hM())return o5(/Version\/([0-9.]+)/);if(AD3||jJy){if(K=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.nO()))return K[1]+"."+K[2]}else if(plq)return(K=o5(/Android\s+([0-9.]+)/))?K:o5(/Version\/([0-9.]+)/);return""}();var SgC=function(){};
_.gH(SgC);SgC.prototype.nextId_=0;_.L1=function(K){return":"+(K.nextId_++).toString(36)};var TV=function(K){_.ua.call(this);this.JSC$8152_dom_=K||Yp();this.JSC$8152_id_=null;this.inDocument_=!1;this.JSC$8152_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.br(TV,_.ua);TV.prototype.idGenerator_=SgC.getInstance();TV.prototype.getId=function(){return this.JSC$8152_id_||(this.JSC$8152_id_=_.L1(this.idGenerator_))};
TV.prototype.setId=function(K){this.parent_&&this.parent_.childIndex_&&(_.T8.remove(this.parent_.childIndex_,this.JSC$8152_id_),_.T8.add(this.parent_.childIndex_,K,this));this.JSC$8152_id_=K};
TV.prototype.getElement=function(){return this.JSC$8152_element_};
var rR=function(K){K.googUiComponentHandler_||(K.googUiComponentHandler_=new _.iv(K));return K.googUiComponentHandler_},oML=function(K,X){if(K==X)throw Error("db");
var F;if(F=X&&K.parent_&&K.JSC$8152_id_){F=K.parent_;var P=K.JSC$8152_id_;F=F.childIndex_&&P?_.T8.get(F.childIndex_,P)||null:null}if(F&&K.parent_!=X)throw Error("db");K.parent_=X;TV.superClass_.setParentEventTarget.call(K,X)};
TV.prototype.setParentEventTarget=function(K){if(this.parent_&&this.parent_!=K)throw Error("eb");TV.superClass_.setParentEventTarget.call(this,K)};
TV.prototype.JSC$8154_createDom=function(){this.JSC$8152_element_=this.JSC$8152_dom_.createElement("DIV")};
TV.prototype.render=function(K){LhW(this,K)};
var LhW=function(K,X,F){if(K.inDocument_)throw Error("fb");K.JSC$8152_element_||K.JSC$8154_createDom();X?X.insertBefore(K.JSC$8152_element_,F||null):K.JSC$8152_dom_.JSC$7337_document_.body.appendChild(K.JSC$8152_element_);K.parent_&&!K.parent_.inDocument_||K.enterDocument()};
_.z=TV.prototype;_.z.decorate=function(K){if(this.inDocument_)throw Error("fb");if(K&&this.canDecorate(K)){this.wasDecorated_=!0;var X=_.yf(K);this.JSC$8152_dom_&&this.JSC$8152_dom_.JSC$7337_document_==X||(this.JSC$8152_dom_=Yp(K));this.decorateInternal(K);this.enterDocument()}else throw Error("gb");};
_.z.canDecorate=function(){return!0};
_.z.decorateInternal=function(K){this.JSC$8152_element_=K};
_.z.enterDocument=function(){this.inDocument_=!0;TsW(this,function(K){!K.inDocument_&&K.getElement()&&K.enterDocument()})};
_.z.exitDocument=function(){TsW(this,function(K){K.inDocument_&&K.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.z.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);TsW(this,function(K){K.dispose()});
!this.wasDecorated_&&this.JSC$8152_element_&&_.c_(this.JSC$8152_element_);this.parent_=this.model_=this.JSC$8152_element_=this.childIndex_=this.children_=null;TV.superClass_.disposeInternal.call(this)};
_.z.getModel=function(){return this.model_};
_.z.addChild=function(K,X){var F=this.children_?this.children_.length:0;if(K.inDocument_&&(X||!this.inDocument_))throw Error("fb");if(F<0||F>(this.children_?this.children_.length:0))throw Error("hb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);K.parent_==this?(_.T8.set(this.childIndex_,K.getId(),K),_.CO(this.children_,K)):_.T8.add(this.childIndex_,K.getId(),K);oML(K,this);_.Sly(this.children_,F,0,K);K.inDocument_&&this.inDocument_&&K.parent_==this?(X=this.getContentElement(),
(X.childNodes[F]||null)!=K.getElement()&&(K.getElement().parentElement==X&&X.removeChild(K.getElement()),F=X.childNodes[F]||null,X.insertBefore(K.getElement(),F))):X?(this.JSC$8152_element_||this.JSC$8154_createDom(),F=this.children_?this.children_[F+1]||null:null,LhW(K,this.getContentElement(),F?F.JSC$8152_element_:null)):this.inDocument_&&!K.inDocument_&&K.JSC$8152_element_&&K.JSC$8152_element_.parentNode&&K.JSC$8152_element_.parentNode.nodeType==1&&K.enterDocument()};
_.z.getContentElement=function(){return this.JSC$8152_element_};
var TsW=function(K,X){K.children_&&K.children_.forEach(X,void 0)};
TV.prototype.removeChild=function(K,X){if(K){var F=typeof K==="string"?K:K.getId();K=this.childIndex_&&F?_.T8.get(this.childIndex_,F)||null:null;F&&K&&(_.T8.remove(this.childIndex_,F),_.CO(this.children_,K),X&&(K.exitDocument(),K.JSC$8152_element_&&_.c_(K.JSC$8152_element_)),oML(K,null))}if(!K)throw Error("ib");return K};_.br(sU4,H93);_.br(zDy,H93);var rZL;var AZN=function(K,X){X?K.setAttribute("role",X):K.removeAttribute("role")},Am=function(K,X,F){Array.isArray(F)&&(F=F.join(" "));
var P="aria-"+X;F===""||F==void 0?(rZL||(F={},rZL=(F.atomic=!1,F.autocomplete="none",F.dropeffect="none",F.haspopup=!1,F.live="off",F.multiline=!1,F.multiselectable=!1,F.orientation="vertical",F.readonly=!1,F.relevant="additions text",F.required=!1,F.sort="none",F.busy=!1,F.disabled=!1,F.hidden=!1,F.invalid="false",F)),F=rZL,X in F?K.setAttribute(P,F[X]):K.removeAttribute(P)):K.setAttribute(P,F)};var jDC;_.ja=function(K,X,F){_.ua.call(this);this.target=K;this.handle=X||K;this.limits=F||new Lb(NaN,NaN,NaN,NaN);this.JSC$8157_document_=_.yf(K);this.JSC$8157_eventHandler_=new _.iv(this);_.JH(this,this.JSC$8157_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;_.nB(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=jDC};
_.br(_.ja,_.ua);jDC=_.FP.document&&_.FP.document.documentElement&&!!_.FP.document.documentElement.setCapture&&!!_.FP.document.releaseCapture;_.wMt=function(K,X){K.hysteresisDistanceSquared_=Math.pow(X,2)};
_.z=_.ja.prototype;_.z.setEnabled=function(K){this.enabled_=K};
_.z.disposeInternal=function(){_.ja.superClass_.disposeInternal.call(this);_.DG(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8157_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8157_document_.releaseCapture();this.handle=this.target=null};
_.z.startDrag=function(K){var X=K.type=="mousedown";if(!this.enabled_||this.dragging_||X&&(K.event_.button!=0||_.Xll&&K.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new wR("start",this,K.clientX,K.clientY,K)))this.dragging_=!0,X&&K.preventDefault();else return;else X&&K.preventDefault();X=this.JSC$8157_document_;var F=X.documentElement,P=!this.useSetCapture_;this.JSC$8157_eventHandler_.listen(X,["touchmove","mousemove"],this.handleMove_,
{capture:P,passive:!1});this.JSC$8157_eventHandler_.listen(X,["touchend","mouseup"],this.endDrag,P);this.useSetCapture_?(F.setCapture(!1),this.JSC$8157_eventHandler_.listen(F,"losecapture",this.endDrag)):this.JSC$8157_eventHandler_.listen(wp(X),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8157_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,P);this.clientX=this.startX=K.clientX;this.clientY=this.startY=K.clientY;this.screenX=K.screenX;this.screenY=K.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=Zw(Yp(this.JSC$8157_document_))}};
_.z.endDrag=function(K,X){this.JSC$8157_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8157_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new wR("end",this,K.clientX,K.clientY,K,yZL(this,this.deltaX),WhN(this,this.deltaY),X||K.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.z.handleMove_=function(K){if(this.enabled_){var X=K.clientX-this.clientX,F=K.clientY-this.clientY;this.clientX=K.clientX;this.clientY=K.clientY;this.screenX=K.screenX;this.screenY=K.screenY;if(!this.dragging_){var P=this.startX-this.clientX,H=this.startY-this.clientY;if(P*P+H*H>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new wR("start",this,K.clientX,K.clientY,K)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(K);return}}F=dsO(this,X,F);X=F.x;F=F.y;this.dragging_&&this.dispatchEvent(new wR("beforedrag",
this,K.clientX,K.clientY,K,X,F))&&(e_Z(this,K,X,F),K.preventDefault())}};
var dsO=function(K,X,F){var P=Zw(Yp(K.JSC$8157_document_));X+=P.x-K.pageScroll.x;F+=P.y-K.pageScroll.y;K.pageScroll=P;K.deltaX+=X;K.deltaY+=F;return new _.jA(yZL(K,K.deltaX),WhN(K,K.deltaY))};
_.ja.prototype.onScroll_=function(K){var X=dsO(this,0,0);K.clientX=this.clientX;K.clientY=this.clientY;e_Z(this,K,X.x,X.y)};
var e_Z=function(K,X,F,P){K.target.style.left=F+"px";K.target.style.top=P+"px";K.dispatchEvent(new wR("drag",K,X.clientX,X.clientY,X,F,P))},yZL=function(K,X){var F=K.limits;
K=isNaN(F.left)?null:F.left;F=isNaN(F.width)?0:F.width;return Math.min(K!=null?K+F:Infinity,Math.max(K!=null?K:-Infinity,X))},WhN=function(K,X){var F=K.limits;
K=isNaN(F.top)?null:F.top;F=isNaN(F.height)?0:F.height;return Math.min(K!=null?K+F:Infinity,Math.max(K!=null?K:-Infinity,X))};
_.ja.prototype.isDragging=function(){return this.dragging_};
var wR=function(K,X,F,P,H,f,u){_.HD.call(this,K);this.clientX=F;this.clientY=P;this.browserEvent=H;this.left=f!==void 0?f:X.deltaX;this.top=u!==void 0?u:X.deltaY};
_.br(wR,_.HD);var y2=function(K){this.JSC$8164_map_=new Map;var X=arguments.length;if(X>1){if(X%2)throw Error("oa");for(var F=0;F<X;F+=2)this.set(arguments[F],arguments[F+1])}else K&&this.addAll(K)};
_.z=y2.prototype;_.z.getCount=function(){return this.JSC$8164_map_.size};
_.z.getValues=function(){return Array.from(this.JSC$8164_map_.values())};
_.z.getKeys=function(){return Array.from(this.JSC$8164_map_.keys())};
_.z.containsKey=function(K){return this.JSC$8164_map_.has(K)};
_.z.containsValue=function(K){return this.getValues().some(function(X){return X==K})};
_.z.equals=function(K,X){var F=this;X=X===void 0?function(P,H){return P===H}:X;
return this===K?!0:this.JSC$8164_map_.size!=K.getCount()?!1:this.getKeys().every(function(P){return X(F.JSC$8164_map_.get(P),K.get(P))})};
_.z.isEmpty=function(){return this.JSC$8164_map_.size==0};
_.z.clear=function(){this.JSC$8164_map_.clear()};
_.z.remove=function(K){return this.JSC$8164_map_.delete(K)};
_.z.get=function(K,X){return this.JSC$8164_map_.has(K)?this.JSC$8164_map_.get(K):X};
_.z.set=function(K,X){this.JSC$8164_map_.set(K,X);return this};
_.z.addAll=function(K){if(K instanceof y2){K=_.D(K.JSC$8164_map_);for(var X=K.next();!X.done;X=K.next()){var F=_.D(X.value);X=F.next().value;F=F.next().value;this.JSC$8164_map_.set(X,F)}}else if(K)for(K=_.D(Object.entries(K)),X=K.next();!X.done;X=K.next())F=_.D(X.value),X=F.next().value,F=F.next().value,this.JSC$8164_map_.set(X,F)};
_.z.forEach=function(K,X){var F=this;X=X===void 0?this:X;this.JSC$8164_map_.forEach(function(P,H){return K.call(X,P,H,F)})};
_.z.clone=function(){return new y2(this)};(function(){for(var K=["ms","moz","webkit","o"],X,F=0;X=K[F]&&!_.FP.requestAnimationFrame;++F)_.FP.requestAnimationFrame=_.FP[X+"RequestAnimationFrame"],_.FP.cancelAnimationFrame=_.FP[X+"CancelAnimationFrame"]||_.FP[X+"CancelRequestAnimationFrame"];if(!_.FP.requestAnimationFrame){var P=0;_.FP.requestAnimationFrame=function(H){var f=(new Date).getTime(),u=Math.max(0,16-(f-P));P=f+u;return _.FP.setTimeout(function(){H(f+u)},u)};
_.FP.cancelAnimationFrame||(_.FP.cancelAnimationFrame=function(H){clearTimeout(H)})}})();
var R_T=[[],[]],Ust=0,h_u=!1,msN=0,lKL=function(K,X){var F=msN++,P={measureTask:{id:F,fn:K.measure,context:X},mutateTask:{id:F,fn:K.mutate,context:X},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(P.args||(P.args=[]),P.args.length=0,P.args.push.apply(P.args,arguments),P.args.push(P.state)):P.args&&P.args.length!=0?(P.args[0]=P.state,P.args.length=1):P.args=[P.state];P.isScheduled||(P.isScheduled=!0,R_T[Ust].push(P));h_u||(h_u=!0,window.requestAnimationFrame(GvU))}},GvU=
function(){h_u=!1;
var K=R_T[Ust],X=K.length;Ust=(Ust+1)%2;for(var F,P=0;P<X;++P){F=K[P];var H=F.measureTask;F.isScheduled=!1;H.fn&&H.fn.apply(H.context,F.args)}for(P=0;P<X;++P)F=K[P],H=F.mutateTask,F.isScheduled=!1,H.fn&&H.fn.apply(H.context,F.args),F.state={};K.length=0};var vMt=_.lr(["about:blank"]),aKU=_.lr(["javascript:undefined"]),tjU=_.Xs(vMt);_.ui(tjU);var $sC=_.Xs(aKU);_.ui($sC);var WV=function(K){_.ua.call(this);this.JSC$8170_element_=K;this.listenKeyIn_=_.nB(this.JSC$8170_element_,"focus",this,!0);this.listenKeyOut_=_.nB(this.JSC$8170_element_,"blur",this,!0)};
_.br(WV,_.ua);WV.prototype.handleEvent=function(K){var X=new _.sQ(K.event_);X.type=K.type=="focusin"||K.type=="focus"?"focusin":"focusout";this.dispatchEvent(X)};
WV.prototype.disposeInternal=function(){WV.superClass_.disposeInternal.call(this);YO(this.listenKeyIn_);YO(this.listenKeyOut_);delete this.JSC$8170_element_};var OvO=function(K,X){this.JSC$8173_element_=K;this.JSC$8173_dom_=X};var dR=function(K,X){TV.call(this,X);this.useIframeMask_=!!K;this.lastFocus_=null;this.resizeBackgroundTask_=lKL({mutate:this.resizeBackground_},this);lKL({mutate:this.updateModalAndBackground_},this)};
_.br(dR,TV);_.z=dR.prototype;_.z.focusHandler_=null;_.z.visible_=!1;_.z.bgEl_=null;_.z.bgIframeEl_=null;_.z.tabCatcherElement_=null;_.z.backwardTabWrapInProgress_=!1;_.z.getCssClass=function(){return"goog-modalpopup"};
_.z.getBackgroundElement=function(){return this.bgEl_};
_.z.JSC$8154_createDom=function(){dR.superClass_.JSC$8154_createDom.call(this);var K=this.getElement(),X=Yd(this.getCssClass()).split(" ");eQ(K,X);K.tabIndex=0;_.Ow(K,!1);VjW(this);gMu(this)};
var VjW=function(K){if(K.useIframeMask_&&!K.bgIframeEl_){var X=K.JSC$8152_dom_.JSC$7339_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.W$(X,tjU);K.bgIframeEl_=X;K.bgIframeEl_.className=K.getCssClass()+"-bg";_.Ow(K.bgIframeEl_,!1);gdW(K.bgIframeEl_,0)}K.bgEl_||(K.bgEl_=K.JSC$8152_dom_.JSC$7339_createDom("DIV",K.getCssClass()+"-bg"),_.Ow(K.bgEl_,!1))},gMu=function(K){K.tabCatcherElement_||(K.tabCatcherElement_=K.JSC$8152_dom_.createElement("SPAN"),_.Ow(K.tabCatcherElement_,
!1),K.tabCatcherElement_.tabIndex=0,K.tabCatcherElement_.style.position="absolute")};
_.z=dR.prototype;_.z.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.z.canDecorate=function(K){return!!K&&K.tagName=="DIV"};
_.z.decorateInternal=function(K){dR.superClass_.decorateInternal.call(this,K);K=Yd(this.getCssClass()).split(" ");eQ(this.getElement(),K);VjW(this);gMu(this);this.getElement().tabIndex=0;_.Ow(this.getElement(),!1)};
_.z.enterDocument=function(){this.bgIframeEl_&&_.pb(this.bgIframeEl_,this.getElement());_.pb(this.bgEl_,this.getElement());dR.superClass_.enterDocument.call(this);_.Bz(this.tabCatcherElement_,this.getElement());this.focusHandler_=new WV(this.JSC$8152_dom_.JSC$7337_document_);rR(this).listen(this.focusHandler_,"focusin",this.onFocus);EMT(this,!1)};
_.z.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.ik(this.focusHandler_);dR.superClass_.exitDocument.call(this);_.c_(this.bgIframeEl_);_.c_(this.bgEl_);_.c_(this.tabCatcherElement_)};
_.z.setVisible=function(K){if(K!=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_&&EMT(this,K),K){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8152_dom_.JSC$7337_document_.activeElement}catch(H){}this.updateModalAndBackground_();rR(this).listen(this.JSC$8152_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8152_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);bvO(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)Za(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){rR(this).unlisten(this.JSC$8152_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8152_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)Za(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var X=this.JSC$8152_dom_,F=X.JSC$7337_document_.body,P=X.JSC$7337_document_.activeElement||F;if(!this.lastFocus_||this.lastFocus_==F){this.lastFocus_=null;break a}(P==F||X.contains(this.getElement(),P))&&this.lastFocus_.focus()}catch(H){}this.lastFocus_=
null}}};
var EMT=function(K,X){K.modalAriaVisibilityHelper_||(K.modalAriaVisibilityHelper_=new OvO(K.JSC$8152_element_,K.JSC$8152_dom_));K=K.modalAriaVisibilityHelper_;if(X){K.hiddenElements_||(K.hiddenElements_=[]);X=K.JSC$8173_dom_.getChildren(K.JSC$8173_dom_.JSC$7337_document_.body);for(var F=0;F<X.length;F++){var P=X[F],H;if(H=P!=K.JSC$8173_element_)H=P.getAttribute("aria-hidden"),H=!(H==null||H==void 0?0:String(H));H&&(Am(P,"hidden",!0),K.hiddenElements_.push(P))}}else if(K.hiddenElements_){for(X=0;X<
K.hiddenElements_.length;X++)K.hiddenElements_[X].removeAttribute("aria-hidden");K.hiddenElements_=null}};
dR.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var bvO=function(K,X){K.bgIframeEl_&&_.Ow(K.bgIframeEl_,X);K.bgEl_&&_.Ow(K.bgEl_,X);_.Ow(K.getElement(),X);_.Ow(K.tabCatcherElement_,X)};
_.z=dR.prototype;_.z.onShow=function(){this.dispatchEvent("show")};
_.z.onHide=function(){bvO(this,!1);this.dispatchEvent("hide")};
_.z.isVisible=function(){return this.visible_};
_.z.focus=function(){this.focusElement_()};
_.z.resizeBackground_=function(){this.bgIframeEl_&&_.Ow(this.bgIframeEl_,!1);this.bgEl_&&_.Ow(this.bgEl_,!1);var K=this.JSC$8152_dom_.JSC$7337_document_;var X=_.JE(wp(this.JSC$8152_dom_.JSC$7337_document_)||window);var F=Math.max(X.width,Math.max(K.body.scrollWidth,K.documentElement.scrollWidth));K=Math.max(X.height,Math.max(K.body.scrollHeight,K.documentElement.scrollHeight));this.bgIframeEl_&&(_.Ow(this.bgIframeEl_,!0),_.tPU(this.bgIframeEl_,F,K));this.bgEl_&&(_.Ow(this.bgEl_,!0),_.tPU(this.bgEl_,
F,K))};
_.z.reposition=function(){var K;if(_.alu(this.getElement())=="fixed")var X=K=0;else X=Zw(this.JSC$8152_dom_),K=X.x,X=X.y;var F=OOW(this.getElement());var P=_.JE(wp(this.JSC$8152_dom_.JSC$7337_document_)||window);K=Math.max(K+P.width/2-F.width/2,0);X=Math.max(X+P.height/2-F.height/2,0);AI(this.getElement(),K,X);AI(this.tabCatcherElement_,K,X)};
_.z.onFocus=function(K){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():K.target==this.tabCatcherElement_&&Qt(this.focusElement_,0,this)};
_.z.focusElement_=function(){try{this.getElement().focus()}catch(K){}};
_.z.disposeInternal=function(){_.ik(this.popupShowTransition_);this.popupShowTransition_=null;_.ik(this.popupHideTransition_);this.popupHideTransition_=null;_.ik(this.bgShowTransition_);this.bgShowTransition_=null;_.ik(this.bgHideTransition_);this.bgHideTransition_=null;dR.superClass_.disposeInternal.call(this)};var Rz=function(K,X,F){dR.call(this,X,F);this.JSC$8183_class_=K||"modal-dialog";this.buttons_=(new ea).addButton(C_Q,!0).addButton(NsE,!1,!0)};
_.br(Rz,dR);_.z=Rz.prototype;_.z.escapeToCancel_=!0;_.z.hasTitleCloseButton_=!0;_.z.modal_=!0;_.z.draggable_=!0;_.z.backgroundElementOpacity_=.5;_.z.title_="";_.z.JSC$8185_dragger_=null;_.z.JSC$8185_disposeOnHide_=!1;_.z.titleEl_=null;_.z.titleTextEl_=null;_.z.titleTextId_=null;_.z.titleCloseEl_=null;_.z.contentEl_=null;_.z.buttonEl_=null;_.z.getCssClass=function(){return this.JSC$8183_class_};
_.z.setTitle=function(K){this.title_=K;this.titleTextEl_&&_.oY(this.titleTextEl_,K)};
_.z.getTitle=function(){return this.title_};
_.z.getContent=function(){return""};
_.z.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var ivQ=function(K){K.getElement()||K.render();return K.getElement()};
Rz.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Rz.superClass_.getBackgroundElement.call(this)};
var xsL=function(K,X){K.backgroundElementOpacity_=X;K.getElement()&&(X=K.getBackgroundElement())&&gdW(X,K.backgroundElementOpacity_)};
Rz.prototype.setDraggable=function(K){this.draggable_=K;IKC(this,K&&this.inDocument_)};
Rz.prototype.JSC$8185_handleDrag=function(){};
var IKC=function(K,X){var F=Yd(K.JSC$8183_class_+"-title-draggable").split(" ");K.getElement()&&(X?eQ(K.titleEl_,F):yTC(K.titleEl_,F));X&&!K.JSC$8185_dragger_?(X=new _.ja(K.getElement(),K.titleEl_),K.JSC$8185_dragger_=X,eQ(K.titleEl_,F),_.nB(K.JSC$8185_dragger_,"start",K.setDraggerLimits_,!1,K),_.nB(K.JSC$8185_dragger_,"drag",K.JSC$8185_handleDrag,!1,K)):!X&&K.JSC$8185_dragger_&&(K.JSC$8185_dragger_.dispose(),K.JSC$8185_dragger_=null)};
_.z=Rz.prototype;
_.z.JSC$8154_createDom=function(){Rz.superClass_.JSC$8154_createDom.call(this);var K=this.getElement(),X=this.JSC$8152_dom_;this.titleTextId_=this.getId();var F=this.getId()+".contentEl";this.titleEl_=X.JSC$7339_createDom("DIV",this.JSC$8183_class_+"-title",this.titleTextEl_=X.JSC$7339_createDom("SPAN",{className:this.JSC$8183_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=X.JSC$7339_createDom("SPAN",this.JSC$8183_class_+"-title-close"));SlT(K,this.titleEl_,this.contentEl_=
X.JSC$7339_createDom("DIV",{className:this.JSC$8183_class_+"-content",id:F}),this.buttonEl_=X.JSC$7339_createDom("DIV",this.JSC$8183_class_+"-buttons"));AZN(this.titleTextEl_,"heading");AZN(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;Am(this.titleCloseEl_,"label","Close");AZN(K,"dialog");Am(K,"labelledby",this.titleTextId_||"");_.Ow(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(K=this.buttons_,K.JSC$8186_element_=this.buttonEl_,K.render());_.Ow(this.buttonEl_,!!this.buttons_);
xsL(this,this.backgroundElementOpacity_)};
_.z.decorateInternal=function(K){Rz.superClass_.decorateInternal.call(this,K);K=this.getElement();var X=this.JSC$8183_class_+"-content";this.contentEl_=Zn(document,null,X,K)[0];this.contentEl_||(this.contentEl_=this.JSC$8152_dom_.JSC$7339_createDom("DIV",X),K.appendChild(this.contentEl_));X=this.JSC$8183_class_+"-title";var F=this.JSC$8183_class_+"-title-text",P=this.JSC$8183_class_+"-title-close";(this.titleEl_=Zn(document,null,X,K)[0])?(this.titleTextEl_=Zn(document,null,F,this.titleEl_)[0],this.titleCloseEl_=
Zn(document,null,P,this.titleEl_)[0]):(this.titleEl_=this.JSC$8152_dom_.JSC$7339_createDom("DIV",X),K.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=hyt(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.Qm("SPAN",{className:F,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;Am(K,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8152_dom_.JSC$7339_createDom("SPAN",
P),this.titleEl_.appendChild(this.titleCloseEl_));_.Ow(this.titleCloseEl_,this.hasTitleCloseButton_);X=this.JSC$8183_class_+"-buttons";(this.buttonEl_=Zn(document,null,X,K)[0])?(this.buttons_=new ea(this.JSC$8152_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8152_dom_.JSC$7339_createDom("DIV",X),K.appendChild(this.buttonEl_),this.buttons_&&(K=this.buttons_,K.JSC$8186_element_=this.buttonEl_,K.render()),_.Ow(this.buttonEl_,!!this.buttons_));xsL(this,this.backgroundElementOpacity_)};
_.z.enterDocument=function(){Rz.superClass_.enterDocument.call(this);rR(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);rR(this).listen(this.buttonEl_,"click",this.onButtonClick_);IKC(this,this.draggable_);rR(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var K=this.getElement();AZN(K,"dialog");this.titleTextEl_.id!==""&&Am(K,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){K=this.JSC$8152_dom_;
var X=this.getBackgroundElement();K.removeNode(this.bgIframeEl_);K.removeNode(X)}this.isVisible()&&EMT(this,!1)}};
_.z.exitDocument=function(){this.isVisible()&&this.setVisible(!1);IKC(this,!1);Rz.superClass_.exitDocument.call(this)};
_.z.setVisible=function(K){K!=this.isVisible()&&(this.inDocument_||this.render(),Rz.superClass_.setVisible.call(this,K))};
_.z.onShow=function(){Rz.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.z.onHide=function(){Rz.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8185_disposeOnHide_&&this.dispose()};
_.z.setDraggerLimits_=function(){var K=this.JSC$8152_dom_.JSC$7337_document_,X=_.JE(wp(K)||window),F=Math.max(K.body.scrollWidth,X.width);K=Math.max(K.body.scrollHeight,X.height);var P=OOW(this.getElement());_.alu(this.getElement())=="fixed"?this.JSC$8185_dragger_.limits=new Lb(0,0,Math.max(0,X.width-P.width),Math.max(0,X.height-P.height)):this.JSC$8185_dragger_.limits=new Lb(0,0,F-P.width,K-P.height)};
_.z.onTitleCloseClick_=function(){kvT(this)};
var kvT=function(K){if(K.hasTitleCloseButton_){var X=K.buttons_,F=X&&X.cancelButton_;F?(X=X.get(F),K.dispatchEvent(new R5(F,X))&&K.setVisible(!1)):K.setVisible(!1)}},KzC=function(K){K.hasTitleCloseButton_=!1;
K.titleCloseEl_&&_.Ow(K.titleCloseEl_,K.hasTitleCloseButton_)};
Rz.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Rz.superClass_.disposeInternal.call(this)};
Rz.prototype.onButtonClick_=function(K){a:{for(K=K.target;K!=null&&K!=this.buttonEl_;){if(K.tagName=="BUTTON")break a;K=K.parentNode}K=null}if(K&&!K.disabled){K=K.name;var X=this.buttons_.get(K);this.dispatchEvent(new R5(K,X))&&this.setVisible(!1)}};
Rz.prototype.onKey_=function(K){var X=!1,F=!1,P=this.buttons_,H=K.target;if(K.type=="keydown")if(this.escapeToCancel_&&K.keyCode==27){var f=P&&P.cancelButton_;H=H.tagName=="SELECT"&&!H.disabled;f&&!H?(F=!0,X=P.get(f),X=this.dispatchEvent(new R5(f,X))):H||(X=!0)}else{if(K.keyCode==9&&K.shiftKey&&H==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(n){}Qt(this.resetBackwardTabWrap_,0,this)}}else if(K.keyCode==13){if(H.tagName=="BUTTON"&&!H.disabled)f=H.name;
else if(H==this.titleCloseEl_)kvT(this);else if(P){var u=P.defaultButton_,J;if(J=u)a:{J=pJ("BUTTON",P.JSC$8186_element_);for(var Z,M=0;Z=J[M];M++)if(Z.name==u||Z.id==u){J=Z;break a}J=null}H=(H.tagName=="TEXTAREA"||H.tagName=="SELECT"||H.tagName=="A")&&!H.disabled;!J||J.disabled||H||(f=u)}f&&P&&(F=!0,X=this.dispatchEvent(new R5(f,String(P.get(f)))))}else H!=this.titleCloseEl_||K.keyCode!=32&&K.key!=" "||kvT(this);if(X||F)K.stopPropagation(),K.preventDefault();X&&this.setVisible(!1)};
var R5=function(K,X){this.type="dialogselect";this.key=K;this.caption=X};
_.br(R5,_.HD);var ea=function(K){y2.call(this);K||Yp();this.cancelButton_=this.JSC$8186_element_=this.defaultButton_=null};
_.br(ea,y2);_.z=ea.prototype;_.z.clear=function(){y2.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.z.set=function(K,X,F,P){y2.prototype.set.call(this,K,X);F&&(this.defaultButton_=K);P&&(this.cancelButton_=K);return this};
_.z.addButton=function(K,X,F){return this.set(K.key,K.caption,X,F)};
_.z.render=function(){if(this.JSC$8186_element_){_.v$(this.JSC$8186_element_,pdl);var K=Yp(this.JSC$8186_element_);this.forEach(function(X,F){X=K.JSC$7339_createDom("BUTTON",{name:F},X);F==this.defaultButton_&&(X.className="goog-buttonset-default");this.JSC$8186_element_.appendChild(X)},this)}};
_.z.decorate=function(K){if(K&&K.nodeType==1){this.JSC$8186_element_=K;K=pJ("BUTTON",this.JSC$8186_element_);for(var X,F,P,H=0;X=K[H];H++)if(F=X.name||X.id,P=hyt(X)||X.value,F){var f=H==0;this.set(F,P,f,X.name=="cancel");f&&_.tY(X,"goog-buttonset-default")}}};
_.z.getElement=function(){return this.JSC$8186_element_};
var C_Q={key:"ok",caption:"OK"},NsE={key:"cancel",caption:"Cancel"},XdC={key:"yes",caption:"Yes"},FzL={key:"no",caption:"No"},P9U={key:"save",caption:"Save"},H9C={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new ea).addButton(C_Q,!0,!0),(new ea).addButton(C_Q,!0).addButton(NsE,!1,!0),(new ea).addButton(XdC,!0).addButton(FzL,!1,!0),(new ea).addButton(XdC).addButton(FzL,!0).addButton(NsE,!1,!0),(new ea).addButton(H9C).addButton(P9U).addButton(NsE,!0,!0));_.br(fql,Rz);_.br(DuP,Uw);var sUt=_.lr(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),zDN=_.lr(["//apis.google.com/js/rpc.js"]),cVw=_.Xs(sUt),nUl=_.Xs(zDN),qNy=null;var hH=function(K,X){_.ua.call(this);this.JSC$8195_element_=K;K=_.gG(this.JSC$8195_element_)?this.JSC$8195_element_:this.JSC$8195_element_?this.JSC$8195_element_.body:null;this.isRtl_=!!K&&_.Edt(K);this.listenKey_=_.nB(this.JSC$8195_element_,_.xA?"DOMMouseScroll":"mousewheel",this,X)};
_.br(hH,_.ua);hH.prototype.handleEvent=function(K){var X=0,F=0,P=K.event_;P.type=="mousewheel"?(K=fqZ(-P.wheelDelta),P.wheelDeltaX!==void 0?(X=fqZ(-P.wheelDeltaX),F=fqZ(-P.wheelDeltaY)):F=K):(K=P.detail,K>100?K=3:K<-100&&(K=-3),P.axis!==void 0&&P.axis===P.HORIZONTAL_AXIS?X=K:F=K);typeof this.maxDeltaX_==="number"&&(X=_.rH(X,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(F=_.rH(F,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(X=-X);X=new DuL(K,P,X,F);this.dispatchEvent(X)};
var fqZ=function(K){return _.Ii&&(_.Xll||Pln)&&K%40!=0?K:K/40};
hH.prototype.disposeInternal=function(){hH.superClass_.disposeInternal.call(this);YO(this.listenKey_);this.listenKey_=null};
var DuL=function(K,X,F,P){_.sQ.call(this,X);this.type="mousewheel";this.detail=K;this.deltaX=F;this.deltaY=P};
_.br(DuL,_.sQ);_.In=function(K){var X="instance_";if(K.instance_&&K.hasOwnProperty(X))return K.instance_;X=new K;return K.instance_=X};var M8l;var uoN=_.lr(["https://about:blank"]),qNN=_.lr(['javascript:""']),JVZ=_.lr(["about:blank"]);_.br(VY,fql);_.z=VY.prototype;_.z.JSC$8203_url_="";_.z.JSC$8203_iframe_=null;_.z.iframeLoaded_=!1;_.z.loadedFired_=!1;_.z.callback_=function(){};
_.z.enterDocument=function(){VY.superClass_.enterDocument.call(this);YNy(this.getBackgroundElement(),rR(this))};
_.z.render=function(K){var X=this;VY.superClass_.render.call(this,K);this.useGapi_?JZL(this.iframeManager_,window).then(function(){return Z9t(X)}).then(null,function(){X.callback_({action:"error"})}):YNN(this)};
var Z9t=function(K){var X=K.JSC$8152_dom_.JSC$7339_createDom("div",["picker-dialog-content","picker-frame"]);_.Ow(X,!1);K.getContentElement().appendChild(X);return ZvL(K.iframeManager_,X,function(F){var P=vCt(F["iframe-command"]);switch(P.getCommand()){case 1:F=K.callback_;P=_.xS(P,$o,2);var H="";switch(P.getStatus()){case 2:H="cancel";break;case 1:H="picked";break;case 3:H="error"}var f=_.kp(P,ZR,2,_.KJ(wly));P=f.length===0?{action:H}:bJO(f,H,_.xS(P,mVt,7));F.call(K,P);K.setVisible(!1);break;case 4:KzC(K);
K.callback_({action:"loaded"});break;case 7:case 8:F=K.callback_;a:{H=P.getCommand();f=_.xS(P,$o,2);switch(H){case 7:H="uploadScheduled";break;case 8:H="uploadStateChange";break;default:P={};break a}P=_.kp(f,ZR,2,_.KJ(wly));if(P.length===0)P={action:H};else{var u=_.xS(f,mVt,7);f=u&&_.BL(u,1);u=mgL(u);P=vLt(P,H,f,u)}}F.call(K,P)}},K.JSC$8203_url_,K.targetId_,K.rpcToken_).then(function(F){K.JSC$8203_iframe_=F.getIframeEl();
QUN(K);_.Ow(K.JSC$8203_iframe_.parentElement,!0);_.tY(K.getElement(),"picker-dialog");M8Z(K);return F})},YNN=function(K){K.JSC$8203_iframe_=K.JSC$8152_dom_.JSC$7339_createDom("IFRAME",{id:K.targetId_,
name:K.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.W$(K.JSC$8203_iframe_,nUZ(K));_.tY(K.getElement(),"picker-dialog");K.getContentElement().appendChild(K.JSC$8203_iframe_);rR(K).listen(K.JSC$8203_iframe_,"load",function(){return void QUN(K)});
K.JSC$8203_iframe_.src=K.JSC$8203_url_;M8Z(K)},pdZ=function(K){cVL(K,(0,_.T3)(function(X){X.setAuthToken(this.targetId_,this.rpcToken_)},K))},M8Z=function(K){var X=_.tH(_.az(K.JSC$8203_url_),"title");
X&&K.setTitle(X)},nUZ=function(K){return _.JMd("Internet Explorer")>=7&&_.Hy(K.JSC$8203_url_,"https")?_.Xs(uoN):_.ir?_.Xs(qNN):_.Xs(JVZ)},QUN=function(K){pdZ(K);
K.iframeLoaded_=!0;K.JSC$8203_iframe_.tabIndex=0;K.isVisible()&&K.focus()};
VY.prototype.handleKeydown_=function(K){K.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),K.stopPropagation(),K.preventDefault())};
var cVL=function(K,X){var F=K.JSC$8201_gadgetsDomHelper_;JVl(function(){X(F.getWindow().gadgets.rpc)},F)};
VY.prototype.setUrl=function(K){K=_.$L(new _.aJ(K),"rpcService",this.targetId_);_.$L(K,"rpctoken",this.rpcToken_);_.EQ(K,"rpctoken="+this.rpcToken_);_.tr(K,"https");this.JSC$8203_url_=K.toString();this.JSC$8203_iframe_&&(this.JSC$8203_iframe_.src=this.JSC$8203_url_)};
var B2O=function(K,X){K.callback_=X;cVL(K,(0,_.T3)(function(F){F.register(this.targetId_,(0,_.T3)(this.handlePickerAction_,this))},K))};
VY.prototype.handlePickerAction_=function(K){var X=K.action;X=="loaded"&&(this.loadedFired_=!0,SNu(this,new zDy(this.isVisible())),oUO(this),KzC(this),rR(this).unlisten(this.JSC$8152_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8203_iframe_.tabIndex=0);X!="picked"&&X!="cancel"||this.setVisible(!1);this.callback_(K)};
var oUO=function(K){K.JSC$8203_appId_&&SNu(K,new sU4(K.JSC$8203_appId_,window.location.protocol+"//"+window.location.host))};
VY.prototype.setRelayUrl=function(K){cVL(this,(0,_.T3)(function(X){X.setRelayUrl(this.targetId_,K)},this))};
var SNu=function(K,X){K.useGapi_&&cZt(X,K.iframeManager_).then(null,function(){K.callback_({action:"error"})});
cVL(K,(0,_.T3)(function(F){F.call(this.targetId_,"picker",null,X)},K))};
VY.prototype.resizePicker_=function(){var K=wp(this.JSC$8152_dom_.JSC$7337_document_)||window;if(_.tH(_.az(this.JSC$8203_url_),"ignoreLimits")=="true")K=new _.q4(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.tH(_.az(this.JSC$8203_url_),"shadeDialog")=="true"){var X=ivQ(this);X=bOC(X);var F=_.JE(K);K=F.width-80;F=F.height-40;X&&(K-=X.left?X.left:0,K-=X.right?X.right:0,F-=X.top?X.top:0,F-=X.bottom?X.bottom:0);K=new _.q4(K>0?K:0,F>0?F:0)}else(X=this.preferredDialogWidth_)?(X=Math.max(320,
Math.min(1051,X)),(F=this.preferredDialogHeight_)||(F=_.JE(K).height*.85),F=Math.max(480,Math.min(650,F))):(X=_.JE(K),F=X.width*.618,F=F<X.height?Math.round(Math.max(480,Math.min(650,F*.85))):Math.round(Math.max(480,Math.min(650,X.height*.85))),X=Math.round(F/.618)),K=_.JE(K),X=Math.min(X,Math.max(K.width,320)),F=Math.min(F,Math.max(K.height,480)),K=new _.q4(X,F);_.tPU(this.getContentElement(),K);this.reposition()};
VY.prototype.reposition=function(){if(_.tH(_.az(this.JSC$8203_url_),"shadeDialog")=="true"){var K=OOW(this.getElement()),X=_.JE(this.JSC$8152_dom_.getWindow());K=Math.floor(X.width/2-K.width/2);X=ivQ(this);if(X=bOC(X)){var F=X.left?X.left:0;F+=X.right?X.right:0;K=Math.floor(K-F/2)}K=K>0?K:0;X=Zw(this.JSC$8152_dom_).y;AI(this.getElement(),K,X)}else VY.superClass_.reposition.call(this)};
VY.prototype.setVisible=function(K){if(K!=this.isVisible()&&this.autoSizeDialog_){var X=this.JSC$8152_dom_.getWindow();K?(this.resizePicker_(),rR(this).listen(X,"resize",this.resizePicker_),this.iframeLoaded_||rR(this).listen(X,"keydown",this.handleKeydown_)):(rR(this).unlisten(X,"resize",this.resizePicker_),this.iframeLoaded_||rR(this).unlisten(X,"keydown",this.handleKeydown_))}VY.superClass_.setVisible.call(this,K);SNu(this,new zDy(K))};
VY.prototype.focus=function(){VY.superClass_.focus.call(this);if(this.JSC$8203_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8203_iframe_.focus()}catch(K){}};var S0=function(K,X){X=X===void 0?VY:X;Uw.call(this,K);this.pickerConstructor=X;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(K=window.location.origin)||(K=window.location.protocol+"//"+window.location.host);K&&this.urlParamMap_.set("origin",K);this.postProcessors_=[]};
_.r(S0,DuP);S0.prototype.JSC$8208_disposeOnHide_=!1;
S0.prototype.build=function(){this.JSC$8109_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$8109_appId_);this.getRelayUrl()||this.setRelayUrl(_.Vt(_.EQ(_.gY(_.az(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("jb");var K=new this.pickerConstructor(LzV(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);K.JSC$8185_disposeOnHide_=this.JSC$8208_disposeOnHide_;
K.JSC$8203_appId_=this.JSC$8109_appId_;K.loadedFired_&&oUO(K);B2O(K,this.callback_);return K};
var T2L=function(K){K.urlParamMap_.set("multiselectEnabled","true");return K};
S0.prototype.getHeight=function(){return this.dialogHeight_};
S0.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
S0.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
S0.prototype.getWidth=function(){return this.dialogWidth_};
var rVZ=function(K){K.JSC$8208_disposeOnHide_=void 0;return K};
S0.prototype.setRelayUrl=function(K){this.urlParamMap_.set("parent",K);return this};
var AVE=function(K,X){K.urlParamMap_.set("selectButtonLabel",X);return K};
S0.prototype.setSize=function(K,X){this.dialogWidth_=K;this.dialogHeight_=X;return this};
S0.prototype.setTitle=function(K){this.urlParamMap_.set("title",K);return this};
var LzV=function(K){K.postProcessors_.length&&K.urlParamMap_.set("pp",JSON.stringify(K.postProcessors_));K.urlParamMap_.set("nav",ejZ(K.nav_));var X=new _.aJ(K.getBaseUrl());K.urlParamMap_.forEach(function(F,P){_.$L(X,P,F)});
return X};var yVW=function(K,X){K.name!==void 0?(this.name=K.name,this.code=jUU[K.name]):(this.code=K=K.code,this.name=wdQ(K));_.KO.call(this,PVl("%s %s",this.name,X))};
_.br(yVW,_.KO);var wdQ=function(K){var X=_.T8.findKey(jUU,function(F){return K==F});
if(X===void 0)throw Error("lb`"+K);return X},Uh={},jUU=(Uh.AbortError=3,Uh.EncodingError=5,Uh.InvalidModificationError=9,Uh.InvalidStateError=7,Uh.NotFoundError=1,Uh.NotReadableError=4,Uh.NoModificationAllowedError=6,Uh.PathExistsError=12,Uh.QuotaExceededError=10,Uh.SecurityError=2,Uh.SyntaxError=8,Uh.TypeMismatchError=11,Uh);var WzE=function(K,X){_.HD.call(this,K.type,X);this.event_=K};
_.br(WzE,_.HD);var duu=function(K,X,F){F===void 0&&(F=K.size);return K.slice?K.slice(X,F):null};var SNT=new WeakMap,B29=function(K,X){K=[K];for(var F=X.length-1;F>=0;--F)K.push(typeof X[F],X[F]);return K.join("\v")};_.Lzq(function(){if(!_.FP.Blob)return!1;var K=new Uint8Array(100);try{var X=new Blob([K])}catch(F){return!1}return X.size!=100?!1:!0});
var eDE=_.Lzq(function(){if(!_.FP.Blob)return!1;var K=new Uint8Array(100);try{var X=new Blob([K])}catch(F){return!1}return duu(X,0,1)===null?!1:!0});_.FP.U3bHHf!=null||(_.FP.U3bHHf=0);_.FP.U3bHHf++;var T2w={};var CJ=void 0;var AVn=Symbol("tb");var aqd=iB("WizInjectionContext_Dispatcher");var hDl=iB("WizInjectionContext_RootElement");var Grl=iB("WizInjectionContext_AppContext"),mu3=iB("WizInjectionContext_ModelRootElement"),lqO=iB("WizInjectionContext_RendererData"),vUl=iB("WizInjectionContext_InjectingConstructor"),UuP=iB("WizInjectionContext_AsyncDeps"),t8P={};var b9d=!1;var xuq={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:NUP,enableLazyTsx:ih3,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1,legacyTriggerSoyRendererEvents:!1};_.Kv=Object.assign({},{attributes:{},handleError:function(K){throw K;}},xuq);var RDO=Symbol("xb"),arT=Symbol("yb"),Vp3=Symbol("zb"),$Uy=Symbol("Ab"),xU9=VO(function(K){return Xn(K)&&RDO in K});var HGO=Symbol("Bb"),hm={},FSd=(hm[HGO]=!0,hm.debugName="[component]",hm.getComponentStack=function(){for(var K=[],X=this;X;)stT(X)&&K.push(X.debugName),X=X.parent;return K},hm.registerSignal=function(){},hm.registerEffect=function(){},hm);var Fn=null,HM=!1,Jvy=1,fv=Symbol("Cb"),YM={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var m9=Symbol("Db"),GV=Symbol("Eb"),zv=Symbol("Fb"),BSl=Object.assign({},YM,{value:m9,dirty:!0,error:null,equal:zOl,kind:"computed",producerMustRecompute:function(K){return K.value===m9||K.value===GV},
producerRecomputeValue:function(K){if(K.value===GV)throw Error("da");var X=K.value;K.value=GV;var F=nSw(K),P=!1;try{var H=K.computation();PM(null);P=X!==m9&&X!==zv&&H!==zv&&K.equal(X,H)}catch(f){H=zv,K.error=f}finally{cvP(K,F)}P?K.value=X:(K.value=H,K.version++)}});var TSl=function(){throw Error();};var Av9=null,oSP=Object.assign({},YM,{equal:zOl,value:void 0,kind:"signal"});Object.assign({},YM,{value:m9,dirty:!0,error:null,equal:zOl,kind:"linkedSignal",producerMustRecompute:function(K){return K.value===m9||K.value===GV},
producerRecomputeValue:function(K){if(K.value===GV)throw Error("da");var X=K.value;K.value=GV;var F=nSw(K);try{var P=K.source();var H=K.computation(P,X===m9||X===zv?void 0:{source:K.sourceValue,value:X});K.sourceValue=P}catch(f){H=zv,K.error=f}finally{cvP(K,F)}X!==m9&&H!==zv&&K.equal(X,H)?K.value=X:(K.value=H,K.version++)}});Object.assign({},YM,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(K){K.schedule!==null&&K.schedule(K.ref)},
hasRun:!1,cleanupFn:function(){}});var wmw=Symbol("Gb"),qs=Symbol("Hb");var JZ=Array.isArray;var GyO;var UuL={},vSO=mUl(Object.assign({},{consumerAllowSignalWrites:!0},UuL)),u9=mUl(Object.assign({},{consumerAllowSignalWrites:!0},UuL));var cM=0,lR=function(){this.queue=new Set};
lR.prototype.remove=function(K){this.queue.delete(K)};
lR.prototype.clear=function(){this.queue.clear()};
var hDQ=function(){lR.apply(this,arguments)};
_.r(hDQ,lR);hDQ.prototype.schedule=function(K){this.queue.add(K)};
hDQ.prototype.flush=function(){if(this.queue.size)for(var K=_.D(this.queue),X=K.next();!X.done;X=K.next()){X=X.value;this.queue.delete(X);try{X.run()}catch(F){muC(F)}}};
var GrQ=new hDQ,vV=function(){lR.apply(this,arguments)};
_.r(vV,lR);var lqW=function(){vV.apply(this,arguments)};
_.r(lqW,vV);lqW.prototype.schedule=function(K){K.hasRun?this.queue.add(K):K.run()};
lqW.prototype.flush=function(){if(this.queue.size){var K=this.queue;this.queue=new Set;Irn(K)}};
var tpn=new lqW,vUQ=function(){vV.apply(this,arguments)};
_.r(vUQ,vV);vUQ.prototype.schedule=function(K){var X=this;return _.q(function(F){if(F.nextAddress==1)return K.hasRun?F.jumpTo(2):_.Y(F,Promise.resolve(),3);if(F.nextAddress!=2)return K.run(),F.return();X.queue.add(K);_.JT(F)})};
vUQ.prototype.flush=function(){var K=this;return _.q(function(X){if(X.nextAddress==1)return K.queue.size?_.Y(X,Promise.resolve(),2):X.return();Irn(K.queue);_.JT(X)})};
var gSl=new vUQ,aqC=function(){vV.apply(this,arguments)};
_.r(aqC,vV);aqC.prototype.schedule=function(K){this.queue.add(K)};
aqC.prototype.flush=function(){this.queue.size&&Irn(this.queue)};
var OGT=new aqC,NSy=[tpn,GrQ,OGT,gSl],t8L=[tpn,OGT,gSl],bG3=[];Av9=function(){iG9();for(var K=_.D(bG3),X=K.next();!X.done;X=K.next())X=X.value,X()};
var muC=Py;var BM=Symbol("Mb");var pv=null,F3n,PUM=null,HQl;var a5={},$uL=Object.assign({},YM,(a5[RDO]=!0,a5.effectType=arT,a5.isResettableContext=!0,a5.producerNode=void 0,a5.hasRun=!1,a5.effectFn=null,a5.consumerIsAlwaysLive=!0,a5.consumerAllowSignalWrites=!0,a5.consumerMarkedDirty=ES9,a5.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(HM)throw Error("Nb");this.dirty=!1;if(!this.hasRun||ZGy(this)){this.hasRun=!0;RD9(this);var K=_.Ng(this),X=nSw(this);kry("effectRun",this.debugName);try{Tv(this.effectFn,this.componentStack)}catch(F){throw _.Kv.enableContextBasedComponentStacks&&
Lv(F),F;}finally{KSl("effectRun",this.debugName),cvP(this,X),_.Ng(K)}}}},a5.componentStack=void 0,a5.debugName="[effect]",a5[Symbol.dispose]=function(){fr3(this);
if(sg(this))for(var K=0;K<this.producerNode.length;K++)DUM(this.producerNode[K],this.producerIndexOfThis[K]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);K=_.D(t8L);for(var X=K.next();!X.done;X=K.next())X.value.remove(this);eDn(this)},a5));var fTO=Object.assign({},$uL,{effectType:Vp3});var DiT=Symbol("Ob");var uC4=Object.assign({},$uL,{effectType:arT});var ggl=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 xM=Symbol("Pb");var f9=function(){},n9=function(K){this.props=K;
this.__unmounted=!1};
n9.prototype.didPatch=function(){};
n9.prototype.didMount=function(){};
n9.prototype.didUnmount=function(){};
n9.prototype.didUpdate=function(){};var ZQO={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},J9n=
{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}]}},htM={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},Mtl=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],QaT={"*":{async:1,dir:0,loading:2,target:3}};var O9O=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,tm={},c9y=(tm[1]=null,tm[2]=function(K,X){return X instanceof ji?yz(X):c$.toString()},tm[3]=function(K,X){return Yi(X)?_.Qz(X):O9O.test(String(X))?String(X):c$.toString()},tm[4]=function(K,X){return X instanceof zp?_.ui(X):c$.toString()},tm[5]=function(K,X){return String(X)},tm[7]=null,tm[8]=null,tm[10]=null,tm);var PCd=Symbol("Rb");var hYy=function(K){var X=V8t,F=K,P="",H="",f=1;K<0&&(K=-K);if(K===Infinity)K=(Infinity*Math.sign(F)).toString();else{for(var u=0;u<gUL.length;u++){var J=gUL[u];f=X[J];if(K>=f||f<=1&&K>.1*f){P=J;break}}P?(P+="B",H=" "):f=1;K=Math.round(F/f*10)/10+H+P}return K},gUL="Y Z E P T G M K  m u n".split(" "),V8t={"":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};_.EUt=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 sIy={};RegExp.prototype.hasOwnProperty("sticky");var CUd=function(K){K=String(K);for(var X=function(P,H,f){for(var u=Math.min(H.length-f,P.length),J=0;J<u;J++){var Z=H[f+J];if(P[J]!==("A"<=Z&&Z<="Z"?Z.toLowerCase():Z))return!1}return!0},F=0;(F=K.indexOf("<",F))!=-1;){if(X("\x3c/script",K,F)||X("\x3c!--",K,F))return"zSoyz";
F+=1}return K},HLl=function(K){return K!=null&&K.contentKind===sIy};var RD={default:"__default"};var r94=Object.prototype.hasOwnProperty;SM4.prototype=Object.create(null);var Ej=wEy();var Eg=null;var vgl=function(K){this.created=[];this.deleted=[];this.node=K};var aTd=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var K=this,X=K;K;)X=K,K=K.parentNode;return X};var W3y=function(K,X){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=K;this.key=X;this.text=void 0};var Gv=null,l_=null,hZ=null,aD=null,hE4=[],Uil=eEq,$M=[],gs=[],FWy=function(K){return ttl(function(X,F,P){hZ=l_=X;l_=null;F(P);REM(null);l_=hZ;hZ=hZ.parentNode;return X},K)}(),XOn=function(K){return ttl(function(X,F,P){var H={nextSibling:X};
l_=H;F(P);hZ&&REM(X.nextSibling);return H===l_?null:l_},K)}();var b_=[],OQ3=0;var Cv=new SM4;var S9=new SM4;var b9C=wEy(),bQq=b9C[RD.default],NGl=b9C.style,Egn=["focusin","focusout"];var GT4=function(){},A_w=function(){},$Fd=function(){},v3M=function(){};var i_=Symbol("Xb");var Fcn,Xu9=KcP;var Hd=Symbol("Yb");var SjP={};var tFT=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(" ")),
aWw=new Set(["a","font","script","style","title"]);var Zq={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var Q8=null,Mu=function(K,X){n9.call(this,K);var F=this;this.functionComponent=X;this.hooks=[];this.hookCounter=0;this.disposeEffects=jj(function(P){F.effectContext=P;_.AZ(function(){Wcw(F,F.el)})},_.Kv.alwaysTrackContexts||!!CJ)};
_.r(Mu,n9);Mu.prototype.render=function(K){var X=Q8;Q8=this;this.hookCounter=0;var F=PM(u9),P=_.Ng(this.effectContext);try{return kry("render",this.componentName),this.functionComponent(K)}finally{KSl("render",this.componentName),_.Ng(P),PM(F),Q8=X}};
_.Oi.Object.defineProperties(Mu.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return K3P(this.functionComponent)}}});var OLO=Symbol("lc"),hMq=function(K,X,F){this.kind=K;this.props=X;this.children=F};
_.r(hMq,f9);hMq.prototype.render=function(){return UFP(this.kind,this.props,this.children)};
hMq.prototype.getChildren=function(){return this.children};var g3P=[];TSl=function(K){throw Error("sb`"+K.debugName);};
(function(){var K=Eg;Eg=function(X){K==null||K(X);E3O(X)}})();var C9u=void 0,N2t={},i9u=new WeakMap,bL4={getComponent:function(K){if(K.hasAttribute("ng-version"))return N2t;if(!K.__wizComponent)return null;K=K.__wizComponent;i9u.set(K.propsAndState,K);return K.propsAndState},
getDirectiveMetadata:function(K){if(K===N2t)return{framework:"wiz",name:"<Root>",props:{}};K=i9u.get(K);if(!K)throw Error("mc");return{framework:"wiz",name:K.name,props:Object.fromEntries(Object.keys(K.props).map(function(X){return[X,X]}))}},
"\u0275setProfiler":function(K){var X;(X=C9u)==null||X();C9u=CDw(function(){K(2)})},
isSignal:function(K){return typeof K==="function"&&K[fv]!==void 0}};_.p.debugName="RlDudd";var Ncy={nonNullableCondIsNull:function(){return Error("qc")}};var XbP=function(){this.map=new Map};
XbP.prototype.push=function(K,X){var F=this.map;F.has(K)&&(this.multi||(this.multi=new Map),this.multi.set(X,F.get(K)));F.set(K,X)};
XbP.prototype.pop=function(K){var X=this.map,F=X.get(K),P;F!==void 0&&((P=this.multi)==null?0:P.has(F))?(X.set(K,this.multi.get(F)),this.multi.delete(F)):X.delete(K);return F};_.cd.debugName="nsTGHd";_.p9.debugName="tbhMcf";_.Bd.debugName="zyMFzb";_.S8.debugName="vI1rtf";_.oU={OUT_OF_ORDER_HOOK_CALL:function(K){return Error("rc`"+K)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("sc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("tc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("uc")},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(K,X){return Error("vc`"+K+"`"+X)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(K){return Error("wc`"+K)},
USE_ELEMENT_NOT_ASSIGNED:function(K){return Error("xc`"+String(K))}};Fcn=mFw;var uSO=Symbol("yc");wuT({beforeRender:function(K){var X=_.Ng(K.effectContext);try{var F;((F=K.__syncEffects)==null?0:F.length)&&Jgl(K.__syncEffects)}finally{_.Ng(X)}},
didPatch:function(K){var X=_.Ng(K.effectContext);try{var F;((F=K.__syncEffects)==null?0:F.length)&&Jgl(K.__syncEffects)}finally{_.Ng(X)}},
didUnmount:function(K){var X;((X=K.hooks)==null?0:X.length)&&K.hooks.forEach(qiT)}});var xuV,IqO,krN;xuV=_.FP.window;_.Wd=(xuV==null?void 0:(IqO=xuV.yt)==null?void 0:IqO.config_)||(xuV==null?void 0:(krN=xuV.ytcfg)==null?void 0:krN.data_)||{};_.gS("yt.config_",_.Wd);var KSQ={},MWl=[];_.nG=function(K){var X=_.Ls.apply(1,arguments);var F=Error.call(this,K);this.message=F.message;"stack"in F&&(this.stack=F.stack);this.args=[].concat(_.LZ(X));Object.setPrototypeOf(this,this.constructor.prototype)};
_.r(_.nG,Error);var Q5w=function(K,X,F){this.actionName=K;this.optionalAction=X===void 0?!1:X;this.args=F===void 0?null:F;this.returnValue=[]};_.b=function(K){this.name=K};_.Uj=new _.b("signalAction");var j2y=/^[\w.]*$/,SiP={q:!0,search_query:!0},Bgw=String(pby);var $0;$0=Symbol("zc");_.Oh=function(K){this.name=K};
_.Oh.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var wb4=function(K){this.key=K},dzM=function(K){this.deferredKey=K},W7P=function(){var K=this;
this.providers=new Map;this.JSC$8416_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(K.providers)}}};
W7P.prototype.addProvider=function(K){this.providers.set(K.provide,K);var X=this.JSC$8416_deferred.get(K.provide);if(X)try{X.resolver(this.resolve(K.provide))}catch(F){X.rejector(F)}};
W7P.prototype.resolve=function(K){return K instanceof dzM?XmW(this,K):K instanceof wb4?FSC(this,K.key,[],!0):FSC(this,K,[])};
var XmW=function(K,X){X=X.deferredKey;if(K.JSC$8416_deferred.has(X))return K.JSC$8416_deferred.get(X).promise;var F={};F.promise=new Promise(function(P,H){F.resolver=P;F.rejector=H});
K.JSC$8416_deferred.set(X,F);return F.promise},FSC=function(K,X,F,P){P=P===void 0?!1:P;
if(F.indexOf(X)>-1)throw Error("Ac`"+X);if(K.cachedValues.has(X))return K.cachedValues.get(X);if(!K.providers.has(X)){if(P)return;throw Error("Bc`"+X);}P=K.providers.get(X);F.push(X);if(P.useValue!==void 0)var H=P.useValue;else if(P.useFactory)H=P[$0]?PDV(K,P[$0],F):[],H=P.useFactory.apply(P,_.LZ(H));else if(P.useClass){H=P.useClass;var f=H[$0]?PDV(K,H[$0],F):[];H=new (Function.prototype.bind.apply(H,[null].concat(_.LZ(f))))}else throw Error("Cc`"+X);F.pop();P.skipCache||K.cachedValues.set(X,H);return H},
PDV=function(K,X,F){return X?X.map(function(P){return P instanceof wb4?FSC(K,P.key,F,!0):FSC(K,P,F)}):[]};var ygl;var h_=new _.Oh("ENDPOINT_HANDLER_TOKEN");_.mc=new _.b("urlEndpoint");var HGW=function(){this.data=[];this.cachedPackedInt52=-1};
HGW.prototype.set=function(K,X){X=X===void 0?!0:X;0<=K&&K<52&&Number.isInteger(K)&&this.data[K]!==X&&(this.data[K]=X,this.cachedPackedInt52=-1)};
HGW.prototype.get=function(K){return!!this.data[K]};
var stu=function(K){K.cachedPackedInt52===-1&&(K.cachedPackedInt52=K.data.reduce(function(X,F,P){return X+(F?Math.pow(2,P):0)},0));
return K.cachedPackedInt52};var ghy=function(K){var X=zOZ;K=K===void 0?_.mz("yt.ads.biscotti.lastId_")||"":K;var F=Object,P=F.assign,H={};H.dt=DcQ;H.flash="0";a:{try{var f=X.JSC$8422_win_.top.location.href}catch(Mq){f=2;break a}f=f?f===X.doc_.location.href?0:1:2}H=(H.frm=f,H);try{H.u_tz=-(new Date).getTimezoneOffset();var u=u===void 0?wY:u;try{var J=u.history.length}catch(Mq){J=0}H.u_his=J;var Z;H.u_h=(Z=wY.screen)==null?void 0:Z.height;var M;H.u_w=(M=wY.screen)==null?void 0:M.width;var n;H.u_ah=(n=wY.screen)==null?void 0:n.availHeight;
var c;H.u_aw=(c=wY.screen)==null?void 0:c.availWidth;var B;H.u_cd=(B=wY.screen)==null?void 0:B.colorDepth}catch(Mq){}J=X.JSC$8422_win_;try{var L=J.screenX;var A=J.screenY}catch(Mq){}try{var d=J.outerWidth;var R=J.outerHeight}catch(Mq){}try{var l=J.innerWidth;var a=J.innerHeight}catch(Mq){}try{var E=J.screenLeft;var V=J.screenTop}catch(Mq){}try{l=J.innerWidth,a=J.innerHeight}catch(Mq){}try{var x=J.screen.availWidth;var N=J.screen.availTop}catch(Mq){}L=[E,V,L,A,x,N,d,R,l,a];A=cTd(!1,X.JSC$8422_win_.top);
d={};var Dl=Dl===void 0?_.FP:Dl;R=new HGW;"SVGElement"in Dl&&"createElementNS"in Dl.document&&R.set(0);l=uPL();l["allow-top-navigation-by-user-activation"]&&R.set(1);l["allow-popups-to-escape-sandbox"]&&R.set(2);Dl.crypto&&Dl.crypto.subtle&&R.set(3);"TextDecoder"in Dl&&"TextEncoder"in Dl&&R.set(4);Dl=stu(R);X=(d.bc=Dl,d.bih=A.height,d.biw=A.width,d.brdim=L.join(),d.vis=F8P(X.doc_),d.wgl=!!wY.WebGLRenderingContext,d);F=P.call(F,H,X);F.ca_type="image";K&&(F.bid=K);return F},zOZ=new function(){var K=
window.document;
this.JSC$8422_win_=window;this.doc_=K};
_.gS("yt.ads_.signals_.getAdSignalsString",function(K){return ohn(ghy(K))});_.E$();navigator.userAgent.indexOf(" (CrKey ");var mzn="XMLHttpRequest"in _.FP?function(){return new XMLHttpRequest}:null;var frC="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),DUt=[].concat(_.LZ(frC),["client_dev_set_cookie"]);var VWT={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"},vhn="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(_.LZ(frC)),KH4=!1,tWl=_.Ehy,xzw=ODT;var T$n=[{messageFn:function(K){return"Cannot read property '"+K.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(K){return"Cannot call '"+K.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(K){return K.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var u$L={messageWeights:[],callbackWeights:[{callback:HyP,weight:500},{callback:sJP,weight:500}]};var qUu=function(){this.callbackWeights=[];this.messageWeights=[]},JvN,L$d=function(){if(!JvN){var K=JvN=new qUu;
K.messageWeights.length=0;K.callbackWeights.length=0;MBl(K,u$L)}return JvN},MBl=function(K,X){X.messageWeights&&K.messageWeights.push.apply(K.messageWeights,X.messageWeights);
X.callbackWeights&&K.callbackWeights.push.apply(K.callbackWeights,X.callbackWeights)};_.br(_.uD,_.LJ);_.uD.prototype.subscribe=function(K,X,F){var P=this.topics_[K];P||(P=this.topics_[K]=[]);var H=this.JSC$8446_key_;this.subscriptions_[H]=K;this.subscriptions_[H+1]=X;this.subscriptions_[H+2]=F;this.JSC$8446_key_=H+3;P.push(H);return H};
var ZGN=function(K){var X=wnd,F=!1,P=X.subscribe("handleError",function(H){F||(F=!0,this.unsubscribeByKey(P),K.apply(void 0,arguments))},X)};
_.uD.prototype.unsubscribe=function(K,X,F){if(K=this.topics_[K]){var P=this.subscriptions_;if(K=K.find(function(H){return P[H+1]==X&&P[H+2]==F}))return this.unsubscribeByKey(K)}return!1};
_.uD.prototype.unsubscribeByKey=function(K){var X=this.subscriptions_[K];if(X){var F=this.topics_[X];this.publishDepth_!=0?(this.pendingKeys_.push(K),this.subscriptions_[K+1]=function(){}):(F&&_.CO(F,K),delete this.subscriptions_[K],delete this.subscriptions_[K+1],delete this.subscriptions_[K+2])}return!!X};
_.uD.prototype.publish=function(K,X){var F=this.topics_[K];if(F){var P=Array(arguments.length-1),H=arguments.length,f;for(f=1;f<H;f++)P[f-1]=arguments[f];if(this.async_)for(f=0;f<F.length;f++)H=F[f],YUO(this.subscriptions_[H+1],this.subscriptions_[H+2],P);else{this.publishDepth_++;try{for(f=0,H=F.length;f<H&&!this.isDisposed();f++){var u=F[f];this.subscriptions_[u+1].apply(this.subscriptions_[u+2],P)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;F=this.pendingKeys_.pop();)this.unsubscribeByKey(F)}}return f!=
0}return!1};
var YUO=function(K,X,F){_.Jr(function(){K.apply(X,F)})};
_.uD.prototype.clear=function(K){if(K){var X=this.topics_[K];X&&(X.forEach(this.unsubscribeByKey,this),delete this.topics_[K])}else this.subscriptions_.length=0,this.topics_={}};
_.uD.prototype.getCount=function(K){if(K){var X=this.topics_[K];return X?X.length:0}K=0;for(X in this.topics_)K+=this.getCount(X);return K};
_.uD.prototype.disposeInternal=function(){_.uD.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var wnd=new _.uD;var KQ=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(KQ,_.Gm);KQ.prototype.getColdHashData=function(){return _.BL(this,3)};
KQ.prototype.getHotHashData=function(){return _.BL(this,5)};
KQ.prototype.setHotHashData=function(K){return _.Qf(this,5,K)};var BbP=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(BbP,_.Gm);var ba4=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(ba4,_.Gm);_.z=ba4.prototype;_.z.getDeviceId=function(){return _.BL(this,6)};
_.z.getExperimentIds=function(K){var X=_.BJ(this,9,_.Aw,3,!0);vN(X,K);return X[K]};
_.z.getPlayerType=function(){return _.S3(this,36)};
_.z.setHomeGroupInfo=function(K){return _.Fw(this,81,K)};
_.z.clearLocationPlayabilityToken=function(){return _.kS(this,89)};var qF=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(qF,_.Gm);qF.prototype.setKey=function(K){return _.Qf(this,1,K)};
qF.prototype.getValue=function(){return LM(this,2,NlP)};
var NlP=[2,3,4,5,6];var QtE=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(QtE,_.Gm);QtE.prototype.setTrackingParams=function(K){return _.kS(this,1,_.lu(K,!1))};var CbO=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(CbO,_.Gm);var Lbl=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(Lbl,_.Gm);Lbl.prototype.getExperimentIds=function(K){var X=_.BJ(this,5,_.jk,3,!0);vN(X,K);return X[K]};var Qy=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(Qy,_.Gm);Qy.prototype.getToken=function(){return _.Mg(this,2)};
Qy.prototype.setToken=function(K){return _.Qf(this,2,K)};var ZW=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(ZW,_.Gm);ZW.prototype.setSafetyMode=function(K){return _.It(this,5,K)};var uy=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(uy,_.Gm);uy.prototype.setClient=function(K){return _.Fw(this,1,K)};var oXP={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 Ssy;_.p$=function(){var K=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.FP.addEventListener("beforeinstallprompt",function(X){X.preventDefault();K.deferredInstallPrompt=X});
_.FP.addEventListener("appinstalled",function(){K.appInstalledEventFired=!0},{once:!0})};
Ssy=function(){if(!_.FP.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.FP.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.FP.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.FP.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.FP.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(K){return"WEB_DISPLAY_MODE_UNKNOWN"}};var Acy=function(){this.syncHeaders=!0},j79=function(K){var X={},F=[];
"USER_SESSION_ID"in _.Wd&&F.push({key:"u",value:_.e8("USER_SESSION_ID")});if(F=Cjd(F))X.Authorization=F,F=K=K==null?void 0:K.sessionIndex,F===void 0&&(F=Number(_.e8("SESSION_INDEX",0)),F=isNaN(F)?0:F),_.S("voice_search_auth_header_removal")||(X["X-Goog-AuthUser"]=F.toString()),"INNERTUBE_HOST_OVERRIDE"in _.Wd||(X["X-Origin"]=window.location.origin),K===void 0&&"DELEGATED_SESSION_ID"in _.Wd&&(X["X-Goog-PageId"]=_.e8("DELEGATED_SESSION_ID"));return X};var MpC={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var V2=_.mz("ytglobal.prefsUserPrefsPrefs_")||{},nSL;_.gS("ytglobal.prefsUserPrefsPrefs_",V2);_.gR=function(){this.cookieName=_.e8("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.e8("ALT_PREF_COOKIE_DOMAIN","youtube.com");var K=_.Jv.get(this.cookieName,void 0);K&&this.parse(K)};
_.ZO=function(){nSL||(nSL=new _.gR);return nSL};
_.gR.prototype.get=function(K,X){cvL(K);pmL(K);K=V2[K]!==void 0?V2[K].toString():null;return K!=null?K:X?X:""};
_.gR.prototype.set=function(K,X){cvL(K);pmL(K);if(X==null)throw Error("Fc");V2[K]=X.toString()};
_.gR.prototype.getFlag=function(K){return!!((BSQ("f"+(Math.floor(K/31)+1))||0)&1<<K%31)};
_.YX=function(K,X,F){K="f"+(Math.floor(X/31)+1);X=1<<X%31;var P=BSQ(K)||0;P=F?P|X:P&~X;P===0?delete V2[K]:(F=P.toString(16),V2[K]=F.toString())};
_.gR.prototype.remove=function(K){cvL(K);pmL(K);delete V2[K]};
_.gR.prototype.save=function(){var K=!0;_.S("web_secure_pref_cookie_killswitch")&&(K=!1);_.Zr(this.cookieName,this.dump(),63072E3,this.cookieDomain,K)};
_.gR.prototype.clear=function(){_.T8.clear(V2)};
_.gR.prototype.dump=function(){var K=[],X;for(X in V2)V2.hasOwnProperty(X)&&K.push(X+"="+encodeURIComponent(String(V2[X])));return K.join("&")};
var pmL=function(K){if(/^f([1-9][0-9]*)$/.test(K))throw Error("Gc`"+K);},cvL=function(K){if(!/^\w+$/.test(K))throw Error("Hc`"+K);
},BSQ=function(K){K=V2[K]!==void 0?V2[K].toString():null;
return K!=null&&/^[A-Fa-f0-9]+$/.test(K)?parseInt(K,16):null};
_.gR.prototype.parse=function(K){K=decodeURIComponent(K).split("&");for(var X=0;X<K.length;X++){var F=K[X].split("="),P=F[0];(F=F[1])&&(V2[P]=F.toString())}};var QJl={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"},Tbq={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},rcd={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},nr3={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var iH;_.Eh=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.cu=function(K,X,F){return K.addJob(X,0,F)};
_.Eh.prototype.addLowPriorityJob=function(K,X){return this.addJob(K,1,X)};
_.u6=function(K,X,F){return K.addJob(X,2,F)};
_.QW=function(K,X,F){return K.addJob(X,3,F)};
_.xO=function(K,X,F){return K.addJob(X,4,F)};
iH=function(K){var X=_.mz("yt.scheduler.instance.addImmediateJob");X?X(K):K()};
_.Eh.prototype.debounce=function(K,X,F){var P=this,H=0,f=function(){H&&P.cancelJob(H);H=P.addJob(K,X,F);P.cancelDebouncedJobMap.set(f,H)};
return f};
_.Eh.prototype.cancelThrottle=function(K){(K=this.cancelThrottledJobMap.get(K))&&K()};var bR=function(){_.Eh.apply(this,arguments)};
_.r(bR,_.Eh);_.Bj=function(){bR.instance||(bR.instance=new bR);return bR.instance};
bR.prototype.addJob=function(K,X,F){F!==void 0&&Number.isNaN(Number(F))&&(F=void 0);var P=_.mz("yt.scheduler.instance.addJob");return P?P(K,X,F):F===void 0?(K(),NaN):_.Pm(K,F||0)};
bR.prototype.cancelJob=function(K){if(K===void 0||!Number.isNaN(Number(K))){var X=_.mz("yt.scheduler.instance.cancelJob");X?X(K):_.sU(K)}};
bR.prototype.start=function(){var K=_.mz("yt.scheduler.instance.start");K&&K()};
bR.prototype.pause=function(){var K=_.mz("yt.scheduler.instance.pause");K&&K()};
_.A9=_.Bj();_.cm.prototype.set=function(K,X){X===void 0?this.mechanism.remove(K):this.mechanism.set(K,(0,_.nu)(X))};
_.cm.prototype.get=function(K){try{var X=this.mechanism.get(K)}catch(F){return}if(X!==null)try{return JSON.parse(X)}catch(F){throw"Storage: Invalid value was encountered";}};
_.cm.prototype.remove=function(K){this.mechanism.remove(K)};var C1=function(K){this.mechanism=K};
_.br(C1,_.cm);var SUC=function(K){this.data=K},oSL=function(K){return K===void 0||K instanceof SUC?K:new SUC(K)};
C1.prototype.set=function(K,X){C1.superClass_.set.call(this,K,oSL(X))};
C1.prototype.getWrapper=function(K){K=C1.superClass_.get.call(this,K);if(K===void 0||K instanceof Object)return K;throw"Storage: Invalid value was encountered";};
C1.prototype.get=function(K){if(K=this.getWrapper(K)){if(K=K.data,K===void 0)throw"Storage: Invalid value was encountered";}else K=void 0;return K};_.br(pG,C1);_.LSQ=function(K){var X=K.creation;K=K.expiration;return!!K&&K<_.E$()||!!X&&X>_.E$()};
pG.prototype.set=function(K,X,F){if(X=oSL(X)){if(F){if(F<_.E$()){pG.prototype.remove.call(this,K);return}X.expiration=F}X.creation=_.E$()}pG.superClass_.set.call(this,K,X)};
pG.prototype.getWrapper=function(K,X){var F=pG.superClass_.getWrapper.call(this,K);if(F)if(!X&&_.LSQ(F))pG.prototype.remove.call(this,K);else return F};var NE=function(){};
NE.prototype.next=function(){return iR};
var iR={done:!0,value:void 0},x0=function(K){return{value:K,done:!1}};
NE.prototype.__iterator__=function(){return this};
_.TSZ=function(K){if(K instanceof NE)return K;if(typeof K.__iterator__=="function")return K.__iterator__(!1);if(_.xd(K)){var X=0,F=new NE;F.next=function(){for(;;){if(X>=K.length)return iR;if(X in K)return x0(K[X++]);X++}};
return F}throw Error("Ic");};var rvL=function(K){if(K instanceof I5||K instanceof k0||K instanceof Kw)return K;if(typeof K.next=="function")return new I5(function(){return K});
if(typeof K[Symbol.iterator]=="function")return new I5(function(){return K[Symbol.iterator]()});
if(typeof K.__iterator__=="function")return new I5(function(){return K.__iterator__()});
throw Error("Jc");},I5=function(K){this.func_=K};
I5.prototype.__iterator__=function(){return new k0(this.func_())};
I5.prototype[Symbol.iterator]=function(){return new Kw(this.func_())};
I5.prototype.toEs6=function(){return new Kw(this.func_())};
var k0=function(K){this.JSC$8530_iter_=K};
_.r(k0,NE);k0.prototype.next=function(){return this.JSC$8530_iter_.next()};
k0.prototype[Symbol.iterator]=function(){return new Kw(this.JSC$8530_iter_)};
k0.prototype.toEs6=function(){return new Kw(this.JSC$8530_iter_)};
var Kw=function(K){I5.call(this,function(){return K});
this.JSC$8533_iter_=K};
_.r(Kw,I5);Kw.prototype.next=function(){return this.JSC$8533_iter_.next()};var AvO=function(){};var Xr=function(){};
_.br(Xr,AvO);Xr.prototype.getCount=function(){for(var K=0,X=_.D(this),F=X.next();!F.done;F=X.next())K++;return K};
Xr.prototype[Symbol.iterator]=function(){return rvL(this.__iterator__(!0)).toEs6()};
Xr.prototype.clear=function(){var K=Array.from(this);K=_.D(K);for(var X=K.next();!X.done;X=K.next())this.remove(X.value)};_.br(Bm,Xr);_.z=Bm.prototype;_.z.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var K=this.storage_;if(K)try{K.setItem("__sak","1");K.removeItem("__sak");var X=!0}catch(F){X=F instanceof DOMException&&(F.name==="QuotaExceededError"||F.code===22||F.code===1014||F.name==="NS_ERROR_DOM_QUOTA_REACHED")&&K&&K.length!==0}else X=!1;this.cachedIsStorageAvailable_=X}return this.cachedIsStorageAvailable_};
_.z.set=function(K,X){Fr(this);try{this.storage_.setItem(K,X)}catch(F){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.z.get=function(K){Fr(this);K=this.storage_.getItem(K);if(typeof K!=="string"&&K!==null)throw"Storage mechanism: Invalid value was encountered";return K};
_.z.remove=function(K){Fr(this);this.storage_.removeItem(K)};
_.z.getCount=function(){Fr(this);return this.storage_.length};
_.z.__iterator__=function(K){Fr(this);var X=0,F=this.storage_,P=new NE;P.next=function(){if(X>=F.length)return iR;var H=F.key(X++);if(K)return x0(H);H=F.getItem(H);if(typeof H!=="string")throw"Storage mechanism: Invalid value was encountered";return x0(H)};
return P};
_.z.clear=function(){Fr(this);this.storage_.clear()};
_.z.key=function(K){Fr(this);return this.storage_.key(K)};
var Fr=function(K){if(K.storage_==null)throw Error("Kc");K.isAvailable()||Py(Error("Kc"))};_.br(pg3,Bm);_.br(B_3,Bm);_.br(Sp,Xr);Sp.prototype.set=function(K,X){this.mechanism_.set(this.JSC$8548_prefix_+K,X)};
Sp.prototype.get=function(K){return this.mechanism_.get(this.JSC$8548_prefix_+K)};
Sp.prototype.remove=function(K){this.mechanism_.remove(this.JSC$8548_prefix_+K)};
Sp.prototype.__iterator__=function(K){var X=this.mechanism_[Symbol.iterator](),F=this,P=new NE;P.next=function(){var H=X.next();if(H.done)return H;for(H=H.value;H.slice(0,F.JSC$8548_prefix_.length)!=F.JSC$8548_prefix_;){H=X.next();if(H.done)return H;H=H.value}return x0(K?H.slice(F.JSC$8548_prefix_.length):F.mechanism_.get(H))};
return P};_.dG=function(K){this.expiringStorage_=(K=_.ScO(K))?new pG(K):null;this.JSC$8552_domain_=document.domain||window.location.hostname};
_.dG.prototype.set=function(K,X,F,P){F=F||31104E3;this.remove(K);if(this.expiringStorage_)try{this.expiringStorage_.set(K,X,Date.now()+F*1E3);return}catch(f){}var H="";if(P)try{H=escape((0,_.nu)(X))}catch(f){return}else H=escape(X);_.Zr(K,H,F,this.JSC$8552_domain_)};
_.dG.prototype.get=function(K,X){var F=void 0,P=!this.expiringStorage_;if(!P)try{F=this.expiringStorage_.get(K)}catch(H){P=!0}if(P&&(F=_.Jv.get(K,void 0))&&(F=unescape(F),X))try{F=JSON.parse(F)}catch(H){this.remove(K),F=void 0}return F};
_.dG.prototype.remove=function(K){this.expiringStorage_&&this.expiringStorage_.remove(K);_.JDP(K,"/",this.JSC$8552_domain_)};
_.dG.prototype.getCreationTime=function(K){return this.expiringStorage_&&(K=(this.expiringStorage_.getWrapper(K)||{}).creation,typeof K==="number")?K:null};var LHw=function(){var K;return function(){K||(K=new _.dG("ytidb"));return K}}();var rDy;_.Ty=[];rDy=!1;var V4q=AD3||jJy;var PT={},jtV=(PT.AUTH_INVALID="No user identifier specified.",PT.EXPLICIT_ABORT="Transaction was explicitly aborted.",PT.IDB_NOT_SUPPORTED="IndexedDB is not supported.",PT.MISSING_INDEX="Index not created.",PT.MISSING_OBJECT_STORES="Object stores not created.",PT.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",PT.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",PT.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",PT.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",PT.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",PT.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",PT.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",PT),HT={},wmL=(HT.AUTH_INVALID="ERROR",HT.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",HT.EXPLICIT_ABORT="IGNORED",
HT.IDB_NOT_SUPPORTED="ERROR",HT.MISSING_INDEX="WARNING",HT.MISSING_OBJECT_STORES="ERROR",HT.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",HT.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",HT.QUOTA_EXCEEDED="WARNING",HT.QUOTA_MAYBE_EXCEEDED="WARNING",HT.UNKNOWN_ABORT="WARNING",HT.INCOMPATIBLE_DB_VERSION="WARNING",HT),sr={},yvt=(sr.AUTH_INVALID=!1,sr.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,sr.EXPLICIT_ABORT=!1,sr.IDB_NOT_SUPPORTED=!1,sr.MISSING_INDEX=!1,sr.MISSING_OBJECT_STORES=!1,sr.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,sr.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,sr.QUOTA_EXCEEDED=!1,sr.QUOTA_MAYBE_EXCEEDED=!0,sr.UNKNOWN_ABORT=!0,sr.INCOMPATIBLE_DB_VERSION=!1,sr),Wm=function(K,X,F,P,H){X=X===void 0?{}:X;F=F===void 0?jtV[K]:F;P=P===void 0?wmL[K]:P;H=H===void 0?yvt[K]:H;_.nG.call(this,F,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:K},X));this.type=K;this.message=F;this.level=P;this.retryable=H;Object.setPrototypeOf(this,Wm.prototype)};
_.r(Wm,_.nG);var WSC=function(K,X){Wm.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:X,foundObjectStores:K},jtV.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,WSC.prototype)};
_.r(WSC,Wm);var yDO=function(K,X){var F=Error.call(this);this.message=F.message;"stack"in F&&(this.stack=F.stack);this.index=K;this.objectStore=X;Object.setPrototypeOf(this,yDO.prototype)};
_.r(yDO,Error);var WH4=["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 UU=function(K){this.executor=K},Rt=function(K){var X=this;
this.state={status:"PENDING"};this.JSC$8580_onFulfilled=[];this.JSC$8580_onRejected=[];K=K.executor;var F=function(H){if(X.state.status==="PENDING"){X.state={status:"FULFILLED",value:H};H=_.D(X.JSC$8580_onFulfilled);for(var f=H.next();!f.done;f=H.next())f=f.value,f()}},P=function(H){if(X.state.status==="PENDING"){X.state={status:"REJECTED",
reason:H};H=_.D(X.JSC$8580_onRejected);for(var f=H.next();!f.done;f=H.next())f=f.value,f()}};
try{K(F,P)}catch(H){P(H)}};
Rt.all=function(K){return new Rt(new UU(function(X,F){var P=[],H=K.length;H===0&&X(P);for(var f={i$jscomp$461:0};f.i$jscomp$461<K.length;f={i$jscomp$461:f.i$jscomp$461},++f.i$jscomp$461)Rt.resolve(K[f.i$jscomp$461]).then(function(u){return function(J){P[u.i$jscomp$461]=J;H--;H===0&&X(P)}}(f)).catch(function(u){F(u)})}))};
Rt.resolve=function(K){return new Rt(new UU(function(X,F){K instanceof Rt?K.then(X,F):X(K)}))};
Rt.reject=function(K){return new Rt(new UU(function(X,F){F(K)}))};
Rt.prototype.then=function(K,X){var F=this,P=K!=null?K:RFy,H=X!=null?X:eFP;return new Rt(new UU(function(f,u){F.state.status==="PENDING"?(F.JSC$8580_onFulfilled.push(function(){dUL(F,F,P,f,u)}),F.JSC$8580_onRejected.push(function(){eOL(F,F,H,f,u)})):F.state.status==="FULFILLED"?dUL(F,F,P,f,u):F.state.status==="REJECTED"&&eOL(F,F,H,f,u)}))};
Rt.prototype.catch=function(K){return this.then(void 0,K)};
var dUL=function(K,X,F,P,H){try{if(K.state.status!=="FULFILLED")throw Error("Nc");var f=F(K.state.value);f instanceof Rt?ROQ(K,X,f,P,H):P(f)}catch(u){H(u)}},eOL=function(K,X,F,P,H){try{if(K.state.status!=="REJECTED")throw Error("Oc");
var f=F(K.state.reason);f instanceof Rt?ROQ(K,X,f,P,H):P(f)}catch(u){H(u)}},ROQ=function(K,X,F,P,H){X===F?H(new TypeError("Pc")):F.then(function(f){f instanceof Rt?ROQ(K,X,f,P,H):P(f)},function(f){H(f)})};var zO;zO=window;_.CG=zO.ytcsi&&zO.ytcsi.now?zO.ytcsi.now:zO.performance&&zO.performance.timing&&zO.performance.now&&zO.performance.timing.navigationStart?function(){return zO.performance.timing.navigationStart+zO.performance.now()}:function(){return(new Date).getTime()};var mS=function(K,X){this.JSC$8592_wrapped=K;this.options=X;this.transactionCount=0;this.startedMs=Math.round((0,_.CG)());this.hasUnknownAbortedTransaction=!1},mUZ,GyW,uz,aru;
mS.prototype.add=function(K,X,F){return _.at(this,[K],{mode:"readwrite",enableRetries:!0},function(P){return P.objectStore(K).add(X,F)})};
mS.prototype.clear=function(K){return _.at(this,[K],{mode:"readwrite",enableRetries:!0},function(X){return X.objectStore(K).clear()})};
mS.prototype.close=function(){this.JSC$8592_wrapped.close();var K;((K=this.options)==null?0:K.closed)&&this.options.closed()};
mS.prototype.count=function(K,X){return _.at(this,[K],{mode:"readonly",enableRetries:!0},function(F){return F.objectStore(K).count(X)})};
var Ra=function(K,X,F){K=K.JSC$8592_wrapped.createObjectStore(X,F);return new fw(K)};
mS.prototype.delete=function(K,X){return _.at(this,[K],{mode:"readwrite",enableRetries:!0},function(F){return F.objectStore(K).delete(X)})};
var UUE=function(K,X){return _.at(K,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(F){return F.objectStore("ResponseStore").index("byInterface").delete(X)})};
mS.prototype.get=function(K,X){return _.at(this,[K],{mode:"readonly",enableRetries:!0},function(F){return F.objectStore(K).get(X)})};
mS.prototype.getAll=function(K,X,F){return _.at(this,[K],{mode:"readonly",enableRetries:!0},function(P){return P.objectStore(K).getAll(X,F)})};
mS.prototype.put=function(K,X,F){return _.at(this,[K],{mode:"readwrite",enableRetries:!0},function(P){return P.objectStore(K).put(X,F)})};
mS.prototype.objectStoreNames=function(){return Array.from(this.JSC$8592_wrapped.objectStoreNames)};
_.at=function(K,X,F,P){var H,f,u,J,Z,M,n,c,B,L,A,d;return _.q(function(R){switch(R.nextAddress){case 1:var l={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof F==="string"?l.mode=F:Object.assign(l,F);H=l;K.transactionCount++;f=H.enableRetries?3:1;u=0;case 2:if(J){R.jumpTo(4);break}u++;Z=Math.round((0,_.CG)());_.s2(R,5);M=K.JSC$8592_wrapped.transaction(X,H.mode);l=new GYl(M);l=hOW(l,P);return _.Y(R,l,7);case 7:return n=R.yieldResult,c=Math.round((0,_.CG)()),mUZ(K,Z,c,u,void 0,
X.join(),H),R.return(n);case 5:B=_.qc(R);L=Math.round((0,_.CG)());A=d$4(B,K.JSC$8592_wrapped.name,X.join(),K.JSC$8592_wrapped.version);if((d=A instanceof Wm&&!A.retryable)||u>=f)mUZ(K,Z,L,u,A,X.join(),H),J=A;R.jumpTo(2);break;case 4:return R.return(Promise.reject(J))}})};
mUZ=function(K,X,F,P,H,f,u){X=F-X;H?(H instanceof Wm&&(H.type==="QUOTA_EXCEEDED"||H.type==="QUOTA_MAYBE_EXCEEDED")&&Av("QUOTA_EXCEEDED",{dbName:wS(K.JSC$8592_wrapped.name),objectStoreNames:f,transactionCount:K.transactionCount,transactionMode:u.mode}),H instanceof Wm&&H.type==="UNKNOWN_ABORT"&&(F-=K.startedMs,F<0&&F>=2147483648&&(F=0),Av("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:X,transactionCount:K.transactionCount,dbDuration:F}),K.hasUnknownAbortedTransaction=!0),
GyW(K,!1,P,f,X,u.tag),_.rS(H)):GyW(K,!0,P,f,X,u.tag)};
GyW=function(K,X,F,P,H,f){Av("TRANSACTION_ENDED",{objectStoreNames:P,connectionHasUnknownAbortedTransaction:K.hasUnknownAbortedTransaction,duration:H,isSuccessful:X,tryCount:F,tag:f===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
mS.prototype.getVersion=function(){return this.JSC$8592_wrapped.version};
mS.prototype.getName=function(){return this.JSC$8592_wrapped.name};
var fw=function(K){this.JSC$8607_wrapped=K};
fw.prototype.add=function(K,X){return hv(this.JSC$8607_wrapped.add(K,X))};
fw.prototype.autoIncrement=function(){return this.JSC$8607_wrapped.autoIncrement};
fw.prototype.clear=function(){return hv(this.JSC$8607_wrapped.clear()).then(function(){})};
var UM=function(K,X,F){K.JSC$8607_wrapped.createIndex(X,F,{unique:!1})};
fw.prototype.count=function(K){return hv(this.JSC$8607_wrapped.count(K))};
var lrC=function(K,X){return $S(K,{query:X},function(F){return F.delete().then(function(){return F.continue()})}).then(function(){})};
fw.prototype.delete=function(K){return K instanceof IDBKeyRange?lrC(this,K):hv(this.JSC$8607_wrapped.delete(K))};
fw.prototype.get=function(K){return hv(this.JSC$8607_wrapped.get(K))};
fw.prototype.getAll=function(K,X){return"getAll"in IDBObjectStore.prototype?hv(this.JSC$8607_wrapped.getAll(K,X)):vSW(this,K,X)};
var vSW=function(K,X,F){var P=[];return $S(K,{query:X},function(H){if(!(F!==void 0&&P.length>=F))return P.push(H.getValue()),H.continue()}).then(function(){return P})};
fw.prototype.index=function(K){try{return new D1(this.JSC$8607_wrapped.index(K))}catch(X){if(X instanceof Error&&X.name==="NotFoundError")throw new yDO(K,this.JSC$8607_wrapped.name);throw X;}};
fw.prototype.getName=function(){return this.JSC$8607_wrapped.name};
fw.prototype.keyPath=function(){return this.JSC$8607_wrapped.keyPath};
fw.prototype.put=function(K,X){return hv(this.JSC$8607_wrapped.put(K,X))};
var $S=function(K,X,F){K=K.JSC$8607_wrapped.openCursor(X.query,X.direction);return aru(K).then(function(P){return m$4(P,F)})},GYl=function(K){var X=this;
this.JSC$8615_wrapped=K;this.objectStoreCache=new Map;this.JSC$8615_aborted=!1;this.done=new Promise(function(F,P){X.JSC$8615_wrapped.addEventListener("complete",function(){F()});
X.JSC$8615_wrapped.addEventListener("error",function(H){H.currentTarget===H.target&&P(X.JSC$8615_wrapped.error)});
X.JSC$8615_wrapped.addEventListener("abort",function(){var H=X.JSC$8615_wrapped.error;if(H)P(H);else if(!X.JSC$8615_aborted){H=Wm;for(var f=X.JSC$8615_wrapped.objectStoreNames,u=[],J=0;J<f.length;J++){var Z=f.item(J);if(Z===null)throw Error("Qc");u.push(Z)}H=new H("UNKNOWN_ABORT",{objectStoreNames:u.join(),dbName:X.JSC$8615_wrapped.db.name,mode:X.JSC$8615_wrapped.mode});P(H)}})})},hOW=function(K,X){var F=new Promise(function(P,H){try{X(K).then(function(f){P(f)}).catch(H)}catch(f){H(f),K.abort()}});
return Promise.all([F,K.done]).then(function(P){return _.D(P).next().value})};
GYl.prototype.abort=function(){this.JSC$8615_wrapped.abort();this.JSC$8615_aborted=!0;throw new Wm("EXPLICIT_ABORT");};
GYl.prototype.objectStore=function(K){K=this.JSC$8615_wrapped.objectStore(K);var X=this.objectStoreCache.get(K);X||(X=new fw(K),this.objectStoreCache.set(K,X));return X};
var D1=function(K){this.JSC$8617_wrapped=K};
D1.prototype.count=function(K){return hv(this.JSC$8617_wrapped.count(K))};
D1.prototype.delete=function(K){return _.NU(this,{query:K},function(X){return X.delete().then(function(){return X.continue()})})};
D1.prototype.get=function(K){return hv(this.JSC$8617_wrapped.get(K))};
D1.prototype.getAll=function(K,X){return"getAll"in IDBIndex.prototype?hv(this.JSC$8617_wrapped.getAll(K,X)):tpE(this,K,X)};
var tpE=function(K,X,F){var P=[];return _.NU(K,{query:X},function(H){if(!(F!==void 0&&P.length>=F))return P.push(H.getValue()),H.continue()}).then(function(){return P})};
D1.prototype.keyPath=function(){return this.JSC$8617_wrapped.keyPath};
D1.prototype.unique=function(){return this.JSC$8617_wrapped.unique};
_.NU=function(K,X,F){K=K.JSC$8617_wrapped.openCursor(X.query===void 0?null:X.query,X.direction===void 0?"next":X.direction);return aru(K).then(function(P){return m$4(P,F)})};
uz=function(K,X){this.request=K;this.cursor=X};
aru=function(K){return hv(K).then(function(X){return X?new uz(K,X):null})};
uz.prototype.continue=function(K){this.cursor.continue(K);return aru(this.request)};
uz.prototype.delete=function(){return hv(this.cursor.delete()).then(function(){})};
uz.prototype.getValue=function(){return this.cursor.value};
uz.prototype.update=function(K){return hv(this.cursor.update(K))};var qO=function(K,X){this.name=K;this.options=X;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},$UT;
qO.prototype.openDb=function(K,X,F){F=F===void 0?{}:F;return vr4(K,X,F)};
qO.prototype.delete=function(K){K=K===void 0?{}:K;return _.lD(this.name,K)};
$UT=function(K,X){return new Wm("INCOMPATIBLE_DB_VERSION",{dbName:K.name,oldVersion:K.options.version,newVersion:X})};
_.vm=function(K,X){if(!X)throw ep("openWithToken",wS(K.name));return K.open()};
qO.prototype.open=function(){var K=this;if(!this.isCompatible)throw $UT(this);if(this.connectionPromise)return this.connectionPromise;var X,F=function(){K.connectionPromise===X&&(K.connectionPromise=void 0)},P={blocking:function(f){f.close()},
closed:F,terminated:F,upgrade:this.options.upgrade},H=function(){var f,u,J,Z,M,n,c,B,L,A;return _.q(function(d){switch(d.nextAddress){case 1:return u=(f=Error().stack)!=null?f:"",_.s2(d,2),_.Y(d,K.openDb(K.name,K.options.version,P),4);case 4:for(var R=J=d.yieldResult,l=K.options,a=[],E=_.D(Object.keys(l.objectStores)),V=E.next();!V.done;V=E.next()){V=V.value;var x=l.objectStores[V],N=x.removedAtVersion===void 0?Number.MAX_VALUE:x.removedAtVersion;!(R.JSC$8592_wrapped.version>=x.addedAtVersion)||R.JSC$8592_wrapped.version>=
N||R.JSC$8592_wrapped.objectStoreNames.contains(V)||a.push(V)}Z=a;if(Z.length===0){d.jumpTo(5);break}M=Object.keys(K.options.objectStores);n=J.objectStoreNames();if(K.timesReopenedToFixMissingObjectStore<_.kU("ytidb_reopen_db_retries",0))return K.timesReopenedToFixMissingObjectStore++,J.close(),_.rS(new Wm("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:K.name,expectedObjectStores:M,foundObjectStores:n})),d.return(H());if(!(K.timesDeletedToFixMissingObjectStore<_.kU("ytidb_remake_db_retries",1))){d.jumpTo(6);
break}K.timesDeletedToFixMissingObjectStore++;return _.Y(d,K.delete(),7);case 7:return _.rS(new Wm("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:K.name,expectedObjectStores:M,foundObjectStores:n})),d.return(H());case 6:throw new WSC(n,M);case 5:return d.return(J);case 2:c=_.qc(d);if(c instanceof DOMException?c.name!=="VersionError":"DOMError"in self&&c instanceof DOMError?c.name!=="VersionError":!(c instanceof Object&&"message"in c)||c.message!=="An attempt was made to open a database using a lower version than the existing version."){d.jumpTo(8);
break}return _.Y(d,K.openDb(K.name,void 0,Object.assign({},P,{upgrade:void 0})),9);case 9:B=d.yieldResult;L=B.getVersion();if(K.options.version!==void 0&&L>K.options.version+1)throw B.close(),K.isCompatible=!1,$UT(K,L);return d.return(B);case 8:throw F(),c instanceof Error&&!_.S("ytidb_async_stack_killswitch")&&(c.stack=c.stack+"\n"+u.substring(u.indexOf("\n")+1)),d$4(c,K.name,"",(A=K.options.version)!=null?A:-1);}})};
return this.connectionPromise=X=H()};var avy=new qO("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(K,X){X(1)&&Ra(K,"databases",{keyPath:"actualName"})}});var byy,gr3=new function(){}(new function(){});new _.K$;var OGu=function(K,X){qO.call(this,K,X);this.options=X;jp(K)};
_.r(OGu,qO);var PYP=function(K,X){var F;return function(){F||(F=new OGu(K,X));return F}};
OGu.prototype.openDb=function(K,X,F){F=F===void 0?{}:F;return(this.options.shared?IvP:x$y)(K,X,Object.assign({},F))};
OGu.prototype.delete=function(K){K=K===void 0?{}:K;return(this.options.shared?Fbn:kY9)(this.name,K)};var VpC={},Hl3=bD("ytGcfConfig",{objectStores:(VpC.coldConfigStore={addedAtVersion:1},VpC.hotConfigStore={addedAtVersion:1},VpC),shared:!1,upgrade:function(K,X){X(1)&&(UM(Ra(K,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),UM(Ra(K,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var gSZ=function(){_.LJ.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var K=_.mz("yt.gcf.config.hotUpdateCallbacks");K?(this.localHotConfigJobQueue=[].concat(_.LZ(K)),this.sharedHotConfigJobQueue=K):(this.sharedHotConfigJobQueue=[],_.gS("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.r(gSZ,_.LJ);gSZ.prototype.disposeInternal=function(){for(var K=_.D(this.localHotConfigJobQueue),X=K.next();!X.done;X=K.next()){var F=this.sharedHotConfigJobQueue;X=F.indexOf(X.value);X>=0&&F.splice(X,1)}this.localHotConfigJobQueue.length=0;_.LJ.prototype.disposeInternal.call(this)};var pL=function(){var K=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new gSZ;this.TEST_ONLY={initializeConfigDb:function(){K.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return K.coldGlobalConfigGroup},
setHotConfigGroup:function(X){ESO(K,X)},
setHotHashData:function(X){K.setHotHashData(X)},
setColdConfigGroup:function(X){bGC(K,X)},
getColdHashData:function(){return K.coldHashData},
getHotHashData:function(){return K.hotHashData},
getHotConfigGroup:function(){return K.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return CDL()},
getExportedHotConfigGroup:function(){return JK()},
getExportedColdHashData:function(){return _.mz("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.mz("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){NST(K)},
resetInstance:function(){K.setHotHashData(void 0);iGO(K);delete pL.instance},
setDebounceTimer:function(X){K.debounceTimer=X},
getDebounceTimer:function(){return K.debounceTimer}}},xUO=function(){if(!pL.instance){var K=new pL;
pL.instance=K}return pL.instance},K3U=function(K){var X;
_.q(function(F){if(F.nextAddress==1)return _.S("start_client_gcf")||_.S("delete_gcf_config_db")?_.S("start_client_gcf")?_.Y(F,_.EU(),3):F.jumpTo(2):F.return();F.nextAddress!=2&&((X=F.yieldResult)&&_.MU()&&!_.S("delete_gcf_config_db")?(K.isConfigDbInitialized=!0,NST(K)):(IrE(K),kyU(K)));return _.S("delete_gcf_config_db")?_.Y(F,qsP(),0):F.jumpTo(0)})},JYn=function(){var K;
return(K=JK())!=null?K:_.e8("RAW_HOT_CONFIG_GROUP")},XEE=function(K){var X,F,P,H,f,u;
return _.q(function(J){switch(J.nextAddress){case 1:if(K.hotGlobalConfigGroup)return J.return(JK());if(!K.isConfigDbInitialized)return X=ep("getHotConfig IDB not initialized"),_.Gr(X),J.return(Promise.reject(X));F=Vq();P=_.e8("TIME_CREATED_MS");if(!F){H=ep("getHotConfig token error");_.Gr(H);J.jumpTo(2);break}return _.Y(J,u0O(F),3);case 3:if((f=J.yieldResult)&&f.timestamp>P)return ESO(K,f.config),K.setHotHashData(f.hashData),J.return(JK());case 2:kyU(K);if(!(F&&K.hotGlobalConfigGroup&&K.hotHashData)){J.jumpTo(4);
break}return _.Y(J,z3O(K.hotGlobalConfigGroup,K.hotHashData,F,P),4);case 4:return K.hotGlobalConfigGroup?J.return(JK()):(u=new _.nG("Config not available in ytConfig"),_.Gr(u),J.return(Promise.reject(u)))}})},PUt=function(K){var X,F,P,H,f,u;
return _.q(function(J){switch(J.nextAddress){case 1:if(K.coldGlobalConfigGroup)return J.return(CDL());if(!K.isConfigDbInitialized)return X=ep("getColdConfig IDB not initialized"),_.Gr(X),J.return(Promise.reject(X));F=Vq();P=_.e8("TIME_CREATED_MS");if(!F){H=ep("getColdConfig");_.Gr(H);J.jumpTo(2);break}return _.Y(J,Dm3(F),3);case 3:if((f=J.yieldResult)&&f.timestamp>P)return bGC(K,f.config),F3E(K,f.configData),iGO(K,f.hashData),J.return(CDL());case 2:IrE(K);if(!(F&&K.coldGlobalConfigGroup&&K.coldHashData&&
K.configData)){J.jumpTo(4);break}return _.Y(J,fOd(K.coldGlobalConfigGroup,K.coldHashData,K.configData,F,P),4);case 4:return K.coldGlobalConfigGroup?J.return(CDL()):(u=new _.nG("Config not available in ytConfig"),_.Gr(u),J.return(Promise.reject(u)))}})},NST=function(K){if(!K.hotGlobalConfigGroup||!K.coldGlobalConfigGroup){if(!Vq()){var X=ep("scheduleGetConfigs");
_.Gr(X)}K.initJob||(K.initJob=_.A9.addLowPriorityJob(function(){return _.q(function(F){switch(F.nextAddress){case 1:return _.s2(F,2),_.Y(F,XEE(K),4);case 4:_.Gy(F,3);break;case 2:_.qc(F);case 3:return _.s2(F,5),_.Y(F,PUt(K),7);case 7:_.Gy(F,6);break;case 5:_.qc(F);case 6:K.initJob&&(K.initJob=0),_.JT(F)}})},100))}},zcy=function(K,X,F){var P,H,f;
return _.q(function(u){switch(u.nextAddress){case 1:if(!_.S("start_client_gcf")){u.jumpTo(0);break}F&&ESO(K,F);K.setHotHashData(X);P=Vq();if(!P){u.jumpTo(3);break}if(F){u.jumpTo(4);break}return _.Y(u,u0O(P),5);case 5:H=u.yieldResult,F=(f=H)==null?void 0:f.config;case 4:return _.Y(u,z3O(F,X,P),3);case 3:if(F)for(var J=F,Z=_.D(K.configUpdateService.sharedHotConfigJobQueue),M=Z.next();!M.done;M=Z.next())M=M.value,M(J);_.JT(u)}})},faM=function(K,X,F){var P,H,f,u;
return _.q(function(J){if(J.nextAddress==1){if(!_.S("start_client_gcf"))return J.jumpTo(0);iGO(K,X);return(P=Vq())?F?J.jumpTo(4):_.Y(J,Dm3(P),5):J.jumpTo(0)}J.nextAddress!=4&&(H=J.yieldResult,F=(f=H)==null?void 0:f.config);if(!F)return J.jumpTo(0);u=F.configData;return _.Y(J,fOd(F,X,u,P),0)})},ycd=function(){var K=xUO(),X=(0,_.CG)()-K.debounceTimer;
if(!(K.debounceTimer!==0&&X<_.kU("send_config_hash_timer"))){X=_.mz("yt.gcf.config.coldConfigData");var F=_.mz("yt.gcf.config.hotHashData"),P=_.mz("yt.gcf.config.coldHashData");X&&F&&P&&(K.debounceTimer=(0,_.CG)());return{coldConfigData:X,hotHashData:F,coldHashData:P}}},IrE=function(K){bGC(K,_.e8("RAW_COLD_CONFIG_GROUP"));
iGO(K,_.e8("SERIALIZED_COLD_HASH_DATA"));var X;F3E(K,(X=K.coldGlobalConfigGroup)==null?void 0:X.configData)},kyU=function(K){ESO(K,_.e8("RAW_HOT_CONFIG_GROUP"));
K.setHotHashData(_.e8("SERIALIZED_HOT_HASH_DATA"))},ESO=function(K,X){K.hotGlobalConfigGroup=X;
_.gS("yt.gcf.config.hotConfigGroup",K.hotGlobalConfigGroup||null)},bGC=function(K,X){K.coldGlobalConfigGroup=X;
_.gS("yt.gcf.config.coldConfigGroup",K.coldGlobalConfigGroup||null)};
pL.prototype.setHotHashData=function(K){this.hotHashData=K;_.gS("yt.gcf.config.hotHashData",this.hotHashData||null)};
var iGO=function(K,X){K.coldHashData=X;_.gS("yt.gcf.config.coldHashData",K.coldHashData||null)},F3E=function(K,X){K.configData=X;
_.gS("yt.gcf.config.coldConfigData",K.configData||null)},JK=function(){return _.mz("yt.gcf.config.hotConfigGroup")},CDL=function(){return _.mz("yt.gcf.config.coldConfigGroup")};var sM={},HQZ=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";sM.assign=function(K){for(var X=Array.prototype.slice.call(arguments,1);X.length;){var F=X.shift();if(F){if(typeof F!=="object")throw new TypeError("Tc`"+F);for(var P in F)Object.prototype.hasOwnProperty.call(F,P)&&(K[P]=F[P])}}return K};
sM.shrinkBuf=function(K,X){if(K.length===X)return K;if(K.subarray)return K.subarray(0,X);K.length=X;return K};
var sat={arraySet:function(K,X,F,P,H){if(X.subarray&&K.subarray)K.set(X.subarray(F,F+P),H);else for(var f=0;f<P;f++)K[H+f]=X[F+f]},
flattenChunks:function(K){var X,F;var P=F=0;for(X=K.length;P<X;P++)F+=K[P].length;var H=new Uint8Array(F);P=F=0;for(X=K.length;P<X;P++){var f=K[P];H.set(f,F);F+=f.length}return H}},zEE={arraySet:function(K,X,F,P,H){for(var f=0;f<P;f++)K[H+f]=X[F+f]},
flattenChunks:function(K){return[].concat.apply([],K)}};
sM.setTyped=function(){HQZ?(sM.Buf8=Uint8Array,sM.Buf16=Uint16Array,sM.Buf32=Int32Array,sM.assign(sM,sat)):(sM.Buf8=Array,sM.Buf16=Array,sM.Buf32=Array,sM.assign(sM,zEE))};
sM.setTyped();var fTW=!0;try{new Uint8Array(1)}catch(K){fTW=!1}
var uFd=function(K){var X,F,P=K.length,H=0;for(X=0;X<P;X++){var f=K.charCodeAt(X);if((f&64512)===55296&&X+1<P){var u=K.charCodeAt(X+1);(u&64512)===56320&&(f=65536+(f-55296<<10)+(u-56320),X++)}H+=f<128?1:f<2048?2:f<65536?3:4}var J=new sM.Buf8(H);for(X=F=0;F<H;X++)f=K.charCodeAt(X),(f&64512)===55296&&X+1<P&&(u=K.charCodeAt(X+1),(u&64512)===56320&&(f=65536+(f-55296<<10)+(u-56320),X++)),f<128?J[F++]=f:(f<2048?J[F++]=192|f>>>6:(f<65536?J[F++]=224|f>>>12:(J[F++]=240|f>>>18,J[F++]=128|f>>>12&63),J[F++]=
128|f>>>6&63),J[F++]=128|f&63);return J};var ilM={};ilM=function(K,X,F,P){var H=K&65535|0;K=K>>>16&65535|0;for(var f;F!==0;){f=F>2E3?2E3:F;F-=f;do H=H+X[P++]|0,K=K+H|0;while(--f);H%=65521;K%=65521}return H|K<<16|0};for(var St={},Z1,Diu=[],uCt=0;uCt<256;uCt++){Z1=uCt;for(var qMT=0;qMT<8;qMT++)Z1=Z1&1?3988292384^Z1>>>1:Z1>>>1;Diu[uCt]=Z1}St=function(K,X,F,P){F=P+F;for(K^=-1;P<F;P++)K=K>>>8^Diu[(K^X[P])&255];return K^-1};var qi={};qi={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 vX9=[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],tvM=[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],Daw=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],CYM=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Mi=Array(576);XC(Mi);var nQ=Array(60);XC(nQ);var fQ=Array(512);XC(fQ);var zo=Array(256);XC(zo);var aOl=Array(29);XC(aOl);var $ml=Array(30);XC($ml);var sAl,zXP,fHn,HI4=!1;var rG;
rG=[new To(0,0,0,0,function(K,X){var F=65535;for(F>K.pending_buf_size-5&&(F=K.pending_buf_size-5);;){if(K.lookahead<=1){oa(K);if(K.lookahead===0&&X===0)return 1;if(K.lookahead===0)break}K.strstart+=K.lookahead;K.lookahead=0;var P=K.block_start+F;if(K.strstart===0||K.strstart>=P)if(K.lookahead=K.strstart-P,K.strstart=P,cE(K,!1),K.strm.avail_out===0)return 1;if(K.strstart-K.block_start>=K.w_size-262&&(cE(K,!1),K.strm.avail_out===0))return 1}K.insert=0;if(X===4)return cE(K,!0),K.strm.avail_out===0?3:
4;K.strstart>K.block_start&&cE(K,!1);return 1}),
new To(4,4,8,4,xmd),new To(4,5,16,8,xmd),new To(4,6,32,32,xmd),new To(4,4,16,16,LQ),new To(8,16,32,32,LQ),new To(8,16,128,128,LQ),new To(8,32,128,256,LQ),new To(32,128,258,1024,LQ),new To(32,258,258,4096,LQ)];var PjP={};PjP=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 qzP=Object.prototype.toString;
FXd.prototype.push=function(K,X){var F=this.strm,P=this.options.chunkSize;if(this.ended)return!1;var H=X===~~X?X:X===!0?4:0;typeof K==="string"?F.input=uFd(K):qzP.call(K)==="[object ArrayBuffer]"?F.input=new Uint8Array(K):F.input=K;F.next_in=0;F.avail_in=F.input.length;do{F.avail_out===0&&(F.output=new sM.Buf8(P),F.next_out=0,F.avail_out=P);K=Xvy(F,H);if(K!==1&&K!==0)return J9E(this,K),this.ended=!0,!1;if(F.avail_out===0||F.avail_in===0&&(H===4||H===2))if(this.options.to==="string"){var f=sM.shrinkBuf(F.output,
F.next_out);X=f;f=f.length;if(f<65537&&(X.subarray&&fTW||!X.subarray))X=String.fromCharCode.apply(null,sM.shrinkBuf(X,f));else{for(var u="",J=0;J<f;J++)u+=String.fromCharCode(X[J]);X=u}this.chunks.push(X)}else X=sM.shrinkBuf(F.output,F.next_out),this.chunks.push(X)}while((F.avail_in>0||F.avail_out===0)&&K!==1);if(H===4)return(F=this.strm)&&F.state?(P=F.state.status,P!==42&&P!==69&&P!==73&&P!==91&&P!==103&&P!==113&&P!==666?K=ZT(F,-2):(F.state=null,K=P===113?ZT(F,-3):0)):K=-2,J9E(this,K),this.ended=
!0,K===0;H===2&&(J9E(this,0),F.avail_out=0);return!0};
var J9E=function(K,X){X===0&&(K.result=K.options.to==="string"?K.chunks.join(""):sM.flattenChunks(K.chunks));K.chunks=[];K.err=X;K.msg=K.strm.msg};var ZQW=typeof TextEncoder!=="undefined"?new TextEncoder:null,aHP=ZQW?function(K){return ZQW.encode(K)}:function(K){K=_.oz(K);
for(var X=new Uint8Array(K.length),F=0;F<X.length;F++)X[F]=K[F];return X};var ur9={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},JK9={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var Ys=function(K,X){this.version=K;this.args=X};
Ys.prototype.serialize=function(){return{version:this.version,args:this.args}};var MJq=function(K,X){this.topic=K;this.dataClass=X};
MJq.prototype.toString=function(){return this.topic};var YMu=_.mz("ytPubsub2Pubsub2Instance")||new _.uD;_.uD.prototype.subscribe=_.uD.prototype.subscribe;_.uD.prototype.unsubscribeByKey=_.uD.prototype.unsubscribeByKey;_.uD.prototype.publish=_.uD.prototype.publish;_.uD.prototype.clear=_.uD.prototype.clear;_.gS("ytPubsub2Pubsub2Instance",YMu);var QAP=_.mz("ytPubsub2Pubsub2SubscribedKeys")||{};_.gS("ytPubsub2Pubsub2SubscribedKeys",QAP);var c7w=_.mz("ytPubsub2Pubsub2TopicToKeys")||{};_.gS("ytPubsub2Pubsub2TopicToKeys",c7w);
var nxq=_.mz("ytPubsub2Pubsub2IsAsync")||{};_.gS("ytPubsub2Pubsub2IsAsync",nxq);_.gS("ytPubsub2Pubsub2SkipSubKey",null);var wvP=void 0,A7T=void 0;var maP=_.kU("max_body_size_to_compress",5E5),GSl=_.kU("min_body_size_to_compress",500),wG=!0,OI9=0,yc=0,$aw=_.kU("compression_performance_threshold_lr",250),VJq=_.kU("slow_compressions_before_abandon_count",4),daO=!1,eXy=new Map,vxT=1,lHP=!0;_.br(WE,bIP);WE.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 Qau=function(K,X,F){F||(F=0);var P=K.W_;if(typeof X==="string")for(var H=0;H<16;H++)P[H]=X.charCodeAt(F)<<24|X.charCodeAt(F+1)<<16|X.charCodeAt(F+2)<<8|X.charCodeAt(F+3),F+=4;else for(H=0;H<16;H++)P[H]=X[F]<<24|X[F+1]<<16|X[F+2]<<8|X[F+3],F+=4;for(X=16;X<80;X++)F=P[X-3]^P[X-8]^P[X-14]^P[X-16],P[X]=(F<<1|F>>>31)&4294967295;X=K.chain_[0];F=K.chain_[1];H=K.chain_[2];for(var f=K.chain_[3],u=K.chain_[4],J,Z,M=0;M<80;M++)M<40?M<20?(J=f^F&(H^f),Z=1518500249):(J=F^H^f,Z=1859775393):M<60?(J=F&H|f&(F|H),
Z=2400959708):(J=F^H^f,Z=3395469782),J=(X<<5|X>>>27)+J+u+Z+P[M]&4294967295,u=f,f=H,H=(F<<30|F>>>2)&4294967295,F=X,X=J;K.chain_[0]=K.chain_[0]+X&4294967295;K.chain_[1]=K.chain_[1]+F&4294967295;K.chain_[2]=K.chain_[2]+H&4294967295;K.chain_[3]=K.chain_[3]+f&4294967295;K.chain_[4]=K.chain_[4]+u&4294967295};
WE.prototype.update=function(K,X){if(K!=null){X===void 0&&(X=K.length);for(var F=X-this.blockSize,P=0,H=this.buf_,f=this.inbuf_;P<X;){if(f==0)for(;P<=F;)Qau(this,K,P),P+=this.blockSize;if(typeof K==="string")for(;P<X;){if(H[f]=K.charCodeAt(P),++f,++P,f==this.blockSize){Qau(this,H);f=0;break}}else for(;P<X;)if(H[f]=K[P],++f,++P,f==this.blockSize){Qau(this,H);f=0;break}}this.inbuf_=f;this.total_+=X}};
WE.prototype.digest=function(){var K=[],X=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var F=this.blockSize-1;F>=56;F--)this.buf_[F]=X&255,X/=256;Qau(this,this.buf_);for(F=X=0;F<5;F++)for(var P=24;P>=0;P-=8)K[X]=this.chain_[F]>>P&255,++X;return K};var iIO;var MO=function(K){var X=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(n){X.databaseToken=n},
triggerThrottle:function(){X.throttledSend()},
cancelThrottle:function(){X.cancelThrottledSend()},
immediateSend:function(n){return _.q(function(c){return _.Y(c,X.immediateSend(n),0)})},
requestWithinAgeLimit:function(n,c){return X.requestWithinAgeLimit(n,c)},
retryQueuedRequests:function(){X.retryQueuedRequests()}};
var F;this.throttleTimeout=(F=K.throttleTimeout)!=null?F:100;var P;this.retryMaxAttempts=(P=K.retryMaxAttempts)!=null?P:1;var H;this.requestAgeLimitMs=(H=K.requestAgeLimitMs)!=null?H:2592E6;var f;this.queuedRequestAgeLimitMs=(f=K.queuedRequestAgeLimitMs)!=null?f:12E4;var u;this.retryDelayMs=(u=K.retryDelayMs)!=null?u:5E3;var J;this.databaseToken=(J=K.databaseToken)!=null?J:void 0;this.enableCleaning=!!K.enableCleaning;var Z;this.cleaningRate=(Z=K.cleaningRate)!=null?Z:.1;var M;this.potentialEsfErrorLimit=
(M=K.potentialEsfErrorLimit)!=null?M:10;K.handleError&&(this.handleError=K.handleError);K.handleWarning&&(this.handleWarning=K.handleWarning);K.disableYtIdbTransactions&&(this.disableYtIdbTransactions=K.disableYtIdbTransactions);K.bypassDbTokenDependency&&(this.bypassDbTokenDependency=K.bypassDbTokenDependency);this.getBooleanFlag=K.getBooleanFlag;this.jobManager=K.jobManager;this.logsStore=K.logsStore;this.networkManager=K.networkManager;this.sendFn=K.sendFn;this.onlineEvent=K.onlineEvent;this.offlineEvent=
K.offlineEvent;QA(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&MtQ(this)},MtQ=function(K){QA(K)&&!K.disableYtIdbTransactions&&(K.initialized=!0,K.enableCleaning&&Math.random()<=K.cleaningRate&&K.logsStore.cleanLogsStore(K.databaseToken),K.retryQueuedRequests(),K.networkManager.isNetworkAvailable()&&K.throttledSend(),K.networkManager.listen(K.onlineEvent,K.throttledSend.bind(K)),K.networkManager.listen(K.offlineEvent,K.cancelThrottledSend.bind(K)))};
_.z=MO.prototype;_.z.writeThenSend=function(K,X){var F=this;X=X===void 0?{}:X;if(QA(this)&&this.initialized){var P={url:K,options:X,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(P,this.databaseToken).then(function(H){P.id=H;F.networkManager.isNetworkAvailable()&&F.immediateSend(P)}).catch(function(H){F.immediateSend(P);
ngL(F,H)})}else this.sendFn(K,X)};
_.z.sendThenWrite=function(K,X,F){var P=this;X=X===void 0?{}:X;if(QA(this)&&this.initialized){var H={url:K,options:X,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(H.skipRetry=F);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!H.skipRetry){if(!H.skipRetry){var f=X.onError?X.onError:function(){};
X.onError=function(u,J){return _.q(function(Z){if(Z.nextAddress==1)return _.Y(Z,P.logsStore.set(H,P.databaseToken).catch(function(M){ngL(P,M)}),2);
f(u,J);_.JT(Z)})}}this.sendFn(K,X,H.skipRetry)}else this.logsStore.set(H,this.databaseToken).catch(function(u){P.sendFn(K,X,H.skipRetry);
ngL(P,u)})}else this.sendFn(K,X,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&F)};
_.z.sendAndWrite=function(K,X){var F=this;X=X===void 0?{}:X;if(QA(this)&&this.initialized){var P={url:K,options:X,timestamp:this.now(),status:"NEW",sendCount:0},H=!1,f=X.onSuccess?X.onSuccess:function(){};
P.options.onSuccess=function(u,J){P.id!==void 0?F.logsStore.deleteRequest(P.id,F.databaseToken):H=!0;F.networkManager.networkStatusHint&&F.getBooleanFlag&&F.getBooleanFlag("vss_network_hint")&&F.networkManager.networkStatusHint(!0);f(u,J)};
this.sendFn(P.url,P.options,void 0,!0);this.logsStore.set(P,this.databaseToken).then(function(u){P.id=u;H&&F.logsStore.deleteRequest(P.id,F.databaseToken)}).catch(function(u){ngL(F,u)})}else this.sendFn(K,X,void 0,!0)};
_.z.throttledSend=function(){var K=this;if(!QA(this))throw Error("Wc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var X;return _.q(function(F){if(F.nextAddress==1)return _.Y(F,K.logsStore.getMostRecentByStatus("NEW",K.databaseToken),2);if(F.nextAddress!=3)return X=F.yieldResult,X?_.Y(F,K.immediateSend(X),3):(K.cancelThrottledSend(),F.return());K.intervalJob&&(K.intervalJob=0,K.throttledSend());_.JT(F)})},this.throttleTimeout))};
_.z.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.z.immediateSend=function(K){var X=this,F;return _.q(function(P){switch(P.nextAddress){case 1:if(!QA(X))throw Error("Xc");if(K.id===void 0){P.jumpTo(2);break}return _.Y(P,X.logsStore.markAsQueued(K.id,X.databaseToken),3);case 3:(F=P.yieldResult)||X.handleWarning(Error("Yc"));case 2:if(X.requestWithinAgeLimit(K,X.requestAgeLimitMs)){P.jumpTo(4);break}X.handleWarning(Error("Zc"));if(K.id===void 0){P.jumpTo(5);break}return _.Y(P,X.logsStore.deleteRequest(K.id,X.databaseToken),5);case 5:return P.return();
case 4:K.skipRetry||(K=c9T(X,K));if(!K){P.jumpTo(0);break}if(!K.skipRetry||K.id===void 0){P.jumpTo(8);break}return _.Y(P,X.logsStore.deleteRequest(K.id,X.databaseToken),8);case 8:X.sendFn(K.url,K.options,!!K.skipRetry),_.JT(P)}})};
var c9T=function(K,X){if(!QA(K))throw Error("$c");var F=X.options.onError?X.options.onError:function(){};
X.options.onError=function(H,f){var u,J,Z,M;return _.q(function(n){switch(n.nextAddress){case 1:u=XIy(f);(J=F5M(f))&&K.getBooleanFlag&&K.getBooleanFlag("web_enable_error_204")&&K.handleError(Error("ad"),X.url,f);if(!(K.getBooleanFlag&&K.getBooleanFlag("nwl_consider_error_code")&&u||K.getBooleanFlag&&!K.getBooleanFlag("nwl_consider_error_code")&&K.potentialEsfErrorCounter<=K.potentialEsfErrorLimit)){n.jumpTo(2);break}if(!K.networkManager.sendNetworkCheckRequest){n.jumpTo(3);break}return _.Y(n,K.networkManager.sendNetworkCheckRequest(),
3);case 3:if(K.networkManager.isNetworkAvailable()){n.jumpTo(2);break}F(H,f);if(!K.getBooleanFlag||!K.getBooleanFlag("nwl_consider_error_code")||((Z=X)==null?void 0:Z.id)===void 0){n.jumpTo(6);break}return _.Y(n,K.logsStore.resetRequest(X.id,K.databaseToken,!1),6);case 6:return n.return();case 2:if(K.getBooleanFlag&&K.getBooleanFlag("nwl_consider_error_code")&&!u&&K.potentialEsfErrorCounter>K.potentialEsfErrorLimit)return n.return();K.potentialEsfErrorCounter++;if(((M=X)==null?void 0:M.id)===void 0){n.jumpTo(8);
break}return X.sendCount<K.retryMaxAttempts?_.Y(n,K.logsStore.resetRequest(X.id,K.databaseToken,!0,J?!1:void 0),12):_.Y(n,K.logsStore.deleteRequest(X.id,K.databaseToken),8);case 12:K.jobManager.addLowPriorityJob(function(){K.networkManager.isNetworkAvailable()&&K.throttledSend()},K.retryDelayMs);
case 8:F(H,f),_.JT(n)}})};
var P=X.options.onSuccess?X.options.onSuccess:function(){};
X.options.onSuccess=function(H,f){var u;return _.q(function(J){if(J.nextAddress==1)return((u=X)==null?void 0:u.id)===void 0?J.jumpTo(2):_.Y(J,K.logsStore.deleteRequest(X.id,K.databaseToken),2);K.networkManager.networkStatusHint&&K.getBooleanFlag&&K.getBooleanFlag("vss_network_hint")&&K.networkManager.networkStatusHint(!0);P(H,f);_.JT(J)})};
return X};
MO.prototype.requestWithinAgeLimit=function(K,X){K=K.timestamp;return this.now()-K>=X?!1:!0};
MO.prototype.retryQueuedRequests=function(){var K=this;if(!QA(this))throw Error("bd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(X){X&&!K.requestWithinAgeLimit(X,K.queuedRequestAgeLimitMs)?K.jobManager.addLowPriorityJob(function(){return _.q(function(F){if(F.nextAddress==1)return X.id===void 0?F.jumpTo(2):_.Y(F,K.logsStore.resetRequest(X.id,K.databaseToken),2);K.retryQueuedRequests();_.JT(F)})}):K.networkManager.isNetworkAvailable()&&K.throttledSend()})};
var ngL=function(K,X){K.writeError&&!K.networkManager.isNetworkAvailable()?K.writeError(X):K.handleError(X)},QA=function(K){return!!K.databaseToken||K.bypassDbTokenDependency};var PNP;var qPq={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,
miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,
shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520};var pEC={},Ym3=bD("ServiceWorkerLogsDatabase",{objectStores:(pEC.SWHealthLog={addedAtVersion:1},pEC),shared:!0,upgrade:function(K,X){X(1)&&UM(Ra(K,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var o19={},Smy=0;var A69;var nw=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},vE=function(){if(!nw.instance){var K=_.mz("yt.networkRequestMonitor.instance")||new nw;
_.gS("yt.networkRequestMonitor.instance",K);nw.instance=K}return nw.instance};
nw.prototype.requestComplete=function(K,X){X&&(this.anyRequestHasSucceeded=!0);K=this.removeParams(K);this.requestMap.get(K)||this.requestMap.set(K,X)};
nw.prototype.isEndpointCFR=function(K){K=this.removeParams(K);return(K=this.requestMap.get(K))?!1:K===!1&&this.anyRequestHasSucceeded?!0:null};
nw.prototype.removeParams=function(K){return K.split("?")[0]};
nw.prototype.removeParams=nw.prototype.removeParams;nw.prototype.isEndpointCFR=nw.prototype.isEndpointCFR;nw.prototype.requestComplete=nw.prototype.requestComplete;nw.getInstance=vE;var cT=function(K){_.ua.call(this);var X=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=K!=null?K:{addLowPriorityJob:function(H,f){return setTimeout(H,f)},
cancelJob:function(H){clearTimeout(H)}};
var F,P;this.isOnline=(P=(F=window.navigator)==null?void 0:F.onLine)!=null?P:!0;this.onNavigatorChange=function(){return _.q(function(H){return _.Y(H,BGT(X),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||SMt(this)};
_.r(cT,_.ua);cT.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete cT.instance};
cT.prototype.isNetworkAvailable=function(){return this.isOnline};
var SMt=function(K){K.pollingJob=K.jobManager.addLowPriorityJob(function(){var X;return _.q(function(F){if(F.nextAddress==1)return K.isOnline?((X=window.navigator)==null?0:X.onLine)?F.jumpTo(3):_.Y(F,BGT(K),3):_.Y(F,BGT(K),3);SMt(K);_.JT(F)})},3E4)},BGT=function(K,X){return K.networkRequestPromise?K.networkRequestPromise:K.networkRequestPromise=new Promise(function(F){var P,H,f,u;
return _.q(function(J){switch(J.nextAddress){case 1:return P=window.AbortController?new window.AbortController:void 0,f=(H=P)==null?void 0:H.signal,u=!1,_.s2(J,2,3),P&&(K.abortTimeoutKey=K.jobManager.addLowPriorityJob(function(){P.abort()},X||2E4)),_.Y(J,fetch("/generate_204",{method:"HEAD",
signal:f}),5);case 5:u=!0;case 3:_.fZ(J);K.networkRequestPromise=void 0;K.abortTimeoutKey&&(K.jobManager.cancelJob(K.abortTimeoutKey),K.abortTimeoutKey=0);u!==K.isOnline&&(K.isOnline=u,K.isOnline?K.dispatchEvent("networkstatus-online"):K.dispatchEvent("networkstatus-offline"));F(u);_.uK(J,0);break;case 2:_.qc(J),u=!1,J.jumpTo(3)}})})};var pw=function(){_.ua.call(this);var K=this;this.shouldFlushErrors=!1;cT.instance||(cT.instance=new cT(_.A9));this.sharedNetworkStatusManager=cT.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(K.shouldFlushErrors&&_.S("offline_error_handling")){var X=jjT().get("errors",!0);if(X){for(var F in X)if(X[F]){var P=new _.nG(F,"sent via offline_errors");P.name=X[F].name;P.stack=X[F].stack;P.level=X[F].level;_.UN(P)}jjT().set("errors",{},2592E3,!0)}}})};
_.r(pw,_.ua);var ogC=function(){if(!pw.instance){var K=_.mz("yt.networkStatusManager.instance")||new pw;_.gS("yt.networkStatusManager.instance",K);pw.instance=K}return pw.instance};
_.z=pw.prototype;_.z.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.z.networkStatusHint=function(K){this.sharedNetworkStatusManager.isOnline=K};
_.z.getWindowStatus=function(){var K=window.navigator.onLine;return K===void 0?!0:K};
_.z.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.z.listen=function(K,X){return this.sharedNetworkStatusManager.listen(K,X)};
_.z.sendNetworkCheckRequest=function(K){K=BGT(this.sharedNetworkStatusManager,K);K.then(function(X){_.S("use_cfr_monitor")&&vE().requestComplete("generate_204",X)});
return K};
pw.prototype.sendNetworkCheckRequest=pw.prototype.sendNetworkCheckRequest;pw.prototype.listen=pw.prototype.listen;pw.prototype.enableErrorFlushing=pw.prototype.enableErrorFlushing;pw.prototype.getWindowStatus=pw.prototype.getWindowStatus;pw.prototype.networkStatusHint=pw.prototype.networkStatusHint;pw.prototype.isNetworkAvailable=pw.prototype.isNetworkAvailable;pw.getInstance=ogC;_.lU=function(K){K=K===void 0?{}:K;_.ua.call(this);var X=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=ogC();var F=_.mz("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);F&&(K.rateLimit?(this.rateLimit=K.rateLimit,F("networkstatus-online",function(){L3u(X,"publicytnetworkstatus-online")}),F("networkstatus-offline",function(){L3u(X,"publicytnetworkstatus-offline")})):(F("networkstatus-online",function(){X.dispatchEvent("publicytnetworkstatus-online")}),F("networkstatus-offline",
function(){X.dispatchEvent("publicytnetworkstatus-offline")})))};
_.r(_.lU,_.ua);_.lU.prototype.isNetworkAvailable=function(){var K=_.mz("yt.networkStatusManager.instance.isNetworkAvailable");return K?K.bind(this.nsmInstance)():!0};
_.lU.prototype.networkStatusHint=function(K){var X=_.mz("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);X&&X(K)};
_.lU.prototype.sendNetworkCheckRequest=function(K){var X=this,F;return _.q(function(P){F=_.mz("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(X.nsmInstance);return _.S("skip_network_check_if_cfr")&&vE().isEndpointCFR("generate_204")?P.return(new Promise(function(H){var f;X.networkStatusHint(((f=window.navigator)==null?void 0:f.onLine)||!0);H(X.isNetworkAvailable())})):F?P.return(F(K)):P.return(!0)})};
var L3u=function(K,X){K.rateLimit?K.lastJobTime?(_.A9.cancelJob(K.schedulerJob),K.schedulerJob=_.A9.addLowPriorityJob(function(){K.lastPublicSignalSent!==X&&(K.dispatchEvent(X),K.lastPublicSignalSent=X,K.lastJobTime=(0,_.CG)())},K.rateLimit-((0,_.CG)()-K.lastJobTime))):(K.dispatchEvent(X),K.lastPublicSignalSent=X,K.lastJobTime=(0,_.CG)()):K.dispatchEvent(X)};var eZO,BT=function(){MO.call(this,{logsStore:{cleanLogsStore:J6w,deleteRequest:qm9,getMostRecentByStatus:fmT,markAsQueued:DDy,resetRequest:uNn,set:zZ9},networkManager:_.RZP(),handleError:function(K,X,F){var P,H=F==null?void 0:(P=F.error)==null?void 0:P.code;if(H===400||H===415){var f;K=new _.nG(K.message,X,F==null?void 0:(f=F.error)==null?void 0:f.code);_.Gr(K,void 0,void 0,void 0,!0)}else _.UN(K)},
handleWarning:_.Gr,sendFn:W5l,now:_.CG,writeError:wIl,jobManager:_.Bj(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.kU("potential_esf_error_limit",10),getBooleanFlag:_.S,disableYtIdbTransactions:!(_.MU()&&_.UDd())});this.initializationPromise=new _.K$;_.S("networkless_immediately_drop_all_requests")&&Z$M();Fbn("LogsDatabaseV2")};
_.r(BT,MO);_.r9t=function(){var K=_.mz("yt.networklessRequestController.instance");K||(K=new BT,_.gS("yt.networklessRequestController.instance",K),_.S("networkless_logging")&&_.EU().then(function(X){K.databaseToken=X;MtQ(K);K.initializationPromise.resolve();K.enableCleaning&&Math.random()<=K.cleaningRate&&K.databaseToken&&M0l(K.databaseToken);_.S("networkless_immediately_drop_sw_health_store")&&TGL(K)}));
return K};
BT.prototype.writeThenSend=function(K,X){X||(X={});X=dDn(K,X);_.MU()||(this.initialized=!1);MO.prototype.writeThenSend.call(this,K,X)};
BT.prototype.sendThenWrite=function(K,X,F){X||(X={});X=dDn(K,X);_.MU()||(this.initialized=!1);MO.prototype.sendThenWrite.call(this,K,X,F)};
BT.prototype.sendAndWrite=function(K,X){X||(X={});X=dDn(K,X);_.MU()||(this.initialized=!1);MO.prototype.sendAndWrite.call(this,K,X)};
BT.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var TGL=function(K){var X;_.q(function(F){if(!K.databaseToken)throw X=ep("clearSWHealthLogsDb"),X;return F.return(n1y(K.databaseToken).catch(function(P){K.handleError(P)}))})};_.mDP=!1;_.hZw=_.FP.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.mDP};_.gS("ytNetworklessLoggingInitializationOptions",_.hZw);var oI=function(K){var X=this;this.config_=null;K?this.config_=K:Jcn()&&(this.config_=_.iD());_.cu(_.A9,function(){K5P(X)},5E3)};
oI.prototype.isReady=function(){!this.config_&&Jcn()&&(this.config_=_.iD());return!!this.config_};
var kS9=function(K,X,F,P){!_.e8("VISITOR_DATA")&&X!=="visitor_id"&&Math.random()<.01&&_.Gr(new _.nG("Missing VISITOR_DATA when sending innertube request.",X,F,P));if(!K.isReady()){var H=new _.nG("innertube xhrclient not ready",X,F,P);_.UN(H);throw H;}var f={headers:P.headers||{},method:"POST",postParams:F,postBody:P.postBody,postBodyFormat:P.postBodyFormat||"JSON",onTimeout:function(){P.onTimeout()},
onFetchTimeout:P.onTimeout,onSuccess:function(c,B){if(P.onSuccess)P.onSuccess(B)},
onFetchSuccess:function(c){if(P.onSuccess)P.onSuccess(c)},
onError:function(c,B){if(P.onError)P.onError(B)},
onFetchError:function(c){if(P.onError)P.onError(c)},
timeout:P.timeout,withCredentials:!0,compress:P.compress};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");var u="";(H=K.config_.innertubeHostOverride)&&(u=H);var J=K.config_.innertubeUseThirdPartyAuth||!1,Z=_.wW9(J,u,P);Object.assign(f.headers,Z);f.headers.Authorization&&!u&&J&&(f.headers["x-origin"]=window.location.origin);var M=_.$U(u+("/youtubei/"+K.config_.innertubeApiVersion+"/"+X),{alt:"json"}),n=function(c){c=c===void 0?!1:c;var B;if(P.retry&&u!="www.youtube-nocookie.com"&&
(c||_.S("skip_ls_gel_retry")||f.headers["Content-Type"]!=="application/json"||(B=xaM(X,F,Z,J)),B)){var L=f.onSuccess,A=f.onFetchSuccess;f.onSuccess=function(l,a){IHM(B);L(l,a)};
F.onFetchSuccess=function(l,a){IHM(B);A(l,a)}}try{if(c&&P.retry&&!P.networklessOptions.bypassNetworkless)f.method="POST",P.networklessOptions.writeThenSend?_.r9t().writeThenSend(M,f):_.r9t().sendAndWrite(M,f);
else if(P.compress){var d=!P.networklessOptions.writeThenSend;if(f.postBody){var R=f.postBody;typeof R!=="string"&&(R=JSON.stringify(f.postBody));tJ4(M,R,f,_.fG,d)}else tJ4(M,JSON.stringify(f.postParams),f,bD3,d)}else _.S("web_all_payloads_via_jspb")?_.fG(M,f):bD3(M,f)}catch(l){if(l.name==="InvalidAccessError")B&&(IHM(B),B=0),_.Gr(Error("cd"));else throw l;}B&&_.cu(_.A9,function(){K5P(K)},5E3)};
_.GwP()?CXP().then(function(c){n(c)}):n(!1)};var v0l=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(v0l,_.Gm);var A9t=0,v14=_.Ii?"webkit":_.xA?"moz":_.ir?"ms":IIn?"o":"";_.gS("ytDomDomGetNextId",_.mz("ytDomDomGetNextId")||function(){return++A9t});var jaQ={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},bU=function(K){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(K=
K||window.event){this.event=K;for(var X in K)X in jaQ||(this[X]=K[X]);this.scale=K.scale;this.rotation=K.rotation;var F=K.target||K.srcElement;F&&F.nodeType==3&&(F=F.parentNode);this.target=F;var P=K.relatedTarget;if(P)try{P=P.nodeName?P:null}catch(H){P=null}else this.type=="mouseover"?P=K.fromElement:this.type=="mouseout"&&(P=K.toElement);this.relatedTarget=P;this.clientX=K.clientX!=void 0?K.clientX:K.pageX;this.clientY=K.clientY!=void 0?K.clientY:K.pageY;this.keyCode=K.keyCode?K.keyCode:K.which;
this.charCode=K.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=K.altKey;this.ctrlKey=K.ctrlKey;this.shiftKey=K.shiftKey;this.metaKey=K.metaKey;this.pageX_=K.pageX;this.pageY_=K.pageY}}catch(H){}},wET=function(K){if(document.body&&document.documentElement){var X=document.body.scrollTop+document.documentElement.scrollTop;
K.pageX_=K.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);K.pageY_=K.clientY+X}};
bU.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
bU.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
bU.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var EM=_.FP.ytEventsEventsListeners||{};_.gS("ytEventsEventsListeners",EM);var g1l=_.FP.ytEventsEventsCounter||{count:0};_.gS("ytEventsEventsCounter",g1l);var E19=_.fb(function(){var K=!1;try{var X=Object.defineProperty({},"capture",{get:function(){K=!0}});
window.addEventListener("test",null,X)}catch(F){}return K});_.br(Ni,_.LJ);Ni.prototype.onMouseMove_=function(K){K.pageX_===void 0&&wET(K);var X=K.pageX_;K.pageY_===void 0&&wET(K);this.position_=new _.jA(X,K.pageY_)};
Ni.prototype.checkPosition_=function(){if(this.position_){var K=(0,_.CG)();if(this.previousTime_!=0){var X=this.previousPosition_,F=this.position_,P=X.x-F.x;X=X.y-F.y;P=Math.sqrt(P*P+X*X)/(K-this.previousTime_);this.cycles_[this.index_]=Math.abs((P-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(F=X=0;F<4;F++)X+=this.cycles_[F]||0;X>=3&&this.callback_();this.previousVelocity_=P}this.previousTime_=K;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
Ni.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.b$3(this.mouseListenerKey_)};var xDy={};var svd=new _.b("rawColdConfigGroup");var HBl=new _.b("rawHotConfigGroup");var y9W=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(y9W,_.Gm);var lBw=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(lBw,_.Gm);var nL=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K,500)};
_.r(nL,_.Gm);nL.prototype.getPayloadCase=function(){return _.qe(this,W3N)};
nL.prototype.getContext=function(){return _.xS(this,lBw,33)};
var W3N=[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];var IAP=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(IAP,_.Gm);var wc3=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(wc3,_.Gm);wc3.prototype.setVideoId=function(K){return DW(this,1,yAl,lW(K))};
wc3.prototype.getPlaylistId=function(){return _.Mg(this,Y3(this,yAl,2))};
var yAl=[1,2];var Ecy=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(Ecy,_.Gm);Ecy.prototype.getContext=function(){return _.xS(this,uy,1)};
Ecy.prototype.getTier=function(){return _.S3(this,7)};var diU,kg,KL;diU=_.FP.ytPubsubPubsubInstance||new _.uD;kg=_.FP.ytPubsubPubsubSubscribedKeys||{};KL=_.FP.ytPubsubPubsubTopicToKeys||{};_.Imq=_.FP.ytPubsubPubsubIsSynchronous||{};_.uD.prototype.subscribe=_.uD.prototype.subscribe;_.uD.prototype.unsubscribeByKey=_.uD.prototype.unsubscribeByKey;_.uD.prototype.publish=_.uD.prototype.publish;_.uD.prototype.clear=_.uD.prototype.clear;_.gS("ytPubsubPubsubInstance",diU);_.gS("ytPubsubPubsubTopicToKeys",KL);_.gS("ytPubsubPubsubIsSynchronous",_.Imq);
_.gS("ytPubsubPubsubSubscribedKeys",kg);var FY=window;var Sq=_.S("web_enable_lifecycle_monitoring")&&PbP()!==0,eEV=_.S("web_enable_lifecycle_monitoring");var UiZ=function(K){var X=this;var F=F===void 0?0:F;var P=P===void 0?_.Bj():P;this.JSC$8814_defaultPriority=F;this.scheduler=P;this.completedResolver=new _.K$;this.scheduledPayloads=K;for(K={i$jscomp$485:0};K.i$jscomp$485<this.scheduledPayloads.length;K={payload$jscomp$18:void 0,i$jscomp$485:K.i$jscomp$485},K.i$jscomp$485++)K.payload$jscomp$18=this.scheduledPayloads[K.i$jscomp$485],F=function(H){return function(){H.payload$jscomp$18.job();X.scheduledPayloads[H.i$jscomp$485].processed=!0;X.scheduledPayloads.every(function(f){return f.processed===
!0})&&X.completedResolver.resolve()}}(K),P=this.scheduler.addJob(F,REt(this,K.payload$jscomp$18)),this.scheduledPayloads[K.i$jscomp$485]=Object.assign({},K.payload$jscomp$18,{job:F,
jobId:P})};
UiZ.prototype.flushJobs=function(){var K=this,X=Array.from(this.scheduledPayloads.keys()).sort(function(P,H){return REt(K,K.scheduledPayloads[H])-REt(K,K.scheduledPayloads[P])});
X=_.D(X);for(var F=X.next();!F.done;F=X.next())F=this.scheduledPayloads[F.value],F.jobId===void 0||F.processed||(this.scheduler.cancelJob(F.jobId),this.scheduler.addJob(F.job,10))};
UiZ.prototype.cancel=function(){for(var K=_.D(this.scheduledPayloads),X=K.next();!X.done;X=K.next())X=X.value,X.jobId===void 0||X.processed||this.scheduler.cancelJob(X.jobId),X.processed=!0;this.completedResolver.resolve()};
var REt=function(K,X){var F;return(F=X.priority)!=null?F:K.JSC$8814_defaultPriority};var oK=function(K){this.state=K;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};Sq&&HaT(this.state)};
oK.prototype.install=function(K){this.plugins.push(K);return this};
oK.prototype.uninstall=function(){var K=this;_.Ls.apply(0,arguments).forEach(function(X){X=K.plugins.indexOf(X);X>-1&&K.plugins.splice(X,1)})};
oK.prototype.transition=function(K,X){var F=this;Sq&&sgl(this.state);var P=this.transitions.find(function(f){return Array.isArray(f.from)?f.from.find(function(u){return u===F.state&&f.to===K}):f.from===F.state&&f.to===K});
if(P){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);hEt(this,K,X);this.state=K;Sq&&HaT(this.state);P=P.action.bind(this);var H=this.plugins.filter(function(f){return f[K]}).map(function(f){return f[K]});
P(miQ(this,H),X)}else throw Error("dd`"+this.state+"`"+K);};
var miQ=function(K,X){var F=X.filter(function(H){return GoT(K,H)===10}),P=X.filter(function(H){return GoT(K,H)!==10});
return K.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var H=_.Ls.apply(0,arguments);return _.q(function(f){if(f.nextAddress==1)return _.Y(f,K.runImmediateJobsAsync.apply(K,[F].concat(_.LZ(H))),2);K.setJobSetWithScheduledJobs.apply(K,[P].concat(_.LZ(H)));_.JT(f)})}:function(){var H=_.Ls.apply(0,arguments);
K.runImmediateJobsSync.apply(K,[F].concat(_.LZ(H)));K.setJobSetWithScheduledJobs.apply(K,[P].concat(_.LZ(H)))}};
oK.prototype.runImmediateJobsSync=function(K){var X=_.Ls.apply(1,arguments);_.Bj();for(var F=_.D(K),P=F.next(),H={};!P.done;H={lifecycle$jscomp$2:void 0},P=F.next())H.lifecycle$jscomp$2=P.value,iH(function(f){return function(){lTO(f.lifecycle$jscomp$2.name);fAO(function(){return f.lifecycle$jscomp$2.callback.apply(f.lifecycle$jscomp$2,_.LZ(X))});
Lw(f.lifecycle$jscomp$2.name)}}(H))};
oK.prototype.runImmediateJobsAsync=function(K){var X=_.Ls.apply(1,arguments),F,P,H,f;return _.q(function(u){u.nextAddress==1&&(_.Bj(),F=_.D(K),P=F.next(),H={});if(u.nextAddress!=3){if(P.done)return u.jumpTo(0);H.lifecycle$jscomp$3=P.value;H.asyncJobCompletion=void 0;f=function(J){return function(){lTO(J.lifecycle$jscomp$3.name);var Z=fAO(function(){return J.lifecycle$jscomp$3.callback.apply(J.lifecycle$jscomp$3,_.LZ(X))});
WxP(Z)?J.asyncJobCompletion=_.S("web_lifecycle_error_handling_killswitch")?Z.then(function(){Lw(J.lifecycle$jscomp$3.name)}):Z.then(function(){Lw(J.lifecycle$jscomp$3.name)},function(M){zeT(M);
Lw(J.lifecycle$jscomp$3.name)}):Lw(J.lifecycle$jscomp$3.name)}}(H);
iH(f);return H.asyncJobCompletion?_.Y(u,H.asyncJobCompletion,3):u.jumpTo(3)}H={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};P=F.next();return u.jumpTo(2)})};
oK.prototype.setJobSetWithScheduledJobs=function(K){var X=_.Ls.apply(1,arguments),F=this,P=K.map(function(H){return{job:function(){lTO(H.name);fAO(function(){return H.callback.apply(H,_.LZ(X))});
Lw(H.name)},
priority:GoT(F,H)}});
P.length&&(this.jobSet=new UiZ(P))};
var GoT=function(K,X){var F,P;return(P=(F=K.overridePriority)!=null?F:X.priority)!=null?P:0},lTO=function(K){Sq&&K&&HaT(K)},Lw=function(K){Sq&&K&&sgl(K)},hEt=function(K,X,F){eEV&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+K.constructor.name+"] '"+K.state+"' to '"+X+"'"),console.log("with message: ",F),console.groupEnd())};
_.Oi.Object.defineProperties(oK.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var vgZ=function(K){oK.call(this,K===void 0?"none":K);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(){}}]},aTC;
_.r(vgZ,oK);vgZ.prototype.runApplicationNavigationBegin=function(K,X){var F=this;this.navigationTimer=_.cu(_.A9,function(){F.currentState==="application_navigating"&&F.transition("none")},5E3);
K(X==null?void 0:X.event)};
vgZ.prototype.runApplicationNavigationEnd=function(K,X){this.navigationTimer&&(_.A9.cancelJob(this.navigationTimer),this.navigationTimer=null);K(X==null?void 0:X.event)};
_.PH9=function(){aTC||(aTC=new vgZ);return aTC};var F$T=[];_.gS("yt.logging.transport.getScrapedGelPayloads",function(){return F$T});var Pu=function(){var K=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return K.totalEntries}}};
Pu.prototype.storePayload=function(K,X){K=DYw(K);this.store[K]?this.store[K].push(X):(this.memoizedKeySequences={},this.store[K]=[X]);this.totalEntries++;_.S("more_accurate_gel_parser")&&(X=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(X));return K};
Pu.prototype.smartExtractMatchingEntries=function(K){if(!K.keys.length)return[];for(var X=ttZ(this,K.keys.splice(0,1)[0]),F=[],P=0;P<X.length;P++)this.store[X[P]]&&K.sizeLimit&&(this.store[X[P]].length<=K.sizeLimit?(F.push.apply(F,_.LZ(this.store[X[P]])),delete this.store[X[P]]):F.push.apply(F,_.LZ(this.store[X[P]].splice(0,K.sizeLimit))));this.totalEntries-=F.length;(K==null?0:K.sizeLimit)&&F.length<(K==null?void 0:K.sizeLimit)&&(K.sizeLimit-=F.length,F.push.apply(F,_.LZ(this.smartExtractMatchingEntries(K))));
return F};
Pu.prototype.extractMatchingEntries=function(K){K=ttZ(this,K);for(var X=[],F=0;F<K.length;F++)this.store[K[F]]&&(X.push.apply(X,_.LZ(this.store[K[F]])),delete this.store[K[F]]);this.totalEntries-=X.length;return X};
Pu.prototype.getSequenceCount=function(K){K=ttZ(this,K);for(var X=0,F=0;F<K.length;F++){var P=void 0;X+=((P=this.store[K[F]])==null?void 0:P.length)||0}return X};
var ttZ=function(K,X){var F=DYw(X);if(K.memoizedKeySequences[F])return K.memoizedKeySequences[F];var P=Object.keys(K.store)||[];if(P.length<=1&&DYw(X)===P[0])return P;for(var H=[],f=0;f<P.length;f++){var u=P[f].split("/");if($iu(X.auth,u[0])){var J=X.isJspb;$iu(J===void 0?"undefined":J?"true":"false",u[1])&&$iu(X.cttAuthInfo,u[2])&&(J=X.tier,J=J===void 0?"undefined":JSON.stringify(J),$iu(J,u[3])&&H.push(P[f]))}}return K.memoizedKeySequences[F]=H},$iu=function(K,X){return K===void 0||K==="undefined"?
!0:K===X};
Pu.prototype.getSequenceCount=Pu.prototype.getSequenceCount;Pu.prototype.extractMatchingEntries=Pu.prototype.extractMatchingEntries;Pu.prototype.smartExtractMatchingEntries=Pu.prototype.smartExtractMatchingEntries;Pu.prototype.storePayload=Pu.prototype.storePayload;var lAO,mYl,vc4,zT,OQC,ul3,D0w,he3,UYP,LaT,GbM,K$9,dYy;lAO=_.kU("initial_gel_batch_timeout",2E3);mYl=_.kU("gel_queue_timeout_max_ms",6E4);vc4=_.kU("gel_min_batch_size",5);zT=void 0;OQC=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
ul3=new OQC;D0w=new OQC;he3=new OQC;UYP=new OQC;GbM=!0;K$9=1;_.kbO=new Map;dYy=_.FP.ytLoggingTransportTokensToCttTargetIds_||{};_.gS("ytLoggingTransportTokensToCttTargetIds_",dYy);var Wal=_.FP.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.gS("ytLoggingTransportTokensToJspbCttTargetIds_",Wal);var sj={};var Bu=_.FP.ytLoggingGelSequenceIdObj_||{};_.gS("ytLoggingGelSequenceIdObj_",Bu);var YPy=[];var AYT=new Set,pnT=0,W$9=0,yYl=0,SPy=[],B$T=[],d0n=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var V9M=function(){};
V9M.prototype.getUrl=function(K,X){X=X===void 0?!1:X;return K.hasOwnProperty("shareEndpoint")?null:_.hcn(K,null,X)};
var efM=function(K,X,F){K={endpoint:X,actions:[]};F=(F.path?F.path[0]:F.target).icon||"";X=F.indexOf(":");X>0&&(F=F.substr(X+1));F&&K.actions.push(F);return K};var t9P=/Command$/,aaT=/Endpoint$/,GDn=new Map;var VtV,ggQ;VtV=1;_.GT=function(){this.actionRoutingMap=new Map};
_.GT.prototype.triggerAction=function(K){var X=new Q5w(K,!1,_.Ls.apply(1,arguments));this.handleAction(X);return X.returnValue};
_.GT.prototype.triggerOptionalAction=function(K){var X=new Q5w(K,!0,_.Ls.apply(1,arguments));this.handleAction(X);return X.returnValue};
_.TO=function(K,X,F){X.forEach(function(P){var H=vOd(P);H&&K.triggerOptionalAction(H,P,F,void 0)})};
_.GT.prototype.handleAction=function(K){var X=this.actionRoutingMap.get(K.actionName);X&&ggQ(K,X);K.optionalAction||K.returnValue.length!==0||(K=new _.nG("Unhandled action",K.actionName),_.Gr(K))};
ggQ=function(K,X){X.forEach(function(F){var P=null;F?P=F.apply(null,K.args):(F=Error("ed"),F.params=K.actionName,_.UN(F));K.returnValue.push(P)})};
_.ly=function(K,X,F){F||(F=VtV++);for(var P=_.D(Object.keys(X)),H=P.next();!H.done;H=P.next()){H=H.value;var f=K.actionRoutingMap.get(H);f||(f=new Map,K.actionRoutingMap.set(H,f));K.registerActionHandler(F,H,X[H],f)}return F};
_.GT.prototype.registerActionHandler=function(K,X,F,P){P.set(K,_.hV(F))};
_.vu=function(K,X,F){X=_.D(Object.keys(X));for(var P=X.next();!P.done;P=X.next())(P=K.actionRoutingMap.get(P.value))&&P.delete(F)};
_.gH(_.GT);var bBT=function(K,X){var F=_.GT.getInstance();_.AV(function(){var P={},H=_.ly(F,(P[K]=X,P));_.AZ(function(){var f={};_.vu(F,(f[K]="",f),H)})})};_.r9=Symbol("gd");Fcn=mFw;var DBq=new Set(["For","If","Match","Watch"]),EgE={},bQV=(EgE[RD.default]=function(){return iQd},EgE.style=function(){return iQd},EgE),CUC;
for(CUC in bQV)_.Kv.attributes[CUC]=bQV[CUC](_.Kv.attributes[CUC]);var CL=new _.Oh("VISIBILITY_OBSERVER");var pOq={retrieve:function(K){return this.id.\u0275prov.token===K.\u0275prov.token?this.contextValue:this?wdl(this,this.id):AVn}};var NGZ=function(K,X,F){if(K!==Oj)return!1;K=FWy(document.createElement("div"),function(){var P=kM(!1);try{F[0]()}finally{kM(P)}});
K=Array.from(K.childNodes);K.length===1&&(K=K[0]);return K};var iQC=function(K){K=K.clone();L8C(K);qE(K,"dg",null);qE(K,"d","0");p_L(K,null);B0O(K,null);return K},xiT=!0,ITW=function(K,X,F){var P=F===void 0?{}:F;
F=P.cssRowKey===void 0?void 0:P.cssRowKey;var H=P.combinedSignature===void 0?void 0:P.combinedSignature;var f=P.extraEdges===void 0?void 0:P.extraEdges;P=P.callback===void 0?void 0:P.callback;qE(K,"m",X.join(","));f&&oLC(K,f);F&&(qE(K,"ck",F),H?qE(K,"rs",H):xiT&&(xiT=!1));if(P){if(P!=null&&!AHt.test(P))throw Error("ab`"+P);qE(K,"cb",P)}K=K.toString();_.Hy(K,"/")&&(K=zTO(document.location.href)+K);return _.DX(K)};var KcL=function(K){return koL(K).then(function(X){return JSON.parse(X.responseText)})},koL=function(K){var X={},F=X.xmlHttpFactory?X.xmlHttpFactory.createInstance():tyC.createInstance();
return(new _.fL(function(P,H){var f;try{F.open("GET",K,!0)}catch(Z){H(new AK("Error opening XHR: "+Z.message,K,F))}F.onreadystatechange=function(){if(F.readyState==4){_.FP.clearTimeout(f);var Z;!(Z=asN(F.status))&&(Z=F.status===0)&&(Z=sCL(K),Z=!(Z=="http"||Z=="https"||Z==""));Z?P(F):H(new XuO(F.status,K,F))}};
F.onerror=function(){H(new AK("Network error",K,F))};
if(X.headers)for(var u in X.headers){var J=X.headers[u];J!=null&&F.setRequestHeader(u,J)}X.withCredentials&&(F.withCredentials=X.withCredentials);X.responseType&&(F.responseType=X.responseType);X.mimeType&&F.overrideMimeType(X.mimeType);X.timeoutMs>0&&(f=_.FP.setTimeout(function(){F.onreadystatechange=function(){};
F.abort();H(new FcE(K,F))},X.timeoutMs));
try{F.send(null)}catch(Z){F.onreadystatechange=function(){},_.FP.clearTimeout(f),H(new AK("Error sending XHR: "+Z.message,K,F))}})).thenCatch(function(P){P instanceof _.UD&&F.abort();
throw P;})},AK=function(K,X,F){_.KO.call(this,K+", url="+X);
this.url=X;this.xhr=F};
_.br(AK,_.KO);AK.prototype.name="XhrError";var XuO=function(K,X,F){AK.call(this,"Request Failed, status="+K,X,F);this.status=K};
_.br(XuO,AK);XuO.prototype.name="XhrHttpError";var FcE=function(K,X){AK.call(this,"Request timed out",K,X)};
_.br(FcE,AK);FcE.prototype.name="XhrTimeoutError";VP=VP||{};var jq=function(){_.LJ.call(this)};
_.br(jq,_.LJ);jq.prototype.initialize=function(){};var PyC=function(K,X){this.fn_=K;this.handler_=X};
PyC.prototype.execute=function(K){this.fn_&&(this.fn_.call(this.handler_||null,K),this.fn_=this.handler_=null)};
PyC.prototype.abort=function(){this.handler_=this.fn_=null};var w9=function(K,X){_.LJ.call(this);this.deps_=K;this.JSC$8941_id_=X;this.onloadCallbacks_=[];this.JSC$8941_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.br(w9,_.LJ);w9.prototype.moduleConstructor_=jq;w9.prototype.module_=null;w9.prototype.getId=function(){return this.JSC$8941_id_};
w9.prototype.registerCallback=function(K,X){return HLZ(this.onloadCallbacks_,K,X)};
var sIT=function(K,X){HLZ(K.JSC$8941_onErrorCallbacks_,X)},HLZ=function(K,X,F){X=new PyC(X,F);
K.push(X);return X};
w9.prototype.isLoaded=function(){return!!this.module_};
w9.prototype.onLoad=function(K){var X=new this.moduleConstructor_;X.initialize(K());this.module_=X;X=(X=zMC(this.earlyOnloadCallbacks_,K()))||zMC(this.onloadCallbacks_,K());X||(this.JSC$8941_onErrorCallbacks_.length=0);return X};
w9.prototype.onError=function(K){(K=zMC(this.JSC$8941_onErrorCallbacks_,K))&&Py(Error("kd`"+K));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var zMC=function(K,X){for(var F=[],P=0;P<K.length;P++)try{K[P].execute(X)}catch(H){Py(H),F.push(H)}K.length=0;return F.length?F:null};
w9.prototype.disposeInternal=function(){w9.superClass_.disposeInternal.call(this);_.ik(this.module_)};var fWT,YjN,J_C,ZLL,uYu,qjL,puO,n3C,c_N;
_.WT=function(K,X,F,P,H){P=P===void 0?!1:P;H=H===void 0?!1:H;var f=f===void 0?!0:f;this.scsReferenceUrl_=N24(_.ui(K).toString(),f);this.cssRowKey_=X;this.combinedSignature_=F;this.useNegativeLoading_=P;this.requestedModuleMap_={};this.JSC$8944_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(K=uR(this.scsReferenceUrl_,"excm"))?K.split(","):[];this.shouldScanForCss_=H;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;i9T();this.logger=null;_.yA(this,SwL(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
fWT=function(K,X){if(X.href||X.getAttribute("data-href"))if(X=X.href||X.getAttribute("data-href"),gUw(X)&&!N24(X).urlPrefix_.endsWith("_/js/")){X=SwL(N24(X));X=_.D(X);for(var F=X.next();!F.done;F=X.next())F=F.value,K.loadedCssModuleList_.includes(F)||K.loadedCssModuleList_.push(F)}};
_.WT.prototype.JSC$8946_loadModules=function(K,X,F){var P=F===void 0?{}:F;F=P.extraEdges;var H=P.onError;var f=P.onSuccess;P=P.forceReload;this.JSC$8944_moduleInfoMap_=X;if(!K)throw Error("ld");if(this.shouldScanForCss_){X=_.D(document.getElementsByTagName("style"));for(var u=X.next();!u.done;u=X.next())fWT(this,u.value);X=_.D(document.getElementsByTagName("link"));for(u=X.next();!u.done;u=X.next())fWT(this,u.value)}DFu(this,uYu(this,K),F,H,f,P)};
var DFu=function(K,X,F,P,H,f){P=P===void 0?function(){}:P;
H=H===void 0?function(){}:H;
f=f===void 0?!1:f;qjL(K,X,function(u,J,Z){Z=Z===void 0?J:Z;K.enableFallbackFetch&&f?K.loadWithFetch(u,J,P,H,Z):K.load(u,J,P,H,Z,F)},F)||P(-1)};
_.WT.prototype.loadWithFetch=function(){_.q(function(){throw Error("md");})};
_.WT.prototype.maybeSetAdditionalFields=function(){};
YjN=function(K,X,F){if(K.useNegativeLoading_){var P=K.scsReferenceUrl_;K={cssRowKey:K.cssRowKey_,combinedSignature:K.combinedSignature_,extraEdges:F,requestedModuleIds:J_C(K),requestedCssModuleIds:ZLL(K)};var H=K===void 0?{}:K;K=H.requestedModuleIds===void 0?[]:H.requestedModuleIds;F=H.requestedCssModuleIds===void 0?[]:H.requestedCssModuleIds;var f=H.cssRowKey===void 0?void 0:H.cssRowKey;var u=H.combinedSignature===void 0?void 0:H.combinedSignature;var J=H.extraEdges===void 0?void 0:H.extraEdges;
H=H.callback===void 0?void 0:H.callback;P=iQC(P);qE(P,"d","1");p_L(P,K);B0O(P,F);X=ITW(P,X,{cssRowKey:f,combinedSignature:u,extraEdges:J,callback:H})}else P=K.scsReferenceUrl_,K={cssRowKey:K.cssRowKey_,combinedSignature:K.combinedSignature_,requestedModuleIds:J_C(K),requestedCssModuleIds:ZLL(K)},J=K===void 0?{}:K,K=J.requestedCssModuleIds===void 0?[]:J.requestedCssModuleIds,F=J.cssRowKey===void 0?void 0:J.cssRowKey,f=J.combinedSignature===void 0?void 0:J.combinedSignature,u=J.extraEdges===void 0?
void 0:J.extraEdges,J=J.callback===void 0?void 0:J.callback,P=iQC(P),B0O(P,K),X=ITW(P,X,{cssRowKey:F,combinedSignature:f,extraEdges:u,callback:J});return X};
_.yA=function(K,X){for(var F=!1,P=[],H=0;H<X.length;++H){var f=X[H];K.requestedModuleMap_[f]||(K.requestedModuleMap_[f]=!0,K.requestedModuleList_.push(f),F=!0,P.push(f))}F&&(K.requestedModuleListSorted_=!1)};
_.d9=function(K,X){for(var F=[],P=0;P<X.length;++P){var H=X[P];K.requestedModuleMap_[H]&&(delete K.requestedModuleMap_[H],_.CO(K.requestedModuleList_,H),F.push(H))}};
_.WT.prototype.load=function(K,X,F,P,H){H=H===void 0?X:H;_.ui(K);var f=this.useCors_,u=this.corsMode_,J=this.fetchPriority,Z=_.nJ("SCRIPT");_.li(Z,K);f&&(Z.crossOrigin=u);Z.async=!1;J&&Z.setAttribute("fetchpriority",J);_.yA(this,X);_.QIt(this,K,Z,X,F,P,H)};
_.QIt=function(K,X,F,P,H,f,u){u=u===void 0?P:u;K.lastScript_=F;K.insertPos.insertBefore(F,K.insertPos.firstChild);_.MFu(F,P,function(){F.parentElement.removeChild(F);K.lastScript_==F&&(K.lastScript_=null);var J=new Set;P.map(function(M){return J.add(M)});
for(var Z in K.JSC$8944_moduleInfoMap_)K.JSC$8944_moduleInfoMap_[Z].isLoaded()&&J.add(Z);Array.from(J);f()},function(J){F.parentElement.removeChild(F);
K.lastScript_==F&&(K.lastScript_=null);_.d9(K,J);K.pendingModuleGraphUpdate_?K.pendingModuleGraphUpdate_.then(function(){H(-1,X)}):H(-1,X)},u)};
_.MFu=function(K,X,F,P,H){H=H===void 0?X:H;var f=X.length,u=function(){f=0;K.onload=null;K.onerror=null;J=function(){}},J=function(){u();
var M=H.filter(function(n){return!yY().getModuleInfo(n).isLoaded()});
M.length!==0?P(M,"Response was successful but was missing module(s) "+M+"."):F()},Z=function(){f--;
f==0&&J()};
X.forEach(function(M){M=yY().getModuleInfo(M);M.isLoaded()?Z():(HLZ(M.earlyOnloadCallbacks_,Z),sIT(M,Z))});
K.onload=function(){return J()};
K.onerror=function(){u();P(X)}};
J_C=function(K){K.requestedModuleListSorted_||(K.requestedModuleListSorted_=!0,K.requestedModuleList_.sort());return K.requestedModuleList_};
ZLL=function(K){K=K.loadedCssModuleList_;K.sort();return K};
uYu=function(K,X){return X.filter(function(F){return!K.requestedModuleMap_[F]})};
qjL=function(K,X,F,P){if(K.pendingModuleGraphUpdate_)return K.pendingModuleGraphUpdate_.then(function(){qjL(K,X,F,P)}),!0;
if(!K.useNegativeLoading_){var H=[],f=Object.assign({},K.requestedModuleMap_);n3C(K,X,function(n){H.push(n.getId())},P,function(n){return!n.isLoaded()},f);
X=H}for(f=0;f<X.length;){for(var u=X.length-f,J=f==0?X:X.slice(f,X.length),Z=YjN(K,J,P),M=_.ui(Z).toString();M.length>K.urlMaxLength;)if(u>1)u-=Math.ceil((M.length-K.urlMaxLength)/6),u=Math.max(u,1),J=X.slice(f,f+u),Z=YjN(K,J,P),M=_.ui(Z).toString();else return K.useNegativeLoading_?(K.useNegativeLoading_=!1,K.pendingModuleGraphUpdate_=c_N(K).then(function(n){puO(K,n,P)}),qjL(K,X.slice(f),F,P)):!1;
f+=u;K.useNegativeLoading_?F(Z,J):F(Z,J,f===X.length?X:[])}return!0};
puO=function(K,X,F){yY().setAllModuleInfoString((X||{}).moduleGraph);n3C(K,J_C(K),function(P){_.yA(K,[P.getId()])},F);
K.pendingModuleGraphUpdate_=null};
n3C=function(K,X,F,P,H,f){f=f===void 0?{}:f;var u=yY();X=_.D(X);for(var J=X.next();!J.done;J=X.next()){J=J.value;var Z=u.getModuleInfo(J);if(!(f[J]||H&&!H(Z))){f[J]=!0;var M=Z.deps_||[];if(P){var n=[];P[J]&&(n=Object.keys(P[J]));M=M.concat(n)}n3C(K,M,F,P,H,f);F(Z)}}};
c_N=function(K){K=K.scsReferenceUrl_.clone();L8C(K);qE(K,"dg",null);qE(K,"md","1");return KcL(K.toString())};var of4=new Uint8Array(123);var BcQ=[];var SjU=function(){this.JSC$8064_loader_=null};
_.z=SjU.prototype;_.z.setBatchModeEnabled=function(){};
_.z.setAllModuleInfoString=function(){};
_.z.addExtraEdge=function(){throw Error("nd");};
_.z.removeExtraEdge=function(){throw Error("od");};
_.z.getModuleContext=function(){return null};
_.z.isActive=function(){return!1};
_.z.isUserActive=function(){return!1};
_.z.registerCallback=function(){};var eq=function(K,X,F,P,H){var f=Error.call(this);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.name="ModuleLoadFailure";this.type=K;this.status=X;this.requestedModuleIds=F;this.url=P;this.cause=H;this.message=this.toString()};
_.r(eq,Error);eq.prototype.toString=function(){return o3E(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var o3E=function(K){switch(K.type){case eq.JSC$8956_Type.UNAUTHORIZED:return"Unauthorized";case eq.JSC$8956_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case eq.JSC$8956_Type.TIMEOUT:return"Timed out";case eq.JSC$8956_Type.OLD_CODE_GONE:return"Out of date module id";case eq.JSC$8956_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+K.type}};
VP.ModuleLoadFailure=eq;VP.ModuleLoadFailure.JSC$8956_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var RK=function(){this.moduleIds_=this.JSC$8064_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8959_extraEdges_={};this.JSC$8959_callbackMap_={};this.JSC$8959_currentlyLoadingModule_=this.baseModuleInfo_=new w9([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new UQ;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.br(RK,SjU);var LcW=function(K,X){_.KO.call(this,"Error loading "+K+": "+X)};
_.br(LcW,_.KO);RK.prototype.setBatchModeEnabled=function(K){this.batchModeEnabled_=K};
RK.prototype.setAllModuleInfoString=function(K,X){if(!(this instanceof RK))this.setAllModuleInfoString(K,X);else if(typeof K==="string"){if(K.startsWith("d$")){K=K.substring(2);for(var F=[],P=0,H=K.indexOf("/"),f=0,u=!1,J=0;;){var Z=u?K.substring(f):K.substring(f,H);if(Z.length===0)P++,f="sy"+P.toString(36),Z=[];else{var M=Z.indexOf(":");if(M<0)f=Z,Z=[];else if(M===Z.length-1)f=Z.substring(0,M),Z=Array(F[J-1]);else{f=Z.substring(0,M);Z=Z.substring(M+1).split(",");M=J;for(var n=0;n<Z.length;n++)M-=
Z[n].length===0?1:Number(Z[n]),Z[n]=F[M]}M=0;if(f.length===0)M=1;else if(f.charAt(0)==="+"||f.charAt(0)==="-")M=Number(f);M!==0&&(P+=M,f="sy"+P.toString(36))}F.push(f);Tct(this,f,Z);if(u)break;f=H+1;H=K.indexOf("/",f);H===-1&&(u=!0);J++}this.moduleIds_=F}else if(K.startsWith("p$"))r_O(this,K);else{K=K.split("/");F=[];for(P=0;P<K.length;P++){J=K[P].split(":");H=J[0];u=[];if(J[1])for(u=J[1].split(","),J=0;J<u.length;J++)u[J]=F[parseInt(u[J],36)];F.push(H);Tct(this,H,u)}this.moduleIds_=F}X&&X.length?
(_.I3(this.loadingModuleIds_,X),this.lastInitialModuleId_=_.m4(X)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8959_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8959_currentlyLoadingModule_=null,(X=this.baseModuleInfo_.onLoad((0,_.T3)(this.getModuleContext,this)))&&X.length&&A_L(this,new VP.ModuleLoadFailure(VP.ModuleLoadFailure.JSC$8956_Type.INIT_ERROR,void 0,void 0,void 0,X[0])),Ur(this))}};
var r_O=function(K,X){var F=X.substring(2);for(X=0;X<64;X++)of4["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(X)]=X;var P={buf:F,pos:0};x3(P);var H=x3(P),f=x3(P)+1;X=Array(H);var u=Array(H),J=Array(H);f=Array(f);var Z=0,M=0,n=P.pos,c=P.buf.indexOf("|",P.pos);P.pos=c+1;for(c=0;c<H;c++){var B=x3(P),L=B&2,A=B&1;B>>>=2;A?(Z+=B>>>1^-(B&1),B="sy"+Z.toString(36)):(A=n,n+=B,B=F.substring(A,n));X[c]=B;L&&(f[M++]=B)}f[M]="";P.pos++;M=H&-2;F=H&1;for(Z=0;Z<M;Z+=2)n=LWd(P),J[Z]=
n&7,J[Z+1]=n>>>3&7;F&&(F=LWd(P),J[M]=F&7);P.pos++;for(M=0;M<H;M++)J[M]===7&&(J[M]=x3(P));P.pos++;for(F=M=0;F<H;F++){Z=J[F];n=Z===0?BcQ:Array(Z);u[F]=n;c=M;for(L=0;L<Z;L++)c-=x3(P),n[L]=f[c];f[M]===X[F]&&M++}for(P=0;P<X.length;P++)Tct(K,X[P],u[P]);K.moduleIds_=X};
_.z=RK.prototype;_.z.getModuleInfo=function(K){return this.moduleInfoMap[K]};
_.z.addExtraEdge=function(K,X){var F=this.getModuleInfo(K);F&&F.isLoaded()?this.load(X):(this.JSC$8959_extraEdges_[K]||(this.JSC$8959_extraEdges_[K]={}),this.JSC$8959_extraEdges_[K][X]=!0)};
_.z.removeExtraEdge=function(K,X){if(this.JSC$8959_extraEdges_[K]){delete this.JSC$8959_extraEdges_[K][X];for(var F in this.JSC$8959_extraEdges_[K])return;delete this.JSC$8959_extraEdges_[K]}};
_.z.isActive=function(){return this.loadingModuleIds_.length>0};
_.z.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var Ur=function(K){var X=K.lastActive_,F=K.isActive();F!=X&&(K.executeCallbacks_(F?"active":"idle"),K.lastActive_=F);X=K.isUserActive();X!=K.userLastActive_&&(K.executeCallbacks_(X?"userActive":"userIdle"),K.userLastActive_=X)},Tct=function(K,X,F){K.moduleInfoMap[X]?(K=K.moduleInfoMap[X].deps_,K!=F&&K.splice.apply(K,[0,
K.length].concat(_.LZ(F)))):K.moduleInfoMap[X]=new w9(F,X)},wuu=function(K,X,F){var P=[];
PN(X,P);X=[];for(var H={},f=0;f<P.length;f++){var u=P[f],J=K.getModuleInfo(u);if(!J)throw Error("pd`"+u);var Z=new UQ;H[u]=Z;J.isLoaded()?Z.callback(null):(jIO(K,u,J,!!F,Z),K.isModuleLoading(u)||X.push(u))}X.length>0&&(K.loadingModuleIds_.length===0?K.loadModules_(X):(K.requestedModuleIdsQueue_.push(X),Ur(K)));return H},jIO=function(K,X,F,P,H){F.registerCallback(H.callback,H);
sIT(F,function(f){H.errback(new LcW(X,f))});
K.isModuleLoading(X)?P&&(y_L(K,X),Ur(K)):P&&y_L(K,X)};
RK.prototype.loadModules_=function(K,X,F){var P=this;X||(this.consecutiveFailures_=0);var H=WcL(this,K);this.loadingModuleIds_=H;this.requestedLoadingModuleIds_=this.batchModeEnabled_?K:_.Nq(H);Ur(this);if(H.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,H);if(Object.keys(this.JSC$8959_extraEdges_).length>0&&!this.JSC$8064_loader_.supportsExtraEdges)throw Error("qd");K=(0,_.T3)(this.JSC$8064_loader_.JSC$8946_loadModules,this.JSC$8064_loader_,_.Nq(H),this.moduleInfoMap,{extraEdges:this.JSC$8959_extraEdges_,
forceReload:!!F,onError:function(f,u){var J=P.requestedLoadingModuleIds_;f=f!=null?f:void 0;P.consecutiveFailures_++;var Z=_.Nq(H);P.requestedLoadingModuleIds_=J;H.forEach(_.Jc(_.CO,P.requestedModuleIds_),P);f==401?(A_L(P,new VP.ModuleLoadFailure(VP.ModuleLoadFailure.JSC$8956_Type.UNAUTHORIZED,f)),P.requestedModuleIdsQueue_.length=0):f==410?(dFO(P,new VP.ModuleLoadFailure(VP.ModuleLoadFailure.JSC$8956_Type.OLD_CODE_GONE,f)),eML(P)):P.consecutiveFailures_>=3?(dFO(P,new VP.ModuleLoadFailure(VP.ModuleLoadFailure.JSC$8956_Type.CONSECUTIVE_FAILURES,
f,Z,u)),eML(P)):P.loadModules_(P.requestedLoadingModuleIds_,!0,f==8001||!1)},
onTimeout:(0,_.T3)(this.handleLoadTimeout_,this)});(X=Math.pow(this.consecutiveFailures_,2)*5E3)?_.FP.setTimeout(K,X):K()}};
var WcL=function(K,X){X=X.filter(function(H){return K.moduleInfoMap[H].isLoaded()?(_.FP.setTimeout(function(){return Error("rd`"+H)},0),!1):!0});
for(var F=[],P=0;P<X.length;P++)F=F.concat(RME(K,X[P]));PN(F);return!K.batchModeEnabled_&&F.length>1?(X=F.shift(),K.requestedModuleIdsQueue_=F.map(function(H){return[H]}).concat(K.requestedModuleIdsQueue_),[X]):F},RME=function(K,X){var F=_.T8.createSet(K.requestedModuleIds_),P=[];
F[X]||P.push(X);X=[X];for(var H=0;H<X.length;H++)for(var f=K.getModuleInfo(X[H]).deps_,u=f.length-1;u>=0;u--){var J=f[u];K.getModuleInfo(J).isLoaded()||F[J]||(P.push(J),X.push(J))}P.reverse();PN(P);return P};
RK.prototype.JSC$8954_setLoaded=function(){if(this.JSC$8959_currentlyLoadingModule_){var K=this.JSC$8959_currentlyLoadingModule_.getId(),X=[];if(this.JSC$8959_extraEdges_[K]){for(var F=_.D(Object.keys(this.JSC$8959_extraEdges_[K])),P=F.next();!P.done;P=F.next()){P=P.value;var H=this.getModuleInfo(P);H&&!H.isLoaded()&&(this.removeExtraEdge(K,P),X.push(P))}this.loadMultiple(X)}this.isDisposed()||((X=this.moduleInfoMap[K].onLoad((0,_.T3)(this.getModuleContext,this)))&&X.length&&A_L(this,new VP.ModuleLoadFailure(VP.ModuleLoadFailure.JSC$8956_Type.INIT_ERROR,
void 0,void 0,void 0,X[0])),_.CO(this.userInitiatedLoadingModuleIds_,K),_.CO(this.loadingModuleIds_,K),this.loadingModuleIds_.length===0&&eML(this),this.lastInitialModuleId_&&K==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),Ur(this),this.JSC$8959_currentlyLoadingModule_=null)}};
RK.prototype.isModuleLoading=function(K){if(_.Ol(this.loadingModuleIds_,K))return!0;for(var X=0;X<this.requestedModuleIdsQueue_.length;X++)if(_.Ol(this.requestedModuleIdsQueue_[X],K))return!0;return!1};
RK.prototype.load=function(K,X){return wuu(this,[K],X)[K]};
RK.prototype.loadMultiple=function(K){return wuu(this,K)};
var y_L=function(K,X){_.Ol(K.userInitiatedLoadingModuleIds_,X)||K.userInitiatedLoadingModuleIds_.push(X)};
RK.prototype.beforeLoadModuleCode=function(K){var X=this;this.JSC$8959_currentlyLoadingModule_&&this.JSC$8959_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8954_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[K]&&UFL(this,this.moduleInfoMap[K].deps_||[],function(F){F.module_=new jq;_.CO(X.loadingModuleIds_,F.getId())},function(F){return!F.isLoaded()});
this.JSC$8959_currentlyLoadingModule_=this.getModuleInfo(K)};
RK.prototype.handleLoadTimeout_=function(){dFO(this,new VP.ModuleLoadFailure(VP.ModuleLoadFailure.JSC$8956_Type.TIMEOUT));eML(this)};
var dFO=function(K,X){K.requestedLoadingModuleIds_.length>1?K.requestedModuleIdsQueue_=K.requestedLoadingModuleIds_.map(function(F){return[F]}).concat(K.requestedModuleIdsQueue_):A_L(K,X)},A_L=function(K,X){var F=K.requestedLoadingModuleIds_;
K.loadingModuleIds_.length=0;for(var P=[],H=0;H<K.requestedModuleIdsQueue_.length;H++){var f=K.requestedModuleIdsQueue_[H].filter(function(Z){var M=RME(this,Z);return aa(F,function(n){return _.Ol(M,n)})},K);
_.I3(P,f)}for(H=0;H<F.length;H++)_.El(P,F[H]);for(H=0;H<P.length;H++){for(f=0;f<K.requestedModuleIdsQueue_.length;f++)_.CO(K.requestedModuleIdsQueue_[f],P[H]);_.CO(K.userInitiatedLoadingModuleIds_,P[H])}if(H=K.JSC$8959_callbackMap_.error)for(f=0;f<H.length;f++)for(var u=H[f],J=0;J<P.length;J++)u("error",P[J],X);for(P=0;P<F.length;P++)if(K.moduleInfoMap[F[P]])K.moduleInfoMap[F[P]].onError(X);K.requestedLoadingModuleIds_.length=0;Ur(K)},eML=function(K){for(;K.requestedModuleIdsQueue_.length;){var X=
K.requestedModuleIdsQueue_.shift().filter(function(F){return!this.getModuleInfo(F).isLoaded()},K);
if(X.length>0){K.loadModules_(X);return}}Ur(K)};
RK.prototype.registerCallback=function(K,X){Array.isArray(K)||(K=[K]);for(var F=0;F<K.length;F++){var P=K[F],H=X,f=this.JSC$8959_callbackMap_;f[P]||(f[P]=[]);f[P].push(H)}};
RK.prototype.executeCallbacks_=function(K){for(var X=this.JSC$8959_callbackMap_[K],F=0;X&&F<X.length;F++)X[F](K)};
var UFL=function(K,X,F,P,H){P=P===void 0?function(){return!0}:P;
H=H===void 0?{}:H;X=_.D(X);for(var f=X.next();!f.done;f=X.next()){f=f.value;var u=K.getModuleInfo(f);!H[f]&&P(u)&&(H[f]=!0,UFL(K,u.deps_||[],F,P,H),F(u))}};
RK.prototype.dispose=function(){_.xp(_.T8.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8959_callbackMap_={};this.isDisposed_=!0};
RK.prototype.isDisposed=function(){return this.isDisposed_};
_.w0=function(){return new RK};var hMV=[5E3,2E4],mFL=function(){this.JSC$8064_loader_=null;this.JSC$8967_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8967_queue_=[];this.JSC$8967_extraEdges_=Object.create(null);this.JSC$8967_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.r(mFL,SjU);_.z=mFL.prototype;_.z.setAllModuleInfoString=function(){this.JSC$8967_currentlyLoadingModule_&&this.JSC$8967_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8954_setLoaded()};
_.z.getModuleInfo=function(K){var X=this.JSC$8967_moduleInfoMap_[K];X||(X=new w9([],K),this.JSC$8967_moduleInfoMap_[K]=X);return X};
_.z.addExtraEdge=function(K,X){this.getModuleInfo(K).isLoaded()?this.load(X):(this.JSC$8967_extraEdges_[K]||(this.JSC$8967_extraEdges_[K]={}),this.JSC$8967_extraEdges_[K][X]=!0)};
_.z.removeExtraEdge=function(K,X){if(this.JSC$8967_extraEdges_[K]){delete this.JSC$8967_extraEdges_[K][X];for(var F in this.JSC$8967_extraEdges_[K])return;delete this.JSC$8967_extraEdges_[K]}};
_.z.isModuleLoading=function(K){return!!this.loadingModules_[K]};
_.z.load=function(K){GTt(this,[K]);return lWW(this,K)};
_.z.loadMultiple=function(K){var X=this,F=Object.create(null),P=[];K.forEach(function(H){F[H]||(F[H]=lWW(X,H),P.push(H))});
GTt(this,P);return F};
_.z.beforeLoadModuleCode=function(K){var X;((X=this.JSC$8967_currentlyLoadingModule_)==null?void 0:X.getId())==="synthetic_module_overhead"&&this.JSC$8954_setLoaded();var F,P;v3t(this,(P=(F=this.JSC$8967_moduleInfoMap_[K])==null?void 0:F.deps_)!=null?P:[],function(H){H.module_=new jq},function(H){return!H.isLoaded()});
this.JSC$8967_currentlyLoadingModule_=this.getModuleInfo(K)};
_.z.JSC$8954_setLoaded=function(){if(this.JSC$8967_currentlyLoadingModule_){var K=this.JSC$8967_currentlyLoadingModule_.getId(),X=[];if(this.JSC$8967_extraEdges_[K]){for(var F=_.D(Object.keys(this.JSC$8967_extraEdges_[K])),P=F.next();!P.done;P=F.next())P=P.value,this.getModuleInfo(P).isLoaded()||(this.removeExtraEdge(K,P),X.push(P));this.loadMultiple(X)}this.JSC$8967_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8967_currentlyLoadingModule_=null;(!this.isModuleLoading(K)&&/^sy[0-9a-z]{0,4}$/.test(K)||K==="synthetic_module_overhead")&&delete this.JSC$8967_moduleInfoMap_[K];this.unsetModulesAsLoading(K)}};
_.z.setModulesAsLoading=function(){var K=this;_.Ls.apply(0,arguments).forEach(function(X){K.loadingModules_[X]=!0})};
_.z.unsetModulesAsLoading=function(){var K=this;_.Ls.apply(0,arguments).forEach(function(X){delete K.loadingModules_[X]})};
var lWW=function(K,X){return new _.fL(function(F,P){var H=K.getModuleInfo(X);H.isLoaded()?F(null):(H.registerCallback(function(){F(null)}),sIT(H,function(f){var u="Error loading "+X+": "+f;
f instanceof VP.ModuleLoadFailure&&f.url&&(u=u+", requested url: "+f.url.toString());P(Error(u))}))})},GTt=function(K,X){X=X.filter(function(F){return!K.isModuleLoading(F)&&!K.getModuleInfo(F).isLoaded()});
X.length>0&&(K.setModulesAsLoading.apply(K,_.LZ(X)),K.JSC$8967_queue_.push(X),aWL(K))},aWL=function(K){for(var X={};K.activeLoads_<Infinity&&K.JSC$8967_queue_.length>0;X={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})X.ids$jscomp$36=K.JSC$8967_queue_.shift().filter(function(F){return!K.getModuleInfo(F).isLoaded()}),X.ids$jscomp$36.length>0&&(K.activeLoads_++,X.finishLoad=function(F){return function(){K.activeLoads_--;
aWL(K);F.finishLoad=function(){}}}(X),_.ZG(X.ids$jscomp$36.map(function(F){return lWW(K,F)})).then(function(F){return function(){(0,F.finishLoad)()}}(X)),X.attempt$jscomp$6=0,X.load$jscomp$1=function(F){return function(){if(Object.keys(K.JSC$8967_extraEdges_).length>0&&!K.JSC$8064_loader_.supportsExtraEdges)throw Error("qd");
K.JSC$8064_loader_.JSC$8946_loadModules(F.ids$jscomp$36,K.JSC$8967_moduleInfoMap_,{extraEdges:K.JSC$8967_extraEdges_,onError:function(P,H){var f=hMV[F.attempt$jscomp$6++];f!==void 0?setTimeout(function(){(0,F.load$jscomp$1)()},f):(K.unsetModulesAsLoading.apply(K,_.LZ(F.ids$jscomp$36)),(0,F.finishLoad)(),F.ids$jscomp$36.forEach(function(u){u=K.getModuleInfo(u);
if(!u.isLoaded())u.onError(new VP.ModuleLoadFailure(VP.ModuleLoadFailure.JSC$8956_Type.CONSECUTIVE_FAILURES,P,F.ids$jscomp$36,H))}))}})}}(X),(0,X.load$jscomp$1)())},v3t=function(K,X,F,P,H){P=P===void 0?function(){return!0}:P;
H=H===void 0?{}:H;X=_.D(X);for(var f=X.next();!f.done;f=X.next()){f=f.value;var u=K.getModuleInfo(f);!H[f]&&P(u)&&(H[f]=!0,v3t(K,u.deps_||[],F,P,H),F(u))}};var tFu=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var re4=Symbol("td");window.JSCompiler_renameProperty=function(K){return K};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var $FC=!tFu||HTMLElement.es5Shimmed||_.FP.Reflect===void 0||_.FP.customElements===void 0||_.FP.customElements.polyfillWrapFlushCallback||!1,OLW,auP=function(){var K=HTMLElement;if($FC)return K;if(OLW!==void 0)return OLW;var X=_.FP.Reflect,F=function(){return X.construct(K,[],this.constructor)};
F.prototype=K.prototype;F.prototype.constructor=F;F.es5Shimmed=!0;Object.setPrototypeOf(F,K);return OLW=F},VFt=!1;$FC||VFt||(VFt=!0,_.FP.HTMLElement=auP());/*

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 WWw=/(url\()([^)]*)(\))/g,wOy=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,yeM,II;var Wb=!window.ShadyDOM||!window.ShadyDOM.inUse,g3U=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),E3W=!window.customElements.polyfillWrapFlushCallback,bLt;if(bLt=Wb&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var CyN=new CSSStyleSheet;CyN.replaceSync("");var NcT=document.createElement("div");NcT.attachShadow({mode:"open"});NcT.shadowRoot.adoptedStyleSheets=[CyN];bLt=NcT.shadowRoot.adoptedStyleSheets[0]===CyN}catch(K){bLt=!1}
var iLu=bLt,xFu=window.Polymer&&window.Polymer.rootPath||eWl(document.baseURI||window.location.href),Zp=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,t63=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Ui=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,IWQ=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,yF=window.Polymer&&window.Polymer.legacyOptimizations||!1,R2=window.Polymer&&window.Polymer.legacyWarnings||!1,kTE=window.Polymer&&window.Polymer.syncInitialRender||
!1,QF=window.Polymer&&window.Polymer.legacyUndefined||!1,K7V=window.Polymer&&window.Polymer.orderedComputed||!1,hK=window.Polymer&&window.Polymer.removeNestedTemplates||!1,mN=window.Polymer&&window.Polymer.fastDomIf||!1,GO=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,XbL=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,F7V=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var lz={},PvT={},nD=function(){return HTMLElement.apply(this,arguments)||this};
_.r(nD,HTMLElement);nD.import=function(K,X){return K?(K=lz[K]||PvT[K.toLowerCase()])&&X?K.querySelector(X):K:null};
nD.prototype.attributeChangedCallback=function(K,X,F){X!==F&&this.register()};
nD.prototype.register=function(K){if(K=K||this.id){if(Ui&&(lz[K]||PvT[K.toLowerCase()])!==void 0)throw lz[K]=PvT[K.toLowerCase()]=null,Error("ud`"+K);this.id=K;lz[K]=PvT[K.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.Oi.Object.defineProperties(nD.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var K=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;K=_.k3(this.getAttribute("assetpath")||"",K.baseURI);this.__assetpath=eWl(K)}return this.__assetpath}}});
_.Oi.Object.defineProperties(nD,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
nD["import"]=nD.import;nD.prototype.modules=lz;customElements.define("dom-module",nD);var HDL=0,UBn=0,KD=[],s2Z=0,RWw=!1,zbL=document.createTextNode(""),fpt,jW;(new window.MutationObserver(hWn)).observe(zbL,{characterData:!0});_.vT={after:function(K){return{run:function(X){return window.setTimeout(X,K)},
cancel:function(X){window.clearTimeout(X)}}},
run:function(K,X){return window.setTimeout(K,X)},
cancel:function(K){window.clearTimeout(K)}};
_.cn={run:function(K){return window.requestAnimationFrame(K)},
cancel:function(K){window.cancelAnimationFrame(K)}};
fpt={run:function(K){return window.requestIdleCallback?window.requestIdleCallback(K):window.setTimeout(K,16)},
cancel:function(K){window.cancelIdleCallback?window.cancelIdleCallback(K):window.clearTimeout(K)}};
jW={run:function(K){RWw||(RWw=!0,zbL.textContent=s2Z++);KD.push(K);return HDL++},
cancel:function(K){var X=K-UBn;if(X>=0){if(!KD[X])throw Error("vd`"+K);KD[X]=null}}};var DzQ=0,aK=function(K){var X=K.__mixinApplications;X||(X=new WeakMap,K.__mixinApplications=X);var F=DzQ++;return function(P){var H=P.__mixinSet;if(H&&H[F])return P;var f=X,u=f.get(P);u||(u=K(P),f.set(P,u),P=Object.create(u.__mixinSet||H||null),P[F]=!0,u.__mixinSet=P);return u}};_.Jg=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(K){return ShadyDOM.patch(K)}:function(K){return K};var uSW=aK(function(K){var X=function(){var F=K.call(this)||this;F.__dataEnabled=!1;F.__dataReady=!1;F.__dataInvalid=!1;F.__data={};F.__dataPending=null;F.__dataOld=null;F.__dataInstanceProps=null;F.__dataCounter=0;F.__serializing=!1;F._initializeProperties();return F};
_.r(X,K);X.createProperties=function(F){var P=this.prototype,H;for(H in F)H in P||P._createPropertyAccessor(H)};
X.attributeNameForProperty=function(F){return F.toLowerCase()};
X.typeForProperty=function(){};
X.prototype._createPropertyAccessor=function(F,P){this._addPropertyToAttributeMap(F);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[F]||(this.__dataHasAccessor[F]=!0,this._definePropertyAccessor(F,P))};
X.prototype._addPropertyToAttributeMap=function(F){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var P=this.__dataAttributes[F];P||(P=this.constructor.attributeNameForProperty(F),this.__dataAttributes[P]=F);return P};
X.prototype._definePropertyAccessor=function(F,P){Object.defineProperty(this,F,{get:function(){return this.__data[F]},
set:P?function(){}:function(H){this._setPendingProperty(F,H,!0)&&this._invalidateProperties()}})};
X.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
X.prototype._initializeProperties=function(){for(var F in this.__dataHasAccessor)this.hasOwnProperty(F)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[F]=this[F],delete this[F])};
X.prototype._initializeInstanceProperties=function(F){Object.assign(this,F)};
X.prototype._setProperty=function(F,P){this._setPendingProperty(F,P)&&this._invalidateProperties()};
X.prototype._getProperty=function(F){return this.__data[F]};
X.prototype._setPendingProperty=function(F,P){var H=this.__data[F],f=this._shouldPropertyChange(F,P,H);f&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||F in this.__dataOld||(this.__dataOld[F]=H),this.__data[F]=P,this.__dataPending[F]=P);return f};
X.prototype._isPropertyPending=function(F){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(F))};
X.prototype._invalidateProperties=function(){var F=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,jW.run(function(){F.__dataInvalid&&(F.__dataInvalid=!1,F._flushProperties())}))};
X.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
X.prototype._flushProperties=function(){this.__dataCounter++;var F=this.__data,P=this.__dataPending,H=this.__dataOld;this._shouldPropertiesChange(F,P,H)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(F,P,H));this.__dataCounter--};
X.prototype._shouldPropertiesChange=function(F,P){return!!P};
X.prototype._propertiesChanged=function(){};
X.prototype._shouldPropertyChange=function(F,P,H){return H!==P&&(H===H||P===P)};
X.prototype.attributeChangedCallback=function(F,P,H,f){P!==H&&this._attributeToProperty(F,H);K.prototype.attributeChangedCallback&&K.prototype.attributeChangedCallback.call(this,F,P,H,f)};
X.prototype._attributeToProperty=function(F,P,H){if(!this.__serializing){var f=this.__dataAttributes;F=f&&f[F]||F;this[F]=this._deserializeValue(P,H||this.constructor.typeForProperty(F))}};
X.prototype._propertyToAttribute=function(F,P,H){this.__serializing=!0;H=arguments.length<3?this[F]:H;this._valueToNodeAttribute(this,H,P||this.constructor.attributeNameForProperty(F));this.__serializing=!1};
X.prototype._valueToNodeAttribute=function(F,P,H){P=this._serializeValue(P);if(H==="class"||H==="name"||H==="slot")F=(0,_.Jg)(F);P===void 0?F.removeAttribute(H):F.setAttribute(H,P===""&&window.trustedTypes?window.trustedTypes.emptyScript:P)};
X.prototype._serializeValue=function(F){switch(typeof F){case "boolean":return F?"":void 0;default:return F!=null?F.toString():void 0}};
X.prototype._deserializeValue=function(F,P){switch(P){case Boolean:return F!==null;case Number:return Number(F);default:return F}};
return X});var qiu=0,mBn=[];var JgZ=aK(function(K){function X(f){f=Object.getPrototypeOf(f);return f.prototype instanceof H?f:null}
function F(f){if(!f.hasOwnProperty("__ownProperties")){var u=null;if(f.hasOwnProperty("properties")){var J=f.properties;if(J){u={};for(var Z in J){var M=J[Z];u[Z]=typeof M==="function"?{type:M}:M}}}f.__ownProperties=u}return f.__ownProperties}
var P=uSW(K),H=function(){return P.apply(this,arguments)||this};
_.r(H,P);H.finalize=function(){if(!this.hasOwnProperty("__finalized")){var f=X(this);f&&f.finalize();this.__finalized=!0;this._finalizeClass()}};
H._finalizeClass=function(){var f=F(this);f&&this.createProperties(f)};
H.typeForProperty=function(f){return(f=this._properties[f])&&f.type};
H.prototype._initializeProperties=function(){qiu++;this.constructor.finalize();P.prototype._initializeProperties.call(this)};
H.prototype.connectedCallback=function(){P.prototype.connectedCallback&&P.prototype.connectedCallback.call(this);this._enableProperties()};
H.prototype.disconnectedCallback=function(){P.prototype.disconnectedCallback&&P.prototype.disconnectedCallback.call(this)};
_.Oi.Object.defineProperties(H,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var f=this;if(!this.hasOwnProperty("__observedAttributes")){G9l(this.prototype);var u=this._properties;this.__observedAttributes=u?Object.keys(u).map(function(J){return f.prototype._addPropertyToAttributeMap(J)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var f=X(this);this.__properties=Object.assign({},f&&f._properties,F(this))}return this.__properties}}});
return H});var lF9={},vfO=/-[a-z]/g,aFn=/([A-Z])/g;for(var ZDT={},YiO=HTMLElement.prototype;YiO;){for(var Q2t=Object.getOwnPropertyNames(YiO),MWZ=0;MWZ<Q2t.length;MWZ++)ZDT[Q2t[MWZ]]=!0;YiO=Object.getPrototypeOf(YiO)}var nhU=window.trustedTypes?function(K){return trustedTypes.isHTML(K)||trustedTypes.isScript(K)||trustedTypes.isScriptURL(K)}:function(){return!1},cgL=aK(function(K){var X=uSW(K);
K=function(){return X.apply(this,arguments)||this};
_.r(K,X);K.createPropertiesForAttributes=function(){for(var F=this.observedAttributes,P=0;P<F.length;P++)this.prototype._createPropertyAccessor(XS(F[P]))};
K.attributeNameForProperty=function(F){return FS(F)};
K.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);X.prototype._initializeProperties.call(this)};
K.prototype._initializeProtoProperties=function(F){for(var P in F)this._setProperty(P,F[P])};
K.prototype._ensureAttribute=function(F,P){this.hasAttribute(F)||this._valueToNodeAttribute(this,P,F)};
K.prototype._serializeValue=function(F){switch(typeof F){case "object":if(F instanceof Date)return F.toString();if(F){if(nhU(F))return F;try{return JSON.stringify(F)}catch(P){return""}}default:return X.prototype._serializeValue.call(this,F)}};
K.prototype._deserializeValue=function(F,P){switch(P){case Object:try{var H=JSON.parse(F)}catch(f){H=F}break;case Array:try{H=JSON.parse(F)}catch(f){H=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+F)}break;case Date:H=isNaN(F)?String(F):Number(F);H=new Date(H);break;default:H=X.prototype._deserializeValue.call(this,F,P)}return H};
K.prototype._definePropertyAccessor=function(F,P){if(!ZDT[F]){var H=this[F];H!==void 0&&(this.__data?this._setPendingProperty(F,H):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[F]=H))}X.prototype._definePropertyAccessor.call(this,F,P)};
K.prototype._hasAccessor=function(F){return this.__dataHasAccessor&&this.__dataHasAccessor[F]};
K.prototype._isPropertyPending=function(F){return!!(this.__dataPending&&F in this.__dataPending)};
return K});var pbT={"dom-if":!0,"dom-repeat":!0},BgL=!1,SiL=!1,ohE=function(){var K=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(X){return X}});
return function(X,F,P){F=F.getAttribute(P);K&&P.startsWith("on-")?X.setAttribute(P,K.createScript(F,P)):X.setAttribute(P,F)}}(),L7t=aK(function(K){var X=function(){return K.apply(this,arguments)||this};
_.r(X,K);X._parseTemplate=function(F,P){if(!F._templateInfo){var H=F._templateInfo={};H.nodeInfoList=[];H.nestedTemplate=!!P;H.stripWhiteSpace=P&&P.stripWhiteSpace||F.hasAttribute&&F.hasAttribute("strip-whitespace");this._parseTemplateContent(F,H,{parent:null})}return F._templateInfo};
X._parseTemplateContent=function(F,P,H){return this._parseTemplateNode(F.content,P,H)};
X._parseTemplateNode=function(F,P,H){var f=!1;F.localName!="template"||F.hasAttribute("preserve-content")?F.localName==="slot"&&(P.hasInsertionPoint=!0):f=this._parseTemplateNestedTemplate(F,P,H)||f;if(!BgL){BgL=!0;var u=document.createElement("textarea");u.placeholder="a";SiL=u.placeholder===u.textContent}SiL&&F.localName==="textarea"&&F.placeholder&&F.placeholder===F.textContent&&(F.textContent=null);F.firstChild&&this._parseTemplateChildNodes(F,P,H);F.hasAttributes&&F.hasAttributes()&&(f=this._parseTemplateNodeAttributes(F,
P,H)||f);return f||H.noted};
X._parseTemplateChildNodes=function(F,P,H){if(F.localName!=="script"&&F.localName!=="style")for(var f=F.firstChild,u=0,J;f;f=J){if(f.localName=="template"){var Z=f.getAttribute("is");if(Z&&pbT[Z])for(J=f,J.removeAttribute("is"),f=J.ownerDocument.createElement(Z),J.parentNode.replaceChild(f,J),f.appendChild(J);J.attributes.length;)Z=J.attributes[0].name,ohE(f,J,Z),J.removeAttribute(Z)}J=f.nextSibling;if(f.nodeType===Node.TEXT_NODE){for(Z=J;Z&&Z.nodeType===Node.TEXT_NODE;)f.textContent+=Z.textContent,
J=Z.nextSibling,F.removeChild(Z),Z=J;if(P.stripWhiteSpace&&!f.textContent.trim()){F.removeChild(f);continue}}Z={parentIndex:u,parentInfo:H};this._parseTemplateNode(f,P,Z)&&(Z.infoIndex=P.nodeInfoList.push(Z)-1);f.parentNode&&u++}};
X._parseTemplateNestedTemplate=function(F,P,H){P=this._parseTemplate(F,P);(P.content=F.content.ownerDocument.createDocumentFragment()).appendChild(F.content);H.templateInfo=P;return!0};
X._parseTemplateNodeAttributes=function(F,P,H){for(var f=!1,u=Array.from(F.attributes),J=u.length-1,Z;Z=u[J];J--)f=this._parseTemplateNodeAttribute(F,P,H,Z.name,Z.value)||f;return f};
X._parseTemplateNodeAttribute=function(F,P,H,f,u){return f.slice(0,3)==="on-"?(F.removeAttribute(f),H.events=H.events||[],H.events.push({name:f.slice(3),value:u}),!0):f==="id"?(H.id=u,!0):!1};
X._contentForTemplate=function(F){var P=F._templateInfo;return P&&P.content||F.content};
X.prototype._stampTemplate=function(F,P){F&&!F.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(F);P=P||this.constructor._parseTemplate(F);var H=P.nodeInfoList;F=document.importNode(P.content||F.content,!0);F.__noInsertionPoint=!P.hasInsertionPoint;var f=F.nodeList=Array(H.length);F.$={};for(var u=0,J=H.length,Z=void 0;u<J&&(Z=H[u]);u++){var M=f[u]=td9(F,Z);Z.id&&(F.$[Z.id]=M);var n=M,c=Z,B=P;c.templateInfo&&(n._templateInfo=c.templateInfo,n._parentTemplateInfo=
B);if(Z.events&&Z.events.length)for(n=0,c=Z.events,B=void 0;n<c.length&&(B=c[n]);n++)this._addMethodEventListenerToNode(M,B.name,B.value,this)}return F};
X.prototype._addMethodEventListenerToNode=function(F,P,H,f){H=$BM(f||F,H);this._addEventListenerToNode(F,P,H);return H};
X.prototype._addEventListenerToNode=function(F,P,H){F.addEventListener(P,H)};
X.prototype._removeEventListenerFromNode=function(F,P,H){F.removeEventListener(P,H)};
return X});var uv=0,Yh=[],Tgt={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},rgU=/[A-Z]/,AgC=function(K,X,F,P,H){var f=H?Hb(K):K;if(X=X[f])for(f=0;f<X.length;f++){var u=X[f];if(u.info.lastRun!==uv&&(!H||CCy(K,u.trigger))){u.info.lastRun=uv;u=u.info;for(var J=F,Z=P,M=0,n=J.length-1,c=-1;M<=n;){var B=M+n>>1,L=Z.get(J[B].methodInfo)-Z.get(u.methodInfo);if(L<0)M=B+1;else if(L>0)n=B-1;else{c=B;break}}c<
0&&(c=n+1);J.splice(c,0,u)}}},ujT=[],j2N=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"),$s=aK(function(K){var X=L7t(cgL(K));
K=function(){var F=X.call(this)||this;F.__isPropertyEffectsClient=!0;return F};
_.r(K,X);K.prototype._initializeProperties=function(){X.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};
K.prototype._registerHost=function(){if(tK.length){var F=tK[tK.length-1];F._enqueueClient(this);this.__dataHost=F}};
K.prototype._initializeProtoProperties=function(F){this.__data=Object.create(F);this.__dataPending=Object.create(F);this.__dataOld={}};
K.prototype._initializeInstanceProperties=function(F){var P=this.__readOnly,H;for(H in F)P&&P[H]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[H]=this.__dataPending[H]=F[H])};
K.prototype._addPropertyEffect=function(F,P,H){this._createPropertyAccessor(F,P=="__readOnly");var f=b4O(this,P,!0)[F];f||(f=this[P][F]=[]);f.push(H)};
K.prototype._removePropertyEffect=function(F,P,H){F=b4O(this,P,!0)[F];H=F.indexOf(H);H>=0&&F.splice(H,1)};
K.prototype._hasPropertyEffect=function(F,P){P=this[P];return!(!P||!P[F])};
K.prototype._hasReadOnlyEffect=function(F){return this._hasPropertyEffect(F,"__readOnly")};
K.prototype._hasNotifyEffect=function(F){return this._hasPropertyEffect(F,"__notifyEffects")};
K.prototype._hasReflectEffect=function(F){return this._hasPropertyEffect(F,"__reflectEffects")};
K.prototype._hasComputedEffect=function(F){return this._hasPropertyEffect(F,"__computeEffects")};
K.prototype._setPendingPropertyOrPath=function(F,P,H,f){if(f||Hb(Array.isArray(F)?F[0]:F)!==F){if(!f&&(f=Dp(this,F),F=Efl(this,F,P),!F||!X.prototype._shouldPropertyChange.call(this,F,P,f)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(F,P,H)){if(H=this.__dataLinkedPaths)for(var u in H)f=H[u],si(u,F)?(f=zB(u,f,F),this._setPendingPropertyOrPath(f,P,!0,!0)):si(f,F)&&(f=zB(f,u,F),this._setPendingPropertyOrPath(f,P,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[F])return this._setPendingProperty(F,
P,H);this[F]=P}return!1};
K.prototype._setUnmanagedPropertyToNode=function(F,P,H){if(H!==F[P]||typeof H=="object")P==="className"&&(F=(0,_.Jg)(F)),F[P]=H};
K.prototype._setPendingProperty=function(F,P,H){var f=this.__dataHasPaths&&Pb(F);if(this._shouldPropertyChange(F,P,(f?this.__dataTemp:this.__data)[F])){this.__dataPending||(this.__dataPending={},this.__dataOld={});F in this.__dataOld||(this.__dataOld[F]=this.__data[F]);f?this.__dataTemp[F]=P:this.__data[F]=P;this.__dataPending[F]=P;if(f||this.__notifyEffects&&this.__notifyEffects[F])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[F]=H;return!0}return!1};
K.prototype._setProperty=function(F,P){this._setPendingProperty(F,P,!0)&&this._invalidateProperties()};
K.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
K.prototype._enqueueClient=function(F){this.__dataPendingClients=this.__dataPendingClients||[];F!==this&&this.__dataPendingClients.push(F)};
K.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
K.prototype.__enableOrFlushClients=function(){var F=this.__dataPendingClients;if(F){this.__dataPendingClients=null;for(var P=0;P<F.length;P++){var H=F[P];H.__dataEnabled?H.__dataPending&&H._flushProperties():H._enableProperties()}}};
K.prototype._readyClients=function(){this.__enableOrFlushClients()};
K.prototype.setProperties=function(F,P){for(var H in F)!P&&this.__readOnly&&this.__readOnly[H]||this._setPendingPropertyOrPath(H,F[H],!0);this._invalidateProperties()};
K.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
K.prototype._propertiesChanged=function(F,P,H){F=this.__dataHasPaths;this.__dataHasPaths=!1;var f;if(f=this.__computeEffects)if(K7V){uv++;var u=K_d(this),J=[],Z;for(Z in P)AgC(Z,f,J,u,F);for(;Z=J.shift();)F_P(this,"",P,H,Z)&&AgC(Z.methodInfo,f,J,u,F);Object.assign(H,this.__dataOld);Object.assign(P,this.__dataPending);this.__dataPending=null}else for(u=P;qz(this,f,u,H,F);)Object.assign(H,this.__dataOld),Object.assign(P,this.__dataPending),u=this.__dataPending,this.__dataPending=null;f=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(P,H,F);this._flushClients();qz(this,this.__reflectEffects,P,H,F);qz(this,this.__observeEffects,P,H,F);if(f){u=this.__notifyEffects;J=uv++;for(var M in f)if(f[M]){if(Z=u){var n=u;Z=J;var c=M,B=P,L=H,A=F,d=!1,R=A?Hb(c):c;if(n=n[R]){R=0;for(var l=n.length,a=void 0;R<l&&(a=n[R]);R++)a.info&&a.info.lastRun===Z||A&&!CCy(c,a.trigger)||(a.info&&(a.info.lastRun=Z),a.fn(this,c,B,L,a.info,A,void 0),d=!0)}Z=d}if(Z)var E=!0;else{if(Z=F)Z=M,c=P,B=Hb(Z),B!==
Z?(B=FS(B)+"-changed",i4P(this,B,c[Z],Z),Z=!0):Z=!1;Z&&(E=!0)}}var V;E&&(V=this.__dataHost)&&V._invalidateProperties&&V._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
K.prototype._propagatePropertyChanges=function(F,P,H){this.__propagateEffects&&qz(this,this.__propagateEffects,F,P,H);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,F,P,H)};
K.prototype._runEffectsForTemplate=function(F,P,H,f){var u=this,J=function(Z,M){qz(u,F.propertyEffects,Z,H,M,F.nodeList);for(var n=F.firstChild;n;n=n.nextSibling)u._runEffectsForTemplate(n,Z,H,M)};
F.runEffects?F.runEffects(J,P,f):J(P,f)};
K.prototype.linkPaths=function(F,P){F=fD(F);P=fD(P);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[F]=P};
K.prototype.unlinkPaths=function(F){F=fD(F);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[F]};
K.prototype.notifySplices=function(F,P){var H={path:""};F=Dp(this,F,H);Yyq(this,F,H.path,P)};
K.prototype.get=function(F,P){return Dp(P||this,F)};
K.prototype.set=function(F,P,H){H?Efl(H,F,P):this.__readOnly&&this.__readOnly[F]||this._setPendingPropertyOrPath(F,P,!0)&&this._invalidateProperties()};
K.prototype.push=function(F){var P=_.Ls.apply(1,arguments),H={path:""},f=Dp(this,F,H),u=f.length,J=f.push.apply(f,_.LZ(P));P.length&&Mz(this,f,H.path,u,P.length,[]);return J};
K.prototype.pop=function(F){var P={path:""};F=Dp(this,F,P);var H=!!F.length,f=F.pop();H&&Mz(this,F,P.path,F.length,0,[f]);return f};
K.prototype.splice=function(F,P,H){var f=_.Ls.apply(3,arguments),u={path:""},J=Dp(this,F,u);P<0?P=J.length-Math.floor(-P):P&&(P=Math.floor(P));var Z=arguments.length===2?J.splice(P):J.splice.apply(J,[P,H].concat(_.LZ(f)));(f.length||Z.length)&&Mz(this,J,u.path,P,f.length,Z);return Z};
K.prototype.shift=function(F){var P={path:""};F=Dp(this,F,P);var H=!!F.length,f=F.shift();H&&Mz(this,F,P.path,0,0,[f]);return f};
K.prototype.unshift=function(F){var P=_.Ls.apply(1,arguments),H={path:""},f=Dp(this,F,H),u=f.unshift.apply(f,_.LZ(P));P.length&&Mz(this,f,H.path,0,P.length,[]);return u};
K.prototype.notifyPath=function(F,P){if(arguments.length==1){var H={path:""};P=Dp(this,F,H);H=H.path}else H=Array.isArray(F)?fD(F):F;this._setPendingPropertyOrPath(H,P,!0,!0)&&this._invalidateProperties()};
K.prototype._createReadOnlyProperty=function(F,P){this._addPropertyEffect(F,"__readOnly");P&&(this["_set"+(F[0].toUpperCase()+F.substring(1))]=function(H){this._setProperty(F,H)})};
K.prototype._createPropertyObserver=function(F,P,H){var f={property:F,method:P,dynamicFn:!!H};this._addPropertyEffect(F,"__observeEffects",{fn:NnM,info:f,trigger:{name:F}});H&&this._addPropertyEffect(P,"__observeEffects",{fn:NnM,info:f,trigger:{name:P}})};
K.prototype._createMethodObserver=function(F,P){var H=Jfn(F);if(!H)throw Error("wd`"+F);fbl(this,H,"__observeEffects",XpP,null,P)};
K.prototype._createNotifyingProperty=function(F){this._addPropertyEffect(F,"__notifyEffects",{fn:xBP,info:{eventName:FS(F)+"-changed",property:F}})};
K.prototype._createReflectedProperty=function(F){var P=this.constructor.attributeNameForProperty(F);P[0]==="-"?console.warn("Property "+F+" cannot be reflected to attribute "+P+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(F,"__reflectEffects",{fn:IFl,info:{attrName:P}})};
K.prototype._createComputedProperty=function(F,P,H){var f=Jfn(P);if(!f)throw Error("xd`"+P);P=fbl(this,f,"__computeEffects",F_P,F,H);b4O(this,"__computeInfo")[F]=P};
K.prototype._marshalArgs=function(F,P,H){for(var f=this.__data,u=[],J=0,Z=F.length;J<Z;J++){var M=F[J],n=M.name,c=M.structured,B=M.wildcard,L=M.value;M.literal||(B?(M=si(n,P),c=ZSn(f,H,M?P:n),L={path:M?P:n,value:c,base:M?Dp(f,n):c}):L=c?ZSn(f,H,n):f[n]);if(QF&&!this._overrideLegacyUndefined&&L===void 0&&F.length>1)return Yh;u[J]=L}return u};
K.addPropertyEffect=function(F,P,H){this.prototype._addPropertyEffect(F,P,H)};
K.createPropertyObserver=function(F,P,H){this.prototype._createPropertyObserver(F,P,H)};
K.createMethodObserver=function(F,P){this.prototype._createMethodObserver(F,P)};
K.createNotifyingProperty=function(F){this.prototype._createNotifyingProperty(F)};
K.createReadOnlyProperty=function(F,P){this.prototype._createReadOnlyProperty(F,P)};
K.createReflectedProperty=function(F){this.prototype._createReflectedProperty(F)};
K.createComputedProperty=function(F,P,H){this.prototype._createComputedProperty(F,P,H)};
K.bindTemplate=function(F){return this.prototype._bindTemplate(F)};
K.prototype._bindTemplate=function(F,P){var H=this.constructor._parseTemplate(F),f=this.__preBoundTemplateInfo==H;if(!f)for(var u in H.propertyEffects)this._createPropertyAccessor(u);P?(H=Object.create(H),H.wasPreBound=f,this.__templateInfo?(F=F._parentTemplateInfo||this.__templateInfo,P=F.lastChild,H.parent=F,F.lastChild=H,(H.previousSibling=P)?P.nextSibling=H:F.firstChild=H):this.__templateInfo=H):this.__preBoundTemplateInfo=H;return H};
K._addTemplatePropertyEffect=function(F,P,H){(F.hostProps=F.hostProps||{})[P]=!0;F=F.propertyEffects=F.propertyEffects||{};(F[P]=F[P]||[]).push(H)};
K.prototype._stampTemplate=function(F,P){P=P||this._bindTemplate(F,!0);tK.push(this);F=X.prototype._stampTemplate.call(this,F,P);tK.pop();P.nodeList=F.nodeList;if(!P.wasPreBound)for(var H=P.childNodes=[],f=F.firstChild;f;f=f.nextSibling)H.push(f);F.templateInfo=P;H=P.nodeList;f=P.nodeInfoList;if(f.length)for(var u=0;u<f.length;u++){var J=H[u],Z=f[u].bindings;if(Z)for(var M=0;M<Z.length;M++){var n=Z[M],c=J,B=n;if(B.isCompound){for(var L=c.__dataCompoundStorage||(c.__dataCompoundStorage={}),A=B.parts,
d=Array(A.length),R=0;R<A.length;R++)d[R]=A[R].literal;A=B.target;L[A]=d;B.literal&&B.kind=="property"&&(A==="className"&&(c=(0,_.Jg)(c)),c[A]=B.literal)}z4l(J,this,n)}J.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(P,this.__data,null,!1),this._flushClients());return F};
K.prototype._removeBoundDom=function(F){F=F.templateInfo;var P=F.previousSibling,H=F.nextSibling,f=F.parent;P?P.nextSibling=H:f&&(f.firstChild=H);H?H.previousSibling=P:f&&(f.lastChild=P);F.nextSibling=F.previousSibling=null;F=F.childNodes;for(P=0;P<F.length;P++)H=F[P],(0,_.Jg)((0,_.Jg)(H).parentNode).removeChild(H)};
K._parseTemplateNode=function(F,P,H){var f=X._parseTemplateNode.call(this,F,P,H);if(F.nodeType===Node.TEXT_NODE){var u=this._parseBindings(F.textContent,P);u&&(F.textContent=Dd4(u)||" ",skl(this,P,H,"text","textContent",u),f=!0)}return f};
K._parseTemplateNodeAttribute=function(F,P,H,f,u){var J=this._parseBindings(u,P);if(J){u=f;var Z="property";rgU.test(f)?Z="attribute":f[f.length-1]=="$"&&(f=f.slice(0,-1),Z="attribute");var M=Dd4(J);M&&Z=="attribute"&&(f=="class"&&F.hasAttribute("class")&&(M+=" "+F.getAttribute(f)),F.setAttribute(f,M));Z=="attribute"&&u=="disable-upgrade$"&&F.setAttribute(f,"");F.localName==="input"&&u==="value"&&F.setAttribute(u,"");F.removeAttribute(u);Z==="property"&&(f=XS(f));skl(this,P,H,Z,f,J,M);return!0}return X._parseTemplateNodeAttribute.call(this,
F,P,H,f,u)};
K._parseTemplateNestedTemplate=function(F,P,H){var f=X._parseTemplateNestedTemplate.call(this,F,P,H),u=F.parentNode,J=H.templateInfo,Z=u.localName==="dom-if",M=u.localName==="dom-repeat";hK&&(Z||M)&&(u.removeChild(F),H=H.parentInfo,H.templateInfo=J,H.noted=!0,f=!1);F=J.hostProps;if(mN&&Z)F&&(P.hostProps=Object.assign(P.hostProps||{},F),hK||(H.parentInfo.noted=!0));else for(var n in F)skl(this,P,H,"property","_host_"+n,[{mode:"{",source:n,dependencies:[n],hostProp:!0}]);return f};
K._parseBindings=function(F,P){for(var H=[],f=0,u;(u=j2N.exec(F))!==null;){u.index>f&&H.push({literal:F.slice(f,u.index)});f=u[1][0];var J=!!u[2];u=u[3].trim();var Z=!1,M="",n=-1;f=="{"&&(n=u.indexOf("::"))>0&&(M=u.substring(n+2),u=u.substring(0,n),Z=!0);n=Jfn(u);var c=[];if(n){var B=n,L=B.args;B=B.methodName;for(var A=0;A<L.length;A++){var d=L[A];d.literal||c.push(d)}if((L=P.dynamicFns)&&L[B]||n.static)c.push(B),n.dynamicFn=!0}else c.push(u);H.push({source:u,mode:f,negate:J,customEvent:Z,signature:n,
dependencies:c,event:M});f=j2N.lastIndex}f&&f<F.length&&(F=F.substring(f))&&H.push({literal:F});return H.length?H:null};
K._evaluateBinding=function(F,P,H,f,u,J){F=P.signature?XpP(F,H,f,u,P.signature):H!=P.source?Dp(F,P.source):J&&Pb(H)?Dp(F,H):F.__data[H];P.negate&&(F=!F);return F};
_.Oi.Object.defineProperties(K.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return Tgt}}});
return K}),tK=[];var wbt=window.ShadyCSS&&window.ShadyCSS.cssBuild,Or=aK(function(K){function X(P,H,f,u){if(!wbt){for(var J=H.content.querySelectorAll("style"),Z=pp4(H),M=BVP(f),n=H.content.firstElementChild,c=0;c<M.length;c++){var B=M[c];B.textContent=P._processStyleText(B.textContent,u);H.content.insertBefore(B,n)}for(n=M=0;n<Z.length;n++)c=Z[n],B=J[M],B!==c?(c=c.cloneNode(!0),B.parentNode.insertBefore(c,B)):M++,c.textContent=P._processStyleText(c.textContent,u)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(H,
f);if(F7V&&wbt&&iLu&&(H=H.content.querySelectorAll("style"))){var L="";Array.from(H).forEach(function(A){L+=A.textContent;A.parentNode.removeChild(A)});
P._styleSheet=new CSSStyleSheet;P._styleSheet.replaceSync(L)}}
var F=JgZ($s(K));K=function(){return F.call(this)||this};
_.r(K,F);K._finalizeClass=function(){F._finalizeClass.call(this);var P;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(P=this.__ownObservers)&&this.createObservers(P,this._properties);this._prepareTemplate()};
K._prepareTemplate=function(){var P=this.template;P&&(typeof P==="string"?(console.error("template getter must return HTMLTemplateElement"),P=null):yF||(P=P.cloneNode(!0)));this.prototype._template=P};
K.createProperties=function(P){for(var H in P){var f=this.prototype,u=H,J=P[H],Z=P;J.computed&&(J.readOnly=!0);J.computed&&(f._hasReadOnlyEffect(u)?console.warn("Cannot redefine computed property '"+u+"'."):f._createComputedProperty(u,J.computed,Z));J.readOnly&&!f._hasReadOnlyEffect(u)?f._createReadOnlyProperty(u,!J.computed):J.readOnly===!1&&f._hasReadOnlyEffect(u)&&console.warn("Cannot make readOnly property '"+u+"' non-readOnly.");J.reflectToAttribute&&!f._hasReflectEffect(u)?f._createReflectedProperty(u):
J.reflectToAttribute===!1&&f._hasReflectEffect(u)&&console.warn("Cannot make reflected property '"+u+"' non-reflected.");J.notify&&!f._hasNotifyEffect(u)?f._createNotifyingProperty(u):J.notify===!1&&f._hasNotifyEffect(u)&&console.warn("Cannot make notify property '"+u+"' non-notify.");J.observer&&f._createPropertyObserver(u,J.observer,Z[J.observer]);f._addPropertyToAttributeMap(u)}};
K.createObservers=function(P,H){for(var f=this.prototype,u=0;u<P.length;u++)f._createMethodObserver(P[u],H)};
K.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);F.prototype._initializeProperties.call(this);this.rootPath=xFu;this.importPath=this.constructor.importPath;var P=this.constructor;if(!P.hasOwnProperty("__propertyDefaults")){P.__propertyDefaults=null;var H=P._properties,f;for(f in H){var u=H[f];"value"in u&&(P.__propertyDefaults=P.__propertyDefaults||{},P.__propertyDefaults[f]=u)}}if(P=P.__propertyDefaults)for(var J in P)H=P[J],
this._canApplyPropertyDefault(J)&&(H=typeof H.value=="function"?H.value.call(this):H.value,this._hasAccessor(J)?this._setPendingProperty(J,H,!0):this[J]=H)};
K.prototype._canApplyPropertyDefault=function(P){return!this.hasOwnProperty(P)};
K._processStyleText=function(P,H){return dBP(P,H)};
K._finalizeTemplate=function(P){var H=this.prototype._template;if(H&&!H.__polymerFinalized){H.__polymerFinalized=!0;var f=this.importPath;f=f?_.k3(f):"";X(this,H,P,f);this.prototype._bindTemplate(H)}};
K.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);F.prototype.connectedCallback.call(this)};
K.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);F.prototype.ready.call(this)};
K.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));F.prototype._readyClients.call(this)};
K.prototype._attachDom=function(P){var H=(0,_.Jg)(this);if(H.attachShadow)return P?(H.shadowRoot||(H.attachShadow({mode:"open",shadyUpgradeFragment:P}),H.shadowRoot.appendChild(P),this.constructor._styleSheet&&(H.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),kTE&&window.ShadyDOM&&window.ShadyDOM.flushInitial(H.shadowRoot),H.shadowRoot):null;throw Error("zd");};
K.prototype.updateStyles=function(P){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,P)};
K.prototype.resolveUrl=function(P,H){!H&&this.importPath&&(H=_.k3(this.importPath));return _.k3(P,H)};
K._parseTemplateContent=function(P,H,f){H.dynamicFns=H.dynamicFns||this._properties;return F._parseTemplateContent.call(this,P,H,f)};
K._addTemplatePropertyEffect=function(P,H,f){!R2||H in this._properties||f.info.part.signature&&f.info.part.signature.static||f.info.part.hostProp||P.nestedTemplate||console.warn("Property '"+H+"' used in template but not declared in 'properties'; attribute will not be observed.");return F._addTemplatePropertyEffect.call(this,P,H,f)};
_.Oi.Object.defineProperties(K,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var P=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof P==="function"&&(P=P());if(P===void 0){if(P=this.hasOwnProperty("is")){P=this.is;var H=null;if(P&&(!Ui||IWQ)&&(H=nD.import(P,"template"),Ui&&!H))throw Error("yd`"+P);P=H}P=P||Object.getPrototypeOf(this.prototype).constructor.template}this._template=P}return this._template},
set:function(P){this._template=P}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var P=this.importMeta;P?this._importPath=eWl(P.url):this._importPath=(P=nD.import(this.is))&&P.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return K});var ygZ=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(K){return K}}),jkP=function(K,X){W7U(K,X);
this.value=X.reduce(function(F,P,H){return F+wpl(P)+K[H+1]},K[0]).toString()},W7U;
jkP.prototype.toString=function(){return this.value};
_.dzt=function(K){var X=_.Ls.apply(1,arguments);W7U(K,X);var F=document.createElement("template");X=X.reduce(function(P,H,f){if(H instanceof HTMLTemplateElement)H=H.innerHTML;else if(H instanceof jkP)H=wpl(H);else throw Error("Bd`"+H);return P+H+K[f+1]},K[0]);
ygZ&&(X=ygZ.createHTML(X));F.innerHTML=X;return F};
W7U=function(K,X){if(!Array.isArray(K)||!Array.isArray(K.raw)||X.length!==K.length-1)throw new TypeError("Cd");};var VA=Or(HTMLElement);var ebL=aK(function(K){var X=Or(K);K=function(){var F=X.call(this)||this;F.__lastItems=null;F.__lastMulti=null;F.__selectedMap=null;return F};
_.r(K,X);K.prototype.__updateSelection=function(F,P){var H=P.path;H=="items"?(P=P.base||[],H=this.__lastItems,F!==this.__lastMulti&&this.clearSelection(),H&&(H=Af4(P,H),this.__applySplices(H)),this.__lastItems=P,this.__lastMulti=F):P.path=="items.splices"?this.__applySplices(P.value.indexSplices):(F=H.slice(6),P=parseInt(F,10),F.indexOf(".")<0&&F==P&&this.__deselectChangedIdx(P))};
K.prototype.__applySplices=function(F){for(var P=this,H=this.__selectedMap,f={},u=0;u<F.length;f={s$jscomp$108:void 0},u++){f.s$jscomp$108=F[u];H.forEach(function(n){return function(c,B){c<n.s$jscomp$108.index||(c>=n.s$jscomp$108.index+n.s$jscomp$108.removed.length?H.set(B,c+n.s$jscomp$108.addedCount-n.s$jscomp$108.removed.length):H.set(B,-1))}}(f));
for(var J=0;J<f.s$jscomp$108.addedCount;J++){var Z=f.s$jscomp$108.index+J;H.has(this.items[Z])&&H.set(this.items[Z],Z)}}this.__updateLinks();var M=0;H.forEach(function(n,c){n<0?(P.multi?P.splice("selected",M,1):P.selected=P.selectedItem=null,H.delete(c)):M++})};
K.prototype.__updateLinks=function(){var F=this;this.__dataLinkedPaths={};if(this.multi){var P=0;this.__selectedMap.forEach(function(H){H>=0&&F.linkPaths("items."+H,"selected."+P++)})}else this.__selectedMap.forEach(function(H){F.linkPaths("selected","items."+H);
F.linkPaths("selectedItem","items."+H)})};
K.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
K.prototype.isSelected=function(F){return this.__selectedMap.has(F)};
K.prototype.isIndexSelected=function(F){return this.isSelected(this.items[F])};
K.prototype.__deselectChangedIdx=function(F){var P=this,H=this.__selectedIndexForItemIndex(F);if(H>=0){var f=0;this.__selectedMap.forEach(function(u,J){H==f++&&P.deselect(J)})}};
K.prototype.__selectedIndexForItemIndex=function(F){if(F=this.__dataLinkedPaths["items."+F])return parseInt(F.slice(9),10)};
K.prototype.deselect=function(F){var P=this.__selectedMap.get(F);if(P>=0){this.__selectedMap.delete(F);var H;this.multi&&(H=this.__selectedIndexForItemIndex(P));this.__updateLinks();this.multi?this.splice("selected",H,1):this.selected=this.selectedItem=null}};
K.prototype.deselectIndex=function(F){this.deselect(this.items[F])};
K.prototype.select=function(F){this.selectIndex(this.items.indexOf(F))};
K.prototype.selectIndex=function(F){var P=this.items[F];this.isSelected(P)?this.toggle&&this.deselectIndex(F):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(P,F),this.__updateLinks(),this.multi?this.push("selected",P):this.selected=this.selectedItem=P)};
_.Oi.Object.defineProperties(K,{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 K}),Rbu=ebL(VA),g9=function(){return Rbu.apply(this,arguments)||this};
_.r(g9,Rbu);_.Oi.Object.defineProperties(g9,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(g9.is,g9);var Uzu=window.Polymer;window.Polymer=function(K){return window.Polymer._polymerFn(K)};
Uzu&&Object.assign(Polymer,Uzu);Polymer._polymerFn=function(){throw Error("Dd");};/*

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:dBP,resolveUrl:_.k3,pathFromUrl:eWl};Polymer.DomModule=nD;Polymer.Async={timeOut:_.vT,animationFrame:_.cn,idlePeriod:fpt,microTask:jW};Polymer.dedupingMixin=aK;Polymer.wrap=_.Jg;Polymer.PropertiesChanged=uSW;Polymer.telemetry={instanceCount:qiu,incrementInstanceCount:function(){qiu++},
registrations:mBn,register:G9l,dumpRegistrations:function(){mBn.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=JgZ;Polymer.CaseMap={dashToCamelCase:XS,camelToDashCase:FS};Polymer.PropertyAccessors=cgL;Polymer.TemplateStamp=L7t;Polymer.Path={isPath:Pb,root:Hb,isAncestor:O43,isDescendant:si,translate:zB,matches:VdO,normalize:fD,split:gfy,get:Dp,set:Efl,isDeep:Pb};Polymer.Settings={useShadow:Wb,useNativeCSSProperties:g3U,useNativeCustomElements:E3W,get rootPath(){return xFu},setRootPath:function(K){xFu=K},
get sanitizeDOMValue(){return Zp},setSanitizeDOMValue:function(K){Zp=K},
get passiveTouchGestures(){return t63},setPassiveTouchGestures:function(K){t63=K},
get strictTemplatePolicy(){return Ui},setStrictTemplatePolicy:function(K){Ui=K},
get allowTemplateFromDomModule(){return IWQ},setAllowTemplateFromDomModule:function(K){IWQ=K},
get legacyOptimizations(){return yF},setLegacyOptimizations:function(K){yF=K},
get syncInitialRender(){return kTE},setSyncInitialRender:function(K){kTE=K},
get legacyUndefined(){return QF},setLegacyUndefined:function(K){QF=K},
get legacyWarnings(){return R2},setLegacyWarnings:function(K){R2=K},
get orderedComputed(){return K7V},setOrderedComputed:function(K){K7V=K},
get fastDomIf(){return mN},setFastDomIf:function(K){mN=K},
get removeNestedTemplates(){return hK},setRemoveNestedTemplates:function(K){hK=K},
get suppressTemplateNotifications(){return GO},setSuppressTemplateNotifications:GO};Polymer.rootPath!==void 0&&(xFu=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(Zp=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(t63=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(Ui=Polymer.strictTemplatePolicy);IWQ=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(yF=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(kTE=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(QF=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(R2=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(K7V=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(mN=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(hK=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(GO=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return Zp},
set:function(K){Zp=K}});Polymer.PropertyEffects=$s;Polymer.StyleGather={stylesFromModules:cf3,stylesFromModule:M6P,stylesFromTemplate:pp4,stylesFromModuleImports:BVP,cssFromModules:oaO,cssFromModule:Syw,cssFromTemplate:L_q,cssFromModuleImports:function(K){return(K=nD.import(K))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(K):""}};Polymer.ElementMixin=Or;Polymer.updateStyles=function(K){window.ShadyCSS&&window.ShadyCSS.styleDocument(K)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:Af4};Polymer.html=_.dzt;Polymer.htmlLiteral=function(K){return new jkP(K,_.Ls.apply(1,arguments))};Polymer.Element=VA;Polymer.ArraySelectorMixin=ebL;Polymer.ArraySelector=g9;var hbO=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,mzE=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,fZn=/@media\s(.*)/;var e4l=null,dd4=window.HTMLImports&&window.HTMLImports.whenReady||null,R4q;var GBE=null,Er=null,bz=function(){this.customStyles=[];this.enqueued=!1;Ud3(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},lpC=function(K){!K.enqueued&&Er&&(K.enqueued=!0,Ud3(Er))};
bz.prototype.addCustomStyle=function(K){K.__seenByShadyCSS||(K.__seenByShadyCSS=!0,this.customStyles.push(K),lpC(this))};
bz.prototype.getStyleForCustomStyle=function(K){if(K.__shadyCSSCachedStyle)return K.__shadyCSSCachedStyle;var X;K.getStyle?X=K.getStyle():X=K;return X};
bz.prototype.processStyles=function(){for(var K=this.customStyles,X=0;X<K.length;X++){var F=K[X];if(!F.__shadyCSSCachedStyle){var P=this.getStyleForCustomStyle(F);P&&(P=P.__appliedElement||P,GBE&&GBE(P),F.__shadyCSSCachedStyle=P)}}return K};
bz.prototype.addCustomStyle=bz.prototype.addCustomStyle;bz.prototype.getStyleForCustomStyle=bz.prototype.getStyleForCustomStyle;bz.prototype.processStyles=bz.prototype.processStyles;Object.defineProperties(bz.prototype,{transformCallback:{get:function(){return GBE},
set:function(K){GBE=K}},
validateCallback:{get:function(){return Er},
set:function(K){var X=!1;Er||(X=!0);Er=K;X&&lpC(this)}}});var mdl=!(window.ShadyDOM&&window.ShadyDOM.inUse),h49,$h;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&($h=window.ShadyCSS.cssBuild);var vhE=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?h49=window.ShadyCSS.nativeCss:window.ShadyCSS?(GlO(window.ShadyCSS),window.ShadyCSS=void 0):GlO(window.WebComponents&&window.WebComponents.flags);var Hk3=h49;var apu=new bz;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(K,X){apu.processStyles();yfO(K,X)},
styleElement:function(){apu.processStyles()},
styleDocument:function(K){apu.processStyles();yfO(document.body,K)},
getComputedStyleValue:function(K,X){return W_3(K,X)},
flushCustomStyles:function(){},
nativeCss:Hk3,nativeShadow:mdl,cssBuild:$h,disableRuntime:vhE});window.ShadyCSS.CustomStyleInterface=apu;var tWZ=window.ShadyCSS.CustomStyleInterface,Cw=function(){var K=HTMLElement.call(this)||this;K._style=null;tWZ.addCustomStyle(K);return K};
_.r(Cw,HTMLElement);Cw.prototype.getStyle=function(){if(this._style)return this._style;var K=this.querySelector("style");if(!K)return null;this._style=K;var X=K.getAttribute("include");X&&(K.removeAttribute("include"),K.textContent=oaO(X)+K.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
Cw.prototype.getStyle=Cw.prototype.getStyle;window.customElements.define("custom-style",Cw);Polymer.CustomStyle=Cw;var NO=function(){this._timer=this._callback=this._asyncModule=null},iz,ODu;
NO.prototype.setConfig=function(K,X){var F=this;this._asyncModule=K;this._callback=X;this._timer=this._asyncModule.run(function(){F._timer=null;iz.delete(F);F._callback()})};
NO.prototype.cancel=function(){this.isActive()&&($zC(this),iz.delete(this))};
var $zC=function(K){K.isActive()&&(K._asyncModule.cancel(K._timer),K._timer=null)};
NO.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
NO.prototype.isActive=function(){return this._timer!=null};
_.xs=function(K,X,F){K instanceof NO?$zC(K):K=new NO;K.setConfig(X,F);return K};
iz=new Set;_.IK=function(K){iz.add(K)};
ODu=function(){var K=!!iz.size;iz.forEach(function(X){try{X.flush()}catch(F){setTimeout(function(){throw F;})}});
return K};var vad=typeof document.head.style.touchAction==="string",lb4=["mousedown","mousemove","mouseup","click"],C6P=[0,1,4,2],VWu;try{VWu=(new MouseEvent("test",{buttons:1})).buttons===1}catch(K){VWu=!1}var bS4=VWu,ab4=!1;(function(){try{var K=Object.defineProperty({},"passive",{get:function(){ab4=!0}});
window.addEventListener("test",null,K);window.removeEventListener("test",null,K)}catch(X){}})();
var OSl=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),V6w=[],ghN={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},zIq={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},gad=function(K){var X=K.sourceCapabilities;if(!X||X.firesTouchEvents)if(K.__polymerGesturesHandled={skip:!0},K.type==="click"){X=!1;for(var F=IbO(K),P=0;P<F.length;P++){if(F[P].nodeType===Node.ELEMENT_NODE)if(F[P].localName==="label")V6w.push(F[P]);
else if(ghN[F[P].localName]){var H=F[P];var f=Array.prototype.slice.call(H.labels||[]);if(!f.length){f=[];try{var u=H.getRootNode();if(H.id){var J=u.querySelectorAll("label[for = '"+H.id+"']");for(H=0;H<J.length;H++)f.push(J[H])}}catch(Z){}}for(H=0;H<f.length;H++)X=X||V6w.indexOf(f[H])>-1}if(F[P]===EhT)return}X||(K.preventDefault(),K.stopPropagation())}},EhT=null,ks=null,Kml=0,XGP=0,kln=-1,Fm4=!1;
document.addEventListener("touchend",function(K){ks||EaO(!0);EhT=IbO(K)[0];ks=_.xs(ks,_.vT.after(2500),function(){EaO();ks=EhT=null})},ab4?{passive:!0}:!1);
var IbO=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(K){return K.composedPath&&K.composedPath()||[]},LD={},SW=[];
Pfd({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Bb(this.info)},
mousedown:function(K){if(pD(K)){var X=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K),F=this;iSM(this.info,function(P){pD(P)||(wg("up",X,P),Bb(F.info))},function(P){pD(P)&&wg("up",X,P);
Bb(F.info)});
wg("down",X,K)}},
touchstart:function(K){wg("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K),K.changedTouches[0],K)},
touchend:function(K){wg("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K),K.changedTouches[0],K)}});
Pfd({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(K){this.moves.length>2&&this.moves.shift();this.moves.push(K)},
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;Bb(this.info)},
mousedown:function(K){if(pD(K)){var X=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K),F=this,P=function(H){var f=H.clientX,u=H.clientY;HjM(F.info,f,u)&&(F.info.state=F.info.started?H.type==="mouseup"?"end":"track":"start",F.info.state==="start"&&o2("tap"),F.info.addMove({x:f,y:u}),pD(H)||(F.info.state="end",Bb(F.info)),X&&sn3(F.info,X,H),F.info.started=!0)};
iSM(this.info,P,function(H){F.info.started&&P(H);Bb(F.info)});
this.info.x=K.clientX;this.info.y=K.clientY}},
touchstart:function(K){K=K.changedTouches[0];this.info.x=K.clientX;this.info.y=K.clientY},
touchmove:function(K){var X=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K);K=K.changedTouches[0];var F=K.clientX,P=K.clientY;HjM(this.info,F,P)&&(this.info.state==="start"&&o2("tap"),this.info.addMove({x:F,y:P}),sn3(this.info,X,K),this.info.state="track",this.info.started=!0)},
touchend:function(K){var X=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K);K=K.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:K.clientX,y:K.clientY}),sn3(this.info,X,K))}});
Pfd({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(K){pD(K)&&(this.info.x=K.clientX,this.info.y=K.clientY)},
click:function(K){pD(K)&&fVy(this.info,K)},
touchstart:function(K){K=K.changedTouches[0];this.info.x=K.clientX;this.info.y=K.clientY},
touchend:function(K){fVy(this.info,K.changedTouches[0],K)}});var bDC=aK(function(K){var X=function(){return K.apply(this,arguments)||this};
_.r(X,K);X.prototype._addEventListenerToNode=function(F,P,H){TB(F,P,H)||K.prototype._addEventListenerToNode.call(this,F,P,H)};
X.prototype._removeEventListenerFromNode=function(F,P,H){rg(F,P,H)||K.prototype._removeEventListenerFromNode.call(this,F,P,H)};
return X});var KY=aK(function(K){var X=function(){return K.apply(this,arguments)||this};
_.r(X,K);X.prototype._shouldPropertyChange=function(F,P,H){return DyM(this,F,P,H,!0)};
return X}),Cvu=aK(function(K){var X=function(){return K.apply(this,arguments)||this};
_.r(X,K);X.prototype._shouldPropertyChange=function(F,P,H){return DyM(this,F,P,H,this.mutableData)};
_.Oi.Object.defineProperties(X,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return X});
KY._mutablePropertyChange=DyM;var uc3=!1;var NgZ=bDC(Cvu($s(HTMLElement))),Xz=function(){var K=NgZ.call(this)||this;if(Ui)throw Error("Ed");K.root=null;K.$=null;K.__children=null;return K};
_.r(Xz,NgZ);_.z=Xz.prototype;_.z.attributeChangedCallback=function(){this.mutableData=!0};
_.z.connectedCallback=function(){qD4()||(this.style.display="none");this.render()};
_.z.disconnectedCallback=function(){this.__removeChildren()};
_.z.__insertChildren=function(){(0,_.Jg)((0,_.Jg)(this).parentNode).insertBefore(this.root,this)};
_.z.__removeChildren=function(){if(this.__children)for(var K=0;K<this.__children.length;K++)this.root.appendChild(this.__children[K])};
_.z.render=function(){var K=this;if(!this.__children){var X=X||this.querySelector("template");if(!X){var F=new MutationObserver(function(){if(X=K.querySelector("template"))F.disconnect(),K.render();else throw Error("Fd");});
F.observe(this,{childList:!0});return}this.root=this._stampTemplate(X);this.$=this.root.$;this.__children=[];for(var P=this.root.firstChild;P;P=P.nextSibling)this.__children[this.__children.length]=P;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.Oi.Object.defineProperties(Xz,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",Xz);Polymer.Debouncer=NO;Polymer.Gestures={gestures:LD,recognizers:SW,deepTargetFind:xdP,addListener:TB,removeListener:rg,register:Pfd,setTouchAction:_.Ag,prevent:o2,resetMouseCanceller:function(){ks&&ks.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:TB,remove:rg};Polymer.GestureEventListeners=bDC;Polymer.MutableData=KY;Polymer.OptionalMutableData=Cvu;Polymer.DomBind=Xz;_.Fz=function(){do{var K=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var X=ODu()}while(K||X)};var Jqy=null;ZjP.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:ZjP,writable:!0}});var SD4=$s(ZjP),BMy=KY(SD4),iDt=$s(function(){}),dg=function(K){var X=iDt.call(this)||this;
X._configureProperties(K);X.root=X._stampTemplate(X.__dataHost);var F=[];X.children=F;for(var P=X.root.firstChild;P;P=P.nextSibling)F.push(P),P.__templatizeInstance=X;X.__templatizeOwner&&X.__templatizeOwner.__hideTemplateChildren__&&X._showHideChildren(!0);F=X.__templatizeOptions;(K&&F.instanceProps||!F.instanceProps)&&X._enableProperties();return X};
_.r(dg,iDt);_.z=dg.prototype;_.z._configureProperties=function(K){if(this.__templatizeOptions.forwardHostProp)for(var X in this.__hostProps)this._setPendingProperty(X,this.__dataHost["_host_"+X]);for(var F in K)this._setPendingProperty(F,K[F])};
_.z.forwardHostProp=function(K,X){this._setPendingPropertyOrPath(K,X,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.z._addEventListenerToNode=function(K,X,F){var P=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(K,X,function(f){f.model=P;F(f)});
else{var H=this.__dataHost.__dataHost;H&&H._addEventListenerToNode(K,X,F)}};
_.z._showHideChildren=function(K){QnP(K,this.children)};
_.z._setUnmanagedPropertyToNode=function(K,X,F){K.__hideTemplateChildren__&&K.nodeType==Node.TEXT_NODE&&X=="textContent"?K.__polymerTextContent__=F:iDt.prototype._setUnmanagedPropertyToNode.call(this,K,X,F)};
_.z.dispatchEvent=function(){return!0};
_.Oi.Object.defineProperties(dg.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var K=this.__parentModel;if(!K){var X;K=this;do K=K.__dataHost.__dataHost;while((X=K.__templatizeOptions)&&!X.parentModel);this.__parentModel=K}return K}}});
var nRO=KY(dg);var P0=function(){var K=VA.call(this)||this;K.__renderDebouncer=null;K._lastIf=!1;K.__hideTemplateChildren__=!1;return K};
_.r(P0,VA);_.z=P0.prototype;_.z.__debounceRender=function(){var K=this;this.__renderDebouncer=_.xs(this.__renderDebouncer,jW,function(){return K.__render()});
_.IK(this.__renderDebouncer)};
_.z.disconnectedCallback=function(){VA.prototype.disconnectedCallback.call(this);var K=(0,_.Jg)(this).parentNode;K&&(K.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.Jg)(K).host)||this.__teardownInstance()};
_.z.connectedCallback=function(){VA.prototype.connectedCallback.call(this);qD4()||(this.style.display="none");this.if&&this.__debounceRender()};
_.z.__ensureTemplate=function(){var K=this;if(!this.__template){var X=this._templateInfo?this:(0,_.Jg)(this).querySelector("template");if(!X){var F=new MutationObserver(function(){if((0,_.Jg)(K).querySelector("template"))F.disconnect(),K.__render();else throw Error("Id");});
F.observe(this,{childList:!0});return!1}this.__template=X}return!0};
_.z.__ensureInstance=function(){var K=(0,_.Jg)(this).parentNode;if(this.__hasInstance()){var X=this.__getInstanceNodes();if(X&&X.length&&(0,_.Jg)(this).previousSibling!==X[X.length-1])for(var F=0,P=void 0;F<X.length&&(P=X[F]);F++)(0,_.Jg)(K).insertBefore(P,this)}else{if(!K||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(K)}return!0};
_.z.render=function(){_.Fz()};
_.z.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();GO&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.z.__hasInstance=function(){};
_.z.__getInstanceNodes=function(){};
_.z.__createAndInsertInstance=function(){};
_.z.__teardownInstance=function(){};
_.z._showHideChildren=function(){};
_.Oi.Object.defineProperties(P0,{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:P0.prototype.__debounceRender},restamp:{type:Boolean,observer:P0.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var xzL=function(){var K=P0.call(this)||this;K.__instance=null;K.__syncInfo=null;return K};
_.r(xzL,P0);_.z=xzL.prototype;_.z.__hasInstance=function(){return!!this.__instance};
_.z.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.z.__createAndInsertInstance=function(K){var X=this,F=this.__dataHost||this;if(Ui&&!this.__dataHost)throw Error("Gd");var P=F._bindTemplate(this.__template,!0);P.runEffects=function(H,f,u){var J=X.__syncInfo;if(X.if)J&&(X.__syncInfo=null,X._showHideChildren(),f=Object.assign(J.changedProps,f)),H(f,u);else if(X.__instance)if(J||(J=X.__syncInfo={runEffects:H,changedProps:{}}),u)for(var Z in f)H=Hb(Z),J.changedProps[H]=X.__dataHost[H];else Object.assign(J.changedProps,f)};
this.__instance=F._stampTemplate(this.__template,P);(0,_.Jg)(K).insertBefore(this.__instance,this)};
_.z.__syncHostProperties=function(){var K=this.__syncInfo;K&&(this.__syncInfo=null,K.runEffects(K.changedProps,!1))};
_.z.__teardownInstance=function(){var K=this.__dataHost||this;this.__instance&&(K._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.z._showHideChildren=function(){var K=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==K&&(this.__instance.__hidden=K,QnP(K,this.__instance.templateInfo.childNodes));K||this.__syncHostProperties()};
var IpC=function(){var K=P0.call(this)||this;K.__ctor=null;K.__instance=null;K.__invalidProps=null;return K};
_.r(IpC,P0);_.z=IpC.prototype;_.z.__hasInstance=function(){return!!this.__instance};
_.z.__getInstanceNodes=function(){return this.__instance.children};
_.z.__createAndInsertInstance=function(K){this.__ctor||(this.__ctor=eW(this.__template,this,{mutableData:!0,forwardHostProp:function(X,F){this.__instance&&(this.if?this.__instance.forwardHostProp(X,F):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Hb(X)]=!0))}}));
this.__instance=new this.__ctor;(0,_.Jg)(K).insertBefore(this.__instance.root,this)};
_.z.__teardownInstance=function(){if(this.__instance){var K=this.__instance.children;if(K&&K.length){var X=(0,_.Jg)(K[0]).parentNode;if(X){X=(0,_.Jg)(X);for(var F=0,P=void 0;F<K.length&&(P=K[F]);F++)X.removeChild(P)}}this.__instance=this.__invalidProps=null}};
_.z.__syncHostProperties=function(){var K=this.__invalidProps;if(K){this.__invalidProps=null;for(var X in K)this.__instance._setPendingProperty(X,this.__dataHost[X]);this.__instance._flushProperties()}};
_.z._showHideChildren=function(){var K=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==K&&(this.__instance.__hidden=K,this.__instance._showHideChildren(K));K||this.__syncHostProperties()};
_.Su=mN?xzL:IpC;customElements.define(_.Su.is,_.Su);Polymer.enqueueDebouncer=_.IK;Polymer.flush=_.Fz;Polymer.Templatize={templatize:eW,modelForElement:jnw};Polymer.TemplateInstanceBase=dg;Polymer.DomIf=_.Su;var kBL=Cvu(VA),Bc=function(){var K=kBL.call(this)||this;K.__instances=[];K.__renderDebouncer=null;K.__itemsIdxToInstIdx={};K.__chunkCount=null;K.__renderStartTime=null;K.__itemsArrayChanged=!1;K.__shouldMeasureChunk=!1;K.__shouldContinueChunking=!1;K.__chunkingId=0;K.__sortFn=null;K.__filterFn=null;K.__observePaths=null;K.__ctor=null;K.__isDetached=!0;K.template=null;return K};
_.r(Bc,kBL);_.z=Bc.prototype;_.z.disconnectedCallback=function(){kBL.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var K=0;K<this.__instances.length;K++)this.__detachInstance(K);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.z.connectedCallback=function(){kBL.prototype.connectedCallback.call(this);qD4()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var K=(0,_.Jg)((0,_.Jg)(this).parentNode),X=0;X<this.__instances.length;X++)this.__attachInstance(X,K);this.__chunkingId&&this.__render()}};
_.z.__ensureTemplatized=function(){var K=this;if(!this.__ctor){var X=this.template=this._templateInfo?this:this.querySelector("template");if(!X){var F=new MutationObserver(function(){if(K.querySelector("template"))F.disconnect(),K.__render();else throw Error("Jd");});
F.observe(this,{childList:!0});return!1}var P={};P[this.as]=!0;P[this.indexAs]=!0;P[this.itemsIndexAs]=!0;this.__ctor=eW(X,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:P,forwardHostProp:function(H,f){for(var u=this.__instances,J=0,Z=void 0;J<u.length&&(Z=u[J]);J++)Z.forwardHostProp(H,f)},
notifyInstanceProp:function(H,f,u){VdO(this.as,f)&&(H=H[this.itemsIndexAs],f==this.as&&(this.items[H]=u),f=zB(this.as,"items."+H,f),this.notifyPath(f,u))}})}return!0};
_.z.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.z.__functionFromPropertyValue=function(K){if(typeof K==="string"){var X=this.__getMethodHost();return function(){return X[K].apply(X,arguments)}}return K};
_.z.__sortChanged=function(K){this.__sortFn=this.__functionFromPropertyValue(K);this.items&&this.__debounceRender(this.__render)};
_.z.__filterChanged=function(K){this.__filterFn=this.__functionFromPropertyValue(K);this.items&&this.__debounceRender(this.__render)};
_.z.__computeFrameTime=function(K){return Math.ceil(1E3/K)};
_.z.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.z.__handleObservedPaths=function(K){if(this.__sortFn||this.__filterFn)if(!K)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var X=this.__observePaths,F=0;F<X.length;F++)K.indexOf(X[F])===0&&this.__debounceRender(this.__render,this.delay)};
_.z.__itemsChanged=function(K){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(K.path,K.value)||(K.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.z.__debounceRender=function(K,X){X=X===void 0?0:X;this.__renderDebouncer=_.xs(this.__renderDebouncer,X>0?_.vT.after(X):jW,K.bind(this));_.IK(this.__renderDebouncer)};
_.z.render=function(){this.__debounceRender(this.__render);_.Fz()};
_.z.__render=function(){var K=this;if(this.__ensureTemplatized()){var X=this.items||[],F=this.__sortAndFilterItems(X),P=this.__calculateLimit(F.length);this.__updateInstances(X,P,F);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){K.__chunkingId=null;K.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);GO&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.z.__sortAndFilterItems=function(K){for(var X=this,F=Array(K.length),P=0;P<K.length;P++)F[P]=P;this.__filterFn&&(F=F.filter(function(H,f,u){return X.__filterFn(K[H],f,u)}));
this.__sortFn&&F.sort(function(H,f){return X.__sortFn(K[H],K[f])});
return F};
_.z.__calculateLimit=function(K){var X=K,F=this.__instances.length;if(this.initialCount){var P;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(X=Math.min(K,this.initialCount),this.__chunkCount=(P=Math.max(X-F,0))||1):(P=Math.min(Math.max(K-F,0),this.__chunkCount),X=Math.min(F+P,K));this.__shouldMeasureChunk=P===this.__chunkCount;this.__shouldContinueChunking=X<K;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return X};
_.z.__continueChunking=function(){if(this.__shouldMeasureChunk){var K=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/K*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.z.__updateInstances=function(K,X,F){var P=this.__itemsIdxToInstIdx={},H;for(H=0;H<X;H++){var f=this.__instances[H],u=F[H],J=K[u];P[u]=H;f?(f._setPendingProperty(this.as,J),f._setPendingProperty(this.indexAs,H),f._setPendingProperty(this.itemsIndexAs,u),f._flushProperties()):this.__insertInstance(J,H,u)}for(K=this.__instances.length-1;K>=H;K--)this.__detachAndRemoveInstance(K)};
_.z.__detachInstance=function(K){K=this.__instances[K];for(var X=(0,_.Jg)(K.root),F=0;F<K.children.length;F++)X.appendChild(K.children[F]);return K};
_.z.__attachInstance=function(K,X){X.insertBefore(this.__instances[K].root,this)};
_.z.__detachAndRemoveInstance=function(K){this.__detachInstance(K);this.__instances.splice(K,1)};
_.z.__stampInstance=function(K,X,F){var P={};P[this.as]=K;P[this.indexAs]=X;P[this.itemsIndexAs]=F;return new this.__ctor(P)};
_.z.__insertInstance=function(K,X,F){K=this.__stampInstance(K,X,F);F=(F=this.__instances[X+1])?F.children[0]:this;(0,_.Jg)((0,_.Jg)(this).parentNode).insertBefore(K.root,F);return this.__instances[X]=K};
_.z._showHideChildren=function(K){for(var X=0;X<this.__instances.length;X++)this.__instances[X]._showHideChildren(K)};
_.z.__handleItemPath=function(K,X){var F=K.slice(6),P=F.indexOf(".");K=P<0?F:F.substring(0,P);if(K==parseInt(K,10)){F=P<0?"":F.substring(P+1);this.__handleObservedPaths(F);if(K=this.__instances[this.__itemsIdxToInstIdx[K]])K._setPendingPropertyOrPath(this.as+(F?"."+F:""),X,!1,!0),K._flushProperties();return!0}};
_.z.itemForElement=function(K){return(K=this.modelForElement(K))&&K[this.as]};
_.z.indexForElement=function(K){return(K=this.modelForElement(K))&&K[this.indexAs]};
_.z.modelForElement=function(K){return jnw(this.template,K)};
_.Oi.Object.defineProperties(Bc,{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:Bc.prototype.__sortChanged},filter:{type:Function,observer:Bc.prototype.__filterChanged},observe:{type:String,observer:Bc.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!GO,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.*)"]}}});
Bc.prototype._setRenderedItemCount=function(){};
customElements.define(Bc.is,Bc);Polymer.DomRepeat=Bc;var KHt=function(K,X){var F=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=K;this.callback=X;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){F._schedule()};
this.connect();this._schedule()},XgL=function(K){var X=(0,_.Jg)(K);
if(hg(K))return X.assignedNodes({flatten:!0});K=[];for(var F=0;F<X.childNodes.length;F++){var P=X.childNodes[F];hg(P)?K.push.apply(K,_.LZ((0,_.Jg)(P).assignedNodes({flatten:!0}))):K.push(P)}return K};
_.z=KHt.prototype;_.z.connect=function(){var K=this;hg(this._target)?this._listenSlots([this._target]):(0,_.Jg)(this._target).children&&(this._listenSlots((0,_.Jg)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(X){K._processMutations(X)}):(this._nativeChildrenObserver=new MutationObserver(function(X){K._processMutations(X)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.z.disconnect=function(){hg(this._target)?this._unlistenSlots([this._target]):(0,_.Jg)(this._target).children&&(this._unlistenSlots((0,_.Jg)(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null));this._connected=!1};
_.z._schedule=function(){var K=this;this._scheduled||(this._scheduled=!0,jW.run(function(){return K.flush()}))};
_.z._processMutations=function(K){this._processSlotMutations(K);this.flush()};
_.z._processSlotMutations=function(K){if(K)for(var X=0;X<K.length;X++){var F=K[X];F.addedNodes&&this._listenSlots(F.addedNodes);F.removedNodes&&this._unlistenSlots(F.removedNodes)}};
_.z.flush=function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush();this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords());this._scheduled=!1;for(var K={target:this._target,addedNodes:[],removedNodes:[]},X=XgL(this._target),F=Af4(X,this._effectiveNodes),P=0,H=void 0;P<F.length&&(H=F[P]);P++)for(var f=0,u=void 0;f<H.removed.length&&(u=H.removed[f]);f++)K.removedNodes.push(u);
P=0;for(H=void 0;P<F.length&&(H=F[P]);P++)for(f=H.index;f<H.index+H.addedCount;f++)K.addedNodes.push(X[f]);this._effectiveNodes=X;X=!1;if(K.addedNodes.length||K.removedNodes.length)X=!0,this.callback.call(this._target,K);return X};
_.z._listenSlots=function(K){for(var X=0;X<K.length;X++){var F=K[X];hg(F)&&F.addEventListener("slotchange",this._boundSchedule)}};
_.z._unlistenSlots=function(K){for(var X=0;X<K.length;X++){var F=K[X];hg(F)&&F.removeEventListener("slotchange",this._boundSchedule)}};var H0=Element.prototype,FHZ=H0.matches||H0.matchesSelector||H0.mozMatchesSelector||H0.msMatchesSelector||H0.oMatchesSelector||H0.webkitMatchesSelector,PXZ=function(K,X){return FHZ.call(K,X)},m7=function(K){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(K);
this.node=K},fvt;
_.z=m7.prototype;_.z.observeNodes=function(K){return new KHt(this.node,K)};
_.z.unobserveNodes=function(K){K.disconnect()};
_.z.notifyObserver=function(){};
_.z.deepContains=function(K){if((0,_.Jg)(this.node).contains(K))return!0;var X=K;for(K=K.ownerDocument;X&&X!==K&&X!==this.node;)X=(0,_.Jg)(X).parentNode||(0,_.Jg)(X).host;return X===this.node};
_.z.getOwnerRoot=function(){return(0,_.Jg)(this.node).getRootNode()};
_.z.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.Jg)(this.node).assignedNodes({flatten:!0}):[]};
_.z.getDestinationInsertionPoints=function(){for(var K=[],X=(0,_.Jg)(this.node).assignedSlot;X;)K.push(X),X=(0,_.Jg)(X).assignedSlot;return K};
_.z.importNode=function(K,X){return(0,_.Jg)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(K,X)};
_.z.getEffectiveChildNodes=function(){return XgL(this.node)};
_.z.queryDistributedElements=function(K){for(var X=this.getEffectiveChildNodes(),F=[],P=0,H=X.length,f=void 0;P<H&&(f=X[P]);P++)f.nodeType===Node.ELEMENT_NODE&&PXZ(f,K)&&F.push(f);return F};
_.Oi.Object.defineProperties(m7.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var K=this.node;return K._activeElement!==void 0?K._activeElement:K.activeElement}}});
var sK=function(K){this.event=K};
_.Oi.Object.defineProperties(sK.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 HyU=m7;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var sJL=window.ShadyDOM.Wrapper,zFt=function(){return sJL.apply(this,arguments)||this};
_.r(zFt,sJL);Object.getOwnPropertyNames(m7.prototype).forEach(function(K){K!="activeElement"&&K!="constructor"&&(zFt.prototype[K]=m7.prototype[K])});
yql(zFt.prototype,["classList"]);HyU=zFt;Object.defineProperties(sK.prototype,{localTarget:{get:function(){var K=this.event.currentTarget;K=K&&_.cg(K).getOwnerRoot();for(var X=this.path,F=0;F<X.length;F++){var P=X[F];if(_.cg(P).getOwnerRoot()===K)return P}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else wGl(),yql(m7.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),Wm4();fvt=HyU;_.cg=function(K){K=K||document;if(K instanceof HyU)return K;if(K instanceof sK)return K;var X=K.__domApi;X||(K instanceof Event?X=new sK(K):X=new HyU(K),K.__domApi=X);return X};var D$L=/:host\(:dir\((ltr|rtl)\)\)/g,u1L=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,qcU=/:dir\((?:ltr|rtl)\)/,JDU=!(!window.ShadyDOM||!window.ShadyDOM.inUse),lv=[],zi=null,GB="",Zyt=aK(function(K){JDU||zi||(GB=document.documentElement.getAttribute("dir"),zi=new MutationObserver(dyq),zi.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var X=cgL(K);K=function(){var F=X.call(this)||this;F.__autoDirOptOut=!1;return F};
_.r(K,X);K._processStyleText=function(F,P){F=X._processStyleText.call(this,F,P);!JDU&&qcU.test(F)&&(F=this._replaceDirInCssText(F),this.__activateDir=!0);return F};
K._replaceDirInCssText=function(F){F=F.replace(D$L,':host([dir="$1"])');return F=F.replace(u1L,':host([dir="$2"]) $1')};
K.prototype.ready=function(){X.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
K.prototype.connectedCallback=function(){X.prototype.connectedCallback&&X.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(zi&&zi.takeRecords().length&&dyq(),lv.push(this),this.__autoDirOptOut||this.setAttribute("dir",GB))};
K.prototype.disconnectedCallback=function(){X.prototype.disconnectedCallback&&X.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var F=lv.indexOf(this);F>-1&&lv.splice(F,1)}};
K.__activateDir=!1;return K});var YcQ=function(K){for(;K;){var X=Object.getOwnPropertyDescriptor(K,"observedAttributes");if(X)return X.get;K=Object.getPrototypeOf(K.prototype).constructor}return function(){return[]}};
aK(function(K){var X=Or(K),F=YcQ(X);K=function(){return X.call(this)||this};
_.r(K,X);K.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:X.prototype._initializeProperties.call(this)};
K.prototype._enableProperties=function(){this.__isUpgradeDisabled||X.prototype._enableProperties.call(this)};
K.prototype._canApplyPropertyDefault=function(P){return X.prototype._canApplyPropertyDefault.call(this,P)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(P))};
K.prototype.attributeChangedCallback=function(P,H,f,u){P=="disable-upgrade"?this.__isUpgradeDisabled&&f==null&&(X.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.Jg)(this).isConnected&&X.prototype.connectedCallback.call(this)):X.prototype.attributeChangedCallback.call(this,P,H,f,u)};
K.prototype.connectedCallback=function(){this.__isUpgradeDisabled||X.prototype.connectedCallback.call(this)};
K.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||X.prototype.disconnectedCallback.call(this)};
_.Oi.Object.defineProperties(K,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return F.call(this).concat("disable-upgrade")}}});
return K});var vb=!1,RIy=[],a2=[];var GXP=window.ShadyDOM,lVl=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",aVy):document.readyState==="interactive"||document.readyState==="complete"?aVy():window.addEventListener("DOMContentLoaded",aVy);var OjM=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=""},tIO=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,$y4=/@import[^;]*;/gim,NMP=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,ij3=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,xy3=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,IVl=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,bjw=/^@[^\s]*keyframes/,
ER4=/\s+/g;var kXy={};var FlT=Promise.resolve();var QJZ=new Set;var M4t=/;\s*/m,nrC=/^\s*(initial)|(inherit)\s*$/,cDZ=/\s*!important/,pgC=function(){this._map={}};
pgC.prototype.set=function(K,X){K=K.trim();this._map[K]={properties:X,dependants:{}}};
pgC.prototype.get=function(K){K=K.trim();return this._map[K]||null};
var B_C=null,fY=function(){this._measureElement=this._currentElement=null;this._map=new pgC};
_.z=fY.prototype;_.z.detectMixin=function(K){K=mzE.test(K)||hbO.test(K);mzE.lastIndex=0;hbO.lastIndex=0;return K};
_.z.transformTemplate=function(K,X){if(K._gatheredStyle===void 0){var F=[];for(var P=K.content.querySelectorAll("style"),H=0;H<P.length;H++){var f=P[H];if(f.hasAttribute("shady-unscoped")){if(!mdl){var u=f.textContent;if(!QJZ.has(u)){QJZ.add(u);var J=document.createElement("style");J.setAttribute("shady-unscoped","");J.textContent=u;document.head.appendChild(J)}f.parentNode.removeChild(f)}}else F.push(f.textContent),f.parentNode.removeChild(f)}(F=F.join("").trim())?(P=document.createElement("style"),
P.textContent=F,K.content.insertBefore(P,K.content.firstChild),F=P):F=null;K._gatheredStyle=F}return(K=K._gatheredStyle)?this.JSC$9177_transformStyle(K,X):null};
_.z.JSC$9177_transformStyle=function(K,X){X=X===void 0?"":X;var F=zUP(K);this.transformRules(F,X);K.textContent=siw(F);return F};
_.z.transformCustomStyle=function(K){var X=this,F=zUP(K);DLn(F,function(P){P.selector===":root"&&(P.selector="html");X.transformRule(P)});
K.textContent=siw(F);return F};
_.z.transformRules=function(K,X){var F=this;this._currentElement=X;DLn(K,function(P){F.transformRule(P)});
this._currentElement=null};
_.z.transformRule=function(K){K.cssText=ScW(this,K.parsedCssText,K);K.selector===":root"&&(K.selector=":host > *")};
var ScW=function(K,X,F){X=X.replace(hbO,function(P,H,f,u){return K._produceCssProperties(P,H,f,u,F)});
return K._consumeCssProperties(X,F)};
_.z=fY.prototype;_.z._getInitialValueForProperty=function(K){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(K)};
_.z._fallbacksFromPreviousRules=function(K){for(var X=this,F=K;F.parent;)F=F.parent;var P={},H=!1;DLn(F,function(f){(H=H||f===K)||f.selector===K.selector&&Object.assign(P,X._cssTextToMap(f.parsedCssText))});
return P};
_.z._consumeCssProperties=function(K,X){for(var F;F=mzE.exec(K);){var P=F[0],H=F[1];F=F.index;var f=F+P.indexOf("@apply"),u=F+P.length;P=K.slice(0,f);K=K.slice(u);f=X?this._fallbacksFromPreviousRules(X):{};Object.assign(f,this._cssTextToMap(P));H=this._atApplyToCssProperties(H,f);K=P+H+K;mzE.lastIndex=F+H.length}return K};
_.z._atApplyToCssProperties=function(K,X){K=K.replace(M4t,"");var F=[],P=this._map.get(K);P||(this._map.set(K,{}),P=this._map.get(K));if(P){this._currentElement&&(P.dependants[this._currentElement]=!0);var H,f=P.properties;for(H in f){var u=X&&X[H];P=[H,": var(",K,"_-_",H];u&&P.push(",",u.replace(cDZ,""));P.push(")");cDZ.test(f[H])&&P.push(" !important");F.push(P.join(""))}}return F.join("; ")};
_.z._replaceInitialOrInherit=function(K,X){var F=nrC.exec(X);F&&(X=F[1]?this._getInitialValueForProperty(K):"apply-shim-inherit");return X};
_.z._cssTextToMap=function(K,X){X=X===void 0?!1:X;K=K.split(";");for(var F,P,H={},f=0;f<K.length;f++)if(F=K[f])P=F.split(":"),P.length>1&&(F=P[0].trim(),P=P.slice(1).join(":"),X&&(P=this._replaceInitialOrInherit(F,P)),H[F]=P);return H};
_.z._invalidateMixinEntry=function(K){if(B_C)for(var X in K.dependants)X!==this._currentElement&&B_C(X)};
_.z._produceCssProperties=function(K,X,F,P,H){var f=this;F&&uJw(F,function(A,d){d&&f._map.get(d)&&(P="@apply "+d+";")});
if(!P)return K;var u=this._consumeCssProperties(""+P,H);H=K.slice(0,K.indexOf("--"));var J=u=this._cssTextToMap(u,!0),Z=this._map.get(X),M=Z&&Z.properties;M?J=Object.assign(Object.create(M),u):this._map.set(X,J);var n=[],c,B=!1;for(c in J){var L=u[c];L===void 0&&(L="initial");!M||c in M||(B=!0);n.push(X+"_-_"+c+": "+L)}B&&this._invalidateMixinEntry(Z);Z&&(Z.properties=J);F&&(H=K+";"+H);return H+n.join("; ")+";"};
fY.prototype.detectMixin=fY.prototype.detectMixin;fY.prototype.transformStyle=fY.prototype.JSC$9177_transformStyle;fY.prototype.transformCustomStyle=fY.prototype.transformCustomStyle;fY.prototype.transformRules=fY.prototype.transformRules;fY.prototype.transformRule=fY.prototype.transformRule;fY.prototype.transformTemplate=fY.prototype.transformTemplate;fY.prototype._separator="_-_";Object.defineProperty(fY.prototype,"invalidCallback",{get:function(){return B_C},
set:function(K){B_C=K}});var Do=new fY,orL=function(){this.customStyleInterface=null;Do.invalidCallback=KlM},u$=function(K){!K.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(K.customStyleInterface=window.ShadyCSS.CustomStyleInterface,K.customStyleInterface.transformCallback=function(X){Do.transformCustomStyle(X)},K.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){K.customStyleInterface.enqueued&&K.flushCustomStyles()})})};
_.z=orL.prototype;_.z.prepareTemplate=function(K,X){u$(this);q$d(K)===""&&(kXy[X]=K,X=Do.transformTemplate(K,X),K._styleAst=X)};
_.z.flushCustomStyles=function(){u$(this);if(this.customStyleInterface){var K=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var X=0;X<K.length;X++){var F=this.customStyleInterface.getStyleForCustomStyle(K[X]);F&&Do.transformCustomStyle(F)}this.customStyleInterface.enqueued=!1}}};
_.z.styleSubtree=function(K,X){u$(this);X&&yfO(K,X);if(K.shadowRoot)for(this.styleElement(K),K=K.shadowRoot.children||K.shadowRoot.childNodes,X=0;X<K.length;X++)this.styleSubtree(K[X]);else for(K=K.children||K.childNodes,X=0;X<K.length;X++)this.styleSubtree(K[X])};
_.z.styleElement=function(K){u$(this);var X=K.localName,F;X?X.indexOf("-")>-1?F=X:F=K.getAttribute&&K.getAttribute("is")||"":F=K.is;X=kXy[F];if(!(X&&q$d(X)!==""||!X||XjT(X))){if(XjT(X)||X._applyShimValidatingVersion!==X._applyShimNextVersion)this.prepareTemplate(X,F),PrM(X);if(K=K.shadowRoot)if(K=K.querySelector("style"))K.__cssRules=X._styleAst,K.textContent=siw(X._styleAst)}};
_.z.styleDocument=function(K){u$(this);this.styleSubtree(document.body,K)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var qM=new orL,LHL=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(K,X){qM.flushCustomStyles();qM.prepareTemplate(K,X)},
prepareTemplateStyles:function(K,X,F){window.ShadyCSS.prepareTemplate(K,X,F)},
prepareTemplateDom:function(){},
styleSubtree:function(K,X){qM.flushCustomStyles();qM.styleSubtree(K,X)},
styleElement:function(K){qM.flushCustomStyles();qM.styleElement(K)},
styleDocument:function(K){qM.flushCustomStyles();qM.styleDocument(K)},
getComputedStyleValue:function(K,X){return W_3(K,X)},
flushCustomStyles:function(){qM.flushCustomStyles()},
nativeCss:Hk3,nativeShadow:mdl,cssBuild:$h,disableRuntime:vhE};LHL&&(window.ShadyCSS.CustomStyleInterface=LHL)}window.ShadyCSS.ApplyShim=Do;var T_C;T_C=window.ShadyCSS;_.JL=aK(function(K){K=bDC(Or(K));var X=wbt?K:Zyt(K),F=YcQ(X),P={x:"pan-x",y:"pan-y",none:"none",all:"auto"};K=function(){return X.call(this)||this};
_.r(K,X);K.prototype.created=function(){};
K.prototype.__attributeReaction=function(H,f,u){(this.__dataAttributes&&this.__dataAttributes[H]||H==="disable-upgrade")&&this.attributeChangedCallback(H,f,u,null)};
K.prototype.setAttribute=function(H,f){if(XbL&&!this._legacyForceObservedAttributes){var u=this.getAttribute(H);X.prototype.setAttribute.call(this,H,f);this.__attributeReaction(H,u,String(f))}else X.prototype.setAttribute.call(this,H,f)};
K.prototype.removeAttribute=function(H){if(XbL&&!this._legacyForceObservedAttributes){var f=this.getAttribute(H);X.prototype.removeAttribute.call(this,H);this.__attributeReaction(H,f,null)}else X.prototype.removeAttribute.call(this,H)};
K.prototype._enableProperties=function(){this.__isUpgradeDisabled||X.prototype._enableProperties.call(this)};
K.prototype._canApplyPropertyDefault=function(H){return X.prototype._canApplyPropertyDefault.call(this,H)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(H))};
K.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(X.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
K.prototype.attached=function(){};
K.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(X.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
K.prototype.detached=function(){};
K.prototype.attributeChangedCallback=function(H,f,u,J){f!==u&&(H=="disable-upgrade"?this.__isUpgradeDisabled&&u==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.Jg)(this).isConnected&&this.connectedCallback()):(X.prototype.attributeChangedCallback.call(this,H,f,u,J),this.attributeChanged(H,f,u)))};
K.prototype.attributeChanged=function(){};
K.prototype._initializeProperties=function(){if(yF&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var H=Object.getPrototypeOf(this);H.hasOwnProperty("__hasRegisterFinished")||(this._registered(),H.__hasRegisterFinished=!0);X.prototype._initializeProperties.call(this);this.root=this;this.created();XbL&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
K.prototype._takeAttributes=function(){for(var H=this.attributes,f=0,u=H.length;f<u;f++){var J=H[f];this.__attributeReaction(J.name,null,J.value)}};
K.prototype._registered=function(){};
K.prototype.ready=function(){this._ensureAttributes();X.prototype.ready.call(this)};
K.prototype._ensureAttributes=function(){};
K.prototype._applyListeners=function(){};
K.prototype.serialize=function(H){return this._serializeValue(H)};
K.prototype.deserialize=function(H,f){return this._deserializeValue(H,f)};
K.prototype.reflectPropertyToAttribute=function(H,f,u){this._propertyToAttribute(H,f,u)};
K.prototype.serializeValueToAttribute=function(H,f,u){this._valueToNodeAttribute(u||this,H,f)};
K.prototype.extend=function(H,f){if(!H||!f)return H||f;for(var u=Object.getOwnPropertyNames(f),J=0,Z=void 0;J<u.length&&(Z=u[J]);J++){var M=Object.getOwnPropertyDescriptor(f,Z);M&&Object.defineProperty(H,Z,M)}return H};
K.prototype.mixin=function(H,f){for(var u in f)H[u]=f[u];return H};
K.prototype.chainObject=function(H,f){H&&f&&H!==f&&(H.__proto__=f);return H};
K.prototype.instanceTemplate=function(H){H=this.constructor._contentForTemplate(H);return document.importNode(H,!0)};
K.prototype.fire=function(H,f,u){u=u||{};f=f===null||f===void 0?{}:f;H=new Event(H,{bubbles:u.bubbles===void 0?!0:u.bubbles,cancelable:!!u.cancelable,composed:u.composed===void 0?!0:u.composed});H.detail=f;(0,_.Jg)(u.node||this).dispatchEvent(H);return H};
K.prototype.listen=function(H,f,u){H=H||this;var J=this.__boundListeners||(this.__boundListeners=new WeakMap),Z=J.get(H);Z||(Z={},J.set(H,Z));J=f+u;Z[J]||(Z[J]=this._addMethodEventListenerToNode(H,f,u,this))};
K.prototype.unlisten=function(H,f,u){H=H||this;var J=this.__boundListeners&&this.__boundListeners.get(H);u=f+u;var Z=J&&J[u];Z&&(this._removeEventListenerFromNode(H,f,Z),J[u]=null)};
K.prototype.setScrollDirection=function(H,f){_.Ag(f||this,P[H]||"auto")};
K.prototype.$$=function(H){return this.root.querySelector(H)};
K.prototype.distributeContent=function(){var H=_.cg(this);window.ShadyDOM&&H.shadowRoot&&ShadyDOM.flush()};
K.prototype.getEffectiveChildNodes=function(){return _.cg(this).getEffectiveChildNodes()};
K.prototype.queryDistributedElements=function(H){return _.cg(this).queryDistributedElements(H)};
K.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(H){return H.nodeType===Node.ELEMENT_NODE})};
K.prototype.getEffectiveTextContent=function(){for(var H=this.getEffectiveChildNodes(),f=[],u=0,J;J=H[u];u++)J.nodeType!==Node.COMMENT_NODE&&f.push(J.textContent);return f.join("")};
K.prototype.queryEffectiveChildren=function(H){return(H=this.queryDistributedElements(H))&&H[0]};
K.prototype.queryAllEffectiveChildren=function(H){return this.queryDistributedElements(H)};
K.prototype.getContentChildNodes=function(H){return(H=this.root.querySelector(H||"slot"))?_.cg(H).getDistributedNodes():[]};
K.prototype.getContentChildren=function(H){return this.getContentChildNodes(H).filter(function(f){return f.nodeType===Node.ELEMENT_NODE})};
K.prototype.isLightDescendant=function(H){return this!==H&&(0,_.Jg)(this).contains(H)&&(0,_.Jg)(this).getRootNode()===(0,_.Jg)(H).getRootNode()};
K.prototype.isLocalDescendant=function(H){return this.root===(0,_.Jg)(H).getRootNode()};
K.prototype.scopeSubtree=function(H,f){return vRl(H,f===void 0?!1:f)};
K.prototype.getComputedStyleValue=function(H){return T_C.getComputedStyleValue(this,H)};
K.prototype.debounce=function(H,f,u){this._debouncers=this._debouncers||{};return this._debouncers[H]=_.xs(this._debouncers[H],u>0?_.vT.after(u):jW,f.bind(this))};
K.prototype.isDebouncerActive=function(H){this._debouncers=this._debouncers||{};H=this._debouncers[H];return!(!H||!H.isActive())};
K.prototype.flushDebouncer=function(H){this._debouncers=this._debouncers||{};(H=this._debouncers[H])&&H.flush()};
K.prototype.cancelDebouncer=function(H){this._debouncers=this._debouncers||{};(H=this._debouncers[H])&&H.cancel()};
K.prototype.async=function(H,f){return f>0?_.vT.run(H.bind(this),f):~jW.run(H.bind(this))};
K.prototype.cancelAsync=function(H){H<0?jW.cancel(~H):_.vT.cancel(H)};
K.prototype.create=function(H,f){H=document.createElement(H);if(f)if(H.setProperties)H.setProperties(f);else for(var u in f)H[u]=f[u];return H};
K.prototype.elementMatches=function(H,f){return PXZ(f||this,H)};
K.prototype.toggleAttribute=function(H,f){var u=this;arguments.length===3&&(u=arguments[2]);arguments.length==1&&(f=!u.hasAttribute(H));if(f)return(0,_.Jg)(u).setAttribute(H,""),!0;(0,_.Jg)(u).removeAttribute(H);return!1};
K.prototype.toggleClass=function(H,f,u){u=u||this;arguments.length==1&&(f=!u.classList.contains(H));f?u.classList.add(H):u.classList.remove(H)};
K.prototype.transform=function(H,f){f=f||this;f.style.webkitTransform=H;f.style.transform=H};
K.prototype.translate3d=function(H,f,u,J){this.transform("translate3d("+H+","+f+","+u+")",J||this)};
K.prototype.arrayDelete=function(H,f){if(Array.isArray(H)){if(f=H.indexOf(f),f>=0)return H.splice(f,1)}else if(f=Dp(this,H).indexOf(f),f>=0)return this.splice(H,f,1);return null};
K.prototype._logger=function(H,f){Array.isArray(f)&&f.length===1&&Array.isArray(f[0])&&(f=f[0]);switch(H){case "log":case "warn":case "error":console[H].apply(console,_.LZ(f))}};
K.prototype._log=function(){this._logger("log",_.Ls.apply(0,arguments))};
K.prototype._warn=function(){this._logger("warn",_.Ls.apply(0,arguments))};
K.prototype._error=function(){this._logger("error",_.Ls.apply(0,arguments))};
K.prototype._logf=function(H){return["[%s::%s]",this.is,H].concat(_.LZ(_.Ls.apply(1,arguments)))};
_.Oi.Object.defineProperties(K.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var H=(0,_.Jg)(this).getRootNode();return H instanceof DocumentFragment?H.host:H}}});
_.Oi.Object.defineProperties(K,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return XbL&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],G9l(this.prototype)),this.__observedAttributes):F.call(this).concat("disable-upgrade")}}});
K.prototype.is="";return K});Polymer.FlattenedNodesObserver=KHt;Polymer.DomApi=fvt;Polymer.EventApi=sK;Polymer.dom=_.cg;Polymer.dom.matchesSelector=PXZ;Polymer.dom.flush=_.Fz;Polymer.dom.addDebouncer=_.IK;Polymer.DirMixin=Zyt;Polymer.RenderStatus={beforeNextRender:_.myy,afterNextRender:_.tg,flush:function(){for(;RIy.length||a2.length;)eIO(RIy),eIO(a2);vb=!1}};Polymer.LegacyElementMixin=_.JL;var rDN;rDN=KY._mutablePropertyChange;var ADC={properties:{mutableData:Boolean},_shouldPropertyChange:function(K,X,F){return rDN(this,K,X,F,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(K,X,F){return rDN(this,K,X,F,!0)}};
Polymer.OptionalMutableDataBehavior=ADC;var J4w={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},nAT={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},MNq=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},nAT),jJN=(0,_.JL)(HTMLElement),bfT=function(K,X){K||console.warn("Polymer.Class requires `info` argument");X=X?X(jJN):jJN;X=c4P(K,X,K.behaviors);X.is=X.prototype.is=
K.is;return X};Polymer.Class=bfT;Polymer.mixinBehaviors=function(K,X){return c4P({},(0,_.JL)(X),K)};
Polymer.GenerateClassFromInfo=c4P;_.pa=function(K){var X=typeof K==="function"?K:_.pa.Class(K);K._legacyForceObservedAttributes&&(X.prototype._legacyForceObservedAttributes=K._legacyForceObservedAttributes);customElements.define(X.is,X);return X};
_.pa.Class=bfT;Polymer._polymerFn=_.pa;var wgT=window.onLegacyPolymerFunctionDefinedCallback;wgT&&wgT();var NrP={templatize:function(K,X){this._templatizerTemplate=K;this.ctor=eW(K,this,{mutableData:!!X,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(K){return new this.ctor(K)},
modelForElement:function(K){return jnw(this._templatizerTemplate,K)}};Polymer.Templatizer=NrP;_.Zo=(0,_.JL)(HTMLElement).prototype;Polymer.Base=_.Zo;var BHP=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.VF=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.r(_.VF,PolymerFakeBaseClass);var gg=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.r(gg,PolymerFakeBaseClass);var S$P=Symbol("Kd"),y4d=[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 yDW=yDW||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},WHt;(function(K){function X(V,x,N){var Dl=E.get(V);if(!Dl){if(!N)return;Dl=new l;E.set(V,Dl)}V=Dl.get(x);if(!V){if(!N)return;V=new l;Dl.set(x,V)}return V}
function F(V,x,N){if(P(V,x,N))return!0;x=B(x);return x!==null?F(V,x,N):!1}
function P(V,x,N){x=X(x,N,!1);return x===void 0?!1:!!x.has(V)}
function H(V,x,N){if(P(V,x,N))return f(V,x,N);x=B(x);if(x!==null)return H(V,x,N)}
function f(V,x,N){x=X(x,N,!1);if(x!==void 0)return x.get(V)}
function u(V,x){var N=J(V,x);V=B(V);if(V===null)return N;var Dl=u(V,x);if(Dl.length<=0)return N;if(N.length<=0)return Dl;x=new a;V=[];N=_.D(N);for(var Mq=N.next();!Mq.done;Mq=N.next())Mq=Mq.value,x.has(Mq)||(x.add(Mq),V.push(Mq));N=_.D(Dl);for(Dl=N.next();!Dl.done;Dl=N.next())Dl=Dl.value,x.has(Dl)||(x.add(Dl),V.push(Dl));return V}
function J(V,x){V=X(V,x,!1);var N=[];V&&V.forEach(function(Dl,Mq){return N.push(Mq)});
return N}
function Z(V){return V===void 0}
function M(V){return typeof V==="object"?V!==null:typeof V==="function"}
function n(V){return typeof V==="function"}
function c(V){return typeof V==="symbol"?V:String(V)}
function B(V){var x=Object.getPrototypeOf(V);if(typeof V!=="function"||V===R||x!==R)return x;var N=Object.getPrototypeOf(V.prototype);if(N==null||N===Object.prototype)return x;N=N.constructor;return typeof N!=="function"||N===V?x:N}
function L(){function V(){this._keys=[];this._values=[];this._cache=x}
var x={};V.prototype={get size(){return this._keys.length},has:function(N){return N===this._cache?!0:this._find(N)>=0?(this._cache=N,!0):!1},
get:function(N){var Dl=this._find(N);if(Dl>=0)return this._cache=N,this._values[Dl]},
set:function(N,Dl){this.delete(N);this._keys.push(N);this._values.push(Dl);this._cache=N;return this},
delete:function(N){N=this._find(N);return N>=0?(this._keys.splice(N,1),this._values.splice(N,1),this._cache=x,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=x},
forEach:function(N){for(var Dl=this.size,Mq=0;Mq<Dl;++Mq){var pO=this._keys[Mq],y9=this._values[Mq];this._cache=pO;N.call(this,y9,pO,this)}},
_find:function(N){for(var Dl=this._keys,Mq=Dl.length,pO=0;pO<Mq;++pO)if(Dl[pO]===N)return pO;return-1}};
return V}
function A(){function V(){this._map=new l}
V.prototype={get size(){return this._map.length},has:function(x){return this._map.has(x)},
add:function(x){this._map.set(x,x);return this},
delete:function(x){return this._map.delete(x)},
clear:function(){this._map.clear()},
forEach:function(x,N){this._map.forEach(x,N)}};
return V}
function d(){function V(){this._key=N()}
function x(eP,gw){for(var a3=0;a3<gw;++a3)eP[a3]=Math.random()*255|0}
function N(){do{if(Mq)var eP=Mq.randomBytes(16);else typeof Uint8Array==="function"?(eP=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(eP):x(eP,16)):(eP=Array(16),x(eP,16));eP[6]=eP[6]&79|64;eP[8]=eP[8]&191|128;for(var gw="",a3=0;a3<16;++a3){var dL=eP[a3];if(a3===4||a3===6||a3===8)gw+="-";dL<16&&(gw+="0");gw+=dL.toString(16).toLowerCase()}eP="@@WeakMap@@"+gw}while(pO.call(y9,eP));y9[eP]=!0;return eP}
function Dl(eP,gw){if(!pO.call(eP,Wy)){if(!gw)return;Object.defineProperty(eP,Wy,{value:Object.create(null)})}return eP[Wy]}
var Mq=typeof global!=="undefined"&&typeof yDW==="object"&&typeof require==="function"&&require("crypto"),pO=Object.prototype.hasOwnProperty,y9={},Wy=N();V.prototype={has:function(eP){return(eP=Dl(eP,!1))?this._key in eP:!1},
get:function(eP){if(eP=Dl(eP,!1))return eP[this._key]},
set:function(eP,gw){Dl(eP,!0)[this._key]=gw;return this},
delete:function(eP){return(eP=Dl(eP,!1))&&this._key in eP?delete eP[this._key]:!1},
clear:function(){this._key=N()}};
return V}
var R=Object.getPrototypeOf(Function),l=typeof Map==="function"?Map:L(),a=typeof Set==="function"?Set:A(),E=new (typeof WeakMap==="function"?WeakMap:d());K.decorate=function(V,x,N,Dl){if(Z(Dl)){if(Z(N)){if(!Array.isArray(V))throw new TypeError;if(!n(x))throw new TypeError;for(N=V.length-1;N>=0;--N)if(Dl=(0,V[N])(x),!Z(Dl)){if(!n(Dl))throw new TypeError;x=Dl}return x}if(!Array.isArray(V))throw new TypeError;if(!M(x))throw new TypeError;N=c(N);for(Dl=V.length-1;Dl>=0;--Dl)(0,V[Dl])(x,N)}else{if(Array.isArray(V))if(M(x)){if(Z(N))throw new TypeError;
if(!M(Dl))throw new TypeError;}else throw new TypeError;else throw new TypeError;N=c(N);for(var Mq=V.length-1;Mq>=0;--Mq){var pO=(0,V[Mq])(x,N,Dl);if(!Z(pO)){if(!M(pO))throw new TypeError;Dl=pO}}return Dl}};
K.metadata=function(V,x){return function(N,Dl){if(Z(Dl)){if(!n(N))throw new TypeError;X(N,void 0,!0).set(V,x)}else{if(!M(N))throw new TypeError;Dl=c(Dl);X(N,Dl,!0).set(V,x)}}};
K.defineMetadata=function(V,x){var N;if(M(x))Z(N)||(N=c(N));else throw new TypeError;X(x,N,!0).set("parameters",V)};
K.hasMetadata=function(V,x,N){if(M(x))Z(N)||(N=c(N));else throw new TypeError;return F(V,x,N)};
K.hasOwnMetadata=function(V,x,N){if(M(x))Z(N)||(N=c(N));else throw new TypeError;return P(V,x,N)};
K.getMetadata=function(V,x,N){if(M(x))Z(N)||(N=c(N));else throw new TypeError;return H(V,x,N)};
K.getOwnMetadata=function(V,x,N){if(M(x))Z(N)||(N=c(N));else throw new TypeError;return f(V,x,N)};
K.getMetadataKeys=function(V,x){if(M(V))Z(x)||(x=c(x));else throw new TypeError;return u(V,x)};
K.getOwnMetadataKeys=function(V,x){if(M(V))Z(x)||(x=c(x));else throw new TypeError;return J(V,x)};
K.deleteMetadata=function(V,x,N){if(M(x))Z(N)||(N=c(N));else throw new TypeError;var Dl=X(x,N,!1);if(!Z(Dl)){if(!Dl.delete(V))return!1;if(Dl.size>0)return!0;V=E.get(x);V.delete(N);if(V.size>0)return!0;E.delete(x);return!0}};
(function(V){if(typeof V.Reflect!=="undefined"){if(V.Reflect!==K)for(var x in K)V.Reflect[x]=K[x]}else V.Reflect=K})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(WHt||(WHt={}));var el9=self;var d$t=[0,_.Rc,_.mg,_.Rc];var eFU=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(eFU,_.Gm);var RFT=_.x8(eFU,[0,_.RgP,_.GQ,d$t,_.mg,_.vL]);_.br(_.Ei,_.LJ);_.z=_.Ei.prototype;_.z.start=function(){this.stop();this.usingListeners_=!1;var K=U$U(this),X=hFO(this);K&&!X&&this.JSC$9220_win_.mozRequestAnimationFrame?(this.JSC$9220_id_=_.nB(this.JSC$9220_win_,"MozBeforePaint",this.callback_),this.JSC$9220_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9220_id_=K&&X?K.call(this.JSC$9220_win_,this.callback_):this.JSC$9220_win_.setTimeout(liy(this.callback_),20)};
_.z.stop=function(){if(this.isActive()){var K=U$U(this),X=hFO(this);K&&!X&&this.JSC$9220_win_.mozRequestAnimationFrame?YO(this.JSC$9220_id_):K&&X?X.call(this.JSC$9220_win_,this.JSC$9220_id_):this.JSC$9220_win_.clearTimeout(this.JSC$9220_id_)}this.JSC$9220_id_=null};
_.z.fire=function(){this.stop();this.JSC$9222_doAction_()};
_.z.isActive=function(){return this.JSC$9220_id_!=null};
_.z.JSC$9222_doAction_=function(){this.usingListeners_&&this.JSC$9220_id_&&YO(this.JSC$9220_id_);this.JSC$9220_id_=null;this.JSC$9220_listener_.call(this.handler_,_.E$())};
_.z.disposeInternal=function(){this.stop();_.Ei.superClass_.disposeInternal.call(this)};
var U$U=function(K){K=K.JSC$9220_win_;return K.requestAnimationFrame||K.webkitRequestAnimationFrame||K.mozRequestAnimationFrame||K.oRequestAnimationFrame||K.msRequestAnimationFrame||null},hFO=function(K){K=K.JSC$9220_win_;
return K.cancelAnimationFrame||K.cancelRequestAnimationFrame||K.webkitCancelRequestAnimationFrame||K.mozCancelRequestAnimationFrame||K.oCancelRequestAnimationFrame||K.msCancelRequestAnimationFrame||null};_.VW=function(K,X,F){_.LJ.call(this);this.JSC$9223_listener_=F!=null?K.bind(F):K;this.JSC$9223_interval_=X;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9223_timer_=null};
_.r(_.VW,_.LJ);_.z=_.VW.prototype;_.z.fire=function(K){this.args_=arguments;this.JSC$9223_timer_||this.pauseCount_?this.shouldFire_=!0:m$t(this)};
_.z.stop=function(){this.JSC$9223_timer_&&(_.FP.clearTimeout(this.JSC$9223_timer_),this.JSC$9223_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.z.pause=function(){this.pauseCount_++};
_.z.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9223_timer_||(this.shouldFire_=!1,m$t(this))};
_.z.disposeInternal=function(){_.LJ.prototype.disposeInternal.call(this);this.stop()};
var m$t=function(K){K.JSC$9223_timer_=Qt(function(){K.JSC$9223_timer_=null;K.shouldFire_&&!K.pauseCount_&&(K.shouldFire_=!1,m$t(K))},K.JSC$9223_interval_);
var X=K.args_;K.args_=null;K.JSC$9223_listener_.apply(null,X)};var GYQ=function(K,X){this.childIterator_=K[_.FP.Symbol.iterator]();this.mapFn_=X};
GYQ.prototype[Symbol.iterator]=function(){return this};
GYQ.prototype.next=function(){var K=this.childIterator_.next();return{value:K.done?void 0:this.mapFn_.call(void 0,K.value),done:K.done}};
var lvZ=function(K,X){return new GYQ(K,X)};var vrt={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 fjP=function(K){var X=avN(K);if(!X)throw Error("Od`"+K);return X},avN=function(K){var X={};
K=String(K);var F=K.charAt(0)=="#"?K:"#"+K;if(t4T.test(F))return X.hex=XiM(F),X.type="hex",X;F=Jn4(K);return F.length?(X.hex=NAd(F[0],F[1],F[2]),X.type="rgb",X):vrt&&(K=vrt[K.toLowerCase()])?(X.hex=K,X.type="named",X):null},$$C=/#(.)(.)(.)/,XiM=function(K){if(!t4T.test(K))throw Error("Qd`"+K);
K.length==4&&(K=K.replace($$C,"#$1$1$2$2$3$3"));return K.toLowerCase()},Dky=function(K){K=XiM(K);
K=parseInt(K.slice(1),16);return[K>>16,K>>8&255,K&255]},NAd=function(K,X,F){K=Number(K);
X=Number(X);F=Number(F);if(K!=(K&255)||X!=(X&255)||F!=(F&255))throw Error("Rd`"+K+"`"+X+"`"+F);X=K<<16|X<<8|F;return K<16?"#"+(16777216|X).toString(16).slice(1):"#"+X.toString(16)},t4T=/^#(?:[0-9a-f]{3}){1,2}$/i,OyN=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,Jn4=function(K){var X=K.match(OyN);
if(X){K=Number(X[1]);var F=Number(X[2]);X=Number(X[3]);if(K>=0&&K<=255&&F>=0&&F<=255&&X>=0&&X<=255)return[K,F,X]}return[]};var V4V={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},My=V4V;My=V4V;var d8M,grC,Ert;d8M=function(K,X){switch(X){case 1:return K%4!=0||K%100==0&&K%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
grC=function(K,X,F,P,H){K=new Date(K,X,F);H=H||0;return K.valueOf()+(((P!==void 0?P:3)-H+7)%7-((K.getDay()+6)%7-H+7)%7)*864E5};
_.Y4=function(K,X,F){typeof K==="number"?(this.date=Ert(K,X||0,F||1),byN(this,F||1)):_.XL(K)?(this.date=Ert(K.getFullYear(),K.getMonth(),K.getDate()),byN(this,K.getDate())):(this.date=new Date(_.E$()),K=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),byN(this,K))};
Ert=function(K,X,F){X=new Date(K,X,F);K>=0&&K<100&&X.setFullYear(X.getFullYear()-1900);return X};
_.z=_.Y4.prototype;_.z.firstDayOfWeek_=My.FIRSTDAYOFWEEK;_.z.firstWeekCutOffDay_=My.FIRSTWEEKCUTOFFDAY;_.z.clone=function(){var K=new _.Y4(this.date);K.firstDayOfWeek_=this.firstDayOfWeek_;K.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return K};
_.z.getFullYear=function(){return this.date.getFullYear()};
_.z.getYear=function(){return this.getFullYear()};
_.z.getMonth=function(){return this.date.getMonth()};
_.z.getDate=function(){return this.date.getDate()};
_.z.getTime=function(){return this.date.getTime()};
_.z.getDay=function(){return this.date.getDay()};
_.z.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.z.getUTCMonth=function(){return this.date.getUTCMonth()};
_.z.getUTCDate=function(){return this.date.getUTCDate()};
_.z.getUTCDay=function(){return this.date.getDay()};
_.z.getUTCHours=function(){return this.date.getUTCHours()};
_.z.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.z.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.z.set=function(K){this.date=new Date(K.getFullYear(),K.getMonth(),K.getDate())};
_.z.setFullYear=function(K){this.date.setFullYear(K)};
_.z.setYear=function(K){this.setFullYear(K)};
_.z.setMonth=function(K){this.date.setMonth(K)};
_.z.setDate=function(K){this.date.setDate(K)};
_.z.setTime=function(K){this.date.setTime(K)};
_.z.setUTCFullYear=function(K){this.date.setUTCFullYear(K)};
_.z.setUTCMonth=function(K){this.date.setUTCMonth(K)};
_.z.setUTCDate=function(K){this.date.setUTCDate(K)};
_.z.add=function(K){if(K.years||K.months){var X=this.getMonth()+K.months+K.years*12,F=this.getYear()+Math.floor(X/12);X%=12;X<0&&(X+=12);var P=Math.min(d8M(F,X),this.getDate());this.setDate(1);this.setFullYear(F);this.setMonth(X);this.setDate(P)}K.days&&(F=this.getYear(),X=F>=0&&F<=99?-1900:0,K=new Date((new Date(F,this.getMonth(),this.getDate(),12)).getTime()+K.days*864E5),this.setDate(1),this.setFullYear(K.getFullYear()+X),this.setMonth(K.getMonth()),this.setDate(K.getDate()),byN(this,K.getDate()))};
_.z.JSC$9236_toIsoString=function(K){var X=this.getFullYear(),F=X<0?"-":X>=1E4?"+":"";return[F+_.gd(Math.abs(X),F?6:4),_.gd(this.getMonth()+1,2),_.gd(this.getDate(),2)].join(K?"-":"")};
_.z.equals=function(K){return!(!K||this.getYear()!=K.getYear()||this.getMonth()!=K.getMonth()||this.getDate()!=K.getDate())};
_.z.toString=function(){return this.JSC$9236_toIsoString()};
var byN=function(K,X){K.getDate()!=X&&K.date.setUTCHours(K.date.getUTCHours()+(K.getDate()<X?1:-1))};
_.Y4.prototype.valueOf=function(){return this.date.valueOf()};var MM=function(K,X,F,P,H){this.reversed=!!X;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!F;K&&QI(this,K,P);this.depth=H!=void 0?H:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.br(MM,NE);var QI=function(K,X,F,P){if(K.node=X)K.tagType=typeof F==="number"?F:K.node.nodeType!=1?0:K.reversed?-1:1;typeof P==="number"&&(K.depth=P)};
_.z=MM.prototype;_.z.JSC$9251_copyFrom=function(K){this.node=K.node;this.tagType=K.tagType;this.depth=K.depth;this.reversed=K.reversed;this.constrained=K.constrained};
_.z.clone=function(){return new MM(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.z.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return iR;var K=this.node;var X=this.reversed?-1:1;if(this.tagType==X){var F=this.reversed?K.lastChild:K.firstChild;F?QI(this,F):QI(this,K,X*-1)}else(F=this.reversed?K.previousSibling:K.nextSibling)?QI(this,F):QI(this,K.parentNode,X*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(K=this.node)?x0(K):iR};
_.z.equals=function(K){return K.node==this.node&&(!this.node||K.tagType==this.tagType)};
_.z.splice=function(K){var X=this.node,F=this.reversed?1:-1;this.tagType==F&&(this.tagType=F*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;MM.prototype.next.call(this);this.reversed=!this.reversed;F=_.xd(arguments[0])?arguments[0]:arguments;for(var P=F.length-1;P>=0;P--)_.Bz(F[P],X);_.c_(X)};var CXL=function(){},nY=function(K){for(var X=[],F=K.getTextRangeCount(),P=0;P<F;P++)X.push(K.getTextRange(P));
return X};
CXL.prototype.isReversed=function(){return!1};
CXL.prototype.getWindow=function(){return wp(_.yf(this.JSC$9253_getStartNode()))};
var N_L=function(K,X){MM.call(this,K,X,!0)};
_.br(N_L,MM);var c0=function(K,X,F,P,H){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!H;if(K){this.startNode_=K;this.startOffset_=X;this.endNode_=F;this.endOffset_=P;if(K.nodeType==1&&K.tagName!="BR")if(K=K.childNodes,X=K[X])this.startNode_=X,this.startOffset_=0;else{K.length&&(this.startNode_=_.m4(K));var f=!0}F.nodeType==1&&((this.endNode_=F.childNodes[P])?this.endOffset_=0:this.endNode_=F)}MM.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);f&&this.next()};
_.br(c0,N_L);_.z=c0.prototype;_.z.JSC$9259_getStartNode=function(){return this.startNode_};
_.z.isLast=function(){return this.started_&&(this.node!=(this.isReversed_?this.startNode_:this.endNode_)?!1:this.isReversed_?this.startOffset_?this.tagType!=-1:this.tagType==1:!this.endOffset_||this.tagType!=1)};
_.z.next=function(){return this.isLast()?iR:c0.superClass_.next.call(this)};
_.z.JSC$9251_copyFrom=function(K){this.startNode_=K.startNode_;this.endNode_=K.endNode_;this.startOffset_=K.startOffset_;this.endOffset_=K.endOffset_;this.isReversed_=K.isReversed_;c0.superClass_.JSC$9251_copyFrom.call(this,K)};
_.z.clone=function(){var K=new c0(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);K.JSC$9251_copyFrom(this);return K};var iyV=function(){};
iyV.prototype.__iterator__=function(){return new c0(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var pY=function(K){this.range_=K};
_.br(pY,iyV);var x$N=function(K){var X=_.yf(K).createRange();if(K.nodeType==3)X.setStart(K,0),X.setEnd(K,K.length);else if(nb(K)||K.nodeType==3){for(var F,P=K;(F=P.firstChild)&&(nb(F)||F.nodeType==3);)P=F;X.setStart(P,0);for(P=K;(F=P.lastChild)&&(nb(F)||F.nodeType==3);)P=F;X.setEnd(P,P.nodeType==1?P.childNodes.length:P.length)}else F=K.parentNode,K=Array.prototype.indexOf.call(F.childNodes,K),X.setStart(F,K),X.setEnd(F,K+1);return X},IvL=function(K,X,F,P){var H=_.yf(K).createRange();
H.setStart(K,X);H.setEnd(F,P);return H};
_.z=pY.prototype;_.z.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.z.getContainer=function(){return this.range_.commonAncestorContainer};
_.z.compareBrowserRangeEndpoints=function(K,X,F){return this.range_.compareBoundaryPoints(F==1?X==1?_.FP.Range.START_TO_START:_.FP.Range.START_TO_END:X==1?_.FP.Range.END_TO_START:_.FP.Range.END_TO_END,K)};
_.z.isCollapsed=function(){return this.range_.collapsed};
_.z.select=function(K){this.selectInternal(wp(_.yf(this.range_.startContainer)).getSelection(),K)};
_.z.selectInternal=function(K){K.removeAllRanges();K.addRange(this.range_)};
_.z.insertNode=function(K,X){var F=this.range_.cloneRange();F.collapse(X);F.insertNode(K);F.detach();return K};
_.z.collapse=function(K){this.range_.collapse(K)};_.br(bv,pY);bv.prototype.selectInternal=function(K,X){!X||this.isCollapsed()?bv.superClass_.selectInternal.call(this,K,X):(K.collapse(this.range_.endContainer,this.range_.endOffset),K.extend(this.range_.startContainer,this.range_.startOffset))};_.br(CD,pY);CD.prototype.compareBrowserRangeEndpoints=function(K,X,F){return CD.superClass_.compareBrowserRangeEndpoints.call(this,K,X,F)};
CD.prototype.selectInternal=function(K,X){X?K.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):K.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var kYO=function(K){return _.Ii?new CD(K):_.xA?new bv(K):new pY(K)};var B0=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},KbZ;
_.br(B0,CXL);KbZ=function(K,X){var F=new B0;F.browserRangeWrapper_=K;F.isReversed_=!!X;return F};
_.XWO=function(K){K=_.Ii?new CD(x$N(K)):_.xA?new bv(x$N(K)):new pY(x$N(K));return KbZ(K)};
_.ST=function(K,X,F,P){var H=new B0;H.isReversed_=FbE(K,X,F,P);if(_.gG(K)&&!nb(K)){var f=K.parentNode;X=Array.prototype.indexOf.call(f.childNodes,K);K=f}_.gG(F)&&!nb(F)&&(f=F.parentNode,P=Array.prototype.indexOf.call(f.childNodes,F),F=f);H.isReversed_?(H.startNode_=F,H.startOffset_=P,H.endNode_=K,H.endOffset_=X):(H.startNode_=K,H.startOffset_=X,H.endNode_=F,H.endOffset_=P);return H};
_.z=B0.prototype;_.z.clone=function(){var K=new B0;K.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();K.startNode_=this.startNode_;K.startOffset_=this.startOffset_;K.endNode_=this.endNode_;K.endOffset_=this.endOffset_;K.isReversed_=this.isReversed_;return K};
_.z.JSC$9253_getType=function(){return"text"};
_.z.getBrowserRangeObject=function(){return or(this).range_};
_.z.getTextRangeCount=function(){return 1};
_.z.getTextRange=function(){return this};
var or=function(K){var X;if(!(X=K.browserRangeWrapper_)){X=K.JSC$9253_getStartNode();var F=K.JSC$9253_getStartOffset(),P=K.JSC$9253_getEndNode(),H=K.JSC$9253_getEndOffset();X=_.Ii?new CD(IvL(X,F,P,H)):_.xA?new bv(IvL(X,F,P,H)):new pY(IvL(X,F,P,H));X=K.browserRangeWrapper_=X}return X};
_.z=B0.prototype;_.z.getContainer=function(){return or(this).getContainer()};
_.z.JSC$9253_getStartNode=function(){return this.startNode_||(this.startNode_=or(this).range_.startContainer)};
_.z.JSC$9253_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=or(this).range_.startOffset};
_.z.JSC$9253_getEndNode=function(){return this.endNode_||(this.endNode_=or(this).range_.endContainer)};
_.z.JSC$9253_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=or(this).range_.endOffset};
_.z.isReversed=function(){return this.isReversed_};
_.z.JSC$9253_containsRange=function(K,X){if(K.JSC$9253_getType()=="text"){var F=or(this);K=or(K);X=X&&!K.isCollapsed();K=K.range_;F=X?F.compareBrowserRangeEndpoints(K,0,1)>=0&&F.compareBrowserRangeEndpoints(K,1,0)<=0:F.compareBrowserRangeEndpoints(K,0,0)>=0&&F.compareBrowserRangeEndpoints(K,1,1)<=0}else F=!1;return F};
_.z.isCollapsed=function(){return or(this).isCollapsed()};
_.z.JSC$9253_getText=function(){return or(this).range_.toString()};
_.z.__iterator__=function(){return new c0(this.JSC$9253_getStartNode(),this.JSC$9253_getStartOffset(),this.JSC$9253_getEndNode(),this.JSC$9253_getEndOffset())};
_.z.select=function(){or(this).select(this.isReversed_)};
_.z.JSC$9253_removeContents=function(){var K=or(this).range_;K.extractContents();if(K.startContainer.hasChildNodes()&&(K=K.startContainer.childNodes[K.startOffset])){var X=K.previousSibling;mqC(K)==""&&_.c_(K);X&&mqC(X)==""&&_.c_(X)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.z.insertNode=function(K,X){K=or(this).insertNode(K,X);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return K};
_.z.collapse=function(K){K=this.isReversed()?!K:K;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(K);K?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var PYU=function(){};
_.br(PYU,CXL);PYU.prototype.JSC$9253_containsRange=function(K,X){var F=nY(this);K=nY(K);return(X?aa:_.i3y)(K,function(P){return aa(F,function(H){return H.JSC$9253_containsRange(P,X)})})};
PYU.prototype.insertNode=function(K,X){X?_.pb(K,this.JSC$9253_getStartNode()):_.Bz(K,this.JSC$9253_getEndNode());return K};var HlC,s7L=Yp().JSC$7337_document_.documentElement;HlC=s7L.requestFullscreen?"fullscreenchange":s7L.webkitRequestFullscreen?"webkitfullscreenchange":s7L.mozRequestFullScreen?"mozfullscreenchange":s7L.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var z3W=function(){var K=Yp().JSC$7337_document_;return!!(K.webkitIsFullScreen||K.mozFullScreen||K.msFullscreenElement||K.fullscreenElement)};var LY=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.br(LY,PYU);_.z=LY.prototype;_.z.clone=function(){var K=new LY;K.browserRanges_=_.Nq(this.browserRanges_);return K};
_.z.JSC$9253_getType=function(){return"mutli"};
_.z.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.z.getTextRangeCount=function(){return this.browserRanges_.length};
_.z.getTextRange=function(K){this.ranges_[K]||(this.ranges_[K]=KbZ(kYO(this.browserRanges_[K])));return this.ranges_[K]};
_.z.getContainer=function(){if(!this.container_){for(var K=[],X=this.getTextRangeCount(),F=0;F<X;F++)K.push(this.getTextRange(F).getContainer());this.container_=yMt.apply(null,K)}return this.container_};
var Ti=function(K){K.sortedRanges_||(K.sortedRanges_=nY(K),K.sortedRanges_.sort(function(X,F){var P=X.JSC$9253_getStartNode();X=X.JSC$9253_getStartOffset();var H=F.JSC$9253_getStartNode();F=F.JSC$9253_getStartOffset();return P==H&&X==F?0:FbE(P,X,H,F)?1:-1}));
return K.sortedRanges_};
_.z=LY.prototype;_.z.JSC$9253_getStartNode=function(){return Ti(this)[0].JSC$9253_getStartNode()};
_.z.JSC$9253_getStartOffset=function(){return Ti(this)[0].JSC$9253_getStartOffset()};
_.z.JSC$9253_getEndNode=function(){return _.m4(Ti(this)).JSC$9253_getEndNode()};
_.z.JSC$9253_getEndOffset=function(){return _.m4(Ti(this)).JSC$9253_getEndOffset()};
_.z.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.z.JSC$9253_getText=function(){return nY(this).map(function(K){return K.JSC$9253_getText()}).join("")};
_.z.__iterator__=function(){return new rZ(this)};
_.z.select=function(){var K=this.getWindow().getSelection();K.removeAllRanges();for(var X=this.getTextRangeCount(),F=0;F<X;F++)K.addRange(this.getTextRange(F).getBrowserRangeObject())};
_.z.JSC$9253_removeContents=function(){nY(this).forEach(function(K){K.JSC$9253_removeContents()})};
_.z.collapse=function(K){if(!this.isCollapsed()){var X=K?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;X.collapse(K);this.ranges_=[X];this.sortedRanges_=[X];this.browserRanges_=[X.getBrowserRangeObject()]}};
var rZ=function(K){this.iterators_=null;this.currentIdx_=0;K&&(this.iterators_=Ti(K).map(function(X){return _.TSZ(X)}));
MM.call(this,K?this.JSC$9259_getStartNode():null,!1,!0)};
_.br(rZ,N_L);_.z=rZ.prototype;_.z.JSC$9259_getStartNode=function(){return this.iterators_[0].JSC$9259_getStartNode()};
_.z.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.z.next=function(){for(;this.currentIdx_<this.iterators_.length;){var K=this.iterators_[this.currentIdx_],X=K.next();if(X.done)this.currentIdx_++;else return QI(this,K.node,K.tagType,K.depth),X}return iR};
_.z.JSC$9251_copyFrom=function(K){this.iterators_=_.Nq(K.iterators_);rZ.superClass_.JSC$9251_copyFrom.call(this,K)};
_.z.clone=function(){var K=new rZ(null);K.JSC$9251_copyFrom(this);return K};var fOC,FbE;_.qy=function(){var K=window.getSelection();return K&&fOC(K)};
fOC=function(K){var X=!1;if(K.createRange)try{var F=K.createRange()}catch(H){return null}else if(K.rangeCount){if(K.rangeCount>1){F=new LY;X=K.rangeCount;for(var P=0;P<X;P++)F.browserRanges_.push(K.getRangeAt(P));return F}F=K.getRangeAt(0);X=FbE(K.anchorNode,K.anchorOffset,K.focusNode,K.focusOffset)}else return null;return KbZ(kYO(F),X)};
_.AL=function(K,X){return _.ST(K,X,K,X)};
_.jT=function(K,X,F,P){return _.ST(K,X,F,P)};
FbE=function(K,X,F,P){if(K==F)return P<X;var H;if(K.nodeType==1&&X)if(H=K.childNodes[X])K=H,X=0;else if(_.G3(K,F))return!0;if(F.nodeType==1&&P)if(H=F.childNodes[P])F=H,P=0;else if(_.G3(F,K))return!1;return(wyL(K,F)||X-P)>0};var wZ=function(){_.ua.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.T3)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.T3)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.T3)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.T3)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.T3)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.T3)(this.dispatchProgressEvent_,this)};
_.br(wZ,_.ua);wZ.prototype.abort=function(){try{this.reader_.abort()}catch(K){throw new yVW(K,"aborting read");}};
wZ.prototype.getError=function(){return this.reader_.error&&new yVW(this.reader_.error,"reading file")};
wZ.prototype.dispatchProgressEvent_=function(K){this.dispatchEvent(new WzE(K,this))};
wZ.prototype.disposeInternal=function(){wZ.superClass_.disposeInternal.call(this);delete this.reader_};
var u0W=function(K){var X=new wZ,F=DmC(X);X.reader_.readAsArrayBuffer(K);return F},qsU=function(K){var X=new wZ,F=DmC(X);
X.reader_.readAsDataURL(K);return F},DmC=function(K){var X=new UQ;
K.listen("loadend",_.Jc(function(F,P){var H=P.reader_.result,f=P.getError();H==null||f?F.errback(f):F.callback(H);P.dispose()},X,K));
return X};var yI=function(){_.ua.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9293_eventHandler_=new _.iv(this);this.JSC$9293_isInitialized_=!1};
_.br(yI,_.ua);var JcE=new _.PD("d"),Zlt=new _.PD("beforedragstart"),YsT=new _.PD("dragstart"),Q7C=new _.PD("beforedragmove"),Mvt=new _.PD("dragmove"),nXC=new _.PD("beforedragend"),ccN=new _.PD("dragend"),pWT=new _.PD("e");yI.prototype.isDragging=function(){return!!this.JSC$9293_dragger_};
var BbL=function(K,X){X.dlgGrowthDirection_=0;X.dlgDragHoverClass_=void 0;X.dlgDragPermission=0;K.dragLists_.push(X)},SsN=function(K,X){K.getHandleForDragItem_=X};
yI.prototype.init=function(){if(!this.JSC$9293_isInitialized_){for(var K=this.dragLists_.length,X=0;X<K;X++)for(var F=_.Sh(this.dragLists_[X]),P=F.length,H=0;H<P;++H){var f=F[H],u=this.getHandleForDragItem_(f),J=_.FL(u);this.dragItemForHandle_[J]=f;this.dragItemHoverClasses_&&(this.JSC$9293_eventHandler_.listen(f,"mouseover",this.handleDragItemMouseover_),this.JSC$9293_eventHandler_.listen(f,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9293_eventHandler_.listen(u,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9293_eventHandler_.listen(u,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(f);this.JSC$9293_eventHandler_.listen(u,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9293_isInitialized_=!0}};
yI.prototype.disposeInternal=function(){this.JSC$9293_eventHandler_.dispose();for(var K=this.dragLists_.length,X=0;X<K;X++){var F=this.dragLists_[X];F.dlgGrowthDirection_=void 0;F.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;oXL(this);yI.superClass_.disposeInternal.call(this)};
var LbZ=function(K,X){for(var F=K.dragLists_.length,P=0;P<F;P++){var H=K.dragLists_[P];H.dlgBounds_=hUq(H)}F=K.dragItems_.length;for(P=0;P<F;P++)H=K.dragItems_[P],H!=X&&(H.dlgBounds_=hUq(H))};
_.z=yI.prototype;
_.z.handlePotentialDragStart_=function(K){var X=_.FL(K.currentTarget);X=this.dragItemForHandle_[X];if(X.parentElement.dlgDragPermission!=2){this.currDragItem_=X;a:{X=this.currDragItem_;for(var F=X.cloneNode(!0),P=pJ("TEXTAREA",X),H=pJ("TEXTAREA",F),f=0;f<P.length;f++)H[f].value=P[f].value;switch(X.tagName){case "TR":X=_.Qm("TABLE",null,_.Qm("TBODY",null,F));break a;case "TD":case "TH":X=_.Qm("TABLE",null,_.Qm("TBODY",null,_.Qm("TR",null,F)));break a;case "TEXTAREA":F.value=X.value;default:X=F;break a}X=
void 0}this.draggerEl_=X;this.draggerElClasses_&&eQ(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.yf(this.currDragItem_).body.appendChild(this.draggerEl_);F=_.dp(this.currDragItem_);X=this.draggerEl_;P=_.dp(X);if(F instanceof _.jA){var u=F.y;F=F.x}AI(X,X.offsetLeft+(F-P.x),X.offsetTop+(Number(u)-P.y));this.JSC$9293_dragger_=new _.ja(this.draggerEl_);_.wMt(this.JSC$9293_dragger_,this.hysteresisDistance_);
_.nB(this.JSC$9293_dragger_,"start",this.handleDragStart_,!1,this);_.nB(this.JSC$9293_dragger_,"end",this.handleDragEnd_,!1,this);_.nB(this.JSC$9293_dragger_,"earlycancel",this.JSC$9295_cleanup_,!1,this);this.dispatchEvent(new W0(JcE,this,K,this.currDragItem_,this.draggerEl_,this.JSC$9293_dragger_));this.JSC$9293_dragger_.startDrag(K)}};
_.z.handleDragStart_=function(K){if(this.dispatchEvent(new W0(Zlt,this,K.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.rMQ(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?eQ(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var X=$qU(this.draggerEl_);this.draggerEl_.halfWidth=X.width/2;this.draggerEl_.halfHeight=X.height/2;X=this.draggerEl_.getBoundingClientRect();
var F=K.clientY,P=yZL(this.JSC$9293_dragger_,K.clientX);if(P>X.right){var H=this.currDragItem_.getBoundingClientRect();this.JSC$9293_dragger_.deltaX=P-(P-H.left)/H.width*X.width}F=WhN(this.JSC$9293_dragger_,F);F>X.bottom&&(this.JSC$9293_dragger_.deltaY+=F-X.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";LbZ(this,this.currDragItem_);this.currDragItem_.style.display="";_.nB(this.JSC$9293_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new W0(YsT,
this,K.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9293_dragger_))}else K.preventDefault(),this.JSC$9295_cleanup_()};
_.z.handleDragMove_=function(K){var X=_.dp(this.draggerEl_);X=new _.jA(X.x+this.draggerEl_.halfWidth,X.y+this.draggerEl_.halfHeight);a:{var F=null;if(this.currDragItem_.style.display!="none"){F=this.currDragItem_.parentNode;var P=hUq(F);if(TbV(X,P))break a}P=this.dragLists_.length;for(var H=0;H<P;H++){var f=this.dragLists_[H];if(f!=F&&TbV(X,f.dlgBounds_)){F=f;break a}}F=null}if(F){if(F==null)throw Error("Sd");P=0;H=!1;f=void 0;switch(F.dlgGrowthDirection_){case 0:P=X.y;var u=rcC;var J=AcN;break;case 4:H=
!0;case 2:P=X.x;u=j7O;J=AcN;break;case 5:H=!0;case 3:P=X.x,u=wWO,J=ycC}for(var Z=null,M,n=_.Sh(F),c=n.length,B=0;B<c;B++){var L=n[B];if(L!=this.currDragItem_){var A=u(L.dlgBounds_);if(H){var d=WbT(L,X);f===void 0&&(f=d);J(P,A)&&(M==void 0||d<f||d==f&&(J(A,M)||A==M))&&(Z=L,M=A);d<f&&(f=d)}else J(P,A)&&(M==void 0||J(A,M))&&(Z=L,M=A)}}u=Z!==null&&WbT(Z,X)>f?null:Z}else u=null;if(!this.dispatchEvent(new W0(Q7C,this,K,this.currDragItem_,this.draggerEl_,this.JSC$9293_dragger_,X,F,u)))return!1;if(F&&F.dlgDragPermission!=
1)this.currDragItem_.parentNode==F&&_.rMQ(this.currDragItem_)==u||F.insertBefore(this.currDragItem_,u),this.currDragItem_.style.display="",F.dlgDragHoverClass_&&_.tY(F,F.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",J=this.dragLists_.length,M=0;M<J;M++)P=this.dragLists_[M],P.dlgDragHoverClass_&&_.vn(P,P.dlgDragHoverClass_);F!=this.currHoverList_&&(this.currHoverList_=F,LbZ(this,this.currDragItem_));this.dispatchEvent(new W0(Mvt,this,K,this.currDragItem_,this.draggerEl_,this.JSC$9293_dragger_,
X,F,u));return!1};
_.z.JSC$9295_cleanup_=function(){oXL(this);this.JSC$9293_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var K=this.dragLists_.length,X=0;X<K;X++)this.dragLists_[X].dlgBounds_=null;K=this.dragItems_.length;for(X=0;X<K;X++)this.dragItems_[X].dlgBounds_=null};
_.z.handleDragEnd_=function(K){if(!this.dispatchEvent(new W0(nXC,this,K,this.currDragItem_,this.draggerEl_,this.JSC$9293_dragger_)))return!1;oXL(this);this.dispatchEvent(new W0(ccN,this,K,this.currDragItem_,this.draggerEl_,this.JSC$9293_dragger_));this.JSC$9295_cleanup_();return!0};
var oXL=function(K){_.ik(K.JSC$9293_dragger_);var X=K.draggerEl_&&K.draggerEl_.parentElement;K.draggerEl_&&_.c_(K.draggerEl_);K.currDragItem_&&K.currDragItem_.style.display=="none"&&(K.origList_.insertBefore(K.currDragItem_,K.origNextItem_),K.currDragItem_.style.display="");K.currDragItemClasses_&&K.currDragItem_?yTC(K.currDragItem_,K.currDragItemClasses_||[]):K.currDragItem_&&(K.currDragItem_.style.visibility="");for(var F=K.dragLists_.length,P=0;P<F;P++){var H=K.dragLists_[P];H.dlgDragHoverClass_&&
_.vn(H,H.dlgDragHoverClass_)}X&&K.dispatchEvent(new W0(pWT,K,null,K.currDragItem_,K.draggerEl_,K.JSC$9293_dragger_))};
_.z=yI.prototype;_.z.getHandleForDragItem_=function(K){return K};
_.z.handleDragItemMouseover_=function(K){eQ(K.currentTarget,this.dragItemHoverClasses_||[])};
_.z.handleDragItemMouseout_=function(K){yTC(K.currentTarget,this.dragItemHoverClasses_||[])};
_.z.handleDragItemHandleMouseover_=function(K){eQ(K.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.z.handleDragItemHandleMouseout_=function(K){yTC(K.currentTarget,this.dragItemHandleHoverClasses_||[])};
var TbV=function(K,X){return K.x>X.left&&K.x<X.left+X.width&&K.y>X.top&&K.y<X.top+X.height},WbT=function(K,X){K=K.dlgBounds_;
return Math.abs(X.y-(K.top+(K.height-1)/2))},rcC=function(K){return K.top+K.height-1},j7O=function(K){return K.left+K.width-1},wWO=function(K){return K.left||0},AcN=function(K,X){return K<X},ycC=function(K,X){return K>X},W0=function(K,X,F,P,H,f){_.HD.call(this,K);
this.event=F;this.currDragItem=P;this.draggerEl=H;this.JSC$9297_dragger=f};
_.br(W0,_.HD);_.br(xh,_.LJ);var dmL=new _.jA(0,0);xh.prototype.JSC$9301_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
xh.prototype.JSC$9301_onMouseMove=function(K){var X=this.containerIsActuallyContent_?dmL:Zw(Yp(this.containerNode_)),F=this.horizontalScrolling_?this.calculateScrollDelta(K.clientX+X.x,this.scrollBounds_.left,this.scrollBounds_.width):0,P=this.calculateScrollDelta(K.clientY+X.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=F;this.scrollDelta_.y=P;!(F=!F&&!P)&&(F=this.constrainScroll_)&&(F=K.clientX+X.x,K=K.clientY+X.y,X=this.containerBounds_,F=!(X.left<=F&&X.left+X.width>=
F&&X.top<=K&&X.top+X.height>=K));F?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
xh.prototype.calculateScrollDelta=function(K,X,F){var P=0;K<X?P=-8:K>X+F&&(P=8);return P};
xh.prototype.disposeInternal=function(){xh.superClass_.disposeInternal.call(this);this.JSC$9299_eventHandler_.dispose();this.scrollTimer_.dispose()};var e3L={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"}}},dZ=e3L;dZ=e3L;var eT={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 R3E=function(){},Uz=function(K){if(typeof K=="number"){var X=new R3E;
X.standardOffset_=K;var F=K;if(F==0)F="Etc/GMT";else{var P=["Etc/GMT",F<0?"-":"+"];F=Math.abs(F);P.push(Math.floor(F/60)%100);F%=60;F!=0&&P.push(":",_.gd(F,2));F=P.join("")}X.timeZoneId_=F;F=K;F==0?F="UTC":(P=["UTC",F<0?"+":"-"],F=Math.abs(F),P.push(Math.floor(F/60)%100),F%=60,F!=0&&P.push(":",F),F=P.join(""));K=Umu(K);X.tzNames_=[F,F];X.tzNamesExt_={STD_LONG_NAME_GMT:K,STD_GENERIC_LOCATION:K};X.transitions_=[];return X}X=new R3E;X.timeZoneId_=K.id;X.standardOffset_=-K.std_offset;X.tzNames_=K.names;
X.tzNamesExt_=K.names_ext;X.transitions_=K.transitions;return X},Umu=function(K){var X=["GMT"];
X.push(K<=0?"+":"-");K=Math.abs(K);X.push(_.gd(Math.floor(K/60)%100,2),":",_.gd(K%60,2));return X.join("")},h3O=function(K,X){X=Date.UTC(X.getUTCFullYear(),X.getUTCMonth(),X.getUTCDate(),X.getUTCHours(),X.getUTCMinutes())/36E5;
for(var F=0;F<K.transitions_.length&&X>=K.transitions_[F];)F+=2;return F==0?0:K.transitions_[F-1]},mmU=function(K,X){K=K.standardOffset_-h3O(K,X);
return K===-1440?0:K};var h7=function(K,X){this.patternParts_=[];this.JSC$9312_dateTimeSymbols_=X||My;typeof K=="number"?G6C(this,K):lOT(this,K)},vXO=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],Rr=function(K){return K.getHours?K.getHours():0},lOT=function(K,X){for(iz4&&(X=X.replace(/\u200f/g,""));X;){for(var F=X,P=0;P<vXO.length;++P){var H=X.match(vXO[P]);
if(H){var f=H[0];X=X.substring(f.length);P==0&&(f=="''"?f="'":(f=f.substring(1,H[1]=="'"?f.length-1:f.length),f=f.replace(/''/g,"'")));K.patternParts_.push({text:f,type:P});break}}if(F===X)throw Error("Td`"+X);}};
h7.prototype.format=function(K,X){if(!K)throw Error("Ud");var F=X?(K.getTimezoneOffset()-mmU(X,K))*6E4:0,P=F?new Date(K.getTime()+F):K,H=P;X&&P.getTimezoneOffset()!=K.getTimezoneOffset()&&(P=new Date(P.getTime()+(P.getTimezoneOffset()-K.getTimezoneOffset())*6E4),H=new Date(K.getTime()+(F+(F>0?-864E5:864E5))));F=[];for(var f=0;f<this.patternParts_.length;++f){var u=this.patternParts_[f].text;1==this.patternParts_[f].type?F.push(aOQ(this,u,K,P,H,X)):F.push(u)}return F.join("")};
var G6C=function(K,X){if(X<4)var F=K.JSC$9312_dateTimeSymbols_.DATEFORMATS[X];else if(X<8)F=K.JSC$9312_dateTimeSymbols_.TIMEFORMATS[X-4];else if(X<12)F=K.JSC$9312_dateTimeSymbols_.DATETIMEFORMATS[X-8],F=F.replace("{1}",K.JSC$9312_dateTimeSymbols_.DATEFORMATS[X-8]),F=F.replace("{0}",K.JSC$9312_dateTimeSymbols_.TIMEFORMATS[X-8]);else if(X===12)F=K.JSC$9312_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(X===13)F=K.JSC$9312_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{G6C(K,10);return}lOT(K,F)},UK=function(K,X){X=String(X);
K=K.JSC$9312_dateTimeSymbols_||My;if(K.ZERODIGIT!==void 0&&!N4P){for(var F=[],P=0;P<X.length;P++){var H=X.charCodeAt(P);F.push(48<=H&&H<=57?String.fromCharCode(K.ZERODIGIT+H-48):X.charAt(P))}X=F.join("")}return X},N4P=!1,iz4=!1,$mQ=function(K,X,F,P){F=F.getFullYear();
F<=0&&P&&(F=1-F);return UK(K,tvt(F,X))},tvt=function(K,X){X==2&&(K%=100);
K<0&&X++;return _.gd(K,X)},hL=function(K){if(!(K.getHours&&K.getSeconds&&K.getMinutes))throw Error("Vd");
},OlT=function(K,X){hL(X);
X=Rr(X);return K.JSC$9312_dateTimeSymbols_.AMPMS[X>=12&&X<24?1:0]},aOQ=function(K,X,F,P,H,f){var u=X.length;
switch(X.charAt(0)){case "G":return F=P.getFullYear()>0?1:0,u>=4?K.JSC$9312_dateTimeSymbols_.ERANAMES[F]:K.JSC$9312_dateTimeSymbols_.ERAS[F];case "y":return $mQ(K,u,P,!0);case "Y":return F=(new Date(grC(P.getFullYear(),P.getMonth(),P.getDate(),K.JSC$9312_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,K.JSC$9312_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),u==2&&(F%=100),UK(K,tvt(F,u));case "u":return $mQ(K,u,P,!1);case "M":a:switch(F=P.getMonth(),u){case 5:u=K.JSC$9312_dateTimeSymbols_.NARROWMONTHS[F];break a;
case 4:u=K.JSC$9312_dateTimeSymbols_.MONTHS[F];break a;case 3:u=K.JSC$9312_dateTimeSymbols_.SHORTMONTHS[F];break a;default:u=UK(K,_.gd(F+1,u))}return u;case "k":return hL(H),UK(K,_.gd(Rr(H)||24,u));case "S":return UK(K,(H.getMilliseconds()/1E3).toFixed(Math.min(3,u)).slice(2)+(u>3?_.gd(0,u-3):""));case "E":return F=P.getDay(),u>=4?K.JSC$9312_dateTimeSymbols_.WEEKDAYS[F]:K.JSC$9312_dateTimeSymbols_.SHORTWEEKDAYS[F];case "a":return OlT(K,H);case "b":return OlT(K,H);case "B":return OlT(K,H);case "h":return hL(H),
UK(K,_.gd(Rr(H)%12||12,u));case "K":return hL(H),UK(K,_.gd(Rr(H)%12,u));case "H":return hL(H),UK(K,_.gd(Rr(H),u));case "c":a:switch(F=P.getDay(),u){case 5:u=K.JSC$9312_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[F];break a;case 4:u=K.JSC$9312_dateTimeSymbols_.STANDALONEWEEKDAYS[F];break a;case 3:u=K.JSC$9312_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[F];break a;default:u=UK(K,_.gd(F,1))}return u;case "L":a:switch(F=P.getMonth(),u){case 5:u=K.JSC$9312_dateTimeSymbols_.STANDALONENARROWMONTHS[F];break a;
case 4:u=K.JSC$9312_dateTimeSymbols_.STANDALONEMONTHS[F];break a;case 3:u=K.JSC$9312_dateTimeSymbols_.STANDALONESHORTMONTHS[F];break a;default:u=UK(K,_.gd(F+1,u))}return u;case "Q":return F=Math.floor(P.getMonth()/3),u<4?K.JSC$9312_dateTimeSymbols_.SHORTQUARTERS[F]:K.JSC$9312_dateTimeSymbols_.QUARTERS[F];case "d":return UK(K,_.gd(P.getDate(),u));case "m":return hL(H),UK(K,_.gd(H.getMinutes?H.getMinutes():0,u));case "s":return hL(H),UK(K,_.gd(H.getSeconds(),u));case "v":return(f||Uz(F.getTimezoneOffset())).timeZoneId_;
case "V":return K=f||Uz(F.getTimezoneOffset()),u<=2?K.timeZoneId_:h3O(K,F)>0?K.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?K.tzNamesExt_.DST_GENERIC_LOCATION:K.tzNamesExt_.DST_GENERIC_LOCATION:K.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?K.tzNamesExt_.STD_GENERIC_LOCATION:K.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return F=grC(H.getFullYear(),H.getMonth(),H.getDate(),K.JSC$9312_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,K.JSC$9312_dateTimeSymbols_.FIRSTDAYOFWEEK),UK(K,_.gd(Math.floor(Math.round((F-(new Date((new Date(F)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,u));case "z":return K=f||Uz(F.getTimezoneOffset()),u<4?K.tzNames_[h3O(K,F)>0?2:0]:K.tzNames_[h3O(K,F)>0?3:1];case "Z":return X=f||Uz(F.getTimezoneOffset()),u<4?(u=-mmU(X,F),K=[u<0?"-":"+"],u=Math.abs(u),K.push(_.gd(Math.floor(u/60)%100,2),_.gd(u%60,2)),u=K.join("")):u=UK(K,Umu(mmU(X,F))),u;default:return""}};var VvW=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,gXU=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,FVP=function(K){this.patternParts_=[];this.JSC$9321_dateTimeSymbols_=My;if(typeof K=="number"){K>11&&(K=10);if(K<4)var X=this.JSC$9321_dateTimeSymbols_.DATEFORMATS[K];else K<8?X=this.JSC$9321_dateTimeSymbols_.TIMEFORMATS[K-4]:(X=this.JSC$9321_dateTimeSymbols_.DATETIMEFORMATS[K-8],X=X.replace("{1}",this.JSC$9321_dateTimeSymbols_.DATEFORMATS[K-8]),X=X.replace("{0}",this.JSC$9321_dateTimeSymbols_.TIMEFORMATS[K-
8]));EXL(this,X)}else EXL(this,K)},EXL=function(K,X){for(var F=!1,P="",H=0;H<X.length;H++){var f=X.charAt(H);
if(VvW.test(f))for(P.length>0&&(K.patternParts_.push({text:P,count:0,abutStart:!1,numeric:!1}),P=""),K.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});H<X.length-1&&X.charAt(H+1)==" ";)H++;else if(F)f=="'"?H+1<X.length&&X.charAt(H+1)=="'"?(P+="'",H++):F=!1:P+=f;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(f)>=0){P.length>0&&(K.patternParts_.push({text:P,count:0,abutStart:!1,numeric:!1}),P="");for(var u=X.charAt(H),J=H+1;J<X.length&&X.charAt(J)==u;)J++;u=J-H;u<=0?J=!1:(J="MydhHmsSDkK".indexOf(f),
J=J>0||J==0&&u<3);K.patternParts_.push({text:f,count:u,abutStart:!1,numeric:J});H+=u-1}else f=="'"?H+1<X.length&&X.charAt(H+1)=="'"?(P+="'",H++):F=!0:P+=f}P.length>0&&K.patternParts_.push({text:P,count:0,abutStart:!1,numeric:!1});X=!1;for(F=0;F<K.patternParts_.length;F++)K.patternParts_[F].numeric?!X&&F+1<K.patternParts_.length&&K.patternParts_[F+1].numeric&&(X=!0,K.patternParts_[F].abutStart=!0):X=!1};
FVP.prototype.parse=function(K,X,F){var P=!1,H=!1;F&&(P=F.predictive||!1,H=F.validate||!1);if(P)for(F=0;F<this.patternParts_.length;F++){var f=this.patternParts_[F];if(f.count>0&&("abBhHkKm".indexOf(f.text.charAt(0))<0||f.count>2||f.abutStart))throw Error("Wd`"+f.text.charAt(0));}f=new blN;F=[0];f.dayPeriodIndex=-1;for(var u=0;u<this.patternParts_.length&&!(P&&F[0]>=K.length);u++){if(this.patternParts_[u].count==0){a:{var J=K;var Z=F,M=this.patternParts_[u],n=P;if(M.text.match(VvW)!=null){if(M=Z[0],
CYt(J,Z),Z[0]>M){J=!0;break a}}else{if(J.indexOf(M.text,Z[0])==Z[0]){Z[0]+=M.text.length;J=!0;break a}if(n&&M.text.indexOf(J.substring(Z[0]))==0){Z[0]+=J.length-Z[0];J=!0;break a}}J=!1}if(J)continue;return 0}if(this.patternParts_[u].abutStart){a:{Z=K;M=F;n=u;var c=M[0],B=0;for(J=n;J<this.patternParts_.length;J++){var L=this.patternParts_[J],A=L.count;if(A===0)break;if(J==n&&(A-=B,B++,A==0)){J=0;break a}var d=J>n&&L.numeric,R=M[0];if(!NbE(this,Z,M,L,A,f,!1)||d&&M[0]-R<A)J=n-1,M[0]=c}J-=n}if(J<=0)return 0;
u+=J-1}else if(!NbE(this,K,F,this.patternParts_[u],0,f,P))return 0}a:{K=H;if(X==null)throw Error("Xd");f.era!=void 0&&f.year!=void 0&&f.era==0&&f.year>0&&(f.year=-(f.year-1));f.year!=void 0&&X.setFullYear(f.year);P=X.getDate();X.setDate(1);f.month!=void 0&&X.setMonth(f.month);f.day!=void 0?X.setDate(f.day):(H=d8M(X.getFullYear(),X.getMonth()),X.setDate(P>H?H:P));typeof X.setHours==="function"&&(f.hours==void 0&&(f.hours=X.getHours()),f.hours<12&&(f.ampm!=void 0&&f.ampm>0?f.hours+=12:f.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(f.dayPeriodName)||["night1","night2"].includes(f.dayPeriodName)&&f.hours>=6)&&(f.hours+=12)),X.setHours(f.hours));typeof X.setMinutes==="function"&&f.minutes!=void 0&&X.setMinutes(f.minutes);typeof X.setSeconds==="function"&&f.seconds!=void 0&&X.setSeconds(f.seconds);typeof X.setMilliseconds==="function"&&f.milliseconds!=void 0&&X.setMilliseconds(f.milliseconds);if(K&&(f.year&&f.year!=X.getFullYear()||f.month&&f.month!=
X.getMonth()||f.day&&f.day!=X.getDate()||f.hours&&f.hours>=24||f.minutes&&f.minutes>=60||f.seconds&&f.seconds>=60||f.milliseconds&&f.milliseconds>=1E3))X=!1;else{f.tzOffset!=void 0&&X.setTime(X.getTime()+(f.tzOffset-X.getTimezoneOffset())*60*1E3);f.ambiguousYear&&(K=new Date,K.setFullYear(K.getFullYear()-80),X.getTime()<K.getTime()&&X.setFullYear(K.getFullYear()+100));if(f.dayOfWeek!=void 0)if(f.day==void 0)f=(7+f.dayOfWeek-X.getDay())%7,f>3&&(f-=7),K=X.getMonth(),X.setDate(X.getDate()+f),X.getMonth()!=
K&&X.setDate(X.getDate()+(f>0?-7:7));else if(f.dayOfWeek!=X.getDay()){X=!1;break a}X=!0}}return X?F[0]:0};
var NbE=function(K,X,F,P,H,f,u){CYt(X,F);if(P.numeric&&H>0&&F[0]+H>X.length)return!1;switch(P.text.charAt(0)){case "G":return my(X,F,[K.JSC$9321_dateTimeSymbols_.ERAS],function(J){return f.era=J}),!0;
case "M":case "L":return ilt(K,X,F,H,P,f);case "E":return my(X,F,[K.JSC$9321_dateTimeSymbols_.WEEKDAYS,K.JSC$9321_dateTimeSymbols_.SHORTWEEKDAYS],function(J){return f.dayOfWeek=J});
case "B":case "b":return H=[],K=[[].concat(K.JSC$9321_dateTimeSymbols_.AMPMS)],H.push("isAm"),H.push("isPm"),X=my(X,F,K,function(J){return f.dayPeriodIndex=J},u),f.dayPeriodName=H[f.dayPeriodIndex],u?X:!0;
case "a":return X=my(X,F,[K.JSC$9321_dateTimeSymbols_.AMPMS],function(J){return f.ampm=J},u),u?X:!0;
case "y":return xmC(K,X,F,P,H,f);case "Q":return my(X,F,[K.JSC$9321_dateTimeSymbols_.QUARTERS,K.JSC$9321_dateTimeSymbols_.SHORTQUARTERS],function(J){f.month=J*3;f.day=1});
case "d":return Gi(K,X,F,P,H,function(J){f.day=J}),!0;
case "S":return IOZ(K,X,F,H,f);case "h":case "K":case "H":case "k":return X=Gi(K,X,F,P,H,function(J){f.hours=P.text.charAt(0)==="h"&&J===12?0:J},u),u?X:!0;
case "m":return X=Gi(K,X,F,P,H,function(J){f.minutes=J},u),u?X:!0;
case "s":return Gi(K,X,F,P,H,function(J){f.seconds=J}),!0;
case "z":case "Z":case "v":return k6Z(K,X,F,f);default:return!1}},xmC=function(K,X,F,P,H,f){var u=F[0];
H=l$(K,X,F,H);H===null&&(H=l$(K,X,F,0,!0));if(H===null)return!1;H>=0&&F[0]-u==2&&P.count==2?(K=H,X=(new Date).getFullYear()-80,F=X%100,f.ambiguousYear=K==F,K+=Math.floor(X/100)*100+(K<F?100:0),f.year=K):f.year=H;return!0},ilt=function(K,X,F,P,H,f){return H.numeric&&Gi(K,X,F,H,P,function(u){f.month=u-1})?!0:my(X,F,[K.JSC$9321_dateTimeSymbols_.MONTHS,
K.JSC$9321_dateTimeSymbols_.STANDALONEMONTHS,K.JSC$9321_dateTimeSymbols_.SHORTMONTHS,K.JSC$9321_dateTimeSymbols_.STANDALONESHORTMONTHS],function(u){f.month=u})},IOZ=function(K,X,F,P,H){var f=F[0];
K=l$(K,X,F,P);if(K===null)return!1;F=F[0]-f;H.milliseconds=F<3?K*Math.pow(10,3-F):Math.round(K/Math.pow(10,F-3));return!0},k6Z=function(K,X,F,P){X.indexOf("GMT",F[0])==F[0]&&(F[0]+=3);
if(F[0]>=X.length)return P.tzOffset=0,!0;var H=F[0],f=l$(K,X,F,0,!0);if(f===null)return!1;if(F[0]<X.length&&X.charAt(F[0])==":"){var u=f*60;F[0]++;f=l$(K,X,F,0);if(f===null)return!1;u+=f}else u=f,u=u<24&&F[0]-H<=3?u*60:u%100+u/100*60;P.tzOffset=-u;return!0},Gi=function(K,X,F,P,H,f,u){u=u||!1;
var J=F[0];K=l$(K,X,F,H);if(K===null)return!1;if(u&&F[0]-J<P.count){if(F[0]<X.length)return!1;K*=Math.pow(10,P.count-(F[0]-J))}f(K);return!0},my=function(K,X,F,P,H){H=H||!1;
for(var f,u=0;u<F.length;u++){f=X;for(var J=F[u],Z=H,M=0,n=null,c=K.substring(f[0]).toLowerCase(),B=0;B<J.length;B++){var L=J[B].toLowerCase();if(Z&&L.indexOf(c)==0){M=c.length;n=B;break}J[B].length>M&&c.indexOf(L)==0&&(M=J[B].length,n=B)}n!==null&&(f[0]+=M);f=n;if(f!==null)return P(f),!0}return!1},CYt=function(K,X){(K=K.substring(X[0]).match(gXU))&&(X[0]+=K[0].length)},l$=function(K,X,F,P,H){X=P>0?X.substring(0,F[0]+P):X;
H=H||!1;if(K.JSC$9321_dateTimeSymbols_.ZERODIGIT){P=[];for(var f=F[0];f<X.length;f++){var u=X.charCodeAt(f)-K.JSC$9321_dateTimeSymbols_.ZERODIGIT;P.push(0<=u&&u<=9?String.fromCharCode(u+48):X.charAt(f))}X=P.join("")}else X=X.substring(F[0]);K=X.match(new RegExp("^"+(H?"[+-]?":"")+"\\d+"));if(!K)return null;F[0]+=K[0].length;return parseInt(K[0],10)},blN=function(){};
blN.prototype.ambiguousYear=!1;_.KXN={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 XvT={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"},FXC=XvT,PjU=XvT;PjU=FXC=XvT;var sAQ,v0,tL,Sbl,ar,HIt;
_.dI=function(K,X,F,P){var H;if(H=X){a:if(X&&X.length===3){for(H=0;H<3;H++){var f=X[H];if(f<"A"||f>"Z"&&f<"a"||f>"z"){H=!1;break a}}H=!0}else H=!1;H=!H}if(H)throw new TypeError("Yd");this.intlCurrencyCode_=X?X.toUpperCase():null;this.currencyStyle_=F||0;this.overrideNumberFormatSymbols_=P||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_=v0(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof K==="number")switch(K){case 1:ar(this,v0(this).DECIMAL_PATTERN);break;case 2:ar(this,v0(this).SCIENTIFIC_PATTERN);break;case 3:ar(this,v0(this).PERCENT_PATTERN);break;case 4:K=v0(this).CURRENCY_PATTERN;X=["0"];if(F=
eT[tL(this)]){F=F[0]&7;if(F>0)for(X.push("."),P=0;P<F;P++)X.push("0");K=K.replace(/0.00/g,X.join(""))}ar(this,K);break;case 5:HIt(this,1);break;case 6:HIt(this,2);break;default:throw Error("ae");}else ar(this,K)};
sAQ=!1;v0=function(K){return K.overrideNumberFormatSymbols_||(sAQ?PjU:FXC)};
tL=function(K){return K.intlCurrencyCode_||v0(K).DEF_CURRENCY_CODE};
Sbl=function(K,X){if(X>308)throw Error("$d`"+X);K.maximumFractionDigits_=X;return K};
ar=function(K,X){var F=[0];K.positivePrefix_=zXL(K,X,F);for(var P=F[0],H=-1,f=0,u=0,J=0,Z=-1,M=X.length,n=!0;F[0]<M&&n;F[0]++)switch(X.charAt(F[0])){case "#":u>0?J++:f++;Z>=0&&H<0&&Z++;break;case "0":if(J>0)throw Error("ge`"+X);u++;Z>=0&&H<0&&Z++;break;case ",":Z>0&&K.groupingArray_.push(Z);Z=0;break;case ".":if(H>=0)throw Error("he`"+X);H=f+u+J;break;case "E":if(K.useExponentialNotation_)throw Error("ie`"+X);K.useExponentialNotation_=!0;K.minExponentDigits_=0;F[0]+1<M&&X.charAt(F[0]+1)=="+"&&(F[0]++,
K.useSignForPositiveExponent_=!0);for(;F[0]+1<M&&X.charAt(F[0]+1)=="0";)F[0]++,K.minExponentDigits_++;if(f+u<1||K.minExponentDigits_<1)throw Error("je`"+X);n=!1;break;default:F[0]--,n=!1}u==0&&f>0&&H>=0&&(u=H,u==0&&u++,J=f-u,f=u-1,u=1);if(H<0&&J>0||H>=0&&(H<f||H>f+u)||Z==0)throw Error("ke`"+X);J=f+u+J;K.maximumFractionDigits_=H>=0?J-H:0;H>=0&&(K.minimumFractionDigits_=f+u-H,K.minimumFractionDigits_<0&&(K.minimumFractionDigits_=0));K.minimumIntegerDigits_=(H>=0?H:J)-f;K.useExponentialNotation_&&(K.maximumIntegerDigits_=
f+K.minimumIntegerDigits_,K.maximumFractionDigits_==0&&K.minimumIntegerDigits_==0&&(K.minimumIntegerDigits_=1));K.groupingArray_.push(Math.max(0,Z));K.decimalSeparatorAlwaysShown_=H==0||H==J;P=F[0]-P;K.positiveSuffix_=zXL(K,X,F);F[0]<X.length&&X.charAt(F[0])==";"?(F[0]++,K.multiplier_!=1&&(K.negativePercentSignExpected_=!0),K.negativePrefix_=zXL(K,X,F),F[0]+=P,K.negativeSuffix_=zXL(K,X,F)):(K.negativePrefix_+=K.positivePrefix_,K.negativeSuffix_+=K.positiveSuffix_)};
HIt=function(K,X){K.compactStyle_=X;ar(K,v0(K).DECIMAL_PATTERN);K.minimumFractionDigits_=0;Sbl(K,2);if(K.minimumFractionDigits_>0)throw Error("Zd");K.significantDigits_=2};
_.dI.prototype.parse=function(K,X){X=X||[0];if(this.compactStyle_!==0)throw Error("be");K=K.replace(/ |\u202f/g,"\u00a0");var F=K.indexOf(this.positivePrefix_,X[0])==X[0],P=K.indexOf(this.negativePrefix_,X[0])==X[0];F&&P&&(this.positivePrefix_.length>this.negativePrefix_.length?P=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(F=!1));F?X[0]+=this.positivePrefix_.length:P&&(X[0]+=this.negativePrefix_.length);if(K.indexOf(v0(this).INFINITY,X[0])==X[0]){X[0]+=v0(this).INFINITY.length;var H=
Infinity}else{H=K;var f=!1,u=!1,J=!1,Z=-1,M=1,n=v0(this).DECIMAL_SEP,c=v0(this).GROUP_SEP,B=v0(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ce");c=c.replace(/\u202f/g,"\u00a0");for(var L="";X[0]<H.length;X[0]++){var A=H.charAt(X[0]),d=fHE(this,A);if(d>=0&&d<=9)L+=d,J=!0;else if(A==n.charAt(0)){if(f||u)break;L+=".";f=!0}else if(A==c.charAt(0)&&("\u00a0"!=c.charAt(0)||X[0]+1<H.length&&fHE(this,H.charAt(X[0]+1))>=0)){if(f||u)break}else if(A==B.charAt(0)){if(u)break;L+="E";u=!0;Z=X[0]}else if(A==
"+"||A=="-"){if(J&&Z!=X[0]-1)break;L+=A}else if(this.multiplier_==1&&A==v0(this).PERCENT.charAt(0)){if(M!=1)break;M=100;if(J){X[0]++;break}}else if(this.multiplier_==1&&A==v0(this).PERMILL.charAt(0)){if(M!=1)break;M=1E3;if(J){X[0]++;break}}else break}this.multiplier_!=1&&(M=this.multiplier_);H=parseFloat(L)/M}if(F){if(K.indexOf(this.positiveSuffix_,X[0])!=X[0])return NaN;X[0]+=this.positiveSuffix_.length}else if(P){if(K.indexOf(this.negativeSuffix_,X[0])!=X[0])return NaN;X[0]+=this.negativeSuffix_.length}return P?
-H:H};
_.dI.prototype.format=function(K){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("de");if(isNaN(K))return v0(this).NAN;var X=[];var F=K;if(this.compactStyle_==0)F=$4;else{F=Math.abs(F);var P=DaL(this,F<=1?0:uFC(F)).divisorBase;F=DaL(this,P+uFC(qzL(this,OK(F,-P)).intValue))}K=OK(K,-F.divisorBase);(P=K<0||K==0&&1/K<0)?F.negative_prefix?X.push(F.negative_prefix):(X.push(F.prefix),X.push(this.negativePrefix_)):(X.push(F.prefix),X.push(this.positivePrefix_));if(isFinite(K))if(K*=
P?-1:1,K*=this.multiplier_,this.useExponentialNotation_){var H=K;if(H==0)J7V(this,H,this.minimumIntegerDigits_,X),ZIN(this,0,X);else{var f=Math.floor(Math.log(H)/Math.log(10)+2E-15);H=OK(H,-f);var u=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(u=f%this.maximumIntegerDigits_,u<0&&(u=this.maximumIntegerDigits_+u),H=OK(H,u),f-=u,u=1):this.minimumIntegerDigits_<1?(f++,H=OK(H,-1)):(f-=this.minimumIntegerDigits_-1,H=OK(H,this.minimumIntegerDigits_-
1));J7V(this,H,u,X);ZIN(this,f,X)}}else J7V(this,K,this.minimumIntegerDigits_,X);else X.push(v0(this).INFINITY);P?F.negative_suffix?X.push(F.negative_suffix):(isFinite(K)&&X.push(F.suffix),X.push(this.negativeSuffix_)):(isFinite(K)&&X.push(F.suffix),X.push(this.positiveSuffix_));return X.join("")};
var qzL=function(K,X){var F=OK(X,K.maximumFractionDigits_);K.significantDigits_>0&&(F=YzV(F,K.significantDigits_,K.maximumFractionDigits_));F=Math.round(F);if(isFinite(F)){var P=Math.floor(OK(F,-K.maximumFractionDigits_));F=Math.floor(F-OK(P,K.maximumFractionDigits_));if(F<0||F>=OK(1,K.maximumFractionDigits_))P=Math.round(X),F=0}else P=X,F=0;return{intValue:P,fracValue:F}},J7V=function(K,X,F,P){if(K.minimumFractionDigits_>K.maximumFractionDigits_)throw Error("de");
P||(P=[]);X=qzL(K,X);var H=X.intValue,f=X.fracValue,u=K.minimumFractionDigits_>0||f>0||!1;X=K.minimumFractionDigits_;u&&(X=K.minimumFractionDigits_);for(var J="",Z=H;Z>1E20;)J="0"+J,Z=Math.round(OK(Z,-1));J=Z+J;var M=v0(K).DECIMAL_SEP;Z=v0(K).ZERO_DIGIT.codePointAt(0);var n=J.length,c=0;if(H>0||F>0){for(H=n;H<F;H++)P.push(String.fromCodePoint(Z));if(K.groupingArray_.length>=2)for(F=1;F<K.groupingArray_.length;F++)c+=K.groupingArray_[F];F=n-c;if(F>0){H=K.groupingArray_;c=n=0;for(var B,L=v0(K).GROUP_SEP,
A=J.length,d=0;d<A;d++)if(P.push(String.fromCodePoint(Z+Number(J.charAt(d)))),A-d>1)if(B=H[c],d<F){var R=F-d;(B===1||B>0&&R%B===1)&&P.push(L)}else c<H.length&&(d===F?c+=1:B===d-F-n+1&&(P.push(L),n+=B,c+=1))}else{F=J;J=K.groupingArray_;H=v0(K).GROUP_SEP;B=F.length;L=[];for(n=J.length-1;n>=0&&B>0;n--){c=J[n];for(A=0;A<c&&B-A-1>=0;A++)L.push(String.fromCodePoint(Z+Number(F.charAt(B-A-1))));B-=c;B>0&&L.push(H)}P.push.apply(P,L.reverse())}}else u||P.push(String.fromCodePoint(Z));(K.decimalSeparatorAlwaysShown_||
u)&&P.push(M);f=String(f);u=f.split("e+");u.length==2&&(f=String(YzV(parseFloat(u[0]),K.significantDigits_,1)),f=f.replace(".",""),f+=(0,_.fiT)("0",parseInt(u[1],10)-f.length+1));K.maximumFractionDigits_+1>f.length&&(f="1"+(0,_.fiT)("0",K.maximumFractionDigits_-f.length)+f);for(K=f.length;f.charAt(K-1)=="0"&&K>X+1;)K--;for(X=1;X<K;X++)P.push(String.fromCodePoint(Z+Number(f.charAt(X))))},ZIN=function(K,X,F){F.push(v0(K).EXP_SYMBOL);
X<0?(X=-X,F.push(v0(K).MINUS_SIGN)):K.useSignForPositiveExponent_&&F.push(v0(K).PLUS_SIGN);X=""+X;for(var P=v0(K).ZERO_DIGIT,H=X.length;H<K.minExponentDigits_;H++)F.push(P);K=P.codePointAt(0)-QAU;for(P=0;P<X.length;P++)F.push(String.fromCodePoint(K+X.codePointAt(P)))},fHE=function(K,X){X=X.codePointAt(0);
if(48<=X&&X<58)return X-48;K=v0(K).ZERO_DIGIT.codePointAt(0);return K<=X&&X<K+10?X-K:-1},QAU="0".codePointAt(0),zXL=function(K,X,F){for(var P="",H=!1,f=X.length;F[0]<f;F[0]++){var u=X.charAt(F[0]);
if(u=="'")F[0]+1<f&&X.charAt(F[0]+1)=="'"?(F[0]++,P+="'"):H=!H;else if(H)P+=u;else switch(u){case "#":case "0":case ",":case ".":case ";":return P;case "\u00a4":if(F[0]+1<f&&X.charAt(F[0]+1)=="\u00a4")F[0]++,P+=tL(K);else switch(K.currencyStyle_){case 0:u=tL(K);P+=u in eT?eT[u][1]:u;break;case 2:u=tL(K);var J=eT[u];P+=J?u==J[1]?u:u+" "+J[1]:u;break;case 1:u=tL(K),P+=u in eT?eT[u][2]:u}break;case "%":if(!K.negativePercentSignExpected_&&K.multiplier_!=1)throw Error("ee");if(K.negativePercentSignExpected_&&
K.multiplier_!=100)throw Error("fe");K.multiplier_=100;K.negativePercentSignExpected_=!1;P+=v0(K).PERCENT;break;case "\u2030":if(!K.negativePercentSignExpected_&&K.multiplier_!=1)throw Error("ee");if(K.negativePercentSignExpected_&&K.multiplier_!=1E3)throw Error("fe");K.multiplier_=1E3;K.negativePercentSignExpected_=!1;P+=v0(K).PERMILL;break;default:P+=u}}return P},$4={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},DaL=function(K,X){K=K.compactStyle_==1?dZ.COMPACT_DECIMAL_SHORT_PATTERN:dZ.COMPACT_DECIMAL_LONG_PATTERN;K==null&&(K=dZ.COMPACT_DECIMAL_SHORT_PATTERN);if(X<3)return $4;X=Math.min(14,X);var F=K[OK(1,X)];for(--X;!F&&X>=3;)F=K[OK(1,X)],X--;if(!F)return $4;F=F.other;var P=K="",H=F.indexOf(";");H>=0&&(F=F.substring(0,H),H=F.substring(H+1))&&(P=/([^0]*)(0+)(.*)/.exec(H),K=P[1],P=P[3]);return F&&F!="0"?(F=/([^0]*)(0+)(.*)/.exec(F))?{divisorBase:X+
1-(F[2].length-1),negative_prefix:K,negative_suffix:P,prefix:F[1],suffix:F[3]}:$4:$4},uFC=function(K){if(!isFinite(K))return K>0?K:0;
for(var X=0;(K/=10)>=1;)X++;return X},OK=function(K,X){if(!K||!isFinite(K)||X==0)return K;
K=String(K).split("e");return parseFloat(K[0]+"e"+(parseInt(K[1]||0,10)+X))},MJV=function(K,X){return K&&isFinite(K)?OK(Math.round(OK(K,X)),-X):K},YzV=function(K,X,F){if(!K)return K;
X=X-uFC(K)-1;return X<-F?MJV(K,-F):MJV(K,X)};var nxV=function(K){return K%10==1&&K%100!=11?"one":K%10==2&&K%100!=12?"two":K%10==3&&K%100!=13?"few":"other"},c7L=nxV;
c7L=nxV;var pvV;pvV=function(K,X){var F=K|0;if(void 0===X){X=Math;var P=X.min,H=K+"",f=H.indexOf(".");X=P.call(X,f===-1?0:H.length-f-1,3)}P=Math.pow(10,X);K={v:X,f:(K*P|0)%P};return F==1&&K.v==0?"one":"other"};
_.mX=pvV;_.mX=pvV;var BIO,SzT,oxL,TIL,r7L;_.LXL=function(K){this.JSC$9364_pattern_=K;this.parsedPattern_=this.literals_=this.initialLiterals_=null;K=FXC;var X=dZ;if(BIO!==K||SzT!==X)BIO=K,SzT=X,oxL=new _.dI(1);this.numberFormatter_=oxL};
BIO=null;SzT=null;oxL=null;TIL=RegExp("'([{}#].*?)'","g");r7L=RegExp("''","g");
_.LXL.prototype.format=function(K){if(this.JSC$9364_pattern_){this.initialLiterals_=[];var X=A7u(this,this.JSC$9364_pattern_);this.parsedPattern_=jAt(this,X);this.JSC$9364_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Nq(this.initialLiterals_),X=[],wvL(this,this.parsedPattern_,K,!1,X),K=X.join("");this.literals_.length>0;)K=K.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else K="";return K};
var wvL=function(K,X,F,P,H){for(var f=0;f<X.length;f++)switch(X[f].type){case 4:H.push(X[f].value);break;case 3:var u=X[f].value;var J=K,Z=H,M=F[u];M===void 0?Z.push("Undefined parameter - "+u):(J.literals_.push(M),Z.push(J.buildPlaceholder_(J.literals_)));break;case 2:u=X[f].value;J=K;Z=F;M=P;var n=H,c=u.argumentIndex;Z[c]===void 0?n.push("Undefined parameter - "+c):(c=u[Z[c]],c===void 0&&(c=u.other),wvL(J,c,Z,M,n));break;case 0:u=X[f].value;y7t(K,u,F,_.mX,P,H);break;case 1:u=X[f].value,y7t(K,u,
F,c7L,P,H)}},y7t=function(K,X,F,P,H,f){var u=X.argumentIndex,J=X.argumentOffset,Z=+F[u];
isNaN(Z)?f.push("Undefined or invalid parameter - "+u):(J=Z-J,u=X[F[u]],u===void 0&&(P=P(Math.abs(J)),u=X[P],u===void 0&&(u=X.other)),X=[],wvL(K,u,F,H,X),F=X.join(""),H?f.push(F):(K=K.numberFormatter_.format(J),f.push(F.replace(/#/g,K))))},A7u=function(K,X){var F=K.initialLiterals_,P=K.buildPlaceholder_.bind(K);
X=X.replace(r7L,function(){F.push("'");return P(F)});
return X=X.replace(TIL,function(H,f){F.push(f);return P(F)})},WXL=function(K){var X=0,F=[],P=[],H=/[{}]/g;
H.lastIndex=0;for(var f;f=H.exec(K);){var u=f.index;f[0]=="}"?(F.pop(),F.length==0&&(f={type:1},f.value=K.substring(X,u),P.push(f),X=u+1)):(F.length==0&&(X=K.substring(X,u),X!=""&&P.push({type:0,value:X}),X=u+1),F.push("{"))}K=K.substring(X);K!=""&&P.push({type:0,value:K});return P},daW=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,eXN=/^\s*(\w+)\s*,\s*selectordinal\s*,/,RXL=/^\s*(\w+)\s*,\s*select\s*,/,jAt=function(K,X){var F=[];
X=WXL(X);for(var P=0;P<X.length;P++){var H={};if(0==X[P].type)H.type=4,H.value=X[P].value;else if(1==X[P].type){var f=X[P].value;switch(daW.test(f)?0:eXN.test(f)?1:RXL.test(f)?2:/^\s*\w+\s*/.test(f)?3:5){case 2:H.type=2;H.value=UaL(K,X[P].value);break;case 0:H.type=0;H.value=hXZ(K,X[P].value);break;case 1:H.type=1;H.value=maU(K,X[P].value);break;case 3:H.type=3,H.value=X[P].value}}F.push(H)}return F},UaL=function(K,X){var F="";
X=X.replace(RXL,function(J,Z){F=Z;return""});
var P={};P.argumentIndex=F;X=WXL(X);for(var H=0;H<X.length;){var f=X[H].value;H++;var u=void 0;1==X[H].type&&(u=jAt(K,X[H].value));P[f.replace(/\s/g,"")]=u;H++}return P},hXZ=function(K,X){var F="",P=0;
X=X.replace(daW,function(Z,M,n){F=M;n&&(P=parseInt(n,10));return""});
var H={};H.argumentIndex=F;H.argumentOffset=P;X=WXL(X);for(var f=0;f<X.length;){var u=X[f].value;f++;var J=void 0;1==X[f].type&&(J=jAt(K,X[f].value));H[u.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=J;f++}return H},maU=function(K,X){var F="";
X=X.replace(eXN,function(J,Z){F=Z;return""});
var P={};P.argumentIndex=F;P.argumentOffset=0;X=WXL(X);for(var H=0;H<X.length;){var f=X[H].value;H++;var u=void 0;1==X[H].type&&(u=jAt(K,X[H].value));P[f.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=u;H++}return P};
_.LXL.prototype.buildPlaceholder_=function(K){return"\ufddf_"+(K.length-1).toString(10)+"_"};var GSZ;
GSZ={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 kIO=function(){this.rdtfSymbols_=lHL||GSZ;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
kIO.prototype.format=function(K,X){a:{X=vxu(this,X);switch(this.style_){case 2:if(X.NARROW!=void 0){X=X.NARROW;break a}case 1:if(X.SHORT!=void 0){X=X.SHORT;break a}default:X=X.LONG;break a}X=void 0}if(!this.alwaysNumeric_&&X&&X.R&&X.R[""+K])K=X.R[""+K];else if(X){var F=Math.abs(K);K=(new _.LXL("{N,plural,"+(K>0||K==0&&1/K==Infinity?X.F:X.P)+"}")).format({N:F})}else K="";return K};
var vxu=function(K,X){switch(X){default:case 0:return K.rdtfSymbols_.YEAR;case 1:return K.rdtfSymbols_.QUARTER;case 2:return K.rdtfSymbols_.MONTH;case 3:return K.rdtfSymbols_.WEEK;case 4:return K.rdtfSymbols_.DAY;case 5:return K.rdtfSymbols_.HOUR;case 6:return K.rdtfSymbols_.MINUTE;case 7:return K.rdtfSymbols_.SECOND}};var aHU=function(K,X,F,P,H,f,u,J){this.x0=K;this.y0=X;this.x1=F;this.y1=P;this.x2=H;this.y2=f;this.x3=u;this.y3=J};
aHU.prototype.clone=function(){return new aHU(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
aHU.prototype.equals=function(K){return this.x0==K.x0&&this.y0==K.y0&&this.x1==K.x1&&this.y1==K.y1&&this.x2==K.x2&&this.y2==K.y2&&this.x3==K.x3&&this.y3==K.y3};
var tJt=function(K,X){if(X==0)return K.x0;if(X==1)return K.x3;var F=q_(K.x0,K.x1,X),P=q_(K.x1,K.x2,X);K=q_(K.x2,K.x3,X);F=q_(F,P,X);P=q_(P,K,X);return q_(F,P,X)},$aL=function(K,X){var F=(X-K.x0)/(K.x3-K.x0);
if(F<=0)return 0;if(F>=1)return 1;for(var P=0,H=1,f=0,u=0;u<8;u++){f=tJt(K,F);var J=(tJt(K,F+1E-6)-f)/1E-6;if(Math.abs(f-X)<1E-6)return F;if(Math.abs(J)<1E-6)break;else f<X?P=F:H=F,F-=(f-X)/J}for(u=0;Math.abs(f-X)>1E-6&&u<8;u++)f<X?(P=F,F=(F+H)/2):(H=F,F=(F+P)/2),f=tJt(K,F);return F};var VI=function(){_.ua.call(this);this.JSC$9385_name_="closure_frame"+OIO++;this.iframesForDisposal_=[];VJV[this.JSC$9385_name_]=this},gZ;
_.br(VI,_.ua);var VJV={},OIO=0,gxW=function(K,X){var F=Yp(K);_.D4t(X,function(P,H){Array.isArray(P)||(P=[P]);_.vd(P,function(f){f=F.JSC$7339_createDom("INPUT",{type:"hidden",name:H,value:f});K.appendChild(f)})})};
_.z=VI.prototype;_.z.JSC$9387_form_=null;_.z.JSC$9387_iframe_=null;_.z.iframeName_=null;_.z.nextIframeId_=0;_.z.JSC$9387_active_=!1;_.z.complete_=!1;_.z.success_=!1;_.z.lastContent_=null;_.z.JSC$9387_lastErrorCode_=0;_.z.iframeDisposalTimer_=null;
_.z.send=function(K,X,F,P){if(this.JSC$9387_active_)throw Error("le");K=new _.aJ(K);X=X?X.toUpperCase():"GET";F&&_.ia(K);gZ||(gZ=_.Qm("FORM"),gZ.acceptCharset="utf-8",F=gZ.style,F.position="absolute",F.visibility="hidden",F.top=F.left="-10px",F.width=F.height="10px",F.overflow="hidden",document.body.appendChild(gZ));this.JSC$9387_form_=gZ;X=="GET"&&gxW(this.JSC$9387_form_,K.JSC$8042_queryData_);P&&gxW(this.JSC$9387_form_,P);F=K.toString();F=xsP(F);P=this.JSC$9387_form_;F=_.rF(ZX(F));F!==void 0&&(P.action=
F);this.JSC$9387_form_.method=X;Ext(this);bIU(this)};
_.z.abort=function(K){if(this.JSC$9387_active_){var X=EK(this);if(X)if(z4(X))X.removeAllListeners(void 0);else if(X=fu(X)){var F=0,P;for(P in X.listeners)for(var H=X.listeners[P].concat(),f=0;f<H.length;++f)YO(H[f])&&++F}this.success_=this.JSC$9387_active_=this.complete_=!1;this.JSC$9387_lastErrorCode_=K||7;this.dispatchEvent("abort");CjC(this)}};
_.z.disposeInternal=function(){this.JSC$9387_active_&&this.abort();VI.superClass_.disposeInternal.call(this);this.JSC$9387_iframe_&&NIO(this);bIU(this);this.JSC$9387_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9387_form_=null;this.JSC$9387_lastErrorCode_=0;delete VJV[this.JSC$9385_name_]};
_.z.isComplete=function(){return this.complete_};
_.z.isSuccess=function(){return this.success_};
_.z.isActive=function(){return this.JSC$9387_active_};
_.z.getResponseText=function(){return this.lastContent_};
_.z.getLastError=function(){return _.v8N(this.JSC$9387_lastErrorCode_)};
var Ext=function(K){K.JSC$9387_active_=!0;K.complete_=!1;K.JSC$9387_lastErrorCode_=0;K.iframeName_=K.JSC$9385_name_+"_"+(K.nextIframeId_++).toString(36);K.JSC$9387_iframe_=Yp(K.JSC$9387_form_).JSC$7339_createDom("IFRAME",{name:K.iframeName_,id:K.iframeName_});var X=K.JSC$9387_iframe_.style;X.visibility="hidden";X.width=X.height="10px";X.display="none";_.Ii?X.marginTop=X.marginLeft="-10px":(X.position="absolute",X.top=X.left="-10px");Yp(K.JSC$9387_form_).JSC$7337_document_.body.appendChild(K.JSC$9387_iframe_);
X=K.iframeName_+"_inner";var F=W4U(K.JSC$9387_iframe_);if(document.baseURI){var P=iC(X);P='<head><base href="'+iC(document.baseURI)+'"></head><body><iframe id="'+P+'" name="'+P+'"></iframe>';P=wF(P)}else P=iC(X),P=wF('<body><iframe id="'+P+'" name="'+P+'"></iframe>');F.write(yz(P));_.nB(F.getElementById(X),"load",K.onIframeLoaded_,!1,K);P=pJ("TEXTAREA",K.JSC$9387_form_);for(var H=0,f=P.length;H<f;H++){var u=P[H].value;mqC(P[H])!=u&&(_.oY(P[H],u),P[H].value=u)}P=F.importNode(K.JSC$9387_form_,!0);P.target=
X;P.action=K.JSC$9387_form_.action;F.body.appendChild(P);H=pJ("SELECT",K.JSC$9387_form_);f=pJ("SELECT",P);u=0;for(var J=H.length;u<J;u++)for(var Z=pJ("OPTION",H[u]),M=pJ("OPTION",f[u]),n=0,c=Z.length;n<c;n++)M[n].selected=Z[n].selected;H=pJ("INPUT",K.JSC$9387_form_);f=pJ("INPUT",P);u=0;for(J=H.length;u<J;u++)if(H[u].type=="file"&&H[u].value!=f[u].value){K.JSC$9387_form_.target=X;P=K.JSC$9387_form_;break}try{K.errorHandled_=!1,P.submit(),F.close(),_.xA&&setTimeout(K.testForFirefoxSilentError_.bind(K),
250)}catch(B){_.DG(F.getElementById(X),"load",K.onIframeLoaded_,!1,K),F.close(),b$(K,2)}};
VI.prototype.onIframeLoaded_=function(){_.DG(EK(this),"load",this.onIframeLoaded_,!1,this);try{var K=this.JSC$9387_iframe_?W4U(EK(this)):null;this.complete_=!0;this.JSC$9387_active_=!1;try{var X=K.body;this.lastContent_=X.textContent||X.innerText}catch(H){var F=1}var P;F||typeof this.errorChecker_!="function"||(P=this.errorChecker_(K))&&(F=4);F?b$(this,F):(this.success_=!0,this.JSC$9387_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),CjC(this))}catch(H){b$(this,1)}};
var b$=function(K,X){K.errorHandled_||(K.success_=!1,K.JSC$9387_active_=!1,K.complete_=!0,K.JSC$9387_lastErrorCode_=X,K.dispatchEvent("complete"),K.dispatchEvent("error"),CjC(K),K.errorHandled_=!0)},CjC=function(K){NIO(K);
bIU(K);K.JSC$9387_form_=null;K.dispatchEvent("ready")},NIO=function(K){var X=K.JSC$9387_iframe_;
X&&(X.onreadystatechange=null,X.onload=null,X.onerror=null,K.iframesForDisposal_.push(X));K.iframeDisposalTimer_&&(clearTimeout(K.iframeDisposalTimer_),K.iframeDisposalTimer_=null);_.xA?K.iframeDisposalTimer_=setTimeout(K.disposeIframes_.bind(K),2E3):K.disposeIframes_();K.JSC$9387_iframe_=null;K.iframeName_=null};
VI.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var K=this.iframesForDisposal_.pop();_.c_(K)}};
var bIU=function(K){K.JSC$9387_form_&&K.JSC$9387_form_==gZ&&_.cz(K.JSC$9387_form_)},EK=function(K){return K.JSC$9387_iframe_?W4U(K.JSC$9387_iframe_).getElementById(K.iframeName_+"_inner"):null};
VI.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9387_active_){var K=this.JSC$9387_iframe_?W4U(EK(this)):null;K&&!Wf(K,"documentUri")?(_.DG(EK(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?b$(this,3):b$(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.CY=function(K){return K=="\r"||K=="\n"||K==" "||K=="\t"};var iIW;_.NM=function(K){this.errorMessage_=null;this.result_=[];this.JSC$9389_buffer_="";this.stack_=[];this.JSC$9389_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!K||!K.deliverMessageAsRawString)};
iIW={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};_.NM.prototype.isInputValid=function(){return this.streamState_!=3};
_.NM.prototype.done=function(){return this.streamState_===2};
var i$=function(K,X,F){K.streamState_=3;K.errorMessage_="The stream is broken @"+K.JSC$9389_pos_+"/"+F+". With input:\n"+X;throw Error(K.errorMessage_);};
_.NM.prototype.acceptsBinaryInput=function(){return!1};
_.NM.prototype.parse=function(K){function X(){for(;B<K.length;)if(_.CY(K[B]))B++,f.JSC$9389_pos_++;else break;return B<M}
function F(){for(var A;;){A=K[B++];if(!A)break;f.JSC$9389_pos_++;switch(f.state_){case Z.INIT:A==="{"?f.state_=Z.OBJECT_OPEN:A==="["?f.state_=Z.ARRAY_OPEN:_.CY(A)||i$(f,K,B);continue;case Z.KEY_START:case Z.OBJECT_OPEN:if(_.CY(A))continue;if(f.state_===Z.KEY_START)u.push(Z.KEY_END);else if(A==="}"){H("{}");f.state_=P();continue}else u.push(Z.OBJECT_END);A==='"'?f.state_=Z.STRING:i$(f,K,B);continue;case Z.KEY_END:case Z.OBJECT_END:if(_.CY(A))continue;A===":"?(f.state_===Z.OBJECT_END&&(u.push(Z.OBJECT_END),
f.depth_++),f.state_=Z.VALUE):A==="}"?(f.depth_--,H(),f.state_=P()):A===","?(f.state_===Z.OBJECT_END&&u.push(Z.OBJECT_END),f.state_=Z.KEY_START):i$(f,K,B);continue;case Z.ARRAY_OPEN:case Z.VALUE:if(_.CY(A))continue;if(f.state_===Z.ARRAY_OPEN)if(f.depth_++,f.state_=Z.VALUE,A==="]"){f.depth_--;if(f.depth_===0){f.state_=Z.ARRAY_END;return}H("[]");f.state_=P();continue}else u.push(Z.ARRAY_END);A==='"'?f.state_=Z.STRING:A==="{"?f.state_=Z.OBJECT_OPEN:A==="["?f.state_=Z.ARRAY_OPEN:A==="t"?f.state_=Z.TRUE1:
A==="f"?f.state_=Z.FALSE1:A==="n"?f.state_=Z.NULL1:A!=="-"&&("0123456789".indexOf(A)!==-1?f.state_=Z.NUM_DIGIT:i$(f,K,B));continue;case Z.ARRAY_END:if(A===",")u.push(Z.ARRAY_END),f.state_=Z.VALUE,f.depth_===1&&(c=B);else if(A==="]"){f.depth_--;if(f.depth_===0)return;H();f.state_=P()}else if(_.CY(A))continue;else i$(f,K,B);continue;case Z.STRING:var d=B;a:for(;;){for(;f.unicodeCount_>0;)if(A=K[B++],f.unicodeCount_===4?f.unicodeCount_=0:f.unicodeCount_++,!A)break a;if(A==='"'&&!f.slashed_){f.state_=
P();break}if(A==="\\"&&!f.slashed_&&(f.slashed_=!0,A=K[B++],!A))break;if(f.slashed_)if(f.slashed_=!1,A==="u"&&(f.unicodeCount_=1),A=K[B++])continue;else break;J.lastIndex=B;A=J.exec(K);if(!A){B=K.length+1;break}B=A.index+1;A=K[A.index];if(!A)break}f.JSC$9389_pos_+=B-d;continue;case Z.TRUE1:if(!A)continue;A==="r"?f.state_=Z.TRUE2:i$(f,K,B);continue;case Z.TRUE2:if(!A)continue;A==="u"?f.state_=Z.TRUE3:i$(f,K,B);continue;case Z.TRUE3:if(!A)continue;A==="e"?f.state_=P():i$(f,K,B);continue;case Z.FALSE1:if(!A)continue;
A==="a"?f.state_=Z.FALSE2:i$(f,K,B);continue;case Z.FALSE2:if(!A)continue;A==="l"?f.state_=Z.FALSE3:i$(f,K,B);continue;case Z.FALSE3:if(!A)continue;A==="s"?f.state_=Z.FALSE4:i$(f,K,B);continue;case Z.FALSE4:if(!A)continue;A==="e"?f.state_=P():i$(f,K,B);continue;case Z.NULL1:if(!A)continue;A==="u"?f.state_=Z.NULL2:i$(f,K,B);continue;case Z.NULL2:if(!A)continue;A==="l"?f.state_=Z.NULL3:i$(f,K,B);continue;case Z.NULL3:if(!A)continue;A==="l"?f.state_=P():i$(f,K,B);continue;case Z.NUM_DECIMAL_POINT:A===
"."?f.state_=Z.NUM_DIGIT:i$(f,K,B);continue;case Z.NUM_DIGIT:if("0123456789.eE+-".indexOf(A)!==-1)continue;else B--,f.JSC$9389_pos_--,f.state_=P();continue;default:i$(f,K,B)}}}
function P(){var A=u.pop();return A!=null?A:Z.VALUE}
function H(A){f.depth_>1||(A||(A=c===-1?f.JSC$9389_buffer_+K.substring(n,B):K.substring(c,B)),f.deliverMessageAsRawString_?f.result_.push(A):f.result_.push(JSON.parse(A)),c=B)}
for(var f=this,u=f.stack_,J=f.stringInputPattern_,Z=iIW,M=K.length,n=0,c=-1,B=0;B<M;)switch(f.streamState_){case 3:return i$(f,K,B),null;case 2:return X()&&i$(f,K,B),null;case 0:if(X()){var L=K[B++];f.JSC$9389_pos_++;if(L==="["){f.streamState_=1;n=B;f.state_=Z.ARRAY_OPEN;continue}else i$(f,K,B)}return null;case 1:return F(),f.depth_===0&&f.state_==Z.ARRAY_END?(f.streamState_=2,f.JSC$9389_buffer_=K.substring(B)):f.JSC$9389_buffer_=c===-1?f.JSC$9389_buffer_+K.substring(n):K.substring(c),f.result_.length>
0?(L=f.result_,f.result_=[],L):null}return null};_.br(_.I2,pG);kh.prototype.getValue=function(){return this.JSC$9397_value_};
kh.prototype.clone=function(){return new kh(this.JSC$9397_key_,this.JSC$9397_value_)};var x4=function(K){this.nodes_=[];if(K)a:{if(K instanceof x4){var X=K.getKeys();K=K.getValues();if(this.getCount()<=0){for(var F=this.nodes_,P=0;P<X.length;P++)F.push(new kh(X[P],K[P]));break a}}else X=_.T8.getKeys(K),K=_.T8.getValues(K);for(F=0;F<X.length;F++)this.insert(X[F],K[F])}};
_.z=x4.prototype;_.z.insert=function(K,X){var F=this.nodes_;F.push(new kh(K,X));K=F.length-1;X=this.nodes_;for(F=X[K];K>0;){var P=K-1>>1;if(X[P].JSC$9397_key_>F.JSC$9397_key_)X[K]=X[P],K=P;else break}X[K]=F};
_.z.remove=function(){var K=this.nodes_,X=K.length,F=K[0];if(!(X<=0)){if(X==1)K.length=0;else{K[0]=K.pop();K=0;X=this.nodes_;for(var P=X.length,H=X[K];K<P>>1;){var f=K*2+1,u=K*2+2;f=u<P&&X[u].JSC$9397_key_<X[f].JSC$9397_key_?u:f;if(X[f].JSC$9397_key_>H.JSC$9397_key_)break;X[K]=X[f];K=f}X[K]=H}return F.getValue()}};
_.z.peek=function(){var K=this.nodes_;if(K.length!=0)return K[0].getValue()};
_.z.getValues=function(){for(var K=this.nodes_,X=[],F=K.length,P=0;P<F;P++)X.push(K[P].getValue());return X};
_.z.getKeys=function(){for(var K=this.nodes_,X=[],F=K.length,P=0;P<F;P++)X.push(K[P].JSC$9397_key_);return X};
_.z.containsValue=function(K){return this.nodes_.some(function(X){return X.getValue()==K})};
_.z.containsKey=function(K){return this.nodes_.some(function(X){return X.JSC$9397_key_==K})};
_.z.clone=function(){return new x4(this)};
_.z.getCount=function(){return this.nodes_.length};
_.z.isEmpty=function(){return this.nodes_.length===0};
_.z.clear=function(){this.nodes_.length=0};_.Ir=function(K,X){this.JSC$9403_map_={};this.JSC$9403_keys_=[];this.version_=this.size=0;var F=arguments.length;if(F>1){if(F%2)throw Error("oa");for(var P=0;P<F;P+=2)this.set(arguments[P],arguments[P+1])}else K&&this.addAll(K)};
_.z=_.Ir.prototype;_.z.getCount=function(){return this.size};
_.z.getValues=function(){k4(this);for(var K=[],X=0;X<this.JSC$9403_keys_.length;X++)K.push(this.JSC$9403_map_[this.JSC$9403_keys_[X]]);return K};
_.z.getKeys=function(){k4(this);return this.JSC$9403_keys_.concat()};
_.z.containsKey=function(K){return this.has(K)};
_.z.has=function(K){return KT(this.JSC$9403_map_,K)};
_.z.containsValue=function(K){for(var X=0;X<this.JSC$9403_keys_.length;X++){var F=this.JSC$9403_keys_[X];if(KT(this.JSC$9403_map_,F)&&this.JSC$9403_map_[F]==K)return!0}return!1};
_.z.equals=function(K,X){if(this===K)return!0;if(this.size!=K.getCount())return!1;X=X||xat;k4(this);for(var F,P=0;F=this.JSC$9403_keys_[P];P++)if(!X(this.get(F),K.get(F)))return!1;return!0};
var xat=function(K,X){return K===X};
_.Ir.prototype.isEmpty=function(){return this.size==0};
_.Ir.prototype.clear=function(){this.JSC$9403_map_={};this.version_=this.size=this.JSC$9403_keys_.length=0};
_.Ir.prototype.remove=function(K){return this.delete(K)};
_.Ir.prototype.delete=function(K){return KT(this.JSC$9403_map_,K)?(delete this.JSC$9403_map_[K],--this.size,this.version_++,this.JSC$9403_keys_.length>2*this.size&&k4(this),!0):!1};
var k4=function(K){if(K.size!=K.JSC$9403_keys_.length){for(var X=0,F=0;X<K.JSC$9403_keys_.length;){var P=K.JSC$9403_keys_[X];KT(K.JSC$9403_map_,P)&&(K.JSC$9403_keys_[F++]=P);X++}K.JSC$9403_keys_.length=F}if(K.size!=K.JSC$9403_keys_.length){X={};for(P=F=0;F<K.JSC$9403_keys_.length;){var H=K.JSC$9403_keys_[F];KT(X,H)||(K.JSC$9403_keys_[P++]=H,X[H]=1);F++}K.JSC$9403_keys_.length=P}};
_.z=_.Ir.prototype;_.z.get=function(K,X){return KT(this.JSC$9403_map_,K)?this.JSC$9403_map_[K]:X};
_.z.set=function(K,X){KT(this.JSC$9403_map_,K)||(this.size+=1,this.JSC$9403_keys_.push(K),this.version_++);this.JSC$9403_map_[K]=X};
_.z.addAll=function(K){if(K instanceof _.Ir)for(var X=K.getKeys(),F=0;F<X.length;F++)this.set(X[F],K.get(X[F]));else for(X in K)this.set(X,K[X])};
_.z.forEach=function(K,X){for(var F=this.getKeys(),P=0;P<F.length;P++){var H=F[P],f=this.get(H);K.call(X,f,H,this)}};
_.z.clone=function(){return new _.Ir(this)};
_.z.transpose=function(){for(var K=new _.Ir,X=0;X<this.JSC$9403_keys_.length;X++){var F=this.JSC$9403_keys_[X];K.set(this.JSC$9403_map_[F],F)}return K};
_.z.keys=function(){return rvL(this.__iterator__(!0)).toEs6()};
_.z.values=function(){return rvL(this.__iterator__(!1)).toEs6()};
_.z.entries=function(){var K=this;return lvZ(this.keys(),function(X){return[X,K.get(X)]})};
_.z.__iterator__=function(K){k4(this);var X=0,F=this.version_,P=this,H=new NE;H.next=function(){if(F!=P.version_)throw Error("me");if(X>=P.JSC$9403_keys_.length)return iR;var f=P.JSC$9403_keys_[X++];return x0(K?f:P.JSC$9403_map_[f])};
return H};
var KT=function(K,X){return Object.prototype.hasOwnProperty.call(K,X)};var kSO=function(){this.JSC$9406_map_=new _.Ir;this.JSC$9406_head_=new IHt("");this.JSC$9406_head_.next=this.JSC$9406_head_.prev=this.JSC$9406_head_},K5U=function(K,X){if(X=K.JSC$9406_map_.get(X))X.remove(),K.insert_(X);
return X};
_.z=kSO.prototype;_.z.get=function(K,X){return(K=K5U(this,K))?K.value:X};
_.z.set=function(K,X){var F=K5U(this,K);F?F.value=X:(F=new IHt(K,X),this.JSC$9406_map_.set(K,F),this.insert_(F))};
_.z.peek=function(){return this.JSC$9406_head_.next.value};
_.z.shift=function(){return XIN(this,this.JSC$9406_head_.next)};
_.z.pop=function(){return XIN(this,this.JSC$9406_head_.prev)};
_.z.remove=function(K){return(K=this.JSC$9406_map_.get(K))?(this.removeNode(K),!0):!1};
_.z.removeNode=function(K){K.remove();this.JSC$9406_map_.remove(K.key)};
_.z.getCount=function(){return this.JSC$9406_map_.getCount()};
_.z.isEmpty=function(){return this.JSC$9406_map_.isEmpty()};
_.z.getKeys=function(){return this.map(function(K,X){return X})};
_.z.getValues=function(){return this.map(function(K){return K})};
_.z.contains=function(K){return this.some(function(X){return X==K})};
_.z.containsKey=function(K){return this.JSC$9406_map_.containsKey(K)};
_.z.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9406_head_.prev)};
_.z.forEach=function(K,X){for(var F=this.JSC$9406_head_.next;F!=this.JSC$9406_head_;F=F.next)K.call(X,F.value,F.key,this)};
_.z.map=function(K,X){for(var F=[],P=this.JSC$9406_head_.next;P!=this.JSC$9406_head_;P=P.next)F.push(K.call(X,P.value,P.key,this));return F};
_.z.some=function(K,X){for(var F=this.JSC$9406_head_.next;F!=this.JSC$9406_head_;F=F.next)if(K.call(X,F.value,F.key,this))return!0;return!1};
_.z.every=function(K,X){for(var F=this.JSC$9406_head_.next;F!=this.JSC$9406_head_;F=F.next)if(!K.call(X,F.value,F.key,this))return!1;return!0};
_.z.insert_=function(K){K.next=this.JSC$9406_head_.next;K.prev=this.JSC$9406_head_;this.JSC$9406_head_.next=K;for(K.next.prev=K;this.getCount()>100;)this.removeNode(this.JSC$9406_head_.prev)};
var XIN=function(K,X){K.JSC$9406_head_!=X&&K.removeNode(X);return X.value},IHt=function(K,X){this.key=K;
this.value=X};
IHt.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var F5t=function(){x4.apply(this,arguments)};
_.r(F5t,x4);F5t.prototype.enqueue=function(K,X){this.insert(K,X)};var PNU=function(){var K=Error();K.name="SecurityError";throw K;},uKM=function(){return{get opener(){return null},
get closed(){return!0},get location(){PNU()},get document(){PNU()},postMessage:function(){},
close:function(){},
focus:function(){}}};var mLd={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 vA9={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 H$L={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(vA9).join("|");var sjt=function(){function K(J){J.substr(-1)!==";"&&(J+=";");return u(J)}
for(var X=Object.keys(H$L).sort(lZM),F=Object.keys(vA9).sort(lZM),P=0,H=0;P<F.length;P++)X[H]===F[P]?(F[P]+=";?",H++):F[P]+=";";var f=new RegExp("&(?:"+F.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),u=aZT();return function(J){return String(J).replace(f,K)}}();/*

 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 zZO={};var fmu=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"),DDN=/[\\&]/,uNE=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),qmO=RegExp('[&<>"]',"g"),J6L=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),Z$t=function(K){return K.charCodeAt(0)===92?K.charAt(1):sjt(K)},YmC=function(K){return DDN.test(K)?K.replace(uNE,Z$t):K},QjN=function(K){try{var X,F="";
if(typeof H!=="string"){var P=H;var H=";/?:@&=+$,-_.!~*'()#"}typeof P==="undefined"&&(P=!0);var f,u=zZO[H];if(u)var J=u;else{u=zZO[H]=[];for(f=0;f<128;f++){var Z=String.fromCharCode(f);/^[0-9a-z]$/i.test(Z)?u.push(Z):u.push("%"+("0"+f.toString(16).toUpperCase()).slice(-2))}for(f=0;f<H.length;f++)u[H.charCodeAt(f)]=H[f];J=u}var M=0;for(X=K.length;M<X;M++){var n=K.charCodeAt(M);if(P&&n===37&&M+2<X&&/^[0-9a-f]{2}$/i.test(K.slice(M+1,M+3)))F+=K.slice(M,M+3),M+=2;else if(n<128)F+=J[n];else if(n>=55296&&
n<=57343){if(n>=55296&&n<=56319&&M+1<X){var c=K.charCodeAt(M+1);if(c>=56320&&c<=57343){F+=encodeURIComponent(K[M]+K[M+1]);M++;continue}}F+="%EF%BF%BD"}else F+=encodeURIComponent(K[M])}return F}catch(B){return K}},M0Q=function(K){switch(K){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return K}},Xv=function(K,X){return qmO.test(K)?X?K.replace(J6L,M0Q):K.replace(qmO,M0Q):K};/*

 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 Fv;if(String.fromCodePoint)Fv=function(K){try{return String.fromCodePoint(K)}catch(X){if(X instanceof RangeError)return String.fromCharCode(65533);throw X;}};
else{var n1N=String.fromCharCode,c6N=Math.floor;Fv=function(){var K=[],X=-1,F=arguments.length;if(!F)return"";for(var P="";++X<F;){var H=Number(arguments[X]);if(!isFinite(H)||H<0||H>1114111||c6N(H)!==H)return String.fromCharCode(65533);if(H<=65535)K.push(H);else{H-=65536;var f=(H>>10)+55296;H=H%1024+56320;K.push(f,H)}if(X+1===F||K.length>16384)P+=n1N.apply(null,K),K.length=0}return P}};var pIC=function(K){this.root=this.current=K;this.entering=!0};
pIC.prototype.next=function(){var K=this.current,X=this.entering;if(K===null)return null;a:switch(K._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 F=!0;break a;default:F=!1}X&&F?K._firstChild?(this.current=K._firstChild,this.entering=!0):this.entering=!1:K===this.root?this.current=null:K._next===null?(this.current=
K._parent,this.entering=!1):(this.current=K._next,this.entering=!0);return{entering:X,node:K}};
var Pg=function(K,X){this._type=K;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=X;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};
Pg.prototype.appendChild=function(K){Px(K);K._parent=this;this._lastChild?(this._lastChild._next=K,K._prev=this._lastChild):this._firstChild=K;this._lastChild=K};
var Px=function(K){K._prev?K._prev._next=K._next:K._parent&&(K._parent._firstChild=K._next);K._next?K._next._prev=K._prev:K._parent&&(K._parent._lastChild=K._prev);K._parent=null;K._next=null;K._prev=null},BqL=function(K,X){Px(X);
X._next=K._next;X._next&&(X._next._prev=X);X._prev=K;K._next=X;X._parent=K._parent;X._next||(X._parent._lastChild=X)};
Pg.prototype.insertBefore=function(K){Px(K);K._prev=this._prev;K._prev&&(K._prev._next=K);K._next=this;this._prev=K;K._parent=this._parent;K._prev||(K._parent._firstChild=K)};
_.Oi.Object.defineProperties(Pg.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(K){this._literal=K}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(K){this._destination=K}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(K){this._title=K}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(K){this._info=K}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(K){this._level=K}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(K){this._listData.type=K}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(K){this._listData.tight=K}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(K){this._listData.start=K}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(K){this._onEnter=K}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(K){this._onExit=K}}});var tN9=/[ \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,
$L3={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 SmT=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]/),
o1O=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),L5t=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),TqN=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),r6Z=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),A6O=/`+/,jju=/^`+/,wIQ=/\.\.\./g,y6N=/--+/g,W5Q=/^<([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])?)*)>/,
dDE=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,eZW=/^ *(?:\n *)?/,RZL=/^[ \t\n\x0b\x0c\x0d]/,UDC=/[ \t\n\x0b\x0c\x0d]+/g,hZL=/^\s/,mDL=/ *$/,GwU=/^ */,lmU=/^ *(?:\n|$)/,v1t=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),amL=/^[^\n`\[\]\\!<&*_'"]+/m,Hx=function(K){var X=new Pg("text");X._literal=K;return X},s_=function(K){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=K||{}};
s_.prototype.match=function(K){K=K.exec(this.subject.slice(this.pos));if(K===null)return null;this.pos+=K.index+K[0].length;return K[0]};
s_.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var ze=function(K){K.match(eZW);return!0},t0t=function(K,X,F){var P=0;
var H=K.pos;if(X===39||X===34)P++,K.pos++;else for(;K.peek()===X;)P++,K.pos++;if(P===0)P=null;else{var f=H===0?"\n":K.subject.charAt(H-1);var u=K.peek();u=u===-1?"\n":Fv(u);var J=hZL.test(u);u=SmT.test(u);var Z=hZL.test(f);var M=SmT.test(f);f=!J&&!(u&&!Z&&!M);J=!Z&&!(M&&!J&&!u);X===95?(Z=f&&(!J||M),u=J&&(!f||u)):(Z=X===39||X===34?f&&!J:f,u=J);K.pos=H;P={numdelims:P,can_open:Z,can_close:u}}if(!P)return!1;H=P.numdelims;u=K.pos;K.pos+=H;u=X===39?"\u2019":X===34?"\u201c":K.subject.slice(u,K.pos);u=Hx(u);
F.appendChild(u);K.delimiters={cc:X,numdelims:H,origdelims:H,node:u,previous:K.delimiters,next:null,can_open:P.can_open,can_close:P.can_close};K.delimiters.previous!==null&&(K.delimiters.previous.next=K.delimiters);return!0},$DQ=function(K,X){X.previous!==null&&(X.previous.next=X.next);
X.next===null?K.delimiters=X.previous:X.next.previous=X.previous},O$V=function(K,X){var F,P,H=[],f=!1;
H[95]=X;H[42]=X;H[39]=X;H[34]=X;for(F=K.delimiters;F!==null&&F.previous!==X;)F=F.previous;for(;F!==null;){var u=F.cc;if(F.can_close){var J=F.previous;for(P=!1;J!==null&&J!==X&&J!==H[u];){f=(F.can_open||J.can_close)&&(J.origdelims+F.origdelims)%3===0;if(J.cc===F.cc&&J.can_open&&!f){P=!0;break}J=J.previous}var Z=F;if(u===42||u===95)if(P){var M=F.numdelims>=2&&J.numdelims>=2?2:1;var n=J.node;var c=F.node;J.numdelims-=M;F.numdelims-=M;n._literal=n._literal.slice(0,n._literal.length-M);c._literal=c._literal.slice(0,
c._literal.length-M);var B=new Pg(M===1?"emph":"strong");for(M=n._next;M&&M!==c;){var L=M._next;Px(M);B.appendChild(M);M=L}BqL(n,B);M=J;L=F;M.next!==L&&(M.next=L,L.previous=M);J.numdelims===0&&(Px(n),$DQ(K,J));F.numdelims===0&&(Px(c),J=F.next,$DQ(K,F),F=J)}else F=F.next;else u===39?(F.node._literal="\u2019",P&&(J.node._literal="\u2018"),F=F.next):u===34&&(F.node._literal="\u201d",P&&(J.node.literal="\u201c"),F=F.next);P||f||(H[u]=Z.previous,Z.can_open||$DQ(K,Z))}else F=F.next}for(;K.delimiters!==
null&&K.delimiters!==X;)$DQ(K,K.delimiters)},V0U=function(K){K=K.match(o1O);
return K===null?null:YmC(K.substr(1,K.length-2))},g1Q=function(K){var X=K.match(L5t);
if(X===null){X=K.pos;for(var F=0,P;(P=K.peek())!==-1;)if(P===92)K.pos+=1,K.peek()!==-1&&(K.pos+=1);else if(P===40)K.pos+=1,F+=1;else if(P===41)if(F<1)break;else K.pos+=1,--F;else if(RZL.exec(Fv(P))!==null)break;else K.pos+=1;X=K.subject.substr(X,K.pos-X);return QjN(YmC(X))}return QjN(YmC(X.substr(1,X.length-2)))},E1O=function(K){K=K.match(v1t);
return K===null||K.length>1001?0:K.length},b$C=function(K,X,F,P){K.brackets!==null&&(K.brackets.bracketAfter=!0);
K.brackets={node:X,previous:K.brackets,previousDelimiter:K.delimiters,index:F,image:P,active:!0}},CNu=function(K,X){var F;
return(F=K.match(amL))?(K.options.smart?X.appendChild(Hx(F.replace(wIQ,"\u2026").replace(y6N,function(P){var H=0,f=0;P.length%3===0?f=P.length/3:P.length%2===0?H=P.length/2:P.length%3===2?(H=1,f=(P.length-2)/3):(H=2,f=(P.length-4)/3);P="";var u;for(u=0;u<f;u++)P+="\u2014";for(u=0;u<H;u++)P+="\u2013";return P}))):X.appendChild(Hx(F)),!0):!1},NqC=function(K,X,F){K.subject=X;
K.pos=0;X=K.pos;var P=E1O(K);if(P===0)return 0;var H=K.subject.substr(0,P);if(K.peek()===58)K.pos++;else return K.pos=X,0;ze(K);P=g1Q(K);if(P===null||P.length===0)return K.pos=X,0;var f=K.pos;ze(K);var u=V0U(K);u===null&&(u="",K.pos=f);var J=!0;K.match(lmU)===null&&(u===""?J=!1:(u="",K.pos=f,J=K.match(lmU)!==null));if(!J)return K.pos=X,0;H=OkP(H);if(H==="")return K.pos=X,0;F[H]||(F[H]={destination:P,title:u});return K.pos-X},i$t=function(K,X){var F,P=K.peek();
if(P===-1)return!1;switch(P){case 10:K.pos+=1;if((F=X._lastChild)&&F.type==="text"&&F._literal[F._literal.length-1]===" "){var H=F._literal[F._literal.length-2]===" ";F._literal=F._literal.replace(mDL,"");X.appendChild(new Pg(H?"linebreak":"softbreak"))}else X.appendChild(new Pg("softbreak"));K.match(GwU);F=!0;break;case 92:F=K.subject;K.pos+=1;K.peek()===10?(K.pos+=1,F=new Pg("linebreak"),X.appendChild(F)):TqN.test(F.charAt(K.pos))?(X.appendChild(Hx(F.charAt(K.pos))),K.pos+=1):X.appendChild(Hx("\\"));
F=!0;break;case 96:a:if(F=K.match(jju),F===null)F=!1;else{H=K.pos;for(var f;(f=K.match(A6O))!==null;)if(f===F){f=new Pg("code");f._literal=K.subject.slice(H,K.pos-F.length).trim().replace(UDC," ");X.appendChild(f);F=!0;break a}K.pos=H;X.appendChild(Hx(F));F=!0}break;case 42:case 95:F=t0t(K,P,X);break;case 39:case 34:F=K.options.smart&&t0t(K,P,X);break;case 91:F=K.pos;K.pos+=1;H=Hx("[");X.appendChild(H);b$C(K,H,F,!1);F=!0;break;case 33:F=K.pos;K.pos+=1;K.peek()===91?(K.pos+=1,H=Hx("!["),X.appendChild(H),
b$C(K,H,F+1,!0)):X.appendChild(Hx("!"));F=!0;break;case 93:var u,J=!1,Z;K.pos+=1;var M=K.pos;H=K.brackets;if(H===null)X.appendChild(Hx("]"));else if(H.active){F=H.image;var n=K.pos;K.peek()===40&&(K.pos++,ze(K)&&(f=g1Q(K))!==null&&ze(K)&&(RZL.test(K.subject.charAt(K.pos-1))&&(u=V0U(K)),1)&&ze(K)&&K.peek()===41?(K.pos+=1,J=!0):K.pos=n);if(!J){var c=K.pos,B=E1O(K);B>2?Z=K.subject.slice(c,c+B):H.bracketAfter||(Z=K.subject.slice(H.index,M));B===0&&(K.pos=n);Z&&(Z=K.refmap[OkP(Z)])&&(f=Z.destination,u=
Z.title,J=!0)}if(J){M=new Pg(F?"image":"link");M._destination=f;M._title=u||"";for(f=H.node._next;f;)u=f._next,Px(f),M.appendChild(f),f=u;X.appendChild(M);O$V(K,H.previousDelimiter);K.brackets=K.brackets.previous;Px(H.node);if(!F)for(H=K.brackets;H!==null;)H.image||(H.active=!1),H=H.previous}else K.brackets=K.brackets.previous,K.pos=M,X.appendChild(Hx("]"))}else X.appendChild(Hx("]")),K.brackets=K.brackets.previous;F=!0;break;case 60:(F=K.match(W5Q))?(F=F.slice(1,F.length-1),H=new Pg("link"),H._destination=
QjN("mailto:"+F),H._title="",H.appendChild(Hx(F)),X.appendChild(H),F=!0):(F=K.match(dDE))?(F=F.slice(1,F.length-1),H=new Pg("link"),H._destination=QjN(F),H._title="",H.appendChild(Hx(F)),X.appendChild(H),F=!0):F=!1;F||(F=K.match(fmu),F===null?F=!1:(H=new Pg("html_inline"),H._literal=F,X.appendChild(H),F=!0));break;case 38:(F=K.match(r6Z))?(X.appendChild(Hx(sjt(F))),F=!0):F=!1;break;default:F=CNu(K,X)}F||(K.pos+=1,X.appendChild(Hx(Fv(P))));return!0};
s_.prototype.parseInlines=function(K){this.subject=K._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;i$t(this,K););K._string_content=null;O$V(this,null)};
s_.prototype.parse=s_.prototype.parseInlines;var xDN=[/./,/^<(?: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")],ImV=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],kwZ=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,KaC=/^[#`~*+_=<>0-9-\|]|\|/,XcT=/[^ \t\f\v\r\n]/,FaT=/^[*+-]/,PbU=/^(\d{1,9})([.)])/,Hau=/^#{1,6}(?:[ \t]+|$)/,sgZ=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,zeu=/^(?:`{3,}|~{3,})(?= *$)/,fAW=/^(?:=+|-+)[ \t]*$/,DYL=/\r\n|\n|\r/,gAq=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,EA3=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,uUV={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(K){return K!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(K,X){for(K=X._firstChild;K;){if(VNy(K)&&K._next){X._listData.tight=!1;break}for(var F=K._firstChild;F;){if(VNy(F)&&(K._next||F._next)){X._listData.tight=!1;break}F=F._next}K=K._next}},
canContain:function(K){return K==="item"},
acceptsLines:!1},block_quote:{continue:function(K){var X=K.currentLine;if(K.indented||X1(X,K.nextNonspace)!==62)return 1;fT(K);D_(K,1,!1);Ky(X1(X,K.offset))&&D_(K,1,!0);return 0},
finalize:function(){},
canContain:function(K){return K!=="item"},
acceptsLines:!1},item:{continue:function(K,X){if(K.blank){if(X._firstChild==null)return 1;fT(K)}else if(K.indent>=X._listData.markerOffset+X._listData.padding)D_(K,X._listData.markerOffset+X._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(K){return K!=="item"&&!bkM(K)},
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(K,X){var F=K.currentLine,P=K.indent;if(X._isFenced){if((P=P<=3&&F.charAt(K.nextNonspace)===X._fenceChar&&F.slice(K.nextNonspace).match(zeu))&&P[0].length>=X._fenceLength)return K.finalize(X,K.lineNumber),2;for(X=X._fenceOffset;X>0&&Ky(X1(F,K.offset));)D_(K,1,!0),X--}else if(P>=4)D_(K,4,!0);else if(K.blank)fT(K);else return 1;return 0},
finalize:function(K,X){if(X._isFenced){var F=X._string_content,P=F.indexOf("\n");K=F.slice(0,P);F=F.slice(P+1);X.info=YmC(K.trim());X._literal=F}else X._literal=X._string_content.replace(/(\n *)+$/,"\n");X._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(K,X){return!K.blank||X._htmlBlockType!==6&&X._htmlBlockType!==7?0:1},
finalize:function(K,X){X._literal=X._string_content.replace(/(\n *)+$/,"");X._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(K){return K.blank?1:0},
finalize:function(K,X){for(var F,P=!1;X1(X._string_content,0)===91&&(F=NqC(K.inlineParser,X._string_content,K.refmap));)X._string_content=X._string_content.slice(F),P=!0;P&&!XcT.test(X._string_content)&&Px(X)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(K){return F1(K.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(K){return K=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(K,X){if(!X._rowIsDelimiter){K=X._isHeader?"th":"td";for(var F=X._parent._tableColumns,P=X._string_content,H=0,f="",u,J=X._sourcepos[0][0];H<P.length;){switch(P[H]){case "|":u&&(u._string_content=f.trim(),f="",u=null,F--,F<=0&&(H=P.length));break;default:if(!u){u=new Pg(K,[[J,H],[J,H]]);var Z=X._parent._columnAlignment,M=X._parent._tableColumns-F;Z&&M<=Z.length&&M>=0&&(u._alignment=Z[M]);X.appendChild(u)}f+=P[H];u._sourcepos[1][1]=H}H++}u&&(u._string_content=f.trim());X._string_content=
""}},
canContain:function(K){return K!=="row"},
acceptsLines:!1}},qoC=[function(K){if(K.indented||X1(K.currentLine,K.nextNonspace)!==62)return 0;fT(K);D_(K,1,!1);Ky(X1(K.currentLine,K.offset))&&D_(K,1,!0);u4(K);K.addChild("block_quote",K.nextNonspace);return 1},
function(K){var X;if(!K.indented&&(X=K.currentLine.slice(K.nextNonspace).match(Hau))){fT(K);D_(K,X[0].length,!1);u4(K);var F=K.addChild("heading",K.nextNonspace);F.level=X[0].trim().length;F._string_content=K.currentLine.slice(K.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");D_(K,K.currentLine.length-K.offset);return 2}return 0},
function(K){var X;if(!K.indented&&(X=K.currentLine.slice(K.nextNonspace).match(sgZ))){var F=X[0].length;u4(K);var P=K.addChild("code_block",K.nextNonspace);P._isFenced=!0;P._fenceLength=F;P._fenceChar=X[0][0];P._fenceOffset=K.indent;fT(K);D_(K,F,!1);return 2}return 0},
function(K,X){if(!K.indented&&X1(K.currentLine,K.nextNonspace)===60){var F=K.currentLine.slice(K.nextNonspace),P;for(P=1;P<=7;P++)if(xDN[P].test(F)&&(P<7||X.type!=="paragraph"))return u4(K),K.addChild("html_block",K.offset)._htmlBlockType=P,2}return 0},
function(K,X){var F;if(!K.indented&&X.type==="paragraph"&&(F=K.currentLine.slice(K.nextNonspace).match(fAW))){u4(K);var P=new Pg("heading",X.sourcepos);P.level=F[0][0]==="="?1:2;P._string_content=X._string_content;BqL(X,P);Px(X);K.tip=P;D_(K,K.currentLine.length-K.offset,!1);return 2}return 0},
function(K){return!K.indented&&kwZ.test(K.currentLine.slice(K.nextNonspace))?(u4(K),K.addChild("thematic_break",K.nextNonspace),D_(K,K.currentLine.length-K.offset,!1),2):0},
function(K,X){var F,P;if(!(P=K.indented&&X.type!=="list")){a:{var H=X,f=K.currentLine.slice(K.nextNonspace);P={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:K.indent};if(F=f.match(FaT))P.type="bullet",P.bulletChar=F[0][0];else{if(!(F=f.match(PbU))||H.type==="paragraph"&&F[1]!=="1"){F=null;break a}P.type="ordered";P.start=parseInt(F[1],10);P.delimiter=F[2]}var u=X1(K.currentLine,K.nextNonspace+F[0].length);if(u!==-1&&u!==9&&u!==32||H.type==="paragraph"&&!K.currentLine.slice(K.nextNonspace+
F[0].length).match(XcT))F=null;else{fT(K);D_(K,F[0].length,!0);H=K.column;f=K.offset;do D_(K,1,!0),u=X1(K.currentLine,K.offset);while(K.column-H<5&&Ky(u));u=X1(K.currentLine,K.offset)===-1;var J=K.column-H;J>=5||J<1||u?(P.padding=F[0].length+1,K.column=H,K.offset=f,Ky(X1(K.currentLine,K.offset))&&D_(K,1,!0)):P.padding=F[0].length+J;F=P}}P=!F}if(P)return 0;u4(K);(P=K.tip.type!=="list")||(X=X._listData,P=!(X.type===F.type&&X.delimiter===F.delimiter&&X.bulletChar===F.bulletChar));P&&(X=K.addChild("list",
K.nextNonspace),X._listData=F);X=K.addChild("item",K.nextNonspace);X._listData=F;return 1},
function(K){var X;return((X=K.options.shouldParseIndentAsCodeBlock)!=null?X:1)&&K.indented&&K.tip.type!=="paragraph"&&!K.blank?(D_(K,4,!0),u4(K),K.addChild("code_block",K.offset),2):0},
function(K,X){var F=F1(K.currentLine),P=F1(K.lookahead);if(F!==0&&P<0&&Math.abs(F)==Math.abs(P)&&!bkM(X.type)){u4(K);X=K.addChild("table",K.nextNonspace);X._tableRows=1;X._tableColumns=Math.abs(F);F=K.lookahead;if(EA3.test(F)){P=[];for(var H=0,f=!1,u=0,J=void 0;H<F.length;){var Z=u>=3;switch(F[H]){case "-":u++;break;case "|":f&&(P.push(J),J=void 0,u=0);f=!0;break;case ":":J||Z||(J="left"),!J&&Z&&(J="right"),J==="left"&&Z&&(J="center")}H++}F=P}else F=void 0;X._columnAlignment=F;X=K.addChild("row",
K.nextNonspace);X._isHeader=!0;D_(K,K.currentLine.length-K.offset,!1);X._string_content=K.currentLine;return 1}return 0},
function(K,X){if(X.type=="table"&&F1(K.currentLine)!==0){u4(K);var F=X;X=K.addChild("row",K.nextNonspace);F1(K.currentLine)<0?X._rowIsDelimiter=!0:F._tableRows+=1;D_(K,K.currentLine.length-K.offset,!1);X._string_content=K.currentLine;return 2}return 0}],hJO=function(){var K={shouldParseIndentAsCodeBlock:!1};
K=K===void 0?{}:K;this.lastMatchedContainer=this.doc=Crn();this.refmap={};this.lastLineLength=0;this.inlineParser=new s_(K);this.options=K;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=uUV;this.blockStarts=qoC},JAZ=function(K){K.partiallyConsumedTab&&(K.offset+=1,K.tip._string_content+=" ".repeat(4-K.column%
4));
K.tip._string_content+=K.currentLine.slice(K.offset)+"\n"};
hJO.prototype.addChild=function(K,X){for(;!this.blocks[this.tip.type].canContain(K);)this.finalize(this.tip,this.lineNumber-1);K=new Pg(K,[[this.lineNumber,X+1],[0,0]]);K._string_content="";this.tip.appendChild(K);return this.tip=K};
var u4=function(K){if(!K.allClosed){for(;K.oldtip!==K.lastMatchedContainer;){var X=K.oldtip._parent;K.finalize(K.oldtip,K.lineNumber-1);K.oldtip=X}K.allClosed=!0}},D_=function(K,X,F){for(var P=K.currentLine,H,f;X>0&&(f=P[K.offset]);)f==="\t"?(H=4-K.column%4,F?(K.partiallyConsumedTab=H>X,H=H>X?X:H,K.column+=H,K.offset+=K.partiallyConsumedTab?0:1,X-=H):(K.partiallyConsumedTab=!1,K.column+=H,K.offset+=1,--X)):(K.partiallyConsumedTab=!1,K.offset+=1,K.column+=1,--X)},fT=function(K){K.offset=K.nextNonspace;
K.column=K.nextNonspaceColumn;K.partiallyConsumedTab=!1},ZaL=function(K){for(var X=K.currentLine,F=K.offset,P=K.column,H;(H=X.charAt(F))!=="";)if(H===" ")F++,P++;
else if(H==="\t")F++,P+=4-P%4;else break;K.blank=H==="\n"||H==="\r"||H==="";K.nextNonspace=F;K.nextNonspaceColumn=P;K.indent=K.nextNonspaceColumn-K.column;K.indented=K.indent>=4};
hJO.prototype.finalize=function(K,X){var F=K._parent;K._open=!1;K.sourcepos[1]=[X,this.lastLineLength];this.blocks[K.type].finalize(this,K);this.tip=F};
hJO.prototype.parse=function(K){this.tip=this.doc=Crn();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!K)return this.doc;this.options.time&&console.time("preparing input");var X=K.split(DYL),F=X.length;K.charCodeAt(K.length-1)===10&&--F;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(K=0;K<F;K++)a:{var P=void 0,H=X[K],f=X[K+1],u=!0,J=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;H.indexOf("\x00")!==-1&&(H=H.replace(/\0/g,"\ufffd"));this.currentLine=H;for(this.lookahead=f;(P=J._lastChild)&&P._open;){J=P;ZaL(this);switch(this.blocks[J.type].continue(this,J)){case 0:break;case 1:u=!1;break;case 2:this.lastLineLength=H.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!u){J=J._parent;break}}this.allClosed=J===this.oldtip;this.lastMatchedContainer=
J;P=J.type!=="paragraph"&&uUV[J.type].acceptsLines;f=this.blockStarts;for(u=f.length;!P;){ZaL(this);if(!this.indented&&!KaC.test(H.slice(this.nextNonspace))){fT(this);break}for(var Z=0;Z<u;){var M=f[Z](this,J);if(M===1){J=this.tip;break}else if(M===2){J=this.tip;P=!0;break}else Z++}if(Z===u){fT(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){u4(this);this.blank&&J.lastChild&&(J.lastChild._lastLineBlank=!0);P=J.type;f=this.blank&&!(P==="block_quote"||P==="code_block"&&J._isFenced||
P==="item"&&!J._firstChild&&J.sourcepos[0][0]===this.lineNumber);for(u=J;u;)u._lastLineBlank=f,u=u._parent;this.blocks[P].acceptsLines?(JAZ(this),P==="html_block"&&J._htmlBlockType>=1&&J._htmlBlockType<=5&&ImV[J._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(J,this.lineNumber)):this.offset<H.length&&!this.blank&&(this.addChild("paragraph",this.offset),fT(this),JAZ(this))}else JAZ(this);this.lastLineLength=H.length}for(;this.tip;)this.finalize(this.tip,F);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");H=new pIC(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;F=H.next();)X=F.node,K=X.type,F.entering||K!=="paragraph"&&K!=="heading"&&K!=="th"&&K!="td"||this.inlineParser.parse(X);this.options.time&&console.timeEnd("inline parsing");return this.doc};NH3.prototype.render=function(K){K=new pIC(K);var X;this.buffer="";for(this.lastOut="\n";X=K.next();){var F=X.node.type;if(this[F])this[F](X.node,X.entering)}return this.buffer};
NH3.prototype.out=function(K){qf(this,K)};
var qf=function(K,X){K.buffer+=X;K.lastOut=X};
NH3.prototype.cr=function(){this.lastOut!=="\n"&&qf(this,"\n")};var YoC=/^javascript:|vbscript:|file:|data:/i,QgV=/^data:image\/(?:png|gif|jpeg|webp)/i,MuC=function(K){return YoC.test(K)&&!QgV.test(K)};
Hg.prototype=Object.create(NH3.prototype);_.z=Hg.prototype;_.z.text=function(K){this.out(K.literal)};
_.z.html_inline=function(K){this.options.safe?qf(this,"\x3c!-- raw HTML omitted --\x3e"):qf(this,K.literal)};
_.z.html_block=function(K){this.cr();this.options.safe?qf(this,"\x3c!-- raw HTML omitted --\x3e"):qf(this,K.literal);this.cr()};
_.z.softbreak=function(){qf(this,this.options.softbreak)};
_.z.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.z.link=function(K,X){var F=this.attrs(K);X?(this.options.safe&&MuC(K.destination)||F.push(["href",Xv(K.destination,!0)]),K.title&&F.push(["title",Xv(K.title,!0)]),this.tag("a",F)):this.tag("/a")};
_.z.image=function(K,X){X?(this.disableTags===0&&(this.options.safe&&MuC(K.destination)?qf(this,'<img src="" alt="'):qf(this,'<img src="'+Xv(K.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(K.title&&qf(this,'" title="'+Xv(K.title,!0)),qf(this,'" />')))};
_.z.emph=function(K,X){this.tag(X?"em":"/em")};
_.z.strong=function(K,X){this.tag(X?"strong":"/strong")};
_.z.paragraph=function(K,X){var F=K.parent.parent;K=this.attrs(K);F!==null&&F.type==="list"&&F.listTight||(X?(this.cr(),this.tag("p",K)):(this.tag("/p"),this.cr()))};
_.z.heading=function(K,X){var F="h"+K.level;K=this.attrs(K);X?(this.cr(),this.tag(F,K)):(this.tag("/"+F),this.cr())};
_.z.code=function(K){this.tag("code");this.out(K.literal);this.tag("/code")};
_.z.code_block=function(K){var X=K.info?K.info.split(/\s+/):[],F=this.attrs(K);X.length>0&&X[0].length>0&&F.push(["class","language-"+Xv(X[0],!0)]);this.cr();this.tag("pre");this.tag("code",F);this.out(K.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.z.thematic_break=function(K){K=this.attrs(K);this.cr();this.tag("hr",K,!0);this.cr()};
_.z.block_quote=function(K,X){K=this.attrs(K);X?(this.cr(),this.tag("blockquote",K)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.z.list=function(K,X){var F=K.listType==="bullet"?"ul":"ol",P=this.attrs(K);X?(K=K.listStart,K!==null&&K!==1&&P.push(["start",K.toString()]),this.cr(),this.tag(F,P)):(this.cr(),this.tag("/"+F));this.cr()};
_.z.item=function(K,X){K=this.attrs(K);X?this.tag("li",K):(this.tag("/li"),this.cr())};
_.z.custom_inline=function(K,X){X&&K.onEnter?qf(this,K.onEnter):!X&&K.onExit&&qf(this,K.onExit)};
_.z.custom_block=function(K,X){this.cr();X&&K.onEnter?qf(this,K.onEnter):!X&&K.onExit&&qf(this,K.onExit);this.cr()};
_.z.table=function(K,X){K=this.attrs(K);X?(this.cr(),this.tag("table",K)):(this.tag("/table"),this.cr())};
_.z.row=function(K,X){K._rowIsDelimiter||(K=this.attrs(K),X?this.tag("tr",K):this.tag("/tr"))};
_.z.td=function(K,X){var F=this.attrs(K);K._alignment&&F.push(["align",K._alignment]);X?this.tag("td",F):this.tag("/td")};
_.z.th=function(K,X){var F=this.attrs(K);K._alignment&&F.push(["align",K._alignment]);X?this.tag("th",F):this.tag("/th")};
_.z.out=function(K){qf(this,Xv(K,!1))};
_.z.tag=function(K,X,F){if(!(this.disableTags>0)){this.buffer+="<"+K;if(X&&X.length>0){K=0;for(var P;(P=X[K])!==void 0;)this.buffer+=" "+P[0]+'="'+P[1]+'"',K++}F&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.z.attrs=function(K){var X=[];this.options.sourcepos&&(K=K.sourcepos)&&X.push(["data-sourcepos",String(K[0][0])+":"+String(K[0][1])+"-"+String(K[1][0])+":"+String(K[1][1])]);return X};
Hg.prototype.text=Hg.prototype.text;Hg.prototype.html_inline=Hg.prototype.html_inline;Hg.prototype.html_block=Hg.prototype.html_block;Hg.prototype.softbreak=Hg.prototype.softbreak;Hg.prototype.linebreak=Hg.prototype.linebreak;Hg.prototype.link=Hg.prototype.link;Hg.prototype.image=Hg.prototype.image;Hg.prototype.emph=Hg.prototype.emph;Hg.prototype.strong=Hg.prototype.strong;Hg.prototype.paragraph=Hg.prototype.paragraph;Hg.prototype.heading=Hg.prototype.heading;Hg.prototype.code=Hg.prototype.code;
Hg.prototype.code_block=Hg.prototype.code_block;Hg.prototype.thematic_break=Hg.prototype.thematic_break;Hg.prototype.block_quote=Hg.prototype.block_quote;Hg.prototype.list=Hg.prototype.list;Hg.prototype.item=Hg.prototype.item;Hg.prototype.custom_inline=Hg.prototype.custom_inline;Hg.prototype.custom_block=Hg.prototype.custom_block;Hg.prototype.table=Hg.prototype.table;Hg.prototype.row=Hg.prototype.row;Hg.prototype.td=Hg.prototype.td;Hg.prototype.th=Hg.prototype.th;Hg.prototype.out=Hg.prototype.out;
Hg.prototype.tag=Hg.prototype.tag;Hg.prototype.attrs=Hg.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 ncO,cAU,q4w;(function(){function K(e,y){return e<y?-1:e>y?1:e>=y?0:NaN}
function X(e){return function(y,m){return K(e(y),m)}}
function F(){for(var e=0,y=arguments.length,m={},C;e<y;++e){if(!(C=arguments[e]+"")||C in m)throw Error("oe`"+C);m[C]=[]}return new P(m)}
function P(e){this._=e}
function H(e,y){return e.trim().split(/^|\s+/).map(function(m){var C="",sl=m.indexOf(".");sl>=0&&(C=m.slice(sl+1),m=m.slice(0,sl));if(m&&!y.hasOwnProperty(m))throw Error("pe`"+m);return{type:m,name:C}})}
function f(e,y,m){for(var C=0,sl=e.length;C<sl;++C)if(e[C].name===y){e[C]=THd;e=e.slice(0,C).concat(e.slice(C+1));break}m!=null&&e.push({name:y,value:m});return e}
function u(e){var y=e,m=y.indexOf(":");m>=0&&(y=e.slice(0,m))!=="xmlns"&&(e=e.slice(m+1));return lf.hasOwnProperty(y)?{space:lf[y],local:e}:e}
function J(e){return function(){var y=this.ownerDocument,m=this.namespaceURI;return m==="http://www.w3.org/1999/xhtml"&&y.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?y.createElement(e):y.createElementNS(m,e)}}
function Z(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}
function M(e){e=u(e);return(e.local?Z:J)(e)}
function n(){}
function c(e){return e==null?n:function(){return this.querySelector(e)}}
function B(e){return Array(e.length)}
function L(e,y){this.ownerDocument=e.ownerDocument;this.namespaceURI=e.namespaceURI;this._next=null;this._parent=e;this.__data__=y}
function A(e){return function(){return e}}
function d(e,y,m,C,sl,Zl){for(var By=0,jP,kd=y.length,iT=Zl.length;By<iT;++By)(jP=y[By])?(jP.__data__=Zl[By],C[By]=jP):m[By]=new L(e,Zl[By]);for(;By<kd;++By)if(jP=y[By])sl[By]=jP}
function R(e,y,m,C,sl,Zl,By){var jP,kd,iT={},KW=y.length,DQ=Zl.length,gL=Array(KW),QG;for(jP=0;jP<KW;++jP)if(kd=y[jP])gL[jP]=QG="$"+By.call(kd,kd.__data__,jP,y),QG in iT?sl[jP]=kd:iT[QG]=kd;for(jP=0;jP<DQ;++jP)QG="$"+By.call(e,Zl[jP],jP,Zl),(kd=iT[QG])?(C[jP]=kd,kd.__data__=Zl[jP],iT[QG]=null):m[jP]=new L(e,Zl[jP]);for(jP=0;jP<KW;++jP)(kd=y[jP])&&iT[gL[jP]]===kd&&(sl[jP]=kd)}
function l(e,y){return e<y?-1:e>y?1:e>=y?0:NaN}
function a(e){return function(){this.removeAttribute(e)}}
function E(e){return function(){this.removeAttributeNS(e.space,e.local)}}
function V(e,y){return function(){this.setAttribute(e,y)}}
function x(e,y){return function(){this.setAttributeNS(e.space,e.local,y)}}
function N(e,y){return function(){var m=y.apply(this,arguments);m==null?this.removeAttribute(e):this.setAttribute(e,m)}}
function Dl(e,y){return function(){var m=y.apply(this,arguments);m==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,m)}}
function Mq(e){return function(){this.style.removeProperty(e)}}
function pO(e,y,m){return function(){this.style.setProperty(e,y,m)}}
function y9(e,y,m){return function(){var C=y.apply(this,arguments);C==null?this.style.removeProperty(e):this.style.setProperty(e,C,m)}}
function Wy(e,y){return e.style.getPropertyValue(y)||(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView).getComputedStyle(e,null).getPropertyValue(y)}
function eP(e){return function(){delete this[e]}}
function gw(e,y){return function(){this[e]=y}}
function a3(e,y){return function(){var m=y.apply(this,arguments);m==null?delete this[e]:this[e]=m}}
function dL(){this.textContent=""}
function nt(e){return function(){this.textContent=e}}
function ht(e){return function(){var y=e.apply(this,arguments);this.textContent=y==null?"":y}}
function YC(){this.innerHTML=""}
function uu(e){return function(){this.innerHTML=e}}
function X8(e){return function(){var y=e.apply(this,arguments);this.innerHTML=y==null?"":y}}
function qV(){return null}
function J0(){var e=this.parentNode;e&&e.removeChild(this)}
function yd(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function uT(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function SU(e,y,m){e=RC(e,y,m);return function(C){var sl=C.relatedTarget;sl&&(sl===this||sl.compareDocumentPosition(this)&8)||e.call(this,C)}}
function RC(e,y,m){return function(){e.call(this,this.__data__,y,m)}}
function tw(e){return e.trim().split(/^|\s+/).map(function(y){var m="",C=y.indexOf(".");C>=0&&(m=y.slice(C+1),y=y.slice(0,C));return{type:y,name:m}})}
function TE(e){return function(){var y=this.__on;if(y){for(var m=0,C=-1,sl=y.length,Zl;m<sl;++m)(Zl=y[m],e.type&&Zl.type!==e.type||Zl.name!==e.name)?y[++C]=Zl:this.removeEventListener(Zl.type,Zl.listener,Zl.capture);++C?y.length=C:delete this.__on}}}
function NV(e,y,m){var C=KyL.hasOwnProperty(e.type)?SU:RC;return function(sl,Zl,By){sl=this.__on;var jP;Zl=C(y,Zl,By);if(sl){By=0;for(var kd=sl.length;By<kd;++By)if((jP=sl[By]).type===e.type&&jP.name===e.name){this.removeEventListener(jP.type,jP.listener,jP.capture);this.addEventListener(jP.type,jP.listener=Zl,jP.capture=m);jP.value=y;return}}this.addEventListener(e.type,Zl,m);jP={type:e.type,name:e.name,value:y,listener:Zl,capture:m};sl?sl.push(jP):this.__on=[jP]}}
function $E(e,y,m){var C=e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView,sl=C.CustomEvent;typeof sl==="function"?sl=new sl(y,m):(sl=C.document.createEvent("Event"),m?(sl.initEvent(y,m.bubbles,m.cancelable),sl.detail=m.detail):sl.initEvent(y,!1,!1));e.dispatchEvent(sl)}
function bu(e,y){return function(){return $E(this,e,y)}}
function sZ(e,y){return function(){return $E(this,e,y.apply(this,arguments))}}
function tt(e,y){this._groups=e;this._parents=y}
function BF(){return new tt([[document.documentElement]],r45)}
function BN(){this._="@"+(++A4W).toString(36)}
function wL(e,y,m){e.prototype=y.prototype=m;m.constructor=e}
function Zd(e,y){e=Object.create(e.prototype);for(var m in y)e[m]=y[m];return e}
function fs(){}
function ft(e){var y;e=(e+"").trim().toLowerCase();return(y=jik.exec(e))?(y=parseInt(y[1],16),new x5(y>>8&15|y>>4&240,y>>4&15|y&240,(y&15)<<4|y&15,1)):(y=wj8.exec(e))?Bk(parseInt(y[1],16)):(y=y45.exec(e))?new x5(y[1],y[2],y[3],1):(y=Wlt.exec(e))?new x5(y[1]*255/100,y[2]*255/100,y[3]*255/100,1):(y=dLw.exec(e))?z6(y[1],y[2],y[3],y[4]):(y=eUk.exec(e))?z6(y[1]*255/100,y[2]*255/100,y[3]*255/100,y[4]):(y=RUw.exec(e))?qu(y[1],y[2]/100,y[3]/100,1):(y=UL5.exec(e))?qu(y[1],y[2]/100,y[3]/100,y[4]):X0W.hasOwnProperty(e)?
Bk(X0W[e]):e==="transparent"?new x5(NaN,NaN,NaN,0):null}
function Bk(e){return new x5(e>>16&255,e>>8&255,e&255,1)}
function z6(e,y,m,C){C<=0&&(e=y=m=NaN);return new x5(e,y,m,C)}
function OZ(e){e instanceof fs||(e=ft(e));if(!e)return new x5;e=e.rgb();return new x5(e.r,e.g,e.b,e.opacity)}
function TJ(e,y,m,C){return arguments.length===1?OZ(e):new x5(e,y,m,C==null?1:C)}
function x5(e,y,m,C){this.r=+e;this.g=+y;this.b=+m;this.opacity=+C}
function fx(e){e=Math.max(0,Math.min(255,Math.round(e)||0));return(e<16?"0":"")+e.toString(16)}
function qu(e,y,m,C){C<=0?e=y=m=NaN:m<=0||m>=1?e=y=NaN:y<=0&&(e=NaN);return new JV(e,y,m,C)}
function jO(e){if(e instanceof JV)return new JV(e.h,e.s,e.l,e.opacity);e instanceof fs||(e=ft(e));if(!e)return new JV;if(e instanceof JV)return e;e=e.rgb();var y=e.r/255,m=e.g/255,C=e.b/255,sl=Math.min(y,m,C),Zl=Math.max(y,m,C),By=NaN,jP=Zl-sl,kd=(Zl+sl)/2;jP?(By=y===Zl?(m-C)/jP+(m<C)*6:m===Zl?(C-y)/jP+2:(y-m)/jP+4,jP/=kd<.5?Zl+sl:2-Zl-sl,By*=60):jP=kd>0&&kd<1?0:By;return new JV(By,jP,kd,e.opacity)}
function LG(e,y,m,C){return arguments.length===1?jO(e):new JV(e,y,m,C==null?1:C)}
function JV(e,y,m,C){this.h=+e;this.s=+y;this.l=+m;this.opacity=+C}
function to(e,y,m){return(e<60?y+(m-y)*e/60:e<180?m:e<240?y+(m-y)*(240-e)/60:y)*255}
function fl(e){if(e instanceof LO)return new LO(e.l,e.a,e.b,e.opacity);if(e instanceof cN){if(isNaN(e.h))return new LO(e.l,0,0,e.opacity);var y=e.h*FyL;return new LO(e.l,Math.cos(y)*e.c,Math.sin(y)*e.c,e.opacity)}e instanceof x5||(e=OZ(e));var m=sV(e.r),C=sV(e.g),sl=sV(e.b);y=Gn(.2225045*m+.7168786*C+.0606169*sl);if(m===C&&C===sl)var Zl=m=y;else Zl=Gn((.4360747*m+.3850649*C+.1430804*sl)/.96422),m=Gn((.0139322*m+.0971045*C+.7141733*sl)/.82521);return new LO(116*y-16,500*(Zl-y),200*(y-m),e.opacity)}
function LO(e,y,m,C){this.l=+e;this.a=+y;this.b=+m;this.opacity=+C}
function Gn(e){return e>hUo?Math.pow(e,1/3):e/P$C+HYu}
function $d(e){return e>s1?e*e*e:P$C*(e-HYu)}
function nW(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}
function sV(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}
function WJ(e){if(e instanceof cN)return new cN(e.h,e.c,e.l,e.opacity);e instanceof LO||(e=fl(e));if(e.a===0&&e.b===0)return new cN(NaN,0,e.l,e.opacity);var y=Math.atan2(e.b,e.a)*srC;return new cN(y<0?y+360:y,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}
function Y5(e,y,m,C){return arguments.length===1?WJ(e):new cN(e,y,m,C==null?1:C)}
function cN(e,y,m,C){this.h=+e;this.c=+y;this.l=+m;this.opacity=+C}
function MV(e,y,m,C){if(arguments.length===1){var sl=e;if(sl instanceof Sk)sl=new Sk(sl.h,sl.s,sl.l,sl.opacity);else{sl instanceof x5||(sl=OZ(sl));var Zl=sl.g/255,By=sl.b/255,jP=(zVV*By+sl.r/255*-1.7884503806-3.5172982438*Zl)/(zVV+-1.7884503806-3.5172982438);By-=jP;var kd=(1.97294*(Zl-jP)- -.29227*By)/-.90649;By=(Zl=Math.sqrt(kd*kd+By*By)/(1.97294*jP*(1-jP)))?Math.atan2(kd,By)*srC-120:NaN;sl=new Sk(By<0?By+360:By,Zl,jP,sl.opacity)}}else sl=new Sk(e,y,m,C==null?1:C);return sl}
function Sk(e,y,m,C){this.h=+e;this.s=+y;this.l=+m;this.opacity=+C}
function Zs(e,y,m,C,sl){var Zl=e*e,By=Zl*e;return((1-3*e+3*Zl-By)*y+(4-6*Zl+3*By)*m+(1+3*e+3*Zl-3*By)*C+By*sl)/6}
function zE(e){return function(){return e}}
function B$(e,y){return function(m){return e+m*y}}
function Ms(e,y,m){return e=Math.pow(e,m),y=Math.pow(y,m)-e,m=1/m,function(C){return Math.pow(e+C*y,m)}}
function h0(e,y){var m=y-e;return m?B$(e,m>180||m<-180?m-360*Math.round(m/360):m):zE(isNaN(e)?y:e)}
function SO(e){return(e=+e)===1?uU:function(y,m){return m-y?Ms(y,m,e):zE(isNaN(y)?m:y)}}
function uU(e,y){var m=y-e;return m?B$(e,m):zE(isNaN(e)?y:e)}
function dq(e){return function(y){var m=y.length,C=Array(m),sl=Array(m),Zl=Array(m),By;for(By=0;By<m;++By){var jP=TJ(y[By]);C[By]=jP.r||0;sl[By]=jP.g||0;Zl[By]=jP.b||0}C=e(C);sl=e(sl);Zl=e(Zl);jP.opacity=1;return function(kd){jP.r=C(kd);jP.g=sl(kd);jP.b=Zl(kd);return jP+""}}}
function V9(e,y){return e=+e,y-=e,function(m){return e+y*m}}
function Dd(e){return function(){return e}}
function Ds(e){return function(y){return e(y)+""}}
function Kx(e,y){var m=Wy9.lastIndex=dMO.lastIndex=0,C,sl,Zl,By=-1,jP=[],kd=[];e+="";for(y+="";(C=Wy9.exec(e))&&(sl=dMO.exec(y));)(Zl=sl.index)>m&&(Zl=y.slice(m,Zl),jP[By]?jP[By]+=Zl:jP[++By]=Zl),(C=C[0])===(sl=sl[0])?jP[By]?jP[By]+=sl:jP[++By]=sl:(jP[++By]=null,kd.push({i:By,x:V9(C,sl)})),m=dMO.lastIndex;m<y.length&&(Zl=y.slice(m),jP[By]?jP[By]+=Zl:jP[++By]=Zl);return jP.length<2?kd[0]?Ds(kd[0].x):Dd(y):(y=kd.length,function(iT){for(var KW=0,DQ;KW<y;++KW)jP[(DQ=kd[KW]).i]=DQ.x(iT);return jP.join("")})}
function wE(e,y,m,C,sl,Zl){var By,jP,kd;if(By=Math.sqrt(e*e+y*y))e/=By,y/=By;if(kd=e*m+y*C)m-=e*kd,C-=y*kd;if(jP=Math.sqrt(m*m+C*C))m/=jP,C/=jP,kd/=jP;e*C<y*m&&(e=-e,y=-y,kd=-kd,By=-By);return{translateX:sl,translateY:Zl,rotate:Math.atan2(y,e)*fot,skewX:Math.atan(kd)*fot,scaleX:By,scaleY:jP}}
function $i(e,y,m,C){function sl(iT){return iT.length?iT.pop()+" ":""}
function Zl(iT,KW,DQ,gL,QG,MR){iT!==DQ||KW!==gL?(QG=QG.push("translate(",null,y,null,m),MR.push({i:QG-4,x:V9(iT,DQ)},{i:QG-2,x:V9(KW,gL)})):(DQ||gL)&&QG.push("translate("+DQ+y+gL+m)}
function By(iT,KW,DQ,gL){iT!==KW?(iT-KW>180?KW+=360:KW-iT>180&&(iT+=360),gL.push({i:DQ.push(sl(DQ)+"rotate(",null,C)-2,x:V9(iT,KW)})):KW&&DQ.push(sl(DQ)+"rotate("+KW+C)}
function jP(iT,KW,DQ,gL){iT!==KW?gL.push({i:DQ.push(sl(DQ)+"skewX(",null,C)-2,x:V9(iT,KW)}):KW&&DQ.push(sl(DQ)+"skewX("+KW+C)}
function kd(iT,KW,DQ,gL,QG,MR){iT!==DQ||KW!==gL?(QG=QG.push(sl(QG)+"scale(",null,",",null,")"),MR.push({i:QG-4,x:V9(iT,DQ)},{i:QG-2,x:V9(KW,gL)})):DQ===1&&gL===1||QG.push(sl(QG)+"scale("+DQ+","+gL+")")}
return function(iT,KW){var DQ=[],gL=[];iT=e(iT);KW=e(KW);Zl(iT.translateX,iT.translateY,KW.translateX,KW.translateY,DQ,gL);By(iT.rotate,KW.rotate,DQ,gL);jP(iT.skewX,KW.skewX,DQ,gL);kd(iT.scaleX,iT.scaleY,KW.scaleX,KW.scaleY,DQ,gL);iT=KW=null;return function(QG){for(var MR=-1,Ov=gL.length,of;++MR<Ov;)DQ[(of=gL[MR]).i]=of.x(QG);return DQ.join("")}}}
function dj(e){return function(y,m){var C=e((y=LG(y)).h,(m=LG(m)).h),sl=uU(y.s,m.s),Zl=uU(y.l,m.l),By=uU(y.opacity,m.opacity);return function(jP){y.h=C(jP);y.s=sl(jP);y.l=Zl(jP);y.opacity=By(jP);return y+""}}}
function Y_(e){return function(y,m){var C=e((y=Y5(y)).h,(m=Y5(m)).h),sl=uU(y.c,m.c),Zl=uU(y.l,m.l),By=uU(y.opacity,m.opacity);return function(jP){y.h=C(jP);y.c=sl(jP);y.l=Zl(jP);y.opacity=By(jP);return y+""}}}
function Qg(e){return function C(m){function sl(Zl,By){var jP=e((Zl=MV(Zl)).h,(By=MV(By)).h),kd=uU(Zl.s,By.s),iT=uU(Zl.l,By.l),KW=uU(Zl.opacity,By.opacity);return function(DQ){Zl.h=jP(DQ);Zl.s=kd(DQ);Zl.l=iT(Math.pow(DQ,m));Zl.opacity=KW(DQ);return Zl+""}}
m=+m;sl.gamma=C;return sl}(1)}
function Q0(){return hx||(DML(bt4),hx=$I.now()+QD4)}
function bt4(){hx=0}
function Mr(){this._call=this._time=this._next=null}
function aH(e,y,m){var C=new Mr;C.restart(e,y,m);return C}
function t$(){hx=(Mjy=$I.now())+QD4;zx=Oq=0;try{Q0();++zx;for(var e=nMl,y;e;)(y=hx-e._time)>=0&&e._call.call(null,y),e=e._next;--zx}finally{zx=0;e=nMl;for(var m=Infinity;e;)if(e._call){m>e._time&&(m=e._time);var C=e;e=e._next}else y=e._next,e._next=null,e=C?C._next=y:nMl=y;VL=C;$T(m);hx=0}}
function na9(){var e=$I.now(),y=e-Mjy;y>1E3&&(QD4-=y,Mjy=e)}
function $T(e){zx||(Oq&&(Oq=clearTimeout(Oq)),e-hx>24?(e<Infinity&&(Oq=setTimeout(t$,e-$I.now()-QD4)),gi&&(gi=clearInterval(gi))):(gi||(Mjy=$I.now(),gi=setInterval(na9,1E3)),zx=1,DML(t$)))}
function uzu(e,y,m){var C=new Mr;y=y==null?0:+y;C.restart(function(sl){C.stop();e(sl+y)},y,m);
return C}
function eVP(e,y,m,C,sl,Zl){var By=e.__transition;if(!By)e.__transition={};else if(m in By)return;mL5(e,m,{name:y,index:C,group:sl,on:Gto,tween:lZw,time:Zl.time,delay:Zl.delay,duration:Zl.duration,ease:Zl.ease,timer:null,state:0})}
function RV4(e,y){e=Fk(e,y);if(e.state>0)throw Error("qe");return e}
function mL(e,y){e=Fk(e,y);if(e.state>2)throw Error("re");return e}
function Fk(e,y){e=e.__transition;if(!e||!(e=e[y]))throw Error("se");return e}
function mL5(e,y,m){function C(kd){var iT,KW;if(m.state!==1)return Zl();for(gL in By){var DQ=By[gL];if(DQ.name===m.name){if(DQ.state===3)return uzu(C);DQ.state===4?(DQ.state=6,DQ.timer.stop(),DQ.on.call("interrupt",e,e.__data__,DQ.index,DQ.group),delete By[gL]):+gL<y&&(DQ.state=6,DQ.timer.stop(),delete By[gL])}}uzu(function(){m.state===3&&(m.state=4,m.timer.restart(sl,m.delay,m.time),sl(kd))});
m.state=2;m.on.call("start",e,e.__data__,m.index,m.group);if(m.state===2){m.state=3;jP=Array(KW=m.tween.length);var gL=0;for(iT=-1;gL<KW;++gL)if(DQ=m.tween[gL].value.call(e,e.__data__,m.index,m.group))jP[++iT]=DQ;jP.length=iT+1}}
function sl(kd){kd=kd<m.duration?m.ease.call(null,kd/m.duration):(m.timer.restart(Zl),m.state=5,1);for(var iT=-1,KW=jP.length;++iT<KW;)jP[iT].call(null,kd);m.state===5&&(m.on.call("end",e,e.__data__,m.index,m.group),Zl())}
function Zl(){m.state=6;m.timer.stop();delete By[y];for(var kd in By)return;delete e.__transition}
var By=e.__transition,jP;By[y]=m;m.timer=aH(function(kd){m.state=1;m.timer.restart(C,m.delay,m.time);m.delay<=kd&&C(kd-m.delay)},0,m.time)}
function vAG(e,y){var m,C;return function(){var sl=mL(this,e),Zl=sl.tween;if(Zl!==m){C=m=Zl;Zl=0;for(var By=C.length;Zl<By;++Zl)if(C[Zl].name===y){C=C.slice();C.splice(Zl,1);break}}sl.tween=C}}
function aZW(e,y,m){var C,sl;if(typeof m!=="function")throw Error();return function(){var Zl=mL(this,e),By=Zl.tween;if(By!==C){sl=(C=By).slice();By={name:y,value:m};for(var jP=0,kd=sl.length;jP<kd;++jP)if(sl[jP].name===y){sl[jP]=By;break}jP===kd&&sl.push(By)}Zl.tween=sl}}
function UMl(e,y,m){var C=e._id;e.each(function(){var sl=mL(this,C);(sl.value||(sl.value={}))[y]=m.apply(this,arguments)});
return function(sl){return Fk(sl,C).value[y]}}
function qKZ(e,y){var m;return(typeof y==="number"?V9:y instanceof ft?JLZ:(m=ft(y))?(y=m,JLZ):Kx)(e,y)}
function tNG(e){return function(){this.removeAttribute(e)}}
function $Ls(e){return function(){this.removeAttributeNS(e.space,e.local)}}
function Okk(e,y,m){var C,sl;return function(){var Zl=this.getAttribute(e);return Zl===m?null:Zl===C?sl:sl=y(C=Zl,m)}}
function VNF(e,y,m){var C,sl;return function(){var Zl=this.getAttributeNS(e.space,e.local);return Zl===m?null:Zl===C?sl:sl=y(C=Zl,m)}}
function gAo(e,y,m){var C,sl,Zl;return function(){var By=m(this);if(By==null)return void this.removeAttribute(e);var jP=this.getAttribute(e);return jP===By?null:jP===C&&By===sl?Zl:Zl=y(C=jP,sl=By)}}
function EAs(e,y,m){var C,sl,Zl;return function(){var By=m(this);if(By==null)return void this.removeAttributeNS(e.space,e.local);var jP=this.getAttributeNS(e.space,e.local);return jP===By?null:jP===C&&By===sl?Zl:Zl=y(C=jP,sl=By)}}
function bkw(e,y){function m(){var C=this,sl=y.apply(C,arguments);return sl&&function(Zl){C.setAttributeNS(e.space,e.local,sl(Zl))}}
m._value=y;return m}
function CrJ(e,y){function m(){var C=this,sl=y.apply(C,arguments);return sl&&function(Zl){C.setAttribute(e,sl(Zl))}}
m._value=y;return m}
function NHs(e,y){return function(){RV4(this,e).delay=+y.apply(this,arguments)}}
function ikF(e,y){return y=+y,function(){RV4(this,e).delay=y}}
function xLt(e,y){return function(){mL(this,e).duration=+y.apply(this,arguments)}}
function IZJ(e,y){return y=+y,function(){mL(this,e).duration=y}}
function ktk(e,y){if(typeof y!=="function")throw Error();return function(){mL(this,e).ease=y}}
function KgW(e){return(e+"").trim().split(/^|\s+/).every(function(y){var m=y.indexOf(".");m>=0&&(y=y.slice(0,m));return!y||y==="start"})}
function XLv(e,y,m){var C,sl,Zl=KgW(y)?RV4:mL;return function(){var By=Zl(this,e),jP=By.on;if(jP!==C)(sl=(C=jP).copy()).on(y,m);By.on=sl}}
function FgJ(e){return function(){var y=this.parentNode,m;for(m in this.__transition)if(+m!==e)return;y&&y.removeChild(this)}}
function PQ1(e,y){var m,C,sl;return function(){var Zl=Wy(this,e),By=(this.style.removeProperty(e),Wy(this,e));return Zl===By?null:Zl===m&&By===C?sl:sl=y(m=Zl,C=By)}}
function HMt(e){return function(){this.style.removeProperty(e)}}
function scG(e,y,m){var C,sl;return function(){var Zl=Wy(this,e);return Zl===m?null:Zl===C?sl:sl=y(C=Zl,m)}}
function ztW(e,y,m){var C,sl,Zl;return function(){var By=Wy(this,e),jP=m(this);jP==null&&(jP=(this.style.removeProperty(e),Wy(this,e)));return By===jP?null:By===C&&jP===sl?Zl:Zl=y(C=By,sl=jP)}}
function fR5(e,y,m){function C(){var sl=this,Zl=y.apply(sl,arguments);return Zl&&function(By){sl.style.setProperty(e,Zl(By),m)}}
C._value=y;return C}
function DeJ(e){return function(){this.textContent=e}}
function uXJ(e){return function(){var y=e(this);this.textContent=y==null?"":y}}
function zK(e,y,m,C){this._groups=e;this._parents=y;this._name=m;this._id=C}
function hV3(e){return{type:e}}
function mMM(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function cZ4(){}
function ZYC(e,y){var m=new cZ4;if(e instanceof cZ4)e.each(function(By,jP){m.set(jP,By)});
else if(Array.isArray(e)){var C=-1,sl=e.length,Zl;if(y==null)for(;++C<sl;)m.set(C,e[C]);else for(;++C<sl;)m.set(y(Zl=e[C],C,e),Zl)}else if(e)for(C in e)m.set(C,e[C]);return m}
function pMT(){}
function YKO(e){return function(y){for(var m={},C=0;C<e.length;C++)m[e[C]]=y[C]||"";return m}}
function qXv(e,y){var m=YKO(e);return function(C,sl){return y(m(C),sl,e)}}
function JbW(e){var y=Object.create(null),m=[];e.forEach(function(C){for(var sl in C)sl in y||m.push(y[sl]=sl)});
return m}
function QrL(e){function y(By,jP){function kd(){if(MR)return Giy;if(Ov)return Ov=!1,MTu;var t9,xL=DQ,BW;if(By.charCodeAt(xL)===34){for(;DQ++<KW&&By.charCodeAt(DQ)!==34||By.charCodeAt(++DQ)===34;);(t9=DQ)>=KW?MR=!0:(BW=By.charCodeAt(DQ++))===10?Ov=!0:BW===13&&(Ov=!0,By.charCodeAt(DQ)===10&&++DQ);return By.slice(xL+1,t9-1).replace(/""/g,'"')}for(;DQ<KW;){if((BW=By.charCodeAt(t9=DQ++))===10)Ov=!0;else if(BW===13)Ov=!0,By.charCodeAt(DQ)===10&&++DQ;else if(BW!==Zl)continue;return By.slice(xL,t9)}return MR=
!0,By.slice(xL,KW)}
var iT=[],KW=By.length,DQ=0,gL=0,QG,MR=KW<=0,Ov=!1;By.charCodeAt(KW-1)===10&&--KW;for(By.charCodeAt(KW-1)===13&&--KW;(QG=kd())!==Giy;){for(var of=[];QG!==MTu&&QG!==Giy;)of.push(QG),QG=kd();jP&&(of=jP(of,gL++))==null||iT.push(of)}return iT}
function m(By){return By.map(C).join(e)}
function C(By){return By==null?"":sl.test(By)?'"'+By.replace(/"/g,'""')+'"':By}
var sl=new RegExp('["'+e+"\n\r]"),Zl=e.charCodeAt(0);return{parse:function(By,jP){var kd,iT;By=y(By,function(KW,DQ){if(kd)return kd(KW,DQ-1);iT=KW;kd=jP?qXv(KW,jP):YKO(KW)});
By.columns=iT||[];return By},
parseRows:y,format:function(By,jP){jP==null&&(jP=JbW(By));return[jP.map(C).join(e)].concat(By.map(function(kd){return jP.map(function(iT){return C(kd[iT])}).join(e)})).join("\n")},
formatRows:function(By){return By.map(m).join("\n")}}}
function ZMG(e){if(!e.ok)throw Error("te`"+e.status+"`"+e.statusText);return e.text()}
function n4W(e){return function(y,m,C){arguments.length===2&&typeof m==="function"&&(C=m,m=void 0);return fetch(y,m).then(ZMG).then(function(sl){return e(sl,C)})}}
function cLV(e,y,m,C){if(isNaN(y)||isNaN(m))return e;var sl,Zl=e._root;C={data:C};var By=e._x0,jP=e._y0,kd=e._x1,iT=e._y1,KW,DQ,gL,QG,MR;if(!Zl)return e._root=C,e;for(;Zl.length;)if((gL=y>=(KW=(By+kd)/2))?By=KW:kd=KW,(QG=m>=(DQ=(jP+iT)/2))?jP=DQ:iT=DQ,sl=Zl,!(Zl=Zl[MR=QG<<1|gL]))return sl[MR]=C,e;var Ov=+e._x.call(null,Zl.data);var of=+e._y.call(null,Zl.data);if(y===Ov&&m===of)return C.next=Zl,sl?sl[MR]=C:e._root=C,e;do sl=sl?sl[MR]=Array(4):e._root=Array(4),(gL=y>=(KW=(By+kd)/2))?By=KW:kd=KW,(QG=
m>=(DQ=(jP+iT)/2))?jP=DQ:iT=DQ;while((MR=QG<<1|gL)===(gL=(of>=DQ)<<1|Ov>=KW));return sl[gL]=Zl,sl[MR]=C,e}
function Ij(e,y,m,C,sl){this.node=e;this.x0=y;this.y0=m;this.x1=C;this.y1=sl}
function YX8(e){return e[0]}
function QcJ(e){return e[1]}
function lo9(e,y,m,C,sl,Zl){this._x=e;this._y=y;this._x0=m;this._y0=C;this._x1=sl;this._y1=Zl;this._root=void 0}
function p0E(e){for(var y={data:e.data},m=y;e=e.next;)m=m.next={data:e.data};return y}
function BsO(e,y){if((y=(e=y?e.toExponential(y-1):e.toExponential()).indexOf("e"))<0)return null;var m=e.slice(0,y);return[m.length>1?m[0]+m.slice(2):m,+e.slice(y+1)]}
function M3W(e){return e=BsO(Math.abs(e)),e?e[1]:NaN}
function n_G(e,y){return function(m,C){for(var sl=m.length,Zl=[],By=0,jP=e[0],kd=0;sl>0&&jP>0;){kd+jP+1>C&&(jP=Math.max(1,C-kd));Zl.push(m.substring(sl-=jP,sl+jP));if((kd+=jP+1)>C)break;jP=e[By=(By+1)%e.length]}return Zl.reverse().join(y)}}
function cbF(e){return function(y){return y.replace(/[0-9]/g,function(m){return e[+m]})}}
function v4T(e){return new aoP(e)}
function aoP(e){if(!(y=pLG.exec(e)))throw Error("ue`"+e);var y;this.fill=y[1]||" ";this.align=y[2]||">";this.sign=y[3]||"-";this.symbol=y[4]||"";this.zero=!!y[5];this.width=y[6]&&+y[6];this.comma=!!y[7];this.precision=y[8]&&+y[8].slice(1);this.trim=!!y[9];this.type=y[10]||""}
function BZL(e,y){y=BsO(e,y);if(!y)return e+"";e=y[0];y=y[1];return y<0?"0."+Array(-y).join("0")+e:e.length>y+1?e.slice(0,y+1)+"."+e.slice(y+1):e+Array(y-e.length+2).join("0")}
function SKC(e){return e}
function Bdt(e){function y(jP){function kd(EB){var J9=BW,WF=Pp,qR,Xm;if(xL==="c")WF=Iz(EB)+WF,EB="";else{EB=+EB;var cF=EB<0;EB=Iz(Math.abs(EB),of);if(t9){var Og=EB.length,TT=1,$g=-1;a:for(;TT<Og;++TT)switch(EB[TT]){case ".":$g=qR=TT;break;case "0":$g===0&&($g=TT);qR=TT;break;default:if(!+EB[TT])break a;$g>0&&($g=0)}EB=$g>0?EB.slice(0,$g)+EB.slice(qR+1):EB}cF&&+EB===0&&(cF=!1);J9=(cF?DQ==="("?DQ:"-":DQ==="-"||DQ==="("?"":DQ)+J9;WF=(xL==="s"?o4t[8+Lyt/3]:"")+WF+(cF&&DQ==="("?")":"");if(p8)for(cF=-1,
qR=EB.length;++cF<qR;)if(Xm=EB.charCodeAt(cF),48>Xm||Xm>57){WF=(Xm===46?sl+EB.slice(cF+1):EB.slice(cF))+WF;EB=EB.slice(0,cF);break}}Ov&&!QG&&(EB=m(EB,Infinity));Xm=J9.length+EB.length+WF.length;cF=Xm<MR?Array(MR-Xm+1).join(iT):"";Ov&&QG&&(EB=m(cF+EB,cF.length?MR-WF.length:Infinity),cF="");switch(KW){case "<":EB=J9+EB+WF+cF;break;case "=":EB=J9+cF+EB+WF;break;case "^":EB=cF.slice(0,Xm=cF.length>>1)+J9+EB+WF+cF.slice(Xm);break;default:EB=cF+J9+EB+WF}return Zl(EB)}
jP=v4T(jP);var iT=jP.fill,KW=jP.align,DQ=jP.sign,gL=jP.symbol,QG=jP.zero,MR=jP.width,Ov=jP.comma,of=jP.precision,t9=jP.trim,xL=jP.type;xL==="n"?(Ov=!0,xL="g"):TZO[xL]||(of==null&&(of=12),t9=!0,xL="g");if(QG||iT==="0"&&KW==="=")QG=!0,iT="0",KW="=";var BW=gL==="$"?C[0]:gL==="#"&&/[boxX]/.test(xL)?"0"+xL.toLowerCase():"",Pp=gL==="$"?C[1]:/[%p]/.test(xL)?By:"",Iz=TZO[xL],p8=/[defgprs%]/.test(xL);of=of==null?6:/[gprs]/.test(xL)?Math.max(1,Math.min(21,of)):Math.max(0,Math.min(20,of));kd.toString=function(){return jP+
""};
return kd}
var m=e.grouping&&e.thousands?n_G(e.grouping,e.thousands):SKC,C=e.currency,sl=e.decimal,Zl=e.numerals?cbF(e.numerals):SKC,By=e.percent||"%";return{format:y,formatPrefix:function(jP,kd){var iT=y((jP=v4T(jP),jP.type="f",jP));jP=Math.max(-8,Math.min(8,Math.floor(M3W(kd)/3)))*3;var KW=Math.pow(10,-jP),DQ=o4t[8+jP/3];return function(gL){return iT(KW*gL)+DQ}}}}
function hb(){this.reset()}
function rLZ(e,y,m){var C=e.s=y+m,sl=C-y;e.t=y-(C-sl)+(m-sl)}
function Sgd(e){return e>1?vG:e<-1?-vG:Math.asin(e)}
function SXV(){}
function ALC(e){var y=e[0];e=e[1];var m=an(e);return[m*an(y),m*jJ(y),jJ(e)]}
function jrC(e,y){return[e[1]*y[2]-e[2]*y[1],e[2]*y[0]-e[0]*y[2],e[0]*y[1]-e[1]*y[0]]}
function w0E(e){var y=oMP(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=y;e[1]/=y;e[2]/=y}
function o_8(){var e=[],y;return{point:function(m,C){y.push([m,C])},
lineStart:function(){e.push(y=[])},
lineEnd:SXV,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},
result:function(){var m=e;e=[];y=null;return m}}}
function LhO(e,y,m,C){this.x=e;this.z=y;this.o=m;this.e=C;this.v=!1;this.n=this.p=null}
function LgV(e,y,m,C,sl){var Zl=[],By=[];e.forEach(function(DQ){if(!((gL=DQ.length-1)<=0)){var gL,QG=DQ[0],MR=DQ[gL],Ov=QG;if(f3(Ov[0]-MR[0])<1E-6&&f3(Ov[1]-MR[1])<1E-6){sl.lineStart();for(jP=0;jP<gL;++jP)sl.point((QG=DQ[jP])[0],QG[1]);sl.lineEnd()}else Zl.push(gL=new LhO(QG,DQ,null,!0)),By.push(gL.o=new LhO(QG,null,gL,!1)),Zl.push(gL=new LhO(MR,DQ,null,!1)),By.push(gL.o=new LhO(MR,null,gL,!0))}});
if(Zl.length){By.sort(y);yLQ(Zl);yLQ(By);var jP=0;for(e=By.length;jP<e;++jP)By[jP].e=m=!m;m=Zl[0];for(var kd;;){for(var iT=m,KW=!0;iT.v;)if((iT=iT.n)===m)return;y=iT.z;sl.lineStart();do{iT.v=iT.o.v=!0;if(iT.e){if(KW)for(jP=0,e=y.length;jP<e;++jP)sl.point((kd=y[jP])[0],kd[1]);else C(iT.x,iT.n.x,1,sl);iT=iT.n}else{if(KW)for(y=iT.p.z,jP=y.length-1;jP>=0;--jP)sl.point((kd=y[jP])[0],kd[1]);else C(iT.x,iT.p.x,-1,sl);iT=iT.p}iT=iT.o;y=iT.z;KW=!KW}while(!iT.v);sl.lineEnd()}}}
function yLQ(e){if(y=e.length){for(var y,m=0,C=e[0],sl;++m<y;)C.n=sl=e[m],sl.p=C,C=sl;C.n=sl=e[0];sl.p=C}}
function TdG(e){return e.length>1}
function rbo(e,y){return((e=e.x)[0]<0?e[1]-vG-1E-6:vG-e[1])-((y=y.x)[0]<0?y[1]-vG-1E-6:vG-y[1])}
function tTl(){}
function WyO(e){return function(y,m){var C=an(y),sl=an(m);C=e(C*sl);return[C*sl*jJ(y),C*jJ(m)]}}
function Eq(e){return function(y,m){var C=oMP(y*y+m*m),sl=e(C),Zl=jJ(sl);sl=an(sl);return[dMW(y*Zl,C*sl),Sgd(C&&m*Zl/C)]}}
function Abv(e){var y=0,m=e.children,C=m&&m.length;if(C)for(;--C>=0;)y+=m[C].value;else y=1;e.value=y}
function eVU(e,y){var m=new bn(e);e=+e.value&&(m.value=e.value);var C,sl=[m],Zl,By,jP,kd;for(y==null&&(y=jcw);C=sl.pop();)if(e&&(C.value=+C.data.value),(By=y(C.data))&&(kd=By.length))for(C.children=Array(kd),jP=kd-1;jP>=0;--jP)sl.push(Zl=C.children[jP]=new bn(By[jP])),Zl.parent=C,Zl.depth=C.depth+1;return m.eachBefore(wLk)}
function jcw(e){return e.children}
function ybV(e){e.data=e.data.data}
function wLk(e){var y=0;do e.height=y;while((e=e.parent)&&e.height<++y)}
function bn(e){this.data=e;this.depth=this.height=0;this.parent=null}
function M$(e,y,m,C){function sl(Zl){return e(Zl=new Date(+Zl)),Zl}
sl.floor=sl;sl.ceil=function(Zl){return e(Zl=new Date(Zl-1)),y(Zl,1),e(Zl),Zl};
sl.round=function(Zl){var By=sl(Zl),jP=sl.ceil(Zl);return Zl-By<jP-Zl?By:jP};
sl.offset=function(Zl,By){return y(Zl=new Date(+Zl),By==null?1:Math.floor(By)),Zl};
sl.range=function(Zl,By,jP){var kd=[],iT;Zl=sl.ceil(Zl);jP=jP==null?1:Math.floor(jP);if(!(Zl<By&&jP>0))return kd;do kd.push(iT=new Date(+Zl)),y(Zl,jP),e(Zl);while(iT<Zl&&Zl<By);return kd};
sl.filter=function(Zl){return M$(function(By){if(By>=By)for(;e(By),!Zl(By);)By.setTime(By-1)},function(By,jP){if(By>=By)if(jP<0)for(;++jP<=0;)for(;y(By,-1),!Zl(By););
else for(;--jP>=0;)for(;y(By,1),!Zl(By););})};
m&&(sl.count=function(Zl,By){$Mn.setTime(+Zl);OY9.setTime(+By);e($Mn);e(OY9);return Math.floor(m($Mn,OY9))},sl.every=function(Zl){Zl=Math.floor(Zl);
return isFinite(Zl)&&Zl>0?Zl>1?sl.filter(C?function(By){return C(By)%Zl===0}:function(By){return sl.count(0,By)%Zl===0}):sl:null});
return sl}
function Gz(e){return M$(function(y){y.setDate(y.getDate()-(y.getDay()+7-e)%7);y.setHours(0,0,0,0)},function(y,m){y.setDate(y.getDate()+m*7)},function(y,m){return(m-y-(m.getTimezoneOffset()-y.getTimezoneOffset())*6E4)/6048E5})}
function l8(e){return M$(function(y){y.setUTCDate(y.getUTCDate()-(y.getUTCDay()+7-e)%7);y.setUTCHours(0,0,0,0)},function(y,m){y.setUTCDate(y.getUTCDate()+m*7)},function(y,m){return(m-y)/6048E5})}
function Wg5(e){if(0<=e.y&&e.y<100){var y=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);y.setFullYear(e.y);return y}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}
function TsO(e){if(0<=e.y&&e.y<100){var y=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));y.setUTCFullYear(e.y);return y}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}
function C6(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}
function deW(e){function y(WF,qR){return function(Xm){var cF=[],Og=-1,TT=0,$g=WF.length,YU,Te;for(Xm instanceof Date||(Xm=new Date(+Xm));++Og<$g;)if(WF.charCodeAt(Og)===37){cF.push(WF.slice(TT,Og));(TT=RVt[YU=WF.charAt(++Og)])!=null?YU=WF.charAt(++Og):TT=YU==="e"?" ":"0";if(Te=qR[YU])YU=Te(Xm,TT);cF.push(YU);TT=Og+1}cF.push(WF.slice(TT,Og));return cF.join("")}}
function m(WF,qR){return function(Xm){var cF=C6(1900);if(C(cF,WF,Xm,0)!=Xm.length)return null;if("Q"in cF)return new Date(cF.Q);"p"in cF&&(cF.H=cF.H%12+cF.p*12);if("V"in cF){if(cF.V<1||cF.V>53)return null;"w"in cF||(cF.w=1);if("Z"in cF){Xm=TsO(C6(cF.y));var Og=Xm.getUTCDay();Xm=Og>4||Og===0?VT3.ceil(Xm):VT3(Xm);Xm=UMZ.offset(Xm,(cF.V-1)*7);cF.y=Xm.getUTCFullYear();cF.m=Xm.getUTCMonth();cF.d=Xm.getUTCDate()+(cF.w+6)%7}else Xm=qR(C6(cF.y)),Og=Xm.getDay(),Xm=Og>4||Og===0?g49.ceil(Xm):g49(Xm),Xm=hVC.offset(Xm,
(cF.V-1)*7),cF.y=Xm.getFullYear(),cF.m=Xm.getMonth(),cF.d=Xm.getDate()+(cF.w+6)%7}else if("W"in cF||"U"in cF)"w"in cF||(cF.w="u"in cF?cF.u%7:"W"in cF?1:0),Og="Z"in cF?TsO(C6(cF.y)).getUTCDay():qR(C6(cF.y)).getDay(),cF.m=0,cF.d="W"in cF?(cF.w+6)%7+cF.W*7-(Og+5)%7:cF.w+cF.U*7-(Og+6)%7;return"Z"in cF?(cF.H+=cF.Z/100|0,cF.M+=cF.Z%100,TsO(cF)):qR(cF)}}
function C(WF,qR,Xm,cF){for(var Og=0,TT=qR.length,$g=Xm.length,YU;Og<TT;){if(cF>=$g)return-1;YU=qR.charCodeAt(Og++);if(YU===37){if(YU=qR.charAt(Og++),YU=J9[YU in RVt?qR.charAt(Og++):YU],!YU||(cF=YU(WF,Xm,cF))<0)return-1}else if(YU!=Xm.charCodeAt(cF++))return-1}return cF}
var sl=e.dateTime,Zl=e.date,By=e.time,jP=e.periods,kd=e.days,iT=e.shortDays,KW=e.months,DQ=e.shortMonths,gL=NP(jP),QG=xI(jP),MR=NP(kd),Ov=xI(kd),of=NP(iT),t9=xI(iT),xL=NP(KW),BW=xI(KW),Pp=NP(DQ),Iz=xI(DQ),p8={a:function(WF){return iT[WF.getDay()]},
A:function(WF){return kd[WF.getDay()]},
b:function(WF){return DQ[WF.getMonth()]},
B:function(WF){return KW[WF.getMonth()]},
c:null,d:mMt,e:mMt,f:et5,H:Rt8,I:UeG,j:htw,L:GiT,m:mek,M:GQJ,p:function(WF){return jP[+(WF.getHours()>=12)]},
Q:loO,s:v4u,S:lRs,u:v_d,U:aRv,V:t3s,w:$ek,W:OMG,x:null,X:null,y:V3G,Y:g_8,Z:E_k,"%":aoU},EB={a:function(WF){return iT[WF.getUTCDay()]},
A:function(WF){return kd[WF.getUTCDay()]},
b:function(WF){return DQ[WF.getUTCMonth()]},
B:function(WF){return KW[WF.getUTCMonth()]},
c:null,d:tTZ,e:tTZ,f:bM1,H:CQs,I:Ndv,j:iMW,L:$ME,m:xe1,M:IRd,p:function(WF){return jP[+(WF.getUTCHours()>=12)]},
Q:loO,s:v4u,S:kQV,u:KDd,U:Xz8,V:FDJ,w:Ptv,W:Hbv,x:null,X:null,y:sYk,Y:z1t,Z:fnG,"%":aoU},J9={a:function(WF,qR,Xm){return(qR=of.exec(qR.slice(Xm)))?(WF.w=t9[qR[0].toLowerCase()],Xm+qR[0].length):-1},
A:function(WF,qR,Xm){return(qR=MR.exec(qR.slice(Xm)))?(WF.w=Ov[qR[0].toLowerCase()],Xm+qR[0].length):-1},
b:function(WF,qR,Xm){return(qR=Pp.exec(qR.slice(Xm)))?(WF.m=Iz[qR[0].toLowerCase()],Xm+qR[0].length):-1},
B:function(WF,qR,Xm){return(qR=xL.exec(qR.slice(Xm)))?(WF.m=BW[qR[0].toLowerCase()],Xm+qR[0].length):-1},
c:function(WF,qR,Xm){return C(WF,sl,qR,Xm)},
d:OYO,e:OYO,f:D_V,H:VTC,I:VTC,j:u7t,L:qEW,m:JIJ,M:Zb8,p:function(WF,qR,Xm){return(qR=gL.exec(qR.slice(Xm)))?(WF.p=QG[qR[0].toLowerCase()],Xm+qR[0].length):-1},
Q:YEG,s:QY8,S:Mhs,u:no1,U:cIG,V:pz8,w:BPv,W:SEV,x:function(WF,qR,Xm){return C(WF,Zl,qR,Xm)},
X:function(WF,qR,Xm){return C(WF,By,qR,Xm)},
y:ooW,Y:LDF,Z:TPk,"%":rId};p8.x=y(Zl,p8);p8.X=y(By,p8);p8.c=y(sl,p8);EB.x=y(Zl,EB);EB.X=y(By,EB);EB.c=y(sl,EB);return{format:function(WF){var qR=y(WF,p8);qR.toString=function(){return WF};
return qR},
parse:function(WF){var qR=m(WF,Wg5);qR.toString=function(){return WF};
return qR},
utcFormat:function(WF){var qR=y(WF,EB);qR.toString=function(){return WF};
return qR},
utcParse:function(WF){var qR=m(WF,TsO);qR.toString=function(){return WF};
return qR}}}
function Sj(e,y,m){var C=e<0?"-":"";e=(C?-e:e)+"";var sl=e.length;return C+(sl<m?Array(m-sl+1).join(y)+e:e)}
function AI8(e){return e.replace(jYd,"\\$&")}
function NP(e){return new RegExp("^(?:"+e.map(AI8).join("|")+")","i")}
function xI(e){for(var y={},m=-1,C=e.length;++m<C;)y[e[m].toLowerCase()]=m;return y}
function BPv(e,y,m){return(y=Sv.exec(y.slice(m,m+1)))?(e.w=+y[0],m+y[0].length):-1}
function no1(e,y,m){return(y=Sv.exec(y.slice(m,m+1)))?(e.u=+y[0],m+y[0].length):-1}
function cIG(e,y,m){return(y=Sv.exec(y.slice(m,m+2)))?(e.U=+y[0],m+y[0].length):-1}
function pz8(e,y,m){return(y=Sv.exec(y.slice(m,m+2)))?(e.V=+y[0],m+y[0].length):-1}
function SEV(e,y,m){return(y=Sv.exec(y.slice(m,m+2)))?(e.W=+y[0],m+y[0].length):-1}
function LDF(e,y,m){return(y=Sv.exec(y.slice(m,m+4)))?(e.y=+y[0],m+y[0].length):-1}
function ooW(e,y,m){return(y=Sv.exec(y.slice(m,m+2)))?(e.y=+y[0]+(+y[0]>68?1900:2E3),m+y[0].length):-1}
function TPk(e,y,m){return(y=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(y.slice(m,m+6)))?(e.Z=y[1]?0:-(y[2]+(y[3]||"00")),m+y[0].length):-1}
function JIJ(e,y,m){return(y=Sv.exec(y.slice(m,m+2)))?(e.m=y[0]-1,m+y[0].length):-1}
function OYO(e,y,m){return(y=Sv.exec(y.slice(m,m+2)))?(e.d=+y[0],m+y[0].length):-1}
function u7t(e,y,m){return(y=Sv.exec(y.slice(m,m+3)))?(e.m=0,e.d=+y[0],m+y[0].length):-1}
function VTC(e,y,m){return(y=Sv.exec(y.slice(m,m+2)))?(e.H=+y[0],m+y[0].length):-1}
function Zb8(e,y,m){return(y=Sv.exec(y.slice(m,m+2)))?(e.M=+y[0],m+y[0].length):-1}
function Mhs(e,y,m){return(y=Sv.exec(y.slice(m,m+2)))?(e.S=+y[0],m+y[0].length):-1}
function qEW(e,y,m){return(y=Sv.exec(y.slice(m,m+3)))?(e.L=+y[0],m+y[0].length):-1}
function D_V(e,y,m){return(y=Sv.exec(y.slice(m,m+6)))?(e.L=Math.floor(y[0]/1E3),m+y[0].length):-1}
function rId(e,y,m){return(e=wz1.exec(y.slice(m,m+1)))?m+e[0].length:-1}
function YEG(e,y,m){return(y=Sv.exec(y.slice(m)))?(e.Q=+y[0],m+y[0].length):-1}
function QY8(e,y,m){return(y=Sv.exec(y.slice(m)))?(e.Q=+y[0]*1E3,m+y[0].length):-1}
function mMt(e,y){return Sj(e.getDate(),y,2)}
function Rt8(e,y){return Sj(e.getHours(),y,2)}
function UeG(e,y){return Sj(e.getHours()%12||12,y,2)}
function htw(e,y){return Sj(1+hVC.count(fN(e),e),y,3)}
function GiT(e,y){return Sj(e.getMilliseconds(),y,3)}
function et5(e,y){return GiT(e,y)+"000"}
function mek(e,y){return Sj(e.getMonth()+1,y,2)}
function GQJ(e,y){return Sj(e.getMinutes(),y,2)}
function lRs(e,y){return Sj(e.getSeconds(),y,2)}
function v_d(e){e=e.getDay();return e===0?7:e}
function aRv(e,y){return Sj(yI1.count(fN(e),e),y,2)}
function t3s(e,y){var m=e.getDay();e=m>=4||m===0?E4n(e):E4n.ceil(e);return Sj(E4n.count(fN(e),e)+(fN(e).getDay()===4),y,2)}
function $ek(e){return e.getDay()}
function OMG(e,y){return Sj(g49.count(fN(e),e),y,2)}
function V3G(e,y){return Sj(e.getFullYear()%100,y,2)}
function g_8(e,y){return Sj(e.getFullYear()%1E4,y,4)}
function E_k(e){e=e.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Sj(e/60|0,"0",2)+Sj(e%60,"0",2)}
function tTZ(e,y){return Sj(e.getUTCDate(),y,2)}
function CQs(e,y){return Sj(e.getUTCHours(),y,2)}
function Ndv(e,y){return Sj(e.getUTCHours()%12||12,y,2)}
function iMW(e,y){return Sj(1+UMZ.count(D0(e),e),y,3)}
function $ME(e,y){return Sj(e.getUTCMilliseconds(),y,3)}
function bM1(e,y){return $ME(e,y)+"000"}
function xe1(e,y){return Sj(e.getUTCMonth()+1,y,2)}
function IRd(e,y){return Sj(e.getUTCMinutes(),y,2)}
function kQV(e,y){return Sj(e.getUTCSeconds(),y,2)}
function KDd(e){e=e.getUTCDay();return e===0?7:e}
function Xz8(e,y){return Sj(WDs.count(D0(e),e),y,2)}
function FDJ(e,y){var m=e.getUTCDay();e=m>=4||m===0?bYw(e):bYw.ceil(e);return Sj(bYw.count(D0(e),e)+(D0(e).getUTCDay()===4),y,2)}
function Ptv(e){return e.getUTCDay()}
function Hbv(e,y){return Sj(VT3.count(D0(e),e),y,2)}
function sYk(e,y){return Sj(e.getUTCFullYear()%100,y,2)}
function z1t(e,y){return Sj(e.getUTCFullYear()%1E4,y,4)}
function fnG(){return"+0000"}
function aoU(){return"%"}
function loO(e){return+e}
function v4u(e){return Math.floor(+e/1E3)}
function zs(e){for(var y=e.length/6|0,m=Array(y),C=0;C<y;)m[C]="#"+e.slice(C*6,++C*6);return m}
function Vs(e){return d_8(e[e.length-1])}
function rZP(e){var y=e.length;return function(m){return e[Math.max(0,Math.min(y-1,Math.floor(m*y)))]}}
function g4O(e){this._context=e}
function E4E(e){this._curve=e}
function bYL(e,y,m){var C=e._x1-e._x0;y-=e._x1;var sl=(e._y1-e._y0)/(C||y<0&&-0);e=(m-e._y1)/(y||C<0&&-0);return((sl<0?-1:1)+(e<0?-1:1))*Math.min(Math.abs(sl),Math.abs(e),.5*Math.abs((sl*y+e*C)/(C+y)))||0}
function C$Z(e,y){var m=e._x1-e._x0;return m?(3*(e._y1-e._y0)/m-y)/2:y}
function C$l(e,y,m){var C=e._x0,sl=e._x1,Zl=e._y1,By=(sl-C)/3;e._context.bezierCurveTo(C+By,e._y0+By*y,sl-By,Zl-By*m,sl,Zl)}
function NZM(e){this._context=e}
function NZt(e){this._context=e}
function Io(e,y,m){this.k=e;this.x=y;this.y=m}
(function(e){e.length===1&&(e=X(e));return{left:function(y,m,C,sl){C==null&&(C=0);sl==null&&(sl=y.length);for(;C<sl;){var Zl=C+sl>>>1;e(y[Zl],m)<0?C=Zl+1:sl=Zl}return C},
right:function(y,m,C,sl){C==null&&(C=0);sl==null&&(sl=y.length);for(;C<sl;){var Zl=C+sl>>>1;e(y[Zl],m)>0?sl=Zl:C=Zl+1}return C}}})(K);
var THd={value:function(){}};
P.prototype=F.prototype={constructor:P,on:function(e,y){var m=this._,C=H(e+"",m),sl,Zl=-1,By=C.length;if(arguments.length<2)for(;++Zl<By;){var jP;if(jP=sl=(e=C[Zl]).type){a:{jP=m[sl];for(var kd=0,iT=jP.length;kd<iT;++kd)if((sl=jP[kd]).name===e.name){sl=sl.value;break a}sl=void 0}jP=sl}if(jP)return sl}else{if(y!=null&&typeof y!=="function")throw Error("ve`"+y);for(;++Zl<By;)if(sl=(e=C[Zl]).type)m[sl]=f(m[sl],e.name,y);else if(y==null)for(sl in m)m[sl]=f(m[sl],e.name,null);return this}},
copy:function(){var e={},y=this._,m;for(m in y)e[m]=y[m].slice();return new P(e)},
call:function(e,y){if((sl=arguments.length-2)>0)for(var m=Array(sl),C=0,sl,Zl;C<sl;++C)m[C]=arguments[C+2];if(!this._.hasOwnProperty(e))throw Error("pe`"+e);Zl=this._[e];C=0;for(sl=Zl.length;C<sl;++C)Zl[C].value.apply(y,m)},
apply:function(e,y,m){if(!this._.hasOwnProperty(e))throw Error("pe`"+e);e=this._[e];for(var C=0,sl=e.length;C<sl;++C)e[C].value.apply(y,m)}};
var lf={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/"},iYN=function(e){return function(){return this.matches(e)}};
if(typeof document!=="undefined"){var kI=document.documentElement;if(!kI.matches){var e1s=kI.webkitMatchesSelector||kI.msMatchesSelector||kI.mozMatchesSelector||kI.oMatchesSelector;iYN=function(e){return function(){return e1s.call(this,e)}}}}var xMU=iYN;
L.prototype={constructor:L,appendChild:function(e){return this._parent.insertBefore(e,this._next)},
insertBefore:function(e,y){return this._parent.insertBefore(e,y)},
querySelector:function(e){return this._parent.querySelector(e)},
querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};
var KyL={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(KyL={mouseenter:"mouseover",mouseleave:"mouseout"}));var r45=[null];tt.prototype=BF.prototype={constructor:tt,select:function(e){typeof e!=="function"&&(e=c(e));for(var y=this._groups,m=y.length,C=Array(m),sl=0;sl<m;++sl)for(var Zl=y[sl],By=Zl.length,jP=C[sl]=Array(By),kd,iT,KW=0;KW<By;++KW)(kd=Zl[KW])&&(iT=e.call(kd,kd.__data__,KW,Zl))&&("__data__"in kd&&(iT.__data__=kd.__data__),jP[KW]=iT);return new tt(C,this._parents)},
filter:function(e){typeof e!=="function"&&(e=xMU(e));for(var y=this._groups,m=y.length,C=Array(m),sl=0;sl<m;++sl)for(var Zl=y[sl],By=Zl.length,jP=C[sl]=[],kd,iT=0;iT<By;++iT)(kd=Zl[iT])&&e.call(kd,kd.__data__,iT,Zl)&&jP.push(kd);return new tt(C,this._parents)},
data:function(e,y){if(!e)return QG=Array(this.size()),iT=-1,this.each(function(xL){QG[++iT]=xL}),QG;
var m=y?R:d,C=this._parents,sl=this._groups;typeof e!=="function"&&(e=A(e));for(var Zl=sl.length,By=Array(Zl),jP=Array(Zl),kd=Array(Zl),iT=0;iT<Zl;++iT){var KW=C[iT],DQ=sl[iT],gL=DQ.length,QG=e.call(KW,KW&&KW.__data__,iT,C),MR=QG.length,Ov=jP[iT]=Array(MR),of=By[iT]=Array(MR);gL=kd[iT]=Array(gL);m(KW,DQ,Ov,of,gL,QG,y);DQ=KW=0;for(var t9;KW<MR;++KW)if(gL=Ov[KW]){for(KW>=DQ&&(DQ=KW+1);!(t9=of[DQ])&&++DQ<MR;);gL._next=t9||null}}By=new tt(By,C);By._enter=jP;By._exit=kd;return By},
exit:function(){return new tt(this._exit||this._groups.map(B),this._parents)},
merge:function(e){var y=this._groups;e=e._groups;for(var m=y.length,C=Math.min(m,e.length),sl=Array(m),Zl=0;Zl<C;++Zl)for(var By=y[Zl],jP=e[Zl],kd=By.length,iT=sl[Zl]=Array(kd),KW,DQ=0;DQ<kd;++DQ)if(KW=By[DQ]||jP[DQ])iT[DQ]=KW;for(;Zl<m;++Zl)sl[Zl]=y[Zl];return new tt(sl,this._parents)},
order:function(){for(var e=this._groups,y=-1,m=e.length;++y<m;)for(var C=e[y],sl=C.length-1,Zl=C[sl],By;--sl>=0;)if(By=C[sl])Zl&&Zl!==By.nextSibling&&Zl.parentNode.insertBefore(By,Zl),Zl=By;return this},
sort:function(e){function y(DQ,gL){return DQ&&gL?e(DQ.__data__,gL.__data__):!DQ-!gL}
e||(e=l);for(var m=this._groups,C=m.length,sl=Array(C),Zl=0;Zl<C;++Zl){for(var By=m[Zl],jP=By.length,kd=sl[Zl]=Array(jP),iT,KW=0;KW<jP;++KW)if(iT=By[KW])kd[KW]=iT;kd.sort(y)}return(new tt(sl,this._parents)).order()},
call:function(){var e=arguments[0];arguments[0]=this;e.apply(null,arguments);return this},
nodes:function(){var e=Array(this.size()),y=-1;this.each(function(){e[++y]=this});
return e},
node:function(){for(var e=this._groups,y=0,m=e.length;y<m;++y)for(var C=e[y],sl=0,Zl=C.length;sl<Zl;++sl){var By=C[sl];if(By)return By}return null},
size:function(){var e=0;this.each(function(){++e});
return e},
empty:function(){return!this.node()},
each:function(e){for(var y=this._groups,m=0,C=y.length;m<C;++m)for(var sl=y[m],Zl=0,By=sl.length,jP;Zl<By;++Zl)(jP=sl[Zl])&&e.call(jP,jP.__data__,Zl,sl);return this},
attr:function(e,y){var m=u(e);if(arguments.length<2){var C=this.node();return m.local?C.getAttributeNS(m.space,m.local):C.getAttribute(m)}return this.each((y==null?m.local?E:a:typeof y==="function"?m.local?Dl:N:m.local?x:V)(m,y))},
style:function(e,y,m){return arguments.length>1?this.each((y==null?Mq:typeof y==="function"?y9:pO)(e,y,m==null?"":m)):Wy(this.node(),e)},
property:function(e,y){return arguments.length>1?this.each((y==null?eP:typeof y==="function"?a3:gw)(e,y)):this.node()[e]},
text:function(e){return arguments.length?this.each(e==null?dL:(typeof e==="function"?ht:nt)(e)):this.node().textContent},
html:function(e){return arguments.length?this.each(e==null?YC:(typeof e==="function"?X8:uu)(e)):this.node().innerHTML},
append:function(e){var y=typeof e==="function"?e:M(e);return this.select(function(){return this.appendChild(y.apply(this,arguments))})},
insert:function(e,y){var m=typeof e==="function"?e:M(e),C=y==null?qV:typeof y==="function"?y:c(y);return this.select(function(){return this.insertBefore(m.apply(this,arguments),C.apply(this,arguments)||null)})},
remove:function(){return this.each(J0)},
clone:function(e){return this.select(e?uT:yd)},
datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},
on:function(e,y,m){var C=tw(e+""),sl=C.length,Zl;if(arguments.length<2){var By=this.node().__on;if(By)for(var jP=0,kd=By.length,iT;jP<kd;++jP){var KW=0;for(iT=By[jP];KW<sl;++KW)if((Zl=C[KW]).type===iT.type&&Zl.name===iT.name)return iT.value}}else{By=y?NV:TE;m==null&&(m=!1);for(KW=0;KW<sl;++KW)this.each(By(C[KW],y,m));return this}},
dispatch:function(e,y){return this.each((typeof y==="function"?sZ:bu)(e,y))}};
var A4W=0;BN.prototype=function(){return new BN}.prototype={constructor:BN,
get:function(e){for(var y=this._;!(y in e);)if(!(e=e.parentNode))return;return e[y]},
set:function(e,y){return e[this._]=y},
remove:function(e){return this._ in e&&delete e[this._]},
toString:function(){return this._}};
var uS=1/.7,jik=/^#([0-9a-f]{3})$/,wj8=/^#([0-9a-f]{6})$/,y45=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),Wlt=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),dLw=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),eUk=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*\\)$"),
RUw=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),UL5=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*\\)$"),X0W={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};
wL(fs,ft,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
wL(x5,TJ,Zd(fs,{brighter:function(e){e=e==null?uS:Math.pow(uS,e);return new x5(this.r*e,this.g*e,this.b*e,this.opacity)},
darker:function(e){e=e==null?.7:Math.pow(.7,e);return new x5(this.r*e,this.g*e,this.b*e,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"#"+fx(this.r)+fx(this.g)+fx(this.b)},
toString:function(){var e=this.opacity;e=isNaN(e)?1:Math.max(0,Math.min(1,e));return(e===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))+(e===1?")":", "+e+")")}}));
wL(JV,LG,Zd(fs,{brighter:function(e){e=e==null?uS:Math.pow(uS,e);return new JV(this.h,this.s,this.l*e,this.opacity)},
darker:function(e){e=e==null?.7:Math.pow(.7,e);return new JV(this.h,this.s,this.l*e,this.opacity)},
rgb:function(){var e=this.h%360+(this.h<0)*360,y=this.l,m=y+(y<.5?y:1-y)*(isNaN(e)||isNaN(this.s)?0:this.s);y=2*y-m;return new x5(to(e>=240?e-240:e+120,y,m),to(e,y,m),to(e<120?e+240:e-120,y,m),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 FyL=Math.PI/180,srC=180/Math.PI,HYu=4/29,s1=6/29,P$C=3*s1*s1,hUo=s1*s1*s1;wL(LO,function(e,y,m,C){return arguments.length===1?fl(e):new LO(e,y,m,C==null?1:C)},Zd(fs,{brighter:function(e){return new LO(this.l+18*(e==null?1:e),this.a,this.b,this.opacity)},
darker:function(e){return new LO(this.l-18*(e==null?1:e),this.a,this.b,this.opacity)},
rgb:function(){var e=(this.l+16)/116,y=isNaN(this.a)?e:e+this.a/500,m=isNaN(this.b)?e:e-this.b/200;y=.96422*$d(y);e=1*$d(e);m=.82521*$d(m);return new x5(nW(3.1338561*y-1.6168667*e-.4906146*m),nW(-.9787684*y+1.9161415*e+.033454*m),nW(.0719453*y-.2289914*e+1.4052427*m),this.opacity)}}));
wL(cN,Y5,Zd(fs,{brighter:function(e){return new cN(this.h,this.c,this.l+18*(e==null?1:e),this.opacity)},
darker:function(e){return new cN(this.h,this.c,this.l-18*(e==null?1:e),this.opacity)},
rgb:function(){return fl(this).rgb()}}));
var zVV=1.78277*-.29227-.1347134789;wL(Sk,MV,Zd(fs,{brighter:function(e){e=e==null?uS:Math.pow(uS,e);return new Sk(this.h,this.s,this.l*e,this.opacity)},
darker:function(e){e=e==null?.7:Math.pow(.7,e);return new Sk(this.h,this.s,this.l*e,this.opacity)},
rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*FyL,y=+this.l,m=isNaN(this.s)?0:this.s*y*(1-y),C=Math.cos(e);e=Math.sin(e);return new x5(255*(y+m*(-.14861*C+1.78277*e)),255*(y+m*(-.29227*C+-.90649*e)),255*(y+1.97294*C*m),this.opacity)}}));
var JLZ=function m(y){function C(Zl,By){var jP=sl((Zl=TJ(Zl)).r,(By=TJ(By)).r),kd=sl(Zl.g,By.g),iT=sl(Zl.b,By.b),KW=uU(Zl.opacity,By.opacity);return function(DQ){Zl.r=jP(DQ);Zl.g=kd(DQ);Zl.b=iT(DQ);Zl.opacity=KW(DQ);return Zl+""}}
var sl=SO(y);C.gamma=m;return C}(1),d_8=dq(function(y){var m=y.length-1;
return function(C){var sl=C<=0?C=0:C>=1?(C=1,m-1):Math.floor(C*m),Zl=y[sl],By=y[sl+1];return Zs((C-sl/m)*m,sl>0?y[sl-1]:2*Zl-By,Zl,By,sl<m-1?y[sl+2]:2*By-Zl)}});
dq(function(y){var m=y.length;return function(C){var sl=Math.floor(((C%=1)<0?++C:C)*m);return Zs((C-sl/m)*m,y[(sl+m-1)%m],y[sl%m],y[(sl+1)%m],y[(sl+2)%m])}});
var Wy9=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dMO=new RegExp(Wy9.source,"g"),fot=180/Math.PI,iYy={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Kq,xMP,IoE,AZy,R1F=$i(function(y){if(y==="none")return iYy;Kq||(Kq=document.createElement("DIV"),xMP=document.documentElement,IoE=document.defaultView);Kq.style.transform=y;y=IoE.getComputedStyle(xMP.appendChild(Kq),null).getPropertyValue("transform");xMP.removeChild(Kq);y=y.slice(7,-1).split(",");return wE(+y[0],+y[1],+y[2],+y[3],
+y[4],+y[5])},"px, ","px)","deg)"),U_W=$i(function(y){if(y==null)return iYy;
AZy||(AZy=document.createElementNS("http://www.w3.org/2000/svg","g"));AZy.setAttribute("transform",y);if(!(y=AZy.transform.baseVal.consolidate()))return iYy;y=y.matrix;return wE(y.a,y.b,y.c,y.d,y.e,y.f)},", ",")",")");
dj(h0);dj(uU);Y_(h0);Y_(uU);Qg(h0);var Ion=Qg(uU),zx=0,Oq=0,gi=0,nMl,VL,Mjy=0,hx=0,QD4=0,$I=typeof performance==="object"&&performance.now?performance:Date,DML=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(y){setTimeout(y,17)};
Mr.prototype=aH.prototype={constructor:Mr,restart:function(y,m,C){if(typeof y!=="function")throw new TypeError("we");C=(C==null?Q0():+C)+(m==null?0:+m);this._next||VL===this||(VL?VL._next=this:nMl=this,VL=this);this._call=y;this._time=C;$T()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,$T())}};
var Gto=F("start","end","interrupt"),lZw=[],h1W=BF.prototype.constructor,kiZ=0,qX=BF.prototype;zK.prototype=function(y){return BF().transition(y)}.prototype={constructor:zK,
select:function(y){var m=this._name,C=this._id;typeof y!=="function"&&(y=c(y));for(var sl=this._groups,Zl=sl.length,By=Array(Zl),jP=0;jP<Zl;++jP)for(var kd=sl[jP],iT=kd.length,KW=By[jP]=Array(iT),DQ,gL,QG=0;QG<iT;++QG)(DQ=kd[QG])&&(gL=y.call(DQ,DQ.__data__,QG,kd))&&("__data__"in DQ&&(gL.__data__=DQ.__data__),KW[QG]=gL,eVP(KW[QG],m,C,QG,KW,Fk(DQ,C)));return new zK(By,this._parents,m,C)},
filter:function(y){typeof y!=="function"&&(y=xMU(y));for(var m=this._groups,C=m.length,sl=Array(C),Zl=0;Zl<C;++Zl)for(var By=m[Zl],jP=By.length,kd=sl[Zl]=[],iT,KW=0;KW<jP;++KW)(iT=By[KW])&&y.call(iT,iT.__data__,KW,By)&&kd.push(iT);return new zK(sl,this._parents,this._name,this._id)},
merge:function(y){if(y._id!==this._id)throw Error();var m=this._groups;y=y._groups;for(var C=m.length,sl=Math.min(C,y.length),Zl=Array(C),By=0;By<sl;++By)for(var jP=m[By],kd=y[By],iT=jP.length,KW=Zl[By]=Array(iT),DQ,gL=0;gL<iT;++gL)if(DQ=jP[gL]||kd[gL])KW[gL]=DQ;for(;By<C;++By)Zl[By]=m[By];return new zK(Zl,this._parents,this._name,this._id)},
selection:function(){return new h1W(this._groups,this._parents)},
transition:function(){for(var y=this._name,m=this._id,C=++kiZ,sl=this._groups,Zl=sl.length,By=0;By<Zl;++By)for(var jP=sl[By],kd=jP.length,iT,KW=0;KW<kd;++KW)if(iT=jP[KW]){var DQ=Fk(iT,m);eVP(iT,y,C,KW,jP,{time:DQ.time+DQ.delay+DQ.duration,delay:0,duration:DQ.duration,ease:DQ.ease})}return new zK(sl,this._parents,y,C)},
call:qX.call,nodes:qX.nodes,node:qX.node,size:qX.size,empty:qX.empty,each:qX.each,on:function(y,m){var C=this._id;return arguments.length<2?Fk(this.node(),C).on.on(y):this.each(XLv(C,y,m))},
attr:function(y,m){var C=u(y),sl=C==="transform"?U_W:qKZ;return this.attrTween(y,typeof m==="function"?(C.local?EAs:gAo)(C,sl,UMl(this,"attr."+y,m)):m==null?(C.local?$Ls:tNG)(C):(C.local?VNF:Okk)(C,sl,m+""))},
attrTween:function(y,m){var C="attr."+y;if(arguments.length<2)return(C=this.tween(C))&&C._value;if(m==null)return this.tween(C,null);if(typeof m!=="function")throw Error();var sl=u(y);return this.tween(C,(sl.local?bkw:CrJ)(sl,m))},
style:function(y,m,C){var sl=y==="transform"?R1F:qKZ;return m==null?this.styleTween(y,PQ1(y,sl)).on("end.style."+y,HMt(y)):this.styleTween(y,typeof m==="function"?ztW(y,sl,UMl(this,"style."+y,m)):scG(y,sl,m+""),C)},
styleTween:function(y,m,C){var sl="style."+y;if(arguments.length<2)return(sl=this.tween(sl))&&sl._value;if(m==null)return this.tween(sl,null);if(typeof m!=="function")throw Error();return this.tween(sl,fR5(y,m,C==null?"":C))},
text:function(y){return this.tween("text",typeof y==="function"?uXJ(UMl(this,"text",y)):DeJ(y==null?"":y+""))},
remove:function(){return this.on("end.remove",FgJ(this._id))},
tween:function(y,m){var C=this._id;if(arguments.length<2){C=Fk(this.node(),C).tween;for(var sl=0,Zl=C.length,By;sl<Zl;++sl)if((By=C[sl]).name===y)return By.value;return null}return this.each((m==null?vAG:aZW)(C,y,m))},
delay:function(y){var m=this._id;return arguments.length?this.each((typeof y==="function"?NHs:ikF)(m,y)):Fk(this.node(),m).delay},
duration:function(y){var m=this._id;return arguments.length?this.each((typeof y==="function"?xLt:IZJ)(m,y)):Fk(this.node(),m).duration},
ease:function(y){var m=this._id;return arguments.length?this.each(ktk(m,y)):Fk(this.node(),m).ease}};
var kil={time:null,delay:0,duration:250,ease:function(y){return((y*=2)<=1?y*y*y:(y-=2)*y*y+2)/2}};
BF.prototype.transition=function(y){var m;if(y instanceof zK){var C=y._id;y=y._name}else C=++kiZ,(m=kil).time=Q0(),y=y==null?null:y+"";for(var sl=this._groups,Zl=sl.length,By=0;By<Zl;++By)for(var jP=sl[By],kd=jP.length,iT,KW=0;KW<kd;++KW)if(iT=jP[KW]){var DQ=iT,gL=y,QG=C,MR=KW,Ov=jP,of;if(!(of=m))a:{of=void 0;for(var t9=C;!(of=iT.__transition)||!(of=of[t9]);)if(!(iT=iT.parentNode)){of=(kil.time=Q0(),kil);break a}}eVP(DQ,gL,QG,MR,Ov,of)}return new zK(sl,this._parents,y,C)};
["e","w"].map(hV3);["n","s"].map(hV3);"n e s w nw ne se sw".split(" ").map(hV3);mMM.prototype=function(){return new mMM}.prototype={constructor:mMM,
moveTo:function(y,m){this._+="M"+(this._x0=this._x1=+y)+","+(this._y0=this._y1=+m)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(y,m){this._+="L"+(this._x1=+y)+","+(this._y1=+m)},
bezierCurveTo:function(y,m,C,sl,Zl,By){this._+="C"+ +y+","+ +m+","+ +C+","+ +sl+","+(this._x1=+Zl)+","+(this._y1=+By)},
rect:function(y,m,C,sl){this._+="M"+(this._x0=this._x1=+y)+","+(this._y0=this._y1=+m)+"h"+ +C+"v"+ +sl+"h"+-C+"Z"},
toString:function(){return this._}};
cZ4.prototype=ZYC.prototype={constructor:cZ4,has:function(y){return" "+y in this},
get:function(y){return this[" "+y]},
set:function(y,m){this[" "+y]=m;return this},
remove:function(y){y=" "+y;return y in this&&delete this[y]},
clear:function(){for(var y in this)y[0]===" "&&delete this[y]},
keys:function(){var y=[],m;for(m in this)m[0]===" "&&y.push(m.slice(1));return y},
values:function(){var y=[],m;for(m in this)m[0]===" "&&y.push(this[m]);return y},
entries:function(){var y=[],m;for(m in this)m[0]===" "&&y.push({key:m.slice(1),value:this[m]});return y},
size:function(){var y=0,m;for(m in this)m[0]===" "&&++y;return y},
empty:function(){for(var y in this)if(y[0]===" ")return!1;return!0},
each:function(y){for(var m in this)m[0]===" "&&y(this[m],m.slice(1),this)}};
var vs=ZYC.prototype;pMT.prototype=function(y,m){var C=new pMT;if(y instanceof pMT)y.each(function(By){C.add(By)});
else if(y){var sl=-1,Zl=y.length;if(m==null)for(;++sl<Zl;)C.add(y[sl]);else for(;++sl<Zl;)C.add(m(y[sl],sl,y))}return C}.prototype={constructor:pMT,
has:vs.has,add:function(y){this[" "+y]=y;return this},
remove:vs.remove,clear:vs.clear,values:vs.keys,size:vs.size,empty:vs.empty,each:vs.each};var MTu={},Giy={},m_w=QrL(",").parse,GMt=QrL("\t").parse;n4W(m_w);n4W(GMt);var k1=function(y,m,C){m=new lo9(m==null?YX8:m,C==null?QcJ:C,NaN,NaN,NaN,NaN);return y==null?m:m.addAll(y)}.prototype=lo9.prototype;
k1.copy=function(){var y=new lo9(this._x,this._y,this._x0,this._y0,this._x1,this._y1),m=this._root,C,sl;if(!m)return y;if(!m.length)return y._root=p0E(m),y;for(C=[{source:m,target:y._root=Array(4)}];m=C.pop();)for(var Zl=0;Zl<4;++Zl)if(sl=m.source[Zl])sl.length?C.push({source:sl,target:m.target[Zl]=Array(4)}):m.target[Zl]=p0E(sl);return y};
k1.add=function(y){var m=+this._x.call(null,y),C=+this._y.call(null,y);return cLV(this.cover(m,C),m,C,y)};
k1.addAll=function(y){var m,C,sl=y.length,Zl,By,jP=Array(sl),kd=Array(sl),iT=Infinity,KW=Infinity,DQ=-Infinity,gL=-Infinity;for(C=0;C<sl;++C)isNaN(Zl=+this._x.call(null,m=y[C]))||isNaN(By=+this._y.call(null,m))||(jP[C]=Zl,kd[C]=By,Zl<iT&&(iT=Zl),Zl>DQ&&(DQ=Zl),By<KW&&(KW=By),By>gL&&(gL=By));DQ<iT&&(iT=this._x0,DQ=this._x1);gL<KW&&(KW=this._y0,gL=this._y1);this.cover(iT,KW).cover(DQ,gL);for(C=0;C<sl;++C)cLV(this,jP[C],kd[C],y[C]);return this};
k1.cover=function(y,m){if(isNaN(y=+y)||isNaN(m=+m))return this;var C=this._x0,sl=this._y0,Zl=this._x1,By=this._y1;if(isNaN(C))Zl=(C=Math.floor(y))+1,By=(sl=Math.floor(m))+1;else if(C>y||y>Zl||sl>m||m>By){var jP=Zl-C,kd=this._root,iT;switch(iT=(m<(sl+By)/2)<<1|y<(C+Zl)/2){case 0:do{var KW=Array(4);KW[iT]=kd;kd=KW}while(jP*=2,Zl=C+jP,By=sl+jP,y>Zl||m>By);break;case 1:do KW=Array(4),KW[iT]=kd,kd=KW;while(jP*=2,C=Zl-jP,By=sl+jP,C>y||m>By);break;case 2:do KW=Array(4),KW[iT]=kd,kd=KW;while(jP*=2,Zl=C+jP,
sl=By-jP,y>Zl||sl>m);break;case 3:do KW=Array(4),KW[iT]=kd,kd=KW;while(jP*=2,C=Zl-jP,sl=By-jP,C>y||sl>m)}this._root&&this._root.length&&(this._root=kd)}else return this;this._x0=C;this._y0=sl;this._x1=Zl;this._y1=By;return this};
k1.data=function(){var y=[];this.visit(function(m){if(!m.length){do y.push(m.data);while(m=m.next)}});
return y};
k1.extent=function(y){return arguments.length?this.cover(+y[0][0],+y[0][1]).cover(+y[1][0],+y[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
k1.find=function(y,m,C){var sl=this._x0,Zl=this._y0,By,jP,kd,iT,KW=this._x1,DQ=this._y1,gL=[],QG=this._root,MR;QG&&gL.push(new Ij(QG,sl,Zl,KW,DQ));C==null?C=Infinity:(sl=y-C,Zl=m-C,KW=y+C,DQ=m+C,C*=C);for(;MR=gL.pop();)if(!(!(QG=MR.node)||(By=MR.x0)>KW||(jP=MR.y0)>DQ||(kd=MR.x1)<sl||(iT=MR.y1)<Zl))if(QG.length){MR=(By+kd)/2;var Ov=(jP+iT)/2;gL.push(new Ij(QG[3],MR,Ov,kd,iT),new Ij(QG[2],By,Ov,MR,iT),new Ij(QG[1],MR,jP,kd,Ov),new Ij(QG[0],By,jP,MR,Ov));if(QG=(m>=Ov)<<1|y>=MR)MR=gL[gL.length-1],gL[gL.length-
1]=gL[gL.length-1-QG],gL[gL.length-1-QG]=MR}else if(MR=y-+this._x.call(null,QG.data),Ov=m-+this._y.call(null,QG.data),MR=MR*MR+Ov*Ov,MR<C){var of=Math.sqrt(C=MR);sl=y-of;Zl=m-of;KW=y+of;DQ=m+of;of=QG.data}return of};
k1.remove=function(y){if(isNaN(iT=+this._x.call(null,y))||isNaN(KW=+this._y.call(null,y)))return this;var m,C=this._root,sl,Zl=this._x0,By=this._y0,jP=this._x1,kd=this._y1,iT,KW,DQ,gL,QG,MR,Ov;if(!C)return this;if(C.length)for(;;){(QG=iT>=(DQ=(Zl+jP)/2))?Zl=DQ:jP=DQ;(MR=KW>=(gL=(By+kd)/2))?By=gL:kd=gL;if(!(m=C,C=C[Ov=MR<<1|QG]))return this;if(!C.length)break;if(m[Ov+1&3]||m[Ov+2&3]||m[Ov+3&3]){var of=m;var t9=Ov}}for(;C.data!==y;)if(!(sl=C,C=C.next))return this;(y=C.next)&&delete C.next;if(sl)return y?
sl.next=y:delete sl.next,this;if(!m)return this._root=y,this;y?m[Ov]=y:delete m[Ov];(C=m[0]||m[1]||m[2]||m[3])&&C===(m[3]||m[2]||m[1]||m[0])&&!C.length&&(of?of[t9]=C:this._root=C);return this};
k1.removeAll=function(y){for(var m=0,C=y.length;m<C;++m)this.remove(y[m]);return this};
k1.root=function(){return this._root};
k1.size=function(){var y=0;this.visit(function(m){if(!m.length){do++y;while(m=m.next)}});
return y};
k1.visit=function(y){var m=[],C,sl=this._root,Zl,By,jP,kd,iT;for(sl&&m.push(new Ij(sl,this._x0,this._y0,this._x1,this._y1));C=m.pop();)if(!y(sl=C.node,By=C.x0,jP=C.y0,kd=C.x1,iT=C.y1)&&sl.length){C=(By+kd)/2;var KW=(jP+iT)/2;(Zl=sl[3])&&m.push(new Ij(Zl,C,KW,kd,iT));(Zl=sl[2])&&m.push(new Ij(Zl,By,KW,C,iT));(Zl=sl[1])&&m.push(new Ij(Zl,C,jP,kd,KW));(Zl=sl[0])&&m.push(new Ij(Zl,By,jP,C,KW))}};
k1.visitAfter=function(y){var m=[],C=[],sl;for(this._root&&m.push(new Ij(this._root,this._x0,this._y0,this._x1,this._y1));sl=m.pop();){var Zl=sl.node;if(Zl.length){var By,jP=sl.x0,kd=sl.y0,iT=sl.x1,KW=sl.y1,DQ=(jP+iT)/2,gL=(kd+KW)/2;(By=Zl[0])&&m.push(new Ij(By,jP,kd,DQ,gL));(By=Zl[1])&&m.push(new Ij(By,DQ,kd,iT,gL));(By=Zl[2])&&m.push(new Ij(By,jP,gL,DQ,KW));(By=Zl[3])&&m.push(new Ij(By,DQ,gL,iT,KW))}C.push(sl)}for(;sl=C.pop();)y(sl.node,sl.x0,sl.y0,sl.x1,sl.y1);return this};
k1.x=function(y){return arguments.length?(this._x=y,this):this._x};
k1.y=function(y){return arguments.length?(this._y=y,this):this._y};
var pLG=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;v4T.prototype=aoP.prototype;aoP.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 Lyt,TZO={"%":function(y,m){return(y*100).toFixed(m)},
b:function(y){return Math.round(y).toString(2)},
c:function(y){return y+""},
d:function(y){return Math.round(y).toString(10)},
e:function(y,m){return y.toExponential(m)},
f:function(y,m){return y.toFixed(m)},
g:function(y,m){return y.toPrecision(m)},
o:function(y){return Math.round(y).toString(8)},
p:function(y,m){return BZL(y*100,m)},
r:BZL,s:function(y,m){var C=BsO(y,m);if(!C)return y+"";var sl=C[0];C=C[1];C=C-(Lyt=Math.max(-8,Math.min(8,Math.floor(C/3)))*3)+1;var Zl=sl.length;return C===Zl?sl:C>Zl?sl+Array(C-Zl+1).join("0"):C>0?sl.slice(0,C)+"."+sl.slice(C):"0."+Array(1-C).join("0")+BsO(y,Math.max(0,m+C-1))[0]},
X:function(y){return Math.round(y).toString(16).toUpperCase()},
x:function(y){return Math.round(y).toString(16)}},o4t="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),lnt;
(function(y){return lnt=Bdt(y)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});hb.prototype={constructor:hb,reset:function(){this.s=this.t=0},
add:function(y){rLZ(jDd,y,this.t);rLZ(this,jDd.s,this.s);this.s?this.t+=jDd.t:this.s=jDd.t},
valueOf:function(){return this.s}};
var jDd=new hb,rc=Math.PI,vG=rc/2,K2U=rc/4,voG=rc*2,K2P=rc/180,f3=Math.abs,XxO=Math.atan,dMW=Math.atan2,an=Math.cos,jJ=Math.sin,oMP=Math.sqrt;new hb;new hb;new hb;var F2y=new hb;(function(y,m,C,sl){return function(Zl){function By(Iz,p8){y(Iz,p8)&&Zl.point(Iz,p8)}
function jP(Iz,p8){QG.point(Iz,p8)}
function kd(){Pp.point=jP;QG.lineStart()}
function iT(){Pp.point=By;QG.lineEnd()}
function KW(Iz,p8){BW.push([Iz,p8]);Ov.point(Iz,p8)}
function DQ(){Ov.lineStart();BW=[]}
function gL(){KW(BW[0][0],BW[0][1]);Ov.lineEnd();var Iz=Ov.clean(),p8=MR.result(),EB=p8.length,J9;BW.pop();t9.push(BW);BW=null;if(EB)if(Iz&1){if(EB=p8[0],(p8=EB.length-1)>0){of||(Zl.polygonStart(),of=!0);Zl.lineStart();for(Iz=0;Iz<p8;++Iz)Zl.point((J9=EB[Iz])[0],J9[1]);Zl.lineEnd()}}else EB>1&&Iz&2&&p8.push(p8.pop().concat(p8.shift())),xL.push(p8.filter(TdG))}
var QG=m(Zl),MR=o_8(),Ov=m(MR),of=!1,t9,xL,BW,Pp={point:By,lineStart:kd,lineEnd:iT,polygonStart:function(){Pp.point=KW;Pp.lineStart=DQ;Pp.lineEnd=gL;xL=[];t9=[]},
polygonEnd:function(){Pp.point=By;Pp.lineStart=kd;Pp.lineEnd=iT;var Iz=xL,p8=Iz.length;var EB=-1;for(var J9=0,WF,qR;++EB<p8;)J9+=Iz[EB].length;for(WF=Array(J9);--p8>=0;)for(qR=Iz[p8],EB=qR.length;--EB>=0;)WF[--J9]=qR[EB];xL=WF;Iz=t9;p8=sl[0];J9=sl[1];var Xm=jJ(J9);EB=[jJ(p8),-an(p8),0];qR=WF=0;F2y.reset();Xm===1?J9=vG+1E-6:Xm===-1&&(J9=-vG-1E-6);Xm=0;for(var cF=Iz.length;Xm<cF;++Xm)if(TT=(Og=Iz[Xm]).length){var Og,TT,$g=Og[TT-1],YU=$g[0],Te=$g[1]/2+K2U,wM4=jJ(Te),XxW=an(Te);for(Te=0;Te<TT;++Te,YU=
P4y,wM4=F2N,XxW=X_,$g=yZP){var yZP=Og[Te],P4y=yZP[0];X_=yZP[1]/2+K2U;var F2N=jJ(X_),X_=an(X_),JF=P4y-YU,HTy=JF>=0?1:-1,syw=HTy*JF,Why=syw>rc;wM4*=F2N;F2y.add(dMW(wM4*HTy*jJ(syw),XxW*X_+wM4*an(syw)));WF+=Why?JF+HTy*voG:JF;Why^YU>=p8^P4y>=p8&&($g=jrC(ALC($g),ALC(yZP)),w0E($g),YU=jrC(EB,$g),w0E(YU),YU=(Why^JF>=0?-1:1)*Sgd(YU[2]),J9>YU||J9===YU&&($g[0]||$g[1]))&&(qR+=Why^JF>=0?1:-1)}}Iz=(WF<-1E-6||WF<1E-6&&F2y<-1E-6)^qR&1;xL.length?(of||(Zl.polygonStart(),of=!0),LgV(xL,rbo,Iz,C,Zl)):Iz&&(of||(Zl.polygonStart(),
of=!0),Zl.lineStart(),C(null,null,1,Zl),Zl.lineEnd());of&&(Zl.polygonEnd(),of=!1);xL=t9=null},
sphere:function(){Zl.polygonStart();Zl.lineStart();C(null,null,1,Zl);Zl.lineEnd();Zl.polygonEnd()}};
return Pp}})(function(){return!0},function(y){var m=NaN,C=NaN,sl=NaN,Zl;
return{lineStart:function(){y.lineStart();Zl=1},
point:function(By,jP){var kd=By>0?rc:-rc,iT=f3(By-m);if(f3(iT-rc)<1E-6)y.point(m,C=(C+jP)/2>0?vG:-vG),y.point(sl,C),y.lineEnd(),y.lineStart(),y.point(kd,C),y.point(By,C),Zl=0;else if(sl!==kd&&iT>=rc){f3(m-sl)<1E-6&&(m-=sl*1E-6);f3(By-kd)<1E-6&&(By-=kd*1E-6);iT=m;var KW=C,DQ=By,gL,QG,MR=jJ(iT-DQ);C=f3(MR)>1E-6?XxO((jJ(KW)*(QG=an(jP))*jJ(DQ)-jJ(jP)*(gL=an(KW))*jJ(iT))/(gL*QG*MR)):(KW+jP)/2;y.point(sl,C);y.lineEnd();y.lineStart();y.point(kd,C);Zl=0}y.point(m=By,C=jP);sl=kd},
lineEnd:function(){y.lineEnd();m=C=NaN},
clean:function(){return 2-Zl}}},function(y,m,C,sl){y==null?(C*=vG,sl.point(-rc,C),sl.point(0,C),sl.point(rc,C),sl.point(rc,0),sl.point(rc,-C),sl.point(0,-C),sl.point(-rc,-C),sl.point(-rc,0),sl.point(-rc,C)):f3(y[0]-m[0])>1E-6?(y=y[0]<m[0]?rc:-rc,C=C*y/2,sl.point(-y,C),sl.point(0,C),sl.point(y,C)):sl.point(m[0],m[1])},[-rc,
-vG]);new hb;new hb;new hb;new hb;tTl.prototype={constructor:tTl,point:function(y,m){this.stream.point(y,m)},
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()}};
an(30*K2P);(function(y){return function(m){var C=new tTl,sl;for(sl in y)C[sl]=y[sl];C.stream=m;return C}})({point:function(y,m){this.stream.point(y*K2P,m*K2P)}});
WyO(function(y){return oMP(2/(1+y))}).invert=Eq(function(y){return 2*Sgd(y/2)});
WyO(function(y){return(y=y>1?0:y<-1?rc:Math.acos(y))&&y/jJ(y)}).invert=Eq(function(y){return y});
oMP(3);Eq(XxO);Eq(Sgd);Eq(function(y){return 2*XxO(y)});
bn.prototype=eVU.prototype={constructor:bn,count:function(){return this.eachAfter(Abv)},
each:function(y){var m,C=[this],sl;do{var Zl=C.reverse();for(C=[];m=Zl.pop();)if(y(m),m=m.children){var By=0;for(sl=m.length;By<sl;++By)C.push(m[By])}}while(C.length);return this},
eachAfter:function(y){for(var m,C=[this],sl=[],Zl,By;m=C.pop();)if(sl.push(m),m=m.children)for(Zl=0,By=m.length;Zl<By;++Zl)C.push(m[Zl]);for(;m=sl.pop();)y(m);return this},
eachBefore:function(y){for(var m,C=[this],sl;m=C.pop();)if(y(m),m=m.children)for(sl=m.length-1;sl>=0;--sl)C.push(m[sl]);return this},
sum:function(y){return this.eachAfter(function(m){for(var C=+y(m.data)||0,sl=m.children,Zl=sl&&sl.length;--Zl>=0;)C+=sl[Zl].value;m.value=C})},
sort:function(y){return this.eachBefore(function(m){m.children&&m.children.sort(y)})},
path:function(y){var m=this;var C=m;var sl=y;if(C!==sl){var Zl=C.ancestors(),By=sl.ancestors(),jP=null;C=Zl.pop();for(sl=By.pop();C===sl;)jP=C,C=Zl.pop(),sl=By.pop();C=jP}for(sl=[m];m!==C;)m=m.parent,sl.push(m);for(m=sl.length;y!==C;)sl.splice(m,0,y),y=y.parent;return sl},
ancestors:function(){for(var y=this,m=[y];y=y.parent;)m.push(y);return m},
links:function(){var y=this,m=[];y.each(function(C){C!==y&&m.push({source:C.parent,target:C})});
return m},
copy:function(){return eVU(this).eachBefore(ybV)}};
(function(y,m){this._=y;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=m}).prototype=Object.create(bn.prototype);
var $Mn=new Date,OY9=new Date,P4T=M$(function(){},function(y,m){y.setTime(+y+m)},function(y,m){return m-y});
P4T.every=function(y){y=Math.floor(y);return isFinite(y)&&y>0?y>1?M$(function(m){m.setTime(Math.floor(m/y)*y)},function(m,C){m.setTime(+m+C*y)},function(m,C){return(C-m)/y}):P4T:null};
M$(function(y){y.setTime(Math.floor(y/1E3)*1E3)},function(y,m){y.setTime(+y+m*1E3)},function(y,m){return(m-y)/1E3},function(y){return y.getUTCSeconds()});
M$(function(y){y.setTime(Math.floor(y/6E4)*6E4)},function(y,m){y.setTime(+y+m*6E4)},function(y,m){return(m-y)/6E4},function(y){return y.getMinutes()});
M$(function(y){var m=y.getTimezoneOffset()*6E4%36E5;m<0&&(m+=36E5);y.setTime(Math.floor((+y-m)/36E5)*36E5+m)},function(y,m){y.setTime(+y+m*36E5)},function(y,m){return(m-y)/36E5},function(y){return y.getHours()});
var hVC=M$(function(y){y.setHours(0,0,0,0)},function(y,m){y.setDate(y.getDate()+m)},function(y,m){return(m-y-(m.getTimezoneOffset()-y.getTimezoneOffset())*6E4)/864E5},function(y){return y.getDate()-1}),yI1=Gz(0),g49=Gz(1);
Gz(2);Gz(3);var E4n=Gz(4);Gz(5);Gz(6);M$(function(y){y.setDate(1);y.setHours(0,0,0,0)},function(y,m){y.setMonth(y.getMonth()+m)},function(y,m){return m.getMonth()-y.getMonth()+(m.getFullYear()-y.getFullYear())*12},function(y){return y.getMonth()});
var fN=M$(function(y){y.setMonth(0,1);y.setHours(0,0,0,0)},function(y,m){y.setFullYear(y.getFullYear()+m)},function(y,m){return m.getFullYear()-y.getFullYear()},function(y){return y.getFullYear()});
fN.every=function(y){return isFinite(y=Math.floor(y))&&y>0?M$(function(m){m.setFullYear(Math.floor(m.getFullYear()/y)*y);m.setMonth(0,1);m.setHours(0,0,0,0)},function(m,C){m.setFullYear(m.getFullYear()+C*y)}):null};
M$(function(y){y.setUTCSeconds(0,0)},function(y,m){y.setTime(+y+m*6E4)},function(y,m){return(m-y)/6E4},function(y){return y.getUTCMinutes()});
M$(function(y){y.setUTCMinutes(0,0,0)},function(y,m){y.setTime(+y+m*36E5)},function(y,m){return(m-y)/36E5},function(y){return y.getUTCHours()});
var UMZ=M$(function(y){y.setUTCHours(0,0,0,0)},function(y,m){y.setUTCDate(y.getUTCDate()+m)},function(y,m){return(m-y)/864E5},function(y){return y.getUTCDate()-1}),WDs=l8(0),VT3=l8(1);
l8(2);l8(3);var bYw=l8(4);l8(5);l8(6);M$(function(y){y.setUTCDate(1);y.setUTCHours(0,0,0,0)},function(y,m){y.setUTCMonth(y.getUTCMonth()+m)},function(y,m){return m.getUTCMonth()-y.getUTCMonth()+(m.getUTCFullYear()-y.getUTCFullYear())*12},function(y){return y.getUTCMonth()});
var D0=M$(function(y){y.setUTCMonth(0,1);y.setUTCHours(0,0,0,0)},function(y,m){y.setUTCFullYear(y.getUTCFullYear()+m)},function(y,m){return m.getUTCFullYear()-y.getUTCFullYear()},function(y){return y.getUTCFullYear()});
D0.every=function(y){return isFinite(y=Math.floor(y))&&y>0?M$(function(m){m.setUTCFullYear(Math.floor(m.getUTCFullYear()/y)*y);m.setUTCMonth(0,1);m.setUTCHours(0,0,0,0)},function(m,C){m.setUTCFullYear(m.getUTCFullYear()+C*y)}):null};
var RVt={"-":"",_:" ",0:"0"},Sv=/^\s*\d+/,wz1=/^%/,jYd=/[\\^$*+?|[\]().{}]/g,ds9;(function(y){ds9=deW(y);ncO=ds9.utcFormat;cAU=ds9.utcParse;return ds9})({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||ncO("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||cAU("%Y-%m-%dT%H:%M:%S.%LZ");zs("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
zs("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");zs("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");zs("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");zs("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");zs("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");zs("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
zs("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");zs("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");zs("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");zs("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");zs("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var ano=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(zs);Vs(ano);var th8=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(zs);Vs(th8);var $_8=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(zs);Vs($_8);var Obd=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(zs);
Vs(Obd);var Vhk=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(zs);Vs(Vhk);var go8=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(zs);Vs(go8);var Eoo=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(zs);Vs(Eoo);var bbF=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(zs);Vs(bbF);var CtG=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(zs);Vs(CtG);var NP5=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(zs);Vs(NP5);var ibk=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(zs);Vs(ibk);var x_s=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(zs);Vs(x_s);var Ins=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(zs);Vs(Ins);var kM8=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(zs);Vs(kM8);var K68=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(zs);Vs(K68);var XDo=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(zs);Vs(XDo);var F68=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(zs);Vs(F68);var PaW=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(zs);Vs(PaW);var HuJ=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(zs);Vs(HuJ);var sGw=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(zs);Vs(sGw);var zhw=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(zs);Vs(zhw);var fGv=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(zs);Vs(fGv);var D6W=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(zs);Vs(D6W);var uO5=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(zs);Vs(uO5);var qQG=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(zs);Vs(qQG);var JrV=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(zs);Vs(JrV);var Zut=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(zs);Vs(Zut);Ion(MV(300,.5,0),MV(-240,.5,1));Ion(MV(-100,.75,.35),MV(80,1.5,.8));Ion(MV(260,.75,.35),MV(80,1.5,.8));MV();TJ();rZP(zs("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
rZP(zs("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
rZP(zs("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
rZP(zs("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
g4O.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(y,m){y=+y;m=+m;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(y,m):this._context.moveTo(y,m);break;case 1:this._point=2;default:this._context.lineTo(y,m)}}};
(function(y){function m(C){return new E4E(y(C))}
m._curve=y;return m})(function(y){return new g4O(y)});
E4E.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(y,m){this._curve.point(m*Math.sin(y),m*-Math.cos(y))}};
NZM.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:C$l(this,this._t0,C$Z(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(y,m){var C=NaN;y=+y;m=+m;if(y!==this._x1||m!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(y,m):this._context.moveTo(y,m);break;case 1:this._point=2;break;case 2:this._point=3;C$l(this,C$Z(this,C=bYL(this,y,m)),C);break;default:C$l(this,this._t0,C=bYL(this,y,m))}this._x0=this._x1;this._x1=y;this._y0=this._y1;this._y1=m;this._t0=C}}};
(function(y){this._context=new NZt(y)}.prototype=Object.create(NZM.prototype)).point=function(y,m){NZM.prototype.point.call(this,m,y)};
NZt.prototype={moveTo:function(y,m){this._context.moveTo(m,y)},
closePath:function(){this._context.closePath()},
lineTo:function(y,m){this._context.lineTo(m,y)},
bezierCurveTo:function(y,m,C,sl,Zl,By){this._context.bezierCurveTo(m,y,sl,C,By,Zl)}};
Io.prototype={constructor:Io,scale:function(y){return y===1?this:new Io(this.k*y,this.x,this.y)},
translate:function(y,m){return y===0&m===0?this:new Io(this.k,this.x+this.k*y,this.y+this.k*m)},
apply:function(y){return[y[0]*this.k+this.x,y[1]*this.k+this.y]},
invert:function(y){return[(y[0]-this.x)/this.k,(y[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new Io(1,0,0);q4w=ft;lf.svg=lf.svg;lf.xhtml=lf.xhtml;lf.xlink=lf.xlink;lf.xml=lf.xml;lf.xmlns=lf.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 pcL="hammer_"+(Math.random()*1E6|0),BlQ=function(){var K=document||document;if(!K[pcL]){var X=function(){(function(F,P,H,f){function u(LO,Gn,$d){return setTimeout(B(LO,$d),Gn)}
function J(LO,Gn,$d){return Array.isArray(LO)?(Z(LO,$d[Gn],$d),!0):!1}
function Z(LO,Gn,$d){var nW;if(LO)if(LO.forEach)LO.forEach(Gn,$d);else if(LO.length!==f){var sV=0;for(nW=LO.length;sV<nW;sV++)Gn.call($d,LO[sV],sV,LO)}else for(sV in LO)LO.hasOwnProperty(sV)&&Gn.call($d,LO[sV],sV,LO)}
function M(LO,Gn,$d){for(var nW=Object.keys(Gn),sV=0,WJ=nW.length;sV<WJ;sV++)if(!$d||$d&&LO[nW[sV]]===f)LO[nW[sV]]=Gn[nW[sV]];return LO}
function n(LO,Gn){return M(LO,Gn,!0)}
function c(LO,Gn,$d){Gn=Gn.prototype;var nW=LO.prototype=Object.create(Gn);nW.constructor=LO;nW._super=Gn;$d&&M(nW,$d)}
function B(LO,Gn){return function(){return LO.apply(Gn,arguments)}}
function L(LO,Gn){return typeof LO=="function"?LO.apply(Gn?Gn[0]||f:f,Gn):LO}
function A(LO,Gn,$d){Z(R(Gn),function(nW){LO.addEventListener(nW,$d,!1)})}
function d(LO,Gn,$d){Z(R(Gn),function(nW){LO.removeEventListener(nW,$d,!1)})}
function R(LO){return LO.trim().split(/\s+/g)}
function l(LO,Gn,$d){if(LO.indexOf&&!$d)return LO.indexOf(Gn);for(var nW=0,sV=LO.length;nW<sV;nW++)if($d&&LO[nW][$d]==Gn||!$d&&LO[nW]===Gn)return nW;return-1}
function a(LO,Gn,$d){for(var nW=[],sV=[],WJ=0,Y5=LO.length;WJ<Y5;WJ++){var cN=Gn?LO[WJ][Gn]:LO[WJ];l(sV,cN)<0&&nW.push(LO[WJ]);sV[WJ]=cN}$d&&(nW=Gn?nW.sort(function(MV,Sk){return MV[Gn]>Sk[Gn]}):nW.sort());
return nW}
function E(LO,Gn){for(var $d,nW=Gn[0].toUpperCase()+Gn.slice(1),sV=0,WJ=sZ.length;sV<WJ;sV++)if($d=($d=sZ[sV])?$d+nW:Gn,$d in LO)return $d;return f}
function V(LO,Gn){var $d=this;this.manager=LO;this.callback=Gn;this.element=LO.element;this.target=LO.options.inputTarget;this.domHandler=function(nW){L(LO.options.enable,[LO])&&$d.handler(nW)};
this.evEl&&A(this.element,this.evEl,this.domHandler);this.evTarget&&A(this.target,this.evTarget,this.domHandler);this.evWin&&A(F,this.evWin,this.domHandler)}
function x(LO){var Gn;Bk?Gn=gw:z6?Gn=a3:ft?Gn=dL:Gn=eP;return new Gn(LO,N)}
function N(LO,Gn,$d){var nW=$d.pointers.length,sV=$d.changedPointers.length,WJ=Gn&1&&nW-sV===0;$d.isFirst=!!WJ;$d.isFinal=!!(Gn&12&&nW-sV===0);WJ&&(LO.session={});$d.eventType=Gn;Gn=LO.session;nW=$d.pointers;sV=nW.length;Gn.firstInput||(Gn.firstInput=Dl($d));sV>1&&!Gn.firstMultiple?Gn.firstMultiple=Dl($d):sV===1&&(Gn.firstMultiple=!1);WJ=Gn.firstInput;var Y5=(sV=Gn.firstMultiple)?sV.center:WJ.center,cN=$d.center=Mq(nW);$d.timeStamp=wL();$d.deltaTime=$d.timeStamp-WJ.timeStamp;$d.angle=Wy(Y5,cN);$d.distance=
y9(Y5,cN);WJ=$d.center;Y5=Gn.offsetDelta||{};cN=Gn.prevDelta||{};var MV=Gn.prevInput||{};if($d.eventType===1||MV.eventType===4)cN=Gn.prevDelta={x:MV.deltaX||0,y:MV.deltaY||0},Y5=Gn.offsetDelta={x:WJ.x,y:WJ.y};$d.deltaX=cN.x+(WJ.x-Y5.x);$d.deltaY=cN.y+(WJ.y-Y5.y);$d.offsetDirection=pO($d.deltaX,$d.deltaY);sV?(WJ=sV.pointers,WJ=y9(nW[0],nW[1],TJ)/y9(WJ[0],WJ[1],TJ)):WJ=1;$d.scale=WJ;sV?(sV=sV.pointers,nW=Wy(nW[1],nW[0],TJ)-Wy(sV[1],sV[0],TJ)):nW=0;$d.rotation=nW;Y5=Gn.lastInterval||$d;nW=$d.timeStamp-
Y5.timeStamp;$d.eventType!=8&&(nW>25||Y5.velocity===f)?(WJ=Y5.deltaX-$d.deltaX,Y5=Y5.deltaY-$d.deltaY,cN=WJ/nW||0,MV=Y5/nW||0,nW=cN,sV=MV,cN=BN(cN)>BN(MV)?cN:MV,WJ=pO(WJ,Y5),Gn.lastInterval=$d):(cN=Y5.velocity,nW=Y5.velocityX,sV=Y5.velocityY,WJ=Y5.direction);$d.velocity=cN;$d.velocityX=nW;$d.velocityY=sV;$d.direction=WJ;Gn=LO.element;a:{for(nW=$d.srcEvent.target;nW;){if(nW==Gn){nW=!0;break a}nW=nW.parentNode}nW=!1}nW&&(Gn=$d.srcEvent.target);$d.target=Gn;LO.emit("hammer.input",$d);LO.recognize($d);
LO.session.prevInput=$d}
function Dl(LO){for(var Gn=[],$d=0;$d<LO.pointers.length;$d++)Gn[$d]={clientX:BF(LO.pointers[$d].clientX),clientY:BF(LO.pointers[$d].clientY)};return{timeStamp:wL(),pointers:Gn,center:Mq(Gn),deltaX:LO.deltaX,deltaY:LO.deltaY}}
function Mq(LO){var Gn=LO.length;if(Gn===1)return{x:BF(LO[0].clientX),y:BF(LO[0].clientY)};for(var $d=0,nW=0,sV=0;sV<Gn;sV++)$d+=LO[sV].clientX,nW+=LO[sV].clientY;return{x:BF($d/Gn),y:BF(nW/Gn)}}
function pO(LO,Gn){return LO===Gn?1:BN(LO)>=BN(Gn)?LO>0?2:4:Gn>0?8:16}
function y9(LO,Gn,$d){$d||($d=OZ);var nW=Gn[$d[0]]-LO[$d[0]];LO=Gn[$d[1]]-LO[$d[1]];return Math.sqrt(nW*nW+LO*LO)}
function Wy(LO,Gn,$d){$d||($d=OZ);return Math.atan2(Gn[$d[1]]-LO[$d[1]],Gn[$d[0]]-LO[$d[0]])*180/Math.PI}
function eP(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;V.apply(this,arguments)}
function gw(){this.evEl=jO;this.evWin=LG;V.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function a3(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};V.apply(this,arguments)}
function dL(){V.apply(this,arguments);var LO=B(this.handler,this);this.touch=new a3(this.manager,LO);this.mouse=new eP(this.manager,LO)}
function nt(LO,Gn){this.manager=LO;this.set(Gn)}
function ht(LO){if(LO.indexOf("none")>-1)return"none";var Gn=LO.indexOf("pan-x")>-1,$d=LO.indexOf("pan-y")>-1;return Gn&&$d?"pan-x pan-y":Gn||$d?Gn?"pan-x":"pan-y":LO.indexOf("manipulation")>-1?"manipulation":"auto"}
function YC(LO){this.id=Zd++;this.manager=null;this.options=n(LO||{},this.defaults);LO=this.options.enable;this.options.enable=LO===f?!0:LO;this.state=1;this.simultaneous={};this.requireFail=[]}
function uu(LO){return LO==16?"down":LO==8?"up":LO==2?"left":LO==4?"right":""}
function X8(LO,Gn){return(Gn=Gn.manager)?Gn.get(LO):LO}
function qV(){YC.apply(this,arguments)}
function J0(){qV.apply(this,arguments);this.pY=this.pX=null}
function yd(){qV.apply(this,arguments)}
function uT(){YC.apply(this,arguments);this._input=this._timer=null}
function SU(){qV.apply(this,arguments)}
function RC(){qV.apply(this,arguments)}
function tw(){YC.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function TE(LO,Gn){Gn=Gn||{};var $d=Gn.recognizers;Gn.recognizers=$d===f?TE.defaults.preset:$d;return new NV(LO,Gn)}
function NV(LO,Gn){Gn=Gn||{};this.options=n(Gn,TE.defaults);this.options.inputTarget=this.options.inputTarget||LO;this.handlers={};this.session={};this.recognizers=[];this.element=LO;this.input=x(this);this.touchAction=new nt(this,this.options.touchAction);$E(this,!0);Z(Gn.recognizers,function($d){var nW=this.add(new $d[0]($d[1]));$d[2]&&nW.recognizeWith($d[2]);$d[3]&&nW.requireFailure($d[2])},this)}
function $E(LO,Gn){var $d=LO.element;Z(LO.options.cssProps,function(nW,sV){$d.style[E($d.style,sV)]=Gn?nW:""})}
function bu(LO,Gn){var $d=P.createEvent("Event");$d.initEvent(LO,!0,!0);$d.gesture=Gn;Gn.target.dispatchEvent($d)}
var sZ=" webkit moz MS ms o".split(" "),tt=P.createElement("div"),BF=Math.round,BN=Math.abs,wL=Date.now,Zd=1,fs=/mobile|tablet|ip(ad|hone|od)|android/i,ft="ontouchstart"in F,Bk=E(F,"PointerEvent")!==f,z6=ft&&fs.test(navigator.userAgent),OZ=["x","y"],TJ=["clientX","clientY"];V.prototype={handler:function(){},
destroy:function(){this.evEl&&d(this.element,this.evEl,this.domHandler);this.evTarget&&d(this.target,this.evTarget,this.domHandler);this.evWin&&d(F,this.evWin,this.domHandler)}};
var x5={mousedown:1,mousemove:2,mouseup:4};c(eP,V,{handler:function(LO){var Gn=x5[LO.type];Gn&1&&LO.button===0&&(this.pressed=!0);Gn&2&&LO.which!==1&&(Gn=4);this.pressed&&this.allow&&(Gn&4&&(this.pressed=!1),this.callback(this.manager,Gn,{pointers:[LO],changedPointers:[LO],pointerType:"mouse",srcEvent:LO}))}});
var fx={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},qu={2:"touch",3:"pen",4:"mouse",5:"kinect"},jO="pointerdown",LG="pointermove pointerup pointercancel";F.MSPointerEvent&&(jO="MSPointerDown",LG="MSPointerMove MSPointerUp MSPointerCancel");c(gw,V,{handler:function(LO){var Gn=this.store,$d=!1,nW=LO.type.toLowerCase().replace("ms","");nW=fx[nW];var sV=qu[LO.pointerType]||LO.pointerType;nW&1&&(LO.button===0||sV=="touch")?Gn.push(LO):nW&12&&($d=!0);var WJ=l(Gn,LO.pointerId,"pointerId");
WJ<0||(Gn[WJ]=LO,this.callback(this.manager,nW,{pointers:Gn,changedPointers:[LO],pointerType:sV,srcEvent:LO}),$d&&Gn.splice(WJ,1))}});
var JV={touchstart:1,touchmove:2,touchend:4,touchcancel:8};c(a3,V,{handler:function(LO){var Gn=JV[LO.type];var $d=Array.prototype.slice.call(LO.touches,0);var nW=this.targetIds;if(Gn&3&&$d.length===1)nW[$d[0].identifier]=!0,nW=[$d,$d];else{var sV,WJ=Array.prototype.slice.call(LO.targetTouches,0),Y5=Array.prototype.slice.call(LO.changedTouches,0),cN=[];if(Gn===1)for($d=0,sV=WJ.length;$d<sV;$d++)nW[WJ[$d].identifier]=!0;$d=0;for(sV=Y5.length;$d<sV;$d++)nW[Y5[$d].identifier]&&cN.push(Y5[$d]),Gn&12&&
delete nW[Y5[$d].identifier];nW=cN.length?[a(WJ.concat(cN),"identifier",!0),cN]:void 0}nW&&this.callback(this.manager,Gn,{pointers:nW[0],changedPointers:nW[1],pointerType:"touch",srcEvent:LO})}});
c(dL,V,{handler:function(LO,Gn,$d){var nW=$d.pointerType=="mouse";if($d.pointerType=="touch")this.mouse.allow=!1;else if(nW&&!this.mouse.allow)return;Gn&12&&(this.mouse.allow=!0);this.callback(LO,Gn,$d)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var to=E(tt.style,"touchAction"),fl=to!==f;nt.prototype={set:function(LO){LO=="compute"&&(LO=this.compute());fl&&(this.manager.element.style[to]=LO);this.actions=LO.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var LO=[];Z(this.manager.recognizers,function(Gn){L(Gn.options.enable,[Gn])&&(LO=LO.concat(Gn.getTouchAction()))});
return ht(LO.join(" "))},
preventDefaults:function(LO){if(!fl){var Gn=LO.srcEvent;LO=LO.offsetDirection;if(this.manager.session.prevented)Gn.preventDefault();else{var $d=this.actions,nW=$d.indexOf("none")>-1,sV=$d.indexOf("pan-y")>-1;$d=$d.indexOf("pan-x")>-1;if(nW||sV&&$d||sV&&LO&6||$d&&LO&24)return this.preventSrc(Gn)}}},
preventSrc:function(LO){this.manager.session.prevented=!0;LO.preventDefault()}};
YC.prototype={defaults:{},set:function(LO){M(this.options,LO);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(LO){if(J(LO,"recognizeWith",this))return this;var Gn=this.simultaneous;LO=X8(LO,this);Gn[LO.id]||(Gn[LO.id]=LO,LO.recognizeWith(this));return this},
dropRecognizeWith:function(LO){if(J(LO,"dropRecognizeWith",this))return this;LO=X8(LO,this);delete this.simultaneous[LO.id];return this},
requireFailure:function(LO){if(J(LO,"requireFailure",this))return this;var Gn=this.requireFail;LO=X8(LO,this);l(Gn,LO)===-1&&(Gn.push(LO),LO.requireFailure(this));return this},
dropRequireFailure:function(LO){if(J(LO,"dropRequireFailure",this))return this;LO=X8(LO,this);LO=l(this.requireFail,LO);LO>-1&&this.requireFail.splice(LO,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(LO){return!!this.simultaneous[LO.id]},
emit:function(LO){function Gn(sV){$d.manager.emit($d.options.event+(sV?nW&16?"cancel":nW&8?"end":nW&4?"move":nW&2?"start":"":""),LO)}
var $d=this,nW=this.state;nW<8&&Gn(!0);Gn();nW>=8&&Gn(!0)},
tryEmit:function(LO){if(this.canEmit())return this.emit(LO);this.state=32},
canEmit:function(){for(var LO=0;LO<this.requireFail.length;LO++)if(!(this.requireFail[LO].state&33))return!1;return!0},
recognize:function(LO){LO=M({},LO);L(this.options.enable,[this,LO])?(this.state&56&&(this.state=1),this.state=this.process(LO),this.state&30&&this.tryEmit(LO)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
c(qV,YC,{defaults:{pointers:1},attrTest:function(LO){var Gn=this.options.pointers;return Gn===0||LO.pointers.length===Gn},
process:function(LO){var Gn=this.state,$d=LO.eventType,nW=Gn&6;LO=this.attrTest(LO);return nW&&($d&8||!LO)?Gn|16:nW||LO?$d&4?Gn|8:Gn&2?Gn|4:2:32}});
c(J0,qV,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var LO=this.options.direction;if(LO===30)return["none"];var Gn=[];LO&6&&Gn.push("pan-y");LO&24&&Gn.push("pan-x");return Gn},
directionTest:function(LO){var Gn=this.options,$d=!0,nW=LO.distance,sV=LO.direction,WJ=LO.deltaX,Y5=LO.deltaY;sV&Gn.direction||(Gn.direction&6?(sV=WJ===0?1:WJ<0?2:4,$d=WJ!=this.pX,nW=Math.abs(LO.deltaX)):(sV=Y5===0?1:Y5<0?8:16,$d=Y5!=this.pY,nW=Math.abs(LO.deltaY)));LO.direction=sV;return $d&&nW>Gn.threshold&&sV&Gn.direction},
attrTest:function(LO){return qV.prototype.attrTest.call(this,LO)&&(this.state&2||!(this.state&2)&&this.directionTest(LO))},
emit:function(LO){this.pX=LO.deltaX;this.pY=LO.deltaY;var Gn=uu(LO.direction);Gn&&this.manager.emit(this.options.event+Gn,LO);this._super.emit.call(this,LO)}});
c(yd,qV,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(LO){return this._super.attrTest.call(this,LO)&&(Math.abs(LO.scale-1)>this.options.threshold||this.state&2)},
emit:function(LO){this._super.emit.call(this,LO);LO.scale!==1&&this.manager.emit(this.options.event+(LO.scale<1?"in":"out"),LO)}});
c(uT,YC,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(LO){var Gn=this.options,$d=LO.pointers.length===Gn.pointers,nW=LO.distance<Gn.threshold,sV=LO.deltaTime>Gn.time;this._input=LO;if(!nW||!$d||LO.eventType&12&&!sV)this.reset();else if(LO.eventType&1)this.reset(),this._timer=u(function(){this.state=8;this.tryEmit()},Gn.time,this);
else if(LO.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(LO){this.state===8&&(LO&&LO.eventType&4?this.manager.emit(this.options.event+"up",LO):(this._input.timeStamp=wL(),this.manager.emit(this.options.event,this._input)))}});
c(SU,qV,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(LO){return this._super.attrTest.call(this,LO)&&(Math.abs(LO.rotation)>this.options.threshold||this.state&2)}});
c(RC,qV,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return J0.prototype.getTouchAction.call(this)},
attrTest:function(LO){var Gn=this.options.direction;if(Gn&30)var $d=LO.velocity;else Gn&6?$d=LO.velocityX:Gn&24&&($d=LO.velocityY);return this._super.attrTest.call(this,LO)&&Gn&LO.direction&&BN($d)>this.options.velocity&&LO.eventType&4},
emit:function(LO){var Gn=uu(LO.direction);Gn&&this.manager.emit(this.options.event+Gn,LO);this.manager.emit(this.options.event,LO)}});
c(tw,YC,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(LO){var Gn=this.options,$d=LO.pointers.length===Gn.pointers,nW=LO.distance<Gn.threshold,sV=LO.deltaTime<Gn.time;this.reset();if(LO.eventType&1&&this.count===0)return this.failTimeout();if(nW&&sV&&$d){if(LO.eventType!=4)return this.failTimeout();$d=this.pTime?LO.timeStamp-this.pTime<Gn.interval:!0;nW=!this.pCenter||y9(this.pCenter,LO.center)<Gn.posThreshold;this.pTime=LO.timeStamp;this.pCenter=LO.center;nW&&$d?this.count+=1:this.count=1;this._input=LO;if(this.count%Gn.taps===0)return this.hasRequireFailures()?
(this._timer=u(function(){this.state=8;this.tryEmit()},Gn.interval,this),2):8}return 32},
failTimeout:function(){this._timer=u(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))}});
TE.VERSION="2.0.2";TE.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[SU,{enable:!1}],[yd,{enable:!1},["rotate"]],[RC,{direction:6}],[J0,{direction:6},["swipe"]],[tw],[tw,{event:"doubletap",taps:2},["tap"]],[uT]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};NV.prototype={set:function(LO){M(this.options,LO);return this},
stop:function(LO){this.session.stopped=LO?2:1},
recognize:function(LO){var Gn=this.session;if(!Gn.stopped){this.touchAction.preventDefaults(LO);var $d=this.recognizers,nW=Gn.curRecognizer;if(!nW||nW&&nW.state&8)nW=Gn.curRecognizer=null;for(var sV=0,WJ=$d.length;sV<WJ;sV++){var Y5=$d[sV];Gn.stopped===2||nW&&Y5!=nW&&!Y5.canRecognizeWith(nW)?Y5.reset():Y5.recognize(LO);!nW&&Y5.state&14&&(nW=Gn.curRecognizer=Y5)}}},
get:function(LO){if(LO instanceof YC)return LO;for(var Gn=this.recognizers,$d=0;$d<Gn.length;$d++)if(Gn[$d].options.event==LO)return Gn[$d];return null},
add:function(LO){if(J(LO,"add",this))return this;var Gn=this.get(LO.options.event);Gn&&this.remove(Gn);this.recognizers.push(LO);LO.manager=this;this.touchAction.update();return LO},
remove:function(LO){if(J(LO,"remove",this))return this;var Gn=this.recognizers;LO=this.get(LO);Gn.splice(l(Gn,LO),1);this.touchAction.update();return this},
on:function(LO,Gn){var $d=this.handlers;Z(R(LO),function(nW){$d[nW]=$d[nW]||[];$d[nW].push(Gn)});
return this},
off:function(LO,Gn){var $d=this.handlers;Z(R(LO),function(nW){Gn?$d[nW].splice(l($d[nW],Gn),1):delete $d[nW]});
return this},
emit:function(LO,Gn){this.options.domEvents&&bu(LO,Gn);var $d=this.handlers[LO]&&this.handlers[LO].slice();if($d&&$d.length){Gn.type=LO;Gn.preventDefault=function(){Gn.srcEvent.preventDefault()};
LO=0;for(var nW=$d.length;LO<nW;LO++)$d[LO](Gn)}},
destroy:function(){this.element&&$E(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
M(TE,{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:NV,Input:V,TouchAction:nt,Recognizer:YC,AttrRecognizer:qV,Tap:tw,Pan:J0,Swipe:RC,Pinch:yd,Rotate:SU,Press:uT,on:A,off:d,each:Z,merge:n,extend:M,inherit:c,bindFn:B,prefixed:E});
F[H]=TE})(window,document,"Hammer");
return window.Hammer}.call({});
X.DOCUMENT=K;K[pcL]=X}return K[pcL]};/*

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

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

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

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 eL,x0C,IaC;eL=Element.prototype;x0C=eL.matches||eL.matchesSelector||eL.mozMatchesSelector||eL.msMatchesSelector||eL.oMatchesSelector||eL.webkitMatchesSelector;IaC=function(){};
_.KWU=function(K){var X=kDV,F=[];return X._collectTabbableNodes(K,F)?X._sortByTabIndex(F):F};
_.z=IaC.prototype;_.z._normalizedTabIndex=function(K){return(x0C.call(K,"input, select, textarea, button, object")?x0C.call(K,":not([disabled])"):x0C.call(K,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(K=K.getAttribute("tabindex")||0,Number(K)):-1};
_.z._collectTabbableNodes=function(K,X){if(K.nodeType!==Node.ELEMENT_NODE||!this._isVisible(K))return!1;var F=this._normalizedTabIndex(K),P=F>0;F>=0&&X.push(K);if(K.localName==="content"||K.localName==="slot")F=_.cg(K).getDistributedNodes();else{var H;F=((H=_.cg(K).shadowRoot)!=null?H:_.cg(K.root||K)).children}for(K=0;K<F.length;K++)P=this._collectTabbableNodes(F[K],X)||P;return P};
_.z._isVisible=function(K){var X=K.style;return X.visibility!=="hidden"&&X.display!=="none"?(X=window.getComputedStyle(K),X.visibility!=="hidden"&&X.display!=="none"):!1};
_.z._sortByTabIndex=function(K){var X=K.length;if(X<2)return K;var F=Math.ceil(X/2);X=this._sortByTabIndex(K.slice(0,F));K=this._sortByTabIndex(K.slice(F));return this._mergeSortByTabIndex(X,K)};
_.z._mergeSortByTabIndex=function(K,X){for(var F=[];K.length>0&&X.length>0;)this._hasLowerTabOrder(K[0],X[0])?F.push(X.shift()):F.push(K.shift());return F.concat(K,X)};
_.z._hasLowerTabOrder=function(K,X){K=Math.max(K.tabIndex,0);X=Math.max(X.tabIndex,0);return K===0||X===0?X>K:K>X};
var kDV=new IaC;var XOE;var FWN;_.pa({_template:function(){if(FWN!==void 0)return FWN;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;XOE===void 0&&(XOE=document.createElement("template"));var P=XOE;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return FWN=K},
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&&_.cg(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.cg(this.parentNode).removeChild(this)},
_onTransitionend:function(K){K&&K.target===this&&this.complete()},
_openedChanged:function(K){K?this.prepare():(K=window.getComputedStyle(this),K.transitionDuration!=="0s"&&K.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 Ry=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;TB(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)};
Ry.prototype._bringOverlayAtIndexToFront=function(K){var X=this._overlays[K];if(X){var F=this._overlays.length-1,P=this._overlays[F];P&&this._shouldBeBehindOverlay(X,P)&&F--;if(!(K>=F)){P=Math.max(this._getZ(_.PCC(this)),this._minimumZ);for(this._getZ(X)<=P&&this._applyOverlayZ(X,P);K<F;)this._overlays[K]=this._overlays[K+1],K++;this._overlays[F]=X}}};
Ry.prototype.addOverlay=function(K){var X=this._overlays.indexOf(K);if(X>=0)this._bringOverlayAtIndexToFront(X);else{X=this._overlays.length;var F=this._overlays[X-1],P=Math.max(this._getZ(F),this._minimumZ),H=this._getZ(K);F&&this._shouldBeBehindOverlay(K,F)&&(this._applyOverlayZ(F,P),X--,P=Math.max(this._getZ(this._overlays[X-1]),this._minimumZ));H<=P&&this._applyOverlayZ(K,P);this._overlays.splice(X,0,K)}this.trackBackdrop()};
Ry.prototype.removeOverlay=function(K){K=this._overlays.indexOf(K);K!==-1&&(this._overlays.splice(K,1),this.trackBackdrop())};
_.PCC=function(K){return K._overlays[K._overlays.length-1]};
_.z=Ry.prototype;_.z.trackBackdrop=function(){var K=this._overlayWithBackdrop();if(K||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(K)-1,this.backdropElement.opened=!!K,this.backdropElement.prepare()};
_.z._overlayWithBackdrop=function(){for(var K=this._overlays.length-1;K>=0;K--)if(this._overlays[K].withBackdrop)return this._overlays[K]};
_.z._getZ=function(K){var X=this._minimumZ;if(K){var F,P,H=Number(((F=K.hostElement)!=null?F:K).style.zIndex||window.getComputedStyle((P=K.hostElement)!=null?P:K).zIndex);H===H&&(X=H)}return X};
_.z._setZ=function(K,X){var F;((F=K.hostElement)!=null?F:K).style.zIndex=X};
_.z._applyOverlayZ=function(K,X){this._setZ(K,X+2)};
_.z._overlayInPath=function(K){K=K||[];for(var X=0;X<K.length;X++){var F=void 0;if(((F=K[X].polymerController)!=null?F:K[X])._manager===this)return K[X]}};
_.z._onCaptureClick=function(K){var X=this._overlays.length-1;if(X!==-1)for(var F=_.cg(K).path,P,H;(P=this._overlays[X])&&this._overlayInPath(F)!==((H=P.hostElement)!=null?H:P);)if(P._onCaptureClick(K),P.allowClickThrough)X--;else break};
_.z._onCaptureFocus=function(K){var X=_.PCC(this);X&&X._onCaptureFocus(K)};
_.z._onCaptureKeyDown=function(K){var X=_.PCC(this);X&&(_.JP.keyboardEventMatchesKeys(K,"esc")?X._onCaptureEsc(K):_.JP.keyboardEventMatchesKeys(K,"tab")&&X._onCaptureTab(K))};
_.z._shouldBeBehindOverlay=function(K,X){return!K.alwaysOnTop&&X.alwaysOnTop&&!X.contains(K)};
_.Oi.Object.defineProperties(Ry.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 K=document.activeElement;K&&K instanceof Element!==!1||(K=document.body);for(;K.root&&_.cg(K.root).activeElement;)K=_.cg(K.root).activeElement;return K}}});
_.U_=new Ry;var R1y=0,U_T=0,h1T=null,m_M=[],py=["wheel","mousewheel","DOMMouseScroll"],GMO;_.S("web_no_lock_on_touchstart_killswitch")&&(py.push("touchstart"),py.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;_.hP={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:_.U_},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var K;return this._focusedChild||_.cg((K=this.hostElement)!=null?K:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var K;return _.KWU((K=this.hostElement)!=null?K: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 K;this._observer=_.cg((K=this.hostElement)!=null?K:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var K;_.cg((K=this.hostElement)!=null?K:this).unobserveNodes(this._observer)}this._observer=null;for(var X in this.__rafs)this.__rafs[X]!==null&&cancelAnimationFrame(this.__rafs[X]);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(K){this.fire("iron-overlay-canceled",K,{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 K;((K=this.hostElement)!=null?K:this).style.outline="none";var X;((X=this.hostElement)!=null?X:this).style.display="none"}},
_openedChanged:function(K){if(K){var X;((X=this.hostElement)!=null?X:this).removeAttribute("aria-hidden")}else{var F;((F=this.hostElement)!=null?F: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 K;if(this.withBackdrop&&!((K=this.hostElement)!=null?K:this).hasAttribute("tabindex")){var X;((X=this.hostElement)!=null?X:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var F;((F=this.hostElement)!=null?F: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 K;((K=this.hostElement)!=null?K:this).style.display="none";var X;((X=this.hostElement)!=null?X:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var K,X;((K=this.hostElement)!=null?K:this).style.transition=((X=this.hostElement)!=null?X:this).style.webkitTransition="none";var F,P;((F=this.hostElement)!=null?F:this).style.transform=((P=this.hostElement)!=null?P:this).style.webkitTransform="none";var H;((H=this.hostElement)!=null?H:this).style.display=""},
_finishPositioning:function(){var K;((K=this.hostElement)!=null?K:this).style.display="none";this.scrollTop=this.scrollTop;var X,F;((X=this.hostElement)!=null?X:this).style.transition=((F=this.hostElement)!=null?F:this).style.webkitTransition="";var P,H;((P=this.hostElement)!=null?P:this).style.transform=((H=this.hostElement)!=null?H:this).style.webkitTransform="";var f;((f=this.hostElement)!=null?f:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var K=this._manager.deepActiveElement,X;if(!(X=K===document.body))a:{for(;K;K=K.assignedSlot||K.parentNode||K.host)if(K===this){X=!0;break a}X=!1}X&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(K){this.noCancelOnOutsideClick||this.cancel(K)},
_onCaptureFocus:function(K){if(this.withBackdrop){var X=_.cg(K).path;X.indexOf(this)===-1?(K.stopPropagation(),this._applyFocus()):this._focusedChild=X[0]}},
_onCaptureEsc:function(K){this.noCancelOnEscKey||this.cancel(K)},
_onCaptureTab:function(K){if(this.withBackdrop){this.__ensureFirstLastFocusables();var X=K.shiftKey,F=X?this.__firstFocusableNode:this.__lastFocusableNode;X=X?this.__lastFocusableNode:this.__firstFocusableNode;if(F===X)F=!0;else{var P=this._manager.deepActiveElement;F=P===F||P===this}F&&(K.preventDefault(),this._focusedChild=X,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 K=this._focusableNodes;this.__firstFocusableNode=K[0];this.__lastFocusableNode=K[K.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(K,X){var F=this.__rafs;F[K]!==null&&cancelAnimationFrame(F[K]);F[K]=requestAnimationFrame(function(){F[K]=null;X.call(this)}.bind(this))},
__updateScrollObservers:function(K,X,F){K&&X&&this.__isValidScrollAction(F)?(F==="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),GMO=_._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()):(K=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),K!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(K,1),GMO=_._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(Wb)for(var K=this;K;)K.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&K.host&&this.__rootNodes.push(K),K=K.host||K.assignedSlot||K.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(X){X.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(K){K.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(K){return K==="lock"||K==="refit"||K==="cancel"},
__onCaptureScroll:function(K){if(!(this.__isAnimating||_.cg(K).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(K)}},
__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)}};
_.m2=[iBt,_.SL,_.hP];_.pa({_template:function(){if(CHL!==void 0)return CHL;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;bBu===void 0&&(bBu=document.createElement("template"));var P=bBu;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return CHL=K},
is:"tp-yt-iron-dropdown",behaviors:[_.Z_,_.JP,_.m2,lAW],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 K=_.cg(this.$.content).getDistributedNodes(),X=0,F=K.length;X<F;X++)if(K[X].nodeType===Node.ELEMENT_NODE)return K[X]},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(),_.hP._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.hP._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.hP._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var K=this.containedElement,X=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),F=0;F<X.length;F++)X[F].node=K;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(K){this._readied&&(K?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var K=this.focusTarget||this.containedElement;K&&this.opened&&!this.noAutoFocus?K.focus():_.hP._applyFocus.apply(this,arguments)}});var H4W;var sxL;/*

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 zWQ=new _.nT({type:"iconset"});
_.pa({_template:function(){if(sxL!==void 0)return sxL;var K=document.createElement("template");_.w(K,"\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");K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;H4W===void 0&&(H4W=document.createElement("template"));
var P=H4W;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return sxL=K},
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(K){K=(K||"").split(":");this._iconName=K.pop();this._iconsetName=K.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&&_.cg(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=zWQ.byKey(this._iconsetName)){var K=this._iconset.applyIcon(this,this._iconName,this.theme);K&&K.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,_.cg(this.root).appendChild(this._img)}});var fFV;var DBV;_.pa({_template:function(){if(DBV!==void 0)return DBV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);
var X=K.content,F=X.insertBefore;fFV===void 0&&(fFV=document.createElement("template"));var P=fFV;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return DBV=K},
is:"tp-yt-iron-input",behaviors:[_.pT],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(){_.dC.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.cg(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.cg(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 K=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":K=/[0-9.,e-]/}return K},_bindValueChanged:function(K,X){X&&(K===void 0?X.value=null:K!==X.value&&(this.inputElement.value=K),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:K}))},
_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(K){var X=K.keyCode==19||K.keyCode==20||K.keyCode==45||K.keyCode==46||K.keyCode==144||K.keyCode==145||K.keyCode>32&&K.keyCode<41||K.keyCode>111&&K.keyCode<124;return!(K.keyCode==8||K.keyCode==9||K.keyCode==13||K.keyCode==27)&&!(K.charCode==0&&X)},
_onKeypress:function(K){if(this.allowedPattern||this.inputElement.type==="number"){var X=this._patternRegExp;if(X&&!(K.metaKey||K.ctrlKey||K.altKey)){this._patternAlreadyChecked=!0;var F=String.fromCharCode(K.charCode);this._isPrintable(K)&&!X.test(F)&&(K.preventDefault(),this._announceInvalidCharacter("Invalid character "+F+" not entered."))}}},
_checkPatternValidity:function(){var K=this._patternRegExp;if(!K)return!0;for(var X=0;X<this.inputElement.value.length;X++)if(!K.test(this.inputElement.value[X]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var K=this.inputElement.checkValidity();K&&(this.required&&this.bindValue===""?K=!1:this.hasValidator()&&(K=_.pT.validate.call(this,this.bindValue)));this.invalid=!K;this.fire("iron-input-validate");return K},
_announceInvalidCharacter:function(K){this.fire("iron-announce",{text:K})},
_computeValue:function(K){return K}});var uqW;var qeV;var JeQ=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),Z4u=JeQ&&JeQ[1]>=8;
_.pa({_template:function(){if(qeV!==void 0)return qeV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;uqW===void 0&&(uqW=document.createElement("template"));var P=uqW;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return qeV=K},
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:[NrP,_.SL,_.Gbt,ADC],_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 _.cg(_.cg(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var K=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,K-this._physicalCount)},set _virtualStart(K){K=this._clamp(K,0,this._maxVirtualStart);this.grid&&(K-=K%this._itemsPerRow);this._virtualStartVal=K},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(K){K%=this._physicalCount;K<0&&(K=this._physicalCount+K);this.grid&&(K-=K%this._itemsPerRow);this._physicalStartVal=K},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(K){this._physicalCountVal=K},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 K=this._firstVisibleIndexVal;if(K==null){var X=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
K=this._iterateItems(function(F,P){X+=this._getPhysicalSizeIncrement(F);if(X>this._scrollPosition)return this.grid?P-P%this._itemsPerRow:P;if(this.grid&&this._virtualCount-1===P)return P-P%this._itemsPerRow})||0}return K},
get lastVisibleIndex(){var K=this._lastVisibleIndexVal;if(K==null){if(this.grid)K=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var X=this._physicalTop+this._scrollOffset;this._iterateItems(function(F,P){X<this._scrollBottom&&(K=P);X+=this._getPhysicalSizeIncrement(F)})}this._lastVisibleIndexVal=K}return K},
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,_.cn);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(K){this.style.webkitOverflowScrolling=K===this?"touch":"";this.style.overflowY=K===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.cn)},
updateViewportBoundaries:function(){var K=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(K["padding-top"],10);this._isRTL=K.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var K=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),X=K-this._scrollPosition,F=X>=0;this._scrollPosition=K;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(X)>this._physicalSize&&this._physicalSize>0?(X-=this._scrollOffset,F=Math.round(X/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=F,this._physicalStart+=F,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(K=this._getReusables(F),F?(this._physicalTop=K.physicalTop,this._virtualStart+=K.indexes.length,this._physicalStart+=K.indexes.length):(this._virtualStart=this._virtualStart-K.indexes.length,this._physicalStart=this._physicalStart-K.indexes.length),this._update(K.indexes,F?null:K.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),jW))},
_getReusables:function(K){var X=[],F=this._hiddenContentSize*this._ratio,P=this._virtualStart,H=this._virtualEnd,f=this._physicalCount,u=this._physicalTop+this._scrollOffset;var J=this._physicalBottom+this._scrollOffset;var Z=this._scrollPosition,M=this._scrollBottom;if(K){var n=this._physicalStart;J=Z-u}else n=this._physicalEnd,J-=M;for(;;){var c=this._getPhysicalSizeIncrement(n);J-=c;if(X.length>=f||J<=F)break;if(K){if(H+X.length+1>=this._virtualCount)break;if(u+c>=Z-this._scrollOffset)break;X.push(n);
u+=c;n=(n+1)%f}else{if(P-X.length<=0)break;if(u+this._physicalSize-c<=M)break;X.push(n);u-=c;n=n===0?f-1:n-1}}return{indexes:X,physicalTop:u-this._scrollOffset}},
_update:function(K,X){if(!(K&&K.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(K);this._updateMetrics(K);if(X)for(;X.length;)K=X.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(K);this._positionItems();this._updateScrollerSize()}},
_createPool:function(K){this._ensureTemplatized();var X,F=Array(K);for(X=0;X<K;X++){var P=this.stamp(null);F[X]=P.root.querySelector("*");this._itemsParent.appendChild(P.root)}return F},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(K){K=this._clamp(this._physicalCount+K,3,this._virtualCount-this._virtualStart);K=this._convertIndexToCompleteRow(K);if(this.grid){var X=K%this._itemsPerRow;X&&K-X<=this._physicalCount&&(K+=this._itemsPerRow);K-=X}K-=this._physicalCount;X=Math.round(this._physicalCount*.5);if(!(K<0)){if(K>0){X=window.performance.now();[].push.apply(this._physicalItems,this._createPool(K));for(var F=0;F<K;F++)this._physicalSizes.push(0);this._physicalCount+=K;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=K);this._update();this._templateCost=(window.performance.now()-X)/K;X=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||X===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,X)),fpt):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,X),jW))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var K=this._getReusables(!0);this._physicalTop=K.physicalTop;this._virtualStart+=K.indexes.length;this._physicalStart+=K.indexes.length;this._update(K.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 K={__key__:!0};K[this.as]=!0;K[this.indexAs]=!0;K[this.selectedAs]=!0;K.tabIndex=!0;this._instanceProps=K;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(K,X){typeof X!=="undefined"&&(this.notifyResize(),_.Fz(),K&&this._updateGridMetrics())},
_itemsChanged:function(K){if(K.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,
_.cn);else if(K.path==="items.splices"){this._adjustVirtualIndex(K.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(K.value.indexSplices.some(function(F){return F.addedCount>0||F.removed.length>0})){var X=this._getActiveElement();
this.contains(X)&&X.blur()}K=K.value.indexSplices.some(function(F){return F.index+F.addedCount>=this._virtualStart&&F.index<=this._virtualEnd},this);
this._isClientFull()&&!K||this._debounce("_render",this._render,_.cn)}else K.path!=="items.length"&&this._forwardItemPath(K.path,K.value)},
_forwardItemPath:function(K,X){K=K.slice(6);var F=K.indexOf(".");F===-1&&(F=K.length);var P,H=this.modelForElement(this._offscreenFocusedItem),f=parseInt(K.substring(0,F),10);if(P=this._isIndexRendered(f)){var u=this._getPhysicalIndex(f);var J=this.modelForElement(this._physicalItems[u])}else H&&(J=H);J&&J[this.indexAs]===f&&(K=K.substring(F+1),K=this.as+(K?"."+K:""),J._setPendingPropertyOrPath(K,X,!1,!0),J._flushProperties&&J._flushProperties(),P&&(this._updateMetrics([u]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(K){K.forEach(function(X){X.removed.forEach(this._removeItem,this);X.index<this._virtualStart&&(X=Math.max(X.addedCount-X.removed.length,X.index-this._virtualStart),this._virtualStart+=X,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=X))},this)},
_removeItem:function(K){this.$.selector.deselect(K);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===K&&this._removeFocusedItem()},
_iterateItems:function(K,X){var F,P;if(arguments.length===2&&X)for(P=0;P<X.length;P++){var H=X[P];var f=this._computeVidx(H);if((F=K.call(this,H,f))!=null)return F}else{H=this._physicalStart;for(f=this._virtualStart;H<this._physicalCount;H++,f++)if((F=K.call(this,H,f))!=null)return F;for(H=0;H<this._physicalStart;H++,f++)if((F=K.call(this,H,f))!=null)return F}},
_computeVidx:function(K){return K>=this._physicalStart?this._virtualStart+(K-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+K},
_assignModels:function(K){this._iterateItems(function(X,F){var P=this._physicalItems[X],H=this.items&&this.items[F];if(H!=null){var f=this.modelForElement(P);f.__key__=null;this._forwardProperty(f,this.as,H);this._forwardProperty(f,this.selectedAs,this.$.selector.isSelected(H));this._forwardProperty(f,this.indexAs,F);this._forwardProperty(f,"tabIndex",this._focusedVirtualIndex===F?0:-1);this._physicalIndexForKey[f.__key__]=X;f._flushProperties&&f._flushProperties(!0);P.removeAttribute("hidden")}else P.setAttribute("hidden",
"")},K)},
_updateMetrics:function(K){_.Fz();var X=0,F=0,P=this._physicalAverageCount,H=this._physicalAverage;this._iterateItems(function(f){F+=this._physicalSizes[f];this._physicalSizes[f]=this._physicalItems[f].offsetHeight;X+=this._physicalSizes[f];this._physicalAverageCount+=this._physicalSizes[f]?1:0},K);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(F=this._itemsPerRow===1?F:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+X-F,this._itemsPerRow=1);this._physicalAverageCount!==P&&(this._physicalAverage=Math.round((H*P+X)/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 K=this._physicalTop;if(this.grid){var X=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(F,P){var H=Math.floor(P%this._itemsPerRow*this._itemWidth+X);this._isRTL&&(H*=-1);this.translate3d(H+"px",K+"px",0,this._physicalItems[F]);this._shouldRenderNextRow(P)&&(K+=this._rowHeight)})}else this._iterateItems(function(F){this.translate3d(0,K+"px",0,this._physicalItems[F]);
K+=this._physicalSizes[F]})},
_getPhysicalSizeIncrement:function(K){return this.grid?this._computeVidx(K)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[K]},
_shouldRenderNextRow:function(K){return K%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var K=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(K!==0){this._physicalTop=this._physicalTop-K;var X=this._scrollPosition;!Z4u&&X>0&&this._resetScrollPosition(X-K)}},
_resetScrollPosition:function(K){this.scrollTarget&&K>=0&&(this._scrollPosition=this._scrollTop=K)},
_updateScrollerSize:function(K){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((K=(K=(K=K||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(K){return this.scrollToIndex(this.items.indexOf(K))},
scrollToIndex:function(K){if(!(typeof K!=="number"||K<0||K>this.items.length-1)&&(_.Fz(),this._physicalCount!==0)){K=this._clamp(K,0,this._virtualCount-1);if(!this._isIndexRendered(K)||K>=this._maxVirtualStart)this._virtualStart=this.grid?K-this._itemsPerRow*2:K-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var X=this._physicalStart,F=this._virtualStart,P=0,H=this._hiddenContentSize;F<K&&
P<=H;)P+=this._getPhysicalSizeIncrement(X),X=(X+1)%this._physicalCount,F++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+P);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)},_.cn)},
selectItem:function(K){return this.selectIndex(this.items.indexOf(K))},
selectIndex:function(K){if(!(K<0||K>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(K)){var X=this.modelForElement(this._physicalItems[this._getPhysicalIndex(K)]);X&&(X[this.selectedAs]=!0);this.updateSizeForIndex(K)}this.$.selector.selectIndex(K)}},
deselectItem:function(K){return this.deselectIndex(this.items.indexOf(K))},
deselectIndex:function(K){K<0||K>=this._virtualCount||(this._isIndexRendered(K)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(K)])[this.selectedAs]=!1,this.updateSizeForIndex(K)),this.$.selector.deselectIndex(K))},
toggleSelectionForItem:function(K){return this.toggleSelectionForIndex(this.items.indexOf(K))},
toggleSelectionForIndex:function(K){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(K):this.$.selector.isSelected(this.items[K]))?this.deselectIndex(K):this.selectIndex(K)},
clearSelection:function(){this._iterateItems(function(K){this.modelForElement(this._physicalItems[K])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(K){(K?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(K){var X=this.modelForElement(K.target);if(X){var F=_.cg(K).path[0];K=this._getActiveElement();var P=this._physicalItems[this._getPhysicalIndex(X[this.indexAs])];if(F.localName!=="input"&&F.localName!=="button"&&F.localName!=="select"){F=X.tabIndex;X.tabIndex=-100;var H=K?K.tabIndex:-1;X.tabIndex=F;K&&P!==K&&P.contains(K)&&H!==-100||this.toggleSelectionForItem(X[this.as])}}},
_multiSelectionChanged:function(K){this.clearSelection();this.$.selector.multi=K},
updateSizeForItem:function(K){return this.updateSizeForIndex(this.items.indexOf(K))},
updateSizeForIndex:function(K){if(!this._isIndexRendered(K))return null;this._updateMetrics([this._getPhysicalIndex(K)]);this._positionItems();return null},
_manageFocus:function(){var K=this._focusedVirtualIndex;K>=0&&K<this._virtualCount?this._isIndexRendered(K)?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(K){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(K/this._itemsPerRow)*this._itemsPerRow:K},
_isIndexRendered:function(K){return K>=this._virtualStart&&K<=this._virtualEnd},
_isIndexVisible:function(K){return K>=this.firstVisibleIndex&&K<=this.lastVisibleIndex},
_getPhysicalIndex:function(K){return(this._physicalStart+(K-this._virtualStart))%this._physicalCount},
focusItem:function(K){this._focusPhysicalItem(K)},
_focusPhysicalItem:function(K){if(!(K<0||K>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(K)||this.scrollToIndex(K);var X=this._physicalItems[this._getPhysicalIndex(K)],F=this.modelForElement(X),P;F.tabIndex=-100;X.tabIndex===-100&&(P=X);P||(P=_.cg(X).querySelector('[tabindex="-100"]'));F.tabIndex=0;this._focusedVirtualIndex=K;P&&P.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 K=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var X=this.stamp(null);this._focusBackfillItem=X.root.querySelector("*");this._itemsParent.appendChild(X.root)}this._offscreenFocusedItem=this._physicalItems[K];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[K]=this._focusBackfillItem;this._focusedPhysicalIndex=K;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var K=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),X=this._physicalItems[K];if(X){var F=this.modelForElement(X),P=this.modelForElement(this._offscreenFocusedItem);F[this.as]===P[this.as]?(this._focusBackfillItem=X,F.tabIndex=-1,this._physicalItems[K]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(K){K=this.modelForElement(K.target);var X=this.modelForElement(this._focusedItem),F=this._offscreenFocusedItem!==null,P=this._focusedVirtualIndex;K&&(X===K?this._isIndexVisible(P)||this.scrollToIndex(P):(this._restoreFocusedItem(),X&&(X.tabIndex=-1),K.tabIndex=0,this._focusedVirtualIndex=P=K[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(P),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],F&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(K){switch(K.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&K.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&&K.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(K)}},
_clamp:function(K,X,F){return Math.min(F,Math.max(X,K))},
_debounce:function(K,X,F){this._debouncers=this._debouncers||{};this._debouncers[K]=_.xs(this._debouncers[K],F,X.bind(this));_.IK(this._debouncers[K])},
_forwardProperty:function(K,X,F){K._setPendingProperty(X,F)},
_forwardHostPropV2:function(K,X){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(F){F&&this.modelForElement(F).forwardHostProp(K,X)},this)},
_notifyInstancePropV2:function(K,X,F){VdO(this.as,X)&&(K=K[this.indexAs],X==this.as&&(this.items[K]=F),this.notifyPath(zB(this.as,"items."+K,X),F))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(K,X,F){X.indexOf(this.as+".")===0&&this.notifyPath("items."+K.__key__+"."+X.slice(this.as.length+1),F)},
_forwardParentPath:function(K,X){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(F){F&&this.modelForElement(F).notifyPath(K,X)},this)},
_forwardParentProp:function(K,X){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(F){F&&(this.modelForElement(F)[K]=X)},this)},
_getActiveElement:function(){var K=this._itemsParent.node.domHost;return _.cg(K?K.root:document).activeElement},
_scrollTargetChanged:function(K,X){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(X)if(K==="document")this.scrollTarget=this._doc;else if(typeof K==="string"){var F,P;this.scrollTarget=(X=(P=(F=this.domHost)==null?void 0:F.polymerController)!=null?P:this.domHost)&&X.$?X.$[K]:_.cg(this.ownerDocument).querySelector("#"+K)}else this._isValidScrollTarget()&&(this._oldScrollTarget=K,this._toggleScrollListener(this._shouldHaveListener,K))}});var Yet;var QxT;var MdO=function(K,X,F,P){K-=F;X-=P;return Math.sqrt(K*K+X*X)},nfu=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
lnO.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var vo9=function(K){K.maxRadius=0;K.mouseDownStart=0;K.mouseUpStart=0;K.xStart=0;K.yStart=0;K.xEnd=0;K.yEnd=0;K.containerMetrics=new lnO(K.element)};
anq.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var K=nfu()-this.mouseDownStart;this.mouseUpStart&&(K-=this.mouseUpElapsed);return K},get mouseUpElapsed(){return this.mouseUpStart?nfu()-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 K=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(K*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-K/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var K=this.radius/(this.containerMetrics.size/2);var X=this.xNow-this.containerMetrics.width/2;var F=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+X+"px, "+F+"px)";this.waveContainer.style.transform="translate3d("+X+"px, "+F+"px, 0)";this.wave.style.webkitTransform="scale("+K+","+K+")";this.wave.style.transform="scale3d("+K+","+K+",1)"},
downAction:function(K){var X=this.containerMetrics.width/2,F=this.containerMetrics.height/2;vo9(this);this.mouseDownStart=nfu();this.center?(this.xStart=X,this.yStart=F):(this.xStart=K?K.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=K?K.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=X,this.yEnd=F);K=this.containerMetrics;X=this.xStart;F=this.yStart;this.maxRadius=Math.max(MdO(X,F,0,0),MdO(X,F,
K.width,0),MdO(X,F,0,K.height),MdO(X,F,K.width,K.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=nfu())},
remove:function(){_.cg(_.cg(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.pa({_template:function(){if(QxT!==void 0)return QxT;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;Yet===void 0&&(Yet=document.createElement("template"));var P=Yet;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return QxT=K},
is:"tp-yt-paper-ripple",behaviors:[_.JP],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(){_.cg(this).parentNode.nodeType==11?this.keyEventTarget=_.cg(this).getOwnerRoot().host:this.keyEventTarget=_.cg(this).parentNode;var K=this.keyEventTarget;this.listen(K,"up","uiUpAction");this.listen(K,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(K){K.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var K=0;K<this.ripples.length;++K)if(!this.ripples[K].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(K){this.noink||this.downAction(K)},
downAction:function(K){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(K),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(K){this.noink||this.upAction(K)},
upAction:function(K){this.holdDown||(this.ripples.forEach(function(X){X.upAction(K)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var K=0;K<this.ripples.length;++K){var X=this.ripples[K];X.isOpacityFullyDecayed&&!X.isRestingAtMaxRadius&&this.removeRipple(X)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var K=new anq(this);_.cg(this.$.waves).appendChild(K.waveContainer);this.$.background.style.backgroundColor=K.color;this.ripples.push(K);this._setAnimating(!0);return K},
removeRipple:function(K){var X=this.ripples.indexOf(K);X<0||(this.ripples.splice(X,1),K.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var K;for(K=0;K<this.ripples.length;++K){var X=this.ripples[K];X.draw();this.$.background.style.opacity=X.outerOpacity;X.isOpacityFullyDecayed&&!X.isRestingAtMaxRadius&&this.removeRipple(X)}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(K,X){X!==void 0&&(K?this.downAction():this.upAction())}});var Ge={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(K){Yw._downHandler.call(this,K);this.pressed&&this.ensureRipple(K)},
ensureRipple:function(K){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var X=this._rippleContainer||this.root;X&&_.cg(X).appendChild(this._ripple);if(K){X=_.cg(this._rippleContainer||this);var F=_.cg(K).rootTarget;X.deepContains(F)&&this._ripple.uiDownAction(K)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(K){this.hasRipple()&&(this._ripple.noink=K)}};var ceE={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 K=1;this.disabled?K=0:this.active||this.pressed?K=4:this.receivedFocusFromKeyboard&&(K=3);this._setElevation(K)},
_computeKeyboardClass:function(K){this.toggleClass("keyboard-focus",K)},
_spaceKeyDownHandler:function(K){Yw._spaceKeyDownHandler.call(this,K);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(K){Yw._spaceKeyUpHandler.call(this,K);this.hasRipple()&&this._ripple.uiUpAction()}},pOV=[AAt,
_.Z_,Ge,ceE];_.BnC={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(K){K&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=K)},
_createRipple:function(){var K=Ge._createRipple();K.id="ink";K.setAttribute("center","");K.classList.add("circle");return K}};
_.SeQ=[AAt,_.Z_,Ge,_.BnC];_.oft=[_.SeQ,yAQ,{_checkedChanged:function(){wcC._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){Ge._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var LWC;var TnV;var ret=function(){};
_.z=ret.prototype;_.z.registered=function(){};
_.z.addOwnKeyBinding=function(){};
_.z.removeOwnKeyBindings=function(){};
_.z.keyboardEventMatchesKeys=function(){};
_.z._collectKeyBindings=function(){};
_.z._prepKeyBindings=function(){};
_.z._addKeyBinding=function(){};
_.z._resetKeyEventListeners=function(){};
_.z._listenKeyEventListeners=function(){};
_.z._unlistenKeyEventListeners=function(){};
_.z._onKeyBindingEvent=function(){};
_.z._triggerKeyHandler=function(){};
_.z._tapHandler=function(){};
_.z._focusChanged=function(){};
_.z._detectKeyboardFocus=function(){};
_.z._userActivate=function(){};
_.z._upHandler=function(){};
_.z._asyncClick=function(){};
_.z._pressedChanged=function(){};
_.z._ariaActiveAttributeChanged=function(){};
_.z._activeChanged=function(){};
_.z._controlStateChanged=function(){};
_.z._changedButtonState=function(){};
_.z._focusBlurHandler=function(){};
_.z._disabledChanged=function(){};
_.z._changedControlState=function(){};
_.z._buttonStateChanged=function(){};
_.z._downHandler=function(){};
_.z.ensureRipple=function(){};
_.z.getRipple=function(){};
_.z.hasRipple=function(){};
_.z._createRipple=function(){};
_.z._noinkChanged=function(){};
_.z._computeKeyboardClass=function(){};
_.z._spaceKeyDownHandler=function(){};
_.z._spaceKeyUpHandler=function(){};
_.z._setPressed=function(){};
_.z._setPointerDown=function(){};
_.z._setReceivedFocusFromKeyboard=function(){};
_.z._setFocused=function(){};
_.z._setElevation=function(){};
ret=_.pa({_template:function(){if(TnV!==void 0)return TnV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);
var X=K.content,F=X.insertBefore;LWC===void 0&&(LWC=document.createElement("template"));var P=LWC;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return TnV=K},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[pOV],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?ceE._calculateElevation.apply(this):this._setElevation(0)}});var AeW;var jxt;var wON={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(K){_.S("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(K)},
_onDialogClickWrapped:function(K){_.S("dialog_behavior_no_tap_killswitch")||this._onDialogClick(K)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(K,X){X&&(K?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
_updateClosingReasonConfirmed:function(K){this.closingReason=this.closingReason||{};this.closingReason.confirmed=K},
_onDialogClick:function(K){for(var X=_.cg(K).path,F=0,P,H=X.indexOf((P=this.hostElement)!=null?P:this);F<H;F++)if(P=X[F],P.hasAttribute&&(P.hasAttribute("dialog-dismiss")||P.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(P.hasAttribute("dialog-confirm"));this.close();K.stopPropagation();break}}},yet=[_.m2,
wON];var WWL=document.createElement("template");_.w(WWL,'<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(WWL.content);var dBL=document.createElement("template");_.w(dBL,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(dBL.content);_.pa({_template:function(){if(jxt!==void 0)return jxt;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);
var X=K.content,F=X.insertBefore;AeW===void 0&&(AeW=document.createElement("template"));var P=AeW;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return jxt=K},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[yet,lAW],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 eWZ;var RWL;_.pa({_template:function(){if(RWL!==void 0)return RWL;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;eWZ===void 0&&(eWZ=document.createElement("template"));var P=eWZ;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return RWL=K},
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 K,X,F;if(((K=window.ShadyDOM)==null?void 0:K.noPatch)!==!0&&((X=window.ShadyDOM)==null?void 0:X.noPatch)!=="on-demand"||((F=this.__shady_parentNode)==null?void 0:F.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(wON)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var UBE=_.lr(['<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>']),hWE=_.dzt(UBE);hWE.setAttribute("style","display: none;");document.head.appendChild(hWE.content);var mBE;var G9Z;var lFO;var vfW;_.pa({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[oy],configure:function(K){var X=K.node,F=X.getBoundingClientRect().height;return this._effect=new KeyframeEffect(X,[{height:F/2+"px"},{height:F+"px"}],this.timingFromConfig(K))}});
_.pa({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[oy],configure:function(K){var X=K.node,F=X.getBoundingClientRect().width;return this._effect=new KeyframeEffect(X,[{width:F/2+"px"},{width:F+"px"}],this.timingFromConfig(K))}});
_.pa({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[oy],configure:function(K){var X=K.node,F=X.getBoundingClientRect().width;return this._effect=new KeyframeEffect(X,[{width:F+"px"},{width:F-F/20+"px"}],this.timingFromConfig(K))}});
_.pa({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[oy],configure:function(K){var X=K.node,F=X.getBoundingClientRect().height;this.setPrefixedProperty(X,"transformOrigin","0 0");return this._effect=new KeyframeEffect(X,[{height:F+"px",transform:"translateY(0)"},{height:F/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(K))}});var l4={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},aFE=function(){};
_.z=aFE.prototype;_.z.registered=function(){};
_.z.addOwnKeyBinding=function(){};
_.z.removeOwnKeyBindings=function(){};
_.z.keyboardEventMatchesKeys=function(){};
_.z._collectKeyBindings=function(){};
_.z._prepKeyBindings=function(){};
_.z._addKeyBinding=function(){};
_.z._resetKeyEventListeners=function(){};
_.z._listenKeyEventListeners=function(){};
_.z._unlistenKeyEventListeners=function(){};
_.z._onKeyBindingEvent=function(){};
_.z._triggerKeyHandler=function(){};
_.z._focusBlurHandler=function(){};
_.z._changedControlState=function(){};
_.z._setFocused=function(){};
aFE=_.pa({_template:function(){if(vfW!==void 0)return vfW;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;lFO===void 0&&(lFO=document.createElement("template"));var P=lFO;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return vfW=K},
is:"tp-yt-paper-menu-button",behaviors:[_.JP,_.Z_],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:l4.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:l4.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:l4.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 K=_.cg(this.$.content).getDistributedNodes(),X=0,F=K.length;X<F;X++)if(K[X].nodeType===Node.ELEMENT_NODE)return K[X]},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(K,X){K?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):X!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(K){_.Z_._disabledChanged.apply(this,arguments);K&&this.opened&&this.close()},
__onIronOverlayCanceled:function(K){var X=this.$.trigger;_.cg(K.detail).path.indexOf(X)>-1&&K.preventDefault()}});
Object.keys(l4).forEach(function(K){aFE[K]=l4[K]});var tdO=_.Q5.IronButtonState,$Bt=(0,_.JL)(HTMLElement);
_.pa({_template:function(){if(G9Z!==void 0)return G9Z;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;mBE===void 0&&(mBE=document.createElement("template"));var P=mBE;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return G9Z=K},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[tdO,_.Z_,Ge,_.Mf,_.pT],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(K){var X=(0,_.Jg)(this);X.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:K});X.shadowRoot.appendChild(K);return $Bt.prototype._attachDom.call(this,K)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var K=this.contentElement;K&&K.selectedItem&&this._setSelectedItem(K.selectedItem)},
get contentElement(){for(var K=_.cg(this.$.content).getDistributedNodes(),X=0,F=K.length;X<F;X++)if(K[X].nodeType===Node.ELEMENT_NODE)return K[X]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(K){this._setSelectedItem(K.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(K){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K)===this&&this.open()},
_selectedItemChanged:function(K){var X="";K?X=K.label||K.getAttribute("label")||K.textContent.trim():X="";this.value=X;this._setSelectedItemLabel(X)},
_computeMenuVerticalOffset:function(K,X){return X?X:K?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var K=this.opened?"true":"false",X=this.contentElement;X&&X.setAttribute("aria-expanded",K)},
_computeLabelClass:function(K,X,F){var P="label";if(K)F&&(P+=" label-is-hidden");else if(F||X)P+=" label-is-floating";return P},
_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 O4C;var VdW;_.pa({is:"tp-yt-paper-icon-button",_template:function(){if(VdW!==void 0)return VdW;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;O4C===void 0&&(O4C=document.createElement("template"));var P=O4C;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return VdW=K},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.SeQ],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(K,X){var F=this.getAttribute("aria-label");F&&X!=F||this.setAttribute("aria-label",K)}});var gfN;var EfZ;_.vx=[AAt,_.Z_,{hostAttributes:{role:"option",tabindex:"0"}}];_.pa({_template:function(){if(EfZ!==void 0)return EfZ;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;gfN===void 0&&(gfN=document.createElement("template"));var P=gfN;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return EfZ=K},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.vx]});var b4W;var CCT;var Nnt={attached:function(){this.fire("addon-attached")},
update:function(){}};var i4U=1,xBL=1,IFZ=1,k9t=[_.Z_,_.JP,{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();!VA&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(K,X){K?K=K+" "+X:K=X;return K},
_onAddonAttached:function(K){K=_.cg(K).rootTarget;if(K.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,K.id);else{var X="paper-input-add-on-"+xBL++;K.id=X;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,X)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(K){_.Z_._focusBlurHandler.call(this,K);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var K=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",K);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(K){try{var X=this.inputElement.selectionStart;this.value=K;this.inputElement.selectionStart=X;this.inputElement.selectionEnd=X}catch(F){this.value=K}},
_computeAlwaysFloatLabel:function(K,X){return X||K},
_updateAriaLabelledBy:function(){var K=_.cg(this.root).querySelector("label");if(K){if(K.id)var X=K.id;else X="paper-input-label-"+i4U++,K.id=X;this._ariaLabelledBy=X}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+IFZ++)},
_onChange:function(K){this.shadowRoot&&this.fire(K.type,{sourceEvent:K},{node:this,bubbles:K.bubbles,cancelable:K.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var K=document.activeElement;K instanceof HTMLElement&&K!==document.body&&K!==document.documentElement||this._focusableElement.focus()}}}];var K_C;var XpL;_.pa({_template:function(){if(XpL!==void 0)return XpL;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;K_C===void 0&&(K_C=document.createElement("template"));var P=K_C;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return XpL=K},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[Nnt],properties:{_charCounterStr:{type:String,value:"0"}},update:function(K){if(K.inputElement){K.value=K.value||"";var X=K.value.toString().length.toString();K.inputElement.hasAttribute("maxlength")&&(X+="/"+K.inputElement.getAttribute("maxlength"));this._charCounterStr=X}}});var F_U;var P6t;_.pa({_template:function(){if(P6t!==void 0)return P6t;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;F_U===void 0&&(F_U=document.createElement("template"));var P=F_U;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return P6t=K},
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 XS(this.attrForValue)},get _inputElement(){return _.cg(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(K){this._addons||(this._addons=[]);K=K.target;this._addons.indexOf(K)===-1&&(this._addons.push(K),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(K){this._handleValueAndAutoValidate(K.target)},
_onValueChanged:function(K){var X=K.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,X.value===void 0||X.value===""))return;this._handleValueAndAutoValidate(K.target)},
_handleValue:function(K){var X=this._inputElementValue;X||X===0||K.type==="number"&&!K.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:K,value:X,invalid:this.invalid})},
_handleValueAndAutoValidate:function(K){this.autoValidate&&K&&(this.invalid=!(K.validate?K.validate(this._inputElementValue):K.checkValidity()));this._handleValue(K)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(K){if(this._addons)for(var X,F=0;X=this._addons[F];F++)X.update(K)},
_computeInputContentClass:function(K,X,F,P,H){var f="input-content";K?(H&&(f+=" label-is-hidden"),P&&!this.noUnfloatedLabelError&&(f+=" is-invalid")):(K=this.querySelector("label"),X||H?(f+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",P?f+=" is-invalid":F&&(f+=" label-is-highlighted")):(K&&(this.$.labelAndInputContainer.style.position="relative"),P&&!this.noUnfloatedLabelError&&(f+=" is-invalid")));F&&(f+=" focused");return f},
_computeUnderlineClass:function(K,X){var F="underline";X?F+=" is-invalid":K&&(F+=" is-highlighted");return F},
_computeAddOnContentClass:function(K,X){var F="add-on-content";X?F+=" is-invalid":K&&(F+=" is-highlighted");return F}});var HSC;var skZ;_.pa({_template:function(){if(skZ!==void 0)return skZ;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;HSC===void 0&&(HSC=document.createElement("template"));var P=HSC;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return skZ=K},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[Nnt],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(K){this._setInvalid(K.invalid)}});_.pa({is:"tp-yt-paper-input",_template:function(){if(CCT!==void 0)return CCT;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;b4W===void 0&&(b4W=document.createElement("template"));var P=b4W;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return CCT=K},
behaviors:[k9t,_.Mf],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 z4Z;var fbZ;_.pa({_template:function(){if(fbZ!==void 0)return fbZ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=
K.content,F=X.insertBefore;z4Z===void 0&&(z4Z=document.createElement("template"));var P=z4Z;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return fbZ=K},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.vx]});var Ddt;var uju;_.pa({_template:function(){if(uju!==void 0)return uju;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);
var X=K.content,F=X.insertBefore;Ddt===void 0&&(Ddt=document.createElement("template"));var P=Ddt;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return uju=K},
is:"tp-yt-paper-item-body"});var qyO;var JfE;var ZSE=function(){};
_.z=ZSE.prototype;_.z.indexOf=function(){};
_.z.selectPrevious=function(){};
_.z.selectNext=function(){};
_.z.selectIndex=function(){};
_.z.forceSynchronousItemUpdate=function(){};
_.z._checkFallback=function(){};
_.z._addListener=function(){};
_.z._removeListener=function(){};
_.z._activateEventChanged=function(){};
_.z._updateItems=function(){};
_.z._selectSelected=function(){};
_.z._filterItem=function(){};
_.z._valueToItem=function(){};
_.z._valueToIndex=function(){};
_.z._indexToValue=function(){};
_.z._valueForItem=function(){};
_.z._observeItems=function(){};
_.z._itemActivate=function(){};
_.z.multiChanged=function(){};
_.z._updateAttrForSelected=function(){};
_.z._updateSelected=function(){};
_.z._selectMulti=function(){};
_.z._selectionChange=function(){};
_.z._toggleSelected=function(){};
_.z._valuesToItems=function(){};
_.z.registered=function(){};
_.z.addOwnKeyBinding=function(){};
_.z.removeOwnKeyBindings=function(){};
_.z.keyboardEventMatchesKeys=function(){};
_.z._collectKeyBindings=function(){};
_.z._prepKeyBindings=function(){};
_.z._addKeyBinding=function(){};
_.z._resetKeyEventListeners=function(){};
_.z._listenKeyEventListeners=function(){};
_.z._unlistenKeyEventListeners=function(){};
_.z._onKeyBindingEvent=function(){};
_.z._triggerKeyHandler=function(){};
_.z.select=function(){};
_.z._resetTabindices=function(){};
_.z._updateMultiselectable=function(){};
_.z._focusWithKeyboardEvent=function(){};
_.z._clearSearchText=function(){};
_.z._focusPrevious=function(){};
_.z._focusNext=function(){};
_.z._applySelection=function(){};
_.z._focusedItemChanged=function(){};
_.z._onIronItemsChanged=function(){};
_.z._onShiftTabDown=function(){};
_.z._onFocus=function(){};
_.z._onUpKey=function(){};
_.z._onDownKey=function(){};
_.z._onEscKey=function(){};
_.z._onKeydown=function(){};
_.z._activateHandler=function(){};
_.z._disabledChanged=function(){};
_.z._setSelectedItem=function(){};
_.z._setItems=function(){};
_.z._setSelectedItems=function(){};
_.z._setFocusedItem=function(){};
ZSE=_.pa({_template:function(){if(JfE!==void 0)return JfE;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);
var X=K.content,F=X.insertBefore;qyO===void 0&&(qyO=document.createElement("template"));var P=qyO;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return JfE=K},
is:"tp-yt-paper-listbox",behaviors:[ReL],hostAttributes:{role:"listbox"}});var YyV;var QkE;var M6U={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(K,X){return[K||X?"active":"",X?"cooldown":""].join(" ")},
__activeChanged:function(K,X){this.__setAriaHidden(!K);this.__coolingDown=!K&&X},
__altChanged:function(K){this.setAttribute("aria-label",K||"loading")},
__setAriaHidden:function(K){K?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.pa({_template:function(){if(QkE!==void 0)return QkE;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;YyV===void 0&&(YyV=document.createElement("template"));var P=YyV;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return QkE=K},
is:"tp-yt-paper-spinner",behaviors:[M6U]});var naO;var cfC;_.pa({_template:function(){if(cfC!==void 0)return cfC;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;naO===void 0&&(naO=document.createElement("template"));var P=naO;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return cfC=K},
is:"tp-yt-paper-spinner-lite",behaviors:[M6U]});var ppt;var BVU;_.pa({_template:function(){if(BVU!==void 0)return BVU;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;ppt===void 0&&(ppt=document.createElement("template"));var P=ppt;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return BVU=K},
is:"tp-yt-paper-tab",behaviors:[_.Z_,_.Q5.IronButtonState,Ge],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 K=_.cg(this).parentNode;return!!K&&!!K.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(K){if(this.link){var X=this.queryEffectiveChildren("a");X&&K.target!==X&&X.click()}}});var SyL;var oaW;var L_V=_.lr(['<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>']),TVL=_.dzt(L_V);document.head.appendChild(TVL.content);_.pa({_template:function(){if(oaW!==void 0)return oaW;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;SyL===void 0&&(SyL=document.createElement("template"));var P=SyL;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return oaW=K},
is:"tp-yt-paper-tabs",behaviors:[_.SL,_.heC],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(K){_.cg(this).querySelectorAll("tp-yt-paper-tab").forEach(K?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(K){K.setAttribute("noink","")},
_removeNoinkAttribute:function(K){K.removeAttribute("noink")},
_computeScrollButtonClass:function(K,X,F,P){return!X||F?"hidden":K?P?"hidden":"not-visible":""},
_computeTabsContentClass:function(K,X){var F="tabs-content";K&&(F+=" scrollable");if(!K||X)F+=" fit-container";return F},
_computeSelectionBarClass:function(K,X){var F="selection-bar";K?F+=" hidden":X&&(F+=" align-bottom");return F},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(K){return""+K},
_onIronSelect:function(K){this._tabChanged(K.detail.item,this._previousTab);this._previousTab=K.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();_.Bx._activateHandler.apply(this,arguments)},
_scheduleActivation:function(K,X){this._pendingActivationItem=K;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,X)},
_delayedActivationHandler:function(){var K=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;K.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(K){K.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(K,X){this.scrollable&&this._affectScroll(X&&-X.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(K){this.$.tabsContainer.scrollLeft+=K;K=this.$.tabsContainer.scrollLeft;this._leftHidden=K===0||this.hideScrollButtons;this._rightHidden=K===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(K,X){if(K){var F=this.$.tabsContent.getBoundingClientRect(),P=F.width,H=K.getBoundingClientRect();F=H.left-F.left;this._pos={width:this._calcPercent(H.width,P),left:this._calcPercent(F,P)};if(this.noSlide||X==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var f=X.getBoundingClientRect();X=this.items.indexOf(X);K=this.items.indexOf(K);this.$.selectionBar.classList.add("expand");
K=X<K;this._isRTL&&(K=!K);K?this._positionBar(this._calcPercent(H.left+H.width-f.left,P)-5,this._left):this._positionBar(this._calcPercent(f.left+f.width-H.left,P)-5,this._calcPercent(F,P)+5);this.scrollable&&this._scrollToSelectedIfNeeded(H.width,F)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(K,X){X-=this.$.tabsContainer.scrollLeft;X<0?this.$.tabsContainer.scrollLeft+=X:(X+=K-this.$.tabsContainer.offsetWidth,X>0&&(this.$.tabsContainer.scrollLeft+=X))},
_calcPercent:function(K,X){return 100*K/X},
_positionBar:function(K,X){K=K||0;X=X||0;this._width=K;this._left=X;this.transform("translateX("+X+"%) scaleX("+K/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var K=this.$.selectionBar.classList;K.contains("expand")?(K.remove("expand"),K.add("contract"),this._positionBar(this._pos.width,this._pos.left)):K.contains("contract")&&K.remove("contract")}});var rfu;var Aft;_.pa({_template:function(){if(Aft!==void 0)return Aft;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;rfu===void 0&&(rfu=document.createElement("template"));var P=rfu;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return Aft=K},
is:"tp-yt-paper-textarea",behaviors:[k9t,_.Mf],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(K){this.$.input.textarea.selectionStart=K},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(K){this.$.input.textarea.selectionEnd=K},_ariaLabelledByChanged:function(K){this._focusableElement.setAttribute("aria-labelledby",K)},
_ariaDescribedByChanged:function(K){this._focusableElement.setAttribute("aria-describedby",K)},
get _focusableElement(){return this.inputElement.textarea}});var jkL;var wpQ;/*

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 yfW=function(){};
_.z=yfW.prototype;_.z.addOwnKeyBinding=function(){};
_.z.removeOwnKeyBindings=function(){};
_.z.keyboardEventMatchesKeys=function(){};
_.z._collectKeyBindings=function(){};
_.z._prepKeyBindings=function(){};
_.z._addKeyBinding=function(){};
_.z._resetKeyEventListeners=function(){};
_.z._listenKeyEventListeners=function(){};
_.z._unlistenKeyEventListeners=function(){};
_.z._onKeyBindingEvent=function(){};
_.z._triggerKeyHandler=function(){};
_.z._tapHandler=function(){};
_.z._focusChanged=function(){};
_.z._detectKeyboardFocus=function(){};
_.z._userActivate=function(){};
_.z._upHandler=function(){};
_.z._spaceKeyDownHandler=function(){};
_.z._spaceKeyUpHandler=function(){};
_.z._asyncClick=function(){};
_.z._pressedChanged=function(){};
_.z._ariaActiveAttributeChanged=function(){};
_.z._activeChanged=function(){};
_.z._controlStateChanged=function(){};
_.z._changedButtonState=function(){};
_.z._focusBlurHandler=function(){};
_.z._disabledChanged=function(){};
_.z._changedControlState=function(){};
_.z._downHandler=function(){};
_.z.ensureRipple=function(){};
_.z.getRipple=function(){};
_.z.hasRipple=function(){};
_.z._noinkChanged=function(){};
_.z._focusedChanged=function(){};
_.z.registered=function(){};
_.z._invalidChanged=function(){};
_.z.hasValidator=function(){};
_.z.validate=function(){};
_.z._getValidity=function(){};
_.z._requiredChanged=function(){};
_.z._valueChanged=function(){};
_.z._checkedChanged=function(){};
_.z._buttonStateChanged=function(){};
_.z._setPressed=function(){};
_.z._setPointerDown=function(){};
_.z._setReceivedFocusFromKeyboard=function(){};
_.z._setFocused=function(){};
yfW=_.pa({is:"tp-yt-paper-toggle-button",_template:function(){if(wpQ!==void 0)return wpQ;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;jkL===void 0&&(jkL=document.createElement("template"));var P=jkL;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return wpQ=K},
behaviors:[_.oft],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");_.tg(this,function(){_.Ag(this,"pan-y")})},
_ontrack:function(K){K=K.detail;K.state==="start"?this._trackStart(K):K.state==="track"?this._trackMove(K):K.state==="end"&&this._trackEnd(K)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(K){K=K.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+K:K)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+K:K));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 K=Ge._createRipple();K.id="ink";K.setAttribute("recenters","");K.classList.add("circle","toggle-ink");return K}});var W_C;var ddt;_.pa({_template:function(){if(ddt!==void 0)return ddt;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;W_C===void 0&&(W_C=document.createElement("template"));var P=W_C;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return ddt=K},
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 K=_.cg(this).parentNode,X=_.cg(this).getOwnerRoot(),F;this.for?F=_.cg(X).querySelector("#"+this.for):F=K.nodeType==Node.DOCUMENT_FRAGMENT_NODE?X.host:K;return F},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(K){K==="entry"?this.show():K==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.cg(this).textContent.trim()===""){for(var K=!0,X=_.cg(this).getEffectiveChildNodes(),F=0;F<X.length;F++)if(X[F].textContent.trim()!==""){K=!1;break}if(K)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 K=this.offset;this.marginTop!=14&&this.offset==14&&(K=this.marginTop);var X=this.offsetParent.getBoundingClientRect(),F=this._target.getBoundingClientRect(),P=this.getBoundingClientRect(),H=(F.width-P.width)/2,f=(F.height-P.height)/2,u=F.left-X.left,J=F.top-X.top;switch(this.position){case "top":var Z=u+H;var M=J-P.height-K;break;case "bottom":Z=u+H;M=J+F.height+K;break;case "left":Z=u-P.width-K;M=J+f;break;case "right":Z=u+F.width+
K,M=J+f}this.fitToVisibleBounds?(X.left+Z+P.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,Z)+"px",this.style.right="auto"),X.top+M+P.height>window.innerHeight?(this.style.bottom=X.height+"px",this.style.top="auto"):(this.style.top=Math.max(-X.top,M)+"px",this.style.bottom="auto")):(this.style.left=Z+"px",this.style.top=M+"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(K){K!==500&&this.updateStyles({"--paper-tooltip-delay-in":K+"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(K){if(K==="entry"&&this.animationEntry!=="")return this.animationEntry;if(K==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[K]&&typeof this.animationConfig[K][0].name==="string"){if(this.animationConfig[K][0].timing&&this.animationConfig[K][0].timing.delay&&this.animationConfig[K][0].timing.delay!==0){var X=this.animationConfig[K][0].timing.delay;K==="entry"?this.updateStyles({"--paper-tooltip-delay-in":X+"ms"}):K==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":X+
"ms"})}return this.animationConfig[K][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 e4Z=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(e4Z,_.Gm);var R4V=_.x8(e4Z,[0,_.vL]);var ay=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(ay,_.Gm);var UdC=[3,4],h4O=[5,6];var mdZ=[0,UdC,h4O,_.UVC,-1,_.lQ,_.hTt,-1,UHy,hg4];var GlW=_.x8(ay,mdZ),lbt=_.I0(mdZ);var vaC=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(vaC,_.Gm);var abt=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(abt,_.Gm);var t6C=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(t6C,_.Gm);var $dC=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r($dC,_.Gm);var OSZ=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(OSZ,_.Gm);var tP=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(tP,_.Gm);tP.prototype.getSource=function(){return _.S3(this,1)};
tP.prototype.getMessage=function(){return _.BL(this,4)};
tP.prototype.getData=function(){return _.xS(this,OSZ,8)};var V6L=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(V6L,_.Gm);var $w=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r($w,_.Gm);var O_=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(O_,_.Gm);var V5=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(V5,_.Gm);V5.prototype.getUrl=function(){return _.BL(this,1)};
V5.prototype.setUrl=function(K){return _.Qf(this,1,K)};
V5.prototype.hasUrl=function(){return _.vF(_.sX(this,1))!=null};var gaC=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(gaC,_.Gm);var EaW=[3];var bSt=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(bSt,_.Gm);var gC=function(K){var X=new bSt;return _.It(X,2,K)};
bSt.prototype.getLanguage=function(){return LM(this,4,E_)};
var C6U=function(K){var X=gC(1);return _.P$(X,6,E_,K)},E_=[3,
4,5,6];var NVQ=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(NVQ,_.Gm);var b4=function(K){var X=new NVQ;return _.It(X,1,K)},CT=function(K,X){return _.P$(K,2,iSt,X)},iSt=[2,
3,4,5];var xdL=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(xdL,_.Gm);var Nf=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(Nf,_.Gm);var IbW=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(IbW,_.Gm);var klE=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(klE,_.Gm);var KmQ=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(KmQ,_.Gm);var XGU=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(XGU,_.Gm);var Fmt=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(Fmt,_.Gm);var i4=function(K){return _.xS(K,O_,5)};var PfC=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(PfC,_.Gm);PfC.prototype.getValue=function(){return cL(this,1)};var Hjt=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(Hjt,_.Gm);var xw=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(xw,_.Gm);xw.prototype.getMetadata=function(){return _.TQ(this,KmQ,7,Iy)};
xw.prototype.hasMetadata=function(){return _.fM(this,KmQ,7,Iy)};
var snC=_.k8(xw),Iy=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var kw=function(K){this.JSC$9929_name_=K;this.files_=[];this.directories_=[];this.directoryMap_={}};
kw.prototype.getName=function(){return this.JSC$9929_name_};var X5=function(K,X){this.callback_=X;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new kw("");zIV(this,K,this.rootDirectory_);Kz(this)},zIV=function(K,X,F){for(var P=0;P<X.length;P++){var H=X[P];
H.isFile?(K.fileOps_++,H.file((0,_.T3)(K.handleFileSuccess_,K,F),(0,_.T3)(K.handleFileError_,K))):K.unscannedDirectories_.push(new fVT(H,F))}},Kz=function(K){if(K.unscannedDirectories_.length>0&&K.directoryOps_<5&&!K.hasError_){K.directoryOps_++;
var X=K.unscannedDirectories_.shift(),F=X.entry,P=new kw(F.name);X=X.parent;X.directoryMap_[P.getName()]=P;X.directories_.push(P);F=F.createReader();F.readEntries((0,_.T3)(K.handleDirectorySuccess_,K,F,P),(0,_.T3)(K.handleDirectoryError_,K))}K.directoryOps_!=0||K.fileOps_!=0||K.unscannedDirectories_.length!=0&&!K.hasError_||K.callback_(K.rootDirectory_.files_,K.rootDirectory_.directories_,K.hasError_)};
X5.prototype.handleDirectorySuccess_=function(K,X,F){zIV(this,F,X);F.length==0?(this.directoryOps_--,Kz(this)):K.readEntries((0,_.T3)(this.handleDirectorySuccess_,this,K,X),(0,_.T3)(this.handleDirectoryError_,this))};
X5.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;Kz(this)};
X5.prototype.handleFileSuccess_=function(K,X){K.files_.push(X);this.fileOps_--;Kz(this)};
X5.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;Kz(this)};
var fVT=function(K,X){this.entry=K;this.parent=X};var F5=function(K){_.ua.call(this);_.nB(K,"drop",this.onObjectsDropped_,!1,this);_.nB(K,"dragenter",this.onFilesDragged_,!1,this);_.nB(K,"dragover",this.onFilesDragged_,!1,this);_.nB(K,"dragleave",this.onDragLeave_,!1,this);_.nB(K,"dragend",this.onDragLeave_,!1,this)};
_.br(F5,_.ua);var Dyt=function(K,X){_.HD.call(this,"f");this.files=K;this.directories=X};
_.br(Dyt,_.HD);var ucC=function(){_.HD.call(this,"h")};
_.br(ucC,_.HD);var qDt=function(){_.HD.call(this,"i")};
_.br(qDt,_.HD);var JqN=function(){_.HD.call(this,"g")};
_.br(JqN,_.HD);F5.prototype.onObjectsDropped_=function(K){var X=this;K.preventDefault();var F=K.event_.dataTransfer;if((K=F&&F.items)&&K.length>0&&K[0].webkitGetAsEntry){F=[];for(var P=[],H=0;H<K.length;H++){var f=K[H].webkitGetAsEntry();f?F.push(f):P.push(K[H])}new X5(F,function(u,J,Z){Z?X.dispatchEvent(new JqN("Error occurred while reading from the file system.")):X.dispatchEvent(new Dyt(u,J,P))})}else(K=F&&F.files)&&this.dispatchEvent(new Dyt(Array.from(K),[]))};
F5.prototype.onFilesDragged_=function(K){K.type==="dragenter"&&this.dispatchEvent(new ucC);K.preventDefault()};
F5.prototype.onDragLeave_=function(){this.dispatchEvent(new qDt)};var ZjL=function(K,X){this.JSC$9952_name_=K;this.inputElement_=X};
ZjL.prototype.getName=function(){return this.JSC$9952_name_};
ZjL.prototype.getInputElement=function(){return this.inputElement_};var PH=function(K,X,F){X=X===void 0?"single_file":X;F=F===void 0?[]:F;_.ua.call(this);this.overlayTarget_=K;this.parentOverlay_=K!=null?K.parentNode:_.nJ("scotty-overlay-parent");this.selectorType_=X;this.acceptTypes_=F;this.overlay_=YDN(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.r(PH,_.ua);
var YDN=function(K,X,F,P){var H=document.createElement("input");H.setAttribute("type","file");H.setAttribute("name","Filedata");_.nB(H,"change",K.onFilesSelected_,!1,K);F==="multiple_file"&&(H.multiple="true");F==="single_directory"&&(H.webkitdirectory="true");P.length>0&&H.setAttribute("accept",P.join(","));H.style.position="absolute";H.style.overflow="hidden";H.style.height="0px";H.style.width="0px";H.style.opacity="0";H.setAttribute("aria-hidden","true");H.setAttribute("tabIndex",-1);if(K.overlayTarget_!=
null)return H.style.height=X.offsetHeight+"px",H.style.width=X.offsetWidth+"px",K.parentOverlay_&&(K.parentOverlay_.style.position="relative"),_.Bz(H,X),AI(H,new _.jA(X.offsetLeft,X.offsetTop)),H;K.parentOverlay_.appendChild(H);return H};
PH.prototype.click=function(){this.overlay_.click()};
PH.prototype.onFilesSelected_=function(K){a:{try{var X=(new XMLHttpRequest).upload!==void 0;break a}catch(M){}X=!1}if(X){var F;K=Array.from((F=K.target.files)!=null?F:[]);F=[];if(this.selectorType_==="single_directory"&&(_.Ii||OU||_.xA)){F=new kw("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(X=0;X<K.length;X++)for(var P=K[X],H=P.webkitRelativePath.split("/"),f=F,u=0;u<H.length;u++){var J=H[u];if(u==H.length-1){J!="."&&f.files_.push(P);break}var Z=f.directoryMap_[J];Z==void 0&&(J=
Z=new kw(J),f.directoryMap_[J.getName()]=J,f.directories_.push(J));f=Z}F=F.directories_}this.dispatchEvent(new QnL(K,F,null))}else K=K.target.value,K.match(/^c:\\fakepath\\/i)&&(K=K.substring(12)),this.dispatchEvent(new QnL([],[],new ZjL(K,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=YDN(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var QnL=function(K,X){_.HD.call(this,"j");this.files=K;this.directories=X};
_.r(QnL,_.HD);var MIu=function(K){this.uploadUrl_=K};var nRW=function(){_.ua.call(this)};
_.br(nRW,_.ua);var HH=function(K){_.HD.call(this,K)};
_.br(HH,_.HD);var sH=function(K){_.HD.call(this,K)};
_.br(sH,_.HD);var cqu=function(K,X,F,P,H){_.ua.call(this);F=document.createElement("form");F.setAttribute("method",X);F.setAttribute("enctype","multipart/form-data");F.setAttribute("encoding","multipart/form-data");X=document.createElement("input");X.setAttribute("type","hidden");X.setAttribute("name","metadata");X.setAttribute("value",H);F.appendChild(X);F.appendChild(P);this.JSC$9969_form_=F;K=new _.aJ(K);_.$L(K,"upload_protocol","multipart");this.JSC$9969_url_=K.toString();this.JSC$9969_request_=new VI;this.state_=
"Ready";this.JSC$9969_errorDescription_=null;this.JSC$9969_eventHandler_=new _.iv(this);_.JH(this,this.JSC$9969_eventHandler_);this.JSC$9969_eventHandler_.listen(this.JSC$9969_request_,"success",this.onTransferSuccess_);this.JSC$9969_eventHandler_.listen(this.JSC$9969_request_,"error",this.onTransferError_)};
_.r(cqu,nRW);_.z=cqu.prototype;_.z.run=function(){this.state_="Transferring";var K=this.JSC$9969_request_,X=this.JSC$9969_form_;if(K.JSC$9387_active_)throw Error("le");var F=new _.aJ(this.JSC$9969_url_||X.action);K.JSC$9387_form_=X;X=K.JSC$9387_form_;F=_.rF(F.toString());F!==void 0&&(X.action=F);Ext(K)};
_.z.getResponseCode=function(){return null};
_.z.getResponseText=function(){return this.JSC$9969_request_&&this.JSC$9969_request_.getResponseText()||null};
_.z.JSC$25879_getErrorDescription=function(){return this.JSC$9969_errorDescription_};
_.z.cancel=function(){this.JSC$9969_request_&&this.JSC$9969_request_.abort();this.state_="Cancelled";this.dispatchEvent(new HH("o"))};
_.z.pause=function(){};
_.z.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new HH("l"))};
_.z.onTransferError_=function(){this.JSC$9969_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new HH("n"))};var zI=function(){_.cD.call(this)};
_.r(zI,_.cD);zI.prototype.createXhr=function(){var K=_.cD.prototype.createXhr.call(this);K.upload&&(K.upload.onprogress=(0,_.T3)(this.onProgress_,this));return K};
zI.prototype.onProgress_=function(K){this.dispatchEvent(K)};var pGQ=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},SDt=function(K,X){var F=K.attempt_+1;
if(K.maxAttempts_>0&&F>K.maxAttempts_)return!1;F==0?X():K.delayCallId_=Qt(function(){K.delayCallId_=null;X()},BMN(K),K);
K.attempt_=F;return!0};
pGQ.prototype.reset=function(){this.delayCallId_&&_.FP.clearTimeout(this.delayCallId_);this.attempt_=-1};
var BMN=function(K){var X=250*Math.pow(2,K.attempt_);K.maxDelayMs_>=0&&(X=Math.min(X,K.maxDelayMs_));return X};var $_y=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var fz=function(){_.ua.call(this);this.JSC$9979_request_=this.state_=null;this.JSC$9979_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9979_bytesTransferred_=0;this.retryIterator_=new pGQ;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9979_errorDescription_=null;this.JSC$9979_eventHandler_=new _.iv(this);_.JH(this,this.JSC$9979_eventHandler_);this.JSC$9979_url_=this.blob_=null;this.JSC$9979_method_=void 0;this.chunkSize_=this.JSC$9979_metadata_=
this.JSC$9979_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9979_responseText_=this.JSC$9979_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.br(fz,nRW);_.z=fz.prototype;_.z.run=function(){D6(this)};
_.z.getResponseCode=function(){return this.JSC$9979_responseCode_};
_.z.getResponseText=function(){return this.JSC$9979_responseText_};
_.z.JSC$25879_getErrorDescription=function(){return this.JSC$9979_errorDescription_};
_.z.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9979_eventHandler_.removeAll();this.JSC$9979_request_&&this.JSC$9979_request_.abort();this.retryIterator_.reset();var K=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(K==="Upload"||K==="Query")K=new zI,K.JSC$7807_withCredentials_=this.JSC$9979_withCredentials_,K.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9979_bytesTransferred_=
0;this.dispatchEvent(new HH("o"))}};
_.z.pause=function(){this.pauseRequested_=!0};
var D6=function(K){var X=K.state_;K.pauseRequested_?(K.pauseRequested_=!1,K.stateAfterUnpausing_=X,K.state_="Paused"):SDt(K.retryIterator_,function(){switch(K.state_){case "Start":K.JSC$9979_request_=new zI;var F=_.T8.clone(K.JSC$9979_headers_);K.blob_.size!=null&&(F["Content-Length"]=K.blob_.size);F=Obl(F);F["X-Goog-Upload-Protocol"]="resumable";F["X-Goog-Upload-Command"]="start";K.JSC$9979_eventHandler_.removeAll();K.JSC$9979_eventHandler_.listen(K.JSC$9979_request_,"complete",K.onStartComplete_);
K.JSC$9979_request_.JSC$7807_withCredentials_=K.JSC$9979_withCredentials_;K.JSC$9979_request_.send(K.JSC$9979_url_,K.JSC$9979_method_,K.JSC$9979_metadata_,F);K.lastCommandResponseCode_=null;K.dispatchEvent(new sH("q"));break;case "Upload":F=K.transferHandle_.uploadUrl_;var P=K.blob_.size;if(eDE()){var H=K.chunkSize_;var f=K.offset_+H>=P;P=duu(K.blob_,K.offset_,f?P:K.offset_+H)}else K.offset_=0,P=K.blob_,f=!0;K.JSC$9979_request_=new zI;K.JSC$9979_request_.JSC$7807_withCredentials_=K.JSC$9979_withCredentials_;
K.JSC$9979_eventHandler_.removeAll();K.JSC$9979_eventHandler_.listen(K.JSC$9979_request_,"progress",K.onUploadProgress_);H=(0,_.T3)(K.JSC$9981_onUploadComplete_,K,K.offset_+P.size,f);K.JSC$9979_eventHandler_.listen(K.JSC$9979_request_,"complete",H);K.lastCommandResponseCode_=null;K.dispatchEvent(new sH("q"));f=Object.assign({},K.JSC$9979_headers_||{},{"X-Goog-Upload-Command":"upload"+(f?", finalize":""),"X-Goog-Upload-Offset":K.offset_});K.JSC$9979_request_.send(F,"POST",P,f);break;case "Query":K.JSC$9979_request_=
new zI;K.JSC$9979_eventHandler_.removeAll();K.JSC$9979_eventHandler_.listen(K.JSC$9979_request_,"complete",K.onQueryComplete_);F=Object.assign({},K.JSC$9979_headers_||{},{"X-Goog-Upload-Command":"query"});K.JSC$9979_request_.send(K.transferHandle_.uploadUrl_,"POST","",F);K.lastCommandResponseCode_=null;K.dispatchEvent(new sH("q"));break;default:throw Error("af");}})||uO(K,"Transfer encountered too many consecutive failures.")},uO=function(K,X){K.state_="Error";
K.JSC$9979_errorDescription_=X;K.dispatchEvent(new HH("n"))};
fz.prototype.onStartComplete_=function(K){var X=K.target;this.lastCommandResponseCode_=X.getStatus();this.dispatchEvent(new sH("r"));if(oRW(X))LmT(this,X);else if(TMC(X)){K=Ew(K.target.getAllResponseHeaders());for(var F in K)_.Hy(F.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new HH("m"));F=Bg(K,"X-Goog-Upload-URL");K=(K=Bg(K,"X-Goog-Upload-Chunk-Granularity"))?parseInt(K,10):1;F===void 0||isNaN(K)||K<=0?uO(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
K)*K,this.transferHandle_=new MIu(F),this.dispatchEvent(new HH("p")),this.state_="Upload",this.retryIterator_.reset(),D6(this))}else D6(this)};
fz.prototype.onUploadProgress_=function(K){this.JSC$9979_bytesTransferred_=this.offset_+K.loaded;this.dispatchEvent(new HH("k"))};
fz.prototype.JSC$9981_onUploadComplete_=function(K,X,F){var P=this,H,f;return _.q(function(u){switch(u.nextAddress){case 1:H=F.target;P.lastCommandResponseCode_=H.getStatus();P.dispatchEvent(new sH("r"));if(rqN(H)||H.getStatus()==404)return P.JSC$9979_bytesTransferred_=K,LmT(P,H),u.return();if(TMC(H)){u.jumpTo(2);break}if(!(f=P.detectCorruptedBlobEnabled_)){u.jumpTo(3);break}return _.Y(u,AqQ(P),4);case 4:f=u.yieldResult;case 3:if(f)return uO(P,"Blob has been modified or corrupted."),u.return();P.requireUploadRequestModification_=
H.getStatus()==400;P.state_="Query";D6(P);return u.return();case 2:if(X)return uO(P,"Got a non-final success response after issuing a finalize command."),u.return();P.JSC$9979_bytesTransferred_=K;P.offset_=K;P.retryIterator_.reset();D6(P);return u.return()}})};
fz.prototype.onQueryComplete_=function(K){var X=K.target;this.lastCommandResponseCode_=X.getStatus();this.dispatchEvent(new sH("r"));oRW(X)?(X.getStatus()===200&&(this.JSC$9979_bytesTransferred_=this.blob_.size),LmT(this,X)):TMC(X)?(K=Ew(K.target.getAllResponseHeaders()),K=parseInt(Bg(K,"X-Goog-Upload-Size-Received"),10),isNaN(K)?uO(this,"Server did not respond with current offset."):K<this.offset_?uO(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
K+"."):this.requireUploadRequestModification_&&this.offset_===K?uO(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<K&&this.retryIterator_.reset(),this.offset_=this.JSC$9979_bytesTransferred_=K,this.state_="Upload",D6(this))):D6(this)};
var LmT=function(K,X){K.JSC$9979_responseCode_=X.getStatus();var F=Ew(X.getAllResponseHeaders());VhP(F);K.JSC$9979_responseText_=X.getResponseText();K.state_="Response received";K.dispatchEvent(new HH("l"))},TMC=function(K){var X=K.getStatus();
K=Ew(K.getAllResponseHeaders());K=Bg(K,"X-Goog-Upload-Status");return X===200&&K==="active"},rqN=function(K){K=Ew(K.getAllResponseHeaders());
return Bg(K,"X-Goog-Upload-Status")==="final"},oRW=function(K){if(rqN(K))return!0;
K=K.getStatus();return K>=400&&K<500},AqQ=function(K){var X;
return _.q(function(F){if(F.nextAddress==1){if(!K.blob_||K.originalBlobSize_<=0)return F.return(!1);if(K.blob_.size!==K.originalBlobSize_)return F.return(!0);_.s2(F,2);if(X=duu(K.blob_,0,1)){var P=new wZ,H=DmC(P);P.reader_.readAsBinaryString(X);F=_.Y(F,H,4)}else F=F.return(!0);return F}if(F.nextAddress!=2)return F.return(K.blob_.size!==K.originalBlobSize_);_.qc(F);return F.return(!0)})};var jnL=function(K,X,F,P,H,f){_.ua.call(this);this.payload_=P;this.JSC$9982_url_=K;this.JSC$9982_method_=X;this.JSC$9982_headers_=F;this.JSC$9982_metadata_=H;this.encoding_=f||"binary";K=new _.Y4;this.boundary_="uploader-"+v_()+"-"+K.JSC$9236_toIsoString();this.JSC$9982_responseText_=this.JSC$9982_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9982_errorDescription_=null;this.JSC$9982_eventHandler_=new _.iv(this);_.JH(this,this.JSC$9982_eventHandler_)};
_.r(jnL,nRW);_.z=jnL.prototype;
_.z.run=function(){var K=_.T8.clone(this.JSC$9982_headers_);this.payload_.length!=null&&(K["Content-Length"]=this.payload_.length);K=Obl(K);K["X-Goog-Upload-Protocol"]="multipart";K["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new zI;this.JSC$9982_eventHandler_.removeAll();this.JSC$9982_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9982_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9982_url_,this.JSC$9982_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9982_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",K)};
_.z.getResponseCode=function(){return this.JSC$9982_responseCode_};
_.z.getResponseText=function(){return this.JSC$9982_responseText_};
_.z.JSC$25879_getErrorDescription=function(){return this.JSC$9982_errorDescription_};
_.z.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9982_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new HH("o")))};
_.z.pause=function(){};
_.z.onTransferProgress_=function(){this.dispatchEvent(new HH("k"))};
_.z.onTransferComplete_=function(K){var X=K.target.getStatus();X===void 0||X===-1?(this.JSC$9982_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new HH("n"))):(this.JSC$9982_responseCode_=X,K=K.target,X=Ew(K.getAllResponseHeaders()),VhP(X),this.JSC$9982_responseText_=K.getResponseText(),this.state_="Complete",this.dispatchEvent(new HH("l")))};_.wGQ=function(K,X,F,P){P=P===void 0?!1:P;if(F instanceof ZjL)return new cqu(K,"POST",X,F.getInputElement(),"");if(typeof F==="string"||F instanceof String)return new jnL(K,"POST",X,F,"");var H=new fz(void 0);H.JSC$9979_url_=K;H.JSC$9979_method_="POST";H.JSC$9979_headers_=X;H.blob_=F;H.originalBlobSize_=F.size;H.JSC$9979_metadata_="";P&&(H.JSC$9979_withCredentials_=P);H.state_="Start";return H};var q2=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(q2,_.Gm);_.z=q2.prototype;_.z.getEnableSsEngine=function(){return _.nM(this,2)};
_.z.getEnableAwr=function(){return _.nM(this,3)};
_.z.getAlohaAutoGaRollout=function(){return _.nM(this,5)};
_.z.getEnableConfigurator=function(){return _.nM(this,6)};
_.z.getEnableMweb=function(){return _.nM(this,7)};
var Wmt=function(){var K=yqQ();return _.oJ(K,7,!0)};
q2.prototype.getEnableCtlConsentCheckbox=function(){return _.nM(this,8)};
q2.prototype.getEnableIframe=function(){return _.nM(this,9)};
var yqQ=function(){var K=new q2;K=_.oJ(K,5,!0);K=_.oJ(K,2,!0);K=_.oJ(K,4,!1);K=_.oJ(K,8,!0);return _.oJ(K,9,!0)};
q2.prototype.getEnableScreenshotNudge=function(){return _.nM(this,10)};
var dyV=function(){var K=Wmt();return _.oJ(K,10,!0)};
q2.prototype.getEnableWebStartupConfigEndpoint=function(){return _.nM(this,11)};
q2.prototype.getEnableJunkNudge=function(){return _.nM(this,12)};
var fG4=function(){var K=dyV();return _.oJ(K,12,!0)};
_.z=q2.prototype;_.z.getEnableConfiguratorLocale=function(){return _.nM(this,13)};
_.z.getEnableTinyNoPointer=function(){return _.nM(this,14)};
_.z.getEnableSupportSessionLogging=function(){return _.nM(this,15)};
_.z.getEnableFileUploadForScreenshot=function(){return _.nM(this,16)};
_.z.getEnableDirectDeflectionForSingleCategory=function(){return _.nM(this,17)};
_.z.getEnableImageSanitization=function(){return _.nM(this,18)};
_.z.getEnableAlohaBinarySplit=function(){return _.nM(this,19)};
_.z.getEnableDbFeedbackIntents=function(){return _.nM(this,20)};
_.z.getEnableMarkMandatoryFieldsWithRequired=function(){return _.nM(this,21)};
_.z.getEnableFeedbackCategoryCustomUi=function(){return _.nM(this,22)};
_.z.getEnableRealtimeCtl=function(){return _.nM(this,23)};var zhM=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(zhM,_.Gm);var goP=[/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 bby="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 Ct9=_.lr(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),NPd=_.lr(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var x_3,kMy;var eIW,RIT;
eIW=function(K,X,F){K.timeOfStartCall=(new Date).getTime();var P=F||_.FP,H=P.document,f=K.nonce||_.Rf(P.document);f&&!K.nonce&&(K.nonce=f);if(K.flow=="help"){var u=_.mz("document.location.href",P);!K.helpCenterContext&&u&&(K.helpCenterContext=u.substring(0,1200));u=!0;if(X&&JSON&&JSON.stringify){var J=JSON.stringify(X);(u=J.length<=1200)&&(K.psdJson=J)}u||(X={invalidPsd:!0})}X=[K,X,F];P.GOOGLE_FEEDBACK_START_ARGUMENTS=X;F=K.feedbackServerUri||"//www.google.com/tools/feedback";if(u=P.GOOGLE_FEEDBACK_START)u.apply(P,X);
else{P=F+"/load.js?";for(var Z in K)X=K[Z],X==null||_.XL(X)||(P+=encodeURIComponent(Z)+"="+encodeURIComponent(X)+"&");K=Yp(H).createElement("SCRIPT");f&&K.setAttribute("nonce",f);_.li(K,_.DX(P));H.body.appendChild(K)}};
RIT=function(K,X,F,P){var H,f;_.q(function(u){H=F||_.FP;var J=K.serverEnvironment==="DEV",Z=F||_.FP;Z=K.nonce||_.Rf(Z.document);J={integrationKeys:{productId:K.productId,feedbackBucket:K.bucket,triggerId:K.triggerId},callbacks:{onClose:K.callback,onLoad:K.onLoadCallback},formContent:{locale:K.locale,disableScreenshot:K.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:K.abuseLink,additionalDataConsent:K.additionalDataConsent},initializationData:{isLocalServer:J,nonce:Z,useNightlyRelease:J,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:K.feedbackServerUri,colorScheme:K.colorScheme},extraData:{productVersion:K.productVersion,authUser:K.authuser,configuratorId:K.configuratorId,customZIndex:K.customZIndex,tinyNoPointer:K.tinyNoPointer,
allowNonLoggedInFeedback:K.allowNonLoggedInFeedback,enableAnonymousFeedback:K.enableAnonymousFeedback}};X&&(Z=new Map(Object.entries(X)),J.extraData.productSpecificData=Z);f=J;return _.Y(u,PaT(f,P,H),0)})};
_.UyE=function(K,X,F){try{if(K.flow==="help"){var P=K.helpCenterPath.replace(/^\//,"");_.ei(F||window,"https://support.google.com/"+P)}else K.flow==="submit"?eIW(K,X,F):D6T(K.productId,K.feedbackServerUri).then(function(H){H=_.xS(H,q2,1);var f=!KxP||(H==null?void 0:H.getEnableMweb()),u=!K.tinyNoPointer||(H==null?void 0:H.getEnableTinyNoPointer());!H||H.getAlohaAutoGaRollout()&&f&&u?RIT(K,X,F,H):eIW(K,X,F)},function(H){H&&H.name!=="DuplicateFormError"&&eIW(K,X,F)})}catch(H){RIT(K,X,F,null)}};
_.gS("userfeedback.api.startFeedback",_.UyE);var uOd=/https?:\/\/\S+\.\S+/,qQ9=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],Jrl=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var igO=function(K){var X=K.split(""),F=[-263237435,15,X,function(P,H,f){var u=H.length;f.forEach(function(J,Z,M){this.push(M[Z]=H[(H.indexOf(J)-H.indexOf(this[Z])+Z+u--)%H.length])},P.split(""))},
function(P,H){P=(P%H.length+H.length)%H.length;H.splice(-P).reverse().forEach(function(f){H.unshift(f)})},
"response",function(){for(var P=64,H=[];++P-H.length-32;){switch(P){case 58:P-=14;case 91:case 92:case 93:continue;case 123:P=47;case 94:case 95:case 96:continue;case 46:P=95}H.push(String.fromCharCode(P))}return H},
null,12,1540023973,65941107,null,X,function(P,H){for(P=(P%H.length+H.length)%H.length;P--;)H.unshift(H.pop())},
695603893,function(P){for(var H=P.length;H;)P.push(P.splice(--H,1)[0])},
"'[;'[(",function(P,H){P.push(H)},
null,function(P,H,f,u,J){return H(f,u,J)},
"continuation",X,function(P,H){if(P.length!=0){H=(H%P.length+P.length)%P.length;var f=P[0];P[0]=P[H];P[H]=f}},
function(){for(var P=64,H=[];++P-H.length-32;){switch(P){case 91:P=44;continue;case 123:P=65;break;case 65:P-=18;continue;case 58:P=96;continue;case 46:P=95}H.push(String.fromCharCode(P))}return H},
'"),/]];'];F[7]=F;F[11]=F;F[18]=F;try{(((0,F[15])(F[21]),F[22])(F[11],F[9]),F[22])(F[new Date("1970-01-01T04:30:12.000+04:30")/1E3],F[1]),((0,F[22])(F[11],F[23]),F[4])(F[10],F[18]),(0,F[20])(F[21],F[14])<<(0,F[17])(F[18],F[1]),(0,F[4])(F[8],F[21]),(0,F[19])((0,F[19])((0,F[17])(F[7],F[9]),F[3],F[20],(0,F[6])(),F[2]),F[3],F[5],(0,F[15])(),F[2])}catch(P){return"aTlOUOubTO4AP____8P_"+K}return X.join("")};_.hIu=new _.b("runAttestationCommand");var myT=new _.b("verifyCommand");_.Jp=new _.b("accessibilityContext");var GXU=new _.b("accessibilityData");var lVZ=new _.b("profileCardCommand");var Y1P=new _.b("signInEndpoint");var ZNP=new _.b("signOutEndpoint");var aVT;_.vRZ=new _.b("accountItemSectionRenderer");aVT=new _.b("accountItemRenderer");_.tIW=new _.b("saveCommandToSessionStorageAction");var $yt=new _.b("crossAccountChannelTransferEndpoint");var uDT=new _.b("getAccountMenuEndpoint");_.qAO=new _.b("getAccountSwitcherEndpoint");var DZ3=new _.b("getAccountsListEndpoint");var Ojt=new _.b("getAccountsListInnertubeEndpoint");_.Z6=new _.b("addToToastAction");var VIO=new _.b("hideEnclosingAction");_.Y2=new _.b("replaceEnclosingAction");var gRE=new _.b("buttonRefreshAction");var ERt=new _.b("adsControlFlowOpportunityReceivedCommand");var bjL=new _.b("openAdAllowlistInstructionCommand");var CfQ=new _.b("videoMastheadAdPrimaryVideoRenderer");var NMU=new _.b("displayAdRenderer");var VEd=new _.b("instreamVideoAdRenderer");_.ijC=new _.b("inFeedAdLayoutRenderer");var xyC=new _.b("sequenceItemInPlayerAdLayoutRenderer");_.IVZ=new _.b("adSlotRenderer");var kXN=new _.b("adAvatarViewModel");var Klt=new _.b("adBadgeViewModel");var Xju=new _.b("adButtonViewModel");var Q3=new _.b("adImageViewModel");var LRd=new _.b("reelsAdCardButtonedViewModel");var Flu=new _.b("reelsPlayerOverlayLayoutViewModel");var Prt=new _.b("showSchedulingPanelCommand");var HkC=new _.b("backstageCommentsRenderer");var siL=new _.b("backstageImageRenderer");var zUL=new _.b("backstagePostRenderer");var fZE=new _.b("postRenderer");var DLE=new _.b("sharedPostRenderer");var uJL=new _.b("createBackstagePostEndpoint");var q$C=new _.b("getPostVideoPreviewEndpoint");var J4L=new _.b("updateBackstagePostEndpoint");var ZkE=new _.b("filterChipTransformCommand");var Y$C=new _.b("insertRichSectionCommand");var RuO=new _.b("talkToRecsDeselectCommand");var QiC=new _.b("talkToRecsNextCommand");var eud=new _.b("talkToRecsSelectCommand");var MNV=new _.b("talkToRecsUpdateTextCommand");_.f$=new _.b("browseEndpoint");_.nAu=new _.b("confirmDialogEndpoint");var c4U=new _.b("expandOnHoverCardRenderer");var pjN=new _.b("lumiereShelfDetailsRenderer");var BHL=new _.b("revealBusinessEmailCommand");var S$L=new _.b("validateChannelHandleCommand");var oAW=new _.b("channelCreationFormEndpoint");var LlC=new _.b("aboutChannelViewModel");var THQ=new _.b("channelThumbnailWithLinkRenderer");var r4C=new _.b("channelCreationServiceEndpoint");var A4u=new _.b("updateChannelPageSettingsEndpoint");var M2=function(K){this.delegate=K},nz=function(){M2.apply(this,arguments)};
_.r(nz,M2);_.Oi.Object.defineProperties(nz.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(K){this.delegate.entityMetadata=K}}});var jiU=function(){nz.apply(this,arguments)};
_.r(jiU,nz);jiU.prototype.getAssociations=function(){return[]};var jOM=new _.b("webThumbnailDetailsExtensionData");var DJl=new _.b("commandContext");var wjT=new _.b("addVideoLinkAction");var y4C=new _.b("createPollAction");var WlW=new _.b("hideIdentityChipAction");var dLt=new _.b("openUpdateCommentDialogAction");var cH=new _.b("updateBackstagePollAction");var eUU=new _.b("updateCommentVoteAction");var RUt=new _.b("commentThreadRenderer");var ULC=function(){nz.apply(this,arguments)};
_.r(ULC,nz);ULC.prototype.getAssociations=function(){return[]};_.hUV=new _.b("commentDialogRenderer");var mLC=new _.b("updateCommentsSettingsEndpoint");var GtV=new _.b("commentViewModel");var lZt=new _.b("triStateButtonViewModel");var vAO=new _.b("voiceReplyContainerViewModel");_.PW=new _.b("commandExecutorCommand");var r$=new _.b("emoji");var aZu=new _.b("updateCreatorChannelInnertubeCommand");_.tNO=new _.b("appendContinuationItemsAction");_.$LC=new _.b("changeEngagementPanelVisibilityAction");_.jd=new _.b("continuationCommand");var OkU=new _.b("listMutationCommand");_.pz=new _.b("openPopupAction");var VNN=new _.b("persistSubscriptionsDisplayPreferencesCommand");var IZE;_.gAV=new _.b("playlistRemoveVideosAction");_.EAC=new _.b("updatePlaylistAction");_.bkt=new _.b("addToPlaylistCommand");_.CrE=new _.b("endPlaylistCommand");_.NHC=new _.b("recoverPlaylistCommand");_.ikN=new _.b("refreshPlaylistCommand");_.xLW=new _.b("refreshFormCommand");IZE=new _.b("openOnePickAddVideoModalCommand");_.nG4=new _.b("reloadContinuationItemsCommand");_.ktU=new _.b("scrollToEngagementPanelCommand");var Kgu=new _.b("selectCountryCommand");var XLt=new _.b("showReloadUiCommand");var FgE=new _.b("undoFeedbackAction");var PQL=new _.b("updateButtonAction");var HMW=new _.b("updateSubscribeButtonAction");var scO=new _.b("updateToggleAction");var ztu=new _.b("webNativeShareCommand");_.g_=new _.b("webCommandMetadata");_.BH=new _.b("webHandleServiceEndpointExtension");var piy=new _.b("webNavigationEndpointData");var fRC=new _.b("copyLinkCommand");var DeE=new _.b("playlistVotingRefreshPopupCommand");var uXE=new _.b("selectChipCommand");var qXt=new _.b("setCookieCommand");var Jbu=new _.b("setLocalStorageCommand");var ZMO=new _.b("setPrefStorageEntryCommand");var n_O;_.YXT=new _.b("settingsUpdateCheckboxCommand");_.QcE=new _.b("settingsUpdateTextCommand");_.M3u=new _.b("settingsUpdateOptionsCommand");n_O=new _.b("settingsUpdateSwitchCommand");_.cbN=new _.b("settingsUpdateConnectedAppRendererCommand");var pLO=new _.b("updateTextInputFormFieldRendererCommand");var BdW=new _.b("updateToggleButtonStateCommand");var SXZ=new _.b("updateUrlParamCommand");var o_L=new _.b("webSubmitFormCommand");var LgZ=new _.b("channelSwitcherPageRenderer"),TdO=new _.b("updateChannelSwitcherPageAction");_.xR=new _.b("continuationItemRenderer");_.Sg=new _.b("richItemRenderer");var rbV=new _.b("richSectionRenderer");_.Abt=new _.b("richShelfRenderer");_.jct=new _.b("metadataBadgeRenderer");_.wLU=new _.b("multiPageMenuNotificationSectionRenderer");_.ybZ=new _.b("playlistLoopButtonStateRenderer");var WgC=new _.b("claimLegacyYoutubeChannelEndpoint");var deu=new _.b("getNotificationMenuEndpoint");var etC=new _.b("getSearchInVideoCommand");_.RtL=new _.b("getTranscriptEndpoint");_.ss=new _.b("signalServiceEndpoint");var UeO=new _.b("verifyAgeEndpoint");var kuT=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(kuT,_.Gm);kuT.prototype.getPath=function(){return _.BL(this,1)};
kuT.prototype.getValue=function(){return _.BL(this,2)};var htt=[0,_.mg,-1];var meU=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(meU,_.Gm);var I89=_.x8(meU,[0,_.GQ,htt]);var GQE=new _.b("dismissalEndpoint");var lRC=new _.b("elementsCommand");_.j9=new _.b("innertubeCommand");var v_Q=new _.b("multipleInlinePlaybackCommand");var FFq=new _.b("loggingDirectives");var aRt=new _.b("acknowledgeChannelTouStrikeCommand");var t3C=function(){nz.apply(this,arguments)};
_.r(t3C,nz);t3C.prototype.getAssociations=function(){return[]};var $eU=function(){nz.apply(this,arguments)};
_.r($eU,nz);$eU.prototype.getAssociations=function(){return[]};var mW=new _.b("entityBatchUpdate");_.OMO=new _.b("entityUpdateCommand");var V3O=function(){nz.apply(this,arguments)};
_.r(V3O,nz);V3O.prototype.getAssociations=function(){var K=[];this.delegate.alternateChannel&&K.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&K.push.apply(K,_.LZ(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&K.push(this.delegate.oneofChannelEntity);return[].concat(_.LZ(new Set(K)))};var g_L=function(){nz.apply(this,arguments)};
_.r(g_L,nz);g_L.prototype.getAssociations=function(){var K=[];this.delegate.entryCollection&&K.push(this.delegate.entryCollection);return[].concat(_.LZ(new Set(K)))};
var E_U=function(){nz.apply(this,arguments)};
_.r(E_U,nz);E_U.prototype.getAssociations=function(){var K=[];this.delegate.parentPlaylist&&K.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var X=_.D(this.delegate.entries),F=X.next();!F.done;F=X.next())K.push.apply(K,_.LZ((new bML(F.value)).getAssociations()));return[].concat(_.LZ(new Set(K)))};
var bML=function(){M2.apply(this,arguments)};
_.r(bML,M2);bML.prototype.getAssociations=function(){var K=[];this.delegate.video&&K.push(this.delegate.video);return[].concat(_.LZ(new Set(K)))};var CQC=function(){nz.apply(this,arguments)};
_.r(CQC,nz);CQC.prototype.getAssociations=function(){var K=[];this.delegate.descriptionEntity&&K.push(this.delegate.descriptionEntity);this.delegate.creators&&K.push.apply(K,_.LZ(this.delegate.creators));this.delegate.theBiggestFan&&K.push(this.delegate.theBiggestFan);return[].concat(_.LZ(new Set(K)))};
var Ndt=function(){nz.apply(this,arguments)};
_.r(Ndt,nz);Ndt.prototype.getAssociations=function(){return[]};var iMu=new _.b("fantasyRosterViewModel");var xeL=new _.b("addFollowUpSurveyCommand");var IRQ=new _.b("getSurveyCommand");var kQZ=new _.b("ratingSurveyOptionRenderer");_.Tt=new _.b("feedbackEndpoint");var KDQ=new _.b("reportHistoryTableCellRenderer"),XzL=new _.b("reportHistoryTableTextCellRenderer"),FDE=new _.b("reportHistoryTableReasonCellRenderer");_.Ptt=new _.b("flagEndpoint");var Hbt=new _.b("getFlowCommand");var sYU=new _.b("submitFormWithValidationFlowCommand");var z1W=function(){nz.apply(this,arguments)};
_.r(z1W,nz);z1W.prototype.getAssociations=function(){return[]};var fnO=new _.b("flowFormState");var D_Z=new _.b("gameCardRenderer");var u7W=new _.b("accountLinkingStateChangedCommand");var qEu=function(){nz.apply(this,arguments)};
_.r(qEu,nz);qEu.prototype.getAssociations=function(){return[]};var JIE=new _.b("changeMiniAppPlayStateCommand");var ZbL=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(ZbL,_.Gm);var oZ=[1,2,3];var YEO=[0,oZ,yG3,_.Wel,oVd];var QYT=_.x8(ZbL,YEO),MhC=_.I0(YEO);var noL=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(noL,_.Gm);var cIO=[0,_.e3,_.mg];var pzL=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(pzL,_.Gm);var BPt=[0,_.mg,_.e3,-1];var SEZ=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(SEZ,_.Gm);var oou=function(K,X){return _.It(K,3,X)};var LDN=_.I0([0,1,cIO,_.vL,BPt]);var TPU=new _.b("miniAppScoreChallengeViewModel");var rIQ=new _.b("miniGameCardViewModel");var AIT=new _.b("teaserCardViewModel");var jYQ=function(){nz.apply(this,arguments)};
_.r(jYQ,nz);jYQ.prototype.getAssociations=function(){return[]};_.wzL=new _.b("feedbackItemRenderer");var yIL=function(){nz.apply(this,arguments)};
_.r(yIL,nz);yIL.prototype.getAssociations=function(){return[]};_.WDC=new _.b("playerInterstitialRenderer");var d_T=new _.b("getKidsBlocklistPickerCommand");_.e1C=new _.b("updateKidsBlacklistEndpoint");_.Rn=new _.b("likeEndpoint");var R1N,U_u,h1u;R1N=new _.b("addChatItemAction");U_u=new _.b("removeChatItemAction");h1u=new _.b("markChatItemAsDeletedAction");_.m_t=new _.b("setLiveChatCollapsedStateAction");var GMW=function(){nz.apply(this,arguments)};
_.r(GMW,nz);GMW.prototype.getAssociations=function(){return[]};var lnW=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(lnW,_.Gm);var voO=_.x8(lnW,[0,1,_.e3]);var anV=new _.b("liveChatEndpoint");var thT=new _.b("liveChatItemContextMenuEndpoint");var $_T=new _.b("liveChatReplayEndpoint");_.ObQ=new _.b("emojiPickerRenderer");var VhU=new _.b("liveChatAuthorBadgeViewModel");var goL=new _.b("deleteLiveChatMessageCommand");var EoV=new _.b("liveChatActionEndpoint");var bbN=new _.b("createLiveChatPollEndpoint");var CtO=new _.b("manageLiveChatUserEndpoint");var NPC=new _.b("moderateLiveChatEndpoint");_.ibU=new _.b("sendLiveChatMessageEndpoint");var x_C=new _.b("sendLiveChatVoteEndpoint");var InC=new _.b("clearLocationCommand");var kMT=new _.b("resolveLocationCommand");var K6L=new _.b("interactionLoggingCommandMetadata");var dwO=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(dwO,_.Gm);var WMy=function(K,X){return _.sw(K,1,X)};var XDV=[0,_.UX];var ydn=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(ydn,_.Gm);var wqT=function(K,X){return J_(K,1,dwO,X)};ydn.prototype.JSC$10074_serializeBinary=XJM([0,_.GQ,XDV]);var Rhy={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 F6L={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"},
Pau={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 llw={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"};_.OF3=new _.b("logFlowLoggingEventCommand");_.q0=new _.b("loggingContext");var HuE=new _.b("captionLanguageSelectActionCommand");var sGt=new _.b("showCaptionLanguageSelectActionCommand");var zht=new _.b("dismissDialogEndpoint");var fGt=new _.b("hideItemSectionVideosByIdCommand");var D6u=new _.b("showMiniplayerCommand");var uOC=function(){nz.apply(this,arguments)};
_.r(uOC,nz);uOC.prototype.getAssociations=function(){return[]};var qQO=function(){nz.apply(this,arguments)};
_.r(qQO,nz);qQO.prototype.getAssociations=function(){return[]};var JrZ=function(){nz.apply(this,arguments)};
_.r(JrZ,nz);JrZ.prototype.getAssociations=function(){return[]};var ZuW=function(){nz.apply(this,arguments)};
_.r(ZuW,nz);ZuW.prototype.getAssociations=function(){var K=[];this.delegate.downloadsList&&K.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&K.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&K.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&K.push(this.delegate.refresh);return[].concat(_.LZ(new Set(K)))};var YQO=function(){nz.apply(this,arguments)};
_.r(YQO,nz);YQO.prototype.getAssociations=function(){var K=[];this.delegate.refresh&&K.push(this.delegate.refresh);if(this.delegate.downloads)for(var X=_.D(this.delegate.downloads),F=X.next();!F.done;F=X.next())K.push.apply(K,_.LZ((new QGN(F.value)).getAssociations()));return[].concat(_.LZ(new Set(K)))};
var QGN=function(){M2.apply(this,arguments)};
_.r(QGN,M2);QGN.prototype.getAssociations=function(){var K=[];this.delegate.video&&K.push(this.delegate.video);this.delegate.playlist&&K.push(this.delegate.playlist);this.delegate.videoItem&&K.push(this.delegate.videoItem);this.delegate.playlistItem&&K.push(this.delegate.playlistItem);return[].concat(_.LZ(new Set(K)))};var MQZ=function(){nz.apply(this,arguments)};
_.r(MQZ,nz);MQZ.prototype.getAssociations=function(){var K=[];this.delegate.localImageEntities&&K.push.apply(K,_.LZ(this.delegate.localImageEntities));return[].concat(_.LZ(new Set(K)))};var nvC=function(){nz.apply(this,arguments)};
_.r(nvC,nz);nvC.prototype.getAssociations=function(){var K=[];this.delegate.playbackData&&K.push(this.delegate.playbackData);this.delegate.localImageEntities&&K.push.apply(K,_.LZ(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&K.push(this.delegate.videoDownloadContextEntity);return[].concat(_.LZ(new Set(K)))};var crL=function(){nz.apply(this,arguments)};
_.r(crL,nz);crL.prototype.getAssociations=function(){return[]};var pDO=function(){nz.apply(this,arguments)};
_.r(pDO,nz);pDO.prototype.getAssociations=function(){var K=[];this.delegate.fakeChildren&&K.push.apply(K,_.LZ(this.delegate.fakeChildren));return[].concat(_.LZ(new Set(K)))};var BYV=function(){nz.apply(this,arguments)};
_.r(BYV,nz);BYV.prototype.getAssociations=function(){var K=[];this.delegate.video&&K.push(this.delegate.video);this.delegate.playbackData&&K.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&K.push(this.delegate.offlineVideoPolicy);return[].concat(_.LZ(new Set(K)))};var SQT=function(){nz.apply(this,arguments)};
_.r(SQT,nz);SQT.prototype.getAssociations=function(){return[]};var ovW=function(){nz.apply(this,arguments)};
_.r(ovW,nz);ovW.prototype.getAssociations=function(){var K=[];this.delegate.channelOwner&&K.push(this.delegate.channelOwner);this.delegate.videos&&K.push.apply(K,_.LZ(this.delegate.videos));this.delegate.collaboratorChannels&&K.push.apply(K,_.LZ(this.delegate.collaboratorChannels));this.delegate.downloadState&&K.push(this.delegate.downloadState);this.delegate.refresh&&K.push(this.delegate.refresh);return[].concat(_.LZ(new Set(K)))};var L6T=function(){nz.apply(this,arguments)};
_.r(L6T,nz);L6T.prototype.getAssociations=function(){var K=[];this.delegate.video&&K.push(this.delegate.video);this.delegate.channelContributor&&K.push(this.delegate.channelContributor);return[].concat(_.LZ(new Set(K)))};var TYt=function(){M2.apply(this,arguments)};
_.r(TYt,M2);TYt.prototype.getAssociations=function(){var K=[];this.delegate.recommendedVideoMetadata&&K.push.apply(K,_.LZ((new rrN(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.LZ(new Set(K)))};
var rrN=function(){M2.apply(this,arguments)};
_.r(rrN,M2);rrN.prototype.getAssociations=function(){var K=[];this.delegate.localImageEntities&&K.push.apply(K,_.LZ(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&K.push(this.delegate.videoDownloadContextEntity);return[].concat(_.LZ(new Set(K)))};var ArE=function(){M2.apply(this,arguments)};
_.r(ArE,M2);ArE.prototype.getAssociations=function(){var K=[];this.delegate.playbackPosition&&K.push(this.delegate.playbackPosition);return[].concat(_.LZ(new Set(K)))};var jGN=function(){nz.apply(this,arguments)};
_.r(jGN,nz);jGN.prototype.getAssociations=function(){var K=[];this.delegate.owner&&K.push(this.delegate.owner);this.delegate.downloadState&&K.push(this.delegate.downloadState);this.delegate.userState&&K.push.apply(K,_.LZ((new ArE(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&K.push.apply(K,_.LZ((new TYt(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.LZ(new Set(K)))};var wDV=function(){nz.apply(this,arguments)};
_.r(wDV,nz);wDV.prototype.getAssociations=function(){var K=[];this.delegate.userChannelDetails&&K.push(this.delegate.userChannelDetails);return[].concat(_.LZ(new Set(K)))};var yrL=function(){nz.apply(this,arguments)};
_.r(yrL,nz);yrL.prototype.getAssociations=function(){var K=[];this.delegate.channelOwner&&K.push(this.delegate.channelOwner);this.delegate.playbackPosition&&K.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&K.push.apply(K,_.LZ(this.delegate.localImageEntities));this.delegate.downloadStatus&&K.push(this.delegate.downloadStatus);return[].concat(_.LZ(new Set(K)))};var KQd=new _.b("downloadsPageSmartDownloadsOptInBannerParams");var W6W=function(){nz.apply(this,arguments)};
_.r(W6W,nz);W6W.prototype.getAssociations=function(){return[]};var d6L=function(){nz.apply(this,arguments)};
_.r(d6L,nz);d6L.prototype.getAssociations=function(){return[]};var ehV=function(){nz.apply(this,arguments)};
_.r(ehV,nz);ehV.prototype.getAssociations=function(){return[]};var RhT=function(){nz.apply(this,arguments)};
_.r(RhT,nz);RhT.prototype.getAssociations=function(){return[]};var U6C=function(){nz.apply(this,arguments)};
_.r(U6C,nz);U6C.prototype.getAssociations=function(){return[]};var hhE=function(){nz.apply(this,arguments)};
_.r(hhE,nz);hhE.prototype.getAssociations=function(){return[]};var m6Z=function(){nz.apply(this,arguments)};
_.r(m6Z,nz);m6Z.prototype.getAssociations=function(){return[]};var G4t=function(){nz.apply(this,arguments)};
_.r(G4t,nz);G4t.prototype.getAssociations=function(){return[]};var lGZ=function(){nz.apply(this,arguments)};
_.r(lGZ,nz);lGZ.prototype.getAssociations=function(){return[]};_.ok=new _.b("dislikeButtonViewModel");_.S6=new _.b("likeButtonViewModel");var vvt=new _.b("videoSummaryContentViewModel");var aGQ=new _.b("videoSummaryParagraphViewModel");var tQt=new _.b("changeTimelyActionVisibilityCommand");var $6L=new _.b("hideEngagementPanelEndpoint");var OuL=new _.b("refreshPanelEndpoint");var VQN=new _.b("scrollToSectionEndpoint");var gvZ=new _.b("seekToVideoTimestampCommand");_.Lk=new _.b("showEngagementPanelEndpoint");var EvC=new _.b("showTransientPlayerScrimOverlayCommand");var buO=new _.b("toggleEngagementPanelCommand");_.CaU=new _.b("createBroadcastCommand");var NYC=new _.b("metadataUpdateCommand");var iuE=function(){nz.apply(this,arguments)};
_.r(iuE,nz);iuE.prototype.getAssociations=function(){return[]};var x6Z=function(){nz.apply(this,arguments)};
_.r(x6Z,nz);x6Z.prototype.getAssociations=function(){return[]};var IGZ=function(){nz.apply(this,arguments)};
_.r(IGZ,nz);IGZ.prototype.getAssociations=function(){return[]};_.k4C=new _.b("merchandiseShelfRenderer");var K9L=new _.b("gridMovieRenderer");_.XVQ=new _.b("movieRenderer");var F9U=function(){nz.apply(this,arguments)};
_.r(F9U,nz);F9U.prototype.getAssociations=function(){var K=[];this.delegate.trackDownloadMetadatas&&K.push.apply(K,_.LZ(this.delegate.trackDownloadMetadatas));return[].concat(_.LZ(new Set(K)))};var PRE=function(){nz.apply(this,arguments)};
_.r(PRE,nz);
PRE.prototype.getAssociations=function(){var K=[];this.delegate.downloadedTracks&&K.push.apply(K,_.LZ(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&K.push.apply(K,_.LZ(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&K.push.apply(K,_.LZ(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&K.push.apply(K,_.LZ(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&K.push.apply(K,_.LZ(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
K.push.apply(K,_.LZ(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&K.push.apply(K,_.LZ(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&K.push.apply(K,_.LZ(this.delegate.metadataOnlyTracks));return[].concat(_.LZ(new Set(K)))};var H1C=function(){nz.apply(this,arguments)};
_.r(H1C,nz);H1C.prototype.getAssociations=function(){var K=[];this.delegate.trackDownloadMetadatas&&K.push.apply(K,_.LZ(this.delegate.trackDownloadMetadatas));return[].concat(_.LZ(new Set(K)))};var s5U=function(){nz.apply(this,arguments)};
_.r(s5U,nz);s5U.prototype.getAssociations=function(){var K=[];this.delegate.playbackData&&K.push(this.delegate.playbackData);this.delegate.localImageEntities&&K.push.apply(K,_.LZ(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&K.push(this.delegate.videoDownloadContextEntity);return[].concat(_.LZ(new Set(K)))};var z0V=function(){nz.apply(this,arguments)};
_.r(z0V,nz);
z0V.prototype.getAssociations=function(){var K=[];this.delegate.musicLibraryStatusEntity&&K.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&K.push.apply(K,_.LZ(this.delegate.primaryArtists));this.delegate.details&&K.push(this.delegate.details);this.delegate.userDetails&&K.push(this.delegate.userDetails);this.delegate.tracks&&K.push.apply(K,_.LZ(this.delegate.tracks));this.delegate.share&&K.push(this.delegate.share);this.delegate.downloadMetadata&&K.push(this.delegate.downloadMetadata);this.delegate.refresh&&
K.push(this.delegate.refresh);return[].concat(_.LZ(new Set(K)))};
var fBU=function(){nz.apply(this,arguments)};
_.r(fBU,nz);fBU.prototype.getAssociations=function(){var K=[];this.delegate.albumRelease&&K.push(this.delegate.albumRelease);this.delegate.tracks&&K.push.apply(K,_.LZ(this.delegate.tracks));return[].concat(_.LZ(new Set(K)))};
var DEu=function(){nz.apply(this,arguments)};
_.r(DEu,nz);DEu.prototype.getAssociations=function(){var K=[];this.delegate.albumRelease&&K.push(this.delegate.albumRelease);return[].concat(_.LZ(new Set(K)))};var ukL=function(){nz.apply(this,arguments)};
_.r(ukL,nz);ukL.prototype.getAssociations=function(){var K=[];this.delegate.details&&K.push(this.delegate.details);this.delegate.userDetails&&K.push(this.delegate.userDetails);return[].concat(_.LZ(new Set(K)))};
var qht=function(){nz.apply(this,arguments)};
_.r(qht,nz);qht.prototype.getAssociations=function(){var K=[];this.delegate.parentArtist&&K.push(this.delegate.parentArtist);return[].concat(_.LZ(new Set(K)))};
var Jmu=function(){nz.apply(this,arguments)};
_.r(Jmu,nz);Jmu.prototype.getAssociations=function(){var K=[];this.delegate.parentArtist&&K.push(this.delegate.parentArtist);return[].concat(_.LZ(new Set(K)))};var Z1O=function(){nz.apply(this,arguments)};
_.r(Z1O,nz);Z1O.prototype.getAssociations=function(){return[]};var YhV=function(){nz.apply(this,arguments)};
_.r(YhV,nz);YhV.prototype.getAssociations=function(){return[]};var Q5L=function(){nz.apply(this,arguments)};
_.r(Q5L,nz);
Q5L.prototype.getAssociations=function(){var K=[];this.delegate.tracks&&K.push.apply(K,_.LZ(this.delegate.tracks));this.delegate.refresh&&K.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&K.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&K.push(this.delegate.details);this.delegate.downloadMetadata&&K.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&K.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&K.push(this.delegate.userDetails);this.delegate.entryCollection&&
K.push(this.delegate.entryCollection);this.delegate.share&&K.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&K.push.apply(K,_.LZ((new MaZ(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.LZ(new Set(K)))};
var MaZ=function(){M2.apply(this,arguments)};
_.r(MaZ,M2);MaZ.prototype.getAssociations=function(){var K=[];this.delegate.creatorEntity&&K.push(this.delegate.creatorEntity);return[].concat(_.LZ(new Set(K)))};var n0u=function(){nz.apply(this,arguments)};
_.r(n0u,nz);n0u.prototype.getAssociations=function(){return[]};var cmE=function(){nz.apply(this,arguments)};
_.r(cmE,nz);
cmE.prototype.getAssociations=function(){var K=[];this.delegate.musicLibraryStatusEntity&&K.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&K.push.apply(K,_.LZ(this.delegate.artists));this.delegate.audioModeVersion&&K.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&K.push(this.delegate.videoModeVersion);this.delegate.userDetails&&K.push(this.delegate.userDetails);this.delegate.details&&K.push(this.delegate.details);this.delegate.albumRelease&&K.push(this.delegate.albumRelease);this.delegate.share&&
K.push(this.delegate.share);this.delegate.libraryEdit&&K.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&K.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&K.push(this.delegate.playbackPosition);this.delegate.lyrics&&K.push(this.delegate.lyrics);return[].concat(_.LZ(new Set(K)))};
var pVT=function(){nz.apply(this,arguments)};
_.r(pVT,nz);pVT.prototype.getAssociations=function(){var K=[];this.delegate.parentTrack&&K.push(this.delegate.parentTrack);return[].concat(_.LZ(new Set(K)))};
var BRV=function(){nz.apply(this,arguments)};
_.r(BRV,nz);BRV.prototype.getAssociations=function(){var K=[];this.delegate.parentTrack&&K.push(this.delegate.parentTrack);return[].concat(_.LZ(new Set(K)))};var ED=new _.b("musicResponsiveListItemRenderer");var SAl=new _.b("addToPlaylistEndpoint");var ShU=new _.b("captionPickerEndpoint");var o0t=new _.b("suggestStats");var L9u=new _.b("backstageImageUploadEndpoint");var TRW=new _.b("createBackstagePostDialogEndpoint");_.rmT=new _.b("createCommentReplyDialogEndpoint");_.AmW=new _.b("updateCommentDialogEndpoint");_.j5V=new _.b("updateCommentReplyDialogEndpoint");var wVN=new _.b("menuEndpoint");var MSy=new _.b("modalEndpoint");var ymV=new _.b("playlistEditorEndpoint");var W9N=new _.b("copyTextEndpoint");var dEC,e0C;dEC=new _.b("shareEndpoint");e0C=new _.b("shareEntityEndpoint");_.R0V=new _.b("shareEntityServiceEndpoint");_.Rf3=new _.b("userFeedbackEndpoint");_.vg=new _.b("watchEndpoint");var X9P=new _.b("watchPlaylistEndpoint");var UEZ=new _.b("addUpcomingEventReminderEndpoint");_.Lz=new _.b("getCommentsFromInboxCommand");var h0N=new _.b("notificationOptOutEndpoint");var mEZ=new _.b("recordNotificationInteractionsEndpoint");var GVV=new _.b("removeUpcomingEventReminderEndpoint");var poq=new _.b("getDownloadActionCommand");_.lBL=new _.b("offlineOrchestrationActionCommand");var v0Q=function(){nz.apply(this,arguments)};
_.r(v0Q,nz);v0Q.prototype.getAssociations=function(){return[]};var aBt=function(){nz.apply(this,arguments)};
_.r(aBt,nz);aBt.prototype.getAssociations=function(){return[]};var taC=function(){nz.apply(this,arguments)};
_.r(taC,nz);taC.prototype.getAssociations=function(){return[]};var $EW=function(){nz.apply(this,arguments)};
_.r($EW,nz);$EW.prototype.getAssociations=function(){return[]};var O1t=function(){nz.apply(this,arguments)};
_.r(O1t,nz);O1t.prototype.getAssociations=function(){var K=[];this.delegate.transfer&&K.push(this.delegate.transfer);this.delegate.adsPlaybackData&&K.push.apply(K,_.LZ(this.delegate.adsPlaybackData));this.delegate.drmLicense&&K.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&K.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&K.push(this.delegate.videoDownloadContextEntity);return[].concat(_.LZ(new Set(K)))};var Vau=function(){nz.apply(this,arguments)};
_.r(Vau,nz);Vau.prototype.getAssociations=function(){return[]};var g0L=function(){nz.apply(this,arguments)};
_.r(g0L,nz);g0L.prototype.getAssociations=function(){var K=[];this.delegate.offlineVideoStreams&&K.push.apply(K,_.LZ(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&K.push.apply(K,_.LZ(this.delegate.captionTrack));return[].concat(_.LZ(new Set(K)))};var E0L=function(){nz.apply(this,arguments)};
_.r(E0L,nz);E0L.prototype.getAssociations=function(){return[]};var b1E=new _.b("showMoreDrawerCommand");var CRt=new _.b("updateEngagementPanelContentCommand");var NRQ=new _.b("getPdgBuyFlowCommand");var i1t=new _.b("liveChatPurchaseMessageEndpoint");var xEZ=new _.b("openSuperStickerBuyFlowCommand");var IBV=new _.b("updatePdgFeatureEnablementCommand");var kVL=function(){nz.apply(this,arguments)};
_.r(kVL,nz);kVL.prototype.getAssociations=function(){return[]};var KNW=function(){nz.apply(this,arguments)};
_.r(KNW,nz);KNW.prototype.getAssociations=function(){return[]};_.XTC=new _.b("pdgCommentChipRenderer");_.FNu=new _.b("permissionRoleBottomBarRenderer");_.Pzt=new _.b("updatePermissionRoleCommand");var HwE=new _.b("prefetchWatchCommand");var sKt=new _.b("updatePlayerErrorMessageCommand");var JBO=new _.b("toggleCaptionsVisibilityCommand");_.zLN=new _.b("quickActionsViewModel");var f1t=new _.b("playerResponse");var DOV=new _.b("playlistRenderer");_.urO=new _.b("playlistVideoListRenderer");_.TI=new _.b("playlistEditEndpoint");var qrZ=new _.b("createImagePollCommand");var JKO=new _.b("createQuizCommand");var ZwE=new _.b("quizRenderer");var YrL=new _.b("uploadedVideoRenderer");var QKu=new _.b("decorateMessageEndpoint");var MqT=new _.b("lpOfferCardOptionViewModel");var nsE=new _.b("sfvAudioItemPlaybackCommand");var cKT=function(){nz.apply(this,arguments)};
_.r(cKT,nz);cKT.prototype.getAssociations=function(){return[]};_.r4=new _.b("reelNonVideoContentEndpoint");_.J6=new _.b("reelWatchEndpoint");_.Ap=new _.b("reelItemRenderer");_.pTL=new _.b("reelMetapanelViewModel");_.B9E=new _.b("reelNonVideoContentRenderer");_.Srt=new _.b("reelPlayerOverlayRenderer");var ost=new _.b("shortsLockupViewModel");var LNC=new _.b("sponsorButtonViewModel");var T9Z=new _.b("reelItemWatchResponse");var rKL=new _.b("textBadgeRenderer");_.jg=new _.b("buttonRenderer");_.w4=new _.b("toggleButtonRenderer");var J$P=new _.b("switchButtonViewModel");_.AKL=new _.b("confirmDialogRenderer");var jKQ;jKQ=new _.b("menuRenderer");_.wTu=new _.b("menuFlexibleItemRenderer");var yKC=new _.b("pollRenderer");_.WNU=new _.b("backgroundPromoRenderer");var eLL;_.dOO=new _.b("chipCloudRenderer");eLL=new _.b("chipCloudChipRenderer");var RLW=new _.b("dropdownRenderer");var UOt=new _.b("gridVideoRenderer");_.hLN=new _.b("itemSectionRenderer");_.mOW=new _.b("messageRenderer");var GOE=new _.b("sortFilterHeaderRenderer");_.y3=new _.b("videoRenderer");var l1C=new _.b("resolveUrlCommandMetadata");var vsO=function(){nz.apply(this,arguments)};
_.r(vsO,nz);vsO.prototype.getAssociations=function(){return[]};_.a1U=new _.b("getAnswerCommand");_.Dm=new _.b("searchEndpoint");var tqW=new _.b("genAiRichTextViewModel");var cBq=new _.b("overviewAnswerViewModel");var $ON=new _.b("addToPlaylistServiceEndpoint");var OwL=new _.b("clearSearchHistoryEndpoint");var VqT=new _.b("clearWatchHistoryEndpoint");var gst=new _.b("webSerializedServiceEndpointExtension");_.EsN=new _.b("createCommentEndpoint");var bwC=new _.b("createCommentReplyEndpoint");var CzN=new _.b("performCommentActionEndpoint");var N9C=new _.b("updateCommentEndpoint");var iwt=new _.b("updateCommentReplyEndpoint");_.WH=new _.b("createPlaylistServiceEndpoint");var xOt=new _.b("deletePlaylistEndpoint");var I1t=new _.b("deleteVideoEndpoint");var BBO=new _.b("getReportFormEndpoint");var kOV=new _.b("modifyChannelNotificationPreferenceEndpoint");var hNO;_.Fj=new _.b("offlinePlaylistEndpoint");hNO={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 mXn;_.Xj=new _.b("offlineVideoEndpoint");mXn={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 HTN=new _.b("pingingEndpoint");_.syL=new _.b("selectActiveIdentityEndpoint");var zrL=new _.b("setSettingEndpoint");var UIy=new _.b("undoFeedbackEndpoint");var f_u=new _.b("unsubscribeEndpoint");_.Dft=new _.b("updatedMetadataEndpoint");var uvT=function(){nz.apply(this,arguments)};
_.r(uvT,nz);uvT.prototype.getAssociations=function(){return[]};_.q_C=new _.b("updateLocalAppSettingCommand");var JPT=new _.b("saveImageToDeviceEndpoint");var ZTU=new _.b("shareImageCommand");var Y_L=new _.b("sharingProviderDataCommand");var QyU=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(QyU,_.Gm);var MLE=[0,_.mg,-1];QyU.prototype.JSC$10275_serializeBinary=XJM(MLE);var nwL=_.I0(MLE);var cPE=new _.b("userMentionSuggestionRenderer");var pxV=new _.b("liveChatTunnelCommand");var BCQ=new _.b("showSponsorshipsGiftOfferDialogCommand");var S_N=new _.b("sponsorshipsScrollableShelfViewModel");var owO=new _.b("updateUpcomingEventReminderButtonStateCommand");var L2T=new _.b("upcomingEventReminderButtonStateRenderer");var TCL=new _.b("subscribeEndpoint");var rPL=new _.b("registerTasksCommand");var APC=new _.b("showDialogCommand");_.fS=new _.b("showSheetCommand");var jyE=new _.b("showSnackbarCommand");var wxN=function(){nz.apply(this,arguments)};
_.r(wxN,nz);wxN.prototype.getAssociations=function(){return[]};var yPO=function(){nz.apply(this,arguments)};
_.r(yPO,nz);yPO.prototype.getAssociations=function(){return[]};_.Gl=new _.b("avatarViewModel");var W2Z=new _.b("badgeViewModel");_.nS=new _.b("buttonViewModel");_.d4=new _.b("chipViewModel");var oT9=new _.b("collectionThumbnailViewModel");var dfC=new _.b("contentPreviewImageViewModel");var erQ=new _.b("decoratedAvatarViewModel");var kL3=new _.b("downloadButtonViewModel");_.YFP=new _.b("engagementBarViewModel");_.Rrt=new _.b("imageBannerViewModel");var p29=new _.b("lockupContentMetadataRowExtension");var UfN=new _.b("lockupMetadataViewModel");_.hrC=new _.b("lockupViewModel");var mft=new _.b("avatarStackViewModel");var GeC=function(){nz.apply(this,arguments)};
_.r(GeC,nz);GeC.prototype.getAssociations=function(){return[]};_.l_N=new _.b("pageHeaderViewModel");var vwT=new _.b("snackbarViewModel");var a_O=new _.b("thumbnailHoverOverlayToggleActionsViewModel");_.cp=new _.b("toggleButtonViewModel");var tLu=function(){nz.apply(this,arguments)};
_.r(tLu,nz);tLu.prototype.getAssociations=function(){return[]};_.QTP=new _.b("votingViewModel");var $ft=new _.b("sectionHeaderViewModel");var OTE=new _.b("notifyDropdownOptionSelectedCommand");var wBT=new _.b("listViewModel");_.Db=new _.b("listItemViewModel");var VLT=new _.b("dialogHeaderViewModel");var gwU=function(){nz.apply(this,arguments)};
_.r(gwU,nz);gwU.prototype.getAssociations=function(){return[]};var EwE=function(){nz.apply(this,arguments)};
_.r(EwE,nz);EwE.prototype.getAssociations=function(){return[]};var bTZ=function(){nz.apply(this,arguments)};
_.r(bTZ,nz);bTZ.prototype.getAssociations=function(){return[]};_.C4Z=new _.b("transcriptSubmitCaptionCorrectionCommand");var NCW=function(){nz.apply(this,arguments)};
_.r(NCW,nz);NCW.prototype.getAssociations=function(){return[]};var P0O=new _.b("unpluggedStringRunImage");var iTu=new _.b("tabViewModel");var xft=new _.b("tabbedViewModel");var I_Z=function(){nz.apply(this,arguments)};
_.r(I_Z,nz);I_Z.prototype.getAssociations=function(){return[]};_.keu=new _.b("updateDescriptionAction");var KQC=new _.b("updateToggleButtonTextAction");_.XHZ=new _.b("autoplaySwitchButtonRenderer");var jN;_.FQE=new _.b("multiMarkersPlayerBarRenderer");jN=new _.b("chapterRenderer");var POW=new _.b("heatMarkerRenderer");var EHP=new _.b("heatmapRenderer");var Hzt=new _.b("smartSkipPlayerScrimOverlayRenderer");var sZu=new _.b("timedMarkerDecorationRenderer");var XPM=new _.b("postWebToNativeMessageCommand");var znW=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(znW,_.Gm);var f6L=_.x8(znW,[0,_.mg,-2]);var D2N=new _.b("whitelistEditEndpoint");var u5W=new _.b("clearUrlParamCommand");var qHQ=new _.b("commerceActionCommand");_.JpU=new _.b("getPaymentInstrumentsParamsCommand");var ZzV=new _.b("getPaymentsClientTokenCommand");var YHV=new _.b("googlePaymentBillingCommand");var QZL=new _.b("googlePaymentPurchaseManagerCommand");_.MgT=new _.b("logGtmCommand");var n2Z=new _.b("updateCardItemOnClickCommand");_.cpW=new _.b("ypcPauseSubscriptionCommand");_.pHL=new _.b("ypcResumeSubscriptionCommand");var B4U=function(){nz.apply(this,arguments)};
_.r(B4U,nz);B4U.prototype.getAssociations=function(){return[]};var SHV=function(){nz.apply(this,arguments)};
_.r(SHV,nz);SHV.prototype.getAssociations=function(){return[]};var o2O=function(){nz.apply(this,arguments)};
_.r(o2O,nz);o2O.prototype.getAssociations=function(){return[]};var LQC=function(){nz.apply(this,arguments)};
_.r(LQC,nz);LQC.prototype.getAssociations=function(){return[]};var T4C=function(){nz.apply(this,arguments)};
_.r(T4C,nz);T4C.prototype.getAssociations=function(){return[]};var KR3=new _.b("ypcOffersEndpoint");var rpW=new _.b("cardItemRenderer"),ApO=new _.b("cardItemTextRenderer");var jZO=new _.b("commerceCartItemQuantityPickerRenderer");var wHC=new _.b("linkCardRenderer");var CoM=new _.b("quantityIncrementerButtonViewModel");var ypE=new _.b("quantityIncrementerViewModel");var WQQ=new _.b("themedImageViewModel");_.d2L=new _.b("ypcCancelRecurrenceEndpoint");var ent=new _.b("ypcCompleteTransactionEndpoint");_.Rnt=new _.b("ypcGetCartEndpoint");_.i6=new _.b("ypcGetOffersEndpoint");_.eg=new _.b("ypcHandleTransactionEndpoint");var U2V=new _.b("ypcLogWalletAnalyticDataEndpoint");_.hnU=new _.b("ypcRedeemCodeEndpoint");var m2V=new _.b("ypcUpdateFopEndpoint");CT(b4(1),gC(4));u9P((new MessageChannel).port2);var GIC=function(){this.register=new Map},hhn=function(K,X,F){K=K+"_"+X;
RZ.register.has(K)?F=RZ.register.get(K):(F=F(),RZ.register.set(K,F));return F},l6C=function(K){K=_.D(K.register.values());
for(var X=K.next();!X.done;X=K.next())_.zt(X.value,"ABORTED")};
GIC.prototype.clear=function(){l6C(this);this.register.clear()};
var RZ=new GIC;var QGy=Date.now().toString();var nvd,v2C=_.FP.ytLoggingDocDocumentNonce_;v2C||(v2C=Ly(16),_.gS("ytLoggingDocDocumentNonce_",v2C));nvd=v2C;var rry={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 a6Z;a6Z=1;_.TY=function(K){this.veData=K};
_.QB=function(K){return new _.TY({trackingParams:K})};
_.cO=function(K,X,F,P,H,f){var u=a6Z++;return new _.TY({veType:K,veCounter:u,elementIndex:F,dataElement:X,youtubeData:P,jspbYoutubeData:H,loggingDirectives:f})};
_.z=_.TY.prototype;
_.z.getAsJson=function(){var K={};this.veData.trackingParams!==void 0?K.trackingParams=this.veData.trackingParams:(K.veType=this.veData.veType,this.veData.veCounter!==void 0&&(K.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(K.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(K.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(K.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(K.isCounterfactual=!0);
return K};
_.z.getAsJspb=function(){var K=new QtE;this.veData.trackingParams!==void 0?K.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.rd(K,2,this.veData.veType),this.veData.veCounter!==void 0&&_.rd(K,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.rd(K,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.sw(K,5,!0));if(this.veData.dataElement!==void 0){var X=this.veData.dataElement.getAsJspb();_.Fw(K,7,X)}this.veData.youtubeData!==void 0&&_.Fw(K,8,this.veData.jspbYoutubeData);
return K};
_.z.toString=function(){return JSON.stringify(this.getAsJson())};
_.z.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.z.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.gS("yt_logging_screen.getRootVeType",ovO);_.gS("yt_logging_screen.getCurrentCsn",_.AD);_.gS("yt_logging_screen.getCttAuthInfo",j4);_.gS("yt_logging_screen.setCurrentScreen",_.w_);var tgL=function(){this.events=new Map},$2t=function(K){var X=[];
K=_.D(K.events.values());for(var F=K.next();!F.done;F=K.next())X.push(F.value);return X};
tgL.prototype.clear=function(){this.events.clear()};var VgV=function(){this.logTransport=new Ozt;this.loggedEventRegister=new tgL;this.unloggedEventRegister=new tgL;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10332_flushTimer=new _.Nz(this.flushInterval);this.JSC$10332_flushTimer.listen("tick",this.flush,!1,this)};
VgV.prototype.flush=function(){if(this.eventsCount){var K={loggedEvents:$2t(this.loggedEventRegister),unloggedEvents:$2t(this.unloggedEventRegister)};if(_.S("export_player_version_to_ytconfig")){var X;(X=_.e8("PLAYER_CLIENT_VERSION"))?(X=X.split("-")[0].replace(/\./g,""),X=isNaN(Number(X))?"0":X):X="";var F=_.e8("PLAYER_CLIENT_VERSION");if(F){F=F.split("-");var P="";F.length>1&&(P=F[F.length-1]);F=YQ9(P.startsWith("canary_experiment")?"canary":P.startsWith("canary_control")?"control":"none")}else F=
"CLIENT_CANARY_STATE_UNKNOWN";K.dimensions={playerClientVersion:X,playerCanaryState:F}}this.logTransport.flush(K);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10332_flushTimer.enabled&&this.JSC$10332_flushTimer.stop()}};
var g2O=function(K){UH==null&&(UH=new VgV);var X=UH;var F=X.loggedEventRegister;K.dimensions=K.dimensions||{};K.dimensions.csn=_.AD()||"";var P=wDq(K.dimensions).join(";");if(K.records!=null)if(F.events.has(P)){var H;(H=F.events.get(P).records)==null||H.push.apply(H,_.LZ(K.records))}else F.events.set(P,K);X.JSC$10332_flushTimer.enabled||X.JSC$10332_flushTimer.start();X.eventsCount++;X.eventsCount>=100&&X.flush()};var Ozt=function(){};
Ozt.prototype.flush=function(K,X){_.S("enable_client_sli_logging")&&_.LL("sliEventBatch",K,{sendIsolatedPayload:!!X})};var UH;var bzW;bzW=function(K){var X=E2U;K=K===void 0?{}:K;X=X.name;var F=U63("SUCCESS");g2O({dimensions:K,records:[{name:X,state:"SLI_STATE_END",status:F}]})};
_.m6l=function(K,X,F,P){this.name=K;this.sliId=X;this.timeoutMs=F;this.statusOnTimeout=P;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.m6l.prototype.getId=function(){return this.sliId};
_.s$=function(K,X){X=X===void 0?{}:X;K.ongoing||(K.ongoing=!0,K.dimensions=X,K.logSliId=VuE(),g2O({dimensions:K.dimensions,records:[{name:K.name,state:"SLI_STATE_START",sliId:K.logSliId}]}),K.timeoutMs>0&&(K.timeoutHandle=setTimeout(function(){_.zt(K,K.statusOnTimeout)},K.timeoutMs)))};
_.zt=function(K,X){K.ongoing&&(K.timeoutMs>0&&clearTimeout(K.timeoutHandle),K.ongoing=!1,X={dimensions:K.dimensions,records:[{name:K.name,status:U63(X),state:"SLI_STATE_END",sliId:K.logSliId}]},RZ.register.delete(K.name+"_"+K.sliId),g2O(X))};var E2U=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var COO=function(){nz.apply(this,arguments)};
_.r(COO,nz);COO.prototype.getAssociations=function(){return[]};var VSP=new _.b("highlightTextDecoratorColorMapExtension");var $99=new _.b("styleRunColorMapExtension");var Ouw=_.lr(["data-"]),Ev3={};var CaP={};var hp=function(K){this.wrappedPromise_=K===void 0?null:K;this.state_=0;this.JSC$10364_value_=null};
hp.prototype.then=function(K,X,F){return this.wrappedPromise_?this.wrappedPromise_.then(K,X,F):this.state_===1&&K?(K=K.call(F,this.JSC$10364_value_))&&typeof K.then==="function"?K:_.mQ(K):this.state_===2&&X?(K=X.call(F,this.JSC$10364_value_))&&typeof K.then==="function"?K:_.N4L(K):this};
hp.prototype.getValue=function(){return this.JSC$10364_value_};
hp.prototype.isRejected=function(){return this.state_==2};
YBV(hp);_.N4L=function(K){var X=new hp;K=K===void 0?null:K;X.state_=2;X.JSC$10364_value_=K===void 0?null:K;return X};
_.mQ=function(K){var X=new hp;K=K===void 0?null:K;X.state_=1;X.JSC$10364_value_=K===void 0?null:K;return X};var ukP="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var izt=["load","abort","error"],GI=function(K,X,F){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10384_maxAspectRatio_=K;this.disableAnimation_=X===void 0?!1:X;this.disableExifRotation_=F===void 0?!1:F;this.JSC$10384_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10384_reject_=this.resolve_=null};
GI.prototype.transform=function(K){var X=this;this.mime_=K.type;m6(qsU(K),this.dataUrlRead_,this.readError_,this);m6(u0W(K.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(F,P){X.resolve_=F;X.JSC$10384_reject_=P})};
GI.prototype.dataUrlRead_=function(K){this.dataUrl_=K;this.angle_!=null&&x2Z(this)};
GI.prototype.exifRead_=function(K){if(this.disableExifRotation_)this.angle_=0;else{a:if(K=new DataView(K),K.byteLength<2||K.getUint16(0)!==65496)K=-2;else{for(var X=2,F=K.byteLength;X<F;){var P=K.getUint16(X),H=K.getUint16(X+2);if(P===65505){X+=4;P=K.getUint32(X);H=K.getUint16(X+4);if(P!==1165519206||H!==0)break;X+=6;P=K.getUint16(X)===18761;X+=K.getUint32(X+4,P);H=K.getUint16(X,P);X+=2;for(var f=0;f<H;f++){if(K.getUint16(X,P)===274){X+=8;K=K.getUint16(X,P);break a}X+=12}}else if(P>>8!==255)break;
else X+=H+2}K=-1}switch(K){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&&x2Z(this)};
GI.prototype.readError_=function(){this.JSC$10384_reject_()};
var x2Z=function(K){Za(K.JSC$10384_image_,izt,K.completeTransform_,!1,K);K.JSC$10384_image_.src=_.ps(K.dataUrl_).toString();K.JSC$10384_image_.src!=c$.toString()&&K.JSC$10384_image_.src.substr(0,11)==="data:image/"||K.JSC$10384_reject_()};
GI.prototype.completeTransform_=function(){if(this.JSC$10384_image_.src!=c$.toString()){var K=_.ps(this.dataUrl_),X=this.JSC$10384_image_.naturalHeight?this.JSC$10384_image_.naturalWidth/this.JSC$10384_image_.naturalHeight:null;this.invalidAspectRatio=X>this.JSC$10384_maxAspectRatio_||X<1/this.JSC$10384_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var F=this.JSC$10384_image_.naturalWidth,P=this.JSC$10384_image_.naturalHeight,H=X=0,f=this.JSC$10384_image_.naturalHeight?this.JSC$10384_image_.naturalWidth/
this.JSC$10384_image_.naturalHeight:null;f>this.JSC$10384_maxAspectRatio_?(F=this.JSC$10384_maxAspectRatio_*P,X=(F-this.JSC$10384_image_.naturalWidth)/2,this.cropped=!0):f<1/this.JSC$10384_maxAspectRatio_?(P=this.JSC$10384_maxAspectRatio_*F,H=(P-this.JSC$10384_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)f=F,F=P,P=f,f=X,X=H,H=f;switch(this.angle_){case 90:H-=F;break;case 180:X-=F;H-=P;break;case 270:X-=
P}this.cropped||this.angle_%360!==0?(K=document.createElement("canvas"),K.width=F||1,K.height=P||1,this.JSC$10384_image_.naturalWidth&&this.JSC$10384_image_.naturalHeight&&(F=K.getContext("2d"),F.rotate(Math.PI/180*this.angle_),F.drawImage(this.JSC$10384_image_,X,H,this.JSC$10384_image_.naturalWidth,this.JSC$10384_image_.naturalHeight)),this.transformedData=_.ps(K.toDataURL(this.mime_))):this.transformedData=K}else this.transformedData=K;this.resolve_(this)}};var lO=function(K,X){_.HD.call(this,K);this.value=X};
_.r(lO,_.HD);
var vH=function(K,X,F,P,H,f,u){u=u===void 0?!1:u;_.ua.call(this);var J=this;this.JSC$10389_url_=K;this.channelId_=X;this.maxFileSizeMb_=F;this.JSC$10389_maxAspectRatio_=P;this.dropZoneEl_=H;this.rejectInvalidAspectRatio_=u;this.selectButtonEl_=f;this.JSC$10389_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new F5(this.dropZoneEl_);this.selectOverlay_=new PH(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10389_image_=this.transfer_=null;this.handler_=new _.iv(this);_.JH(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(f,"click",function(){J.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.r(vH,_.ua);vH.prototype.disposeInternal=function(){for(var K=this.selectButtonEl_.nextSibling;K&&K.parentNode&&K.tagName=="INPUT";)K.parentNode.removeChild(K),K=this.selectButtonEl_.nextSibling;this.cancel();_.ua.prototype.disposeInternal.call(this)};
vH.prototype.uploadPromise=function(){if(this.JSC$10389_image_==null)return null;this.uploadPromise_||I6N(this);return this.uploadPromise_};
vH.prototype.cancel=function(){kIW(this);this.JSC$10389_image_=null};
var kIW=function(K){K.transfer_&&K.transfer_.cancel();K.transfer_=null;K.uploadPromise_=null;K.resolve_=null;K.JSC$10389_reject_=null},I6N=function(K){kIW(K);
K.transfer_=_.wGQ(K.JSC$10389_url_,{"X-YouTube-ChannelId":K.channelId_},K.JSC$10389_image_);K.handler_.listenOnce(K.transfer_,"l",K.JSC$10391_onUploadComplete_);K.handler_.listenOnce(K.transfer_,"n",K.onUploadError_);K.transfer_.run();K.uploadPromise_=new Promise(function(X,F){K.resolve_=X;K.JSC$10389_reject_=F})};
_.z=vH.prototype;_.z.onChange_=function(K){K.files.length&&(this.JSC$10389_image_=K.files[0],this.JSC$10389_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10389_image_=null,this.dispatchEvent(new lO("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(I6N(this),(new GI(this.JSC$10389_maxAspectRatio_)).transform(this.JSC$10389_image_).then((0,_.T3)(this.onPreview_,this),(0,_.T3)(this.onPreviewError_,this))))};
_.z.onPreview_=function(K){if(K.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10389_image_=null),this.dispatchEvent(new lO("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;K.cropped&&this.dispatchEvent(new lO("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new lO("yt.comments.ImageUploadOverlay.CHANGE_EVENT",K.transformedData))};
_.z.onPreviewError_=function(){this.JSC$10389_image_=null;this.dispatchEvent(new lO("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.z.onHover_=function(K){K.stopPropagation();K.preventDefault();if(K.type==="dragover")K=!0;else if(K.type==="dragleave")K=!1;else return;this.dispatchEvent(new lO("yt.comments.ImageUploadOverlay.HOVER_EVENT",K))};
_.z.JSC$10391_onUploadComplete_=function(){var K=(0,_.lsW)(this.transfer_.getResponseText());this.resolve_(K.encryptedBlobId)};
_.z.onUploadError_=function(){this.JSC$10389_reject_();kIW(this)};var KfT=function(K){K=K||{};var X={},F={};this.url=K.url||"";this.args=K.args||_.T8.clone(X);this.assets=K.assets||{};this.attrs=K.attrs||_.T8.clone(F);this.fallback=K.fallback||null;this.fallbackMessage=K.fallbackMessage||null;this.html5=!!K.html5;this.disable=K.disable||{};this.loaded=!!K.loaded;this.messages=K.messages||{}};
KfT.prototype.clone=function(){var K=new KfT,X;for(X in this)if(this.hasOwnProperty(X)){var F=this[X];K[X]=_.Jw(F)=="object"?_.T8.clone(F):F}return K};var Xht,FfC,PmU,gM,sEN,z6Z,fgN,DAQ,uTt,qLZ,JWV,ZpW,YLO,QEZ,M7W,nlQ,cWO,phW,Bzt,SLO,olZ,Lfu,TzL,rWt,AWL,jEW,whU,yWT,Wft,uyq,dAL,e6V,R6u,UAL,h6u,mAt,GCC,lgE,vlL,agC,t7t,$AW,OpV,V7t,glL,Elt,bpT,CmV,NzL,ipL,xAt,IgQ,kCu,KiO,XUt,FiO,aZ,PZL,HEO,suC,zAC,f9t,DTC,uEZ,qxL,JkC,ZEQ,YxL,QuO,MEZ,nuQ,ckO,pUO,BkZ,SxV,fz3,ouC,LiU,TkZ,rkO,AkT,jut,wUT,ykL,WiN,dTu,eAN,RAt,UTZ,hAV,mTC,GPT,l9V,vuT,a9L,tEu,$TE,OEL,VEC,guC,EuW;Xht=["account/accounts_list"];FfC=["acknowledge_channel_tou_strike"];PmU=["notification/add_upcoming_event_reminder"];
_.Hpt=["att/get"];gM=["browse","music/browse","unplugged/browse"];sEN=["channel/claim_legacy_youtube_channel"];z6Z=["history/clear_search_history"];fgN=["history/clear_watch_history"];DAQ=["comment/perform_comment_action"];uTt=["comment/get_comment_replies"];qLZ=["ypc/commerce_action"];JWV=["backstage/create_post"];ZpW=["live/create_broadcast"];YLO=["channel/create_channel"];QEZ=["comment/create_comment_reply"];M7W=["comment/create_comment"];nlQ=["live_chat/create_poll"];cWO=["playlist/create"];
phW=["decorate_message"];Bzt=["live_chat/delete_message"];SLO=["playlist/delete"];olZ=["video/delete"];Lfu=["like/dislike"];TzL=["dismissal/dismiss"];rWt=["flag/flag"];AWL=["flow"];jEW=["account/account_menu"];whU=["playlist/get_add_to_playlist"];yWT=["get_answer"];Wft=["channel/get_channel_creation_form"];uyq=["offline/get_download_action"];dAL=["kids/get_kids_blocklist_picker"];e6V=["live_chat/get_item_context_menu"];R6u=["live_chat/get_live_chat_message_buy_flow"];UAL=["live_chat/get_live_chat_replay"];
h6u=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];mAt=["live_chat/get_live_chat_super_sticker_buy_flow"];GCC=["notification/get_notification_menu"];lgE=["playlist/get_settings_editor"];vlL=["backstage/get_post_video_preview"];agC=["account/get_profile_card"];t7t=["share/get_share_panel"];$AW=["share/get_sharing_provider_data"];OpV=["get_survey"];V7t=["notification/get_unseen_count"];glL=["get_user_mention_suggestions"];Elt=["get_watch"];bpT=["guide"];
CmV=["feedback"];NzL=["kids/update_blacklist"];ipL=["like/like"];xAt=["live_chat/live_chat_action"];IgQ=["live_chat/manage_user"];kCu=["video_manager/metadata_update"];KiO=["live_chat/moderate"];XUt=["notification/modify_channel_preference"];FiO=["notification/opt_out"];aZ=["get_panel","get_posts_by_host_panel"];PZL=["player"];HEO=["browse/edit_playlist"];suC=["notification/record_interactions"];zAC=["reel/reel_item_watch"];f9t=["reel/reel_watch_sequence"];DTC=["like/removelike"];uEZ=["notification/remove_upcoming_event_reminder"];
qxL=["flag/get_form"];JkC=["miniapp/report_value"];ZEQ=["navigation/resolve_url"];YxL=["channel/reveal_business_email"];QuO=["in_video/search"];MEZ=["search","sfv/search","unplugged/search"];nuQ=["live_chat/send_message"];ckO=["live_chat/send_live_chat_vote"];pUO=["account/set_setting"];BkZ=["submit_caption_correction"];SxV=["subscription/subscribe"];fz3=["get_transcript"];ouC=["resolve_location","unplugged/resolve_location"];LiU=["subscription/unsubscribe"];TkZ=["backstage/update_post"];rkO=["channel_edit/update_channel_page_settings"];
AkT=["comment/update_comment_reply"];jut=["comment/update_comment"];wUT=["comment/update_comments_settings"];ykL=["creator/update_creator_channel"];WiN=["pdg/update_enablement"];dTu=["updated_metadata"];eAN=["channel_edit/validate_channel_handle"];RAt=["verify_age"];UTZ=["next","unplugged/watch_next"];hAV=["whitelist/edit"];mTC=["ypc/cancel_recurrence"];GPT=["ypc/complete_transaction"];l9V=["ypc/get_cart"];vuT=["ypc/get_fix_instrument_params"];a9L=["ypc/get_offers"];tEu=["ypc/get_payment_instruments_params"];
$TE=["ypc/handle_transaction"];OEL=["ypc/log_payment_server_analytics"];VEC=["ypc/pause_subscription"];guC=["ypc/redeem_code"];EuW=["ypc/resume_subscription"];var bEQ=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,
74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,
147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,
50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,265810,194770,195350,195349,194771,166382,37671,
49953,220669,249229,213774,204572,191389,253830,253831,253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,
170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,261210,210815,246127,245256,244950,
191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,
253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,
96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,
8197,168501,156512,161613,156509,208274,161612,161614,262801,266131,266132,262800,262799,262802,262798,82039];var DO=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.gS("yt.msgs_",DO);var tp=new _.Oh("ACTION_ROUTER_TOKEN");_.$2=function(){this.autonavState_=_.S("kevlar_is_pupi_enabled")?2:o0M()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.$2.prototype.getState=function(){return this.autonavState_};
_.$2.prototype.pause=function(K){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=K):this.autonavState_==1&&(this.disabledAutonavPauseReason_=K)};
_.$2.prototype.setState=function(K,X,F){X&&(this.autoplayChangedByUser=!0);X=this.autonavState_===3||K===3;this.autonavState_!=K&&(this.autonavState_=K,K!=3&&_.L9T(K==2),K=_.S("kevlar_is_pupi_enabled")?F||X:!0,_.GT.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,K,F))};
_.$2.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.gH(_.$2);var OH=function(){this.hasRun=!1};var V3={},mEl=(V3.auto_search="LATENCY_ACTION_AUTO_SEARCH",V3.ad_to_ad="LATENCY_ACTION_AD_TO_AD",V3.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",V3.app_startup="LATENCY_ACTION_APP_STARTUP",V3.browse="LATENCY_ACTION_BROWSE",V3.cast_splash="LATENCY_ACTION_CAST_SPLASH",V3.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",V3.channels="LATENCY_ACTION_CHANNELS",V3.chips="LATENCY_ACTION_CHIPS",V3.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",V3.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
V3.editor="LATENCY_ACTION_EDITOR",V3.embed="LATENCY_ACTION_EMBED",V3.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",V3.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",V3.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",V3.explore="LATENCY_ACTION_EXPLORE",V3.favorites="LATENCY_ACTION_FAVORITES",V3.home="LATENCY_ACTION_HOME",V3.inboarding="LATENCY_ACTION_INBOARDING",V3.landing="LATENCY_ACTION_LANDING",V3.library="LATENCY_ACTION_LIBRARY",V3.live=
"LATENCY_ACTION_LIVE",V3.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",V3.management="LATENCY_ACTION_MANAGEMENT",V3.mini_app="LATENCY_ACTION_MINI_APP_PLAY",V3.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",V3.onboarding="LATENCY_ACTION_ONBOARDING",V3.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",V3.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",V3.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",V3.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
V3.prebuffer="LATENCY_ACTION_PREBUFFER",V3.prefetch="LATENCY_ACTION_PREFETCH",V3.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",V3.profile_switcher="LATENCY_ACTION_LOGIN",V3.projects="LATENCY_ACTION_PROJECTS",V3.reel_watch="LATENCY_ACTION_REEL_WATCH",V3.results="LATENCY_ACTION_RESULTS",V3.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",V3.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",V3.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",V3.review="LATENCY_ACTION_REVIEW",V3.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",V3.search_ui="LATENCY_ACTION_SEARCH_UI",V3.search_suggest="LATENCY_ACTION_SUGGEST",V3.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",V3.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",V3.seek="LATENCY_ACTION_PLAYER_SEEK",V3.settings="LATENCY_ACTION_SETTINGS",V3.store="LATENCY_ACTION_STORE",V3.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",V3.tenx="LATENCY_ACTION_TENX",V3.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",V3.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
V3.watch="LATENCY_ACTION_WATCH",V3.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",V3["watch,watch7"]="LATENCY_ACTION_WATCH",V3["watch,watch7_html5"]="LATENCY_ACTION_WATCH",V3["watch,watch7ad"]="LATENCY_ACTION_WATCH",V3["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",V3.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",V3.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",V3.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",V3.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",V3.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",V3.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",V3.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",V3.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",V3);var XTd=function(K,X){Ys.call(this,1,arguments);this.timer=X};
_.r(XTd,Ys);var KNO=new MJq("aft-recorded",XTd);var aB4=_.FP.ytLoggingGelSequenceIdObj_||{};_.gS("ytLoggingGelSequenceIdObj_",aB4);var g4=_.FP.ytLoggingLatencyUsageStats_||{};_.gS("ytLoggingLatencyUsageStats_",g4);var EH=function(){this.cleanupJob=0},O1M=function(){EH.instance||(EH.instance=new EH);
return EH.instance};
_.z=EH.prototype;_.z.baseline=function(K,X,F){bO(this,"baseline_"+K)||_.LL("latencyActionBaselined",{clientActionNonce:K},{timestamp:X,cttAuthInfo:F})};
_.z.tick=function(K,X,F,P){bO(this,"tick_"+K+"_"+X)||_.LL("latencyActionTicked",{tickName:K,clientActionNonce:X},{timestamp:F,cttAuthInfo:P})};
_.z.info=function(K,X,F){var P=Object.keys(K).join("");bO(this,"info_"+P+"_"+X)||(K=Object.assign({},K),K.clientActionNonce=X,_.LL("latencyActionInfo",K,{cttAuthInfo:F}))};
_.z.jspbInfo=function(K,X,F){for(var P="",H=0;H<k5(K).length;H++)k5(K)[H]!==void 0&&(P=H===0?P.concat(""+H):P.concat("_"+H));bO(this,"info_"+P+"_"+X)||(_.Qf(K,2,X),X={cttAuthInfo:F},F=_.S("jspb_sparse_encoded_pivot")?new nL([{}]):new nL,_.P$(F,7,W3N,K),ta3("latencyActionInfo",F,X))};
_.z.span=function(K,X,F){var P=Object.keys(K).join("");bO(this,"span_"+P+"_"+X)||(K.clientActionNonce=X,_.LL("latencyActionSpan",K,{cttAuthInfo:F}))};
var bO=function(K,X){g4[X]=g4[X]||{count:0};var F=g4[X];F.count++;F.time=(0,_.CG)();K.cleanupJob||(K.cleanupJob=_.cu(_.A9,function(){var P=(0,_.CG)(),H;for(H in g4)g4[H]&&P-g4[H].time>6E4&&delete g4[H];K&&(K.cleanupJob=0)},5E3));
return F.count>5?(F.count===6&&Math.random()*1E5<1&&(F=new _.nG("CSI data exceeded logging limit with key",X.split("_")),X.indexOf("plev")>=0||_.yy(F)),!0):!1};var CZL,Nkt;CZL=window;Nkt=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.Mm=CZL.performance||CZL.mozPerformance||CZL.msPerformance||CZL.webkitPerformance||new Nkt;var kVP=!1,g0P=!1,FNT=(0,_.T3)(_.Mm.clearResourceTimings||_.Mm.webkitClearResourceTimings||_.Mm.mozClearResourceTimings||_.Mm.msClearResourceTimings||_.Mm.oClearResourceTimings||_.zM,_.Mm);var iEC=window;iEC.ytcsi&&(iEC.ytcsi.infoGel=_.T6,iEC.ytcsi.tick=_.Ac);var QKT=function(K){Ys.call(this,1,arguments);this.csn=K};
_.r(QKT,Ys);var Szy=new MJq("screen-created",QKT),dO9=[],Yrw=WNP,eLP=0,db=new Map,Mqy=new Map,nsn=new Map;var rV=Symbol("sf"),$X=new WeakMap;var Cz=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},JY=function(){Cz.instance||(Cz.instance=new Cz);
return Cz.instance};
_.z=Cz.prototype;_.z.setClient=function(K){this.client=K};
_.z.JSC$10470_newScreen=function(){this.clear();this.csn=_.AD()};
_.z.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.z.reportShown=function(K,X,F){var P=this.JSC$10470_getTrackingParams(K),H=K.visualElement?K.visualElement:P;X=this.shownElements.has(H);var f=this.visibleState.get(H);this.shownElements.add(H);this.visibleState.set(H,!0);K.impressionLog&&!X&&K.impressionLog();if(P||K.visualElement)if(F=xTL(this,K,F))if(H=I9C(this,K),N2(this,K)||H){P=K.visualElement?K.visualElement:_.QB(P);var u=K.interactionLoggingClientData;H||X?N2(this,K)&4?f||rKw(this.client,F,P,u):N2(this,K)&1&&!X&&osM(this.client,F,P,u):osM(this.client,
F,P,u)}};
_.z.reportHidden=function(K,X,F){var P=this.JSC$10470_getTrackingParams(K),H=K.visualElement?K.visualElement:P;X=this.hiddenElements.has(H);var f=this.visibleState.get(H);this.hiddenElements.add(H);this.visibleState.set(H,!1);if(f===!1)return!0;if(!P&&!K.visualElement)return!1;F=xTL(this,K,F);if(!F||!N2(this,K)&&I9C(this,K))return!1;P=K.visualElement?K.visualElement:_.QB(P);N2(this,K)&8?AKw(this.client,F,P):N2(this,K)&2&&!X&&(K=this.client,X=WW({cttAuthInfo:j4(F)||void 0},F),P={csn:F,ve:P.getAsJson(),
eventType:2},F==="UNDEFINED_CSN"?R7("visualElementHidden",X,P):K?SF("visualElementHidden",P,K,X):_.LL("visualElementHidden",P,X));return!0};
_.z.JSC$10470_getTrackingParams=function(K){var X=this.getData(K),F,P;if(_.S("il_use_view_model_logging_context")&&(X==null?0:(F=X.context)==null?0:(P=F.loggingContext)==null?0:P.loggingDirectives))return X.context.loggingContext.loggingDirectives.trackingParams||"";var H,f;if(X==null?0:(H=X.rendererContext)==null?0:(f=H.loggingContext)==null?0:f.loggingDirectives)return X.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(X==null?0:X.loggingDirectives)return X.loggingDirectives.trackingParams||
"";var u;return((u=K.veContainer)==null?0:u.trackingParams)?K.veContainer.trackingParams:(X==null?void 0:X.trackingParams)||""};
_.z.JSC$10470_elementShouldLogGesture=function(K,X){K=this.getData(K);return!!((Math.floor(Number(K&&K.loggingDirectives&&K.loggingDirectives.gestures&&K.loggingDirectives.gestures.types||""))||0)&X)};
_.z.JSC$10470_getNearestParentVe=function(K){var X=this.JSC$10470_getTrackingParams(K);return K.visualElement?K.visualElement:X?_.QB(X):K.parentElement?this.JSC$10470_getNearestParentVe(K.parentElement):null};
var xTL=function(K,X,F){var P=_.AD(F);return K.csn===null||P===K.csn||F?P:(K=new _.nG("VisibilityLogger called before newScreen",{caller:X.tagName,previous_csn:K.csn,current_csn:P}),_.yy(K),null)};
Cz.prototype.getData=function(K){var X,F=K.data||((X=K.props)==null?void 0:X.data);if(!F&&_.S("enable_wiz_always_try_logging_info_map")){var P;F=(P=Os(K))==null?void 0:P[rV]}else if(K.isWebComponentWrapper){var H;F=(H=Os(K))==null?void 0:H[rV]}return F};
var I9C=function(K,X){var F;return!((F=K.getData(X))==null||!F.loggingDirectives)},N2=function(K,X){K=K.getData(X);
return Math.floor(Number(K&&K.loggingDirectives&&K.loggingDirectives.visibility&&K.loggingDirectives.visibility.types||""))||1};var iO;iO=function(){};
_.fB=function(){iO.instance||(iO.instance=new iO);return iO.instance};
iO.prototype.setClient=function(K){_.hV(JY().setClient).bind(JY())(K)};
_.kPL=function(){_.fB();_.hV(JY().JSC$10470_newScreen).bind(JY())()};
iO.prototype.clear=function(){_.hV(JY().clear).bind(JY())()};
iO.prototype.reportShown=function(K,X,F){_.hV(JY().reportShown).bind(JY())(K,X,F)};
iO.prototype.reportHidden=function(K,X,F){return _.hV(JY().reportHidden).bind(JY())(K,X,F)};
var vJ3=function(K,X){return _.hV(JY().JSC$10470_getTrackingParams).bind(JY())(X)},B8q=function(K,X){return _.hV(JY().JSC$10470_getNearestParentVe).bind(JY())(X)};var x2,KdC;x2=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};
_.uH=function(){x2.instance||(x2.instance=new x2);return x2.instance};
x2.prototype.setClient=function(K){this.client=K};
KdC=function(K,X,F){F=F===void 0?{}:F;_.hV(function(){var P,H,f,u=((P=_.T(X==null?void 0:X.commandMetadata,_.g_))==null?void 0:P.rootVe)||((H=_.T(X==null?void 0:X.commandMetadata,K6L))==null?void 0:(f=H.screenVisualElement)==null?void 0:f.uiType);if(u){P=_.T(X==null?void 0:X.commandMetadata,l1C);if(P==null?0:P.parentTrackingParams){var J=_.QB(P.parentTrackingParams);if(P.parentCsn)var Z=P.parentCsn}else F.clickedVisualElement?J=F.clickedVisualElement:X.clickTrackingParams&&(J=_.QB(X.clickTrackingParams));
a:{P=_.T(X,_.vg);H=_.T(X,X9P);if(P){if(H=TRO(P,"VIDEO")){P={token:H,videoId:P.videoId};break a}}else if(H&&(P=TRO(H,"PLAYLIST"))){P={token:P,playlistId:H.playlistId};break a}P=void 0}F=Object.assign({},{cttAuthInfo:P,parentCsn:Z},F);if(_.S("expectation_logging")){var M;F.loggingExpectations=((M=_.T(X==null?void 0:X.commandMetadata,K6L))==null?void 0:M.loggingExpectations)||void 0}_.IZ(K,u,J,F)}else _.yy(new _.nG("Error: Trying to create a new screen without a rootVeType",X))})()};
_.IZ=function(K,X,F,P){P=P===void 0?{}:P;_.hV(function(){bEQ.includes(X)||(_.yy(new _.nG("createClientScreen() called with a non-page VE",X)),X=83769);P.isHistoryNavigation||(K.forwardHistoryStack=[],K.backHistoryStack.push({rootVe:X,key:P.key||""}));K.graftQueue=[];K.stateChangedQueue=[];P.dataPromises?X9U(K,X,F,P):FdN(K,X,F,P)})()};
_.PsT=function(K,X,F){F=F===void 0?0:F;_.hV(function(){X.then(function(P){K.pendingScreenCreation.has(F)&&K.pendingScreenFn&&K.pendingScreenFn();var H=_.AD(F),f=_.r_(F);if(H&&f){var u;(P==null?0:(u=P.response)==null?0:u.trackingParams)&&ev(K.client,H,f,_.QB(P.response.trackingParams));var J;(P==null?0:(J=P.playerResponse)==null?0:J.trackingParams)&&ev(K.client,H,f,_.QB(P.playerResponse.trackingParams))}})})()};
x2.prototype.graftServerVe=function(K,X,F){var P=this;return _.hV(function(){var H=_.QB(K);_.k2(P,H,X,F);return H})()};
_.SRO=function(K,X,F,P){return _.S("enable_client_ve_spec")&&X.clientVeSpec?(X=_.cO(X.clientVeSpec.uiType,void 0,X.clientVeSpec.elementIndex,X.clientVeSpec.clientYoutubeData,void 0,X),_.k2(K,X,F,P)?X:null):X.trackingParams?K.graftServerVe(X.trackingParams,F,P):null};
_.Da=function(K,X,F,P){return _.hV(function(){if(!X.veType)return _.wc(new _.nG("Error: Trying to graft a client VE without a veType.")),null;if(X.visibilityTypes){var H=X.visibilityTypes.reduce(function(f,u){return f|u});
H={visibility:{types:String(H)}}}H=_.cO(X.veType,X.visualElement,X.elementIndex,X.clientYouTubeData,void 0,H);return _.k2(K,H,F,P)?H:null})()};
_.k2=function(K,X,F,P){P=P===void 0?0:P;return _.hV(function(){if(K.pendingScreenCreation.has(P))return K.graftQueue.push([X,F]),!0;var H=_.AD(P),f=F||_.r_(P);if(H&&f){if(_.S("combine_ve_grafts")){var u=K.cachedVisualElements.get(f.toString());u?u.push(X):(K.cachedRootVisualElements.set(f.toString(),f),K.cachedVisualElements.set(f.toString(),[X]));K.attachTimeout||(K.attachTimeout=_.cu(_.A9,function(){H3C(K,H)},1200))}else ev(K.client,H,f,X);
return!0}return!1})()};
_.Kp=function(K,X,F){F=F===void 0?0:F;var P=K.recurringGrafts.get(F)||new Map;if(_.S("smarter_ve_dedupping"))for(var H=Array.from(P.keys()),f=0;f<H.length;f++){var u=void 0,J=void 0;var Z=X;var M=H[f];M.isClientVe()&&Z.isClientVe()?(u=Z.getAsJson(),J=M.getAsJson(),Z=u.veType!==J.veType||u.elementIndex!==J.elementIndex||u.dataElement!==J.dataElement||Z.getLoggingDirectives()!==M.getLoggingDirectives()?!1:!0):Z=M.veData.trackingParams!==void 0&&Z.veData.trackingParams!==void 0?((J=Z.veData)==null?void 0:
J.trackingParams)===((u=M.veData)==null?void 0:u.trackingParams):!1;if(Z)return}else if(P.has(X))return;P.set(X,void 0);K.recurringGrafts.set(F,P);_.AD(F)==="UNDEFINED_CSN"||K.pendingScreenCreation.has(F)||_.k2(K,X,void 0,F)};
_.XT=function(K,X,F,P){P=_.AD(P===void 0?0:P);if(!P)return!1;wTT(K.client,P,X,F);return!0};
_.FT=function(K,X,F,P){if(!X)return!1;P=_.AD(P===void 0?0:P);if(!P)return!1;wTT(K.client,P,_.QB(X),F);return!0};
_.WO=function(K,X){var F=X.getScreenLayer&&X.getScreenLayer();if(X.visualElement)return _.XT(K,X.visualElement,void 0,F);X=vJ3(_.fB(),X);return _.FT(K,X,void 0,F)};
x2.prototype.clickCommand=function(K,X,F){return _.FT(this,K.clickTrackingParams,X,F===void 0?0:F)};
x2.prototype.stateChanged=function(K,X,F){this.visualElementStateChanged(_.QB(K),X,F===void 0?0:F)};
x2.prototype.visualElementStateChanged=function(K,X,F){F=F===void 0?0:F;F===0&&this.pendingScreenCreation.has(F)?this.stateChangedQueue.push([K,X]):this.logStateChanged(K,X,F)};
x2.prototype.logStateChanged=function(K,X,F){F=F===void 0?0:F;var P=_.AD(F);K=K||_.r_(F);return P&&K?(yK3(this.client,P,K,X),!0):!1};
var X9U=function(K,X,F,P){P=P===void 0?{}:P;K.pendingScreenCreation.add(P.layer||0);K.pendingScreenFn=function(){FdN(K,X,F,P);var u=_.r_(P.layer);if(u){for(var J=_.D(K.graftQueue),Z=J.next();!Z.done;Z=J.next())Z=Z.value,_.k2(K,Z[0],Z[1]||u,P.layer);u=_.D(K.stateChangedQueue);for(J=u.next();!J.done;J=u.next())J=J.value,K.logStateChanged(J[0],J[1])}};
F||_.AD(P.layer)||K.pendingScreenFn();if(P.dataPromises)for(var H=_.D(P.dataPromises),f=H.next();!f.done;f=H.next())_.PsT(K,f.value,P.layer);else _.jF(Error("tf"))},FdN=function(K,X,F,P){P=P===void 0?{}:P;
var H=void 0;P.layer||(P.layer=0);H=P.parentLayer!==void 0?P.parentLayer:P.layer;var f=_.AD(H);H=_.r_(H);var u=F||H,J;u&&(P.parentCsn!==void 0?J={clientScreenNonce:P.parentCsn,visualElement:u}:f&&f!=="UNDEFINED_CSN"&&(J={clientScreenNonce:f,visualElement:u}));var Z,M=_.e8("EVENT_ID");f==="UNDEFINED_CSN"&&M&&(Z={servletData:{serializedServletEventId:M}});_.S("combine_ve_grafts")&&f&&H3C(K,f);_.S("no_client_ve_attach_unless_shown")&&u&&f&&Sr4(u,f);try{var n=_.cKy(K.client,X,J,P.csnToClone,P.cttAuthInfo,
Z,P.implicitGestureType,void 0,P.loggingExpectations)}catch(L){_.Wu(L,{rootVeType:X,rootVe:H,parentVisualElement:F,currentCsn:f,parentEl:J,csnToClone:P.csnToClone});_.jF(L);return}_.w_(n,X,P.layer,P.cttAuthInfo);f&&f!=="UNDEFINED_CSN"&&H&&!Arn(f)&&AKw(K.client,f,H,!0);K.backHistoryStack[K.backHistoryStack.length-1]&&!K.backHistoryStack[K.backHistoryStack.length-1].csn&&(K.backHistoryStack[K.backHistoryStack.length-1].csn=n||"");_.T6({clientScreenNonce:n});_.kPL();var c=_.r_(P.layer);f&&f!=="UNDEFINED_CSN"&&
c&&(_.S("web_mark_root_visible")||_.S("music_web_mark_root_visible"))&&_.mb(n,c);K.pendingScreenCreation.delete(P.layer||0);K.pendingScreenFn=void 0;var B;(B=K.recurringGrafts.get(P.layer))==null||B.forEach(function(L,A){L?_.k2(K,A,L,P.layer):c&&_.k2(K,A,c,P.layer)});
s9C(K)},s9C=function(K){for(var X=0;X<K.afterNewScreenOneOffJobs.length;X++){var F=K.afterNewScreenOneOffJobs[X];
try{F()}catch(P){_.jF(P)}}for(X=K.afterNewScreenOneOffJobs.length=0;X<K.afterNewScreenRecurringJobs.length;X++){F=K.afterNewScreenRecurringJobs[X];try{F()}catch(P){_.jF(P)}}},H3C=function(K,X){if(X===void 0)for(var F=TYM(),P=0;P<F.length;P++)F[P]!==void 0&&H3C(K,F[P]);
else K.cachedVisualElements.forEach(function(H,f){(f=K.cachedRootVisualElements.get(f))&&pTP(K.client,X,f,H)}),K.cachedVisualElements.clear(),K.cachedRootVisualElements.clear(),K.attachTimeout=void 0};var Ph=function(K){K=K===void 0?{layer:0}:K;this.hasRun=!1;this.createScreenConfig=K;K={};this.p9x=(K.response=!1,K.playerResponse=!1,K)};
_.r(Ph,OH);Ph.prototype.validate=function(K){return!(!K.data||!K.data.response&&!K.data.playerResponse)};
Ph.prototype.handle=function(K){var X=_.uH(),F=this.createScreenConfig.layer;K.data.response&&K.data.response.trackingParams&&!this.p9x.response&&(X.graftServerVe(K.data.response.trackingParams,void 0,F),this.p9x.response=!0);K.data.playerResponse&&K.data.playerResponse.trackingParams&&!this.p9x.playerResponse&&(X.graftServerVe(K.data.playerResponse.trackingParams,void 0,F),this.p9x.playerResponse=!0)};var Hh=function(){this.aS=_.Ue();this.ik=[];this.twH=0};
Hh.prototype.processChunk=function(K){if(K){for(var X=_.D(this.ik),F=X.next();!F.done;F=X.next())F=F.value,F.validate(K)&&(F.handle(K),F.hasRun=!0);_.Ac("np"+this.twH);this.twH++}};var hul,DlU;_.Hn=function(K,X,F,P,H,f,u){u=u===void 0?[]:u;this.buildCommandPayload=K;this.navigate=X;this.handleServiceRequest=F;this.sendAction=P;this.JSC$10509_screenManager=H;this.commandResolverMap=f;this.autoLogResolverAllowlist=u;this.pendingCommands=new Set};
hul=function(K,X,F){var P=S3l,H=oHy,f=_.uH(),u=zlL;F=F===void 0?[]:F;_.Hn.instance=new _.Hn(K,X,P,H,f,u,F)};
DlU=function(K,X,F){if(!K.commandResolverMap)return!1;var P=GOn(X,K.commandResolverMap);return P?((K.autoLogResolverAllowlist.some(function(H){return!!_.T(X,H)})||(F==null?0:F.forceClickLogging))&&fPT(K,X,F),P instanceof Promise?P.then(function(H){H.resolve(X,F)}):P.resolve(X,F),!0):!1};
_.Hn.prototype.resolveCommand=function(K,X){var F=this,P=uiO(K);if(DlU(this,K,X))return!0;if(P)return qTt(this,K,X);if(!this.buildCommandPayload)return UOM(K,"Unhandled command by buildCommandPayload"),!1;var H=this.buildCommandPayload(K,X);if(X==null?0:X.commandController)H.commandController=X.commandController;if(H.type===0){if(!this.navigate)return hLy(K,"navigate"),!1;if(!J1N(H.command))return UOM(K,"Page requests need to specify a url"),!1;_.S("logging_avoid_blocking_during_navigation")&&_.PH9().transition("application_navigating");
K=this.navigate(H)||[];SBC(K).then(function(){F.pendingCommands.delete(H.command)});
return!0}if(H.type===1){if(!this.handleServiceRequest)return hLy(K,"handleServiceRequest"),!1;(X==null?0:X.forceClickLogging)&&fPT(this,H.command,X);K=this.handleServiceRequest(H);SBC(K).then(function(){F.pendingCommands.delete(H.command)});
return!0}if(H.type===2){if(!this.sendAction)return hLy(K,"sendAction"),!1;fPT(this,H.command,X);this.sendAction(H);return!0}return!1};
var fPT=function(K,X,F){if((F==null||!F.disableClickTracking)&&K.JSC$10509_screenManager)if(X.clickTrackingParams&&_.S("log_click_with_layer_from_element_in_command_handler")){var P;F=F==null?void 0:(P=F.form)==null?void 0:P.element;K.JSC$10509_screenManager.clickCommand(X,null,F&&F.getScreenLayer&&F.getScreenLayer())}else X.clickTrackingParams?K.JSC$10509_screenManager.clickCommand(X):!_.S("disable_clicked_visual_element_in_command_handler")&&(F==null?0:F.clickedVisualElement)&&_.XT(K.JSC$10509_screenManager,
F.clickedVisualElement)},uiO=function(K){var X=!!_.T(K,_.PW),F;
K=((F=_.T(K,_.ss))==null?void 0:F.signal)==="CLIENT_SIGNAL";return X||K},qTt=function(K,X,F){var P=_.T(X,_.PW);
if(P)var H=(P==null?void 0:P.commands)||[];else{var f;if(((f=_.T(X,_.ss))==null?void 0:f.signal)==="CLIENT_SIGNAL"){var u;H=((u=_.T(X,_.ss))==null?void 0:u.actions)||[]}}if(H){X=_.D(H);for(H=X.next();!H.done;H=X.next()){H=H.value;try{K.resolveCommand(H,F)}catch(J){J instanceof Error&&_.jF(J)}}return!0}UOM(X,"Could not handle the meta command");return!1},J1N=function(K){var X;
return!((X=_.T(K==null?void 0:K.commandMetadata,_.g_))==null||!X.url)};var sL=function(){OH.apply(this,arguments)};
_.r(sL,OH);sL.prototype.validate=function(K){var X,F;return!this.hasRun&&!!((X=K.data.response)==null?0:(F=X.onResponseReceivedEndpoints)==null?0:F.length)};
sL.prototype.handle=function(K){var X=_.Hn.instance;K=_.D(K.data.response.onResponseReceivedEndpoints);for(var F=K.next();!F.done;F=K.next())X.resolveCommand(F.value)};var Z3t,YTU,Q9E;
Z3t=function(){this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.F0();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.zC=function(){YTU||(YTU=new Z3t);return YTU};
Q9E=function(){var K=_.zC();K.miniplayerButtonActivation=!1;K.userActivation=!1;K.playlistWatchPageActivation=!1;K.productDetailsPageActivation=!1;K.miniAppPageActivation=!1;K.playablesDestPageActivation=!1;K.lockupActivation=!1;K.showMiniplayerCommandActivation=!1;K.playlistSuggestionsShelfActivation=!1;K.mediaSessionPipActivation=!1;K.watchPipActivation=!1;K.watchWhileActivation=!1;K.shortsPipActivation=!1};
_.MYT=function(){var K=_.zC(),X=K.mediaSessionPipActivation,F=K.watchPipActivation,P=K.watchWhileActivation,H=K.playlistWatchPageActivation,f=K.lockupActivation,u=K.showMiniplayerCommandActivation,J=K.navigatingAwayFromWatchDeletedVideo,Z=K.shortsPipActivation,M=K.playlistSuggestionsShelfActivation,n=K.productDetailsPageActivation,c=K.miniAppPageActivation,B=K.playablesDestPageActivation;return!K.miniplayerButtonActivation&&!H&&!M&&!n&&!c&&!B&&!f&&!u&&!X&&!F&&!P&&!Z||J};var pw3;_.fp=gb("FEwhat_to_watch","/",3854);_.Baq=gb("FEdownloads","/feed/downloads",42352);pw3=gb("FEmusic_offline","browse/FEmusic_offline",42352);var vv=function(K,X){X=X===void 0?[]:X;var F=F===void 0?[]:F;X=uXn.apply(null,[qX4.apply(null,_.LZ(X))].concat(_.LZ(F)));this.store=Qcn(K,void 0,X)};
vv.prototype.getState=function(){return this.store.getState()};
vv.prototype.dispatch=function(K){return this.store.dispatch(K)};
vv.prototype.subscribe=function(K){return this.store.subscribe(K)};
vv.prototype.replaceReducer=function(K){return this.store.replaceReducer(K)};
vv.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Dg=function(K,X,F){var P=X(K.getState());return K.subscribe(function(){var H=X(K.getState());if(H!==P){var f=P;P=H;F(H,f)}})};var w0n;_.zl=function(K,X,F){return _.iY({type:"REPLACE_ENTITY",payload:{entityPayload:F,entityType:K,key:X}})};
w0n=function(K){return _.iY({type:"REPLACE_ENTITIES",payload:K})};
_.Bp=function(K,X,F,P){return _.iY({type:"UPDATE_ENTITY",payload:{entityPayload:F,entityType:K,key:X,mergeOption:P}})};var iw4=function(K){var X=this;K=K===void 0?[]:K;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;K.forEach(function(F){X.append(F)})};
_.z=iw4.prototype;_.z.getLength=function(){return this.totalLength};
_.z.append=function(K){var X=this.arrays.length===0?!1:(X=this.arrays[this.arrays.length-1])&&X.buffer===K.buffer&&X.byteOffset+X.length===K.byteOffset;X?(X=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(X.buffer,X.byteOffset,X.length+K.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(K);this.totalLength+=K.length};
_.z.split=function(K){for(var X=new iw4,F=new iw4,P=_.D(this.arrays),H=P.next();!H.done;H=P.next())H=H.value,K>=H.length?(X.append(H),K-=H.length):K?(X.append(new Uint8Array(H.buffer,H.byteOffset,K)),F.append(new Uint8Array(H.buffer,H.byteOffset+K,H.length-K)),K=0):F.append(H);return{headView:X,tailView:F}};
_.z.extract=function(K,X){return this.split(K).tailView.split(X).headView};
_.z.isFocused=function(K){return K>=this.arrayPos&&K<this.arrayPos+this.arrays[this.arrayIdx].length};
_.z.focus=function(K){if(!this.isFocused(K))for(K<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=K&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var nqT=function(K,X){K.focus(X);return K.arrays[K.arrayIdx][X-K.arrayPos]};(function(){var K=function(P){return new Uint8Array(P)},X=function(P){for(var H=new Uint8Array(P.length),f=0;f<P.length;f++)H[f]=P[f];
return H},F=new Uint8Array([1]);
return F.length===1&&F[0]===1?K:X})();
var Vqy=Array(1024),Oww=window.TextDecoder?new TextDecoder:void 0,Esy=window.TextEncoder?new TextEncoder:void 0;var N93=function(K){this.arrayView=K;this.pos=0;this.pendingTagAndType=-1},xX=function(K){var X=nqT(K.arrayView,K.pos);
++K.pos;if(X<128)return X;for(var F=X&127,P=1;X>=128;)X=nqT(K.arrayView,K.pos),++K.pos,P*=128,F+=(X&127)*P;return F},xOM=function(K,X){var F=K.pendingTagAndType;
for(K.pendingTagAndType=-1;K.pos+1<=K.arrayView.totalLength;){F<0&&(F=xX(K));var P=F>>3,H=F&7;if(P===X)return!0;if(P>X){K.pendingTagAndType=F;break}F=-1;switch(H){case 0:xX(K);break;case 1:K.pos+=8;break;case 2:P=xX(K);K.pos+=P;break;case 5:K.pos+=4}}return!1};var kOq=function(){this.pos=0;this.submessagePosStack=[];this.buf=Czy(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},KI=function(K,X){X=K.pos+X;
if(!(K.buf.length>=X)){for(var F=K.buf.length*2;F<X;)F*=2;K.buf=Czy(F,K.buf.subarray(0,K.pos));K.view=new DataView(K.buf.buffer,K.buf.byteOffset,K.buf.byteLength)}},kX=function(K,X){if(X>268435455){KI(K,4);
for(var F=X&1073741823,P=0;P<4;P++)K.view.setUint8(K.pos,F&127|128),F>>=7,K.pos+=1;X=Math.floor(X/268435456)}for(KI(K,4);X>127;)K.view.setUint8(K.pos,X&127|128),X>>=7,K.pos+=1;K.view.setUint8(K.pos,X);K.pos+=1};for(var Kyw={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,
fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,
mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,suggestedFeedbackChipStateEntity:485,
transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},I1M={},c1C=_.D(Object.entries(Kyw)),p9u=c1C.next();!p9u.done;p9u=c1C.next()){var BAU=_.D(p9u.value),STL=BAU.next().value,oqQ=BAU.next().value,Ldu=STL,TAQ=oqQ;TAQ&&(I1M[TAQ]=Ldu)};var FyP=function(K,X){K=K===void 0?{}:K;switch(X.type){case "ENTITY_LOADED":return X.payload.reduce(function(P,H){var f,u=(f=H.options)==null?void 0:f.persistenceOption;if(u&&u!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&u!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return P;if(!H.entityKey)return _.jF(Error("vf")),P;if(H.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!H.payload)return H=new _.nG("REPLACE entity mutation is missing a payload",{entityKey:H.entityKey}),_.jF(H),P;var J=(0,_.T8.getAnyKey)(H.payload);
return HYT(P,J,H.entityKey,H.payload[J])}if(H.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{H=H.entityKey;try{var Z=_.I7(H).entityType;J=HYT(P,Z,H);break a}catch(c){if(c instanceof Error){H=new _.nG("Failed to deserialize entity key",{entityKey:H,originalMessage:c.message});_.jF(H);J=P;break a}throw c;}J=void 0}return J}if(H.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!H.payload)return H=new _.nG("UPDATE entity mutation is missing a payload",{entityKey:H.entityKey}),_.jF(H),P;J=(0,_.T8.getAnyKey)(H.payload);
var M,n;return srd(P,J,H.entityKey,H.payload[J],(M=H.fieldMask)==null?void 0:(n=M.mergeOptions)==null?void 0:n.repeatedFieldsMergeOption)}return P},K);
case "REPLACE_ENTITY":var F=X.payload;return HYT(K,F.entityType,F.key,F.entityPayload);case "REPLACE_ENTITIES":return Object.keys(X.payload).reduce(function(P,H){var f=X.payload[H];return Object.keys(f).reduce(function(u,J){return HYT(u,H,J,f[J])},P)},K);
case "UPDATE_ENTITY":return F=X.payload,srd(K,F.entityType,F.key,F.entityPayload,F.mergeOption);default:return K}};var zVq;var r1L=!1,um,qA,JW,Zg,Yl,A1Q=function(K){_.LJ.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!r1L){var X,F=new Uint8Array(256),P=new Uint8Array(256);var H=1;for(X=0;X<256;X++)F[H]=X,P[X]=H,H^=H<<1^(H>>7&&283);um=new Uint8Array(256);qA=Pv(256);JW=Pv(256);Zg=Pv(256);Yl=Pv(256);for(var f=0;f<256;f++){H=f?P[255^F[f]]:0;H^=H<<1^H<<2^H<<3^H<<4;H=H&255^H>>>8^99;um[f]=H;X=H<<1^(H>>7&&283);var u=X^H;qA[f]=X<<24|H<<16|H<<8|u;JW[f]=u<<24|qA[f]>>>8;Zg[f]=H<<24|JW[f]>>>
8;Yl[f]=H<<24|Zg[f]>>>8}r1L=!0}H=Pv(44);for(F=0;F<4;F++)H[F]=K[4*F]<<24|K[4*F+1]<<16|K[4*F+2]<<8|K[4*F+3];for(P=1;F<44;F++)K=H[F-1],F%4||(K=(um[K>>16&255]^P)<<24|um[K>>8&255]<<16|um[K&255]<<8|um[K>>>24],P=P<<1^(P>>7&&283)),H[F]=H[F-4]^K;this.key=H};
_.r(A1Q,_.LJ);
A1Q.prototype.encrypt=function(K){var X=K.length;K=new Uint8Array(K.buffer.slice(K.byteOffset,K.byteOffset+X));for(var F=this.cipherBlock,P=0;P<X&&this.blockOffset<16;)K[P++]^=F[this.blockOffset++];for(var H=X-(X-P)%16;P<H;)j9C(this),K[P++]^=F[0],K[P++]^=F[1],K[P++]^=F[2],K[P++]^=F[3],K[P++]^=F[4],K[P++]^=F[5],K[P++]^=F[6],K[P++]^=F[7],K[P++]^=F[8],K[P++]^=F[9],K[P++]^=F[10],K[P++]^=F[11],K[P++]^=F[12],K[P++]^=F[13],K[P++]^=F[14],K[P++]^=F[15];if(P<X)for(j9C(this),this.blockOffset=0;P<X;)K[P++]^=
F[this.blockOffset++];return K};
var w9O=function(K,X){for(var F=0;F<4;F++)K.counter[F]=X[F*4]<<24|X[F*4+1]<<16|X[F*4+2]<<8|X[F*4+3];K.blockOffset=16},j9C=function(K){for(var X=K.key,F=K.counter[0]^X[0],P=K.counter[1]^X[1],H=K.counter[2]^X[2],f=K.counter[3]^X[3],u=3;u>=0&&!(K.counter[u]=-~K.counter[u]);u--);
for(var J,Z,M=4;M<40;)u=qA[F>>>24]^JW[P>>16&255]^Zg[H>>8&255]^Yl[f&255]^X[M++],J=qA[P>>>24]^JW[H>>16&255]^Zg[f>>8&255]^Yl[F&255]^X[M++],Z=qA[H>>>24]^JW[f>>16&255]^Zg[F>>8&255]^Yl[P&255]^X[M++],f=qA[f>>>24]^JW[F>>16&255]^Zg[P>>8&255]^Yl[H&255]^X[M++],F=u,P=J,H=Z;K=K.cipherBlock;u=X[40];K[0]=um[F>>>24]^u>>>24;K[1]=um[P>>16&255]^u>>16&255;K[2]=um[H>>8&255]^u>>8&255;K[3]=um[f&255]^u&255;u=X[41];K[4]=um[P>>>24]^u>>>24;K[5]=um[H>>16&255]^u>>16&255;K[6]=um[f>>8&255]^u>>8&255;K[7]=um[F&255]^u&255;u=X[42];
K[8]=um[H>>>24]^u>>>24;K[9]=um[f>>16&255]^u>>16&255;K[10]=um[F>>8&255]^u>>8&255;K[11]=um[P&255]^u&255;u=X[43];K[12]=um[f>>>24]^u>>>24;K[13]=um[F>>16&255]^u>>16&255;K[14]=um[P>>8&255]^u>>8&255;K[15]=um[H&255]^u&255};var y1L=!1;(function(){var K=function(P){return new Uint8Array(P)},X=function(P){for(var H=new Uint8Array(P.length),f=0;f<P.length;f++)H[f]=P[f];
return H},F=new Uint8Array([1]);
return F.length===1&&F[0]===1?K:X})();
var QZ;var Wdt=function(K){this.JSC$10577_aesKey=K};
Wdt.prototype.encrypt=function(K,X){var F=this,P,H;return _.q(function(f){if(f.nextAddress==1){a:{if(!y1L&&!OU){if(QZ){var u=QZ;break a}QZ=(u=window.crypto)==null?void 0:u.subtle;var J,Z,M;if(((J=QZ)==null?0:J.importKey)&&((Z=QZ)==null?0:Z.sign)&&((M=QZ)==null?0:M.encrypt)){u=QZ;break a}QZ=void 0}u=void 0}P=u;if(!P)return f.return(dlN(F,K,X));_.s2(f,3);return _.Y(f,elO(F,K,X,P),5)}if(f.nextAddress!=3)return f.return(f.yieldResult);H=_.qc(f);_.yy(H);y1L=!0;return f.return(dlN(F,K,X))})};
var elO=function(K,X,F,P){var H,f;return _.q(function(u){switch(u.nextAddress){case 1:if(K.cryptoKey){u.jumpTo(2);break}return _.Y(u,P.importKey("raw",K.JSC$10577_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:K.cryptoKey=u.yieldResult;case 2:return H={name:"AES-CTR",counter:F,length:128},_.Y(u,P.encrypt(H,K.cryptoKey,X),4);case 4:return f=u.yieldResult,u.return(new Uint8Array(f))}})},dlN=function(K,X,F){K.encryptorPolyfill||(K.encryptorPolyfill=new A1Q(K.JSC$10577_aesKey));
w9O(K.encryptorPolyfill,F);return K.encryptorPolyfill.encrypt(X)},Rlt=function(K){this.JSC$10581_aesKey=K};
Rlt.prototype.encrypt=function(K,X){this.encryptor||(this.encryptor=new A1Q(this.JSC$10581_aesKey));w9O(this.encryptor,X);return this.encryptor.encrypt(K)};var UlC={},uzT=bD("yt-idb-pref-storage",{objectStores:(UlC.prefs={addedAtVersion:1},UlC),shared:!1,upgrade:function(K,X){X(1)&&UM(Ra(K,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.MA=function(K){this.token=K};
_.MA.getInstance=function(){return _.q(function(K){return K.return(new Promise(function(X){_.EU().then(function(F){F?(_.MA.instance||(_.MA.instance=new _.MA(F)),X(_.MA.instance)):X(void 0)})}))})};
_.MA.prototype.get=function(K){var X=this,F,P,H;return _.q(function(f){if(f.nextAddress==1)return _.Y(f,qKl(X.token),2);if(f.nextAddress!=3)return F=f.yieldResult,_.Y(f,F.get("prefs",K),3);P=f.yieldResult;if(!P)return f.return();H=(0,_.CG)();return P.expirationTimestampMs<=H?f.return():f.return(P.value)})};
_.MA.prototype.set=function(K,X,F){F=F===void 0?31536E3:F;var P=this,H,f,u;return _.q(function(J){if(J.nextAddress==1)return H=(0,_.CG)(),f={key:K,value:X,expirationTimestampMs:H+F*1E3},_.Y(J,qKl(P.token),2);u=J.yieldResult;return _.Y(J,u.put("prefs",f),0)})};
_.MA.prototype.remove=function(K){var X=this,F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,qKl(X.token),2);F=P.yieldResult;return _.Y(P,F.delete("prefs",K),0)})};var np={},hlt=(np.INVALID_ENCODER_VERSION="Invalid encoder version",np.KEY_CREATION_FAILED="Failed to create encoder key",np.UNKNOWN_DECODE_ERROR="Failed to decode PES data",np.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",np.WRONG_DATA_TYPE="Encoder cannot process the data type",np),Hv=function(K,X){X=X===void 0?{}:X;_.nG.call(this,hlt[K],Object.assign({},{name:"PESEncoderError",type:K},X));this.type=K;this.level="WARNING";Object.setPrototypeOf(this,Hv.prototype)};
_.r(Hv,_.nG);var mlV=function(){},GKW=function(K,X,F){try{return K.encodeImpl(X,F)}catch(P){QrP(P,ZY3)}},lPC=function(K,X,F){var P;
return _.q(function(H){if(H.nextAddress==1)return _.s2(H,2),_.Y(H,K.decodeAsyncImpl(X,F),4);if(H.nextAddress!=2)return H.return(H.yieldResult);P=_.qc(H);QrP(P,YK9);_.JT(H)})};
mlV.prototype.decodeAsyncImpl=function(K,X){return Promise.resolve(this.decodeImpl(K,X))};var ch=function(K,X){this.aesEncryptor=K;this.aesEncryptorAsync=X};
_.r(ch,mlV);ch.prototype.encodeImpl=function(K,X){X=MTT(X);K=(new TextEncoder).encode(JSON.stringify(K));return this.aesEncryptor.encrypt(K,X)};
ch.prototype.decodeImpl=function(K,X){if(!(K instanceof Uint8Array))throw JLl(1);var F=new TextDecoder;X=MTT(X);K=this.aesEncryptor.encrypt(K,X);return JSON.parse(F.decode(K))};
ch.prototype.decodeAsyncImpl=function(K,X){var F=this,P,H,f;return _.q(function(u){if(u.nextAddress==1){if(!(K instanceof Uint8Array))throw JLl(1);P=new TextDecoder;H=MTT(X);return _.Y(u,F.aesEncryptorAsync.encrypt(K,H),2)}f=u.yieldResult;return u.return(JSON.parse(P.decode(f)))})};var n4O={accountLinkStatusEntity:qEu,booleanEntity:t3C,buttonEntity:NCW,captionTrack:v0Q,channelHandle:jiU,chipEntity:wxN,commerceAcquisitionClientPayloadEntity:B4U,commerceCartListEntity:SHV,contextNoteFeedEntityPayload:ULC,continuationTokenEntity:SQT,downloadQualityPickerEntity:uOC,downloadsPageRefreshTokenEntity:JrZ,downloadsPageViewConfigurationEntity:W6W,downloadStatusEntity:qQO,dismissState:yPO,sfvAudioItemCurrentlyPlayingEntity:cKT,emojiFountainDataEntity:EwE,emojiCustomizationSetEntity:gwU,
fakeChannel:V3O,fakePlaylist:g_L,fakePlaylistEntryCollection:E_U,fakeVideo:CQC,fakeVideoDescription:Ndt,featuredProductsEntity:iuE,flowStateEntity:z1W,iconBadgeEntity:o2O,interstitialInteractionStateEntity:yIL,likeButtonAnimationEntity:d6L,liveChatPollStateEntity:GMW,liveViewerLeaderboardChatEntryPointStateEntity:kVL,liveViewerLeaderboardPointsEntity:KNW,liveReactionsDataEntity:bTZ,logoEntity:jYQ,macroMarkerEntity:ehV,mainDownloadsLibraryEntity:ZuW,mainDownloadsListEntity:YQO,mainPlaylistDownloadStateEntity:MQZ,
mainPlaylistEntity:ovW,mainPlaylistVideoEntity:L6T,mainVideoDownloadStateEntity:nvC,mainVideoEntity:jGN,markersEngagementPanelSyncEntity:RhT,markersVisibilityOverrideEntity:U6C,musicAlbumReleaseDetail:fBU,musicAlbumReleaseDownloadMetadataEntity:F9U,musicAlbumRelease:z0V,musicAlbumReleaseUserDetail:DEu,musicArtistDetail:qht,musicArtist:ukL,musicArtistUserDetail:Jmu,musicDownloadsLibraryEntity:PRE,musicLibraryEdit:Z1O,musicLibraryStatusEntity:YhV,musicPlaylist:Q5L,musicPlaylistDownloadMetadataEntity:H1C,
musicShare:n0u,musicTrackDetail:pVT,musicTrackDownloadMetadataEntity:s5U,musicTrack:cmE,musicTrackUserDetail:BRV,offlineOrchestrationActionWrapperEntity:aBt,offlineVideoPolicy:taC,offlineVideoStreams:$EW,offlineabilityEntity:crL,orchestrationWebSamplingEntity:pDO,pageHeaderEntity:GeC,pdpStateEntity:LQC,pinnedProductEntity:x6Z,playbackData:O1t,playerStateEntity:hhE,quantityIncrementerEntity:T4C,refresh:Vau,saveToPlaylistListEntity:vsO,selectedChipIndexEntityPayload:m6Z,settingEntity:uvT,stringEntity:$eU,
suggestedFeedbackChipStateEntity:G4t,transfer:g0L,trendingOfferEntity:IGZ,videoDownloadContextEntity:E0L,videoOverviewAsyncDataEntity:COO,videoPlaybackPositionEntity:I_Z,votingEntity:tLu,ytMainChannelEntity:wDV,youchatPendingResponseEntity:lGZ,ytMainDownloadedVideoEntity:BYV,ytMainVideoEntity:yrL};var vqW,tYt,uj,rLl,AL3,VYu,EqL,gqN,O3T;vqW=function(K,X){this.JSC$10600_wrapped=K;this.JSC$10600_encoderRegistry=X;this.changedKeys={}};
tYt=function(K,X){a:{K=aPt(K.JSC$10600_encoderRegistry,X.version);try{var F=K.decodeImpl(X.data,X.key);break a}catch(P){QrP(P,YK9)}F=void 0}return F};
_.$lO=function(K,X,F){return K.JSC$10600_wrapped.objectStore("EntityStore").get(X).then(function(P){if(P){if(F&&P.entityType!==F)throw Error("wf");return tYt(K,P)}})};
uj=function(K,X,F){return F?(F=F.map(function(P){return _.$lO(K,P,X)}),Rt.all(F)):K.JSC$10600_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(X)).then(function(P){return P.map(function(H){return tYt(K,H)})})};
_.TZ9=function(K,X,F){var P=X0O(X),H=aPt(K.JSC$10600_encoderRegistry,1),f=Object.assign({},X);return K.JSC$10600_wrapped.objectStore("EntityStore").get(P).then(function(u){if(u){if(u.entityType!==F)throw Error("wf");f.entityMetadata||(u=tYt(K,u),f.entityMetadata=u.entityMetadata)}}).then(function(){var u={key:P,
entityType:F,data:GKW(H,f,P),version:1};return Rt.all([K.JSC$10600_wrapped.objectStore("EntityStore").put(u),O3T(K,f,F)])}).then(function(){VYu(K,P,F);
return P})};
rLl=function(K,X){var F=_.I7(X).entityType;return Rt.all([K.JSC$10600_wrapped.objectStore("EntityStore").delete(X),gqN(K,X)]).then(function(){VYu(K,X,F)})};
AL3=function(K,X,F,P){var H=aPt(K.JSC$10600_encoderRegistry,1);return _.$lO(K,X,P).then(function(f){if(f){f=$Oy(f,F);var u={key:X,entityType:P,data:GKW(H,f,X),version:1};return Rt.all([K.JSC$10600_wrapped.objectStore("EntityStore").put(u),O3T(K,f,P)])}}).then(function(){VYu(K,X,P);
return X})};
VYu=function(K,X,F){var P=K.changedKeys[F];P||(P=new Set,K.changedKeys[F]=P);P.add(X)};
EqL=function(K,X,F){var P=X0O(X);F=cLq(F);if(!F)return Rt.resolve([]);F=new F(X);K=K.JSC$10600_wrapped.objectStore("EntityAssociationStore");X=[];F=_.D(F.getAssociations());for(var H=F.next();!H.done;H=F.next())X.push(K.put({parentEntityKey:P,childEntityKey:H.value}));return Rt.all(X).then(function(f){return f.map(function(u){return u[1]})})};
gqN=function(K,X){return K.JSC$10600_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(X))};
O3T=function(K,X,F){var P=X0O(X);return gqN(K,P).then(function(){return EqL(K,X,F)})};var b3T=function(){};
_.r(b3T,mlV);b3T.prototype.encodeImpl=function(K){return K};
b3T.prototype.decodeImpl=function(K){if(K instanceof Uint8Array)throw JLl(0);return K};var SK3=function(){this.cacheMap={};this.cacheMap[0]=new b3T;if(!_.S("aes_pes_encoder_killswitch")){var K=this.cacheMap;try{var X=_.Qq();var F=MTT(X);var P=new ch(new Rlt(F),new Wdt(F))}catch(H){throw K=H instanceof Error?new Hv("KEY_CREATION_FAILED",{originalMessage:H.message}):new Hv("KEY_CREATION_FAILED"),_.jF(K),K;}K[1]=P}},aPt=function(K,X){X=X===void 0?0:X;
K=K.cacheMap[X];if(!K)throw X=new Hv("INVALID_ENCODER_VERSION",{encoderVersion:X}),_.jF(X),X;return K};var zS=function(K,X){_.LJ.call(this);this.token=K;this.JSC$10614_encoderRegistry=X;this.observers=[];K=new _.FP.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.Qq());K.onmessage=this.handleMessage.bind(this);this.channel=K};
_.r(zS,_.LJ);_.DH=function(K,X,F){var P,H,f,u;return _.q(function(J){if(J.nextAddress==1)return _.Y(J,DMw(K.token),2);if(J.nextAddress!=3)return P=J.yieldResult,_.Y(J,_.at(P,["EntityStore","EntityAssociationStore"],X,function(Z){H=new vqW(Z,K.JSC$10614_encoderRegistry);return F(H)}),3);
f=J.yieldResult;H&&(u=H.changedKeys,Object.keys(u).length>0&&(K.channel.postMessage(u),CsC(K,u)));return J.return(f)})};
zS.prototype.observe=function(K){var X=this;this.observers.push(K);return function(){var F=X.observers.indexOf(K);F>=0&&X.observers.splice(F,1)}};
var oIT=function(K){var X;return _.q(function(F){if(F.nextAddress==1)return _.Y(F,_.DH(K,{mode:"readonly",enableRetries:!0},function(P){return P.JSC$10600_wrapped.objectStore("EntityStore").getAll()}),2);
X=F.yieldResult;return F.return(Promise.all(X.filter(function(P){return!!P}).map(function(P){var H,f;
return _.q(function(u){if(u.nextAddress==1){H=P.key;f=P.entityType;var J=lPC(aPt(K.JSC$10614_encoderRegistry,P.version),P.data,P.key);return _.Y(u,J,2)}return u.return({key:H,entityType:f,data:u.yieldResult})})})))})};
zS.prototype.handleMessage=function(K){CsC(this,K.data)};
var CsC=function(K,X){K=_.D(K.observers);for(var F=K.next();!F.done;F=K.next())F=F.value,F(X)};
zS.prototype.disposeInternal=function(){this.channel.close()};
var p0n;var pp,i3N,keT,ow9;pp={};_.NAC=(pp.mainVideoEntity="mainVideoEntityActionMetadata",pp.mainPlaylistEntity="mainPlaylistEntityActionMetadata",pp.musicTrack="musicTrackEntityActionMetadata",pp.musicPlaylist="musicPlaylistEntityActionMetadata",pp);i3N=new _.Oh("DOWNLOADS_ENTITY_TYPE_MAP");keT=_.XF("","downloadsPageViewConfigurationEntity");ow9=_.XF("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.FQn=_.XF("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.XF("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.XF("SMART_DOWNLOADS_ENABLED","settingEntity");_.XF("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var f_T=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var QyP=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var OTn={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var Bh,tgP,lHL,oeO;Bh=window;_.Wv=Bh.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.I6y=Bh.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.mX;tgP=Bh.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||My;lHL=Bh.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||GSZ;_.xlT=Bh.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.KXN;oeO=Bh.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||PjU;Uz({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 Xh4=$2M(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(K){return K}}}),aC9=$2M(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(K){return K}}}),E2P=new Map;var PmP=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],x2l;var IPC=function(K){return _.iY({type:"SET_EPHEMERAL_ACTION",payload:K})};var kKu={ephemeralAction:null};var KEL={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var AWP={sharedUi:function(K,X){K=K===void 0?KEL:K;switch(X.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},K,{animatedThumbnailEnabled:X.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},K,{inlinePreviewEnabled:X.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},K,{currentPageType:X.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},K,{currentPageSubType:X.payload});default:return K}},
a11y:zY({ephemeralAction:function(K,X){K=K===void 0?kKu.ephemeralAction:K;switch(X.type){case "SET_EPHEMERAL_ACTION":return X.payload;default:return K}}})};var phO=zY({isLeaderTab:function(K,X){K=K===void 0?!0:K;switch(X.type){case "SET_IS_LEADER_TAB":var F,P;return(P=X==null?void 0:(F=X.payload)==null?void 0:F.isLeaderTab)!=null?P:K;default:return K}}});var XCt=function(K){return _.iY({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:K}})};var rW4=zY({isDesktopSmallWidth:function(K,X){switch(X.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return X.payload.isDesktopSmallWidth;default:return K===void 0?!1:K}},
isShortsActive:function(K,X){switch(X.type){case "SET_IS_SHORTS_ACTIVE":return X.payload.isShortsActive;default:return K===void 0?!1:K}},
isWatchWhileMode:function(K,X){switch(X.type){case "SET_IS_WATCH_WHILE_MODE":return X.payload.isWatchWhileMode;default:return K===void 0?!1:K}},
playerState:function(K,X){switch(X.type){case "SET_PLAYER_STATE":return X.payload.playerState;default:return K===void 0?-1:K}},
isFullscreen:function(K,X){switch(X.type){case "SET_IS_FULLSCREEN":return X.payload.isFullscreen;default:return K===void 0?!1:K}},
isSmallScreenSqueezeback:function(K,X){switch(X.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return X.payload.isSmallScreenSqueezeback;default:return K===void 0?!1:K}},
isShortsPipActive:function(K,X){switch(X.type){case "SET_IS_SHORTS_PIP_ACTIVE":return X.payload.isShortsPipActive;default:return K===void 0?!1:K}},
isPlaybackStarted:function(K,X){switch(X.type){case "SET_IS_PLAYBACK_STARTED":return X.payload.isPlaybackStarted;default:return K===void 0?!1:K}}});var uTM={playlistId:"",inviteLinkURL:""};var FEN={};var cW9=zY({continuationCommand:function(K,X){K=K===void 0?FEN:K;switch(X.type){case "SET_CONTINUATION_COMMAND":return X.payload.continuationCommand;default:return K}}});var whP=function(){return function(K){return function(X){var F=K(X);_.xr(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[X],!0);return F}}};var PdN,j1M;PdN=new _.K$;_.bC=new _.Oh("WATCH_PLAYER_PROMISE_TOKEN");_.HAW=new _.K$;_.sWE=new _.Oh("SHORTS_PLAYER_PROMISE_TOKEN");j1M=new _.Oh("");var yWy=function(){return function(K){return function(X){X.type==="ENTITY_LOADED"&&_.i9().resolve(_.bC).then(function(F){var P;(P=F.dispatchReduxAction)==null||P.call(F,X)});
return K(X)}}};var JWq={currentFormId:"",commandsMap:{}};var zkU={};var BzM=zY({additionalContext:function(K,X){switch(X.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var F;return(F=X.payload)!=null?F:"";default:return K===void 0?"":K}},
impersonatedChannelUrl:function(K,X){switch(X.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var F;return(F=X.payload)!=null?F:"";default:return K===void 0?"":K}},
selectedVideoIds:function(K,X){K=K===void 0?zkU:K;switch(X.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var F={};return Object.assign({},K,(F[X.payload]=!0,F));case "VIDEO_UNSELECTED":return X=X.payload,K=Object.assign({},K),delete K[X],K;default:return K}}});var SL9=zY({parentClickTrackingParams:function(K,X){switch(X.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return X.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return K===void 0?"":K}}});var fDZ=function(K){return _.iY({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:K})};var Dhu={};var oll=zY({stepStates:function(K,X){K=K===void 0?Dhu:K;switch(X.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var F=K,P=X.payload,H,f,u;K={};X={selectionStates:Object.assign({},(u=(H=F[P.stepId])==null?void 0:H.selectionStates)!=null?u:{},(K[P.token]={isSelected:P.isSelected},K)),userQuery:(f=F[P.stepId])==null?void 0:f.userQuery};H={};return Object.assign({},F,(H[P.stepId]=X,H));case "TALK_TO_RECS_UPDATE_USER_QUERY":return H=K,f=X.payload,u={selectionStates:Object.assign({},
(P=(F=H[f.stepId])==null?void 0:F.selectionStates)!=null?P:{}),userQuery:{userQuery:f.userQuery,token:f.userQueryToken}},F={},Object.assign({},H,(F[f.stepId]=u,F));default:return K}}});var uaU,q6u,ZAL;uaU=function(K){return _.iY({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:K})};
q6u=function(K){return _.iY({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:K})};
_.SN=function(K){return _.iY({type:"SET_CURRENT_PAGE_TYPE",payload:K})};
_.JjC=function(K){return _.iY({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:K})};
ZAL=function(K){return _.iY({type:"SET_CHIP_BAR_IS_STICKY",payload:K})};var YL9={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"};_.Y6C=function(K){return _.iY({type:"SET_PLAYER_STATE",payload:{playerState:K}})};var QWT=[],MnL={width:0,height:0};var LfT=zY({isTheaterMode:function(K,X){K=K===void 0?_.S("kevlar_disable_theater_mode_persistence")?!1:_.RU("START_IN_THEATER_MODE"):K;switch(X.type){case "SET_IS_THEATER_MODE":return X.payload.isTheaterMode;default:return K}},
isWatchActive:function(K,X){switch(X.type){case "SET_IS_WATCH_ACTIVE":return X.payload.isWatchActive;default:return K===void 0?!1:K}},
isLearningJourneyActive:function(K,X){switch(X.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return X.payload.isLearningJourneyActive;default:return K===void 0?!1:K}},
isWatchFullscreen:function(K,X){switch(X.type){case "SET_IS_WATCH_FULLSCREEN":return X.payload.isWatchFullscreen;default:return K===void 0?!1:K}},
isWatchNarrowWidth:function(K,X){switch(X.type){case "SET_IS_WATCH_NARROW_WIDTH":return X.payload.isWatchNarrowWidth;default:return K===void 0?!1:K}},
isWatchRetroMode:function(K,X){switch(X.type){case "SET_IS_WATCH_RETRO_MODE":return X.payload.isWatchRetroMode;default:return K===void 0?!1:K}},
isLiveChatCollapsed:function(K,X){switch(X.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return X.payload.isLiveChatCollapsed;default:return K===void 0?!1:K}},
openEngagementPanels:function(K,X){K=K===void 0?QWT:K;var F=[].concat(_.LZ(K));switch(X.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return F.push(X.payload.panelToAdd),F;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return F.splice(F.indexOf(X.payload.panelToRemove),1),F;default:return K}},
playerState:function(K,X){switch(X.type){case "SET_PLAYER_STATE":return X.payload.playerState;default:return K===void 0?-1:K}},
watchScrollTop:function(K,X){switch(X.type){case "SET_WATCH_SCROLL_TOP":return X.payload.watchScrollTop;default:return K===void 0?0:K}},
watchWindowSize:function(K,X){K=K===void 0?MnL:K;switch(X.type){case "SET_WATCH_WINDOW_SIZE":return X.payload.watchWindowSize;default:return K}}});var nWC={feedbackTokens:[]};var Tzw=zY({surveyFeedbackData:function(K,X){K=K===void 0?nWC:K;switch(X.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return X.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},K,X.payload);default:return K}}});var M7O={};var dAP=void 0;_.S("web_enable_redux_store_on_demand")||(dAP=Wf4());var cju=function(K,X,F){var P=this;this.listId=K;this.JSC$10748_updateCallback=X;this.isOfflineVideoCallback=F;_.aA().subscribe(function(){P.handleUpdate()})};
cju.prototype.getPlaylistData=function(){var K=_.aA().getState().entities;if(this.listId&&this.listId!=="PPSV"){var X=erl(K,this.listId,!0),F=_.XF(this.listId,"mainPlaylistEntity"),P,H;K=K==null?void 0:(P=K.mainPlaylistEntity)==null?void 0:(H=P[F])==null?void 0:H.title;return e6q(X,K,this.listId)}X=_.MLn(znO(K));K=_.MLn(_.cv(K));return e6q(X.concat(K))};
cju.prototype.getPlaylistId=function(){return this.listId};
cju.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10748_updateCallback(this.listId,this.getPlaylistData(),{})};var S7=function(K,X,F,P){P=P===void 0?[]:P;this.JSC$10751_playlistNetworkManager=K;this.listId=X;this.JSC$10751_updateCallback=F;this.videoIds=P;this.pendingUpdates=[];this.currentIndex=0};
S7.prototype.JSC$10751_setCurrentIndex=function(K){this.currentIndex=K};
S7.prototype.setListId=function(K){this.listId=K};
var pCE=function(K,X){K.currentCreateRequest&&K.currentCreateRequest.cancel(X);K.currentUpdateRequest&&K.currentUpdateRequest.cancel(X);K.currentRefreshRequest&&K.currentRefreshRequest.cancel(X)};
S7.prototype.delete=function(){pCE(this,"PROXY DELETED")};
S7.prototype.addVideos=function(K,X,F){var P=this;F!==void 0?this.videoIds.splice.apply(this.videoIds,[F,0].concat(_.LZ(K))):this.videoIds.push.apply(this.videoIds,_.LZ(K));this.listId||this.currentCreateRequest?(K.forEach(function(H,f){H={addedVideoId:H,action:"ACTION_ADD_VIDEO"};F&&(H.addedVideoPosition=F+f);P.pendingUpdates.push(H)}),oE(this)):BKC(this,X.onCreateListCommand)};
var S6U=function(K,X,F,P,H){Twq(K.videoIds,X,F);X>K.currentIndex&&F<=K.currentIndex?K.JSC$10751_setCurrentIndex(K.currentIndex+1):X===K.currentIndex?K.JSC$10751_setCurrentIndex(F):X<K.currentIndex&&F>=K.currentIndex&&K.JSC$10751_setCurrentIndex(K.currentIndex-1);K.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:P,movedSetVideoIdPredecessor:H});oE(K)},BKC=function(K,X){pCE(K,"OBSOLETE");
K.currentCreateRequest=oWC(K.JSC$10751_playlistNetworkManager,X,K.videoIds);_.Yv(K.currentCreateRequest,function(){K.currentCreateRequest=void 0}).then(function(F){K.setListId(F.playlistId);
K.pendingUpdates.length>0?oE(K):LEL(K)})},oE=function(K){if(K.pendingUpdates.length!==0&&(K.currentRefreshRequest&&K.currentRefreshRequest.cancel("OBSOLETE"),!K.currentUpdateRequest&&!K.currentCreateRequest)){var X=K.pendingUpdates.splice(0,K.pendingUpdates.length);
K.currentUpdateRequest=K.JSC$10751_playlistNetworkManager.updatePlaylist(K.listId,X);_.Yv(K.currentUpdateRequest,function(){K.currentUpdateRequest=void 0}).then(function(){K.pendingUpdates.length>0?oE(K):LEL(K)}).thenCatch(function(){K.pendingUpdates.unshift.apply(K.pendingUpdates,_.LZ(X))})}},LEL=function(K){K.currentRefreshRequest=_.TKZ(K.JSC$10751_playlistNetworkManager,K.listId,K.currentIndex,K.videoIds[K.currentIndex]);
_.Yv(K.currentRefreshRequest,function(){K.currentRefreshRequest=void 0}).then(function(X){K.JSC$10751_updateCallback(X.playlistId,X.playlistPanelRenderer,X.autoplayRenderer)})};
S7.prototype.size=function(){return this.videoIds.length};var rjO=function(K,X,F,P){P=P===void 0?[]:P;S7.call(this,K,X,F,P);this.JSC$10751_playlistNetworkManager=K;this.listId=X;this.JSC$10751_updateCallback=F;this.videoIds=P};
_.r(rjO,S7);_.Lp=function(K,X,F,P,H,f,u){H=H===void 0?[]:H;u=u===void 0?bt:u;S7.call(this,K,X,F,H);this.JSC$10751_playlistNetworkManager=K;this.listId=X;this.JSC$10751_updateCallback=F;this.onAuthChange=P;this.videoIds=H;this.storage=f;this.cookieReader=u;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.xO(_.A9,this.checkLoggedInStatusChange.bind(this),1E3)};
_.r(_.Lp,S7);_.z=_.Lp.prototype;_.z.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.xO(_.A9,this.checkLoggedInStatusChange.bind(this),1E3)};
_.z.JSC$10751_setCurrentIndex=function(K){S7.prototype.JSC$10751_setCurrentIndex.call(this,K);this.store()};
_.z.delete=function(){_.A9.cancelJob(this.queueSapisIdJob);S7.prototype.delete.call(this)};
_.z.setListId=function(K){S7.prototype.setListId.call(this,K);this.store()};
_.z.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var AjT=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],jWt=["playerResponse","videoDetails"],wCt=["response","currentVideoEndpoint","watchEndpoint","videoId"],yjO=["response","currentVideoEndpoint","watchEndpoint","playlistId"],WEV=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],dhN=["response","contents","twoColumnWatchNextResults","playlist","playlist"],ekW=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
RkN=["response","contents","twoColumnWatchNextResults"];var TC={},GCd=(TC.WEB_UNPLUGGED="^unplugged/",TC.WEB_UNPLUGGED_ONBOARDING="^unplugged/",TC.WEB_UNPLUGGED_OPS="^unplugged/",TC.WEB_UNPLUGGED_PUBLIC="^unplugged/",TC.WEB_CREATOR="^creator/",TC.WEB_KIDS="^kids/",TC.WEB_EXPERIMENTS="^experiments/",TC.WEB_MUSIC="^music/",TC.WEB_REMIX="^music/",TC.WEB_MUSIC_EMBEDDED_PLAYER="^music/",TC.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",TC);var BAP,oWC;BAP=function(K,X){this.networkManager=K;this.innertubeTransportService=X};
oWC=function(K,X,F){if(!_.T(X,_.WH))return _.pB(Error("Af"));_.T(X,_.WH).videoIds=F;F={create_playlist_title:_.uY("QUEUE",void 0,"Queue")};return h6T(_.Rx(K.innertubeTransportService,X,F),R6T)};
_.TKZ=function(K,X,F,P){X={videoId:P,playlistId:X,playlistIndex:F};F=_.t7(UTZ);return h6T(_.rz(K.innertubeTransportService,X,F),mA4)};
BAP.prototype.updatePlaylist=function(K,X){return h6T(_.Rx(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:K,actions:X}}),UAP)};var UhO=function(K){this.storage=K},hkC;
UhO.prototype.store=function(K,X){X=X===void 0?0:X;if(this.storage&&K.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",K),this.storage.set("TLPQindex",String(X)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(F){}};
UhO.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
UhO.prototype.getPlaylistId=function(){if(!this.storage)return null;var K=null;try{K=this.storage.get("TLPQplaylist")}catch(X){}return K};var t74=["navigationEndpoint","watchEndpoint","videoId"],agd=["nextButtonVideo","watchEndpoint","videoId"];_.oj=new _.Oh("NETWORK_TOKEN");_.ax=new _.Oh("PAGE_TOKEN");_.AW=new _.Oh("PLAYLIST_TOKEN");var mhZ;mhZ=new _.Oh("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.L$=new _.Oh("INNERTUBE_TRANSPORT_TOKEN");var G_L,j7,vWQ,aDU,$hL,OAO;G_L=new Set(["ci","cr","carml"]);j7=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10798_parkedJobs=new Map;this.parkedProcessors=new Map};
_.wz=function(){j7.instance||(j7.instance=new j7);return j7.instance};
j7.prototype.onAny=function(K){return _.lDu(this,K,2)};
j7.prototype.parkOrScheduleJob=function(K,X,F,P,H){_.yZ(this,F)?_.Bj().addJob(K,X,P):(H&&(K=vWQ(K),aDU(this,K,X,F,H)),H=this.JSC$10798_parkedJobs.get(F),H||(this.JSC$10798_parkedJobs.set(F,[]),H=this.JSC$10798_parkedJobs.get(F)),H.push({job:K,priority:X,delay:P}))};
j7.prototype.addListener=function(K,X,F){F&&(X=vWQ(X),aDU(this,X,0,K,F));F=this.parkedProcessors.get(K);F||(this.parkedProcessors.set(K,[]),F=this.parkedProcessors.get(K));F.push(X)};
j7.prototype.processSignal=function(K){if(!_.yZ(this,K)){this.inProgressSignals.add(K);var X=this.JSC$10798_parkedJobs.get(K);if(X){X=_.D(X);for(var F=X.next();!F.done;F=X.next())F=F.value,_.Bj().addJob(F.job,F.priority,F.delay);this.JSC$10798_parkedJobs.delete(K)}if(X=this.parkedProcessors.get(K)){X=_.D(X);for(F=X.next();!F.done;F=X.next())F=F.value,F();this.parkedProcessors.delete(K)}this.signals.push(K);this.inProgressSignals.delete(K)}};
_.yZ=function(K,X){return G_L.has(X)||_.RU("IS_HOMEPAGE_COLD")||_.RU("IS_RESULTS_PAGE_COLD")||_.RU("IS_WATCH_PAGE_COLD")?K.signals.indexOf(X)>=0:!0};
vWQ=function(K){var X=!1;return function(){X||(X=!0,K())}};
aDU=function(K,X,F,P,H){if(tnL.has(P))_.Bj().addJob(X,F,H);else{var f=K.compoundSignals.get(P);f&&_.Bj().addJob(function(){_.yZ(K,P)||(f.isTimeoutConditionSatisfied?_.Bj().addJob(X,F):f.timeoutConditionObservers.push(function(){_.Bj().addJob(X,F)}))},F,H)}};
_.lDu=function(K,X,F){if(X.length>1){var P=[],H=Object.create(null);X=_.D(X);for(var f=X.next();!f.done;f=X.next())f=f.value,H[f]||(P.push(f),H[f]=!0);X=P}if(X.length===1)return X[0];f=X;P="";H=F===2?"|":"&";f.sort();f=_.D(f);for(var u=f.next();!u.done;u=f.next())P+=u.value+H;if(!K.compoundSignals.get(P)){H=0;f=[];u=_.D(X);for(var J=u.next();!J.done;J=u.next())J=J.value,H++,_.yZ(K,J)||f.push(J);(F=F===2)&&H>f.length||!F&&!f.length?K.signals.push(P):$hL(K,P,F,X,f)}return P};
$hL=function(K,X,F,P,H){var f=H.length,u=function(){F||--f===0?K.processSignal(X):OAO(K,X)};
H=_.D(H);for(var J=H.next();!J.done;J=H.next())K.addListener(J.value,u);K.compoundSignals.set(X,{signals:P,isOnAny:F,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});OAO(K,X)};
OAO=function(K,X){if(!_.yZ(K,X)){var F=K.compoundSignals.get(X);if(F&&!F.isTimeoutConditionSatisfied){for(var P=!1,H=0,f=0,u=_.D(F.signals),J=u.next();!J.done;J=u.next()){var Z=J.value;J=!_.yZ(K,Z);tnL.has(Z)?P=!0:(Z=K.compoundSignals.get(Z))?J&&!Z.isTimeoutConditionSatisfied&&(f++,F.isInitialized||Z.timeoutConditionObservers.push(function(){OAO(K,X)})):J&&H++}F.isInitialized=!0;
F.isOnAny?P&&(F.isTimeoutConditionSatisfied=!0):H===0&&f===0&&(F.isTimeoutConditionSatisfied=!0);if(F.isTimeoutConditionSatisfied)for(F=_.D(F.timeoutConditionObservers),P=F.next();!P.done;P=F.next())P=P.value,P()}}};
j7.prototype.processSignal=j7.prototype.processSignal;j7.prototype.parkOrScheduleJob=j7.prototype.parkOrScheduleJob;j7.prototype.onAny=j7.prototype.onAny;_.gS("ytsignals.getInstance",_.wz);j7.prototype.onAny=j7.prototype.onAny;j7.prototype.parkOrScheduleJob=j7.prototype.parkOrScheduleJob;j7.prototype.processSignal=j7.prototype.processSignal;var tnL=new Set(["eop","eocs","dl","pcl"]);_.Wj=new _.Oh("MINIPLAYER_SERVICE");var Wh,VnV,gWW;Wh=function(K,X,F){var P=_.GT.getInstance();if(!hkC){var H=new B_3;var f=void 0,u=_.e8("ID_TOKEN");u&&H.isAvailable()&&(f=new Sp(H,"yt-queue"+u));hkC=new UhO(f)}H=hkC;f=_.wz();this.JSC$10805_actionRouter=P;this.pageManager=K;this.playlistManager=X;this.JSC$10805_playlistNetworkManager=F;this.storage=H;this.signals=f;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.dz=function(){if(!VnV){var K=_.i9(),X=K.resolve(_.Nu(_.ax)),F=K.resolve(_.Nu(_.oj)),P=K.resolve(_.Nu(_.AW));K=K.resolve(_.L$);VnV=new Wh(X,P,new BAP(F,K))}return VnV};
gWW=function(K,X,F){if(F){var P;if(((P=K.responsePlaylistData)==null?void 0:P.playlistId)!==F)return}K.responsePlaylistData&&(F=bpy(X,K.responsePlaylistData),K.responsePlaylistData=(0,_.T8.unsafeClone)(K.responsePlaylistData),Nzw(K.responsePlaylistData,F));F=K.temporaryItems.findIndex(function(H){return H.videoId===X});
F>-1&&K.temporaryItems.splice(F,1);_.e7(K,_.RE(K,K.response?K.response.autoplayRenderer:void 0))};
_.EWN=function(K,X){if(K.responsePlaylistData){var F=Cmq(X,K.responsePlaylistData);Nzw(K.responsePlaylistData,F);if(K.queueProxy){var P=K.queueProxy;F<0||(P.videoIds.splice(F,1),F<P.currentIndex&&P.JSC$10751_setCurrentIndex(P.currentIndex-1),P.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:X}),oE(P))}}_.e7(K,_.RE(K,K.response?K.response.autoplayRenderer:void 0))};
Wh.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.e7(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
Wh.prototype.setPlaylistData=function(K,X,F){this.temporaryItems=[];this.listId=K;this.responsePlaylistData=X;_.e7(this,_.RE(this,F))};
var bAC=function(K){return(K==null?0:K.playlistId)?K.playlistId:"PPSV"},CdO=function(K){return K&&K.playlistId?K.playlistId==="PPSV"?!0:W2l(_.aA().getState().entities,K.playlistId):!1};
Wh.prototype.isPlayingOfflineVideo=function(){return this.response?CdO(this.response):!1};
Wh.prototype.closeMiniplayer=function(K){var X=this.queueProxy&&this.queueProxy.size()<=1,F=_.i9().resolve(_.Wj);if(!this.queueProxy||X)this.queueProxy&&this.clearQueue(),F.close(!0);else{F.pipController.getWindow()&&window.focus();X=this.responsePlaylistData;var P=this.temporaryItems.length+(X&&X.contents?X.contents.length:0);X=_.uY("QUEUE_CLEARED_UNPLURALIZED")||_.qm("QUEUE_CLEARED",P);X=_.Oz(X);F=_.uY("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");P=_.uY("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.qm("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",P);var H=_.uY("MINIPLAYER_CLOSE",void 0,"Close"),f=_.uY("CANCEL",void 0,"Cancel");_.TO(this.JSC$10805_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.GS(F),dialogMessages:[_.GS(P)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.GS(H),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
X]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.GS(f)}}}}}}],K)}};
_.RE=function(K,X){var F={},P=K.response;F.autoplayRenderer=X;if(!K.responsePlaylistData&&!K.temporaryItems.length)return!P||!P.hasRelatedVideoData&&_.S("kevlar_prefetch_data_augments_network_data")||(F.playerData={rvs:P.relatedVideoArgs,endScreenRenderer:P.endScreenRenderer}),F;F.playerData={};if(K.index===void 0)return _.jF(Error("Cf")),F;F.panel=K.responsePlaylistData?(0,_.T8.unsafeClone)(K.responsePlaylistData):{titleText:_.GS(_.uY("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
X=F.panel;if(X.contents)for(var H=_.D(K.temporaryItems),f=H.next();!f.done;f=H.next())X.contents.push({playlistPanelVideoRenderer:f.value});K.queueProxy&&P&&P.playingVideo&&P.playingVideoId&&!ElM(P.playingVideoId,F.panel)&&(X=P.playingVideo,H=F.panel,f=K.index,H.contents&&H.contents.splice(f===void 0?0:f,0,{playlistPanelVideoRenderer:X}));P&&P.playingVideoId&&(X=K.index,H=F.panel,X=!H.contents||X>=H.contents.length?void 0:H.contents[X].playlistPanelVideoRenderer,X&&X.videoId===P.playingVideoId||(X=
bpy(P.playingVideoId,F.panel),K.index=X!==-1?X:K.index?K.index-1:0));X=glP(K.index+1,F.panel);H=void 0;K.index>0&&(H=glP(K.index-1,F.panel));if(H||X)F.autoplayRenderer=$AO(X,H,F.autoplayRenderer);!X&&(P==null?0:P.relatedVideoArgs)&&(F.playerData.rvs=P.relatedVideoArgs);P=P?P.playlistIndexOffset:0;K.queueProxy?Igl(F.panel,K.index,P,V74,!0,!0,!0):Igl(F.panel,K.index,P);F.playerData.playlistPanelRenderer=F.panel;return F};
Wh.prototype.openToast=function(K){_.i9().resolve(_.Wj).openToast(K,_.uY("ADDED_TO_QUEUE",void 0,"Added to queue"))};
Wh.prototype.isMiniplayerActive=function(){return _.i9().resolve(_.Wj).isMiniplayerActive()};
_.e7=function(K,X){K.playlistManager.setAutoplayRenderer(X.autoplayRenderer||null);K.playlistManager.setPlaylistData(X.panel||null);X.playerData&&K.playlistManager.setPlayerPlaybackControlData(X.playerData)};var Ki9="#";var NKu={},iAZ={},xhE={},IDL={},k_t={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:(NKu.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",NKu),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:(iAZ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",iAZ),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:(xhE.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",xhE),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:(IDL.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",IDL),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 mT3=[{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:k_t},{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:k_t}}];var Aky;_.kx=[[["aDNraW5kI20xcXpubjZ6ZWM=","bHZhbHVlIzJjd3BkOTh0aDNu"],"X1NUQVJUI3VqNDR5cXA0OWplekFEX1BMQUNFTUVOVF9LSU5E"]];
Aky=[[["cmltYXJ5I2VkN3k1YjY3OWdrOXA=",null,null],[null,["bmRlcmVyI3dkc3VpYWJtbWpsdXl0ZC10d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJl","LXNjb3BlIzlobXhiaTZidzU3eXN0eWxl"],null],["aGVhZC1hZCNrdjhocDZlYmloZG1hc3Q=",["bmRlcmVyI2NsY25ma2x4ZzduaXl0ZC1yaWNoLWdyaWQtcmU="],null],[null,["bmRlcmVyIzM4M2VnemViaW41bXl0ZC1yaWNoLWdyaWQtcmU=","LXNjb3BlIzJubDRmbjJvczMwMXN0eWxl"],null],[null,["bmRlcmVyI2FhcW9iZWwzZjZoanl0ZC1iYW5uZXItcHJvbW8tcmU=","LXNjb3BlI2Q5eWJtbGt0Z3J1dnN0eWxl"],null],[null,["bmRlcmVyIzd4eGZzMDYxMHdyOHl0ZC1hZC1zbG90LXJl"],
null]],[["ZXItYWRzI3VmdGZ1dTR1cno4cXBsYXk=",null,null]]];_.IA=["bGJhY2tzI2k1NWU5dHRqbjZrdWdsb2JhbENhbA==","dGVjdGVkI2J5bm1qNDN2anM1aW9uQWJub3JtYWxpdHlEZQ==","QWRTa2lwIzU3dm1wazF1dTYwZ29u","c3BvbnNlI3Z2eWtueG84YjBrYnJhd19wbGF5ZXJfcmU=","ZFNsb3RzI3Z0Z2Q3aHN5OG5xd2E="];_.UL="bGJhY2tzI2k1NWU5dHRqbjZrdWdsb2JhbENhbA== dGVjdGVkI2J5bm1qNDN2anM1aW9uQWJub3JtYWxpdHlEZQ== QWRTa2lwIzU3dm1wazF1dTYwZ29u c3BvbnNlI3Z2eWtueG84YjBrYnJhd19wbGF5ZXJfcmU= aXBzX2tzIzZ6YTZqdHpkYjNjdndlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9zaw== X3NhX2VmIzdrNjNvcXV0amF2ZmFi ZFNsb3RzI3Z0Z2Q3aHN5OG5xd2E=".split(" ");var hW;hW=function(K,X,F){this.wEX=K;this.isAsync=X;this.em6=F};
_.CZP=[new hW("b.f_",!1,0),new hW("j.s_",!1,2),new hW("r.s_",!1,4),new hW("e.h_",!1,6),new hW("i.s_",!0,8),new hW("s.t_",!1,10),new hW("p.h_",!1,12),new hW("s.i_",!1,14),new hW("f.i_",!1,16),new hW("a.b_",!1,18),new hW("a.o_",!1),new hW("g.o_",!1,22),new hW("p.i_",!1,24),new hW("p.m_",!1),new hW("n.k_",!0,20),new hW("i.f_",!1),new hW("a.s_",!0),new hW("m.c_",!1),new hW("n.h_",!1,26),new hW("o.p_",!1),new hW("m.p_",!0,28),new hW("o.a_",!1),new hW("d.p_",!1),new hW("e.i_",!1)].reduce(function(K,X){K[X.wEX]=
X;return K},{});var KYu=function(){};
KYu.prototype.flush=function(K,X){K=K===void 0?[]:K;X=X===void 0?!1:X;if(_.S("enable_client_streamz_web")){K=_.D(K);for(var F=K.next();!F.done;F=K.next())F=u8E(F.value),this.rootSpec&&_.Fw(F,2,this.rootSpec),F={serializedIncrementBatch:_.iW(F.JSC$7618_serializeBinary())},_.LL("streamzIncremented",F,{sendIsolatedPayload:X})}};
var HE9=function(){};
_.r(HE9,KYu);var XRt=function(K){var X=new Fvu;var F=new kEt;F=_.Qf(F,1,"botguard");K=_.Qf(F,2,K);this.rootSpec=_.P$(X,1,PWQ,K)};
_.r(XRt,KYu);var Na,FYC=new Map;var Wiy,zAd,MEl,uEl,ZEl,Tkl,eAy,oud;Wiy=2;zAd=2;MEl=2;uEl=2;ZEl=2;Tkl=2;eAy=2;oud=new zQt;var Hfu,sXZ,zvC;Hfu=function(){this.ongoingFlowNonces=new Map};
_.PI=function(){sXZ||(sXZ=new Hfu);return sXZ};
_.XN=function(K,X,F){return{eventType:{flowEventNamespace:K,flowEventType:X},metadata:F,statusCode:void 0,csn:void 0,can:void 0}};
_.iE3=function(K,X){var F=_.PI(),P=zvC(F,X,!0);_.FN(F,K,X,P)};
_.FN=function(K,X,F,P){K={flowNonce:P||zvC(K,F),flowType:F,flowEventType:X.eventType};X.metadata&&(K.flowMetadata=X.metadata);X.statusCode!==void 0&&(K.flowEventStatus=X.statusCode);X.csn&&(K.csn=X.csn);X.can&&(K.can=X.can);_.LL("flowEvent",K,void 0)};
zvC=function(K,X,F){F=F===void 0?!1:F;var P=K.ongoingFlowNonces.get(X);if(!P||F)P=Ly(16),K.ongoingFlowNonces.set(X,P);return P};_.fYL=new swV;var Kdd={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_JOURNEY_WATCH:"learning_journey_watch"};var mf=function(K,X,F,P,H,f,u){F=F===void 0?!1:F;P=P===void 0?!1:P;f=f===void 0?_.dz():f;this.hasRun=!1;this.eEA=K;this.bzT=X;this.rxG=F;this.fromHistory=P;this.previousVideoId=H;this.lAT=f;this.tempData=u;this.yxe=new _.f4C};
_.r(mf,OH);mf.prototype.validate=function(K){return!(!K.data.playerResponse||K.data.page!=="watch"&&K.data.page!=="learning_journey_watch"&&K.data.page!=="shorts"||this.hasRun)};
mf.prototype.handle=function(K){var X=this,F=_.T(K.endpoint,_.vg),P=_.T(K.endpoint,_.J6);if(_.S("kevlar_continue_playback_without_player_response")&&(F==null?0:F.videoId)&&this.previousVideoId&&(F==null?void 0:F.videoId)===this.previousVideoId&&(F==null?0:F.continuePlayback)&&!this.fromHistory)this.eEA.resolve();else{var H={};F?H.watch_endpoint=F:P&&(H.watch_endpoint=P,P.endTimeSeconds&&(H.end=P.endTimeSeconds));K.data.page==="watch"?(K.data.filler||this.rxG||(_.jv("cfg"),_.GT.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(H,DSV(this,K.endpoint)),_.S("enable_masthead_quartile_ping_fix")&&Object.assign(H,uMN(this)),Object.assign(H,void 0),K.data.forceExternalPlaylist&&(H.external_list=!0)):K.data.page==="shorts"?_.GT.getInstance().triggerAction("yt-start-loading-shorts"):K.data.page==="learning_journey_watch"&&_.GT.getInstance().triggerAction("yt-start-loading-learning-journey");if(F=this.bzT()){try{F.loadVideoWithPlayerResponse(K.data.playerResponse,H),F.getPlayerPromise().then(this.eEA.resolve)}catch(f){_.jF(f),
this.eEA.resolve()}this.hasRun=!0;F.getPlayerPromise().then(function(f){f.addEventListener("onAbnormalityDetected",function(){var u=K.data.playerResponse,J=f.getVideoData().cpn;eAy=0;_.PqL=J;if(J=bEl(u))X.yxe.increment("IN_PLAYER"),_.HI(5),_.S("ab_st_vid_ks")?f.pauseVideo(!0):f.stopVideo(),u.playabilityStatus=Object.assign({},u.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:J}}),u.videoDetails=void 0,_.GT.getInstance().triggerOptionalAction("yt-updated-playability-status",
u.playabilityStatus)})})}else _.yy(Error("Ff"))}};
var DSV=function(K,X){var F=_.T(X,_.vg);if(X&&F&&F.playlistId&&F.videoId&&(K=K.lAT,K.queueProxy?(K=K.queueProxy,F=K.listId===F.playlistId?K.attributionData.get(F.videoId):void 0):F=void 0,F))return{queue_info:F}},uMN=function(K){var X;
if((X=K.tempData)==null?0:X.adpings)return{adpings:K.tempData.adpings}};var GC=function(K,X,F){this.hasRun=!1;this.hUz=K;this.cdy=X;this.pF2=F};
_.r(GC,OH);GC.prototype.validate=function(K){return!!_.T8.getValueByKeys.apply(null,[K.data].concat(_.LZ(RkN)))};
GC.prototype.handle=function(K){var X=this;this.hUz.promise.then(function(){var F=K.data;var P=_.T8.getValueByKeys.apply(null,[F].concat(_.LZ(AjT))),H=_.T8.getValueByKeys.apply(null,[F].concat(_.LZ(dhN))),f=_.T8.getValueByKeys.apply(null,[F].concat(_.LZ(wCt)));var u=(u=_.T8.getValueByKeys.apply(null,[F].concat(_.LZ(jWt))))?{videoId:u.videoId,thumbnail:u.thumbnail,title:u.title?_.GS(u.title):void 0,shortBylineText:u.author?_.GS(u.author):void 0}:void 0;var J=void 0;_.S("web_get_playlist_id_from_current_endpoint_ks")||
(J=_.T8.getValueByKeys.apply(null,[F].concat(_.LZ(yjO))));var Z=_.T8.getValueByKeys.apply(null,[F].concat(_.LZ(ekW))),M=_.T8.getValueByKeys.apply(null,[F].concat(_.LZ(WEV))),n=!!Z||!!M&&!!M.results&&M.results.length>0,c=0;H&&H.currentIndex&&H.localCurrentIndex&&(c=H.currentIndex-H.localCurrentIndex);H&&H.playlistId&&(J=H.playlistId);F={rawResponse:F,autoplayRenderer:P,hasRelatedVideoData:n,playingVideo:u,playingVideoId:f,playlistPanelRenderer:H,playlistId:J,playlistIndex:H&&H.currentIndex,relatedVideoArgs:Z,
endScreenRenderer:M,playlistIndexOffset:c};a:{P=X.pF2;H=X.cdy;P.response=F;if(CdO(F))P.downloadPlaylistProxy&&P.downloadPlaylistProxy.getPlaylistId()===bAC(F)||(P.downloadPlaylistProxy=new cju(bAC(F),P.setPlaylistData.bind(P),P.isPlayingOfflineVideo.bind(P))),P.responsePlaylistData=P.downloadPlaylistProxy.getPlaylistData(),P.listId=bAC(F),P.index=0;else if(F.playlistPanelRenderer&&F.playlistId&&F.autoplayRenderer)F.playlistId.startsWith("TLPQ")?P.queueProxy?P.listId===F.playlistId?(P.index=F.playlistIndex,
P.responsePlaylistData=F.playlistPanelRenderer,P.queueProxy.JSC$10751_setCurrentIndex(P.index)):F.playingVideoId&&P.index!==void 0&&H.clientParams.autoSaveToQueue&&(P.index+=1,P.queueProxy.JSC$10751_setCurrentIndex(P.index),P.queueProxy.addVideos([F.playingVideoId],{},P.index)):(P.queueProxy=new _.Lp(P.JSC$10805_playlistNetworkManager,F.playlistId,P.setPlaylistData.bind(P),P.clearQueue.bind(P),_.ipw(F.playlistPanelRenderer),P.storage),P.responsePlaylistData=F.playlistPanelRenderer,P.listId=F.playlistId,
P.index=F.playlistIndex):(P.index=F.playlistIndex,P.listId!==F.playlistId&&P.clearQueue(),P.responsePlaylistData=F.playlistPanelRenderer,P.listId=F.playlistId,P.playlistProxy=new rjO(P.JSC$10805_playlistNetworkManager,F.playlistId,P.setPlaylistData.bind(P),_.ipw(F.playlistPanelRenderer)));else if(!P.queueProxy)P.responsePlaylistData=void 0;else if(F.playingVideoId&&H.clientParams.autoSaveToQueue){if(P.index===void 0){_.jF(Error("Bf"));P.clearQueue();break a}P.queueProxy.videoIds.includes(F.playingVideoId)||
(P.index+=1,P.queueProxy.JSC$10751_setCurrentIndex(P.index),P.queueProxy.addVideos([F.playingVideoId],{},P.index))}_.e7(P,_.RE(P,P.response.autoplayRenderer))}})};var qIZ=function(K,X){X=X===void 0?_.dz():X;Hh.call(this);this.ik.push(new GC(this.aS,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},X));this.ik.push(new mf(this.aS,K,!1,!1));_.S("web_response_commands_chunk_processor")&&this.ik.push(new sL)};
_.r(qIZ,Hh);qIZ.prototype.processChunk=function(K){K&&K.data.player===void 0&&this.aS.resolve();Hh.prototype.processChunk.call(this,K)};var lm=function(K,X){K=K===void 0?{layer:0}:K;this.hasRun=!1;this.createScreenConfig=K;this.z8h=X};
_.r(lm,OH);lm.prototype.validate=function(K){return!(this.hasRun||!K.endpoint)};
lm.prototype.handle=function(K){var X=_.uH(),F,P,H=(P=_.T((F=K.endpoint)==null?void 0:F.commandMetadata,_.g_))==null?void 0:P.rootVe;this.z8h&&H?_.IZ(X,H,this.z8h,this.createScreenConfig):KdC(X,K.endpoint,this.createScreenConfig);this.hasRun=!0};var vh=function(K,X){this.hasRun=!1;this.eUj=K;this.previousVideoId=X};
_.r(vh,OH);vh.prototype.validate=function(K){return _.S("kevlar_continue_playback_without_player_response")&&(K=_.T(K.endpoint,_.vg),(K==null?0:K.videoId)&&this.previousVideoId&&(K==null?void 0:K.videoId)===this.previousVideoId&&(K==null?0:K.continuePlayback))?!1:this.eUj.twH===0};
vh.prototype.handle=function(K){_.GT.getInstance().triggerAction("yt-stop-old-player",K.data,!0)};var JlC=function(K){K=K===void 0?{layer:0}:K;Hh.call(this);this.ik.push(new vh(this));this.ik.push(new lm(K));this.ik.push(new Ph(K))};
_.r(JlC,Hh);var ZfZ=function(){this.hasRun=this.hasRun=!1};
_.r(ZfZ,OH);ZfZ.prototype.validate=function(K){return!this.hasRun&&!(!K.data.csn||!K.data.rootVe)};
ZfZ.prototype.handle=function(K){this.hasRun=!0;_.w_(K.data.csn,K.data.rootVe,3)};var YIQ=function(){OH.apply(this,arguments)};
_.r(YIQ,OH);YIQ.prototype.validate=function(K){return!!K.data.preconnect};
YIQ.prototype.handle=function(K){_.Ac("bc");K=_.D(K.data.preconnect);for(var X=K.next();!X.done;X=K.next())X=X.value,(new Image).src=X};var QXt=function(K,X,F){F=F===void 0?{layer:0}:F;Hh.call(this);this.ik.push(new mf(this.aS,K));this.ik.push(new lm(F));this.ik.push(new Ph(F))};
_.r(QXt,Hh);var M1E=function(K,X,F,P,H){F=F===void 0?{layer:0}:F;P=P===void 0?_.dz():P;Hh.call(this);var f=!!X&&!!X.clientParams&&!!X.clientParams.miniplayer;f&&this.ik.push(new ZfZ);this.ik.push(new GC(this.aS,X,P));this.ik.push(new YIQ);var u,J;this.ik.push(new mf(this.aS,K,f,!((u=X.clientParams)==null||!u.fromHistory),(J=X.clientParams)==null?void 0:J.previousVideoId,P,X.tempData));var Z;this.ik.push(new vh(this,(Z=X.clientParams)==null?void 0:Z.previousVideoId));var M;(M=X.clientParams)!=null&&M.fromHistory||
(F.layer||(F=Object.assign({},F,{layer:f?3:0})),this.ik.push(new lm(F,H)),this.ik.push(new Ph(F)));_.S("web_response_commands_chunk_processor")&&this.ik.push(new sL)};
_.r(M1E,Hh);var aE,pRW;aE={};
_.nzE=(aE["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},aE["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},aE["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},aE["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},aE["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},aE["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},aE["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},aE);_.tW=new _.dG("yt-edu");_.clO=function(){this.JSC$10906_eduDisplayedThisLoad_={}};
pRW=function(K){var X=_.clO.getInstance();var F=_.kU("kevlar_tooltip_impression_cap");X=F&&parseInt(_.tW.get(K+"-impression")||0,10)>=F||_.tW.get(K+"-dismissed")?!1:(F=_.nzE[K])&&!X.JSC$10906_eduDisplayedThisLoad_[F.setKey||K]&&(F.titleText&&_.uY(F.titleText)||F.bodyText&&_.uY(F.bodyText))?!0:!1;if(!X)return null;X=_.nzE[K];if(!X)return null;F=X.bodyText?_.uY(X.bodyText):void 0;var P=X.titleText?_.uY(X.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:X.position,popup:{bubbleHintRenderer:{text:P?
_.GS(P):void 0,detailsText:F?_.GS(F):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.GS(_.uY("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:K}}]}}}}}}}},{eduImpressionAction:{key:K}}]};
_.gH(_.clO);var xTw=!1;for(var BrL="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),SIN=[],$l=6;$l>=1;$l--)SIN.push({columnCount:$l,query:$l==1?0:$l*2*107-4+32,className:"grid-"+$l+"-columns",width:$l*2*107+"px"});_.LYC=function(K){this.actionRouter_=K=K===void 0?_.GT.getInstance():K;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.ozT(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.ozT=function(K){var X=K.miniGuideVisible_?72:0,F=K.documentWidth_-(K.guidePersistentAndVisible_?240:X);return SIN.find(function(P){return F>P.query})};
_.gH(_.LYC);var TrZ=function(){var K=this;this.JSC$10918_keyboardInUse=!1;document.addEventListener("keydown",function(){K.onKeydown()});
document.addEventListener("mousedown",function(){K.JSC$10918_keyboardInUse=!1})},rlC;
TrZ.prototype.isKeyBoardInUse=function(){return this.JSC$10918_keyboardInUse};
TrZ.prototype.onKeydown=function(){this.JSC$10918_keyboardInUse=!0};var AlN,gz;_.OL=new _.dG("yt-mentions");_.VZ=function(){};
AlN=function(K,X){return gz(X,"drag-to-reorder-edu-displayed")};
gz=function(K,X,F,P,H,f){F=F===void 0?"OPEN_POPUP_POSITION_TOP":F;if(X){if(_.OL.get(X))return;_.OL.set(X,!0,P)}if(H&&f!==void 0){X=Number(_.OL.get(H)||0);if(X>=f)return;_.OL.set(H,X+1)}return[{openPopupAction:{popupType:"HINT",position:F,popup:{bubbleHintRenderer:{detailsText:K,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.gH(_.VZ);var jXC,wRT,ylt;jXC=function(K,X,F,P){this.JSC$10928_taskManager_=K;this.onFulfilled_=typeof X==="function"?X:null;this.onRejected_=typeof F==="function"?F:null;this.JSC$10928_context_=P};
wRT=function(K,X){K.onFulfilled_&&_.u6(K.JSC$10928_taskManager_,function(){K.onFulfilled_.call(K.JSC$10928_context_,X)})};
ylt=function(K,X){K.onRejected_&&_.u6(K.JSC$10928_taskManager_,function(){K.onRejected_.call(K.JSC$10928_context_,X)})};
_.EL=function(K){this.JSC$10931_taskManager_=K;this.callbacks_=[]};
_.EL.prototype.then=function(K,X,F){this.callbacks_.push(new jXC(this.JSC$10931_taskManager_,K,X,F));return this};
_.EL.prototype.onSuccess=function(K){this.callbacks_.forEach(function(X){wRT(X,K)})};
_.EL.prototype.onFailure=function(K){this.callbacks_.forEach(function(X){ylt(X,K)})};
_.EL.prototype.cancel=function(){this.callbacks_.length=0};
YBV(_.EL);_.Fdy=null;_.BO=new _.Oh("ACTIVITY_TOKEN");var bm=function(K,X){this.serviceId=new ZJV(K,X)};
bm.prototype.toString=function(){return this.serviceId.toString()};var WYL=function(){this.internalMap={}};
_.z=WYL.prototype;_.z.contains=function(K){return Object.prototype.hasOwnProperty.call(this.internalMap,K)};
_.z.get=function(K){if(this.contains(K))return this.internalMap[K]};
_.z.set=function(K,X){this.internalMap[K]=X};
_.z.getKeys=function(){return Object.keys(this.internalMap)};
_.z.remove=function(K){delete this.internalMap[K]};var Cp=function(){this.mappings=new WYL;this.errorCallbacks=new Set};
Cp.prototype.getModuleId=function(K){return K.serviceId.getModuleId()};
Cp.prototype.get=function(K){var X=this.mappings.get(K.toString());return dSW(this,X,K)};
Cp.prototype.getMultipleAsync=function(){var K=_.Ls.apply(0,arguments),X=this,F=K.map(function(Z){return X.getModuleId(Z)}),P=K.map(function(Z){return X.mappings.get(Z.toString())}).filter(function(Z){return Z});
if(P.length===K.length)return _.F0(P.map(function(Z,M){return dSW(X,Z,K[M])}));
var H=yY().loadMultiple(F);P=_.ZG(F.map(function(Z){return H[Z]}));
var f=document.hidden,u=-1,J=_.kU("get_async_timeout_ms",-1);J>-1&&(u=setTimeout(function(){_.yy(new _.nG("Module timeout.",F,f,document.hidden))},J));
return _.Yv(P.then(function(){return K.map(function(Z){return dSW(X,X.mappings.get(Z.toString()),Z)})}).thenCatch(function(Z){for(var M=_.D(X.errorCallbacks),n=M.next();!n.done;n=M.next())n=n.value,n(Z);
throw Z;}),function(){clearTimeout(u)})};
Cp.prototype.registerService=function(K,X){this.mappings.set(K.toString(),{type:"mapping",value:X});return K};
var dSW=function(K,X,F){switch(X.type){case "mapping":return X.value;case "factory":return X=X.value(),K.mappings.set(F.toString(),{type:"mapping",value:X}),X;default:return _.zJ(X)}};
Cp.prototype.onLoadError=function(K){var X=this;this.errorCallbacks.add(K);return function(){X.errorCallbacks.delete(K)}};
_.NA=new Cp;var fPy=/^[a-zA-Z0-9_\-]{11}$/;var DlP=_.fb(function(){var K,X;return(X=(K=window).matchMedia)==null?void 0:X.call(K,"(prefers-reduced-motion: reduce)").matches});var evW=_.fb(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 K=_.mz("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");K||(K=_.nJ("VIDEO"),_.gS("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
K));return!!(K&&K.canPlayType&&K.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var Q9n=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var im;im=function(){this.tokenJars={};if(this.cookiesEnabled=_.YS()){var K=_.Jv.get("CONSISTENCY",void 0);K&&RvN(this,{encryptedTokenJarContents:K})}};
_.nqy=function(){im.instance||(im.instance=new im);return im.instance};
im.prototype.handleResponse=function(K,X){if(!X)throw Error("Lf");var F,P;X=((F=X.innerTubeRequest.context)==null?void 0:(P=F.request)==null?void 0:P.consistencyTokenJars)||[];var H;(K=(H=K.responseContext)==null?void 0:H.consistencyTokenJar)&&this.replace(X,K)};
im.prototype.replace=function(K,X){K=_.D(K);for(var F=K.next();!F.done;F=K.next())delete this.tokenJars[F.value.encryptedTokenJarContents];RvN(this,X)};
var RvN=function(K,X){if(X.encryptedTokenJarContents&&(K.tokenJars[X.encryptedTokenJarContents]=X,typeof X.expirationSeconds==="string")){var F=Number(X.expirationSeconds);setTimeout(function(){delete K.tokenJars[X.encryptedTokenJarContents]},F*1E3);
K.cookiesEnabled&&_.Zr("CONSISTENCY",X.encryptedTokenJarContents,F,void 0,!0)}};var USL,xl;USL=window.location.hostname.split(".").slice(-2).join(".");_.BI=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var K=_.e8("LOCATION_PLAYABILITY_TOKEN");_.e8("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=hvL(this))&&(K=this.localStorage.get("yt-location-playability-token"));K&&(this.locationPlayabilityToken=K,this.mostRecentPosition=void 0)};
_.BI.getInstance=function(){xl=_.mz("yt.clientLocationService.instance");xl||(xl=new _.BI,_.gS("yt.clientLocationService.instance",xl));return xl};
_.BI.prototype.setLocationOnInnerTubeContext=function(K){K.client||(K.client={});if(this.mostRecentPosition)K.client.locationInfo||(K.client.locationInfo={}),K.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),K.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),K.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),K.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)K.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.BI.prototype.handleResponse=function(K){var X;K=(X=K.responseContext)==null?void 0:X.locationPlayabilityToken;K!==void 0&&(this.locationPlayabilityToken=K,this.mostRecentPosition=void 0,_.e8("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=hvL(this))&&this.localStorage.set("yt-location-playability-token",K,15552E3):_.Zr("YT_CL",JSON.stringify({loctok:K}),15552E3,USL,!0))};
var hvL=function(K){return K.localStorage===void 0?new _.dG("yt-client-location"):K.localStorage};
_.BI.prototype.clearLocationPlayabilityToken=function(K){K==="TVHTML5"?(this.localStorage=hvL(this))&&this.localStorage.remove("yt-location-playability-token"):_.JDP("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.BI.prototype.getCurrentPositionFromGeolocation=function(){var K=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Mf"));var X=!1,F=1E4;_.e8("INNERTUBE_CLIENT_NAME")==="MWEB"&&(X=!0,F=15E3);return new Promise(function(P,H){navigator.geolocation.getCurrentPosition(function(f){K.mostRecentPosition=f;P(f)},function(f){H(f)},{enableHighAccuracy:X,
maximumAge:0,timeout:F})})};
_.BI.prototype.createUnpluggedLocationInfo=function(K){var X={};K=K.coords;if(K==null?0:K.latitude)X.latitudeE7=Math.floor(K.latitude*1E7);if(K==null?0:K.longitude)X.longitudeE7=Math.floor(K.longitude*1E7);if(K==null?0:K.accuracy)X.locationRadiusMeters=Math.round(K.accuracy);return X};
_.BI.prototype.createLocationInfo=function(K){var X={};K=K.coords;if(K==null?0:K.latitude)X.latitudeE7=Math.floor(K.latitude*1E7);if(K==null?0:K.longitude)X.longitudeE7=Math.floor(K.longitude*1E7);return X};var mSV=function(){};
_.z=mSV.prototype;
_.z.JSC$10998_getRequest=function(K,X,F){X=X===void 0?{}:X;F=F===void 0?MpC:F;var P=X;if(this.isNavigationCommand()){var H,f=(H=_.T(K==null?void 0:K.commandMetadata,_.g_))==null?void 0:H.url;P=_.c13(K.clickTrackingParams,!0,!1,f,this.JSC$10998_getClientScreen(P))}else P=_.c13(K.clickTrackingParams,!1,this.includeCsn);P={context:P};if(H=this.getExtension(K))return this.JSC$10998_buildRequest(P,H,X),H=this.getApiUrl(K),f=Object.assign({},{command:K},this.getRequestConfig(K,X)),P={input:H,requestShell:GY(H),
innerTubeRequest:P,config:f},P.config.authStrategy?P.config.authStrategy.identity=F:P.config.authStrategy={identity:F},(K=this.JSC$10998_getRequestKey(K,X))&&!P.config.requestKey&&(P.config.requestKey=K),P;K=new _.nG("Error: Failed to create Request from Command.",K);_.jF(K)};
_.z.getApiUrl=function(K){var X=_.t7(this.getApiPaths(K)),F;(K=(F=_.T(K.commandMetadata,_.g_))==null?void 0:F.apiUrl)&&(X=K);return k4d(IGl(X))};
_.z.isNavigationCommand=function(){return!1};
_.z.JSC$10998_getClientScreen=function(){};
_.z.JSC$10998_getRequestKey=function(){};
_.z.getRequestConfig=function(){};
_.Oi.Object.defineProperties(mSV.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var IE=function(){};
_.r(IE,mSV);IE.prototype.JSC$11005_getStoreKey=function(){};
IE.prototype.JSC$10998_getRequestKey=function(K,X){X=X===void 0?{}:X;return this.JSC$11005_getStoreKey(K,X)};var lYL;_.kl=function(K,X,F){var P=F&&F>0?F:0;F=P?Date.now()+P*1E3:0;if((P=P?(0,_.GZu)():lYL())&&window.JSON){typeof X!=="string"&&(X=JSON.stringify(X,void 0));try{P.set(K,X,F)}catch(H){P.remove(K)}}};
_.KE=function(K){var X=lYL(),F=(0,_.GZu)();if(!X&&!F||!window.JSON)return null;try{var P=X.get(K)}catch(H){}if(typeof P!=="string")try{P=F.get(K)}catch(H){}if(typeof P!=="string")return null;try{P=JSON.parse(P,void 0)}catch(H){}return P};
_.XE=function(K){try{var X=lYL(),F=(0,_.GZu)();X&&X.remove(K);F&&F.remove(K)}catch(P){}};
_.GZu=_.fb(function(){try{var K=new pg3;var X=K.isAvailable()?K:null}catch(F){return null}return X?new _.I2(X):null});
lYL=_.fb(function(){var K=new B_3;return K.isAvailable()?new _.I2(K):null});var FJ=new _.Oh("ENTITY_STATE_TOKEN"),FE=new _.Oh("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var vzu=XMLHttpRequest.prototype.fetch,aYu=vzu&&vzu.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!OU?!0:!1;var PU=function(K){this.JSC$11010_storeWithEntities=K};
_.r(PU,IE);_.z=PU.prototype;_.z.getApiPaths=function(){return PZL};
_.z.getExtension=function(K){return _.T(K,_.vg)||_.T(K,_.J6)||_.T(K,HwE)};
_.z.isNavigationCommand=function(){return!0};
_.z.JSC$11005_getStoreKey=function(K){if((_.S("kevlar_cache_on_ttl_player")||_.S("mweb_enable_shorts_innertube_player_prefetch")||_.S("mweb_use_new_history_manager")||_.S("web_shorts_prefetch_service_enabled"))&&(K=this.getExtension(K))&&K.videoId){var X={videoId:K.videoId};K.playlistId&&(X.playlistId=K.playlistId);K.playerParams&&(X.params=K.playerParams);return _.lX("player",X)}};
_.z.JSC$10998_getClientScreen=function(K){var X;return((X=K.contentPlaybackContext)==null?void 0:X.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.z.JSC$10998_buildRequest=function(K,X,F){if(_.S("enable_interstitial_entity_check")){var P=this.JSC$11010_storeWithEntities;if(X.videoId)for(var H=_.D(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),f=H.next();!f.done;f=H.next()){f=f.value;var u;var J=void 0,Z=void 0,M=X.videoId,n=f;(u=P)?(M=_.XF(M+n,"interstitialInteractionStateEntity"),u=(J=(Z=_.FF(u.getState().entities,"interstitialInteractionStateEntity",M))==null?void 0:Z.primaryButtonClicked)!=null?J:!1):u=!1;if(u)switch(f){case "CONTENT_CHECK_REQUIRED":X.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":X.racyCheckOk=!0}}}X.videoId&&(K.videoId=X.videoId);X.playlistId&&(K.playlistId=X.playlistId);X.index!==void 0&&(K.playlistIndex=X.index+1);X.playerParams&&(K.params=X.playerParams);"startTimeSeconds"in X&&X.startTimeSeconds&&(_.S("enable_player_request_builder_start_time_floor")?K.startTimeSecs=Math.floor(X.startTimeSeconds):K.startTimeSecs=X.startTimeSeconds);F.contentPlaybackContext&&(K.playbackContext={contentPlaybackContext:F.contentPlaybackContext});F.prefetchPlaybackContext&&
(K.playbackContext=Object.assign({},K.playbackContext,{prefetchPlaybackContext:F.prefetchPlaybackContext}),K.context.request||(K.context.request={}),K.context.request.isPrefetch=!0);K.playbackContext||(K.playbackContext={});P=evW();K.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!P,supportXhr:aYu};F.overrideMutedAtStart&&(K.overrideMutedAtStart=F.overrideMutedAtStart);K.racyCheckOk=!!X.racyCheckOk;K.contentCheckOk=!!X.contentCheckOk;!_.S("captions_prefs_killswitch")&&(F=(F=_.KE("yt-player-caption-language-preferences"))?
F:[],F==null?0:F.length)&&(K.captionParams={viewerSelectedCaptionLangs:F})};
_.z.getRequestConfig=function(K){K=this.JSC$11005_getStoreKey(K);var X;K&&(X={storeStrategy:{storeKey:K}});_.S("web_log_player_watch_next_ticks")&&(X=X||{},X.requestTick="ps_s",X.responseTick="ps_r");return X};
PU[$0]=[FJ];var HU=function(){};
_.r(HU,IE);_.z=HU.prototype;_.z.getApiPaths=function(){return UTZ};
_.z.getExtension=function(K){return _.T(K,_.vg)};
_.z.isNavigationCommand=function(){return!0};
_.z.JSC$11005_getStoreKey=function(K){if((K=this.getExtension(K))&&K.videoId){var X={videoId:K.videoId};K.playlistId&&(X.playlistId=K.playlistId);K.index&&(X.index=K.index);K.params&&(X.params=K.params);return _.lX("next",X)}};
_.z.JSC$10998_getClientScreen=function(K){var X;return((X=K.contentPlaybackContext)==null?void 0:X.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.z.JSC$10998_buildRequest=function(K,X,F){X.videoId&&(K.videoId=X.videoId);X.playlistId&&(K.playlistId=X.playlistId);X.params&&(K.params=X.params);X.index!==void 0&&(K.playlistIndex=X.index);K.racyCheckOk=!(!F.racyCheckOk&&!X.racyCheckOk);K.contentCheckOk=!!X.contentCheckOk;F.contentPlaybackContext&&(K.autonavState=F.contentPlaybackContext.autonavState,K.playbackContext={vis:F.contentPlaybackContext.vis,lactMilliseconds:F.contentPlaybackContext.lactMilliseconds});F.prefetchPlaybackContext&&(K.context.request||
(K.context.request={}),K.context.request.isPrefetch=!0);_.S("captions_hats_killswitch")||(X=_.ZO().getFlag(65),X=X!=null?!X:!1,F=!!_.KE("yt-player-sticky-caption"),K.captionsRequested=X&&F)};
_.z.getRequestConfig=function(K){K=this.JSC$11005_getStoreKey(K);var X;K&&(X={storeStrategy:{storeKey:K}});_.S("web_log_player_watch_next_ticks")&&(X=X||{},X.requestTick="wn_s",X.responseTick="wn_r");return X};
var sx=function(){};
_.r(sx,IE);sx.prototype.getApiPaths=function(){return UTZ};
sx.prototype.getExtension=function(K){return _.T(K,_.jd)};
sx.prototype.JSC$10998_buildRequest=function(K,X){X.token&&(K.continuation=X.token)};var zP=function(K,X){this.playerRequestBuilder=K;this.watchNextRequestBuilder=X};
_.r(zP,IE);zP.prototype.getApiPaths=function(){return Elt};
zP.prototype.getExtension=function(K){return _.T(K,_.vg)};
zP.prototype.isNavigationCommand=function(){return!0};
zP.prototype.JSC$10998_buildRequest=function(K,X,F){K.playerRequest={};this.playerRequestBuilder.JSC$10998_buildRequest(K.playerRequest,X,F);_.S("web_streaming_watch")&&(K.watchNextRequest={},this.watchNextRequestBuilder.JSC$10998_buildRequest(K.watchNextRequest,X,F))};
zP[$0]=[PU,HU];var t1U;_.fE=new _.Oh("SHORTS_CONTROLLER_TOKEN");t1U=new _.Oh("SHORTS_STATE_STORE_TOKEN");var D9=function(K,X){var F=_.Ls.apply(2,arguments);K=K===void 0?0:K;_.nG.call(this,X,F);this.errorType=K;Object.setPrototypeOf(this,this.constructor.prototype)};
_.r(D9,_.nG);var $SC,OfW,gzT,rzl,Ri,gt9,NrL,CqL,XYL,IYt,xSU;$SC=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(K){return K+"="}).join("|"));
OfW=RegExp(".*\\?.*playnext=1.*");_.uZ=function(K,X,F,P){this.watchEndpointMap=K;this.reelWatchEndpointMap=X;this.innerTubeTransportService=F;this.fetchPbj=P};
gzT=function(K,X,F){var P=_.i9().resolve(_.Nu(V1U));_.uZ.instance=new _.uZ(K,X,F,P)};
_.Ezt=function(K,X){var F=_.kU("web_pbj_log_warning_rate",0);F=F>0&&Math.random()<F;var P;if((P=_.T(X.commandMetadata,_.g_))==null||!P.rootVe)return F&&_.yy(Error("Of")),!1;var H;P=(H=_.T(X.commandMetadata,_.g_))==null?void 0:H.url;if(!P)return F&&_.yy(Error("Pf")),!1;if(OfW.test(P))return!0;if($SC.test(P))return F&&_.yy(Error("Qf`"+P)),!1;if(_.T(X,_.vg)){if(!(K.watchEndpointMap.watchNext&&K.watchEndpointMap.player||_.S("kevlar_fetch_initial_data_op_watch_client")))return F&&_.yy(Error("Hf")),!1;
K=_.kU("web_pbj_log_warning_rate",0);K=K>0&&Math.random()<K;_.T(X,_.vg)?s93(X)?X=!0:(K&&_.yy(Error("If")),X=!1):(K&&_.yy(Error("Hf")),X=!1);return X}if(_.T(X,_.J6))return zlw(X);if(_.T(X,_.r4))return!0;K=_.ed(K.innerTubeTransportService,X);!K&&F&&_.jF(Error("Rf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(X)});return K};
rzl=function(K,X,F,P,H,f){X={url:X};if(F==null?0:F.itct)X.parentTrackingParams=F.itct;var u=_.t7(ZEQ);return _.rz(K.innerTubeTransportService,X,u).then(function(J){(J=J.endpoint)||(J=_.fp);(F==null?0:F.itct)&&J&&!J.trackingParams&&(J.trackingParams=F.itct);var Z=uN(J);return Ri(K,J,F,P,Z,H,f)})};
Ri=function(K,X,F,P,H,f,u,J){J=J===void 0?{}:J;if(K.fetchPbj&&!_.Ezt(K,X)&&!_.S("force_one_platform")){J=K.fetchPbj(X);var Z=_.F0(J.then(function(V){if(!V)throw Error("Sf");u(Z)||f(X,V);return V}));
return Z}var M,n,c={rootVe:(M=_.T(X.commandMetadata,_.g_))==null?void 0:M.rootVe,url:(n=_.T(X.commandMetadata,_.g_))==null?void 0:n.url,endpoint:X,page:H};if(_.T(X,_.vg)){var B,L={contentPlaybackContext:_.Qh(F,(B=_.T(X.commandMetadata,_.g_))==null?void 0:B.url,P)},A=_.Ue();_.S("web_streaming_watch")&&window.TextDecoderStream?(J=bfu(K.innerTubeTransportService,X,L,function(V){!c.response&&V.content&&(c.response=V.content);!c.playerResponse&&V.player&&(c.playerResponse=V.player);f(X,c)}),M=K9w(X),M.length&&
(c.preconnect=M,f(X,c)),CqL(J,A,c).catch(function(V){V instanceof D9&&V.errorType===2&&NrL(K,X,L,c,f,u,A)})):NrL(K,X,L,c,f,u,A);
return A.promise}if(_.T(X,_.J6)){var d;if(((d=_.T(X,_.J6))==null?void 0:d.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var R=_.Ue();_.ifC(_.i9().resolve(_.fE),X).then(function(V){xSU(K,F,P,H,f,R,V)});
return R.promise}J=_.F0();var l;M={contentPlaybackContext:_.Qh(F,(l=_.T(X.commandMetadata,_.g_))==null?void 0:l.url,P)};(l=K.reelWatchEndpointMap.player)&&(l=l().JSC$10998_getRequest(X,M))&&(J=_.rz(K.innerTubeTransportService,l.innerTubeRequest,l.input,X.clickTrackingParams,l.config));l=_.F0();(n=K.reelWatchEndpointMap.reelItemWatch)&&(n=n().JSC$10998_getRequest(X))&&(l=_.rz(K.innerTubeTransportService,n.innerTubeRequest,n.input,X.clickTrackingParams,n.config));n=_.F0();(B=K.reelWatchEndpointMap.reelWatchSequence)&&
_.T(X,_.J6).sequenceParams&&(M=B().JSC$10998_getRequest(X,M))&&(n=_.rz(K.innerTubeTransportService,M.innerTubeRequest,M.input,X.clickTrackingParams,M.config));M=_.F0(c);B=_.Ue();IYt(X,M,J,l,n,f,u,B);return B.promise}var a;if(_.T(X,X9P)&&((a=_.T(X.commandMetadata,_.g_))==null?0:a.url))return J=MYy(_.az(wp().location.href),_.az(_.T(X.commandMetadata,_.g_).url)).toString(),rzl(K,J,F,P,f,function(){return!1});
if(_.T(X,_.r4))return f(X,c),_.F0(c);if(_.ed(K.innerTubeTransportService,X)){J=Object.assign({},{tempData:F,disableCache:F.disableCache},J);var E=_.Rx(K.innerTubeTransportService,X,J).then(function(V){c.response=V;u(E)||f(X,c);return c});
return E}return _.F0(c)};
_.KrE=function(K,X,F,P){if(_.T(X,_.vg)||_.T(X,_.J6)&&(_.S("mweb_enable_shorts_innertube_player_prefetch")||_.S("kevlar_enable_shorts_prefetch_in_sequence"))||_.T(X,HwE)&&_.S("web_enable_prefetching_videos_on_home")){var H,f={contentPlaybackContext:_.Qh(F,(H=_.T(X.commandMetadata,_.g_))==null?void 0:H.url,P),prefetchPlaybackContext:qT4(F)},u,J,Z;if(((u=_.T(X,_.vg))==null?void 0:(J=u.watchEndpointSupportedPrefetchConfig)==null?void 0:(Z=J.prefetchHintConfig)==null?void 0:Z.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(F=
K.watchEndpointMap.watchNext)if(f=F().JSC$10998_getRequest(X,f))return Promise.resolve(_.rz(K.innerTubeTransportService,f.innerTubeRequest,f.input,void 0,f.config).then(function(c){return c}))}else if(_.T(X,_.J6)&&_.S("web_prefetch_riw_for_next_video")){if(F=K.reelWatchEndpointMap.reelItemWatch)if((F=F().JSC$10998_getRequest(X,f))&&_.rz(K.innerTubeTransportService,F.innerTubeRequest,F.input,void 0,F.config).then(function(c){return c}),F=K.reelWatchEndpointMap.player)if(f=F().JSC$10998_getRequest(X,
f))return Promise.resolve(_.rz(K.innerTubeTransportService,f.innerTubeRequest,f.input,void 0,f.config).then(function(c){return c}))}else if(F=K.watchEndpointMap.player)if(f=F().JSC$10998_getRequest(X,f))return Promise.resolve(_.rz(K.innerTubeTransportService,f.innerTubeRequest,f.input,void 0,f.config).then(function(c){return c}))}else if(_.ed(K.innerTubeTransportService,X)){var M={tempData:F},n=kZO(K.innerTubeTransportService,X);
return n?new Promise(function(c,B){var L,A;return _.q(function(d){if(d.nextAddress==1)return _.Y(d,n,2);if(d.nextAddress!=4)return L=d.yieldResult,L.JSC$11005_getStoreKey(X,M)?_.Y(d,_.Rx(K.innerTubeTransportService,X,M),4):(B(new _.nG("Prefetching request builder with no store key.",X)),d.jumpTo(0));A=d.yieldResult;c(A);_.JT(d)})}):Promise.reject(new _.nG("Prefetching unregistered request builder.",X))}return Promise.reject(new _.nG("No request builder available to prefetch endpoint.",X))};
gt9=function(K,X){var F,P,H;if(_.T(X,_.vg)){var f=K.watchEndpointMap.watchNext;f&&(F=f());(K=K.watchEndpointMap.player)&&(P=K())}else if(_.T(X,_.J6))(f=K.reelWatchEndpointMap.reelItemWatch)&&(F=f()),(f=K.reelWatchEndpointMap.player)&&(P=f()),(K=K.reelWatchEndpointMap.reelWatchSequence)&&(H=K());else{a:{K=x5w(X,K.innerTubeTransportService.endpointMap);if(K!==void 0)if(typeof K.then==="function")_.jF(new _.nG("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",X));else break a;
K=void 0}K&&(F=K)}var u,J,Z;return{content:(u=F)==null?void 0:u.JSC$11005_getStoreKey(X),player:(J=P)==null?void 0:J.JSC$11005_getStoreKey(X),reelSequence:(Z=H)==null?void 0:Z.JSC$11005_getStoreKey(X)}};
NrL=function(K,X,F,P,H,f,u){var J=_.F0(),Z=K.watchEndpointMap.player;_.S("web_streaming_player")&&(Z=Y1(zP));Z&&(Z=Z().JSC$10998_getRequest(X,F))&&(J=_.rz(K.innerTubeTransportService,Z.innerTubeRequest,Z.input,X.clickTrackingParams,Z.config));Z=_.F0();var M=K.watchEndpointMap.watchNext;M&&(F=M().JSC$10998_getRequest(X,F))&&(Z=_.rz(K.innerTubeTransportService,F.innerTubeRequest,F.input,X.clickTrackingParams,F.config));K=_.F0(P);XYL(X,K,J,Z,H,f,u)};
CqL=function(K,X,F){return _.q(function(P){if(P.nextAddress==1)return _.Y(P,K,2);X.resolve(F);_.JT(P)})};
XYL=function(K,X,F,P,H,f,u){var J,Z,M,n,c;_.q(function(B){switch(B.nextAddress){case 1:return _.Y(B,X,2);case 2:J=B.yieldResult;if(f(u.promise))return u.resolve(J),B.return();H(K,J);Z=K9w(K);if(!Z.length){B.jumpTo(3);break}return _.Y(B,X,4);case 4:J.preconnect=Z,H(K,J);case 3:return _.s2(B,5),_.Y(B,F,7);case 7:M=B.yieldResult;_.Gy(B,6);break;case 5:return n=_.qc(B),u.reject(n),B.return();case 6:if(M===void 0)return J.reload=!0,H(K,J),u.resolve(J),B.return();if(f(u.promise))return u.resolve(J),B.return();
J.playerResponse=M;H(K,J);_.s2(B,8);return _.Y(B,P,10);case 10:c=B.yieldResult;_.Gy(B,9);break;case 8:_.qc(B);case 9:if(c===void 0)return J.response={responseContext:{}},u.resolve(J),B.return();if(f(u.promise))return u.resolve(J),B.return();J.response=c;H(K,J);u.resolve(J);_.JT(B)}})};
IYt=function(K,X,F,P,H,f,u,J){var Z,M,n,c,B,L;_.q(function(A){switch(A.nextAddress){case 1:return _.Y(A,X,2);case 2:Z=A.yieldResult;if(u(J.promise))return J.resolve(Z),A.return();f(K,Z);M=K9w(K);if(!M.length){A.jumpTo(3);break}return _.Y(A,X,4);case 4:Z.preconnect=M,f(K,Z);case 3:return _.s2(A,5),_.Y(A,F,7);case 7:n=A.yieldResult;_.Gy(A,6);break;case 5:return c=_.qc(A),J.reject(c),A.return();case 6:if(n===void 0)return Z.reload=!0,f(K,Z),J.resolve(Z),A.return();if(u(J.promise))return J.resolve(Z),
A.return();Z.playerResponse=n;f(K,Z);_.s2(A,8);return _.Y(A,P,10);case 10:B=A.yieldResult;_.Gy(A,9);break;case 8:_.qc(A);case 9:if(B===void 0)return Z.response={responseContext:{}},J.resolve(Z),A.return();if(u(J.promise))return J.resolve(Z),A.return();Z.response=B;f(K,Z);_.s2(A,11);return _.Y(A,H,13);case 13:L=A.yieldResult;_.Gy(A,12);break;case 11:_.qc(A);case 12:if(u(J.promise))return J.resolve(Z),A.return();Z.reelWatchSequenceResponse=L;f(K,Z);J.resolve(Z);_.JT(A)}})};
xSU=function(K,X,F,P,H,f,u){var J,Z,M,n,c,B;_.q(function(L){if((J=u)==null||!J.replacementEndpoint)return f.reject(),L.return();Z=u.replacementEndpoint;(M=_.T(Z,_.J6))?(u.sequenceContinuation&&(M.sequenceParams=u.sequenceContinuation),n=_.i9().resolve(_.fE),c=M.sequenceParams,FrT(n,Z)&&delete M.sequenceParams,B=Ri(K,Z,X,F,P,H,function(){return!1}),B.then(function(A){return _.q(function(d){if(d.nextAddress==1)return PJT(n,{reelWatchEndpoint:{sequenceParams:c}},A),_.Y(d,0,2);
f.resolve(A);_.JT(d)})})):f.reject();
_.JT(L)})};_.H5u=function(K){if(K.validatedFragments_.length==0)return null;if(!K.mergedPrefetchedData_){for(var X=[],F=_.D(K.validatedFragments_),P=F.next();!P.done;P=F.next()){P=_.D(K.fragmentConfiguration_[P.value].graftedKeys);for(var H=P.next();!H.done;H=P.next())(H=K.prefetchedData_[H.value].trackingParams)&&X.push(H)}K.mergedPrefetchedData_={};Object.assign(K.mergedPrefetchedData_,K.prefetchedData_,{clientSideGrafts:X})}return K.mergedPrefetchedData_};var sBu;_.qT=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
sBu=function(K,X,F){if(_.Psy(X))return K.prefetchCache_.get(_.H33(X,F))};_.Jk=new _.Oh("NAVIGATION_TOKEN");var zpt=function(K){var X=this;var F=F===void 0?STw():F;var P=P===void 0?_.i9().resolve(_.Jk):P;this.onePickCommand=K;this.JSC$11108_playlistNetworkManager=F;this.navigationManager=P;this.videoPickerBuilder=_.p9T("yt-addtoplaylist");_.RjU(rVZ(AVE(T2L(this.videoPickerBuilder.setTitle(K.modalTitle).setSize(1E3).addView(yHL()).addView(w_T())).addView("youtube"),K.selectButtonLabel)),function(H){X.handleAction(H)})};
zpt.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
zpt.prototype.handleAction=function(K){var X=this;if(K&&this.onePickCommand.listId&&K.action==="picked"&&K.docs){var F=[];K.docs.forEach(function(P){F.push({addedVideoId:P.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$11108_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,F).then(function(){_.S("playlist_add_video_hard_reload_killswitch")?X.navigationManager.reload():ffU(X.navigationManager)})}};var D1W=function(){if(this.constructor===D1W)throw new TypeError("Tf");};
_.z=D1W.prototype;_.z.dispose=function(){};
_.z.disconnect=function(){};
_.z.reconnect=function(){};
_.z.observe=function(K,X,F){return{element:K,option:F}};
_.z.unobserveByKey=function(){};var oql=function(K,X){X=X===void 0?0:X;D1W.call(this);this.viewroot=K;this.defaultPrescanHeight=X;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),K?{root:K,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.r(oql,D1W);_.z=oql.prototype;_.z.dispose=function(){this.disconnect();this.handlers.clear()};
_.z.disconnect=function(K){this.isConnected=!1;this.pauseObservingUntilReconnect=K===void 0?!1:K;this.observer.disconnect();K=_.D(this.prescanObservers.values());for(var X=K.next();!X.done;X=K.next())X.value.disconnect()};
_.z.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var K=_.D(this.handlers),X=K.next();!X.done;X=K.next()){var F=_.D(X.value);X=F.next().value;var P=F.next().value;F=!1;P=_.D(P.keys());for(var H=P.next();!H.done;H=P.next())if((H=H.value)&&H.state==="prescan"){F=!0;break}F&&uWL(this,X).observe(X);this.observer.observe(X)}}};
_.z.handleObserveEvent=function(K){K=_.D(K);for(var X=K.next();!X.done;X=K.next()){X=X.value;var F=this.handlers.get(X.target);if(F){var P=X.isIntersecting;F=_.D(F);for(var H=F.next();!H.done;H=F.next()){var f=_.D(H.value);H=f.next().value;f=f.next().value;H&&(H.state==="visible"&&P||H.state==="hidden"&&!P)&&(f(X.target,H.state),H.calledOnce&&this.unobserveByKey({element:X.target,option:H}))}}}};
_.z.handlePrescanEvent=function(K){K=_.D(K);for(var X=K.next();!X.done;X=K.next()){X=X.value;var F=this.handlers.get(X.target);if(F&&X.isIntersecting){F=_.D(F);for(var P=F.next();!P.done;P=F.next()){var H=_.D(P.value);P=H.next().value;H=H.next().value;P&&P.state==="prescan"&&(H(X.target,P.state),P.calledOnce&&this.unobserveByKey({element:X.target,option:P}))}}}};
_.z.observe=function(K,X,F){var P=(P=this.handlers.get(K))&&P.has(F)?{element:K,option:F}:void 0;if(P)return P;P={element:K,option:F};this.handlers.has(K)||this.handlers.set(K,new Map);var H=this.handlers.get(K);H&&!H.has(F)&&H.set(F,X);this.pauseObservingUntilReconnect||(F.state==="prescan"&&uWL(this,K).observe(K),this.observer.observe(K));return P};
_.z.unobserveByKey=function(K){var X=this.handlers.get(K.element);if(X&&X.has(K.option)){X.delete(K.option);if(K&&K.option.state==="prescan")for(var F=_.D(this.prescanObservers.values()),P=F.next();!P.done;P=F.next())P.value.unobserve(K.element);X.size===0&&(this.handlers.delete(K.element),this.observer.unobserve(K.element))}};
var uWL=function(K,X){var F=K.defaultPrescanHeight;X.hasAttribute("prescan-height")&&(X=Number(X.getAttribute("prescan-height")),isNaN(X)||(F=X));if(K.prescanObservers.has(F))return K.prescanObservers.get(F);X="-0.1px -0.1px "+F+"px -0.1px";X=new IntersectionObserver(K.handlePrescanEvent.bind(K),K.viewroot?{root:K.viewroot,rootMargin:X}:{rootMargin:X});K.prescanObservers.set(F,X);return X};var qGU=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],JNu=function(){var K,X=this;this.JSC$11125_actionRouter=K=K===void 0?_.GT.getInstance():K;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return X.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return X.visibilityObservedElementHandlerKeys}}},Z5C,QBL,cNE;
JNu.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.S("kevlar_use_vimio_behavior")&&_.e8("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=LdT())};
JNu.prototype.dispose=function(){this.visibilityMonitor&&_.DG(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
JNu.prototype.handleVisibilityRefreshed=function(){for(var K=_.D(this.targetMap.entries()),X=K.next();!X.done;X=K.next()){var F=_.D(X.value);X=F.next().value;F=F.next().value;_.YGC(this,X,F)}};
_.n$T=function(K,X,F){QBL(K,F);var P=_.MZQ(K,X);P.element=F;K.targetedElements.set(F,X);_.YGC(K,X,P)};
QBL=function(K,X){var F=K.targetedElements.get(X);if(F){var P=K.targetMap.get(F);P&&(delete P.element,K.targetMap.set(F,P));K.targetedElements.delete(X);K.visibilityObserver&&K.visibilityObservedElementHandlerKeys&&(F=K.visibilityObservedElementHandlerKeys.get(X))&&(K.visibilityObserver.unobserveByKey(F),K.visibilityObservedElementHandlerKeys.delete(X))}};
_.YGC=function(K,X,F){var P=F.action,H=F.element;H&&P&&(qGU.includes(X)||_.e8("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||K.visibilityMonitor&&K.visibilityMonitor.isNodeVisible(H)?cNE(K,X,F):K.visibilityObserver&&(K.visibilityObservedElementHandlerKeys||(K.visibilityObservedElementHandlerKeys=new WeakMap),P=K.visibilityObserver.observe(H,function(){cNE(K,X,F);K.visibilityObservedElementHandlerKeys.delete(H)},{calledOnce:!0,
state:"visible"}),K.visibilityObservedElementHandlerKeys.set(H,P)))};
cNE=function(K,X,F){var P=F.action;(F=F.element)&&P&&(_.TO(K.JSC$11125_actionRouter,[P],F),K.targetMap.delete(X),K.targetedElements.delete(F),K.triggeredTargets.add(X))};
_.MZQ=function(K,X){var F=K.targetMap.get(X);F||(F={},K.targetMap.set(X,F));return F};
_.Z9=function(){Z5C||(Z5C=new JNu);return Z5C};var pYN=document.createElement("div");pYN.style.touchAction="pan-down";var TAl=pYN.style.touchAction==="pan-down";var BJW,SGQ;BJW=function(){this.hammerFn=BlQ();this.JSC$11133_screenManager=_.uH();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.cO(83615);_.Kp(this.JSC$11133_screenManager,this.ve);r1w()};
_.Yu=function(){SGQ||(SGQ=new BJW);return SGQ};
BJW.prototype.registerTouchEvents=function(K,X,F){var P=_.Ls.apply(3,arguments),H=this.hammerFn(K,{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}]]});F&&H.set({touchAction:F});this.nodeManagerMapping.set(K,H);var f=
A1l(X);P=_.D(P);for(var u=P.next();!u.done;u=P.next()){u=u.value;if(u.includes("swipe")||u.includes("pinch")||u.includes("pan"))u.includes("swipe")?H.get("swipe").set({enable:!0,direction:f,velocity:.2}):u.includes("pinch")?H.get("pinch").set({enable:!0}):u.includes("pan")&&(H.get("pan").set({enable:!0,direction:f}),H.get("swipe").set({enable:!0,direction:f,velocity:.2}),H.get("swipe").recognizeWith("pan"));o$U(this,K,H,u)}};
var o$U=function(K,X,F,P){F.on(P,function(H){if(P.includes("pinch"))K.lastPinchTime=Date.now();else if(P.includes("swipe")&&Date.now()-K.lastPinchTime<400)return;H.pointerType!=="mouse"&&(H=P==="doubletap"?{coordinates:H.center}:P.includes("pan")?H:P.includes("swipe")?{target:H.target}:{},X.dispatchEvent(new CustomEvent(P,{bubbles:!0,composed:!0,detail:H})))})};
BJW.prototype.unregisterTouchEvents=function(K){var X=_.Ls.apply(1,arguments),F=this.nodeManagerMapping.get(K);if(F){X=_.D(X);for(var P=X.next();!P.done;P=X.next())F.off(P.value);this.nodeManagerMapping.delete(K);K.style.touchAction="unset"}};var LrQ=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var j93=null;var TJE=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},gqy=function(){TJE.instance||(TJE.instance=new TJE);
return TJE.instance},EqP=function(K){var X=K.networkEvents;
K.networkEvents=[];return _.S("enable_network_monitoring")?X:[]};var rNu;rNu={};_.ANC=bD("yt-serviceworker-metadata",{objectStores:(rNu.auth={addedAtVersion:1},rNu["resource-manifest-assets"]={addedAtVersion:2},rNu),shared:!0,upgrade:function(K,X){X(1)&&Ra(K,"resource-manifest-assets");X(2)&&Ra(K,"auth")},
version:2});var RlM=self.location.origin+"/";Ul3([/\.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\//]);Ul3([/purge_shell=1/]);var jBt=void 0;jBt=jBt===void 0?[]:jBt;for(var wYN=[],yNU=_.D(DUt),WrL=yNU.next();!WrL.done;WrL=yNU.next())wYN.push({key:WrL.value});for(var d1C=_.D(jBt),epN=d1C.next();!epN.done;epN=d1C.next())wYN.push(epN.value);var RpU,Tw=_.FP==null?void 0:(RpU=_.FP.performance)==null?void 0:RpU.memory,GKO=!1,b3y={},aPM={},rq={},A6=navigator;var Qj=function(K){this.JSC$11177_expiringStorage=new pG(K)};
Qj.prototype.set=function(K,X,F){F=F!==void 0?Date.now()+F:void 0;this.JSC$11177_expiringStorage.set(K,X,F)};
Qj.prototype.get=function(K){return this.JSC$11177_expiringStorage.get(K)};
Qj.prototype.remove=function(K){this.JSC$11177_expiringStorage.remove(K)};var XC4=_.lr(["https://www.youtube.com/",""]),FEy=_.lr(["https://studio.youtube.com/",""]),fDl="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",HAO=null,ZAP;var U1V=_.lr(["https://www.youtube.com/iframe_api"]),MT=function(){this.playerResolver_=_.Ue();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.zM;this.playbackDurationSeconds_=0},hpt=function(K){var X=function(){return window.YT&&typeof window.YT.ready==="function"};
if(X())return _.F0(window.YT);var F=_.Ue(),P=_.nJ("SCRIPT");P.onload=P.onreadystatechange=function(){P.readyState&&P.readyState!="loaded"&&P.readyState!="complete"||(P.onload=_.zM,P.onreadystatechange=_.zM,P.onerror=_.zM,X()?F.resolve(window.YT):F.reject(new _.nG("Failed to load the iframe player library","script.onload",P.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
P.onerror=function(H){P.onload=_.zM;P.onreadystatechange=_.zM;P.onerror=_.zM;F.reject(new _.nG("Failed to load the iframe player library","script.onerror",H&&H.target&&H.target.src))};
_.li(P,_.Xs(U1V));K.insertBefore(P,K.firstChild);return F.promise},m1U=function(K,X,F){var P,H;
_.q(function(f){switch(f.nextAddress){case 1:return K.playbackEndedCallback_=F,_.s2(f,2),_.Y(f,hpt(X.parentElement||null),4);case 4:P=f.yieldResult;_.Gy(f,3);break;case 2:return H=_.qc(f),H instanceof _.nG&&H.args&&H.args[0]=="script.onerror"?_.yy(H):_.jF(H),f.return();case 3:P.ready(function(){return new P.Player(X,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:K.onPlayerReady_.bind(K),onStateChange:K.onPlayerStateChange_.bind(K),
onCueRangeExit:K.onCueRangeExit_.bind(K)}})}),_.JT(f)}})};
_.z=MT.prototype;_.z.getPlayerPromise=function(){return this.playerPromise_};
_.z.onPlayerReady_=function(K){this.playerResolver_.resolve(K.target)};
_.z.onPlayerStateChange_=function(K){if(K.data==YT.PlayerState.PLAYING){K=K.target;var X=K.getCurrentTime();K.addCueRange("playback",X,X+this.playbackDurationSeconds_)}};
_.z.onCueRangeExit_=function(K){K.data=="playback"&&(K.target.stopVideo(),this.playbackEndedCallback_())};
_.z.stopVideo=function(){this.playerPromise_.then(function(K){K.stopVideo()})};
var G5L=function(K){K.playerVars_&&K.playerPromise_.then(function(X){typeof X.cueVideoByPlayerVars!="function"?_.yy(new _.nG("vmh: player API not ready","cueVideoByPlayerVars",typeof X.cueVideoByPlayerVars)):X.cueVideoByPlayerVars(K.playerVars_)})};
MT.prototype.playVideo=function(){var K=this;this.playerVars_&&this.playerPromise_.then(function(X){typeof X.loadVideoByPlayerVars!="function"?(X=new _.nG("vmh: player API not ready","loadVideoByPlayerVars",typeof X.loadVideoByPlayerVars),_.jF(X)):X.loadVideoByPlayerVars(K.playerVars_)})};
var lfC=function(K,X,F,P,H){X&&(F===void 0&&(F=0),P===void 0&&(P=0),K.playbackDurationSeconds_=P/1E3,K.playerVars_={adformat:"17_8",videoId:X,suggestedQuality:"hd720",startSeconds:F/1E3,player_params:H})};
MT.prototype.mute=function(){this.playerPromise_.then(function(K){K.mute()})};
MT.prototype.unMute=function(){this.playerPromise_.then(function(K){K.unMute()})};var v$L=function(K,X){var F=d_();K||(K="unknown");X||(X="unknown");K="MAIN_APP_WEB_PAGE_TYPE_"+K.toUpperCase();K in F6L||(K="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");X="MAIN_APP_WEB_REQUEST_TYPE_"+X.toUpperCase();X in Pau||(X="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.s$(F,{mainAppWeb:{pageType:K,requestType:X,isShellLoad:_.RU("IS_SHELL_LOAD",!1)}})},afW={start:function(){_.s$(lGl(),{mainAppWeb:_.Um()})},
success:function(){_.zt(lGl(),"SUCCESS")},
failure:function(){_.zt(lGl(),"FAILURE")},
cancelled:function(){_.zt(lGl(),"CANCELLED")}};var tZT,$1C,S6P;tZT=_.lr(["/sw.js"]);$1C=_.lr(["/sw.js?0"]);_.O5W=_.Xs(tZT);S6P=_.Xs($1C);var VZt=function(){var K=Error.apply(this,arguments);this.message=K.message;"stack"in K&&(this.stack=K.stack)};
_.r(VZt,Error);_.Gw.prototype.load=function(K){this.megabloxUrl_=_.e8("YPC_MB_URL");_.e4(this.megabloxUrl_,(0,_.T3)(function(){K&&K()},this))};
_.NmO=function(K,X,F,P,H,f,u,J,Z,M,n){_.LEw(Z);K.load((0,_.T3)(function(){try{var c=f?f:_.e8("HL"),B=_.e8("SESSION_INDEX");_.n0T("client",function(){BEE("59",{helpCenterPath:"/youtube",locale:c,window:window}).JSC$7986_loadChatSupport({authuser:String(B)})})}catch(L){throw h6(10,n,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),H&&H(L),_.jF(L),L;
}g$t(this,X,F,P,H,f,u,J,Z,M,n)},K))};
_.Gw.prototype.openFixFlowDialog=function(K,X,F,P){this.load((0,_.T3)(function(){try{E$T(this,_.mz("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(K).withIntegratorCallback(X).load(F,P)}catch(H){throw _.jF(H),H;}},this))};
var E$T=function(K,X,F,P){var H=X.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.S("enable_window_constrained_buy_flow_dialog")&&(H=H.usingPopupStyle(_.mz("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));P&&(H=H.usingCloseCallback(P));X.bootstrap.fromPaymentsUrl(K.megabloxUrl_);K=X.bootstrap.asMashupMode(H);F=F?F:_.e8("HL");K.usingGaiaIndex(_.e8("SESSION_INDEX")).usingLocale(F).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.S("enable_google_payments_buyflow_material2_style_web")?
K.usingStyle(":m2;pc=#444;ac=#065fd4"):K.usingStyle(":md;pc=#444;ac=#065fd4");return K},g$t=function(K,X,F,P,H,f,u,J,Z,M,n){try{var c=_.mz("payments.business.integration");
if(!c)throw new VZt("payments.business.integration is undefined");var B=c.standaloneContextAuthId.forUserId(),L=J;_.S("enable_setting_app_inert_when_buy_flow_opens")&&(L=J?function(){rj9(!1);J()}:function(){rj9(!1)});
var A=E$T(K,c,f,L);u&&A.usingServerAnalyticsEventHandler(u);var d=A.inStandaloneContext(B).buyFlow(function(R){if(R&&(!R.integratorData||R.integratorData===""||R.error))if(R.error!=null)if(String(R.error)==="-1")_.TKl(Z);else{var l=String(R.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";h6(10,n,l,R.debugCode);_.m5(l,Z,R.debugCode);l=new _.nG("PAYMENT_ERROR_MESSAGE::"+R.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+
R.internalErrorDetails);_.jF(l)}else h6(10,n,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.m5("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",Z,"EMPTY_INTEGRATOR_DATA"),_.jF(Error("Yf"));F&&(rj9(!1),F(R))}).withEncryptedParameters(X);
M&&d.withClientParameters(mKy(_.xCT(M)));d.load(function(){h6(24,n);_.wb("ttc",void 0,"commerce_transaction");sKM("commerce_transaction");P&&(rj9(!0),P())},function(R){if(R==null?0:R.debugCode)var l=R==null?void 0:R.debugCode;
else if(!R||(R==null?0:R.debugCode))l="EMPTY_LOAD_FAILURE_ERROR",_.jF(Error(l));else{l="EMPTY_LOAD_FAILURE_DEBUG_CODE";var a=new _.nG("LOAD_FAILURE:"+R.message," DEBUG_CODE:"+l);_.jF(a)}h6(10,n,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",l);_.m5("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",Z,l);_.jF(R);H&&H(R)})}catch(R){throw R instanceof VZt&&(h6(10,n,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),H&&H(R)),_.jF(R),R;
}};var b5W;b5W=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.ED9=function(K,X){X=X===void 0?!1:X;K=b5W.test(K)?_.DX(K):null;!X&&window.payments||!K?(K=_.Ue(),X=K.promise,K.resolve()):X=_.Sa(K,{attributes:{"data-payments-main":"",id:"payment-lib"}});return X};var CJt;CJt=_.lr(["//www.googletagmanager.com/gtm.js?id=",""]);_.nE=function(K,X){_.Vk(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:X}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.e8("GL")}),X=_.nJ("SCRIPT"),X.async=!0,_.li(X,_.Xs(CJt,K)),X.id="gtm",K=document.getElementsByTagName("script"),K.length==0?document.head.appendChild(X):(K=K[0],K.parentNode.insertBefore(X,K)))};
_.cU=function(K){if(K=JSON.parse(K))window.dataLayer=window.dataLayer||[],window.dataLayer.push(K)};var NJt,i5L;NJt=_.lr(["https://clients2.google.com/gr/gr_sync.js"]);_.Vwy=function(){};
_.Vwy.prototype.init=function(){if(i5L()){var K=_.Ue();K.resolve();return K.promise}return _.Sa(_.Xs(NJt)).then(function(){if(!i5L())throw Error("Zf");},function(){throw Error("$f");
})};
_.gDT=function(){if(!i5L())return"";var K=window.google.gr;K.init({async:{schedule:"sync"},merchantId:"youtube"});K.start();K=K.finish();return K==null?"":K};
i5L=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.G=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.r(_.G,PolymerFakeBaseClassWithoutHtml);_.ub=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.r(_.ub,PolymerFakeBaseClassWithoutHtml);var Ajy=window.ShadyDOM;var zvd,HfT,DSq,uMy,Jl3,Zfl,pE,bN;zvd=_.S("enable_shadydom_free_scoped_query_methods");HfT=_.S("enable_shadydom_free_scoped_node_methods");DSq=_.S("enable_shadydom_free_scoped_readonly_properties_batch_one");uMy=_.S("enable_shadydom_free_parent_node");Jl3=_.S("enable_shadydom_free_children");Zfl=_.S("enable_shadydom_free_last_child");pE=window.ShadyDOM;_.Ka=pE&&pE.noPatch&&pE.wrap?pE.wrap:pE?function(K){return pE.patch(K)}:function(K){return K};
bN=function(K){if(K instanceof ShadowRoot)this.host=(0,_.Ka)(K.host),this.root=K;else if(K.$$){this.host=(0,_.Ka)(K);var X;this.root=(X=K.root)!=null?X:this.host}else if(K.polymerController){this.host=(0,_.Ka)(K);var F;this.root=(F=this.host.shadowRoot)!=null?F:this.host}else this.root=this.host=(0,_.Ka)(K)};
sXl();fYP();YIl();QX4();qIl();var x1U={querySelector:function(K,X){X=wCM(X,t6(K));K=_.$1(K);return Om(K).prototype.querySelector.call(K,X)},
querySelectorAll:function(K,X){X=wCM(X,t6(K));K=_.$1(K);return Om(K).prototype.querySelectorAll.call(K,X)}},IfU={appendChild:function(K,X){var F=t6(K),P=_.aj(X);
return _.FY3(_.$1(K),F?_.gq(X,F,P):X)},
cloneNode:function(K,X){var F=_.aj(K);K=_.$1(K);X=Om(K).prototype.cloneNode.call(K,X);return F?Em(X,F):X},
contains:function(K,X){var F=t6(K),P=_.aj(X);return F!==P?!1:PqP(K,X)},
insertBefore:function(K,X,F){var P=t6(K),H=_.aj(X);K=_.$1(K);X=P?_.gq(X,P,H):X;return Om(K).prototype.insertBefore.call(K,X,F)},
removeChild:function(K,X){var F=t6(K);K=_.$1(K);X=F?Em(X,F):X;return Om(K).prototype.removeChild.call(K,X)},
replaceChild:function(K,X,F){var P=t6(K),H=_.aj(X);X=P?_.gq(X,P,H):H?Em(X,H):X;F=P?Em(F,P):F;K=_.$1(K);return Om(K).prototype.replaceChild.call(K,X,F)},
getRootNode:function(K,X){X=X===void 0?{composed:!0}:X;var F;if(((F=X)!=null?F:{}).composed)K=vWl(K);else{X=K;for(K=WEq(K);K;)X=K,K=ekO(K);K=X}return K}},nzn=DSq?{firstChild:iAl,
nextSibling:bA3,previousSibling:NKT,firstElementChild:xhn,lastElementChild:k_M,nextElementSibling:EWy,previousElementSibling:Cd9,childNodes:KYT}:{};uMy&&(nzn.parentNode=gWO);Jl3&&(nzn.children=XR4);Zfl&&(nzn.lastChild=IDP);zvd&&M1n(x1U);HfT&&M1n(IfU);cl9();var pRO=function(K){this.node=K instanceof ShadowRoot?K.host:K};
BrP();SIy();var Trl=new WeakMap;var Aly=Symbol("td");var dSO=new Set(["tap","track","down","up"]),evO=_.S("pbcm_fi_query_decorators");var BU=function(){return _.ub.apply(this,arguments)||this};
_.r(BU,_.ub);_.z=BU.prototype;_.z.getState=function(){return this.store.getState()};
_.z.dispatch=function(K){this.store.dispatch(K)};
_.z.beforeRegister=function(){if(this&&typeof this==="object"){var K;var X=!!this.useSignals||!((K=this.polymerController)==null||!K.useSignals)}else X=!1;if(!X&&this.properties)for(X=_.D(Object.keys(this.properties)),K=X.next();!K.done;K=X.next()){var F=K.value;K=this.properties[F];if(K.selector){if(K.computed)throw Error("fg");F=["reduxPropertiesRecomputeTrigger",'"'+F+'"'].concat(_.LZ(K.selectorArgs||[])).join(",");K.computed="recomputeReduxSelector("+F+")"}}};
_.z.attached=function(){var K=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){K.reduxPropertiesRecomputeTrigger++}));
_.S("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.z.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.z.recomputeReduxSelector=function(K,X){var F=_.Ls.apply(2,arguments),P=this.properties[X].selector;if(!P)throw Error("dg`"+X);return P.apply(null,[this.store.getState()].concat(_.LZ(F)))};
_.z.select=function(K){var X=_.Ls.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return K.apply(null,[this.store.getState()].concat(_.LZ(X)))};
_.Oi.Object.defineProperties(BU.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("eg");}}});
BU.prototype.recomputeReduxSelector=BU.prototype.recomputeReduxSelector;_.O([_.h(),_.g("design:type",Number)],BU.prototype,"reduxPropertiesRecomputeTrigger",void 0);BU=_.O([_.qY()],BU);var SE=[],mSq={},La=function(){return gg.apply(this,arguments)||this};
_.r(La,gg);La.prototype._addPropertyEffect=function(K,X,F){if(X==="__observeEffects"&&F){var P,H=(P=F.info.method)!=null?P:F.info.methodName;if(H){var f=this[H];this[H]=function(){SE.push(H);try{f==null||f.apply(this,arguments)}finally{SE.pop()}}}}_.Zo._addPropertyEffect.apply(this,[K,
X,F])};
La.prototype._setPendingProperty=function(K,X,F){if(SE.length){var P=SE[SE.length-1],H;(H=mSq[this.is])!=null&&H.has(P)||(GZT(this.is,P),_.LL("polymerPropertyChangedInObserver",{componentName:this.is,observerName:P}))}return _.Zo._setPendingProperty.apply(this,[K,X,F])};
La=_.O([Lld()],La);var lYP=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),aYT,Yc={};_.S("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=Yc);var na=function(){return _.ub.apply(this,arguments)||this};
_.r(na,_.ub);na.prototype._setUnmanagedPropertyToNode=function(K,X,F){K.loggingStatus&&(K.loggingStatus.isDeclarativeExternal=!0);if(F!==K[X]||typeof F==="object")K[X]=F;K.is&&K.polymerController&&K.polymerController!==K&&QQ(K.is,X,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");K.loggingStatus&&(K.loggingStatus.isDeclarativeExternal=!1)};
na=_.O([_.qY()],na);vzT()&&(dg.prototype._setUnmanagedPropertyToNode=(new na)._setUnmanagedPropertyToNode);_.Krn={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(K){},set polymerController(K){}}]};var og=function(){var K=gg.apply(this,arguments)||this;K.json=function(){};
return K};
_.r(og,gg);og.prototype.equals=function(K,X){return K===X};
og.prototype.isEmpty=function(K){return!K||_.xd(K)&&K.length===0};
og=_.O([Lld()],og);var k5N=function(K){K=pzP(K);y5.call(this,K)};
_.r(k5N,y5);k5N.prototype.addProvider=function(K){K=K.key?K:pzP([K])[0];var X=this.keyIdToIndex.get(K.key.id);if(X){if(gzy(K,this.providers[X]))throw Error("gg`"+K.key.displayName);}else y5.prototype.addProvider.call(this,K)};
var KjV=new k5N([]);var XAT=!1;var xSP={};XAT||(if3(),XAT=!0);
xSP.InjectBehavior={initializeInjection:function(){var K=this.provide;try{if((K=K!=null?K:[])&&K.length>0)for(var X=pzP(K),F=_.D(X),P=F.next();!P.done;P=F.next())KjV.addProvider(P.value);var H=new Set;EzM(this.behaviors||[],H);X={};for(var f=_.D(H),u=f.next();!u.done;u=f.next()){var J=u.value;J.inject&&Object.assign(X,J.inject)}this.inject&&Object.assign(X,this.inject);for(var Z=_.D(Object.keys(X)),M=Z.next();!M.done;M=Z.next()){var n=M.value,c=X[n];try{this[n]=KjV.resolve(c)}catch(B){throw B;}}}catch(B){throw Error(B.message);
}}};var kZ9;var XYP=/\bclass\b/.test(function(){}.toString()),H5T=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var FjO=function(K){this.wasDefined=!0;Array.isArray(K)||K instanceof Array?(this.JSC$11306_getImpl=K[0],this.JSC$11306_setImpl=K[1]):this.JSC$11306_getImpl=K};
_.z=FjO.prototype;_.z.getWithPath=function(K){return ffP(this.JSC$11306_getImpl(),K)};
_.z.setWithPath=function(K,X){var F=this;if(K.length)throw Error("hg");if(!this.JSC$11306_setImpl)throw Error("ig");nv(function(){F.JSC$11306_setImpl(X)})};
_.z.notifyPath=function(){throw Error("jg");};
_.z.notifySplices=function(){throw Error("kg");};
_.z.getChangeRecordSignal=function(K,X){var F=this;if(K.length)throw Error("lg");return function(){var P=F.getWithPath(K);return{path:X!=null?X:"",base:P,value:P}}};
_.z.getSplicesSignal=function(){throw Error("mg");};
_.z.getPathMutationSignal=function(){throw Error("ng");};
_.z.pop=function(){throw Error("og");};
_.z.push=function(){throw Error("pg");};
_.z.splice=function(){throw Error("qg");};
_.z.unshift=function(){throw Error("rg");};var ou=function(K){var X=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(K)||K instanceof Array?(this.JSC$11311_getImpl=K[0],this.JSC$11311_setImpl=K[1]):this.JSC$11311_getImpl=K;this.wasDefined=!1;DK(function(){X.wasDefined=X.JSC$11311_getImpl()!==void 0})};
ou.prototype.getWithPath=function(K){return ffP(this.JSC$11311_getImpl(),K)};
ou.prototype.setWithPath=function(K,X){var F=this;if(K[K.length-1]!=="*"&&K[K.length-1]!=="splices"){if(K.length===0){if(!this.JSC$11311_setImpl)throw Error("sg");this.wasDefined||(this.wasDefined=X!==void 0);nv(function(){F.JSC$11311_setImpl(X)})}else{for(var P=DK(function(){return F.getWithPath([])}),H=0;H<K.length-1;H++){if(!P)return;
P=P[K[H]]}H=K[K.length-1];P&&(P[H]=X);this.wasDefined||(this.wasDefined=K.length>1||X!==void 0)}PeT(this,K,{pathComponents:K,value:X})}};
ou.prototype.notifyPath=function(K,X){K.length===0?X&&this.setWithPath(K,X.value):PeT(this,K,{pathComponents:K,value:X==null?void 0:X.value,fallbackWhenUndefined:X==null?void 0:X.value})};
var PeT=function(K,X,F,P){if(K.setMutationSignal){var H=++K.mutationIndex,f=[K.observedPath],u=K.observedPath,J;X.length===0&&(J=u);for(var Z=0;Z<X.length;Z++){var M=u.subPaths[X[Z]];if(!M)break;f.push(M);u=M;Z===X.length-1&&(J=M)}for(X=!1;f.length;)u=f.shift(),u.data={index:H,mutation:F,spliceMutationIndex:P},X||(X=u===J),X&&f.push.apply(f,_.LZ(Object.values(u.subPaths)));nv(function(){K.setMutationSignal(H)})}};
ou.prototype.notifySplices=function(K,X){var F=this,P=DK(function(){return F.getWithPath(K)}),H=[].concat(_.LZ(K),["splices"]);
PeT(this,H,{pathComponents:H,value:{indexSplices:X}});if(P==null?0:P.length)X=this.mutationIndex,H=[].concat(_.LZ(K),["length"]),PeT(this,H,{pathComponents:H,value:P.length},X)};
var HUt=function(K,X,F,P,H,f){K.notifySplices(F,[{index:P,addedCount:H,removed:f,object:X,type:"splice"}])},sQT=function(K,X){K=K.observedPath;
for(var F=0;F<X.length;F++){var P=X[F],H=K.subPaths[P];H||(H={pathComponents:X.slice(0,F+1),subPaths:{}},K.subPaths[P]=H);K=H}},f5u=function(K,X,F){sQT(K,X);
if(!K.getMutationSignal){var P=_.D(_.u_(K.mutationIndex,void 0,"HavCgf"));K.getMutationSignal=P.next().value;K.setMutationSignal=P.next().value}var H=K.getMutationSignal;return _.Qs(function(){H();return F(zmL(K,X))},void 0,"BYaPo")};
ou.prototype.getChangeRecordSignal=function(K,X){var F=this,P=this.mutationIndex,H;return f5u(this,K,function(f){if(f&&f.index>P){var u=f.mutation;P=f.index;H=void 0}f=DK(function(){return F.getWithPath(K)});
if(u){var J=u.pathComponents[u.pathComponents.length-1],Z=[].concat(_.LZ(u.pathComponents));if(J==="splices"||J==="length")return{base:f,path:(X?[X].concat(_.LZ(Z)):Z).join("."),value:u.value};var M=K.length>Z.length?K:Z,n;return{base:f!=null?f:u.fallbackWhenUndefined,path:(X?[X].concat(_.LZ(M)):M).join("."),value:(n=DK(function(){return F.getWithPath(M)}))!=null?n:u.fallbackWhenUndefined}}H||(H={base:f,
path:(X?[X].concat(_.LZ(K)):K).join("."),value:f});return H})};
ou.prototype.getSplicesSignal=function(K){var X=this.mutationIndex,F;return f5u(this,K,function(P){if(P&&P.index>X&&P.spliceMutationIndex!==X){var H=P.mutation;X=P.index;F=void 0}return H&&H.pathComponents[H.pathComponents.length-1]==="splices"?F=P=H.value:F})};
ou.prototype.getPathMutationSignal=function(K){var X=this;sQT(this,K);if(!this.getMutationSignal){var F=_.D(_.u_(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=F.next().value;this.setMutationSignal=F.next().value}var P=this.getMutationSignal,H=this.mutationIndex,f;return _.Qs(function(){P();var u=zmL(X,K);if(u&&u.index>H&&u.mutation&&D1O(u.mutation.pathComponents,K)){var J=u.mutation;H=u.index}if(!f||H!==f.index){var Z,M;u=(M=DK(function(){return X.getWithPath(K)}))!=null?M:(Z=J)==null?
void 0:Z.fallbackWhenUndefined;
f={index:H,value:u}}return f},void 0,"Aumsyf")};
var zmL=function(K,X){K=K.observedPath;X=_.D(X);for(var F=X.next();!F.done;F=X.next())K=K.subPaths[F.value];return K.data};
ou.prototype.pop=function(K){var X=this,F=DK(function(){return X.getWithPath(K)});
if(!(F instanceof Array))throw Error("tg");var P=F.length>0,H=F.pop();P&&HUt(this,F,K,F.length,0,[H]);return H};
ou.prototype.push=function(K){var X=_.Ls.apply(1,arguments),F=this,P=DK(function(){return F.getWithPath(K)});
if(!(P instanceof Array))throw Error("ug");var H=P.length,f=P.push.apply(P,_.LZ(X));X.length&&HUt(this,P,K,H,X.length,[]);return f};
ou.prototype.splice=function(K,X,F){var P=_.Ls.apply(3,arguments),H=this,f=DK(function(){return H.getWithPath(K)});
if(!(f instanceof Array))throw Error("vg");X<0?X=f.length-Math.floor(-X):X&&(X=Math.floor(X));var u=f.splice.apply(f,[X,F].concat(_.LZ(P)));(P.length||u.length)&&HUt(this,f,K,X,P.length,u);return u};
ou.prototype.unshift=function(K){var X=_.Ls.apply(1,arguments),F=this,P=DK(function(){return F.getWithPath(K)});
if(!(P instanceof Array))throw Error("wg");var H=P.unshift.apply(P,_.LZ(X));X.length&&HUt(this,P,K,0,X.length,[]);return H};var DrN=!0,ufT=!1,VGP=!1,qaU=!1,LE=!1,JUT=0;qaU=!1;JUT=0;DrN=!0;LE=ufT=VGP=!1;var TP=function(K,X,F){this.model=K;this.unknownSignalResolver=X;this.options=F;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];X=_.D(cNn());K=X.next().value;X=X.next().value;this.owner=K;this.disposeImpl=X};
TP.prototype.dispose=function(){if(!this.isDisposed){for(var K=_.D(this.childSignalProxies),X=K.next();!X.done;X=K.next())X.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var ZUL=function(K,X){K=_.Ng(K.owner);try{X()}finally{_.Ng(K)}};
TP.prototype.effect=function(K){ZUL(this,function(){_.ys(K)})};
var YaU=function(K,X){K.options!=null||(K.options={});var F;(F=K.options).immutableProps!=null||(F.immutableProps=new Set);K.options.immutableProps.add(X)},O5O=function(K,X){X=""+X;
QQt(K,X);var F,P;if((F=K.options)==null?0:(P=F.immutableProps)==null?0:P.has(X))return!0;var H;if((H=K.model.__signalCache)==null?0:H.has(X))F=K.model.__signalCache.get(X),Array.isArray(F)&&YaU(K,X);var f,u,J;return(J=(f=K.options)==null?void 0:(u=f.immutableProps)==null?void 0:u.has(X))!=null?J:!1},MGt=function(K,X){var F;
K.unknownSignalResolver&&(F=K.unknownSignalResolver(X));var P,H;((P=K.options)==null?0:(H=P.immutableProps)==null?0:H.has(X))?F!=null||(F=new FjO(_.u_(K.model[X],void 0,"bgwlkd"))):F!=null||(F=new ou(_.u_(K.model[X],void 0,"V1hou")));var f=K.model.hostElement;Object.defineProperty(K.model,X,{get:function(){$S3(f,X);return F.getWithPath([])},
set:function(u){MY(f,X);K.setWithPath([X],u)},
configurable:!0});return F},QQt=function(K,X){var F,P,H;
((F=K.model.__signalCache)==null||!F.has(X))&&((P=K.options)==null?0:(H=P.externalSignalProps)==null?0:H.has(X))&&K.model[X]},ju=function(K,X){X=""+X;
var F=K.signalCache[X];if(F!==void 0)return F;F=!1;QQt(K,X);var P;if((P=K.model.__signalCache)==null?0:P.has(X))if(F=K.model.__signalCache.get(X),Array.isArray(F))F=!0,YaU(K,X);else return K.signalCache[X]=K.model.__signalCache.get(X).signal,K.signalCache[X];var H,f;P=(f=(H=K.options)==null?void 0:H.reactivityMode)!=null?f:0;var u,J;if(!((u=K.options)==null?0:(J=u.reactiveProps)==null?0:J.has(X))&&!F&&P===1)throw Error("xg`"+X);H=F?nFt(K,X):MGt(K,X);return K.signalCache[X]=H},nFt=function(K,X){var F=
Object.getOwnPropertyDescriptor(K.model.constructor.prototype,X),P=function(){return K.model[X]};
return new FjO(F&&F.get&&!F.set?P:[P,function(H){K.model[X]=H}])};
TP.prototype.getWithPath=function(K){var X=_.D(K);K=X.next().value;X=g0(X);$S3(this.model.hostElement,""+K);return ju(this,K).getWithPath(X)};
TP.prototype.setWithPath=function(K,X){if(K.length){MY(this.model.hostElement,K.join("."));var F=_.D(K);K=F.next().value;F=g0(F);ju(this,K).setWithPath(F,X)}};
TP.prototype.getPathMutationSignal=function(K){var X=_.D(K);K=X.next().value;X=g0(X);return ju(this,K).getPathMutationSignal(X)};
TP.prototype.notifyPath=function(K,X){var F=_.D(K);K=F.next().value;F=g0(F);ju(this,K).notifyPath(F,X)};
var cUE=function(K,X){if(X.type==="literal")return function(){return{rootWasDefined:!0,value:X.value}};
var F=rl(X.path),P=_.D(F),H=P.next().value;P=g0(P);var f,u;if(X.type==="path"&&(F.length===1||((f=K.options)==null?0:(u=f.immutableProps)==null?0:u.has(H))))return function(){var c=K.getWithPath(F.slice(0,1)),B=ffP(c,F.slice(1));c=c!==void 0;LE&&(c=ju(K,F[0]).wasDefined);return{rootWasDefined:c,value:B}};
var J=ju(K,H);if(X.type==="path"){var Z=J.getPathMutationSignal(P);return function(){var c=LE?J.wasDefined:WM(K.owner,function(){return J.getWithPath([])})!==void 0;
var B,L=(B=Z())==null?void 0:B.value;return{rootWasDefined:c,value:L}}}if(X.type==="splices"){var M=J.getSplicesSignal(P);
return function(){var c=M();return{rootWasDefined:LE?J.wasDefined:c!==void 0,value:c}}}var n=J.getChangeRecordSignal(P,""+H);
return function(){var c=n();return{rootWasDefined:LE?J.wasDefined:c!==void 0,value:c}}},QBw=function(K,X,F){var P=F.map(function(J){return cUE(K,J)}),H=F.length===0,f=[],u=F.length!==1||F[0].type!=="path"?!1:!0;
K.effect(function(){for(var J=P.length,Z=[],M=!!f.length,n=0;n<J;n++){var c=P[n](),B=c.rootWasDefined;c=c.value;H||(H=B);Z[n]=c;u&&(Z[n+J]=M?f[n]:Z[n],f[n]=c)}H&&WM(K.owner,function(){return void X.apply(null,_.LZ(Z))})})},uWw=function(K,X,F,P,H){var f=ju(K,X);
H!==void 0&&f.setWithPath([],H);QBw(K,function(){var u=_.Ls.apply(0,arguments);MY(K.model.hostElement,X,!0);f.setWithPath([],F.apply(null,_.LZ(u)))},P)};
TP.prototype.arrayPush=function(K){var X=_.Ls.apply(1,arguments),F=_.D(K),P=F.next().value;F=g0(F);P=ju(this,P);return P.push.apply(P,[F].concat(_.LZ(X)))};
TP.prototype.arraySplice=function(K,X,F){var P=_.Ls.apply(3,arguments),H=_.D(K),f=H.next().value;H=g0(H);f=ju(this,f);return f.splice.apply(f,[H,X,F].concat(_.LZ(P)))};
TP.prototype.arrayUnshift=function(K){var X=_.Ls.apply(1,arguments),F=_.D(K),P=F.next().value;F=g0(F);P=ju(this,P);return P.unshift.apply(P,[F].concat(_.LZ(X)))};
TP.prototype.notifySplices=function(K,X){var F=_.D(K);K=F.next().value;F=g0(F);ju(this,K).notifySplices(F,X)};var TJn=/([^\s]+?)\(([\s\S]*)\)/,SGl=/\.([^.]+)$/,AN3=/\\,/g,pYy=/&comma;/g,BJO=/\\(.)/g,rNT=[],o$P={"*":"wildcard",splices:"splices"};var m1P=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"),epy=/[A-Z]/,pAW=["class","hidden","id","on-dom-change"],lfd=new Set([].concat(_.LZ(pAW),
["if","notify-dom-change","restamp"])),v$P=new Set([].concat(_.LZ(pAW),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),afO=new Set(["restamp"]);var mx9=new Set(["className","id"]);var g$4=Symbol(),IfP=window;var zmw=window;var YaP=0,ufy=0,wl=[],ZUw=0,Dry=!1,JUy=document.createTextNode("");(new window.MutationObserver(qaP)).observe(JUy,{characterData:!0});var Wc=new Map,yQ=0,BQZ=function(K){this.mappedHandleId=K},MG4=function(K,X,F,P){this.mappedHandleId=K;
var H=this;this.mappedHandleId=K;this.callback=X;this.waitTime=F;this.schedulerPriority=P;this.handleId=_.A9.addJob(function(){H.callback();Wc.delete(H.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.r(MG4,BQZ);MG4.prototype.cancel=function(){_.A9.cancelJob(this.handleId);Wc.delete(this.mappedHandleId)};
var nF4=function(K,X){this.mappedHandleId=K;var F=this;this.mappedHandleId=K;this.callback=X;this.handleId=QQM(function(){F.callback();Wc.delete(F.mappedHandleId)})};
_.r(nF4,BQZ);nF4.prototype.cancel=function(){var K=this.handleId-ufy;K<0||wl.length<=K||(wl[K]=null);Wc.delete(this.mappedHandleId)};var Say=function(){};
Say.prototype.cancel=function(){this.jobHandle!==void 0&&(cUn(this.jobHandle),this.jobHandle=void 0)};
Say.prototype.run=function(K,X,F){var P=this;this.cancel();this.callback=K;this.jobHandle=_.dl(function(){K();P.callback=void 0},X,F)};
Say.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var pAO=new WeakMap;var SaT=aK(function(K){for(var X=K,F=0;F<3;F++)X=Object.getPrototypeOf(X);delete X.prototype.connectedCallback;var P=function(){return K.apply(this,arguments)||this};
_.r(P,K);P.prototype._attachDom=function(H){if(!H)return null;var f=(0,_.Ka)(this.hostElement);f.attachShadow({mode:"open",shadyUpgradeFragment:H});f.shadowRoot.appendChild(H);return f.shadowRoot};
P.prototype._takeAttributes=function(){for(var H=this.hostElement.attributes,f=0;f<H.length;f++){var u=H[f],J=void 0,Z=void 0;(Z=(J=this).__attributeReaction)==null||Z.call(J,u.name,null,u.value)}};
P.prototype._readyClients=function(){K.prototype._readyClients.call(this);this.root=this};
P.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);K.prototype.connectedCallback.call(this)};
_.Oi.Object.defineProperties(P,{template:{configurable:!0,enumerable:!0,get:function(){return P.prototype._template}}});
return P}),oFN=aK(function(K){var X=function(){return K.apply(this,arguments)||this};
_.r(X,K);X.prototype.created=function(){if(this.__notifyEffects)for(var F=_.D(Object.values(this.__notifyEffects)),P=F.next();!P.done;P=F.next()){P=_.D(P.value);for(var H=P.next();!H.done;H=P.next())H.value.fn=rUT}if(this.__reflectEffects)for(F=_.D(Object.values(this.__reflectEffects)),P=F.next();!P.done;P=F.next())for(P=_.D(P.value),H=P.next();!H.done;H=P.next())H.value.fn=AUd};
X.prototype._addEventListenerToNode=function(F,P,H){F=Rg(F);TB(F,P,H)||K.prototype._addEventListenerToNode.call(this,F,P,H)};
X.prototype._removeEventListenerFromNode=function(F,P,H){F=Rg(F);rg(F,P,H)||K.prototype._removeEventListenerFromNode.call(this,F,P,H)};
X.prototype._propertiesChanged=function(F,P,H){if(this.__dataToNotify&&this.__notifyEffects)for(var f=_.D(Object.keys(this.__dataToNotify)),u=f.next();!u.done;u=f.next()){u=u.value;var J=TQy(u);this.__notifyEffects[J]||delete this.__dataToNotify[u]}else this.__dataToNotify=null;K.prototype._propertiesChanged.call(this,F,P,H)};
X.prototype.fire=function(F,P,H){P=P===void 0?{}:P;var f;return _.iX(Rg((f=H==null?void 0:H.node)!=null?f:this),F,P,H)};
X.prototype._ensureAttribute=function(F,P){var H=Rg(this);H.hasAttribute(F)||AA(H,P,F)};
X.prototype.isLightDescendant=function(F){var P=Rg(this);return Rg(P)!==F&&_.C$(P).contains(F)&&_.C$(P).getRootNode()===_.C$(F).getRootNode()};
return X});
_.Z_.ready=function(){var K;((K=this.hostElement)!=null?K:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var X;((X=this.hostElement)!=null?X:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.SL._subscribeIronResize=function(K){var X;((X=K.hostElement)!=null?X:K).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.SL._unsubscribeIronResize=function(K){var X;((X=K.hostElement)!=null?X:K).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var yUn=[Array,Boolean,Date,Number,Object,String],hA=function(K,X,F,P){this.polySiInfo=K;this.polySiParams=X;this.polySiContext=F;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;P||this instanceof HTMLElement&&(P=this);if(!P)throw Error("Eg");this.allowedProps=X.allowedProps;this.hostElement=P;this.is=K.is;this.upgradeDisabled=!!X.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");K=new Set(X.reactiveSchemas.filter(function(H){return H.type!==
"observe"}).map(function(H){return H.propertyKey}));
this.signalProxy=new TP(this,void 0,{reactiveProps:K,reactivityMode:X.reactivityMode});this.__dataHasAccessor={};X=_.D(X.reactiveSchemas);for(K=X.next();!K.done;K=X.next())K=K.value,K.type==="signal"&&(this.__dataHasAccessor[K.propertyKey]=!0);this.upgradeDisabled||LjU(this)};
hA.prototype.getExtraMethodsToForward=function(){return[]};
var LjU=function(K){K.polySiContext.didRegister||(K.registered(),K.polySiContext.didRegister=!0);K.polySiContext.finalizedTemplate||(K.polySiContext.finalizedTemplate={},K.polySiParams.templateGetter&&(K.polySiContext.finalizedTemplate.processedTemplate=f5T(K.polySiParams.templateGetter,K.polySiParams.is)));TQT(K);var X=K.hostElement;X.loggingStatus!=null||(X.loggingStatus={});X.loggingStatus.isInitializing=!0;DK(function(){return void K.created()});
X.loggingStatus.isInitializing=!1;K.isPolySiElementConnected&&rUu(K)},rUu=function(K){K.didCallReady||(DK(function(){return void K.ready()}),K.didCallReady=!0);
K.isAttached=!0;K.attached()};
_.z=hA.prototype;_.z.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||rUu(this)};
_.z.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.z.attributeChangedCallback=function(K,X,F){if(this.upgradeDisabled)K==="disable-upgrade"&&F===null&&(this.upgradeDisabled=!1,LjU(this));else if(X!==F){var P=_.uX(K),H=this.polySiContext.typesForSignals[P];if(H&&(!this.reflecting||_.S("polysi_attribute_changed_serializing_killswitch"))){switch(H){case Object:try{var f=JSON.parse(F)}catch(J){f=F}break;case Array:try{f=JSON.parse(F)}catch(J){f=null}break;case Date:f=isNaN(F)?String(F):Number(F);f=new Date(f);break;case Boolean:f=F!==null;break;case Number:f=
Number(F);break;default:f=F}this[P]=f}P=_.D(this.polySiParams.behaviors);for(H=P.next();!H.done;H=P.next())f=void 0,(f=H.value.attributeChanged)==null||f.call(this,K,X,F);var u;(u=this.attributeChanged)==null||u.call(this,K,X,F)}};
_.z.attributeChangedCallbackWrapper=function(K,X,F){this.attributeChangedCallback(K,X,F)};
_.z.setPropertiesFromInitialAttributeValues=function(){for(var K=0;K<this.hostElement.attributes.length;K++){var X=this.hostElement.attributes[K];(X.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(X.name))&&this.attributeChangedCallback(X.name,null,X.value)}};
_.z.created=function(){this.provide=this.polySiParams.provide;var K;(K=this.initializeInjection)==null||K.call(this);K=_.D(this.polySiParams.reactiveSchemas);for(var X=K.next();!X.done;X=K.next())X=X.value,X.type==="signal"&&(this.mutablePropNames.add(X.propertyKey),ju(this.signalProxy,X.propertyKey));wAq(this,this.polySiInfo,this.polySiParams.behaviors);K=_.D(this.polySiParams.reactiveSchemas);for(X=K.next();!X.done;X=K.next())X=X.value,X.type==="signal"&&X.value!==void 0&&(this.signalProxy.model[X.propertyKey]=
typeof X.value==="function"?X.value.call(this):X.value);if(this.polySiParams.signalProperties)for(K=_.D(this.polySiParams.signalProperties),X=K.next();!X.done;X=K.next()){X=X.value;var F=void 0;((F=this.__signalCache)==null?0:F.has(X))||(this.signalProxy.model[X]=void 0)}qaU||AUC(this);jQn(this);K=_.D(this.polySiParams.behaviors);for(X=K.next();!X.done;X=K.next())F=void 0,(F=X.value.created)==null||F.call(this);var P;(P=this.polySiInfo.created)==null||P.call(this)};
_.z.registered=function(){var K=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var X=Object.getPrototypeOf(this);X.addReactiveSchema=function(J){K.polySiParams.reactiveSchemas.push(J)};
for(var F=_.D(this.polySiParams.behaviors),P=F.next();!P.done;P=F.next()){var H=void 0;(H=P.value.beforeRegister)==null||H.call(X)}var f;(f=this.polySiInfo.beforeRegister)==null||f.call(X);X.addReactiveSchema=dry;F=_.D(this.polySiParams.behaviors);for(P=F.next();!P.done;P=F.next())H=void 0,(H=P.value.registered)==null||H.call(X);var u;(u=this.polySiInfo.registered)==null||u.call(X)};
_.z.ready=function(){var K;(K=this.beforeReady)==null||K.call(this);qaU&&AUC(this);var X;if(K=(X=this.polySiContext.finalizedTemplate)==null?void 0:X.processedTemplate){K=sQy(K.template,K.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:K.hasInsertionPoint,thisCtx:this});X=K.nodesById;K=K.root;var F=this.hostElement;var P=P===void 0?!1:P;F=(0,_.Ka)(F);if(!F.attachShadow)throw Error("zd");if(!F.shadowRoot||P)F.attachShadow({mode:"open",shadyUpgradeFragment:K}),F.shadowRoot.appendChild(K);
this.root=F.shadowRoot;this.$=X}jQE(this);P=_.D(this.polySiParams.behaviors);for(X=P.next();!X.done;X=P.next())K=void 0,(K=X.value.ready)==null||K.call(this);var H;(H=this.polySiInfo.ready)==null||H.call(this)};
_.z.attached=function(){for(var K=_.D(this.polySiParams.behaviors),X=K.next();!X.done;X=K.next()){var F=void 0;(F=X.value.attached)==null||F.call(this)}var P;(P=this.polySiInfo.attached)==null||P.call(this)};
_.z.detached=function(){for(var K=_.D(this.polySiParams.behaviors),X=K.next();!X.done;X=K.next()){var F=void 0;(F=X.value.detached)==null||F.call(this)}var P;(P=this.polySiInfo.detached)==null||P.call(this)};
var TQT=function(K){for(var X=_.D(K.polySiParams.behaviors),F=X.next();!F.done;F=X.next())if(F=F.value,F.listeners)for(var P in F.listeners)HUM(K,K.hostElement,P,F.listeners[P]);if(K.polySiInfo.listeners)for(var H in K.polySiInfo.listeners)HUM(K,K.hostElement,H,K.polySiInfo.listeners[H])},HUM=function(K,X,F,P,H){K=zpM(K,P,H);
TB(X,F,K)||X.addEventListener(F,K);return K},AUC=function(K){for(var X=_.D(K.polySiParams.reactiveSchemas),F=X.next();!F.done;F=X.next())F=F.value,F.type==="compute"||F.type==="computeWithMethod"?qGP(K.signalProxy,F,K):F.type==="redux"?YGd(K.signalProxy,F,K.store):F.type==="signal"&&F.readOnly&&Z53(K.signalProxy,F)},jQE=function(K){for(var X=_.D(K.polySiParams.reactiveSchemas),F=X.next(),P={};!F.done;P={schema$jscomp$12:void 0},F=X.next())P.schema$jscomp$12=F.value,P.schema$jscomp$12.type==="notify"?
MZl(K.signalProxy,P.schema$jscomp$12,K.hostElement):P.schema$jscomp$12.type==="observe"?n$y(K.signalProxy,P.schema$jscomp$12,K):P.schema$jscomp$12.type==="reflect"&&K.signalProxy.effect(function(f){return function(){var u=K.signalProxy.getWithPath([f.schema$jscomp$12.propertyKey]);
K.reflecting=!0;wYy(K.hostElement,f.schema$jscomp$12.propertyKey,u,!0);K.reflecting=!1}}(P));
if(K.reflectedAttributes)for(X=_.D(Object.entries(K.reflectedAttributes)),P=X.next(),F={};!P.done;F={key$jscomp$880:void 0,value$jscomp$8837:void 0},P=X.next()){var H=_.D(P.value);P=H.next().value;H=H.next().value;F.key$jscomp$880=P;F.value$jscomp$8837=H;K.signalProxy.effect(function(f){return function(){K.reflecting=!0;wYy(K.hostElement,f.key$jscomp$880,(0,f.value$jscomp$8837)(),!0);K.reflecting=!1}}(F))}};
_.z=hA.prototype;_.z._setPendingProperty=function(K,X){this.set(K,X);return!1};
_.z._enableProperties=function(){};
_.z._setPendingPropertyOrPath=function(K,X){this.notifyPath(K,X);return!1};
_.z._addPropertyEffect=function(){};
_.z._stampTemplate=function(){throw Error("Fg");};
_.z.fire=function(K,X,F){X=X===void 0?{}:X;F=F===void 0?{}:F;var P,H,f={bubbles:(P=F.bubbles)!=null?P:!0,cancelable:!!F.cancelable,composed:(H=F.composed)!=null?H:!0},u;return _.iX(em4((u=F.node)!=null?u:this.hostElement),K,X,f)};
_.z.get=function(K,X){var F=rl(K);return X?ffP(X,F):K==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(F)};
_.z.linkPaths=function(){};
_.z.listen=function(K,X,F){K=em4(K);this.boundListeners!=null||(this.boundListeners=new WeakMap);var P=this.boundListeners.get(K);P||(P={},this.boundListeners.set(K,P));var H=X+F;P[H]||(P[H]=HUM(this,K,X,F))};
_.z.notifyPath=function(K,X){this.signalProxy.notifyPath(rl(K),arguments.length===2?{value:X}:void 0)};
_.z.canNotifyPath=function(K){return this.mutablePropNames.has(K)&&!O5O(this.signalProxy,K)};
_.z.notifySplices=function(K,X){this.signalProxy.notifySplices(rl(K),X)};
_.z.pop=function(K){var X=this.signalProxy;K=rl(K);var F=_.D(K);K=F.next().value;F=g0(F);return ju(X,K).pop(F)};
_.z.push=function(K){var X=_.Ls.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[rl(K)].concat(_.LZ(X)))};
_.z.set=function(K,X,F){if(F)throw Error("Gg");K==="hidden"?this.hostElement.hidden=!!X:this.signalProxy.setWithPath(rl(K),X)};
_.z.setProperties=function(K){K=_.D(Object.entries(K));for(var X=K.next();!X.done;X=K.next()){var F=_.D(X.value);X=F.next().value;F=F.next().value;this[X]=F}};
_.z.splice=function(K,X,F){var P=_.Ls.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[rl(K),X,F].concat(_.LZ(P)))};
_.z.unlinkPaths=function(){};
_.z.unlisten=function(K,X,F){K=em4(K);if(this.boundListeners){var P=this.boundListeners.get(K);if(P){F=X+F;var H=P[F];H&&(rg(K,X,H)||K.removeEventListener(X,H),delete P[F])}}};
_.z.unshift=function(K){var X=_.Ls.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[rl(K)].concat(_.LZ(X)))};
_.Oi.Object.defineProperties(hA.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 OUP=[Array,Boolean,Date,Number,Object,String];var EFn=!1;var rk=function(){var K=HTMLElement.apply(this,arguments)||this;K.restamp=!1;K.notifyDomChange=!1;K.JSC$11419_didCallConnected=!1;K.JSC$11419_renderDebouncer=null;K.disableTemplateUpdateSignalImpl=ma()?void 0:_.u_(!1,void 0,"zLXz1e");var X;K.getDisableTemplateUpdate=(X=K.disableTemplateUpdateSignalImpl)==null?void 0:X[0];var F;K.setDisableTemplateUpdate=(F=K.disableTemplateUpdateSignalImpl)==null?void 0:F[1];return K};
_.r(rk,HTMLElement);var wAV=function(K){K.conditionSignalImpl!=null||(K.conditionSignalImpl=new ou(_.u_(!1,void 0,"wcuOQ")));return K.conditionSignalImpl};
_.z=rk.prototype;_.z.showHideChildren=function(K){yUE(this,K,this.if)};
_.z.attributeChangedCallback=function(K,X,F){if(this.JSC$11419_didCallConnected)throw Error("Kg`"+K);K==="notify-dom-change"?this.notifyDomChange=F!==null:K==="restamp"&&(this.restamp=F!==null)};
_.z.debounceRender=function(){this.JSC$11419_renderDebouncer=_.xs(this.JSC$11419_renderDebouncer,jW,this.JSC$11419_renderImpl.bind(this));_.IK(this.JSC$11419_renderDebouncer)};
_.z.disconnectedCallback=function(){var K=(0,_.Ka)(this).parentNode;(!K||K.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in K&&!K.host)&&WjN(this)};
_.z.connectedCallback=function(){var K=this;this.JSC$11419_didCallConnected=!0;DrN?bUP():this.style.display="none";this.parentSignalProxy.effect(function(){wAV(K).getWithPath([]);K.debounceRender()})};
_.z.render=function(){_.Fz()};
_.z.JSC$11419_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var K=this.if;if(K){a:{var X=(0,_.Ka)(this).parentNode;if(this.hasInstance()){var F=this.instance.children;if((F==null?0:F.length)&&(0,_.Ka)(this).previousSibling!==F[F.length-1])for(var P=0;P<F.length;P++)(0,_.Ka)(X).insertBefore(F[P],this)}else{if(!X){X=!1;break a}drT(this,X)}X=!0}if(!X)return}else this.restamp&&WjN(this);yUE(this,!1,K);K&&emt(this);ufT&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.z.hasInstance=function(){return!!this.instance};
var drT=function(K,X){var F=K.parentSignalProxy;if(ma()){var P=_.D(_.u_(!0,void 0,"wXzgnc"));var H=P.next().value;P=P.next().value;F=K.parentSignalProxy}else{var f;var u=new TP((f=RmO(K))!=null?f:{},function(Z){var M=ju(K.parentSignalProxy,Z).getChangeRecordSignal([]);Z=_.u_(void 0,void 0,"mryEkc");var n=new ou(Z);u.effect(function(){if(K.getDisableTemplateUpdate&&!K.getDisableTemplateUpdate()){var c=M();n.notifyPath(rl(c.path),{value:c.value})}});
return n});
K.parentSignalProxy.childSignalProxies.push(u);var J=F=u}F=sQy(K.templateInfo,K.templateInfo.nodeInfoList,F,{eventListenerHost:K.eventListenerHost,hasInsertionPoint:K.templateInfo.hasInsertionPoint,thisCtx:K.eventListenerHost,enabledSignal:ma()?H:void 0,getModel:function(){return RmO(K)}}).root;
K.instance={root:F,children:[],hidden:!1,signalProxy:J,getTemplateUpdatesEnabled:H,setTemplateUpdatesEnabled:P};J=_.D(F.childNodes);for(H=J.next();!H.done;H=J.next())K.instance.children.push(H.value);(0,_.Ka)(X).insertBefore(K.instance.root,K)},RmO=function(K){if((K=K.parentSignalProxy.model)&&!K.hostElement){var X={},F;
for(F in K)K.hasOwnProperty(F)&&(X[F]=K[F]);return X}},WjN=function(K){if(K.instance){var X=K.instance.children;
if(X.length){var F=(0,_.Ka)(X[0]).parentNode;if(F){F=(0,_.Ka)(F);for(var P=0;P<X.length;P++)F.removeChild(X[P])}}ma()?K.instance.setTemplateUpdatesEnabled(!1):K.instance.signalProxy.dispose();K.instance=void 0}},yUE=function(K,X,F){X=X||!F;
K.instance&&K.instance.hidden!==X&&(K.instance.hidden=X,gFl(X,K.instance.children))},emt=function(K){if(ma()){var X=K.instance;
X&&WM(K.parentSignalProxy.owner,function(){return!X.getTemplateUpdatesEnabled()})&&X.setTemplateUpdatesEnabled(!0)}else K.setDisableTemplateUpdate(!1)};
_.Oi.Object.defineProperties(rk.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var K=this;return WM(this.parentSignalProxy.owner,function(){return wAV(K).getWithPath([])})},
set:function(K){K||(ma()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));wAV(this).setWithPath([],!!K)}}});
_.Oi.Object.defineProperties(rk,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",rk);var UrZ=[],Ak=function(){var K=HTMLElement.apply(this,arguments)||this;K.as="item";K.indexAs="index";K.itemsIndexAs="itemsIndex";K.targetFramerate=20;K.notifyDomChange=!1;K.isDetached=!1;K.JSC$11426_renderDebouncer=null;K.instances=[];K.chunkingId=null;K.chunkCount=null;K.shouldMeasureChunk=!1;K.shouldContinueChunking=!1;K.renderStartTime=null;K.JSC$11426_didCallConnected=!1;return K};
_.r(Ak,HTMLElement);var hmt=function(K){K.itemSignalImpl!=null||(K.itemSignalImpl=new ou(_.u_(UrZ,void 0,"YBrqgf")));return K.itemSignalImpl},mrO=function(K,X){Array.isArray(X)||(X=UrZ);
hmt(K).setWithPath([],X)};
_.z=Ak.prototype;_.z.showHideChildren=function(K){for(var X=_.D(this.instances),F=X.next();!F.done;F=X.next())gFl(K,F.value.children)};
_.z.notifyPath=function(K,X){K=rl(K);K[0]==="items"&&(K.length===1?mrO(this,X):hmt(this).setWithPath(K.slice(1),X))};
_.z.canNotifyPath=function(K){return K==="items"};
_.z.attributeChangedCallback=function(K,X,F){if(this.JSC$11426_didCallConnected)throw Error("Lg`"+K);K==="as"?this.as=F:K==="index-as"?this.indexAs=F:K==="items-index-as"?this.itemsIndexAs=F:K==="initial-count"?this.initialCount=Number(F):K==="notify-dom-change"?this.notifyDomChange=F!==null:K==="target-framerate"&&(this.targetFramerate=Number(F))};
_.z.disconnectedCallback=function(){this.isDetached=!0;for(var K=0;K<this.instances.length;K++)GkV(this,K);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.z.connectedCallback=function(){var K=this,X=hmt(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var H=X(),f=rl(H.path);if(f[0]===void 0||f[0]==="splices"||f[0]==="length")K.debounceRender();else{var u=f[0];if(u=K.instances[typeof u==="string"?Math.floor(Number(u)):u])f=[K.as].concat(_.LZ(f.slice(1))),u.signalProxy.notifyPath(f,H)}});
this.JSC$11426_didCallConnected=!0;DrN?bUP():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var F=(0,_.Ka)((0,_.Ka)(this).parentNode),P=0;P<this.instances.length;P++)F.insertBefore(this.instances[P].root,this);this.chunkingId&&this.render()}};
_.z.debounceRender=function(){this.JSC$11426_renderDebouncer=_.xs(this.JSC$11426_renderDebouncer,jW,this.JSC$11426_renderImpl.bind(this));_.IK(this.JSC$11426_renderDebouncer)};
_.z.render=function(){this.debounceRender();_.Fz()};
_.z.JSC$11426_renderImpl=function(){var K=this,X=this.items,F=l5U(this,X.length);vFT(this,X,F);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){K.chunkingId=null;if(K.shouldMeasureChunk){var P=performance.now()-K.renderStartTime;K.chunkCount=Math.round(Math.ceil(1E3/K.targetFramerate)/P*K.chunkCount)||1}K.shouldContinueChunking&&K.debounceRender()}));
ufT&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var l5U=function(K,X){var F=X,P=K.instances.length;if(K.initialCount){if(K.chunkCount){var H=Math.min(Math.max(X-P,0),K.chunkCount);F=Math.min(P+H,X)}else F=Math.min(X,K.initialCount),H=Math.max(F-P,0),K.chunkCount=H||1;K.shouldMeasureChunk=H===K.chunkCount;K.shouldContinueChunking=F<X;K.renderStartTime=performance.now()}return F},vFT=function(K,X,F){for(var P=0;P<F;P++){var H=K.instances[P],f=X[P];
H?(H.signalProxy.setWithPath([K.as],f),H.signalProxy.setWithPath([K.indexAs],P)):a5L(K,f,P)}for(X=K.instances.length-1;X>=P;X--)F=K,H=X,GkV(F,H),_.D(F.instances.splice(H,1)).next().value.signalProxy.dispose()},GkV=function(K,X){K=K.instances[X];
X=(0,_.Ka)(K.root);for(var F=0;F<K.children.length;F++)X.appendChild(K.children[F])},a5L=function(K,X,F){var P={};
X=Object.assign({},tGW(K),(P[K.as]=X,P[K.indexAs]=F,P[K.itemsIndexAs]=F,P));var H=new TP(X,function(u){if(u!==K.as&&u!==K.indexAs){if(u===K.itemsIndexAs)return ju(H,K.indexAs);var J=ju(K.parentSignalProxy,u).getChangeRecordSignal([]);u=_.u_(void 0,void 0,"Mu2Bwb");var Z=new ou(u);H.effect(function(){var M=J();Z.notifyPath(rl(M.path),{value:M.value})});
return Z}});
K.parentSignalProxy.childSignalProxies.push(H);P=sQy(K.templateInfo,K.templateInfo.nodeInfoList,H,{eventListenerHost:K.eventListenerHost,getModel:function(){var u={};return Object.assign({},tGW(K),(u[K.as]=H.model[K.as],u[K.indexAs]=H.model[K.indexAs],u[K.itemsIndexAs]=H.model[K.indexAs],u))},
hasInsertionPoint:K.templateInfo.hasInsertionPoint,thisCtx:K.eventListenerHost,methodInvocationRequirement:JUT,enabledSignal:K.stampingEnabled}).root;X={root:P,children:[],signalProxy:H};P=_.D(P.childNodes);for(var f=P.next();!f.done;f=P.next())X.children.push(f.value);P=(P=K.instances[F+1])?P.children[0]:K;(0,_.Ka)((0,_.Ka)(K).parentNode).insertBefore(X.root,P);K.instances[F]=X},tGW=function(K){if((K=K.parentSignalProxy.model)&&!K.hostElement){var X={},F;
for(F in K)K.hasOwnProperty(F)&&(X[F]=K[F]);return X}};
Ak.prototype.itemForElement=function(K){var X=this,F=this.instances.find(function(P){return P.children.includes(K)});
if(F)return WM(this.parentSignalProxy.owner,function(){return F.signalProxy.getWithPath([X.as])})};
Ak.prototype.indexForElement=function(K){var X=this.instances.findIndex(function(F){return F.children.includes(K)});
return X>=0?X:void 0};
_.Oi.Object.defineProperties(Ak.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var K=this;return WM(this.parentSignalProxy.owner,function(){return hmt(K).getWithPath([])})},
set:function(K){mrO(this,K)}},
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}}});
_.Oi.Object.defineProperties(Ak,{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",Ak);var $rT,OUL;_.jE=new _.Oh("STATE_STORE_TOKEN");$rT=new _.Oh("SELECT_TOKEN");OUL=new _.Oh("DISPATCH_TOKEN");var kkl={getSelectFn:function(){var K;return(K=_.i9().resolve(_.Nu($rT)))!=null?K:CeP},
getDispatchFn:function(){var K;return(K=_.i9().resolve(_.Nu(OUL)))!=null?K:_.Gb().dispatch.bind(_.Gb())},
getAppStore:function(){return _.i9().resolve(_.jE)}},NQM,I5d=!1;var FLP=void 0;var VGL=function(){};
VGL.prototype.hasAttribute=function(K){if(K==="dir")return!1;if(K==="disable-upgrade"){var X,F;return(F=(X=this.hostElement)==null?void 0:X.hasAttribute("disable-upgrade"))!=null?F:!1}throw Error("Mg`"+K);};
VGL.prototype.attributeChangedCallbackWrapper=function(K,X,F){if(K==="disable-upgrade"&&this.__isUpgradeDisabled&&F===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var P;((P=this.hostElement)!=null?P:this).isConnected&&this.connectedCallback()}else X===F||this.__isReflecting||this.attributeChangedCallback(K,X,F)};
VGL.prototype.getExtraMethodsToForward=function(){for(var K=this,X=[],F=_.D(gFQ),P=F.next(),H={};!P.done;H={tagName$jscomp$52:void 0,name$jscomp$531:void 0},P=F.next())H.name$jscomp$531=P.value,P=void 0,H.name$jscomp$531==="_setPendingProperty"?(H.tagName$jscomp$52=this.hostElement.tagName.toLowerCase(),P=function(f){return function(u,J,Z){QQ(f.tagName$jscomp$52,u,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return K._setPendingProperty(u,J,Z)}}(H)):P=function(f){return function(){return K[f.name$jscomp$531].apply(K,
_.LZ(_.Ls.apply(0,arguments)))}}(H),X.push([H.name$jscomp$531,
P]);return X};
for(var fMl=oFN(SaT((0,_.JL)(VGL))),Jxn=["disabled","disable-upgrade"],EFE=(0,_.JL)(function(){}),bUU=new Set(Object.getOwnPropertyNames(EFE.prototype)),nQl=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.LZ(bUU))),YYw=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),gFQ=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),CeU=new Set([].concat(_.LZ(YYw),_.LZ(gFQ),_.LZ(bUU))),NQt=_.D(CeU),iUW=NQt.next();!iUW.done;iUW=NQt.next())lYP.add(iUW.value);var MX4={created:function(){jQn(this);this.initializeInjection()}};var AxP=!1,Eo=window.ShadyDOM,Ux9=["appendChild","insertBefore","removeChild","replaceChild"],Rwq=[Node];Eo&&Rwq.push(Eo.Wrapper);var aMP,tXP,VXd={};var NY=new Set,bb="",gQl="";var Ca,ib=new Set;var KTq=new Set("context didCallReady is info params signalProxy".split(" ")),FTO="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),Ph9="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var xrW=zY({entities:P$3}),I5C=new vv(xrW);var wk=function(){return _.ub.apply(this,arguments)||this};
_.r(wk,_.ub);_.Oi.Object.defineProperties(wk.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return I5C}}});
wk=_.O([_.qY()],wk);_.yj=[BU.prototype,wk.prototype];_.WU={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var K=this,X={};setTimeout(function(){var F;return _.iX((F=K.hostElement)!=null?F:K,"yt-live-chat-add-tooltip-target",X)},0);
this.handler_=X.handler},
detached:function(){if(this.handler_){var K;this.handler_.removeElementFromSupportingTooltips((K=this.hostElement)!=null?K:this)}this.handler_=null}}};_.Pn=new _.Oh("ICON_MANAGER_TOKEN");var kkZ=[48,20,18,16,15,13,12],An9=new Map,BoO=new Set,nJM=new Set,p8l=new Set,M5q=new Set,cnd=new Set,oJP=new Promise(function(K){var X=!1,F=!1,P=!1,H=[],f=function(u){if("detail"in u)if(u=u.detail,u.name==="yt-icons")S43(u),X=!0;else if(u.name==="yt-sys-icons")S43(u),F=!0;else{var J;((J=u.name)==null?0:J.includes("yt-sys-icons"))&&u.size!==24&&(S43(u,!0),H.push(u.size),H.length===kkZ.length&&(P=!0))}X&&F&&P&&(window.removeEventListener("iron-iconset-added",f),K())};
window.addEventListener("iron-iconset-added",f)}),ToM=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"]]);_.dk={};_.dk.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.lj,computeHref_:function(K,X){X=X===void 0?!1:X;if(!K||K.commandExecutorCommand)return null;var F=gO3(K,X);return X||F!==null?F?_.S("enable_polymer_resin")?_.ps(F).toString():F:null:(_.yy(new _.nG("computeHref was null",this.is,K)),null)},
computeOptionalHref_:function(K){return this.computeHref_(K,!0)},
computeNofollow_:function(K){return K?m0y(K)?"nofollow":null:null},
computeIcon_:function(K){return K&&K.iconType?_.Fl(K.iconType):""},
resolveCommand:function(K,X,F){X=X===void 0?{}:X;return _.sP(K,this.hostElement,X,F===void 0?!1:F)}};var XsV,eE;_.KLN={};XsV=null;
eE={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_=LdT(this.viewroot));_.dl(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var K=this;this.unobserve_();if(_.S("kevlar_vimio_use_shared_monitor"))dkO(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 X=[];this.visibilityOptionVisible_&&X.push(this.visibilityObserver.observe(this.hostElement,function(){return K.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&X.push(this.visibilityObserver.observe(this.hostElement,function(){return K.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&X.push(this.visibilityObserver.observe(this.hostElement,function(){return K.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=X}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){jdT(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 K=_.RR(this.parentNode,function(F){var P,H=(P=F.polymerController)!=null?P:F;return!!H.getVisibilityObserverForChild&&H.getVisibilityObserverForChild()},!0);
if(K){var X;this.localVisibilityObserver_=((X=K.polymerController)!=null?X:K).getVisibilityObserverForChild()}else XsV||(XsV=LdT()),this.localVisibilityObserver_=XsV;return this.localVisibilityObserver_},visibilityCallback:function(K){K?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.S("kevlar_use_vimio_behavior")||(eE={});eE&&!_.S("kevlar_use_vimio_behavior")&&(delete eE.attached,delete eE.detached);_.KLN.YtVisibilityObserverBehavior=[eE];var FLU={};FLU.YtVisualElementBehavior=[_.KLN.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.S("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.S("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var K=this.getScreenLayer&&this.getScreenLayer(),X=this.getVisibilityLogger();X&&X.reportShown(this,void 0,K)}},
onHidden:function(){if(_.S("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.S("kevlar_vimio_use_shared_monitor")){var K=this.getScreenLayer&&this.getScreenLayer(),X=this.getVisibilityLogger();X&&X.reportHidden(this,void 0,K)}},
getVisibilityLogger:function(){return _.S("kevlar_use_vimio_behavior")?_.fB():null},
shouldSkipLogging:function(){if(_.e8("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var K=this.getParentRenderer&&this.getParentRenderer();if(!K)return!1;var X,F=(X=K.polymerController)!=null?X:K;if(!F.data)return!1;K=this.data.trackingParams;K=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:K;var P;X=(P=F.data)==null?void 0:P.trackingParams;var H,f;X=((H=F.data)==null?0:H.loggingDirectives)?(f=F.data)==null?void 0:f.loggingDirectives.trackingParams:X;return K&&X&&K===
X}}];var Ukw=new Map,M0;var pqO=function(K){this.layer=K},Tl=function(K){return K.layer!==void 0?K.layer:K.parent?Tl(K.parent):K.layer=0};var ajy;_.k={};ajy=0;_.k.YtRendererBehavior=[_.dk.YtComponentBehavior,FLU.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_:_.S("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var K,X;(X=(K=this.monitorScrollElement)!=null?K:this.hostElement)==null||X.removeEventListener("scroll",_.Pc(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();eS9(this.hostElement);QBL(_.Z9(),this.hostElement);$X.delete(this.hostElement)},
registerRenderer:function(K){var X;((X=K.polymerController)!=null?X:K).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(K),this.markDirty())},
unregisterRenderer_:function(K){this.useVimio_||(this.childCache_.delete(K),this.markDirty())},
attached:function(){var K=this,X=this.getParentRenderer();if(X){var F,P,H;(P=(F=(H=X.polymerController)!=null?H:X).registerRenderer)==null||P.call(F,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var f,u;(u=(f=this.monitorScrollElement)!=null?f:this.hostElement)==null||u.addEventListener("scroll",_.Pc(this,this.onScroll))}_.A9.addJob(function(){hSl(K.hostElement)},8);
F=new pqO(this.screenLayer||void 0);(X=Os(X))&&X.layerNode&&(F.parent=X.layerNode);X={};RLO(this.hostElement,(X.isRenderer=!0,X.layerNode=F,X[rV]=this.data,X))},
getParentRenderer:function(){for(var K=this.hostElement.parentNode,X,F;K&&((X=Os(K))==null||!X.isRenderer)&&!((F=K.polymerController)!=null?F:K).isRenderer_;)K=K.parentNode||K.host;return K},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.S("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.RU("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.S("debug_web_ve_data")&&this.data.trackingParams){var K="";try{K=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(F){_.jF(F)}if(K){var X=fvM(K,1);X!==void 0&&(this.hostElement.dataset.veIndex=String(X));K=fvM(K,2);
K!==void 0&&(this.hostElement.dataset.ve=String(K))}}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,_.S("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.QB(this.data.loggingDirectives.trackingParams)),this.visualElement=_.Da(_.uH(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var K=this.data.targetId;_.n$T(_.Z9(),K,this.hostElement)}else QBL(_.Z9(),this.hostElement)},
onScroll:function(){var K=Date.now();K-this.lastHandledScroll_<50||(this.lastHandledScroll_=K,this.markDirty())},
markDirty:function(){_.S("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():t5q(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var K=this.getParentRenderer();if(K&&(K=Os(K))&&K.layerNode)return Tl(K.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.LZ(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var K=0;K<this.data.impressionEndpoints.length;K++)this.sendImpression(this.data.impressionEndpoints[K]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(K){K.clickTrackingParams&&delete K.clickTrackingParams;var X,F;(K==null?0:(X=K.commandMetadata)==null?0:(F=X.webCommandMetadata)==null?0:F.sendPost)?_.Kl(this.hostElement,[K,{impression:!0}]):_.X0(this.hostElement,[K],this.hostElement)},
logExplicitClick:function(K){var X=_.AD(this.getScreenLayer());if(X){var F,P=(F=K.polymerController)!=null?F:K;K=P.visualElement;P=P.trackingParams||P.clickTrackingParams;!K&&P&&(K=_.QB(P));K&&_.vW(X,K)}}}];var P8Z={},Ru=function(){return _.ub.apply(this,arguments)||this};
_.r(Ru,_.ub);Ru.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Ru.prototype.onPdgItemBehaviorClick=Ru.prototype.onPdgItemBehaviorClick;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Ru.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Ru.prototype,"data",void 0);_.O([_.Hc("click"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],Ru.prototype,"onPdgItemBehaviorClick",null);Ru=_.O([_.qY()],Ru);P8Z.YtPdgLiveChatItemBehavior=[Ru.prototype,_.k.YtRendererBehavior];var HiZ;var sbL;_.Ux={};_.Ux.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var hk=function(){var K=gg.apply(this,arguments)||this;K.switchTemplateAtRegistration=!1;return K};
_.r(hk,gg);hk.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||gJl(this),_.oFy(this,"doRender"),this.doRender())};
hk.prototype.debounceRender=function(){this.templatingFn&&_.eu(this,"doRender",this.doRender)};
hk.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.jF(Error("Wg"))};
hk.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
hk=_.O([Lld()],hk);var zwT=hk;var fMQ=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,mi={},No3=(mi[1]={filterString:null,isUnwrappable:null,unwrap:null},mi[2]={filterString:function(K,X,F){return iC(F)},
isUnwrappable:function(K){return K instanceof ji},
unwrap:function(K){return yz(K)}},mi[3]={filterString:function(K,X,F){return fMQ.test(F)?F:c$.toString()},
isUnwrappable:function(K){return Yi(K)},
unwrap:function(K){return _.Qz(K)}},mi[4]={filterString:function(){return c$.toString()},
isUnwrappable:function(K){return K instanceof zp},
unwrap:function(K){return _.ui(K).toString()}},mi[5]={filterString:function(K,X,F){return F},
isUnwrappable:function(K){return typeof K==="string"},
unwrap:function(K){return K.toString()}},mi[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(K){return K instanceof _.Uv},
unwrap:function(K){return mk(K)}},mi[8]={filterString:function(K,X,F){F=String(F).toLowerCase();
return ngP(K,X,F)?F:"zClosurez"},
isUnwrappable:null,unwrap:null},mi[10]={filterString:null,isUnwrappable:null,unwrap:null},mi);Ej[RD["default"]]=xkO;var IjM=[];var qp3=KFw("A"),Js9=KFw("BUTTON"),Qk=KFw("DIV"),Z7P=KFw("LABEL");(function(){var K=Eg;Eg=function(X){K==null||K(X);Bn(function(){for(var F=0;F<X.length;F++)kgn(X[F])})}})();var GP=function(){var K=_.ub.apply(this,arguments)||this;K.hasUnmounted=!1;return K};
_.r(GP,_.ub);_.z=GP.prototype;_.z.beforeRegister=function(){var K=this.doIdomRender;this.templatingFn?_.jF(Error("Vg")):(this.templatingFn=K,this.switchTemplateAtRegistration=!0,Chl(this))};
_.z.attached=function(){};
_.z.detached=function(){kgn(this.hostElement)};
_.z.renderIdom=function(){throw Error("Yg");};
_.z.doIdomRender=function(){var K=this;FWy(this.hostElement,function(){K.renderIdom()})};
GP=_.O([_.qY()],GP);var Dxt=[zwT.prototype,GP.prototype];var uBt,qYt=function(){return uBt!==void 0?uBt:uBt=document.createElement("template")};
document.head.appendChild(qYt().content);var JxE;var Ziu,YYL=function(){return Ziu!==void 0?Ziu:Ziu=document.createElement("template")};
document.head.appendChild(YYL().content);var QbZ;var MXt=document.head,nQZ=MXt.appendChild,cxT;if(QbZ===void 0){var psL=document.createElement("template");_.w(psL,"\x3c!--css-build:shady--\x3e");psL.content.insertBefore(YYL().content.cloneNode(!0),psL.content.firstChild);QbZ=psL}cxT=QbZ;nQZ.call(MXt,cxT.content);var BuO,SYZ=function(){return BuO!==void 0?BuO:BuO=document.createElement("template")};
document.head.appendChild(SYZ().content);var oQC;var LLC=document.head,TuQ=LLC.appendChild,rxC;if(oQC===void 0){var AxU=document.createElement("template");_.w(AxU,"\x3c!--css-build:shady--\x3e");AxU.content.insertBefore(SYZ().content.cloneNode(!0),AxU.content.firstChild);oQC=AxU}rxC=oQC;TuQ.call(LLC,rxC.content);var jbC=document.head,wst=jbC.appendChild,yxL;if(JxE===void 0){var WLL=document.createElement("template");_.w(WLL,"\x3c!--css-build:shady--\x3e");WLL.content.insertBefore(qYt().content.cloneNode(!0),WLL.content.firstChild);JxE=WLL}yxL=JxE;wst.call(jbC,yxL.content);var dxV,ewW=function(){return dxV!==void 0?dxV:dxV=document.createElement("template")};
document.head.appendChild(ewW().content);var RwV;_.m$=new _.Oh("DARK_THEME_TOKEN");var Ejy=new _.b("accessibilityProperties");var gjl=new _.b("layoutProperties");var bCq=new _.b("imageType");var UxO={};if("ytAttributedStringLinkHoverColor"in UxO)throw Error("ah`ytAttributedStringLinkHoverColor");(function(K,X){UxO[K]="value"in X&&"unit"in X?sLn(K,X):function(F){try{return X(F)}catch(P){throw Error("Zg`"+K+"`"+P.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var hwZ=function(K){var X=this;this.holdTime=K===void 0?500:K;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(F){var P=new CustomEvent("LONG_PRESS"),H;(H=F.changedTouches[0].target)==null||H.dispatchEvent(P)};
this.ontouchstart=function(F){X.longPressTimeout=_.QW(_.A9,function(){X.onlongpress(F);X.longPressOccurred=!0},X.holdTime)};
this.ontouchmove=function(){_.A9.cancelJob(X.longPressTimeout);X.longPressTimeout=NaN;X.longPressOccurred=!1;X.moveOccurred=!0};
this.ontouchend=function(F){if(X.longPressTimeout&&!X.longPressOccurred&&!X.moveOccurred){var P;(P=F.changedTouches[0].target)==null||P.dispatchEvent(new Event("click"))}_.A9.cancelJob(X.longPressTimeout);X.longPressTimeout=NaN;X.longPressOccurred=!1;X.moveOccurred=!1}};var jL9=function(K,X){hwZ.call(this,X);var F=this;this.callback=K;this.onlongpress=function(P){var H;(H=F.callback)==null||H.call(F,P)}};
_.r(jL9,hwZ);var wid=function(K,X){var F=Object.assign({},X);K=_.D(new Map([["ontouchstart",K.ontouchstart],["ontouchend",K.ontouchend],["ontouchmove",K.ontouchmove]]));for(var P=K.next(),H={};!P.done;H={eventName$jscomp$85:void 0,eventHandler$jscomp$1:void 0},P=K.next()){var f=_.D(P.value);P=f.next().value;f=f.next().value;H.eventName$jscomp$85=P;H.eventHandler$jscomp$1=f;X[H.eventName$jscomp$85]=function(u){return function(J){var Z;(Z=F[u.eventName$jscomp$85])==null||Z.call(F,J);(0,u.eventHandler$jscomp$1)(J)}}(H)}};_.xU=new _.Oh("COMMAND_HANDLER_TOKEN");var fen=new _.b("parallelCommand");var q7n=new _.b("performOnceCommand");var ue3=new _.b("serialCommand");var Jhw=void 0;var mxO=function(){this.data=[]};
mxO.prototype.push=function(K){this.data.push(K)};var Nd={};_.u_(Nd,void 0,"sgPmTd");_.u_(null,void 0,"jypsq");var Ixd=new mxO;var BNn=[EmT,bVq,C2l,iVd,N33,gmd,x3n,I2y];var OCy=new _.b("bracketTextDecorator");var hY=new _.b("highlightTextDecorator");_.lH=new _.Oh("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var le4=function(){},GzL;
(GzL=window.requestIdleCallback)==null||GzL.bind(window);var aeP={calledOnce:!1,state:"visible"},vjl={calledOnce:!1,state:"hidden"};var lMU=new _.Oh("ICON_WIZ_COMPONENT_TOKEN");_.ZF=_.$c(function(K){var X=K.icon;var F=K.active;var P=K.className;var H=K.style;var f=K.dataSelected;var u=K.dataDisabled;var J=K.role;var Z=K.animateIcon;var M=K.themeOverride;var n=K.ariaHidden;var c=K.ariaExpanded;var B=K.ariaLabel;var L=K.id;var A=K.size;var d=K.iconFilter;return _.Q(_.p,{cond:X,then:function(){var R=_.i9().resolve(lMU);return _.Q(R,{icon:X,dataSelected:f,dataDisabled:u,animateIcon:Z,themeOverride:M,ariaExpanded:c,id:L,active:F,size:A,role:J,className:P,ariaHidden:n,ariaLabel:B,
style:function(){return H!=null&&H()||A==null||!A()?H==null?void 0:H():"width: "+(A==null?void 0:A())+"px;height: "+((A==null?void 0:A())+"px;")},
iconFilter:d})}})},"b");
_.ZF.idomCompat=!0;var uZn=window.devicePixelRatio||1;var Ytw=new Map([["yt_outline_bag_black_24","bag"]]);var lZ=function(K){var X=this;this.margin=.1;this.whenInViewportWithMargin=K;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){X.requestScan()});
window.addEventListener("touchend",function(){X.requestScan()});
window.addEventListener("updateui",function(){X.requestScan()});
var F=new _.VW((0,_.T3)(this.requestScan,this),100);window.addEventListener("scroll",function(){F.fire()},!0);
window.addEventListener("resize",(0,_.T3)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){X.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.T3)(this.requestScan,this))};
lZ.prototype.observe=function(K){this.observationTargets.includes(K)||this.observationTargets.push(K)};
lZ.prototype.unobserve=function(K){this.observationTargets=this.observationTargets.filter(function(X){return X!==K})};
lZ.prototype.requestScan=function(){var K=this;this.scanRequested||(Bn(function(){vQC(K)}),this.scanRequested=!0)};
var vQC=function(K){var X=(1+K.margin)*(document.documentElement.clientHeight||window.innerHeight);K.observationTargets=K.observationTargets.filter(function(F){var P=F.getBoundingClientRect();(P=X>P.top&&!!P.height)&&K.whenInViewportWithMargin(F);return!P&&F.parentNode});
K.scanRequested=!1};
lZ.prototype.disconnect=function(){this.observationTargets=[]};var aMU,$xL;aMU=_.D(_.u_(pS4(),void 0,"O3X2wd"));_.tXU=aMU.next().value;$xL=aMU.next().value;window.addEventListener("resize",function(){$xL(pS4())});var Oiu={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},VXC=void 0,gQZ=window.innerWidth,EQT=window.innerHeight;window.addEventListener("resize",function(){VXC=void 0});var biU;if("IntersectionObserver"in window)biU=oYy();else{if(VXC===void 0){var C8E;C8E="matchMedia"in window?window.matchMedia(Oiu.landscape+","+Oiu.portrait).matches:void 0;VXC=C8E!==void 0?C8E:gQZ>=930&&EQT>=550||gQZ>=550&&EQT>=930}biU=VXC?{observe:function(K){Bn(function(){var X;(X=K.onViewportEntered)==null||X.call(K)})},
unobserve:function(){}}:new lZ(function(K){Bn(function(){var X;
(X=K.onViewportEntered)==null||X.call(K)})})}var BTO=biU;var NuC=_.$c(function(K){var X=!1,F=_.t_(function(P){_.AZ(function(){X=!0;P.onload=null})});
_.rs(function(){var P,H=(P=K.data)==null?void 0:P.call(K),f,u=(f=K.getSrc)==null?void 0:f.call(K).cb,J;P=(J=K.config)==null?void 0:J.call(K);if(J=F.value)if(f=function(M,n){if(!X)return u?u(M,n):M},ruq(J,P),_.S("web_image_dont_reload_same_src")&&TTw(J,H,f))_.S("web_image_dont_reload_same_src_simulate_load")&&J.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var Z;Lo4(J,H||null,f,P,(Z=K.lazy)==null?void 0:Z.call(K))}},"v0I2p");
return _.Q("img",{el:F})},"c");
NuC.idomCompat=!0;_.av=_.$c(function(K){var X=function(){var F,P=K.data(),H,f,u,J,Z,M,n,c,B,L,A,d,R,l,a,E,V,x,N,Dl,Mq,pO,y9,Wy,eP,gw,a3;var dL={contentMode:(H=K.contentMode)==null?void 0:H.call(K),loadedClass:(f=K.loadedClass)==null?void 0:f.call(K),isPreloaded:(u=K.isPreloaded)==null?void 0:u.call(K),notifyOnLoaded:(J=K.notifyOnLoaded)==null?void 0:J.call(K),notifyOnUnloaded:(Z=K.notifyOnUnloaded)==null?void 0:Z.call(K),preferredThumbnail:(M=K.preferredThumbnail)==null?void 0:M.call(K),preserveHeight:(n=K.preserveHeight)==
null?void 0:n.call(K),preserveWidth:(c=K.preserveWidth)==null?void 0:c.call(K),objectPosition:(B=K.objectPosition)==null?void 0:B.call(K),targetWidth:(L=K.targetWidth)==null?void 0:L.call(K),targetHeight:(A=K.targetHeight)==null?void 0:A.call(K),shouldShowPlaceholder:(d=K.shouldShowPlaceholder)==null?void 0:d.call(K),useWidth:(R=K.useWidth)==null?void 0:R.call(K),alt:(l=K.alt)==null?void 0:l.call(K),className:(a=K.className)==null?void 0:a.call(K),onerror:K.onerror,onload:K.onload,style$:((E=K.style$)==
null?void 0:E.call(K))||((V=K.style)==null?void 0:V.call(K)),color:(x=K.color)==null?void 0:x.call(K),width:(N=K.width)==null?void 0:N.call(K),height:(Dl=K.height)==null?void 0:Dl.call(K),"aria-hidden$":(gw=(Mq=K["aria-hidden$"])==null?void 0:Mq.call(K))!=null?gw:(pO=K.ariaHidden)==null?void 0:pO.call(K),draggable:(y9=K.draggable)==null?void 0:y9.call(K),"data-disabled$":(a3=(Wy=K["data-disabled$"])==null?void 0:Wy.call(K))!=null?a3:(eP=K.dataDisabled)==null?void 0:eP.call(K)};return wSP(P,dL,(F=
K.hideOn404)==null?void 0:F.call(K))};
return _.Q(_.S8,null,_.Q(_.p9,{when:function(){var F;return((F=X())==null?void 0:F.type)==="image"}},function(){return _.Q(NuC,{data:function(){return X().image},
getSrc:{cb:function(F,P){var H=X().image.sources,f=X().config.isPreloaded,u=X().config.useWidth,J=X().config.targetWidth,Z=X().config.targetHeight,M=X().config.preferredThumbnail;return _.qtn(P,H,f,u,J,Z,M)||""}},
config:function(){var F=X().config,P;for(P in F)F[P]===void 0&&delete F[P];return F},
lazy:K.renderLazy})}),_.Q(_.p9,{when:function(){var F;
return((F=X())==null?void 0:F.type)==="icon"}},function(){return _.Q(_.ZF,{icon:function(){return X().iconName},
role:function(){return X().config.role},
className:function(){return X().config.className},
style:function(){return X().config.style$+";width: "+(X().config.width+"px;height: ")+(X().config.height+"px;color: ")+(X().config.color+";")},
ariaLabel:function(){return X().config["aria-label$"]},
ariaHidden:function(){return X().config["aria-hidden$"]},
dataDisabled:function(){return X().config["data-disabled$"]}})}))},"d");
_.av.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var iiu=function(K){return function(X){return _.Q(Bnd,null,function(){var F=X.data(),P=_.ws(X.config);return _.Q(Oj,null,function(){return void K(F,P)})})}}(e53),WoP=_.$c(function(K){var X=function(P){var H,f=_.$O(function(B){H=jj(function(){for(var L=_.D(n()),A=L.next();!A.done;A=L.next()){A=R59(A.value);
A=typeof A==="string"?document.createTextNode(A):A;if(!(A instanceof Node)){L=new _.nG("Part is not a node",A,typeof A);_.jF(L);break}B.appendChild(A)}})}),u=OP(function(){return NNl(P())},{isEqual:yuM}),J=_.ag(K.config),Z=function(){var B,L=u();
return!((B=J())==null||!B.ariaLabel)||!(L.commandRuns&&L.commandRuns.length!==0||L.paragraphStyleRuns&&L.paragraphStyleRuns.length!==0)},M=OP(J,{isEqual:h59}),n=function(){var B=C0T(u(),M());
x99(B,M());return u().content?P1T(u().content,B).parts:[]},c=!0;
_.rs(function(){u();M();if(c)c=!1;else{var B=n();Promise.resolve().then(function(){var L=f.value;if(L){L.innerText="";var A;(A=H)==null||A();H=_.L9(L,function(){return _.Q(UnP,{parts:B})})}})}},"YlhjWd");
return _.Q("span",{el:f,class:function(){return u()&&Ra4(u(),J())},
dir:function(){var B;return((B=J())==null?0:B.userInput)?"auto":void 0},
"aria-label":function(){var B;return Z()?(B=J())==null?void 0:B.ariaLabel:void 0},
role:function(){return Z()?"text":void 0}})},F;
return((F=K.config)==null?0:F.renderedFromFormattedString)?X(K.text):_.Q(_.p,{cond:K.text,then:X})},"e");
WoP.idomCompat=!0;_.Oy=_.$c(function(K){var X=_.ag(K.text),F=mnP(K);K.renderedFromFormattedString!==void 0&&(F.renderedFromFormattedString=!0);return _.S("attr_string_reactive")?_.Q(WoP,{text:X,config:F}):_.Q(_.p,{cond:function(){var P;return X()&&((P=NNl(X()))==null?void 0:P.content)},
then:function(){return _.Q(iiu,{data:K.text,config:F})},
debugInstance:"Apcuac"})},"f");
_.Oy.idomCompat=!0;var lul=function(K,X,F){X=X===void 0?"unknown":X;F=F===void 0?{}:F;_.nG.call(this,K+" ("+X+")",Object.assign({},{name:"YtWcwError",tagName:X},F));Object.setPrototypeOf(this,this.constructor.prototype)};
_.r(lul,_.nG);_.VKw=new WeakMap;_.OKO=!1;var $nn,gYy,tKy;_.vU=Symbol("ch");_.g$=Symbol("dh");$nn=Symbol("eh");gYy=new Set(Object.getOwnPropertyNames(Element.prototype));tKy=Symbol("fh");var xxO=_.$c(function(K){return _.Q("yt-attributed-string",{"aria-label":K.ariaLabel,hidden:K.hidden,id:K.id,class:K.className,"force-default-style":K.forceDefaultStyle},_.Q(_.Oy,{text:K.data,ariaLabel:K.ariaLabel,ellipsisTruncate:K.ellipsisTruncate,isOverlay:K.isOverlay,linkInheritColor:K.linkInheritColor,noPreWrap:K.noPreWrap,noWrap:K.noWrap,userInput:K.userInput,noEndpoints:K.noEndpoints,headerRuns:K.headerRuns}))},"g");
_.S("web_wiz_attributed_string")&&_.EP(xxO,"yt-attributed-string",{props:{ariaHidden:_.vU,ariaLabel:_.vU,className:_.vU,ellipsisTruncate:_.vU,isOverlay:_.vU,linkInheritColor:_.vU,noEndpoints:_.vU,noStyleRuns:_.vU,noLinkColor:_.vU,noPreWrap:_.vU,noWrap:_.vU,skipOnClick:_.vU,userInput:_.vU,headerRuns:_.vU,id:_.vU,data:_.vU,hidden:_.vU,forceDefaultStyle:_.vU,text:_.g$,stopPropagation:_.g$,disableUpgrade:_.g$,disable:_.g$,slot:_.g$}});var au=function(){return _.G.apply(this,arguments)||this};
_.r(au,_.G);au.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},e53(this.data,this.config))};
_.O([_.W(Dxt),_.g("design:type",Object)],au.prototype,"ytIdomTemplatingBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],au.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],au.prototype,"ariaLabel",void 0);_.O([_.h(),_.g("design:type",Boolean)],au.prototype,"disable",void 0);_.O([_.h(),_.g("design:type",Boolean)],au.prototype,"ellipsisTruncate",void 0);_.O([_.h(),_.g("design:type",Boolean)],au.prototype,"isOverlay",void 0);
_.O([_.h(),_.g("design:type",Boolean)],au.prototype,"linkInheritColor",void 0);_.O([_.h(),_.g("design:type",Boolean)],au.prototype,"noPreWrap",void 0);_.O([_.h(),_.g("design:type",Boolean)],au.prototype,"noWrap",void 0);_.O([_.h(),_.g("design:type",Boolean)],au.prototype,"userInput",void 0);_.O([_.h(),_.g("design:type",Boolean)],au.prototype,"noEndpoints",void 0);_.O([_.h(),_.g("design:type",Array)],au.prototype,"headerRuns",void 0);
au=_.O([_.Tb({is:"yt-attributed-string",disableElementRegistration:!0})],au);
_.S("web_wiz_attributed_string")||_.t(au,"yt-attributed-string",function(){if(RwV===void 0){var K=document.createElement("template");_.w(K,"\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");K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);
K.content.insertBefore(ewW().content.cloneNode(!0),K.content.firstChild);RwV=K}K=RwV;return K},{mode:2});var IMC,kzt,Iu3;IMC=function(){this.firstThumbnailLoaded=!1};
_.KTV=function(){kzt||(kzt=new IMC);return kzt};
Iu3=function(K){var X=_.KTV();X.firstThumbnailLoaded||(X.firstThumbnailLoaded=!0,_.Ac("ftl",K))};
IMC.prototype.reset=function(){this.firstThumbnailLoaded=!1};var bKy=0,xn9=new WeakMap,NTO=0,N0=new Set;var X8C,FTW=function(){return X8C!==void 0?X8C:X8C=document.createElement("template")};
document.head.appendChild(FTW().content);var PhO;var FJl,HXd,tk;_.Iv=_.FP.caches;tk=function(){};
tk.prototype.open=function(K){return _.Iv.open(HFN(K))};
tk.prototype.has=function(K){return _.Iv.has(HFN(K))};
tk.prototype.delete=function(K){return _.Iv.delete(HFN(K))};
tk.prototype.match=function(K,X){var F=this,P,H,f,u,J,Z;return _.q(function(M){switch(M.nextAddress){case 1:return _.Y(M,F.keys(),2);case 2:P=M.yieldResult,H=_.D(P),f=H.next();case 3:if(f.done){M.jumpTo(5);break}u=f.value;return _.Y(M,F.open(u),6);case 6:return J=M.yieldResult,_.Y(M,J.match(K,X),7);case 7:if(Z=M.yieldResult)return M.return(Z);f=H.next();M.jumpTo(3);break;case 5:return M.return()}})};
var s8w=function(){};
_.r(s8w,tk);var HFN=function(K){if(K.includes(":"))throw Error("ih`"+K);return K+":"+_.Qq("CacheStorage get")};
s8w.prototype.keys=function(){var K,X,F,P,H,f,u,J,Z;return _.q(function(M){if(M.nextAddress==1)return K=[],X=_.Qq("CacheStorage keys"),_.Y(M,_.Iv.keys(),2);F=M.yieldResult;P=_.D(F);for(H=P.next();!H.done;H=P.next())f=H.value,u=_.XXP(f),J=u.originalName,Z=u.datasyncId,Z===X&&K.push(J);return M.return(K)})};var $u=function(){var K=_.G.apply(this,arguments)||this;K.objectURL=null;K.loadTime=Infinity;return K};
_.r($u,_.G);_.z=$u.prototype;_.z.renderIdom=function(){KJT(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("lh");this.setConfig();this.config&&Au4(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.z.objectFitToContentMode=function(K){switch(K){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.z.logThumbnailFailureVe=function(){var K=_.cO(197497);_.k2(_.uH(),K);var X=_.AD();X&&K&&X&&_.G6(X,[K])};
_.z.loadImageFromCacheIfExists=function(K){var X=this,F=K.target;(F==null?0:F.src)&&fE4(F.src).then(function(P){X.objectURL=_.Si(P).toString();X.setSrc(F,X.objectURL)}).catch(function(){})};
_.z.onError=function(K){var X=this;if(_.S("web_use_cache_for_image_fallback")){var F=K.target;F&&fE4(F.src).then(function(P){X.objectURL=_.Si(P).toString();X.setSrc(F,X.objectURL)}).catch(function(){_.S("kevlar_woffle_log_thumbnail_failure_ve")&&X.logThumbnailFailureVe();
_.S("kevlar_woffle_fallback_image")&&X.setSrc(F,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.z.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.z.setConfig=function(){var K=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(X){K.loadImageFromCacheIfExists(X);K.revokeObjectURL();kaM(K.hostElement)},
onerror:function(X){K.onError(X)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.S("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.z.setSrc=function(K,X){X&&(K.src=X)};
_.O([_.W(Dxt),_.g("design:type",Object)],$u.prototype,"ytIdomTemplatingBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],$u.prototype,"data",void 0);_.O([_.h(),_.g("design:type",String)],$u.prototype,"alt",void 0);_.O([_.h(),_.g("design:type",Boolean)],$u.prototype,"ftlEligible",void 0);_.O([_.h(),_.g("design:type",Number)],$u.prototype,"height",void 0);_.O([_.h(),_.g("design:type",Boolean)],$u.prototype,"notifyOnLoaded",void 0);
_.O([_.h(),_.g("design:type",Boolean)],$u.prototype,"notifyOnUnloaded",void 0);_.O([_.h(),_.g("design:type",String)],$u.prototype,"objectFit",void 0);_.O([_.h(),_.g("design:type",String)],$u.prototype,"objectPosition",void 0);_.O([_.h(),_.g("design:type",String)],$u.prototype,"preferredThumbnail",void 0);_.O([_.h(),_.g("design:type",Boolean)],$u.prototype,"preserveHeight",void 0);_.O([_.h(),_.g("design:type",Boolean)],$u.prototype,"preserveWidth",void 0);
_.O([_.h({value:!0}),_.g("design:type",Boolean)],$u.prototype,"useWidth",void 0);_.O([_.h({value:function(){return!_.RU("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.g("design:type",Boolean)],$u.prototype,"shouldRenderLazy",void 0);_.O([_.h(),_.g("design:type",Number)],$u.prototype,"width",void 0);$u=_.O([_.Tb({is:"yt-image",disableElementRegistration:!0})],$u);
_.t($u,"yt-image",function(){if(PhO===void 0){var K=document.createElement("template");_.w(K,"\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");K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);K.content.insertBefore(FTW().content.cloneNode(!0),K.content.firstChild);
PhO=K}K=PhO;return K},{mode:2});var Ox=function(){return _.G.apply(this,arguments)||this};
_.r(Ox,_.G);Ox.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var K=_.w$(this.data.onVisibleCommand);K&&this.ytComponentBehavior.resolveCommand(K)}};
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Ox.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Ox.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.Ux.YtVisibilityBehavior),_.g("design:type",Object)],Ox.prototype,"ytVisibilityBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Ox.prototype,"data",void 0);Ox=_.O([_.Tb({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],Ox);
_.t(Ox,"yt-bumper-user-edu-content-view-model",function(){if(sbL===void 0){var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;HiZ===void 0&&(HiZ=document.createElement("template"));var P=HiZ;F.call(X,P.content.cloneNode(!0),K.content.firstChild);sbL=K}K=sbL;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var sdt;var zSC,fjL=function(){if(zSC!==void 0)return zSC;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;sdt===void 0&&(sdt=document.createElement("template"));var P=sdt;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return zSC=K};var DkN;_.Vj={};DkN=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"]);_.Vj.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var K=this.getContext_();return K?K.getTaskManager():_.A9},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var K=_.iX(this.hostElement,"yt-get-context-provider",{});K.detail&&K.detail.contextProvider?this.cachedProviderNode_=K.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return DkN.has(this.hostElement.localName)},
getNetworkManager:function(){var K=this.getContext_();if(K)return K.getNetworkManager()}};var YW3,uxC,Jnt,q4L;_.gk=function(K){var X=uxC.get(K);if(X&&(X=X.pop()))return q4L++,X;Jnt++;try{var F=document.createElement(K)}catch(P){throw new _.nG("ElementPool failed to create element",K,P.message);}return F};
YW3=function(K){var X=K.is;if(X){var F=uxC.get(X);F||(F=[],uxC.set(X,F));var P=_.e8("ELEMENT_POOL_CONFIG")||{};F.length>=(P[X]!==void 0?P[X]:_.e8("ELEMENT_POOL_DEFAULT_CAP",0))||F.push(K)}else _.yy(new _.nG("Element pool should only handle custom elements:",K.nodeName))};
uxC=new Map;Jnt=0;q4L=0;var kO=new WeakMap,ZXP=new WeakMap;var Y4C;_.Ex=function(K,X,F){F=F===void 0?_.Bj():F;this.JSC$11689_defaultPriority=K;this.signal=X;this.scheduler=F;this.nextJobDescriptor=0;this.JSC$11689_parkedJobs=[];this.scheduledJobs=new Map};
_.bZ=function(K,X){if(X){var F=_.wz();K.signal&&!_.yZ(F,K.signal)?(F.addListener(K.signal,function(){K.processSignal()}),K.JSC$11689_parkedJobs.push({job:X,
priority:void 0})):ZFW(K,X)}};
Y4C=function(K,X){if(X!==K.JSC$11689_defaultPriority){K.JSC$11689_defaultPriority=X;for(var F=_.D(K.scheduledJobs.values()),P=F.next();!P.done;P=F.next())P=P.value,K.scheduler.cancelJob(P.jobId),P.jobId=K.scheduler.addJob(P.jobWrapper,X)}};
_.Ex.prototype.flushJobs=function(){Y4C(this,10);this.processSignal()};
_.Ex.prototype.cancel=function(){for(var K=_.D(this.scheduledJobs),X=K.next();!X.done;X=K.next()){var F=_.D(X.value);X=F.next().value;F=F.next().value;this.scheduler.cancelJob(F.jobId);this.scheduledJobs.delete(X)}this.JSC$11689_parkedJobs=[]};
_.Ex.prototype.processSignal=function(){for(var K=_.D(this.JSC$11689_parkedJobs),X=K.next();!X.done;X=K.next())X=X.value,ZFW(this,X.job,X.priority);this.JSC$11689_parkedJobs=[]};
var ZFW=function(K,X,F){F=F||K.JSC$11689_defaultPriority;if(F===10)iH(X);else{var P=K.nextJobDescriptor++,H=function(){X();K.scheduledJobs.delete(P)},f=K.scheduler.addJob(H,F);
K.scheduledJobs.set(P,{jobWrapper:H,jobId:f,priority:F})}};_.iy(cRn);var pXw={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};wuT({beforeVisit:function(K){if(NY.has(K.type)){var X;(X=K.props).idomKey!=null||(X.idomKey=K.type)}else K.type.TAG_NAME&&(bb=K.type.TAG_NAME)},
afterRender:function(K,X){var F;bb=(F=X==null?void 0:X.type)!=null?F:""},
didPatch:function(){bb=""}});var Qdt;_.CE={};Qdt={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.CE.YtRendererstamperBehavior=[_.Vj.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 K in this.stampDom){var X=this.stampDom[K];X&&X.id&&this.addReactiveSchema({type:"observe",method:{methodName:utd(X.id),args:[{type:"wildcard",path:K}]}})}else{(K=(this.constructor.generatedFrom||this).observers)||(K=[]);for(X in this.stampDom){var F=this.stampDom[X];F&&F.id&&K.push(utd(F.id)+"("+X+".*)")}this.constructor.generatedFrom.observers=K}},
addStampDomObserverFns_:function(){for(var K in this.stampDom){var X=this.stampDom[K];X.id?(this[utd(X.id)]=this.rendererStamperObserver_.bind(this,K,X.id),this.hasDataPath_[K]=!1):(X=new _.nG("Bad rendererstamper config",this.is+":"+K),_.jF(X))}},
rendererStamperObserver_:function(K,X,F){if(F.path==K){if(F.value===void 0&&!this.hasDataPath_[K])return;this.hasDataPath_[K]=F.value!==void 0}this.rendererStamperApplyChangeRecord_(K,X,F)},
rendererStamperApplyChangeRecord_:function(K,X,F){var P=this.renderJobsMap_[X],H=null;K==F.path?(F=F.value,_.xd(F)||(F=F===void 0||F===null?[]:[F]),K=this.stampDom[K],K.mapping&&(H=this.stampDomArray_.bind(this,F,X,K.mapping,K.reuseComponents,K.events,K.stamperStableList)),P&&P.cancel(),F=K.usePageScheduler?this.getTaskManager():void 0,P||K.initialRenderPriority==void 0)?K.renderPriority==void 0||P||(P=new _.Ex(K.renderPriority,K.waitForSignal,F),this.renderJobsMap_[X]=P):(P=new _.Ex(K.initialRenderPriority,
K.waitForSignal,F),this.renderJobsMap_[X]=P,H=function(f,u){f();Y4C(u,10)}.bind(this,H,P)):H=K+".splices"==F.path?this.stampDomArraySplices_.bind(this,K,X,F.value):this.forwardRendererStamperChanges_.bind(this,K,X,F);
P?_.bZ(P,H):H()},
forwardRendererStamperChanges_:function(K,X,F){var P=F.path.slice(K.length+1),H=this.getStampContainer_(X),f=P.indexOf("."),u=P.substring(0,f),J=!1,Z=0,M=parseInt(u,0);if(u[0]=="#"){J=parseInt(u.substring(1),0);M=this.get(K);var n=this.get([K,u]);M[J]==n?Z=J:Z=M.indexOf(n);J=!0}else isNaN(M)||(Z=M,J=!0);J&&(P=P.substring(u.length+1),f=P.indexOf("."));u=_.cg(H).children[Z];var c;if(H=(c=u==null?void 0:u.polymerController)!=null?c:u)P="data"+P.slice(f),typeof H.notifyPath!=="function"?_.yy(new _.nG("notifyPath missing",
this.is+": "+K+", "+X)):F.value?H.notifyPath(P,F.value):H.notifyPath(P)},
stampDomArraySplices_:function(K,X,F){if(F&&F.indexSplices){var P=this.getStampContainer_(X);if(P){for(var H=_.cg(P),f=JRl(this.stampDom[K].reuseComponents),u=F.indexSplices.length,J=0;J<u;J++){for(var Z=F.indexSplices[J],M=H.children[Z.index],n=Z.removed.length;n>0;n--)M&&M.parentElement&&(_.cg(M.parentElement).removeChild(M),f&&YW3(M),M=H.children[Z.index]);n=this.stampDom[K].mapping;for(var c=Z.index+Z.addedCount,B=document.createDocumentFragment(),L=f,A=Z.index;A<c;A++){var d=Z.object[A],R=Db9(n,
d);if(R){var l=n[R];d=d[R];R=this.getComponentName_(l,d);var a=M?kO.has(M):!1;L&&M&&M.is==R&&a?(R=M,this.telemetry_.reuse++,M=M.nextElementSibling):L&&M&&a?(R=this.createComponent_(l,d,f),a=_.cg(M).nextElementSibling,H.insertBefore(R,a),MRO(this.is,H,M,f),M=a):(L=!1,R=this.createComponent_(l,d,f),B.appendChild(R));this.deferRenderStamperBinding_(R,l,d)}else l=new _.nG("Unimplemented type",K,X,P.tagName,Object.keys(d)[0]),_.jF(l)}H.insertBefore(B,M)}this.flushRenderStamperComponentBindings_();this.stampDom[K].events&&
_.iX(this.hostElement,"yt-rendererstamper-finished",{container:P})}else K=new _.nG("Container object not found",X,this.hostElement?this.hostElement.is:""),_.jF(K)}},
stampDomArray_:function(K,X,F,P,H,f){var u=this.getStampContainer_(X);if(u)if(X=_.cg(u),P=JRl(P),K){var J=0,Z=0,M;if(f=f===void 0?_.RU("STAMPER_STABLE_LIST",!1):f||!1)for(M=X.firstElementChild;M&&!kO.has(M)&&K.length>Z;){f=K[Z];var n=Db9(F,f);if(n){if(this.getComponentName_(F[n],f[n])!=M.is){var c=this.createComponent_(F[n],f[n],P),B=_.cg(M).nextElementSibling;B?X.insertBefore(c,B):X.appendChild(c);MRO(this.is,X,M,P);M=c}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(M,F[n],f[n]);J++;
Z++;M=_.cg(M).nextElementSibling}else Z++}nNd(this.is,X,J,P);J=M;if(K.length>Z){f=document.createDocumentFragment();for(n=K.length;Z<n;Z++)if(c=K[Z],B=Db9(F,c))M=this.createComponent_(F[B],c[B],P),this.deferRenderStamperBinding_(M,F[B],c[B]),f.appendChild(M);J&&_.cg(J).parentNode&&M&&!kO.has(M)?X.insertBefore(f,J):X.appendChild(f)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();H&&_.iX(this.hostElement,"yt-rendererstamper-finished",{container:u})}else nNd(this.is,X,0,
P);else K=new _.nG("Container object not found",X,this.hostElement?this.hostElement.is:""),_.jF(K)},
getStampContainer_:function(K){return this.$&&this.$[K]||_.C$(this.hostElement).querySelector("#"+K)},
getComponentName_:function(K,X){return typeof K==="string"?K:K.matcher?K.matcher.call(this,X):K.component},
createComponent_:function(K,X,F){K=this.getComponentName_(K,X);try{var P=ib.has(K)||NY.has(K);if(F&&!P){var H=_.gk(K);try{_.XU(H)}catch(f){F="Failed to clear styles for "+K+".",f.message&&(F+=" Original error: "+f.message),_.yy(new _.nG(F))}}else H=document.createElement(K)}catch(f){return H="YtRendererStamperBehavior failed to create "+K+".",f.message&&(H+=" Original description: "+f.message),f.message="YtRendererStamperBehavior failed to create element",_.Wu(f,H),Qdt.hasOwnProperty(K)?_.yy(f):_.jF(f),
document.createElement("SPAN")}this.telemetry_.create++;return H},
deferRenderStamperBinding_:function(K,X,F){this.deferredBindingTasks_.push({component:K,typeOrConfig:X,data:F})},
flushRenderStamperComponentBindings_:function(){for(var K=0,X=this.deferredBindingTasks_.length;K<X;K++){var F=this.deferredBindingTasks_[K];if(!F)break;var P=void 0,H=void 0,f=void 0,u=void 0,J=F.component,Z=F.typeOrConfig;F=F.data;var M=(u=J.polymerController)!=null?u:J;u=J.loggingStatus;try{u&&(u.isRendererStamper=!0);if(typeof Z!=="string"){for(f in Z.attributes)Z.attributes[f]===!0?J.setAttribute(f,""):Z.attributes[f]===!1?J.removeAttribute(f):J.setAttribute(f,Z.attributes[f]);for(H in Z.params)M[H]=
Z.params[H],J!==M&&QQ(J.localName,H,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(P in Z.properties){var n=Z.properties[P];if(n){var c=qWP(n);M[P]=this.get(c);J!==M&&QQ(J.localName,P,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(P==="on-tap"||P==="on-click"){var B=this.get(c);J.addEventListener("click",B);ZXP.set(J,{property:P,listener:{type:"element",eventName:"click",handler:B}})}}else{var L=new _.nG("Undefined property binding",P);_.jF(L)}}}if(Z.classListBinding){var A=qWP(Z.classListBinding),
d=A?this[A]:null;if(d)for(P=0;P<d.length;P++)_.iN(J,d[P],!0)}M.data=F}finally{u&&(u.isRendererStamper=!1)}if(P=kO.get(J))J.hidden=!1,kO.delete(J),_.A9.cancelJob(P)}this.deferredBindingTasks_.length=0}}];_.NT={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(K){for(var X=_.GT.getInstance(),F=_.D(Object.keys(K)),P=F.next();!P.done;P=F.next()){var H=P.value;P=K[H];if(this&&this[P]){var f=X.actionRoutingMap.get(H);f||(f=new Map,X.actionRoutingMap.set(H,f));X.registerActionHandler(this,H,this[P].bind(this),f)}else H=Error("fd"),H.params=P,_.UN(H)}},
unregisterActionMap:function(K){_.vu(_.GT.getInstance(),K,this)}}]};var Fq=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:79,lazyLoad:!1}]]);var Xq;var PO=new Map;var db4=window.matchMedia("(forced-colors: active)").matches;var M5V;var nJt;var hiw=new _.Oh("LOTTIE_LOADER_TOKEN");_.EP(_.$c(function(K){return _.Q("ytd-lottie-player",{id:K.id,hidden:K.hidden,class:K.className,"aria-label":K.ariaLabel,style:"display: block;"},_.Q(_.se,{data:K.data,animationName:function(){var X;return((X=K.data().animationConfig)==null?void 0:X.name)||""},
animationRef:function(){return K.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.vU,
id:_.vU,hidden:_.vU,className:_.vU,ariaLabel:_.vU}});var iZ=function(){var K=_.G.apply(this,arguments)||this;K.animationRef={};return K};
_.r(iZ,_.G);_.z=iZ.prototype;
_.z.handlePropertyChange=function(){var K=this.animatedIcon,X=this.active,F=this.isDarkTheme;if(K){var P=this.previousActive!==X;this.previousActive=X;this.animationRef.lottieEl?P&&this.toggleAnimation(X,K.totalFrames):X?this.initializeAnimationAsToggled(K.lottiePlayerProps,K.totalFrames):this.initializeAnimationAsUntoggled(K.lottiePlayerProps);K.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=K.type;this.lottiePlayerProps=this.computeLottiePlayerProps(K,F)}};
_.z.computeLottiePlayerProps=function(K,X){var F=this.deepCloneLottiePlayerProps(K);X?(X=K.nameDarkTheme,K=K.pathDarkTheme):(X=K.name,K=K.path);F.animationConfig.name=X;(X=PO.get(K))?F.animationConfig.animationData=X:F.animationConfig.path=K;return F};
_.z.initializeAnimationAsToggled=function(K,X){K.animationConfig.initialSegment=[X-1,X]};
_.z.initializeAnimationAsUntoggled=function(K){K.animationConfig.initialSegment=void 0};
_.z.toggleAnimation=function(K,X){if(K){var F;(F=this.animationRef.lottieEl)==null||F.playSegments([0,X],!0)}else{var P;(P=this.animationRef.lottieEl)==null||P.playSegments([0,1],!0)}};
_.z.deepCloneLottiePlayerProps=function(K){var X=Object.assign({},K.lottiePlayerProps.animationConfig);K=Object.assign({},K.lottiePlayerProps);K.animationConfig=X;return K};
iZ.prototype.handlePropertyChange=iZ.prototype.handlePropertyChange;_.O([_.h(),_.g("design:type",Object)],iZ.prototype,"animatedIcon",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],iZ.prototype,"active",void 0);_.O([_.h(),_.g("design:type",Boolean)],iZ.prototype,"isDarkTheme",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],iZ.prototype,"animatedIconType",void 0);_.O([_.h(),_.g("design:type",Boolean)],iZ.prototype,"previousActive",void 0);
_.O([_.h(),_.g("design:type",Object)],iZ.prototype,"lottiePlayerProps",void 0);_.O([_.h(),_.g("design:type",Object)],iZ.prototype,"animationRef",void 0);_.O([_.so("animatedIcon","active","isDarkTheme"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],iZ.prototype,"handlePropertyChange",null);iZ=_.O([_.Tb({is:"yt-animated-icon",disableElementRegistration:!0})],iZ);
_.t(iZ,"yt-animated-icon",function(){if(nJt===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;M5V===void 0&&(M5V=document.createElement("template"));var P=M5V;F.call(X,P.content.cloneNode(!0),K.content.firstChild);nJt=K}K=nJt;return K},{mode:2});var cnC;var p8Z;var lEn=_.$c(function(K){var X=_.$3(),F=j8(function(){return{value:null}});
_.AZ(function(){var H;(H=F.value)==null||H.cancel()});
var P=_.Qs(K.data,{equals:function(H,f){return H.iconName===f.iconName&&H.iconStyle===f.iconStyle&&H.iconSize===f.iconSize&&H.iconSetName===f.iconSetName&&H.iconSelected===f.iconSelected}},"aoiXAb");
_.rs(function(){var H,f=(H=K.options)==null?void 0:H.call(K);GGT(X,F,P(),f)},"QXgxJd");
return _.Q("span",{class:"yt-icon-shape",el:X})},"i");
lEn.idomCompat=!0;var c3P=["youtube_fill","youtube_outline"];var BoW=new _.nT({type:"iconset",value:void 0}),xu=function(){var K=_.G.apply(this,arguments)||this;K.isDarkTheme=document.documentElement.hasAttribute("dark");K.iconName="";K.iconsetName="yt-icons";K.iconset=null;K.missingIconSet=!1;K.iconType=null;K.iconShapeDataSignal=_.u_(void 0,void 0,"RQ9kUb");K.renderingOptionsSignal=_.u_({iconWidth:"100%",iconHeight:"100%",iconFilter:K.iconFilter},void 0,"qtx8Ef");K.wizHasRendered=!1;K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return K};
_.r(xu,_.G);xu.prototype.onDarkModeToggledAction=function(K){K!==this.isDarkTheme&&(this.isDarkTheme=K)};
xu.prototype.handlePropertyChange=function(){var K=this,X,F,P,H,f,u,J,Z,M,n,c,B,L,A,d,R,l;return _.q(function(a){switch(a.nextAddress){case 1:if(X=!K.icon&&!K.iconName||!K.isAttached)return a.return();F=K;P=F.icon;H=F.size;f=F.defaultToFilled;u=F.active;J=F.targetContainer;K.toggleContainerClass(J);_.S("kevlar_use_wil_icons")&&P&&(Z=Qd4(P),K.iconType=Z.length?Z[1]:null);if(P){a.jumpTo(2);break}K.iconsetName="";K.iconName="";return _.Y(a,K.renderIcon(J,P),3);case 3:return a.return();case 2:M=xu.computeIcon(P);
n=Qd4(M);n.length&&(K.iconsetName=n[0],K.iconName=n[1]);if(!_.S("kevlar_use_wil_icons")){a.jumpTo(4);break}c=xu;B=c.getIconShapeData;L=K.iconType;A=K.active;d=K.defaultToFilled;R=K.size;l=K.iconsetName;return _.Y(a,xu.getIconManager(),6);case 6:return _.Y(a,B.call(c,L,A,d,R,l,a.yieldResult),5);case 5:K.iconShapeData=a.yieldResult;case 4:if(K.shouldRenderIconShape(J)){a.jumpTo(7);break}return _.Y(a,K.determineIconSet(M,u,f,H,J),7);case 7:return _.Y(a,K.renderIcon(J,P),0)}})};
xu.prototype.toggleContainerClass=function(K){K?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
xu.computeIcon=function(K){return!_.S("default_to_innertube_icon")||K.indexOf(":")>0?K:_.Fl(K)};
_.z=xu.prototype;_.z.determineIconSet=function(K,X,F,P){var H=this;return _.q(function(f){return f.nextAddress==1?_.S("kevlar_system_icons")||_.e8("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.e8("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.Y(f,H.switchToYtSysIconset(K,X,F,P),3):f.jumpTo(2):f.nextAddress!=2?f.return():_.Y(f,H.useYtSysIconsetForMissingIcons(K,X,F,P),0)})};
_.z.switchToYtSysIconset=function(K,X,F,P){var H=this,f,u,J,Z,M,n,c;return _.q(function(B){switch(B.nextAddress){case 1:if(!K||H.iconsetName!=="yt-icons"&&H.iconsetName!=="yt-sys-icons"){B.jumpTo(0);break}f=Qd4(K);u=f[1];u=_.rnl(u);_.S("enable_polymer_icons_replace_underscores_dash")&&u.includes("_filled")&&(u=u.replace(/_filled/g,"-filled"));return _.Y(B,Xl(u,!0),3);case 3:return J=B.yieldResult,_.Y(B,Xl(u,!1),4);case 4:if((Z=B.yieldResult)||X&&J)H.iconsetName="yt-sys-icons";H.iconName=H.getIconName(u,
X,F,Z,J);if(P===24){B.jumpTo(0);break}M="yt-sys-icons"+P+":"+H.iconName;return _.Y(B,Xl(M,!1,!0),6);case 6:return n=B.yieldResult,_.Y(B,Xl(M,!0,!0),7);case 7:c=B.yieldResult;H.iconName=H.getIconName(u,X,F,n,c);if(!X&&n||X&&c)H.iconsetName="yt-sys-icons"+P;_.JT(B)}})};
_.z.getIconName=function(K,X,F,P,H){K.includes("-filled")&&(K=K.replace("-filled",""));return H&&(X||F)?K+"-filled":K};
_.z.useYtSysIconsetForMissingIcons=function(K,X,F,P){var H=this,f,u;return _.q(function(J){if(J.nextAddress==1)return H.iconsetName!=="yt-icons"?J.jumpTo(0):_.Y(J,Xl(H.iconName,!1,!1,!0),3);if(J.nextAddress!=4)return f=J.yieldResult,_.Y(J,Xl(H.iconName,!1),4);u=J.yieldResult;if(f||!u)return J.jumpTo(0);H.iconsetName="yt-sys-icons";return _.Y(J,H.switchToYtSysIconset(K,X,F,P),0)})};
_.z.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
xu.getIconManager=function(){return _.q(function(K){try{return K.return(_.i9().resolve(_.Pn))}catch(X){return K.return(new Promise(function(F){_.wz().parkOrScheduleJob(function(){F(_.i9().resolve(_.Pn))},2,"ci")}))}})};
xu.getIconShapeData=function(K,X,F,P,H,f){P=P===void 0?24:P;if(K){K=K.toLowerCase();var u=K.endsWith("_filled")||K.endsWith("-filled");X={iconName:K,iconStyle:(X===void 0?0:X)||(F===void 0?0:F)||u?"youtube_fill":"youtube_outline",iconSize:P,iconSetName:H===void 0?"yt-icons":H};F=!!f.resolveIcon(X);F||(X.iconSize=void 0,F=!!f.resolveIcon(X));!F&&u&&(X.iconName=K.substring(0,K.length-7),X.iconSize=P,F=!!f.resolveIcon(X),F||(X.iconSize=void 0,F=!!f.resolveIcon(X)));F||(X.iconStyle=void 0,F=!!f.resolveIcon(X));
F||_.yy(new _.nG("Icon not supported",{iconName:X.iconName,iconStyle:X.iconStyle,iconSize:X.iconSize,iconType:K}));return F?X:void 0}};
_.z=xu.prototype;_.z.shouldRenderIconShape=function(K){if(!_.S("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;K=this.getContainer(K);return!eiO(K,this.icon)};
_.z.renderIcon=function(K,X){var F=this,P,H,f,u,J,Z,M,n;return _.q(function(c){switch(c.nextAddress){case 1:if(X&&F.icon!==X)return c.return();P=F.getContainer(K);H=eiO(P,F.icon);if(F.shouldRenderIconShape(K)&&F.iconType)return F.applyIconShape(H,P),c.return();F.removeIconShape();if(!P)return c.return();F.iconName===""&&F.iconset&&P&&(F.removeStaticIcon(F.iconset,P),H&&F.removeAnimatedIcon(P));if(F.iconName===""&&F.iconset||!F.iconsetName||!BoW)return c.return();F.iconset=BoW.byKey(F.iconsetName);
if(!F.iconset)return F.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.Pc(F,F.onIconsetAdded)),c.return();F.missingIconSet&&(F.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.Pc(F,F.onIconsetAdded)));u=(f=H||F.isAnimatedIcon?WJ4(F.icon):void 0)&&!f.lazyLoad;Z=f&&((J=f)==null?void 0:J.lazyLoad)&&(f.lottiePlayerProps.animationConfig.animationData?!0:PO.get(F.isDarkTheme?f.pathDarkTheme:f.path)?!0:!1);if(u||Z)return F.applyAnimatedIcon(P,f,F.iconset),c.return();if(Z||
(M=f)==null||!M.lazyLoad){c.jumpTo(2);break}n=Ub4(f,F.isDarkTheme);F.applyStaticIcon(F.iconset,P,F.iconName,K,H);return _.Y(c,n,3);case 3:return _.Y(c,F.renderIcon(F.targetContainer,F.icon),4);case 4:return c.return();case 2:F.applyStaticIcon(F.iconset,P,F.iconName,K,H),_.JT(c)}})};
_.z.getContainer=function(K){var X,F=(X=vWl(this.hostElement))==null?void 0:X.host;X=!!F&&!!F.polymerController;if(!K||X)return K?this.getTargetContainer(K,F):this.hostElement};
_.z.getTargetContainer=function(K,X){var F=_.C$(X).querySelector("#"+K);F||(K=new _.nG("yt-icon container missing",X.is,K),_.jF(K));return F};
_.z.applyStaticIcon=function(K,X,F,P,H){H&&this.removeAnimatedIcon(X);this.removeIconShape();H=H&&!!this.iconType&&!!this.iconShapeData&&_.S("kevlar_use_wil_icons");try{H?this.applyIconShape(!1,X):K.applyIcon(X,F)}catch(f){this.handleError(f,P,X)}};
_.z.applyIconShape=function(K,X){this.iconset&&X&&(this.removeStaticIcon(this.iconset,X),K&&this.removeAnimatedIcon(X));K={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var F=_.D(this.iconShapeDataSignal);X=F.next().value;F=F.next().value;var P=_.D(this.renderingOptionsSignal),H=P.next().value;P=P.next().value;F(this.iconShapeData);P(K);if(!this.wizHasRendered)for(this.wizHasRendered=!0,K=_.D(vNO(X,H)).next().value;K.firstChild;)_.C$(this.hostElement).appendChild(K.firstChild)};
_.z.removeIconShape=function(){if(_.S("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.z.removeStaticIcon=function(K,X){K.removeIcon(X)};
_.z.applyAnimatedIcon=function(K,X,F){this.removeStaticIcon(F,K);this.removeIconShape();var P;F=this.animatedIconElement&&((P=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:P.type)===X.type;if(this.animatedIconElement&&F){this.animatedIconElement.polymerController.animatedIcon=X;var H;((H=this.animatedIconElement)==null?void 0:H.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(K),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=X,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.S("kevlar_use_wil_icons")?K.insertBefore(this.animatedIconElement,K.childNodes[0]):(K=_.C$(K),K.insertBefore(this.animatedIconElement,K.childNodes[0]))};
_.z.removeAnimatedIcon=function(K){_.S("kevlar_use_wil_icons")?this.animatedIconElement&&K.contains(this.animatedIconElement)&&K.removeChild(this.animatedIconElement):(K=_.C$(K),this.animatedIconElement&&K.contains(this.animatedIconElement)&&K.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.z.handleError=function(K,X,F){_.Wu(K,this.iconName,X,F);X=eiO(F,this.icon);var P=!1;window.location.href.includes("JpymaW6Lh2w")?P=!0:F._svgIcon&&(F=(F=F._svgIcon.parentNode)?F.tagName:"unknown",_.Wu(K,F),F==="YT-ICON"&&K.name==="NotFoundError"?P=!0:K.name==="NotFoundError"&&X&&(P=!0));P?_.yy(K):_.jF(K)};
_.Oi.Object.defineProperties(xu,{template:{configurable:!0,enumerable:!0,get:function(){if(p8Z===void 0){var K=document.createElement("template");_.w(K,"\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");K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;
cnC===void 0&&(cnC=document.createElement("template"));var P=cnC;F.call(X,P.content.cloneNode(!0),K.content.firstChild);p8Z=K}K=p8Z;return K}}});
xu.prototype.handlePropertyChange=xu.prototype.handlePropertyChange;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],xu.prototype,"actionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",String)],xu.prototype,"icon",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],xu.prototype,"active",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],xu.prototype,"defaultToFilled",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],xu.prototype,"isAnimatedIcon",void 0);
_.O([_.h({value:24}),_.g("design:type",Number)],xu.prototype,"size",void 0);_.O([_.h({value:""}),_.g("design:type",String)],xu.prototype,"targetContainer",void 0);_.O([_.h(),_.g("design:type",Object)],xu.prototype,"animatedIconElement",void 0);_.O([_.h(),_.g("design:type",Object)],xu.prototype,"isDarkTheme",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],xu.prototype,"ariaHidden",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],xu.prototype,"ariaLabel",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],xu.prototype,"role",void 0);_.O([_.h(),_.g("design:type",String)],xu.prototype,"style",void 0);_.O([_.h(),_.g("design:type",String)],xu.prototype,"iconFilter",void 0);_.O([_.so("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype",Promise)],xu.prototype,"handlePropertyChange",null);
xu=_.O([_.Tb({is:"yt-icon",noInjection:!0})],xu);var S4C;var oJU=function(){var K=document.body,X=K.appendChild;if(S4C===void 0){var F=document.createElement("template");_.w(F,'\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>');
S4C=F}F=S4C;X.call(K,F.content)};
document.body?oJU():window.addEventListener("DOMContentLoaded",oJU);var LTE,Tot=function(){return LTE!==void 0?LTE:LTE=document.createElement("template")};
document.head.appendChild(Tot().content);var rnZ,AnO=function(){return rnZ!==void 0?rnZ:rnZ=document.createElement("template")};
document.head.appendChild(AnO().content);var jdu;_.Iu=new _.Oh("KEY_MANAGER_TOKEN");var VR9={duration:1E3,easing:"ease",fill:"forwards"};_.iy(OXd);var ENT={duration:1E3,easing:"ease",fill:"forwards"},WTL=_.$c(function(K){var X=_.t_(),F=void 0,P=function(){var H,f;return tD((H=K.character)==null?void 0:H.call(K))||tD((f=K.previousCharacter)==null?void 0:f.call(K))};
_.rs(function(){if(K.marginMultiplier()){var H;(H=F)==null||H.cancel();if(P()){var f;H=((f=K.previousCharacter)==null?0:f.call(K))?Number(K.previousCharacter())+10:K.rollUp()?0:30;var u;if((u=K.shouldAnimate)==null||!u.call(K)){var J,Z;H-=gNw((J=K.character)==null?void 0:J.call(K),(Z=K.previousCharacter)==null?void 0:Z.call(K),K.rollUp(),H)}}else{H=K.rollUp()?0:2;var M;(M=K.shouldAnimate)!=null&&M.call(K)||(f=H,u=K.rollUp()?-1:1,H=f-u)}X.value.style.marginTop="-"+H*K.marginMultiplier()+"px";var n;
if((n=K.shouldAnimate)==null?0:n.call(K)){var c,B;F=bXO(X.value,(c=K.character)==null?void 0:c.call(K),(B=K.previousCharacter)==null?void 0:B.call(K),K.rollUp(),H,P(),K.marginMultiplier())}else{var L;X.value.style.display=((L=K.character)==null?0:L.call(K))?"":"none"}}},"vt9b9b");
return _.Q("animated-rolling-character",{el:X,class:"animated-rolling-character-wiz"},_.Q(_.p,{cond:P,then:function(){return _.Q(w8C,null)},
else:function(){return _.Q(ynL,{character:K.character})}}))},"j");
WTL.idomCompat=!0;var CwP=_.S("web_enable_sink_animated_rolling_character_and_number")?WTL:OXd,dkW=_.S("web_enable_sink_animated_rolling_character_and_number")?WTL:_.f4(OXd),w8C=_.$c(function(){for(var K=[],X=1;X<30;X++)K.push(_.Q("div",null,X%10));return _.Q(_.ID,null,_.Q("div",null,"\u00a0"),K,_.Q("div",null,"\u00a0"))},"k"),ynL=_.$c(function(K){var X=K.character;
return _.Q(_.ID,null,_.Q("div",null,"\u00a0"),_.Q(_.p,{cond:function(){return!(X==null?0:X())||_.fO(X==null?void 0:X())},
then:function(){return _.Q("div",null,"\u00a0")},
else:function(){return _.Q("div",null,X)}}),_.Q("div",null,"\u00a0"))},"l");_.iy(NxT);var eSO=_.$c(function(K){var X=void 0,F=void 0,P=function(){var f;return((f=K.fontSizeMultiplier)==null?0:f.call(K))?K.heightPx()*K.fontSizeMultiplier():K.heightPx()},H=_.Qs(function(){if(!K.numberText())return[];
var f,u,J=((f=K.forceRollUp)==null?void 0:f.call(K))||!F||!((u=K.numberValue)==null?0:u.call(K))||F<K.numberValue(),Z,M=K.numberText();f=P();u=!((Z=K.shouldAnimate)==null||!Z.call(K));Z=[];var n=0,c=0,B=(X?X.replace(/\D/g,"").length:0)-(M?M.replace(/\D/g,"").length:0),L=X?X.split(/(\d)/).filter(Boolean):[];for(M=M.split(/(\d)/).filter(Boolean);B<0;){var A=M[c];Z.push({character:A,rollUp:J,marginMultiplier:f,shouldAnimate:u});c++;tD(A)&&B++}for(;n<B;)A=L[n],Z.push({previousCharacter:A,rollUp:J,marginMultiplier:f,
shouldAnimate:u}),n++,tD(A)||B++;for(;c<M.length;)B=M[c],A=L[n],tD(B)===tD(A)?(c++,n++):tD(B)?(n++,B=void 0):tD(A)&&(c++,A=void 0),Z.push({character:B,previousCharacter:A,rollUp:J,marginMultiplier:f,shouldAnimate:u});X=K.numberText();var d;F=(d=K.numberValue)==null?void 0:d.call(K);return Z},void 0,"B9AmNd");
return _.Q("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:function(){return K.numberText()?["height: "+P()+"px;","line-height: "+K.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.Q(_.cd,{each:H,keyBy:"INDEX"},function(f){return _.Q(dkW,{character:function(){return f().character},
previousCharacter:function(){return f().previousCharacter},
marginMultiplier:function(){return f().marginMultiplier},
rollUp:function(){return f().rollUp},
shouldAnimate:function(){return f().shouldAnimate}})}))},"m");
eSO.idomCompat=!0;_.u64=_.S("web_enable_sink_animated_rolling_character_and_number")?eSO:NxT;_.RSC=_.S("web_enable_sink_animated_rolling_character_and_number")?eSO:_.f4(NxT);_.ku=_.$c(function(K){var X=_.t_(K.ref),F=K.aTagConfig?K.aTagConfig:_.Qs(function(){var P,H,f,u,J,Z;var M=(Z=_.w$((u=K.command)==null?void 0:u.call(K)))!=null?Z:(J=K.command)==null?void 0:J.call(K);return _.Wn({innertubeCommand:M,skipOnClick:(P=K.skipOnClick)==null?void 0:P.call(K),stopPropagation:(H=K.dangerousStopPropagation)==null?void 0:H.call(K),defaultTarget:(f=K.target)==null?void 0:f.call(K)})||{}},void 0,"gnrRge");
_.rs(function(){X.value._data=F()._data;X.value.params=F().params},"dcjvAe");
return _.Q("a",{el:X,href:function(){return F().href$},
rel:function(){return F().rel$},
class:function(){var P,H;return(H=F().className)!=null?H:(P=K.className)==null?void 0:P.call(K)},
style:function(){var P;if((P=K.style)==null?0:P.call(K))return K.style();var H;return((H=K.disabled)==null?0:H.call(K))?"pointer-events:none":""},
"aria-haspopup":function(){return!!F()["aria-haspopup$"]},
"force-new-state":uC(function(){return F()["force-new-state$"]}),
title:uC(function(){var P,H;return(H=F().title$)!=null?H:(P=K.title)==null?void 0:P.call(K)}),
role:uC(function(){return F().role$}),
target:uC(function(){return F().target$}),
dir:uC(function(){var P;return((P=K.dir)==null?0:P.call(K))?K.dir():F().dir}),
tabindex:function(){var P;return F().tabindex$?Number(F().tabindex$):(P=K.tabIndex)==null?void 0:P.call(K)},
"aria-hidden":function(){var P,H;return(H=F()["aria-hidden$"])!=null?H:(P=K.ariaHidden)==null?void 0:P.call(K)},
"aria-label":function(){var P,H;return(H=F()["aria-label$"])!=null?H:(P=K.ariaLabel)==null?void 0:P.call(K)},
"aria-current":K.ariaCurrent,"aria-labelledby":K.ariaLabelledby,"aria-describedby":K.ariaDescribedby,"aria-selected":K.ariaSelected,"tab-identifier":K.tabIdentifier,"on:pointerdown":_.DF(function(P){var H,f;return void((f=(H=F()).onpointerdown)==null?void 0:f.call(H,P))}),
"on:click":_.DF(function(P){var H,f;return void((f=(H=F()).onclick)==null?void 0:f.call(H,P))})},K.children)},"n");var UkL=function(K,X){this.fillAnimation=new Animation(iX4(K),document.timeline);this.strokeAnimation=new Animation(xb9(X),document.timeline)};
UkL.prototype.play=function(){var K,X;(X=(K=this.fillAnimation).play)==null||X.call(K);var F,P;(P=(F=this.strokeAnimation).play)==null||P.call(F)};
UkL.prototype.cancel=function(){var K,X;(X=(K=this.fillAnimation).cancel)==null||X.call(K);var F,P;(P=(F=this.strokeAnimation).cancel)==null||P.call(F)};_.MB=_.$c(function(K){var X=K.model;var F=K.pointerDownEvent;var P=K.pointerUpEvent;var H=K.pointerLeaveEvent;K=_.t_();var f=_.Je({"border-radius":function(){return X().borderRadius}}),u=_.t_(),J=_.t_(),Z=_.D(_.qB(function(){return(P==null?0:P())||(H==null?0:H())?!1:!(F==null||!F())||!1})),M=Z.next().value,n=Z.next().value,c=void 0,B=function(){!c&&J.value&&u.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(c=new UkL(J.value,u.value));
var a;(a=c)==null||a.play()},L=function(){var a;
(a=c)==null||a.cancel()},A=function(){var a;
(a=c)==null||a.cancel()};
_.rs(function(){(P==null?0:P())&&B()},"YjVIpd");
_.rs(function(){(F==null?0:F())&&L()},"UrXvqb");
_.rs(function(){(H==null?0:H())&&A()},"QK6L8b");
Z=_.DF(function(){B();n(!1)});
var d=_.DF(function(){L();n(!0)}),R=_.DF(function(){A();
n(!1)});
_.AZ(function(){if(c){var a;(a=c)==null||a.cancel();c=void 0}});
var l={};M=_.HO("yt-spec-touch-feedback-shape",function(){return IEy(X().color)},(l["yt-spec-touch-feedback-shape--focused"]=function(){return!!X().focused&&!X().disabled},l["yt-spec-touch-feedback-shape--circular"]=function(){return!!X().circular},l["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!X().isExtended},l["yt-spec-touch-feedback-shape--down"]=M,l["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!X().triggerEvents},l));
return _.Q("yt-touch-feedback-shape",{style:_.Je({"border-radius":"inherit"})},_.Q("div",{el:K,class:M,style:_.Je({"margin-top":function(){return X().customTopExtend?"-"+X().customTopExtend+"px":void 0}}),
"on:mousedown":d,"on:mouseup":Z,"on:pointerleave":R,"on:touchstart":d,"on:touchend":Z,"aria-hidden":!0},_.Q("div",{class:"yt-spec-touch-feedback-shape__stroke",style:f,el:u}),_.Q("div",{class:"yt-spec-touch-feedback-shape__fill",style:f,el:J})))},"o");
_.MB.idomCompat=!0;var hSQ={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 K3=_.nO();K3=K3.toLowerCase();if(_.qq(K3,"android")){var mkL=K3.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);mkL&&parseFloat(mkL[1])<100||K3.match("("+Object.keys(hSQ).join("|")+")")};var GgT=_.$c(function(K){return _.Q(_.p,{cond:K.aTagConfig,then:function(X){return _.Q(_.ku,{aTagConfig:X,disabled:K.disabled,className:K.className,style:K.style,title:K.title,ariaLabel:K.ariaLabel,ariaCurrent:function(){var F,P;return((F=K.toggleable)==null?void 0:F.call(K))&&((P=K.toggled)==null?void 0:P.call(K))}},K.children)},
else:function(){return _.Q("button",{"on:click":_.DF(function(X){var F;return(F=K.onClick)==null?void 0:F.call(K,X)}),
class:K.className,title:K.title,style:K.style,disabled:K.disabled,"aria-pressed":function(){var X,F;return((X=K.toggleable)==null?0:X.call(K))?!((F=K.toggled)==null||!F.call(K)):void 0},
"aria-label":K.ariaLabel,"aria-disabled":K.visiblyDisabled,"aria-hidden":K.ariaHidden,tabindex:K.tabIndex},K.children)}})},"p"),vJC=_.$c(function(K){var X=K.data;
var F=K.hasIconLeading;var P=K.hasIconLeadingTrailing;var H=K.hasIconTrailing;var f=K.iconButton;var u=K.iconClassName;var J=K.secondaryIconClassName;var Z=K.icon;var M=K.secondaryIcon;var n=K.textContentClassName;return _.Q(Xi,{className:"",style:"display: inherit; justify-content: center"},_.Q(_.p,{debugInstance:"V4z1Uc",cond:function(){return Z&&(F()||P()||(f==null?void 0:f()))},
then:function(){return _.Q(Xi,null,_.Q("div",{class:u,"aria-hidden":"true"},Z==null?void 0:Z()))}}),_.Q(_.p,{debugInstance:"ok3btb",
cond:function(){return(X().buttonText||X().animatedTextProps||X().formattedButtonText)&&!(f==null?0:f())},
then:function(){return _.Q(Xi,null,_.Q(ljL,{className:n,iconPosition:function(){return X().iconPosition},
text:function(){return X().buttonText},
oneOffCustomTextWrap:function(){return X().oneOffCustomTextWrap},
formattedButtonText:function(){return X().formattedButtonText},
animatedTextProps:function(){return X().animatedTextProps}}))}}),_.Q(_.p,{debugInstance:"DO5Rz",
cond:H,then:function(){return _.Q(Xi,null,_.Q("div",{class:u},Z==null?void 0:Z()))}}),_.Q(_.p,{debugInstance:"bnojSc",
cond:P,then:function(){return _.Q(Xi,null,_.Q("div",{class:J},M==null?void 0:M()))}}),_.Q(_.p,{debugInstance:"HN3kad",
cond:function(){return!X().disabled&&!0},
then:function(){return _.Q(_.MB,{model:function(){return{color:PI3(X())}}})}}))},"q"),ljL=_.$c(function(K){var X=function(){var F,P;
return((F=K.iconPosition)==null?void 0:F.call(K))==="icon-with-label"||((P=K.oneOffCustomTextWrap)==null?void 0:P.call(K))};
return _.Q("div",{class:K.className,"aria-hidden":function(){var F,P,H;return((F=K.ariaHidden)==null?void 0:F.call(K))&&(!((P=K.animatedTextProps)==null||!P.call(K))||!((H=K.formattedButtonText)==null||!H.call(K)))}},_.Q(_.S8,null,_.Q(_.p9,{when:function(){var F;
return(F=K.animatedTextProps)==null?void 0:F.call(K)}},function(){return _.Q(_.RSC,{numberText:function(){return K.animatedTextProps().numberText},
numberValue:function(){return K.animatedTextProps().numberValue},
heightPx:function(){return K.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return K.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return K.animatedTextProps().shouldAnimate},
forceRollUp:function(){return K.animatedTextProps().forceRollUp}})}),_.Q(_.p9,{when:function(){var F;
return(F=K.formattedButtonText)==null?void 0:F.call(K)}},function(){return _.Q(_.Oy,{text:function(){return Object.assign({},K.formattedButtonText(),{lineBreakMode:X()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":K.formattedButtonText().lineBreakMode,
alignment:X()?"TEXT_ALIGNMENT_CENTER":K.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!X()}})}),_.Q(_.p9,{when:function(){var F,P;
return((F=K.iconPosition)==null?void 0:F.call(K))==="icon-with-label"&&((P=K.text)==null?void 0:P.call(K))}},function(){return _.Q(_.Oy,{text:function(){return{content:K.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.Q(_.Bd,null,function(){return K.text})))},"r"),ajT=_.$c(function(K){return _.Q(_.p,{debugInstance:"kM7Sgc",
cond:K.hasLabel,then:function(){var X;return _.Q("label",{class:K.className},K.children,(X=K.textContent)==null?void 0:X.call(K))},
else:function(){return K.children}})},"s"),Xi=_.$c(function(K){return K.children},"t");var Qxy=iB("stamper-context");var gV=_.$c(function(K){var X=K.data;var F=K.icon;var P=K.iconName;var H=K.secondaryIcon;var f=K.secondaryIconName;var u=K.focusedOverride;MHy();var J=kGP(X),Z=J.size,M=J.style;K=J.disabled;var n=J.onTap,c=J.alignByText,B=J.aTagConfig,L=J.customColors,A=J.segmentedPosition,d=J.toggled,R=J.toggleable,l=J.accessibilityLabel,a=J.onToggle,E=J.iconPosition,V=J.oneOffCustomTextWrap,x=J.disableTextEllipsis,N=J.disableBackdropFilter,Dl=J.tooltipText,Mq=J.ariaHidden,pO=J.tabIndex,y9=J.buttonText,Wy=J.formattedButtonText,
eP=J.animatedTextProps,gw=FOO(X,F,H,P,f,u),a3=gw.type;F=gw.shouldFocus;P=gw.hasIconLeading;H=gw.hasIconTrailing;var dL=gw.hasIconLeadingTrailing,nt=gw.hasIconOnly;f=gw.hasIconOnly40;var ht=gw.hasIconWithLabel;u=gw.iconButton;var YC=gw.visiblyDisabled;J=gw.overrideSmallSizeIcon;var uu=gw.iconToRender;gw=gw.secondaryIconToRender;var X8={},qV={};return _.Q(ajT,{className:_.HO("yt-spec-button-shape-with-label",(X8["yt-spec-button-shape-with-label--is-overlay"]=function(){return M()==="overlay"||M()===
"overlay-dark"},X8)),
hasLabel:ht,textContent:function(){return _.Q(ljL,{text:y9,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:V,iconPosition:E,formattedButtonText:Wy,animatedTextProps:eP})}},_.Q(GgT,{aTagConfig:B,
className:_.HO("yt-spec-button-shape-next",function(){return sVy(a3())},function(){return YC()?void 0:zfM(M())},function(){return fhy(Z())},(qV["yt-spec-button-shape-next--disabled"]=YC,qV["yt-spec-button-shape-next--focused"]=F,qV["yt-spec-button-shape-next--icon-trailing"]=H,qV["yt-spec-button-shape-next--icon-leading"]=P,qV["yt-spec-button-shape-next--icon-leading-trailing"]=dL,qV["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return dL()&&!(y9()||Wy())},qV["yt-spec-button-shape-next--icon-button"]=
function(){return nt()||ht()},qV["yt-spec-button-shape-next--icon-only-default"]=f,qV["yt-spec-button-shape-next--align-by-text"]=c,qV["yt-spec-button-shape-next--segmented-start"]=function(){return A()==="start"},qV["yt-spec-button-shape-next--segmented-end"]=function(){return A()==="end"},qV["yt-spec-button-shape-next--override-small-size-icon"]=J,qV["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=V,qV["yt-spec-button-shape-next--disable-text-ellipsis"]=x,qV["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!N()&&H79()},qV)),
style:function(){return D5P(L()).style},
onClick:function(J0){n==null||n(J0);R()&&(a==null||a(J0))},
disabled:K,ariaLabel:l,toggleable:R,toggled:d,title:function(){var J0;return(J0=Dl())!=null?J0:""},
visiblyDisabled:YC,ariaHidden:Mq,tabIndex:pO},_.Q(vJC,{data:X,hasIconLeading:P,hasIconLeadingTrailing:dL,hasIconTrailing:H,iconButton:u,icon:uu,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:gw})))},"u");
gV.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var t5V=_.$c(function(K){var X=K.data;var F=K.id;var P=K.hidden;var H=K.className;var f=K.iconName;var u=K.secondaryIconName;K=_.D(_.u_(!1,void 0,"RyKHFc"));var J=K.next().value,Z=K.next().value,M=function(){var c=_.i9().resolve(_.Nu(_.Iu));c&&Z(c.isKeyBoardInUse())},n=function(){Z(!1)};
K=_.t_(function(c){if(_.i9().resolve(_.Nu(_.Iu)))return c.addEventListener("focusin",M),c.addEventListener("focusout",n),function(){c.removeEventListener("focusin",M);c.removeEventListener("focusout",n)}});
return _.Q("yt-button-shape",{el:K,id:F,class:H,hidden:P},_.Q(_.p,{cond:X,then:function(){return _.Q(gV,{data:X,iconName:f,secondaryIconName:u,focusedOverride:J})}}))},"v");
_.S("web_wiz_button_shape")&&_.EP(t5V,"yt-button-shape",{props:{data:_.vU,id:_.vU,hidden:_.vU,className:_.vU,iconName:_.vU,secondaryIconName:_.vU},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var Fi=function(){var K=_.G.apply(this,arguments)||this;K.keyboardFocused=!1;return K};
_.r(Fi,_.G);Fi.prototype.onFocus=function(){var K=_.i9().resolve(_.Nu(_.Iu));K&&(this.keyboardFocused=K.isKeyBoardInUse())};
Fi.prototype.onBlur=function(){this.keyboardFocused=!1};
Fi.prototype.renderIdom=function(){var K=this;if(this.data){var X=Yf(this.data,!!this.iconName),F=Xa4(this.data);this.data.focused=this.keyboardFocused;Ypl(this.data,function(){var P;ov("yt-icon",{icon:K.iconName,active:(P=K.data)==null?void 0:P.toggled,size:X,style:"width: "+X+"px; height: "+X+"px;",iconFilter:F},tZ)},function(){var P;
ov("yt-icon",{icon:K.secondaryIconName,active:(P=K.data)==null?void 0:P.toggled,size:X,style:"width: "+X+"px; height: "+X+"px;",iconFilter:F},tZ)});
_.iX(this.hostElement,"yt-renderidom-finished")}};
_.Oi.Object.defineProperties(Fi,{template:{configurable:!0,enumerable:!0,get:function(){if(jdu===void 0){var K=document.createElement("template");_.w(K,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);K.content.insertBefore(AnO().content.cloneNode(!0),K.content.firstChild);K.content.insertBefore(Tot().content.cloneNode(!0),K.content.firstChild);jdu=K}K=jdu;return K}}});
Fi.prototype.onBlur=Fi.prototype.onBlur;Fi.prototype.onFocus=Fi.prototype.onFocus;_.O([_.W(Dxt),_.g("design:type",Object)],Fi.prototype,"ytIdomTemplatingBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Fi.prototype,"data",void 0);_.O([_.h(),_.g("design:type",String)],Fi.prototype,"iconName",void 0);_.O([_.h(),_.g("design:type",String)],Fi.prototype,"secondaryIconName",void 0);_.O([_.h(),_.g("design:type",Object)],Fi.prototype,"keyboardFocused",void 0);
_.O([_.Hc("focusin"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Fi.prototype,"onFocus",null);_.O([_.Hc("focusout"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Fi.prototype,"onBlur",null);Fi=_.O([_.Tb({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.S("web_wiz_button_shape")})],Fi);_.EP(_.$c(function(K){function X(){F().seconds&&f(m2q({seconds:Number(F().seconds)-Date.now()/1E3}))}
var F=K.targetTimestamp;K=K.className;var P=_.D(_.u_("",void 0,"U1Q8Ae")),H=P.next().value,f=P.next().value;_.Tr(function(){X();var u=setInterval(function(){X()},1E3);
_.AZ(function(){clearInterval(u)})});
return _.Q("yt-countdown",{class:_.HO("ytCountDownHost",K)},_.Q("div",null,H))},"w"),"yt-countdown",{props:{targetTimestamp:_.vU,
className:_.g$}});_.Af=_.$c(function(K){var X=K.data;var F=K.className;var P=K.style;var H=K.useOutlinedIcon;var f=K.buttonOverrides;var u=K.animatedTextProps;var J=K.onClick;var Z=_.t_(function(R){R.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var l=X().targetId;l&&_.n$T(_.Z9(),l,R);return function(){QBL(_.Z9(),R)}}),M=function(){return X().iconName},n,c=(n=_.i9().resolve(_.Nu(_.m$)))==null?void 0:n(),B=function(){var R=X();
var l=f==null?void 0:f(),a=u==null?void 0:u();if(R){var E=pay(R.type);var V=!!R.title||!!R.titleFormatted;var x=!(!R.iconName&&!R.iconImage);V=x&&!V?"icon-only":x?R.iconTrailing||R.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;V==="icon-only-40"&&(E="text");var N,Dl=(N=l==null?void 0:l.disabled)!=null?N:R.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||R.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";N=Object;x=N.assign;var Mq=R.title,pO=R.titleFormatted;a=a&&a.numberText&&
!isNaN(Number(a.numberValue))?a:void 0;var y9=R.accessibilityText,Wy=csw(R.style),eP=BD9(R.state),gw=Sp9(R.buttonSize),a3=nbT(R,Z,Dl,J);Dl=Dl&&!R.onDisabledTap;var dL=_.Wn({elementsCommand:R.onTap,forceNewState:!0});dL=d$(dL)?dL:void 0;var nt=R.customFontColor,ht=R.customBackgroundColor;var YC=R.customBorderColor;var uu=R.customDarkThemeFontColor,X8=R.customDarkThemeBackgroundColor,qV=R.customDarkThemeBorderColor;nt=c&&uu?uu:nt;ht=c&&X8?X8:ht;YC=c&&qV?qV:YC;YC={color:nt?_.wq(nt):void 0,backgroundColor:ht?
_.wq(ht):void 0,borderColor:YC?_.wq(YC):void 0};R=x.call(N,{},{buttonText:Mq,formattedButtonText:pO,animatedTextProps:a,accessibilityLabel:y9,style:Wy,type:E,state:eP,size:gw,iconPosition:V,onTap:a3,disabled:Dl,aTagConfig:dL,customColors:YC,tooltipText:R.tooltip},l)}else R={style:"mono",type:"text",state:"active",size:"M"};R.focused=d();return R},L=function(){return Yf(B(),!!X().iconName)};
K=_.D(_.u_(!1,void 0,"vxWDPb"));n=K.next().value;var A=K.next().value,d=n;K=_.DF(function(){var R=_.i9().resolve(_.Nu(_.Iu));R&&A(R.isKeyBoardInUse());return!1});
n=_.DF(function(){A(!1);return!1});
_.rs(function(){var R,l=_.T(X==null?void 0:(R=X())==null?void 0:R.onVisible,_.j9);l&&_.yB(l,{disableClickTracking:!0})},"x3DHkf");
return _.Q("button-view-model",{el:Z,class:_.HO("yt-spec-button-view-model",F),"on:focusin":K,"on:focusout":n},_.Q(_.p,{cond:function(){var R;return(X==null?0:(R=X())==null?0:R.iconImage)?{sources:[X().iconImage]}:void 0},
then:function(R){return _.Q(gV,{data:B,icon:function(){return _.Q(_.av,{data:R,alt:"",targetWidth:L,targetHeight:L,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.Q(gV,{data:B,icon:function(){return _.Q(_.ZF,{icon:M,active:function(){return(H==null?0:H())?!1:B().toggled},
animateIcon:function(){var R;return!!(P==null?0:(R=P())==null?0:R.animateIcon)},
size:L})}})}}))},"x");
_.Af.idomCompat={callbacks:{onClick:!0}};_.EP(_.$c(function(K){return _.Q("yt-button-view-model",{id:K.id,class:_.HO(K.scopingClassName,K.classes),icon:function(){var X;return(X=K.icon)==null?void 0:X.call(K)},
"dialog-dismiss":function(){var X;return((X=K.dialogDismiss)==null?0:X.call(K))?"":void 0}},_.Q(_.Af,{data:function(){var X;
return(X=K.data)==null?void 0:X.call(K)},
className:function(){var X;return(X=K.className)==null?void 0:X.call(K)},
style:function(){var X;return(X=K.style)==null?void 0:X.call(K)},
useOutlinedIcon:function(){var X;return(X=K.useOutlinedIcon)==null?void 0:X.call(K)},
buttonOverrides:function(){var X;return(X=K.buttonOverrides)==null?void 0:X.call(K)},
animatedTextProps:function(){var X;return(X=K.animatedTextProps)==null?void 0:X.call(K)},
onClick:function(X){var F;return(F=K.onClick)==null?void 0:F.call(K,X)}}))},"y"),"yt-button-view-model",{props:{data:_.vU,
className:_.vU,style:_.vU,useOutlinedIcon:_.vU,buttonOverrides:_.vU,animatedTextProps:_.vU,onClick:_.g$,scopingClassName:_.vU,id:_.vU,icon:_.vU,dialogDismiss:_.vU,classes:_.vU}});var P9=function(){var K=_.G.apply(this,arguments)||this;K.isGoalActive=!0;return K};
_.r(P9,_.G);P9.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
P9.prototype.progressBarChanged=function(){var K=_.C$(this.hostElement).querySelector("#progress-bar-progress"),X,F,P,H=(P=Number((X=this.creatorGoalState)==null?void 0:X.currentGoalCount)/Number((F=this.creatorGoalState)==null?void 0:F.totalGoalCount)*100)!=null?P:0,f;K.style.width=((f=Math.min(H,100))!=null?f:0)+"%"};
P9.prototype.goalStateChanged=function(){var K;this.isGoalActive=((K=this.creatorGoalState)==null?void 0:K.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var X;K={"--yt-progress-bar-color":$kn((X=this.creatorGoalState)==null?void 0:X.progressBarColor)};_.XU(this.hostElement,K)};
P9.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.Oi.Object.defineProperties(P9.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var K;return this.isGoalActive&&!((K=this.creatorGoalState)==null||!K.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.creatorGoalState)==null?0:K.endTimestampMs){var X;K=Number((X=this.creatorGoalState)==null?void 0:X.endTimestampMs)/1E3;return{seconds:String(K)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.creatorGoalState)==null?0:K.themedTargetImage){var X;K=_.T((X=this.creatorGoalState)==null?void 0:X.themedTargetImage,WQQ);return this.isAppDarkTheme()?K==null?void 0:K.imageDark:K==null?void 0:K.imageLight}}}});
_.Oi.Object.defineProperties(P9,{template:{configurable:!0,enumerable:!0,get:function(){return fjL()}}});
P9.prototype.goalStateChanged=P9.prototype.goalStateChanged;P9.prototype.progressBarChanged=P9.prototype.progressBarChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],P9.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.yj),_.g("design:type",Object)],P9.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],P9.prototype,"ytRendererBehavior",void 0);
_.O([_.h({selectorArgs:["data.creatorGoalEntityKey"],selector:function(K,X){return _.FF(K.entities,"creatorGoalEntity",X)}}),
_.g("design:type",Object)],P9.prototype,"creatorGoalState",void 0);_.O([_.h(),_.g("design:type",Object)],P9.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],P9.prototype,"isGoalActive",void 0);_.O([_.U("creatorGoalState","isGoalActive"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],P9.prototype,"shouldShowCountdown",null);_.O([_.U("creatorGoalState"),_.g("design:type",Object),_.g("design:paramtypes",[])],P9.prototype,"endTimestamp",null);
_.O([_.U("creatorGoalState"),_.g("design:type",Object),_.g("design:paramtypes",[])],P9.prototype,"targetIconThemedImage",null);_.O([_.so("creatorGoalState.currentGoalCount"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],P9.prototype,"progressBarChanged",null);_.O([_.so("creatorGoalState.creatorGoalState"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],P9.prototype,"goalStateChanged",null);
P9=_.O([_.Tb({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],P9);_.t(P9,"yt-creator-goal-progress-flow-view-model",function(){return fjL()},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var $kE;var OFC;var H9=function(){return _.G.apply(this,arguments)||this};
_.r(H9,_.G);H9.prototype.attached=function(){var K,X,F;if(this==null?0:(K=this.data)==null?0:(X=K.pdgPurchasedBumperLoggingDirectives)==null?0:(F=X.loggingDirectives)==null?0:F.trackingParams){var P,H,f;TDl(this==null?void 0:(P=this.data)==null?void 0:(H=P.pdgPurchasedBumperLoggingDirectives)==null?void 0:(f=H.loggingDirectives)==null?void 0:f.trackingParams)}};
H9.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],H9.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],H9.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],H9.prototype,"data",void 0);H9=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],H9);
_.t(H9,"yt-live-chat-item-bumper-view-model",function(){if(OFC===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;$kE===void 0&&($kE=document.createElement("template"));var P=$kE;F.call(X,P.content.cloneNode(!0),K.content.firstChild);OFC=K}K=OFC;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var V5L;var gJQ;_.G9=function(K,X){this.data=K;this.actions=X;this.data=K;this.actions=X};
_.yk=function(){};_.sT={};_.sT.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(K,X){rsl(this.hostElement,K,X)},
getNavigationEndpointPopupAction:function(K){return AsP(K,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(K,X){jVl(this.hostElement,K,X,this.openPopupConfig)}};var GUl=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.DP={};
_.DP.YtEndpointBehavior=[_.sT.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.e8("openPopupConfig");(this.useClickHandler=_.RU("useClickHandler",!1))?this.hostElement.addEventListener("click",FU(this,this.onEndpointClick_)):(TB(this.hostElement,"tap",FU(this,this.onEndpointTap_)),TB(this.hostElement,"touchend",FU(this,this.onEndpointTouchEnd_)));TB(this.hostElement,"touchstart",FU(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
FU(this,this.onEndpointTapStart_))},
onEndpointClick_:function(K){WOy(this.hostElement,K,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(K){var X=this.hostElement,F=this.openPopupConfig,P=this.disableCommandHandlerOverride;P=P===void 0?!1:P;var H=wa4(K);if(H){H.href&&e0(H.href);var f=K.detail;var u=f.sourceEvent;f=f.preventer;u=u.button!==void 0?u.button===0&&!p4(u):f?!p4(f):!0;H.data&&u&&ysT(X,H,K,F,P)}},
onEndpointTouchEnd_:function(K){p4(K)||wa4(K)&&K.preventDefault()},
onEndpointTapStart_:function(K){hf3(K)}}];var lhw="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),ahd=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var EJT={};EJT.YtPlaintextBehavior=[_.JP,{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(K){K.preventDefault();K=K.clipboardData.getData("text/plain");document.execCommand("insertText",!1,K)},
preventRichTextFormatting_:function(K){_.XX&&(K=K.detail.keyboardEvent,K.stopImmediatePropagation(),K.preventDefault())}}];var bFO;var ChQ;var us=function(){var K=_.G.apply(this,arguments)||this;K.ignoreShadyDom=!1;K.hasChange_=!1;K.hasSetTitle_=!1;K.useIOObserverForVisibilityLogging_=_.S("kevlar_use_vimio_behavior")&&_.e8("INNERTUBE_CLIENT_NAME")==="WEB";K.ytFormattedStringObserverHandlerKeys_=void 0;return K};
_.r(us,_.G);_.z=us.prototype;_.z.created=function(){this.useIOObserverForVisibilityLogging_=_.S("kevlar_use_vimio_behavior")&&_.e8("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.z.ready=function(){_.e8("HTML_DIR")==="rtl"?this.useMixedDirectionFormattedStrings?this.hostElement.dir="rtl":this.respectHtmlDir||(this.hostElement.dir="auto"):this.respectLangDir&&(this.hostElement.dir="auto",this.hostElement.style.textAlign="left");this.enableContentEditableChanged_()};
_.z.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.z.detached=function(){this.unobserveIOObservers_()};
_.z.clearContents_=function(){for(var K=this.getRoot(),X=K.lastChild;X&&X.tagName!=="STYLE";){try{K.removeChild(X)}catch(F){break}X=K.lastChild}};
_.z.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var K=_.D(this.ytFormattedStringObserverHandlerKeys_),X=K.next();!X.done;X=K.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(X.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.z.resetForAttributedString=function(){var K=this.getRoot();!K.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),K.appendChild(this.ytAttributedStringElementRef))};
_.z.resetForFormattedString=function(){var K=this.getRoot(),X=K.querySelector("yt-attributed-string");X&&(this.ytAttributedStringElementRef=K.removeChild(X))};
_.z.textChanged=function(){this.textChanged_(this.text)};
_.z.textChanged_=function(K){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!K||!K.runs&&!K.simpleText;if(_.S("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var X=this.hostElement.firstChild;X&&X.nodeName==="FONT";){var F=X;X=X.nextSibling;this.hostElement.removeChild(F)}X=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
F=K.simpleText;var P;!F&&((P=K.runs)==null?void 0:P.length)===1&&this.isSimpleString_(K.runs[0])&&(F=K.runs[0].text);F!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.e8("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(F!==void 0){try{X.textContent=F}catch(H){}X.textContent||(this.isEmpty=!0)}else K=K.runs,F!==void 0&&(K=[{text:F}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),K&&this.updateText_(K),
X.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.z.ellipsisTruncateChanged_=function(){!this.ellipsisTruncate||this.hostElement.title&&!this.hasSetTitle_?this.hasSetTitle_&&(this.hostElement.removeAttribute("title"),this.hasSetTitle_=!1):(this.hostElement.title=this.getRawText(),this.hasSetTitle_=!0)};
_.z.computeAriaLabel_=function(K){return K};
_.z.computeEllipsisTruncateStyling=function(K,X){return K&&!X};
_.z.computeUseAttributedString=function(K){return _.S("web_replace_formatted_with_attributed_string")&&HCd(K)&&!this.disableAttributedString&&!this.enableContentEditable};
_.z.setNodeStyle_=function(K,X){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.S("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?X.removeAttribute("dir"):X.setAttribute("dir","auto");X.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");X.style.color="";var F=null;this.noStyles||(K.bold&&(X.classList.add("bold"),F="bold"),K.deemphasize&&(X.classList.add("deemphasize"),F="deemphasize"),K.italics&&X.classList.add("italic"),
K.strikethrough&&X.classList.add("strikethrough"),K.errorUnderline&&(X.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),K.bracket&&X.classList.add("bracket"),K.textColor&&(X.style.color=_.j0(K.textColor)));F!==X.getAttribute("style-target")&&(F?X.setAttribute("style-target",F):X.removeAttribute("style-target"))};
_.z.setUpVisibilityLogging_=function(K,X){var F=this;this.setNodeTrackingParams_(K,X);var P;((P=X.data)==null?0:P.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(K=this.ytRendererBehavior.visibilityObserver.observe(X,function(H){var f=F.ytRendererBehavior.getVisibilityLogger();f&&f.reportShown(H)},this.ytRendererBehavior.visibilityOptionVisible_),X=this.ytRendererBehavior.visibilityObserver.observe(X,function(H){var f=F.ytRendererBehavior.getVisibilityLogger();
f&&f.reportHidden(H)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(K),this.ytFormattedStringObserverHandlerKeys_.push(X))};
_.z.setNodeTrackingParams_=function(K,X){X.data||(X.data={});if((K=K.loggingDirectives?K.loggingDirectives.trackingParams:null)||X.data.trackingParams)X.data.trackingParams=K};
_.z.computeHasLinkOnly_=function(K){return!(!K||K.length!==1||this.noEndpoints||!K[0].navigationEndpoint)};
_.z.getRoot=function(){var K=this.buildScopeDomOptions();return this.enableContentEditable?_.C$(_.C$(this.hostElement,K).querySelector("[contenteditable]")):_.C$(this.hostElement,K)};
_.z.fixContenteditableScope=function(){var K=function(X){X&&(X.nodeType===1&&X.classList&&(X.classList.add("style-scope"),X.classList.add("yt-formatted-string")),X.childNodes&&X.childNodes.forEach(function(F){K(F)}))};
K(this.getRoot())};
_.z.updateText_=function(K){for(var X=K.length,F=this.getRoot(),P=F.firstChild;P&&P.nodeName==="STYLE";)P=P.nextSibling;for(var H=0;H<X&&P;){var f=K[H],u=_.S("remove_cr_char")&&f.text?f.text.replace("\r",""):f.text;if(this.isSimpleString_(f)&&!this.useMixedDirectionFormattedStrings)if(P.nodeName==="#text"){P.textContent!=u&&(P.textContent=u);H++;P=P.nextSibling;continue}else break;if(_.T(f,r$))break;else if(!this.noEndpoints&&f.navigationEndpoint){if(P.nodeName!=="A")break;this.setDataOnAnchor_(P,
f.navigationEndpoint)}else if(P.nodeName!=="SPAN")break;this.setNodeStyle_(f,P);this.setUpVisibilityLogging_(f,P);P.textContent!=u&&(P.textContent=u);H++;P=P.nextSibling}if(P)for(f=F.lastChild,P=H?P.previousSibling:null;f&&f!=P;){try{F.removeChild(f)}catch(J){break}f=F.lastChild}H!==X&&this.addTextNodes_(K,H)};
_.z.addTextNodes_=function(K,X){for(var F=document.createDocumentFragment(),P=K.length;X<P;X++){var H=K[X],f=_.S("remove_cr_char")&&H.text?H.text.replace("\r",""):H.text;if(this.isSimpleString_(H)&&!this.useMixedDirectionFormattedStrings)F.appendChild(document.createTextNode(f));else{var u=_.T(H,r$);if(u){if(u.image){var J=document.createElement("img");u.isCustomEmoji||J.classList.add("small-emoji");J.classList.add("emoji");u.isCustomEmoji&&(J.dataset.emojiId=u.emojiId);J.src=_.bH(u.image.thumbnails,
this.emojiSize);(H=this.get("image.accessibility.accessibilityData.label",u))?J.alt=H:u.shortcuts&&u.shortcuts.length>0?J.alt=u.shortcuts[0]:u.emojiId&&(J.alt=u.emojiId);F.appendChild(J);this.hasEmoji=!0}}else!this.noEndpoints&&H.navigationEndpoint?(J=document.createElement("a"),J.classList.add("yt-simple-endpoint"),J.setAttribute("spellcheck","false"),this.setDataOnAnchor_(J,H.navigationEndpoint)):J=document.createElement("span"),this.setNodeStyle_(H,J),this.setUpVisibilityLogging_(H,J),J.appendChild(document.createTextNode(f)),
F.appendChild(J)}}this.getRoot().appendChild(F)};
_.z.isSimpleString_=function(K){return(this.noEndpoints||!K.navigationEndpoint)&&!_.T(K,r$)&&(this.noStyles||!(K.bold||K.deemphasize||K.italics||K.strikethrough||K.errorUnderline||K.bracket||K.textColor))&&!K.loggingDirectives};
_.z.getRawText=function(){return _.lj(this.text)};
_.z.getFirstRunText=function(){var K;if(((K=this.text)==null?0:K.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.z.setFirstRunText=function(K){var X;((X=this.text)==null?0:X.runs)&&this.text.runs[0]&&(this.text.runs[0].text=K,this.textChanged_(this.text))};
_.z.setDataOnAnchor_=function(K,X){var F=this;!_.S("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(X)||this.isSignalServiceEndpoint_(X)?(K.onclick=this.serviceEndpointHandler_(X),Ao(K,"#")):U0y({text:this.text,command:X},function(){EOP(K,X,F.target)})};
_.z.isServiceEndpoint_=function(K){var X;return!((X=_.T(K==null?void 0:K.commandMetadata,_.g_))==null||!X.sendPost)};
_.z.isSignalServiceEndpoint_=function(K){return!!_.T(K,_.ss)};
_.z.serviceEndpointHandler_=function(K){var X=this;return function(F){_.Kl(X.hostElement,[K]);F.preventDefault()}};
_.z.overrideAriaLabelChanged_=function(){var K=this.getRoot();this.enableContentEditable&&K&&K.setAttribute("aria-label",this.overrideAriaLabel)};
_.z.enableContentEditableChanged_=function(){var K=this,X=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),X=_.C$(this.hostElement,X),!X.lastChild||X.lastChild instanceof HTMLElement&&X.lastChild.id!=="contenteditable-root"){var F=document.createElement("div");F.id="contenteditable-root";F.setAttribute("contenteditable","true");F.setAttribute("dir","auto");F.onfocus=function(){K.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
X.appendChild(F);this.overrideAriaLabel&&F.setAttribute("aria-label",this.overrideAriaLabel)}}else F=_.ND(this.hostElement).firstChild,F instanceof HTMLElement&&F.id==="contenteditable-root"&&_.C$(this.hostElement,X).removeChild(F)};
_.z.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.z.getNodesForVisibilityLogging_=function(){return _.Ck(this.getRoot().childNodes,function(K){var X;return!((X=K.data)==null||!X.trackingParams)})};
_.z.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.z.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var K=this.ytRendererBehavior.getVisibilityLogger();K&&this.getNodesForVisibilityLogging_().forEach(function(X){K.reportShown(X)})}};
_.z.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var K=this.ytRendererBehavior.getVisibilityLogger();K&&this.getNodesForVisibilityLogging_().forEach(function(X){K.reportHidden(X)})}};
_.Oi.Object.defineProperties(us.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.S("enable_mixed_direction_formatted_strings")}}});
us.prototype.enableContentEditableChanged_=us.prototype.enableContentEditableChanged_;us.prototype.overrideAriaLabelChanged_=us.prototype.overrideAriaLabelChanged_;us.prototype.ellipsisTruncateChanged_=us.prototype.ellipsisTruncateChanged_;us.prototype.textChanged=us.prototype.textChanged;_.O([_.W(EJT.YtPlaintextBehavior),_.g("design:type",Object)],us.prototype,"ytPlaintextBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],us.prototype,"ytComponentBehavior",void 0);
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],us.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],us.prototype,"text",void 0);_.O([_.h(),_.g("design:type",Boolean)],us.prototype,"noEndpoints",void 0);_.O([_.h(),_.g("design:type",Boolean)],us.prototype,"noStyles",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],us.prototype,"isDarkTheme",void 0);
_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],us.prototype,"splitLines",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],us.prototype,"forceDefaultStyle",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],us.prototype,"ellipsisTruncate",void 0);_.O([_.h(),_.g("design:type",Object)],us.prototype,"ignoreShadyDom",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.g("design:type",Boolean)],us.prototype,"ellipsisTruncateStyling",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.g("design:type",String)],us.prototype,"ariaLabel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],us.prototype,"isEmpty",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.g("design:type",Boolean)],us.prototype,"hasLinkOnly_",void 0);_.O([_.h(),_.g("design:type",Boolean)],us.prototype,"hasEmoji",void 0);_.O([_.h(),_.g("design:type",Boolean)],us.prototype,"disableAttributedString",void 0);_.O([_.h(),_.g("design:type",Boolean)],us.prototype,"isOverlay",void 0);_.O([_.h(),_.g("design:type",Boolean)],us.prototype,"linkInheritColor",void 0);
_.O([_.h(),_.g("design:type",Boolean)],us.prototype,"noPreWrap",void 0);_.O([_.h(),_.g("design:type",Boolean)],us.prototype,"userInput",void 0);_.O([_.h({value:16}),_.g("design:type",Number)],us.prototype,"emojiSize",void 0);_.O([_.h(),_.g("design:type",String)],us.prototype,"target",void 0);_.O([_.h(),_.g("design:type",Boolean)],us.prototype,"enableContentEditable",void 0);_.O([_.h(),_.g("design:type",String)],us.prototype,"overrideAriaLabel",void 0);
_.O([_.h(),_.g("design:type",Boolean)],us.prototype,"respectHtmlDir",void 0);_.O([_.h(),_.g("design:type",Boolean)],us.prototype,"respectLangDir",void 0);_.O([_.U("plaintextOnly"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],us.prototype,"useMixedDirectionFormattedStrings",null);_.O([_.h({computed:"computeUseAttributedString(text)"}),_.g("design:type",Boolean)],us.prototype,"useYtAttributedString",void 0);
_.O([_.so("text"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],us.prototype,"textChanged",null);_.O([_.so("ellipsisTruncate"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],us.prototype,"ellipsisTruncateChanged_",null);_.O([_.so("overrideAriaLabel"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],us.prototype,"overrideAriaLabelChanged_",null);
_.O([_.so("enableContentEditable"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],us.prototype,"enableContentEditableChanged_",null);us=_.O([_.Tb({is:"yt-formatted-string",disableElementRegistration:!0})],us);
_.t(us,"yt-formatted-string",function(){if(ChQ===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;bFO===void 0&&(bFO=document.createElement("template"));var P=bFO;F.call(X,P.content.cloneNode(!0),K.content.firstChild);ChQ=K}K=ChQ;return K});var NoC;var iFU;var xkW;var Ijt;var ql=function(){var K=_.G.apply(this,arguments)||this;K.focused=!1;K.disabled=!1;K.isOverlay=!1;return K};
_.r(ql,_.G);ql.prototype.triggerDown=function(){if(!this.disabled){_.iN(this.hostElement,"down",!0);var K;(K=this.currentAnimation)==null||K.cancel()}};
ql.prototype.triggerUp=function(){if(!this.disabled){_.iN(this.hostElement,"down",!1);var K=this.fillElement;var X=this.strokeElement;typeof GroupEffect==="function"?(K=new GroupEffect([iX4(K),xb9(X)]),K=new Animation(K,document.timeline)):K=new UkL(K,X);this.currentAnimation=K;var F;(F=this.currentAnimation)==null||F.play()}};
_.O([_.fa(".stroke"),_.g("design:type",HTMLElement)],ql.prototype,"strokeElement",void 0);_.O([_.fa(".fill"),_.g("design:type",HTMLElement)],ql.prototype,"fillElement",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],ql.prototype,"focused",void 0);_.O([_.h(),_.g("design:type",Object)],ql.prototype,"disabled",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],ql.prototype,"isOverlay",void 0);ql=_.O([_.Tb({is:"yt-interaction",disableElementRegistration:!0})],ql);
_.t(ql,"yt-interaction",function(){if(Ijt===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;xkW===void 0&&(xkW=document.createElement("template"));var P=xkW;F.call(X,P.content.cloneNode(!0),K.content.firstChild);Ijt=K}K=Ijt;return K},{mode:2});var J1=function(){return _.G.apply(this,arguments)||this};
_.r(J1,_.G);_.z=J1.prototype;_.z.ready=function(){var K=this,X=_.C$(this.hostElement).querySelector("#button");X.addEventListener("focus",function(){rlC||(rlC=new TrZ);K.keyboardFocused=rlC.isKeyBoardInUse()});
X.addEventListener("blur",function(){K.keyboardFocused=!1;K.rippleUp_()})};
_.z.computeTabIndex_=function(K){return K?-1:0};
_.z.computeButtonAriaPressed_=function(K){if(this.toggleable)return K?"true":"false"};
_.z.rippleDown_=function(){_.C$(this.hostElement).querySelector("#interaction").triggerDown()};
_.z.rippleUp_=function(){_.C$(this.hostElement).querySelector("#interaction").triggerUp()};
_.z.onPressedChanged_=function(){var K=_.ND(_.C$(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.ND(_.C$(this.hostElement).querySelector("#button")).children[0];K&&(K.active=this.pressed)};
J1.prototype.onPressedChanged_=J1.prototype.onPressedChanged_;J1.prototype.rippleUp_=J1.prototype.rippleUp_;J1.prototype.rippleDown_=J1.prototype.rippleDown_;_.O([_.h(),_.g("design:type",String)],J1.prototype,"label",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],J1.prototype,"disabled",void 0);_.O([_.h(),_.g("design:type",Boolean)],J1.prototype,"pressed",void 0);_.O([_.h(),_.g("design:type",Object)],J1.prototype,"toggleable",void 0);
_.O([_.h(),_.g("design:type",Boolean)],J1.prototype,"untabbable",void 0);_.O([_.h(),_.g("design:type",Boolean)],J1.prototype,"keyboardFocused",void 0);_.O([_.Hc("down"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],J1.prototype,"rippleDown_",null);_.O([_.Hc("up"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],J1.prototype,"rippleUp_",null);
_.O([_.so("pressed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],J1.prototype,"onPressedChanged_",null);J1=_.O([_.Tb({is:"yt-icon-button",disableElementRegistration:!0})],J1);
_.t(J1,"yt-icon-button",function(){if(iFU===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;NoC===void 0&&(NoC=document.createElement("template"));var P=NoC;F.call(X,P.content.cloneNode(!0),K.content.firstChild);iFU=K}K=iFU;return K},{mode:2});var kgE=_.lr(["aria-"]),ZP={};ZP.YtRenderButtonBehavior=[_.k.YtRendererBehavior,_.DP.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!!_.i9().resolve(_.Nu(_.Iu))&&_.S("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 K=this.computeHref_(this.endpoint,!0);K?Ao(this.elements_.endpoint,K):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){K=this.buttonClass.split(" ");K=_.D(K);for(var X=K.next();!X.done;X=K.next())X=X.value,_.iN(this.hostElement,X,!0),this.elements_.button&&_.iN(this.elements_.button,X,!0),this.elements_.text&&_.iN(this.elements_.text,X,!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&&(K=null,this.buttonAccessibility&&(K=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=K:K?_.af([_.kE(kgE)],this.elements_.button,"aria-label",K):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var K=_.i9().resolve(_.Nu(_.Iu));K&&(this.keyboardFocused=K.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.gk("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,_.cg(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.cg(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(K,X){if(X)for(K=X.split(" "),K=_.D(K),X=K.next();!X.done;X=K.next())X=X.value,_.iN(this.hostElement,X,!1),this.elements_.button&&_.iN(this.elements_.button,X,!1),this.elements_.text&&_.iN(this.elements_.text,X,!1)},
buttonIconChanged_:function(K){this.elements_.icon?K?(this.elements_.icon.icon=K,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.cg(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.x1(this.hostElement,"is-paper-button-with-icon",!1)):K&&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"&&_.cg(this.elements_.button).appendChild(this.elements_.icon):_.cg(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.x1(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(K){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,K){var X=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(K){case "yt_icon_button_with_label":X=!0;_.iN(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();K=_.cg(this.elements_.button).firstElementChild;
this.elements_.icon=K;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.cg(this.elements_.endpoint).appendChild(this.elements_.button);_.cg(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.gk("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;_.cg(this.elements_.button).appendChild(this.elements_.text);_.cg(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":X=!0,this.elements_.button=this.getYtIconButton_(),K=_.cg(this.elements_.button).firstElementChild,this.elements_.icon=K,this.setIconActive_(this.elements_.icon),
_.cg(this.elements_.endpoint).appendChild(this.elements_.button)}_.x1(this.hostElement,"is-icon-button",X);_.x1(this.hostElement,"is-paper-button",!X);_.x1(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 F;_.C$((F=this.container.hostElement)!=null?F:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.cg(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(K){if(K!=void 0||this.disabled)this.disabled=K,this.elements_.button&&(this.elements_.button.disabled=K)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(K){_.S("kevlar_system_icons")&&K&&this.data&&(this.data.isSelected!==void 0?K.active=this.data.isSelected:this.data.isToggled!==void 0&&(K.active=this.data.isToggled))},
observeBasicPalette_:function(K){_.Sd(this.hostElement,K)},
disabledChanged_:function(K){this.data&&this.set("data.isDisabled",K)},
onYtButtonTap_:function(K){if(this.disabled)K.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.Kl(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(K=this.disableCommandHandlerOverride,!this.data||!this.data.command||K||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.S("handle_service_request_actions")||_.Kl(this.hostElement,[this.serviceEndpoint]),
_.iX(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.S("handle_service_request_actions")?(K=[],this.serviceEndpoint&&K.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&K.push(this.data.command),K.length&&_.X0(this.hostElement,K,this.hostElement)):this.data&&this.data.command&&(K=this.data.command,K.accountUnlinkCommand||K.accountLinkCommand||K.insertAdCommand||K.insertHighlightMarkerCommand||
K.createLivestreamHighlightClipCommand||K.getVideoUploadFeedbackCommand||K.musicDeletePrivatelyOwnedEntityCommand||K.ypcCancelRecurrenceEndpoint||K.getMultiSelectCommandEndpoint?_.Kl(this.hostElement,[K]):_.X0(this.hostElement,[K],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 K,X=_.C$((K=this.container.hostElement)!=null?K:this.container);X.lastChild&&X.lastChild.tagName!="STYLE";)try{X.removeChild(X.lastChild)}catch(F){break}},
getYtIconButton_:function(){var K=this.reuseEnabled_()?_.gk("yt-icon-button"):document.createElement("yt-icon-button"),X=_.cg(K).firstElementChild;if(X&&X.is!="yt-icon"){for(X=_.cg(K);X.lastChild;)X.removeChild(X.lastChild);X=null}X||(X=this.getIcon_(),this.setIconActive_(X),_.cg(K).appendChild(X));return K},
reuseEnabled_:function(){return _.S("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.gk("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.gk("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.KFL={};
_.KFL.YtButtonBehavior=[ZP.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var K=this.data;K&&(this._setEndpoint(this.computeEndpoint_(K)),this._setServiceEndpoint(this.computeServiceEndpoint_(K)),this._setCommand(this.computeCommand_(K)),this._setButtonIcon(this.computeButtonIcon_(K)),this._setButtonText(this.computeButtonText_(K,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(K)),this._setButtonTooltip(this.computeTooltip_(K)),this._setButtonClass(this.computeButtonClass_(K)),this._setIconPositionType(this.computeIconPositionType_(K)),this.updateRenderedElements())},
setPressedState:function(K){var X;if((X=this.elements_)==null?0:X.button)this.elements_.button.pressed=!!K},
computeIconPositionType_:function(K){return K&&K.iconPosition||null},
computeEndpoint_:function(K){var X=K&&K.navigationEndpoint,F=this.get("data.command.commandMetadata.webCommandMetadata.url"),P=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return X?X:K&&K.command&&K.command.modalEndpoint?K.command:F&&!P&&K.command?K.command:null},
computeServiceEndpoint_:function(K){var X=K&&K.serviceEndpoint,F=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return X?X:F&&K.command?K.command:null},
computeCommand_:function(K){return K&&K.command||null},
computeButtonIcon_:function(K){return K&&K.icon&&K.icon.iconType?_.Fl(K.icon.iconType):null},
computeButtonText_:function(K,X){return!X&&K&&K.text||null},
computeAccessibility_:function(K){return this.get("accessibilityData.accessibilityData",K)||K&&K.accessibility||(K&&K.text?{label:this.getSimpleString(K.text)}:null)},
computeTooltip_:function(K){return K?K.isDisabled&&K.disabledTooltip||K.tooltip||null:null},
computeButtonClass_:function(K){var X=K&&K.style?K.style.toLowerCase().replace(/_/g,"-")+" ":"";X+=K&&K.size?K.size.toLowerCase().replace(/_/g,"-")+" ":"";K.colorData&&K.colorData.basicColorPaletteData&&K.colorData.basicColorPaletteData.borderColor&&(X+="palette-with-border");return X.trim()}}];var ox={};var Xit;var FFV;var P0W,HCC=function(){return P0W!==void 0?P0W:P0W=document.createElement("template")};
document.head.appendChild(HCC().content);var sLE;var zat,feE=function(){return zat!==void 0?zat:zat=document.createElement("template")};
document.head.appendChild(feE().content);var D9Z;var ueC,q7E=function(){return ueC!==void 0?ueC:ueC=document.createElement("template")};
document.head.appendChild(q7E().content);var JhL;var ZCZ=document.head,Y7V=ZCZ.appendChild,QLt;if(JhL===void 0){var MST=document.createElement("template");_.w(MST,"\x3c!--css-build:shady--\x3e");MST.content.insertBefore(q7E().content.cloneNode(!0),MST.content.firstChild);JhL=MST}QLt=JhL;Y7V.call(ZCZ,QLt.content);var njQ=document.head,cht=njQ.appendChild,piN;if(D9Z===void 0){var BNE=document.createElement("template");_.w(BNE,"\x3c!--css-build:shady--\x3e");BNE.content.insertBefore(feE().content.cloneNode(!0),BNE.content.firstChild);D9Z=BNE}piN=D9Z;cht.call(njQ,piN.content);var S7O=document.head,ojZ=S7O.appendChild,LFV;if(sLE===void 0){var TNC=document.createElement("template");_.w(TNC,"\x3c!--css-build:shady--\x3e");TNC.content.insertBefore(HCC().content.cloneNode(!0),TNC.content.firstChild);sLE=TNC}LFV=sLE;ojZ.call(S7O,LFV.content);var rhT;_.L4("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");rhT=_.S("web_button_rework")&&_.RU("BUTTON_REWORK")||_.S("web_button_rework_with_live");_.Yq=function(){return _.G.apply(this,arguments)||this};
_.r(_.Yq,_.G);_.Yq.prototype.created=function(){this.openPopupConfig=_.e8("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.Yq.prototype.onYtNavigate_=function(K){var X=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(K.detail.endpoint);X&&(this.ytOpenPopupBehavior.openPopup(X),K.stopPropagation(),K.preventDefault())};
_.Oi.Object.defineProperties(_.Yq,{template:{configurable:!0,enumerable:!0,get:function(){if(FFV===void 0){var K=document.createElement("template");_.w(K,"\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");K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);
var X=K.content,F=X.insertBefore;Xit===void 0&&(Xit=document.createElement("template"));var P=Xit;F.call(X,P.content.cloneNode(!0),K.content.firstChild);FFV=K}K=FFV;return K}}});
_.Yq.prototype.onYtNavigate_=_.Yq.prototype.onYtNavigate_;_.O([_.W(_.sT.YtOpenPopupBehavior),_.g("design:type",Object)],_.Yq.prototype,"ytOpenPopupBehavior",void 0);_.O([_.W(_.KFL.YtButtonBehavior),_.g("design:type",Object)],_.Yq.prototype,"ytButtonBehavior",void 0);_.O([_.Hc("yt-navigate"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],_.Yq.prototype,"onYtNavigate_",null);
_.Yq=_.O([_.Tb({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:rhT})],_.Yq);var AhO;var jLO=_.S("web_button_rework")&&_.RU("BUTTON_REWORK")||_.S("web_button_rework_with_live"),QU=function(){var K=_.G.apply(this,arguments)||this;K.isPressed=!1;K.forceIconButton=!1;K.forceIconOnly=!1;K.forceModernIconButton=!1;K.skipCommandHandling=!1;K.alignByText=!1;K.fitToVisibleBounds=!0;K.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};K.onTap=function(X){_.iX(K.hostElement,"yt-service-request-sent-button-renderer",X)};
return K};
_.r(QU,_.G);_.z=QU.prototype;_.z.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.z.onClick=function(K){var X,F=this.disabled||((X=this.data)==null?void 0:X.isDisabled);X=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");F&&X&&K.stopPropagation()};
_.z.computeIcon=function(){var K,X,F=(K=this.data)==null?void 0:(X=K.icon)==null?void 0:X.iconType;if(F)return _.Fl(F)};
_.z.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.z.handleUpdateButtonAction=function(K){K=_.T(K,PQL);var X=_.T(K==null?void 0:K.updatedButton,_.jg);if(this.data&&K&&X){var F=this.data;F.targetId&&K.targetId&&F.targetId===K.targetId&&(this.data=X)}};
_.Oi.Object.defineProperties(QU.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var K=this;if(this.data){var X=Ebd({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.iX(K.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.iX(K.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});X.alignByText=this.alignByText;return X}}}});
_.Oi.Object.defineProperties(QU,{template:{configurable:!0,enumerable:!0,get:function(){if(AhO===void 0){var K=document.createElement("template");_.w(K,'\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>');AhO=K}K=AhO;return K}}});
QU.prototype.onClick=QU.prototype.onClick;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],QU.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],QU.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],QU.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],QU.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],QU.prototype,"isPressed",void 0);
_.O([_.h(),_.g("design:type",Object)],QU.prototype,"forceIconButton",void 0);_.O([_.h(),_.g("design:type",Object)],QU.prototype,"forceIconOnly",void 0);_.O([_.h(),_.g("design:type",Object)],QU.prototype,"forceModernIconButton",void 0);_.O([_.h(),_.g("design:type",Object)],QU.prototype,"skipCommandHandling",void 0);_.O([_.h(),_.g("design:type",Object)],QU.prototype,"alignByText",void 0);_.O([_.h(),_.g("design:type",Object)],QU.prototype,"buttonTooltipPosition",void 0);
_.O([_.h(),_.g("design:type",Object)],QU.prototype,"fitToVisibleBounds",void 0);_.O([_.h({computed:"computeTooltip(data)"}),_.g("design:type",Object)],QU.prototype,"tooltip",void 0);_.O([_.h(),_.g("design:type",Object)],QU.prototype,"overrides",void 0);_.O([_.h(),_.g("design:type",Boolean)],QU.prototype,"disabled",void 0);_.O([_.Hc("click"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],QU.prototype,"onClick",null);
_.O([_.U("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.g("design:type",Object),_.g("design:paramtypes",[])],QU.prototype,"computedButtonShape",null);QU=_.O([_.Tb({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!jLO,cssBuildOptOut:!0}),_.Tb({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!jLO,cssBuildOptOut:!0})],QU);var wiC;var yht;var Ml=function(){var K=_.G.apply(this,arguments)||this;K.empty_=!0;K.loadTime=Infinity;K.pendingPaint=!1;K.hasChange_=!1;K.oldThumbnail_=null;K.oldDelayedSrc_="";K.objectURL_=null;return K};
_.r(Ml,_.G);_.z=Ml.prototype;_.z.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.z.ready=function(){var K=this.shouldShowPlaceholder_();_.iN(this.hostElement,"no-transition",!0);K&&this.hostElement.classList.add("with-placeholder")};
_.z.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.z.isThumbPreloaded_=function(K){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",K)};
_.z.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||WFt};
_.z.computeThumbnailSrc_=function(K){return K&&K.thumbnails?_.bH(K.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.z.computeAlt_=function(){var K=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&K||""};
_.z.thumbnailChanged_=function(){var K=_.D([this.thumbnail,this.oldThumbnail_]),X=K.next().value;K=K.next().value;this.oldThumbnail_=X;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(K=this.computeThumbnailSrc_(K),this.computeThumbnailSrc_(X)===K))return;_.S("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(X)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):X&&_.RU("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.tg(this,this.onReload_):_.tg(this,this.onShow_):this.resetImage_();X&&(this.hostElement.style.opacity=""+X.opacity)}};
_.z.delayedSrcChanged_=function(){var K=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===K||this.resetImage_()};
_.z.setSrc_=function(K){K?(_.C$(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.C$(this.hostElement).querySelector("#img").src=K):(_.C$(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.z.resetImage_=function(){KJT(this.hostElement);this.empty_=!0;this.setSrc_(WFt);this.ytRendererBehavior.invalidate(!1)};
_.z.observePlaceholderColor_=function(){var K=this.thumbnail&&this.thumbnail.placeholderColor;K?this.hostElement.style.backgroundColor=_.j0(K):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.z.onLoad_=function(){_.C$(this.hostElement).querySelector("#img").src&&_.C$(this.hostElement).querySelector("#img").src!==WFt&&(kaM(this.hostElement),this.notifyOnLoaded&&_.iX(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.z.onError_=function(){var K=this;if(_.S("web_use_cache_for_image_fallback"))fE4(_.C$(this.hostElement).querySelector("#img").src).then(function(X){K.objectURL_=_.Si(X).toString();K.setSrc_(K.objectURL_)}).catch(function(){_.S("kevlar_woffle_fallback_image")&&K.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.z.onPrescanVisible=function(){this.onShow_()};
_.z.onVisible=function(){if(_.S("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.z.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var K=this.computeSrc_();K!==_.C$(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(K))}};
_.z.onReload_=function(){this.empty_=!1;var K=this.computeSrc_();K!==_.C$(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(K))};
_.z.shouldShowPlaceholder_=function(){return _.S("kevlar_thumbnail_bg")};
Ml.prototype.observePlaceholderColor_=Ml.prototype.observePlaceholderColor_;Ml.prototype.delayedSrcChanged_=Ml.prototype.delayedSrcChanged_;Ml.prototype.thumbnailChanged_=Ml.prototype.thumbnailChanged_;_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],Ml.prototype,"alt",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Ml.prototype,"ariaHidden",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],Ml.prototype,"ariaLabel",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Ml.prototype,"hidden",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],Ml.prototype,"id",void 0);_.O([_.W(_.Ux.YtVisibilityBehavior),_.g("design:type",Object)],Ml.prototype,"ytVisibilityBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Ml.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",String)],Ml.prototype,"delayedSrc",void 0);
_.O([_.h(),_.g("design:type",Object)],Ml.prototype,"thumbnail",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],Ml.prototype,"loaded",void 0);_.O([_.h(),_.g("design:type",Boolean)],Ml.prototype,"notifyOnLoaded",void 0);_.O([_.h(),_.g("design:type",Number)],Ml.prototype,"height",void 0);_.O([_.h(),_.g("design:type",Number)],Ml.prototype,"width",void 0);_.O([_.h({value:function(){return"width"}}),
_.g("design:type",String)],Ml.prototype,"dimension",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Ml.prototype,"fit",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Ml.prototype,"fitHeight",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Ml.prototype,"fitWidth",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],Ml.prototype,"objectFit",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],Ml.prototype,"objectPosition",void 0);_.O([_.h(),_.g("design:type",String)],Ml.prototype,"preferredThumbnail",void 0);_.O([_.h({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.g("design:type",String)],Ml.prototype,"alt_",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],Ml.prototype,"sharedTooltipText",void 0);
_.O([_.h(),_.g("design:type",Boolean)],Ml.prototype,"ftlEligible",void 0);_.O([_.h({value:void 0}),_.g("design:type",String)],Ml.prototype,"observeHiddenOption",void 0);_.O([_.h({value:"observe_once"}),_.g("design:type",String)],Ml.prototype,"observePrescanOption",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Ml.prototype,"roundedContainer",void 0);
_.O([_.JA("thumbnail"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ml.prototype,"thumbnailChanged_",null);_.O([_.JA("delayedSrc"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ml.prototype,"delayedSrcChanged_",null);_.O([_.so("thumbnail.placeholderColor"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ml.prototype,"observePlaceholderColor_",null);
Ml=_.O([_.Tb({is:"yt-img-shadow",disableElementRegistration:!0})],Ml);var WFt=_.RU("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.xc()(Ml,"yt-img-shadow",function(){if(yht===void 0){var K=document.createElement("template");_.w(K,'\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">');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;wiC===void 0&&(wiC=document.createElement("template"));var P=wiC;F.call(X,P.content.cloneNode(!0),K.content.firstChild);yht=K}K=yht;return K},{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 j6T;_.n3=new _.Oh("SCREEN_MANAGER_TOKEN");j6T=new _.Oh("LOG_INITIAL_SCREEN_TOKEN");_.pS=_.$c(function(K){function X(Dl){return _.T(Dl,_.nS)}
function F(){var Dl=P().isTogglingDisabled||B()?d():!d();R(Dl);a(!1);if(!P().isTogglingDisabled){var Mq;(Mq=u)==null||Mq(!!Dl)}var pO;((pO=f)==null?0:pO())||_.FT(_.i9().resolve(_.n3),P().trackingParams);var y9;if(!Dl||!X(P().defaultButtonViewModel)||(y9=f)!=null&&y9()){var Wy;!X(P().toggledButtonViewModel)||((Wy=f)==null?0:Wy())||_.FT(_.i9().resolve(_.n3),X(P().toggledButtonViewModel).trackingParams)}else _.FT(_.i9().resolve(_.n3),X(P().defaultButtonViewModel).trackingParams)}
var P=K.data,H=K.buttonShapeOverrides,f=K.disableExplicitClickLogging,u=K.onToggle,J=K.style,Z=K.useOutlinedIcon,M=K.className,n=function(){var Dl,Mq;return d()?(Dl=K.animatedTextPropsToggled)==null?void 0:Dl.call(K):(Mq=K.animatedTextPropsDefault)==null?void 0:Mq.call(K)},c=_.Qs(function(){return n()?Object.assign({},n(),{shouldAnimate:l()}):void 0},void 0,"ZKEa0b"),B=function(){var Dl;
return((Dl=x())==null?void 0:Dl.isToggled)!==void 0},L=_.D(_.qB(function(){var Dl,Mq,pO;
return B()?(Dl=x())==null?void 0:Dl.isToggled:(pO=H==null?void 0:(Mq=H())==null?void 0:Mq.toggled)!=null?pO:P().isToggled})),A=L.next().value;
L=L.next().value;var d=A,R=L;L=_.D(_.qB(function(){var Dl,Mq;return(Dl=K.animatedTextPropsToggled)==null?void 0:(Mq=Dl.call(K))==null?void 0:Mq.shouldAnimate}));
A=L.next().value;L=L.next().value;var l=A,a=L;A=_.D(_.u_(!1,void 0,"S11hid"));var E=A.next().value,V=A.next().value,x=_.rn(function(Dl){var Mq;a:{var pO=P().entityKey,y9=P().toggledStateEntitySelectorType;if(y9&&pO)switch(y9){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var Wy;Dl=(Wy=_.FF(Dl.entities,"sfvAudioItemCurrentlyPlayingEntity",pO))!=null?Wy:void 0;Wy=(Mq=Dl==null?void 0:Dl.sfvAudioItemPlaybackState)!=null?Mq:void 0;if(Wy==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){Mq={isToggled:!0};
break a}if(Wy){Mq={isToggled:!1};break a}break;default:_.yy(new _.nG("Error: entitySelectorType defined but not matched in selector.",Dl,y9))}Mq=void 0}return Mq}),N=function(){return Object.assign({},H==null?void 0:H(),{onToggle:F,
toggleable:!0,toggled:d(),focused:E()})};
return _.Q("toggle-button-view-model",{"on:focusin":_.DF(function(){var Dl=_.i9().resolve(_.Nu(_.Iu));Dl&&V(Dl.isKeyBoardInUse());return!1}),
"on:focusout":_.DF(function(){V(!1);return!1}),
class:M},_.Q(_.p,{cond:function(){return d()?X(P().toggledButtonViewModel):X(P().defaultButtonViewModel)},
then:function(Dl){return _.Q(_.Af,{data:Dl,className:M,style:J,useOutlinedIcon:Z,buttonOverrides:N,animatedTextProps:c})}}))},"z");
_.pS.idomCompat={callbacks:{onToggle:!0}};_.EP(_.$c(function(K){return _.Q("yt-toggle-button-view-model",{class:function(){var X;return(X=K.scopingClassName)==null?void 0:X.call(K)}},_.Q(_.pS,{data:function(){var X;
return(X=K.data)==null?void 0:X.call(K)},
buttonShapeOverrides:function(){var X;return(X=K.overrides)==null?void 0:X.call(K)},
animatedTextPropsDefault:function(){var X;return(X=K.animatedTextPropsDefault)==null?void 0:X.call(K)},
animatedTextPropsToggled:function(){var X;return(X=K.animatedTextPropsToggled)==null?void 0:X.call(K)},
disableExplicitClickLogging:function(){var X;return(X=K.disableExplicitClickLogging)==null?void 0:X.call(K)},
onToggle:function(X){var F;return(F=K.onToggle)==null?void 0:F.call(K,X)},
style:function(){var X;return(X=K.style)==null?void 0:X.call(K)},
useOutlinedIcon:function(){var X;return(X=K.useOutlinedIcon)==null?void 0:X.call(K)},
className:function(){var X;return(X=K.className)==null?void 0:X.call(K)}}))},"A"),"yt-toggle-button-view-model",{props:{data:_.vU,
buttonShapeOverrides:_.vU,overrides:_.vU,animatedTextPropsDefault:_.vU,animatedTextPropsToggled:_.vU,disableExplicitClickLogging:_.vU,onToggle:_.g$,style:_.vU,useOutlinedIcon:_.vU,className:_.vU,scopingClassName:_.vU}});var c9=function(){return _.G.apply(this,arguments)||this};
_.r(c9,_.G);c9.prototype.onTap=function(K){K.stopPropagation();K=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.Bp("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:K})):this.ytLiveChatReduxBehavior.dispatch(_.zl("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:K}))};
_.Oi.Object.defineProperties(c9.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.engagementState)==null?void 0:K.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var K=_.T(this.data.toggleButton,_.cp),X;if(Number(((X=this.likeCountState)==null?void 0:X.likeCountIfIndifferentNumber)||"0")===0){var F;X=((F=this.data.likeCountPlaceholder)==null?void 0:F.content)||""}else{var P,H,f;X=((P=this.likeCountState)==null?void 0:(H=P.likeCountIfIndifferent)==null?void 0:H.content)||((f=this.data.likeCountPlaceholder)==null?void 0:f.content)||""}var u,J;F=((u=this.likeCountState)==null?void 0:(J=
u.likeCountIfLiked)==null?void 0:J.content)||"1";u=_.T(K.toggledButtonViewModel,_.nS);return Object.assign({},K,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.T(K.defaultButtonViewModel,_.nS),{title:X})},toggledButtonViewModel:{buttonViewModel:Object.assign({},u,{title:F})}})}}}});
c9.prototype.onTap=c9.prototype.onTap;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],c9.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],c9.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.yj),_.g("design:type",Object)],c9.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],c9.prototype,"data",void 0);
_.O([_.h({selectorArgs:["data.likeCountEntityKey"],selector:b7q}),_.g("design:type",Object)],c9.prototype,"likeCountState",void 0);_.O([_.h({selectorArgs:["data.engagementStateKey"],selector:obT}),_.g("design:type",Object)],c9.prototype,"engagementState",void 0);_.O([_.U("data","engagementState"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],c9.prototype,"isLiked",null);
_.O([_.U("data","likeCountState","isLiked"),_.g("design:type",Object),_.g("design:paramtypes",[])],c9.prototype,"toggleButton",null);_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],c9.prototype,"onTap",null);c9=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],c9);
_.t(c9,"yt-live-chat-like-button-view-model",function(){if(gJQ===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;V5L===void 0&&(V5L=document.createElement("template"));var P=V5L;F.call(X,P.content.cloneNode(!0),K.content.firstChild);gJQ=K}K=gJQ;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var d9W;var eaU;var p3=function(){return _.G.apply(this,arguments)||this};
_.r(p3,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],p3.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],p3.prototype,"data",void 0);p3=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],p3);
_.t(p3,"yt-live-chat-paid-message-footer-renderer",function(){if(eaU===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;d9W===void 0&&(d9W=document.createElement("template"));var P=d9W;F.call(X,P.content.cloneNode(!0),K.content.firstChild);eaU=K}K=eaU;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Rat;var U9t;var haZ;var m9u,G2Q=function(){if(m9u!==void 0)return m9u;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;haZ===void 0&&(haZ=document.createElement("template"));var P=haZ;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return m9u=K};var B9=function(){return _.G.apply(this,arguments)||this};
_.r(B9,_.G);B9.prototype.onTap=function(K){K.stopPropagation()};
_.Oi.Object.defineProperties(B9.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var K=_.T(this.data.replyButton,_.nS),X,F,P,H,f,u,J,Z=Number(((X=this.replyCountState)==null?void 0:X.replyCountNumber)||"0")===0?(F=this.data)==null?void 0:(P=F.replyCountPlaceholder)==null?void 0:P.content:((H=this.replyCountState)==null?void 0:(f=H.replyCount)==null?void 0:f.content)||((u=this.data)==null?void 0:(J=u.replyCountPlaceholder)==null?void 0:J.content)||"",M;return Object.assign({},
K,{title:Z,accessibilityText:(M=this.replyCountState)==null?void 0:M.replyButtonAccessibilityText})}}}});
_.Oi.Object.defineProperties(B9,{template:{configurable:!0,enumerable:!0,get:function(){return G2Q()}}});
B9.prototype.onTap=B9.prototype.onTap;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],B9.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],B9.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.yj),_.g("design:type",Object)],B9.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],B9.prototype,"data",void 0);
_.O([_.h({selectorArgs:["data.replyCountEntityKey"],selector:function(K,X){return _.FF(K.entities,"replyCountEntity",X)}}),
_.g("design:type",Object)],B9.prototype,"replyCountState",void 0);_.O([_.U("data","replyCountState"),_.g("design:type",Object),_.g("design:paramtypes",[])],B9.prototype,"buttonViewModel",null);_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],B9.prototype,"onTap",null);B9=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],B9);
_.t(B9,"yt-live-chat-reply-button-view-model",function(){return G2Q()},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var vjZ;var aeL;var SY=function(){var K=_.G.apply(this,arguments)||this;K.ariaLabel="";return K};
_.r(SY,_.G);
SY.prototype.dataChanged=function(){for(var K=(0,_.Ka)(_.C$(this.hostElement).querySelector("#image"));K.firstChild;)K.removeChild(K.firstChild);if(this.data)if(this.data.icon){var X=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(X.polymerController.icon="yt-sys-icons:shield-filled",X.polymerController.defaultToFilled=!0):X.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();K.appendChild(X)}else if(this.data.customThumbnail){X=document.createElement("img");
var F=_.EYl(this.data.customThumbnail.thumbnails,16);F?(X.src=F,K.appendChild(X),X.setAttribute("alt",this.hostElement.ariaLabel||"")):_.yy(new _.nG("Could not compute URL for thumbnail",this.data.customThumbnail))}};
SY.prototype.identity=function(K){return K};
SY.prototype.computeType=function(K){return kc(K||void 0)};
SY.prototype.dataChanged=SY.prototype.dataChanged;_.O([_.h(),_.g("design:type",Object)],SY.prototype,"data",void 0);_.O([_.h({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.g("design:type",Object)],SY.prototype,"ariaLabel",void 0);_.O([_.h({computed:"computeType(data)",reflectToAttribute:!0}),_.g("design:type",String)],SY.prototype,"type",void 0);
_.O([_.h({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.g("design:type",String)],SY.prototype,"sharedTooltipText",void 0);_.O([_.h({reflectToAttribute:!0,value:function(){return _.S("live_chat_enable_new_moderator_badge")}}),
_.g("design:type",Boolean)],SY.prototype,"enableNewModeratorBadge",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],SY.prototype,"dataChanged",null);SY=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],SY);
_.t(SY,"yt-live-chat-author-badge-renderer",function(){if(aeL===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;vjZ===void 0&&(vjZ=document.createElement("template"));var P=vjZ;F.call(X,P.content.cloneNode(!0),K.content.firstChild);aeL=K}K=aeL;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var tSC;var $9O;var o9=function(){return _.G.apply(this,arguments)||this};
_.r(o9,_.G);_.z=o9.prototype;_.z.configureRendererStamper=function(){return{badgesBeforeChip:{id:"prepend-chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesOutsideChip:{id:"chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesInsideChip:{id:"chip-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}}}};
_.z.computeBadgesInsideChip=function(K){return K?K.filter(function(X){return kc(X.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.z.computeBadgesOutsideChip=function(K){return this.prependChatBadges||!K?[]:K.filter(function(X){X=kc(X.liveChatAuthorBadgeRenderer);return X!=="verified"&&X!=="owner"})};
_.z.computeBadgesBeforeChip=function(K){return this.prependChatBadges&&K?K.filter(function(X){X=kc(X.liveChatAuthorBadgeRenderer);return X!=="verified"&&X!=="owner"}):[]};
_.z.computeIsHighlighted=function(K,X){var F=!!zSd(K,"owner"),P=!!zSd(K,"verified");K=!!zSd(K,"moderator");return(F||P&&!K)&&!X};
_.z.computeAuthorType=function(K){return sdM(K)};
_.z.computeAuthorClass=function(K,X){return X?(K?K+" ":"")+"single-line":K};
_.z.onSeedColorChanged=function(){_.S("live_chat_author_name_color_usernames")||_.S("live_chat_seed_color_usernames")||_.S("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):_.S("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
o9.prototype.onSeedColorChanged=o9.prototype.onSeedColorChanged;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],o9.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],o9.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],o9.prototype,"authorName",void 0);_.O([_.h(),_.g("design:type",Array)],o9.prototype,"authorBadges",void 0);
_.O([_.h({computed:"computeAuthorType(authorBadges)"}),_.g("design:type",String)],o9.prototype,"authorType",void 0);_.O([_.h({computed:"computeAuthorClass(authorType, singleLine)"}),_.g("design:type",String)],o9.prototype,"authorClass",void 0);_.O([_.h({computed:"computeBadgesInsideChip(authorBadges)"}),_.g("design:type",Array)],o9.prototype,"badgesInsideChip",void 0);_.O([_.h({computed:"computeBadgesOutsideChip(authorBadges)"}),_.g("design:type",Array)],o9.prototype,"badgesOutsideChip",void 0);
_.O([_.h({computed:"computeBadgesBeforeChip(authorBadges)"}),_.g("design:type",Array)],o9.prototype,"badgesBeforeChip",void 0);_.O([_.h({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.g("design:type",Boolean)],o9.prototype,"isHighlighted",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],o9.prototype,"singleLine",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],o9.prototype,"disableHighlighting",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],o9.prototype,"dashboardMoneyFeed",void 0);_.O([_.h({value:_.S("live_chat_prepend_badges"),reflectToAttribute:!0}),_.g("design:type",Boolean)],o9.prototype,"prependChatBadges",void 0);_.O([_.h(),_.g("design:type",String)],o9.prototype,"authorNameColor",void 0);_.O([_.fa("#author-name"),_.g("design:type",HTMLDivElement)],o9.prototype,"username",void 0);
_.O([_.so("authorNameColor"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],o9.prototype,"onSeedColorChanged",null);o9=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],o9);
_.t(o9,"yt-live-chat-author-chip",function(){if($9O===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;tSC===void 0&&(tSC=document.createElement("template"));var P=tSC;F.call(X,P.content.cloneNode(!0),K.content.firstChild);$9O=K}K=$9O;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var OCT;var VSL;var L3=function(){var K=_.G.apply(this,arguments)||this;K.debounceCommand=_.Dn(function(X){K.ytComponentBehavior.resolveCommand(X)},1500);
return K};
_.r(L3,_.G);L3.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var K=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",X,F,P=this.isHearted?(X=this.data)==null?void 0:X.unheartCommand:(F=this.data)==null?void 0:F.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.Bp("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:K}));(K=_.w$(P))&&this.debounceCommand(K)}};
_.Oi.Object.defineProperties(L3.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var K,X;if(!((K=this.data)==null?0:(X=K.creatorThumbnail)==null?0:X.sources))return{};K={thumbnails:[]};X={};X.url=this.data.creatorThumbnail.sources[0].url;K.thumbnails.push(X);return K}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.engagementState)==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((X=this.engagementState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.engagementState)==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((X=this.engagementState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.engagementState)==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return((K=this.engagementState)==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((X=this.engagementState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((F=this.engagementState)==null?void 0:F.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}}});
L3.prototype.onTap=L3.prototype.onTap;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],L3.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],L3.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.yj),_.g("design:type",Object)],L3.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],L3.prototype,"data",void 0);
_.O([_.h({selectorArgs:["data.engagementStateKey"],selector:obT}),_.g("design:type",Object)],L3.prototype,"engagementState",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],L3.prototype,"thumbnailDetails",null);_.O([_.U("data","engagementState"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],L3.prototype,"isHearted",null);_.O([_.U("data","engagementState"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],L3.prototype,"isEditable",null);
_.O([_.U("data","engagementState"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],L3.prototype,"showCreatorView",null);_.O([_.U("data","engagementState"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],L3.prototype,"showButton",null);_.O([_.U("data","isHearted"),_.g("design:type",String),_.g("design:paramtypes",[])],L3.prototype,"label",null);_.O([_.U("data","isHearted"),_.g("design:type",Object),_.g("design:paramtypes",[])],L3.prototype,"heartHoverText",null);
_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],L3.prototype,"onTap",null);L3=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],L3);
_.t(L3,"yt-live-chat-creator-heart-view-model",function(){if(VSL===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;OCT===void 0&&(OCT=document.createElement("template"));var P=OCT;F.call(X,P.content.cloneNode(!0),K.content.firstChild);VSL=K}K=VSL;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var TK=function(){};
_.r(TK,IE);TK.prototype.JSC$10998_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:GY("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
TK.prototype.getApiPaths=function(){return[]};
TK.prototype.getExtension=function(){};
TK.prototype.JSC$10998_buildRequest=function(){};var gjQ={},EjN=(gjQ.GET_DATASYNC_IDS=Zm(TK),gjQ);var bCV,C0u,NNZ,bfu,rA,IeZ,kZO,x9O,iCL;bCV="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");C0u=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.dn=function(K,X,F,P,H,f,u,J,Z){this.endpointMap=K;this.networkManager=X;this.authService=F;this.responseProcessorMap=P;this.innertubeResponseStore=H;this.contextProcessors=f;this.asyncContextProcessors=u;this.localInnertubeRouter=J;this.requestSequencer=Z;this.inflightRequests=new Map;K.signalEndpointMap||(K.signalEndpointMap={});K.signalEndpointMap=Object.assign({},EjN,K.signalEndpointMap)};
NNZ=function(K,X,F,P,H,f,u,J,Z){if(_.dn.instance!==void 0){if(P=_.dn.instance,K=[K!==P.endpointMap,X!==P.networkManager,F!==P.authService,H!==P.innertubeResponseStore,f!==P.contextProcessors,u!==P.asyncContextProcessors,J!==P.localInnertubeRouter],K.some(function(M){return M}))throw new _.nG("InnerTubeTransportService is already initialized",K);
}else _.dn.instance=new _.dn(K,X,F,P,H,f,u,J,Z)};
_.Rx=function(K,X,F){var P=P===void 0?MpC:P;var H=kZO(K,X);return H?new _.fL(function(f,u){var J,Z,M,n,c;return _.q(function(B){switch(B.nextAddress){case 1:return _.Y(B,H,2);case 2:J=B.yieldResult;Z=J.JSC$10998_getRequest(X,F,P);if(!Z){u(new _.nG("Error: Failed to build request for command.",X));B.jumpTo(0);break}e0(Z.input);n=((M=Z.requestShell)==null?void 0:M.mode)==="cors"?"cors":void 0;if(K.authService.syncHeaders){c=iCL(Z.config,n);B.jumpTo(4);break}return _.Y(B,x9O(Z.config,n),5);case 5:c=
B.yieldResult;case 4:f(IeZ(K,Z,c)),_.JT(B)}})}):_.pB(new _.nG("Error: No request builder found for command.",X))};
bfu=function(K,X,F,P){var H=H===void 0?MpC:H;var f,u,J,Z,M,n,c,B,L,A,d,R,l,a,E,V,x,N;return _.q(function(Dl){switch(Dl.nextAddress){case 1:f=i73(X,K.endpointMap);if(!f)throw new _.nG("Error: No streaming request builder found for command",X);u=f.JSC$10998_getRequest(X,F,H);if(!u)throw new _.nG("Failed to build YtRequest for streaming Command",X);if((J=K.localInnertubeRouter)==null||!J.shouldPreferLocalResponse(u.input,u.innerTubeRequest)){Dl.jumpTo(2);break}return _.Y(Dl,K.localInnertubeRouter.localInnertubeResponse(u.input,
u.innerTubeRequest),3);case 3:return Z=Dl.yieldResult,M={},Z.playerResponse&&(rA(K,Z.playerResponse,u),M.player=Z.playerResponse,(n=P)==null||n(M,Z)),Z.watchNextResponse&&(rA(K,Z.watchNextResponse,u),M.content=Z.watchNextResponse,(c=P)==null||c(M,Z)),Dl.return(M);case 2:L=((B=u.requestShell)==null?void 0:B.mode)==="cors"?"cors":void 0;if(K.authService.syncHeaders){A=iCL(u.config,L);Dl.jumpTo(4);break}return _.Y(Dl,x9O(u.config,L),5);case 5:A=Dl.yieldResult;case 4:return l=(R=(d=u.requestShell)==null?
void 0:d.headers)!=null?R:{},u.requestShell=Object.assign({},u.requestShell,{headers:Object.assign({},l,A)}),a=Object.assign({},u.requestShell),E=JSON.stringify(u.innerTubeRequest),u.requestShell.method==="POST"&&(a=Object.assign({},a,{body:E})),V=function(Mq,pO){rA(K,pO.playerResponse||pO.watchNextResponse||pO.reelItemWatchResponse||pO.reelWatchSequenceResponse,u);P==null||P(Mq,pO)},x={},_.Y(Dl,k2Z(K.networkManager,u.input,a,V),6);
case 6:return x=Dl.yieldResult,((N=u.config)==null?0:N.responseTick)&&_.Ac(u.config.responseTick),Dl.return(x)}})};
_.rz=function(K,X,F,P,H){H=H===void 0?{authStrategy:{identity:MpC}}:H;var f=f===void 0?!0:f;var u=function(){};
u=Zwn(qrl(F));X.context||(X.context=_.c13(P,f));return new _.fL(function(J){var Z,M,n,c,B;return _.q(function(L){if(L.nextAddress==1)return Z=IGl(F),M=_.mH(Z),K.authService.syncHeaders?(n=iCL(H,M),L.jumpTo(2)):_.Y(L,x9O(H,M),3);L.nextAddress!=2&&(n=L.yieldResult);c=k4d(IGl(F));B={input:c,requestShell:GY(c),innerTubeRequest:X,config:H};J(IeZ(K,B,n,u));_.JT(L)})})};
rA=function(K,X,F){var P;if(X&&!(X==null?0:(P=X.sequenceMetaData)==null?0:P.skipProcessing)&&K.responseProcessorMap){P=_.D(bCV);for(var H=P.next();!H.done;H=P.next())H=H.value,K.responseProcessorMap[H]&&K.responseProcessorMap[H].handleResponse(X,F)}};
IeZ=function(K,X,F,P){P=P===void 0?function(){}:P;
var H,f,u,J,Z,M,n,c,B,L,A,d,R,l,a,E,V,x,N,Dl,Mq,pO,y9,Wy,eP,gw,a3,dL,nt,ht,YC,uu,X8,qV,J0,yd,uT,SU,RC,tw;return _.q(function(TE){switch(TE.nextAddress){case 1:u=(H=X.config)==null?void 0:(f=H.storeStrategy)==null?void 0:f.storeKey;if(!(u&&K.innertubeResponseStore&&K.innertubeResponseStore.has(u))||((J=X.config)==null?0:(Z=J.storeStrategy)==null?0:Z.disableCache)){TE.jumpTo(2);break}return _.Y(TE,K.innertubeResponseStore.get(u),3);case 3:if((M=TE.yieldResult)&&!M.isExpired())return TE.return(Promise.resolve(_.Kk(M)));
case 2:if(!((n=X)==null?0:(c=n.innerTubeRequest)==null?0:c.context)){TE.jumpTo(4);break}B=X.innerTubeRequest.context;if(!(K.asyncContextProcessors&&K.asyncContextProcessors.length>0)){TE.jumpTo(5);break}L=[];A=_.D(K.asyncContextProcessors);for(d=A.next();!d.done;d=A.next())R=d.value,l=R.processContext(X),l.wrappedPromise_&&L.push(l.wrappedPromise_);if(!(L.length>0)){TE.jumpTo(5);break}return _.Y(TE,Promise.all(L),5);case 5:a=_.D(K.contextProcessors||[]),E=a.next();case 8:if(E.done){TE.jumpTo(4);break}V=
E.value;return _.Y(TE,V.processContext(B),9);case 9:E=a.next();TE.jumpTo(8);break;case 4:if((x=K.localInnertubeRouter)==null||!x.shouldPreferLocalResponse(X.input,X.innerTubeRequest)){TE.jumpTo(12);break}return _.Y(TE,K.localInnertubeRouter.localInnertubeResponse(X.input,X.innerTubeRequest),13);case 13:return N=TE.yieldResult,rA(K,N,X),TE.return(N);case 12:return(pO=(Mq=X.config)==null?void 0:Mq.requestKey)&&K.inflightRequests.has(pO)?Dl=K.inflightRequests.get(pO):(y9=JSON.stringify(X.innerTubeRequest),
gw=(eP=(Wy=X.requestShell)==null?void 0:Wy.headers)!=null?eP:{},X.requestShell=Object.assign({},X.requestShell,{headers:Object.assign({},gw,F)}),a3=Object.assign({},X.requestShell),X.requestShell.method==="POST"&&(a3=Object.assign({},a3,{body:y9})),((dL=X.config)==null?0:dL.requestTick)&&_.Ac(X.config.requestTick),nt=function(){return K.networkManager.fetch(X.input,a3,X.config)},Dl=K.requestSequencer?KoU(K.requestSequencer,X,nt):nt(),pO&&K.inflightRequests.set(pO,Dl)),_.Y(TE,Dl,14);
case 14:(ht=TE.yieldResult)&&_.S("web_streaming_player")&&Array.isArray(ht)&&(ht=ht[0].playerResponse);if(ht&&"error"in ht&&((YC=ht)==null?0:(uu=YC.error)==null?0:uu.details))for(X8=ht.error.details,qV=_.D(X8),J0=qV.next();!J0.done;J0=qV.next())yd=J0.value,(uT=yd["@type"])&&C0u.indexOf(uT)>-1&&(delete yd["@type"],ht=yd);pO&&K.inflightRequests.has(pO)&&K.inflightRequests.delete(pO);((SU=X.config)==null?0:SU.responseTick)&&_.Ac(X.config.responseTick);if(ht||(RC=K.localInnertubeRouter)==null||!RC.canProvideFallbackResponse(X.input,
X.innerTubeRequest)){TE.jumpTo(15);break}return _.Y(TE,K.localInnertubeRouter.localFallbackInnertubeResponse(X.input,X.innerTubeRequest),16);case 16:ht=TE.yieldResult;case 15:return rA(K,ht,X),((tw=X.config)==null?0:tw.processorTick)&&_.Ac(X.config.processorTick),P(),TE.return(ht||void 0)}})};
_.ed=function(K,X){return ND4(X,K.endpointMap)};
kZO=function(K,X){K=x5w(X,K.endpointMap);if(K!==void 0)return Promise.resolve(K)};
x9O=function(K,X){var F,P,H,f;return _.q(function(u){if(u.nextAddress==1){H=(F=K)==null?void 0:(P=F.authStrategy)==null?void 0:P.sessionIndex;var J=_.F0(j79({sessionIndex:H}));return _.Y(u,J,2)}f=u.yieldResult;return u.return(Promise.resolve(Object.assign({},Ih4(X),f)))})};
iCL=function(K,X){var F;K=K==null?void 0:(F=K.authStrategy)==null?void 0:F.sessionIndex;F=j79({sessionIndex:K});return Object.assign({},Ih4(X),F)};var XSL,Fou,P1u,HKt,sOT,z5C,uZE,qtE,wA,Juu,ZKN,DnT,YtL;XSL=0;Fou=/tone[1-5]/;P1u=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");HKt="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
sOT=Number.MAX_SAFE_INTEGER;z5C=RegExp("\ufe0f","g");_.A1=function(K){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;K&&_.fuC(this,K)};
_.fuC=function(K,X){try{_.fG(X,{context:K,onSuccess:function(P,H){Array.isArray(H)?K.load(H):(P=new _.nG("Emoji manager JSON response was not an array!",{response:H}),_.jF(P))},
onError:function(P){P=new _.nG("Failed to retrieve emoji manager initial JSON data!",{url:X,statusCode:_.F$(P).toString()});_.yy(P)}})}catch(P){var F=new _.nG("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:X});
_.yy(F)}};
_.A1.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.A1.prototype.load=function(K,X){if(X)if(K.length)K=K.concat(X.emojis);else{this.emojis=X.emojis;this.emojiMap=X.emojiMap;this.emojiShortcutMap=X.emojiShortcutMap;this.emojiShortcutCharMap=DnT(X);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=X.emojiRegex;return}this.emojis=[].concat(_.LZ(new Set(this.emojis.concat(K))));this.hasInitializedShortcutCharMap=!1;K=Array(this.emojis.length);for(X=0;X<this.emojis.length;X++){var F=this.emojis[X];if(F.emojiId){this.emojiMap[F.emojiId]=F;this.emojiMap[F.emojiId].index=
X;for(var P=0;F.shortcuts&&P<F.shortcuts.length;P++)this.emojiShortcutMap[F.shortcuts[P].toLocaleLowerCase()]=F;K[X]=F.isCustomEmoji&&F.shortcuts?F.shortcuts[0]:F.emojiId}}K.sort(function(H,f){return f.length-H.length});
if(K.length)try{this.emojiRegex=new RegExp(K.join("|").replace("*","\\*"),"gi")}catch(H){this.emojiRegex=/$./}else this.emojiRegex=/$./};
uZE=function(K,X){X=_.D(X);for(var F=X.next();!F.done;F=X.next()){var P=F.value;if(P.emojiId&&K.emojiMap[P.emojiId]){F=Object.assign({},K.emojiMap[P.emojiId],P);K.emojiMap[P.emojiId]=F;var H=void 0;F.index&&((H=K.emojis[F.index])==null?void 0:H.emojiId)===P.emojiId&&(K.emojis[F.index]=F);P=void 0;if((P=F.shortcuts)==null?0:P.length)for(K.hasInitializedShortcutCharMap=!1,P=_.D(F.shortcuts),H=P.next();!H.done;H=P.next())K.emojiShortcutMap[H.value.toLocaleLowerCase()]=F}}};
qtE=function(K){var X,F;_.q(function(P){if(P.nextAddress==1)return _.Y(P,_.MA.getInstance(),2);if(P.nextAddress!=3)return(X=P.yieldResult)?_.Y(P,X.get("ytlc-emoji-pref"),3):P.return();(F=P.yieldResult)&&uZE(K,Object.keys(F).map(function(H){return{emojiId:H,stickyPrefId:F[H]}}).filter(function(H){return!!H.emojiId&&!!H.stickyPrefId}));
_.JT(P)})};
_.jY=function(K,X,F){return(K=K.emojiMap[X])&&(!K.isLocked||F!==void 0&&F)?K:void 0};
wA=function(K,X,F){F=_.jY(K,X,F===void 0?!1:F);var P=X.match("\u200d");F&&K.skinTone!==0&&(K=(P==null?void 0:P.length)===1?_.jY(K,X.replace("\u200d",P1u[K.skinTone]+"\u200d")):_.jY(K,X+P1u[K.skinTone]))&&(F=K);return F};
Juu=function(K,X){var F=K.emojiMap[X];return(F==null?0:F.stickyPrefId)?K.emojiMap[F.stickyPrefId]:wA(K,X)};
_.DV=function(K,X){K=K.emojiShortcutMap[X.toLocaleLowerCase()];return!K||K.isLocked?null:K};
ZKN=function(K,X,F){return DnT(K,F===void 0?!1:F)[X]||{}};
DnT=function(K,X){X=X===void 0?!1:X;if(!K.hasInitializedShortcutCharMap){K.hasInitializedShortcutCharMap=!0;for(var F=0;F<K.emojis.length;F++){var P=K.emojis[F];if(!(P.isLocked||X&&P.isCustomEmoji&&P.emojiId&&!K.pickerCustomEmojiIds.includes(P.emojiId)))for(var H=0;P.shortcuts&&H<P.shortcuts.length;H++){var f=P.shortcuts[H];f.startsWith(":_")&&P.isCustomEmoji&&(K.emojiShortcutCharMap[":_"]==null&&(K.emojiShortcutCharMap[":_"]=Object.create(null)),K.emojiShortcutCharMap[":_"][f]=P);if(!(f.length<3||
!P.isCustomEmoji&&Fou.test(f))){var u=f.substr(0,3).toLocaleLowerCase();K.emojiShortcutCharMap[u]==null&&(K.emojiShortcutCharMap[u]=Object.create(null));K.emojiShortcutCharMap[u][f]=P}}}}return K.emojiShortcutCharMap};
_.A1.prototype.createEmoji=function(K,X){X=X===void 0?!0:X;var F=document.createElement("img");K.isCustomEmoji||F.classList.add("small-emoji");F.classList.add("emoji");F.classList.add("yt-formatted-string");F.src=K.image?_.bH(K.image.thumbnails,this.emojiSize)||"":"";var P=void 0;K.image&&K.image.accessibility&&K.image.accessibility.accessibilityData&&(P=K.image.accessibility.accessibilityData.label);F.alt=P?P:(K.isCustomEmoji&&K.shortcuts?K.shortcuts[0]:K.emojiId)||"";K.isCustomEmoji&&(F.dataset.emojiId=
K.emojiId);_.ir&&(F.setAttribute("contenteditable","false"),F.setAttribute("unselectable","on"));X&&(K.shortcuts&&K.shortcuts.length&&F.setAttribute("shared-tooltip-text",K.shortcuts[0]),F.id="emoji-"+XSL++);return F};
_.A1.prototype.createDocumentFragment=function(K,X,F,P){X=X===void 0?!1:X;F=F===void 0?!0:F;P=P===void 0?!1:P;K=K.replace(z5C,"");for(var H=document.createDocumentFragment(),f=0,u,J=0;(u=this.emojiRegex.exec(K))!=null;){var Z=_.jY(this,u[0])||_.DV(this,u[0]);!Z||Z.isCustomEmoji&&!X||(Z=this.createEmoji(Z,F),f!==u.index&&H.appendChild(document.createTextNode(K.substring(f,u.index))),H.appendChild(Z),f=u.index+u[0].length,J++)}if(!P||J)return H.appendChild(document.createTextNode(K.substr(f))),H};
YtL=function(K,X,F){var P,H,f,u,J,Z,M,n,c;return _.q(function(B){if(B.nextAddress==1){if(!X.emojiId||!K.emojiMap[X.emojiId])return B.return();P=Object.assign({},K.emojiMap[X.emojiId],{stickyPrefId:F});K.emojiMap[X.emojiId]=P;X.index&&((H=K.emojis[X.index])==null?void 0:H.emojiId)===X.emojiId&&(K.emojis[X.index]=P);if((f=X.shortcuts)==null?0:f.length)for(K.hasInitializedShortcutCharMap=!1,u=_.D(X.shortcuts),J=u.next();!J.done;J=u.next())Z=J.value,K.emojiShortcutMap[Z.toLocaleLowerCase()]=P;return _.Y(B,
_.MA.getInstance(),2)}if(B.nextAddress!=4)return(M=B.yieldResult)?_.Y(B,M.get("ytlc-emoji-pref"),4):B.jumpTo(0);c=(n=B.yieldResult)!=null?n:{};c[X.emojiId]=F;return _.Y(B,M.set("ytlc-emoji-pref",c,sOT),0)})};
_.yU=new _.A1;var nYC;_.W9={};
nYC={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.S("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:_.S("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 h7(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 K=_.C$(this.hostElement||this).querySelector("#inline-action-button-container");K&&K.setAttribute("aria-hidden","true");this.menuButton=_.C$(this.hostElement).querySelector("#menu-button")},
attached:function(){var K=this.menuButton;K&&(K.addEventListener("focusin",_.Pc(this,this.onMenuButtonFocus_)),K.addEventListener("focusout",_.Pc(this,this.onMenuButtonBlur_)))},
detached:function(){var K=this.menuButton;K&&(K.removeEventListener("focusin",_.Pc(this,this.onMenuButtonFocus_)),K.removeEventListener("focusout",_.Pc(this,this.onMenuButtonBlur_)))},
identity:_.vy,truthy:function(K){return!!K},
computeTimestampString:function(K){return K?K.timestampText?this.getSimpleString(K.timestampText):this.TIME_FORMATTER.format(new Date(K.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(K){return _.S("live_chat_whole_message_clickable")&&K},
computeMenuVisible_:function(K,X){return K||X},
computeHasInlineActionButtons:function(K){if(!K)return!1;var X,F;return!((X=K.inlineActionButtons)==null||!X.length)||!((F=K.additionalInlineActionButtons)==null||!F.length)},
createDocumentFragmentFromString:function(K){var X=_.yU.createDocumentFragment.bind(_.yU),F;if((F=this.participantsManager)==null||!F.viewerRegex)return X(K);F=document.createDocumentFragment();for(var P=0,H;(H=this.participantsManager.viewerRegex.exec(K))!=null;){if(H.index>0){var f=":"+H[0]+":";if((_.jY(_.yU,f)||_.DV(_.yU,f))&&K.indexOf(f)===H.index-1)continue}F.appendChild(X(K.substring(P,H.index)));P=document.createElement("span");P.appendChild(X(H[0]));P.classList.add("mention");F.appendChild(P);
P=H.index+H[0].length}F.appendChild(X(K.substring(P)));return F},
createDocumentFragment:function(K){var X=document.createDocumentFragment();if(K.simpleText)return X.appendChild(this.createDocumentFragmentFromString(K.simpleText)),X;if(!K.runs)return X;for(var F=0;F<K.runs.length;F++){var P=K.runs[F];if(P.emoji)X.appendChild(_.yU.createEmoji(P.emoji));else if(P.text)if(P.navigationEndpoint){var H=document.createElement("a");H.classList.add("yt-simple-endpoint");EOP(H,P.navigationEndpoint);_.C$(H).appendChild(this.createDocumentFragmentFromString(P.text));X.appendChild(H)}else X.appendChild(this.createDocumentFragmentFromString(P.text))}return X},
hasModerationOverlayVisible:function(){var K;return((K=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:K.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(K){K.composedPath().some(function(X){return(X=X instanceof Element?X:null)?X.tagName&&(X.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||X.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.S("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(K)},
colorFromDecimal:function(K){return $kn(K)},
markAsDeleted:function(K,X){this.set("data.deletedStateMessage",K);this.set("data.showOriginalContentMessage",X)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(K){if(this.data.contextMenuEndpoint){var X=_.i9().resolve(_.oj),F=this.data.contextMenuEndpoint,P;(P=_.dn.instance)&&_.ed(P,F)?(X=QOu(X,F),P=_.rz(P,{},X)):P=_.MKO(X,F);P.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);K&&K.stopPropagation()}},
handleGetContextMenuResponse_:function(K){var X=_.dn.instance;X&&_.ed(X,{liveChatEndpoint:{}})||(K=K.response);K.liveChatItemContextMenuSupportedRenderers&&K.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(K.liveChatItemContextMenuSupportedRenderers.menuRenderer);K.actions&&_.xr(this.hostElement,"yt-live-chat-actions",[K.actions])},
handleGetContextMenuError:function(K){if(K instanceof Error||K instanceof Object||K instanceof String)var X=K;_.jF(new _.nG("Error encountered calling GetLiveChatItemContextMenu",X))},
showContextMenu_:function(K){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:K}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.iX(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.iX(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.W9.YtLiveChatItemBehavior=[nYC,_.dk.YtComponentBehavior,_.sT.YtOpenPopupBehavior];_.dA=function(){};var cuu;var pSt;var BTW;var StT;var eY=function(){var K=_.G.apply(this,arguments)||this;K.active=!1;K.identity=_.vy;return K};
_.r(eY,_.G);eY.prototype.dataChanged=function(){this.active=!1};
eY.prototype.onClick=function(){_.iX(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
eY.prototype.dataChanged=eY.prototype.dataChanged;_.O([_.h(),_.g("design:type",Object)],eY.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],eY.prototype,"active",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],eY.prototype,"dataChanged",null);eY=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],eY);
_.t(eY,"yt-live-chat-text-input-field-suggestion",function(){if(StT===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;BTW===void 0&&(BTW=document.createElement("template"));var P=BTW;F.call(X,P.content.cloneNode(!0),K.content.firstChild);StT=K}K=StT;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});_.R9=function(K,X,F){return CustomEvent.call(this,K,{detail:{value:X,path:F}})||this};
_.r(_.R9,CustomEvent);_.UT=function(){var K=_.G.apply(this,arguments)||this;K.viewerName=null;K.actionMap={"yt-live-chat-actions":"onChatMessage_"};K.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];K.PARTICIPANT_TIME_USEC_=3E8;return K};
_.r(_.UT,_.G);_.z=_.UT.prototype;_.z.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.z.addParticipant=function(K){var X=_.ody(this.participants,K,function(P,H){P=P[Object.keys(P)[0]];H=H[Object.keys(H)[0]];P=String(_.lj(P.authorName)).toLowerCase();H=String(_.lj(H.authorName)).toLowerCase();return P<H?-1:P==H?0:1}.bind(this));
if(X>=0){var F=this.participants[X];F[Object.keys(F)[0]].timestampUsec&&this.splice("participants",X,1,K)}else this.splice("participants",-X-1,0,K);K=K[Object.keys(K)[0]];X=_.lj(K.authorName).toLocaleLowerCase();F=X.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(F)||(this.allParticipantsCharMap_[F]={});this.allParticipantsCharMap_[F][X]=K};
_.z.getAuthorsFromPrefix=function(K){return this.allParticipantsCharMap_.hasOwnProperty(K)?this.allParticipantsCharMap_[K]:null};
_.z.computeViewerRegex_=function(K){if(!K)return null;K=K.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var X=K.indexOf("@")===0&&_.S("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(X+K.replace(/ /g,"\\s*")+"|^"+K.replace(/ /g,"\\s*")+"$|^"+K.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+K.replace(/ /g,"\\s*")+"$|(?<=\\s)"+K.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.z.checkForStaleParticipants_=function(){var K=this;this.trimOldParticipants_();this.asyncHandle_&&cUn(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.dl(function(){K.checkForStaleParticipants_()},3E4))};
_.z.onChatMessage_=function(K){var X=this,F=Date.now()*1E3;K.forEach(function(P){if(P=_.T(P,R1N)){P=P.item;var H=Object.keys(P)[0];X.SUPPORTED_ITEM_TYPES_.indexOf(H)!=-1&&P[H].timestampUsec>=F-X.PARTICIPANT_TIME_USEC_&&X.addParticipant(P)}},this);
this.checkForStaleParticipants_()};
_.z.trimOldParticipants_=function(){for(var K=Date.now()*1E3,X=this.participants.length-1;X>=0;X--){var F=this.participants[X];F=F[Object.keys(F)[0]];F.timestampUsec&&F.timestampUsec<K-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",X,1)}};
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],_.UT.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],_.UT.prototype,"viewerName",void 0);_.O([_.h({computed:"computeViewerRegex_(viewerName)"}),_.g("design:type",Object)],_.UT.prototype,"viewerRegex",void 0);_.O([_.h({value:function(){return[]},
notify:!0}),_.g("design:type",Array)],_.UT.prototype,"participants",void 0);_.UT=_.O([_.Tb({is:"yt-live-chat-participants-manager",noInjection:!0})],_.UT);var oYT=/.*([:@#].*?)$/,h1=/\u00a0/g,Lot=String.fromCharCode(160),TTL={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"},md=function(){var K=_.G.apply(this,arguments)||this;K.disabled=!1;K.liveChatRichMessageInput=null;K.messageInput=null;K.isValidWithNoInputText=!1;K.suggestions=[];K.emojiManager=_.yU;K.inputMethodEditorActive=
!1;K.suggestionIndex=-1;K.JSC$11994_lastSuggestionRange=null;return K};
_.r(md,_.G);_.z=md.prototype;_.z.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.z.attached=function(){_.xA&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.z.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.z.dataChanged=function(){if(!this.ignoreColorMapping){var K=!1,X={},F;for(F in TTL)this.data&&this.data.hasOwnProperty(F)&&(X[TTL[F]]=this.colorFromDecimal(this.data[F]),K=!0);K&&_.XU(this.hostElement,X)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.z.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.z.colorFromDecimal=function(K){K=Math.floor(Number(K));return"rgba("+[K>>16&255,K>>8&255,K&255,(K>>24&255)/255].join()+")"};
_.z.preventDrag=function(K){K.dataTransfer&&(K.dataTransfer.dropEffect="none");K.preventDefault()};
_.z.preventResize=function(K){K.returnValue=!1};
_.z.onInputChange=function(){var K=this.characterCount,X=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&X&&X.remove();if(!X&&this.characterCount>this.maxCharacterLimit){var F=window.getSelection();if(F){var P=F.getRangeAt(0);F.removeAllRanges();F.addRange(P)}}if(F=this.getCurrentRange())P=this.calculateTextBeforeRange(F),this.completeEmojisInRange(F,P,!0)||this.updateSuggestions(F,P);P=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(P);
_.iX(this.hostElement,"yt-live-chat-message-input-change",P);X&&this.characterCount===0&&X.remove();F&&F.commonAncestorContainer.parentElement.id==="input"&&F.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>K):F&&!F.collapsed&&F.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(K=this.input.childNodes.length-1;K>=0;K--)this.input.childNodes[K].nodeName==="BR"&&this.input.childNodes[K].remove()};
_.z.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.z.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var K=this.getCurrentRange();K&&K.commonAncestorContainer.parentElement.id==="input"&&K.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.z.mergeOverflowText=function(K){if(K){var X=document.createRange();X.selectNodeContents(K);X=X.extractContents();this.input.insertBefore(X,K)}};
_.z.checkRangeAtEndOfInput=function(){var K=this.getCurrentRange();if(K){var X=_.C$(this.hostElement).querySelector("#overflow-text"),F=document.createRange();X&&X.previousSibling?X.previousSibling instanceof HTMLImageElement?F.selectNode(X.previousSibling):F.selectNodeContents(X.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?F.selectNode(this.input.lastChild):F.selectNodeContents(this.input.lastChild));F.collapse(!1);return F.isPointInRange(K.startContainer,
K.startOffset)}return!1};
_.z.handleOverflowText=function(K){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var X=_.C$(this.hostElement).querySelector("#overflow-text"),F=this.getCurrentRange();this.input.normalize();K=this.checkRangeAtEndOfInput()&&K;this.mergeOverflowText(X);for(var P,H=0,f=0,u,J=this.input.childNodes,Z=0;Z<J.length;Z++){var M=J[Z];M instanceof Text?(f+=M.textContent.length,f>this.maxCharacterLimit&&(P=M,H=this.maxCharacterLimit+M.textContent.length-f)):M instanceof HTMLImageElement&&
(P=void 0,f=M.dataset.emojiId&&((P=this.data)==null?0:P.emojiCharacterCount)?f+this.data.emojiCharacterCount:f+M.alt.length,P=this.input,H=Z);if(f>this.maxCharacterLimit&&P){u=document.createRange();u.collapse(!1);X?(f=this.input.lastChild.previousSibling,f instanceof Text?u.setEnd(this.input.lastChild.previousSibling,f.textContent.length):f instanceof HTMLImageElement&&u.setEnd(this.input,this.input.childNodes.length-1)):u.selectNodeContents(this.input);u.setStart(P,H);break}}u&&(P=!1,F&&(K=u.isPointInRange(F.startContainer,
F.startOffset-1)),X||(X=document.createElement("span"),X.id="overflow-text",X.textContent="",X.setAttribute("contenteditable","true"),_.C$(_.C$(this.hostElement).querySelector("#input")).appendChild(X),P=!0),X&&(F=u.extractContents(),X.insertBefore(F,X.firstChild),K&&X.firstChild&&(F=document.createRange(),P?F.setStartAfter(X.lastChild):F.setStartAfter(X.firstChild),F.collapse(!0),X=window.getSelection(),X.removeAllRanges(),X.addRange(F))))}};
_.z.checkForDuplicateSpans=function(){for(var K=0;K<this.input.childNodes.length;K++){var X=this.input.childNodes[K];if(X.nodeName==="SPAN"){var F=document.createRange();F.selectNodeContents(X);F=F.extractContents();this.input.insertBefore(F,X);X.remove()}}this.handleOverflowText(!0)};
_.z.getCurrentRange=function(){var K=window.getSelection();return K&&K.rangeCount?K.getRangeAt(0).cloneRange():null};
_.z.getInputRange=function(){var K=this.getCurrentRange();if(K){for(var X=K.commonAncestorContainer,F=!1,P=_.C$(this.hostElement).querySelector("#input");X;){if(X===P){F=!0;break}X=X.parentNode}F||(K=null)}K||(K=this.getRangeAtEnd());return K};
_.z.getRangeAtEnd=function(){var K=document.createRange(),X=_.C$(this.hostElement).querySelector("#input").lastChild;!X||X.nodeName!=="#text"&&X.nodeName!=="SPAN"?(K.selectNodeContents(_.C$(this.hostElement).querySelector("#input")),K.collapse(!1)):X.nodeName==="#text"?K.setStart(X,X.textContent.length):K.setStart(X,X.childNodes.length);return K};
_.z.getChatParticipantSuggestions=function(K,X,F,P){var H=_.S("live_chat_enable_handles_web_text_input_update");if(X)for(var f in X)if(f.indexOf(K)===0||H&&f.indexOf(F+K)===0){var u=X[f],J=_.lj(u.authorName);P.push({suggestion:{author:!0,authorType:F,image:u.authorPhoto,alt:J,text:J}});if(P.length>=64)break}};
_.z.getSuggestions=function(K){var X=[],F=K.substring(0,3),P=ZKN(_.yU,F,!0);if(P)for(var H in P)if(H.toLocaleLowerCase().indexOf(K)===0){var f=P[H];if(f&&f.emojiId){if(f=Juu(_.yU,f.emojiId)){var u=void 0,J=void 0,Z=void 0,M=void 0,n=((u=f.image)==null?0:(J=u.accessibility)==null?0:(Z=J.accessibilityData)==null?0:Z.label)||f.isCustomEmoji?(M=f.shortcuts)==null?void 0:M[0]:f.emojiId;X.push({suggestion:{emoji:!0,image:f.image,alt:n,text:H,textToInsertWhenSelected:f.isCustomEmoji?H:n}})}if(X.length>=
64)break}}if(!this.participantsManager)return null;if(F.indexOf("@")===0||F.indexOf("#")===0)P=F.charAt(0),K=K.substring(1),H=_.S("live_chat_enable_handles_web_text_input_update"),F.indexOf("@")===0&&H&&(H=this.participantsManager.getAuthorsFromPrefix(F.substring(0,2)),this.getChatParticipantSuggestions(K,H,P,X)),F=F.substring(1),F=this.participantsManager.getAuthorsFromPrefix(F),this.getChatParticipantSuggestions(K,F,P,X);return X?X.sort(function(c,B){return B.suggestion.text<c.suggestion.text?-1:
B.suggestion.text===c.suggestion.text?0:1}):null};
_.z.insertSuggestion=function(K){var X=_.S("live_chat_enable_handles_web_text_input_update"),F=K.authorType;X=K.text.indexOf(F)===0&&X?K.text+Lot:F+K.text+Lot;K.emoji?this.insertTextAtRange(this.JSC$11994_lastSuggestionRange,K.textToInsertWhenSelected||""):K.author&&this.insertTextAtRange(this.JSC$11994_lastSuggestionRange,X)};
_.z.updateSuggestionsAtCaret=function(){var K=this.getCurrentRange();K&&this.updateSuggestions(K,this.calculateTextBeforeRange(K))};
_.z.offsetStartOfRangeBy=function(K,X){for(;X>0;)if(K.startOffset-X>=0){K.setStart(K.startContainer,K.startOffset-X);break}else{X=K.startContainer instanceof HTMLImageElement?X-K.startContainer.alt.length:X-K.startOffset;var F=K.startContainer.previousSibling;if(!F){K.setStart(K.startContainer,0);break}if(_.S("live_chat_require_space_for_autocomplete_emoji")){var P=void 0,H=void 0;K.setStart(F,((P=F)==null?void 0:(H=P.textContent)==null?void 0:H.length)||0)}else K.setStart(F,F.childNodes.length||
0)}};
_.z.updateSuggestions=function(K,X){var F=this;this.JSC$11994_lastSuggestionRange&&(this.JSC$11994_lastSuggestionRange.detach(),this.JSC$11994_lastSuggestionRange=null);if((X=oYT.exec(X))&&X.length&&(X=X[X.length-1].toLocaleLowerCase(),X.length>2&&(this.offsetStartOfRangeBy(K,X.length),this.JSC$11994_lastSuggestionRange=K,(K=this.getSuggestions(X))&&K.length))){this.suggestions=K;_.tg(this,function(){_.C$(F.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(K.length-1);return}this.dropdown.opened=!1};
_.z.completeEmojisInRange=function(K,X,F){var P=X.replace(/[\s\xa0]+$/,"");X=X.length-P.length;P=P.split(" ");P=P[P.length-1].trim().toLocaleLowerCase();var H=P.lastIndexOf(":");if(F&&!X&&H!==P.length-1)return!1;H!==-1&&(F=P.lastIndexOf(":",H-1),F!==-1&&(P=P.substring(F)));if((F=_.DV(_.yU,P))&&F.emojiId){F=Juu(_.yU,F.emojiId)||null;this.offsetStartOfRangeBy(K,P.length+X);var f,u,J,Z;P=(((f=F)==null?0:f.isCustomEmoji)?(u=F)==null?void 0:(J=u.shortcuts)==null?void 0:J[0]:(Z=F)==null?void 0:Z.emojiId)||
"";X&&(P+=Lot);this.insertTextAtRange(K,P);this.dropdown.opened=!1;return!0}return!1};
_.z.onSuggestion=function(K){this.insertSuggestion(K.detail);this.dropdown.opened=!1};
_.z.onKeyPress=function(K){K.keyCode===13&&(K.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.iX(this.hostElement,"yt-live-chat-send-message"))};
_.z.completeEmojis=function(){var K=document.createRange(),X=_.C$(this.hostElement).querySelector("#input").lastChild;X?K.setStart(X,X.childNodes.length):(K.selectNodeContents(_.C$(this.hostElement).querySelector("#input")),K.collapse(!1));this.completeEmojisInRange(K,this.calculateTextBeforeRange(K),_.S("live_chat_require_space_for_autocomplete_emoji"))};
_.z.maybePreventTextFormatting=function(K){!_.XX||!K.ctrlKey&&!K.metaKey||K.keyCode!==66&&K.keyCode!==73||(K.stopImmediatePropagation(),K.preventDefault())};
_.z.onKeyDown=function(K){this.maybePreventTextFormatting(K);if(this.dropdown.opened)switch(K.keyCode){case 27:this.dropdown.opened=!1;K.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;K.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);K.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),K.preventDefault()}};
_.z.onKeyUp=function(K){switch(K.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.ir)this.onInputChange()};
_.z.changeSuggestionIndex=function(K){if(this.dropdown.opened){var X=_.C$(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<X.children.length&&(X.children[this.suggestionIndex].active=!1);var F=this.suggestions.length;this.suggestionIndex=(K+F)%F;K=X.children[this.suggestionIndex];K.active=!0;X.scrollTop=K.offsetTop}};
_.z.onInputPaste=function(K){K.preventDefault();(K=K.clipboardData)&&K.types&&(K=K.getData("text/plain")||"",K=K.replace(/\n/g,""),this.insertText(K));(K=this.getCurrentRange())&&K.commonAncestorContainer.parentElement.id==="input"&&K.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.z.onFocus=function(){this._setFocused(!0)};
_.z.onBlur=function(){this._setFocused(!1)};
_.z.insertText=function(K){this.insertTextAtRange(this.getInputRange(),K)};
_.z.insertTextAtRange=function(K,X){if(K&&(K.collapsed||K.deleteContents(),X=_.yU.createDocumentFragment(X,!0,!1))){for(var F=_.D((X==null?void 0:X.childNodes)||[]),P=F.next();!P.done;P=F.next()){P=P.value;var H=void 0,f=void 0,u=void 0,J=void 0,Z=void 0;(u=(H=window)==null?void 0:(f=H.ShadyCSS)==null?void 0:f.ScopingShim)==null||(Z=(J=u).scopeNode)==null||Z.call(J,P,this.hostElement.localName)}F=X.lastChild;K.insertNode(X);this.focused||this.input.focus();if(this.focused){K=K.cloneRange();K.selectNodeContents(F);
K.collapse(!1);if(X=window.getSelection())X.removeAllRanges(),X.addRange(K);K.commonAncestorContainer.parentElement.id==="input"&&K.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}K=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(K);_.iX(this.hostElement,"yt-live-chat-message-input-change",K)}};
_.z.setLiveChatRichMessageInput=function(K){_.C$(_.C$(this.hostElement).querySelector("#input")).textContent="";if(K&&K.textSegments){for(var X=0;X<K.textSegments.length;X++){var F=K.textSegments[X];F.text?_.C$(_.C$(this.hostElement).querySelector("#input")).appendChild(_.yU.createDocumentFragment(F.text,!0,!1)):F.emojiId&&(F=_.jY(_.yU,F.emojiId))&&_.C$(_.C$(this.hostElement).querySelector("#input")).appendChild(_.yU.createEmoji(F,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.z.setText=function(K){this.setLiveChatRichMessageInput(K?{textSegments:[{text:K}]}:null)};
_.z.calculateTextBeforeRange=function(K){var X="",F=K.startContainer;if(F&&F instanceof Text){var P;X=((P=F.textContent)==null?void 0:P.substring(0,K.startOffset))||"";F=F.previousSibling}for(;F&&F instanceof Text;)X=F.textContent+X,F=F.previousSibling;return X.replace(h1," ")};
_.z.calculateLiveChatRichMessageInput=function(){for(var K=[],X="",F=_.C$(_.C$(this.hostElement).querySelector("#input")).childNodes,P=0;P<F.length;P++){var H=F[P];H instanceof Text?X+=H.textContent:H instanceof HTMLImageElement&&(H.dataset.emojiId?(X&&(K.push({text:X.replace(h1," ")}),X=""),K.push({emojiId:H.dataset.emojiId})):X+=H.alt)}X&&K.push({text:X.replace(h1," ")});if(F=_.C$(this.hostElement).querySelector("#overflow-text")){X="";F=F.childNodes;for(P=0;P<F.length;P++)H=F[P],H instanceof Text?
X+=H.textContent:H instanceof HTMLImageElement&&(H.dataset.emojiId?(X&&(K.push({text:X.replace(h1," ")}),X=""),K.push({emojiId:H.dataset.emojiId})):X+=H.alt);X&&K.push({text:X.replace(h1," ")})}return{textSegments:K}};
_.z.computeCharacterCount=function(K){if(!K||!K.textSegments)return 0;for(var X=0,F=0;F<K.textSegments.length;F++){var P=K.textSegments[F];if(P.text)X+=P.text.length;else if(P.emojiId){var H=void 0;if((H=this.data)==null?0:H.emojiCharacterCount)X+=this.data.emojiCharacterCount;else{var f=H=void 0,u=void 0;X+=((f=_.jY(_.yU,(H=P)==null?void 0:H.emojiId))==null?void 0:(u=f.shortcuts)==null?void 0:u[0].length)||0}}}return X};
_.z.characterCountChanged=function(){_.iX(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.z.focusedChanged=function(){this.hostElement.dispatchEvent(new _.R9("focused-changed",this.focused))};
_.z.focus=function(){this.setFocus(!1)};
_.z.focusAtEnd=function(){this.setFocus(!0)};
_.z.setFocus=function(K){K=K?this.getRangeAtEnd():this.getInputRange();_.C$(this.hostElement).querySelector("#input").focus();var X=window.getSelection();X&&(X.removeAllRanges(),X.addRange(K))};
_.z.insertEmoji=function(K){var X,F=((K==null?0:K.isCustomEmoji)?(X=K.shortcuts)==null?void 0:X[0]:K==null?void 0:K.emojiId)||"";this.insertText(F)};
_.z.computeText=function(K){if(!K||!K.textSegments)return"";for(var X="",F=0;F<K.textSegments.length;F++){var P=K.textSegments[F];if(P.text)X+=P.text;else if(P.emojiId){var H=void 0,f=void 0,u=void 0;X+=((f=_.jY(_.yU,(H=P)==null?void 0:H.emojiId))==null?void 0:(u=f.shortcuts)==null?void 0:u[0])||""}}return X};
_.z.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.Oi.Object.defineProperties(md.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.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}}});
md.prototype.focusedChanged=md.prototype.focusedChanged;md.prototype.characterCountChanged=md.prototype.characterCountChanged;md.prototype.onSuggestion=md.prototype.onSuggestion;md.prototype.onMessageSet=md.prototype.onMessageSet;md.prototype.dataChanged=md.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],md.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],md.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],md.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],md.prototype,"disabled",void 0);_.O([_.U("disabled"),_.g("design:type",Number),_.g("design:paramtypes",[])],md.prototype,"inputTabIndex",null);_.O([_.U("data.maxCharacterLimit"),_.h({readOnly:!0,notify:!0}),_.g("design:type",Number),_.g("design:paramtypes",[])],md.prototype,"maxCharacterLimit",null);
_.O([_.U("liveChatRichMessageInput"),_.h({readOnly:!0,notify:!0}),_.g("design:type",Number),_.g("design:paramtypes",[])],md.prototype,"characterCount",null);_.O([_.U("maxCharacterLimit, characterCount"),_.h({readOnly:!0,notify:!0}),_.g("design:type",Number),_.g("design:paramtypes",[])],md.prototype,"remainingCharacterCount",null);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],md.prototype,"isChatMessageInput",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],md.prototype,"inputExpanded",void 0);_.O([_.h({readOnly:!0,notify:!0}),_.g("design:type",Object)],md.prototype,"liveChatRichMessageInput",void 0);_.O([_.h(),_.g("design:type",Object)],md.prototype,"messageInput",void 0);_.O([_.h(),_.g("design:type",Boolean)],md.prototype,"ignoreColorMapping",void 0);_.O([_.U("characterCount"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],md.prototype,"hasText",null);
_.O([_.h(),_.g("design:type",Object)],md.prototype,"isValidWithNoInputText",void 0);_.O([_.U("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.h(),_.g("design:type",Boolean),_.g("design:paramtypes",[])],md.prototype,"isInputValid",null);_.O([_.h({readOnly:!0,value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],md.prototype,"focused",void 0);_.O([_.h(),_.g("design:type",Array)],md.prototype,"suggestions",void 0);
_.O([_.h(),_.g("design:type",_.A1)],md.prototype,"emojiManager",void 0);_.O([_.h(),_.g("design:type",_.UT)],md.prototype,"participantsManager",void 0);_.O([_.h(),_.g("design:type",Boolean)],md.prototype,"noUnderline",void 0);_.O([_.h(),_.g("design:type",Object)],md.prototype,"inputMethodEditorActive",void 0);_.O([_.fa("#dropdown"),_.g("design:type",Object)],md.prototype,"dropdown",void 0);_.O([_.fa("#input"),_.g("design:type",HTMLElement)],md.prototype,"input",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],md.prototype,"dataChanged",null);_.O([_.so("messageInput"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],md.prototype,"onMessageSet",null);_.O([_.Hc("yt-live-chat-select-suggestion"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],md.prototype,"onSuggestion",null);
_.O([_.so("characterCount"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],md.prototype,"characterCountChanged",null);_.O([_.so("focused"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],md.prototype,"focusedChanged",null);md=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],md);
_.ruV=_.t(md,"yt-live-chat-text-input-field-renderer",function(){if(pSt===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;cuu===void 0&&(cuu=document.createElement("template"));var P=cuu;F.call(X,P.content.cloneNode(!0),K.content.firstChild);pSt=K}K=pSt;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var GK=function(){var K=_.G.apply(this,arguments)||this;K.buttonOverrides={style:"overlay",type:"filled"};K.allowAnimations=!1;K.modern=_.S("web_button_rework_with_live");K.noPadding=!1;return K};
_.r(GK,_.G);_.z=GK.prototype;_.z.shouldSupportInlineActionButtons=function(){return!0};
_.z.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{liveChatPaidMessageFooterRenderer:"yt-live-chat-paid-message-footer-renderer"}},"data.buyButton":{id:"lower-buy-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.buyFlowButton":{id:"buy-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}},
"data.pdgLikeButton":{id:"like-button",mapping:{pdgLikeViewModel:{component:"yt-live-chat-like-button-view-model"}}},"data.replyButton":{id:"reply-button",mapping:{pdgReplyButtonViewModel:{component:"yt-live-chat-reply-button-view-model"}}},"data.leaderboardBadge":{id:"leaderboard-badge",mapping:{buttonViewModel:{component:"yt-button-view-model"}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}}}};
_.z.ready=function(){var K=document.querySelector("yt-live-chat-app");K&&K.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.z.attached=function(){this.allowAnimations=!1};
_.z.dataChanged=function(){if(this.data){var K={"--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)};_.XU(this.hostElement,K);this.allowAnimations=!0}};
_.z.messageChanged=function(){var K,X=(K=this.data)==null?void 0:K.message;K=_.C$(_.C$(this.hostElement).querySelector("#message"));K.textContent="";X&&K.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(X))};
_.z.computeShowOnlyHeader=function(K,X){return!K||K.pdgLikeButton||K.replyButton||K.buyFlowButton?!1:this.isEmpty(K,X)&&!K.footer};
_.z.computeShowFooterDivider=function(K,X,F){return K?!!K.footer&&!this.isEmpty(K,X)&&!F:!1};
_.z.computeIsUserEditable=function(K){return!!K.inputField};
_.z.computeHasHeartButton=function(K){return(K==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(K==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(K==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.z.computeNoveltyImage=function(K){if(K.headerOverlayImage&&K.headerOverlayImage.thumbnails.length){var X=K.headerOverlayImage.thumbnails[0],F,P;if((F=K.pdgPurchasedNoveltyLoggingDirectives)==null?0:(P=F.loggingDirectives)==null?0:P.trackingParams){var H,f;TDl((H=K.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(f=H.loggingDirectives)==null?void 0:f.trackingParams)}return X.width||0}return 0};
_.z.computeAuthorPhotoSize=function(K){return(K==null?0:K.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.z.inputFocus=function(){var K=_.C$(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");K&&K.focus()};
_.z.inputInsertEmoji=function(K){var X=_.C$(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");X&&X.insertEmoji(K)};
_.z.inputMessage=function(){var K=_.C$(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),X;return K&&((X=this.data)==null?0:X.inputField)?(K.completeEmojis(),_.wn(K.liveChatRichMessageInput)):null};
_.z.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.z.isEmpty=function(K,X){return K?K.empty||!(K.message||K.inputField||X):!0};
_.z.onLowerBuyButtonClick=function(){var K,X=_.T((K=this.data)==null?void 0:K.buyButton,_.jg);X&&X.trackingParams&&!V5P(X.command)&&(K=_.QB(X.trackingParams))&&(X=_.AD())&&_.vW(X,K)};
_.z.shouldSupportWholeItemClick=function(){return!0};
_.Oi.Object.defineProperties(GK.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?0:K.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
GK.prototype.isDeletedChanged=GK.prototype.isDeletedChanged;GK.prototype.messageChanged=GK.prototype.messageChanged;GK.prototype.dataChanged=GK.prototype.dataChanged;_.O([_.W(P8Z.YtPdgLiveChatItemBehavior),_.g("design:type",Object)],GK.prototype,"ytPdgLiveChatItemBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.yj),_.g("design:type",Object)],GK.prototype,"ytLiveChatReduxBehavior",void 0);
_.O([_.W(_.W9.YtLiveChatItemBehavior),_.g("design:type",_.dA)],GK.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],GK.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],GK.prototype,"data",void 0);_.O([_.h({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:obT}),_.g("design:type",Object)],GK.prototype,"engagementState",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.g("design:type",Boolean)],GK.prototype,"isUserEditable",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.g("design:type",Boolean)],GK.prototype,"hasHeartButton",void 0);_.O([_.h({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.g("design:type",Boolean)],GK.prototype,"showOnlyHeader",void 0);
_.O([_.h({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.g("design:type",Boolean)],GK.prototype,"showFooterDivider",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Object)],GK.prototype,"allowAnimations",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],GK.prototype,"dashboardMoneyFeed",void 0);_.O([_.h({computed:"computeNoveltyImage(data)"}),_.g("design:type",Number)],GK.prototype,"noveltyWidth",void 0);
_.O([_.h({computed:"computeAuthorPhotoSize(data)"}),_.g("design:type",Number)],GK.prototype,"authorPhotoSize",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],GK.prototype,"modern",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],GK.prototype,"noPadding",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],GK.prototype,"dataChanged",null);
_.O([_.so("data.message"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],GK.prototype,"messageChanged",null);_.O([_.U("data","dashboardMoneyFeed"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],GK.prototype,"hideLowerBumper",null);_.O([_.so("isDeleted"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],GK.prototype,"isDeletedChanged",null);
GK=_.O([_.v({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],GK);
_.t(GK,"yt-live-chat-paid-message-renderer",function(){if(U9t===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;Rat===void 0&&(Rat=document.createElement("template"));var P=Rat;F.call(X,P.content.cloneNode(!0),K.content.firstChild);U9t=K}K=U9t;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Aut;var jOt;var ls=function(){var K=_.ub.apply(this,arguments)||this;K._noAccessors=!0;return K};
_.r(ls,_.ub);ls.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.e8("openPopupConfig")};
_.O([_.W(_.sT.YtOpenPopupBehavior),_.g("design:type",Object)],ls.prototype,"ytOpenPopupBehavior",void 0);ls=_.O([_.qY()],ls);_.v9=[_.sT.YtOpenPopupBehavior,ls.prototype];var wSU;var he=[_.f$,oAW,_.TI,_.Dm,_.vg,_.RtL,_.J6,_.a1U,_.Tt,poq];_.S("web_watch_get_updated_metadata_response_processing")&&he.push(_.Dft);_.S("web_continuation_response_processing")&&he.push(_.jd);var xNO=new _.Oh("RESPONSE_RECEIVED_COMMANDS"),QMP=new _.Oh("RESPONSE_RECEIVED_COMMANDS");var fkl="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),z2y=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],sMd=["GET_UNSEEN_NOTIFICATION_COUNT"];var a9=function(){var K=_.ub.apply(this,arguments)||this;K._noAccessors=!0;K.serviceEndpointHandlers=[];return K};
_.r(a9,_.ub);a9.prototype.created=function(){var K=this;this.endpointHandlerActionMap={"yt-service-request":function(X,F,P,H){var f;return HRw(K.hostElement,X,F,P,H,K.serviceEndpointHandlers,(f=K.onEntitiesUpdated)==null?void 0:f.bind(K))}}};
a9.prototype.attached=function(){_.ly(_.GT.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
a9.prototype.detached=function(){_.vu(_.GT.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
a9=_.O([_.qY()],a9);_.yut=[a9.prototype];var WoL,dnt=function(){return WoL!==void 0?WoL:WoL=document.createElement("template")};
document.head.appendChild(dnt().content);var e5C;var R5O=document.head,UnL=R5O.appendChild,h5O;if(e5C===void 0){var mnL=document.createElement("template");_.w(mnL,"\x3c!--css-build:shady--\x3e");mnL.content.insertBefore(dnt().content.cloneNode(!0),mnL.content.firstChild);e5C=mnL}h5O=e5C;UnL.call(R5O,h5O.content);var GaU,luQ=function(){return GaU!==void 0?GaU:GaU=document.createElement("template")};
document.head.appendChild(luQ().content);var vYO;var auU=document.head,tKT=auU.appendChild,$nE;if(vYO===void 0){var OKW=document.createElement("template");_.w(OKW,"\x3c!--css-build:shady--\x3e");OKW.content.insertBefore(luQ().content.cloneNode(!0),OKW.content.firstChild);vYO=OKW}$nE=vYO;tKT.call(auU,$nE.content);var VKL;_.L4("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.L4("sharingRendererButtons","buttonRenderer","ytd-button-renderer");VKL=_.S("web_button_rework")&&_.RU("BUTTON_REWORK")||_.S("web_button_rework_with_live");_.t1=function(){var K=_.G.apply(this,arguments)||this;K.isPressed=!1;K.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return K};
_.r(_.t1,_.G);_.z=_.t1.prototype;_.z.created=function(){this.showTooltips=!0};
_.z.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.z.onHintIdChanged=function(){var K=this,X,F,P=(X=this.ytButtonBehavior.data)==null?void 0:(F=X.hint)==null?void 0:F.hintRenderer;if(P&&P.hintId){X=_.IJ(this.hostElement,"yt-get-opened-popups-action");X=(X&&X.length===1?X[0]:[]).length>0;var H=null;P.hintId!=="sponsor-pre-purchase"||X?P.hintId.startsWith("sponsor-post-purchase")&&!X?H=pRW("membership-manage"):P.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!X&&(H=pRW("membership-freebie-join")):H=pRW("membership-join");H&&_.A9.addLowPriorityJob(function(){for(var f=
_.D(H),u=f.next();!u.done;u=f.next())K.ytComponentBehavior.resolveCommand(u.value)})}};
_.z.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.z.onYtNavigate=function(K){var X=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(K.detail.endpoint);X&&(K.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(X))};
_.z.onYtServiceRequestSent=function(K,X){this.handleServiceRequestActions(X);_.iX(this.hostElement,"yt-service-request-sent-button-renderer")};
_.z.onServiceRequestCompleted=function(K,X){this.handleServiceRequestActions(X);_.iX(this.hostElement,"yt-service-request-completed-button-renderer")};
_.z.updateButton=function(K){var X;if(K=(X=_.T(K,PQL))==null?void 0:X.updatedButton)this.ytButtonBehavior.data=_.T(K,_.jg)};
_.z.handleUpdateButtonAction=function(K){var X=this.ytButtonBehavior.data;X.targetId&&K.updateButtonAction.targetId&&X.targetId===K.updateButtonAction.targetId&&this.updateButton(K)};
_.z.handleServiceRequestActions=function(K){if(K=K.actions)for(var X=0;X<K.length;X++)this.updateButton(K[X])};
_.Oi.Object.defineProperties(_.t1,{template:{configurable:!0,enumerable:!0,get:function(){if(wSU===void 0){var K=document.createElement("template");_.w(K,"\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");K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);wSU=K}K=wSU;return K}}});
_.t1.prototype.onServiceRequestCompleted=_.t1.prototype.onServiceRequestCompleted;_.t1.prototype.onYtServiceRequestSent=_.t1.prototype.onYtServiceRequestSent;_.t1.prototype.onYtNavigate=_.t1.prototype.onYtNavigate;_.t1.prototype.onPressedStateChanged=_.t1.prototype.onPressedStateChanged;_.t1.prototype.onHintIdChanged=_.t1.prototype.onHintIdChanged;_.O([_.h(),_.g("design:type",Object)],_.t1.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],_.t1.prototype,"isPressed",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],_.t1.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.KFL.YtButtonBehavior),_.g("design:type",Object)],_.t1.prototype,"ytButtonBehavior",void 0);_.O([_.W(_.v9),_.g("design:type",Object)],_.t1.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],_.t1.prototype,"ytComponentBehavior",void 0);
_.O([_.W(ZP.YtRenderButtonBehavior),_.g("design:type",Object)],_.t1.prototype,"ytRenderButtonBehavior",void 0);_.O([_.so("data.hint.hintRenderer"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],_.t1.prototype,"onHintIdChanged",null);_.O([_.so("isPressed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],_.t1.prototype,"onPressedStateChanged",null);
_.O([_.Hc("yt-navigate"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],_.t1.prototype,"onYtNavigate",null);_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.yk]),_.g("design:returntype")],_.t1.prototype,"onYtServiceRequestSent",null);
_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.G9]),_.g("design:returntype")],_.t1.prototype,"onServiceRequestCompleted",null);_.t1=_.O([_.v({is:"ytd-button-renderer",disableElementRegistration:VKL})],_.t1);var $q=function(){var K=_.G.apply(this,arguments)||this;K.modern=_.S("web_button_rework_with_live");K.buttonOverrides={style:"overlay",type:"filled"};return K};
_.r($q,_.G);_.z=$q.prototype;_.z.configureRendererStamper=function(){return{"data.buyButton":{id:"buy-flow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}}}};
_.z.ready=function(){var K=document.querySelector("yt-live-chat-app");K&&K.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.z.dataChanged=function(){if(this.data&&this.data.sticker){var K=_.bH(this.data.sticker.thumbnails,this.stickerWidth);K||_.oGl(K).thenCatch(function(){_.yy(new _.nG("Failed to load Super Sticker with url",K))})}};
_.z.computeAuthorPhotoSize=function(K){return(K==null?0:K.isV2Style)?32:40};
_.z.computeIsV2Style=function(K){return(K==null?0:K.isV2Style)?!0:!1};
_.z.onStickerLoaded=function(K){var X,F,P;(X=_.vI(K))==null||(F=X.parentNode)==null||(P=F.classList)==null||P.add("sticker-loaded")};
_.z.computeNoveltyImageWidth=function(K){var X,F;if(K==null?0:(X=K.headerOverlayImage)==null?0:(F=X.thumbnails)==null?0:F.length){X=K.headerOverlayImage.thumbnails[0];var P,H;if((P=K.pdgPurchasedNoveltyLoggingDirectives)==null?0:(H=P.loggingDirectives)==null?0:H.trackingParams){var f,u;TDl((f=K.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(u=f.loggingDirectives)==null?void 0:u.trackingParams)}return X.width||0}return 0};
_.z.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.z.updateStickerStyles=function(){var K=this.data;K&&(K={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(K.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(K.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(K.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(K.authorNameTextColor)},
_.XU(this.hostElement,K))};
_.z.onBuyButtonClick=function(){var K,X=_.T((K=this.data)==null?void 0:K.buyButton,_.jg);X&&!V5P(X.command)&&this.ytRendererBehavior.logExplicitClick(X)};
_.z.shouldSupportWholeItemClick=function(){return!0};
_.Oi.Object.defineProperties($q.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 K;return((K=this.data)==null?0:K.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
$q.prototype.updateStickerStyles=$q.prototype.updateStickerStyles;$q.prototype.isDeletedChanged=$q.prototype.isDeletedChanged;$q.prototype.onStickerLoaded=$q.prototype.onStickerLoaded;$q.prototype.dataChanged=$q.prototype.dataChanged;_.O([_.W(P8Z.YtPdgLiveChatItemBehavior),_.g("design:type",Object)],$q.prototype,"ytPdgLiveChatItemBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],$q.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],$q.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.W9.YtLiveChatItemBehavior),_.g("design:type",_.dA)],$q.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],$q.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],$q.prototype,"data",void 0);
_.O([_.h({computed:"computeAuthorPhotoSize(data)"}),_.g("design:type",Number)],$q.prototype,"authorPhotoSize",void 0);_.O([_.h(),_.g("design:type",Boolean)],$q.prototype,"isDeleted",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],$q.prototype,"dashboardMoneyFeed",void 0);_.O([_.h({computed:"computeNoveltyImageWidth(data)"}),_.g("design:type",Number)],$q.prototype,"noveltyWidth",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],$q.prototype,"modern",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.g("design:type",Boolean)],$q.prototype,"isV2Style",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],$q.prototype,"dataChanged",null);_.O([_.Hc("yt-img-shadow-loaded"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],$q.prototype,"onStickerLoaded",null);
_.O([_.U("data"),_.g("design:type",Number),_.g("design:paramtypes",[])],$q.prototype,"stickerWidth",null);_.O([_.U("data"),_.g("design:type",Number),_.g("design:paramtypes",[])],$q.prototype,"stickerHeight",null);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],$q.prototype,"hasHeartButton",null);_.O([_.U("data","dashboardMoneyFeed"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],$q.prototype,"hideLowerBumper",null);
_.O([_.so("isDeleted"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],$q.prototype,"isDeletedChanged",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],$q.prototype,"updateStickerStyles",null);$q=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],$q);
_.t($q,"yt-live-chat-paid-sticker-renderer",function(){if(jOt===void 0){var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;Aut===void 0&&(Aut=document.createElement("template"));var P=Aut;F.call(X,P.content.cloneNode(!0),K.content.firstChild);jOt=K}K=jOt;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var gYN;var EYQ;var bKN,C1N=function(){return bKN!==void 0?bKN:bKN=document.createElement("template")};
document.head.appendChild(C1N().content);var NTW,iKU=function(){return NTW!==void 0?NTW:NTW=document.createElement("template")};
document.head.appendChild(iKU().content);var xnO;var IuC,kat=function(){return IuC!==void 0?IuC:IuC=document.createElement("template")};
document.head.appendChild(kat().content);var KJu;var XXL=document.head,FJZ=XXL.appendChild,Pwu;if(KJu===void 0){var HXC=document.createElement("template");_.w(HXC,"\x3c!--css-build:shady--\x3e");HXC.content.insertBefore(kat().content.cloneNode(!0),HXC.content.firstChild);KJu=HXC}Pwu=KJu;FJZ.call(XXL,Pwu.content);var s8L=document.head,ziC=s8L.appendChild,fEt;if(xnO===void 0){var OT=document.createElement("template");_.w(OT,"\x3c!--css-build:shady--\x3e");OT.content.insertBefore(iKU().content.cloneNode(!0),OT.content.firstChild);OT.content.insertBefore(C1N().content.cloneNode(!0),OT.content.firstChild);xnO=OT}fEt=xnO;ziC.call(s8L,fEt.content);var VU=function(){var K=_.ub.apply(this,arguments)||this;K.focusedIndex=0;K.verticalOffset=0;K.verticalAlign="top";K.dynamicAlign=!0;return K};
_.r(VU,_.ub);VU.prototype.emojiUrl=function(K){K=_.jY(this.emojiManager,K);if(!K)return"";var X;K=(X=K.image)==null?void 0:X.thumbnails;return _.bH(K,24)||""};
var DbO=function(K){var X;K.emojiVariants&&(X=K.data)!=null&&X.target&&_.tg(K,function(){K.set("verticalOffset",-1*K.hostElement.clientHeight);var F=_.C$(K.hostElement).querySelector("img");F&&F.focus()})};
_.z=VU.prototype;_.z.onKeyboardEnter=function(){};
_.z.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.z.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.z.onKeyDown=function(K){switch(K.keyCode){case 13:this.onKeyboardEnter();K.preventDefault();break;case 40:this.changeFocus(1);K.preventDefault();break;case 38:this.changeFocus(-1);K.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.z.onYtEmojiSelect=function(K){var X=this,F,P,H,f,u,J,Z,M;return _.q(function(n){if(n.nextAddress==1)return P=(F=X.data)==null?void 0:F.emoji,u=((H=P)==null?void 0:H.stickyPrefId)||((f=P)==null?void 0:f.emojiId),Z=(J=K.detail)==null?void 0:J.emojiId,u&&Z&&u!==Z?_.Y(n,(M=X.emojiManager)==null?void 0:YtL(M,P,Z),2):n.return();_.xr(X.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[P,Z]);_.JT(n)})};
_.z.changeFocus=function(K){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+K+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(K=_.C$(this.hostElement).querySelector("#variants"))&&K.children[this.focusedIndex].focus())};
_.Oi.Object.defineProperties(VU.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
VU.prototype.onYtEmojiSelect=VU.prototype.onYtEmojiSelect;VU.prototype.onKeyDown=VU.prototype.onKeyDown;VU.prototype.onEmojiVariantsChanged=VU.prototype.onEmojiVariantsChanged;VU.prototype.onVerticalOffsetOrPositionTargetChanged=VU.prototype.onVerticalOffsetOrPositionTargetChanged;_.O([_.W(_.m2),_.g("design:type",Object)],VU.prototype,"ironOverlayBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],VU.prototype,"data",void 0);_.O([_.h(),_.g("design:type",_.A1)],VU.prototype,"emojiManager",void 0);
_.O([_.h(),_.g("design:type",Object)],VU.prototype,"emojiVariants",void 0);_.O([_.h(),_.g("design:type",Object)],VU.prototype,"focusedIndex",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],VU.prototype,"positionTarget",null);_.O([_.h({reflectToAttribute:!0}),_.U("verticalOffset","data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],VU.prototype,"isPositioned",null);_.O([_.h(),_.g("design:type",Object)],VU.prototype,"verticalOffset",void 0);
_.O([_.h(),_.g("design:type",Object)],VU.prototype,"verticalAlign",void 0);_.O([_.h(),_.g("design:type",Object)],VU.prototype,"dynamicAlign",void 0);_.O([_.so("verticalOffset","positionTarget"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],VU.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.O([_.so("emojiVariants"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],VU.prototype,"onEmojiVariantsChanged",null);
_.O([_.Hc("keydown"),_.g("design:type",Function),_.g("design:paramtypes",[KeyboardEvent]),_.g("design:returntype")],VU.prototype,"onKeyDown",null);_.O([_.Hc("yt-emoji-select"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype",Promise)],VU.prototype,"onYtEmojiSelect",null);VU=_.O([_.qY()],VU);var utC=[VU.prototype];var qWU;var JRQ;var ZXL=/medium-light|medium-dark|light|medium|dark/,YWC=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,Q8u=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),gA=function(){var K=_.G.apply(this,arguments)||this;K.userSelection={left:null,right:null};K.scrollAction="lock";K.isEmojiDraftInProgress=!1;return K};
_.r(gA,_.G);_.z=gA.prototype;_.z.onClick=function(K){K=_.vI(K);K instanceof HTMLImageElement&&this.selectOrUpdateEmoji(K)};
_.z.selectOrUpdateEmoji=function(K){var X=K.getAttribute("selection");X&&(X==="default"?_.iX(this.hostElement,"yt-emoji-select",_.jY(this.emojiManager,K.id)):X==="left"?this.userSelection=Object.assign({},this.userSelection,{left:K.src}):X==="right"?this.userSelection=Object.assign({},this.userSelection,{right:K.src}):X==="user"&&this.userSelection.left&&this.userSelection.right&&_.iX(this.hostElement,"yt-emoji-select",_.jY(this.emojiManager,K.id)))};
_.z.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.z.onMultiSelectorThumbnailRowChanged=function(){var K,X,F;((K=this.data)==null?0:(X=K.emoji)==null?0:(F=X.multiSelectorThumbnailRow)==null?0:F.length)&&this.openSelector()};
_.z.getThumbnailFromEmojiRow=function(K){var X,F;return(K==null?void 0:(X=K.thumbnails)==null?void 0:(F=X[0])==null?void 0:F.url)||""};
_.z.getEmojiAltTextForPartialSelector=function(K){var X;return((X=this.getThumbnailFromEmojiRow(K).match(YWC))==null?void 0:X[0])||""};
_.z.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.z.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.z.getRowSelection=function(K){return["left","right"][K]};
_.z.getIdFromComposedEmoji=function(K){return(K==null?void 0:K.emojiId)||""};
_.z.getEmojiFromPartialSelections=function(K,X){if(!K&&!X)return null;var F,P,H=(F=this.data)==null?void 0:(P=F.emoji)==null?void 0:P.variantIds;if(!H||!H.length)return null;var f;K=(f=K.match(ZXL))==null?void 0:f[0];var u;X=(u=X.match(ZXL))==null?void 0:u[0];if(!K||!X)return null;var J=Q8u.get(K);u=Q8u.get(X);if(J===u){u=Array.from(Q8u.values()).filter(function(M){return M!==J}).join("|");
var Z=new RegExp("^((?!("+u+")).)*"+J+"$")}else Z=new RegExp(J+".*"+u);return(H=H.find(function(M){return Z.test(M)}))&&_.jY(this.emojiManager,H)||null};
_.z.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var K,X=this.ytEmojiSelectorBehavior.emojiUrl(((K=this.data.emoji)==null?void 0:K.emojiId)||"");_.C$(this.hostElement).querySelector('[selection="user"]').src.includes(X)||(this.isEmojiDraftInProgress=!0)}};
_.z.onDomChange=function(){DbO(this.ytEmojiSelectorBehavior)};
_.z.getFocusableElements=function(){return _.C$(this.hostElement).querySelectorAll("img").filter(function(K){return K.getAttribute("role")==="option"})};
_.z.changeFocus=function(K){var X=this.getFocusableElements();X!=null&&X.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+K+X.length)%X.length,this.ytEmojiSelectorBehavior.focusedIndex<X.length&&(K=X[this.ytEmojiSelectorBehavior.focusedIndex])&&K.focus())};
_.z.onKeyboardEnter=function(){var K=this.getFocusableElements();K!=null&&K.length&&(K=K[this.ytEmojiSelectorBehavior.focusedIndex])&&K instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(K),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.Oi.Object.defineProperties(gA.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var K=this,X,F,P;return this.emojiManager&&((X=this.data)==null?0:(F=X.emoji)==null?0:(P=F.variantIds)==null?0:P.length)?this.data.emoji.variantIds.map(function(H){return!!H&&_.jY(K.emojiManager,H)}).filter(function(H){return!!H}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var K,X=(K=this.userSelection)==null?void 0:K.left,F;K=(F=this.userSelection)==null?void 0:F.right;return X&&K?this.getEmojiFromPartialSelections(X,K):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.composedEmojiSelection)==null?0:K.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var X;K=(X=this.userSelection)==null?void 0:X.left;var F;X=(F=this.userSelection)==null?void 0:F.right;if(!K&&!X){var P;return this.ytEmojiSelectorBehavior.emojiUrl(((P=this.data.emoji)==null?void 0:P.emojiId)||"")}return K&&!X?K:!K&&X?X:""}}});
gA.prototype.onMultiSelectorThumbnailRowChanged=gA.prototype.onMultiSelectorThumbnailRowChanged;gA.prototype.onClick=gA.prototype.onClick;_.O([_.W(_.m2),_.g("design:type",Object)],gA.prototype,"ironOverlayBehavior",void 0);_.O([_.W(utC),_.g("design:type",Object)],gA.prototype,"ytEmojiSelectorBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],gA.prototype,"data",void 0);_.O([_.h(),_.g("design:type",_.A1)],gA.prototype,"emojiManager",void 0);
_.O([_.h(),_.g("design:type",Object)],gA.prototype,"userSelection",void 0);_.O([_.h(),_.g("design:type",Object)],gA.prototype,"scrollAction",void 0);_.O([_.h(),_.g("design:type",Object)],gA.prototype,"isEmojiDraftInProgress",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],gA.prototype,"emojiVariants",null);_.O([_.U("data","userSelection"),_.g("design:type",Object),_.g("design:paramtypes",[])],gA.prototype,"composedEmojiSelection",null);
_.O([_.Hc("click"),_.g("design:type",Function),_.g("design:paramtypes",[MouseEvent]),_.g("design:returntype")],gA.prototype,"onClick",null);_.O([_.so("data.emoji.multiSelectorThumbnailRow"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],gA.prototype,"onMultiSelectorThumbnailRowChanged",null);_.O([_.U("data","userSelection","composedEmojiSelection"),_.g("design:type",String),_.g("design:paramtypes",[])],gA.prototype,"draftEmojiUrl",null);
gA=_.O([_.Tb({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],gA);
_.t(gA,"yt-emoji-multi-person-selector",function(){if(JRQ===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;qWU===void 0&&(qWU=document.createElement("template"));var P=qWU;F.call(X,P.content.cloneNode(!0),K.content.firstChild);JRQ=K}K=JRQ;return K},{mode:2});var MRW;var nNC;var ET=function(){var K=_.G.apply(this,arguments)||this;K.tooltip_=null;return K};
_.r(ET,_.G);_.z=ET.prototype;_.z.dataChanged_=function(){var K;if((K=this.data)==null?0:K.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.C$(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.Ka)(this.tooltip_).textContent=this.data.tooltip};
_.z.computeTargetId=function(){var K;return((K=this.data)==null?void 0:K.targetId)||""};
_.z.computeId_=function(K){return K};
_.z.computeIcon_=function(K){return _.Fl(K)};
_.z.onTap_=function(){this.active=!this.active;_.iX(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.z.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R9("active-changed",this.active))};
_.Oi.Object.defineProperties(ET.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var K,X;if((K=this.data)==null?0:(X=K.icon)==null?0:X.iconType)return this.data.icon.iconType==="SUPER_STICKER";var F,P;return((F=this.data)==null?void 0:(P=F.icon)==null?void 0:P.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
ET.prototype.activeChangedForBinding=ET.prototype.activeChangedForBinding;ET.prototype.dataChanged_=ET.prototype.dataChanged_;_.O([_.W(_.WU.YtLiveChatTooltipTargetingBehavior),_.g("design:type",Object)],ET.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],ET.prototype,"data",void 0);_.O([_.h({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.g("design:type",String)],ET.prototype,"id",void 0);
_.O([_.h({computed:"computeTargetId(data.targetId)"}),_.g("design:type",String)],ET.prototype,"targetId",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],ET.prototype,"active",void 0);_.O([_.h({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.g("design:type",String)],ET.prototype,"icon",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ET.prototype,"dataChanged_",null);
_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],ET.prototype,"iconFilled",null);_.O([_.so("active"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ET.prototype,"activeChangedForBinding",null);ET=_.O([_.Tb({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],ET);
_.t(ET,"yt-emoji-picker-category-button-renderer",function(){if(nNC===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;MRW===void 0&&(MRW=document.createElement("template"));var P=MRW;F.call(X,P.content.cloneNode(!0),K.content.firstChild);nNC=K}K=nNC;return K},{mode:2});var cRE;var pXL;var bs=function(){var K=_.G.apply(this,arguments)||this;K.ariaLabel=null;K.ariaActivedescendant=null;K.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};K.JSC$12059_ignoreNextFocus_=!1;K.longPressTimeoutId=-1;return K};
_.r(bs,_.G);_.z=bs.prototype;_.z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.z.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.z.emojiChanged_=function(){this.changeFocus_(0,!1);for(var K=_.uH(),X=0;X<this.emoji.length;X++){var F={veType:88013,elementIndex:X},P=this.emoji[X];P.isCustomEmoji&&(P=document.querySelector(("#"+P.emojiId).replace("/","\\/")))&&(F=_.Da(K,F))&&(P.visualElement=F)}};
_.z.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.z.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.z.emojiSkinToneChanged_=function(K){this.skinTone=K};
_.z.dataChanged=function(){this.data&&this.data.emojiData&&uZE(this.emojiManager,this.data.emojiData)};
_.z.emojiUrl=function(K){K=this.getEmoji(K);if(!K)return"";var X;K=(X=K.image)==null?void 0:X.thumbnails;return _.bH(K,24)||""};
_.z.emojiAlt=function(K){var X=this.get("image.accessibility.accessibilityData.label",K);return X?X:K.isCustomEmoji?K.shortcuts[0]:K.emojiId};
_.z.emojiAriaLabel=function(K){return K.shortcuts?K.shortcuts[0]:""};
_.z.emojiAriaSelected=function(K,X,F){return K&&F==X?"true":"false"};
_.z.getEmoji=function(K){if(this.emojiManager)return this.shouldUseStickyPreferences?Juu(this.emojiManager,K):wA(this.emojiManager,K)};
_.z.computeId_=function(K){return K.categoryId||""};
_.z.computeEmoji=function(K){var X=this;return this.emojiManager?K.emojiIds?K.emojiIds.map(function(F){return F?_.jY(X.emojiManager,F):null}).filter(LsP):K.emojiData?K.emojiData.map(function(F){var P=!!F.emojiId&&_.jY(X.emojiManager,F.emojiId);
return P?Object.assign({},P,F):null}).filter(LsP):[]:[]};
_.z.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.z.computeAriaLabel_=function(K){return _.lj(K)};
_.z.computeAriaActivedescendant_=function(K,X){return K&&K[X]?K[X].emojiId||"":""};
_.z.handleLongPressEmojiWithVariants=function(K,X){this.changeFocusToEmoji(K.emojiId,!1);this.openVariantSelector(K,X)};
_.z.onMouseDown=function(K){var X=this;this.hostElement!==document.activeElement&&(this.JSC$12059_ignoreNextFocus_=!0);if(K.button===0){var F=_.vI(K);if(F instanceof HTMLImageElement){var P=_.C$(this.hostElement).querySelector("#repeat").itemForElement(F);this.emojiContainsVariants(P)&&(this.longPressTimeoutId=setTimeout(function(){X.handleLongPressEmojiWithVariants(P,F)},500))}}};
_.z.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.z.onFocus=function(){this.JSC$12059_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12059_ignoreNextFocus_=!1};
_.z.onBlur_=function(){this.showFocus=!1};
_.z.emojiContainsVariants=function(K){return!!(K&&K.variantIds&&K.variantIds.length)};
_.z.onClick=function(K){clearTimeout(this.longPressTimeoutId);K=_.vI(K);if(K instanceof HTMLImageElement){var X=K.id;this.changeFocusToEmoji(X,!1);var F=this.getEmoji(X),P;if(P=this.shouldUseStickyPreferences&&this.emojiContainsVariants(F)){var H;P=!((H=this.emojiManager.emojiMap[X])!=null&&H.stickyPrefId)}P?(H=_.C$(this.hostElement).querySelector("#repeat").itemForElement(K),this.openVariantSelector(H,K)):_.iX(this.hostElement,"yt-emoji-select",F)}};
_.z.isActiveEmojiWithVariants=function(K,X){return K&&X?X.stickyPrefId?K===X.stickyPrefId:K===X.emojiId:!1};
_.z.onCloseEmojiVariantSelector=function(K){this.activeEmojiWithVariantsId===K&&(this.activeEmojiWithVariantsId="")};
_.z.onMouseOver_=function(K){K=_.vI(K);K instanceof HTMLImageElement&&_.iX(this.hostElement,"yt-emoji-hover",_.jY(this.emojiManager,K.id))};
_.z.changeFocus_=function(K,X){this.focusedIndex=(this.focusedIndex+K+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(K=this.emoji[this.focusedIndex],X&&(this.showFocus=!0,_.C$(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.iX(this.hostElement,"yt-emoji-hover",K)))};
_.z.changeFocusToEmoji=function(K,X){if(K){var F=this.emoji.findIndex(function(P){return P.emojiId===K});
F!==-1&&this.changeFocus_(F-this.focusedIndex,X)}};
_.z.onKeyDown_=function(K){switch(K.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var X=this.emoji[this.focusedIndex];if(X&&X.emojiId){if(this.emojiContainsVariants(X)){var F=_.C$(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(X,F)}else _.iX(this.hostElement,"yt-emoji-select",wA(this.emojiManager,X.emojiId)),this.hostElement.focus();K.preventDefault()}}break;case 40:this.changeFocus_(1,!0);K.preventDefault();break;case 38:this.changeFocus_(-1,!0),
K.preventDefault()}};
_.z.onEmojiStickyPreferenceChanged=function(K,X){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&K.emojiId&&K.variantIds&&K.variantIds.includes(X)&&this.activeEmojiWithVariantsId!==X&&this.setStickyEmojiPreference(K.emojiId,X)};
_.z.openVariantSelector=function(K,X){this.activeEmojiWithVariantsId=K.stickyPrefId||K.emojiId||"";_.iX(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:K,target:X})};
_.z.setStickyEmojiPreference=function(K,X){if(this.data){var F=this.emoji.findIndex(function(H){return H.emojiId===K});
if(F!==-1){var P=this.emoji[F];P.stickyPrefId=X;this.set("emoji."+F,Object.assign({},P));this.activeEmojiWithVariantsId=X}}};
bs.prototype.onKeyDown_=bs.prototype.onKeyDown_;bs.prototype.onMouseOver_=bs.prototype.onMouseOver_;bs.prototype.onClick=bs.prototype.onClick;bs.prototype.onBlur_=bs.prototype.onBlur_;bs.prototype.onFocus=bs.prototype.onFocus;bs.prototype.onMouseUp=bs.prototype.onMouseUp;bs.prototype.onMouseDown=bs.prototype.onMouseDown;bs.prototype.dataChanged=bs.prototype.dataChanged;bs.prototype.disableIncrementalLoadingChanged_=bs.prototype.disableIncrementalLoadingChanged_;bs.prototype.emojiManagerChanged_=bs.prototype.emojiManagerChanged_;
bs.prototype.emojiChanged_=bs.prototype.emojiChanged_;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],bs.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],bs.prototype,"data",void 0);_.O([_.h({computed:"computeId_(data)"}),_.g("design:type",String)],bs.prototype,"id",void 0);_.O([_.h({computed:"computeEmoji(data)"}),_.g("design:type",Array)],bs.prototype,"emoji",void 0);_.O([_.h(),_.g("design:type",Number)],bs.prototype,"skinTone",void 0);
_.O([_.h(),_.g("design:type",_.A1)],bs.prototype,"emojiManager",void 0);_.O([_.h(),_.g("design:type",Boolean)],bs.prototype,"disableIncrementalLoading",void 0);_.O([_.h({value:0}),_.g("design:type",Number)],bs.prototype,"focusedIndex",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],bs.prototype,"showFocus",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.g("design:type",Object)],bs.prototype,"ariaLabel",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.g("design:type",Object)],bs.prototype,"ariaActivedescendant",void 0);_.O([_.h({value:60}),_.g("design:type",Number)],bs.prototype,"domRepeatTargetFramerate",void 0);_.O([_.h({value:1}),_.g("design:type",Number)],bs.prototype,"domRepeatInitialCount",void 0);_.O([_.h({value:""}),_.g("design:type",String)],bs.prototype,"activeEmojiWithVariantsId",void 0);
_.O([_.h({value:!1}),_.g("design:type",Boolean)],bs.prototype,"shouldUseStickyPreferences",void 0);_.O([_.so("emoji"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],bs.prototype,"emojiChanged_",null);_.O([_.so("emojiManager"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],bs.prototype,"emojiManagerChanged_",null);
_.O([_.so("disableIncrementalLoading"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],bs.prototype,"disableIncrementalLoadingChanged_",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],bs.prototype,"dataChanged",null);_.O([_.Hc("mousedown"),_.g("design:type",Function),_.g("design:paramtypes",[Object]),_.g("design:returntype")],bs.prototype,"onMouseDown",null);
_.O([_.Hc("mouseup"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],bs.prototype,"onMouseUp",null);_.O([_.Hc("focus"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],bs.prototype,"onFocus",null);_.O([_.Hc("blur"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],bs.prototype,"onBlur_",null);
_.O([_.Hc("click"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],bs.prototype,"onClick",null);_.O([_.Hc("mouseover"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],bs.prototype,"onMouseOver_",null);_.O([_.Hc("keydown"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],bs.prototype,"onKeyDown_",null);
bs=_.O([_.Tb({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],bs);
_.t(bs,"yt-emoji-picker-category-renderer",function(){if(pXL===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;cRE===void 0&&(cRE=document.createElement("template"));var P=cRE;F.call(X,P.content.cloneNode(!0),K.content.firstChild);pXL=K}K=pXL;return K},{mode:2});var BxU;var SWL;var oNV;var LJT;var C3=function(){var K=_.G.apply(this,arguments)||this;K.ariaLabel=null;K.ariaActivedescendant=null;K.getFormattedStringRawText=_.lj;K.JSC$12065_ignoreNextFocus_=!1;return K};
_.r(C3,_.G);_.z=C3.prototype;_.z.attached=function(){this.hostElement.hasAttribute("aria-live")||this.hostElement.setAttribute("aria-live","polite");this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.z.emojiUrl=function(K){var X,F;K=(X=wA(this.emojiManager,K,!0))==null?void 0:(F=X.image)==null?void 0:F.thumbnails;return _.bH(K,24)||""};
_.z.emojiAlt=function(K){var X=this.get("image.accessibility.accessibilityData.label",K);return X?X:K.isCustomEmoji?K.shortcuts[0]:K.emojiId};
_.z.emojiId=function(K){return"emoji"+K};
_.z.computeId_=function(K){return K.categoryId||""};
_.z.computeAriaActivedescendant_=function(K){return this.emoji&&K<this.emoji.length?this.emojiId(K):""};
_.z.emojiChanged_=function(){this.changeFocus_(0,!1);for(var K=_.uH(),X=0;X<this.emoji.length;X++){var F={veType:88013,elementIndex:X},P=this.emoji[X];P.isCustomEmoji&&(P=document.querySelector(("#"+P.emojiId).replace("/","\\/")))&&(F=_.Da(K,F))&&(P.visualElement=F)}};
_.z.computeEmoji_=function(K){var X=this;return this.emojiManager?K.emojiIds.map(function(F){return _.jY(X.emojiManager,F,!0)}).filter(TBT):[]};
_.z.titleOffsetChanged_=function(){var K=this.hostElement.getBoundingClientRect(),X=_.C$(this.hostElement).querySelector("#title").getBoundingClientRect();K=Math.max(0,Math.min(this.titleOffset,K.height-X.height));_.C$(this.hostElement).querySelector("#title").style.top=K+"px"};
_.z.onEmojiMouseOver_=function(K){_.iX(this.hostElement,"yt-emoji-hover",K.model.item)};
_.z.onEmojiTap_=function(K){this.data.command&&(K=efM(_.i9().resolve(_.Nu(h_)),this.data.command,K),_.iX(this.hostElement,"yt-navigate",K))};
_.z.emojiAriaLabel=function(K){return K.shortcuts[0]};
_.z.emojiAriaSelected=function(K,X,F){return K&&F==X?"true":"false"};
_.z.changeFocus_=function(K,X){var F=this.emoji.length;this.focusedIndex=(this.focusedIndex+K+F)%F;K=this.emoji[this.focusedIndex];if(X){var P;(P=_.C$(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||P.scrollIntoView(!1);_.iX(this.hostElement,"yt-emoji-hover",K)}};
_.z.onMouseDown_=function(){this.JSC$12065_ignoreNextFocus_=!0};
_.z.onFocus_=function(){this.JSC$12065_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12065_ignoreNextFocus_=!1};
_.z.onBlur_=function(){this.showFocus=!1};
_.z.onKeyDown_=function(K){switch(K.keyCode){case 13:this.onEmojiTap_(K);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);K.preventDefault();break;case 38:this.changeFocus_(-1,!0),K.preventDefault()}};
C3.prototype.onKeyDown_=C3.prototype.onKeyDown_;C3.prototype.onBlur_=C3.prototype.onBlur_;C3.prototype.onFocus_=C3.prototype.onFocus_;C3.prototype.onMouseDown_=C3.prototype.onMouseDown_;C3.prototype.onEmojiTap_=C3.prototype.onEmojiTap_;C3.prototype.titleOffsetChanged_=C3.prototype.titleOffsetChanged_;C3.prototype.emojiChanged_=C3.prototype.emojiChanged_;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],C3.prototype,"ytComponentBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],C3.prototype,"data",void 0);_.O([_.h({computed:"computeId_(data)"}),_.g("design:type",String)],C3.prototype,"id",void 0);_.O([_.h({computed:"computeEmoji_(data)"}),_.g("design:type",Array)],C3.prototype,"emoji",void 0);_.O([_.h({value:0}),_.g("design:type",Number)],C3.prototype,"titleOffset",void 0);_.O([_.h({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.g("design:type",Object)],C3.prototype,"ariaLabel",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.g("design:type",Object)],C3.prototype,"ariaActivedescendant",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],C3.prototype,"showFocus",void 0);_.O([_.h({value:0}),_.g("design:type",Number)],C3.prototype,"focusedIndex",void 0);_.O([_.h(),_.g("design:type",_.A1)],C3.prototype,"emojiManager",void 0);
_.O([_.so("emoji"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],C3.prototype,"emojiChanged_",null);_.O([_.so("titleOffset"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],C3.prototype,"titleOffsetChanged_",null);_.O([_.Hc("click"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],C3.prototype,"onEmojiTap_",null);
_.O([_.Hc("mousedown"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],C3.prototype,"onMouseDown_",null);_.O([_.Hc("focus"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],C3.prototype,"onFocus_",null);_.O([_.Hc("blur"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],C3.prototype,"onBlur_",null);
_.O([_.Hc("keydown"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],C3.prototype,"onKeyDown_",null);C3=_.O([_.Tb({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],C3);
_.t(C3,"yt-emoji-picker-upsell-category-renderer",function(){if(LJT===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;oNV===void 0&&(oNV=document.createElement("template"));var P=oNV;F.call(X,P.content.cloneNode(!0),K.content.firstChild);LJT=K}K=LJT;return K},{mode:2});var TxW;var rRt;var Nl=function(){var K=_.G.apply(this,arguments)||this;K.scrollAction="lock";K.verticalAlign="top";return K};
_.r(Nl,_.G);_.z=Nl.prototype;_.z.onClick=function(K){K=_.vI(K);K instanceof HTMLImageElement&&_.iX(this.hostElement,"yt-emoji-select",_.jY(this.emojiManager,K.id))};
_.z.openSelector=function(){this.ironOverlayBehavior.open()};
_.z.onDomChange=function(){DbO(this.ytEmojiSelectorBehavior)};
_.z.computeIsFamilySelector=function(K){var X;return(K==null?void 0:(X=K.emoji)==null?void 0:X.emojiId)==="\ud83d\udc6a"};
_.z.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var K=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];K&&K.emojiId&&(_.iX(this.hostElement,"yt-emoji-select",_.jY(this.emojiManager,K.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.Oi.Object.defineProperties(Nl.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var K=this,X,F,P;return this.emojiManager&&((X=this.data)==null?0:(F=X.emoji)==null?0:(P=F.variantIds)==null?0:P.length)?this.data.emoji.variantIds.map(function(H){return!!H&&_.jY(K.emojiManager,H)}).filter(function(H){return!!H}):[]}}});
Nl.prototype.onClick=Nl.prototype.onClick;_.O([_.W(_.m2),_.g("design:type",Object)],Nl.prototype,"ironOverlayBehavior",void 0);_.O([_.W(utC),_.g("design:type",Object)],Nl.prototype,"ytEmojiSelectorBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Nl.prototype,"data",void 0);_.O([_.h(),_.g("design:type",_.A1)],Nl.prototype,"emojiManager",void 0);_.O([_.h(),_.g("design:type",Object)],Nl.prototype,"scrollAction",void 0);_.O([_.h(),_.g("design:type",Object)],Nl.prototype,"verticalAlign",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.g("design:type",Boolean)],Nl.prototype,"isFamilySelector",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],Nl.prototype,"emojiVariants",null);_.O([_.Hc("click"),_.g("design:type",Function),_.g("design:paramtypes",[MouseEvent]),_.g("design:returntype")],Nl.prototype,"onClick",null);Nl=_.O([_.Tb({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],Nl);
_.t(Nl,"yt-emoji-variant-selector",function(){if(rRt===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;TxW===void 0&&(TxW=document.createElement("template"));var P=TxW;F.call(X,P.content.cloneNode(!0),K.content.firstChild);rRt=K}K=rRt;return K},{mode:2});var ART=/:/g,j8C=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],is=function(){var K=_.G.apply(this,arguments)||this;K.emojiVariantSelector=null;K.emojiMultiPersonSelector=null;K.identity=_.vy;K.lastAnimationTime_=0;K.animationStart_=null;K.animationEnd_=null;return K};
_.r(is,_.G);_.z=is.prototype;
_.z.configureRendererStamper=function(){return{categories:{id:"categories",mapping:{emojiPickerCategoryRenderer:{component:"yt-emoji-picker-category-renderer",properties:{disableIncrementalLoading:"[[disableIncrementalLoading]]",emojiManager:"[[emojiManager]]",shouldUseStickyPreferences:"[[shouldUseStickyPreferences]]"}},emojiPickerUpsellCategoryRenderer:{component:"yt-emoji-picker-upsell-category-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},categoryButtons:{id:"category-buttons",mapping:{emojiPickerCategoryButtonRenderer:"yt-emoji-picker-category-button-renderer"}},
emojiVariantSelector:{id:"emoji-variant-selector",mapping:{ytEmojiVariantSelector:{component:"yt-emoji-variant-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1},emojiMultiPersonSelector:{id:"emoji-multi-person-selector",mapping:{ytEmojiMultiPersonSelector:{component:"yt-emoji-multi-person-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1}}};
_.z.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.yU)};
_.z.attached=function(){_.ir&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&qtE(this.emojiManager)};
_.z.dataChanged=function(){var K;if((K=this.data)==null?0:K.categories){K=this.emojiManager;var X=this.getCustomEmojiIds();K.pickerCustomEmojiIds=[].concat(_.LZ(HKt),_.LZ(X))}};
_.z.getCustomEmojiIds=function(){var K,X=(K=this.data.categories)==null?void 0:K.find(function(f){var u;return((u=f.emojiPickerCategoryRenderer)==null?void 0:u.categoryId)&&j8C.includes(f.emojiPickerCategoryRenderer.categoryId)}),F;
K=(F=this.data.categories)==null?void 0:F.find(function(f){return f.emojiPickerUpsellCategoryRenderer});
var P,H;return[X==null?void 0:(P=X.emojiPickerCategoryRenderer)==null?void 0:P.emojiIds,K==null?void 0:(H=K.emojiPickerUpsellCategoryRenderer)==null?void 0:H.emojiIds].flat().filter(function(f){return!!f})};
_.z.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.z.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.z.updateCategoriesAndPlaceholderInternal=function(K,X){var F=this;K&&X&&(this.categories=K.categories||[],this.categoryButtons=K.categoryButtons||[],this.resetPlaceholder(),this.search="",_.dl(function(){F.updateButtons_()}))};
_.z.computeId_=function(K){return K.id||""};
_.z.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(K){return K.emojiPickerCategoryRenderer&&K.emojiPickerCategoryRenderer.emojiData}):!1};
_.z.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.z.onShowEmojiVariantSelector=function(K){var X=K.detail.emojiData;X.variantIds&&X.variantIds.length&&(X.multiSelectorThumbnailRow&&X.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:X,target:K.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:X,target:K.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.z.onIronOverlayClosed=function(K){var X=Juu(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");X&&K.composedPath&&(K.composedPath().includes(_.C$(this.hostElement).querySelector("#emoji-variant-selector"))||K.composedPath().includes(_.C$(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.xr(this.hostElement,"yt-close-emoji-variant-selector",[X.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.z.onEmojiVariantSelectorMouseup=function(K){var X=K.target.firstChild;this.variantSelectorOpened&&X&&_.dl(function(){X.noCancelOnOutsideClick=!1},100)};
_.z.onEmojiVariantSelectorMousedown=function(K){K=K.target.firstChild;this.variantSelectorOpened&&K&&(K.noCancelOnOutsideClick=!1)};
_.z.onSelectCategory_=function(K){var X=this.search!="";this.search="";for(var F=_.C$(this.hostElement).querySelector("#categories").children,P=0;P<F.length;P++){var H=F[P];if(H.id==K.detail.categoryId){X?(_.C$(this.hostElement).querySelector("#categories").scrollTop=H.offsetTop,this.updateButtons_()):(this.animationStart_=_.C$(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=H.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.z.onEmojiHover_=function(K){this.placeholder=K.detail.shortcuts?K.detail.shortcuts[0]:""};
_.z.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.z.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.z.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.z.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.z.computeSearchCategory_=function(K){K=K.replace(ART,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();K=K.split(" ");for(var X=[],F=this.emojiManager.emojis,P=0;P<F.length;P++){var H=F[P];if(H.searchTerms)for(var f=0;f<H.searchTerms.length;f++){for(var u=H.searchTerms[f].toLocaleLowerCase(),J=!1,Z=0;Z<K.length;Z++)if(u.indexOf(K[Z])!=-1){J=!0;break}if(J&&(!H.isCustomEmoji||!H.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(H.emojiId))){X.push(H.emojiId);
break}}}return{categoryId:-1,emojiIds:X}};
_.z.computeSearchEmptyMessage_=function(K,X){return K&&X&&X.emojiIds&&X.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.z.computeSearching_=function(K){return this.emojiManager&&K.replace(ART,"").length>1};
_.z.computeSkinToneHidden=function(){var K;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((K=this.data)==null||!K.hideSkinTonePicker)};
_.z.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.z.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.z.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.z.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.z.selectSkinTone_=function(K){K=Number(K.target.getAttribute("tone"));this.set("emojiManager.skinTone",K);_.xr(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[K]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.z.skinToneChanged_=function(){_.C$(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var K=_.C$(this.hostElement).querySelector("#dropdown-content").children,X=0;X<K.length;X++)X===this.skinTone?K[X].setAttribute("selected",""):K[X].removeAttribute("selected")};
_.z.animateScroll_=function(K){this.lastAnimationTime_||(this.lastAnimationTime_=K);K-=this.lastAnimationTime_;K<200?(_.C$(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*K/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.C$(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.z.searchChanged_=function(){this.updateButtons_()};
_.z.updateButtons_=function(){var K=null;if(!this.search)for(var X=_.C$(this.hostElement).querySelector("#categories").scrollTop,F=_.C$(this.hostElement).querySelector("#categories").children,P=0;P<F.length;P++){var H=F[P];H.offsetTop<=X&&(K=H.id)}X=_.C$(this.hostElement).querySelector("#category-buttons").children;for(F=0;F<X.length;F++)P=X[F],P.active=P.id===K};
is.prototype.searchChanged_=is.prototype.searchChanged_;is.prototype.skinToneChanged_=is.prototype.skinToneChanged_;is.prototype.onEmojiHover_=is.prototype.onEmojiHover_;is.prototype.onSelectCategory_=is.prototype.onSelectCategory_;is.prototype.onShowEmojiVariantSelector=is.prototype.onShowEmojiVariantSelector;is.prototype.updateCategoriesAndPlaceholder_=is.prototype.updateCategoriesAndPlaceholder_;is.prototype.dataChanged=is.prototype.dataChanged;
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],is.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],is.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],is.prototype,"data",void 0);_.O([_.h({value:function(){return[]}}),
_.g("design:type",Array)],is.prototype,"categories",void 0);_.O([_.h({value:function(){return[]}}),
_.g("design:type",Array)],is.prototype,"categoryButtons",void 0);_.O([_.h({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.g("design:type",Boolean)],is.prototype,"disableScroll",void 0);_.O([_.h({computed:"computeId_(data)",reflectToAttribute:!0}),_.g("design:type",String)],is.prototype,"id",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],is.prototype,"selected",void 0);
_.O([_.h({value:!1}),_.g("design:type",Boolean)],is.prototype,"disableIncrementalLoading",void 0);_.O([_.h(),_.g("design:type",String)],is.prototype,"placeholder",void 0);_.O([_.h({value:""}),_.g("design:type",String)],is.prototype,"search",void 0);_.O([_.h({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.g("design:type",Boolean)],is.prototype,"searching",void 0);_.O([_.h({computed:"computeSearchCategory_(search)"}),_.g("design:type",Object)],is.prototype,"searchCategory",void 0);
_.O([_.h({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.g("design:type",Object)],is.prototype,"searchEmptyMessage",void 0);_.O([_.h({computed:"identity(emojiManager.skinTone)"}),_.g("design:type",Number)],is.prototype,"skinTone",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],is.prototype,"skinToneOpened",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],is.prototype,"variantSelectorOpened",void 0);
_.O([_.h({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.g("design:type",Boolean)],is.prototype,"skinToneHidden",void 0);_.O([_.h(),_.g("design:type",_.A1)],is.prototype,"emojiManager",void 0);_.O([_.h(),_.g("design:type",Object)],is.prototype,"emojiVariantSelector",void 0);_.O([_.h(),_.g("design:type",Object)],is.prototype,"emojiMultiPersonSelector",void 0);
_.O([_.h({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.g("design:type",Boolean)],is.prototype,"shouldUseStickyPreferences",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],is.prototype,"dataChanged",null);_.O([_.so("data","selected"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],is.prototype,"updateCategoriesAndPlaceholder_",null);
_.O([_.Hc("yt-show-emoji-variant-selector"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],is.prototype,"onShowEmojiVariantSelector",null);_.O([_.Hc("yt-emoji-picker-select-category"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],is.prototype,"onSelectCategory_",null);_.O([_.Hc("yt-emoji-hover"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],is.prototype,"onEmojiHover_",null);
_.O([_.so("skinTone"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],is.prototype,"skinToneChanged_",null);_.O([_.so("search"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],is.prototype,"searchChanged_",null);is=_.O([_.Tb({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],is);
_.t(is,"yt-emoji-picker-renderer",function(){if(SWL===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;BxU===void 0&&(BxU=document.createElement("template"));var P=BxU;F.call(X,P.content.cloneNode(!0),K.content.firstChild);SWL=K}K=SWL;return K},{mode:2});var xq=function(){var K=_.G.apply(this,arguments)||this;K.emojiManager=_.yU;K.isDarkTheme=document.documentElement.hasAttribute("dark");K.selectedIndex=1;K.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return K};
_.r(xq,_.G);_.z=xq.prototype;_.z.handleEmojiCustomizationVisible=function(K){this.emojiPickerRenderer.selected=K;this.selectedIndex=1;K?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.z.emojiCustomizationSetChanged=function(){var K;(K=this.data)!=null&&K.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.fW(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.z.updateSaveButtonState=function(K){var X;(X=this.data)!=null&&X.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.zl("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:K}))};
_.z.emojiUrl=function(K){K=_.jY(this.emojiManager,K);if(!K)return"";var X;K=(X=K.image)==null?void 0:X.thumbnails;return _.bH(K,24)||""};
_.z.emojiAlt=function(K){var X=_.jY(this.emojiManager,K);if(!X)return K;var F,P,H,f=(X==null?void 0:(F=X.image)==null?void 0:(P=F.accessibility)==null?void 0:(H=P.accessibilityData)==null?void 0:H.label)||"";return f?f:X.isCustomEmoji?X.shortcuts[0]:X.emojiId||K};
_.z.emojiAriaLabel=function(K){var X,F;return((X=_.jY(this.emojiManager,K))==null?void 0:(F=X.shortcuts)==null?void 0:F[0])||K};
_.z.onEmojiClick=function(K){K.model.index!==0&&(this.selectedIndex=K.model.index)};
_.z.onEmojiSelect=function(K){K=K.detail;var X,F;((X=this.data)==null?0:X.emojiCustomizationSetEntityKey)&&((F=this.emojiCustomizationSet)==null?0:F.emojiId)&&K.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,K.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.zl("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,K.emojiId,this.selectedIndex)}))};
_.z.canEditEmoji=function(K,X,F){K=K.indexOf(X);return K===F||K===0||F===0?!1:!0};
_.z.getUpdatedEmojiIdList=function(K,X,F){var P=K.indexOf(X);K=[].concat(_.LZ(K));P>=0&&(K[P]=K[F]);K[F]=X;return K};
_.Oi.Object.defineProperties(xq,{template:{configurable:!0,enumerable:!0,get:function(){if(EYQ===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;gYN===void 0&&(gYN=document.createElement("template"));var P=gYN;F.call(X,P.content.cloneNode(!0),K.content.firstChild);EYQ=K}K=EYQ;return K}}});
xq.prototype.onEmojiSelect=xq.prototype.onEmojiSelect;_.O([_.W(_.yj),_.g("design:type",Object)],xq.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],xq.prototype,"ytActionHandlerBehavior",void 0);_.O([_.fa("yt-emoji-picker-renderer"),_.g("design:type",Object)],xq.prototype,"emojiPickerRenderer",void 0);
_.O([_.h({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(K,X){return _.FF(K.entities,"emojiCustomizationSetEntity",X)},
observer:"emojiCustomizationSetChanged"}),_.g("design:type",Object)],xq.prototype,"emojiCustomizationSet",void 0);_.O([_.h(),_.g("design:type",Object)],xq.prototype,"originalEmojiSet",void 0);_.O([_.h(),_.g("design:type",_.A1)],xq.prototype,"emojiManager",void 0);_.O([_.h(),_.g("design:type",Object)],xq.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],xq.prototype,"isDarkTheme",void 0);_.O([_.h(),_.g("design:type",Object)],xq.prototype,"selectedIndex",void 0);
_.O([_.Hc("yt-emoji-select"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],xq.prototype,"onEmojiSelect",null);xq=_.O([_.Tb({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],xq);var wXT;var yRQ;var WJt;var dbt;var I9=function(){var K=_.G.apply(this,arguments)||this;K.authorBadges=[];return K};
_.r(I9,_.G);_.z=I9.prototype;_.z.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.z.configureRendererStamper=function(){return{"data.inlineActionButtons":{id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}},"data.beforeContentButtons":{id:"before-content-buttons",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.z.dataChanged=function(){var K=sdM(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",K)};
_.z.updateMessage=function(){var K=this.data.message,X=_.C$(_.C$(this.hostElement).querySelector("#message"));X.textContent="";K&&X.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(K))};
_.z.shouldSupportWholeItemClick=function(){return!0};
_.z.onShowOriginalClick=function(K){K.preventDefault();this.showOriginal=!0};
_.z.computeShowBar=function(K,X,F){return K&&X||F};
_.z.computeAuthorBadges=function(K){return K.authorBadges||[]};
_.z.computeAuthorIsOwner=function(K){return!!zSd(K.authorBadges,"owner")};
_.z.computeAuthorNameColor=function(K){var X;if(_.S("live_chat_author_name_color_usernames")&&(K==null?0:(X=K.authorName)==null?0:X.simpleText))return _.ZFO(_.Y43(K.authorName.simpleText));if(_.S("live_chat_seed_color_usernames")&&(K==null?0:K.authorSeedColorArgb))return _.ZFO(_.KB(K.authorSeedColorArgb));if(_.S("live_chat_colored_usernames"))return"#cc0000";var F;return _.S("live_chat_simple_color_usernames")&&(K==null?0:(F=K.authorName)==null?0:F.simpleText)&&(K==null?0:K.authorUsernameColorLight)&&
(K==null?0:K.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.KB(K.authorUsernameColorDark):_.KB(K.authorUsernameColorLight):""};
I9.prototype.updateMessage=I9.prototype.updateMessage;I9.prototype.dataChanged=I9.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],I9.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.W9.YtLiveChatItemBehavior),_.g("design:type",_.dA)],I9.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],I9.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],I9.prototype,"data",void 0);
_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],I9.prototype,"showOriginal",void 0);_.O([_.h({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.g("design:type",Boolean)],I9.prototype,"isDimmed",void 0);_.O([_.h({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.g("design:type",Boolean)],I9.prototype,"showBar",void 0);
_.O([_.h({computed:"computeAuthorBadges(data)"}),_.g("design:type",Array)],I9.prototype,"authorBadges",void 0);_.O([_.h({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],I9.prototype,"authorIsOwner",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],I9.prototype,"inCollapsedBanner",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],I9.prototype,"inBanner",void 0);
_.O([_.h({value:_.S("live_chat_hide_avatars"),reflectToAttribute:!0}),_.g("design:type",Boolean)],I9.prototype,"avatarHidden",void 0);_.O([_.h({computed:"computeAuthorNameColor(data)"}),_.g("design:type",String)],I9.prototype,"authorNameColor",void 0);_.O([_.h(),_.g("design:type",_.UT)],I9.prototype,"participantsManager",void 0);_.O([_.h({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.g("design:type",Object)],I9.prototype,"filledButtonOverrides",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],I9.prototype,"dataChanged",null);_.O([_.so("data.message"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],I9.prototype,"updateMessage",null);I9=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],I9);
_.t(I9,"yt-live-chat-text-message-renderer",function(){if(dbt===void 0){var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;WJt===void 0&&(WJt=document.createElement("template"));var P=WJt;F.call(X,P.content.cloneNode(!0),K.content.firstChild);dbt=K}K=dbt;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var kq=function(){var K=_.G.apply(this,arguments)||this;K.tonalButtonOverrides={type:"tonal",style:"overlay"};return K};
_.r(kq,_.G);
kq.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]]"}}}}}};
kq.prototype.shouldSupportInlineActionButtons=function(){return!0};
kq.prototype.shouldSupportWholeItemClick=function(){return!0};
_.Oi.Object.defineProperties(kq.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],kq.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.W9.YtLiveChatItemBehavior),_.g("design:type",_.dA)],kq.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],kq.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],kq.prototype,"data",void 0);_.O([_.h(),_.g("design:type",_.UT)],kq.prototype,"participantsManager",void 0);
_.O([_.h(),_.g("design:type",Object)],kq.prototype,"tonalButtonOverrides",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("data.infoDialogButton"),_.g("design:type",Object),_.g("design:paramtypes",[])],kq.prototype,"hasInfoDialogButton",null);kq=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],kq);
_.t(kq,"yt-live-chat-auto-mod-message-renderer",function(){if(yRQ===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;wXT===void 0&&(wXT=document.createElement("template"));var P=wXT;F.call(X,P.content.cloneNode(!0),K.content.firstChild);yRQ=K}K=yRQ;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var eiW;var RiU;var Ubt;var KA=function(){return _.G.apply(this,arguments)||this};
_.r(KA,_.G);_.O([_.h(),_.g("design:type",Object)],KA.prototype,"data",void 0);KA=_.O([_.v({is:"ytd-factoid-renderer",disableElementRegistration:!0})],KA);
_.t(KA,"ytd-factoid-renderer",function(){if(Ubt!==void 0)return Ubt;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Ubt=K},{mode:1});var Xa=function(){return _.G.apply(this,arguments)||this};
_.r(Xa,_.G);Xa.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.O([_.h(),_.g("design:type",Object)],Xa.prototype,"data",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Xa.prototype,"ytRendererstamperBehavior",void 0);Xa=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],Xa);
_.t(Xa,"yt-live-chat-channel-activity-reputation-renderer",function(){if(RiU===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;eiW===void 0&&(eiW=document.createElement("template"));var P=eiW;F.call(X,P.content.cloneNode(!0),K.content.firstChild);RiU=K}K=RiU;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var hiL;var mbT;var Fa=function(){return _.G.apply(this,arguments)||this};
_.r(Fa,_.G);Fa.prototype.ready=function(){var K=document.querySelector("yt-live-chat-app");K&&K.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Fa.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Boolean)],Fa.prototype,"menuFocused",void 0);_.O([_.h(),_.g("design:type",Object)],Fa.prototype,"data",void 0);_.O([_.W(_.W9.YtLiveChatItemBehavior),_.g("design:type",_.dA)],Fa.prototype,"ytLiveChatItemBehavior",void 0);Fa=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],Fa);
_.t(Fa,"yt-live-chat-donation-announcement-renderer",function(){if(mbT===void 0){var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;hiL===void 0&&(hiL=document.createElement("template"));var P=hiL;F.call(X,P.content.cloneNode(!0),K.content.firstChild);mbT=K}K=mbT;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var GGu;var lEE,vNW=function(){if(lEE!==void 0)return lEE;var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;GGu===void 0&&(GGu=document.createElement("template"));var P=GGu;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return lEE=K};var PC=function(){return _.G.apply(this,arguments)||this};
_.r(PC,_.G);_.Oi.Object.defineProperties(PC,{template:{configurable:!0,enumerable:!0,get:function(){return vNW()}}});
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],PC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],PC.prototype,"data",void 0);PC=_.O([_.Tb({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],PC);_.t(PC,"yt-live-chat-empty-feed-view-model",function(){return vNW()},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var aEZ;var tRE;var HC=function(){return _.G.apply(this,arguments)||this};
_.r(HC,_.G);HC.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"}}}}}};
_.Oi.Object.defineProperties(HC.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var K,X;return{runs:[{text:(K=this.data)==null?void 0:(X=K.channelName)==null?void 0:X.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var K=[],X;if((X=this.data)==null||!X.channelBadges)return K;var F;X=_.D((F=this.data)==null?void 0:F.channelBadges);for(F=X.next();!F.done;F=X.next()){F=_.T(F.value,VhU);var P=void 0,H=void 0;if((P=F)==null?0:(H=P.badgeImage)==null?0:H.sources)P=void 0,H={liveChatAuthorBadgeRenderer:{tooltip:F.tooltip,accessibility:{accessibilityData:{label:(P=_.T(F.rendererContext,_.Jp))==null?void 0:P.label}}}},F.badgeImage.sources[0].clientResource?H.liveChatAuthorBadgeRenderer.icon=
{iconType:F.badgeImage.sources[0].clientResource.imageName}:H.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:F.badgeImage.sources},K.push(H)}return K}}});
_.O([_.h(),_.g("design:type",Object)],HC.prototype,"data",void 0);_.O([_.U("data.channelName"),_.g("design:type",Object),_.g("design:paramtypes",[])],HC.prototype,"channelName",null);_.O([_.U("data.channelBadges"),_.g("design:type",Array),_.g("design:paramtypes",[])],HC.prototype,"channelBadges",null);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],HC.prototype,"ytRendererstamperBehavior",void 0);
HC=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],HC);
_.t(HC,"yt-live-chat-identity-view-model",function(){if(tRE===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;aEZ===void 0&&(aEZ=document.createElement("template"));var P=aEZ;F.call(X,P.content.cloneNode(!0),K.content.firstChild);tRE=K}K=tRE;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var $bN;var OXC;var VRO;var gNL;var s6=function(){var K=_.G.apply(this,arguments)||this;K.hidden=!1;K.supportsInlineActionButtons=!0;return K};
_.r(s6,_.G);s6.prototype.ready=function(){var K;((K=document.querySelector("yt-live-chat-app"))==null?0:K.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
s6.prototype.dataChanged=function(K){var X=(0,_.Ka)(_.C$(this.hostElement).querySelector("#detail-text"));X.textContent="";(K==null?0:K.detailText)&&X.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(K.detailText))};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],s6.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.W9.YtLiveChatItemBehavior),_.g("design:type",_.dA)],s6.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],s6.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h({observer:"dataChanged"}),_.g("design:type",Object)],s6.prototype,"data",void 0);
_.O([_.h({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.g("design:type",Object)],s6.prototype,"hidden",void 0);s6=_.O([_.v({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],s6);
_.t(s6,"yt-live-chat-legacy-paid-message-renderer",function(){if(gNL===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;VRO===void 0&&(VRO=document.createElement("template"));var P=VRO;F.call(X,P.content.cloneNode(!0),K.content.firstChild);gNL=K}K=gNL;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var ENu;var bXW;var CwU={},z_=function(){return _.ub.apply(this,arguments)||this};
_.r(z_,_.ub);z_.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
z_.prototype.onLiveChatMembershipItemBehaviorClick=z_.prototype.onLiveChatMembershipItemBehaviorClick;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],z_.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],z_.prototype,"data",void 0);_.O([_.Hc("click"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],z_.prototype,"onLiveChatMembershipItemBehaviorClick",null);z_=_.O([_.qY()],z_);
CwU.YtLiveChatMembershipItemBehavior=[z_.prototype,_.k.YtRendererBehavior];var fA=function(){var K=_.G.apply(this,arguments)||this;K.supportsInlineActionButtons=!0;K.hasPrimaryHeaderText=!1;K.showOnlyHeader=!1;K.authorBadges=[];K.modern=_.S("web_button_rework_with_live");K.buttonOverrides={style:"overlay",type:"filled"};return K};
_.r(fA,_.G);_.z=fA.prototype;_.z.shouldSupportInlineActionButtons=function(){return!0};
_.z.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.z.ready=function(){var K=document.querySelector("yt-live-chat-app");K&&K.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.z.messageChanged=function(){var K=this.data.message,X=(0,_.Ka)(_.C$(this.hostElement).querySelector("#message"));X.textContent="";K&&X.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(K))};
_.z.computeHasPrimaryHeaderText=function(K){return!(!K||!K.headerPrimaryText)};
_.z.computeShowOnlyHeader=function(K,X){return this.isMessageEmpty(K,X)};
_.z.computeAuthorBadges=function(K){return K.authorBadges||[]};
_.z.isMessageEmpty=function(K,X){return!K||K.empty?!0:!K.message&&!K.inputField&&!X};
_.z.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.z.getInputElement=function(){return _.C$(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.z.inputFocus=function(){var K=this.getInputElement();K&&K.focus()};
_.z.inputInsertEmoji=function(K){var X=this.getInputElement();X&&X.insertEmoji(K)};
_.z.inputMessage=function(){var K=this.getInputElement();return K&&this.data.inputField?(K.completeEmojis(),_.wn(K.liveChatRichMessageInput)):null};
_.z.onFooterButtonClick=function(){this.data.footerButton&&_.iX(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.z.shouldSupportWholeItemClick=function(){return!0};
fA.prototype.isDeletedChanged=fA.prototype.isDeletedChanged;fA.prototype.messageChanged=fA.prototype.messageChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],fA.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.W9.YtLiveChatItemBehavior),_.g("design:type",_.dA)],fA.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.W(CwU.YtLiveChatMembershipItemBehavior),_.g("design:type",Object)],fA.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],fA.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],fA.prototype,"data",void 0);_.O([_.h({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.g("design:type",Object)],fA.prototype,"hasPrimaryHeaderText",void 0);_.O([_.h({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.g("design:type",Object)],fA.prototype,"showOnlyHeader",void 0);
_.O([_.h({computed:"computeAuthorBadges(data)"}),_.g("design:type",Array)],fA.prototype,"authorBadges",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],fA.prototype,"modern",void 0);_.O([_.so("data.message"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],fA.prototype,"messageChanged",null);_.O([_.so("isDeleted"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],fA.prototype,"isDeletedChanged",null);
fA=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],fA);
_.t(fA,"yt-live-chat-membership-item-renderer",function(){if(bXW===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;ENu===void 0&&(ENu=document.createElement("template"));var P=ENu;F.call(X,P.content.cloneNode(!0),K.content.firstChild);bXW=K}K=bXW;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Nxu;var iXt;var DD=function(){return _.G.apply(this,arguments)||this};
_.r(DD,_.G);DD.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],DD.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],DD.prototype,"data",void 0);DD=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],DD);
_.t(DD,"yt-live-chat-mode-change-message-renderer",function(){if(iXt===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;Nxu===void 0&&(Nxu=document.createElement("template"));var P=Nxu;F.call(X,P.content.cloneNode(!0),K.content.firstChild);iXt=K}K=iXt;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var xbO;var IET;var ud=function(){return _.G.apply(this,arguments)||this};
_.r(ud,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ud.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.W9.YtLiveChatItemBehavior),_.g("design:type",_.dA)],ud.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],ud.prototype,"data",void 0);ud=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],ud);
_.t(ud,"yt-live-chat-moderation-message-renderer",function(){if(IET===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;xbO===void 0&&(xbO=document.createElement("template"));var P=xbO;F.call(X,P.content.cloneNode(!0),K.content.firstChild);IET=K}K=IET;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var kGL;var KON;var qh=function(){var K=_.G.apply(this,arguments)||this;K.modern=_.S("web_button_rework");return K};
_.r(qh,_.G);qh.prototype.onClick=function(){var K;if((K=this.data)!=null&&K.onClickCommand){var X;_.Hn.instance.resolveCommand((X=this.data)==null?void 0:X.onClickCommand)}};
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],qh.prototype,"modern",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],qh.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.yj),_.g("design:type",Object)],qh.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.W(_.W9.YtLiveChatItemBehavior),_.g("design:type",_.dA)],qh.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],qh.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],qh.prototype,"data",void 0);qh=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],qh);
_.t(qh,"yt-live-chat-offer-click-count-message-renderer",function(){if(KON===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;kGL===void 0&&(kGL=document.createElement("template"));var P=kGL;F.call(X,P.content.cloneNode(!0),K.content.firstChild);KON=K}K=KON;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Xat;var Jj=function(){return _.G.apply(this,arguments)||this};
_.r(Jj,_.G);_.O([_.h(),_.g("design:type",Object)],Jj.prototype,"data",void 0);Jj=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],Jj);
_.t(Jj,"yt-live-chat-placeholder-item-renderer",function(){if(Xat===void 0){var K=document.createElement("template");_.w(K,"\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");K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);Xat=K}K=Xat;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var FOW;var PIC;var H7O=new h7(7),ZD=function(){var K=_.G.apply(this,arguments)||this;K.data={};return K};
_.r(ZD,_.G);ZD.prototype.dataChanged=function(){var K;((K=this.data)==null?0:K.class)&&_.iN(this.hostElement,this.data.class,!0);var X;((X=this.oldData)==null?0:X.class)&&_.iN(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
ZD.prototype.computeTimestampString=function(K){return H7O.format(new Date(K/1E3))};
ZD.prototype.dataChanged=ZD.prototype.dataChanged;_.O([_.h(),_.g("design:type",Object)],ZD.prototype,"data",void 0);_.O([_.h({computed:"computeTimestampString(data.timestampUsec)"}),_.g("design:type",String)],ZD.prototype,"timestampString",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ZD.prototype,"dataChanged",null);ZD=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],ZD);
_.t(ZD,"yt-live-chat-server-error-message",function(){if(PIC===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;FOW===void 0&&(FOW=document.createElement("template"));var P=FOW;F.call(X,P.content.cloneNode(!0),K.content.firstChild);PIC=K}K=PIC;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var sVN;var zft;var YW=function(){var K=_.G.apply(this,arguments)||this;K.defaultToFilledIcon=!1;return K};
_.r(YW,_.G);YW.prototype.computeHasPrimaryColorIcon=function(K){return K==="SPARK"||K==="SPONSORSHIP_STAR"};
YW.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],YW.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.W9.YtLiveChatItemBehavior),_.g("design:type",_.dA)],YW.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],YW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],YW.prototype,"defaultToFilledIcon",void 0);_.O([_.h(),_.g("design:type",Object)],YW.prototype,"data",void 0);
_.O([_.h({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.g("design:type",Boolean)],YW.prototype,"hasPrimaryColorIcon",void 0);YW=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],YW);
_.t(YW,"yt-live-chat-viewer-engagement-message-renderer",function(){if(zft===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;sVN===void 0&&(sVN=document.createElement("template"));var P=sVN;F.call(X,P.content.cloneNode(!0),K.content.firstChild);zft=K}K=zft;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var fhN;var QD=function(){var K=_.G.apply(this,arguments)||this;K.modernUpdate=!1;K.buttonStyle="overlay";K.buttonType="filled";return K};
_.r(QD,_.G);QD.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
QD.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],QD.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],QD.prototype,"modernUpdate",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],QD.prototype,"buttonStyle",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],QD.prototype,"buttonType",void 0);
QD=_.O([_.v({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],QD);
_.t(QD,"ytd-ad-hover-text-button-renderer",function(){if(fhN!==void 0)return fhN;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return fhN=K},{mode:1});var D5U;var Mh=function(){var K=_.G.apply(this,arguments)||this;K.buttonOverrides={size:"XS"};K.modern=_.S("web_button_rework");return K};
_.r(Mh,_.G);Mh.prototype.onHelpTap=function(K){this.data&&this.data.informationDialog&&(_.iX(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),K.preventDefault(),K.stopPropagation())};
_.O([_.h(),_.g("design:type",Object)],Mh.prototype,"buttonOverrides",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Mh.prototype,"modern",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Mh.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Mh.prototype,"data",void 0);Mh=_.O([_.v({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],Mh);
_.t(Mh,"ytd-live-chat-purchased-product-message-renderer",function(){if(D5U!==void 0)return D5U;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return D5U=K},{mode:1});var u6t;var qpC;var nA=function(){var K=_.G.apply(this,arguments)||this;K.isContainerDeleted=!1;return K};
_.r(nA,_.G);nA.prototype.onContextMenuClick=function(K){this.ytLiveChatItemBehavior.showContextMenu(K)};
nA.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))};
nA.prototype.isContainerDeletedChanged=nA.prototype.isContainerDeletedChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],nA.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.W9.YtLiveChatItemBehavior),_.g("design:type",_.dA)],nA.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],nA.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],nA.prototype,"isContainerDeleted",void 0);
_.O([_.h(),_.g("design:type",String)],nA.prototype,"deletedStateMessage",void 0);_.O([_.so("isContainerDeleted"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],nA.prototype,"isContainerDeletedChanged",null);nA=_.O([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],nA);
_.t(nA,"ytd-sponsorships-live-chat-header-renderer",function(){if(qpC!==void 0)return qpC;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return qpC=K},{mode:1});var cC=function(){var K=_.G.apply(this,arguments)||this;K.modern=_.S("web_button_rework_with_live");K.buttonOverrides={style:"overlay",type:"filled"};return K};
_.r(cC,_.G);cC.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]]"}}}}}};
cC.prototype.onCtaButtonClick=function(){var K,X=_.T((K=this.data)==null?void 0:K.optInPrompt,_.jg);if(K=this.maybeGetButtonCommand(X)){var F;(F=_.uH())==null||F.clickCommand(K)}};
cC.prototype.maybeGetButtonCommand=function(K){return!K||!K.command||_.T(K.command,BCQ)===void 0&&_.T(K.command,pxV)===void 0?null:K.command};
cC.prototype.shouldHideOptinPrompt=function(K,X){return!K||X};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],cC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.W9.YtLiveChatItemBehavior),_.g("design:type",_.dA)],cC.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],cC.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],cC.prototype,"modern",void 0);cC=_.O([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],cC);
_.t(cC,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(u6t!==void 0)return u6t;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return u6t=K},{mode:1});var JsO;var pA=function(){return _.G.apply(this,arguments)||this};
_.r(pA,_.G);pA.prototype.onContextMenuClick=function(K){this.ytLiveChatItemBehavior.showContextMenu(K)};
pA.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))};
pA.prototype.isDeletedChanged=pA.prototype.isDeletedChanged;_.O([_.W(_.W9.YtLiveChatItemBehavior),_.g("design:type",_.dA)],pA.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],pA.prototype,"data",void 0);_.O([_.so("isDeleted"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],pA.prototype,"isDeletedChanged",null);pA=_.O([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],pA);
_.t(pA,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(JsO!==void 0)return JsO;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="gift" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return JsO=K},{mode:1});var BC=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return K};
_.r(BC,_.G);_.z=BC.prototype;
_.z.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatAutoModMessageRenderer:"yt-live-chat-auto-mod-message-renderer",liveChatPaidMessageRenderer:"yt-live-chat-paid-message-renderer",liveChatLegacyPaidMessageRenderer:"yt-live-chat-legacy-paid-message-renderer",liveChatMembershipItemRenderer:"yt-live-chat-membership-item-renderer",liveChatTextMessageRenderer:"yt-live-chat-text-message-renderer",liveChatPaidStickerRenderer:"yt-live-chat-paid-sticker-renderer",liveChatDonationAnnouncementRenderer:"yt-live-chat-donation-announcement-renderer",
liveChatModeChangeMessageRenderer:"yt-live-chat-mode-change-message-renderer",liveChatModerationMessageRenderer:"yt-live-chat-moderation-message-renderer",liveChatOfferClickCountMessageRenderer:"yt-live-chat-offer-click-count-message-renderer",liveChatPlaceholderItemRenderer:"yt-live-chat-placeholder-item-renderer",liveChatPurchasedProductMessageRenderer:"ytd-live-chat-purchased-product-message-renderer",liveChatSponsorshipsGiftPurchaseAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",
liveChatSponsorshipsGiftRedemptionAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",liveChatViewerEngagementMessageRenderer:"yt-live-chat-viewer-engagement-message-renderer",serverErrorMessage:"yt-live-chat-server-error-message"}}}};
_.z.handleLiveChatAction=function(K){_.T(K,h1u)?this.handleMarkChatItemAsDeletedAction(_.T(K,h1u)):_.T(K,U_u)&&this.handleRemoveChatItemAction(_.T(K,U_u))};
_.z.handleLiveChatActions=function(K){K.forEach(this.handleLiveChatAction,this)};
_.z.handleMarkChatItemAsDeletedAction=function(K){var X=this,F;((F=this.data)==null?0:F.items)&&this.data.items.forEach(function(P,H){var f=Object.keys(P)[0];Object.values(P)[0].id===K.targetItemId&&X.markAsDeleted("data.items",H,f,K.deletedStateMessage,K.showOriginalContentMessage)})};
_.z.handleRemoveChatItemAction=function(K){var X=this,F;((F=this.data)==null?0:F.items)&&this.data.items.forEach(function(P,H){Object.values(P)[0].id===K.targetItemId&&X.splice("data.items",H,1)})};
_.z.markAsDeleted=function(K,X,F,P,H){K=[K,X,F].join(".");this.set(K+".deletedStateMessage",P);this.set(K+".showOriginalContentMessage",H)};
_.O([_.h(),_.g("design:type",Object)],BC.prototype,"data",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],BC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],BC.prototype,"ytActionHandlerBehavior",void 0);BC=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],BC);
_.t(BC,"yt-live-chat-item-display-list-renderer",function(){if(OXC===void 0){var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;$bN===void 0&&($bN=document.createElement("template"));var P=$bN;F.call(X,P.content.cloneNode(!0),K.content.firstChild);OXC=K}K=OXC;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Z7U;var YpZ,QVL=function(){if(YpZ!==void 0)return YpZ;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;Z7U===void 0&&(Z7U=document.createElement("template"));var P=Z7U;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return YpZ=K};var Sn=function(){var K=_.G.apply(this,arguments)||this;K.isHeader=!1;return K};
_.r(Sn,_.G);Sn.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.Oi.Object.defineProperties(Sn,{template:{configurable:!0,enumerable:!0,get:function(){return QVL()}}});
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Sn.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Sn.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Sn.prototype,"isHeader",void 0);Sn=_.O([_.Tb({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],Sn);_.t(Sn,"yt-live-chat-item-display-renderer",function(){return QVL()},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var MHN,nbu,obu,SpO;
MHN={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}};nbu={home:"eohps",search:"eosps",watch:"eowps"};_.csL=["watch","search","home"];
_.oW=function(){this.JSC$12176_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12176_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.e8("PRECONSTRUCTION_DELAY",0);this.signals_=_.wz();this.targetPage_=""};
_.oW.prototype.init=function(K,X){K=K===void 0?"":K;X=X===void 0?null:X;if(this.JSC$12176_isInitialized_)this.abort();else if(this.JSC$12176_isInitialized_=!0,K&&_.paT(this,K),X){var F=_.yZ(this.signals_,"pcl")?0:10,P=function(){for(var H=0,f;f=_.csL[H++];)f!=K&&f!=X&&this.pendingPages_.push(f);_.BDO(this)}.bind(this);
this.signals_.parkOrScheduleJob(P,F,"pcl")}};
_.oW.prototype.abort=function(){this.fragmentJobId_&&(_.A9.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);SpO(this)};
_.paT=function(K,X){K.JSC$12176_isInitialized_&&!K.targetPage_&&(K.targetPage_=X,obu(K,X),K.isInitialPass_=!1,obu(K,X),K.signals_.processSignal(nbu[K.targetPage_]),SpO(K),_.BDO(K))};
_.BDO=function(K){K.pendingPages_.length&&!K.pagePreparerJobId_&&(K.pagePreparerJobId_=_.cu(_.A9,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.paT(this,this.pendingPages_.shift())}.bind(K),K.DEFAULT_DELAY_))};
obu=function(K,X){if(X=MHN[X])for(var F in X){var P=!1,H=F;F.charAt(0)=="~"&&(P=!0,H=F.substring(1));var f=X[F];f=typeof f=="object"?f:{count:f};X[F]=f;f.componentName=H;f.count>0&&(K.isInitialPass_?P||K.isSeenDuringInitialPass_[H]||(K.JSC$12176_queue_.push({componentName:H,count:1,signals:f.signals}),K.isSeenDuringInitialPass_[H]=!0,f.count--):K.JSC$12176_queue_.push(f))}};
SpO=function(K){K.JSC$12176_queue_.length=0;K.targetPage_="";K.isInitialPass_=!0;K.signals_.processSignal("eop")};
_.oW.getInstance=function(){return _.In(_.oW)};var LOU=function(){this.signals=_.wz();this.init()};
LOU.prototype.startPreconstruction=function(){_.oW.getInstance().init(_.RU("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
LOU.prototype.init=function(){TDQ(this);window.Polymer&&KSQ&&I9d();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var K=_.FP.ytcsi;if(K&&K.gt&&(K=K.gt())&&K.tick&&(K.tick.aft>0||K.tick.pbs>0)&&(_.RU("IS_HOMEPAGE_COLD")||_.RU("IS_RESULTS_PAGE_COLD")||_.RU("IS_WATCH_PAGE_COLD"))){rsZ(this);break a}pvq(KNO,this.onNotifications,this)}};
var TDQ=function(K){var X=function(){K.signals.processSignal("dl")};
document.readyState==="complete"?(_.Gr(Error("oh"),"WARNING"),X()):_.CNT(window,"load",X)};
LOU.prototype.onNotifications=function(K){K.timer||(_.RU("IS_HOMEPAGE_COLD")||_.RU("IS_RESULTS_PAGE_COLD")||_.RU("IS_WATCH_PAGE_COLD"))&&rsZ(this)};
var rsZ=function(K){K.signals.parkOrScheduleJob(function(){K.signals.processSignal("eocs")},10,"eor")};
new LOU;var LA,T_=function(){return _.ub.apply(this,arguments)||this};
_.r(T_,_.ub);_.z=T_.prototype;_.z.enableActiveViewMeasurement=function(K){if(this.isActiveViewEnabled(K)){var X=this.getUrlPrefixesFromCommand(K.viewableCommands);K=this.getUrlPrefixesFromCommand(K.endOfSessionCommands);if(!LA){var F=_.kU("custom_active_view_tos_timeout_ms");LA=F>0&&F!==36E5?new n6P(this.getVersion(),F):new n6P(this.getVersion())}pZl(LA,this.hostElement);ByM(LA,this.hostElement,X,K)}};
_.z.stopActiveViewMeasurement=function(){LA&&pZl(LA,this.hostElement)};
_.z.isActiveViewEnabled=function(K){return!!K&&(this.hasAtLeastOneUrl(K.viewableCommands)||this.hasAtLeastOneUrl(K.endOfSessionCommands))};
_.z.hasAtLeastOneUrl=function(K){return!!K&&K.length>0&&K[0].loggingUrls!=null&&K[0].loggingUrls.length>0};
_.z.getVersion=function(){var K=_.e8("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(K==null?void 0:K.length)===2?K[1]:null};
_.z.getUrlPrefixesFromCommand=function(K){if(!K)return[];var X=[];K=_.D(K);for(var F=K.next();!F.done;F=K.next())if(F=F.value,F.loggingUrls){F=_.D(F.loggingUrls);for(var P=F.next();!P.done;P=F.next())P=P.value,P.baseUrl&&X.push(P.baseUrl)}return X};
T_=_.O([_.qY()],T_);var rK=[T_.prototype];var Aj=function(){return _.ub.apply(this,arguments)||this};
_.r(Aj,_.ub);_.Oi.Object.defineProperties(Aj.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_entity_store_from_dependency_injection")?_.Gb():_.aA()}}});
Aj=_.O([_.qY()],Aj);_.jn=[BU.prototype,Aj.prototype];var AsU=["ytd-rich-shelf-renderer"],wK=function(){var K=_.ub.apply(this,arguments)||this;K._noAccessors=!0;K.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";K.followUpDialogPromise=null;K.followUpDialogPromiseResolve=null;K.followUpDialogPromiseReject=null;return K};
_.r(wK,_.ub);_.z=wK.prototype;_.z.dismissibleItemIsDismissedChanged_=function(K){_.S("kevlar_fluid_dismiss")&&(K?_.iX(this.hostElement,"yt-dismissible-item-dismissed"):_.iX(this.hostElement,"yt-dismissible-item-undismissed"))};
_.z.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.z.dismissibleItemReset_=function(){var K=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 _.fL(function(X,F){K.followUpDialogPromiseResolve=X;K.followUpDialogPromiseReject=F});
_.iX(this.hostElement,"yt-enable-lockup-interaction")};
_.z.dismissibleItemOnYtServiceRequestSent_=function(K,X){X.actions&&this.dismissibleItemProcessActions(X.actions,K)};
_.z.dismissibleItemOnRequestSent=function(K){if(_.S("web_button_rework"))for(var X=_.D(K.detail),F=X.next();!F.done;F=X.next()){var P=void 0;(F=(P=_.T(F.value,_.ss))==null?void 0:P.actions)&&this.dismissibleItemProcessActions(F,K)}};
_.z.dismissibleItemOnCommandSent=function(K,X){X&&this.dismissibleItemProcessActions(X,K)};
_.z.setAndGetDismissedContentId=function(K){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+K};
_.z.replayDismissAction=function(K){this.dismissibleItemProcessActions([K])};
_.z.dismissibleItemProcessActions=function(K,X){for(var F=0;F<K.length;F++){var P=K[F],H=void 0;((H=_.T(P,_.PW))==null?0:H.commands)&&this.dismissibleItemProcessActions(_.T(P,_.PW).commands,X);if(_.T(P,_.Y2)){if(H=_.T(P,_.Y2),!H.replaceParentSection||AsU.includes(this.hostElement.nodeName.toLowerCase()))_.S("web_see_fewer_shorts_reactive_dismissal")&&H.groupDismissal&&rBw(this,H.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(H),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.zl("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:P})),P=void 0,(P=X)==null||P.stopPropagation()}else if(_.T(P,VIO))this.dismissibleItemHandleHideEnclosingAction_(),P=void 0,(P=X)==null||P.stopPropagation();else if(_.T(P,FgE))_.S("web_see_fewer_shorts_reactive_dismissal")&&(P=_.T(P,FgE),H=void 0,((H=P)==null?0:H.targetGroupId)&&rBw(this,{targetGroupId:P.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.zl("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),P=void 0,(P=X)==null||P.stopPropagation();else if(_.T(P,_.ss))(P=_.T(P,_.ss).actions)&&_.X0(this.hostElement,P,this.hostElement),P=void 0,(P=X)==null||P.stopPropagation();else{var f=H=void 0;((H=_.T(P,_.Uj))==null?void 0:H.signal)!=="TELL_US_WHY"||((f=_.T(P,_.Uj))==null?0:f.targetId)&&_.S("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),P=void 0,(P=X)==null||P.stopPropagation())}}};
_.z.dismissibleItemOnYtServiceRequestCompleted_=function(K,X){var F=this.get("feedbackResponses.0.followUpDialog",X.data);F?this.followUpDialogPromiseResolve(F):X.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(X.actions,K)};
_.z.dismissibleItemHandleReplaceEnclosingAction_=function(K){this.dismissedRenderer=K.item;this.isDismissed=!0;var X=null;(X=_.C$(this.hostElement).querySelector("#dismissed"))&&_.tg(this,function(){_.Vc(X)});
_.iX(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.z.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.z.dismissibleItemHandleUndoFeedbackAction_=function(){_.iX(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.z.dismissibleItemHandleTellUsWhySignalAction_=function(){var K=this;this.followUpDialogPromise.then(function(X){K.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:X}})})};
wK.prototype.dismissibleItemOnYtServiceRequestCompleted_=wK.prototype.dismissibleItemOnYtServiceRequestCompleted_;wK.prototype.dismissibleItemOnCommandSent=wK.prototype.dismissibleItemOnCommandSent;wK.prototype.dismissibleItemOnRequestSent=wK.prototype.dismissibleItemOnRequestSent;wK.prototype.dismissibleItemOnYtServiceRequestSent_=wK.prototype.dismissibleItemOnYtServiceRequestSent_;wK.prototype.dismissibleItemDataChanged_=wK.prototype.dismissibleItemDataChanged_;
wK.prototype.dismissibleItemIsDismissedChanged_=wK.prototype.dismissibleItemIsDismissedChanged_;_.O([_.W(_.v9),_.g("design:type",Object)],wK.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],wK.prototype,"ytdReduxBehavior",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],wK.prototype,"isDismissed",void 0);_.O([_.h(),_.g("design:type",Object)],wK.prototype,"dismissedRenderer",void 0);
_.O([_.so("isDismissed"),_.g("design:type",Function),_.g("design:paramtypes",[Boolean]),_.g("design:returntype")],wK.prototype,"dismissibleItemIsDismissedChanged_",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],wK.prototype,"dismissibleItemDataChanged_",null);
_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.yk]),_.g("design:returntype")],wK.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.O([_.Hc("yt-service-request-sent-button-renderer"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],wK.prototype,"dismissibleItemOnRequestSent",null);
_.O([_.Hc("yt-dismissible-item-action"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Array]),_.g("design:returntype")],wK.prototype,"dismissibleItemOnCommandSent",null);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.G9]),_.g("design:returntype")],wK.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);wK=_.O([_.qY()],wK);_.yD=[_.v9,_.jn,wK.prototype];var WC=function(){var K=_.ub.apply(this,arguments)||this;K.disableGridStateAware=!1;K.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};K.currentGridClass="";return K};
_.r(WC,_.ub);WC.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.tg(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var K=this.gridStateAwareGetElement();_.iN(K,"grid",!0)}};
WC.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
WC.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.C$(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
WC.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var K="grid-disabled";else{K=_.LYC.getInstance();var X=this.get("pageSubtype");K=X&&BrL.includes(X)?"grid-disabled":K.currentSnapState_?K.currentSnapState_.className:null}(X=this.gridStateAwareGetElement())&&K!==this.currentGridClass&&(K&&_.iN(X,K,!0),this.currentGridClass&&_.iN(X,this.currentGridClass,!1),this.currentGridClass=K)};
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],WC.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",String)],WC.prototype,"gridStateAwareSizingElementSelector",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],WC.prototype,"disableGridStateAware",void 0);WC=_.O([_.qY()],WC);_.dK=[WC.prototype,_.NT.YtActionHandlerBehavior];_.en=new _.Oh("GUIDE_TOKEN");var U6;_.RW={};U6=function(){var K=_.ub.apply(this,arguments)||this;K.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 K};
_.r(U6,_.ub);_.z=U6.prototype;_.z.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.z.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var K=_.i9().resolve(_.Nu(_.en));K&&(this.guidePersistentAndVisible=K.getGuidePersistentAndVisible(),this.activeEndpoint=K.getActiveEndpoint(),this.guideOpened=K.getGuideOpened(),this.miniGuideVisible=K.getMiniGuideVisible())};
_.z.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.z.handleGuideStateAction=function(K){this.guidePersistentAndVisible=K};
_.z.handleMiniGuideStateAction=function(K){this.miniGuideVisible=K};
_.z.handleGuideOpenedAction=function(K){this.guideOpened=K};
_.z.handleActiveEndpointAction=function(K){this.activeEndpoint=K};
U6.prototype.onActiveEndpointChange=U6.prototype.onActiveEndpointChange;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],U6.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],U6.prototype,"guidePersistentAndVisible",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],U6.prototype,"miniGuideVisible",void 0);_.O([_.h(),_.g("design:type",Object)],U6.prototype,"activeEndpoint",void 0);
_.O([_.so("activeEndpoint"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],U6.prototype,"onActiveEndpointChange",null);_.O([_.h(),_.g("design:type",Boolean)],U6.prototype,"guideOpened",void 0);U6=_.O([_.qY()],U6);_.RW.YtdGuideStateAwareBehavior=[];_.RW.YtdGuideStateAwareBehavior.push(U6.prototype,_.NT.YtActionHandlerBehavior);var jVQ=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],hj=function(){var K=_.ub.apply(this,arguments)||this;K.hoverJobId=0;K.JSC$12207_touched=!1;return K};
_.r(hj,_.ub);_.z=hj.prototype;_.z.created=function(){this.useExpandableTooltip=!jVQ.includes(this.is)};
_.z.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.z.detached=function(){this.useExpandableTooltip=!1};
_.z.lockupOnDown=function(K){this.interactionElement&&!_.lC(_.lN(K),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.z.lockupOnUp=function(K){this.interactionElement&&!_.lC(_.lN(K),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.z.onTouchStart=function(){this.JSC$12207_touched=!0};
_.z.lockupOnMouseEnter=function(){var K=this,X=_.kU("kevlar_lockup_hover_delay",-1);this.JSC$12207_touched&&X>=0?(_.A9.cancelJob(this.hoverJobId),this.hoverJobId=_.A9.addJob(function(){K.lockupIsHovered=!0},8,X),this.JSC$12207_touched=!1):this.lockupIsHovered=!0};
_.z.lockupOnMouseLeave=function(){this.hoverJobId&&(_.A9.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.z.lockupOnPopupClosed=function(K,X){var F;((F=X.popupRenderer)==null?void 0:F.is)==="ytd-menu-popup-renderer"&&(K=X.popupRenderer.veData,X=_.AD(),K&&X&&_.lY(X,[K]))};
_.z.lockupOnLockupRequested=function(K){var X=K.detail.videoIds[0],F;K.detail&&X===((F=this.data)==null?void 0:F.videoId)&&(K.detail.returnValue=[this.data])};
_.z.lockupOnYtServiceRequestSent=function(K,X){if(K=X.actions)for(var F=0;F<K.length;F++){var P=K[F];if(P.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&X.ajaxPromise){var H=void 0,f=(H=_.T(X.endpoint,_.TI))==null?void 0:H.playlistId;H=void 0;P=(H=P.removedVideoId)!=null?H:"";gWW(_.dz(),P,f)}else P.action==="ACTION_REMOVE_VIDEO"&&X.ajaxPromise&&(f=void 0,P=(f=P.setVideoId)!=null?f:"",_.EWN(_.dz(),P))}};
_.z.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.z.lockupOnLockupEnabled=function(){if(!this.$){var K=_.i9().resolve(_.ax).getCurrentPage(),X=this.getParentRenderer?this.getParentRenderer():void 0;_.yy(new _.nG("component not ready",this.is,this.isAttached,K==null?void 0:K.is,X==null?void 0:X.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
hj.prototype.lockupOnLockupEnabled=hj.prototype.lockupOnLockupEnabled;hj.prototype.lockupOnLockupDisabled=hj.prototype.lockupOnLockupDisabled;hj.prototype.lockupOnYtServiceRequestSent=hj.prototype.lockupOnYtServiceRequestSent;hj.prototype.lockupOnLockupRequested=hj.prototype.lockupOnLockupRequested;hj.prototype.lockupOnPopupClosed=hj.prototype.lockupOnPopupClosed;hj.prototype.lockupOnMouseLeave=hj.prototype.lockupOnMouseLeave;hj.prototype.lockupOnMouseEnter=hj.prototype.lockupOnMouseEnter;
hj.prototype.onTouchStart=hj.prototype.onTouchStart;hj.prototype.lockupOnUp=hj.prototype.lockupOnUp;hj.prototype.lockupOnDown=hj.prototype.lockupOnDown;_.O([_.h(),_.g("design:type",Object)],hj.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Boolean)],hj.prototype,"lockupIsHovered",void 0);_.O([_.h(),_.g("design:type",Boolean)],hj.prototype,"lockupTouchTriggered",void 0);_.O([_.h(),_.g("design:type",Boolean)],hj.prototype,"useExpandableTooltip",void 0);
_.O([_.fa("#interaction"),_.g("design:type",Object)],hj.prototype,"interactionElement",void 0);_.O([_.Hc("down"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],hj.prototype,"lockupOnDown",null);_.O([_.Hc("up"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],hj.prototype,"lockupOnUp",null);
_.O([_.Hc("touchstart"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],hj.prototype,"onTouchStart",null);_.O([_.Hc("mouseenter"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],hj.prototype,"lockupOnMouseEnter",null);_.O([_.Hc("mouseleave"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],hj.prototype,"lockupOnMouseLeave",null);
_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],hj.prototype,"lockupOnPopupClosed",null);_.O([_.Hc("yt-lockup-requested"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],hj.prototype,"lockupOnLockupRequested",null);
_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.yk]),_.g("design:returntype")],hj.prototype,"lockupOnYtServiceRequestSent",null);_.O([_.Hc("yt-disable-lockup-interaction"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],hj.prototype,"lockupOnLockupDisabled",null);
_.O([_.Hc("yt-enable-lockup-interaction"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],hj.prototype,"lockupOnLockupEnabled",null);hj=_.O([_.qY()],hj);_.mE=[hj.prototype];_.wat={YtdReduxBehavior:[]};_.wat.YtdReduxBehavior.push.apply(_.wat.YtdReduxBehavior,_.jn);var G_=function(){var K=_.ub.apply(this,arguments)||this;K._noAccessors=!0;K.disableNowPlaying=!1;K.disableTooltips=!1;K.useHoveredProperty=!1;K.hovered=!1;K.isThumbnailHovered_=!1;K.addBackground=_.S("kevlar_thumbnail_bg");K.nowPlaying=!1;K.disableRounding=!1;K.size="small";return K};
_.r(G_,_.ub);_.z=G_.prototype;_.z.computeThumbnailOverlaySidePanelWidth_=function(K,X){return K-X};
_.z.computeSize=function(K,X){if(!this.disableRounding){if(!K&&!X)return"small";K=Math.max(K||0,X||0);return K>=256?"large":K>=96?"medium":"small"}};
_.z.computeFinalHoveredState_=function(K,X,F){return this.nowPlaying?!1:_.S("kevlar_thumbnail_fluid")&&K?X:F};
_.z.computeHoverOverlays_=function(K,X){return K&&X?X:void 0};
_.z.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.z.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.z.checkMiniplayer_=function(){var K;if(((K=this.data)==null?0:K.playlistSetVideoId)&&_.S("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{K=_.zC();var X=K.currentEndpoint;!this.disableNowPlaying&&X&&_.T(X,_.vg)&&this.data?(X=_.T(X,_.vg),this.nowPlaying=this.data.playlistId?X.playlistId===this.data.playlistId:X.videoId===this.data.videoId,this.isVideoPlaying=K==null?void 0:K.isVideoPlaying):this.nowPlaying=!1}};
G_.prototype.checkMiniplayer_=G_.prototype.checkMiniplayer_;G_.prototype.onMouseLeave_=G_.prototype.onMouseLeave_;G_.prototype.onMouseEnter_=G_.prototype.onMouseEnter_;G_.prototype.computeHoverOverlays_=G_.prototype.computeHoverOverlays_;G_.prototype.computeFinalHoveredState_=G_.prototype.computeFinalHoveredState_;G_.prototype.computeSize=G_.prototype.computeSize;G_.prototype.computeThumbnailOverlaySidePanelWidth_=G_.prototype.computeThumbnailOverlaySidePanelWidth_;
_.O([_.W(_.jn),_.g("design:type",Object)],G_.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],G_.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Number)],G_.prototype,"height",void 0);_.O([_.h(),_.g("design:type",Boolean)],G_.prototype,"bottomSidePanel",void 0);_.O([_.h(),_.g("design:type",Number)],G_.prototype,"width",void 0);_.O([_.h(),_.g("design:type",Object)],G_.prototype,"disableNowPlaying",void 0);
_.O([_.h({selector:_.LI}),_.g("design:type",Boolean)],G_.prototype,"miniplayerIsActive",void 0);_.O([_.h(),_.g("design:type",Object)],G_.prototype,"disableTooltips",void 0);_.O([_.h(),_.g("design:type",Object)],G_.prototype,"useHoveredProperty",void 0);_.O([_.h(),_.g("design:type",Object)],G_.prototype,"hovered",void 0);_.O([_.h(),_.g("design:type",Object)],G_.prototype,"isThumbnailHovered_",void 0);
_.O([_.h({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.g("design:type",Boolean)],G_.prototype,"finalHoveredState_",void 0);_.O([_.h({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.g("design:type",Number)],G_.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],G_.prototype,"addBackground",void 0);
_.O([_.h({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.g("design:type",Object)],G_.prototype,"hoverOverlays_",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],G_.prototype,"nowPlaying",void 0);_.O([_.h(),_.g("design:type",Boolean)],G_.prototype,"isVideoPlaying",void 0);_.O([_.h(),_.g("design:type",Object)],G_.prototype,"disableRounding",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.g("design:type",Object)],G_.prototype,"size",void 0);_.O([_.Hc("mouseenter"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],G_.prototype,"onMouseEnter_",null);_.O([_.Hc("mouseleave"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],G_.prototype,"onMouseLeave_",null);
_.O([_.so("data","disableNowPlaying","miniplayerIsActive"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],G_.prototype,"checkMiniplayer_",null);G_=_.O([_.qY()],G_);var ysu=[G_.prototype];_.ld={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(K,X){return K+":"+_.FL(X)},
getPlayerListener_:function(K,X,F){K=this.getPlayerListenerKey_(K,X);X=this.playerListeners_.get(K);F&&this.playerListeners_.delete(K);return X},
savePlayerListener_:function(K,X){var F=X.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(K,X),F);return F},
listenToPlayerEvent:function(K,X,F){F=this.savePlayerListener_(X,F);K.addEventListener(X,F)},
listenToPlayerEvents:function(K,X){X.forEach(function(F,P){this.listenToPlayerEvent(K,P,F)}.bind(this))},
unlistenFromPlayerEvent:function(K,X,F){F=this.getPlayerListener_(X,F,!0);K.removeEventListener(X,F)},
unlistenFromPlayerEvents:function(K,X){X.forEach(function(F,P){this.unlistenFromPlayerEvent(K,P,F)}.bind(this))}}};
_.vC=function(){};_.WOT=new _.Oh("PLAYER_API_TOKEN");var dZl=!1,h24,R2l=!1,G7P;var gn=function(K,X,F,P,H){_.LJ.call(this);var f=this;this.playerId=X;this.webPlayerContextConfig=P;this.ws2=H;this.cCW=!1;this.api={};this.iaK=this.n76=null;this.rL8=new _.uD;this.vJ={};this.cwN=this.nl3=this.elementId=this.nR1=this.config=null;this.o58=!1;this.aF=this.xw7=null;this.nF6={};this.xse=["onReady"];this.lastError=null;this.lGm=NaN;this.hT6={};this.hbV=0;this.tw=this.targetElement=K;_.JH(this,this.rL8);d5Z(this);F?this.hbV=setTimeout(function(){f.loadNewVideoConfig(F)},0):P&&(eft(this),
RfC(this))};
_.r(gn,_.LJ);gn.prototype.getId=function(){return this.playerId};
gn.prototype.loadNewVideoConfig=function(K){if(!this.isDisposed()){this.hbV&&(clearTimeout(this.hbV),this.hbV=0);var X=K||{};X instanceof KfT||(X=new KfT(X));this.config=X;this.setConfig(K);RfC(this);this.isReady()&&U5N(this)}};
var eft=function(K){var X;K.webPlayerContextConfig?X=K.webPlayerContextConfig.rootElementId:X=K.config.attrs.id;K.elementId=X||K.elementId;K.elementId==="video-player"&&(K.elementId=K.playerId,K.webPlayerContextConfig?K.webPlayerContextConfig.rootElementId=K.playerId:K.config.attrs.id=K.playerId);var F;((F=K.tw)==null?void 0:F.id)===K.elementId&&(K.elementId+="-player",K.webPlayerContextConfig?K.webPlayerContextConfig.rootElementId=K.elementId:K.config.attrs.id=K.elementId)};
gn.prototype.setConfig=function(K){this.nR1=K;this.config=hfC(K);eft(this);if(!this.nl3){var X;this.nl3=m5O(this,((X=this.config.args)==null?void 0:X.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var F;if((F=this.config)==null?0:F.attrs)K=this.config.attrs,(X=K.width)&&this.tw&&(this.tw.style.width=rP(Number(X)||X,!0)),(K=K.height)&&this.tw&&(this.tw.style.height=rP(Number(K)||K,!0))};
var U5N=function(K){if(K.config&&K.config.loaded!==!0)if(K.config.loaded=!0,!K.config.args||K.config.args.autoplay!=="0"&&K.config.args.autoplay!==0&&K.config.args.autoplay!==!1){var X;K.api.loadVideoByPlayerVars((X=K.config.args)!=null?X:null)}else K.api.cueVideoByPlayerVars(K.config.args)},lhL=function(K){var X=!0,F=K.getPlayerElement();
F&&K.config&&(X=F.dataset.version===GUQ(K));return X&&!!_.mz("yt.player.Application.create")},RfC=function(K){if(!K.isDisposed()&&!K.o58){var X=lhL(K);
if(X&&(K.getPlayerElement()?"html5":null)==="html5")K.cwN="html5",K.isReady()||vbt(K);else if(ahC(K),K.cwN="html5",X&&K.aF&&K.targetElement)K.targetElement.appendChild(K.aF),vbt(K);else{K.config&&(K.config.loaded=!0);var F=!1;K.xw7=function(){F=!0;var P=tHL(K,"player_bootstrap_method")?_.mz("yt.player.Application.createAlternate")||_.mz("yt.player.Application.create"):_.mz("yt.player.Application.create");var H=K.config?hfC(K.config):void 0;P&&P(K.targetElement,H,K.webPlayerContextConfig,K.ws2);vbt(K)};
K.o58=!0;X?K.xw7():(_.e4(GUQ(K),K.xw7),(X=$5L(K))&&ShP(X||""),O7Q(K)&&!F&&_.gS("yt.player.Application.create",null))}}};
gn.prototype.getPlayerElement=function(){var K=_.Vk(document,this.elementId);!K&&this.tw&&this.tw.querySelector&&(K=this.tw.querySelector("#"+this.elementId));return K};
var vbt=function(K){if(!K.isDisposed()){var X=K.getPlayerElement(),F=!1;X&&X.getApiInterface&&X.getApiInterface()&&(F=!0);if(F){K.o58=!1;if(!tHL(K,"html5_remove_not_servable_check_killswitch")){var P;if((X==null?0:X.isNotServable)&&K.config&&(X==null?0:X.isNotServable((P=K.config.args)==null?void 0:P.video_id)))return}VHu(K)}else K.lGm=setTimeout(function(){vbt(K)},50)}},VHu=function(K){d5Z(K);
K.cCW=!0;var X=K.getPlayerElement();if(X){K.n76=gbU(K,X,"addEventListener");K.iaK=gbU(K,X,"removeEventListener");var F=X.getApiInterface();F=F.concat(X.getInternalApiInterface());for(var P=K.api,H=0;H<F.length;H++){var f=F[H];P[f]||(P[f]=gbU(K,X,f))}}for(var u in K.vJ)K.vJ.hasOwnProperty(u)&&K.n76&&K.n76(u,K.vJ[u]);U5N(K);K.nl3&&K.nl3(K.api);K.rL8.publish("onReady",K.api)},gbU=function(K,X,F){var P=X[F];
return function(){var H=_.Ls.apply(0,arguments);try{return K.lastError=null,P.apply(X,H)}catch(f){if(F!=="sendAbandonmentPing")throw f.params=F,K.lastError=f,H=new _.nG("PlayerProxy error in method call",{error:f,method:F,playerId:K.playerId}),H.level="WARNING",H;}}},d5Z=function(K){K.cCW=!1;
if(K.iaK)for(var X in K.vJ)K.vJ.hasOwnProperty(X)&&K.iaK(X,K.vJ[X]);for(var F in K.hT6)K.hT6.hasOwnProperty(F)&&clearTimeout(Number(F));K.hT6={};K.n76=null;K.iaK=null;X=K.api;for(var P in X)X.hasOwnProperty(P)&&(X[P]=null);X.addEventListener=function(H,f){K.addEventListener(H,f)};
X.removeEventListener=function(H,f){K.removeEventListener(H,f)};
X.destroy=function(){K.dispose()};
X.getLastError=function(){return K.getLastError()};
X.getPlayerType=function(){return K.getPlayerType()};
X.getCurrentVideoConfig=function(){return K.nR1};
X.loadNewVideoConfig=function(H){K.loadNewVideoConfig(H)};
X.isReady=function(){return K.isReady()}};
gn.prototype.isReady=function(){return this.cCW};
gn.prototype.addEventListener=function(K,X){var F=this;this.isDisposed();var P=m5O(this,X);P&&(_.Ol(this.xse,K)||this.vJ[K]||(X=EbC(this,K),this.n76&&this.n76(K,X)),this.rL8.subscribe(K,P),K==="onReady"&&this.isReady()&&setTimeout(function(){P(F.api)},0))};
gn.prototype.removeEventListener=function(K,X){this.isDisposed()||(X=m5O(this,X))&&this.rL8.unsubscribe(K,X)};
var m5O=function(K,X){var F=X;if(typeof X==="string"){if(K.nF6[X])return K.nF6[X];F=function(){var P=_.Ls.apply(0,arguments),H=_.mz(X);if(H)try{H.apply(_.FP,P)}catch(f){throw P=new _.nG("PlayerProxy error when executing callback",{error:f}),P.level="ERROR",P;}};
K.nF6[X]=F}return F?F:null},EbC=function(K,X){var F=function(P){var H=function(){K.isDisposed();
if(!K.isDisposed())try{K.rL8.publish(X,P!=null?P:void 0)}catch(J){var u=new _.nG("PlayerProxy error when creating global callback",{error:J.message,event:X,playerId:K.playerId,data:P,originalStack:J.stack,componentStack:J.componentStack});u.level="WARNING";throw u;}};
if(tHL(K,"web_player_publish_events_immediately"))H();else{var f=setTimeout(function(){H();_.T8.remove(K.hT6,String(f))},0);
_.T8.add(K.hT6,String(f),!0)}};
return K.vJ[X]=F};
gn.prototype.getPlayerType=function(){return this.cwN||(this.getPlayerElement()?"html5":null)};
gn.prototype.getLastError=function(){return this.lastError};
var ahC=function(K){K.cancel();d5Z(K);K.cwN=null;K.config&&(K.config.loaded=!1);var X=K.getPlayerElement();X&&(lhL(K)||!O7Q(K)?K.aF=X:(X&&X.destroy&&X.destroy(),K.aF=null));K.targetElement&&_.cz(K.targetElement)};
gn.prototype.cancel=function(){this.xw7&&_.NYd(GUQ(this),this.xw7);clearTimeout(this.lGm);this.o58=!1};
gn.prototype.disposeInternal=function(){ahC(this);if(this.aF&&this.config&&this.aF.destroy)try{this.aF.destroy()}catch(X){var K=new _.nG("PlayerProxy error during disposal",{error:X});K.level="ERROR";throw K;}this.nF6=null;for(K in this.vJ)this.vJ.hasOwnProperty(K)&&delete this.vJ[K];this.nR1=this.config=this.api=null;delete this.targetElement;delete this.tw;_.LJ.prototype.disposeInternal.call(this)};
var O7Q=function(K){var X,F;K=(X=K.config)==null?void 0:(F=X.args)==null?void 0:F.fflags;return!!K&&K.indexOf("player_destroy_old_version=true")!==-1},GUQ=function(K){return K.webPlayerContextConfig?K.webPlayerContextConfig.jsUrl:(K=K.config.assets)?K.js:""},$5L=function(K){return K.webPlayerContextConfig?K.webPlayerContextConfig.cssUrl:(K=K.config.assets)?K.css:""},tHL=function(K,X){if(K.webPlayerContextConfig)var F=K.webPlayerContextConfig.serializedExperimentFlags;
else{var P;if((P=K.config)==null?0:P.args)F=K.config.args.fflags}return(F||"").split("&").includes(X+"=true")},hfC=function(K){for(var X={},F=_.D(Object.keys(K)),P=F.next();!P.done;P=F.next()){P=P.value;
var H=K[P];X[P]=typeof H==="object"?_.T8.clone(H):H}return X};var $Zy={},t_P="player_uid_"+(Math.random()*1E9>>>0);var aW=function(K,X,F,P,H,f){X=X===void 0?document.createElement("div"):X;this.webPlayerContextConfig=K;this.container=X;this.commandResolver=F;this.apiResolver=gGw();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.K$;P||f?b7V(this):CIN(this);this.pendingPlayerResponse=P;this.pendingWatchNextResponse=H;this.pendingPlayerVars=f;NDt(this)};
aW.prototype.loadVideoWithPlayerResponse=function(K,X,F){this.loadVideo(K,X,F)};
aW.prototype.loadVideoWithPlayerVars=function(K){return this.loadVideo(void 0,void 0,K)};
aW.prototype.destroy=function(K){if(K=_.Vk(document,K))K=t_P+"_"+_.FL(K),(K=$Zy[K])&&K.dispose()};
var x5L=function(K,X){var F;_.q(function(P){if(P.nextAddress==1)return K.pendingWatchNextResponse=X,K.synchronousApi?(F=K.synchronousApi,P.jumpTo(2)):_.Y(P,K.api,3);P.nextAddress!=2&&(F=P.yieldResult);i7C(K,F);K.pendingWatchNextResponse&&(F.updateVideoData({raw_watch_next_response:K.pendingWatchNextResponse}),K.pendingWatchNextResponse=void 0);_.JT(P)})},i7C=function(K,X){var F;
if(!(X==null?0:(F=X.isReady)==null?0:F.call(X))){var P;K=new _.nG("playerApi is falsey",{synchronousApi:K.synchronousApi,apiResolved:K.apiResolver.resolved,playerApiUndefined:X===void 0,playerApiNull:X===null,playerApiReady:(X==null?void 0:(P=X.isReady)==null?void 0:P.call(X))===!0,playerApiMethods:X?Object.keys(X):[]});_.jF(K)}},Iht=function(K,X){if(typeof K[X]==="function")return K[X]()},kUt=function(K){var X=window,F,P=(F=X.ytplayer)==null?void 0:F.bootstrapPlayerContainer;
if((F=P==null?void 0:P.firstElementChild)&&_.dY(F,"html5-video-player")){var H,f,u=(H=X.ytplayer)==null?void 0:(f=H.bootstrapWebPlayerContextConfig)==null?void 0:f.contextId;H=K.webPlayerContextConfig.contextId;if(u&&u===H){P!==K.container&&(P=!1,Iht(F,"getPlayerState")===2&&(P=!0),K.container.appendChild(F),P||Iht(F,"playVideo"));var J;if((J=X.ytplayer)==null?0:J.bootstrapPlayerResponse)K.bootstrapPlayerResponse=X.ytplayer.bootstrapPlayerResponse}}},NDt=function(K){var X,F,P,H,f;
_.q(function(u){if(u.nextAddress==1)return K.pageReadyOrDataAvailable?u.jumpTo(2):_.Y(u,K.pageReadyOrDataAvailableResolver.promise,2);if(u.nextAddress!=4)return!_.S("kevlar_player_unified_player_loading")||e2T()&&UZ3()?u.jumpTo(4):_.Y(u,vGP(),4);kUt(K);if(K.pendingPlayerResponse||K.pendingPlayerVars)X=akw(K.pendingPlayerResponse,K.pendingWatchNextResponse,K.pendingPlayerVars),K.pendingPlayerResponse&&K.pendingPlayerResponse===K.bootstrapPlayerResponse&&(X.loaded=!0),K.bootstrapPlayerResponse=void 0;
F=V_d(K.container,X,K.webPlayerContextConfig);((P=X)==null?0:P.loaded)&&K.pendingWatchNextResponse?(x5L(K,K.pendingWatchNextResponse),K.pendingPlayerResponse=void 0,K.pendingPlayerVars=void 0):KsE(K);H=function(J){F.removeEventListener("onReady",H);K.synchronousApi=J;K.apiResolver.resolve(J)};
F.addEventListener("onReady",H);K.commandResolver!==void 0&&(f=K.commandResolver,F.addEventListener("innertubeCommand",function(J){f(J)}));
_.JT(u)})};
aW.prototype.loadVideo=function(K,X,F){var P=this,H,f,u,J,Z,M,n,c,B;return _.q(function(L){if(L.nextAddress==1)return P.pendingPlayerResponse=K,P.pendingWatchNextResponse=X,P.pendingPlayerVars=F,b7V(P),P.synchronousApi?(H=P.synchronousApi,L.jumpTo(2)):_.Y(L,P.api,3);L.nextAddress!=2&&(H=L.yieldResult);i7C(P,H);u=new Promise(function(A){f=A});
J=function(){var A=H.getPlayerResponse();A&&(H.removeEventListener("onVideoDataChange",J),f(A))};
H.addEventListener("onVideoDataChange",J);if(P.pendingPlayerResponse||P.pendingPlayerVars)P.pendingPlayerResponse&&P.pendingPlayerResponse===P.bootstrapPlayerResponse?(f(P.pendingPlayerResponse),P.pendingWatchNextResponse&&x5L(P,P.pendingWatchNextResponse)):(Z=akw(P.pendingPlayerResponse,P.pendingWatchNextResponse,P.pendingPlayerVars),(B=(M=P.pendingPlayerResponse)==null?void 0:(n=M.playerConfig)==null?void 0:(c=n.playbackStartConfig)==null?void 0:c.startPaused)?H.cueVideoByPlayerVars(Z.args):H.loadVideoByPlayerVars(Z.args)),
KsE(P),P.bootstrapPlayerResponse=void 0;return L.return(u)})};
var CIN=function(K){if(document.readyState==="complete"||document.readyState==="interactive")b7V(K);else{var X=function(){document.removeEventListener("DOMContentLoaded",X);b7V(K)};
document.addEventListener("DOMContentLoaded",X)}},b7V=function(K){K.pageReadyOrDataAvailable=!0;
K.pageReadyOrDataAvailableResolver.resolve()},KsE=function(K){K.pendingPlayerResponse=void 0;
K.pendingWatchNextResponse=void 0;K.pendingPlayerVars=void 0};
_.Oi.Object.defineProperties(aW.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var tj=function(K){oK.call(this,K===void 0?"document_active":K);var X=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(F){X.transition("document_disposed",{event:F})});
window.addEventListener("beforeunload",function(F){X.transition("document_disposed_preventable",{event:F})});
window.addEventListener("unload",function(F){X.transition("document_disposed",{event:F});X.hasRun=new Map})};
_.r(tj,oK);
tj.prototype.runPreventableDispose=function(K,X){if(!this.hasRun.get("document_disposed_preventable")){K(X==null?void 0:X.event);var F,P;if((X==null?0:(F=X.event)==null?0:F.defaultPrevented)||(X==null?0:(P=X.event)==null?0:P.returnValue)){X.event.returnValue||(X.event.returnValue=!0);X.event.defaultPrevented||X.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")};
tj.prototype.runDispose=function(K,X){this.hasRun.get("document_disposed")?this.transition("document_active"):(K(X==null?void 0:X.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
tj.prototype.runFlush=function(K,X){K(X==null?void 0:X.event);this.transition("document_active")};
tj.prototype.runActive=function(){};var $W=function(K){oK.call(this,K===void 0?"document_visibility_unknown":K);var X=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(F){document.visibilityState==="visible"?X.transition("document_visible",{event:F}):X.transition("document_hidden",
{event:F})});
_.S("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(F){X.transition("document_backgrounded",{event:F})}),window.addEventListener("focus",function(F){X.transition("document_foregrounded",{event:F})}))};
_.r($W,oK);$W.prototype.runVisible=function(K,X){K(X==null?void 0:X.event);_.S("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
$W.prototype.runHidden=function(K,X){K(X==null?void 0:X.event);_.S("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
$W.prototype.runBackgrounded=function(K,X){K(X==null?void 0:X.event)};
$W.prototype.runForegrounded=function(K,X){K(X==null?void 0:X.event)};var O6=function(){this.teardownLifecycle=new tj;this.visibilityLifecycle=new $W};
O6.prototype.install=function(){var K=_.Ls.apply(0,arguments),X=this;K.forEach(function(F){X.teardownLifecycle.install(F)});
K.forEach(function(F){X.visibilityLifecycle.install(F)})};var VD=function(){O6.call(this);var K={};this.install((K.document_disposed={callback:this.abortSlisAndFlush},K));_.S("combine_ve_grafts")&&(K={},this.install((K.document_disposed={callback:this.flushInteractionLoggingAttachVes},K)));K={};this.install((K.flush_logs={callback:this.logFinalPayload},K));_.S("web_log_cfg_cee_ks")||_.cu(_.A9,XoE)};
_.r(VD,O6);var EG3=function(){VD.loggingInstance||(VD.loggingInstance=new VD);return VD.loggingInstance};
VD.prototype.logFinalPayload=function(){if(_.S("web_fp_via_jspb")){var K=new y9W,X=_.AD();X&&_.Qf(K,1,X);X=_.S("jspb_sparse_encoded_pivot")?new nL([{}]):new nL;_.P$(X,380,W3N,K);ta3("finalPayload",X);_.S("web_fp_via_jspb_and_json")&&_.LL("finalPayload",{csn:_.AD()})}else _.LL("finalPayload",{csn:_.AD()})};
VD.prototype.abortSlisAndFlush=function(){l6C(RZ);UH!=null&&UH.flush()};
VD.prototype.flushInteractionLoggingAttachVes=function(){H3C(_.uH())};
var XoE=function(){var K=_.e8("CLIENT_EXPERIMENT_EVENTS");if(K){var X=vdn();K=_.D(K);for(var F=K.next();!F.done;F=K.next())F=F.value,X(F)&&_.LL("genericClientExperimentEvent",{eventType:F});delete _.Wd.CLIENT_EXPERIMENT_EVENTS}};var FsL={};
FsL.YtPlayerBehavior=[_.ld.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 K=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.K$;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;bRl(function(){K.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.Ag(this,"pan-down"),_.S("kevlar_pinch_fullscreen")&&_.Yu().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.S("kevlar_pinch_fullscreen")&&_.Yu().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(K,X,F){var P=this;Ee(this.useUnifiedPlayer_());if(this.mainAppPlayer_)Ee(!1,"MainAppPlayer already created.");else{var H=_.S("kevlar_player_container_query_killswitch")?this.$.container:_.C$(this.hostElement).querySelector("#container");this.mainAppPlayer_=new aW(this.getWebPlayerContextConfig_(),H,function(f){return _.sP(f,P.hostElement)},K,X,F);
this.mainAppPlayer_.api.then(function(f){P.player_=f;P.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&PdN.resolve(f)})}},
loadVideoWithPlayerResponse:function(K,X){var F=this;if(this.useUnifiedPlayer_()){var P=this.watchNextData,H,f=(H=K.videoDetails)==null?void 0:H.videoId,u,J,Z;(H=(u=this.watchNextData)==null?void 0:(J=u.currentVideoEndpoint)==null?void 0:(Z=J.watchEndpoint)==null?void 0:Z.videoId)&&f!=H&&(P=void 0,_.S("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(K,P,X):this.createMainAppPlayer_(K,P,X);this.mainAppPlayer_.api.then(function(){_.iX(F.hostElement,
"yt-player-updated")})}else this.update(wow(K,X))},
loadVideoWithPlayerVars:function(K){var X=this;this.useUnifiedPlayer_()?(_.S("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(K):this.createMainAppPlayer_(void 0,void 0,K),this.mainAppPlayer_.api.then(function(){_.iX(X.hostElement,"yt-player-updated")})):this.update({args:K})},
update:function(K){var X=this;if(this.useUnifiedPlayer_())Ee(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(K);var F=H13(K.args);F&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==F&&Object.assign(K.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(K).then(function(P){_.iX(X.hostElement,"yt-player-updated",_.S("kevlar_player_updated_obsolete_player_killswitch")?
P:void 0)})}_.wc(new _.nG("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(K){var X=this,F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,X.getPlayerPromise(),2);F=P.yieldResult;if(!F)throw Error("qh");K&&X.updatePlayerPlaylist_(K);_.JT(P)})},
acquireApi_:function(K){var X=this;if(this.useUnifiedPlayer_())Ee(!1,"Invalid method call in kevlar_unified_player.");else return _.A9.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(Ee(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(F){X.shouldAutoplay_(K)?F.loadVideoByPlayerVars(K.args):F.cueVideoByPlayerVars(K.args)})):this.initPlayerPromise_=this.initPlayerContainer_(K),this.initPlayerPromise_},
initPlayerContainer_:function(K){var X=this;if(this.useUnifiedPlayer_())Ee(!1,"Invalid method call in kevlar_unified_player.");else return Ee(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.yy(Error("rh")),Ee(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.S("kevlar_player_container_query_killswitch")?this.$.container:_.C$(this.hostElement).querySelector("#container"),vGP().then(function(){var F=X.initPlayer_(K);X.playerResolver_.resolve(F);
return F})},
onPlayerReady_:function(K,X){this.useUnifiedPlayer_()?Ee(!1,"Invalid method call in kevlar_unified_player."):(K.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&PdN.resolve(K),X(K))},
maybeCallApiMethodOnElement_:function(K,X){if(typeof K[X]==="function")return K[X]()},
maybeAdoptBootstrapPlayer_:function(){var K=window,X,F=(X=K.ytplayer)==null?void 0:X.bootstrapPlayerContainer;if((X=F==null?void 0:F.firstElementChild)&&X.classList.contains("html5-video-player")){var P,H,f=(P=K.ytplayer)==null?void 0:(H=P.bootstrapWebPlayerContextConfig)==null?void 0:H.contextId;P=this.getWebPlayerContextConfig_().contextId;if(f&&f===P){F!==this.playerContainer_&&(F=!1,this.maybeCallApiMethodOnElement_(X,"getPlayerState")===2&&(F=!0),this.playerContainer_.appendChild(X),F||this.maybeCallApiMethodOnElement_(X,
"playVideo"));var u;if((u=K.ytplayer)==null?0:u.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=K.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(K){var X=this;if(this.useUnifiedPlayer_())Ee(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(F){X.maybeAdoptBootstrapPlayer_();var P=K?yB9(K):void 0;P&&P==X.bootstrapPlayerResponse_&&(K.loaded=!0);P=X.playerContainer_;var H=X.getWebPlayerContextConfig_();P=V_d(P,K,H);X.player_=P;X.onPlayerReadyEvent_=X.onPlayerReady_.bind(X,X.player_,F);X.player_.addEventListener("onReady",X.onPlayerReadyEvent_);X.player_.addEventListener("innertubeCommand",
X.onPlayerInnerTubeCommand_.bind(X))})},
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(K){K.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(K){K.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var K=_.i9().resolve(_.ax).getCurrentPage();K&&K.getScrollTop()<=0?_.Ag(this,"pan-down"):_.Ag(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(K){K.isFullscreen()||K.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(K){K.isFullscreen()&&K.toggleFullscreen()})},
updatePlayerPlaylist_:function(K){var X=this,F,P,H;return _.q(function(f){if(f.nextAddress==1)return F=_.i9().resolve(_.Nu(_.AW)),P=!!(F&&F.playlistComponent&&F.playlistComponent.loopOn),_.Y(f,X.getPlayerPromise(),2);var u=H=f.yieldResult,J=u.updatePlaylist,Z=[];if(_.S("kevlar_player_playlist_use_local_index")){var M,n;var c=(n=(M=K.localCurrentIndex)!=null?M:K.currentIndex)!=null?n:0}else{var B;c=(B=K.currentIndex)!=null?B:0}if(K.contents)for(M=0;M<K.contents.length;M++)if((n=K.contents[M])&&n.playlistPanelVideoRenderer)if(Opq(n)){n=
n.playlistPanelVideoRenderer;B="";n.shortBylineText&&(B=_.lj(n.shortBylineText));var L="";n.title?L=_.lj(n.title):n.unplayableText&&(L=_.lj(n.unplayableText));Z.push({author:B,title:L,encrypted_id:n.videoId})}else M<c&&--c;J.call(u,{index:c,list:K.playlistId?K.playlistId:"",loop:P,playlist_title:K.title,playlist_length:Z.length,video:Z,fetch:0,external_list:"1",title:K.title?K.title:"",playlist_author:K.ownerName?_.lj(K.ownerName):void 0});_.JT(f)})},
focusOnPlayer:function(){_.tg(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var K=this.playerContainer_.querySelector(".html5-video-player");K&&(_.gK(_.i9().resolve(_.BO)),K.focus())}})},
preparePlayer:function(){var K=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(X){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")X();else{var F=function(){document.removeEventListener("DOMContentLoaded",F);X()};
document.addEventListener("DOMContentLoaded",F)}})).then(function(){return vGP()}).then(function(){K.initPlayerPromise_||K.preparePlayerJobId_||(K.preparePlayerJobId_=_.cu(_.A9,function(){K.initPlayerPromise_||(K.initPlayerPromise_=K.initPlayerContainer_())}))}):_.wc(new _.nG("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(K){this.useUnifiedPlayer_()?Ee(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(K)||(K.args.autoplay="0")},
shouldAutoplay_:function(K){if(this.useUnifiedPlayer_())Ee(!1,"Invalid method call in kevlar_unified_player.");else{var X=this.get("args.el",K);return X&&X!="detailpage"&&this.isMiniplayerActive_()||X&&(X=="sponsorshipsoffer"||X=="handlesclaiming")&&this.get("args.autoplay",K)=="0"?!1:(K=yB9(K))&&this.get("playerConfig.playbackStartConfig.startPaused",K)?!1:!0}},
isMiniplayerActive_:function(){return _.i9().resolve(_.Wj).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var K=this.getPlayer();if(K){var X=K.getPlayerState();_.S("kevlar_player_check_ad_state_on_stop")&&(X=K.getPlayerState(K.getPresentingPlayerType()));X!=5&&K.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(K,X,F){F=F===void 0?!1:F;var P=this,H,f,u,J;return _.q(function(Z){if(Z.nextAddress==1)return X||(X=P.hostElement),H=P.useUnifiedPlayer_()?!!P.mainAppPlayer_:!!P.initPlayerPromise_,H?_.Y(Z,P.getPlayerPromise(),2):(F?K.insertBefore(X,K.firstChild):K.appendChild(X),Z.return());f=Z.yieldResult;u=f.getPlayerState(f.getPresentingPlayerType());J=!1;if(u==-1||u==1||u==3)J=!0;F?K.insertBefore(X,K.firstChild):K.appendChild(X);J&&f.playVideo();f.setSize(NaN,NaN);_.JT(Z)})},
watchNextDataChanged_:function(K){var X=this;K&&(this.useUnifiedPlayer_()&&_.S("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&x5L(this.mainAppPlayer_,K):this.getPlayerPromise().then(function(F){F.updateVideoData(X.computeWatchNextPlayerVars_(K))}))},
computeWatchNextPlayerVars_:function(K){if(this.useUnifiedPlayer_()&&_.S("kevlar_unified_player_update_watch_next_killswitch"))Ee(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:K}},
maybeSendAbandonmentPing_:function(){var K=this.getPlayer();K&&K.getPlayerState()!=5&&K.getPlayerState()!=0&&K.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var K=_.e8("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(K=Object.assign({},K),K.rootElementId=this.playerId);K.serializedExperimentIds&&K.serializedExperimentFlags||_.yy(Error("sh"));return K},
hasWebPlayerContextConfig_:function(){return!!_.e8("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(K){this.useUnifiedPlayer_()?Ee(!1,"Invalid method call in kevlar_unified_player."):_.sP(K,this.hostElement)},
useUnifiedPlayer_:function(){var K=_.S("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.S("kevlar_unified_player")||K}}];var PLL={};PLL.YtPlaylistPanelBehavior=[_.k.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(K){K=K.detail;if(K.actions.loop!=void 0||K.actions["yt-icons:loop"]!=void 0)this.loopOn=K.actions.loop||K.actions["yt-icons:loop"];if(K.actions.shuffle!=void 0||K.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=K.actions.shuffle||K.actions["yt-icons:shuffle"]},
setMenuData_:function(K){if(!K||!K.playlistButtons||K.isInfinite)return null;for(var X=K.playlistButtons.menuRenderer.topLevelButtons,F=X.length,P=0;P<F;P++)if(X[P].toggleButtonRenderer){var H=X[P].toggleButtonRenderer;H.defaultIcon.iconType=="LOOP"&&this.loopOn?H.isToggled=this.loopOn:H.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(H.isToggled=this.shuffleOn)}return K.playlistButtons}}];var HRL=function(K){xh.call(this,K,132);this.isDocument=K===document.documentElement};
_.r(HRL,xh);HRL.prototype.calculateScrollDelta=function(K,X,F){var P=0;K<X?P=K<X-100?-48:-8:K>X+F&&(P=K>X+F+100?48:8);return P};
HRL.prototype.JSC$9301_onMouseMove=function(K){this.isDocument||(K.clientX=K.event_.pageX,K.clientY=K.event_.pageY);xh.prototype.JSC$9301_onMouseMove.call(this,K)};var E6=function(){var K=_.ub.apply(this,arguments)||this;K._noAccessors=!0;K.scrollElement=document.documentElement;K.JSC$12266_dragListGroup=null;K.dragScrollSupport=null;K.onDraggerCreated=function(X){var F=X.JSC$9297_dragger;F.scrollTarget_=K.scrollElement;X=X.draggerEl;F&&X.menuOpened&&F.setEnabled(!1)};
K.onDragStart=function(X){var F=X.draggerEl;X=X.currDragItem;var P=Object.assign({},X==null?void 0:X.data);P.trackingParams=void 0;F.data=P;F.style.position="absolute";F.style.width=(X==null?void 0:X.clientWidth)+"px";F.style.zIndex="2030";F.onDrag&&F.onDrag();_.S("web_owner_document_fallback_killswitch")?(X=document.querySelector("ytd-app"))&&_.C$(X).appendChild(F):(X=_.yf(F),(P=X.querySelector("ytd-app"))?_.C$(P).appendChild(F):X.body.appendChild(F));K.dragScrollSupport=new HRL(K.scrollElement);
K.dragScrollSupport.horizontalScrolling_=!1;F=K.dragScrollSupport;F.constrainScroll_=!!F.margin_&&!1};
K.onDrop=function(X){K.handleDrop(X);K.dragScrollSupport&&(_.ik(K.dragScrollSupport),K.dragScrollSupport=null)};
K.onReorderableScroll=function(){if(K.JSC$12266_dragListGroup){var X=K.JSC$12266_dragListGroup;LbZ(X,X.currDragItem_)}};
return K};
_.r(E6,_.ub);E6.prototype.detached=function(){_.sMC(this)};
_.sMC=function(K){K.JSC$12266_dragListGroup&&(_.DG(K.JSC$12266_dragListGroup,YsT,K.onDragStart),_.DG(K.JSC$12266_dragListGroup,ccN,K.onDragStart),K.JSC$12266_dragListGroup.dispose(),K.JSC$12266_dragListGroup=null);K.dragScrollSupport&&(_.ik(K.dragScrollSupport),K.dragScrollSupport=null);K.scrollElement.removeEventListener("scroll",K.onReorderableScroll)};
_.z2T=function(K,X,F,P){P=P===void 0?"":P;_.sMC(K);F&&(K.scrollElement=F);K.JSC$12266_dragListGroup=new yI;K.JSC$12266_dragListGroup.hysteresisDistance_=2;BbL(K.JSC$12266_dragListGroup,X);K.JSC$12266_dragListGroup.draggerElClasses_=Yd("dragging").split(" ");P&&SsN(K.JSC$12266_dragListGroup,function(H){var f=H||document,u=null;f.getElementsByClassName?u=f.getElementsByClassName(P)[0]:u=ZOQ("*",P,H);return u||H});
_.nB(K.JSC$12266_dragListGroup,JcE,K.onDraggerCreated);_.nB(K.JSC$12266_dragListGroup,YsT,K.onDragStart);_.nB(K.JSC$12266_dragListGroup,ccN,K.onDrop);K.JSC$12266_dragListGroup.init();K.scrollElement.addEventListener("scroll",K.onReorderableScroll,{passive:!0})};
E6.prototype.handleDrop=function(){};
_.Oi.Object.defineProperties(E6.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.O([_.h({value:100}),_.g("design:type",Number)],E6.prototype,"scrollMargin",void 0);E6=_.O([_.qY()],E6);_.fkZ=[E6.prototype];_.bd={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(K,X,F){var P=this.getClickTarget_(X);if(P&&this.isClickAllowed_(P)){X.preventDefault();K=(0,_.T8.unsafeClone)(K);var H=this.getContainerBoundingRect();X=this.getRelativeClickXy_(X,H);this.expandEndpointUrlMacros_(K,{NX:X[0],NY:X[1],NB:P.code});F&&this.truncateWebCommendMetadataUrl_(K);_.iX(this.hostElement,"yt-navigate",{endpoint:K})}},
getClickTarget_:function(K){if(!this.clickTargetMap)return null;K=_.lN(K)||[];K=_.D(K);for(var X=K.next();!X.done;X=K.next()){X=X.value;if(X===_.C$(this.hostElement).querySelector("#menu"))break;if(X=this.clickTargetMap.get(X.id))return X}return null},
getRelativeClickXy_:function(K,X){var F=K.detail.x,P=K.detail.y;_.S("use_on_click_for_desktop_display_ad")&&K.clientX!=null&&K.clientY!=null&&(F=K.clientX,P=K.clientY);K=Math.round(F-X.left);X=Math.round(P-X.top);return K<0||X<0?[null,null]:[K,X]},
getContainerBoundingRect:function(){return _.C$(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(K,X){for(var F=_.D(K.loggingUrls||[]),P=F.next();!P.done;P=F.next())P=P.value,P.baseUrl&&(P.baseUrl=rp(P.baseUrl,X));K.urlEndpoint&&K.urlEndpoint.url&&(K.urlEndpoint.url=rp(K.urlEndpoint.url,X));K.commandMetadata&&K.commandMetadata.webCommandMetadata&&K.commandMetadata.webCommandMetadata.url&&(K.commandMetadata.webCommandMetadata.url=rp(K.commandMetadata.webCommandMetadata.url,X))},
truncateWebCommendMetadataUrl_:function(K){if(K.commandMetadata&&K.commandMetadata.webCommandMetadata&&K.commandMetadata.webCommandMetadata.url){var X=K.commandMetadata.webCommandMetadata.url,F=X.indexOf("&pp=");if(F>0){var P=X.indexOf("&",F+1);K.commandMetadata.webCommandMetadata.url=P>F&&P<X.length?X.slice(0,F)+X.slice(P):X.slice(0,F)}}},
configureClickTargets:function(K,X,F){this.containerId=K;this.clickTargetMap=new Map;K=_.D(X);for(X=K.next();!X.done;X=K.next())if(X=X.value,X.location){var P=F.get(X.location);P&&(_.iN(_.C$(this.hostElement).querySelector("#"+P),"yt-simple-endpoint",this.isClickAllowed_(X)),this.clickTargetMap.set(P,X))}},
isClickAllowed_:function(K){return K.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||K.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||K.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||K.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.CA={};
_.CA.YtLazyListBehavior=[_.Vj.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 K=(this.constructor.generatedFrom||this).observers;K||(K=[]);K.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
K}},
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 K=this.renderElementsOutsideVisibleArea_;K&&(Y4C(K,4),K.processSignal())},
deepLazyListObserver_:function(K){var X=this;if(K){var F=K.value||[];if(this.itemsPath==K.path){var P=this.nonDeferredItemCount;K=0;P>-1&&F.length>P&&(K=_.e8("REMAINING_DOVA_DEFERRED_CHUNKS",-1));K>0?(P>0&&(P=F.slice(0,P),this.setInitialItemsOnDataChanged(P)),(P=this.renderElementsOutsideVisibleArea_)?P.cancel():(P=this.renderElementsOutsideVisibleArea_=new _.Ex(2,"eocs"),_.CNT(window,"scroll",function(){return X.renderDeferredElements()})),_.bZ(P,function(){X.setInitialItemsOnDataChanged(F)}),_.d2("REMAINING_DOVA_DEFERRED_CHUNKS",
K-1)):this.setInitialItemsOnDataChanged(F)}else if(this.itemsPath+".splices"==K.path)this.onItemsUpdated_(F);
else P="shownItems"+K.path.substr(this.itemsPath.length),this.useSignals&&P==="shownItems.length"||this.notifyPath(P,K.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(K){K&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(K),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(K){K=K.indexSplices;for(var X=0,F=K.length;X<F;X++){var P=K[X];if(P.index<this.shownCount&&(P.removed&&this.splice("shownItems",P.index,P.removed.length),P.addedCount)){var H=P.object.slice(P.index,P.index+P.addedCount);P=["shownItems",P.index,0];P.push.apply(P,H);this.splice.apply(this,P)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(K){this.cancelPendingTasks_();K||(K=[]);this.items_=K;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&&(_.RU("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.tg(this,this.tryRenderChunk_)))},
fillRange_:function(K,X){this.canShowMore&&this.items_&&(K=this.items_.slice(K,X),K.unshift("shownItems"),this.push.apply(this,K),this.shownCount=X,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var K=this;this.canShowMore&&_.eu(this,"renderChunk",function(){K.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.RU("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.u6(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var K=this.renderElementsOutsideVisibleArea_;K&&(K.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var K=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(K-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=K;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(K){return Math.ceil(1E3/K)},
onCanShowMoreUpdated_:function(K){this.data&&this.items_!==null&&(K?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(K){!this.shouldUseTaskManager()&&this.data&&(!K&&this.canShowMore?(_.oFy(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):K&&this.partiallyRenderedItems_.has(this.items_)&&(_.S("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var xW;_.Nh={};
xW=function(){var K=_.ub.apply(this,arguments)||this;K.atStart=!0;K.atEnd=!0;K.startIndex=0;K.endIndex=0;K.scrollCount=0;K.initialStartIndex=0;K.disableScrollEventListener=!1;K.useFloorScrolling=!1;K.isSearch=!1;K.dragging=!1;K.dragMouseStart=0;K.dragOffsetStart=0;K.disableWheelScroll=!1;K.centerListItems=!1;K.offset=0;K.minComponentWidth=0;K.marginWidthRight=0;K.marginWidthLeft=0;K.setButtonsStateRequested=!1;K.itemsVisibilityObserver=null;K.fullyVisibleItemsIndices=[];K.JSC$12277_onWheelScroll=function(X){if(K.isSearch&&
!K.disableWheelScroll&&_.S("desktop_enable_dmpanel_wheel_scroll")){var F=X.shiftKey?Math.abs(X.deltaY)>Math.abs(X.deltaX)?X.deltaY:X.deltaX:X.deltaX;F!==0&&(X.preventDefault(),K.ytLazyListBehavior.fillRemainingListItems(),K.offset+=F,id(K),K.reposition_())}};
K.onPointerDown=function(X){DZC(K)&&(K.dragMouseStart=X.clientX,K.dragOffsetStart=K.offset,K.dragging=!0)};
K.onPointerMove=function(X){DZC(K)&&K.dragging&&(K.ytLazyListBehavior.fillRemainingListItems(),K.offset=K.dragOffsetStart-(X.clientX-K.dragMouseStart),id(K),K.reposition_())};
K.onPointerUp=function(){DZC(K)&&(K.dragging=!1)};
return K};
_.r(xW,_.ub);var uDu=function(K){var X=_.C$(K.hostElement).querySelector("#items").children;if(!X)return 0;var F=0;K=_.D(K.fullyVisibleItemsIndices);for(var P=K.next();!P.done;P=K.next())F+=X[P.value].clientWidth;return F},DZC=function(K){return K.isSearch&&_.S("desktop_enable_dmpanel_click_drag_scroll")};
xW.prototype.created=function(){this.cachedViewportWidth=_.e8("initialInnerWidth")||window.innerWidth;this.JSC$12277_cachedViewportHeight=_.e8("initialInnerHeight")||window.innerHeight;_.e8("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.d2("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
xW.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.S("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();qAW(this)};
xW.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.S("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var K;(K=this.itemsVisibilityObserver)==null||K.disconnect();this.itemsVisibilityObserver=null;var X;(X=this.itemsObserver)==null||X.disconnect()};
var qAW=function(K){var X=_.C$(K.hostElement).querySelector("#scroll-container");if(X){if(!K.itemsVisibilityObserver){var F=window.getComputedStyle(X).marginRight;K.itemsVisibilityObserver=new IntersectionObserver(function(P){JBW(K,P)},{root:X,
rootMargin:F,threshold:.98})}if(X=_.C$(K.hostElement).querySelector("#items"))K.itemsObserver=new KHt(X,function(P){ZRu(K,P)})}},ZRu=function(K,X){YAQ(K)&&(Array.from(X.addedNodes).filter(function(F){return F.nodeType===Node.ELEMENT_NODE}).forEach(function(F){K.itemsVisibilityObserver&&K.itemsVisibilityObserver.observe(F)}),Array.from(X.removedNodes).filter(function(F){return F.nodeType===Node.ELEMENT_NODE}).forEach(function(F){K.itemsVisibilityObserver&&K.itemsVisibilityObserver.unobserve(F)}))},
JBW=function(K,X){var F=new Set(K.fullyVisibleItemsIndices);
X=_.D(X);for(var P=X.next();!P.done;P=X.next()){P=P.value;var H=P.target.parentElement;H?(H=Array.from(H.children).indexOf(P.target),P.isIntersecting?F.add(H):F.has(H)&&F.delete(H)):_.yy(new _.nG("Parent element not found",P.target.nodeName))}K.fullyVisibleItemsIndices=Array.from(F).sort(function(f,u){return f-u});
F.size===0?_.yy(new _.nG("No visible entries in horizontal list")):(K.startIndex=K.fullyVisibleItemsIndices[0],K.endIndex=K.fullyVisibleItemsIndices[K.fullyVisibleItemsIndices.length-1])},YAQ=function(K){K.data?K=(K=K.data)&&K.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===K.itemSizeConstraint:!1:K=!1;
return K};
_.z=xW.prototype;_.z.addScrollEventListeners=function(){var K=_.C$(this.hostElement).querySelector("#scroll-container");K.style.touchAction="pan-y";K.addEventListener("wheel",this.JSC$12277_onWheelScroll);K.addEventListener("pointerdown",this.onPointerDown);K.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.z.removeScrollEventListeners=function(){var K=_.C$(this.hostElement).querySelector("#scroll-container");K.removeEventListener("wheel",this.JSC$12277_onWheelScroll);K.removeEventListener("pointerdown",this.onPointerDown);K.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.z.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.tg(this,this.setStartIndex,[this.initialStartIndex])};
_.z.reposition_=function(){var K=_.e8("HTML_DIR")=="rtl"?"":"-",X=_.C$(this.hostElement).querySelector("#items");X&&(X.style.transform="translateX("+K+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.z.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.tg(this,this.setButtonsState_))};
_.z.setButtonsState_=function(){this.setButtonsStateRequested=!1;var K=_.C$(this.hostElement).querySelector("#items").firstElementChild;if(K){this.minComponentWidth||(this.minComponentWidth=QMU(this,K));K=_.C$(this.hostElement).querySelector("#scroll-container").clientWidth;var X=_.C$(this.hostElement).querySelector("#items").clientWidth,F=this.get(this.ytLazyListBehavior.itemsPath,this);if(F){var P=Math.round(K/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=
Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+P,F.length)-1)}this.ytLazyListBehavior.canShowMore?X+this.minComponentWidth>=this.offset+K&&(this.atEnd=!1):this.atEnd=this.offset+K>=X-20?!0:!1;this.atStart=this.offset<=20}};
_.z.setStartIndex=function(K){if(!this.minComponentWidth){var X=_.C$(this.hostElement).querySelector("#items").firstElementChild;if(!X)return;this.minComponentWidth=QMU(this,X)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*K;id(this);this.reposition_()};
_.z.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Fz();var K=_.C$(this.hostElement).querySelector("#scroll-container").clientWidth;_.S("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=QMU(this,_.C$(this.hostElement).querySelector("#items").firstElementChild));K=this.useFloorScrolling?Math.floor(K/this.minComponentWidth)||1:Math.round(K/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&M_Z(this);this.offset+=YAQ(this)?
uDu(this):K*this.minComponentWidth;id(this);this.reposition_();this.scrollCount++};
_.z.prevClick_=function(){var K=_.C$(this.hostElement).querySelector("#scroll-container").clientWidth;K=this.useFloorScrolling?Math.floor(K/this.minComponentWidth)||1:Math.round(K/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=YAQ(this)?uDu(this):this.minComponentWidth*this.scrollCount-1):this.offset-=YAQ(this)?uDu(this):K*this.minComponentWidth;this.centerListItems&&M_Z(this);id(this);this.reposition_()};
_.z.onIronResize_=function(){this.resizeSupportEnabled&&_.tg(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.z.onItemsTransitionEnd_=function(K){_.vI(K)===_.C$(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.z.onChildElementFocus_=function(K){K=K.target.closest("#items > *");var X=_.C$(this.hostElement).querySelector("#scroll-container");if(X.contains(K)){if(_.S("web_horizontal_list_behavior_focus_killswitch"))if(K.offsetLeft<this.offset)this.offset=Math.abs(K.offsetLeft)<K.clientWidth?0:K.offsetLeft;else if(K.offsetLeft+K.clientWidth>this.offset+X.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Fz(),this.offset=K.offsetLeft+K.clientWidth-X.clientWidth;else return;else{var F=_.C$(this.hostElement).querySelector("#items"),
P=_.e8("HTML_DIR")==="rtl",H=P?F.clientWidth-K.offsetLeft:K.offsetLeft;F=P?F.clientWidth-(K.offsetLeft+K.clientWidth):K.offsetLeft+K.clientWidth;var f=P?H>this.offset+X.clientWidth:H<this.offset,u=P?F<this.offset:F>this.offset+X.clientWidth,J=P?f:u;if(P?u:f)X=P?F:H,this.offset=Math.abs(X)<K.clientWidth?0:X;else if(J)this.ytLazyListBehavior.fillRemainingListItems(),_.Fz(),this.offset=(P?H:F)-X.clientWidth;else return}id(this);this.reposition_()}};
_.z.observeShownItems_=function(){this.reset()};
_.z.checkComponentWidthResize=function(){var K=_.C$(this.hostElement).querySelector("#items").firstElementChild;K&&(K=QMU(this,K),this.centerListItems||K!==this.minComponentWidth)&&(this.minComponentWidth=K,this.offset=K*this.scrollCount,this.centerListItems&&M_Z(this),id(this),this.reposition_())};
var QMU=function(K,X){var F=window.getComputedStyle(X).marginRight;F=Math.floor(Number(F.replace("px","")));var P=window.getComputedStyle(X).marginLeft;P=Math.floor(Number(P.replace("px","")));K.centerListItems&&!K.marginWidthRight&&(K.marginWidthRight=F,K.marginWidthLeft=P);return K.resizeSupportEnabled?X.getBoundingClientRect().width+F:X.offsetWidth+F},id=function(K){var X=_.C$(K.hostElement).querySelector("#scroll-container").clientWidth,F=_.C$(K.hostElement).querySelector("#items").clientWidth;
K.offset<0?K.offset=0:K.offset+X>=F&&(K.offset=F-X)},M_Z=function(K){K.offset-=(_.C$(K.hostElement).querySelector("#scroll-container").clientWidth+K.marginWidthRight-K.minComponentWidth)/2-K.marginWidthLeft};
_.Oi.Object.defineProperties(xW.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var K=_.e8("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(K==-1)K=this.JSC$12277_cachedViewportHeight,K=K>1320?5:K>1020?4:K>730?3:K>430?2:1;else if(K==0)return 0;_.d2("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",K-1);K=_.e8("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(K>-1)return K;K=this.cachedViewportWidth;K=K>1600?6:K>1400?5:K>1300?4:K>1090?5:K>870?4:K>660?3:2;_.d2("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
K);return K},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.S("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
xW.prototype.observeShownItems_=xW.prototype.observeShownItems_;xW.prototype.onChildElementFocus_=xW.prototype.onChildElementFocus_;xW.prototype.onItemsTransitionEnd_=xW.prototype.onItemsTransitionEnd_;xW.prototype.onIronResize_=xW.prototype.onIronResize_;xW.prototype.prevClick_=xW.prototype.prevClick_;xW.prototype.nextClick_=xW.prototype.nextClick_;xW.prototype.setButtonsState_=xW.prototype.setButtonsState_;xW.prototype.requestButtonsStateUpdate_=xW.prototype.requestButtonsStateUpdate_;
xW.prototype.reposition_=xW.prototype.reposition_;xW.prototype.reset=xW.prototype.reset;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],xW.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CA.YtLazyListBehavior),_.g("design:type",Object)],xW.prototype,"ytLazyListBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],xW.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],xW.prototype,"atStart",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],xW.prototype,"atEnd",void 0);_.O([_.h(),_.g("design:type",Object)],xW.prototype,"startIndex",void 0);_.O([_.h(),_.g("design:type",Object)],xW.prototype,"endIndex",void 0);_.O([_.h({value:6}),_.g("design:type",Number)],xW.prototype,"initialCount",void 0);_.O([_.h(),_.g("design:type",Object)],xW.prototype,"scrollCount",void 0);_.O([_.h(),_.g("design:type",Object)],xW.prototype,"initialStartIndex",void 0);
_.O([_.h(),_.g("design:type",Object)],xW.prototype,"disableScrollEventListener",void 0);_.O([_.h(),_.g("design:type",Object)],xW.prototype,"supportComponentResize",void 0);_.O([_.h({value:function(){var K=this;return function(){return K.prevClick_()}}}),
_.g("design:type",Function)],xW.prototype,"boundPrevClick",void 0);_.O([_.h({value:function(){var K=this;return function(){return K.nextClick_()}}}),
_.g("design:type",Function)],xW.prototype,"boundNextClick",void 0);_.O([_.h(),_.g("design:type",Object)],xW.prototype,"useFloorScrolling",void 0);_.O([_.h(),_.g("design:type",Object)],xW.prototype,"isSearch",void 0);_.O([_.h(),_.g("design:type",Object)],xW.prototype,"dragging",void 0);_.O([_.h(),_.g("design:type",Object)],xW.prototype,"dragMouseStart",void 0);_.O([_.h(),_.g("design:type",Object)],xW.prototype,"dragOffsetStart",void 0);
_.O([_.h(),_.g("design:type",Object)],xW.prototype,"disableWheelScroll",void 0);_.O([_.h(),_.g("design:type",Object)],xW.prototype,"centerListItems",void 0);_.O([_.Hc("iron-resize"),_.so("guideOpened"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],xW.prototype,"onIronResize_",null);_.O([_.Hc("transitionend"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],xW.prototype,"onItemsTransitionEnd_",null);
_.O([_.Hc("focusin"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],xW.prototype,"onChildElementFocus_",null);_.O([_.so("shownItems"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],xW.prototype,"observeShownItems_",null);xW=_.O([_.qY()],xW);_.Nh.YtdHorizontalListBehavior=[];_.Nh.YtdHorizontalListBehavior.push(_.SL,_.k.YtRendererBehavior,_.CA.YtLazyListBehavior,_.RW.YtdGuideStateAwareBehavior,xW.prototype);var NBP=["APP_STATE","PI"];var nGt=_.lr(["about:blank"]),cBV={pushState:window.history.pushState,replaceState:window.history.replaceState};var IW=function(K){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=K;this.internalPushState=K.pushState.bind(K);this.internalReplaceState=K.replaceState.bind(K)};
IW.prototype.init=function(){this.initialized=!0};
IW.prototype.pushState=function(K,X){this.initialized||this.init();this.internalPushState&&this.internalPushState(K,"",X)};
IW.prototype.replaceState=function(K,X){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(K,"",X)};
IW.prototype.getState=function(){return this.history&&this.history.state};var poV=function(K){var X=function(){var F=K.apply(this,arguments)||this;F.boundHistoryPushState=!1;F.boundHistoryReplaceState=!1;F.debugInfo={};return F};
_.r(X,K);X.prototype.init=function(){var F=_.nJ("IFRAME");_.W$(F,_.Xs(nGt));F.sandbox="allow-same-origin";F.style.display="none";this.iframe=F;document.body.appendChild(F);this.bindHistoryStateFunctions();K.prototype.init.call(this)};
X.prototype.bindHistoryStateFunctions=function(){var F=this,P=[],H;this.iframe&&((H=this.iframe.contentWindow)==null?0:H.history)&&(H=this.iframe.contentWindow.history)&&(P.push(H),Object.getPrototypeOf(H)&&P.push(Object.getPrototypeOf(H)));window.history&&P.push(window.history);H=window.history;Object.getPrototypeOf(H)&&P.push(Object.getPrototypeOf(H));P.push(cBV);H=function(u){for(var J=null,Z=0;Z<P.length;Z++){var M=P[Z][u];if(typeof M==="function"){J=M.bind(window.history);F.debugInfo[u]=Z;break}}return J};
if(!this.boundHistoryReplaceState){var f=H("replaceState");f&&(this.internalReplaceState=f,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(H=H("pushState"))&&(this.internalPushState=H,this.boundHistoryPushState=!0)};
return X}(IW),BBW=function(){return poV.call(this,window.history)||this};
_.r(BBW,poV);BBW.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var kW=function(K){this.browserHistory=K;this.initialized=!1};
kW.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
kW.prototype.pushState=function(K,X){this.initialized||this.init();this.browserHistory.pushState(K,X)};
kW.prototype.replaceState=function(K,X){this.initialized||this.init();this.browserHistory.replaceState(K,X)};
kW.prototype.handlePopstate=function(K){return K.state};_.SAQ=function(K,X,F,P,H){this.endpoint=K;this.forward=X;this.historyEntry=F;this.JSC$26576_savedComponentState=P;this.legacyBorder=H===void 0?!1:H};var oGZ=function(K,X){this.rootData=K;this.scrollTop=X};var nk=new _.Oh("PAGE_REQUEST_TOKEN"),V1U=new _.Oh("FETCH_PBJ_TOKEN");_.Kf=new _.Oh("EPHEMERAL_STORE_TOKEN");_.XM=function(K){this.data=Object.assign({},K);var X;(X=this.data.innertubeResponse)==null||delete X.frameworkUpdates};
_.XM.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.CG)()};
_.Kk=function(K){return Object.assign({},K.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var LsL=function(){this.maxSize=100;this.timeToDataCache=new Map};
LsL.prototype.get=function(K){var X=this.timeToDataCache.get(K);X&&(this.timeToDataCache.delete(K),this.timeToDataCache.set(K,X));if(X&&X.rootData&&(_.S("web_use_response_store_for_history_cache")||_.S("mweb_use_new_history_manager"))){var F=_.i9().resolve(_.Kf),P=TBu(X),H=!!P;if(P){if(P.content){var f=FM(F,P.content);H&&f?X.rootData.response=_.Kk(f):H=!1}P.player&&(f=FM(F,P.player),H&&f?X.rootData.playerResponse=_.Kk(f):H=!1);P.reelSequence&&(F=FM(F,P.reelSequence),H&&F?X.rootData.reelWatchSequenceResponse=
_.Kk(F):H=!1)}H||(this.timeToDataCache.delete(K),X=void 0)}return X};
LsL.prototype.set=function(K,X){if(X.rootData&&(_.S("web_use_response_store_for_history_cache")||_.S("mweb_use_new_history_manager"))){var F=TBu(X),P=Object.assign({},X.rootData);F&&(F.content&&X.rootData.response&&(rBL(this,F.content,X.rootData.response),P.response=null),F.player&&X.rootData.playerResponse&&(rBL(this,F.player,X.rootData.playerResponse),P.playerResponse=null),F.reelSequence&&X.rootData.reelWatchSequenceResponse&&(rBL(this,F.reelSequence,X.rootData.reelWatchSequenceResponse),P.reelWatchSequenceResponse=
null));X=new oGZ(P,X.scrollTop)}this.timeToDataCache.has(K)?this.timeToDataCache.delete(K):this.timeToDataCache.size>=this.maxSize&&(F=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(F.value));this.maxSize!==0&&this.timeToDataCache.set(K,X)};
LsL.prototype.clear=function(){this.timeToDataCache.clear()};
var TBu=function(K){var X=_.i9().resolve(_.Nu(nk)),F;if((F=K.rootData)==null?0:F.endpoint)return X==null?void 0:gt9(X,K.rootData.endpoint);var P;_.yy(new _.nG("History snapshot response data does not contain endpoint",(P=K.rootData)==null?void 0:P.url));return null},rBL=function(K,X,F){if(K.maxSize>0){var P;
(K=(P=F.responseContext)==null?void 0:P.maxAgeSeconds)&&Number(K)>0&&(P=_.i9().resolve(_.Kf),F=NB(F,K),P.put(X,new _.XM(F)))}};var ABE=function(K,X,F){this.endpoint=X;this.JSC$26581_savedComponentState=F===void 0?null:F;this.entryTime=K};var X5P=1;var PR=function(K){var X=function(){var F=K.apply(this,[].concat(_.LZ(_.Ls.apply(0,arguments))))||this;F.historyEntryTime=0;F.historySnapshotCache=F.createHistoryCache();return F};
_.r(X,K);X.prototype.createHistoryCache=function(){return new LsL};
X.prototype.saveAndReplace=function(F,P,H){var f=window.location.href;var u=u===void 0?{}:u;var J=(J=this.browserHistory.getState())&&J.entryTime?J.entryTime:FIl();F=this.createNewHistoryEntry(F,u,J);this.saveSnapshot(J,P,H);this.replaceState(F,f||window.location.href)};
X.prototype.saveAndPush=function(F,P,H,f,u){u=u===void 0?{}:u;this.saveSnapshot(this.historyEntryTime,H,f);H=this.historySnapshotCache;f=this.historyEntryTime;var J=H.timeToDataCache.keys();J=_.D(J);for(var Z=J.next();!Z.done;Z=J.next())Z=Z.value,Z>f&&H.timeToDataCache.delete(Z);P=this.createNewHistoryEntry(P,u);this.pushState(P,F)};
X.prototype.saveSnapshot=function(F,P,H){this.historySnapshotCache.set(F,new oGZ(P,H))};
X.prototype.createNewHistoryEntry=function(F,P,H){H=H===void 0?FIl():H;return new ABE(H,F,P)};
X.prototype.handlePopstate=function(F){var P=K.prototype.handlePopstate.call(this,F),H=null,f=null,u=!1,J=null;P&&P.entryTime&&(J=this.historySnapshotCache.get(P.entryTime)||null,u=P.entryTime>this.historyEntryTime,this.historyEntryTime=P.entryTime,H=P.endpoint,f=P.JSC$26581_savedComponentState);this.handleHistoryCacheLoad(new _.SAQ(H,u,J,f),F);return P};
X.prototype.pushState=function(F,P){Number(F==null?void 0:F.entryTime)>=0&&(this.historyEntryTime=F.entryTime);K.prototype.pushState.call(this,F,P)};
X.prototype.replaceState=function(F,P){Number(F==null?void 0:F.entryTime)>=0&&(this.historyEntryTime=F.entryTime);K.prototype.replaceState.call(this,F,P)};
X.prototype.handleHistoryCacheLoad=function(){};
return X}(kW),jML=function(){var K=PR.call(this,new BBW)||this;
K.dispatchElement=null;K.entryIndex=0;return K};
_.r(jML,PR);_.z=jML.prototype;_.z.init=function(K){K=K===void 0?!0:K;PR.prototype.init.call(this);this.initialized||(K||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.z.handlePopstate=function(K){var X=null;K.state||(X="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return PR.prototype.handlePopstate.call(this,K);var F=new CustomEvent("yt-history-pop",{cancelable:!0});_.xr(this.dispatchElement,"yt-history-pop",[F,{errorMsg:X}]);_.IJ(this.dispatchElement,"yt-close-all-popups-action");if(!F.defaultPrevented){F=_.i9().resolve(_.ax);X=F.getCurrentData();var P=F.getCurrentPage();F=0;P?(P=_.xr(this.dispatchElement,"yt-get-page-offset",
[P]),P.length>0&&(F=P[0])):_.yy(new _.nG("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:X?X.page:"undefined"}));X&&(X.csn=_.AD());this.saveSnapshot(this.historyEntryTime,X,F)}return PR.prototype.handlePopstate.call(this,K)};
_.z.handleHistoryCacheLoad=function(K,X){K.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.D(_.IJ(this.dispatchElement,"yt-history-will-navigate",[X])).next().value||_.xr(this.dispatchElement,"yt-history-load",[X,K]))};
_.z.pushState=function(K,X){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var F=new _.nG("history.pushState is not a function",this.getDebugString());_.jF(F)}PR.prototype.pushState.call(this,K,X)};
_.z.replaceState=function(K,X){if(!this.browserHistory.boundHistoryReplaceState){var F=new _.nG("history.replaceState is not a function",this.getDebugString());_.jF(F)}PR.prototype.replaceState.call(this,K,X)};
_.z.saveAndPush=function(K,X,F,P,H){H=H===void 0?{}:H;F&&(F.csn=_.AD());PR.prototype.saveAndPush.call(this,K,X,F,P,H)};
_.z.getDebugString=function(){var K=[];this.initialized&&K.push("i");this.browserHistory.boundHistoryReplaceState&&K.push("bhr");this.browserHistory.boundHistoryPushState&&K.push("bhs");"replaceState"in this.browserHistory.debugInfo&&K.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&K.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&K.push("ei:"+String(this.entryIndex));return K.join(",")};
_.HR=function(K,X){K.init(!0);var F=K.browserHistory.getState();K.replaceState(F,C4(X))};
jML.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.sI=new _.Oh("DESKTOP_HISTORY_MANAGER_TOKEN");var woL=[10,20,30,40,50,60],zZ=function(){this.currentPartitionIndex=0},yBO=function(K){bzW({mainAppWeb:_.Um(),
survivalSli:{partitionMinute:K,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},Wst=function(K){bzW({mainAppWeb:_.Um(),
survivalSli:{partitionMinute:K,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},dZQ=function(K){return K.currentPartitionIndex>=0&&K.currentPartitionIndex<woL.length?woL[K.currentPartitionIndex]:-1},e2u=function(K){return K.currentPartitionIndex>0&&K.currentPartitionIndex-1<woL.length?woL[K.currentPartitionIndex-1]:-1};
zZ.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var K=e2u(this);K>0&&Wst(K);K=dZQ(this);K>0&&yBO(K);R2Z(this)}};
var R2Z=function(K){var X=dZQ(K);if(X>0){var F=e2u(K);F<0&&(F=0);K.intervalId=_.A9.addJob(function(){var P=e2u(K);P>0&&Wst(P);P=dZQ(K);P>0&&yBO(P);R2Z(K)},3,(X-F)*6E4);
K.currentPartitionIndex+=1}else K.currentPartitionIndex=-1};var UZC=function(){this.skipNextNavigation=!1},h2t=function(K,X,F){if(!X)return!1;
if(K.skipNextNavigation)return K.skipNextNavigation=!1;if(_.T(F,_.mc))return!1;var P,H,f;if((P=_.T(F,_.f$))==null?0:(H=P.browseEndpointContextSupportedConfigs)==null?0:(f=H.browseEndpointContextMainConfig)==null?0:f.skipConfirmation)return!1;var u;return((u=_.T(X.commandMetadata,_.g_))==null?void 0:u.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
UZC.prototype.showConfirmationDialog=function(K,X){this.navigateParams=X;this.customConfirmationCommand?_.i9().resolve(_.xU).resolveCommand(this.customConfirmationCommand):(X={openPopupAction:{popup:{confirmDialogRenderer:{title:_.GS(_.uY("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.GS(_.uY("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.GS(_.uY("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.GS(_.uY("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.GT.getInstance().triggerAction("yt-open-popup-action",X,K))};
UZC.prototype.cancelPendingNavigation=function(){var K;((K=this.navigateParams)==null?void 0:K.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var mZE=function(){},lkC=function(K,X,F,P,H,f,u){F=F===void 0?{}:F;
u=u===void 0?{}:u;var J=_.uZ.instance,Z,M=(Z=_.T(X,_.mc))==null?void 0:Z.url;return M?rzl(J,M,F,window.location.href,function(n,c){G7U(K,n,c,!1,!0,F,f,P)},function(){return!1}):Ri(J,X,F,window.location.href,uN(X),function(n,c){G7U(K,n,c,!1,!0,F,f,P)},H,u)},G7U=function(K,X,F,P,H,f,u,J){if(!K.JSC$12335_chunkHandler)if(F.page==="watch"||F.page==="learning_journey_watch")if(H||P){if(_.S("kevlar_continue_playback_without_player_response")){var Z;
var M=(Z=_.T(J,_.vg))==null?void 0:Z.videoId}K.JSC$12335_chunkHandler=new M1E(_.$f,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:P,previousVideoId:M},tempData:f},u)}else K.JSC$12335_chunkHandler=new qIZ(_.$f);else F.page==="shorts"&&H&&!P?K.JSC$12335_chunkHandler=new QXt(_.$f,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:f},u):K.JSC$12335_chunkHandler=new JlC(u);K.JSC$12335_chunkHandler.processChunk({endpoint:X,data:F});return K.JSC$12335_chunkHandler.aS.promise},
vGU=function(K,X,F,P,H){(F=_.H5u(F))&&G7U(K,X,F,!1,!0,P,void 0,H)};var akL=function(){this.pendingNavigationPromise=null};
_.z=akL.prototype;_.z.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.z.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.z.addEventListener=function(){throw Error("th");};
_.z.dispatchEvent=function(){throw Error("th");};
_.z.removeEventListener=function(){throw Error("th");};var t_L=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],ff=function(){_.ua.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];$ZT(this)};
_.r(ff,_.ua);ff.prototype.verifyUser=function(){var K=$ZT(this),X=K.logout;if(!K.sessionChange)return!0;this.dispatchEvent("ytsessionchange");X&&this.dispatchEvent("ytuserinvalid");return!1};
var $ZT=function(K){var X=t_L.map(function(H){var f;return(f=_.Jv.get(H))!=null?f:""}),F=X.some(function(H,f){return K.sessionCookies&&K.sessionCookies[f]!==""&&H===""}),P=X.some(function(H,f){return K.sessionCookies&&K.sessionCookies[f]!==H});
K.sessionCookies=X;return{logout:F,sessionChange:P}};
ff.prototype.clearTimeout=function(){this.scheduledJobId&&(_.A9.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var f0y=new _.Oh("POSTMESSAGE_TUNNEL_TOKEN");var HNy=["/parent_tools","/file_download","/artist_roster"],q1P=[EmT,bVq,C2l,iVd,N33,gmd,x3n,I2y];var ORU=new _.Oh("APP_ROOT");var DY=new _.Oh("NAVIGATION_CONFIRMATION_SERVICE");var V_C="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),gGL=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
uq=function(K,X){this.pendingNavigationPromise=null;this.JSC$12353_clientRoot=K;this.historyManager=X;this.logger=null;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new mZE;this.debugString=K.is;K={"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};_.ly(_.GT.getInstance(),K,this.JSC$12353_clientRoot)},iRN,xZO,IkC,k7L,NBL;
_.r(uq,akL);uq.prototype.reload=function(){_.Rj(window.location.href)};
var ffU=function(K){K.currentEndpoint&&_.T(K.currentEndpoint,_.J6)?K.reload():K.currentEndpoint&&K.navigate(K.currentEndpoint,!0,void 0,{disableCache:!0})};
uq.prototype.navigate=function(K,X,F,P,H,f,u,J){X=X===void 0?!1:X;F=F===void 0?{}:F;P=P===void 0?{}:P;var Z=_.i9().resolve(DY),M;if(!u&&h2t(Z,(M=this.currentEndpoint)!=null?M:void 0,K))return Z.showConfirmationDialog(this.JSC$12353_clientRoot.parentElement,{endpoint:K,reload:X,params:F,tempData:P,requestType:H,createScreenConfig:f}),!1;var n=_.wz();_.yZ(n,"eocs")||n.parkOrScheduleJob(function(){n.processSignal("eocs")},10,"eor");
u=uN(K);Z=P.autonav==="1";M=_.AD();ff.instance||(ff.instance=new ff);var c=ff.instance.verifyUser(),B;if(_.S("enable_dark_theme_only_on_shorts")){var L=document.documentElement.hasAttribute("dark"),A=_.n$(!0)==="USER_INTERFACE_THEME_DARK";if(u==="shorts"){if(!L)if(_.S("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var d;_.Rj((d=_.T(K==null?void 0:K.commandMetadata,_.g_))==null?void 0:d.url,void 0,void 0,window.top)}}else{var R;_.Rj(_.$U((R=_.T(K==null?
void 0:K.commandMetadata,_.g_))==null?void 0:R.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.S("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!L){var l;_.Rj(_.$U((l=_.T(K==null?void 0:K.commandMetadata,_.g_))==null?void 0:l.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(A!==L){var a;_.Rj(_.$U((a=_.T(K==null?void 0:K.commandMetadata,_.g_))==null?void 0:a.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(u==="watch"){if(EGC(_.i9().resolve(_.Wj),
K)&&(c||_.S("fix_miniplayer_navigation_killswitch")))return!1;_.S("block_all_player_prefetch_requests")||(B=sBu(_.In(_.qT),K,Z))}else{var E,V=(E=_.T(this.currentEndpoint,_.vg))==null?void 0:E.videoId;V&&_.MA.getInstance().then(function(Wy){Wy&&Wy.set("yt-miniplayer-shown-video-id",V)})}B&&(F.frags=B.missingFragments_.join(","));
d=null;var x;R=(x=_.T(K==null?void 0:K.commandMetadata,_.g_))==null?void 0:x.ignoreNavigation;if(!R)if(_.S("kevlar_command_url")){var N;d=(N=_.T(K==null?void 0:K.commandMetadata,_.g_))==null?void 0:N.url}else d=_.hcn(K,F);if(d&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&d==this.lastNavigationUrl)return _.T6({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.zt(d_(),"CANCELLED")}d&&(this.lastNavigationUrl=d);Nk4();_.d2("IS_HOMEPAGE_COLD",
!1);_.d2("IS_RESULTS_PAGE_COLD",!1);_.d2("IS_WATCH_PAGE_COLD",!1);K.loggingUrls&&K.loggingUrls.forEach(function(Wy){Wy.baseUrl&&_.m3(Wy.baseUrl)});
_.Q1l(K,f?f.layer:0)&&_.S("kevlar_flush_logs_on_away_navigation")&&_.A_();if(JFy(K))return!1;v$L(u,H);if(!d)return R||_.yy(new _.nG("Can't construct url for endpoint",K)),_.zt(d_(),"FAILURE"),!1;_.PSd();x=K&&_.T(K,_.f$)&&_.T(K,_.f$).browseId.startsWith("UC");F=(N=_.S("enable_dark_theme_only_on_shorts")&&u==="shorts"?!1:_.cI()&&document.documentElement.hasAttribute("dark")!==_.MD())?{themeRefresh:1}:{};N&&!_.YS()&&_.n$()==="USER_INTERFACE_THEME_DARK"&&(F.theme="dark");x=N||bRZ(d)&&!x&&!_.S("kevlar_disable_url_allowlist");
c||(x=!0);if(x||_.e8("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var Dl;var Mq=(Dl=window.top)==null?void 0:Dl.location.href}catch(Wy){var pO;Mq=(pO=Wy)==null?void 0:pO.message}_.yy(new _.nG("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:Mq}))}K=_.S("kevlar_redirect_on_window_killswitch")?window.top:window;e0(d);_.Rj(_.$U(d,F),void 0,void 0,K);_.zt(d_(),"ABORTED");return!1}_.S("kevlar_early_popup_close")&&_.xr(this.JSC$12353_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12335_chunkHandler=void 0;var y9;Mq=uN((y9=this.currentEndpoint)!=null?y9:void 0);(y9=u==="shorts"&&Mq==="shorts")||_.Hwn();_.hV(E0P)("nr",void 0);Z&&_.T6({webInfo:{navigationReason:"an"}});K.clickTrackingParams&&(P.itct=K.clickTrackingParams,P.csn=M);zkP(P);P.endpoint=JSON.stringify(K);_.S("enable_unknown_lact_fix_on_html5")&&(_.i9().resolve(_.BO),P.lact=_.xg());_.T8.isEmpty(P)||_.Oc(d,P);!_.S("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(f=Object.assign({},{layer:0},f,{parentLayer:3}));this.pendingNavigationPromise=f=lkC(this.pageFetcher,K,P,this.currentEndpoint,this.JSC$12353_isNetworkPromiseStale.bind(this),f,J);f=f.then(this.handleNavigateSuccess.bind(this,f,K,B,P),this.handleNavigateFail.bind(this,f,K));_.zC().navigationFinishPromise=f;X={endpoint:K,pageType:u,url:C4(d),reload:!!X,noProgressBar:y9};H&&(X.type=H);this.fireEvent("yt-navigate-start",X);B&&vGU(this.pageFetcher,K,B,P,this.currentEndpoint);
return!0};
uq.prototype.JSC$12353_isNetworkPromiseStale=function(K){return K!=this.pendingNavigationPromise};
var CLV=function(K,X,F,P,H){var f=uN(X);X={endpoint:X,pageType:f};H&&(X.errorMessage=H);_.yy(F);X.navigationDoneMs=_.Ac("nd");X.navigationErrorReason=P;K.fireEvent("yt-navigate-error",X)};
uq.prototype.handleNavigateFail=function(K,X,F){var P=void 0;F instanceof _.UD&&(P=F,RcM(F));if(this.JSC$12353_isNetworkPromiseStale(K))return _.pB(P);_.zt(d_(),"FAILURE");CLV(this,X,F,"101");return _.pB(F)};
uq.prototype.handleNavigateSuccess=function(K,X,F,P,H){if(this.JSC$12353_isNetworkPromiseStale(K))return _.F0();this.pendingNavigationPromise=null;if(!H)return X=new _.nG("Missing data in response for navigation endpoint",X),_.pB(X);if(H.reload)return window.location.reload(!0),_.F0();F&&(K={},_.T8.extend(K,_.H5u(F),H),H=K);var f,u;F=(f=H)==null?void 0:(u=f.timing)==null?void 0:u.responseStart;F!=null&&_.Ac("srt",F);_.Ac("pdc");var J,Z;f=(J=H)==null?void 0:(Z=J.timing)==null?void 0:Z.info;f!=null&&
(J=_.hV(_.i1M)(f),_.T6(J));_.zt(d_(),"SUCCESS");NBL(this,X,H,1,P);return _.F0()};
var bRZ=function(K){var X=K;_.S("kevlar_no_redirect_to_classic_2_ks")||(X=(new _.aJ(K)).getPath());if(X==="/"||X==="/red")return!1;var F=!0;V_C.forEach(function(P){K.indexOf(P)===0&&(F=!1)});
gGL.forEach(function(P){var H=P.url;_.S(P.expFlag)&&K.indexOf(H)===0&&(F=!1)});
return F};
uq.prototype.publishPageData=function(K){this.fireEvent("yt-page-data-fetched",{pageData:K})};
iRN=function(K,X,F,P,H,f){var u=null;X.page!=="watch"&&X.page!=="learning_journey_watch"||P?X.filler||_.xr(K.JSC$12353_clientRoot,"yt-stop-old-player",[X]):u=G7U(K.pageFetcher,H,X,F,!1,f,void 0,K.currentEndpoint);if(u)return u.then(K.publishPageData.bind(K,X));K.publishPageData(X);return _.F0()};
xZO=function(K,X,F){var P=null;if(!F)return P=new _.nG("Empty data",K.debugString,X);var H=F.response;if(!H)return P;var f={endpointType:uN(X)||"unknown"};H.responseContext?(H=H.responseContext.errors)&&(P=new _.nG("Errors in response context",K.debugString,X,H,f)):P=H.error||H.errorMetadata?new _.nG("Errors in response",K.debugString,X,H.error,H.errorMetadata,f):new _.nG("responseContext missing",K.debugString,X,Object.keys(H).sort().join(","),f);var u,J,Z,M;if(K=F==null?void 0:(u=F.response)==null?
void 0:(J=u.responseContext)==null?void 0:(Z=J.webResponseContextExtensionData)==null?void 0:(M=Z.webResponseContextDebugData)==null?void 0:M.debugErrorMessages)for(u=0;u<K.length;u++);return P};
IkC=function(K){var X,F,P,H;return K==null?void 0:(X=K.response)==null?void 0:(F=X.responseContext)==null?void 0:(P=F.errors)==null?void 0:(H=P.error)==null?void 0:H["0"]};
k7L=function(K,X){var F;if(F=X.url&&!X.url.startsWith("/clip"))F=X.url,F=!_.S("webfe_parse_debug_param_in_resolveurl_service")&&K.searchDebugUrlMatcher.test(F)||apT(F)?!0:!1;if(F)apT(X.url)&&_.tV(window.location.href).themeRefresh?(X=_.Vn(X.url,"themeRefresh"),_.HR(K.historyManager,X)):X.url&&!k7w(X.url)&&_.HR(K.historyManager,X.url);else if(X.endpoint){var P,H,f;(F=(P=X.endpoint)==null?void 0:(H=P.commandMetadata)==null?void 0:(f=H.webCommandMetadata)==null?void 0:f.url)&&!k7w(F)&&_.HR(K.historyManager,
F);F&&X.url&&F!=X.url&&!X.url.match("playnext=1")&&new _.nG("Response url mismatch in response data",K.debugString,F,X.url)}};
_.KIQ=function(K,X,F,P,H,f,u,J){f=f===void 0?!1:f;var Z=_.i9().resolve(DY),M;if(!J&&h2t(Z,(M=K.currentEndpoint)!=null?M:void 0,X))return Z.showConfirmationDialog(K.JSC$12353_clientRoot.parentElement,{endpoint:X,data:F,navigationType:P,tempData:H,isMiniplayer:f,isForwardHistoryNavigation:u==null?void 0:u.forward}),_.F0();K.pageFetcher.JSC$12335_chunkHandler=void 0;return NBL(K,X,F,P,H,f)};
NBL=function(K,X,F,P,H,f){f=f===void 0?!1:f;K.isMiniplayerExpansion=f;var u=P===2;K.currentEndpoint=X;K.numNavigations++;K.numNavigations&&(b3y.navigationCount=K.numNavigations);_.d2("NUM_NAV",K.numNavigations);var J=xZO(K,X,F);if(J)return CLV(K,X,J,"102",IkC(F)),_.pB(J);var Z,M,n,c;J=F.rootVe||(F==null?void 0:(Z=F.response)==null?void 0:(M=Z.responseContext)==null?void 0:(n=M.webResponseContextExtensionData)==null?void 0:(c=n.ytConfigData)==null?void 0:c.rootVisualElementType);!u&&F&&k7L(K,F);var B,
L;Z=F==null?void 0:(B=F.response)==null?void 0:(L=B.responseContext)==null?void 0:L.maxAgeSeconds;if(!u&&!isNaN(Z)){var A;_.S("kevlar_use_response_ttl_to_invalidate_cache")?A=(0,_.CG)()+1E3*Z:_.S("kevlar_always_invalidate_cache")&&(A=0);isNaN(A)||(F.expirationTime=A)}_.S("html5_enable_ssap_entity_id")&&u&&F.playerResponse&&(F.playerResponse.cacheMetadata={isCacheHit:!0});_.In(_.qT).prefetchCache_.clear();u||F.page!=="watch"||F.type!=="reduced"&&P!==1?P=iRN(K,F,u,!!f,X,H):(K.publishPageData(F),P=_.F0());
H=P.then(function(){var d=uN(X);d={endpoint:X,pageType:d,fromHistory:u,response:F};d.navigationDoneMs=_.Ac("nd");K.fireEvent("yt-navigate-finish",d)});
F.csn&&J&&F.clientSideGrafts&&P.then(K.attachClientSideGrafts.bind(K,F,_.r_()));return H};
_.z=uq.prototype;_.z.attachClientSideGrafts=function(K,X){K.clientSideGrafts&&X&&K.clientSideGrafts.forEach(function(F){if(X&&F){var P=_.QB(F);_.S("combine_ve_grafts")?_.uH().graftServerVe(F,X):_.Us(K.csn,X,P)}})};
_.z.handleSignalActionHistoryBack=function(){window.history.back()};
_.z.handleSignalActionCloseWindow=function(){window.close()};
_.z.handleSignalActionReloadPage=function(){this.reload()};
_.z.handleSignalActionSoftReloadPage=function(){ffU(this)};
_.z.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.z.fireEvent=function(K,X){K=new CustomEvent(K,{bubbles:!0,cancelable:!1,composed:!0,detail:X});this.dispatchEvent(K)};
_.z.addEventListener=function(K,X){this.JSC$12353_clientRoot.addEventListener(K,X)};
_.z.dispatchEvent=function(K){return this.JSC$12353_clientRoot.dispatchEvent(K)};
_.z.removeEventListener=function(K,X){this.JSC$12353_clientRoot.removeEventListener(K,X)};
uq[$0]=[ORU,_.sI];_.es9=new bm("browse","h8y2qb");_.RsT=new bm("search","JzFVk");_.UNP=new bm("shorts","xwEKAe");_.hsl=new bm("watchFixie","nmfa2d");_.mNw=new bm("watchFlexy","CF909");_.GR3=new bm("watchGrid","Tm0L3c");_.l3d=new bm("watchLearningJourney","L3n37");var X5L;var qS=function(){return _.G.apply(this,arguments)||this};
_.r(qS,_.G);_.Oi.Object.defineProperties(qS,{template:{configurable:!0,enumerable:!0,get:function(){if(X5L===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);X5L=K}K=X5L;return K}}});
_.O([_.W(FsL.YtPlayerBehavior),_.g("design:type",Object)],qS.prototype,"ytPlayerBehavior",void 0);qS=_.O([_.v({is:"ytd-player"})],qS);var FIQ;var PSC;var HNN;var Jl=function(){var K=_.G.apply(this,arguments)||this;K.forceModernIconButton=!1;K.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return K};
_.r(Jl,_.G);Jl.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]]"}}}}}};
Jl.prototype.handleAccountLinkingStateChangedCommand=function(K){if(K=_.T(K,u7W)){var X,F=(X=this.data)==null?void 0:X.providerKey;X=K.providerKey;F&&X&&F.id===X.id&&F.subject===X.subject&&(K=K.linked,K!==void 0&&(this.set("data.linked",K),this.notifyPath("data.linked"),_.S("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(K)))}};
Jl.prototype.setPlayerAccountLinkState=function(K){var X=new ydn;wqT(X,WMy(new dwO,K));var F=_.$f();F&&F.getPlayerPromise().then(function(P){P.setAccountLinkState(_.iW(X.JSC$10074_serializeBinary(),4));P.updateAccountLinkingConfig(K)})};
Jl.prototype.handleShowAccountLinkDialog=function(){var K=this.get("button.buttonRenderer.command");K&&_.HW([K],this.hostElement)};
_.Oi.Object.defineProperties(Jl.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}}}});
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Jl.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Jl.prototype,"ytRendererBehavior",void 0);_.O([_.W([_.NT.YtActionHandlerBehavior]),_.g("design:type",Object)],Jl.prototype,"actionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Jl.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],Jl.prototype,"overrides",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Jl.prototype,"forceModernIconButton",void 0);_.O([_.h({value:"bottom"}),_.g("design:type",String)],Jl.prototype,"buttonTooltipPosition",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],Jl.prototype,"forceIconButton",void 0);_.O([_.h(),_.g("design:type",Boolean)],Jl.prototype,"disableTextTransform",void 0);
_.O([_.U("data","data.linked","data.isWarning"),_.g("design:type",Object),_.g("design:paramtypes",[])],Jl.prototype,"button",null);Jl=_.O([_.v({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],Jl);
_.t(Jl,"ytd-account-link-button-renderer",function(){if(HNN!==void 0)return HNN;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return HNN=K},{mode:1});var s1L;var zNE=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],ZY=function(){return _.G.apply(this,arguments)||this};
_.r(ZY,_.G);ZY.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
ZY.prototype.updateButtonActiveState=function(){var K=this,X=!!zNE.find(function(F){return K.currentState===F});
this.button&&(this.button.isPressed=X)};
_.Oi.Object.defineProperties(ZY.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.playlistLoopStateEntity)==null?void 0:K.state)||((X=this.data)==null?void 0:X.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var K=void 0,X;if(this.currentState&&((X=this.data)==null?0:X.states)){X=_.D(this.data.states);for(var F=X.next();!F.done;F=X.next()){F=_.T(F.value,_.ybZ);var P=void 0;if(((P=F)==null?void 0:P.state)===this.currentState){K=F;break}}}return K}}});
ZY.prototype.updateButtonActiveState=ZY.prototype.updateButtonActiveState;_.O([_.W(_.jn),_.g("design:type",Object)],ZY.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ZY.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],ZY.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.h({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.o99}),_.g("design:type",Object)],ZY.prototype,"playlistLoopStateEntity",void 0);_.O([_.h(),_.g("design:type",Object)],ZY.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Boolean)],ZY.prototype,"forceIconOnly",void 0);_.O([_.fa("ytd-button-renderer"),_.g("design:type",_.t1)],ZY.prototype,"button",void 0);
_.O([_.U("data","playlistLoopStateEntity"),_.g("design:type",Object),_.g("design:paramtypes",[])],ZY.prototype,"currentState",null);_.O([_.so("currentButtonStateRenderer"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ZY.prototype,"updateButtonActiveState",null);_.O([_.U("currentState"),_.g("design:type",Object),_.g("design:paramtypes",[])],ZY.prototype,"currentButtonStateRenderer",null);
ZY=_.O([_.v({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],ZY);
_.t(ZY,"ytd-playlist-loop-button-renderer",function(){if(s1L!==void 0)return s1L;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return s1L=K},
{mode:1});var f0T;var DXC=_.uY("DOWNLOAD",{},"Download"),uKt=_.uY("DOWNLOADING",{},"Downloading"),q1U=_.uY("DOWNLOADED",{},"Downloaded"),JFN=_.uY("RETRY",{},"Retry"),Yz=function(){var K=_.G.apply(this,arguments)||this;K.forceIconButton=!1;K.forceIconOnly=!1;K.overrides=!1;K.buttonTooltipPosition=!1;K.styleActionButton=!1;K.disableTextTransform=!1;K.downloadProgress=0;K.isDownloadComplete=!1;K.isHidden=!0;K.transferState="TRANSFER_STATE_UNKNOWN";K.isVideoDeletedByUser=!1;K.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return K};
_.r(Yz,_.G);_.z=Yz.prototype;_.z.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.z.dataChanged=function(){var K;(K=this.data)!=null&&K.text||(K=_.rI(_.aA().getState(),this.videoId),this.updateButtonState(K))};
_.z.computeVideoId=function(K){return K};
_.z.showHideButton=function(){this.updateButtonVisibility()};
_.z.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.z.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.z.updateButtonState=function(K){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==uKt||!_.J7(K))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(K){case "TRANSFER_STATE_UNKNOWN":K=DXC;var X="OFFLINE_DOWNLOAD";var F="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":K=JFN;X="OFFLINE_DOWNLOAD";F="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":K=q1U;X="OFFLINE_PIN";F="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":K=
uKt;X="OFFLINE_DOWNLOADING_ZERO";F="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":K=JFN;X="OFFLINE_DOWNLOAD";F="ACTION_RETRY";break;default:K=DXC,X="OFFLINE_DOWNLOAD",F="ACTION_ADD"}this.isVideoDeletedByUser&&(K=DXC,X="OFFLINE_DOWNLOAD",F="ACTION_ADD");var P=Object.assign({},this.data);P.text=_.GS(K);P.tooltip=K;P.icon={iconType:X};P.size="SIZE_DEFAULT";P.style="STYLE_DEFAULT";_.T(P.command,_.Xj)&&(_.T(P.command,_.Xj).action=F);this.set("data",P)}};
_.z.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var K="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?K="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?K="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?K="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?K="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?K="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(K="OFFLINE_PIN",this.isDownloadComplete=!0);var X;K!==((X=this.data.icon)==null?void 0:X.iconType)&&(X=Object.assign({},this.data),X.text=_.GS(uKt),X.tooltip=uKt,X.icon={iconType:K},_.T(X.command,_.Xj)&&(_.T(X.command,_.Xj).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",X))}};
Yz.prototype.updateProgress=Yz.prototype.updateProgress;Yz.prototype.onTransferStateChanged=Yz.prototype.onTransferStateChanged;Yz.prototype.showHideButton=Yz.prototype.showHideButton;Yz.prototype.dataChanged=Yz.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Yz.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],Yz.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Yz.prototype,"forceIconButton",void 0);
_.O([_.h(),_.g("design:type",Object)],Yz.prototype,"forceIconOnly",void 0);_.O([_.h(),_.g("design:type",Object)],Yz.prototype,"overrides",void 0);_.O([_.h(),_.g("design:type",Object)],Yz.prototype,"buttonTooltipPosition",void 0);_.O([_.h(),_.g("design:type",Object)],Yz.prototype,"styleActionButton",void 0);_.O([_.h(),_.g("design:type",Object)],Yz.prototype,"disableTextTransform",void 0);
_.O([_.h({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.g("design:type",String)],Yz.prototype,"videoId",void 0);_.O([_.h(),_.g("design:type",Object)],Yz.prototype,"data",void 0);_.O([_.h({selector:wI,selectorArgs:["videoId"]}),_.g("design:type",Object)],Yz.prototype,"downloadProgress",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Yz.prototype,"isDownloadComplete",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Yz.prototype,"isHidden",void 0);_.O([_.h({selector:_.rI,selectorArgs:["videoId"]}),_.g("design:type",String)],Yz.prototype,"transferState",void 0);_.O([_.h({selector:_.d2P,selectorArgs:["videoId"]}),_.g("design:type",Object)],Yz.prototype,"isVideoDeletedByUser",void 0);_.O([_.h({selector:Ap9,selectorArgs:["videoId"]}),_.g("design:type",Object)],Yz.prototype,"offlineabilityState",void 0);
_.O([_.h({value:!0}),_.g("design:type",Boolean)],Yz.prototype,"showTooltips",void 0);_.O([_.h({value:!0}),_.g("design:type",Boolean)],Yz.prototype,"sendCommandWhenDisabled",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],Yz.prototype,"disabled",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Yz.prototype,"dataChanged",null);
_.O([_.JA("offlineabilityState"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Yz.prototype,"showHideButton",null);_.O([_.JA("transferState","isVideoDeletedByUser"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Yz.prototype,"onTransferStateChanged",null);_.O([_.JA("downloadProgress"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Yz.prototype,"updateProgress",null);
Yz=_.O([_.v({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],Yz);
_.t(Yz,"ytd-download-button-renderer",function(){if(f0T!==void 0)return f0T;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return f0T=K},{mode:2});var ZNU;var Y1U,Q1Z=function(){if(Y1U!==void 0)return Y1U;var K=document.createElement("template");_.w(K,'\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 Y1U=K};var MmC=_.S("web_button_rework")&&_.RU("BUTTON_REWORK")||_.S("web_button_rework_with_live"),n9Z=_.kU("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,QE=function(){var K=_.G.apply(this,arguments)||this;K.isPressed=!1;K.forceIconButton=!1;K.forceIconOnly=!1;K.forceModernIconButton=!1;K.alignByText=!1;K.isShorts=!1;K.animatedText=!1;K.shouldAnimate=!1;K.JSC$12391_browserSupportsAnimation=_.S("web_supports_animations_api");K.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};K.onTap=function(){var X;if((X=K.data)==null||!X.defaultNavigationEndpoint){var F;X=!((F=K.data)==null?0:F.isToggled);var P;if((P=K.data)==null||!P.preventAutoToggle){K.shouldAnimate=!1;K.disableTextUpdateJobId&&_.A9.cancelJob(K.disableTextUpdateJobId);K.disableTextUpdateJobId=_.A9.addLowPriorityJob(function(){K.disableTextUpdateJobId=void 0},n9Z);
var H;K.set("data.isToggled",!((H=K.data)==null?0:H.isToggled));F=K.getInnertubeIcon();P={toggled:X,actions:{}};F&&(P.actions[F.toLowerCase()]=X);_.iX(K.hostElement,"yt-toggle-button",P)}}};
return K};
_.r(QE,_.G);_.z=QE.prototype;_.z.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.A9.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.z.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.z.toggle=function(K){var X;this.set("data.isToggled",K!==void 0?K:!((X=this.data)==null?0:X.isToggled))};
_.z.handleUpdateToggleButtonStateCommand=function(K){if(this.data){K=_.T(K,BdW);var X,F,P,H=(X=this.data)==null?void 0:(F=X.toggleButtonSupportedData)==null?void 0:(P=F.toggleButtonIdData)==null?void 0:P.id;H&&K&&H===(K==null?void 0:K.buttonId)&&this.set("data.isToggled",K.toggled)}};
_.z.handleUpdateToggleButtonTextAction=function(K){if(this.data){K=_.T(K,KQC);var X,F,P,H=(X=this.data)==null?void 0:(F=X.toggleButtonSupportedData)==null?void 0:(P=F.toggleButtonIdData)==null?void 0:P.id;H&&K&&H===(K==null?void 0:K.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=K.defaultNumericalValue,this.set("data.defaultText",K.defaultText),this.set("data.toggledText",K.toggledText),this.shouldAnimate=!1)}};
_.z.getInnertubeIcon=function(){var K=this.data;if(K){var X,F,P=((X=K.defaultIcon)==null?0:X.iconType)?(F=K.defaultIcon)==null?void 0:F.iconType:null,H,f;X=((H=K.toggledIcon)==null?0:H.iconType)?(f=K.toggledIcon)==null?void 0:f.iconType:P;return K.isToggled?X:P}};
_.z.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.Oi.Object.defineProperties(QE.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var K={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$12391_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var X=K.renderer;var F=K.element;var P=K.toggled;var H=K.onTapCallback;var f=K.commandClientArgs;var u=K.overrides;var J=K.forceIcon;var Z=K.forceModernIconButton;var M=K.forceDisabled;var n=K.useAnimatedText;var c=K.animatedTextProps;K=AFy(X,P);J=!X.defaultIcon||!J&&X.defaultText?X.defaultIcon?"leading":void 0:Z?"icon-only":"icon-only-40";J==="icon-only-40"&&(K.type="text");var B;Z=Object;var L=Z.assign,A;a:switch((A=
X.style)==null?void 0:A.styleType){case "STYLE_COMPACT_GRAY":A={size:"S"};break a;default:A={size:"M"}}var d=!!P;var R=(R=P&&X.toggledText||X.defaultText)?_.TD(R):void 0;n?(n=_.lj(P&&X.toggledText||X.defaultText))&&c&&!isNaN(Number(c.numberValue))?(c.numberText=n,P&&(c.numberValue+=1),n=c):n=void 0:n=void 0;var l,a,E,V;var x=(c=((a=P?X.toggledAccessibilityData||((x=X.toggledText)==null?void 0:x.accessibility):X.accessibilityData||((l=X.defaultText)==null?void 0:l.accessibility))==null?void 0:(E=a.accessibilityData)==
null?void 0:E.label)||((V=X.accessibility)==null?void 0:V.label))?c:_.lj(P&&X.toggledText||X.defaultText);M=M===void 0?X.isDisabled:M;F=rFO(X,P,H,F,f);P=TXy(X,P);P!=null&&P.length?(P=_.Wn({innertubeCommand:chM(P),forceNewState:!0}),P=d$(P)?P:void 0):P=void 0;X=L.call(Z,{},K,A,{iconPosition:J},u,{focused:!1,toggled:d,toggleable:!0,formattedButtonText:R,animatedTextProps:n,accessibilityLabel:x,disabled:M,onTap:F,aTagConfig:P},tHP((B=X.colorData)==null?void 0:B.basicColorPaletteData));X.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(X.type="filled");return X}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var K=this.getInnertubeIcon();if(K)return _.Fl(K)}}});
QE.prototype.resetAnimation=QE.prototype.resetAnimation;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],QE.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],QE.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],QE.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],QE.prototype,"data",void 0);
_.O([_.h(),_.g("design:type",Object)],QE.prototype,"isPressed",void 0);_.O([_.h(),_.g("design:type",Object)],QE.prototype,"forceIconButton",void 0);_.O([_.h(),_.g("design:type",Object)],QE.prototype,"forceIconOnly",void 0);_.O([_.h(),_.g("design:type",Object)],QE.prototype,"forceModernIconButton",void 0);_.O([_.h(),_.g("design:type",Object)],QE.prototype,"alignByText",void 0);_.O([_.h(),_.g("design:type",Object)],QE.prototype,"overrides",void 0);
_.O([_.h(),_.g("design:type",Boolean)],QE.prototype,"disabled",void 0);_.O([_.h(),_.g("design:type",Object)],QE.prototype,"isShorts",void 0);_.O([_.h(),_.g("design:type",Object)],QE.prototype,"buttonTooltipPosition",void 0);_.O([_.h(),_.g("design:type",Object)],QE.prototype,"animatedText",void 0);_.O([_.h(),_.g("design:type",String)],QE.prototype,"textNumberValue",void 0);_.O([_.h({computed:"computeTooltip(data, data.isToggled)"}),_.g("design:type",Object)],QE.prototype,"tooltip",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],QE.prototype,"resetAnimation",null);_.O([_.U("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.g("design:type",Object),_.g("design:paramtypes",[])],QE.prototype,"computedButtonShape",null);_.O([_.U("data.*"),_.g("design:type",Object),_.g("design:paramtypes",[])],QE.prototype,"computedIcon",null);
QE=_.O([_.v({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],QE);MmC&&_.t(QE,"ytd-toggle-button-renderer",Q1Z,{mode:_.Ig("kevlar_poly_si_batch_j081")?1:2});var LS=_.$c(function(K){function X(M){var n;return _.q(function(c){if(c.nextAddress==1)return(n=!w54(M,J())||!J().enabled)?c.jumpTo(2):_.Y(c,RNn(),3);c.nextAddress!=2&&(n=c.yieldResult);if(n)return c.return();F();setTimeout(function(){u(!1)},1500);
_.JT(c)})}
function F(){setTimeout(function(){u(!0);var M;(M=P.lottieEl)==null||M.goToAndPlay(0)},150)}
var P=_.kf(),H=_.D(_.u_(!1,void 0,"JJXzp")),f=H.next().value,u=H.next().value,J=_.ag(K.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.AV(function(){var M,n;((M=K.settings)==null?void 0:(n=M.call(K))==null?void 0:n.uniqueId)==="this is not intended behavior"&&_.yy(new _.nG("Smartimation Settings is undefined"))});
_.rs(function(){J().experimentEnabled&&(J().enabled?yFy(X):(u(!1),WIy(X)),_.AZ(function(){WIy(X)}))},"FRiAUe");
_.rs(function(){J().timings.join("");J().experimentEnabled&&(dXy(J()),_.AZ(function(){eNO(J())}))},"VKiJOe");
var Z=_.Qs(function(){var M=P,n=J().uniqueId+"-border",c,B;var L="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((B=(c=_.i9().resolve(_.Nu(_.m$)))==null?void 0:c())!=null&&B?"dark":"light")+"_v2.json";return{animationRef:M,animationConfig:{name:n,autoplay:!1,loop:!1,path:L}}},void 0,"tgykab");
H={};return _.Q("yt-smartimation",{class:_.HO(K.className,"smartimation",(H["smartimation--experiment-enabled"]=function(){return J().experimentEnabled},H["smartimation--active-border"]=f,H["smartimation--enable-masking"]=UXy(),H))},_.Q(_.p,{cond:function(){return J().experimentEnabled},
then:function(){return _.Q("div",{class:"smartimation__border"},_.Q(_.se,{className:"smartimation__border-gradient",data:Z,animationName:function(){return Z().animationConfig.name}}))}}),_.Q("div",{class:"smartimation__content"},K.children))},"B");
LS.idomCompat=!0;_.EP(LS,"yt-smartimation",{props:{className:_.vU,settings:_.vU}});var MS=function(){var K=_.G.apply(this,arguments)||this;K.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};K.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};K.shouldEnableSmartimation=!1;return K};
_.r(MS,_.G);MS.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
MS.prototype.onDataChanged=function(){var K,X;this.shouldEnableSmartimation=(((K=this.data)==null?void 0:(X=K.timedAnimationData)==null?void 0:X.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
MS.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var K=_.T(this.data.likeButton,_.w4),X=_.T(this.data.dislikeButton,_.w4);return!!((K==null?0:K.isToggled)||(X==null?0:X.isToggled))};
MS.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]]"}}}}}};
_.Oi.Object.defineProperties(MS.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var K,X,F=((K=this.data)==null?void 0:(X=K.timedAnimationData)==null?void 0:X.animationTiming)||[];return{uniqueId:"like-dislike",timings:F,enabled:this.shouldEnableSmartimation,experimentEnabled:F.length>0}}}});
MS.prototype.onDataChanged=MS.prototype.onDataChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],MS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],MS.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],MS.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],MS.prototype,"likeButtonOverride",void 0);_.O([_.h(),_.g("design:type",Object)],MS.prototype,"dislikeButtonOverride",void 0);
_.O([_.U("shouldEnableSmartimation"),_.g("design:type",Object),_.g("design:paramtypes",[])],MS.prototype,"smartimationSettings",null);_.O([_.so("data"),_.Hc("yt-toggle-button"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MS.prototype,"onDataChanged",null);MS=_.O([_.v({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],MS);
_.t(MS,"ytd-segmented-like-dislike-button-renderer",function(){if(ZNU!==void 0)return ZNU;var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return ZNU=K},{mode:1});var cFN;var p5Z;(p5Z=document.body)==null||p5Z.setAttribute("rounded-container","");var BXW={};BXW.YtToggleButtonBehavior=[_.NT.YtActionHandlerBehavior,ZP.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 K=this.data.isToggled;if(!this.isModal_(K)){if(!this.data.preventAutoToggle){this.toggle();var X={toggled:this.data.isToggled,actions:{}};X.actions[this.buttonIcon]=this.data.isToggled;_.iX(this.hostElement,"yt-toggle-button",X)}X=this.data.defaultServiceEndpoint||null;var F=this.data.toggledServiceEndpoint||null;if(X&&F||X&&this.data.preventAutoToggle)K=K?F:X,X=this.disableCommandHandlerOverride,_.S("killswitch_toggle_button_behavior_resolve_command")||X?_.Kl(this.hostElement,
[K]):_.sP(K,this.hostElement),_.iX(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:K})}},
stateChanged_:function(){var K=this.data;if(K){var X=K.isToggled;this._setEndpoint(this.computeEndpoint_(K));this._setServiceEndpoint(this.computeServiceEndpoint_(K));this._setButtonIcon(this.computeButtonIcon_(K,X));this._setButtonText(this.computeButtonText_(K,X));this._setButtonAccessibility(this.computeAccessibility_(K,X));this._setButtonTooltip(this.computeTooltip_(K,X));this._setButtonClass(this.computeButtonClass_(K,X));this._setIconPositionType(this.computeIconPositionType_(K));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=X):this.elements_.button.setAttribute("aria-pressed",X));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=X)}},
shouldSetIconActiveState_:function(){return _.S("kevlar_system_icons")},
toggle:function(K){this.set("data.isToggled",K!==void 0?K:!this.data.isToggled);_.S("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(K){if(K){var X,F;return!!((X=this.data)==null?0:(F=X.toggledServiceEndpoint)==null?0:F.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(K){return K&&K.defaultNavigationEndpoint||null},
computeButtonIcon_:function(K,X){var F=K&&K.defaultIcon?_.Fl(K.defaultIcon.iconType):null;K=K&&K.toggledIcon?_.Fl(K.toggledIcon.iconType):F;return X?K:F},
handleUpdateToggleButtonStateCommand_:function(K){K=K.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==K.buttonId&&this.toggle(K.toggled)},
computeButtonText_:function(K,X){return K?X&&K.toggledText||K.defaultText||null:null},
computeAccessibility_:function(K,X){return K?(X?this.get("toggledAccessibilityData.accessibilityData",K):this.get("accessibilityData.accessibilityData",K))||K.accessibility||null:null},
computeTooltip_:function(K,X){return K?X&&K.toggledTooltip||K.defaultTooltip||null:null},
computeButtonClass_:function(K,X){if(!K)return"";var F="",P=K.toggledStyle||K.style;if(X=X?P:K.style){X.styleType&&(X=X.styleType);try{F+=X.toLowerCase().replace(/_/g,"-")+" "}catch(H){_.Wu(H,X,typeof X),_.yy(H)}}if(K=K.size){K.sizeType&&(K=K.sizeType);try{F+=K.toLowerCase().replace(/_/g,"-")+" "}catch(H){_.Wu(H,K,typeof K),_.yy(H)}}return F.trim()},
computeIconPositionType_:function(K){return K&&K.iconPosition||null},
computeServiceEndpoint_:function(K){var X=K&&K.serviceEndpoint,F=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return X?X:F&&K.command?K.command:null},
handleUpdateToggleButtonTextAction_:function(K){K=K.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==K.buttonId&&(this.set("data.defaultText",K.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",K.toggledText),this.notifyPath("data.toggledText"))}}];_.L4("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var S1T=_.S("web_button_rework")&&_.RU("BUTTON_REWORK")||_.S("web_button_rework_with_live"),nf=function(){var K=_.G.apply(this,arguments)||this;K.systemIcons=_.S("kevlar_system_icons");K.roundedContainer=!0;return K};
_.r(nf,_.G);nf.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
nf.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var K=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var X={toggled:!!this.data.isToggled,actions:{}};X.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var F,P;X.actions.playlistId=(F=this.data.defaultServiceEndpoint)==null?void 0:(P=F.playlistEditEndpoint)==null?void 0:P.playlistId;_.iX(this.hostElement,"yt-toggle-button",X)}(K=K?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(K)}};
nf.prototype.onYtNavigate=function(K){var X=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(K.detail.endpoint);X&&(K.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(X))};
_.Oi.Object.defineProperties(nf,{template:{configurable:!0,enumerable:!0,get:function(){if(cFN===void 0){var K=document.createElement("template");_.w(K,"\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");K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);cFN=K}K=cFN;return K}}});
nf.prototype.onYtNavigate=nf.prototype.onYtNavigate;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],nf.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],nf.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.v9),_.g("design:type",Object)],nf.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.W(BXW.YtToggleButtonBehavior),_.g("design:type",Object)],nf.prototype,"ytToggleButtonBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],nf.prototype,"data",void 0);_.O([_.h({value:!0}),_.g("design:type",Boolean)],nf.prototype,"showTooltips",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],nf.prototype,"systemIcons",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],nf.prototype,"roundedContainer",void 0);_.O([_.Hc("yt-navigate"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],nf.prototype,"onYtNavigate",null);
nf=_.O([_.v({is:"ytd-toggle-button-renderer",disableElementRegistration:S1T})],nf);var o9O;_.cR=new _.Oh("PANEL_CONTROLLER_TOKEN");_.pf=new _.Oh("SHEET_CONTROLLER_TOKEN");_.BR=new _.Oh("DIALOG_CONTROLLER_TOKEN");o9O=new _.Oh("DIALOG_CONTAINER_TOKEN");var ONP=_.uY("DOWNLOAD",{},"Download"),VmO=_.uY("DOWNLOADING",{},"Downloading"),g9M=_.uY("DOWNLOADED",{},"Downloaded"),E9n=_.uY("RETRY",{},"Retry");var CS9=[],NXP=!1;var LIC=_.$c(function(K){var X=H_P,F=function(){return""},P=Kwl(K.data),H=XBl(K.data),f=FwP(K.data),u=P5T(K.data);
X=function(){var J=K.data(),Z=tmy(J,P(),H(),f(),u()),M=!!J.videoId,n=Z.text;return{title:M?n:void 0,tooltip:M?void 0:n,accessibilityText:n,onTap:Z.onTap,iconName:Z.iconType,style:J.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:Z.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:J.buttonSize}};
F={};F=_.HO("ytDownloadButtonViewModelHost",(F.ytDownloadButtonViewModelIsHidden=function(){var J=K.data(),Z=u();return J.playlistId||Z()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||Z()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},F));
return _.Q("download-button-view-model",{class:F},_.Q(_.Af,{data:X}))},"C");
LIC.idomCompat=!0;var rFW=_.$c(function(K){var X=K.backgroundLottieRef;var F=K.foregroundLottieRef;var P=K.children;var H=K.wrapperClass;var f=K.disableAnimation;K=function(){return(_.S("web_animated_actions")||_.S("web_animated_actions_v2"))&&!(f==null?0:f())};
return _.Q("yt-animated-action",{class:_.HO("animated-action__container",H)},_.Q("div",{class:"animated-action__content-with-background"},_.Q(_.p,{cond:K,then:function(){return _.Q(TXT,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:X==null?void 0:X(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(sel()?"dark":"light")+"_v5.json"}}}})}}),P),_.Q(_.p,{cond:K,
then:function(){return _.Q(TXT,{lottiePlayerProps:function(){return{animationRef:F==null?void 0:F(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(sel()?"dark":"light")+"_v4.json"}}}})}}))},"D");
rFW.idomCompat=!0;var TXT=_.$c(function(K){var X=K.wrapperClass;var F=K.lottieClass;var P=K.lottiePlayerProps;return _.Q("div",{class:_.HO("animated-action__lottie",X),"aria-hidden":"true"},_.Q(_.se,{className:F,data:P,animationName:function(){return P().animationConfig.name}}))},"E");var zGy={isOpen:!1};var DQy={isAllowed:!1};var qf4={errorMessage:"",title:"",privacy:"",isDisabled:!0};var Z_3={isOpen:!1};var Qeq={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var AFN={response:void 0};var nyl=function(K,X){K=K===void 0?AFN:K;switch(X.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},K,{response:X.payload});default:return K}};var j1t={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var caO=function(K,X){K=K===void 0?j1t:K;switch(X.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},K,{nextDisabled:X.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},K,{nextCommand:X.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},K,{footerSubmissionData:X.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},K,{isImpersonationValid:X.payload});default:return K}};var w5t={reportFormData:void 0,reportDetailsFormData:void 0};var pBT=function(K,X){K=K===void 0?w5t:K;switch(X.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},K,{reportFormData:X.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},K,{reportDetailsFormData:X.payload});default:return K}};var yFN=void 0;_.S("mweb_enable_redux_store_on_demand")||(yFN=new vv(BvO()));var WIT=_.$c(function(K){K=_.tA(K,{themeOverride:void 0,animationRef:{}});var X=K.animatedIconType,F=K.active,P=K.themeOverride,H=K.animationRef;K=K.staticIconFn;var f=_.D(_.u_(void 0,void 0,"P5a72b")),u=f.next().value,J=f.next().value,Z=function(){a:{var R=X();var l=P==null?void 0:P();var a;l=(l==null?void 0:l.useDarkTheme)||((a=_.i9().resolve(_.Nu(_.m$)))==null?void 0:a());switch(R){case "LIKE":yFN||(yFN=new vv(BvO()));R=(R=ARy(yFN.getState()))&&R.animationLightUrl&&R.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:l?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:l?R.animationDarkUrl:R.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0}:void 0;if(R){l=R;break a}l="animated_like_icon_"+(l?"dark_v4":"light_v4");l={lottiePlayerProps:{animationConfig:{name:l,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+l+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},
totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":l={lottiePlayerProps:{animationConfig:{name:l?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(l?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}l=void 0}return l},M=function(){var R,l;
return(l=(R=Z())==null?void 0:R.lottiePlayerProps.animationConfig.name)!=null?l:""},n=function(){if(Z()){var R=Z().lottiePlayerProps.animationConfig.path;
return PO.get(R)||u()}};
f=_.D(_.u_(!1,void 0,"h6xR3c"));var c=f.next().value;f=f.next().value;var B=oyP(f),L=function(){var R=Z(),l,a,E;return(E=R==null?void 0:(l=R.lottiePlayerProps.animationConfig)==null?void 0:(a=l.rendererSettings)==null?void 0:a.className)!=null?E:""},A=void 0,d=void 0;
_.rs(function(){var R=Z(),l=M(),a=n(),E=c(),V=F();if(R&&(d!==l&&(d=l,A=V,l=H(),B.animationConfig=R.lottiePlayerProps.animationConfig,B.animationRef=l,a&&(B.animationConfig.animationData=a,B.animationConfig.path=void 0),l=R.lottiePlayerProps.animationConfig.path,!PO.get(l)&&R.lazyLoad&&l&&Sf9(l,J)),!(E||R.lazyLoad&&!a))){if(a=!H().lottieEl)V?(E=R.totalFrames,B.animationConfig.initialSegment=[E-1,E]):B.animationConfig.initialSegment=void 0;if(A!==V&&!a)if(a=H(),V){var x;(x=a.lottieEl)==null||x.playSegments([0,
R.totalFrames],!0)}else{var N;(N=a.lottieEl)==null||N.playSegments([0,1],!0)}A=V}},"YCYOCe");
return _.Q("animated-icon",{class:"ytAnimatedIconHost"},_.Q(_.p,{cond:function(){var R,l;return!((R=Z())==null||!R.lottiePlayerProps.animationConfig.path||((l=Z())==null?0:l.lazyLoad)&&!n()||c())},
then:function(){return _.Q(_.se,{data:B,animationName:M,className:L,animationRef:H})},
else:K}))},"F");_.S1=_.$c(function(K){var X=_.t_(),F=_.t_(),P=_.t_(),H=_.kf(),f=_.kf(),u=_.kf(),J=_.sy(Mm3,function(){return K.data().stateEntityStoreKey}),Z=_.sy(n9l,function(){var YC,uu;
return(uu=(YC=K.data().notificationStateEntityStoreKeys)==null?void 0:YC.subsNotificationStateKey)!=null?uu:""}),M=function(){return!K.data().enableSubscribeButtonPostClickAnimation},n=_.D(_.u_(0,void 0,"eTsWvc")),c=n.next().value,B=n.next().value;
n=_.D(_.u_(0,void 0,"dniDQ"));var L=n.next().value,A=n.next().value;n=_.D(_.u_(!1,void 0,"EluPic"));var d=n.next().value,R=n.next().value;n=_.D(_.u_(!1,void 0,"r0jnre"));var l=n.next().value,a=n.next().value;n=_.D(_.u_(!1,void 0,"KMvoQe"));var E=n.next().value,V=n.next().value,x;n=_.D(_.u_(!1,void 0,"aSENce"));var N=n.next().value,Dl=n.next().value,Mq=function(){a(!0);_.u6(_.A9,function(){a(!1)},1500)};
_.rs(function(){var YC=l();DK(function(){YC&&!M()&&J()&&eGT(H,f,u)})},"LgmX6c");
_.rs(function(){var YC=J();DK(function(){if(!M()&&YC){var uu;((uu=K.animateWidth)==null?0:uu.call(K))&&dQy(X.value,!!YC.subscribed,c(),L());var X8,qV;((X8=x)==null?0:X8.subscribed)||!YC.subscribed||YC.key!==((qV=x)==null?void 0:qV.key)||Mq();x=YC}})},"iZzoUb");
n=_.Qs(function(){var YC,uu,X8,qV=K.data(),J0=!((YC=J())==null||!YC.subscribed);YC=!((uu=K.isOverlay)==null||!uu.call(K));uu=d()?X:void 0;var yd=(X8=Z())==null?void 0:X8.state;X8=N();Wwl(qV,yd);return raP({model:qV,subscribed:J0,isOverlay:YC,element:uu,notificationState:yd,disableTextEllipsis:!0,focused:X8})},void 0,"yGQGue");
var pO=function(){var YC;if(!M()&&((YC=K.animateWidth)==null?0:YC.call(K))&&(F==null?0:F.value)&&(P==null?0:P.value)&&!E()){YC=J();var uu=_.D((YC==null?0:YC.subscribed)?[F,P]:[P,F]),X8=uu.next().value;uu=uu.next().value;X8=Math.ceil(X8.value.getBoundingClientRect().width);uu=Math.ceil(uu.value.getBoundingClientRect().width);B(X8);A(uu);dQy(X.value,!(YC==null||!YC.subscribed),X8,uu);V(!0)}},y9=_.DF(function(YC){pO();
var uu=J();uu&&(YC.detail.endpoint.subscribeEndpoint||YC.detail.endpoint.unsubscribeEndpoint)&&jeT(X.value,!uu.subscribed,uu)}),Wy=function(){var YC=_.i9().resolve(_.Nu(_.Iu));
YC&&Dl(YC.isKeyBoardInUse())},eP=function(){Dl(!1)};
_.aI("yt-player-subscribe",function(YC){var uu=J();uu&&YC===K.data().channelId&&jeT(X.value,!0,uu)});
_.aI("yt-player-unsubscribe",function(YC){var uu=J();uu&&YC===K.data().channelId&&jeT(X.value,!1,uu)});
_.aI("yt-update-subscribe-button-action",function(YC){YC=_.T(YC,HMW);var uu=J();uu&&YC&&YC.channelId===K.data().channelId&&jeT(X.value,!!YC.subscribed,uu)});
_.AV(function(){X.value&&(X.value.addEventListener("focusin",Wy),X.value.addEventListener("focusout",eP));var YC=_.cu(_.A9,function(){pO()});
R(!0);_.AZ(function(){_.A9.cancelJob(YC);X.value&&(X.value.removeEventListener("focusin",Wy),X.value.removeEventListener("focusout",eP))})});
var gw=function(){var YC,uu,X8;if(X8=!((YC=J())==null||!YC.subscribed))YC=!!K.data().disableNotificationBell,X8=(uu=Z())==null?void 0:uu.state,X8=!YC&&!!X8;return X8},a3=function(){var YC;
return!((YC=J())==null?0:YC.subscribed)},dL=function(){var YC,uu;
if(uu=a3()){uu=!!K.data().disableNotificationBell;var X8=(YC=Z())==null?void 0:YC.state;uu=!uu&&!!X8}return uu},nt={},ht={};
return _.Q("yt-subscribe-button-view-model",{class:_.HO(K.className,"yt-subscribe-button-view-model-wiz",(nt["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var YC,uu;return!((YC=J())==null||!YC.subscribed)&&((uu=K.animateWidth)==null?void 0:uu.call(K))&&l()},nt["yt-subscribe-button-view-model-wiz--hidden"]=function(){var YC;
return!((YC=J())==null?0:YC.subscribed)&&K.data().hideWhenUnsubscribed},nt)),
el:X,"on:yt-service-request-sent":y9},_.Q(rFW,{backgroundLottieRef:H,foregroundLottieRef:f,wrapperClass:_.HO("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(ht["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var YC;return((YC=K.animateWidth)==null?void 0:YC.call(K))&&l()},ht["yt-subscribe-button-view-model-wiz__static-width"]=function(){var YC;
return!((YC=K.animateWidth)==null?0:YC.call(K))},ht)),
disableAnimation:M},_.Q("div",{el:F,class:"yt-subscribe-button-view-model-wiz__container"},_.Q(gV,{data:n,icon:function(){return _.Q(_.p,{cond:gw,then:function(){var YC=function(){var uu;return Aad((uu=Z())==null?void 0:uu.state)};
return _.Q(_.p,{cond:function(){return M()||YC()!=="NOTIFICATIONS_NONE"},
then:function(){return _.Q(_.ZF,{icon:YC})},
else:function(){return _.Q(WIT,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:u})}})}})},
secondaryIconName:function(){return gw()?"EXPAND":void 0}}))),_.Q("div",{el:P,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.Q(_.p,{cond:function(){var YC;return((YC=K.animateWidth)==null?void 0:YC.call(K))&&!M()&&!E()},
then:function(){return _.Q(gV,{data:_.Qs(function(){var YC;return raP({model:K.data(),subscribed:a3(),isOverlay:!((YC=K.isOverlay)==null||!YC.call(K)),element:X,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var YC;return dL()?Aad((YC=Z())==null?void 0:YC.state):void 0},
secondaryIconName:function(){return dL()?"EXPAND":void 0}})}})))},"G");
_.S1.idomCompat=!0;var RGP=new _.Oh("RENDERER_STAMPER_OPTIONS_TOKEN");var Ya;_.Zb=new kSO;Ya=new Map;var Nvl="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),xQl=["notificationTextRenderer","notificationMultiActionRenderer"],i_n="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
C5w=tzO(function(K){return _.ws(K==null?void 0:K.targetId)}).useUpdatableData;var b_3=0;_.Md.debugName="EjJbCe";var dXT=_.$c(function(K){var X=K.data;var F=_.sy(Mm3,function(){return X().subscriptionStateEntityKey});
return _.Q(_.p,{cond:function(){var P=X(),H=F();return!P.hideWhenUnsubscribed||(H==null?0:H.subscribed)?_.T(X().button,_.nS):void 0},
then:function(P){return _.Q("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.Q(_.Af,{data:P,buttonOverrides:function(){return{toggled:!0}}}))}})},"H");
dXT.idomCompat=!0;var KMl=_.Jf({buttonViewModel:_.Af,subscribeButtonViewModel:_.S1,downloadButtonViewModel:LIC,toggleButtonViewModel:_.pS,subscribePlusButtonViewModel:dXT});_.iy(FMl);var eNW=_.$c(function(K){return _.Q(_.Md,{data:function(){return K.actionRow().actions}},{buttonViewModel:function(X){var F=X.data;
return _.Q(oX,{isRow:K.isRow,isIconOnlyButton:function(){return PM9(F())},
useIntrinsicWidth:K.useIntrinsicWidth},_.Q(_.Af,{data:F}))},
subscribeButtonViewModel:function(X){return _.Q(oX,{isRow:K.isRow},_.Q(_.S1,{data:X.data,isOverlay:!1,animateWidth:function(){return!K.isRow()}}))},
downloadButtonViewModel:function(X){var F=X.data;return _.Q(oX,{isRow:K.isRow,isIconOnlyButton:function(){return!!F().playlistId}},_.Q(LIC,{data:F}))},
toggleButtonViewModel:function(X){var F=X.data;return _.Q(oX,{isRow:K.isRow,isIconOnlyButton:function(){var P=F();return PM9(_.T(P.isToggled?P.toggledButtonViewModel:P.defaultButtonViewModel,_.nS))}},_.Q(_.pS,{data:F}))},
subscribePlusButtonViewModel:function(X){return _.Q(oX,{isRow:K.isRow},_.Q(dXT,{data:X.data}))}})},"I"),oX=_.$c(function(K){var X={};
return _.Q("div",{class:_.HO("yt-flexible-actions-view-model-wiz__action",(X["yt-flexible-actions-view-model-wiz__action--row-action"]=K.isRow,X["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=K.useIntrinsicWidth,X["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,X["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=K.isIconOnlyButton,X))},K.children)},"J"),RNE=_.$c(function(K){var X=function(){var P;
return((P=K.layout)==null?void 0:P.call(K))===1},F={};
return _.Q("yt-flexible-actions-view-model",{class:_.HO("yt-flexible-actions-view-model-wiz",K.className,(F["yt-flexible-actions-view-model-wiz--inline"]=function(){return!X()},F["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return K.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},F))},_.Q(_.cd,{each:function(){return K.data().actionsRows||[]}},function(P){return _.Q(_.p,{cond:X,
then:function(){return _.Q("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.Q(eNW,{actionRow:P,isRow:X,useIntrinsicWidth:function(){return!!K.data().respectActionIntrinsicWidth}}))},
else:function(){return _.Q(eNW,{actionRow:P,isRow:X})}})}))},"K"),Lf=_.S("web_enable_sink_yt_flexible_actions_view_model")?RNE:_.f4(FMl);
RNE.idomCompat=!0;_.EP(Lf,"yt-flexible-actions-view-model",{props:{data:_.vU,layout:_.vU,justifyContentOverride:_.vU,className:_.vU}});_.iy(Hr9);var UXN,u3T;UXN=_.$c(function(K){var X=_.sy(Ae,function(){var H;return(H=K.data().dislikeEntityKey)!=null?H:""}),F=_.Qs(function(){var H=X();
return H?H.likeStatus==="DISLIKE":_.T(K.data().toggleButtonViewModel,_.cp).isToggled},void 0,"D8oIFb"),P=_.Qs(function(){return Object.assign({},_.T(K.data().toggleButtonViewModel,_.cp),{isToggled:F()})},void 0,"shaCXe");
return _.Q("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.Q(_.pS,{data:P,buttonShapeOverrides:K.buttonShapeOverrideables,onToggle:function(H){var f=X();f&&H!==(f.likeStatus==="DISLIKE")&&f.key&&_.vc(_.Bp("likeStatusEntity",f.key,{likeStatus:H?"DISLIKE":"INDIFFERENT",hadUserInteraction:H}))}}))},"L");
u3T=_.S("web_enable_sink_dislike_button_view_model")?UXN:Hr9;_.TZ=_.S("web_enable_sink_dislike_button_view_model")?UXN:_.f4(Hr9);UXN.idomCompat=!0;_.iy(zoP);var hNW,DwP;hNW=_.$c(function(K){var X=_.S("web_supports_animations_api"),F=OP(function(B){var L=M(),A,d=(L==null?void 0:(A=L.likeCountIfIndifferent)==null?void 0:A.content)!==B.numberText;if(J()||!d)return B;var R,l;return{numberText:(L==null?void 0:(R=L.likeCountIfIndifferent)==null?void 0:R.content)||"",numberValue:Number((l=L==null?void 0:L.likeCountIfIndifferentNumber)!=null?l:0),heightPx:36,shouldAnimate:!!L}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),P=OP(function(B){var L=M(),A,d=(L==null?void 0:(A=L.likeCountIfIndifferent)==null?void 0:A.content)!==B.numberText;if(J()||!d)return B;var R,l;return{numberText:(L==null?void 0:(R=L.likeCountIfLiked)==null?void 0:R.content)||"",numberValue:Number((l=L==null?void 0:L.likeCountIfLikedNumber)!=null?l:0),heightPx:36,shouldAnimate:!!L}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),H=_.D(_.u_(void 0,void 0,"T6jMHc")),f=H.next().value,u=H.next().value,J=f,Z=_.sy(Ae,function(){var B,L;return(L=(B=K.data())==null?void 0:B.likeStatusEntityKey)!=null?L:""}),M=_.sy(b7q,function(){var B,L;
return((B=K.likeCountEntity)==null?void 0:(L=B.call(K))==null?void 0:L.key)||""}),n=_.Qs(function(){var B;
return((B=Z())==null?void 0:B.likeStatus)==="LIKE"},void 0,"WxQBcd"),c=function(){var B;
return X&&!((B=K.likeCountEntity)==null||!B.call(K))};
return _.Q("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.Q(_.pS,{data:function(){var B=Object,L=B.assign,A;var d=_.T((A=K.data())==null?void 0:A.toggleButtonViewModel,_.cp);return L.call(B,{},d||{},{isToggled:n()})},
buttonShapeOverrides:K.buttonShapeOverrideables,animatedTextPropsDefault:function(){return c()?F():void 0},
animatedTextPropsToggled:function(){return c()?P():void 0},
onToggle:function(B){fCl(B,Z(),J(),u)},
style:function(){var B;return((B=K.disableIconAnimation)==null?0:B.call(K))?void 0:{animateIcon:"true"}}}))},"M");
DwP=_.S("web_enable_sink_like_button_view_model")?hNW:zoP;_.rr=_.S("web_enable_sink_like_button_view_model")?hNW:_.f4(zoP);_.iy(qRw);var mXE=_.$c(function(K){var X=function(){return _.T(K.data().likeButtonViewModel,_.S6)},F=function(){var H;
return((H=X())==null?void 0:H.likeStatusEntityKey)||""},P=_.Qs(function(){var H,f;
var u=(f=_.sy(Ae,F)())!=null?f:(H=X())==null?void 0:H.likeStatusEntity;H=K.data();var J;H=(H==null?void 0:(J=H.timedAnimationData)==null?void 0:J.animationTiming)||[];return{uniqueId:"like-dislike",timings:H,enabled:(u==null?void 0:u.likeStatus)==="INDIFFERENT"&&H.length>0,experimentEnabled:H.length>0}},void 0,"e1fsz");
return _.Q("segmented-like-dislike-button-view-model",{class:_.HO("ytSegmentedLikeDislikeButtonViewModelHost",K.className),"button-renderer":!0},_.Q(LS,{settings:P},_.Q("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.Q(_.p,{cond:X,then:function(H){return _.Q(_.rr,{data:H,likeCountEntity:function(){return K.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.Q(_.p,{cond:function(){return _.T(K.data().dislikeButtonViewModel,_.ok)},
then:function(H){return _.Q(_.TZ,{data:H,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"N"),GxW=_.S("web_enable_sink_segmented_like_dislike_button_view_model")?mXE:qRw;
mXE.idomCompat=!0;_.S("web_enable_sink_segmented_like_dislike_button_view_model")?_.EP(GxW,"segmented-like-dislike-button-view-model",{props:{data:_.vU,className:_.vU}}):_.K4(GxW,"segmented-like-dislike-button-view-model",{propNames:["data"]});var nPP=0;_.EP(eol,"account-link-button-view-model",{props:{data:_.vU,className:_.g$,setMinWidth:_.g$,forceIconOnly:_.g$}});_.L4("menuRenderer","menuRenderer","ytd-menu-renderer");
var l0L={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"}},
v9C=_.S("web_fix_missing_action_buttons")?100:200,Al=function(){var K=_.G.apply(this,arguments)||this;K.safeArea=!_.S("kevlar_flex_menu_safe_area_killswitch");K.tonalOverride=!1;K.threeDotSize="M";K.isOverlay=!1;K.useOverlayDark=!1;K.topLevelIconsOnly=!1;K.JSC$12535_lastWidth=0;K.maybeUpdateFlexibleMenu=function(){_.S("web_fix_missing_action_buttons")?requestAnimationFrame(K.maybeUpdateFlexibleMenuImpl):K.maybeUpdateFlexibleMenuImpl()};
K.maybeUpdateFlexibleMenuImpl=function(){var X;if((X=K.data)!=null&&X.flexibleItems){K.maybeFlushDebouncer();X=K.hostElement.clientWidth;var F=X>K.JSC$12535_lastWidth,P,H=((P=K.topLevelButtonsContainer)==null?void 0:P.scrollHeight)||0,f;P=((f=K.flexibleItemButtonsContainer)==null?void 0:f.scrollHeight)||0;f=K.hostElement.scrollHeight>Math.max(H,P)+8;F?(K.resetFlexibleItems(),K.JSC$12535_lastWidth=K.hostElement.clientWidth,K.maybeUpdateFlexibleMenu()):f&&(K.shrinkFlexibleMenu(),K.JSC$12535_lastWidth=
X)}};
K.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){K.onOverflowTap()},
iconPosition:"icon-only",style:K.isOverlay?K.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:K.threeDotSize,state:"active",accessibilityLabel:K.computeAccessibilityLabel(K.data)},K.threeDotButtonOverride)};
K.onOverflowTap=function(){if(K.data.fetchMenuCommand)_.i9().resolve(_.xU).resolveCommand(K.data.fetchMenuCommand,{form:{element:K.hostElement}});else if(K.data.isDisabled&&K.data.disabledCommand)_.sP(K.data.disabledCommand,K.hostElement);else{var X=K.createMenuRendererVe(),F={items:K.items};K.data.menuPopupAccessibility&&(F.menuPopupAccessibility=K.data.menuPopupAccessibility);K.data.footer&&(F.footer=K.data.footer);X={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:F},veData:X}};
_.i9().resolve(_.pf).openSheet({openPopupActionCommand:X},K.hostElement)}};
return K};
_.r(Al,_.G);_.z=Al.prototype;_.z.updateButtonOverrides=function(){if(!_.S("menu_renderer_label_update_upkillswitch")){var K=_.C$(this.hostElement).querySelector("yt-button-view-model");K&&(K.buttonOverrides=this.buttonOverrides)}};
_.z.computeHasItems=function(){var K;return((K=this.topLevelButtonData)==null?void 0:K.length)||this.hasFlexibleItems};
_.z.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.z.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.XU(this.hostElement,{"--ytd-menu-renderer-button-color":_.j0(this.data.iconColor)}))};
_.z.onStamperFinished=function(){this.JSC$12535_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.z.setupFlexibleMenu=function(){var K=this,X;(X=this.data)!=null&&X.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.VW(this.maybeUpdateFlexibleMenu,v9C,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){K.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement)),
this.resetFlexibleItems()):(this.flexAsTopLevelButtons=void 0,this.hostElement.removeEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.removeEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0))};
_.z.maybeFlushDebouncer=function(){if(_.S("web_replace_formatted_with_attributed_string")){var K;(K=this.topLevelButtons)==null||K.forEach(function(F){var P;(F=(P=F.getElementsByTagName("yt-attributed-string"))==null?void 0:P[0])&&LjP(F)});
var X;(X=this.flexibleItemButtons)==null||X.forEach(function(F){var P;(F=(P=F.getElementsByTagName("yt-attributed-string"))==null?void 0:P[0])&&LjP(F)})}};
_.z.resetFlexibleItems=function(){var K;if((K=this.data)!=null&&K.flexibleItems){_.S("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var X;this.flexAsTopLevelButtons=(X=this.data.flexibleItems)==null?void 0:X.map(function(F){return _.T(F,_.wTu).topLevelButton});
_.S("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.z.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.z.shrinkFlexibleMenu=function(){var K;(K=this.flexAsTopLevelButtons)!=null&&K.length&&(this.flexAsTopLevelButtons=[].concat(_.LZ(this.flexAsTopLevelButtons.slice(0,-1))))};
_.z.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:l0L,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:l0L,events:!0}}};
_.z.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.z.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.z.detached=function(){this.icon="MORE_VERT"};
_.z.computeTopLevelButtonData=function(K){if(!K)return[];var X;K=(X=K==null?void 0:K.topLevelButtons)!=null?X:[];return _.T8.unsafeClone([].concat(_.LZ(K)))};
_.z.computeItems=function(K,X){if(!K)return[];var F=[];if(X){var P=(K.flexibleItems||[]).map(function(u){return _.T(u,_.wTu)});
P=_.D(P);for(var H=P.next();!H.done;H=P.next())H=H.value,X.includes(H.topLevelButton)||(H=H.menuItem)&&F.push(H)}var f;K=(f=K==null?void 0:K.items)!=null?f:[];return[].concat(_.LZ(F),_.LZ(K))};
_.z.computeMenuActive=function(K,X){return K||X};
_.z.onPopupOpened=function(){this.overlayOpen=!0;_.iX(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.z.onPopupClosed=function(){this.overlayOpen=!1;_.iX(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.z.onPopupCanceled=function(){this.overlayOpen=!1;_.iX(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.z.computeAccessibilityLabel=function(K){return this.get("accessibility.accessibilityData.label",K)};
_.z.isHidden=function(K,X){return this.tonalOverride||!K?!0:K.fetchMenuCommand||K.isDisabled&&K.disabledCommand?!1:!(X==null?0:X.length)};
_.z.isModernOverflowHidden=function(K,X){return this.tonalOverride&&K?K.fetchMenuCommand?!1:!(X==null?0:X.length):!0};
_.z.createMenuRendererVe=function(){var K=this.data.trackingParams,X=_.AD(),F=_.r_();return K&&X&&F?(K=_.QB(K),F=_.cO(7591),_.S("combine_ve_grafts")?_.k2(_.uH(),F,K):_.Us(X,K,F),F):null};
_.Oi.Object.defineProperties(Al.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.flexAsTopLevelButtons)==null||!K.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
Al.prototype.onPopupCanceled=Al.prototype.onPopupCanceled;Al.prototype.onPopupClosed=Al.prototype.onPopupClosed;Al.prototype.onPopupOpened=Al.prototype.onPopupOpened;Al.prototype.tonalOverrideChanged=Al.prototype.tonalOverrideChanged;Al.prototype.resetFlexibleItems=Al.prototype.resetFlexibleItems;Al.prototype.setupFlexibleMenu=Al.prototype.setupFlexibleMenu;Al.prototype.iconButtonColorChanged=Al.prototype.iconButtonColorChanged;Al.prototype.updateButtonOverrides=Al.prototype.updateButtonOverrides;
_.O([_.W(_.v9),_.g("design:type",Object)],Al.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Al.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Al.prototype,"ytRendererstamperBehavior",void 0);_.O([_.fa("#button-shape"),_.g("design:type",Fi)],Al.prototype,"buttonShape",void 0);_.O([_.fa("#button"),_.g("design:type",Object)],Al.prototype,"button",void 0);
_.O([_.h(),_.g("design:type",Object)],Al.prototype,"data",void 0);_.O([_.h({computed:"computeTopLevelButtonData(data)"}),_.g("design:type",Array)],Al.prototype,"topLevelButtonData",void 0);_.O([_.h(),_.g("design:type",Array)],Al.prototype,"flexAsTopLevelButtons",void 0);_.O([_.h({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.g("design:type",Array)],Al.prototype,"items",void 0);_.O([_.h({value:"MORE_VERT"}),_.g("design:type",String)],Al.prototype,"icon",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Al.prototype,"safeArea",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.g("design:type",Boolean)],Al.prototype,"menuActive",void 0);_.O([_.h(),_.g("design:type",Boolean)],Al.prototype,"menuFocused",void 0);_.O([_.h({value:"bottom"}),_.g("design:type",String)],Al.prototype,"buttonTooltipPosition",void 0);_.O([_.h(),_.g("design:type",Boolean)],Al.prototype,"overlayOpen",void 0);
_.O([_.h({value:!0}),_.g("design:type",Boolean)],Al.prototype,"forceIconButton",void 0);_.O([_.h(),_.g("design:type",Boolean)],Al.prototype,"styleActionButton",void 0);_.O([_.h(),_.g("design:type",Boolean)],Al.prototype,"disableTextTransformOnButtons",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Al.prototype,"tonalOverride",void 0);_.O([_.h(),_.g("design:type",Object)],Al.prototype,"threeDotSize",void 0);
_.O([_.h(),_.g("design:type",Object)],Al.prototype,"threeDotButtonOverride",void 0);_.O([_.h(),_.g("design:type",Object)],Al.prototype,"isOverlay",void 0);_.O([_.h(),_.g("design:type",Object)],Al.prototype,"useOverlayDark",void 0);_.O([_.h({computed:"computeButtonOverride(tonalOverride)"}),_.g("design:type",Object)],Al.prototype,"buttonOverride",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Al.prototype,"hasCustomIconColor",void 0);
_.O([_.h({reflectToAttribute:!0}),_.U("flexAsTopLevelButtons"),_.g("design:type",Object),_.g("design:paramtypes",[])],Al.prototype,"hasFlexibleItems",null);_.O([_.h({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.g("design:type",Boolean)],Al.prototype,"hasItems",void 0);_.O([_.h(),_.g("design:type",Object)],Al.prototype,"topLevelIconsOnly",void 0);
_.O([_.so("topLevelIconsOnly"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Al.prototype,"updateButtonOverrides",null);_.O([_.U("topLevelIconsOnly"),_.g("design:type",Object),_.g("design:paramtypes",[])],Al.prototype,"buttonOverrides",null);_.O([_.fa("#top-level-buttons-computed"),_.g("design:type",HTMLElement)],Al.prototype,"topLevelButtonsContainer",void 0);_.O([_.DA(".top-level-buttons > *"),_.g("design:type",Array)],Al.prototype,"topLevelButtons",void 0);
_.O([_.fa("#flexible-item-buttons"),_.g("design:type",HTMLElement)],Al.prototype,"flexibleItemButtonsContainer",void 0);_.O([_.DA("#flexible-item-buttons > *"),_.g("design:type",Array)],Al.prototype,"flexibleItemButtons",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Al.prototype,"iconButtonColorChanged",null);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Al.prototype,"setupFlexibleMenu",null);_.O([_.JA("topLevelIconsOnly"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Al.prototype,"resetFlexibleItems",null);_.O([_.so("tonalOverride"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Al.prototype,"tonalOverrideChanged",null);
_.O([_.Hc("yt-popup-opened"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Al.prototype,"onPopupOpened",null);_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Al.prototype,"onPopupClosed",null);_.O([_.Hc("yt-popup-canceled"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Al.prototype,"onPopupCanceled",null);
_.t(Al,"ytd-menu-renderer",function(){if(PSC===void 0){var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);PSC=K}K=PSC;return K},{mode:_.Ig("kevlar_poly_si_batch_j030")?1:2});var a0Z;var tmT;_.tf=_.$c(function(K){var X=K.data;var F=function(){if(X().icon)a:{var P={iconName:X().icon};for(var H=_.i9().resolve(_.Pn),f=_.D([12,24]),u=f.next();!u.done;u=f.next()){var J=u.value;u=Object.assign({},P,{iconStyle:"youtube_fill",iconSize:J});J=Object.assign({},P,{iconStyle:"youtube_outline",iconSize:J});if(H.resolveIcon(u)){P=u;break a}if(H.resolveIcon(J)){P=J;break a}}P=void 0}else P=void 0;return P};
K={};return _.Q("badge-shape",{class:_.HO("badge-shape-wiz",function(){return hon(X().type)},(K["badge-shape-wiz--overlay"]=function(){return X().isOverlay},K["badge-shape-wiz--ads-include-dot"]=function(){return X().adsIncludeDot},K["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(X().type){case 16:case 17:case 18:var P=!0;
break a;default:P=!1}return P},K["badge-shape-wiz--status-badge"]=function(){a:switch(X().type){case 11:case 12:case 13:case 14:case 15:var P=!0;
break a;default:P=!1}return P},K["badge-shape-wiz--no-text"]=function(){return!X().text},K["badge-shape-wiz--modern"]=function(){return X().modern||_.S("web_modern_badge_shape")},K)),
style:_.Je({"background-color":function(){var P;return(P=X().customColors)==null?void 0:P.backgroundColor}}),
role:function(){return X().accessibilityText?"img":void 0},
"aria-label":function(){return X().accessibilityText}},_.Q(_.p,{cond:function(){return X().animation},
then:function(P){return _.Q(_.se,{className:"badge-shape-wiz__icon",data:P,animationName:function(){return P().animationConfig.name||""}})}}),_.Q(_.p,{cond:function(){var P;
return F()&&!((P=X())==null?0:P.animation)},
then:function(){return _.Q("div",{class:"badge-shape-wiz__icon"},_.Q(lEn,{data:function(){return F()}}))}}),_.Q("div",{class:"badge-shape-wiz__text"},function(){var P;
return(P=X())==null?void 0:P.text}))},"O");
_.tf.idomCompat=!0;_.EP(_.tf,"badge-shape",{props:{data:_.vU}});var j1=function(){var K=_.G.apply(this,arguments)||this;K.systemIcons=_.S("kevlar_system_icons");K.animated=_.S("animated_live_badge_icon");K.useBadgeShape=_.S("web_badge_shape_defrag");return K};
_.r(j1,_.G);_.z=j1.prototype;_.z.addTooltips=function(){for(var K=_.C$(this.hostElement).querySelectorAll(".badge"),X=0,F;F=K[X++];){var P=this.repeatElement.itemForElement(F);F=_.C$(F);F.lastChild&&F.lastChild.is==="tp-yt-paper-tooltip"&&F.removeChild(F.lastChild);if(P=P.metadataBadgeRenderer&&P.metadataBadgeRenderer.tooltip){var H=_.gk("tp-yt-paper-tooltip");(0,_.Ka)(H).textContent=P;H.setAttribute("position","top");H.setAttribute("aria-hidden","true");F.appendChild(H)}}};
_.z.badgesChanged=function(){var K=this;_.wz().parkOrScheduleJob(function(){K.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.z.standaloneRoundedBadgeChanged=function(){var K=this.useRoundedBadge?this.useRoundedBadge:void 0;K&&(this.useRoundedBadge=K)};
_.z.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.z.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.z.computeStyle=function(K){_.S("enable_html5_teal_ad_badge")&&K==="BADGE_STYLE_TYPE_AD"&&(K="badge-style-type-ad-alternate");_.S("kevlar_ytb_live_badges")&&K==="BADGE_STYLE_TYPE_LIVE_NOW"&&(K="badge-style-type-live-now-alternate");return K?K.toLowerCase().replace(/_/g,"-"):""};
_.z.computeRole=function(K){return this.computeAriaLabel(K)?"img":"status"};
_.z.computeAriaLabel=function(K){var X;return(K==null?void 0:(X=K.accessibilityData)==null?void 0:X.label)||(K==null?void 0:K.label)};
_.z.computeBadgeShape=function(K){var X;if(K){var F,P=Ro4(K.style),H=Uwn(K.style),f=K.label,u=((F=K.accessibilityData)==null?void 0:F.label)||K.label;K=(X=K.icon)==null?void 0:X.iconType;X={type:P,brNzRatingBadgeType:H,text:f,accessibilityText:u,icon:K!=="PREMIUM"?K:void 0}}else X={};return X};
_.z.updateComputedBadges=function(K,X,F){var P=this;(X=X?[X]:F?[F]:void 0)?this.computedBadges=X:this.computedBadges=K==null?void 0:K.filter(function(H){var f;if((f=H.metadataBadgeRenderer)==null?0:f.groups){f=!1;H=_.D(H.metadataBadgeRenderer.groups);for(var u=H.next();!u.done;u=H.next()){u=u.value;var J=void 0;f=f||((J=P.hiddenBadgeGroups)==null?void 0:J.includes(u))}return!f}return!0})};
_.z.useFilledIcons=function(K){return _.S("kevlar_system_icons")&&(K==="AUDIO_BADGE"||K==="CHECK_CIRCLE_THICK"||K==="OFFICIAL_ARTIST_BADGE"||K==="SPONSORSHIP_STAR"||K==="PERSON_RADAR_FILLED"||K==="PERSON_RADAR")};
_.z.computeIcon=function(K){var X,F;K=K==null?void 0:(X=K.metadataBadgeRenderer)==null?void 0:(F=X.icon)==null?void 0:F.iconType;if(K!=="PREMIUM"&&K)return _.Fl(K)};
_.z.computeStandaloneBadge=function(K){var X;K=K==null?void 0:(X=K.icon)==null?void 0:X.iconType;return K==="PREMIUM_STANDALONE"||K==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
j1.prototype.hiddenBadgeGroupsChanged=j1.prototype.hiddenBadgeGroupsChanged;j1.prototype.standaloneBadgeChanged=j1.prototype.standaloneBadgeChanged;j1.prototype.standaloneRoundedBadgeChanged=j1.prototype.standaloneRoundedBadgeChanged;j1.prototype.badgesChanged=j1.prototype.badgesChanged;_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],j1.prototype,"hidden",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],j1.prototype,"componentBehavior",void 0);
_.O([_.h(),_.g("design:type",Array)],j1.prototype,"badges",void 0);_.O([_.h(),_.g("design:type",Object)],j1.prototype,"topStandaloneBadge",void 0);_.O([_.h(),_.g("design:type",Object)],j1.prototype,"bottomStandaloneBadge",void 0);_.O([_.h(),_.g("design:type",Object)],j1.prototype,"computedBadges",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],j1.prototype,"mediumFontAdBadge",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],j1.prototype,"useRoundedBadge",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],j1.prototype,"largeFontAdBadge",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],j1.prototype,"overlayAd",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],j1.prototype,"overlayPremium",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],j1.prototype,"noDotAdBadge",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],j1.prototype,"collectionTruncate",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],j1.prototype,"isThumbnailBadge",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],j1.prototype,"wrapBadges",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],j1.prototype,"systemIcons",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],j1.prototype,"animated",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],j1.prototype,"useBadgeShape",void 0);_.O([_.h({value:[]}),_.g("design:type",Array)],j1.prototype,"hiddenBadgeGroups",void 0);_.O([_.fa("#repeat"),_.g("design:type",Bc)],j1.prototype,"repeatElement",void 0);_.O([_.JA("badges"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],j1.prototype,"badgesChanged",null);
_.O([_.JA("useRoundedBadge"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],j1.prototype,"standaloneRoundedBadgeChanged",null);_.O([_.JA("topStandaloneBadge","bottomStandaloneBadge"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],j1.prototype,"standaloneBadgeChanged",null);_.O([_.JA("hiddenBadgeGroups"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],j1.prototype,"hiddenBadgeGroupsChanged",null);
j1=_.O([_.v({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],j1);
var $XQ=_.xc()(j1,"ytd-badge-supported-renderer",function(){if(tmT===void 0){var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);tmT=K}K=tmT;return K},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Ig("kevlar_poly_si_batch_j053")?1:2});var wr=function(){var K=_.G.apply(this,arguments)||this;K.iconType="STAR";K.standardizeIconSize=_.S("kevlar_system_icons");K.mediaHoverOverlayInitialVisibility=_.S("enable_top_landscape_image_button_command_web");K.noBottomMargin=!1;K.thumbnailObjectFit="CONTAIN";K.thumbnailFitHeight=!0;K.actionMap={"yt-mute-ad-action":"handleMuteAd"};return K};
_.r(wr,_.G);_.z=wr.prototype;
_.z.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"},params:{mediumFontAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.image":{id:"media",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.image.thumbnail]]",width:"[[mediaThumbnailWidth]]",fitHeight:"[[thumbnailFitHeight]]",objectFit:"[[thumbnailObjectFit]]"}}}},
"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",
notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.z.dataChanged=function(){this.clickCommand=this.get("data.clickCommand.commandExecutorCommand.commands.0");this.clickCommand||(this.clickCommand=this.get("data.clickCommand"));this.clickCommand&&(this.updateMediaBackgroundImage(),this.ytSparklesClickLocationBehavior.configureClickTargets("root",wr.JSC$12547_DEFAULT_CLICK_LOCATION_BEHAVIOR,wr.JSC$12547_CLICK_LOCATION_ID_MAP))};
_.z.onTap=function(K){if(!_.S("use_on_click_for_desktop_display_ad"))this.onTapOrClick(K)};
_.z.onClick=function(K){if(_.S("use_on_click_for_desktop_display_ad"))this.onTapOrClick(K)};
_.z.onTapOrClick=function(K){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,K,!1)};
_.z.updateMediaBackgroundImage=function(){var K=this.get("data.image.thumbnail.thumbnails");K&&(K=_.bH(K,0))&&_.XU(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+K+")"})};
_.z.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var K=0;K<this.data.impressionEndpoints.length;K++){var X=this.data.impressionEndpoints[K];X.clickTrackingParams&&delete X.clickTrackingParams;_.i9().resolve(_.xU).resolveCommand(X,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var F;((F=this.data)==null?0:F.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.z.handleMuteAd=function(){};
_.z.attached=function(){var K=this;_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&K.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.z.detached=function(){_.S("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Oi.Object.defineProperties(wr.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)==null||!K.titleText)return"";var X;return _.uY("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((X=this.data)==null?void 0:X.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?0:K.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?0:K.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?0:K.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?0:K.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?0:K.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 K;return!((K=this.data)==null||!K.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"}}});
wr.prototype.onClick=wr.prototype.onClick;wr.prototype.onTap=wr.prototype.onTap;wr.prototype.dataChanged=wr.prototype.dataChanged;
wr.JSC$12547_CLICK_LOCATION_ID_MAP=_.S("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"]]);
wr.JSC$12547_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.S("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"}];_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],wr.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],wr.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.W(_.yD),_.g("design:type",Object)],wr.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],wr.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.bd.YtSparklesClickLocationBehavior),_.g("design:type",Object)],wr.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.W(rK),_.g("design:type",Object)],wr.prototype,"ytdActiveViewBehavior",void 0);_.O([_.W([_.NT.YtActionHandlerBehavior]),_.g("design:type",Object)],wr.prototype,"actionHandlerBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],wr.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],wr.prototype,"clickCommand",void 0);_.O([_.h({reflectToAttribute:!0,selector:_.SJ}),_.g("design:type",Boolean)],wr.prototype,"miniMode",void 0);_.O([_.h(),_.g("design:type",String)],wr.prototype,"iconType",void 0);_.O([_.U("data.titleText"),_.g("design:type",String),_.g("design:paramtypes",[])],wr.prototype,"titleAriaLabel",null);
_.O([_.U("data.rating"),_.g("design:type",Object),_.g("design:paramtypes",[])],wr.prototype,"getRating",null);_.O([_.U("data.price"),_.g("design:type",Object),_.g("design:paramtypes",[])],wr.prototype,"getPrice",null);_.O([_.U("data.thirdLine"),_.g("design:type",Object),_.g("design:paramtypes",[])],wr.prototype,"getThirdLine",null);_.O([_.U("data.fourthLine"),_.g("design:type",Object),_.g("design:paramtypes",[])],wr.prototype,"getFourthLine",null);
_.O([_.U("data.fifthLine"),_.g("design:type",Object),_.g("design:paramtypes",[])],wr.prototype,"getFifthLine",null);_.O([_.U("getRating"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],wr.prototype,"computeRatingHidden",null);_.O([_.U("getPrice"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],wr.prototype,"computePriceHidden",null);_.O([_.U("getThirdLine"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],wr.prototype,"computeThirdLineHidden",null);
_.O([_.U("getFourthLine"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],wr.prototype,"computeFourthLineHidden",null);_.O([_.U("getFifthLine"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],wr.prototype,"computeFifthLineHidden",null);_.O([_.h({reflectToAttribute:!0}),_.U("data.energyIcon"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],wr.prototype,"hasEnergyIcon",null);
_.O([_.U("computePriceHidden","computeRatingHidden"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],wr.prototype,"computeSecondaryTextHidden",null);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],wr.prototype,"standardizeIconSize",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],wr.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],wr.prototype,"noBottomMargin",void 0);
_.O([_.h({reflectToAttribute:!0}),_.U("data.layout"),_.g("design:type",String),_.g("design:paramtypes",[])],wr.prototype,"layout",null);_.O([_.U("data.layout"),_.g("design:type",Object),_.g("design:paramtypes",[])],wr.prototype,"mediaThumbnailWidth",null);_.O([_.U("layout"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],wr.prototype,"useRoundedBadge",null);_.O([_.h(),_.g("design:type",String)],wr.prototype,"thumbnailObjectFit",void 0);
_.O([_.h(),_.g("design:type",Object)],wr.prototype,"thumbnailFitHeight",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],wr.prototype,"dataChanged",null);_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],wr.prototype,"onTap",null);_.O([_.Hc("click"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],wr.prototype,"onClick",null);
wr=_.O([_.v({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],wr);
_.t(wr,"ytd-display-ad-renderer",function(){if(a0Z!==void 0)return a0Z;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return a0Z=K},{mode:1});var ONU;var VmW;var g9t;var mww=new Map;var E9E=!1;var yE=function(){var K=_.G.apply(this,arguments)||this;K.DEFAULT_TOOLTIP_OFFSET="10";K.TOOLTIP_OFFSET_NO_BANNER="-8";K.badges=null;K.noEndpoints=!1;K.wrapText=!1;K.forceVerified=!1;K.tooltipPosition="top";K.compactStyle=!1;K.height=0;K.lineHeight=0;return K};
_.r(yE,_.G);_.z=yE.prototype;_.z.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.z.attached=function(){var K=this;this.observer=new MutationObserver(function(X,F){K.handleResized();F.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.z.detached=function(){this.observer&&this.observer.disconnect()};
_.z.logTooltipEvent=function(){_.S("kevlar_wiz_tooltip_event_killswitch")||E9E||(_.GA4("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),E9E=!0)};
_.z.handleWindowResized=function(){this.handleResized()};
_.z.onChannelNameChanged=function(){this.verified?this.handleResized():(this.textEl&&this.textEl.style.removeProperty("width"),this.textContainerEl&&(this.textContainerEl.style.removeProperty("padding"),this.textContainerEl.style.removeProperty("margin-right"),this.textContainerEl.style.removeProperty("margin-left")))};
_.z.onHeightChanged=function(){if(this.verified){var K=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.e8("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=K:this.textContainerEl.style.marginRight=K}};
_.z.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.e8("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.z.handleResized=function(){var K=this;this.verified&&_.A9.addLowPriorityJob(function(){K.fitBackgroundToText();var X=getComputedStyle(K.hostElement).lineHeight;X&&(X=X.match(/\d+/))&&X.length&&(K.lineHeight=Number(X[0]));K.height=K.lineHeight&&!K.wrapText?K.lineHeight:K.textEl.offsetHeight})};
_.z.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var K=document.createRange(),X=_.C$(this.textEl).children;X.length>0?K.selectNodeContents(X[0]):K.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(K.getBoundingClientRect().width)+"px"}};
_.z.computeChannelBadgeStyle=function(K){var X;if((K==null?0:(X=K.runs)==null?0:X.length)&&K.runs[0].textColor)return"--ytd-badge-icon-color:"+_.j0(K.runs[0].textColor)+";"};
_.Oi.Object.defineProperties(yE.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"?_.GS(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var K=this.get("badges.0.metadataBadgeRenderer.tooltip");if(K)return K}return _.lj(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
yE.prototype.onLineHeightChanged=yE.prototype.onLineHeightChanged;yE.prototype.onHeightChanged=yE.prototype.onHeightChanged;yE.prototype.onChannelNameChanged=yE.prototype.onChannelNameChanged;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],yE.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],yE.prototype,"badges",void 0);_.O([_.h(),_.g("design:type",Object)],yE.prototype,"channelName",void 0);
_.O([_.h(),_.g("design:type",Object)],yE.prototype,"noEndpoints",void 0);_.O([_.h(),_.g("design:type",Object)],yE.prototype,"wrapText",void 0);_.O([_.h(),_.g("design:type",Object)],yE.prototype,"forceVerified",void 0);_.O([_.h(),_.g("design:type",Object)],yE.prototype,"tooltipPosition",void 0);_.O([_.h(),_.g("design:type",String)],yE.prototype,"tooltip",void 0);_.O([_.h(),_.g("design:type",Boolean)],yE.prototype,"hasChannelArt",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],yE.prototype,"compactStyle",void 0);_.O([_.fa("#text-container"),_.g("design:type",HTMLElement)],yE.prototype,"textContainerEl",void 0);_.O([_.fa("#text"),_.g("design:type",Object)],yE.prototype,"textEl",void 0);_.O([_.fa("#verified-tooltip"),_.g("design:type",HTMLElement)],yE.prototype,"verifiedTooltip",void 0);_.O([_.h(),_.g("design:type",Object)],yE.prototype,"height",void 0);
_.O([_.h(),_.g("design:type",Object)],yE.prototype,"lineHeight",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("badges","forceVerified"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],yE.prototype,"verified",null);_.O([_.U("badges","verified"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],yE.prototype,"hideBadges",null);_.O([_.U("channelName"),_.g("design:type",Object),_.g("design:paramtypes",[])],yE.prototype,"formattedName",null);
_.O([_.U("badges","verified","formattedName"),_.g("design:type",String),_.g("design:paramtypes",[])],yE.prototype,"tooltipText",null);_.O([_.U("hasChannelArt"),_.g("design:type",String),_.g("design:paramtypes",[])],yE.prototype,"tooltipOffset",null);_.O([_.so("channelName"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],yE.prototype,"onChannelNameChanged",null);
_.O([_.so("height"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],yE.prototype,"onHeightChanged",null);_.O([_.so("lineHeight","height"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],yE.prototype,"onLineHeightChanged",null);yE=_.O([_.v({is:"ytd-channel-name",disableElementRegistration:!0})],yE);
_.t(yE,"ytd-channel-name",function(){if(g9t!==void 0)return g9t;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return g9t=K},{mode:_.Ig("kevlar_poly_si_batch_j036")?1:2});var WR=function(){var K=_.G.apply(this,arguments)||this;K.standardizeIconSize=_.S("kevlar_system_icons");K.enableModernCommentBadges=_.S("enable_modern_comment_badges");return K};
_.r(WR,_.G);WR.prototype.basicPaletteChanged=function(){var K;(K=this.data.color)!=null&&K.basicColorPaletteData&&_.Sd(this.hostElement,this.data.color.basicColorPaletteData)};
WR.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var K,X=this.get("basicColorPaletteData.backgroundColor",(K=this.data)==null?void 0:K.color),F;K=this.get("basicColorPaletteData.foregroundTitleColor",(F=this.data)==null?void 0:F.color);F={};X?(X=_.j0(X),F["--ytd-author-comment-badge-background-color"]=X):(F["--ytd-author-comment-badge-icon-background-color"]="transparent",F["--ytd-author-comment-badge-background-color"]="transparent");K?(X=_.j0(K),F["--ytd-author-comment-badge-name-color"]=
X,F["--ytd-author-comment-badge-icon-color"]=X):F["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(F).length>0&&_.XU(this.hostElement,F)}};
WR.prototype.useFilledIcons=function(K){return _.S("kevlar_system_icons")&&(K==="CHECK_CIRCLE_THICK"||K==="OFFICIAL_ARTIST_BADGE")};
_.Oi.Object.defineProperties(WR.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
WR.prototype.colorChanged=WR.prototype.colorChanged;WR.prototype.basicPaletteChanged=WR.prototype.basicPaletteChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],WR.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],WR.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],WR.prototype,"standardizeIconSize",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],WR.prototype,"enableModernCommentBadges",void 0);
_.O([_.h({reflectToAttribute:!0}),_.U("data.authorUnifiedVerified"),_.g("design:type",Object),_.g("design:paramtypes",[])],WR.prototype,"verified",null);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],WR.prototype,"creator",null);_.O([_.so("data.color.basicColorPaletteData"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],WR.prototype,"basicPaletteChanged",null);
_.O([_.so("data.color"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],WR.prototype,"colorChanged",null);WR=_.O([_.v({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],WR);
_.t(WR,"ytd-author-comment-badge-renderer",function(){if(VmW!==void 0)return VmW;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return VmW=K},{mode:1});var bNU;var dr=function(){return _.G.apply(this,arguments)||this};
_.r(dr,_.G);dr.prototype.computeThumbnailWidth=function(K){if(K==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],dr.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],dr.prototype,"data",void 0);_.O([_.h({computed:"computeIcon_(data.icon)"}),_.g("design:type",String)],dr.prototype,"icon",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],dr.prototype,"surface",void 0);
_.O([_.h({reflectToAttribute:!0,value:_.S("enable_shrink_image_size_on_web_posts_singleton")}),_.g("design:type",Boolean)],dr.prototype,"searchSxsUx",void 0);dr=_.O([_.v({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],dr);
_.t(dr,"ytd-backstage-image-renderer",function(){if(bNU!==void 0)return bNU;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return bNU=K},{mode:1});var CSO;var e1=function(){var K=_.G.apply(this,arguments)||this;K.isLoading=!1;K.selectedItemIndex=-1;return K};
_.r(e1,_.G);_.z=e1.prototype;_.z.computeIsChannelOwner=function(K){if(!K)return!0;K=K[0];return!(K&&(K.signinEndpoint||K.selectServiceEndpoint))};
_.z.computeIsImagePoll=function(K){return(K==null?void 0:K.type)==="POLL_TYPE_IMAGE"};
_.z.computeIsTotalVotesDisabled=function(K){return!(K==null?0:K.totalVotes)};
_.z.thumbnailSrc=function(K){var X,F,P,H;return(K==null?0:(X=K.thumbnails)==null?0:(F=X[0])==null?0:F.url)?_.ps((P=K.thumbnails)==null?void 0:(H=P[0])==null?void 0:H.url):void 0};
_.z.progressWidth=function(K){return"width:"+(K?K*100:0)+"%;"};
_.z.textAreaWidth=function(K){return this.isImagePoll?null:"width:"+(K?K*100:0)+"%;"};
_.z.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.z.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var K=this.data.choices,X=0;X<K.length;X++)if(K[X].selected){this.selectedItemIndex=X;break}};
_.z.onPopupClosed=function(K,X){K=Number(this.pollVotes.selected);X.confirmed&&(this.selectChoice(K,!1),_.xr(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.z.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.z.onYtCommentPollRevert=function(K,X){X&&(this.selectChoice(X.selectedChoiceIndex,!0),this.set("data.totalVotes",X.totalVotes))};
_.z.onYtServiceRequestSent=function(K,X){if(X.actions)for(K=0;K<X.actions.length;K++){var F=X.actions[K];_.T(F,cH)&&this.set("data.totalVotes",_.T(F,cH).totalVotes)}};
_.z.onYtServiceRequestCompleted=function(K){var X=this.get("detail.data.actionResults.0.feedback",K);K=this.get("detail.data.actionResults.0.status",K);if(X==="FEEDBACK_DESELECT"||X==="FEEDBACK_SELECT")this.isLoading=!1,K==="STATUS_FAILED"?_.iX(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.z.getEndpoint=function(K,X){return X===K?this.data.choices[X].deselectServiceEndpoint||null:this.data.choices[K].selectServiceEndpoint||null};
_.z.selectChoice=function(K,X){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var F=0;F<this.data.choices.length;F++){var P;if(K===this.selectedItemIndex){var H=!1;var f=P=null}else P=(H=F===K)?this.data.choices[F].voteRatioIfSelected:this.data.choices[F].voteRatioIfNotSelected,f=H?this.data.choices[F].votePercentageIfSelected:this.data.choices[F].votePercentageIfNotSelected;this.set("data.choices."+F+".voteRatio",P);
this.set("data.choices."+F+".votePercentage",f);this.set("data.choices."+F+".selected",H)}X||(this.isLoading=!0,(X=this.getEndpoint(K,this.selectedItemIndex))&&_.i9().resolve(_.xU).resolveCommand(X,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===K?-1:K};
_.Oi.Object.defineProperties(e1.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
e1.prototype.onYtServiceRequestCompleted=e1.prototype.onYtServiceRequestCompleted;e1.prototype.onYtServiceRequestSent=e1.prototype.onYtServiceRequestSent;e1.prototype.onYtCommentPollRevert=e1.prototype.onYtCommentPollRevert;e1.prototype.onPopupClosed=e1.prototype.onPopupClosed;e1.prototype.dataChanged=e1.prototype.dataChanged;_.O([_.W(_.vx),_.g("design:type",Object)],e1.prototype,"paperItemBehavior",void 0);
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],e1.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.v9),_.g("design:type",Object)],e1.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],e1.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],e1.prototype,"isLoading",void 0);_.O([_.h({computed:"computeIsChannelOwner(data.choices)"}),_.g("design:type",Boolean)],e1.prototype,"isChannelOwner",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.g("design:type",Boolean)],e1.prototype,"isImagePoll",void 0);_.O([_.h({computed:"computeIsTotalVotesDisabled(data)"}),_.g("design:type",Boolean)],e1.prototype,"isTotalVotesDisabled",void 0);_.O([_.h(),_.g("design:type",Object)],e1.prototype,"previousPollInfo",void 0);_.O([_.h(),_.g("design:type",Object)],e1.prototype,"selectedItemIndex",void 0);_.O([_.fa("#poll-votes"),_.g("design:type",Object)],e1.prototype,"pollVotes",void 0);
_.O([_.U("isChannelOwner"),_.g("design:type",Object),_.g("design:paramtypes",[])],e1.prototype,"endpointStyle",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],e1.prototype,"dataChanged",null);_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],e1.prototype,"onPopupClosed",null);
_.O([_.Hc("yt-comment-poll-revert"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],e1.prototype,"onYtCommentPollRevert",null);_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.yk]),_.g("design:returntype")],e1.prototype,"onYtServiceRequestSent",null);
_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],e1.prototype,"onYtServiceRequestCompleted",null);e1=_.O([_.v({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],e1);
_.t(e1,"ytd-backstage-poll-renderer",function(){if(CSO!==void 0)return CSO;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return CSO=K},{mode:2});var NXL;var iNu={autoplay:!1,loop:!1},xXC={simpleText:""},RX=function(){var K=_.G.apply(this,arguments)||this;K.isLoading=!1;K.usesPanelLockup=!1;K.selectedItemIndex=-1;K.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},iNu,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});K.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},iNu,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});K.correctnessAnimationProps=[];K.correctnessAnimationRefs=[];return K};
_.r(RX,_.G);_.z=RX.prototype;_.z.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.z.computeIsChannelOwner=function(K){if(!K)return!0;K=K[0];return!(K&&(K.signinEndpoint||K.selectServiceEndpoint))};
_.z.computeIsTotalVotesDisabled=function(K){return!(K==null?0:K.totalVotes)};
_.z.computeIsImageQuiz=function(K){return(K==null?void 0:K.type)==="POLL_TYPE_IMAGE"};
_.z.onExplanationChanged=function(){this.expander.reset()};
_.z.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var K=this.data.choices;if(K){this.maybeInitializeQuizLotties(K);for(var X=0;X<K.length;X++)if(K[X].isSelected||this.isChannelOwner&&K[X].isCorrect){this.selectedItemIndex=X;return}this.selectedItemIndex=-1}}};
_.z.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var K=this.selectedItemIndex,X=Number(this.quizVotes.selected);this.selectChoice(X);this.sendVoteAction(X,K);this.quizVotes.selected=-1;var F;K=!((F=this.data)==null?0:F.enableAnimation);this.maybePlayAnswerAnimations(K)}};
_.z.onYtCommentPollRevert=function(K,X){X&&(this.selectChoice(X.selectedChoiceIndex),this.set("data.totalVotes",X.totalVotes))};
_.z.onYtServiceRequestSent=function(K,X){if(X.actions)for(K=_.D(X.actions),X=K.next();!X.done;X=K.next())(X=_.T(X.value,cH))&&this.set("data.totalVotes",X.totalVotes)};
_.z.onYtServiceRequestCompleted=function(K){var X=this.get("detail.data.actionResults.0.feedback",K);K=this.get("detail.data.actionResults.0.status",K);if(X==="FEEDBACK_DESELECT"||X==="FEEDBACK_SELECT")this.isLoading=!1,K==="STATUS_FAILED"?_.iX(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.z.getAnimationPropsForChoiceIndex=function(K,X){return X[K]};
_.z.maybePlayAnswerAnimations=function(K){K=K===void 0?!1:K;var X;if((X=this.data)!=null&&X.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){X=_.D(this.correctnessAnimationRefs);for(var F=X.next();!F.done;F=X.next()){var P=void 0,H=void 0;(P=F.value)==null||(H=P.lottieEl)==null||H.stop()}if(!(this.selectedItemIndex<0)){X=0;K&&(X=this.isCorrect?37:25);var f,u;(f=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(u=f.lottieEl)==null||u.goToAndPlay(K?X:0,!0);if(!(this.isCorrect||
(f=this.data.choices.findIndex(function(n){return n.isCorrect}),f<0))){var J,Z;
(Z=(J=this.correctnessAnimationRefs[f])==null?void 0:J.lottieEl)==null||Z.goToAndPlay(37,!0);var M;J=(M=this.fadeContainers)==null?void 0:M.item(f);!K&&J&&this.fadeIn(J)}}}};
_.z.thumbnailSrc=function(K){var X,F,P,H;return(K==null?0:(X=K.thumbnails)==null?0:(F=X[0])==null?0:F.url)?_.ps((P=K.thumbnails)==null?void 0:(H=P[0])==null?void 0:H.url):void 0};
_.z.a11yVotedText=function(K,X){var F,P,H=((F=this.data)==null?void 0:(P=F.correctVotedText)==null?void 0:P.simpleText)||"",f,u;F=((f=this.data)==null?void 0:(u=f.votedText)==null?void 0:u.simpleText)||"";if(!X)return"";var J,Z;if((J=this.data)==null?0:(Z=J.choices)==null?0:Z[K].isCorrect)return H;var M,n;return((M=this.data)==null?0:(n=M.choices)==null?0:n[K].isSelected)?F:""};
_.z.getEndpoint=function(K,X){return X===K?this.data.choices[K].deselectServiceEndpoint||null:this.data.choices[K].selectServiceEndpoint||null};
_.z.sendVoteAction=function(K,X){if(K=this.getEndpoint(K,X))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(K)};
_.z.selectChoice=function(K){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var X=0;X<this.data.choices.length;X++)this.set("data.choices."+X+".isSelected",K===this.selectedItemIndex?!1:X===K);this.selectedItemIndex=this.selectedItemIndex===K?-1:K};
_.z.maybeInitializeQuizLotties=function(K){var X=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=K.map(function(F){return{animationConfig:F.isCorrect?X.baseCorrectLottiePlayerAnimationConfig:X.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){X.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(F){return F.animationRef||{}})};
_.z.fadeIn=function(K){K.classList.add("fade-in");_.xO(_.A9,function(){K.classList.remove("fade-in")},900)};
_.Oi.Object.defineProperties(RX.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.lj(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 K,X;return((K=this.data)==null?void 0:(X=K.choices)==null?void 0:X.some(function(F){return F.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null||!K.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?xXC:this.data.choices[this.selectedItemIndex].explanation||xXC}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null||!K.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
RX.prototype.onYtServiceRequestCompleted=RX.prototype.onYtServiceRequestCompleted;RX.prototype.onYtServiceRequestSent=RX.prototype.onYtServiceRequestSent;RX.prototype.onYtCommentPollRevert=RX.prototype.onYtCommentPollRevert;RX.prototype.dataChanged=RX.prototype.dataChanged;RX.prototype.onExplanationChanged=RX.prototype.onExplanationChanged;_.O([_.W(_.vx),_.g("design:type",Object)],RX.prototype,"paperItemBehavior",void 0);
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],RX.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],RX.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.Vj.YtTaskEmitterBehavior),_.g("design:type",Object)],RX.prototype,"ytTaskEmitterBehavior",void 0);_.O([_.W(_.v9),_.g("design:type",Object)],RX.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],RX.prototype,"data",void 0);
_.O([_.h(),_.g("design:type",Object)],RX.prototype,"isLoading",void 0);_.O([_.h(),_.g("design:type",Object)],RX.prototype,"usesPanelLockup",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.g("design:type",Boolean)],RX.prototype,"isChannelOwner",void 0);_.O([_.h({computed:"computeIsTotalVotesDisabled(data)"}),_.g("design:type",Boolean)],RX.prototype,"isTotalVotesDisabled",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.g("design:type",Boolean)],RX.prototype,"isImageQuiz",void 0);_.O([_.h(),_.g("design:type",Object)],RX.prototype,"previousQuizInfo",void 0);_.O([_.h(),_.g("design:type",Object)],RX.prototype,"selectedItemIndex",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("data","usesPanelLockup"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],RX.prototype,"shouldUseModernUi",null);
_.O([_.DA(".fade-container"),_.g("design:type",Object)],RX.prototype,"fadeContainers",void 0);_.O([_.h(),_.g("design:type",Array)],RX.prototype,"correctnessAnimationProps",void 0);_.O([_.U("explanation","showCorrectAnswer"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],RX.prototype,"showExplanation",null);_.O([_.U("isChannelOwner","isAttempted"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],RX.prototype,"showCorrectAnswer",null);
_.O([_.U("isChannelOwner","isAttempted","data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],RX.prototype,"isQuizAnsweringDisabled",null);_.O([_.U("isQuizAnsweringDisabled"),_.g("design:type",Object),_.g("design:paramtypes",[])],RX.prototype,"endpointStyle",null);_.O([_.U("data","selectedItemIndex"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],RX.prototype,"isAttempted",null);
_.O([_.U("data","selectedItemIndex"),_.g("design:type",Object),_.g("design:paramtypes",[])],RX.prototype,"explanation",null);_.O([_.U("data","selectedItemIndex"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],RX.prototype,"isCorrect",null);_.O([_.fa("ytd-expander"),_.g("design:type",Object)],RX.prototype,"expander",void 0);_.O([_.fa("#quiz-votes"),_.g("design:type",Object)],RX.prototype,"quizVotes",void 0);
_.O([_.so("explanation"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],RX.prototype,"onExplanationChanged",null);_.O([_.so("data","isChannelOwner"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],RX.prototype,"dataChanged",null);_.O([_.Hc("yt-comment-quiz-revert"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],RX.prototype,"onYtCommentPollRevert",null);
_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.yk]),_.g("design:returntype")],RX.prototype,"onYtServiceRequestSent",null);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],RX.prototype,"onYtServiceRequestCompleted",null);RX=_.O([_.v({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],RX);
_.t(RX,"ytd-backstage-quiz-renderer",function(){if(NXL!==void 0)return NXL;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return NXL=K},{mode:1});var I0U;var UI=function(){return _.G.apply(this,arguments)||this};
_.r(UI,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],UI.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],UI.prototype,"data",void 0);UI=_.O([_.v({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],UI);
_.t(UI,"ytd-post-uploaded-video-renderer",function(){if(I0U!==void 0)return I0U;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return I0U=K},{mode:1});var kxL;var hl=function(){return _.G.apply(this,arguments)||this};
_.r(hl,_.G);hl.prototype.useFilledIcons=function(K){return K==="SPONSORSHIP_STAR"};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],hl.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],hl.prototype,"data",void 0);hl=_.O([_.v({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],hl);
_.t(hl,"ytd-sponsors-only-badge-renderer",function(){if(kxL!==void 0)return kxL;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return kxL=K},{mode:1});var KwZ;var mY=function(){return _.G.apply(this,arguments)||this};
_.r(mY,_.G);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],mY.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],mY.prototype,"data",void 0);mY=_.O([_.v({is:"ytd-child-video-renderer",disableElementRegistration:!0})],mY);
_.t(mY,"ytd-child-video-renderer",function(){if(KwZ!==void 0)return KwZ;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return KwZ=K},{mode:1});var XBZ;var FwU;var GZ=function(){var K=_.G.apply(this,arguments)||this;K.size=0;K.enableWebModernCollectionsV2=_.S("web_modern_collections_v2");K.fallbackImageSize={height:void 0,width:9999};K.webModernCollections=!1;return K};
_.r(GZ,_.G);_.z=GZ.prototype;_.z.computeBlurredImageSize=function(K){return K?{height:K*2,width:K*2}:this.fallbackImageSize};
_.z.computeImageSize=function(K){return K?{height:K,width:K}:this.fallbackImageSize};
_.z.computeObjectFit=function(K){return K?"FILL":"CONTAIN"};
_.z.computePreserve=function(K){return K?!0:!1};
_.z.setBackground=function(){var K,X;_.S("web_modern_collections_v2")&&((K=this.data)==null?0:(X=K.thumbnail)==null?0:X.sampledThumbnailColor)&&(K=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+K.red+","+K.green+","+K.blue+",1)")};
GZ.prototype.setBackground=GZ.prototype.setBackground;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],GZ.prototype,"ytRendererBehavior",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],GZ.prototype,"watchFeedThumbnail",void 0);_.O([_.h(),_.g("design:type",Object)],GZ.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],GZ.prototype,"size",void 0);
_.O([_.h({computed:"computeBlurredImageSize(size)"}),_.g("design:type",Object)],GZ.prototype,"blurredImageSize",void 0);_.O([_.h({computed:"computeImageSize(size)"}),_.g("design:type",Object)],GZ.prototype,"imageSize",void 0);_.O([_.h({computed:"computePreserve(size)"}),_.g("design:type",String)],GZ.prototype,"preserve",void 0);_.O([_.h({computed:"computeObjectFit(size)"}),_.g("design:type",String)],GZ.prototype,"objectFit",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],GZ.prototype,"enableWebModernCollectionsV2",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],GZ.prototype,"webModernCollections",void 0);_.O([_.so("data.thumbnail.sampledThumbnailColor"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],GZ.prototype,"setBackground",null);GZ=_.O([_.v({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],GZ);
_.t(GZ,"ytd-playlist-custom-thumbnail-renderer",function(){if(FwU!==void 0)return FwU;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return FwU=K},{mode:1});var P5u;var lq=function(){return _.G.apply(this,arguments)||this};
_.r(lq,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],lq.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],lq.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Number)],lq.prototype,"width",void 0);lq=_.O([_.v({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],lq);
_.t(lq,"ytd-playlist-video-thumbnail-renderer",function(){if(P5u!==void 0)return P5u;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return P5u=K},{mode:1});var H_U;var vR=function(){return _.G.apply(this,arguments)||this};
_.r(vR,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],vR.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],vR.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Number)],vR.prototype,"width",void 0);vR=_.O([_.v({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],vR);
_.t(vR,"ytd-show-custom-thumbnail-renderer",function(){if(H_U!==void 0)return H_U;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return H_U=K},{mode:1});var seQ;var aX=function(){return _.G.apply(this,arguments)||this};
_.r(aX,_.G);aX.prototype.useFilledIcons=function(K){return K==="MUSIC"||K==="COURSE"};
aX.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=yh(this.overlayColor,"0.8");else if(this.overlayColor){var K=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+K.red+","+K.green+","+K.blue+",0.8)"}};
_.Oi.Object.defineProperties(aX.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)}}});
aX.prototype.overlayColorChanged=aX.prototype.overlayColorChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],aX.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],aX.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],aX.prototype,"overlayColor",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("data.icon","data.text"),_.g("design:type",Object),_.g("design:paramtypes",[])],aX.prototype,"overlayStyle",null);
_.O([_.h({reflectToAttribute:!0}),_.U("data.icon","data.text"),_.g("design:type",Object),_.g("design:paramtypes",[])],aX.prototype,"overlayTextStyle",null);_.O([_.so("overlayColor"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],aX.prototype,"overlayColorChanged",null);aX=_.O([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],aX);
_.t(aX,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(seQ!==void 0)return seQ;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return seQ=K},{mode:1});var zGN;var tl=function(){var K=_.G.apply(this,arguments)||this;K.active=!1;return K};
_.r(tl,_.G);tl.prototype.computeIsSpinnerHidden=function(K){return(K==null?void 0:K.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
tl.prototype.computeOverlayIcon=function(K){return(K==null?void 0:K.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(K==null?void 0:K.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],tl.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],tl.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],tl.prototype,"active",void 0);tl=_.O([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],tl);
_.t(tl,"ytd-thumbnail-overlay-downloading-renderer",function(){if(zGN!==void 0)return zGN;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return zGN=K},{mode:1});var fNC;var $z=function(){return _.G.apply(this,arguments)||this};
_.r($z,_.G);_.Oi.Object.defineProperties($z.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],$z.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],$z.prototype,"data",void 0);_.O([_.U("data.text"),_.g("design:type",Object),_.g("design:paramtypes",[])],$z.prototype,"text",null);$z=_.O([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],$z);
_.t($z,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(fNC!==void 0)return fNC;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return fNC=K},{mode:1});var DQT,uHT=function(){if(DQT!==void 0)return DQT;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return DQT=K};var OI=function(){return _.G.apply(this,arguments)||this};
_.r(OI,_.G);_.Oi.Object.defineProperties(OI,{template:{configurable:!0,enumerable:!0,get:function(){return uHT()}}});
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],OI.prototype,"animateEqualizer",void 0);OI=_.O([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],OI);_.xc()(OI,"ytd-thumbnail-overlay-equalizer",function(){return uHT()},{allowedProps:["animateEqualizer"],
mode:1});var qft;var VE=function(){var K=_.G.apply(this,arguments)||this;K.nowPlayingBadge=_.S("web_now_playing_badge");K.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return K};
_.r(VE,_.G);VE.prototype.activeChanged=function(){var K=this;_.S("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.tg(this,function(){_.iX(K.hostElement,"yt-playlist-lockup-now-playing-active",K)})};
VE.prototype.onMiniplayerPlayStateChanged=function(K){var X,F=(X=_.T(_.zC().currentEndpoint,_.vg))==null?void 0:X.videoId;this.isVideoPlaying=K&&(_.S("web_limit_now_playing_animation_killswitch")||this.videoId===F)};
VE.prototype.activeChanged=VE.prototype.activeChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],VE.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],VE.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],VE.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Boolean)],VE.prototype,"isVideoPlaying",void 0);_.O([_.h(),_.g("design:type",String)],VE.prototype,"videoId",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],VE.prototype,"equalizerOnly",void 0);_.O([_.h(),_.g("design:type",Boolean)],VE.prototype,"isActive",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],VE.prototype,"nowPlayingBadge",void 0);_.O([_.so("isActive"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],VE.prototype,"activeChanged",null);
VE=_.O([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],VE);
_.t(VE,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(qft!==void 0)return qft;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return qft=K},{mode:1});var Jat;var gr=function(){return _.G.apply(this,arguments)||this};
_.r(gr,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],gr.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],gr.prototype,"data",void 0);gr=_.O([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],gr);
_.t(gr,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(Jat!==void 0)return Jat;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Jat=K},{mode:_.Ig("kevlar_poly_si_batch_j025")?1:2});var Z_C;var EI=function(){return _.G.apply(this,arguments)||this};
_.r(EI,_.G);EI.prototype.onDurationChanged=function(){var K,X;_.C$(this.hostElement).querySelector("#progress").style.width=((X=(K=this.data)==null?void 0:K.percentDurationWatched)!=null?X:0)+"%"};
EI.prototype.onDurationChanged=EI.prototype.onDurationChanged;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],EI.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],EI.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],EI.prototype,"isLive",void 0);_.O([_.so("data.percentDurationWatched"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],EI.prototype,"onDurationChanged",null);
EI=_.O([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],EI);
_.t(EI,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(Z_C!==void 0)return Z_C;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Z_C=K},{mode:1});var Yft;var bq=function(){var K=_.G.apply(this,arguments)||this;K.bottomPanel=!1;K.richGridOverlay=!1;K.watchFeedOverlay=!1;K.isCompact=!1;return K};
_.r(bq,_.G);bq.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.Oi.Object.defineProperties(bq.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.data)==null?void 0:(X=K.icon)==null?void 0:X.iconType)==="PLAY_ALL"&&_.S("kevlar_system_icons")}}});
bq.prototype.widthChanged=bq.prototype.widthChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],bq.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],bq.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Number)],bq.prototype,"width",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],bq.prototype,"bottomPanel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],bq.prototype,"richGridOverlay",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],bq.prototype,"watchFeedOverlay",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],bq.prototype,"isCompact",void 0);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],bq.prototype,"isIconFilled",null);_.O([_.so("width","watchFeedOverlay"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],bq.prototype,"widthChanged",null);
bq=_.O([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],bq);
_.t(bq,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(Yft!==void 0)return Yft;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Yft=K},{mode:1});var QeV;var Mzt=["CLIP","SHORTS"],Cf=function(){var K=_.G.apply(this,arguments)||this;K.animated=_.S("animated_live_badge_icon");K.hasIcon=!1;K.updateTimerIntervalId=0;K.timeSinceLive=0;return K};
_.r(Cf,_.G);_.z=Cf.prototype;_.z.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.z.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.z.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.z.hasIconOrText=function(){var K,X;return!!(((K=this.data)==null?0:K.icon)||((X=this.data)==null?0:X.text))};
_.z.initializeLiveBadgeTimer=function(){var K=this,X,F=(X=this.liveBadgeData)==null?void 0:X.startTimestampSec;if(F&&this.canShowLiveBadgeTimer()){var P;X=Number((P=this.liveBadgeData)==null?void 0:P.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(F);this.updateTimerIntervalId=_.Hm(function(){K.canShowLiveBadgeTimer()?K.timeSinceLive++:(K.timeSinceLive=0,window.clearInterval(K.updateTimerIntervalId))},X)}else this.timeSinceLive=0};
_.z.canShowLiveBadgeTimer=function(){var K=Date.now(),X,F;return K<(Number((X=this.liveBadgeData)==null?void 0:X.endTimestampSec)-1)*1E3&&K>Number((F=this.liveBadgeData)==null?void 0:F.startTimestampSec)*1E3};
_.Oi.Object.defineProperties(Cf.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var K=this.data;var X=this.timeSinceLive;var F,P,H,f;a:{var u=K.style;if(u===void 0)u=16;else switch(u){case "LIVE":u=17;break a;default:u=16}}X={type:u,text:X?m2q({seconds:X}):_.lj(K.text),accessibilityText:(F=K.text)==null?void 0:(P=F.accessibility)==null?void 0:(H=P.accessibilityData)==null?void 0:H.label,icon:(f=K.icon)==null?void 0:f.iconType}}else X={};return X}},
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 K;return(K=this.data)==null?void 0:K.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 Mzt.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
Cf.prototype.initializeLiveBadgeTimer=Cf.prototype.initializeLiveBadgeTimer;Cf.prototype.dataChanged=Cf.prototype.dataChanged;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Cf.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Cf.prototype,"data",void 0);_.O([_.h({computed:"computeIcon_(data.icon)"}),_.g("design:type",String)],Cf.prototype,"icon",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Cf.prototype,"animated",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.g("design:type",Boolean)],Cf.prototype,"hideTimeStatus",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Cf.prototype,"hasIcon",void 0);_.O([_.h(),_.g("design:type",Object)],Cf.prototype,"timeSinceLive",void 0);_.O([_.U("data","timeSinceLive"),_.g("design:type",Object),_.g("design:paramtypes",[])],Cf.prototype,"badgeShapeData",null);
_.O([_.U("data","overlayType"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Cf.prototype,"hideBadgeShape",null);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Cf.prototype,"dataChanged",null);_.O([_.h({reflectToAttribute:!0}),_.U("data.style"),_.g("design:type",Object),_.g("design:paramtypes",[])],Cf.prototype,"overlayStyle",null);
_.O([_.U("data.liveBadgeData"),_.g("design:type",Object),_.g("design:paramtypes",[])],Cf.prototype,"liveBadgeData",null);_.O([_.h({reflectToAttribute:!0}),_.U("data.type"),_.g("design:type",Object),_.g("design:paramtypes",[])],Cf.prototype,"overlayType",null);_.O([_.U("overlayType","overlayStyle"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Cf.prototype,"useFilledIcon",null);
_.O([_.JA("liveBadgeData"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Cf.prototype,"initializeLiveBadgeTimer",null);Cf=_.O([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],Cf);
_.t(Cf,"ytd-thumbnail-overlay-time-status-renderer",function(){if(QeV!==void 0)return QeV;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return QeV=K},{mode:_.Ig("kevlar_poly_si_batch_j035")?1:2});var nyZ;var NS=function(){return _.G.apply(this,arguments)||this};
_.r(NS,_.G);NS.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"}}}}};
NS.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(K){if(this.hasPlaybackProgressBar)return{percentDurationWatched:K.percentDurationWatched}};
NS.prototype.computeHasPlaybackProgressBar=function(K){return!!K.percentDurationWatched&&K.percentDurationWatched>0};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],NS.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],NS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],NS.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.g("design:type",Boolean)],NS.prototype,"hasPlaybackProgressBar",void 0);
NS=_.O([_.v({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],NS);
_.t(NS,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(nyZ!==void 0)return nyZ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return nyZ=K},{mode:1});var caW;var pBu=_.$c(function(K){var X=K.data;var F=K.children;var P=function(){return!!X().doubleStack};
return _.Q("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!X().experimentEnabled}},_.Q(_.p,{cond:X,
then:function(){return _.Q("div",null,_.Q(_.p,{cond:P,then:function(){var H={};return _.Q("div",{class:_.HO("collections-stack-wiz__collection-stack2",function(){return X().customClassName2ndStack},(H["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return X().enableResponsiveMode},H)),
style:_.Je({"background-color":function(){return vP9(X())}})})}}),_.Q("div",{class:_.HO("collections-stack-wiz__collection-stack1",function(){return X().customClassName1stStack},function(){return lCP(X().thumbnailSize?X().thumbnailSize:"medium")}),
style:_.Je({"background-color":function(){return vP9(X())}})}),F)}}))},"P");_.EP(pBu,"yt-collections-stack",{props:{data:_.vU}});var iq=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};K.webModernCollections=!1;K.isSearch=!1;K.isDoubleStack=!1;K.thumbnailSize="medium";K.enableWebModernCollectionsV2=_.S("web_modern_collections_v2");return K};
_.r(iq,_.G);_.z=iq.prototype;
_.z.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:"ytd-thumbnail-overlay-now-playing-renderer",tvfilmShowWatchForwardOverlayRenderer:"ytd-tvfilm-show-watch-forward-overlay-renderer"}},hoverOverlays_:{id:"hover-overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer"}},
"data.thumbnailRenderer":{id:"playlist-thumbnails",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",properties:{width:"[[width]]"}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",properties:{size:"[[customThumbnailSize]]",watchFeedThumbnail:"[[watchFeedThumbnail]]",webModernCollections:"[[webModernCollections]]"}},showCustomThumbnailRenderer:{component:"ytd-show-custom-thumbnail-renderer",properties:{width:"[[width]]"}}}}}};
_.z.getThumbnailDetails=function(K){if(K!=null&&K.thumbnailRenderer){var X=K.thumbnailRenderer,F;if((F=X.playlistVideoThumbnailRenderer)==null?0:F.thumbnail)return X.playlistVideoThumbnailRenderer.thumbnail;var P;if((P=X.playlistCustomThumbnailRenderer)==null?0:P.thumbnail)return X.playlistCustomThumbnailRenderer.thumbnail;K=K.thumbnailRenderer;var H;if((H=K.showCustomThumbnailRenderer)==null?0:H.thumbnail)return K.showCustomThumbnailRenderer.thumbnail}};
_.z.computeOverlayColor=function(K){var X,F;if((X=this.getThumbnailDetails(K))==null?0:(F=X.darkColorPalette)==null?0:F.section2Color)return this.getThumbnailDetails(K).darkColorPalette.section2Color;var P;return(P=this.getThumbnailDetails(K))==null?void 0:P.sampledThumbnailColor};
_.z.computeWebModernCollections=function(K){if(K==null||!K.thumbnailOverlays)return!1;K=_.D(K.thumbnailOverlays);for(var X=K.next();!X.done;X=K.next()){var F=void 0;if((F=X.value)==null?0:F.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.z.computeNavigationEndpoint=function(K){return a1P(K==null?void 0:K.navigationEndpoint)};
_.Oi.Object.defineProperties(iq.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var K=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:K==null?void 0:K.sampledThumbnailColor,vibrantColorPalette:K==null?void 0:K.vibrantColorPalette,darkColorPalette:K==null?void 0:K.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],iq.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],iq.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(ysu),_.g("design:type",Object)],iq.prototype,"ytdThumbnailBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],iq.prototype,"componentBehavior",void 0);
_.O([_.h({value:!1}),_.g("design:type",Boolean)],iq.prototype,"watchFeedThumbnail",void 0);_.O([_.h(),_.g("design:type",Number)],iq.prototype,"customThumbnailSize",void 0);_.O([_.h({value:!0}),_.g("design:type",Boolean)],iq.prototype,"hideAria",void 0);_.O([_.h(),_.g("design:type",Object)],iq.prototype,"data",void 0);_.O([_.h({computed:"computeOverlayColor(data)"}),_.g("design:type",Object)],iq.prototype,"overlayColor",void 0);
_.O([_.h({computed:"computeWebModernCollections(data)"}),_.g("design:type",Object)],iq.prototype,"webModernCollections",void 0);_.O([_.h({computed:"computeNavigationEndpoint(data)"}),_.g("design:type",Object)],iq.prototype,"computedNavigationEndpoint",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],iq.prototype,"isSearch",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],iq.prototype,"isDoubleStack",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],iq.prototype,"thumbnailSize",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],iq.prototype,"enableWebModernCollectionsV2",void 0);_.O([_.U("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.g("design:type",Object),_.g("design:paramtypes",[])],iq.prototype,"collectionStack",null);iq=_.O([_.v({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],iq);
_.t(iq,"ytd-playlist-thumbnail",function(){if(caW!==void 0)return caW;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return caW=K},{mode:_.Ig("kevlar_poly_si_batch_j025")?1:2});var BvW;var xz=function(){var K=_.G.apply(this,arguments)||this;K.noEndpoints=!1;K.amsterdamPostMvp=_.S("web_amsterdam_post_mvp_playlists");K.badges=[];K.transferState="TRANSFER_STATE_UNKNOWN";return K};
_.r(xz,_.G);_.z=xz.prototype;_.z.getMetadata=function(K){if(!K)return[];var X=[],F=K.shortViewCountText||K.viewCountText;F&&X.push(_.lj(F));K.publishedTimeText&&X.push(_.lj(K.publishedTimeText));K.upcomingEventData&&K.upcomingEventData.upcomingEventText&&X.push(_.j6(_.lj(K.upcomingEventData.upcomingEventText),Number(K.upcomingEventData.startTime)));return X};
_.z.observeDataForBylineSeparator=function(){this.data&&_.iN(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.z.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.j0(this.metadataColor)};
_.z.getSimpleString=function(K){return _.lj(K)};
_.z.isBylineHidden=function(K){return this.noByline||!((K==null?0:K.longBylineText)||(K==null?0:K.shortBylineText))};
_.z.isMetadataHidden=function(K){var X;return((X=this.getMetadata(K))==null?void 0:X.length)===0};
_.z.isBylineMetadataSeparatorHidden=function(K){return this.isMetadataHidden(K)||!this.shouldShowVideoInfo};
_.z.isLongByline=function(K,X){return X&&!(K==null||!K.longBylineText)};
_.Oi.Object.defineProperties(xz.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var K;return this.amsterdamPostMvp&&!((K=this.data)==null||!K.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
xz.prototype.metadataColorChanged=xz.prototype.metadataColorChanged;xz.prototype.observeDataForBylineSeparator=xz.prototype.observeDataForBylineSeparator;_.O([_.W(_.jn),_.g("design:type",Object)],xz.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],xz.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],xz.prototype,"noEndpoints",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],xz.prototype,"isSlimShort",void 0);
_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],xz.prototype,"radioMeta",void 0);_.O([_.h({selector:_.Wp}),_.g("design:type",Object)],xz.prototype,"isGridViewEnabled",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],xz.prototype,"richMeta",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],xz.prototype,"amsterdamPostMvp",void 0);_.O([_.h(),_.g("design:type",Boolean)],xz.prototype,"noByline",void 0);
_.O([_.h({computed:"isLongByline(data, radioMeta)"}),_.g("design:type",Boolean)],xz.prototype,"longByline",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],xz.prototype,"truncateMetadataLine",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],xz.prototype,"miniMode",void 0);_.O([_.h(),_.g("design:type",Number)],xz.prototype,"metadataColor",void 0);_.O([_.h(),_.g("design:type",Array)],xz.prototype,"badges",void 0);
_.O([_.h({selector:_.rI,selectorArgs:["data.videoId"]}),_.g("design:type",String)],xz.prototype,"transferState",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],xz.prototype,"isDownloading",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],xz.prototype,"typographyBump",void 0);_.O([_.fa("#metadata-line"),_.g("design:type",HTMLElement)],xz.prototype,"metadataLine",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],xz.prototype,"observeDataForBylineSeparator",null);_.O([_.so("metadataColor"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],xz.prototype,"metadataColorChanged",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],xz.prototype,"shouldShowVideoInfo",null);
_.O([_.U("badges"),_.g("design:type",String),_.g("design:paramtypes",[])],xz.prototype,"inlineBadgeClass",null);_.O([_.U("longByline"),_.g("design:type",String),_.g("design:paramtypes",[])],xz.prototype,"longBylineClass",null);_.O([_.U("data","longByline"),_.g("design:type",Object),_.g("design:paramtypes",[])],xz.prototype,"bylineText",null);_.O([_.U("isGridViewEnabled","data"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],xz.prototype,"watchFeedBigThumbs",null);
xz=_.O([_.v({is:"ytd-video-meta-block",disableElementRegistration:!0})],xz);
_.t(xz,"ytd-video-meta-block",function(){if(BvW!==void 0)return BvW;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return BvW=K},{mode:_.Ig("kevlar_poly_si_batch_j080")?1:2});_.L4("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var IX=function(){var K=_.G.apply(this,arguments)||this;K.displayItemCount=2;K.isBackstagePlaylist=!1;K.isPostCompactPlaylist=!1;K.shouldShowChannelThumbnail=!1;K.useModernCollectionsV2=_.S("web_modern_collections_v2");return K};
_.r(IX,_.G);_.z=IX.prototype;_.z.computeFirstVideos=function(K,X){return K===void 0||X===void 0?[]:K.slice(0,X)};
_.z.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var K=this.data.thumbnailRenderer;K.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",K.playlistVideoThumbnailRenderer.thumbnail);K.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",K.playlistCustomThumbnailRenderer.thumbnail)}};
_.z.computeThumbnailHeight=function(K,X,F,P,H){return P?H==="BIG"?280:H==="MASSIVE"?337:234:F?240:X?72:K?118:138};
_.z.computeThumbnailWidth=function(K,X,F,P,H){return P?H==="MEDIUM"?450:H==="BIG"?500:H==="MASSIVE"?600:420:F?360:X?128:K?210:246};
_.z.computeUseBiggerThumbs=function(K){return K&&_.S("enable_desktop_search_bigger_thumbs")};
_.z.computeShouldShowChannelThumbnail=function(K,X){return K&&!(X==null||!X.channelThumbnail)};
_.Oi.Object.defineProperties(IX.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
IX.prototype.dataChanged=IX.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],IX.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.mE),_.g("design:type",Object)],IX.prototype,"ytdLockupBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],IX.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],IX.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],IX.prototype,"displayItemCount",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],IX.prototype,"isBackstagePlaylist",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],IX.prototype,"isPostCompactPlaylist",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],IX.prototype,"isSearch",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.g("design:type",Boolean)],IX.prototype,"useBiggerThumbs",void 0);_.O([_.h({reflectToAttribute:!0,value:function(){return _.KG("desktop_search_bigger_thumbs_style")}}),
_.g("design:type",String)],IX.prototype,"biggerThumbsStyle",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],IX.prototype,"isDownloads",void 0);_.O([_.h({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.g("design:type",Object)],IX.prototype,"shouldShowChannelThumbnail",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],IX.prototype,"useModernCollectionsV2",void 0);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],IX.prototype,"dataChanged",null);_.O([_.U("isSearch"),_.g("design:type",String),_.g("design:paramtypes",[])],IX.prototype,"stackThumbnailSize",null);IX=_.O([_.v({is:"ytd-playlist-renderer",disableElementRegistration:!0})],IX);
_.t(IX,"ytd-playlist-renderer",function(){if(XBZ===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);XBZ=K}K=XBZ;return K},{mode:1});var SfO;var oyL;var kz=function(){var K=_.G.apply(this,arguments)||this;K.collections=!!_.S("web_modern_collections_v2");K.startX=0;return K};
_.r(kz,_.G);kz.prototype.onEndpointMouseDown=function(K){this.startX=K.clientX};
kz.prototype.onEndpointClick=function(K){this.startX!==K.clientX&&(K.preventDefault(),K.stopPropagation())};
kz.prototype.computeObjectFit=function(K){return K==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||K==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||K==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
kz.prototype.computeCardStyle=function(K){return K?K.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.Oi.Object.defineProperties(kz.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var K,X;return this.collections&&((K=this.data)==null?void 0:(X=K.searchRefinementCardRendererStyle)==null?void 0:X.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],kz.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],kz.prototype,"data",void 0);_.O([_.h({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.g("design:type",Number)],kz.prototype,"objectFit",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.g("design:type",String)],kz.prototype,"cardStyle",void 0);
_.O([_.h({reflectToAttribute:!0,value:!0}),_.g("design:type",Boolean)],kz.prototype,"roundContainer",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],kz.prototype,"collections",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],kz.prototype,"isAlbumCard",null);_.O([_.U("data","collections","isAlbumCard"),_.g("design:type",Object),_.g("design:paramtypes",[])],kz.prototype,"collectionStack",null);
kz=_.O([_.v({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],kz);
_.t(kz,"ytd-search-refinement-card-renderer",function(){if(oyL!==void 0)return oyL;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return oyL=K},{mode:1});var LwN;var K5=function(){var K=_.G.apply(this,arguments)||this;K.isRichGrid=!1;return K};
_.r(K5,_.G);_.O([_.h(),_.g("design:type",Object)],K5.prototype,"data",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],K5.prototype,"componentBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],K5.prototype,"ytdReduxBehavior",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],K5.prototype,"isRichGrid",void 0);_.O([_.h({reflectToAttribute:!0,selector:_.SJ}),_.g("design:type",Boolean)],K5.prototype,"miniMode",void 0);
K5=_.O([_.v({is:"ytd-game-details-renderer",disableElementRegistration:!0})],K5);
_.t(K5,"ytd-game-details-renderer",function(){if(LwN!==void 0)return LwN;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return LwN=K},{mode:1});var Tvu;var raU;var XW=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return K};
_.r(XW,_.G);_.z=XW.prototype;_.z.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.z.currentStateData=function(K){var X=K||this.data;return X&&X.states&&X.currentStateId!=null?X.states.find(function(F){return F.stateId===X.currentStateId})||null:null};
_.z.currentStateRendererData=function(K){return(K=this.currentStateData(K))&&K.state&&K.state.buttonRenderer?K.state.buttonRenderer:null};
_.z.stateChanged=function(){this&&this.data&&(this.ytRenderButtonBehavior._setEndpoint(null),this.ytRenderButtonBehavior._setServiceEndpoint(this.computeServiceEndpoint(this.data)),this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data)),this.ytRenderButtonBehavior._setButtonText(null),this.ytRenderButtonBehavior._setButtonAccessibility(this.computeAccessibility(this.data)),this.ytRenderButtonBehavior._setButtonClass(this.computeButtonClass(this.data)),this.ytRenderButtonBehavior.updateRenderedElements())};
_.z.computeButtonIcon=function(K){K=this.currentStateRendererData(K);var X;return(K==null?0:(X=K.icon)==null?0:X.iconType)?K.icon.iconType.toLowerCase():null};
_.z.computeAccessibility=function(K){return(K=this.currentStateRendererData(K))&&K.accessibilityData?K.accessibilityData.accessibilityData||null:null};
_.z.computeButtonClass=function(K){var X=this.currentStateRendererData(K);if(!X)return"";K="";var F=X.style;F&&(K+=F.toLowerCase().replace(/_/g,"-")+" ");(X=X.size)&&(K+=X.toLowerCase().replace(/_/g,"-")+" ");return K.trim()};
_.z.computeServiceEndpoint=function(K){if(!K)return null;var X=K&&K.serviceEndpoint,F=this.get("command.commandMetadata.webCommandMetadata.sendPost",K);return X?X:F&&K.command?K.command:null};
_.z.computeBellMenuItemParams=function(K){var X;K=(X=_.T(K==null?void 0:K.command,_.PW))==null?void 0:X.commands;if(!K||K.length===0)return null;X=_.T(K[0],_.pz);var F,P;return(X==null?0:(F=X.popup)==null?0:(P=F.menuPopupRenderer)==null?0:P.items)?X.popup.menuPopupRenderer.items.map(function(H){return H.menuServiceItemRenderer.trackingParams}):null};
_.z.handleBellMenuOpenSelectedAction=function(K){var X=K.trackingParams,F=this.computeBellMenuItemParams(this.data);this.data&&X&&F&&F.includes(X)&&this.ytRenderButtonBehavior._setButtonIcon(K.icon.iconType.toLowerCase())};
_.z.onYtServiceRequestCompleted=function(K,X){(K=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",X))&&this.set("data",K)};
_.z.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.z.resetState=function(){this.set("data.currentStateId",3)};
_.z.onYtButtonTapHandler=function(){if(this.data){var K=this.currentStateRendererData(this.data);K&&this.ytRendererBehavior.logExplicitClick(K)}};
XW.prototype.onYtServiceRequestError=XW.prototype.onYtServiceRequestError;XW.prototype.onYtServiceRequestCompleted=XW.prototype.onYtServiceRequestCompleted;XW.prototype.stateChanged=XW.prototype.stateChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],XW.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],XW.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.W(ZP.YtRenderButtonBehavior),_.g("design:type",Object)],XW.prototype,"ytRenderButtonBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],XW.prototype,"data",void 0);_.O([_.JA("data","data.currentStateId"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],XW.prototype,"stateChanged",null);
_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.G9]),_.g("design:returntype")],XW.prototype,"onYtServiceRequestCompleted",null);_.O([_.Hc("yt-service-request-error"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],XW.prototype,"onYtServiceRequestError",null);XW=_.O([_.v({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],XW);
_.t(XW,"ytd-subscription-notification-toggle-button-renderer",function(){if(raU!==void 0)return raU;var K=document.createElement("template");_.w(K,"\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");K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return raU=K},{mode:1});var AaC;var FW=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};K.tapHandler=function(){if(K.data){var X=K.currentStateRendererData();X&&K.ytRendererBehavior.logExplicitClick(X)}};
return K};
_.r(FW,_.G);_.z=FW.prototype;_.z.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.z.currentStateData=function(){var K=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(X){return X.stateId===K.data.currentStateId})||null:null};
_.z.currentStateRendererData=function(){var K=this.currentStateData();return K&&K.state&&K.state.buttonRenderer?K.state.buttonRenderer:null};
_.z.computeAccessibilityLabel=function(){var K,X,F;return(K=this.currentStateRendererData())==null?void 0:(X=K.accessibilityData)==null?void 0:(F=X.accessibilityData)==null?void 0:F.label};
_.z.computeBellMenuItemParams=function(){var K,X,F=(X=_.T((K=this.data)==null?void 0:K.command,_.PW))==null?void 0:X.commands;if(!F||F.length===0)return null;K=_.T(F[0],_.pz);var P,H;return(K==null?0:(P=K.popup)==null?0:(H=P.menuPopupRenderer)==null?0:H.items)?K.popup.menuPopupRenderer.items.map(function(f){return f.menuServiceItemRenderer.trackingParams}):null};
_.z.handleBellMenuOpenSelectedAction=function(K){var X=K.trackingParams,F=this.computeBellMenuItemParams();if(this.data&&X&&F&&F.includes(X)&&(K==null||!K.isDisabled)){var P;((P=_.T(K.serviceEndpoint,_.ss))==null?void 0:P.signal)!=="CLIENT_SIGNAL"&&(this.icon=K.icon.iconType)}};
_.z.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.z.onYtServiceRequestCompleted=function(K,X){if(K=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",X))this.icon=void 0,this.set("data",K)};
_.z.onYtServiceRequestError=function(){this.icon=void 0};
_.Oi.Object.defineProperties(FW.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var K=this.data,X=this.textLabel,F=this.hostElement,P=this.computeAccessibilityLabel(),H=this.tapHandler,f=this.isOverlay?"overlay":"mono",u=(K==null?0:K.disableButton)?"disabled":"active";X=X?_.TD(X):void 0;return{style:f,type:"tonal",state:u,size:"M",focused:!1,formattedButtonText:X,iconPosition:"leading-trailing",onTap:$w9(K,H,F),accessibilityLabel:P}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var K=this.currentStateRendererData(),X,F,P=(F=this.icon)!=null?F:K==null?void 0:(X=K.icon)==null?void 0:X.iconType;if(P)return _.Fl(P)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var K,X,F=(K=this.data)==null?void 0:(X=K.secondaryIcon)==null?void 0:X.iconType;if(F)return _.Fl(F)}}});
FW.prototype.onYtServiceRequestError=FW.prototype.onYtServiceRequestError;FW.prototype.onYtServiceRequestCompleted=FW.prototype.onYtServiceRequestCompleted;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],FW.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],FW.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],FW.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],FW.prototype,"textLabel",void 0);
_.O([_.h(),_.g("design:type",String)],FW.prototype,"icon",void 0);_.O([_.h(),_.g("design:type",Boolean)],FW.prototype,"isOverlay",void 0);_.O([_.U("data.*","textLabel"),_.g("design:type",Object),_.g("design:paramtypes",[])],FW.prototype,"computedButtonShape",null);_.O([_.U("data.*","icon"),_.g("design:type",Object),_.g("design:paramtypes",[])],FW.prototype,"computedIcon",null);_.O([_.U("data.*"),_.g("design:type",Object),_.g("design:paramtypes",[])],FW.prototype,"computedSecondaryIcon",null);
_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.G9]),_.g("design:returntype")],FW.prototype,"onYtServiceRequestCompleted",null);_.O([_.Hc("yt-service-request-error"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],FW.prototype,"onYtServiceRequestError",null);FW=_.O([_.v({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],FW);
_.t(FW,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(AaC!==void 0)return AaC;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return AaC=K},{mode:_.Ig("kevlar_poly_si_batch_j081")?1:2});var jeu;_.EP(rFW,"yt-animated-action",{props:{backgroundLottieRef:_.vU,foregroundLottieRef:_.vU,wrapperClass:_.vU,disableAnimation:_.vU},unsafeExternallySettableAttributes:new Set(["key"])});var PY=function(){var K=_.G.apply(this,arguments)||this;K.animatedActionEnabled=_.S("web_animated_actions");K.foregroundLottieRef={};K.backgroundLottieRef={};K.forceIconOnly=!1;K.showTextWhileAnimating=!1;K.keyboardFocused=!1;K.isAnimating=!1;K.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return K};
_.r(PY,_.G);_.z=PY.prototype;_.z.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.z.configureRendererStamper=function(){return{"data.notificationPreferenceToggleButton":{id:"notification-preference-toggle-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{forceIconOnly:"[[forceIconOnly]]"}}}},"data.notificationPreferenceButton":{id:"notification-preference-button",mapping:{subscriptionNotificationToggleButtonRenderer:{component:"ytd-subscription-notification-toggle-button-renderer-next",properties:{textLabel:"[[subscribedButtonText]]",
forceIconOnly:"[[forceIconOnly]]",isOverlay:"[[overlayButton]]"}}}}}};
_.z.attached=function(){this.keyboardFocused=!1};
_.z.onYtServiceRequestSent=function(K,X){(this.get("endpoint.subscribeEndpoint",X)||this.get("endpoint.unsubscribeEndpoint",X))&&this.updateSubscriptionState(!this.subscribed)};
_.z.onYtServiceRequestCompleted=function(K,X){(K=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",X.data))&&this.bellButton&&(this.bellButton.data=K)};
_.z.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.XU(this.hostElement)};
_.z.onPlayerSubscribe=function(K){this.isCompactRed()||K!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.z.onPlayerUnsubscribe=function(K){this.isCompactRed()||K!==this.data.channelId||this.updateSubscriptionState(!1)};
_.z.handleUpdateSubscribeButtonAction=function(K){K=_.T(K,HMW);var X;K&&K.channelId===((X=this.data)==null?void 0:X.channelId)&&this.updateSubscriptionState(!!K.subscribed)};
_.z.computeButtonStyle=function(K){return this.get("style.styleType",K)||null};
_.z.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.z.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.z.updateSubscriptionState=function(K){if(K!==this.subscribed){this.set("data.subscribed",K);var X,F=(X=this.data)==null?void 0:X.subscribedEntityKey;F&&this.ytdReduxBehavior.dispatch(_.zl("subscriptionStateEntity",F,{key:F,subscribed:K}));this.isCompactRed()||_.iX(this.hostElement,"yt-subscription-changed",K);K||(_.xr(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!K),K&&this.hasBellButton&&this.startAnimation())}};
_.z.startAnimation=function(){var K=this;if(!this.isAnimating){var X=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var F;(F=this.backgroundLottieRef.lottieEl)==null||F.goToAndPlay(0);var P;(P=this.foregroundLottieRef.lottieEl)==null||P.goToAndPlay(0);_.A9.addJob(function(){K.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.A9.addJob(function(){K.updateContainerToFitContent(!!K.subscribed,!0)},2,1500);
_.A9.addJob(function(){K.isAnimating=!1},2,X)}};
_.z.maybeAnimateBellIcon=function(){var K=_.ND(this.hostElement).querySelector("yt-animated-icon");if(K){var X;(X=K.animationRef.lottieEl)==null||X.goToAndPlay(0)}};
_.z.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.z.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.z.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var K;this.unsubscribedWidth=(K=this.subscribeButtonShape)==null?void 0:K.getBoundingClientRect().width}var X;this.subscribedWidth=(X=this.bellButton)==null?void 0:X.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.z.updateContainerToFitContent=function(K,X){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(K?(K=this.subscribedWidth,X=this.isAnimating&&!X,this.subscribedIconOnlyWidth===void 0||X||(K=this.subscribedIconOnlyWidth),this.hostElement.style.width=K+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.z.clearContainerSize=function(){this.hostElement.style.width=""};
_.z.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.z.maybeSetSubscribedButtonIconOnlyWidth=function(){var K=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 X;K.subscribedIconOnlyWidth=(X=K.bellButton)==null?void 0:X.getBoundingClientRect().width;requestAnimationFrame(function(){if(K.bellButton){var F;K.bellButton.textLabel=
(F=K.data)==null?void 0:F.subscribedButtonText}})})))};
_.Oi.Object.defineProperties(PY.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 K;return(K=this.data)==null?void 0:K.subscribedButtonText}var X;return this.forceIconOnly?void 0:(X=this.data)==null?void 0:X.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var K,X,F=((K=this.data)==null?void 0:(X=K.timedAnimationData)==null?void 0:X.animationTiming)||[];return{uniqueId:"subscribe",timings:F,enabled:F.length>0&&!this.subscribed,experimentEnabled:F.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var K;return!this.subscribed&&((K=this.data)==null?void 0:K.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 K={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var X=K.renderer;var F=K.element;var P=K.subscribed;var H=K.commandController;var f=K.isOverlay;K=K.config;var u=EP3(X,P);f&&(u.style="overlay");f=Object;var J=f.assign,Z;a:switch((Z=X.style)==null?void 0:Z.styleType){case "COMPACT_GRAY":case "COMPACT_RED":Z={size:"S"};break a;default:Z={size:"M"}}var M=gPT(X,P);var n=
(n=P?X.subscribedButtonText:X.unsubscribedButtonText)?_.TD(n):void 0;return J.call(f,{},u,Z,{focused:!1,toggled:P,accessibilityLabel:M,formattedButtonText:n,onTap:Vel(X,K,P,F,H)})}}}});
PY.prototype.onMouseDown=PY.prototype.onMouseDown;PY.prototype.onDataChanged=PY.prototype.onDataChanged;PY.prototype.observedSubscribed=PY.prototype.observedSubscribed;PY.prototype.onYtServiceRequestCompleted=PY.prototype.onYtServiceRequestCompleted;PY.prototype.onYtServiceRequestSent=PY.prototype.onYtServiceRequestSent;PY.prototype.maybeUpdateBellButtonText=PY.prototype.maybeUpdateBellButtonText;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],PY.prototype,"ytComponentBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],PY.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],PY.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],PY.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],PY.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],PY.prototype,"data",void 0);
_.O([_.h({selectorArgs:["data.subscribedEntityKey"],selector:Mm3}),_.g("design:type",Object)],PY.prototype,"subscriptionStateEntity",void 0);_.O([_.h({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.g("design:type",Boolean)],PY.prototype,"subscribed",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],PY.prototype,"branded",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],PY.prototype,"animatedActionEnabled",void 0);
_.O([_.h(),_.g("design:type",Object)],PY.prototype,"foregroundLottieRef",void 0);_.O([_.h(),_.g("design:type",Object)],PY.prototype,"backgroundLottieRef",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],PY.prototype,"overlayButton",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.g("design:type",Object)],PY.prototype,"buttonStyle",void 0);_.O([_.h(),_.g("design:type",Object)],PY.prototype,"forceIconOnly",void 0);
_.O([_.h(),_.g("design:type",Object)],PY.prototype,"showTextWhileAnimating",void 0);_.O([_.h({value:function(){return!!_.i9().resolve(_.Nu(_.Iu))&&_.S("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.g("design:type",Boolean)],PY.prototype,"useKeyboardFocused",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],PY.prototype,"keyboardFocused",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],PY.prototype,"isAnimating",void 0);_.O([_.U("data.notificationPreferenceButton.*"),_.g("design:type",Object),_.g("design:paramtypes",[])],PY.prototype,"hasBellButton",null);
_.O([_.so("subscribedButtonText"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],PY.prototype,"maybeUpdateBellButtonText",null);_.O([_.U("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.g("design:type",Object),_.g("design:paramtypes",[])],PY.prototype,"subscribedButtonText",null);_.O([_.U("data.timedAnimationData.animationTiming","subscribed"),_.g("design:type",Object),_.g("design:paramtypes",[])],PY.prototype,"smartimationSettings",null);
_.O([_.h({reflectToAttribute:!0}),_.U("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.g("design:type",Object),_.g("design:paramtypes",[])],PY.prototype,"subscribeButtonHidden",null);_.O([_.h({reflectToAttribute:!0}),_.U("subscribed","hasBellButton"),_.g("design:type",Object),_.g("design:paramtypes",[])],PY.prototype,"subscribeButtonInvisible",null);
_.O([_.h({reflectToAttribute:!0}),_.U("subscribed"),_.g("design:type",Object),_.g("design:paramtypes",[])],PY.prototype,"unsubscribeButtonHidden",null);_.O([_.fa("ytd-subscription-notification-toggle-button-renderer-next"),_.g("design:type",Object)],PY.prototype,"bellButton",void 0);_.O([_.fa("#subscribe-button-shape"),_.g("design:type",HTMLElement)],PY.prototype,"subscribeButtonShape",void 0);
_.O([_.U("overlayButton","subscribed","data"),_.g("design:type",Object),_.g("design:paramtypes",[])],PY.prototype,"buttonShape",null);_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.yk]),_.g("design:returntype")],PY.prototype,"onYtServiceRequestSent",null);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.G9]),_.g("design:returntype")],PY.prototype,"onYtServiceRequestCompleted",null);
_.O([_.so("subscribed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],PY.prototype,"observedSubscribed",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],PY.prototype,"onDataChanged",null);_.O([_.Hc("mousedown"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],PY.prototype,"onMouseDown",null);
PY=_.O([_.v({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],PY);
_.t(PY,"ytd-subscribe-button-renderer",function(){if(jeu!==void 0)return jeu;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return jeu=K},{mode:1});var HY=function(){var K=_.G.apply(this,arguments)||this;K.isRichGrid=!1;return K};
_.r(HY,_.G);HY.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"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],HY.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],HY.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],HY.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],HY.prototype,"isRichGrid",void 0);HY=_.O([_.v({is:"ytd-game-card-renderer",disableElementRegistration:!0})],HY);
_.t(HY,"ytd-game-card-renderer",function(){if(Tvu!==void 0)return Tvu;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Tvu=K},{mode:1});var sG={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.S("defer_menus")&&!LrQ?0:void 0,waitForSignal:"eocs"};var wBu;var yaO;var z5=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return K};
_.r(z5,_.G);_.z=z5.prototype;_.z.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.z.onSeriesReminderStateEntityChange=function(){var K,X,F;((K=this.eventReminderStateEntity)==null?0:K.key)&&((X=this.seriesReminderStateEntity)==null?void 0:X.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((F=this.eventReminderStateEntity)==null?void 0:F.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.zl("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.z.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.z.onYtServiceRequestError=function(){var K;this.updateReminderStateEntitiesFromButtonState((K=this.data)==null?void 0:K.currentState)};
_.z.handleUpdateUpcomingEventReminderButtonStateCommand=function(K){if(K=_.T(K,owO)){var X,F=(X=this.data)==null?void 0:X.targetId;F&&K.targetId===F&&_.dl(this.updateReminderStateEntitiesFromButtonState.bind(this,K.state))}};
_.z.getButtonStateFromReminderState=function(){var K;if(((K=this.seriesReminderStateEntity)==null?void 0:K.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var X;if(((X=this.eventReminderStateEntity)==null?void 0:X.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var F,P;if(((F=this.seriesReminderStateEntity)==null?void 0:F.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((P=this.eventReminderStateEntity)==
null?void 0:P.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var H;return(H=this.data)==null?void 0:H.currentState};
_.z.updateReminderStateEntitiesFromButtonState=function(K){if(K){switch(K){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":K="UPCOMING_EVENT_REMINDER_STATE_NONE";var X="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":K="UPCOMING_EVENT_REMINDER_STATE_SINGLE";X="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":K="UPCOMING_EVENT_REMINDER_STATE_NONE";X="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var F;
((F=this.eventReminderStateEntity)==null?0:F.key)&&this.ytdReduxBehavior.dispatch(_.zl("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:K})));var P;((P=this.seriesReminderStateEntity)==null?0:P.key)&&this.ytdReduxBehavior.dispatch(_.zl("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:X})))}};
_.Oi.Object.defineProperties(z5.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var K=this.getButtonStateFromReminderState(),X,F;if(K&&((X=this.data)==null?0:(F=X.states)==null?0:F.length))for(X=_.D(this.data.states),F=X.next();!F.done;F=X.next()){F=F.value;var P=void 0;if(((P=_.T(F,L2T))==null?void 0:P.state)===K)return _.T(F,L2T)}}}});
z5.prototype.onYtServiceRequestError=z5.prototype.onYtServiceRequestError;z5.prototype.onYtServiceRequestCompleted=z5.prototype.onYtServiceRequestCompleted;z5.prototype.onSeriesReminderStateEntityChange=z5.prototype.onSeriesReminderStateEntityChange;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],z5.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],z5.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],z5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],z5.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],z5.prototype,"data",void 0);_.O([_.h({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:cFy}),_.g("design:type",Object)],z5.prototype,"eventReminderStateEntity",void 0);
_.O([_.h({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(K,X){return _.FF(K.entities,"sportsSeriesReminderStateEntity",X)}}),
_.g("design:type",Object)],z5.prototype,"seriesReminderStateEntity",void 0);_.O([_.U("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.g("design:type",Object),_.g("design:paramtypes",[])],z5.prototype,"currentButtonStateRenderer",null);_.O([_.so("seriesReminderStateEntity"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],z5.prototype,"onSeriesReminderStateEntityChange",null);
_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],z5.prototype,"onYtServiceRequestCompleted",null);_.O([_.Hc("yt-service-request-error"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],z5.prototype,"onYtServiceRequestError",null);z5=_.O([_.v({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],z5);
_.t(z5,"ytd-upcoming-event-reminder-button-renderer",function(){if(yaO!==void 0)return yaO;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);
return yaO=K},{mode:1});var WwQ;var f5=function(){return _.G.apply(this,arguments)||this};
_.r(f5,_.G);f5.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.Oi.Object.defineProperties(f5.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(_.S("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],f5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],f5.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],f5.prototype,"shelfDismissal",void 0);_.O([_.U("data.responseText"),_.g("design:type",Object),_.g("design:paramtypes",[])],f5.prototype,"text",null);
_.O([_.U("data.responseText"),_.g("design:type",Object),_.g("design:paramtypes",[])],f5.prototype,"textAriaLabel",null);f5=_.O([_.v({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],f5);
_.t(f5,"ytd-notification-multi-action-renderer",function(){if(WwQ!==void 0)return WwQ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return WwQ=K},{mode:1});var dQN;var Df=function(){return _.G.apply(this,arguments)||this};
_.r(Df,_.G);Df.prototype.ready=function(){var K=this;_.C$(this.hostElement).querySelector("#undo").addEventListener("tap",function(){K.onUndoTap()})};
Df.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.i9().resolve(_.xU).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Df.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Df.prototype,"data",void 0);Df=_.O([_.v({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],Df);
_.t(Df,"ytd-notification-text-renderer",function(){if(dQN!==void 0)return dQN;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return dQN=K},{mode:1});var eGu;var uJ=function(){var K=_.G.apply(this,arguments)||this;K.mouseOverDelayJobId=0;K.fadeInImageDelayJobId=0;K.startTimeMs=-1;K.loadingStartTimeMs=-1;K.loadingEndTimeMs=-1;K.hasVideoPreview=!1;return K};
_.r(uJ,_.G);_.z=uJ.prototype;_.z.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.z.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.z.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.z.showThumbnail=function(){var K=this;this.csn=_.AD();_.jv("fmth");_.A9.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.xO(_.A9,function(){K.loadingStartTimeMs=(0,_.CG)();var X=_.C$(K.hostElement).querySelector("#thumbnail");X.complete?K.displayMouseOverImage():X.addEventListener("load",_.Pc(K,K.displayMouseOverImage))},150):_.iN(_.C$(this.hostElement).querySelector("#play"),"show",!0)};
_.z.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.z.onTap=function(){this.removeVideoPreview()};
_.z.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var K=this.videoId,X=this.csn,F=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,P=this.startTimeMs,H=this.hasVideoPreview,f=_.QB(this.trackingParams),u={isMovingThumbnail:H};H&&P>0&&(F>0&&(u.movingThumbnailLoadingDurationMs=Math.round(F)),u.durationHoveredMs=Math.round((0,_.CG)()-P));K&&(u.videoId=K);_.a7(X,f,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:u});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.z.removeVideoPreview=function(){_.A9.cancelJob(this.mouseOverDelayJobId);_.A9.cancelJob(this.fadeInImageDelayJobId);var K=_.C$(this.hostElement).querySelector("#thumbnail");_.iN(K,"fade-in",!1);K.removeEventListener("load",_.Pc(this,this.displayMouseOverImage));K=_.C$(this.hostElement).querySelector("#play");_.iN(K,"fade-in",!1);_.iN(K,"show",!1)};
_.z.displayMouseOverImage=function(){var K=_.C$(this.hostElement).querySelector("#thumbnail"),X=_.C$(this.hostElement).querySelector("#play");this.isImageAvailable(K)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.CG)(),this.startTimeMs=(0,_.CG)(),this.fadeInImageDelayJobId=_.xO(_.A9,function(){_.iN(K,"fade-in",!0)},50)):_.iN(X,"fade-in",!0)};
_.z.computeThumbnail=function(K,X){var F;K&&K.movingThumbnailDetails&&K.movingThumbnailDetails.thumbnails&&X?F=_.bH(K.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):F=X?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(F)return _.ps(F)};
_.z.isImageAvailable=function(K){return!(!K.src||K.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||K.naturalWidth===120)};
uJ.prototype.onTap=uJ.prototype.onTap;uJ.prototype.dataChanged=uJ.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],uJ.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],uJ.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],uJ.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],uJ.prototype,"csn",void 0);_.O([_.h(),_.g("design:type",Object)],uJ.prototype,"trackingParams",void 0);
_.O([_.h(),_.g("design:type",String)],uJ.prototype,"videoId",void 0);_.O([_.h(),_.g("design:type",Boolean)],uJ.prototype,"isAttachedAndDataSet",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],uJ.prototype,"dataChanged",null);_.O([_.Hc("click"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],uJ.prototype,"onTap",null);uJ=_.O([_.v({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],uJ);
_.t(uJ,"ytd-moving-thumbnail-renderer",function(){if(eGu!==void 0)return eGu;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return eGu=K},{mode:1});var RGU;_.Hj=function(K){this.hostElement=K;this.eventSink=null;this.eventList=[]};
_.Hj.prototype.shouldForward=function(){var K,X;return(X=(K=this.eventSink)==null?void 0:K.isConnected)!=null?X:document.body.contains(this.eventSink)};
_.Hj.prototype.start=function(K,X){this.eventSink&&this.stop();for(var F=0;F<K.length;F++)this.hostElement.addEventListener(K[F],_.Pc(this,this.forwardEvent));var P;this.eventSink=(P=X.hostElement)!=null?P:X;this.eventList=K};
_.Hj.prototype.stop=function(){for(var K=0;K<this.eventList.length;K++)this.hostElement.removeEventListener(this.eventList[K],_.Pc(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.Hj.prototype.forwardEvent=function(K,X){this.shouldForward()&&(K.stopPropagation(),this.eventSink instanceof Element?_.iX(this.eventSink,K.type,X):_.yy(new _.nG("eventSink is not an element")))};_.q1={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.Hj(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(K,X){this.forwarder_.start(K,X)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var JN=function(){return _.G.apply(this,arguments)||this};
_.r(JN,_.G);_.z=JN.prototype;_.z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");this.tooltip.position=_.e8("HTML_DIR")==="rtl"?"right":"left"};
_.z.dataChanged=function(){this.popupOpen=!1};
_.z.computeAriaLabel=function(K){return _.T(K,GXU).label};
_.z.onTap=function(K){K.stopPropagation();K.preventDefault();this.data.command&&_.i9().resolve(_.xU).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.z.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.z.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
JN.prototype.onPopupClosed=JN.prototype.onPopupClosed;JN.prototype.onPopupOpened=JN.prototype.onPopupOpened;JN.prototype.onTap=JN.prototype.onTap;JN.prototype.dataChanged=JN.prototype.dataChanged;_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],JN.prototype,"eventForwardingBehavior",void 0);_.O([_.W(_.LT),_.g("design:type",Object)],JN.prototype,"ironButtonState",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],JN.prototype,"componentBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],JN.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,value:-1}),_.g("design:type",Number)],JN.prototype,"tabindex",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.g("design:type",Object)],JN.prototype,"ariaLabel",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],JN.prototype,"disableTooltips",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],JN.prototype,"popupOpen",void 0);
_.O([_.h(),_.g("design:type",Element)],JN.prototype,"eventSink",void 0);_.O([_.fa("#tooltip"),_.g("design:type",Object)],JN.prototype,"tooltip",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],JN.prototype,"dataChanged",null);_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],JN.prototype,"onTap",null);
_.O([_.Hc("yt-popup-opened"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],JN.prototype,"onPopupOpened",null);_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],JN.prototype,"onPopupClosed",null);JN=_.O([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],JN);
_.t(JN,"ytd-thumbnail-overlay-button-renderer",function(){if(RGU!==void 0)return RGU;var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return RGU=K},{mode:1});var UQV;var Zf=function(){return _.G.apply(this,arguments)||this};
_.r(Zf,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Zf.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Zf.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Zf.prototype,"disableAnimation",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Zf.prototype,"rounded",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Zf.prototype,"transparentBackground",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Zf.prototype,"noPadding",void 0);Zf=_.O([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],Zf);
_.t(Zf,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(UQV!==void 0)return UQV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return UQV=K},{mode:1});var hGZ;var Y$=function(){return _.G.apply(this,arguments)||this};
_.r(Y$,_.G);Y$.prototype.computeIconPosition=function(K){return this.get("iconPosition",K)||null};
Y$.prototype.computeIconStyle=function(K){return this.get("iconStyle",K)||null};
Y$.prototype.computeIsIconStyleFilled=function(K){if(!K)return!1;var X;return K.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((X=K.icon)==null?void 0:X.iconType)==="ERROR_BLACK"};
_.O([_.h(),_.g("design:type",Object)],Y$.prototype,"data",void 0);_.O([_.h({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.g("design:type",Object)],Y$.prototype,"iconPosition",void 0);_.O([_.h({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.g("design:type",Object)],Y$.prototype,"iconStyle",void 0);_.O([_.h({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],Y$.prototype,"iconStyleFilled",void 0);
Y$=_.O([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],Y$);
_.t(Y$,"ytd-thumbnail-overlay-icon-renderer",function(){if(hGZ!==void 0)return hGZ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return hGZ=K},{mode:1});var mQt;var Qu=function(){return _.G.apply(this,arguments)||this};
_.r(Qu,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Qu.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Qu.prototype,"data",void 0);Qu=_.O([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],Qu);
_.t(Qu,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(mQt!==void 0)return mQt;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return mQt=K},{mode:1});var GLW;var M1=function(){var K=_.G.apply(this,arguments)||this;K.isPreviewLoading=!1;return K};
_.r(M1,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],M1.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],M1.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],M1.prototype,"isPreviewLoading",void 0);M1=_.O([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],M1);
_.t(M1,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(GLW!==void 0)return GLW;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return GLW=K},{mode:1});var lNu;var n5=function(){return _.G.apply(this,arguments)||this};
_.r(n5,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],n5.prototype,"data",void 0);n5=_.O([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],n5);
_.t(n5,"ytd-thumbnail-overlay-pinking-renderer",function(){if(lNu!==void 0)return lNu;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return lNu=K},{mode:1});var vyT;var cY=function(){var K=_.G.apply(this,arguments)||this;K.disableTooltips=!1;K.isLoading=!1;K.useExpandableTooltip=!1;K.toggled=!1;K.hovered=!1;K.mouseoverDelayJobId=0;K.toggleDelayJobId=0;K.expandAnimationDelayJobId=0;return K};
_.r(cY,_.G);_.z=cY.prototype;_.z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");_.C$(this.hostElement).querySelector("#tooltip").position=_.e8("HTML_DIR")==="rtl"?"right":"left"};
_.z.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.A9.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.A9.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.A9.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.z.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.A9.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.A9.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.A9.cancelJob(this.expandAnimationDelayJobId)};
_.z.computeIcon=function(K,X,F){return(K=F?X:K)&&K.iconType?_.Fl(K.iconType):void 0};
_.z.computeAriaLabel=function(K,X,F){return _.T(F?X:K,GXU).label};
_.z.computeTooltip=function(K,X,F){return F?X:K};
_.z.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.z.computeIconOnHover=function(K,X){if((K==null?0:K.iconType)&&!X)return _.Fl(K.iconType)};
_.z.onTap=function(K){var X=this;K.stopPropagation();K.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(K=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(K),this.useExpandableTooltip&&(this.toggleDelayJobId=_.xO(_.A9,function(){X.hovered=!1;X.data&&!X.data.toggledServiceEndpoint&&(X.expandAnimationDelayJobId=_.xO(_.A9,function(){X.set("data.isToggled",
!1)},200))},2E3))};
_.z.onMouseenter=function(){var K=this;this.mouseoverDelayJobId=_.xO(_.A9,function(){K.hovered=!0},300)};
_.z.onMouseleave=function(){_.A9.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.z.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.z.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.z.onServiceRequestCompleted=function(K,X){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(X)||this.set("data.isToggled",!this.data.isToggled)};
_.z.serviceRequestWasSuccessful=function(K){return _.T(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.TI)?K.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;_.O([_.W(_.LT),_.g("design:type",Object)],cY.prototype,"ironButtonState",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],cY.prototype,"ytComponentBehavior",void 0);
_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],cY.prototype,"ytEventForwardingBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],cY.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.g("design:type",Object)],cY.prototype,"ariaLabel",void 0);_.O([_.h(),_.g("design:type",Object)],cY.prototype,"disableTooltips",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],cY.prototype,"popupOpen",void 0);_.O([_.h(),_.g("design:type",Object)],cY.prototype,"isLoading",void 0);_.O([_.h(),_.g("design:type",Element)],cY.prototype,"eventSink",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],cY.prototype,"useExpandableTooltip",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.g("design:type",Object)],cY.prototype,"toggled",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],cY.prototype,"hovered",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.g("design:type",Object)],cY.prototype,"iconOnHover",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],cY.prototype,"dataChanged",null);
_.O([_.Hc("mouseleave"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],cY.prototype,"onMouseleave",null);_.O([_.Hc("yt-popup-opened"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],cY.prototype,"onPopupOpened",null);_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],cY.prototype,"onPopupClosed",null);
_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.G9]),_.g("design:returntype")],cY.prototype,"onServiceRequestCompleted",null);cY=_.O([_.v({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],cY);
_.t(cY,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(vyT!==void 0)return vyT;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return vyT=K},{mode:_.Ig("kevlar_poly_si_batch_j053")?1:2});var aNN;var tzW=_.$c(function(K){var X=K.data;var F=K.thumbnailSize;var P=function(){return X().enableSegmentView};
return _.Q("yt-thumbnail-overlay-progress-bar-view-model",{class:_.HO("ytThumbnailOverlayProgressBarHost",function(){return bry(F==null?void 0:F())})},_.Q(_.p,{cond:P,
then:function(){return _.Q("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.Q("div",{class:_.z9("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+X().startPercent+"%"}}),_.Q("div",{class:_.z9("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+X().segmentDurationPercent+"%"}},_.Q("div",{class:_.z9("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.Q("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.Q("div",null," ",function(){return X().segmentLabel})),_.Q("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.Q("div",{class:_.z9("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.Q(_.p,{cond:function(){return!P()&&X().startPercent},
then:function(){var H={};return _.Q("div",{class:_.z9("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(H.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.S("web_enable_modern_progress_bar_overlay"),H))},_.Q("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+X().startPercent+"%"}}))}}))},"Q");
tzW.idomCompat=!0;var $Qu=_.$c(function(K){var X=_.kf(),F=_.rn(function(H){var f,u,J;a:{var Z=(f=K.data())==null?void 0:f.animationActivationTargetId;f=((u=K.data())==null?void 0:u.animationActivationEntityKey)||"";u=(J=K.data())==null?void 0:J.animationActivationEntitySelectorType;if(f&&Z)switch(u){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":H=_.FF(H.entities,"playerStateEntity",f);J=_.i9().resolve(_.Nu(_.Wj));Z=!!(H&&H.videoId===Z&&(J==null?0:J.isMiniplayerActive()));Z={activated:Z,playAnimation:Z&&
H.playerState==="PLAYER_STATE_PLAYING"};break a}Z=void 0}return Z});
_.rs(function(){var H;if((H=F())==null?0:H.activated){var f;if((f=F())==null?0:f.playAnimation){var u;(u=X.lottieEl)==null||u.goToAndPlay(0)}else{var J;(J=X.lottieEl)==null||J.goToAndStop(0)}}},"MDTl2e");
var P=function(){var H,f=!((H=F())==null||!H.activated);if(K.data()){H=K.data();var u=void 0;H.icon&&(u=_.fud(H.icon),u=QOT(u));var J=void 0,Z;if((Z=H.backgroundColor)==null?0:Z.lightTheme){var M;J={backgroundColor:yh((M=H.backgroundColor)==null?void 0:M.lightTheme,"0.8")}}if(H.text||u||f){if(f&&H.lottieData&&X){M=H.lottieData;var n,c,B;Z={animationConfig:{name:M.url,path:M.url,autoplay:(n=M.settings)==null?void 0:n.autoplay,loop:(B=(c=M.settings)==null?void 0:c.loop)!=null?B:!0},animationRef:X}}else Z=
void 0;if(f)n=16;else b:switch(H.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":n=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":n=18;break b;default:n=16}f={type:n,text:f&&H.animatedText?H.animatedText:H.text,icon:u,customColors:J,animation:Z}}else f=void 0}else f=void 0;return f};
return _.Q("yt-thumbnail-badge-view-model",{class:_.HO("yt-thumbnail-badge-view-model-wiz",K.class)},_.Q(_.p,{cond:P,then:function(){return _.Q(_.tf,{data:function(){return P()}})}}))},"R");var O_L=_.$c(function(K){var X={},F={};return _.Q("yt-thumbnail-bottom-overlay-view-model",{class:_.HO("ytThumbnailBottomOverlayViewModelHost",(X.ytThumbnailBottomOverlayViewModelHostBackground=function(){return K.data().enableGradientBackground},X))},_.Q(_.Md,{data:function(){return K.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(P){return _.Q(tzW,{data:P.data,
thumbnailSize:K.thumbnailSize})}}),_.Q("div",{class:_.HO("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var P;
return CMT((P=K.thumbnailSize)==null?void 0:P.call(K))},(F.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var P;
return(P=K.isClip)==null?void 0:P.call(K)},F.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var P;
return!_.S("web_enable_modern_progress_bar_overlay")&&((P=K.thumbnailSize)==null?void 0:P.call(K))==="small"},F))},_.Q(_.Md,{data:function(){return K.data().badge}},{thumbnailBadgeViewModel:function(P){return _.Q($Qu,{data:P.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.Q(_.Md,{data:function(){return K.data().badges}},{thumbnailBadgeViewModel:function(P){return _.Q($Qu,{data:P.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"S");
O_L.idomCompat=!0;_.EP(O_L,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.g$,thumbnailSize:_.g$,isClip:_.g$}});var spP={calledOnce:!1,state:"visible"},zBO={calledOnce:!1,state:"hidden"};var p5=_.$c(function(K){var X=K.data;var F=K.className;K=K.alwaysShow;var P=_.t_();_.m_(P,function(){return X().rendererContext});
var H=_.xwd(),f={};return _.Q("thumbnail-hover-overlay-view-model",{el:P,class:_.HO("ytThumbnailHoverOverlayViewModelHost",F,(f.ytThumbnailHoverOverlayViewModelHostForceHover=K,f)),"aria-label":function(){var u;return(u=_.T(X().rendererContext,_.Jp))==null?void 0:u.label},
role:function(){return _.Uy(X().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.Uy(X().rendererContext)!==void 0?0:void 0},
"on:keypress":H},_.Q("div",{class:_.HO("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(X().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var u="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:u="ytThumbnailHoverOverlayViewModelStyleCover"}return u})},_.Q(_.p,{cond:function(){return X().icon},
then:function(u){return _.Q(_.av,{data:u,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.Q(_.p,{cond:function(){return X().text},
then:function(u){return _.Q(_.Oy,{text:u,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"T");
p5.idomCompat=!0;var Vzt=_.$c(function(K){var X=K.data;return _.Q(_.Md,{data:function(){return X==null?void 0:X().overlays}},{thumbnailHoverOverlayViewModel:p5})},"U");
Vzt.idomCompat=!0;var gyQ={};var EyC=_.$c(function(K){var X=K.data;var F=K.image;var P=K.state;var H=K.iconType;var f=K.overlays;var u=K.isOverlay;var J=_.$3();K=_.D(_.u_(!0,void 0,"sUzEZ"));var Z=K.next().value,M=K.next().value,n=function(){return!!X().onTap},c=_.ag(H,"LIVE");
_.rs(function(){var L=X();requestAnimationFrame(function(){if(J.value===null)var A=!0;else{var d=J.value;A=L.badgeText;var R=uun(L.size);A in gyQ?d=gyQ[A]:(d=d.clientWidth,gyQ[A]=d);(A=d>R)?J.value.style.display="none":J.value.style.visibility="visible"}M(A)})},"SpVcNb");
var B=function(){var L={};return L["yt-spec-avatar-shape__image"]=!0,L["yt-spec-avatar-shape__image--ads-app"]=X().type===1,L};
return _.Q("yt-avatar-shape",null,_.Q("div",{el:_.$O(J5n(n,{keydown:function(L){if(L.key==="Enter"){var A;(A=L.currentTarget)==null||A.click()}},
click:function(L){var A,d;return void((d=(A=X()).onTap)==null?void 0:d.call(A,L))}})),
class:function(){var L={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},A=X();L=(L[A.clusterLayoutConfig?QpP(A.clusterLayoutConfig):MlP(A.size)]=!0,L["yt-spec-avatar-shape__button--tappable"]=n(),L);(A=X().avatarButtonCustomClassName)&&(L[A]=!0);return _.z9(L)},
"aria-label":function(){return n()?X().accessibilityText:""},
role:function(){return n()?"button":void 0},
tabindex:function(){return n()?0:void 0}},_.Q("div",{class:function(){var L,A=X(),d=P==null?void 0:P(),R=u==null?void 0:u(),l=!((L=A.decorations)==null||!L.includes(2)||A.size!=="medium"&&A.size!=="large"),a=A.size==="tiny"||A.size==="extra-small",E,V,x,N,Dl={};
L=(Dl["yt-spec-avatar-shape--live-ring"]=!!(((E=A.decorations)==null?0:E.includes(0))&&c5y(A.size)),Dl["yt-spec-avatar-shape--stories-watched"]=l&&!(d==null||!d.storiesWatched),Dl["yt-spec-avatar-shape--stories-unwatched"]=l&&!(d==null?0:d.storiesWatched),Dl["yt-spec-avatar-shape--background-border"]=p6y(A.decorations)&&!a,Dl["yt-spec-avatar-shape--background-border-thin"]=p6y(A.decorations)&&a,Dl["yt-spec-avatar-shape__on-select-border"]=!((V=A.decorations)==null||!V.includes(4)),Dl["yt-spec-avatar-shape__white-border"]=
!((x=A.decorations)==null||!x.includes(5)),Dl["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((N=A.decorations)==null?0:N.includes(5))&&a),Dl["yt-spec-avatar-shape--is-overlay"]=!!R,Dl);return _.z9(L)},
style:function(){a:{var L=X().clusterLayoutConfig;if(L){b:{var A=L.numAvatarsInCluster;var d=L.avatarIndex;if(d!==A-1){switch(L.clusterSize){case "small":L="32";break;case "medium":L="36";break;case "40":L="40";break;default:A=void 0;break b}A="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+L+"x"+L+"_avatars_"+A+"_index_"+d+".svg"}else A=void 0}if(A){A=_.Je({"-webkit-mask-image":"url("+A+")","mask-image":"url("+A+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}A=void 0}return A}},_.Q("div",{class:function(){var L={};
var A=X();L=(L[A.clusterLayoutConfig?ZHn(A.clusterLayoutConfig):YSn(A.size)]=!0,L["yt-spec-avatar-shape--no-margin"]=p6y(X().decorations),L);return _.z9(L)}},_.Q(_.av,{data:F,
alt:function(){return!n()&&X().accessibilityText?X().accessibilityText:""},
targetWidth:function(){return nnl(X().size)},
targetHeight:function(){return nnl(X().size)},
className:function(){return _.z9(B())}}),_.Q(_.p,{cond:function(){var L;
return((L=X().decorations)==null?void 0:L.includes(0))&&c5y(X().size)},
then:function(){return _.Q("div",{class:function(){var L={};L=(L["yt-spec-avatar-shape__live-badge"]=!0,L["yt-spec-avatar-shape__live-badge--badge-small"]=X().size==="small",L["yt-spec-avatar-shape__live-badge--badge-medium"]=X().size==="medium"||X().size==="48",L["yt-spec-avatar-shape__live-badge--badge-large"]=X().size==="large",L["yt-spec-avatar-shape__live-badge--badge-extra-large"]=X().size==="extra-large"||X().size==="extra-extra-large"||X().size==="giant",L);return _.z9(L)}},_.Q(_.p,{cond:function(){return X().badgeText},
then:function(L){return _.Q("div",{class:"yt-spec-avatar-shape__badge-text",el:J},L)}}),_.Q(_.p,{cond:Z,
then:function(){return _.Q("div",{class:"yt-spec-avatar-shape__badge-icon"},_.Q(_.ZF,{icon:c,size:function(){a:switch(X().size){case "extra-large":var L=16;break a;default:L=13}return L}}))}}))}}),_.Q(_.p,{cond:function(){var L,A;
return((L=X().decorations)==null?void 0:L.includes(1))||((A=X().decorations)==null?void 0:A.includes(0))&&!c5y(X().size)},
then:function(){return _.Q("div",{class:function(){var L=X(),A,d,R={};var l=(R["yt-spec-avatar-shape__live-dot"]=!((A=L.decorations)==null||!A.includes(0)||c5y(L.size)),R["yt-spec-avatar-shape__new-content"]=!((d=L.decorations)==null||!d.includes(1)),R);return _.z9(l)}})}}),_.Q(_.p,{cond:function(){return!!f},
then:function(){return _.Q("div",{class:function(){var L={};L=Object.assign((L["yt-spec-avatar-shape__image-overlays"]=!0,L),B());return _.z9(L)}},f==null?void 0:f())}})))))},"V");
EyC.idomCompat={callbacks:{overlays:!0}};_.BY=_.$c(function(K){function X(){F().endpoint&&_.e9(F().endpoint)}
var F=K.data;var P=K.decorations;var H=K.avatarButtonCustomClassName;var f=K.isOverlay;var u=K.clusterLayoutConfig;return _.Q("avatar-view-model",null,_.Q(_.p,{cond:function(){return F().image},
then:function(J){return _.Q(EyC,{data:function(){return SSP({data:F(),onTap:F().endpoint?X:void 0,decorations:P==null?void 0:P(),badgeText:void 0,accessibilityText:F().accessibilityText,avatarButtonCustomClassName:H==null?void 0:H(),clusterLayoutConfig:u==null?void 0:u()})},
image:J,iconType:"RADAR_LIVE",overlays:function(){return _.Q(Vzt,{data:F})},
isOverlay:f})}}))},"W");
_.BY.idomCompat=!0;_.SZ=_.$c(function(K){var X=K.data;K=K.className;var F=_.$3(),P=function(){return _.T(X().avatar,_.Gl)},H=_.Qs(function(){var f,u=X(),J=P(),Z=_.Uy(X().rendererContext),M=(f=F.value)!=null?f:void 0,n;
if(J){M={data:u,avatar:J,onTap:Z,element:M};f=M.data;u=M.avatar;J=M.onTap;Z=M.element;M=M.commandController;J=J?r5T(J,Z,M):void 0;Z=[];f.liveData&&Z.push(0);var c;M=(c=f.liveData)==null?void 0:c.liveBadgeText;c=(n=_.T(f.rendererContext,_.Jp))==null?void 0:n.label;n=SSP({data:u,onTap:J,decorations:Z,badgeText:M,accessibilityText:c?c:f.a11yLabel})}else n={size:"medium"};return n},void 0,"H8tk9d");
return _.Q("yt-decorated-avatar-view-model",{class:_.HO("yt-decorated-avatar-view-model-wiz",K),el:F},_.Q(_.p,{cond:function(){var f;return(f=P())==null?void 0:f.image},
then:function(f){return _.Q(EyC,{data:H,image:f,iconType:"RADAR_LIVE",overlays:function(){return _.Q(Vzt,{data:P})}})}}))},"X");
_.SZ.idomCompat=!0;_.oB=_.$c(function(K){var X=function(){var Z;return Object.assign({},K.data(),(Z=K.overrides)==null?void 0:Z.call(K))},F=_.t_(),P=function(){return F&&_.hf(X().rendererContext)};
_.m_(F,function(){return X().rendererContext});
var H=function(){var Z=X().avatars,M,n;return(n=(M=(Z==null?0:Z[0])?_.T(Z[0],_.Gl):void 0)==null?void 0:M.avatarImageSize)!=null?n:"AVATAR_SIZE_UNKNOWN"},f=function(){return ThM(X())},u=function(){if(X().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var Z=void 0;
else if((Z=K.decorations)==null?0:Z.call(K))Z=K.decorations();else{Z=X();var M=0;Z.avatars&&(M+=Z.avatars.length);Z.decoratedText&&(M+=1);Z=M>1?[3]:[]}return Z},J={};
return _.Q("yt-avatar-stack-view-model",{el:F,class:_.HO("yt-avatar-stack-view-model-wiz",K.className,(J["yt-avatar-stack-view-model-wiz--tappable"]=P,J["yt-avatar-stack-view-model-wiz--is-overlay"]=K.isOverlay,J["yt-avatar-stack-view-model-wiz--medium-text"]=K.useMediumText,J)),tabindex:function(){return P()?0:void 0},
role:function(){return P()?"link":void 0},
"aria-label":function(){var Z,M;return(M=(Z=_.T(X().rendererContext,_.Jp))==null?void 0:Z.label)!=null?M:""}},_.Q(_.p,{cond:function(){var Z;
return X().avatars&&!((Z=K.hideAvatar)==null?0:Z.call(K))},
then:function(){return _.Q("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.Q(_.p,{cond:function(){return X().decoratedText},
then:function(Z){var M={};return _.Q("div",{class:_.HO("yt-avatar-stack-view-model-wiz__text-container",(M["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return H()==="AVATAR_SIZE_XXS"||H()==="AVATAR_SIZE_XS"},M["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var n;
return((n=K.isOverlay)==null?void 0:n.call(K))&&(H()==="AVATAR_SIZE_XXS"||H()==="AVATAR_SIZE_XS")},M)),
style:_.Je({width:function(){return f().avatarSizeInPx+"px"},
height:function(){return f().avatarSizeInPx+"px"}})},_.Q(_.Oy,{text:Z,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.Q("div",{style:function(){return _.Je(f().avatarStackStyle)()},
class:function(){return f().avatarStackClass}},_.Q(_.Md,{data:function(){return f().avatars.reverse()}},{avatarViewModel:function(Z,M){return _.Q("div",{style:function(){var n,c;
return _.Je((c=(n=f()).avatarStyle)==null?void 0:c.call(n,M()))()},
class:function(){return f().avatarClass}},_.Q(_.BY,{data:Z.data,
decorations:u,avatarButtonCustomClassName:function(){return f().avatarButtonCustomClassName},
isOverlay:K.isOverlay,clusterLayoutConfig:function(){var n,c;return(c=(n=f()).clusterLayoutConfig)==null?void 0:c.call(n,M())}}))},
decoratedAvatarViewModel:function(Z,M){return _.Q("div",{style:function(){var n,c;return _.Je((c=(n=f()).avatarStyle)==null?void 0:c.call(n,M()))()},
class:function(){return f().avatarClass}},_.Q(_.SZ,{data:Z.data}))}})))}}),_.Q(_.p,{cond:function(){return X().text},
then:function(Z){return _.Q(_.Oy,{text:Z,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"Y");
_.oB.idomCompat=!0;_.EP(_.$c(function(K){var X=K.data;var F=K.thumbnailSize;return _.Q("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.Q("div",{class:_.HO("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return A5T(F==null?void 0:F())})},_.Q(_.Md,{data:function(){return X().avatarStack}},{avatarStackViewModel:function(P){return _.Q(_.oB,{data:P.data,
decorations:[5]})}})))},"Z"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.vU,
thumbnailSize:_.vU}});var b_C=_.$c(function(K){K=_.tA(K,{hidden:!1});var X=K.data;return _.Q("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:K.hidden},_.Q(_.Oy,{text:function(){return X().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.Q(_.p,{cond:function(){return X().subtitle},
then:function(){return _.Q(_.Oy,{text:function(){return X().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"$");
b_C.idomCompat=!0;_.EP(b_C,"yt-thumbnail-overlay-title-view-model",{props:{data:_.vU,hidden:_.vU}});var C5L=_.$c(function(K){K=_.tA(K,{isClip:!1});var X=K.data,F=K.thumbnailSize,P={};return _.Q("yt-thumbnail-overlay-badge-view-model",{class:_.HO("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(X().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var H="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:H="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return H},function(){return jpM(F==null?void 0:F())},(P["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
K.isClip,P))},_.Q(_.Md,{data:function(){return X().thumbnailBadges}},{thumbnailBadgeViewModel:function(H){return _.Q($Qu,{data:H.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"aa");
C5L.idomCompat=!0;_.EP(C5L,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.vU,thumbnailSize:_.vU,isClip:_.vU}});_.iy(w6O);_.K4(w6O,"yt-page-indicator-view-model",{propNames:["data"]});var L5=function(){var K=_.G.apply(this,arguments)||this;K.eventSink=function(){return K};
K.disableInteraction=!1;K.noRoundedCorners=!1;K.isPreviewLoading=!1;K.isOriginalAspectRatio=!1;K.computedObjectFit=!1;K.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return K};
_.r(L5,_.G);_.z=L5.prototype;
_.z.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:{component:"ytd-thumbnail-overlay-resume-playback-renderer",properties:{isLive:"[[isLiveVideo]]"}},thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",richGridOverlay:"[[richGridThumbnail]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",properties:{isVideoPlaying:"[[isVideoPlaying]]",equalizerOnly:"[[nowPlayingEqualizerOnly]]",isActive:"[[data.selected]]",videoId:"[[data.videoId]]"}},thumbnailOverlayPinkingRenderer:"ytd-thumbnail-overlay-pinking-renderer",
thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayIconRenderer:"ytd-thumbnail-overlay-icon-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailBottomOverlayViewModel:"yt-thumbnail-bottom-overlay-view-model",thumbnailOverlayAvatarStackViewModel:"thumbnail-overlay-avatar-stack-view-model",thumbnailOverlayBadgeViewModel:{component:"yt-thumbnail-overlay-badge-view-model",
properties:{thumbnailSize:"[[thumbnailSize]]"}}},initialRenderPriority:_.S("defer_overlays")?1:void 0,waitForSignal:void 0},hoverOverlays_:{id:"hover-overlays",reuseComponents:!1,mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayInlineUnplayableRenderer:"ytd-thumbnail-overlay-inline-unplayable-renderer",thumbnailOverlayToggleButtonRenderer:{component:"ytd-thumbnail-overlay-toggle-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",
eventSink:"[[eventSink]]",useExpandableTooltip:"[[useExpandableTooltip]]"}},thumbnailOverlayButtonRenderer:{component:"ytd-thumbnail-overlay-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",eventSink:"[[eventSink]]"}},thumbnailOverlayEndorsementRenderer:"ytd-thumbnail-overlay-endorsement-renderer",thumbnailOverlayLoadingPreviewRenderer:{component:"ytd-thumbnail-overlay-loading-preview-renderer",properties:{isPreviewLoading:"[[isPreviewLoading]]"}}}},richThumbnail:{id:"mouseover-overlay",
mapping:{movingThumbnailRenderer:{component:"ytd-moving-thumbnail-renderer",properties:{trackingParams:"[[data.trackingParams]]",videoId:"[[data.videoId]]"}}},renderPriority:2,waitForSignal:"eocs"}}};
_.z.onImageLoaded=function(){this.loaded=!0};
_.z.onImageUnloaded=function(){this.loaded=!1};
_.z.computeRichThumbnail=function(K,X,F,P){if(K&&X&&!P&&!_.S("disable_moving_thumbs_handling")&&!F)return X};
_.z.computeImageWidth=function(K,X){return X||9999};
_.z.computeIsOriginalAspectRatio=function(K){return K};
_.z.computeIsLive=function(K){if(K==null?0:K.badges)for(var X=0;X<K.badges.length;X++){var F=K.badges[X];if(F.metadataBadgeRenderer&&F.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(K==null?0:K.thumbnailOverlays)for(X=0;X<K.thumbnailOverlays.length;X++)if(F=K.thumbnailOverlays[X],F.thumbnailOverlayTimeStatusRenderer&&F.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.z.computeObjectFit=function(K,X){return X||(K?"CONTAIN":"")};
_.z.computeNavigationEndpoint=function(K,X,F){return K?X:F};
_.z.computeHasClip=function(K){K=_.D(K||[]);for(var X=K.next();!X.done;X=K.next())if(X.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.z.computeOverlayColor=function(K){var X;return(K==null?0:(X=K.darkColorPalette)==null?0:X.section2Color)?K.darkColorPalette.section2Color:K==null?void 0:K.sampledThumbnailColor};
_.Oi.Object.defineProperties(L5.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return ABn(this.width)}}});
L5.prototype.onImageUnloaded=L5.prototype.onImageUnloaded;L5.prototype.onImageLoaded=L5.prototype.onImageLoaded;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],L5.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],L5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(ysu),_.g("design:type",Object)],L5.prototype,"ytdThumbnailBehavior",void 0);
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],L5.prototype,"componentBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],L5.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],L5.prototype,"data",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],L5.prototype,"circular",void 0);
_.O([_.h({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.g("design:type",Object)],L5.prototype,"richThumbnail",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.g("design:type",Boolean)],L5.prototype,"hasClip",void 0);_.O([_.h(),_.g("design:type",Object)],L5.prototype,"eventSink",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],L5.prototype,"queued",void 0);
_.O([_.h({value:!1}),_.g("design:type",Boolean)],L5.prototype,"richGridThumbnail",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],L5.prototype,"useExpandableTooltip",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],L5.prototype,"useUntranslatedNavigationEndpoint",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],L5.prototype,"disableInteraction",void 0);
_.O([_.h({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.g("design:type",Object)],L5.prototype,"computedNavigationEndpoint",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],L5.prototype,"nowPlayingEqualizerOnly",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],L5.prototype,"hidePlaybackStatus",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],L5.prototype,"objectFit",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],L5.prototype,"noRoundedCorners",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],L5.prototype,"watchFeedThumbnail",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],L5.prototype,"isPreviewLoading",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.g("design:type",Object)],L5.prototype,"isOriginalAspectRatio",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.g("design:type",Object)],L5.prototype,"computedObjectFit",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.g("design:type",Boolean)],L5.prototype,"isLiveVideo",void 0);
_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],L5.prototype,"loaded",void 0);_.O([_.h({computed:"computeOverlayColor(data.thumbnail)"}),_.g("design:type",Object)],L5.prototype,"overlayColor",void 0);_.O([_.h({selector:_.YHq}),_.g("design:type",Boolean)],L5.prototype,"inlinePreviewIsEnabled",void 0);_.O([_.h(),_.g("design:type",Number)],L5.prototype,"width",void 0);
_.O([_.U("inlinePreviewIsEnabled"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],L5.prototype,"isPreviewDisabled",null);_.O([_.U("width"),_.g("design:type",String),_.g("design:paramtypes",[])],L5.prototype,"thumbnailSize",null);_.O([_.Hc("image-loaded"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],L5.prototype,"onImageLoaded",null);
_.O([_.Hc("image-unloaded"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],L5.prototype,"onImageUnloaded",null);L5=_.O([_.v({disableElementRegistration:!0,is:"ytd-thumbnail"})],L5);
var NvQ=_.xc()(L5,"ytd-thumbnail",function(){if(aNN===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);aNN=K}K=aNN;return K},{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 eBO=function(K){var X=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12812_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12812_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(F){i_E(X,F)};
this.onLockupMouseLeaveFn=function(F){F=F.relatedTarget;var P,H;((P=document.getElementsByTagName("ytd-video-preview"))==null?0:(H=P.item(0))==null?0:H.contains(F))||(X.terminateVideoPreview(),T5(X))};
this.onThumbnailMouseDownFn=function(){X.terminateVideoPreview();T5(X)};
this.onTouchStart=function(){X.JSC$12812_touched=!0};
this.mediaRenderer=K.mediaRenderer;this.thumbnailElement=K.thumbnailElement;this.lockupElement=K.lockupElement;this.videoPreviewOptsInput=K.videoPreviewOpts;xQZ(this);rJ(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)):
_.yy(Error("xh")):_.yy(Error("yh")):INt(this)},Ny=function(K){INt(K);
var X;(X=K.lockupElement)==null||X.removeEventListener("mouseenter",K.onMouseMoveFn);var F;(F=K.lockupElement)==null||F.removeEventListener("mouseleave",K.onLockupMouseLeaveFn);var P;(P=K.lockupElement)==null||P.removeEventListener("touchstart",K.onTouchStart);var H;(H=K.thumbnailElement)==null||H.removeEventListener("mousedown",K.onThumbnailMouseDownFn);T5(K)},xQZ=function(K){K.inlinePreviewIsEnabledForUser=_.aA().getState().ui.inlinePreviewIsEnabled;
K.unsubscribeFromInlinePreviewIsEnabled=_.Dg(_.aA(),_.YHq,function(X){(K.inlinePreviewIsEnabledForUser=X)||T5(K)});
K.JSC$12812_unsubscribeFromInlinePreviewIsActive=_.Dg(_.aA(),_.Zzq,function(X){(K.inlinePreviewIsActive=X)||T5(K)})},INt=function(K){K.unsubscribeFromInlinePreviewIsEnabled();
K.unsubscribeFromInlinePreviewIsEnabled=function(){};
K.JSC$12812_unsubscribeFromInlinePreviewIsActive();K.JSC$12812_unsubscribeFromInlinePreviewIsActive=function(){}},i_E=function(K,X){X.buttons>0||(X=_.kU("kevlar_lockup_hover_delay",-1),K.JSC$12812_touched&&X>=0?(_.A9.cancelJob(K.videoPreviewJobId),K.videoPreviewJobId=_.xO(_.A9,function(){kLC(K)},X),K.JSC$12812_touched=!1):kLC(K))},Tmw=function(K){K.videoPreviewJobId=_.xO(_.A9,function(){var X,F,P,H;
return _.q(function(f){if(f.nextAddress==1){if(!rJ(K))return f.return();X=K.getVideoPreviewOpts();if(!X)return f.return();X.isAutoplay=!0;return(P=(F=_.IJ(K.mediaRenderer.hostElement,"yt-open-video-preview-action",[X]))&&F[0])?_.Y(f,F[0],3):f.jumpTo(2)}f.nextAddress!=2&&(P=f.yieldResult===1);P&&WKl((H=K.mediaRenderer)==null?void 0:H.data);_.JT(f)})})},kLC=function(K){!K.previewTriggered&&rJ(K)&&(K.inlinePreviewIsActive&&K.terminateVideoPreview(),K.previewTriggered=!0,K.mediaRenderer.isInlinePreviewTriggered=
!0,_.A9.cancelJob(K.videoPreviewJobId),K.videoPreviewJobId=_.xO(_.A9,function(){var X,F,P,H;
return _.q(function(f){if(f.nextAddress==1){if(!rJ(K))return f.return();X=K.getVideoPreviewOpts();return X?(P=(F=_.IJ(K.mediaRenderer.hostElement,"yt-open-video-preview-action",[X]))&&F[0])?_.Y(f,F[0],3):f.jumpTo(2):f.return()}f.nextAddress!=2&&(P=f.yieldResult===1);P&&WKl((H=K.mediaRenderer)==null?void 0:H.data);_.JT(f)})}))};
eBO.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var K,X;if((X=(K=this.videoPreviewOptsInput)==null?void 0:K.videoPreviewData)!=null)K=X;else if(K=this.mediaRenderer.data)if(y5O(K))K={inlinePlaybackEndpoint:_.w$(K.inlinePlayerData.onVisible),navigationEndpoint:_.w$(K.onTap),thumbnail:"image"in K?K.image:K.thumbnail,thumbnailOverlays:void 0,accessibilityText:dJP(K)};else if("multipleInlinePlaybackEndpoint"in K){var F=_.T(_.T(K.multipleInlinePlaybackEndpoint,lRC),v_Q);if(F!=
null&&F.playerDescriptors){X=[];F=_.D(F.playerDescriptors);for(var P=F.next();!P.done;P=F.next())P=P.value,X.push({inlinePlaybackEndpoint:P.inlinePlaybackEndpoint,navigationEndpoint:P.navigationEndpoint,thumbnail:P.thumbnail,thumbnailOverlays:P.thumbnailOverlays,accessibilityText:dJP(K)});K=X}else K=void 0}else K={inlinePlaybackEndpoint:K.inlinePlaybackEndpoint,navigationEndpoint:K.navigationEndpoint,thumbnail:K.thumbnail,thumbnailOverlays:K.thumbnailOverlays,accessibilityText:dJP(K)};else K=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:K,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var rJ=function(K){var X;if(X=K.inlinePreviewIsEnabledForUser)X=(K=K.mediaRenderer.data)?"inlinePlaybackEndpoint"in K&&K.inlinePlaybackEndpoint||y5O(K)&&K.inlinePlayerData||"multipleInlinePlaybackEndpoint"in K&&K.multipleInlinePlaybackEndpoint?!0:!1:!1;return X};
eBO.prototype.terminateVideoPreview=function(){_.xr(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var T5=function(K){_.A9.cancelJob(K.videoPreviewJobId);K.inlinePreviewIsActive=!1;K.previewTriggered=!1;K.mediaRenderer.isInlinePreviewTriggered=!1};var KMZ=_.lr(["#"]),AN=function(){var K=_.G.apply(this,arguments)||this;K.isDisabled=!1;return K};
_.r(AN,_.G);_.z=AN.prototype;_.z.configureRendererStamper=function(){return{"data.menu":sG,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.z.attached=function(){this.updateInlinePreviewHoverListeners()};
_.z.detached=function(){this.clearInlinePreviewHoverListeners()};
_.z.getMetadata=function(K){var X=[];if(K.metadataText&&Object.keys(K.metadataText).length>0){var F=this.ytRendererBehavior.getSimpleString(K.metadataText);K.upcomingEventData&&K.upcomingEventData.upcomingEventText&&(F=_.j6(F,Number(K.upcomingEventData.startTime)));X.push(F)}else K.shortViewCountText&&X.push(this.ytRendererBehavior.getSimpleString(K.shortViewCountText)),K.publishedTimeText&&X.push(this.ytRendererBehavior.getSimpleString(K.publishedTimeText)),K.upcomingEventData&&K.upcomingEventData.upcomingEventText&&
(F=this.ytRendererBehavior.getSimpleString(K.upcomingEventData.upcomingEventText),X.push(_.j6(F,Number(K.upcomingEventData.startTime))));return X};
_.z.calculateBylineText=function(K){return K.shortBylineText?K.shortBylineText:K.bylineText?K.bylineText:null};
_.z.calculateIsDisabled=function(K){return!!K.isDisabled};
_.z.computeHrefWithDefault=function(K){return this.ytComponentBehavior.computeHref_(K)||_.Tp(KMZ)};
_.z.onDetailsTap=function(K){var X=this.data&&this.data.navigationEndpoint;X&&!_.lC(_.lN(K)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.S("kevlar_grid_video_renderer_killswitch")?_.iX(this.hostElement,"yt-navigate",{endpoint:X}):this.ytComponentBehavior.resolveCommand(X))};
_.z.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.z.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12817_inlinePreviewHoverListener=l6({mediaRenderer:this,lockupElement:_.C$(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.C$(this.hostElement).querySelector("ytd-thumbnail")})};
_.z.clearInlinePreviewHoverListeners=function(){var K;(K=this.JSC$12817_inlinePreviewHoverListener)==null||Ny(K)};
_.z.computeThumbnailWidth=function(K,X){return X&&X>0?X:K?360:210};
_.z.computeShowChannelThumbnail=function(K,X){var F;return X&&!!(K==null?0:(F=K.channelThumbnailSupportedRenderers)==null?0:F.channelThumbnailWithLinkRenderer)};
_.Oi.Object.defineProperties(AN.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.JSC$12817_inlinePreviewHoverListener)==null?0:rJ(K))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
AN.prototype.dataChanged=AN.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],AN.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],AN.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],AN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.yD),_.g("design:type",Object)],AN.prototype,"ytdDismissibleItemBehavior",void 0);
_.O([_.W(_.mE),_.g("design:type",Object)],AN.prototype,"ytdLockupBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],AN.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],AN.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Boolean)],AN.prototype,"noEndpoints",void 0);_.O([_.h({computed:"calculateBylineText(data)"}),_.g("design:type",Object)],AN.prototype,"bylineText",void 0);
_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],AN.prototype,"isSearch",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],AN.prototype,"isDownloading",void 0);_.O([_.h({reflectToAttribute:!0,value:0}),_.g("design:type",Number)],AN.prototype,"width",void 0);_.O([_.h({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.g("design:type",Object)],AN.prototype,"isDisabled",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],AN.prototype,"dataChanged",null);_.O([_.U("lockupIsHovered"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],AN.prototype,"isHovered",null);AN=_.O([_.v({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],AN);
_.t(AN,"ytd-grid-video-renderer",function(){if(wBu!==void 0)return wBu;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return wBu=K},{mode:_.Ig("kevlar_poly_si_batch_j047")?1:2});var XqC;var jZ=function(){var K=_.G.apply(this,arguments)||this;K.roundedContainer=!0;K.skipRoundingTop=!1;K.disableTopPadding=!1;K.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");return K};
_.r(jZ,_.G);jZ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
jZ.prototype.onClick=function(K){var X,F=(X=this.data)==null?void 0:X.sourceEndpoint;!_.lC(_.lN(K),this.hostElement,["A".toString()])&&F&&_.iX(this.hostElement,"yt-navigate",{endpoint:F})};
_.Oi.Object.defineProperties(jZ.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 K;return!((K=this.data)==null||!K.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var K,X;return(X=(K=this.data)==null?void 0:K.paragraphMaxLines)!=null?X:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],jZ.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],jZ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],jZ.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],jZ.prototype,"showVerticalDividers",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],jZ.prototype,"roundedContainer",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],jZ.prototype,"skipRoundingTop",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],jZ.prototype,"disableTopPadding",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],jZ.prototype,"amsterdamEnabled",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],jZ.prototype,"showMetadataAtTop",null);
_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],jZ.prototype,"showMetadataBelowTitle",null);_.O([_.h({reflectToAttribute:!0}),_.U("data.menu"),_.g("design:type",Object),_.g("design:paramtypes",[])],jZ.prototype,"hasMenu",null);_.O([_.h({reflectToAttribute:!0}),_.U("data.truncateParagraphs"),_.g("design:type",Object),_.g("design:paramtypes",[])],jZ.prototype,"truncateParagraphs",null);
_.O([_.h({reflectToAttribute:!0}),_.U("data.paragraphMaxLines"),_.g("design:type",Number),_.g("design:paramtypes",[])],jZ.prototype,"paragraphMaxLines",null);_.O([_.h({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.U("data.background"),_.g("design:type",Object),_.g("design:paramtypes",[])],jZ.prototype,"background",null);jZ=_.O([_.v({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],jZ);
_.t(jZ,"ytd-info-panel-content-renderer",function(){if(XqC!==void 0)return XqC;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return XqC=K},{mode:_.Ig("kevlar_poly_si_batch_j076")?1:2});var FMZ;var PMO;var HrO;var sqU;var wJ=function(){return _.G.apply(this,arguments)||this};
_.r(wJ,_.G);wJ.prototype.computeStyle=function(K){return K};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],wJ.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],wJ.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.g("design:type",String)],wJ.prototype,"style_",void 0);wJ=_.O([_.Tb({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],wJ);
_.t(wJ,"yt-channel-thumbnail-with-link-renderer",function(){if(sqU===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;HrO===void 0&&(HrO=document.createElement("template"));var P=HrO;F.call(X,P.content.cloneNode(!0),K.content.firstChild);sqU=K}K=sqU;return K},{mode:2});var yu=function(){var K=_.G.apply(this,arguments)||this;K.modernTypography=_.S("web_modern_typography");return K};
_.r(yu,_.G);yu.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"}}}};
yu.prototype.computeTitleStyle=function(K){return K||null};
yu.prototype.computeAvatarStyle=function(K){return K||null};
yu.prototype.computeShowNavigationButton=function(K,X){return!(K==null||!K.navigationButton||X)};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],yu.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],yu.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],yu.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.g("design:type",String)],yu.prototype,"titleStyle",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.g("design:type",String)],yu.prototype,"avatarStyle",void 0);_.O([_.h(),_.g("design:type",Boolean)],yu.prototype,"hideNavigationButton",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],yu.prototype,"isModernSd",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],yu.prototype,"modernTypography",void 0);
yu=_.O([_.v({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],yu);
_.t(yu,"ytd-rich-list-header-renderer",function(){if(PMO!==void 0)return PMO;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return PMO=K},{mode:_.Ig("kevlar_poly_si_batch_j058")?1:2});var WY=function(){return _.G.apply(this,arguments)||this};
_.r(WY,_.G);WY.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]]"}}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],WY.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],WY.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],WY.prototype,"data",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],WY.prototype,"isSearch",void 0);WY=_.O([_.v({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],WY);
_.t(WY,"ytd-preview-card-renderer",function(){if(FMZ!==void 0)return FMZ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return FMZ=K},{mode:1});var zoU;var dJ=function(){return _.G.apply(this,arguments)||this};
_.r(dJ,_.G);dJ.prototype.configureRendererStamper=function(){return{"data.menu":sG}};
dJ.prototype.dataChanged=function(){var K=this.get("colorExtractionPalette.section1Color",this.data);K=_.j0(K);_.XU(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":K})};
dJ.prototype.computeCardStyle=function(K){return this.get("style.value",K)||null};
dJ.prototype.dataChanged=dJ.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],dJ.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],dJ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.yD),_.g("design:type",Object)],dJ.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],dJ.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.g("design:type",String)],dJ.prototype,"cardStyle",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],dJ.prototype,"dataChanged",null);dJ=_.O([_.v({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],dJ);
_.t(dJ,"ytd-compact-channel-recommendation-card-renderer",function(){if(zoU!==void 0)return zoU;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return zoU=K},{mode:1});var fCZ;var DwU;var eZ=function(){var K=_.G.apply(this,arguments)||this;K.alignAuto=!1;K.collapsed=!0;K.isToggled=!1;K.alwaysCollapsed=!1;K.canToggle=!0;K.collapsedHeight=80;K.disableToggle=!1;K.alwaysToggleable=!1;K.reversed=!1;K.shouldUseNumberOfLines=!1;K.recomputeOnResize=!1;K.canToggleJobId=0;K.lastReversed=!1;return K};
_.r(eZ,_.G);_.z=eZ.prototype;_.z.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.z.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.z.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var K=_.C$(this.hostElement),X=K.childNodes,F=document.createDocumentFragment(),P=K.childNodes.length-1;P>=0;P--)_.C$(F).appendChild(X[P]);_.S("enable_shadydom_free_scoped_node_methods")?_.ND(this.hostElement).appendChild(F):K.appendChild(F)}};
_.z.ready=function(){var K=this;_.dl(function(){K.initChildrenObserver()},1)};
_.z.detached=function(){this.detachObserver()};
_.z.toggle=function(K,X){this.canToggle&&(this.isToggled=X,_.iX(this.hostElement,"yt-refit"),K&&K.stopPropagation())};
_.z.reset=function(){this.childrenChanged()};
_.z.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.z.computeIsMoreVisible=function(K,X){return K&&!X};
_.z.computeShouldUseNumberOfLines=function(K){try{return!!K&&window.CSS.supports("-webkit-line-clamp","1")}catch(X){}return!1};
_.z.computeIsLessVisible=function(K,X){return K&&X};
_.z.observeCollapsedHeightAndMaxLines=function(){var K=this.collapsedHeight,X=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.XU(this.hostElement,{"--ytd-expander-max-lines":""+X,"--ytd-expander-collapsed-height":""}):_.XU(this.hostElement,{"--ytd-expander-collapsed-height":K+"px","--ytd-expander-max-lines":""})};
_.z.handleMoreTap=function(K){this.disableToggle||(_.iX(this.hostElement,"yt-expander-more-tapped"),this.toggle(K,!0))};
_.z.handleLessTap=function(K){_.iX(this.hostElement,"yt-expander-less-tapped");this.toggle(K,!1)};
_.z.initChildrenObserver=function(){var K=this;this.observer=new MutationObserver(function(){K.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.z.childrenChanged=function(){var K=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){iH(function(){K.canToggleJobId=0;K.calculateCanCollapse()})}))};
_.z.calculateCanCollapse=function(){this.canToggle=this.shouldUseNumberOfLines?this.alwaysToggleable||this.isToggled||this.content&&this.content.offsetHeight<this.content.scrollHeight:this.alwaysToggleable||this.isToggled||this.content&&this.content.scrollHeight>this.collapsedHeight};
_.z.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.z.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R9("collapsed-changed",this.collapsed))};
_.z.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R9("is-toggled-changed",this.isToggled))};
_.z.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R9("can-toggle-changed",this.canToggle))};
_.Oi.Object.defineProperties(eZ.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
eZ.prototype.canToggleChangedForBinding=eZ.prototype.canToggleChangedForBinding;eZ.prototype.isToggledChangedForBinding=eZ.prototype.isToggledChangedForBinding;eZ.prototype.collapsedChangedForBinding=eZ.prototype.collapsedChangedForBinding;eZ.prototype.observeCollapsedHeightAndMaxLines=eZ.prototype.observeCollapsedHeightAndMaxLines;eZ.prototype.onIronResize=eZ.prototype.onIronResize;eZ.prototype.reversedChanged=eZ.prototype.reversedChanged;eZ.prototype.toggledChanged=eZ.prototype.toggledChanged;
eZ.prototype.alwaysToggleableChanged=eZ.prototype.alwaysToggleableChanged;_.O([_.W(_.SL),_.g("design:type",Object)],eZ.prototype,"ironResizableBehavior",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],eZ.prototype,"alignAuto",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],eZ.prototype,"collapsed",void 0);_.O([_.h(),_.g("design:type",Object)],eZ.prototype,"isToggled",void 0);_.O([_.h(),_.g("design:type",Object)],eZ.prototype,"alwaysCollapsed",void 0);
_.O([_.h(),_.g("design:type",Object)],eZ.prototype,"canToggle",void 0);_.O([_.h(),_.g("design:type",Object)],eZ.prototype,"collapsedHeight",void 0);_.O([_.h(),_.g("design:type",Object)],eZ.prototype,"disableToggle",void 0);_.O([_.h(),_.g("design:type",Object)],eZ.prototype,"alwaysToggleable",void 0);_.O([_.h(),_.g("design:type",Object)],eZ.prototype,"reversed",void 0);_.O([_.h(),_.g("design:type",Number)],eZ.prototype,"maxNumberOfLines",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.g("design:type",Object)],eZ.prototype,"shouldUseNumberOfLines",void 0);_.O([_.h(),_.g("design:type",Object)],eZ.prototype,"recomputeOnResize",void 0);_.O([_.fa("#content"),_.g("design:type",HTMLDivElement)],eZ.prototype,"content",void 0);_.O([_.JA("alwaysToggleable"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],eZ.prototype,"alwaysToggleableChanged",null);
_.O([_.JA("isToggled"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],eZ.prototype,"toggledChanged",null);_.O([_.U("canToggleJobId"),_.g("design:type",Object),_.g("design:paramtypes",[])],eZ.prototype,"isResetting",null);_.O([_.so("reversed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],eZ.prototype,"reversedChanged",null);
_.O([_.Hc("iron-resize"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],eZ.prototype,"onIronResize",null);_.O([_.so("maxNumberOfLines","collapsedHeight"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],eZ.prototype,"observeCollapsedHeightAndMaxLines",null);_.O([_.so("collapsed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],eZ.prototype,"collapsedChangedForBinding",null);
_.O([_.so("isToggled"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],eZ.prototype,"isToggledChangedForBinding",null);_.O([_.so("canToggle"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],eZ.prototype,"canToggleChangedForBinding",null);eZ=_.O([_.v({disableElementRegistration:!0,is:"ytd-expander"})],eZ);
_.t(eZ,"ytd-expander",function(){if(DwU!==void 0)return DwU;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return DwU=K},{mode:1});var RB=function(){return _.G.apply(this,arguments)||this};
_.r(RB,_.G);RB.prototype.computeIsCarousel=function(K){return!!K.isCarousel};
RB.prototype.observeLightsourcePalette=function(){var K,X=(K=this.data)==null?void 0:K.vibrantsourceColorPaletteData;X&&_.Sd(this.hostElement,X)};
RB.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
RB.prototype.observeLightsourcePalette=RB.prototype.observeLightsourcePalette;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],RB.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],RB.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],RB.prototype,"data",void 0);_.O([_.h({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],RB.prototype,"isCarousel",void 0);
_.O([_.so("data.vibrantsourceColorPaletteData"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],RB.prototype,"observeLightsourcePalette",null);RB=_.O([_.v({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],RB);
_.t(RB,"ytd-media-upsell-renderer",function(){if(fCZ!==void 0)return fCZ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return fCZ=K},{mode:2});var u3u;var UG=function(){var K=_.G.apply(this,arguments)||this;K.JSC$12845_playerEvents=new Map;K.listeningToPlayer=!1;K.startX=0;K.active=!1;K.shouldShowButtons=_.S("web_buttons_hidden_killswitch");K.isHighlighted=!1;K.useHighlightStyling=_.S("web_enable_deeper_metadata_highlight_styling");K.modern=_.S("kevlar_modern_sd");K.enableProblemWalkthrough=_.S("problem_walkthrough_sd");return K};
_.r(UG,_.G);_.z=UG.prototype;
_.z.configureRendererStamper=function(){return{"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.repeatButton":{id:"repeat-button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.thumbnailOverlay":{id:"overlay",mapping:{thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",params:{isVideoPlaying:!0}}}}}};
_.z.created=function(){this.JSC$12845_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.z.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.Pc(this,this.onRepeatButtonToggle));_.S("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.Pc(this,this.onActiveUpdate))};
_.z.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.Pc(this,this.onRepeatButtonToggle));_.S("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.Pc(this,this.onActiveUpdate))};
_.z.onDataChanged=function(){this.removePlayerListeners()};
_.z.onColorPaletteChange=function(){var K={},X;if(_.n$()==="USER_INTERFACE_THEME_DARK"&&((X=this.data)==null?0:X.darkColorPalette)){var F=this.data.darkColorPalette;K["--ytd-macro-markers-list-item-background-color"]=_.wq(this.get("section2Color",F))}else{var P;_.n$()==="USER_INTERFACE_THEME_LIGHT"&&((P=this.data)==null?0:P.lightColorPalette)&&(F=this.data.lightColorPalette,K["--ytd-macro-markers-list-item-background-color"]=_.wq(this.get("section3Color",F)))}F?(K["--ytd-macro-markers-list-item-title-color"]=
_.wq(this.get("primaryTitleColor",F)),K["--ytd-macro-markers-list-item-secondary-color"]=_.wq(this.get("secondaryTitleColor",F)),K["--ytd-macro-markers-list-item-timestamp-background-color"]=_.wq(this.get("section1Color",F)),this.customButtonProperties={customColors:{color:_.wq(this.get("primaryTitleColor",F))}},this.useColorSampling=!0):(K["--ytd-macro-markers-list-item-background-color"]="initial",K["--ytd-macro-markers-list-item-title-color"]="initial",K["--ytd-macro-markers-list-item-secondary-color"]=
"initial",K["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.XU(this.hostElement,K)};
_.z.onEndpointMouseDown=function(K){this.startX=K.clientX};
_.z.onEndpointClick=function(K){var X=this,F,P,H;return _.q(function(f){if(f.nextAddress==1){if(X.startX!==K.clientX)return K.preventDefault(),f.return();X.data&&X.ytRendererBehavior.logExplicitClick(X.data);if(!X.seekWithAnimationOnClick)return f.jumpTo(0);if(K.button!==0||K.shiftKey||K.altKey||K.metaKey||K.ctrlKey||_.lC(_.lN(K),X.hostElement,["BUTTON".toString()]))return f.return();K.stopPropagation();K.preventDefault();return X.data?_.Y(f,_.Oe().getPlayerPromise(),3):f.return()}F=f.yieldResult;
H=(P=_.T(X.data.onTap,_.vg))==null?void 0:P.startTimeSeconds;H!==void 0&&F.seekToTimeWithAnimation(H*1E3,_.lj(X.data.title));_.JT(f)})};
_.z.computeLayout=function(K){return K};
_.z.computeIsHighlighted=function(K){return!!K};
_.z.computeCarouselType=function(K){return K};
_.z.hideModernCarousel=function(K){return this.modern&&this.hideThumbnail(K)};
_.z.hideThumbnail=function(K){return this.enableProblemWalkthrough&&K!==null&&K==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.z.onRepeatButtonToggle=function(K){var X=this;K.detail.toggled&&_.Oe().getPlayerPromise().then(function(F){X.ytPlayerListenerBehavior.listenToPlayerEvents(F,X.JSC$12845_playerEvents);X.listeningToPlayer=!0})};
_.z.onLoopRangeChange=function(K){var X=_.C$(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(X){var F=X.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",X.polymerController.data);if(F){var P=Number(F.endTimeMs);if(Number(F.startTimeMs)!==(K==null?void 0:K.startTimeMs)||P!==(K==null?void 0:K.endTimeMs))X.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.z.removePlayerListeners=function(){var K=this;this.listeningToPlayer&&_.Oe().getPlayerPromise().then(function(X){K.ytPlayerListenerBehavior.unlistenFromPlayerEvents(X,K.JSC$12845_playerEvents);K.listeningToPlayer=!1})};
_.z.onActiveUpdate=function(K){this.active=K.detail.active};
UG.prototype.onColorPaletteChange=UG.prototype.onColorPaletteChange;UG.prototype.onDataChanged=UG.prototype.onDataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],UG.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],UG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.ld.YtPlayerListenerBehavior),_.g("design:type",_.vC)],UG.prototype,"ytPlayerListenerBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],UG.prototype,"data",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],UG.prototype,"useCustomColors",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],UG.prototype,"active",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],UG.prototype,"shouldShowButtons",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.g("design:type",String)],UG.prototype,"layout",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.g("design:type",Object)],UG.prototype,"isHighlighted",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],UG.prototype,"useHighlightStyling",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],UG.prototype,"modern",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],UG.prototype,"enableProblemWalkthrough",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.g("design:type",String)],UG.prototype,"carouselType",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],UG.prototype,"useColorSampling",void 0);_.O([_.h(),_.g("design:type",Boolean)],UG.prototype,"seekWithAnimationOnClick",void 0);_.O([_.h(),_.g("design:type",Object)],UG.prototype,"customButtonProperties",void 0);
_.O([_.fa("#repeat-button"),_.g("design:type",HTMLElement)],UG.prototype,"repeatButton",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],UG.prototype,"onDataChanged",null);_.O([_.so("data.lightColorPalette","data.darkColorPalette"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],UG.prototype,"onColorPaletteChange",null);
UG=_.O([_.v({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],UG);
_.t(UG,"ytd-macro-markers-list-item-renderer",function(){if(u3u!==void 0)return u3u;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return u3u=K},{mode:1});var qRL;var JdE;var hN=function(){var K=_.G.apply(this,arguments)||this;K.modernTypography=_.S("web_modern_typography");return K};
_.r(hN,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],hN.prototype,"ytRendererBehavior",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],hN.prototype,"modernTypography",void 0);_.O([_.h(),_.g("design:type",Object)],hN.prototype,"data",void 0);hN=_.O([_.v({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],hN);
_.t(hN,"ytd-title-and-button-list-header-renderer",function(){if(JdE!==void 0)return JdE;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return JdE=K},{mode:1});var Zrt;var YRZ=new _.Oh("BUTTON_RENDERER_WIZ_TOKEN"),QqT=new _.Oh("BUTTON_RENDERER_TOKEN");_.mr=_.$c(function(K){var X=_.i9().resolve(_.Nu(YRZ));if(X)return _.Q(X,Object.assign({},K));var F=_.i9().resolve(QqT);return F?_.Q(Bnd,null,function(){return _.Q(Oj,null,function(){var P,H,f,u,J,Z,M,n,c,B,L,A;return void F(K.data(),{onButtonClickCallback:K.onButtonClickCallback,shouldShowIcons:(P=K.shouldShowIcons)==null?void 0:P.call(K),icon:(H=K.icon)==null?void 0:H.call(K),processAllEndpoints:(f=K.processAllEndpoints)==null?void 0:f.call(K),preventDefault:(u=K.preventDefault)==null?void 0:u.call(K),
stopPropagation:(J=K.stopPropagation)==null?void 0:J.call(K),disableButtonRendererClickHandling:(Z=K.disableButtonRendererClickHandling)==null?void 0:Z.call(K),className:(M=K.className)==null?void 0:M.call(K),buttonOverrides:(n=K.buttonOverrides)==null?void 0:n.call(K),forceModernIconButton:(c=K.forceModernIconButton)==null?void 0:c.call(K),isSubscribe:(B=K.isSubscribe)==null?void 0:B.call(K),alignByText:(L=K.alignByText)==null?void 0:L.call(K),forceDisabled:(A=K.forceDisabled)==null?void 0:A.call(K)})})}):
_.Q(_.ID,null)},"ba");
_.mr.idomCompat=!0;var MeU=_.$c(function(K){var X=K.data,F=_.ag(K.useSquareAspectRatio,!1);return _.Q("dismissed-mini-game-card-view-model",null,_.Q(_.p,{cond:function(){var P,H;return(P=X().responseText)==null?void 0:(H=P.runs)==null?void 0:H.length},
then:function(){var P={};return _.Q("div",{class:_.HO("yt-mini-game-card-view-model__dismissed-card",(P["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!F()},P["yt-mini-game-card-view-model--dismissed-square-card"]=F,P))},_.Q("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.Q(_.p,{cond:function(){return X().responseText.runs[0].text},
then:function(H){return _.Q("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:H},H)}}),_.Q(_.Md,{data:function(){return X().buttons}},{buttonRenderer:_.mr,
buttonViewModel:_.Af})))}}))},"ca");var oPO=_.$c(function(K){K=_.tA(K,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var X=K.data,F=K.useFullWidth,P=K.isDesktopWeb,H=K.addSearchResultTopMargin,f=function(){return X().layout},u=function(){return X().title},J=function(){return X().metadataText?X().metadataText:X().genre},Z=function(){return X().channelName},M=function(){return X().image},n=function(){return X().colorPalette},c=function(){return X().actionButton},B=function(){return X().overflowButton},
L=function(){return X().avatar},A=function(){var a={};
a=_.HO("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(a["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return P()},a));
return _.Q("div",{class:a},_.Q(nPU,{imageData:M,colorPalette:n}),_.Q(cdu,{onTap:function(){return X().onTap},
imageData:M,accessibilityText:function(){return X().accessibilityText},
overlayBadgeText:function(){return X().overlayBadgeText},
iconName:function(){return X().iconName},
unplayableInlinePlaybackIconName:function(){return X().unplayableInlinePlaybackIconName},
isDesktopWeb:P}),_.Q(_.p,{cond:function(){return!P()},
then:function(){return _.Q(_.ID,null,_.Q(pqW,{layout:f,colorPalette:n,isDesktopWeb:P,overflowButton:B,avatar:L,onTap:function(){return X().onTap},
genre:J,title:u,channelName:Z,entityRedesignExperiments:function(){return X().entityRedesignExperiments}}),_.Q(G5,{actionButton:c}))}}))},d=function(){var a={};
a=_.HO((a["yt-mini-game-card-view-model--search-result-desktop"]=function(){return P()},a["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!P()},a["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return H()},a));
return _.Q("div",{class:a},A(),_.Q(B8V,{description:function(){return X().description},
isDesktopWeb:P,title:u,genre:J,onTap:function(){return X().onTap},
actionButton:c,overflowButton:B,avatar:L,channelName:Z}))},R=function(){var a=function(){var V;
return(V=X().entityRedesignExperiments)==null?void 0:V.changePlayablesLayoutWithCta},E={};
E=_.HO("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(E["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return a()},E["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return P()},E["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return P()&&X().width===135},E["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return P()},E["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!a()&&P()&&X().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},E["yt-mini-game-card-view-model--big-metadata-font"]=function(){return X().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},E["yt-mini-game-card-view-model--use-full-width"]=function(){return F()},E["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!c()},E));
return _.Q("div",{class:E},_.Q(_.p,{cond:function(){return a()},
then:function(){return _.Q(_.ID,null,_.Q(SRW,{entityRedesignExperiments:function(){return X().entityRedesignExperiments},
colorPalette:n,isDesktopWeb:P,onTap:function(){return X().onTap},
accessibilityText:function(){return X().accessibilityText},
overlayBadgeText:function(){return X().overlayBadgeText},
iconName:function(){return X().iconName},
unplayableInlinePlaybackIconName:function(){return X().unplayableInlinePlaybackIconName},
actionButton:c,imageData:M}),_.Q(pqW,{layout:f,colorPalette:n,isDesktopWeb:P,overflowButton:B,avatar:L,onTap:function(){return X().onTap},
genre:J,title:u,channelName:Z,entityRedesignExperiments:function(){return X().entityRedesignExperiments}}),_.Q(_.p,{cond:function(){return!!a()===!1&&c()},
then:function(){return _.Q(G5,{actionButton:c})}}))},
else:function(){return _.Q(_.ID,null,_.Q(nPU,{imageData:M,colorPalette:n}),_.Q(cdu,{onTap:function(){return X().onTap},
imageData:M,accessibilityText:function(){return X().accessibilityText},
overlayBadgeText:function(){return X().overlayBadgeText},
iconName:function(){return X().iconName},
unplayableInlinePlaybackIconName:function(){return X().unplayableInlinePlaybackIconName},
isDesktopWeb:P}),_.Q(pqW,{layout:f,colorPalette:n,isDesktopWeb:P,overflowButton:B,avatar:L,onTap:function(){return X().onTap},
genre:J,title:u,channelName:Z,entityRedesignExperiments:function(){return X().entityRedesignExperiments}}),_.Q(G5,{actionButton:c}))}}))},l=function(){var a={};
a=_.HO("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(a["yt-mini-game-card-view-model--square-card-desktop"]=function(){return P()},a["yt-mini-game-card-view-model--use-full-width"]=function(){return F()},a));
return _.Q("div",{class:a},_.Q(cdu,{onTap:function(){return X().onTap},
imageData:M,accessibilityText:function(){return X().accessibilityText},
overlayBadgeText:function(){return X().overlayBadgeText},
iconName:function(){return X().iconName},
unplayableInlinePlaybackIconName:function(){return X().unplayableInlinePlaybackIconName},
isDesktopWeb:P}),_.Q(pqW,{layout:f,colorPalette:n,isDesktopWeb:P,overflowButton:B,avatar:L,onTap:function(){return X().onTap},
genre:J,title:u,channelName:Z,entityRedesignExperiments:function(){return X().entityRedesignExperiments}}))};
return _.Q("mini-game-card-view-model",{class:K.className},_.Q(_.S8,null,_.Q(_.p9,{when:function(){return f()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return R()}),_.Q(_.p9,{when:function(){return f()==="MINI_APP_LAYOUT_SQUARE"}},function(){return l()}),_.Q(_.p9,{when:function(){return f()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return d()})))},"da");
oPO.idomCompat=!0;var G5=_.$c(function(K){var X=_.ag(K.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.Q(_.Md,{data:K.actionButton},{buttonViewModel:function(F){return _.Q("div",{class:X},_.Q(_.Af,{data:F.data}))}})},"ea"),cdu=_.$c(function(K){var X=K.onTap;
var F=K.imageData;var P=K.accessibilityText;var H=K.overlayBadgeText;var f=K.iconName;var u=K.unplayableInlinePlaybackIconName;K=K.isDesktopWeb;return _.Q(_.ku,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:X},_.Q(_.av,{data:F,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(P==null?void 0:P())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.Q(LMZ,{overlayBadgeText:H,iconName:f,unplayableInlinePlaybackIconName:u,isDesktopWeb:K}))},"fa"),LMZ=_.$c(function(K){var X=K.overlayBadgeText;
var F=K.iconName;var P=K.unplayableInlinePlaybackIconName;var H=K.isDesktopWeb;return _.Q("div",{class:"yt-mini-game-card-view-model__badge-container"},_.Q(_.p,{cond:F,then:function(f){return _.Q("div",{class:"yt-mini-game-card-view-model__badge"},_.Q("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.Q(_.ZF,{icon:f,className:"yt-mini-game-card-view-model__icon"}),_.Q("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},X)))}}),_.Q(_.p,{cond:function(){return!F()&&
X()},
then:function(){return _.Q("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},X)}}),_.Q(_.p,{cond:function(){return P()&&H()},
then:function(){return _.Q("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.Q(_.ZF,{icon:P,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ga"),nPU=_.$c(function(K){var X=K.colorPalette;
var F=K.imageData;var P=function(){return X().vibrantColorPalette?X().vibrantColorPalette.section2Color:X().sectionTwoColor};
return _.Q(_.ID,null,_.Q("div",{class:"yt-mini-game-card-view-model__background-base",style:_.Je({"background-color":function(){return yh(P(),"1")}})}),_.Q("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.Je({"background-image":function(){return"url("+F().sources[0].url+")"}})}),_.Q("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.Je({background:function(){return"linear-gradient(180deg,\n    "+yh(P(),".8")+" 0%,\n    "+yh(P(),".4")+" 25%,\n    "+yh(X().vibrantColorPalette?X().vibrantColorPalette.section4Color:X().sectionFourColor,".8")+" 100%)"}})}))},"ha"),pqW=_.$c(function(K){var X=K.layout;
var F=K.colorPalette;var P=K.overflowButton;var H=K.avatar;var f=K.onTap;var u=K.title;var J=K.channelName;var Z=K.entityRedesignExperiments;var M=K.genre;var n=function(){var B;return X()!=="MINI_APP_LAYOUT_SQUARE"&&((B=F())==null?0:B.textPrimaryColor)?"color: "+yh(F().textPrimaryColor,".7"):""},c=function(){var B;
return Z==null?void 0:(B=Z())==null?void 0:B.changePlayablesLayoutWithCta};
return _.Q("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.Q(_.p,{cond:H,then:function(){return _.Q("div",{class:"yt-mini-game-card-view-model__avatar"},_.Q(_.Md,{data:H},{avatarViewModel:_.BY}))}}),_.Q(_.ku,{command:f,
className:"yt-mini-game-card-view-model__metadata-details"},_.Q("h3",{class:"yt-mini-game-card-view-model__title",title:u},u),_.Q(_.p,{cond:H,then:function(){return _.Q("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.Q("span",{class:"yt-mini-game-card-view-model__genre",title:J,style:n},J),_.Q("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:n},M))},
else:function(){return _.Q(_.p,{cond:c,then:function(){return _.Q("span",{class:"yt-mini-game-card-view-model__genre",title:M},M)},
else:function(){return _.Q("span",{class:"yt-mini-game-card-view-model__genre",title:M,style:n},M)}})}})),_.Q("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.Q(_.Md,{data:P},{buttonViewModel:function(B){var L=B.data;
return _.Q(_.Af,{data:function(){return Object.assign({},L(),{customFontColor:c()?void 0:L().customFontColor})}})}})))},"ia"),SRW=_.$c(function(K){var X=K.entityRedesignExperiments;
var F=K.colorPalette;var P=K.isDesktopWeb;var H=K.onTap;var f=K.accessibilityText;var u=K.overlayBadgeText;var J=K.iconName;var Z=K.unplayableInlinePlaybackIconName;var M=K.actionButton;K=K.imageData;var n=function(){var c;return X==null?void 0:(c=X())==null?void 0:c.changePlayablesLayoutWithCta};
return _.Q("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.Q(nPU,{imageData:K,colorPalette:F}),_.Q(cdu,{onTap:H,imageData:K,accessibilityText:f,overlayBadgeText:u,iconName:J,unplayableInlinePlaybackIconName:Z,isDesktopWeb:P}),_.Q(_.p,{cond:function(){return(n==null?void 0:n())&&(M==null?void 0:M())},
then:function(){return _.Q(G5,{actionButton:M})}}))},"ja"),B8V=_.$c(function(K){var X=K.description;
var F=K.isDesktopWeb;var P=K.title;var H=K.genre;var f=K.onTap;var u=K.actionButton;var J=K.overflowButton;var Z=K.avatar;K=K.channelName;var M={};M=_.HO("yt-mini-game-card-view-model--search-result-metadata-wrapper",(M["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=F,M["yt-mini-game-card-view-model--show-unplayable-on-hover"]=F,M["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!F()},M));
var n={};n=_.HO("yt-mini-game-card-view-model__search-result-info-row",(n["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!F()},n));
return _.Q("div",{class:M},_.Q("div",{class:n},_.Q(_.ku,{command:f,className:"yt-mini-game-card-view-model__metadata-details"},_.Q("h3",{class:"yt-mini-game-card-view-model__title",title:P},P),_.Q("span",{class:"yt-mini-game-card-view-model__genre",title:H},H)),_.Q(G5,{actionButton:u,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.Q("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.Q(_.Md,{data:J},{buttonViewModel:_.Af}))),_.Q("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.Q("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.Q("div",{class:"yt-mini-game-card-view-model__avatar"},_.Q(_.Md,{data:Z},{avatarViewModel:function(c){var B=c.data;return _.Q(_.BY,{data:function(){return Object.assign({},B(),{avatarImageSize:F()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.Q(_.ku,{command:f,
className:"yt-mini-game-card-view-model__description"},_.Q("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},K)),_.Q(_.ku,{command:f,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.Q("div",null)))),_.Q(_.p,{cond:F,then:function(){return _.Q(_.ku,{command:f,className:"yt-mini-game-card-view-model__description"},X)}}))},"ka");_.EP(oPO,"mini-game-card-view-model",{props:{data:_.vU,className:_.vU,useFullWidth:_.vU,isDesktopWeb:_.vU,addSearchResultTopMargin:_.vU}});_.EP(MeU,"dismissed-mini-game-card-view-model",{props:{data:_.vU,useSquareAspectRatio:_.vU}});var lJ=function(){var K=_.G.apply(this,arguments)||this;K.isSearch=!1;K.isRichGrid=!1;return K};
_.r(lJ,_.G);_.z=lJ.prototype;_.z.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.z.dismissibleItemOnYtServiceRequestSent=function(K,X){X.actions&&this.dismissibleItemProcessActions(K,X.actions)};
_.z.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.z.dataChanged=function(){this.dismissibleItemReset()};
_.z.dismissibleItemProcessActions=function(K,X){for(var F=0;F<X.length;F++){var P=X[F];_.T(P,_.Y2)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.T(P,_.Y2)),K.stopPropagation())}};
_.z.dismissibleItemHandleReplaceEnclosingAction=function(K){this.dismissedRenderer=K.item;this.isDismissed=!0};
_.Oi.Object.defineProperties(lJ.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var K;return!!this.data&&!((K=this.dismissedRenderer)==null?0:K.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.dismissedRenderer)==null||!K.notificationMultiActionRenderer)}}});
lJ.prototype.dataChanged=lJ.prototype.dataChanged;lJ.prototype.dismissibleItemOnRequestSent=lJ.prototype.dismissibleItemOnRequestSent;lJ.prototype.dismissibleItemOnYtServiceRequestSent=lJ.prototype.dismissibleItemOnYtServiceRequestSent;_.O([_.h(),_.g("design:type",Object)],lJ.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],lJ.prototype,"isSearch",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],lJ.prototype,"isDismissed",void 0);
_.O([_.h(),_.g("design:type",Object)],lJ.prototype,"dismissedRenderer",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],lJ.prototype,"isRichGrid",void 0);_.O([_.U("data.layout"),_.g("design:type",Object),_.g("design:paramtypes",[])],lJ.prototype,"useSquareAspectRatio",null);_.O([_.U("data","dismissedRenderer"),_.g("design:type",Object),_.g("design:paramtypes",[])],lJ.prototype,"showCard",null);
_.O([_.U("data","dismissedRenderer"),_.g("design:type",Object),_.g("design:paramtypes",[])],lJ.prototype,"showDismissed",null);_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.yk]),_.g("design:returntype")],lJ.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.O([_.Hc("yt-service-request-sent-button-renderer"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],lJ.prototype,"dismissibleItemOnRequestSent",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],lJ.prototype,"dataChanged",null);lJ=_.O([_.Tb({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],lJ);
_.t(lJ,"ytd-mini-game-card-view-model",function(){if(Zrt!==void 0)return Zrt;var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return Zrt=K},{mode:_.Ig("kevlar_poly_si_batch_j081")?1:2});var T8L;var rdL;var vY=function(){return _.VF.apply(this,arguments)||this};
_.r(vY,_.VF);vY.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
vY.prototype.getContinuationUrl=function(K){var X={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(X.itct=this.data.clickTrackingParams);return _.ON(K,X)};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],vY.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],vY.prototype,"data",void 0);vY=_.O([_.Tb({is:"yt-reload-continuation",noInjection:!0})],vY);var AdU;var jqN;var aB=function(){var K=_.G.apply(this,arguments)||this;K.notificationData={};return K};
_.r(aB,_.G);_.z=aB.prototype;_.z.isMenuExpanded=function(K){return K&&K.length<=1?"undefined":"false"};
_.z.dataChanged_=function(){this.selected=void 0;var K=this.computeSelectedIndex_(this.data);K>=0&&(this.selected=K);K=this.data&&this.data.length>1;_.iN(this.hostElement,"has-items",K);_.C$(this.hostElement).querySelector("#label").tabIndex=K?0:-1};
_.z.onDropdownOpen=function(){var K=_.AD();if(this.parentTrackingParams&&this.data){var X=_.QB(this.parentTrackingParams);this.data.forEach(function(F){K&&X&&F.trackingParams&&(F=_.QB(F.trackingParams),_.Us(K,X,F),_.G6(K,[F]))})}else this.parentTrackingParams||_.yy(new _.nG("No parent tracking params passed in for yt-dropdown-menu."))};
_.z.hasNotification=function(K){var X;if(K.targetId&&((X=this.notificationData)==null?0:X.targetId)){var F;return K.targetId===((F=this.notificationData)==null?void 0:F.targetId)}};
_.z.computeSelectedIndex_=function(K){if(K)for(var X=0,F=K.length;X<F;X++)if(K[X].selected)return X;return-1};
_.z.computeLabel_=function(K){return this.data&&K!=void 0?this.data[K].title:""};
_.z.computeShowIcon_=function(K,X){return!X&&!!K};
_.z.computeVerticalOffset_=function(K){return K?36:0};
_.z.computeEndpoint_=function(K){return K.endpoint||K.navigationEndpoint};
_.z.onLabelClick_=function(K){this.data&&this.data.length<=1?K.stopPropagation():this.menuExpanded="true"};
_.z.onIronActivate_=function(K){K=K.detail.item;var X=_.C$(this.hostElement).querySelector("#repeat").itemForElement(K);if(X&&X.trackingParams){var F=_.AD(),P=_.QB(X.trackingParams);F&&_.vW(F,P)}if(X&&X.serviceEndpoint)_.S("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(X.serviceEndpoint):_.Kl(this.hostElement,[X.serviceEndpoint]),_.iX(this.hostElement,"yt-playlist-reloading");else a:{if((X=K.querySelector("yt-supported-renderers"))&&
(X=X.rendererElement)&&X.is=="yt-reload-continuation"){X.trigger();break a}(K=K.querySelector("yt-reload-continuation"))&&K.trigger()}};
_.z.onTap_=function(K){K.preventDefault()};
_.z.onItemTap_=function(K){this.ytEndpointBehavior.onEndpointTap_(K)};
_.z.onLinkFocus_=function(K){try{var X=K.target}catch(P){}if(X){var F=X.querySelector("tp-yt-paper-item");F&&_.eu(this,"focus",function(){F.focus()})}};
_.z.onMenuClose_=function(){this.menuExpanded="false"};
_.z.isLabelIconActive_=function(K){return K==="true"};
_.z.computeHasSubtitle_=function(K){return!!K};
_.z.computeHrefForItem_=function(K){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(K))};
_.z.updateSelectedFromBinding=function(K){this.selected=K.detail.value};
_.Oi.Object.defineProperties(aB.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
aB.prototype.onMenuClose_=aB.prototype.onMenuClose_;aB.prototype.onTap_=aB.prototype.onTap_;aB.prototype.onIronActivate_=aB.prototype.onIronActivate_;aB.prototype.onDropdownOpen=aB.prototype.onDropdownOpen;aB.prototype.dataChanged_=aB.prototype.dataChanged_;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],aB.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.DP.YtEndpointBehavior),_.g("design:type",Object)],aB.prototype,"ytEndpointBehavior",void 0);
_.O([_.h(),_.g("design:type",Array)],aB.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],aB.prototype,"parentTrackingParams",void 0);_.O([_.h(),_.g("design:type",Object)],aB.prototype,"selected",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],aB.prototype,"useLabel",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],aB.prototype,"useComputedAriaLabel",void 0);_.O([_.h(),_.g("design:type",String)],aB.prototype,"icon",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],aB.prototype,"iconLabel",void 0);_.O([_.h(),_.g("design:type",String)],aB.prototype,"ariaLabel",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],aB.prototype,"disabled",void 0);_.O([_.h({computed:"isMenuExpanded(data)"}),_.g("design:type",String)],aB.prototype,"menuExpanded",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],aB.prototype,"closeOnActivate",void 0);
_.O([_.h({reflectToAttribute:!0,value:_.S("web_modern_buttons")}),_.g("design:type",Boolean)],aB.prototype,"modernButtons",void 0);_.O([_.h(),_.g("design:type",Object)],aB.prototype,"notificationData",void 0);_.O([_.U("ariaLabel, selected"),_.h(),_.g("design:type",String),_.g("design:paramtypes",[])],aB.prototype,"computedAriaLabel",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],aB.prototype,"dataChanged_",null);
_.O([_.Hc("paper-dropdown-open"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],aB.prototype,"onDropdownOpen",null);_.O([_.Hc("iron-activate"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],aB.prototype,"onIronActivate_",null);_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],aB.prototype,"onTap_",null);
_.O([_.Hc("iron-overlay-closed"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],aB.prototype,"onMenuClose_",null);aB=_.O([_.Tb({is:"yt-dropdown-menu",disableElementRegistration:!0})],aB);
_.t(aB,"yt-dropdown-menu",function(){if(jqN===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;AdU===void 0&&(AdU=document.createElement("template"));var P=AdU;F.call(X,P.content.cloneNode(!0),K.content.firstChild);jqN=K}K=jqN;return K},{mode:2});var tN=function(){var K=_.G.apply(this,arguments)||this;K.hasNotification=!1;return K};
_.r(tN,_.G);tN.prototype.computeId=function(K){return K};
tN.prototype.computeHorizontalAlign=function(K){return K?"right":"left"};
tN.prototype.computeAccessibilityLabel=function(K){var X,F;return((X=K.accessibility)==null?void 0:(F=X.accessibilityData)==null?void 0:F.label)||null};
tN.prototype.notificationDataChanged=function(){var K;this.hasNotification=!!this.notificationData&&!((K=this.data)==null?0:K.icon)};
tN.prototype.notificationDataChanged=tN.prototype.notificationDataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],tN.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.WU.YtLiveChatTooltipTargetingBehavior),_.g("design:type",Object)],tN.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],tN.prototype,"data",void 0);_.O([_.h({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.g("design:type",String)],tN.prototype,"id",void 0);
_.O([_.h({value:!1}),_.g("design:type",Boolean)],tN.prototype,"isRightAligned",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],tN.prototype,"disabled",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],tN.prototype,"closeOnActivate",void 0);_.O([_.h(),_.g("design:type",Object)],tN.prototype,"notificationData",void 0);_.O([_.h(),_.g("design:type",Object)],tN.prototype,"hasNotification",void 0);
_.O([_.h({value:!1}),_.g("design:type",Boolean)],tN.prototype,"useComputedAriaLabel",void 0);_.O([_.so("notificationData"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],tN.prototype,"notificationDataChanged",null);tN=_.O([_.Tb({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],tN);
_.t(tN,"yt-sort-filter-sub-menu-renderer",function(){if(rdL===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;T8L===void 0&&(T8L=document.createElement("template"));var P=T8L;F.call(X,P.content.cloneNode(!0),K.content.firstChild);rdL=K}K=rdL;return K},{mode:2});_.iy(UJq);
var wqu=_.$c(function(K){var X=K.children;var F=K.className;var P=K.style;var H=K.role;var f=K.ariaSelected;var u=K.ariaLabel;var J=K.ariaHidden;var Z=K.ariaLabelledby;var M=K.ariaDescribedby;var n=K.command;var c=K.elementsCommand;var B=K.forceNewState;var L=K.tabIdentifier;var A=K.target;var d=K.tabIndex;var R=K.stopPropagation;K=_.Qs(function(){var l=_.Wn({innertubeCommand:n==null?void 0:n(),elementsCommand:c==null?void 0:c(),forceNewState:B==null?void 0:B(),stopPropagation:(R==null?void 0:R())!==
!1});l||(l={});l["aria-hidden$"]=J==null?void 0:J();var a;l.tabindex$=(a=d==null?void 0:d())!=null?a:l.tabindex$;var E;l["force-new-state$"]=(E=B==null?void 0:B())!=null?E:l["force-new-state$"];var V;l.role$=(V=H==null?void 0:H())!=null?V:l.role$;var x;l["aria-hidden$"]=(x=J==null?void 0:J())!=null?x:l["aria-hidden$"];var N;l.target$=(N=A==null?void 0:A())!=null?N:l.target$;return l},void 0,"SU0Mnc");
return _.Q(_.ku,{aTagConfig:K,className:F,style:P,ariaLabel:u,ariaLabelledby:Z,ariaDescribedby:M,ariaSelected:f,tabIdentifier:L},X)},"la");var ydE=_.f4(hB4);_.iy(hB4);_.EP(ydE,"place-data-view-model",{props:{data:_.vU}});var WMN=new _.Oh("INLINE_PLAYBACK_HOOK_TOKEN");var dwW=function(K){this.setActiveSlideIndex=K;this.jobIds=[];this.isSlideshowPlaying=!1},UwE=function(K,X){K.isSlideshowPlaying||(K.isSlideshowPlaying=!0,eoQ(K),Rot(K,X,0))},eoQ=function(K){_.xO(_.A9,function(){K.setActiveSlideIndex(0)},1)},Rot=function(K,X,F){K.jobIds.push(_.xO(_.A9,function(){var P=F<X-1?F+1:0;
K.setActiveSlideIndex(P);Rot(K,X,P)},1800))};var hoE=new _.Oh("IMAGE_ON_LOAD_HANDLER_TOKEN");var mwL=_.$c(function(K){return _.Q("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.Q(_.p,{cond:function(){var X;return(X=K.data())==null?void 0:X.thumbnail},
then:function(X){return _.Q(_.av,{data:X,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ma");_.GAt=_.$c(function(K){var X=K.data;var F=K.lockupExperiments;K={};return _.Q("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.Q("div",{class:_.HO("ytThumbnailOverlayButtonViewModelButton",(K.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var P;return F&&((P=F())==null?void 0:P.useLegacySizedIconButton)},K))},_.Q(_.Md,{data:function(){return X().overlayButton}},{buttonViewModel:function(P){return _.Q(_.Af,{data:P.data,
buttonOverrides:function(){var H;return F&&((H=F())==null?0:H.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"na");
_.GAt.idomCompat=!0;var lCU=_.$c(function(K){return _.Q("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.DF(function(X){X.preventDefault();return!1})},_.Q(_.Md,{data:function(){return K.data().buttons}},{toggleButtonViewModel:function(X){return _.Q("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.Q(_.pS,{data:X.data}))}}))},"oa");
lCU.idomCompat=!0;var vPO=_.$c(function(K){var X=function(){var F;return((F=_.T(K.data().rendererContext,_.Jp))==null?void 0:F.label)||""};
return _.Q("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.Q(_.p,{cond:function(){return K.data().image},
then:function(){return _.Q("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.Q(_.av,{data:function(){return K.data().image},
alt:X}))}}),_.Q(_.p,{cond:function(){return K.data().text},
then:function(){return _.Q("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return K.data().text})}}))},"pa");_.$$=_.$c(function(K){var X=[],F=function(){var B,L;return ABn((B=K.width)==null?void 0:B.call(K),(L=K.height)==null?void 0:L.call(K))},P=_.i9().resolve(_.Nu(hoE)),H=_.t_(function(){X.push("elRef.value set");
var B;(B=K.playbackRef)==null||B.call(K,{thumbnailElRef:H,thumbnail:K.data().image,thumbnailOverlays:K.data().overlays,thumbnailSize:F()})});
_.AV(function(){X.push("onInit");_.AZ(function(){X.push("onCleanup")})});
var f=_.rn(G14),u=function(){var B,L;return(L=(B=K.aspectRatio)==null?void 0:B.call(K))!=null?L:0},J=function(){return(K.data().image?_.z5d(K.data().image):u())<=1&&u()===0},Z=function(){return J()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},M=function(){H.value||_.yy(new _.nG("Thumbnail elRef.value is null",X.join("\n")));
P&&H.value&&P(H.value)},n=function(){var B,L;
return((B=K.hovered)==null?void 0:B.call(K))&&F()!=="large"&&((L=K.data().overlays)==null?void 0:L.some(function(A){return _.T(A,a_O)}))},c={};
return _.Q("yt-thumbnail-view-model",{class:_.HO("yt-thumbnail-view-model",K.className,function(){return aJl(u())},function(){var B,L;
a:{var A=F(),d=(B=K.disableRounding)==null?void 0:B.call(K);B=(L=K.isClip)==null?void 0:L.call(K);if(!d&&!B)switch(A){case "large":L="yt-thumbnail-view-model--large";break a;case "small":L="yt-thumbnail-view-model--small";break a;default:L="yt-thumbnail-view-model--medium";break a}L=void 0}return L},(c["yt-thumbnail-view-model--cinematic"]=J,c)),
style:_.Je({"background-color":function(){var B,L=J()?(B=K.data().backgroundColor)==null?void 0:B.lightTheme:void 0;return L?yh(L,"1"):void 0}}),
el:H},_.Q(_.p,{cond:J,then:function(){return _.Q("div",{class:"yt-thumbnail-view-model__blurred-image"},_.Q(_.av,{data:function(){return K.data().image},
alt:"",contentMode:Z,targetWidth:K.width,onload:M}))}}),_.Q("div",{class:"yt-thumbnail-view-model__image"},_.Q(_.av,{data:function(){return K.data().image},
alt:"",contentMode:Z,targetWidth:K.width,onload:M}),null),_.Q(_.Md,{data:function(){return n()?void 0:K.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:b_C,thumbnailOverlayBadgeViewModel:function(B){return _.Q(C5L,{data:B.data,thumbnailSize:F,isClip:K.isClip})},
thumbnailBottomOverlayViewModel:function(B){return _.Q(O_L,{data:B.data,thumbnailSize:F,isClip:K.isClip})},
thumbnailOverlayFullViewModel:vPO,thumbnailOverlayButtonViewModel:function(B){return _.Q(_.GAt,{data:B.data,lockupExperiments:K.lockupExperiments})}}),_.Q(_.Md,{data:function(){var B;
return((B=K.hovered)==null?0:B.call(K))?K.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(B){return _.Q(p5,{data:B.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:lCU}),_.Q(_.Md,{data:function(){var B;return((B=K.hovered)==null?0:B.call(K))&&f()?K.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:mwL}),_.Q(_.p,{cond:K.isClip,then:function(){return _.Q("div",{class:"yt-pinking"},_.Q("svg",{class:"yt-pinking__pinking-left"},_.Q("defs",null,_.Q("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.Q("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.Q("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.Q("svg",{class:"yt-pinking__pinking-right"},_.Q("defs",null,_.Q("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.Q("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.Q("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"qa");
_.$$.idomCompat={callbacks:{playbackRef:!0}};var aCO=_.$c(function(K){var X=_.D(_.u_(-1,void 0,"IOLZ0b")),F=X.next().value,P=X.next().value;_.AV(function(){var H=new dwW(P);UwE(H,K.data().thumbnails.length);_.AZ(function(){if(H.isSlideshowPlaying){H.isSlideshowPlaying=!1;for(var f=H.jobIds,u=0,J=f.length;u<J;u++)_.A9.cancelJob(f[u]);H.jobIds.length=0}})});
return _.Q("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.Q(_.Md,{data:function(){return K.data().thumbnails}},{thumbnailViewModel:function(H,f){return _.Q("div",{class:function(){var u=!K.data().primaryThumbnail,J=f(),Z=F(),M=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
u&&J===0&&M.push("yt-collection-thumbnail-slideshow--first-slide");J<=Z&&M.push("yt-collection-thumbnail-slideshow--show-slide");return M.join(" ")}},_.Q(_.$$,{data:H.data,
disableRounding:K.disableRounding}))}}))},"ra");
aCO.idomCompat=!0;var tll=new _.Oh("DWELL_DETECTOR_REGISTRY_TOKEN");var $wO=_.$c(function(K){var X=$JM(K.triggeringElement),F=function(){return!!K.data().primaryThumbnail};
return _.Q("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.Q(teN,{stackEnabled:F,thumbnailSize:function(){var P,H;return ABn((P=K.width)==null?void 0:P.call(K),(H=K.height)==null?void 0:H.call(K))},
doubleStack:K.doubleStack,stackColor:function(){return K.data().stackColor}},_.Q("div",null,_.Q(_.Md,{data:function(){return K.data().primaryThumbnail}},{thumbnailViewModel:function(P){var H={};
return _.Q(_.$$,{data:P.data,width:K.width,height:K.height,aspectRatio:K.aspectRatio,disableRounding:K.disableRounding,className:_.HO((H["yt-collection-thumbnail-view-model--has-stacks"]=F,H)),hovered:K.hovered,playbackRef:K.playbackRef})}}),_.Q(_.p,{cond:function(){var P;
return X()&&((P=K.data().thumbnails)==null?void 0:P.length)},
then:function(){return _.Q("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.Q(aCO,{data:K.data,disableRounding:function(){return!F()}}))}}))))},"sa");
$wO.idomCompat={callbacks:{playbackRef:!0}};
var teN=_.$c(function(K){var X=K.children;var F=K.stackEnabled;var P=K.thumbnailSize;var H=K.doubleStack;var f=K.stackColor;var u,J=(u=_.i9().resolve(_.Nu(_.m$)))==null?void 0:u();return _.Q(_.p,{cond:F,then:function(){return _.Q(pBu,{data:function(){var Z,M;return{experimentEnabled:!0,thumbnailSize:P(),doubleStack:H==null?void 0:H(),color:J?f==null?void 0:(Z=f())==null?void 0:Z.darkTheme:f==null?void 0:(M=f())==null?void 0:M.lightTheme,enableResponsiveMode:!1}}},X)},
else:function(){return X}})},"ta");var Oru=new _.Oh("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var Vu;_.OG={calledOnce:!0,state:"visible"};Vu={calledOnce:!0,state:"hidden"};_.gJ=_.$c(function(K){var X=K.data;var F=K.customCommandResolver;var P=K.className;var H=K.delayedClassName;K=K.animationEntityKey;var f=_.t_(),u=_.ag(K,""),J=_.sy(TxO,u),Z=function(){var N,Dl;return(Dl=(N=J())==null?void 0:N.value)!=null?Dl:!1},M=function(){_.vc(_.zl("booleanEntity",u(),{key:u(),
value:!0}));l=void 0};
K=_.D(_.qB(Z));var n=K.next().value,c=K.next().value;K=_.D(_.qB(Z));var B=K.next().value,L=K.next().value;K=_.D(_.qB(function(){var N;return Z()?(N=X().styleTransitionConfig)==null?void 0:N.destinationStyle:void 0}));
var A=K.next().value,d=K.next().value,R=function(){var N=Object.assign({},X(),A()&&{style:A()}),Dl,Mq,pO=N.label,y9=(Dl=N.interaction)==null?void 0:(Mq=Dl.accessibility)==null?void 0:Mq.label;Dl=N.iconImage?N.label&&N.label.content?N.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:pO,accessibilityLabel:y9,style:End(N.style),type:bHM(N.style),state:"active",size:gny(N.size),iconPosition:Dl,disabled:!1,aTagConfig:VlP(N,F)}},l;
_.NF(f,{visibilityCallback:function(N){var Dl,Mq=(Dl=X().interaction)==null?void 0:Dl.onFirstVisible;N&&Mq&&_.e9(Mq)},
showOption:_.OG});var a=function(){return Yf(R(),!!X().iconImage)};
P=_.HO(function(){return"ytwAdButtonViewModelHost"},function(){return X().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var N=!!X().delayedAppearanceConfig,Dl=n();
return N?Dl?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var N=!!X().delayedAppearanceConfig,Dl=B();
return N?Dl?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!X().delayedAppearanceConfig||n()?H==null?void 0:H():""},P!=null?P:"");
var E=function(){var N,Dl=(N=X().delayedAppearanceConfig)==null?void 0:N.delayedInvisibleSeconds;Dl&&(l=_.u6(_.A9,function(){c(!0);V()},Dl*1E3))},V=function(){var N,Dl=(N=X().delayedAppearanceConfig)==null?void 0:N.delayedVisibleSeconds;
Dl&&(l=_.u6(_.A9,function(){L(!0);x()},Dl*1E3))},x=function(){var N,Dl=(N=X().styleTransitionConfig)==null?void 0:N.styleTransitionSeconds,Mq,pO=(Mq=X().styleTransitionConfig)==null?void 0:Mq.destinationStyle;
Dl&&pO?l=_.u6(_.A9,function(){d(pO);M()},Dl*1E3):M()};
_.AV(function(){var N;((N=X().delayedAppearanceConfig)==null?0:N.transitionDurationSeconds)&&f.value.style.setProperty("transition-duration",X().delayedAppearanceConfig.transitionDurationSeconds+"s");E()});
_.AZ(function(){l&&_.A9.cancelJob(l)});
return _.Q("ad-button-view-model",{class:P,el:f},_.Q(_.p,{cond:R,then:function(){return _.Q(gV,{data:R,icon:function(){return _.Q(_.p,{cond:function(){return X().iconImage},
then:function(N){return _.Q(_.av,{data:N,alt:"",targetWidth:a,targetHeight:a,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"ua");var VeZ=_.$c(function(K){var X=K.data;K=_.t_();_.NF(K,{visibilityCallback:function(P){var H,f=(H=X().interaction)==null?void 0:H.onFirstVisible;P&&f&&_.e9(f)},
showOption:_.OG});var F={};return _.Q("ad-button-group-view-model",{class:_.HO("ytwAdButtonGroupViewModelHost",(F.ytwAdButtonGroupViewModelHostCompactWidth=function(){return X().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"},F)),
el:K},_.Q("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.Q(_.Md,{data:function(){return X().secondaryAdButton}},{adButtonViewModel:function(P){return _.Q(_.gJ,{data:P.data})}})),_.Q("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.Q(_.Md,{data:function(){return X().primaryAdButton}},{adButtonViewModel:function(P){return _.Q(_.gJ,{data:P.data})}})))},"va");var gPu=_.$c(function(K){var X=function(){var F;return((F=K.data())==null?void 0:F.answers)||[]};
return _.Q("yt-survey-icons",{class:"ytSurveyIconsHost"},_.Q("div",{class:"ytSurveyIconsHeader"},_.Q("div",{class:"ytSurveyIconsTitle"},function(){var F;return(F=K.data())==null?void 0:F.text}),_.Q("div",null,_.Q(gV,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var F;(F=K.onDismiss)==null||F.call(K)}}},
iconName:"DISMISSAL"}))),_.Q("div",null,_.Q("div",{class:"ytSurveyIconsAnswers"},_.Q(_.cd,{each:function(){return X()},
keyBy:"INDEX"},function(F,P){return _.Q("div",null,_.Q(gV,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var H;(H=K.onSelect)==null||H.call(K,F(),P)}}},
icon:function(){return _.Q(_.ZF,{icon:function(){var H,f;return(H=F())==null?void 0:(f=H.icon)==null?void 0:f.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.Q("div",{class:"ytSurveyIconsAnswersText"},_.Q("div",null,function(){return X().length?X()[0].text:""}),_.Q("div",null,function(){return X().length?X()[X().length-1].text:""}))))},"wa");var EPC=_.$c(function(K){var X=_.D(_.u_(!1,void 0,"s8HkOb")),F=X.next().value,P=X.next().value,H=_.sy(rdw,function(){var J;return(J=K.data().keys)==null?void 0:J.surveyEntityKey}),f=_.sy(AdP,function(){var J;
return(J=K.data().keys)==null?void 0:J.surveyStateEntityKey});
_.aI("ytd-slimline-survey-show-action",function(){P(!1)});
var u=function(){var J,Z;var M=(J=f())==null?void 0:(Z=J.questionStack)==null?void 0:Z[0];if(M!==void 0){var n,c;return(n=H())==null?void 0:(c=n.questions)==null?void 0:c[M]}};
X={};return _.Q("yt-slimline-survey-view-model",{class:_.HO("ytSlimlineSurveyViewModelHost",(X.ytSlimlineSurveyViewModelCollapsed=function(){return F()},X))},_.Q("div",{class:"ytSlimlineSurveyViewModelContainer"},_.Q(_.p,{cond:function(){var J;
return((J=u())==null?void 0:J.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.Q(gPu,{data:function(){return u()},
onSelect:function(J,Z){var M,n;return _.q(function(c){P(!0);if(n=(M=K.data())==null?void 0:M.onSelectRating)_.e9(n),_.vc(uaU(Z));_.JT(c)})},
onDismiss:function(){P(!0)}})}})))},"xa");var brT=_.$c(function(K){return _.Q("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.Q(_.Md,{data:function(){var X;return(X=K.data())==null?void 0:X.attachments}},{flexibleActionsViewModel:function(X){return _.Q("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.Q(RNE,{data:X.data,
layout:function(){var F;return((F=K.lockupStyle())==null?void 0:F.arrangement)===1?0:1},
justifyContentOverride:function(){var F;return((F=K.lockupStyle())==null?void 0:F.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(X){return _.Q("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.Q(EPC,{data:X.data}))},
expandableMetadataViewModel:function(X){X=X.data;var F;return _.Q("div",{class:"ytLockupAttachmentsViewModelAttachment"},(F=_.i9().resolve(_.Nu(Oru)))==null?void 0:F({data:X}))},
adButtonGroupViewModel:function(X){return _.Q("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.Q(VeZ,{data:X.data}))}}))},"ya");var k1M=_.kU("rich_grid_min_item_width",310),xJn=_.kU("rich_grid_max_item_width",500);var J2l=_.$c(function(K){var X=K.data;return _.Q("br-nz-badge-shape",{class:_.HO(function(){return fcO(X().brNzRatingBadgeType)}),
role:function(){return X().accessibilityText?"img":void 0},
"aria-label":function(){return X().accessibilityText}},function(){var F;
return(F=X())==null?void 0:F.text})},"za");_.iy(ZP9);var CMu,N8N;CMu=_.$c(function(K){var X=function(){var F=K.data(),P,H;return F?q0n(F,!((P=K.workaroundShortsIsThumbnailBadge)==null||!P.call(K)),(H=K.modern)==null?void 0:H.call(K)):void 0};
return _.Q("yt-badge-view-model",{class:_.HO("yt-badge-view-model-wiz",K.class)},_.Q(_.S8,null,_.Q(_.p9,{when:function(){var F;return!((F=X())==null||!F.brNzRatingBadgeType)}},function(){return _.Q(J2l,{data:function(){return X()}})}),_.Q(_.p9,{when:function(){return!!X()&&!X().brNzRatingBadgeType}},function(){return _.Q(_.tf,{data:function(){return X()}})})))},"Aa");
N8N=_.S("web_enable_sink_yt_badge_view_model")?CMu:ZP9;_.EG=_.S("web_enable_sink_yt_badge_view_model")?CMu:_.f4(ZP9);CMu.idomCompat=!0;var QP4,Y0P;QP4=16/9;Y0P=2/3;_.bJ=_.$c(function(K){var X=K.data;var F=K.className;var P=K.imageSizeConfig;var H=K.notifyOnLoaded;K=_.t_();var f=function(){return X().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},u=function(){var L;
return _.hf((L=X())==null?void 0:L.rendererContext)},J={};
J=(J["yt-content-preview-image-view-model-wiz"]=!0,J["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return f()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},J["yt-content-preview-image-view-model-wiz--tappable"]=function(){return u()},J);
var Z=function(){var L,A;return(A=(L=_.T(X().rendererContext,_.Jp))==null?void 0:L.label)!=null?A:""},M=function(){return nkw(X())},n=function(){var L=MCn(f(),X().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",P==null?void 0:P(),c2P(M()),X().layoutWidth,X().layoutHeight),A=Object.assign({},L);
L.width&&(A.width=Math.round(L.width));L.height&&(A.height=Math.round(L.height));L.maxWidth&&(A.maxWidth=Math.round(L.maxWidth));L.maxHeight&&(A.maxHeight=Math.round(L.maxHeight));return A},c=_.Qs(function(){return n().height},void 0,"QOtei"),B=_.Qs(function(){return n().width},void 0,"rKpuNc");
_.m_(K,function(){var L;return(L=X())==null?void 0:L.rendererContext});
return _.Q("yt-content-preview-image-view-model",{el:K,role:function(){return u()?"link":void 0},
tabindex:function(){return u()?0:void 0},
class:_.HO(F,J,function(){var L=f();var A=P==null?void 0:P();L=L==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||L==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||L==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||L==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(A==null?void 0:A.size)!=null&&A.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(A==null?void 0:A.size)!=null&&A.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return L}),
style:function(){var L=n(),A=[];L.width&&A.push("width: "+L.width+"px");L.height&&A.push("height: "+L.height+"px");L.maxWidth&&A.push("max-width: "+L.maxWidth+"px");L.maxHeight&&A.push("max-height: "+L.maxHeight+"px");L.fullWidth&&A.push("width: 100%");return A.join(";")}},_.Q(_.p,{cond:M,
then:function(L){return _.Q(_.av,{data:L,alt:Z,"data-disabled$":function(){return!Z()},
notifyOnLoaded:H,targetWidth:B,targetHeight:c,preserveWidth:function(){return!!B()},
preserveHeight:function(){return!!c()}})}}),_.Q(_.Md,{data:function(){var L;
return(L=X())==null?void 0:L.overlays}},{thumbnailHoverOverlayViewModel:p5,
thumbnailOverlayButtonViewModel:_.GAt}))},"Ba");
_.bJ.idomCompat=!0;var xwC=_.$c(function(K){var X=K.data;var F=K.className;var P=K.useSmallLayout;var H=K.useMediumText;K=_.t_();var f={};H=(f["yt-attribution-view-model-wiz"]=!0,f["yt-attribution-view-model-wiz--medium-text"]=H,f);_.m_(K,function(){var u;return(u=X())==null?void 0:u.rendererContext});
return _.Q("yt-attribution-view-model",{el:K,class:_.HO(F,H)},_.Q(_.p,{cond:function(){return _.hf(X().rendererContext)},
then:function(){return _.Q("button",{class:"yt-attribution-view-model-wiz--tappable"},_.Q(irU,{data:X,useSmallLayout:P}))},
else:function(){return _.Q(irU,{data:X,useSmallLayout:P})}}))},"Ca"),irU=_.$c(function(K){var X=K.data;
var F=K.useSmallLayout;var P=function(){return{size:(F==null?0:F())?16:24}};
return _.Q(_.ID,null,_.Q(_.Md,{data:function(){return X().contentPreviewImage}},{contentPreviewImageViewModel:function(H){return _.Q(_.bJ,{data:H.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:P})}}),_.Q(_.Md,{data:function(){return X().badge}},{badgeViewModel:function(H){return _.Q(_.EG,{data:H.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.Q(_.p,{cond:function(){return X().text},
then:function(){return _.Q(_.Oy,{text:function(){return X().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.Q(_.p,{cond:function(){return X().suffix},
then:function(){return _.Q(_.Oy,{text:function(){return X().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Da");
xwC.idomCompat=!0;var r2T=_.Jf({avatarStackViewModel:_.oB,badgeViewModel:N8N});_.iy(w2d);var ICL,kAL,KKW,X6T,FKC,PpQ;ICL=_.$c(function(K){var X=K.delimiter;var F=K.max;var P=K.index;var H=K.isStandalone;return _.Q(_.p,{cond:function(){return F()-1>P()},
then:function(){var f={};return _.Q("span",{class:_.HO("yt-content-metadata-view-model-wiz__delimiter",(f["yt-content-metadata-view-model-wiz__delimiter--standalone"]=H,f)),"aria-hidden":!0},X)}})},"Ea");
kAL=_.$c(function(K){var X=K.metadataPart;var F=K.maxLines;return _.Q(_.Oy,{text:function(){return X().text},
linkInheritColor:!0,className:function(){return y2n(F())},
userInput:!0})},"Fa");
KKW=_.$c(function(K){var X=K.metadataPart;var F=K.maxLines;return _.Q(_.p,{cond:function(){return X().tooltip},
then:function(P){return _.Q("span",{title:P,role:"tooltip"},_.Q(kAL,{metadataPart:X,maxLines:F}))},
else:function(){return _.Q(kAL,{metadataPart:X,maxLines:F})}})},"Ga");
X6T=_.$c(function(K){var X=K.metadataPart;var F=K.isOverlay;var P=K.useMediumText;var H=K.hideAvatar;var f=function(){return X().maxLines!==void 0?X().maxLines:1};
return _.Q(_.ID,null,_.Q(_.Md,{data:function(){return X().avatarStack}},{avatarStackViewModel:function(u){return _.Q(_.oB,{data:u.data,
isOverlay:F,useMediumText:P,hideAvatar:H})},
badgeViewModel:_.EG}),_.Q(_.p,{cond:function(){return X().text},
then:function(){return _.Q(KKW,{metadataPart:X,maxLines:f})}}))},"Ha");
FKC=_.$c(function(K){var X=K.metadataRow;var F=K.isInline;var P=K.delimiter;var H=K.isOverlay;var f=K.useMediumText;var u=K.extensions;var J=function(){var M;return BW9(u==null?void 0:(M=u())==null?void 0:M.lockupMetadata,X())},Z=function(){return X().metadataParts||[]};
K={};return _.Q("div",{class:_.HO("yt-content-metadata-view-model-wiz__metadata-row",(K["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=F,K["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var M;return S0l(u==null?void 0:(M=u())==null?void 0:M.lockupMetadata,X())},K["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var M;
return!!(u==null?0:(M=u())==null?0:M.lockupMetadata)&&X().badges&&!X().metadataParts},K))},_.Q(_.Md,{data:function(){return X().badges}},{badgeViewModel:function(M){return _.Q("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.Q(_.EG,{data:M.data}))}}),_.Q(_.cd,{each:Z},function(M,n){return _.Q(_.ID,null,_.Q(X6T,{metadataPart:M,
isOverlay:H,useMediumText:f,hideAvatar:J}),_.Q(ICL,{delimiter:P,max:function(){return Z().length},
index:n,isStandalone:!1}))}),_.Q(_.p,{cond:function(){return X().isSpacerRow&&!F()},
then:function(){return _.Q("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ia");
PpQ=_.$c(function(K){var X=_.tA(K,{layout:0,isOverlay:!1});K=X.className;var F=X.data,P=X.layout,H=X.isOverlay,f=X.useMediumText,u=X.extensions;X=_.t_();var J=function(){return P()===0};
_.m_(X,function(){return F().rendererContext});
var Z=function(){return F().metadataRows||[]},M={};
return _.Q("yt-content-metadata-view-model",{class:_.HO(K,"yt-content-metadata-view-model-wiz",(M["yt-content-metadata-view-model-wiz--inline"]=J,M["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.hf(F().rendererContext)},M["yt-content-metadata-view-model-wiz--medium-text"]=f,M)),
el:X},_.Q(_.cd,{each:Z},function(n,c){return _.Q(_.ID,null,_.Q(FKC,{metadataRow:n,isInline:J,delimiter:function(){return F().delimiter},
isOverlay:H,useMediumText:f,extensions:u}),_.Q(_.p,{cond:function(){return J()&&!n.isSpacerRow},
then:function(){return _.Q(ICL,{delimiter:function(){return F().delimiter},
max:function(){return Z().length},
index:c,isStandalone:!0})}}))}))},"Ja");
_.HHE=_.S("web_enable_sink_yt_content_metadata_view_model")?PpQ:_.f4(w2d);PpQ.idomCompat=!0;var spU=_.$c(function(K){var X={};return _.Q("yt-lockup-metadata-view-model",{class:_.HO("yt-lockup-metadata-view-model-wiz",function(){a:{var F=K.lockupStyle();if(F==null?0:F.isOverlay)F="yt-lockup-metadata-view-model-wiz--overlay";else switch(F==null?void 0:F.arrangement){case 1:F="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:F="yt-lockup-metadata-view-model-wiz--vertical"}}return F},function(){a:{var F=K.lockupStyle();
if(F==null?0:F.isTiny)F="yt-lockup-metadata-view-model-wiz--tiny";else switch(F==null?void 0:F.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":F="yt-lockup-metadata-view-model-wiz--compact";break a;default:F="yt-lockup-metadata-view-model-wiz--standard"}}return F},(X["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var F;
return(F=K.lockupStyle())==null?void 0:F.isOverlay},X["yt-lockup-metadata-view-model-wiz--card"]=function(){var F;
return(F=K.lockupStyle())==null?void 0:F.isCard},X["yt-lockup-metadata-view-model-wiz--centered"]=function(){var F;
return(F=K.lockupStyle())==null?void 0:F.isCentered},X["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var F;
return(F=K.lockupStyle())==null?void 0:F.typographyBump},X["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var F;
return(F=K.lockupStyle())==null?void 0:F.useLegacyTypography},X["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var F;
return(F=K.lockupStyle())==null?void 0:F.useRichGridLegacyTypography},X))},_.Q(_.Md,{data:function(){return K.data().image}},{avatarStackViewModel:function(F){return _.Q("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.Q(_.oB,{data:F.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(F){return _.Q("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.Q(_.BY,{data:F.data}))},
decoratedAvatarViewModel:function(F){return _.Q("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.Q(_.SZ,{data:F.data}))}}),_.Q("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.Q("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var F;return(F=K.data().title)==null?void 0:F.content}},_.Q(_.p,{cond:function(){return K.data().title},
then:function(F){return _.Q(_.ku,{command:K.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:K.lockupAccessibilityLabel},_.Q(_.Oy,{text:F}))}})),_.Q("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.Q(_.Md,{data:function(){return K.data().metadata}},{contentMetadataViewModel:function(F){return _.Q(_.HHE,{data:F.data,
layout:1,useMediumText:function(){var P,H;return((P=K.lockupStyle())==null?void 0:P.typographyBump)||((H=K.lockupStyle())==null?void 0:H.useRichGridLegacyTypography)},
extensions:function(){var P,H;return{lockupMetadata:{byline:{hideAvatar:((P=K.lockupStyle())==null?void 0:P.arrangement)===0,addPadding:((H=K.lockupStyle())==null?void 0:H.arrangement)===1}}}}})}})),_.Q(_.Md,{data:function(){return K.data().attribution}},{attributionViewModel:function(F){return _.Q("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.Q(xwC,{data:F.data,
useSmallLayout:!0}))}})),_.Q("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.Q(_.Md,{data:function(){return K.data().menuButton}},{buttonViewModel:function(F){return _.Q(_.Af,{data:F.data,
buttonOverrides:function(){var P;return((P=K.lockupStyle())==null?0:P.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ka");
spU.idomCompat=!0;var zBW=_.$c(function(K){var X=_.t_();_.Tr(function(){requestAnimationFrame(function(){_.Vc(X.value)})});
var F={},P={},H={};return _.Q("notification-multi-action-renderer",{class:_.HO("ytNotificationMultiActionRendererHost",(F.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var f;return(f=K.useLegacyShelfStyle)==null?void 0:f.call(K)},F)),
el:X},_.Q("span",{"aria-live":"polite",class:_.HO("ytNotificationMultiActionRendererTextContainer",(P.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var f;return(f=K.useLegacyShelfStyle)==null?void 0:f.call(K)},P))},_.Q(_.Oy,{text:function(){return K.data().responseText}})),_.Q("div",{class:_.HO("ytNotificationMultiActionRendererButtonContainer",(H.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var f;
return(f=K.useLegacyShelfStyle)==null?void 0:f.call(K)},H))},_.Q(_.Md,{data:function(){var f;
return(f=K.data().buttons)==null?void 0:f.map(function(u){if(u=u.buttonRenderer){var J,Z=Object,M=Z.assign,n=(J=u.icon)==null?void 0:J.iconType;J=(J=u.command||u.serviceEndpoint||u.navigationEndpoint)?{innertubeCommand:J}:void 0;u={buttonViewModel:M.call(Z,{},{iconName:n,onTap:J,trackingParams:u.trackingParams,titleFormatted:u.text?_.TD(u.text):void 0},WB9(u))}}else u=void 0;return u}).filter(function(u){return!!u})}},{buttonViewModel:function(f,u){return _.Q("div",null,_.Q(_.Af,{data:f.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var J;return((J=K.useModernStyles)==null?0:J.call(K))?{type:u()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"La");var fJU=_.$c(function(K){var X=_.t_();_.Tr(function(){requestAnimationFrame(function(){_.Vc(X.value)})});
return _.Q("notification-text-renderer",{el:X,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.Q(_.Oy,{text:function(){return K.data().successResponseText}}))},"Ma");_.DJZ=_.$c(function(K){var X=_.sy(LI3,function(){var P;return djw((P=K.contentId)==null?void 0:P.call(K))}),F=function(){var P;
return _.T((P=X())==null?void 0:P.command,_.Y2)};
return _.Q(_.p,{cond:function(){var P;if(!(P=F())){var H;P=_.T((H=X())==null?void 0:H.command,VIO)}return P},
then:function(){return _.Q(_.p,{cond:F,then:function(){var P={};return _.Q("div",{class:_.HO("ytDismissibleItemReplacedContent",function(){var H;return eRy((H=K.aspectRatio)==null?void 0:H.call(K))})},_.Q("div",{class:_.HO((P.ytDismissibleItemAspectRatioContainer=function(){var H;
return((H=K.aspectRatio)==null?void 0:H.call(K))!==void 0},P))},_.Q(_.Md,{data:function(){var H;
return(H=F())==null?void 0:H.item}},{notificationMultiActionRenderer:function(H){return _.Q(zBW,{data:H.data,
useModernStyles:K.useModernStyle,useLegacyShelfStyle:K.useLegacyShelfStyle})},
notificationTextRenderer:fJU})))}})},
else:K.children})},"Na");_.uuE=_.$c(function(K){var X=K.data;var F=K.customCommandResolver;K=_.$3();var P=function(){var f;return((f=X().interaction)==null?0:f.onTap)?function(u){var J;OHl(u,(J=X().interaction)==null?void 0:J.onTap,F)}:void 0},H=function(){var f,u=X(),J=P(),Z=(f=_.T(X().rendererContext,_.Jp))==null?void 0:f.label;
a:switch(u.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":f=1;break a;default:f=0}return{size:hR9(u.size),type:f,onTap:J,accessibilityText:Z}};
_.NF(K,{visibilityCallback:function(f){var u,J=(u=X().interaction)==null?void 0:u.onFirstVisible;f&&J&&_.e9(J)},
showOption:_.OG});return _.Q("ad-avatar-view-model",{class:function(){var f;return((f=X().interaction)==null?0:f.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:K},_.Q(_.p,{cond:function(){return X().image},
then:function(f){return _.Q(EyC,{data:H,image:f})}}))},"Oa");_.C5=_.$c(function(K){K=_.tA(K,{hasDot:!1});var X=Object.assign({},K),F=K.data,P=K.hasDot;K=K.customCommandResolver;var H=(delete X.data,delete X.hasDot,delete X.customCommandResolver,X);X=function(){return F().style};
X!==void 0&&X!==null||_.Gr(Error("zh"));X=_.t_();_.vp(X,function(){return F().interaction},K);
return _.Q("ad-badge-view-model",{class:_.HO(function(){var f;return((f=F().interaction)==null?0:f.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var f=H.adRenderingContextType();
F();return f==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:X},_.Q(_.tf,{data:function(){var f;F();return{type:2,text:(f=F().label)==null?void 0:f.content,adsIncludeDot:P(),isOverlay:F().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Pa");var qSZ;_.N1=_.$c(function(K){var X=K.data;var F=K.customCommandResolver;var P=K.adRenderingContextType;K=_.t_();_.vp(K,function(){return X().interaction},F);
_.NF(K,{visibilityCallback:function(H){var f,u=(f=X().interaction)==null?void 0:f.onFirstVisible;H&&u&&_.e9(u)},
showOption:_.OG});return _.Q("ad-details-line-view-model",{class:function(){var H;return((H=X().interaction)==null?0:H.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:K},_.Q(_.p,{cond:function(){return X().style},
then:function(H){return _.Q(_.cd,{each:function(){var f;return((f=X())==null?void 0:f.attributes)||[]},
keyBy:"INDEX"},function(f){return _.Q(qSZ,{attribute:f,style:H,adRenderingContextType:function(){return P()}})})}}))},"Qa");
qSZ=_.$c(function(K){var X=K.attribute;var F=K.style;var P=K.adRenderingContextType;return _.Q(_.p,{cond:function(){return X().text},
then:function(H){return _.Q(_.Oy,{text:H,className:function(){var f=P();F();return f==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ra");var J5E=_.$c(function(K){var X=K.data;var F=K.typographyBump;var P=function(){return X().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
K={};return _.Q(_.ID,null,_.Q("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.Q(_.Oy,{text:function(){return X().headline},
className:_.HO("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(K.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return P==null?void 0:P()},K.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(F==null?void 0:F())&&!(P==null?0:P())},K)),
linkInheritColor:!0}),_.Q(_.p,{cond:function(){return X().description},
then:function(H){var f={};return _.Q(_.Oy,{text:H,className:_.HO("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(f.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return P==null?void 0:P()},f.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(F==null?void 0:F())&&!(P==null?0:P())},f)),
linkInheritColor:!0})}}),_.Q(_.p,{cond:function(){return X().secondaryDescription},
then:function(H){var f={};return _.Q(_.Oy,{text:H,className:_.HO("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(f.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return F==null?void 0:F()},f)),
linkInheritColor:!0})}}),_.Q("div",{class:function(){return P()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.Q(_.p,{cond:function(){return X().adAvatar},
then:function(){return _.Q("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.Q(_.Md,{data:function(){return X().adAvatar}},{adAvatarViewModel:_.uuE}))}}),_.Q(_.Md,{data:function(){return X().adBadge}},{adBadgeViewModel:function(H){return _.Q(_.C5,{data:H.data,
hasDot:function(){return!!X().adDetailsLine},
adRenderingContextType:function(){return X().adRenderingContextType}})}}),_.Q(_.Md,{data:function(){return X().adDetailsLine}},{adDetailsLineViewModel:function(H){return _.Q(_.N1,{data:H.data,
adRenderingContextType:function(){return X().adRenderingContextType}})}}))),_.Q("div",{class:function(){return P()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.Q(_.Md,{data:function(){return X().menu}},{buttonViewModel:function(H){return _.Q(_.Af,{data:H.data,
buttonOverrides:function(){a:switch(X().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var f="S";break a;default:f="M"}return{size:f}}})}})))},"Sa"),ZHE=_.$c(function(K){var X=K.data;
var F=K.noBottomMargin;var P=K.useVideoLockupTopPadding;var H=K.typographyBump;K={};K=_.HO("ytwFeedAdMetadataViewModelHostMetadata",(K.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return F==null?void 0:F()},K.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return P==null?void 0:P()},K));
var f=function(){return X().adBadge};
f!==void 0&&f!==null||_.Gr(Error("Ah"));f={};var u={};return _.Q(_.ID,null,_.Q(_.p,{cond:function(){return X().adAvatar},
then:function(){return _.Q("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.Q(_.Md,{data:function(){return X().adAvatar}},{adAvatarViewModel:function(J){return _.Q(_.uuE,{data:J.data})}}))}}),_.Q("div",{class:K},_.Q("div",{class:_.HO("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(f.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return H==null?void 0:H()},f.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(H==
null?void 0:H())&&_.S("web_enable_typography_bump_v2")},f))},_.Q(_.Oy,{text:function(){return X().headline},
linkInheritColor:!0})),_.Q(_.p,{cond:function(){return X().description},
then:function(J){return _.Q(_.Oy,{text:J,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.Q("div",{class:function(){return X().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.S("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.Q(_.Md,{data:function(){return X().adBadge}},
{adBadgeViewModel:function(J){return _.Q(_.C5,{data:J.data,
hasDot:function(){return!!X().adDetailsLine},
adRenderingContextType:function(){return X().adRenderingContextType}})}}),_.Q(_.Md,{data:function(){return X().adDetailsLine}},{adDetailsLineViewModel:function(J){return _.Q(_.N1,{data:J.data,
adRenderingContextType:function(){return X().adRenderingContextType}})}})),_.Q(_.p,{cond:function(){return X().secondaryDescription},
then:function(J){return _.Q(_.Oy,{text:J,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.Q("div",{class:_.HO("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(u.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return P==null?void 0:P()},u))},_.Q(_.Md,{data:function(){return X().menu}},{buttonViewModel:_.Af})))},"Ta"),YSE=_.$c(function(K){var X=K.data;
var F=K.noBottomMargin;var P=K.listenToTapEvent;var H=K.setTouchEndHandler;var f=K.useVideoLockupTopPadding;var u=K.typographyBump;var J=_.t_();_.vp(J,function(){return X().interaction},void 0,function(){return P==null?void 0:P()});
K=_.D(_.u_(!1,void 0,"qjt0Xc"));var Z=K.next().value,M=K.next().value;K=_.DF(function(){(H==null?0:H())&&!Z()&&(J.value.click(),M(!0),setTimeout(function(){M(!1)},100));
return!1});
_.NF(J,{visibilityCallback:function(n){var c,B=(c=X().interaction)==null?void 0:c.onFirstVisible;n&&B&&_.e9(B)},
showOption:_.OG});return _.Q("feed-ad-metadata-view-model",{class:function(){var n;return((n=X().interaction)==null?0:n.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:J,"on:touchend":K},_.Q(_.S8,null,_.Q(_.p9,{when:function(){return X().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.Q(J5E,{data:X,
typographyBump:u})}),_.Q(_.p9,{when:function(){return X().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.Q(ZHE,{data:X,
noBottomMargin:F,useVideoLockupTopPadding:f,typographyBump:u})})))},"Ua");var QpU;_.iJ=_.$c(function(K){return _.Q("yt-lockup-view-model",{class:_.HO(K.className)},_.Q(_.DJZ,{contentId:function(){return K.data().contentId},
useModernStyle:!0,aspectRatio:function(){var X,F;return((X=K.containerType)==null?void 0:X.call(K))!==3?sPd(K.data().contentType,(F=K.force16By9ThumbnailAspectRatio)==null?void 0:F.call(K)):void 0}},function(){return _.Q(QpU,Object.assign({},K))}))},"Va");
QpU=_.$c(function(K){K=_.tA(K,{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 X=K.data,F=K.containerLayoutConfig,P=K.containerType,H=K.sizing,f=K.protectBackground,u=K.typographyBump,J=K.force16By9ThumbnailAspectRatio,Z=K.thumbnailFixedWidth,M=K.thumbnailTargetWidth,n=K.lockupExperiments,c=K.elementsPerRow;
K=_.t_();_.m_(K,function(){var eP;return(eP=X())==null?void 0:eP.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 B=_.rn(lJd),L=_.i9().resolve(_.Nu(WMN)),A=L?{}:void 0,d=function(){var eP,gw,a3;return(a3=(gw=_.T((eP=X())==null?void 0:eP.rendererContext,_.Jp))==null?void 0:gw.label)!=null?a3:void 0},R=function(){var eP=F==null?void 0:F(),gw;
if(eP==null?0:eP.containerType){var a3=(gw=X())==null?void 0:gw.contentType;gw=n();var dL=u(),nt=M(),ht=f();eP=Object.assign({},zRd(FBP(eP),KBy(eP.responsiveSize),dL,a3,eP.force16By9ThumbnailAspectRatio,nt,ht,gw),{thumbnailFixedWidth:eP.contentPreviewWidth})}else eP=zRd(P(),H(),u(),(a3=X())==null?void 0:a3.contentType,J(),M(),f(),n());return eP};
L&&A&&L({enabled:function(){return B()},
itemPlaybackModel:function(){return X().itemPlayback},
thumbnailElRef:function(){return A.thumbnailElRef},
containerElRef:K,options:function(){var eP,gw=(eP=_.T(X().metadata,UfN))==null?void 0:eP.endorsement;eP=A.thumbnailOverlays||[];gw&&eP.push(gw);var a3,dL;return{thumbnail:A.thumbnail,thumbnailOverlays:eP,accessibilityText:d(),thumbnailSize:A.thumbnailSize,enableRounding:R().isCollection,containPlayerWithinThumbnail:R().isCollection,trackingParams:(a3=_.T(X().rendererContext,_.q0))==null?void 0:(dL=a3.loggingDirectives)==null?void 0:dL.trackingParams}}});
var l=0;L=_.D(_.u_(!1,void 0,"BKBkhb"));var a=L.next().value,E=L.next().value;L=_.D(_.u_(!1,void 0,"GK0mq"));var V=L.next().value,x=L.next().value;L=_.DF(function(){var eP=B()&&X().itemPlayback;V()?(_.A9.cancelJob(l),l=_.A9.addJob(function(){E(!eP)},8,32)):E(!eP);
return!0});
var N=_.DF(function(){l&&(_.A9.cancelJob(l),l=0);E(!1)});
_.AZ(function(){l&&(_.A9.cancelJob(l),l=0)});
var Dl=Ujl(function(){x(!0)}),Mq=Dl.touchFeedbackEvents,pO=Dl.touchFeedbackOnPointerUp,y9=Dl.touchFeedbackOnPointerDown;
Dl=Dl.touchFeedbackOnPointerLeave;var Wy={};return _.Q("div",{el:K,class:_.HO("yt-lockup-view-model-wiz",function(){a:{var eP=R();if(eP.isOverlay)eP="yt-lockup-view-model-wiz--overlay";else switch(eP.arrangement){case 1:eP="yt-lockup-view-model-wiz--horizontal";break a;default:eP="yt-lockup-view-model-wiz--vertical"}}return eP},function(){a:{var eP=R();
if(eP.isOverlay)eP="yt-lockup-view-model-wiz--overlay";else{switch(eP.collectionStackNumber){case 1:eP="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:eP="yt-lockup-view-model-wiz--collection-stack-2";break a}eP=void 0}}return eP},(Wy["yt-lockup-view-model-wiz--card"]=function(){return R().isCard},Wy["yt-lockup-view-model-wiz--compact"]=function(){return R().isTiny||R().sizing!=="STANDARD"},Wy["yt-lockup-view-model-wiz--protect-background"]=f,Wy["yt-lockup-view-model-wiz--add-margins"]=
function(){return R().addMarginForFullbleed},Wy["yt-lockup-view-model-wiz--centered"]=function(){return R().isCentered},Wy["yt-lockup-view-model-wiz--fullbleed"]=function(){return R().fullbleed},Wy["yt-lockup-view-model-wiz--single-column-grid"]=function(){return c()===1&&P()===2},Wy["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var eP;
return(eP=n())==null?void 0:eP.useRichGridLegacyMargin},Wy)),
"on:mousedown":y9,"on:mouseleave":N,"on:mouseup":pO,"on:mouseover":L,"on:touchstart":y9,"on:touchend":pO,"on:pointerleave":Dl},_.Q(_.ku,{command:function(){var eP;return _.Uy((eP=X())==null?void 0:eP.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return Z()&&R().arrangement===1?"width: "+Z():""}},_.Q(_.Md,{data:function(){var eP;
return(eP=X())==null?void 0:eP.contentImage}},{thumbnailViewModel:function(eP){return _.Q(_.$$,{data:eP.data,
aspectRatio:function(){return R().aspectRatio},
disableRounding:function(){return R().disableRounding},
width:M,hovered:a,isClip:function(){var gw;return((gw=X())==null?void 0:gw.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:mJn(A),lockupExperiments:function(){return n()}})},
collectionThumbnailViewModel:function(eP){return _.Q($wO,{data:eP.data,aspectRatio:function(){return R().aspectRatio},
disableRounding:function(){return R().disableRounding},
width:M,doubleStack:function(){return R().collectionStackNumber===2},
hovered:a,playbackRef:mJn(A)})},
decoratedAvatarViewModel:_.SZ})),_.Q("div",{class:"yt-lockup-view-model-wiz__metadata"},_.Q(_.Md,{data:function(){var eP;return(eP=X())==null?void 0:eP.metadata}},{lockupMetadataViewModel:function(eP){return _.Q(spU,{data:eP.data,
lockupStyle:R,lockupCommand:function(){var gw;return _.Uy((gw=X())==null?void 0:gw.rendererContext)},
lockupAccessibilityLabel:function(){return d()}})},
feedAdMetadataViewModel:function(eP){return _.Q(YSE,{data:eP.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:u})}}),_.Q(_.Md,{data:function(){var eP;
return(eP=X())==null?void 0:eP.attachmentSlot}},{lockupAttachmentsViewModel:function(eP){return _.Q(brT,{data:eP.data,
lockupStyle:R})}})),_.Q(_.MB,{model:function(){a:{switch(R().collectionStackNumber){case 1:var eP=8;
break a;case 2:eP=12;break a}eP=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:eP}},
pointerDownEvent:Mq.pointerDownEvent,pointerUpEvent:Mq.pointerUpEvent,pointerLeaveEvent:Mq.pointerLeaveEvent}))},"Wa");
_.iJ.idomCompat=!0;_.EP(_.iJ,"yt-lockup-view-model",{props:{data:_.vU,containerLayoutConfig:_.vU,containerType:_.vU,sizing:_.vU,protectBackground:_.vU,typographyBump:_.vU,thumbnailFixedWidth:_.vU,thumbnailTargetWidth:_.vU,force16By9ThumbnailAspectRatio:_.vU,className:_.vU,lockupExperiments:_.vU,elementsPerRow:_.vU}});_.iy(tCP);var MlL=_.f4(tCP,{callbacks:{onExpandClick:!0}});var bP4=_.Jf({buttonViewModel:_.Af}),nnQ=_.f4(gky);_.iy(gky);_.iy(OPd);_.iy(VCd);_.EP(nnQ,"yt-video-attribute-view-model",{props:{data:_.vU,className:_.vU}});var x$=function(){var K=_.G.apply(this,arguments)||this;K.useHighlightStyling=_.S("web_enable_deeper_metadata_highlight_styling");K.isSearch=!1;K.JSC$13047_lastScrollContainerWidth=NaN;K.pageLoadingFromNavigation=!1;K.currentIndex=0;K.supportComponentResize=!1;return K};
_.r(x$,_.G);_.z=x$.prototype;
_.z.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-horizontal-card-list-renderer lockup",containerType:4,sizing:"COMPACT"}},searchRefinementCardRenderer:"ytd-search-refinement-card-renderer",compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",videoCardRenderer:"ytd-grid-video-renderer",gameCardRenderer:"ytd-game-card-renderer",miniGameCardViewModel:"ytd-mini-game-card-view-model",mediaUpsellRenderer:"ytd-media-upsell-renderer",
infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",params:{showVerticalDividers:!0}},previewCardRenderer:{component:"ytd-preview-card-renderer",properties:{isSearch:"[[isSearch]]"}},macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"}},placeDataViewModel:"place-data-view-model",videoAttributeViewModel:{component:"yt-video-attribute-view-model",properties:{className:"[[is]]"}}}},"data.header":{id:"header",
mapping:{titleAndButtonListHeaderRenderer:"ytd-title-and-button-list-header-renderer",richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",properties:{hideNavigationButton:"[[hideNavigationButton]]",isModernSd:"[[modernChapters]]"}}}},"data.sortFilter":{id:"sort-filter",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.button":{id:"header-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.previousButton":{id:"left-arrow-button",
mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},attributes:{arrow:!0}}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},attributes:{arrow:!0}}}},"data.footerButton":{id:"footer-section",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},dismissedRenderer:{id:"dismissed",
mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.z.attached=function(){document.addEventListener("yt-page-type-changed",_.Pc(this,this.onPageChange))};
_.z.detached=function(){document.removeEventListener("yt-page-type-changed",_.Pc(this,this.onPageChange))};
_.z.getItemsPath=function(){return"data.cards"};
_.z.onIronResize=function(){this.updateListStyles()};
_.z.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var K;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(K=this.data)==null?void 0:K.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.S("problem_walkthrough_sd")&&!!this.centerItems};
_.z.computeCardListStyle=function(K){return K||null};
_.z.computeEmpty=function(K){return!this.get("cards.length",K)};
_.z.computeThumbnailStyle=function(K){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",K)||null};
_.z.computeHasSubtitle=function(K){return!!this.get("header.richListHeaderRenderer.subtitle",K)};
_.z.computeInitialCountNumber=function(K){return this.hasSquareMiniApp&&K==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&K==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:K==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:K==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:K==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&K==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.z.computeUseFloorScrolling=function(K){return K==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.z.computeHasGameCard=function(K){return(K=this.get("cards",K))?K.some(function(X){return X.gameCardRenderer}):!1};
_.z.computeCenterHeaderTitle=function(K){return!(K==null||!K.centerHeaderTitle)};
_.z.computeHasPortraitMiniApp=function(K){return(K=K==null?void 0:K.cards)?K.some(function(X){return X.miniGameCardViewModel&&X.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.z.computeHasSquareMiniApp=function(K){return(K=K==null?void 0:K.cards)?K.some(function(X){return X.miniGameCardViewModel&&X.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.z.computeHasSkinnyWidthPortraitMiniApp=function(K){return(K=K==null?void 0:K.cards)?K.some(function(X){return X.miniGameCardViewModel&&X.miniGameCardViewModel.width===135}):!1};
_.z.computeCenterItems=function(K){return!!K};
_.z.computeHasInfoPanel=function(K){var X;return K==null?void 0:(X=K.cards)==null?void 0:X.some(function(F){return F.infoPanelContentRenderer})};
_.z.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.z.getItemByIndex=function(K){var X=this.items.children;return X&&X.length>K?X[K]:void 0};
_.z.onPageChange=function(){var K=this;this.pageLoadingFromNavigation=!0;_.A9.addJob(function(){K.pageLoadingFromNavigation=!1;_.IJ(K.hostElement,"yt-terminate-video-preview-action")},8)};
_.z.updateListStyles=function(){if(_.S("problem_walkthrough_sd")&&this.JSC$13047_scrollContainer!==void 0){var K=this.JSC$13047_scrollContainer.clientWidth;K!==this.JSC$13047_lastScrollContainerWidth&&(this.JSC$13047_lastScrollContainerWidth=K,_.XU(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(K*.8,415)+"px"}),_.iX(this.hostElement,"iron-resize"))}};
_.Oi.Object.defineProperties(x$.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.S("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return!!((K=this.data)==null?0:(X=K.cards)==null?0:(F=X[0])==null?0:F.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return!!((K=this.data)==null?0:(X=K.cards)==null?0:(F=X[0])==null?0:F.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return _.S("enable_desktop_amsterdam_info_panels")&&!!((K=this.data)==null?0:(X=K.cards)==null?0:(F=X[0])==null?0:F.infoPanelContentRenderer)}}});
x$.prototype.dataChanged=x$.prototype.dataChanged;x$.prototype.onIronResize=x$.prototype.onIronResize;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],x$.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],x$.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.Nh.YtdHorizontalListBehavior),_.g("design:type",Object)],x$.prototype,"ytdHorizontalListBehavior",void 0);
_.O([_.W(_.yD),_.g("design:type",Object)],x$.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],x$.prototype,"data",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],x$.prototype,"useCustomColors",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],x$.prototype,"useHighlightStyling",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.g("design:type",Object)],x$.prototype,"cardListStyle",void 0);_.O([_.h({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.g("design:type",Boolean)],x$.prototype,"empty",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.g("design:type",Boolean)],x$.prototype,"hasSubtitle",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.g("design:type",Boolean)],x$.prototype,"thumbnailStyle",void 0);_.O([_.h({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.g("design:type",Boolean)],x$.prototype,"hasGameCard",void 0);_.O([_.h({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.g("design:type",Boolean)],x$.prototype,"centerHeaderTitle",void 0);
_.O([_.h({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.g("design:type",Boolean)],x$.prototype,"hasPortraitMiniApp",void 0);_.O([_.h({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.g("design:type",Boolean)],x$.prototype,"hasSquareMiniApp",void 0);_.O([_.h({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.g("design:type",Boolean)],x$.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.O([_.h({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.g("design:type",Boolean)],x$.prototype,"hasInfoPanel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],x$.prototype,"isSearch",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],x$.prototype,"inlineStructuredDescription",void 0);_.O([_.fa("#scroll-container"),_.g("design:type",HTMLDivElement)],x$.prototype,"JSC$13047_scrollContainer",void 0);
_.O([_.h({computed:"computeInitialCountNumber(data.style.type)"}),_.g("design:type",Number)],x$.prototype,"initialCount",void 0);_.O([_.h({computed:"computeUseFloorScrolling(data.style.type)"}),_.g("design:type",Boolean)],x$.prototype,"useFloorScrolling",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.g("design:type",Boolean)],x$.prototype,"centerItems",void 0);_.O([_.h(),_.g("design:type",Object)],x$.prototype,"pageLoadingFromNavigation",void 0);
_.O([_.h(),_.g("design:type",Object)],x$.prototype,"currentIndex",void 0);_.O([_.h(),_.g("design:type",Number)],x$.prototype,"scrollCount",void 0);_.O([_.h(),_.g("design:type",Object)],x$.prototype,"supportComponentResize",void 0);_.O([_.fa("#items"),_.g("design:type",HTMLDivElement)],x$.prototype,"items",void 0);_.O([_.Hc("iron-resize"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],x$.prototype,"onIronResize",null);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],x$.prototype,"dataChanged",null);_.O([_.h({reflectToAttribute:!0}),_.U("inlineStructuredDescription"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],x$.prototype,"hideNavigationButton",null);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],x$.prototype,"modernChapters",null);
_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],x$.prototype,"hasVideoAttributeViewModels",null);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],x$.prototype,"modernInfoPanels",null);x$=_.O([_.v({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],x$);
_.t(x$,"ytd-horizontal-card-list-renderer",function(){if(qRL!==void 0)return qRL;var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return qRL=K},{mode:_.Ig("kevlar_poly_si_batch_j072")?1:2});var c5N=_.$c(function(K){var X=K.data;var F={};return _.Q("video-summary-content-view-model",{class:_.HO("video-summary-content-view-model-wiz",K.className,(F["video-summary-content-view-model-wiz--is-search"]=K.isSearch,F))},_.Q(_.cd,{each:function(){var P=[],H=X().paragraphs;if(H==null||!H.length)return[];for(var f=0;f<H.length;f++){var u=_.T(H[f],aGQ),J=void 0;f>0&&(J=_.T(H[f-1],aGQ));J&&!!J.marker===!!u.marker?P[P.length-1].paragraphs.push(u):P.push({isList:!!u.marker,paragraphs:[u]})}return P},
keyBy:"INDEX"},function(P){return _.Q(_.p,{cond:function(){return P().isList},
then:function(){return _.Q("ul",{class:"video-summary-content-view-model-wiz__list"},_.Q(_.cd,{each:function(){return P().paragraphs},
keyBy:"INDEX"},function(H){return _.Q("li",{class:"video-summary-content-view-model-wiz__list-item"},_.Q(_.Oy,{text:function(){return H().text}}))}))},
else:function(){return _.Q(_.cd,{each:function(){return P().paragraphs},
keyBy:"INDEX"},function(H){return _.Q("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.Q(_.Oy,{text:function(){return H().text}}))})}})}),_.Q(_.p,{cond:function(){return!!_.T(X().likeButtonViewModel,_.S6)&&!!_.T(X().dislikeButtonViewModel,_.ok)},
then:function(){return _.Q("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.Q("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.Q(_.rr,{data:function(){return _.T(X().likeButtonViewModel,_.S6)},
disableIconAnimation:!0})),_.Q(_.TZ,{data:function(){return _.T(X().dislikeButtonViewModel,_.ok)}}))}}))},"Xa");
c5N.idomCompat=!0;_.EP(c5N,"video-summary-content-view-model",{props:{data:_.vU,isSearch:_.vU,className:_.vU}});var IB=function(){var K=_.G.apply(this,arguments)||this;var X,F;K.isExpanded=(F=(X=K.data)==null?void 0:X.isExpanded)!=null?F:!1;K.disableExpand=!1;K.showProminentLabel=!1;K.showRightSideLabel=!0;K.toggleExpandableContent=function(P){K.disableExpand||(P.stopPropagation(),_.vO(_.lN(P),K.hostElement,["info","expanded-subtitle"])||(K.isExpanded=!K.isExpanded,K.ytRendererBehavior.logExplicitClick(K.data),K.JSC$13058_cardList&&!_.S("expandable_metadata_a11y_fix_ks")&&_.tg(K,function(){_.OM(K.hostElement)})))};
K.useSquareThumbnail=!1;K.startX=0;return K};
_.r(IB,_.G);_.z=IB.prototype;_.z.computeUseSquareThumbnail=function(){var K;return(K=this.data)==null?void 0:K.useSquareThumbnail};
_.z.configureRendererStamper=function(){return{"data.expandedContent":{id:"content",mapping:{horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]",useCustomColors:"[[useCustomColors]]"}},horizontalListRenderer:{component:"yt-horizontal-list-renderer",properties:{isSearch:"[[isSearch]]"},params:{isExpandableContent:!0}},videoSummaryContentViewModel:{component:"video-summary-content-view-model",params:{isExpandableContent:!0},properties:{isSearch:"[[isSearch]]"}},
lockupViewModel:{component:"yt-lockup-view-model",params:{isExpandableContent:!0,className:"ytd-expandable-metadata-renderer lockup",thumbnailFixedWidth:"168px",containerType:3,sizing:"COMPACT"}}}},"data.expandButton":{id:"expand",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.collapseButton":{id:"collapse",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.infoButton":{id:"info",
mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.expandedMenuFooter":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}}}};
_.z.dataChanged=function(){if(this.data){var K,X;this.isExpanded=(X=(K=this.data)==null?void 0:K.isExpanded)!=null?X:!1;var F,P,H,f;if(K=this.isDarkTheme()?(F=this.data)==null?void 0:(P=F.colorData)==null?void 0:P.darkColorPalette:(H=this.data)==null?void 0:(f=H.colorData)==null?void 0:f.lightColorPalette){var u,J;if((u=this.data)==null?0:(J=u.colorData)==null?0:J.vibrantColorPalette)K.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Sd(this.hostElement,K)}}};
_.z.isExpandedChanged=function(){this.isExpanded&&this.JSC$13058_cardList&&_.iX(this.JSC$13058_cardList,"iron-resize")};
_.z.computeIsExpanded=function(K){return!!K.isExpanded};
_.z.computeShowProminentLabel=function(K,X){var F;return!!(K==null?0:(F=K.header)==null?0:F.showLeadingCollapsedLabel)&&!X};
_.z.computeShowRightSideLabel=function(K,X){var F;return!(K==null?0:(F=K.header)==null?0:F.showLeadingCollapsedLabel)&&!X};
_.z.captureContentClick=function(K){if(!this.disableExpand)if(_.S("expandable_metadata_fix_killswitch")){var X=K.target;_.GnZ(X,"ytd-macro-markers-list-item-renderer")||K.stopPropagation();(X==null?void 0:X.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.vO(_.lN(K),this.hostElement,["items"])||_.lC(_.lN(K),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.z.timestampClick=function(K){K.stopPropagation();var X,F;(K=(X=this.data)==null?void 0:(F=X.header)==null?void 0:F.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(K)};
_.z.onDown=function(K){K.stopPropagation();this.startX=K.detail?K.detail.x:0};
_.z.onUp=function(K){this.skipKeyInteraction(K)&&K.stopPropagation()};
_.z.skipKeyInteraction=function(K){var X=K.target;if((X==null?void 0:X.id)==="scroll-container"||(X==null?void 0:X.id)==="items"||K.detail&&K.detail.x!==this.startX)return!0;K=_.lN(K);K=_.D(K);for(X=K.next();!X.done;X=K.next()){X=X.value;if(X===this.hostElement)break;if(X.hasAttribute&&X.hasAttribute("skip-key-interaction"))return!0}return!1};
_.z.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Oi.Object.defineProperties(IB.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var K;return!!_.T((K=this.data)==null?void 0:K.expandedContent,vvt)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var K;return!!_.T((K=this.data)==null?void 0:K.expandedContent,_.hrC)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var K,X;return!((K=this.data)==null||!K.useCustomColors)&&!((X=this.data)==null||!X.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var K,X;return!!((K=this.data)==null?0:(X=K.header)==null?0:X.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var K,X;return!!((K=this.data)==null?0:(X=K.header)==null?0:X.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var K,X;return!!((K=this.data)==null?0:(X=K.header)==null?0:X.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
IB.prototype.onUp=IB.prototype.onUp;IB.prototype.onDown=IB.prototype.onDown;IB.prototype.isExpandedChanged=IB.prototype.isExpandedChanged;IB.prototype.dataChanged=IB.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],IB.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],IB.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],IB.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],IB.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],IB.prototype,"isExpanded",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],IB.prototype,"disableExpand",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],IB.prototype,"isSearch",void 0);
_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],IB.prototype,"isWatch",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.g("design:type",Object)],IB.prototype,"showProminentLabel",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.g("design:type",Object)],IB.prototype,"showRightSideLabel",void 0);
_.O([_.h({value:!1,reflectToAttribute:!0}),_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],IB.prototype,"hasVideoSummary",null);_.O([_.h({value:!1,reflectToAttribute:!0}),_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],IB.prototype,"hasLockupViewModel",null);_.O([_.h({reflectToAttribute:!0}),_.U("data","isWatch"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],IB.prototype,"useCustomColors",null);
_.O([_.h({reflectToAttribute:!0}),_.U("data","isExpanded"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],IB.prototype,"showInfoButton",null);_.O([_.U("data","isExpanded"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],IB.prototype,"showTimestamp",null);_.O([_.U("data","isExpanded"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],IB.prototype,"showExpandedSubtitle",null);
_.O([_.U("data","isExpanded"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],IB.prototype,"showThumbnail",null);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],IB.prototype,"useVppShoppingDestinationStyle",null);_.O([_.h(),_.g("design:type",Object)],IB.prototype,"toggleExpandableContent",void 0);_.O([_.fa("ytd-horizontal-card-list-renderer"),_.g("design:type",Object)],IB.prototype,"JSC$13058_cardList",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.g("design:type",Object)],IB.prototype,"useSquareThumbnail",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],IB.prototype,"dataChanged",null);_.O([_.so("isExpanded"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],IB.prototype,"isExpandedChanged",null);
_.O([_.Hc("down"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],IB.prototype,"onDown",null);_.O([_.Hc("up"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],IB.prototype,"onUp",null);IB=_.O([_.v({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],IB);
_.t(IB,"ytd-expandable-metadata-renderer",function(){if(SfO!==void 0)return SfO;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return SfO=K},{mode:1});var p6T,BhL=function(){if(p6T!==void 0)return p6T;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return p6T=K};_.EP(_.oB,"yt-avatar-stack-view-model",{props:{className:_.vU,data:_.vU,overrides:_.vU,isOverlay:_.vU,useMediumText:_.vU,decorations:_.vU,hideAvatar:_.vU}});_.L4("itemSectionRenderer","videoRenderer","ytd-video-renderer");var k$=function(){var K=_.G.apply(this,arguments)||this;K.disableExpand=!1;K.shouldShowChannelInfo=!1;K.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return K};
_.r(k$,_.G);_.z=k$.prototype;_.z.computeUseSearchUi=function(){var K,X;return this.isSearch||((K=this.data)==null?void 0:(X=K.style)==null?void 0:X.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.z.computeUseThreeLineTitle=function(){var K;return((K=this.data)==null?void 0:K.maxTitleLines)===3};
_.z.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.S("polymer_video_renderer_defer_menu")&&!LrQ?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"}}}};
_.z.attached=function(){_.iN(this.hostElement,"blue-links",_.S("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.z.detached=function(){this.clearInlinePreviewHoverListeners()};
_.z.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.x1(_.C$(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var K=this.get("data.buttons.buttonRenderer.serviceEndpoint"),X;K&&((X=_.T(K.commandMetadata,_.BH))==null?0:X.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(K);this.updateInlinePreviewHoverListeners()};
_.z.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13063_inlinePreviewHoverListener=l6({mediaRenderer:this,lockupElement:this.JSC$13063_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.z.clearInlinePreviewHoverListeners=function(){var K;(K=this.JSC$13063_inlinePreviewHoverListener)==null||Ny(K)};
_.z.onTextWrapperClick=function(K){var X,F,P=this.hideTranslation?(X=this.data)==null?void 0:X.untranslatedNavigationEndpoint:(F=this.data)==null?void 0:F.navigationEndpoint;X=_.vO(_.lN(K),this.hostElement,["expandable-metadata"]);!P||X&&!_.S("expandable_metadata_fix_killswitch")||_.lC(_.lN(K),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.iX(this.hostElement,"yt-navigate",{endpoint:P})};
_.z.computeThumbnailWidth=function(K,X,F,P,H){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:P?H==="MASSIVE"?600:H==="BIG"?500:H==="MEDIUM"?450:420:F?360:X?128:K?210:246};
_.z.computeUseBiggerThumbs=function(K){return K&&_.S("enable_desktop_search_bigger_thumbs")};
_.z.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.z.computeVideoStyle=function(){if(_.S("enable_video_style")){var K,X;return(K=this.data)==null?void 0:(X=K.style)==null?void 0:X.value}};
_.z.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.z.handleHideItemSectionVideosByIdCommand=function(K){var X;K=(X=_.T(K,fGt))==null?void 0:X.videoId;this.data&&this.data.videoId===K&&(this.isHidden=!0)};
_.z.getMetadataSnippetContainerClass=function(K){return K?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.z.computeTitleText=function(K,X,F){return K?F:X};
_.z.computeDescriptionSnippet=function(K,X,F){return K?F:X};
_.z.computeSnippetText=function(K,X,F){return K?F:X};
_.z.computeNavigationEndpoint=function(K,X){return K?X==null?void 0:X.untranslatedNavigationEndpoint:X==null?void 0:X.navigationEndpoint};
_.z.hideInlineTitleIcon=function(K,X){return K||!X};
_.Oi.Object.defineProperties(k$.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 K;return(K=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?K:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return!!(this==null?0:(K=this.data)==null?0:(X=K.channelThumbnailSupportedRenderers)==null?0:(F=X.channelThumbnailWithLinkRenderer)==null?0:F.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var K;return!!_.T((K=this.data)==null?void 0:K.avatar,mft)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.JSC$13063_inlinePreviewHoverListener)==null?0:rJ(K))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.Oi.Object.defineProperties(k$,{template:{configurable:!0,enumerable:!0,get:function(){return BhL()}}});
k$.prototype.dataChanged=k$.prototype.dataChanged;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],k$.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],k$.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],k$.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.yD),_.g("design:type",Object)],k$.prototype,"ytdDismissibleItemBehavior",void 0);
_.O([_.W(_.mE),_.g("design:type",Object)],k$.prototype,"ytdLockupBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],k$.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],k$.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],k$.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],k$.prototype,"isBackstageVideo",void 0);
_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],k$.prototype,"isPostCompactVideo",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],k$.prototype,"isHistory",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],k$.prototype,"isRichGridVideoPost",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],k$.prototype,"isHidden",void 0);
_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],k$.prototype,"isSearch",void 0);_.O([_.h({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.g("design:type",Boolean)],k$.prototype,"useSearchUi",void 0);_.O([_.h({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.g("design:type",Boolean)],k$.prototype,"useThreeLineTitle",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.g("design:type",Boolean)],k$.prototype,"useBiggerThumbs",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.g("design:type",Object)],k$.prototype,"videoStyle",void 0);_.O([_.h({computed:"computeDisableExpand(videoStyle)"}),_.g("design:type",Object)],k$.prototype,"disableExpand",void 0);
_.O([_.h({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.g("design:type",Object)],k$.prototype,"shouldShowChannelInfo",void 0);_.O([_.h({reflectToAttribute:!0,value:function(){return _.KG("desktop_search_bigger_thumbs_style")}}),
_.g("design:type",String)],k$.prototype,"biggerThumbsStyle",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.g("design:type",String)],k$.prototype,"inlineTitleIcon",void 0);_.O([_.h({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.g("design:type",Object)],k$.prototype,"computedNavigationEndpoint",void 0);_.O([_.h({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(K,X){return _.FF(K.entities,"searchVideoResultEntity",X)}}),
_.g("design:type",Object)],k$.prototype,"searchVideoResultEntity",void 0);_.O([_.fa("ytd-thumbnail"),_.g("design:type",HTMLElement)],k$.prototype,"thumbnail",void 0);_.O([_.fa("#dismissible"),_.g("design:type",HTMLElement)],k$.prototype,"JSC$13063_dismissibleMedia",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],k$.prototype,"dataChanged",null);
_.O([_.U("searchVideoResultEntity"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],k$.prototype,"hideTranslation",null);_.O([_.U("searchVideoResultEntity"),_.g("design:type",Array),_.g("design:paramtypes",[])],k$.prototype,"hiddenBadgeGroups",null);_.O([_.U("data","useAvatar"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],k$.prototype,"shouldShowChannelThumbnail",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],k$.prototype,"useAvatar",null);
_.O([_.U("lockupIsHovered"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],k$.prototype,"isHovered",null);k$=_.O([_.v({is:"ytd-video-renderer",disableElementRegistration:!0})],k$);_.t(k$,"ytd-video-renderer",function(){return BhL()},{mode:_.Ig("kevlar_poly_si_batch_j047")?1:2});var KU=function(){var K=_.G.apply(this,arguments)||this;K.editDialog=null;K.roundedContainer=!0;K.isLoading=!1;K.isRichGrid=!1;K.isRichGridRepost=!1;K.reduceSidePaddings=_.S("reduce_side_paddings_in_shelf");K.JSC$13070_spinnerEl=null;return K};
_.r(KU,_.G);_.z=KU.prototype;
_.z.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",properties:{isPostCompactVideo:"[[usesCompactLockup]]",
isRichGridVideoPost:"[[isRichGrid]]"}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isPostCompactPlaylist:"[[usesCompactLockup]]"}},uploadedVideoRenderer:{component:"ytd-post-uploaded-video-renderer"}}},"data.voteButton":{id:"vote-button",mapping:{buttonRenderer:"ytd-button-renderer"}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},
dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.z.contentTextChanged=function(){this.expander.reset()};
_.z.dataChanged=function(){var K=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var X=0,F=this.data.actions&&this.data.actions.length;X<F;X++)this.openEditDialog(_.T(this.data.actions[X],dLt));if((X=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(X=this.get("buttonRenderer.hint.hintRenderer.hintId",X))&&X.startsWith("share-post-hint")){var P=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(P){_.VZ.getInstance();var H=gz(_.GS(_.uY("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.A9.addLowPriorityJob(function(){_.X0(K.hostElement,H,P)})}}}};
_.z.updatePoll=function(K){K>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.z.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13070_spinnerEl||(this.JSC$13070_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.C$(this.hostElement).appendChild(this.JSC$13070_spinnerEl));this.JSC$13070_spinnerEl&&(this.JSC$13070_spinnerEl.active=this.isLoading)};
_.z.onYtNavigate=function(K){var X=this.get("updateCommentDialogEndpoint",K.detail.endpoint);X&&(this.openEditDialog(X),K.stopPropagation())};
_.z.onYtCommentboxDismiss=function(){this.editDialog=null};
_.z.onYtCommentPollRevert=function(K,X){X&&this.updatePoll(X.selectedChoiceIndex)};
_.z.onYtServiceRequestSent=function(K,X){var F;X.endpoint&&(_.T(X.endpoint,N9C)||_.T(X.endpoint,CzN)&&((F=_.T(X.endpoint,CzN))==null||!F.clientActions))&&(this.isLoading=!0);if(X.actions)for(K=0;K<X.actions.length;K++)F=X.actions[K],_.T(F,cH)&&(F=this.get("updateBackstagePollAction.selectedChoiceIndex",F),F==void 0&&(F=-1),this.updatePoll(F))};
_.z.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.z.openEditDialog=function(K){K&&K.dialog&&(this.editDialog=K.dialog,K=this.editDialogEl.firstElementChild)&&(K.focus(),K.openDialog&&K.openDialog())};
_.z.computeIsPostHidden=function(K,X){return!!K||X};
_.z.computeSurfaceType=function(K){return K?K.toLowerCase().replace(/_/g,"-"):""};
_.z.computeUsesCompactLockup=function(K){return K==="BACKSTAGE_SURFACE_TYPE_HOME"||K==="BACKSTAGE_SURFACE_TYPE_SEARCH"||K==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||K==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||K==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||K==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.z.computeShowWithoutToolbar=function(K){return!K.actionButtons&&!K.actionMenu};
_.z.computePostAttachment=function(K){if(K.backstageAttachment){if(_.T(K.backstageAttachment,yKC))return"poll";if(_.T(K.backstageAttachment,ZwE))return"quiz";if(_.T(K.backstageAttachment,_.y3))return"video";if(_.T(K.backstageAttachment,YrL))return"uploaded-videos";if(_.T(K.backstageAttachment,siL))return K.contentText?"image":"image-only";if(_.T(K.backstageAttachment,DOV))return"playlist"}return"none"};
_.z.computePostTabIndex=function(K){return K?0:-1};
_.z.computeButtonTooltipPosition=function(K){return this.computeUsesCompactLockup(K)?"top":"bottom"};
_.z.computeHasText=function(K){return!(K==null||!K.contentText)};
_.z.onTap=function(K){var X,F;if(((X=this.data)==null?0:X.navigationEndpoint)&&((F=this.data)==null?void 0:F.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var P;((P=this.data)==null?0:P.navigationEndpoint)&&!_.lC(_.lN(K)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.iX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.Oi.Object.defineProperties(KU.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.voteCount)||_.GS("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.T(this.data.backstageAttachment,yKC))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.T(this.data.backstageAttachment,YrL))}}});
KU.prototype.onYtServiceRequestCompleted=KU.prototype.onYtServiceRequestCompleted;KU.prototype.onYtServiceRequestSent=KU.prototype.onYtServiceRequestSent;KU.prototype.onYtCommentPollRevert=KU.prototype.onYtCommentPollRevert;KU.prototype.onYtCommentboxDismiss=KU.prototype.onYtCommentboxDismiss;KU.prototype.onYtNavigate=KU.prototype.onYtNavigate;KU.prototype.isLoadingChanged=KU.prototype.isLoadingChanged;KU.prototype.dataChanged=KU.prototype.dataChanged;KU.prototype.contentTextChanged=KU.prototype.contentTextChanged;
_.O([_.W(_.yD),_.g("design:type",Object)],KU.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],KU.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],KU.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],KU.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],KU.prototype,"data",void 0);
_.O([_.h(),_.g("design:type",Object)],KU.prototype,"editDialog",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],KU.prototype,"roundedContainer",void 0);_.O([_.h(),_.g("design:type",Object)],KU.prototype,"isLoading",void 0);_.O([_.h({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.g("design:type",String)],KU.prototype,"surface",void 0);
_.O([_.h({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.g("design:type",Boolean)],KU.prototype,"usesCompactLockup",void 0);_.O([_.h({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],KU.prototype,"showWithoutToolbar",void 0);_.O([_.h({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.g("design:type",String)],KU.prototype,"attachment",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],KU.prototype,"isRichGrid",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],KU.prototype,"isRichGridRepost",void 0);_.O([_.h({reflectToAttribute:!0,value:_.S("use_better_post_dismissals")}),_.g("design:type",Boolean)],KU.prototype,"useBetterPostDismissals",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],KU.prototype,"reduceSidePaddings",void 0);
_.O([_.h({computed:"computeHasText(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],KU.prototype,"hasText",void 0);_.O([_.fa("#expander"),_.g("design:type",Object)],KU.prototype,"expander",void 0);_.O([_.fa("#action-buttons"),_.g("design:type",Object)],KU.prototype,"actionButtons",void 0);_.O([_.fa("#edit-dialog"),_.g("design:type",HTMLElement)],KU.prototype,"editDialogEl",void 0);
_.O([_.so("data.contentText"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],KU.prototype,"contentTextChanged",null);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],KU.prototype,"dataChanged",null);_.O([_.so("isLoading"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],KU.prototype,"isLoadingChanged",null);
_.O([_.Hc("yt-navigate"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],KU.prototype,"onYtNavigate",null);_.O([_.Hc("yt-commentbox-dismiss"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],KU.prototype,"onYtCommentboxDismiss",null);_.O([_.Hc("yt-comment-poll-revert"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],KU.prototype,"onYtCommentPollRevert",null);
_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.yk]),_.g("design:returntype")],KU.prototype,"onYtServiceRequestSent",null);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.G9]),_.g("design:returntype")],KU.prototype,"onYtServiceRequestCompleted",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],KU.prototype,"voteCount",null);
_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],KU.prototype,"commentCount",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],KU.prototype,"hasPoll",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],KU.prototype,"hasUploadedVideo",null);KU=_.O([_.v({is:"ytd-post-renderer",disableElementRegistration:!0})],KU);
_.t(KU,"ytd-post-renderer",function(){if(ONU!==void 0)return ONU;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return ONU=K},{mode:1});var SSL;var onL;var Xf=function(){return _.G.apply(this,arguments)||this};
_.r(Xf,_.G);Xf.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Xf.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Xf.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.Nh.YtdHorizontalListBehavior),_.g("design:type",Object)],Xf.prototype,"ytdHorizontalListBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Xf.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Xf.prototype,"data",void 0);
_.O([_.h({value:"$.items.children"}),_.g("design:type",String)],Xf.prototype,"itemsPath",void 0);_.O([_.h({value:1}),_.g("design:type",Number)],Xf.prototype,"initialCount",void 0);_.O([_.h(),_.g("design:type",String)],Xf.prototype,"surface",void 0);Xf=_.O([_.v({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],Xf);
_.t(Xf,"ytd-post-multi-image-renderer",function(){if(onL!==void 0)return onL;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return onL=K},{mode:_.Ig("kevlar_poly_si_batch_j079")?1:2});var LKU={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},Ff=function(){var K=_.G.apply(this,arguments)||this;K.hasInlineCommentSection=!1;K.editDialog=null;K.isLoading=!1;K.shouldHideAuthor=!1;K.shouldShowVideoTime=!1;
K.isInEngagementPanel=!1;K.hideBorder=!1;K.usesFullLockup=!1;K.shouldShowMenuInCompactView=!1;K.JSC$13086_spinnerEl=null;K.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return K};
_.r(Ff,_.G);_.z=Ff.prototype;_.z.configureRendererStamper=function(){return LKU};
_.z.computeIsPollHeaderEnabled=function(K){return(K==null?void 0:K.pollMetadataIcon)!=null};
_.z.getPublishTimeStampString=function(K,X){X=new Date((Number(X)-60*((new Date).getTimezoneOffset()-(new Date(Number(X)*1E3)).getTimezoneOffset()))*1E3);X=(new h7(10)).format(X);if(K&&K.runs&&K.runs.length)for(var F=0;F<K.runs.length;F++)K.runs[F].text&&(K.runs[F].text=K.runs[F].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",X));return K};
_.z.created=function(){this.JSC$13086_spinnerEl=null};
_.z.contentTextChanged=function(){this.expander.reset()};
_.z.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var K;if((K=this.data)==null?0:K.actions){K=_.D(this.data.actions);for(var X=K.next();!X.done;X=K.next())this.openEditDialog(_.T(X.value,dLt))}};
_.z.handleSignalActionOpenPostCommentDialogAction=function(){_.C$(this.hostElement).querySelector("#action-buttons").reply()};
_.z.updatePoll=function(K,X){X&&this.set("data.pollMetadataVoteCountText",X);this.hasInlineCommentSection&&(K=K>=0,X=_.C$(this.hostElement).querySelector("#action-buttons"),K?X.reply():X.hideReplyDialog())};
_.z.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13086_spinnerEl||(this.JSC$13086_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.C$(this.hostElement).appendChild(this.JSC$13086_spinnerEl));this.JSC$13086_spinnerEl&&(this.JSC$13086_spinnerEl.active=this.isLoading)};
_.z.onYtNavigate=function(K){var X=this.get("updateCommentDialogEndpoint",K.detail.endpoint);X&&(this.openEditDialog(X),K.stopPropagation())};
_.z.onYtCommentboxDismiss=function(){this.editDialog=null};
_.z.onYtCommentPollRevert=function(K,X){X&&this.updatePoll(X.selectedChoiceIndex,X.totalVotes)};
_.z.onYtServiceRequestSent=function(K,X){K.stopPropagation();K=_.T(X.endpoint,CzN);if(_.T(X.endpoint,N9C)||K&&!K.clientActions)this.isLoading=!0;if(X.actions)for(K=0;K<X.actions.length;K++){var F=X.actions[K],P=_.T(F,cH);P&&(F=this.get("updateBackstagePollAction.selectedChoiceIndex",F),F===void 0&&(F=-1),this.updatePoll(F,P.totalVotes))}};
_.z.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.z.openEditDialog=function(K){K&&K.dialog&&(this.editDialog=K.dialog,K=this.editDialogElement.firstElementChild)&&(K.focus(),K.openDialog&&K.openDialog())};
_.z.computeIsBodyHidden=function(K,X){return!!K||X};
_.Oi.Object.defineProperties(Ff.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var K,X;if((K=this.data)==null?0:(X=K.pollMetadataIcon)==null?0:X.iconType)return _.Fl(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.voteCount)||_.GS("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.T(this.data.backstageAttachment,yKC))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.T(this.data.backstageAttachment,ZwE))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.T(this.data.backstageAttachment,YrL))}}});
Ff.prototype.onYtServiceRequestCompleted=Ff.prototype.onYtServiceRequestCompleted;Ff.prototype.onYtServiceRequestSent=Ff.prototype.onYtServiceRequestSent;Ff.prototype.onYtCommentPollRevert=Ff.prototype.onYtCommentPollRevert;Ff.prototype.onYtCommentboxDismiss=Ff.prototype.onYtCommentboxDismiss;Ff.prototype.onYtNavigate=Ff.prototype.onYtNavigate;Ff.prototype.isLoadingChanged=Ff.prototype.isLoadingChanged;Ff.prototype.dataChanged=Ff.prototype.dataChanged;Ff.prototype.contentTextChanged=Ff.prototype.contentTextChanged;
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Ff.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Ff.prototype,"rendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Ff.prototype,"rendererstamperBehavior",void 0);_.O([_.fa("#contentTextExpander"),_.g("design:type",Object)],Ff.prototype,"expander",void 0);
_.O([_.fa("#edit-dialog"),_.g("design:type",Element)],Ff.prototype,"editDialogElement",void 0);_.O([_.h(),_.g("design:type",Object)],Ff.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],Ff.prototype,"hasInlineCommentSection",void 0);_.O([_.h(),_.g("design:type",Object)],Ff.prototype,"editDialog",void 0);_.O([_.h(),_.g("design:type",Object)],Ff.prototype,"isLoading",void 0);
_.O([_.h({computed:"computeIsPollHeaderEnabled(data)"}),_.g("design:type",Boolean)],Ff.prototype,"isPollHeaderEnabled",void 0);_.O([_.h(),_.g("design:type",Object)],Ff.prototype,"shouldHideAuthor",void 0);_.O([_.h(),_.g("design:type",Object)],Ff.prototype,"shouldShowVideoTime",void 0);_.O([_.h(),_.g("design:type",Object)],Ff.prototype,"isInEngagementPanel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Ff.prototype,"hideBorder",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Ff.prototype,"usesFullLockup",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Ff.prototype,"shouldShowMenuInCompactView",void 0);_.O([_.U("isInEngagementPanel"),_.g("design:type",Number),_.g("design:paramtypes",[])],Ff.prototype,"postTextMaxLines",null);_.O([_.U("data.icon.iconType"),_.g("design:type",Object),_.g("design:paramtypes",[])],Ff.prototype,"pollIcon",null);
_.O([_.so("data.contentText"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ff.prototype,"contentTextChanged",null);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ff.prototype,"dataChanged",null);_.O([_.so("isLoading"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ff.prototype,"isLoadingChanged",null);
_.O([_.Hc("yt-navigate"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Ff.prototype,"onYtNavigate",null);_.O([_.Hc("yt-commentbox-dismiss"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ff.prototype,"onYtCommentboxDismiss",null);_.O([_.Hc("yt-comment-poll-revert"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],Ff.prototype,"onYtCommentPollRevert",null);
_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.yk]),_.g("design:returntype")],Ff.prototype,"onYtServiceRequestSent",null);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Ff.prototype,"onYtServiceRequestCompleted",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],Ff.prototype,"voteCount",null);
_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],Ff.prototype,"commentCount",null);_.O([_.U("data.backstageAttachment"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Ff.prototype,"hasPoll",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Ff.prototype,"hasQuiz",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Ff.prototype,"hasUploadedVideo",null);
Ff=_.O([_.v({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],Ff);
_.t(Ff,"ytd-backstage-post-renderer",function(){if(SSL!==void 0)return SSL;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return SSL=K},{mode:1});var Tht;var PA=function(){var K=_.G.apply(this,arguments)||this;K.editDialog=null;K.showExpandButton=!1;K.isRichGrid=!1;K.usesFullLockup=!1;return K};
_.r(PA,_.G);_.z=PA.prototype;_.z.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.originalPost":{id:"original-post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}},postRenderer:{component:"ytd-post-renderer",properties:{isRichGridRepost:"[[isRichGrid]]"}}}},editDialog:{id:"repost-edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}}};
_.z.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.z.computeShowExpandButton=function(K){return this.usesCompactLockup||K&&K.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.z.computeUsesCompactLockup=function(K){return!!K.condensedContent};
_.z.computeShowFullContentText=function(K){return!K};
_.z.onYtNavigate=function(K){K=this.get("updateCommentDialogEndpoint",K.detail.endpoint);this.openEditDialog(K)};
_.z.onYtCommentboxDismiss=function(){this.editDialog=null};
_.z.openEditDialog=function(K){K&&K.dialog&&(this.editDialog=K.dialog,K=this.repostEditDialogEl.firstElementChild)&&(K.focus(),K.openDialog&&K.openDialog())};
_.z.onTap=function(K){if(this.data){var X=null;this.usesCompactLockup&&!_.lC(_.lN(K)||[],this.hostElement,["YT-IMG-SHADOW"])?X=this.get("navigationEndpoint",this.data):K.target===this.moreButtonEl&&(X=this.get("navigationEndpoint",K.target.data));X&&_.iX(this.hostElement,"yt-navigate",{endpoint:X})}};
PA.prototype.onYtCommentboxDismiss=PA.prototype.onYtCommentboxDismiss;PA.prototype.onYtNavigate=PA.prototype.onYtNavigate;PA.prototype.dataChanged=PA.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],PA.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],PA.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],PA.prototype,"data",void 0);
_.O([_.h(),_.g("design:type",Object)],PA.prototype,"editDialog",void 0);_.O([_.h({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],PA.prototype,"usesCompactLockup",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],PA.prototype,"showExpandButton",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],PA.prototype,"isRichGrid",void 0);
_.O([_.h({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.g("design:type",Boolean)],PA.prototype,"showFullContentText",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],PA.prototype,"usesFullLockup",void 0);_.O([_.fa("#more"),_.g("design:type",Object)],PA.prototype,"moreButtonEl",void 0);_.O([_.fa("#repost-content-text"),_.g("design:type",HTMLElement)],PA.prototype,"repostContentTextEl",void 0);
_.O([_.fa("#repost-edit-dialog"),_.g("design:type",HTMLElement)],PA.prototype,"repostEditDialogEl",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],PA.prototype,"dataChanged",null);_.O([_.Hc("yt-navigate"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],PA.prototype,"onYtNavigate",null);
_.O([_.Hc("yt-commentbox-dismiss"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],PA.prototype,"onYtCommentboxDismiss",null);PA=_.O([_.v({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],PA);
_.t(PA,"ytd-shared-post-renderer",function(){if(Tht!==void 0)return Tht;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Tht=K},{mode:1});var r5u;var A5u;var HA=function(){return _.G.apply(this,arguments)||this};
_.r(HA,_.G);HA.prototype.attached=function(){var K=this;this.networkStatusManager||(this.networkStatusManager=new _.lU,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){K.onlineHandler()}))};
HA.prototype.detached=function(){var K=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){K.onlineHandler()}),delete this.networkStatusManager)};
HA.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],HA.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],HA.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],HA.prototype,"data",void 0);HA=_.O([_.v({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],HA);
_.t(HA,"ytd-reload-page-button-renderer",function(){if(A5u!==void 0)return A5u;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);
return A5u=K},{mode:1});var jpt={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"},sa=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return K};
_.r(sa,_.G);_.z=sa.prototype;_.z.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.z.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.z.computeHasBodyText=function(K){return!!K.bodyText};
_.z.computeButtons=function(K){var X=[];K.ctaButton&&X.push(K.ctaButton);K.secondaryButton&&X.push(K.secondaryButton);return X};
_.z.computeRendererStyle=function(K){return K.style?K.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():K.icon?"":"no-icon"};
_.z.getIconName=function(K,X){X=X===void 0?!1:X;if(K===void 0)return"";K=this.get("icon.iconType",K);var F;_.S("enable_hlp_client_icon_pick")?F=this.getThemedIcon(K,X):F=K;(X=jpt[F])||(X="yt-icons");return[X,F].join(":")};
_.z.getThemedIcon=function(K,X){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(K)?X?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(K)?X?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":K};
_.z.isThumbnail=function(K){return!!K.thumbnail};
_.z.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.z.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],sa.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],sa.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],sa.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],sa.prototype,"data",void 0);
_.O([_.h({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.g("design:type",String)],sa.prototype,"rendererStyle",void 0);_.O([_.h({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.g("design:type",String)],sa.prototype,"iconName",void 0);_.O([_.h({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],sa.prototype,"thumbnail",void 0);_.O([_.h({computed:"computeButtons(data)"}),_.g("design:type",Array)],sa.prototype,"buttons",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],sa.prototype,"isDarkTheme",void 0);_.O([_.h({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],sa.prototype,"hasBodyText",void 0);sa=_.O([_.v({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],sa);
_.t(sa,"ytd-background-promo-renderer",function(){if(r5u!==void 0)return r5u;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return r5u=K},{mode:1});var w6W;var zk=function(){var K=_.G.apply(this,arguments)||this;K.collections=_.S("web_modern_collections_v2");return K};
_.r(zk,_.G);_.Oi.Object.defineProperties(zk.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var K,X,F,P,H,f;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(K=this.data)==null?void 0:(X=K.thumbnail)==null?void 0:X.sampledThumbnailColor,vibrantColorPalette:(F=this.data)==null?void 0:(P=F.thumbnail)==null?void 0:P.vibrantColorPalette,darkColorPalette:(H=this.data)==null?void 0:(f=H.thumbnail)==null?void 0:f.darkColorPalette,experimentEnabled:this.collections}}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],zk.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],zk.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],zk.prototype,"collections",void 0);_.O([_.U("data","collections"),_.g("design:type",Object),_.g("design:paramtypes",[])],zk.prototype,"collectionStack",null);zk=_.O([_.v({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],zk);
_.t(zk,"ytd-compact-station-renderer",function(){if(w6W!==void 0)return w6W;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return w6W=K},{mode:1});var y5W;var fU=function(){var K=_.G.apply(this,arguments)||this;K.isRichGrid=!1;return K};
_.r(fU,_.G);fU.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]]"}}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],fU.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],fU.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],fU.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],fU.prototype,"isRichGrid",void 0);fU=_.O([_.v({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],fU);
_.t(fU,"ytd-grid-channel-renderer",function(){if(y5W!==void 0)return y5W;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return y5W=K},{mode:1});var WKZ;var D5=function(){return _.G.apply(this,arguments)||this};
_.r(D5,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],D5.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],D5.prototype,"data",void 0);D5=_.O([_.v({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],D5);
_.t(D5,"ytd-grid-movie-playlist-renderer",function(){if(WKZ!==void 0)return WKZ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return WKZ=K},{mode:1});var dJU;var ue=function(){var K=_.G.apply(this,arguments)||this;K.downloadProgress=0;K.transferState="TRANSFER_STATE_UNKNOWN";K.modernButtons=_.S("web_modern_buttons");K.useModernCollectionsV2=_.S("web_modern_collections_v2");return K};
_.r(ue,_.G);ue.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
ue.prototype.configureRendererStamper=function(){return{"data.menu":sG}};
ue.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
ue.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.S("woffle_playlist_renderer_killswitch")){var K,X=fgy(this.entityInfo,this.transferState,this.downloadProgress,(K=this.data)==null?void 0:K.playlistId,this.isOnline);K=X.viewPlaylistText;var F=X.badges;X=X.thumbnailOverlays;this.isDownloads=!!K||!!F;this.set("data.viewPlaylistText",K);F&&F.length>0&&this.set("data.badges",F);X&&X.length>0&&this.set("data.thumbnailOverlays",
X)}};
_.Oi.Object.defineProperties(ue.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 K;return!((K=this.data)==null?0:K.menu)}}});
ue.prototype.transferStateChanged=ue.prototype.transferStateChanged;ue.prototype.dataChanged=ue.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ue.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.mE),_.g("design:type",Object)],ue.prototype,"ytdLockupBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],ue.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],ue.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.h({selector:_.LQd,selectorArgs:["data.playlistId"]}),_.g("design:type",Object)],ue.prototype,"downloadProgress",void 0);_.O([_.h({selector:_.A7,selectorArgs:["data.playlistId"]}),_.g("design:type",Object)],ue.prototype,"transferState",void 0);_.O([_.h({selector:o29,selectorArgs:["data.playlistId"]}),_.g("design:type",Object)],ue.prototype,"entityInfo",void 0);_.O([_.h({selector:Mgy}),_.g("design:type",Boolean)],ue.prototype,"isOnline",void 0);
_.O([_.h(),_.g("design:type",Object)],ue.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],ue.prototype,"downloadRenderData",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],ue.prototype,"modernButtons",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],ue.prototype,"isDownloads",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],ue.prototype,"useModernCollectionsV2",void 0);
_.O([_.U("transferState"),_.h({reflectToAttribute:!0}),_.g("design:type",String),_.g("design:paramtypes",[])],ue.prototype,"downloadState",null);_.O([_.U("data"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],ue.prototype,"menuHidden",null);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ue.prototype,"dataChanged",null);
_.O([_.JA("transferState","downloadProgress","isOnline"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ue.prototype,"transferStateChanged",null);ue=_.O([_.v({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],ue);
_.t(ue,"ytd-grid-playlist-renderer",function(){if(dJU!==void 0)return dJU;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return dJU=K},{mode:1});var eBW;var qr=function(){var K=_.G.apply(this,arguments)||this;K.collections=_.S("web_modern_collections_v2");return K};
_.r(qr,_.G);qr.prototype.configureRendererStamper=function(){return{"data.menu":sG,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Oi.Object.defineProperties(qr.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var K,X,F,P,H,f;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(K=this.data)==null?void 0:(X=K.thumbnail)==null?void 0:X.sampledThumbnailColor,vibrantColorPalette:(F=this.data)==null?void 0:(P=F.thumbnail)==null?void 0:P.vibrantColorPalette,darkColorPalette:(H=this.data)==null?void 0:(f=H.thumbnail)==null?void 0:f.darkColorPalette,experimentEnabled:this.collections}}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],qr.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.yD),_.g("design:type",Object)],qr.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.W(_.mE),_.g("design:type",Object)],qr.prototype,"ytdLockupBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],qr.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],qr.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],qr.prototype,"collections",void 0);_.O([_.U("data","collections"),_.g("design:type",Object),_.g("design:paramtypes",[])],qr.prototype,"collectionStack",null);qr=_.O([_.v({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],qr);
_.t(qr,"ytd-grid-radio-renderer",function(){if(eBW!==void 0)return eBW;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return eBW=K},{mode:1});var RBE;var JU=function(){var K=_.G.apply(this,arguments)||this;K.useModernCollectionsV2=_.S("web_modern_collections_v2");return K};
_.r(JU,_.G);JU.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
JU.prototype.computeNavigationEndpoint=function(K){return a1P(K==null?void 0:K.navigationEndpoint)};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],JU.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],JU.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.mE),_.g("design:type",Object)],JU.prototype,"ytdLockupBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],JU.prototype,"data",void 0);_.O([_.h({computed:"computeNavigationEndpoint(data)"}),_.g("design:type",Object)],JU.prototype,"computedNavigationEndpoint",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],JU.prototype,"useModernCollectionsV2",void 0);JU=_.O([_.v({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],JU);
_.t(JU,"ytd-grid-show-renderer",function(){if(RBE!==void 0)return RBE;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return RBE=K},{mode:1});var UJV;_.Z5=function(K){this.playerClient=K};
_.hBt=function(K,X,F){F=F===void 0?{}:F;return K.playerClient.setOption("ad",X,F)};
_.Z5.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.Z5.prototype.executeCommand=function(K,X){this.getOptions().includes("executeCommand")?_.hBt(this,"executeCommand",{command:K,layoutId:X}):_.Ey("Calling executeCommand when adModule is not loaded")};var YF=function(){return _.G.apply(this,arguments)||this};
_.r(YF,_.G);YF.prototype.getLayoutId=function(){var K=_.mz("yt.www.ads.eventcache.getLastCompanionData");return K?(K=K())&&K.layoutId:null};
YF.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var K=_.$f(),X=this.getLayoutId(),F=this.data.clickthroughEndpoint;K&&X&&_.S("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?K.getPlayerPromise().then(function(P){(new _.Z5(P)).executeCommand(F,X)}):_.iX(this.hostElement,"yt-navigate",{endpoint:F})}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],YF.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],YF.prototype,"data",void 0);YF=_.O([_.v({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],YF);
_.t(YF,"ytd-shopping-companion-item-renderer",function(){if(UJV!==void 0)return UJV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return UJV=K},{mode:1});var mJE;var nU=function(){var K=_.G.apply(this,arguments)||this;K.isExpandableContent=!1;return K};
_.r(nU,_.G);_.Oi.Object.defineProperties(nU.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return((K=this.data)==null?void 0:K.price)||((X=this.data)==null?void 0:(F=X.dealsData)==null?void 0:F.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var K,X;if((K=this.data)!=null&&K.dealsData&&((X=this.data)==null||!X.priceReplacementText)){K=this.data.dealsData;var F,P,H;return((F=K.salesData)==null?void 0:F.originalPrice)||((P=K.priceDropData)==null?void 0:P.referencePrice)||((H=K.promotionData)==null?void 0:H.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var K,X;return(K=this.data)==null?void 0:(X=K.dealsData)==null?void 0:X.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],nU.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],nU.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],nU.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],nU.prototype,"isExpandableContent",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],nU.prototype,"showCta",null);
_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],nU.prototype,"ctaText",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],nU.prototype,"hasPriceTopPosition",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],nU.prototype,"hasPriceBottomPosition",null);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],nU.prototype,"useNewStyle",null);
_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],nU.prototype,"showPriceReplacementText",null);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],nU.prototype,"priceValue",null);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],nU.prototype,"showDeal",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],nU.prototype,"showAffiliateDisclaimer",null);
_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],nU.prototype,"useSaleStyle",null);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],nU.prototype,"useFromBrandCtaStyle",null);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],nU.prototype,"useFromVendorCtaStyle",null);
_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],nU.prototype,"useShoppingCollectionCtaStyle",null);nU=_.O([_.v({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],nU);
_.t(nU,"ytd-vertical-product-card-renderer",function(){if(mJE!==void 0)return mJE;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return mJE=K},{mode:1});var G1t;var cA=function(){return _.G.apply(this,arguments)||this};
_.r(cA,_.G);cA.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],cA.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],cA.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.mE),_.g("design:type",Object)],cA.prototype,"ytdLockupBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],cA.prototype,"data",void 0);cA=_.O([_.v({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],cA);
_.t(cA,"ytd-grid-movie-renderer",function(){if(G1t!==void 0)return G1t;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return G1t=K},{mode:1});var lJC;var pU=function(){var K=_.G.apply(this,arguments)||this;K.rounded=!0;K.itemStyle="small-item";return K};
_.r(pU,_.G);pU.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var K,X,F,P,H=(X=_.T((K=this.data)==null?void 0:K.buttonCommand,_.Z6))==null?void 0:(F=X.item)==null?void 0:(P=F.notificationTextRenderer)==null?void 0:P.successResponseText;H&&_.CAn(this.hostElement,H)}};
_.Oi.Object.defineProperties(pU.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.data)==null?void 0:K.isProductPlaceholder)!==void 0&&((X=this.data)==null?void 0:X.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.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}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],pU.prototype,"ytRendererBehavior",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],pU.prototype,"rounded",void 0);_.O([_.h(),_.g("design:type",Object)],pU.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],pU.prototype,"itemStyle",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],pU.prototype,"hasPrice",null);
_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],pU.prototype,"hasPriceReplacementText",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],pU.prototype,"hasAdditionalFeesText",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],pU.prototype,"hasAffiliateDisclaimer",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],pU.prototype,"isProductPlaceholder",null);
_.O([_.h(),_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],pU.prototype,"hideOpenInNewIcon",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],pU.prototype,"ariaLabel",null);pU=_.O([_.v({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],pU);
_.t(pU,"ytd-merch-shelf-item-renderer",function(){if(lJC!==void 0)return lJC;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return lJC=K},{mode:1});var vnT=_.$c(function(K){var X=_.t_();_.m_(X,function(){return K.data().rendererContext});
return _.Q("button-card-view-model",{el:X,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return K.data().title},
role:"button"},_.Q(_.MB,{model:{}}),_.Q("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.Q("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.Q(_.p,{cond:function(){return K.data().image},
then:function(F){return _.Q(_.av,{data:F,alt:function(){var P;return(P=K.data().title)!=null?P:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.Q("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return K.data().title})))},"Ya");_.S("web_button_view_model_wcw_registration_killswitch")||_.EP(vnT,"button-card-view-model",{props:{data:_.vU}});_.EP(_.$c(function(K){K=_.tA(K,{className:void 0});var X=K.data;K=K.className;var F=_.Qs(function(){return X().onTapCommand},void 0,"NprDr");
return _.Q("ytd-shopping-item-card",{class:_.HO("ytdShoppingItemCardHost",K)},_.Q(_.ku,{command:F,className:"ytdShoppingItemCardHostLink"},_.Q("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.Q(_.Md,{data:function(){return X().thumbnailViewModel}},{thumbnailViewModel:function(P){return _.Q(_.$$,{data:P.data,
aspectRatio:3})}})),_.Q("div",null,_.Q("p",{class:"ytdShoppingItemCardHostItemTitle"},_.Q(_.Oy,{text:function(){return X().itemTitle}})),_.Q("p",{class:"ytdShoppingItemCardHostPrice"},_.Q(_.Oy,{text:function(){return X().priceOrStatus}})))))},"Za"),"ytd-shopping-item-card",{props:{data:_.vU,
className:_.vU}});var aJZ={isAdsVideo:!0},tlQ={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},$Jt={showPlayerControls:!1,videoPreviewDurationMs:15E3},OHZ={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.S("web_shorts_imp_fullwidth_killswitch")};var CS=null,NWP={};var IcM="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(" "),BA={},kHw=(BA.FEwhat_to_watch="home",BA.FEhashtag="hashtag",BA.FEtrending="trending",BA.FEhistory="history",BA.SPunlimited="premium",BA.FEmemberships_and_purchases="paid_memberships",BA.SPredeem_code="redeem",BA.SPverify_location="locate",BA.SPminor_moment="minor_moment",
BA.FEmini_app_container="mini_app",BA.FEnews_destination="news",BA.SPopen_in_app="open_in_app",BA.FEexplore="explore",BA.FEsubscriptions="subscriptions",BA.FEsfv_audio_pivot="sfv_audio_pivot",BA.FEplaylist_aggregation="playlist_aggregation",BA);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");_.F0("init");var VlU=function(){},CpT=_.$c(function(K){var X=K.data;
var F=K.inlineMetadata;var P=K.aspectRatio;var H=K.scrimStyle;var f=K.className;var u=K.useDefaultStyle;var J=new VlU,Z=_.S("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",M=_.Qs(function(){return(u==null?0:u())?Z==="SHORTS_LOCKUP_STYLE_SLIM":X().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"iLX4Re"),n=_.Qs(function(){return _.ws(F)||M()||!1},void 0,"GaU7Ef"),c=function(){return(H==null?void 0:H())!==void 0?H==null?void 0:H():1},B=_.Qs(function(){return X().belowThumbnailMetadata||
!n()},void 0,"vsyhaf");
K=_.t_(function(x){J&&(J.hostElement=x,R())});
_.NF(K,{visibilityCallback:function(x){var N=X().onFirstVisible;x&&N&&_.e9(N)},
showOption:{calledOnce:!0,state:"visible"}});f=_.HO("shortsLockupViewModelHost",f);var L=_.t_(),A={};A=_.HO(function(){return M(),"shortsLockupViewModelHostThumbnailContainer"},(A.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.ws(P)===1},A.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.ws(P)===2},A.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!M()},A.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.S("web_shorts_2_by_3_lockups_study")&&!_.S("desktop_search_enable_two_by_three_shorts_aspect_ratio")},A));
var d,R=function(){if(J){var x;(x=d)==null||Ny(x);var N;J.hostElement&&((N=J.data)==null?0:N.inlinePlayerData)&&(d=l6({mediaRenderer:J,lockupElement:J.hostElement,thumbnailElement:L.value,videoPreviewOpts:OHZ}))}};
_.rs(function(){J&&(J.data=X(),R())},"zGfw4b");
var l=_.Qs(function(){return X().thumbnail},void 0,"H4vZOb"),a=_.Qs(function(){return X().badge},void 0,"I1QWQc"),E=_.Qs(function(){return X().onTap},void 0,"eB6nuc"),V={};
return _.Q("ytm-shorts-lockup-view-model",{el:K,class:f},_.Q(_.ID,null,_.Q(_.ku,{command:E,className:_.HO("shortsLockupViewModelHostEndpoint",(V.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!B()},V),"reel-item-endpoint",""),
ariaHidden:function(){return!n()},
tabIndex:function(){return n()?0:-1}},_.Q("div",{el:L,
class:A},_.Q(_.p,{cond:l,then:function(){return _.Q(_.av,{data:function(){var x;return(x=l==null?void 0:l())!=null?x:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.Q(_.p,{cond:n,
then:function(){return _.Q(gnN,{data:X,scrimStyle:c,useDefaultStyle:u})}}),_.Q(_.Md,{data:a},{badgeViewModel:function(x){return _.Q(_.EG,{data:x.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.Q(_.p,{cond:function(){return n()&&X().menuOnTap},
then:function(){return _.Q(EnC,{data:X,inlineMetadata:!0})}}),_.Q(_.p,{cond:B,
then:function(){return _.Q(bHt,{data:X,useDefaultStyle:u})}})))},"$a"),gnN=_.$c(function(K){var X=K.data;
var F=K.scrimStyle;var P=K.useDefaultStyle;var H=_.S("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",f=P&&_.S("web_hide_primary_text_for_pivot_panel"),u=_.Qs(function(){return(P==null?0:P())?H==="SHORTS_LOCKUP_STYLE_SLIM":X().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"N1Ofye");
K={};K=_.HO("shortsLockupViewModelHostInlineMetadata",(K.shortsLockupViewModelHostMetadataRounded=function(){return!u()},K.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(F==null?void 0:F())===3&&!_.S("enable_shorts_lockup_new_scrim")},K.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(F==null?void 0:F())===3&&_.S("enable_shorts_lockup_new_scrim")},K.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(F==null?void 0:F())===2||(F==null?void 0:
F())===4},K.shortsLockupViewModelHostShowOverPlayer=function(){return!0},K),"image-overlay-text");
var J={};return _.Q("div",{class:K},_.Q("h3",{class:_.HO("shortsLockupViewModelHostMetadataTitle",(J.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(F==null?void 0:F())===4},J)),
"aria-label":function(){return X().accessibilityText}},_.Q(_.p,{cond:function(){var Z;
return!((Z=X().overlayMetadata)==null||!Z.primaryText)&&!f},
then:function(){return _.Q(_.Oy,{text:function(){var Z;return(Z=X().overlayMetadata)==null?void 0:Z.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.Q(_.p,{cond:function(){var Z;
return(Z=X().overlayMetadata)==null?void 0:Z.secondaryText},
then:function(){return _.Q(NhQ,{data:X,scrimStyle:F,className:void 0})}}))},"ab"),bHt=_.$c(function(K){var X=K.data;
var F=K.useDefaultStyle;var P=_.S("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",H=_.Qs(function(){return(F==null?0:F())?P==="SHORTS_LOCKUP_STYLE_SLIM":X().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"ElFnSc");
K=_.HO(function(){return H()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var f,u=_.DF(function(){var c;(c=f)==null||c.click();return!1}),J=_.Qs(function(){return X().belowThumbnailMetadata||X().overlayMetadata},void 0,"leqnzc"),Z=function(){var c;
return(c=J())==null?void 0:c.avatar},M={},n={};
return _.Q("div",{class:_.HO(K,(M.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!Z()},M)),
"on:click":u},_.Q(_.Md,{data:Z},{avatarViewModel:function(c){return _.Q("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.Q(_.BY,{data:c.data}))}}),_.Q("div",null,_.Q("h3",{class:_.HO("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(n.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var c,B;
return!((c=J())==null?0:(B=c.primaryText)==null?0:B.content)},n)),
"aria-label":function(){return X().accessibilityText}},_.Q(_.ku,{ref:function(c){return void(f=c)},
command:function(){return X().onTap},
className:_.HO("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var c,B;return(c=J())==null?void 0:(B=c.primaryText)==null?void 0:B.content}},_.Q(_.p,{cond:function(){var c;
return(c=J())==null?void 0:c.primaryText},
then:function(c){return _.Q(_.Oy,{text:c,noEndpoints:!0,noStyleRuns:!0})}}))),_.Q(_.p,{cond:function(){var c;
return(c=J())==null?void 0:c.secondaryText},
then:function(c){return _.Q("div",{class:_.HO("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead"),"aria-hidden":"true"},_.Q(_.Oy,{text:c,noStyleRuns:!0}))}})),_.Q(_.p,{cond:function(){return X().menuOnTap},
then:function(){return _.Q(EnC,{data:X,inlineMetadata:!1})}}))},"bb"),NhQ=_.$c(function(K){var X=K.data;
var F=K.scrimStyle;K=K.className;var P={};return _.Q("div",{class:_.HO((P.shortsLockupViewModelHostMetadataSubhead=function(){return(F==null?void 0:F())!==4},P.shortsLockupViewModelHostMetadataSubheadNew=_.S("enable_shorts_lockup_new_scrim"),P.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(F==null?void 0:F())===4},P),K),
"aria-hidden":"true"},_.Q(_.Oy,{text:function(){var H;return(H=X().overlayMetadata)==null?void 0:H.secondaryText},
noStyleRuns:!0}))},"cb"),EnC=_.$c(function(K){var X=K.data;
var F=K.inlineMetadata;K={};K=_.HO((K.shortsLockupViewModelHostInlineMetadataMenu=function(){return F()},K.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!F()},K.shortsLockupViewModelHostShowOverPlayer=function(){return!0},K),"image-overlay-text");
return _.Q("div",{class:K},_.Q(gV,{data:function(){return{style:F()?"overlay":"mono",accessibilityLabel:X().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(P){P.preventDefault();P.stopPropagation();var H=_.Wn({elementsCommand:X().menuOnTap,forceNewState:!0});if(H==null?0:H.onclick)H.onclick(P)}}},
iconName:"MORE_VERT"}))},"db");var iHt=_.$c(function(K){var X=K.data;var F=K.inlineMetadata;var P=K.aspectRatio;var H=K.scrimStyle;var f=K.className;var u=K.useDefaultStyle;K=_.Qs(function(){var J=X().entityId;return J?J.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.Q("ytm-shorts-lockup-view-model-v2",{class:_.HO("shortsLockupViewModelHost",f)},_.Q(_.DJZ,{contentId:K,aspectRatio:function(){return(P==null?void 0:P())===1?1:(P==null?void 0:P())===2?2:4}},function(){return _.Q(CpT,{data:X,
inlineMetadata:F,aspectRatio:P,scrimStyle:H,className:f,useDefaultStyle:u})}))},"eb");_.EP(iHt,"ytm-shorts-lockup-view-model-v2",{props:{data:_.g$,inlineMetadata:_.g$,aspectRatio:_.g$,scrimStyle:_.g$,className:_.g$,useDefaultStyle:_.g$}});var xJE=16/9*210,SG=function(){var K=_.G.apply(this,arguments)||this;K.isExpandableContent=!1;K.hideShelfHeader=!1;K.engagementPanel=!1;K.buttonClasses=["arrow"];K.isSearch=!1;K.disableScrollEventListener=!1;K.containsLockup=!1;K.overrideArrowPositionForProductCard=!1;K.overrideArrowPositionForShoppingItemCard=!1;K.overrideArrowPositionForReelItems=!1;K.overrideArrowPositionForGridMovie=!1;K.overrideArrowPositionToCenter=!1;K.isSearchPostShelf=!1;K.overrideArrowPositionForMixedShelf=!1;K.overrideArrowPositionForMixedShelfShortsOnly=
!1;K.hasBigThumbsReelItems=!1;K.shouldUseMixedListHeight=!1;K.shouldUseShortsListHeight=!1;K.gridVideoWidth=0;K.isSearchVodShelf=!1;K.disableWheelScroll=!1;K.sizing="COMPACT";K.shortsLockupAspectRatio=0;return K};
_.r(SG,_.G);_.z=SG.prototype;
_.z.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"yt-horizontal-list-renderer lockup",containerType:4},properties:{force16By9ThumbnailAspectRatio:"[[data.force16By9ThumbnailAspectRatio]]",sizing:"[[sizing]]"}},backgroundPromoRenderer:"ytd-background-promo-renderer",compactStationRenderer:"ytd-compact-station-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",shoppingItemCardViewModel:{component:"ytd-shopping-item-card",
params:{className:"yt-horizontal-list-renderer"}},gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]",width:"[[gridVideoWidth]]"}},merchShelfItemRenderer:"ytd-merch-shelf-item-renderer",shoppingCompanionCarouselItemRenderer:"ytd-shopping-companion-item-renderer",displayAdRenderer:"ytd-display-ad-renderer",
compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",postRenderer:"ytd-post-renderer",reelItemRenderer:{component:"ytd-reel-item-renderer",properties:{isSearch:"[[isSearch]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",params:{className:"yt-horizontal-list-renderer"},properties:{aspectRatio:"[[shortsLockupAspectRatio]]"}},sharedPostRenderer:"ytd-shared-post-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",
properties:{isExpandableContent:"[[isExpandableContent]]"}},buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonCardViewModel:{component:"button-card-view-model"}}},"data.previousButton":{id:"left-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},classListBinding:"[[buttonClasses]]"}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"},classListBinding:"[[buttonClasses]]"}}}}};
_.z.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.S("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.z.computeInitialCountNumber=function(K){if(!K)return 6;var X=K.items.some(function(f){return!!f.topicRecommendationsChipRenderer}),F=K.items.some(function(f){return!!f.displayAdRenderer}),P=this.computeShouldListItemsHaveEqualHeight(K),H=K.items.some(function(f){return!!f.gridPlaylistRenderer});
K=K.items.some(function(f){return!!f.shoppingItemCardViewModel});
return X?9:F?8:H||P?10:K?7:6};
_.z.computeContainsPost=function(K){return!!K&&!!K.items&&K.items.some(function(X){return!!X.postRenderer})};
_.z.computeContainsLockup=function(){if(_.S("web_horizontal_list_lockup_arrow_killswitch"))return!1;var K,X;return(K=this.data)==null?void 0:(X=K.items)==null?void 0:X.some(function(F){return!!F.lockupViewModel})};
_.z.maybeUpdateLockupAspectRatio=function(){var K,X;if(this.computeContainsLockup()&&((K=this.data)==null?0:(X=K.items)==null?0:X.length)){var F;K=sPd((F=this.data.items[0].lockupViewModel)==null?void 0:F.contentType,this.data.force16By9ThumbnailAspectRatio);F=jMP(K);F=this.computeLockupWidth()/F;_.XU(this.hostElement,{"--yt-horizontal-list-content-height":F+"px"})}};
_.z.computeOverrideArrowPositionForProductCard=function(K){if(this.isExpandableContent)return!1;var X;return!!(K==null?0:(X=K.items)==null?0:X.some(function(F){return!!F.verticalProductCardRenderer}))};
_.z.computeOverrideArrowPositionForShoppingItemCard=function(K){var X;return!!(K==null?0:(X=K.items)==null?0:X.some(function(F){return!!F.shoppingItemCardViewModel}))};
_.z.computeOverrideArrowPositionForReelItemRenderer=function(K){return this.containsReelItemRenderer(K)};
_.z.computeHasBigThumbsReelItems=function(K,X){return K&&this.containsReelItemRenderer(X)};
_.z.computeShouldListItemsHaveEqualHeight=function(K){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(K==null?void 0:K.itemSizeConstraint)};
_.z.computeShouldListItemsHaveShortsHeight=function(K){return this.computeShouldListItemsHaveEqualHeight(K)&&!this.containsGridVideoRenderer(K)};
_.z.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.z.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.z.containsReelItemRenderer=function(K){var X;return!!(K==null?0:(X=K.items)==null?0:X.some(function(F){return!(!F.reelItemRenderer&&!F.shortsLockupViewModel)}))};
_.z.containsGridVideoRenderer=function(K){var X;return!!(K==null?0:(X=K.items)==null?0:X.some(function(F){return!!F.gridVideoRenderer||!!F.lockupViewModel}))};
_.z.computeContainsGridMovieRenderer=function(K){var X;return!!(K==null?0:(X=K.items)==null?0:X.some(function(F){return!!F.gridMovieRenderer}))};
_.z.computeOverrideArrowPositionToCenter=function(K){return this.computeIsSearchPostShelf(K)};
_.z.computeIsSearchPostShelf=function(K){var X;return!!(K==null?0:(X=K.items)==null?0:X.some(function(F){var P,H;return((H=(P=F.postRenderer)==null?void 0:P.surface)!=null?H:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.z.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(K){var X;return!!(K==null?0:(X=K.items)==null?0:X.some(function(F){var P,H,f;return((f=(P=F.backgroundPromoRenderer)==null?void 0:(H=P.style)==null?void 0:H.value)!=null?f:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.z.computeIsSearchVodShelf=function(K,X){return K&&this.containsGridVideoRenderer(X)};
_.z.computeDisableWheelScroll=function(K,X){return this.computeIsSearchVodShelf(K,X)};
_.z.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.z.computeShortsLockupAspectRatio=function(){return 1};
_.z.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.XU(this.hostElement,{"--ytd-reel-item-thumbnail-height":xJE+"px"})};
SG.prototype.dataChanged=SG.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],SG.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],SG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.Nh.YtdHorizontalListBehavior),_.g("design:type",Object)],SG.prototype,"ytdHorizontalListBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],SG.prototype,"data",void 0);
_.O([_.h(),_.g("design:type",Object)],SG.prototype,"isExpandableContent",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],SG.prototype,"hideShelfHeader",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],SG.prototype,"engagementPanel",void 0);_.O([_.h(),_.g("design:type",Array)],SG.prototype,"buttonClasses",void 0);_.O([_.h(),_.g("design:type",Object)],SG.prototype,"isSearch",void 0);
_.O([_.h(),_.g("design:type",Object)],SG.prototype,"disableScrollEventListener",void 0);_.O([_.h({computed:"computeInitialCountNumber(data)"}),_.g("design:type",Number)],SG.prototype,"initialCount",void 0);_.O([_.h({computed:"computeContainsPost(data)"}),_.g("design:type",Boolean)],SG.prototype,"supportComponentResize",void 0);_.O([_.h({computed:"computeContainsPost(data)"}),_.g("design:type",Boolean)],SG.prototype,"containsPost",void 0);
_.O([_.h({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.g("design:type",Object)],SG.prototype,"containsLockup",void 0);_.O([_.h({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],SG.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.O([_.h({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.g("design:type",Object)],SG.prototype,"overrideArrowPositionForProductCard",void 0);_.O([_.h({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.g("design:type",Object)],SG.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.O([_.h({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.g("design:type",Object)],SG.prototype,"overrideArrowPositionForReelItems",void 0);_.O([_.h({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.g("design:type",Object)],SG.prototype,"overrideArrowPositionForGridMovie",void 0);
_.O([_.h({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.g("design:type",Object)],SG.prototype,"overrideArrowPositionToCenter",void 0);_.O([_.h({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.g("design:type",Object)],SG.prototype,"isSearchPostShelf",void 0);_.O([_.h({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.g("design:type",Object)],SG.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.O([_.h({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.g("design:type",Object)],SG.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.O([_.h({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.g("design:type",Object)],SG.prototype,"hasBigThumbsReelItems",void 0);
_.O([_.h({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.g("design:type",Object)],SG.prototype,"shouldUseMixedListHeight",void 0);_.O([_.h({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.g("design:type",Object)],SG.prototype,"shouldUseShortsListHeight",void 0);_.O([_.h({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.g("design:type",Object)],SG.prototype,"gridVideoWidth",void 0);
_.O([_.h({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.g("design:type",Object)],SG.prototype,"isSearchVodShelf",void 0);_.O([_.h({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.g("design:type",Object)],SG.prototype,"disableWheelScroll",void 0);_.O([_.h({computed:"computeSizing(isSearch)"}),_.g("design:type",Object)],SG.prototype,"sizing",void 0);
_.O([_.h({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.g("design:type",Object)],SG.prototype,"shortsLockupAspectRatio",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],SG.prototype,"dataChanged",null);
_.t(SG,"yt-horizontal-list-renderer",function(){if(FIQ===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);FIQ=K}K=FIQ;return K},{mode:1});var IJU;var k1t=[10,12,14,16,18,20,24,28,32,36],KBT=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],oQ=function(){var K=_.G.apply(this,arguments)||this;K.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";K.hideOverflow=!1;K.useRoboto=!1;K.fontClass="";K.overflown=!1;K.actionMap={"yt-window-resized":"resize"};return K};
_.r(oQ,_.G);_.z=oQ.prototype;
_.z.attached=function(){var K=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();_.tg(this,function(){K.resize()});
if(!_.ir){var X,F,P;(X=document)==null||(F=X.fonts)==null||(P=F.ready)==null||P.then(function(){K.resize()})}};
_.z.dataChanged=function(){this.resize()};
_.z.guideIsExpandedChanged=function(){this.resize()};
_.z.resize=function(){if(this.textNode.offsetWidth||this.textNode.offsetWidth){this.overflown&&(this.overflown=!1,this.textNode.classList.remove("overflown"));this.textNode.style.visibility="hidden";var K=this.getMaxNumLines(),X=this.getMinFont(),F=this.getMaxFont(),P=this.useRoboto?k1t:KBT;for(P=P.filter(function(f){return f<=F&&f>=X});P.length>1;){var H=Math.floor(P.length/2);
this.updateFontSize(P[H]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=K)P=P.slice(H,P.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>K)P=P.slice(0,H);else break}this.updateFontSize(P[P.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(K)}};
_.z.handleOverflow=function(K){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>K&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",K.toString()))};
_.z.updateFontSize=function(K){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+K;this.textNode.classList.add(this.fontClass)};
_.z.getMaxFont=function(){var K=this.useRoboto?k1t:KBT;K=K[K.length-1];return this.maxFontSize&&this.maxFontSize<=K?this.maxFontSize:K};
_.z.getMinFont=function(){var K=(this.useRoboto?k1t:KBT)[0];return this.minFontSize&&this.minFontSize>=K?this.minFontSize:K};
_.z.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.z.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.z.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.lj(this.text).split("\n").length-1:Infinity};
_.z.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Bh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
oQ.prototype.guideIsExpandedChanged=oQ.prototype.guideIsExpandedChanged;oQ.prototype.dataChanged=oQ.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],oQ.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],oQ.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],oQ.prototype,"actionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],oQ.prototype,"text",void 0);
_.O([_.h(),_.g("design:type",String)],oQ.prototype,"fontFamily",void 0);_.O([_.h(),_.g("design:type",Number)],oQ.prototype,"maxWidth",void 0);_.O([_.h(),_.g("design:type",Number)],oQ.prototype,"maxHeight",void 0);_.O([_.h(),_.g("design:type",Number)],oQ.prototype,"maxFontSize",void 0);_.O([_.h(),_.g("design:type",Number)],oQ.prototype,"minFontSize",void 0);_.O([_.h(),_.g("design:type",Number)],oQ.prototype,"maxLines",void 0);_.O([_.h(),_.g("design:type",Object)],oQ.prototype,"hideOverflow",void 0);
_.O([_.h({selector:_.u5O}),_.g("design:type",Boolean)],oQ.prototype,"guideIsExpanded",void 0);_.O([_.fa("#container"),_.g("design:type",HTMLElement)],oQ.prototype,"containerNode",void 0);_.O([_.fa("#text"),_.g("design:type",HTMLElement)],oQ.prototype,"textNode",void 0);_.O([_.JA("text"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],oQ.prototype,"dataChanged",null);
_.O([_.JA("guideIsExpanded"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],oQ.prototype,"guideIsExpandedChanged",null);oQ=_.O([_.v({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],oQ);
_.t(oQ,"yt-dynamic-sizing-formatted-string",function(){if(IJU!==void 0)return IJU;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return IJU=K},{mode:1});var X2L;_.FBU=function(K){_.KO.call(this,K)};
_.r(_.FBU,_.KO);var PAT=function(K){_.KO.call(this,K)};
_.r(PAT,_.FBU);var LU=function(){return _.G.apply(this,arguments)||this};
_.r(LU,_.G);LU.prototype.onTapSuspendedChannel=function(){var K;if((K=this.data)!=null&&K.serviceEndpoint){var X,F;(K=(F=_.T((X=this.data)==null?void 0:X.serviceEndpoint,_.mc))==null?void 0:F.url)?_.Rj(K,void 0,void 0,window.top):(X=new PAT("Did not handle suspended account tap. No appealUrl."),_.jF(X))}else X=new PAT("Did not handle suspended account tap. No serviceEndpoint."),_.jF(X)};
LU.prototype.onTap=function(){var K=this,X=_.uH(),F,P=(F=_.Da(X,{veType:7116}))!=null?F:void 0;_.WO(X,{visualElement:P});_.WI();this.saveRoleText();var H;if((H=this.data)==null?0:H.youtubeSuspended)this.onTapSuspendedChannel();else{var f=!1,u,J;(X=(J=_.T((u=this.data)==null?void 0:u.serviceEndpoint,_.syL))==null?void 0:J.supportedTokens)&&X.forEach(function(Z){if(Z.accountSigninToken)if(f=!0,K.onAccountItemTap)K.onAccountItemTap(Z.accountSigninToken.signinUrl);else _.Rj(Z.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!f){if(u=this.get("serviceEndpoint",this.data))f=!0,this.ytComponentBehavior.resolveCommand(u);f||_.wc(new PAT("Did not handle account switch tap. No token."))}}};
LU.prototype.saveRoleText=function(){if(this.data){var K=this.data,X=K.channelDelegationRole;if(X){var F,P=(F=_.T(K==null?void 0:K.serviceEndpoint,_.syL))==null?void 0:F.supportedTokens;if(!P){var H,f,u,J;P=(H=_.T(K==null?void 0:K.serviceEndpoint,_.pz))==null?void 0:(f=H.popup)==null?void 0:(u=f.confirmDialogRenderer)==null?void 0:(J=u.confirmButton)==null?void 0:J.buttonRenderer;var Z;P=(Z=_.T(P==null?void 0:P.command,_.PW))==null?void 0:Z.commands;if(!P)return;var M;P=(M=_.T(P[1],_.syL))==null?
void 0:M.supportedTokens}if(P){Z=void 0;M=_.D(P);for(P=M.next();!P.done;P=M.next())if(P=P.value,P.datasyncIdToken){Z=P.datasyncIdToken.datasyncIdToken;break}if(Z){var n;a:{if(_.kKT()&&(M=_.ScO(Z+"::pom"))){M=new Qj(M);break a}M=void 0}(n=M)==null||n.set("role_text",X);if((ZAP?ZAP:window.location).href.indexOf("studio")!==-1&&(n=KEP())){M=n.src?(new URL(n.src)).origin:"*";var c;(c=n.contentWindow)==null||c.postMessage({action:"save_pom_role",datasyncId:Z,roleText:X},M)}}}}}};
_.Oi.Object.defineProperties(LU.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var K,X,F=(K=this.data)==null?void 0:(X=K.accountPhoto)==null?void 0:X.thumbnails;return F&&F.length>0&&(F[0].height===36||F[0].height===48)?F[0].height:40}}});
LU.prototype.onTap=LU.prototype.onTap;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],LU.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],LU.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],LU.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!1}),_.g("design:type",Function)],LU.prototype,"onAccountItemTap",void 0);
_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],LU.prototype,"enableRingForActiveAccount",null);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Number),_.g("design:paramtypes",[])],LU.prototype,"thumbnailSize",null);_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],LU.prototype,"onTap",null);LU=_.O([_.v({is:"ytd-account-item-renderer",disableElementRegistration:!0})],LU);
_.t(LU,"ytd-account-item-renderer",function(){if(X2L!==void 0)return X2L;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return X2L=K},{mode:1});var HPE;var Tk=function(){return _.G.apply(this,arguments)||this};
_.r(Tk,_.G);Tk.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.i9().resolve(_.xU).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Tk.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Tk.prototype,"data",void 0);Tk=_.O([_.v({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],Tk);
_.t(Tk,"ytd-identity-chip-renderer",function(){if(HPE!==void 0)return HPE;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return HPE=K},{mode:1});var sPC;var zRC;var fcW;var DjC;var rQ=function(){var K=_.G.apply(this,arguments)||this;K.richItemMinWidth=_.kU("wn_grid_min_item_width",310);K.isShorts=!1;K.isWatchNext=!1;K.isExploreHub=!1;return K};
_.r(rQ,_.G);_.Oi.Object.defineProperties(rQ.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var K=[],X=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.XU(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var F;if(((F=this.data)==null?0:F.rows)&&X)for(X*=this.data.rows,F=0;F<X;F++)K.push({});return K}}});
_.O([_.W(_.jn),_.g("design:type",Object)],rQ.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],rQ.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,selector:_.oA,value:3}),_.g("design:type",Number)],rQ.prototype,"itemsPerRow",void 0);_.O([_.h({selector:_.D2y,value:6}),_.g("design:type",Number)],rQ.prototype,"slimItemsPerRow",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Number)],rQ.prototype,"richItemMinWidth",void 0);_.O([_.h({reflectToAttribute:!0,selector:_.SJ}),_.g("design:type",Boolean)],rQ.prototype,"miniMode",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],rQ.prototype,"isShorts",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],rQ.prototype,"isWatchNext",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],rQ.prototype,"isExploreHub",void 0);
_.O([_.U("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.g("design:type",Array),_.g("design:paramtypes",[])],rQ.prototype,"cardItems",null);rQ=_.O([_.v({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],rQ);
_.upC=_.xc()(rQ,"ytd-ghost-grid-renderer",function(){if(DjC===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);DjC=K}K=DjC;return K},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.EP(_.$c(function(K){var X=_.tA(K,{numberOfComments:3}).numberOfComments,F=_.tA(K,{isInitialLoad:!1}).isInitialLoad,P=_.tA(K,{engagementPanel:!1}).engagementPanel,H=function(){return Math.min(Number(X==null?void 0:X())||20,20)};
return _.Q("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.Q(_.p,{cond:function(){return!(P==null?0:P())&&(F==null?void 0:F())},
then:function(){return _.Q("div",{class:"ytGhostCommentsComments"},_.Q("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.Q("div",{class:_.HO("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.Q("div",{class:_.HO("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.Q("div",{class:"ytGhostCommentsGhostCard"},_.Q("div",{class:"ytGhostCommentsAvatar"},_.Q("div",{class:"ytGhostCommentsCircle"})),_.Q("div",{class:"ytGhostCommentsComments"},_.Q("div",{class:"ytGhostCommentsMeta"},
_.Q("div",{class:_.HO("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.Q("div",{class:_.HO("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.Q("div",{class:"ytGhostCommentsComments"},_.Q(_.cd,{each:function(){return Array((H==null?void 0:H())||3)}},function(){return _.Q("div",{class:"ytGhostCommentsGhostCard"},_.Q("div",{class:"ytGhostCommentsAvatar"},_.Q("div",{class:"ytGhostCommentsCircle"})),_.Q("div",{class:"ytGhostCommentsHost"},_.Q("div",{class:"ytGhostCommentsMeta"},
_.Q("div",{class:_.HO("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.Q("div",{class:_.HO("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.Q("div",{class:_.HO("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.Q("div",{class:"ytGhostCommentsGhostLikeDislike"},_.Q("div",{class:_.HO("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.Q("div",{class:_.HO("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"fb"),"yt-ghost-comments",{props:{numberOfComments:_.vU,
isInitialLoad:_.vU,engagementPanel:_.vU}});_.L4("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var AU=function(){var K=_.G.apply(this,arguments)||this;K.isOverridable=!1;K.spinnerActive=!1;K.showButton=!1;K.isCommentsSection=!1;K.engagementPanel=!0;K.isShortsGrid=!1;K.isShortsPage=!1;K.isWatchPage=!1;K.ghostCardExperimentEnabled=_.S("show_ghost_comments_shorts_watch")||_.S("show_ghost_comments_desktop_watch");K.originalShowButton=!1;K.endOfList=!1;return K};
_.r(AU,_.G);_.z=AU.prototype;_.z.resetIntersectionObserver=function(){var K;(K=this.observer)==null||K.disconnect();this.observer=void 0};
_.z.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var K,X;((K=this.data)==null?void 0:K.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((X=this.data)==null?0:X.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.z.initializeIntersectionObserver=function(){var K=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(X){X=_.D(X);for(var F=X.next();!F.done;F=X.next())F.value.isIntersecting&&(K.triggerContinuation(),K.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.z.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.z.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var K;((K=this.data)==null?0:K.continuationEndpoint)&&(K=_.T(this.data.continuationEndpoint,_.jd))&&this.ytdReduxBehavior.dispatch(_.iY({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:K}}))};
_.z.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.z.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.z.onServiceRequestCompleted=function(K,X){if(!_.S("kevlar_hide_spinner_on_empty_continuation_killswitch")){var F;(F=X.actions)!=null&&F.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.z.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.z.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.z.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.z.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var K=3;if(this.engagementPanel){var X,F,P;K=Math.floor(((((X=this.hostElement)==null?void 0:(F=X.parentElement)==null?void 0:(P=F.parentElement)==null?void 0:P.scrollHeight)||108)-108)/108);K=this.isInitialLoad?Math.max(K,3):3}X=[].concat(_.LZ(this.hostElement.querySelectorAll("yt-ghost-comments")));X=_.D(X);for(F=X.next();!F.done;F=X.next())F=F.value,F.numberOfComments=K,F.isInitialLoad=this.isInitialLoad,F.engagementPanel=
this.engagementPanel}};
_.z.detached=function(){this.resetIntersectionObserver()};
_.Oi.Object.defineProperties(AU.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.S("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.S("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
AU.prototype.numberOfGhostCommentsChanged=AU.prototype.numberOfGhostCommentsChanged;AU.prototype.continuationTriggerOffsetChanged=AU.prototype.continuationTriggerOffsetChanged;AU.prototype.showButtonChanged=AU.prototype.showButtonChanged;AU.prototype.onYtServiceRequestCompletedForButtonRenderer=AU.prototype.onYtServiceRequestCompletedForButtonRenderer;AU.prototype.onServiceRequestCompleted=AU.prototype.onServiceRequestCompleted;AU.prototype.onYtServiceRequestSentForButtonRenderer=AU.prototype.onYtServiceRequestSentForButtonRenderer;
AU.prototype.observeData=AU.prototype.observeData;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],AU.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],AU.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.Ux.YtVisibilityBehavior),_.g("design:type",Object)],AU.prototype,"ytVisibilityBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],AU.prototype,"ytComponentBehavior",void 0);
_.O([_.W(_.jn),_.g("design:type",Object)],AU.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],AU.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],AU.prototype,"isOverridable",void 0);_.O([_.h(),_.g("design:type",Object)],AU.prototype,"spinnerActive",void 0);_.O([_.h(),_.g("design:type",Object)],AU.prototype,"showButton",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],AU.prototype,"isCommentsSection",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],AU.prototype,"engagementPanel",void 0);_.O([_.h(),_.g("design:type",Object)],AU.prototype,"isShortsGrid",void 0);_.O([_.h({reflectToAttribute:!0,selector:_.JpP}),_.g("design:type",Object)],AU.prototype,"isShortsPage",void 0);_.O([_.h({reflectToAttribute:!0,selector:_.TS}),_.g("design:type",Object)],AU.prototype,"isWatchPage",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],AU.prototype,"ghostCardExperimentEnabled",void 0);
_.O([_.h(),_.g("design:type",Number)],AU.prototype,"continuationTriggerOffset",void 0);_.O([_.h(),_.g("design:type",Object)],AU.prototype,"endOfList",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],AU.prototype,"isInitialLoad",void 0);_.O([_.fa("ytd-button-renderer"),_.g("design:type",_.t1)],AU.prototype,"buttonRenderer",void 0);_.O([_.h(),_.g("design:type",Object)],AU.prototype,"buttonOverrides",void 0);
_.O([_.h(),_.U("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.g("design:type",Object),_.g("design:paramtypes",[])],AU.prototype,"isShortsCommentsSection",null);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],AU.prototype,"observeData",null);
_.O([_.Hc("yt-service-request-sent-button-renderer"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],AU.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.G9]),_.g("design:returntype")],AU.prototype,"onServiceRequestCompleted",null);
_.O([_.Hc("yt-service-request-completed-button-renderer"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],AU.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.O([_.JA("showButton"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],AU.prototype,"showButtonChanged",null);
_.O([_.JA("continuationTriggerOffset"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],AU.prototype,"continuationTriggerOffsetChanged",null);_.O([_.so("isInitialLoad","engagementPanel"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],AU.prototype,"numberOfGhostCommentsChanged",null);AU=_.O([_.v({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],AU);
_.t(AU,"ytd-continuation-item-renderer",function(){if(fcW!==void 0)return fcW;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return fcW=K},{mode:1});var q0E;var jG=function(){var K=_.G.apply(this,arguments)||this;K.downloadProgress=0;K.transferState="TRANSFER_STATE_UNKNOWN";K.downloadState="DOWNLOAD_STATE_UNKNOWN";K.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";K.offlineVideoPolicyExpirationTimestamp=0;K.downloadedVideoPlaybackPosition=0;return K};
_.r(jG,_.G);jG.prototype.dataChanged=function(){var K;this.videoData=_.T((K=this.data)==null?void 0:K.renderer,UOt);this.transferStateChanged()};
jG.prototype.downloadProgressChanged=function(){if(this.entityInfo){var K=Object.assign({},this.videoData),X=DAl(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),F=X.publishedTimeText,P=X.badges;K.shortViewCountText=X.shortViewCountText;K.publishedTimeText=F;K.badges=P;this.set("videoData",K)}};
jG.prototype.transferStateChanged=function(){if(this.entityInfo){var K=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",X=_.J7(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!qa(this.entityInfo.policyEntity),F=Object.assign({},this.videoData),P=DAl(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),H=P.publishedTimeText,f=P.badges;F.shortViewCountText=
P.shortViewCountText;F.publishedTimeText=H;F.badges=f;F.isDisabled=X;F.isWatched=this.downloadedVideoPlaybackPosition>0;F.navigationEndpoint=X?void 0:l1d(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var u;K&&((u=this.videoData)==null?0:u.videoId)&&!_.S("dl_resume_click_killswitch")&&(F.isDisabled=!1,F.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});F.thumbnailOverlays=z6l(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",F)}};
jG.prototype.transferStateChanged=jG.prototype.transferStateChanged;jG.prototype.downloadProgressChanged=jG.prototype.downloadProgressChanged;jG.prototype.dataChanged=jG.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],jG.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],jG.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],jG.prototype,"data",void 0);
_.O([_.h(),_.g("design:type",Object)],jG.prototype,"videoData",void 0);_.O([_.h({selector:wI,selectorArgs:["videoData.videoId"]}),_.g("design:type",Object)],jG.prototype,"downloadProgress",void 0);_.O([_.h(),_.g("design:type",Number)],jG.prototype,"relativeDateReference",void 0);_.O([_.h({selector:_.rI,selectorArgs:["videoData.videoId"]}),_.g("design:type",Object)],jG.prototype,"transferState",void 0);
_.O([_.h({selector:enM,selectorArgs:["videoData.videoId"]}),_.g("design:type",Object)],jG.prototype,"downloadState",void 0);_.O([_.h({selector:cpO,selectorArgs:["videoData.videoId"]}),_.g("design:type",Object)],jG.prototype,"offlinePolicyAction",void 0);_.O([_.h({selector:pHw,selectorArgs:["videoData.videoId"]}),_.g("design:type",Object)],jG.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.O([_.h({selector:y4,selectorArgs:["videoData.videoId"]}),_.g("design:type",Object)],jG.prototype,"downloadedVideoPlaybackPosition",void 0);_.O([_.h({selector:SHq,selectorArgs:["videoData.videoId"]}),_.g("design:type",Object)],jG.prototype,"entityInfo",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],jG.prototype,"isDownloading",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],jG.prototype,"dataChanged",null);
_.O([_.JA("downloadProgress"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],jG.prototype,"downloadProgressChanged",null);_.O([_.JA("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],jG.prototype,"transferStateChanged",null);
jG=_.O([_.v({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],jG);
_.t(jG,"ytd-downloaded-video-grid-video-renderer",function(){if(q0E!==void 0)return q0E;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return q0E=K},{mode:_.Ig("kevlar_poly_si_batch_j025")?1:2});var J2Z;var wQ=function(){};
wQ.prototype.resolve=function(K,X){var F=this;return _.q(function(P){return _.Y(P,F.resolveCommand(K,X),0)})};var ZPO,y0;ZPO=tzO(function(K){return K.targetId},{shouldPersist:!1});
y0=ZPO.updateData;_.Y0U=ZPO.useUpdatableData;var QPt,MCE;QPt=tzO(function(K){return K.targetId});
MCE=QPt.updateData;_.nkL=QPt.useUpdatableData;var c2U=FRq.bind(null,y0),p2O=FRq.bind(null,MCE);(function(K,X,F){var P=_.T(F==null?void 0:F.updatedRenderer,_.urO);return P?K({targetId:X},function(){return P}):!1}).bind(null,y0);var WA=function(){};
_.r(WA,wQ);WA.prototype.resolveCommand=function(K){var X;return _.q(function(F){X=_.T(K,_.nG4);if(!X)return F.return();c2U(X.targetId,X);_.JT(F)})};var dQ=function(){var K=_.ub.apply(this,arguments)||this;K.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return K};
_.r(dQ,_.ub);_.z=dQ.prototype;_.z.configureContinuationPathMap=function(){return{}};
_.z.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.z.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.z.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.z.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.z.handleAppendContinuationItemsAction=function(K){var X=_.T(K,_.tNO);if(this.data&&this.data.targetId&&X&&this.continuationPathMap&&X.targetId===this.data.targetId){var F=vOd(K);if((K=F&&this.continuationPathMap[F])&&F){F=this.get(K,this.data);var P;a:{for(P=0;P<F.length;P++){var H=F[P],f=void 0,u=!!_.T((f=_.T(H,rbV))==null?void 0:f.content,_.WNU);if(_.T(H,_.xR)||u)break a}P=F.length}K="data."+K;X.continuationItems?P===F.length-1?(this.pop(K),this.push.apply(this,[K].concat(_.LZ(X.continuationItems)))):
P===F.length?this.push.apply(this,[K].concat(_.LZ(X.continuationItems))):this.splice.apply(this,[K,P,1].concat(_.LZ(X.continuationItems))):this.splice(K,P,1);(_.S("web_enable_voting_animation")||_.S("enable_music_web_cairo_voting_animation"))&&_.iX(this.hostElement,"yt-append-continuation-items-action-finished");_.iX(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.yy(new _.nG("append continuation path does not exist",F))}};
_.z.handleReloadContinuationItemsCommand=function(K){var X=_.T(K,_.nG4);if(this.data&&X){if(_.S("web_explore_hub")||_.S("web_client_explore_hub")||_.S("web_explore_hub_on_hover")||_.S("web_client_explore_hub_on_hover"))try{_.i9().resolve(WA).resolveCommand(K)}catch(f){}if(this.data.targetId&&this.continuationPathMap&&X.targetId===this.data.targetId&&(!_.S("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||X.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var F,P=
(F=X.slot)==null?void 0:F.replace("RELOAD_CONTINUATION_SLOT_","");F=(K=vOd(K)+"-"+(P==null?void 0:P.toLowerCase()))&&this.continuationPathMap[K];if(!F||!K||!P)_.yy(new _.nG("reload continuation path does not exist",K));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(X)){if(X.replaceWithFirstItem){var H;this.set("data."+F,((H=X.continuationItems)==null?0:H.length)?X.continuationItems[0]:{})}else this.set("data."+F,X.continuationItems?X.continuationItems:
[]);this.continuationIsReloading=!1;_.iX(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.z.handleShowReloadUiCommand=function(K){K=_.T(K,XLt);var X;((X=this.data)==null?0:X.targetId)&&(K==null?0:K.targetId)&&K.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
dQ.prototype.observeData=dQ.prototype.observeData;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],dQ.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],dQ.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],dQ.prototype,"data",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],dQ.prototype,"continuationIsReloading",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],dQ.prototype,"observeData",null);dQ=_.O([_.qY()],dQ);_.eG=[_.dk.YtComponentBehavior,_.NT.YtActionHandlerBehavior,dQ.prototype];_.RQ={};_.RQ.YtNextContinuationBehavior=[_.Vj.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",_.Pc(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.Pc(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(K,X){K.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,X,{}):(K={locationRetrieved:function(F){this.makeNextContinuationRequest_(F,X,{})}.bind(this)},_.iX(this.hostElement,"yt-retrieve-location",K))},
makeNextContinuationRequest_:function(K,X,F){_.jv("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();K=X(K);var P;this.canUseContextualNetworkManager_()&&(P=this.getNetworkManager());P||(P=_.i9().resolve(_.oj));X=_.dn.instance;if(_.e8("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&X){P=_.t7([K.startsWith("/")?K.substr(1):K]);var H,f;F=_.rz(X,{},P,F==null?void 0:(H=F.context)==null?void 0:(f=H.clickTracking)==null?void 0:f.clickTrackingParams).then(function(u){return{response:u}})}else F=
this.nextContinuation.usePost?P.postData(K,F):P.fetchData(K);
F.then(this.updateNextContinuationData_.bind(this,K));this.pendingContinuationRequest_=F;this.startListeningForNavigate_()},
updateNextContinuationData_:function(K,X){var F=this;_.jv("ncl");this.pendingContinuationRequest_=void 0;if(X){var P={};this.nextContinuation&&(P=this.nextContinuation);if(X.response&&X.response.continuationContents&&X.response.continuationContents[P.continuationType]){K=X.response.continuationContents[P.continuationType];var H=P.header||"data.header",f=K[P.responseHeaderKey||"header"];f&&this.set(H,f);H=P.contentsArray||"data.contents";f=this.getContents_(K,P.responseContentsKey||"contents")||[];
this.pathExists_(H)?(f.unshift(H),this.push.apply(this,f)):this.set(H,f);f&&(PgT(_.uH(),X.response,this.hostElement,function(u){_.xr(F.hostElement,"yt-store-grafted-ve-action",[u])}),_.iX(this.hostElement,"yt-next-continuation-data-updated",{continuationData:X,
page:this,contentsArray:H}));this.set(P.continuationsArray||"data.continuations",K[P.responseContinuationsKey||"continuations"]||[])}else X.reload?_.yy(new _.nG("Reloading from continuation is unsupported")):X.responseContext&&X.responseContext.errors||(delete X.xsrf_token,delete X.timing,delete X.endpoint,delete X.csn,X.responseContext&&delete X.responseContext.serviceTrackingParams,H={request:_.$U(K,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(X).sort()},X.response&&(H.responseContentKeys=
Object.keys(X.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(H.continuationType=this.nextContinuation.continuationType.substr(0,256)),X=new _.nG("Malformed continuation",H),K.indexOf("/comment_service_ajax")==0?_.yy(X):_.jF(X)),this.set(P.continuationsArray||"data.continuations",[])}else _.wc(new _.nG("Missing continuation response",K))},
getContents_:function(K,X){X=X.split(".");return _.T8.getValueByKeys(K,X)},
pathExists_:function(K){var X=this;K=K.toString().split(".");for(var F=0;F<K.length;F++)if(X=X[K[F]],X===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var BWO;var S0Z;var Ua=function(){var K=_.G.apply(this,arguments)||this;K.triggered_=!1;return K};
_.r(Ua,_.G);_.z=Ua.prototype;_.z.attached=function(){this.maybeTriggerAutoload()};
_.z.detached=function(){this.hasBeenTriggered_=!1};
_.z.onPrescanVisible=function(){this.onShow()};
_.z.onShow=function(){this.showButton||this.trigger()};
_.z.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.iX(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.z.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.z.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.z.computeLabel_=function(K,X){return K===void 0?null:K.label||!X?K.label:this.showMoreText_};
_.z.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.z.getContinuationUrl=function(K){var X={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(X.itct=this.data.clickTrackingParams);return _.ON(K,X)};
_.z.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
Ua.prototype.showButtonChanged_=Ua.prototype.showButtonChanged_;Ua.prototype.observeData_=Ua.prototype.observeData_;_.O([_.W(_.Ux.YtVisibilityBehavior),_.g("design:type",Object)],Ua.prototype,"ytVisibilityBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Ua.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Ua.prototype,"data",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],Ua.prototype,"showButton",void 0);
_.O([_.h({value:!1}),_.g("design:type",Boolean)],Ua.prototype,"showIcon",void 0);_.O([_.h({computed:"computeLabel_(data, showButton)"}),_.g("design:type",Object)],Ua.prototype,"label",void 0);_.O([_.h({value:_.GS(_.uY("SHOW_MORE",void 0,"Show More"))}),_.g("design:type",Object)],Ua.prototype,"showMoreText_",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],Ua.prototype,"spinnerActive_",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],Ua.prototype,"hasBeenTriggered_",void 0);
_.O([_.h({value:void 0}),_.g("design:type",String)],Ua.prototype,"observeVisibleOption",void 0);_.O([_.h({value:void 0}),_.g("design:type",String)],Ua.prototype,"observeHiddenOption",void 0);_.O([_.h({value:"observe_once"}),_.g("design:type",Object)],Ua.prototype,"observePrescanOption",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ua.prototype,"observeData_",null);
_.O([_.so("showButton"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ua.prototype,"showButtonChanged_",null);Ua=_.O([_.Tb({is:"yt-next-continuation",disableElementRegistration:!0})],Ua);
_.t(Ua,"yt-next-continuation",function(){if(S0Z===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;BWO===void 0&&(BWO=document.createElement("template"));var P=BWO;F.call(X,P.content.cloneNode(!0),K.content.firstChild);S0Z=K}K=S0Z;return K},{mode:2});var okC;var LBU;var hU=function(){return _.G.apply(this,arguments)||this};
_.r(hU,_.G);hU.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],hU.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],hU.prototype,"data",void 0);hU=_.O([_.Tb({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],hU);
_.t(hU,"yt-music-pass-small-feature-info-renderer",function(){if(LBU===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;okC===void 0&&(okC=document.createElement("template"));var P=okC;F.call(X,P.content.cloneNode(!0),K.content.firstChild);LBU=K}K=LBU;return K},{mode:2});_.L4("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var mj=function(){var K=_.G.apply(this,arguments)||this;K.isCollapsible=!1;K.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return K};
_.r(mj,_.G);_.z=mj.prototype;_.z.computeIsCollapsible=function(K){return!!(((K==null?0:K.showMoreText)||(K==null?0:K.visibleRowCount))&&(K==null?0:K.isCollapsible))};
_.z.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-grid-renderer lockup",containerType:2,sizing:"COMPACT",force16By9ThumbnailAspectRatio:!0}},continuationItemRenderer:"ytd-continuation-item-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",
playlistRenderer:"ytd-playlist-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:"ytd-grid-video-renderer",downloadedVideoGridVideoRenderer:"ytd-downloaded-video-grid-video-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",musicPassSmallFeatureInfoRenderer:"yt-music-pass-small-feature-info-renderer",gameCardRenderer:"ytd-game-card-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",noInjection:!0}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:"yt-next-continuation"}}}};
_.z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.z.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.z.onIronResize=function(){var K=this;_.eu(this,"updateGridInitItems",function(){K.maybeUpdateInitialItemsDisplayed()})};
_.z.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var K=this.getVisibleWidth();K!==0&&(K=Math.floor(K/214)*(this.data.visibleRowCount||2),K!==this.initialCount&&(this.initialCount=K,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.z.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.z.computeExpandVisible=function(K,X,F,P){return K&&X&&F&&!!P&&!!P.showMoreText};
_.z.computeShowMoreButton=function(K){return{text:K,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.z.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.z.initCollapsed=function(){var K=this;this.ytLazyListBehavior.canShowMore=!1;var X;(this.collapsed=!((X=this.data)==null||!X.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.tg(this,function(){_.IJ(K.hostElement,"yt-refit-popups-action")})};
_.z.fillRestIfNotCollapsible=function(){var K=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!K||this.ytLazyListBehavior.fillRemainingListItems()};
_.z.computeViewAllHidden=function(K,X){return K||!X.viewAllEndpoint};
mj.prototype.fillRestIfNotCollapsible=mj.prototype.fillRestIfNotCollapsible;mj.prototype.initCollapsed=mj.prototype.initCollapsed;mj.prototype.onIronResize=mj.prototype.onIronResize;mj.prototype.persistentGuideChanged=mj.prototype.persistentGuideChanged;_.O([_.W(_.SL),_.g("design:type",Object)],mj.prototype,"ironResizableBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],mj.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.CA.YtLazyListBehavior),_.g("design:type",Object)],mj.prototype,"ytLazyListBehavior",void 0);_.O([_.W(_.RQ.YtNextContinuationBehavior),_.g("design:type",Object)],mj.prototype,"ytNextContinuationBehavior",void 0);_.O([_.W(_.RW.YtdGuideStateAwareBehavior),_.g("design:type",Object)],mj.prototype,"ytdGuideStateAwareBehavior",void 0);
_.O([_.W(_.eG),_.g("design:type",Object)],mj.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],mj.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Boolean)],mj.prototype,"collapsed",void 0);_.O([_.h(),_.g("design:type",Number)],mj.prototype,"initialCount",void 0);_.O([_.h({computed:"computeShowMoreButton(data.showMoreText)"}),_.g("design:type",Object)],mj.prototype,"showMoreButton",void 0);
_.O([_.h({computed:"computeIsCollapsible(data)"}),_.g("design:type",Object)],mj.prototype,"isCollapsible",void 0);_.O([_.fa("#items"),_.g("design:type",HTMLElement)],mj.prototype,"items",void 0);_.O([_.JA("guidePersistentAndVisible"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],mj.prototype,"persistentGuideChanged",null);_.O([_.Hc("iron-resize"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],mj.prototype,"onIronResize",null);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],mj.prototype,"initCollapsed",null);_.O([_.JA("canShowMore"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],mj.prototype,"fillRestIfNotCollapsible",null);mj=_.O([_.v({is:"ytd-grid-renderer",disableElementRegistration:!0})],mj);
_.t(mj,"ytd-grid-renderer",function(){if(J2Z!==void 0)return J2Z;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return J2Z=K},{mode:_.Ig("kevlar_poly_si_batch_j025")?1:2});var Gk=function(){return _.G.apply(this,arguments)||this};
_.r(Gk,_.G);
Gk.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"}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Gk.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Gk.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Gk.prototype,"data",void 0);Gk=_.O([_.v({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],Gk);
_.t(Gk,"ytd-carousel-ad-renderer",function(){if(zRC!==void 0)return zRC;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return zRC=K},{mode:1});var TWC;var le=function(){return _.G.apply(this,arguments)||this};
_.r(le,_.G);_.z=le.prototype;_.z.configureRendererStamper=function(){return{"data.content.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.content.adBadge]]"}}}},"data.content.closeButton":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,le.JSC$13260_CLICK_LOCATION_ID_MAP))};
_.z.onSitelinkTap=function(K){K.stopPropagation();var X,F,P=K==null?void 0:(X=K.model)==null?void 0:(F=X.item)==null?void 0:F.onTap;P&&this.ytSparklesClickLocationBehavior.handleClick(P,K,!1)};
_.z.onTap=function(K){var X=this.data&&this.data.content&&this.data.content.navigationEndpoint;X&&this.ytSparklesClickLocationBehavior.handleClick(X,K,!1)};
_.z.sendImpression=function(){if(this.data&&this.data.content)for(var K=_.D(this.data.content.impressionEndpoints||[]),X=K.next();!X.done;X=K.next()){X=_.D(X.value.loggingUrls||[]);for(var F=X.next();!F.done;F=X.next())F=F.value,F.baseUrl&&Go(F.baseUrl,F.attributionSrcMode)}};
le.prototype.onTap=le.prototype.onTap;le.prototype.dataChanged=le.prototype.dataChanged;le.JSC$13260_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"]]);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],le.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],le.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.bd.YtSparklesClickLocationBehavior),_.g("design:type",Object)],le.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],le.prototype,"data",void 0);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],le.prototype,"dataChanged",null);_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],le.prototype,"onTap",null);le=_.O([_.v({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],le);
_.t(le,"ytd-promoted-sparkles-text-search-renderer",function(){if(TWC!==void 0)return TWC;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return TWC=K},{mode:1});var r2u;var vA=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-mute-ad-action":"handleMuteAd"};return K};
_.r(vA,_.G);_.z=vA.prototype;
_.z.configureRendererStamper=function(){return{"data.menu":{id:_.S("fix_alignment_search_desktop_text_image_ads_small_screens")?"menu":"old-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge-search",
mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.adBadge":{id:"ad-badge-new",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.z.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.z.computeHasAdBadge=function(K){return!(K==null||!K.adBadge)};
_.z.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",vA.JSC$13269_DEFAULT_AD_BADGE_RENDERER),_.iN(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,vA.JSC$13269_CLICK_LOCATION_ID_MAP))};
_.z.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var K;(((K=this.data)==null?void 0:K.impressionCommands)||[]).forEach(function(X){X=_.D(X.loggingUrls||[]);for(var F=X.next();!F.done;F=X.next())F=F.value,F.baseUrl&&Go(F.baseUrl,F.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.z.onTap=function(K){var X,F=(X=this.data)==null?void 0:X.navigationEndpoint,P;(X=(P=this.data)==null?void 0:P.thumbnailNavigationEndpoint)&&_.vO(_.lN(K),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(X,K,!1):F&&this.ytSparklesClickLocationBehavior.handleClick(F,K,!1)};
_.z.handleMuteAd=function(){this.collapsed=!0};
_.z.attached=function(){var K=this;_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&K.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.z.detached=function(){_.S("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Oi.Object.defineProperties(vA.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var K;return!(((K=this.data)==null?void 0:K.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var K;return!(((K=this.data)==null?void 0:K.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.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}}});
vA.prototype.dataChanged=vA.prototype.dataChanged;
vA.JSC$13269_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"]]);
vA.JSC$13269_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.uY("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],vA.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],vA.prototype,"ytRendererBehavior",void 0);_.O([_.W(rK),_.g("design:type",Object)],vA.prototype,"ytdActiveViewBehavior",void 0);
_.O([_.W([_.NT.YtActionHandlerBehavior]),_.g("design:type",Object)],vA.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.bd.YtSparklesClickLocationBehavior),_.g("design:type",Object)],vA.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],vA.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],vA.prototype,"collapsed",void 0);_.O([_.h({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.g("design:type",Boolean)],vA.prototype,"useBiggerThumbs",void 0);_.O([_.h({reflectToAttribute:!0,value:function(){return _.KG("desktop_search_bigger_thumbs_style")}}),
_.g("design:type",String)],vA.prototype,"biggerThumbsStyle",void 0);_.O([_.h({reflectToAttribute:!0,value:function(){return _.S("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.g("design:type",Boolean)],vA.prototype,"fixAlignmentSmallScreens",void 0);_.O([_.h({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs_square")}}),
_.g("design:type",Boolean)],vA.prototype,"useBiggerThumbsSquare",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("data.mediaHoverOverlay"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],vA.prototype,"hideHoverOverlay",null);_.O([_.h({reflectToAttribute:!0}),_.U("data.promotedSparklesWebStyle"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],vA.prototype,"webSearchLayout",null);
_.O([_.h({reflectToAttribute:!0}),_.U("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],vA.prototype,"webSearchLayoutLandscape",null);_.O([_.h({reflectToAttribute:!0}),_.U("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],vA.prototype,"webSearchLayoutSquare",null);
_.O([_.h({reflectToAttribute:!0}),_.U("data.promotedSparklesWebStyle"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],vA.prototype,"sparklesCtaNoBackground",null);_.O([_.h({reflectToAttribute:!0}),_.U("data.actionButton"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],vA.prototype,"hideActionButton",null);_.O([_.h({computed:"computeButtonOverride(uiUpdate)"}),_.g("design:type",Object)],vA.prototype,"buttonOverride",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.g("design:type",Boolean)],vA.prototype,"hasNewAdBadge",void 0);_.O([_.U("data.promotedSparklesWebStyle"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],vA.prototype,"useRoundedBadge",null);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],vA.prototype,"dataChanged",null);vA=_.O([_.v({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],vA);
_.t(vA,"ytd-promoted-sparkles-web-renderer",function(){if(r2u!==void 0)return r2u;var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return r2u=K},{mode:1});var A2L;var aQ=function(){return _.G.apply(this,arguments)||this};
_.r(aQ,_.G);_.z=aQ.prototype;_.z.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.ctaRenderer":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.z.computeShowCta=function(K){return!(K==null||!K.ctaRenderer)};
_.z.onCtaClick=function(){var K,X,F,P=(K=this.data)==null?void 0:(X=K.ctaRenderer)==null?void 0:(F=X.buttonRenderer)==null?void 0:F.command;P&&this.ytComponentBehavior.resolveCommand(P)};
_.z.onWatchButtonClick=function(){var K,X,F,P=(K=this.data)==null?void 0:(X=K.watchButtonRenderer)==null?void 0:(F=X.buttonRenderer)==null?void 0:F.command;P&&this.ytComponentBehavior.resolveCommand(P)};
_.z.onTap=function(){};
_.z.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",aQ.JSC$13272_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",aQ.JSC$13272_DEFAULT_CLICK_LOCATION_BEHAVIOR,aQ.JSC$13272_CLICK_LOCATION_ID_MAP),this.thumbnail)){var K=this.thumbnail.getElementsByTagName("a");K.length>0&&(K=K.namedItem("thumbnail"))&&K.removeAttribute("href")}};
_.z.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var K=_.D(this.data.impressionUrls),X=K.next();!X.done;X=K.next())X=X.value,L54(X,r6l(X));this.data.impressionsFired=!0}};
_.z.maybeComputeHref=function(){return null};
_.z.computeIsShortDR=function(K){return!(K==null||!K.watchButtonRenderer)&&!(K==null||!K.ctaRenderer)&&!!this.enableShortDR};
_.z.computeIsNewUiOrShortDr=function(K){return!!this.enableUiUpdate||this.computeIsShortDR(K)};
_.z.computeIsNewUiAndNotShortDr=function(K){return!!this.enableUiUpdate&&!this.computeIsShortDR(K)};
_.z.computeHideAvatar=function(K){return!((K==null?0:K.channelThumbnail)&&this.computeIsNewUiOrShortDr(K))};
_.z.onClick=function(K){var X,F=(X=this.data)==null?void 0:X.navigationEndpoint;if(this.enableShortDR&&F&&(_.T(F,_.vg)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(F,K,!!_.T(F,_.vg)),K.stopPropagation();else if(F&&_.T(F,_.vg))this.ytSparklesClickLocationBehavior.handleClick(F,K,!0),K.stopPropagation();else if(F){var P,H;((P=this.data)==null?0:P.navigationEndpoint)&&((H=this.data)==null?0:H.adPlaybackContextParams)&&qh4(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(F)}};
_.z.computeButtonOverride=function(K){if(this.computeIsNewUiOrShortDr(K))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.z.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.z.onThumbnailContainerClick=function(K){this.onClick(K)};
_.z.computeThumbnailWidth=function(K,X){return K?X==="MASSIVE"?600:X==="BIG"?500:X==="MEDIUM"?450:420:360};
_.z.attached=function(){var K=this;_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&K.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.z.detached=function(){_.S("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
aQ.prototype.dataChanged=aQ.prototype.dataChanged;aQ.prototype.onTap=aQ.prototype.onTap;aQ.JSC$13272_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.uY("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};aQ.JSC$13272_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
aQ.JSC$13272_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"}];_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],aQ.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],aQ.prototype,"ytRendererBehavior",void 0);_.O([_.W(rK),_.g("design:type",Object)],aQ.prototype,"ytdActiveViewBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],aQ.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.bd.YtSparklesClickLocationBehavior),_.g("design:type",Object)],aQ.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],aQ.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.g("design:type",Boolean)],aQ.prototype,"useBiggerThumbs",void 0);_.O([_.h({reflectToAttribute:!0,value:function(){return _.S("enable_video_display_compact_button_group_for_desktop_search")}}),
_.g("design:type",Boolean)],aQ.prototype,"enableShortDR",void 0);_.O([_.h({reflectToAttribute:!0,value:function(){return _.S("enable_vac_ui_update_for_desktop_search")}}),
_.g("design:type",Boolean)],aQ.prototype,"enableUiUpdate",void 0);_.O([_.h({reflectToAttribute:!0,value:function(){return _.KG("desktop_search_bigger_thumbs_style")}}),
_.g("design:type",String)],aQ.prototype,"biggerThumbsStyle",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.g("design:type",Boolean)],aQ.prototype,"showCta",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.g("design:type",Boolean)],aQ.prototype,"isShortDr",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.g("design:type",Boolean)],aQ.prototype,"isShortDrOrNewUi",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.g("design:type",Boolean)],aQ.prototype,"isNewUiAndNotShortDr",void 0);_.O([_.h({computed:"computeButtonOverride(data)"}),_.g("design:type",Object)],aQ.prototype,"buttonOverride",void 0);_.O([_.h({computed:"computeSecondaryButtonOverride(data)"}),_.g("design:type",Object)],aQ.prototype,"secondaryButtonOverride",void 0);_.O([_.fa("ytd-thumbnail"),_.g("design:type",HTMLElement)],aQ.prototype,"thumbnail",void 0);
_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],aQ.prototype,"onTap",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],aQ.prototype,"dataChanged",null);aQ=_.O([_.v({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],aQ);
_.t(aQ,"ytd-promoted-video-renderer",function(){if(A2L!==void 0)return A2L;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return A2L=K},{mode:1});var jPC;var tU=function(){var K=_.G.apply(this,arguments)||this;K.useRoundedBadge=!0;K.sitelinkIds=[];return K};
_.r(tU,_.G);_.z=tU.prototype;
_.z.configureRendererStamper=function(){return{"data.menu":{id:_.S("enable_text_ad_web_thumbnail_scaling_fix")?"new-menu":"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},
"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.z.dataChanged=function(){var K;(K=this.data)!=null&&K.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,tU.JSC$13279_CLICK_LOCATION_ID_MAP)};
_.z.onTap=function(K){var X,F=(X=this.data)==null?void 0:X.navigationCommand;F&&!_.vO(_.lN(K),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(F,K,!1)};
_.z.onSitelinkTap=function(K){var X,F,P=K==null?void 0:(X=K.model)==null?void 0:(F=X.item)==null?void 0:F.onTap;P&&this.ytSparklesClickLocationBehavior.handleClick(P,K,!1)};
_.z.configureSitelinkClickTargets=function(){var K=this,X,F,P=(X=this.data)==null?void 0:(F=X.clickLocationTargets)==null?void 0:F.find(function(H){return H.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
P&&_.C$(this.hostElement).querySelectorAll(".sitelink").forEach(function(H){_.iN(H,"yt-simple-endpoint",!0);K.sitelinkIds.push(H.id);var f,u;(f=K.ytSparklesClickLocationBehavior)==null||(u=f.clickTargetMap)==null||u.set(H.id,P)})};
_.z.sendImpression=function(){var K,X,F=((K=this.data)==null?void 0:(X=K.impressionCommand)==null?void 0:X.loggingUrls)||[];K=_.D(F);for(X=K.next();!X.done;X=K.next())X=X.value,X.baseUrl&&Go(X.baseUrl,X.attributionSrcMode)};
_.z.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.Oi.Object.defineProperties(tU.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
tU.prototype.onTap=tU.prototype.onTap;tU.prototype.dataChanged=tU.prototype.dataChanged;tU.JSC$13279_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"]]);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],tU.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],tU.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.bd.YtSparklesClickLocationBehavior),_.g("design:type",Object)],tU.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],tU.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],tU.prototype,"showFavicon",null);_.O([_.h({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.g("design:type",Boolean)],tU.prototype,"useBiggerThumbs",void 0);_.O([_.h({reflectToAttribute:!0,value:function(){return _.KG("desktop_search_bigger_thumbs_style")}}),
_.g("design:type",String)],tU.prototype,"biggerThumbsStyle",void 0);_.O([_.h({reflectToAttribute:!0,value:function(){return _.S("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.g("design:type",Boolean)],tU.prototype,"enableThumbnailScalingFix",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],tU.prototype,"dataChanged",null);_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],tU.prototype,"onTap",null);tU=_.O([_.v({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],tU);
_.t(tU,"ytd-text-image-no-button-layout-renderer",function(){if(jPC!==void 0)return jPC;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return jPC=K},{mode:_.Ig("kevlar_poly_si_batch_j028")?1:2});var w2C;var $F=function(){var K=_.G.apply(this,arguments)||this;K.isInlinePlaybackState=!1;K.uiUpdate=_.S("web_modern_buttons");K.hideCta=_.S("hide_cta_for_home_web_video_ads");K.noBottomMargin=!1;K.animateInTimeStamp=_.kU("hide_cta_for_home_web_video_ads_animate_in_time");K.animateInCta=!1;K.isHovered=!1;K.player=null;K.JSC$13286_playerEvents=new Map;K.JSC$13286_preventProgressSaveTimer=null;K.delayedCtaJobId=null;return K};
_.r($F,_.G);_.z=$F.prototype;_.z.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.adCtaButton":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.z.attached=function(){this.JSC$13286_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13286_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.S("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.z.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13286_playerEvents)};
_.z.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",$F.JSC$13285_DEFAULT_CLICK_LOCATION_BEHAVIOR,$F.JSC$13285_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.z.hoverChanged=function(){var K=this;this.delayedCtaJobId&&(_.A9.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.S("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.u6(_.A9,function(){K.buttonContainer.classList.add("show-delayed-buttons")},_.kU("delayed_cta_on_web_delay_milliseconds")))};
_.z.setPlayer=function(){var K=this,X;return _.q(function(F){if(F.nextAddress==1)return(X=_.IJ(K.hostElement,"yt-get-inline-preview-player-action"))&&X[0]?_.Y(F,X[0].getPlayerPromise(),3):F.jumpTo(0);K.player=F.yieldResult;K.ytPlayerListenerBehavior.listenToPlayerEvents(K.player,K.JSC$13286_playerEvents);_.JT(F)})};
_.z.onPlaybackStart=function(){var K=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13286_preventProgressSaveTimer=_.xO(_.A9,function(){K.JSC$13286_preventProgressSaveTimer=null},1E4))};
_.z.onVideoProgress=function(K){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&K>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.z.resetPreventProgressSaveTimer=function(){_.A9.cancelJob(this.JSC$13286_preventProgressSaveTimer);this.JSC$13286_preventProgressSaveTimer=null};
_.z.getSimpleString=function(K){return _.lj(K)};
_.z.onClick=function(K){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var X,F=(X=this.data)==null?void 0:X.navigationEndpoint,P;X=(P=this.data)==null?void 0:P.channelEndpoint;var H,f;(P=(f=_.T((H=this.data)==null?void 0:H.adCtaButton,_.jg))==null?void 0:f.command)&&_.vO(_.lN(K),this.hostElement,["call-to-action"])?_.S("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(P,K,!1):X&&_.vO(_.lN(K),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(X,K,!1):!_.vO(_.lN(K),this.hostElement,["secondary-button"])&&F&&(_.S("enable_short_dr_for_desktop_launchable")?(H=!!_.T(F,_.vg),this.isInlinePlaybackState&&H&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(F,K,H)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(F,K,!0)))}};
_.z.updateWatchEndpointStartTime=function(){var K,X;this.player&&((K=this.data)==null?0:K.inlinePlaybackEndpoint)&&((X=this.data)==null?0:X.navigationEndpoint)&&!this.JSC$13286_preventProgressSaveTimer&&(K=Math.floor(this.player.getCurrentTime()),_.T(this.data.navigationEndpoint,_.vg).startTimeSeconds=K,_.T(this.data.inlinePlaybackEndpoint,_.vg).startTimeSeconds=K)};
_.z.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.z.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.Oi.Object.defineProperties($F.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.S("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var K,X;return!((K=this.data)==null||!K.watchButton)&&!((X=this.data)==null||!X.adCtaButton)}}});
$F.prototype.hoverChanged=$F.prototype.hoverChanged;$F.prototype.dataChanged=$F.prototype.dataChanged;
$F.JSC$13285_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"]]);
$F.JSC$13285_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"}];
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],$F.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],$F.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],$F.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.bd.YtSparklesClickLocationBehavior),_.g("design:type",Object)],$F.prototype,"ytSparklesClickLocationBehavior",void 0);
_.O([_.W(_.ld.YtPlayerListenerBehavior),_.g("design:type",_.vC)],$F.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],$F.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],$F.prototype,"isInlinePlaybackState",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],$F.prototype,"miniMode",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],$F.prototype,"uiUpdate",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],$F.prototype,"hideCta",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],$F.prototype,"noBottomMargin",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],$F.prototype,"animateInCta",void 0);_.O([_.h({computed:"computeButtonOverride(uiUpdate)"}),_.g("design:type",Object)],$F.prototype,"buttonOverride",void 0);
_.O([_.h({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.g("design:type",Object)],$F.prototype,"secondaryButtonOverride",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],$F.prototype,"isHovered",void 0);_.O([_.fa("#button-container"),_.g("design:type",HTMLElement)],$F.prototype,"buttonContainer",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],$F.prototype,"typographyBump",void 0);
_.O([_.h({reflectToAttribute:!0}),_.U("typographyBump"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],$F.prototype,"typographyBumpV2",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],$F.prototype,"dataChanged",null);_.O([_.so("isHovered"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],$F.prototype,"hoverChanged",null);
_.O([_.U("data"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],$F.prototype,"isButtonGroup",null);$F=_.O([_.v({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],$F);
_.t($F,"ytd-ad-inline-playback-meta-block",function(){if(w2C!==void 0)return w2C;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return w2C=K},{mode:_.Ig("kevlar_poly_si_batch_j065")?1:2});var y2E;var Oa=function(){var K=_.G.apply(this,arguments)||this;K.noBottomMargin=!1;K.isInlinePreviewTriggered=!1;K.JSC$13291_activeViewMeasurementDataResolver=_.Ue();return K};
_.r(Oa,_.G);_.z=Oa.prototype;_.z.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.z.attached=function(){var K=this;this.updateInlinePreviewHoverListeners();this.JSC$13291_activeViewMeasurementDataResolver.promise.then(function(X){K.ytdActiveViewBehavior.enableActiveViewMeasurement(X,15)});
_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&K.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.z.detached=function(){this.clearInlinePreviewHoverListeners();_.S("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.z.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13291_inlinePreviewHoverListener=l6({mediaRenderer:this,lockupElement:this.JSC$13291_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:aJZ})};
_.z.clearInlinePreviewHoverListeners=function(){var K;(K=this.JSC$13291_inlinePreviewHoverListener)==null||Ny(K)};
_.z.onDataChanged=function(){var K;((K=this.data)==null?0:K.activeView)&&this.JSC$13291_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Oa.JSC$13290_DEFAULT_CLICK_LOCATION_BEHAVIOR,Oa.JSC$13290_CLICK_LOCATION_ID_MAP);this.thumbnail&&(K=this.thumbnail.getElementsByTagName("a"),K.length>0&&(K=K.namedItem("thumbnail"))&&K.removeAttribute("href"));var X,F;if(((X=this.data)==
null?0:X.hasAutoplay)||((F=this.data)==null?0:F.forceImpAutoplay)){var P;(P=this.JSC$13291_inlinePreviewHoverListener)==null||Tmw(P)}};
_.z.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.z.onThumbnailContainerClick=function(K){if(this.data&&this.data.navigationEndpoint){var X,F=(X=this.data)==null?void 0:X.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(F,K,!!_.T(F,_.vg));K.stopPropagation()}};
_.z.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.z.impressionLog=function(){var K=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var X,F,P=(F=_.T((X=this.data)==null?void 0:X.onImpression,_.PW))==null?void 0:F.commands;P&&(P.forEach(function(H){H.clickTrackingParams&&delete H.clickTrackingParams;K.ytComponentBehavior.resolveCommand(H)}),this.data.impressionsFired=!0)}};
_.Oi.Object.defineProperties(Oa.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.JSC$13291_inlinePreviewHoverListener)==null?0:rJ(K))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Oa.prototype.onTypographyBumpChanged=Oa.prototype.onTypographyBumpChanged;Oa.prototype.onDataChanged=Oa.prototype.onDataChanged;Oa.JSC$13290_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Oa.JSC$13290_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"}];
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Oa.prototype,"ytComponentBehavior",void 0);_.O([_.W(rK),_.g("design:type",Object)],Oa.prototype,"ytdActiveViewBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Oa.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Oa.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.yD),_.g("design:type",Object)],Oa.prototype,"ytdDismissibleItemBehavior",void 0);
_.O([_.W(_.mE),_.g("design:type",Object)],Oa.prototype,"ytdLockupBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],Oa.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.bd.YtSparklesClickLocationBehavior),_.g("design:type",Object)],Oa.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Oa.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],Oa.prototype,"noBottomMargin",void 0);
_.O([_.h(),_.g("design:type",Object)],Oa.prototype,"isInlinePreviewTriggered",void 0);_.O([_.h({reflectToAttribute:!0,selector:_.SJ}),_.g("design:type",Boolean)],Oa.prototype,"miniMode",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],Oa.prototype,"typographyBump",void 0);_.O([_.fa("ytd-thumbnail"),_.g("design:type",HTMLElement)],Oa.prototype,"thumbnail",void 0);_.O([_.fa("#dismissible"),_.g("design:type",HTMLElement)],Oa.prototype,"JSC$13291_dismissibleMedia",void 0);
_.O([_.fa("ytd-ad-inline-playback-meta-block"),_.g("design:type",HTMLElement)],Oa.prototype,"adInlinePlaybackMetaBlock",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Oa.prototype,"onDataChanged",null);_.O([_.JA("typographyBump"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Oa.prototype,"onTypographyBumpChanged",null);
_.O([_.U("lockupIsHovered"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Oa.prototype,"isHovered",null);Oa=_.O([_.v({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],Oa);
_.t(Oa,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(y2E!==void 0)return y2E;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return y2E=K},{mode:1});var WBO;var V0=function(){var K=_.G.apply(this,arguments)||this;K.isInlinePreviewTriggered=!1;K.JSC$13294_activeViewMeasurementDataResolver=_.Ue();return K};
_.r(V0,_.G);_.z=V0.prototype;_.z.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.z.attached=function(){var K=this;this.updateInlinePreviewHoverListeners();this.JSC$13294_activeViewMeasurementDataResolver.promise.then(function(X){K.ytdActiveViewBehavior.enableActiveViewMeasurement(X,15)})};
_.z.detached=function(){this.clearInlinePreviewHoverListeners()};
_.z.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13294_inlinePreviewHoverListener=l6({mediaRenderer:this,lockupElement:this.JSC$13294_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:aJZ})};
_.z.clearInlinePreviewHoverListeners=function(){var K;(K=this.JSC$13294_inlinePreviewHoverListener)==null||Ny(K)};
_.z.onDataChanged=function(){var K;((K=this.data)==null?0:K.activeView)&&this.JSC$13294_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",V0.JSC$13293_DEFAULT_CLICK_LOCATION_BEHAVIOR,V0.JSC$13293_CLICK_LOCATION_ID_MAP);this.thumbnail&&(K=this.thumbnail.getElementsByTagName("a"),K.length>0&&(K=K.namedItem("thumbnail"))&&K.removeAttribute("href"))};
_.z.onThumbnailContainerClick=function(K){if(this.data&&this.data.navigationEndpoint){var X,F=(X=this.data)==null?void 0:X.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(F,K,!0);K.stopPropagation()}};
_.z.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.z.impressionLog=function(){var K=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var X,F,P=(F=_.T((X=this.data)==null?void 0:X.onImpression,_.PW))==null?void 0:F.commands;P&&(P.forEach(function(H){H.clickTrackingParams&&delete H.clickTrackingParams;_.i9().resolve(_.xU).resolveCommand(H,{form:{element:K.hostElement}})}),this.data.impressionsFired=!0)}};
_.Oi.Object.defineProperties(V0.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.JSC$13294_inlinePreviewHoverListener)==null?0:rJ(K))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
V0.prototype.onDataChanged=V0.prototype.onDataChanged;V0.JSC$13293_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);V0.JSC$13293_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"}];_.O([_.W(rK),_.g("design:type",Object)],V0.prototype,"ytdActiveViewBehavior",void 0);
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],V0.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],V0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.yD),_.g("design:type",Object)],V0.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.W(_.mE),_.g("design:type",Object)],V0.prototype,"ytdLockupBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],V0.prototype,"ytdReduxBehavior",void 0);
_.O([_.W(_.bd.YtSparklesClickLocationBehavior),_.g("design:type",Object)],V0.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],V0.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],V0.prototype,"isInlinePreviewTriggered",void 0);_.O([_.h({reflectToAttribute:!0,selector:_.SJ}),_.g("design:type",Boolean)],V0.prototype,"miniMode",void 0);_.O([_.fa("ytd-thumbnail"),_.g("design:type",HTMLElement)],V0.prototype,"thumbnail",void 0);
_.O([_.fa("#dismissible"),_.g("design:type",HTMLElement)],V0.prototype,"JSC$13294_dismissibleMedia",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],V0.prototype,"onDataChanged",null);_.O([_.U("lockupIsHovered"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],V0.prototype,"isHovered",null);V0=_.O([_.v({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],V0);
_.t(V0,"ytd-video-display-full-buttoned-renderer",function(){if(WBO!==void 0)return WBO;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return WBO=K},{mode:1});var Xc=function(K,X,F,P){P=P===void 0?!1:P;_.KO.call(this,K);this.adsClientErrorMessage=F;this.aggressivelySample=P;this.args=[];X&&this.args.push(X)};
_.r(Xc,_.KO);var ka=function(K,X,F,P){P=P===void 0?!1:P;_.KO.call(this,K);this.adsClientErrorMessage=F;this.aggressivelySample=P;this.args=[];X&&this.args.push(X)};
_.r(ka,_.KO);var djL=function(K){_.LJ.call(this);var X=this;this.initializationFunction=K;this.instance=null;this.addOnDisposeCallback(function(){_.ik(X.instance);X.instance=null})};
_.r(djL,_.LJ);djL.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.Ey("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var JX4=function(){var K=new Map;[].forEach(function(X){K.set(X.JSC$26896_getType(),X)})};new Promise(function(){});var z$4=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"]]),H0M=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"}]]),eRN=function(K){this.experimentApiProvider=K;K=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=K<.1};var gQ=function(K,X,F,P){_.LJ.call(this);this.adsControlFlowEventListeners=X;this.adEventLogger=F;this.experimentApiProvider=P;this.adsControlFlowManagerHelper=K(this,this,this,this,this);_.JH(this,this.adsControlFlowManagerHelper);K=_.D(X);for(X=K.next();!X.done;X=K.next())_.JH(this,X.value)};
_.r(gQ,_.LJ);var RRL=function(K,X,F,P){Ea(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",X,F,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,P);K=_.D(K.adsControlFlowEventListeners);for(P=K.next();!P.done;P=K.next())RRL(P.value,X,F)};
_.z=gQ.prototype;_.z.onOpportunityProcessedExternallyManaged=function(K,X,F,P){Ea(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",K,F,X,void 0,void 0,void 0,void 0,void 0,void 0,void 0,P)};
_.z.onSlotReceivedExternallyManaged=function(K,X){be(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",K,X)};
_.z.onSlotEntered=function(K){if(CU(this.adsControlFlowManagerHelper,K)!=null){be(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",K);this.adsControlFlowManagerHelper.onSlotEntered(K);for(var X=_.D(this.adsControlFlowEventListeners),F=X.next();!F.done;F=X.next())F.value.onSlotEntered(K);if(CU(this.adsControlFlowManagerHelper,K)!=null&&CU(this.adsControlFlowManagerHelper,K).isOccupyingSlotType()&&Nr(this.adsControlFlowManagerHelper,K)&&!UjZ(this.adsControlFlowManagerHelper,K)){var P;ie(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",K,(P=Nr(this.adsControlFlowManagerHelper,K))!=null?P:void 0);K=CU(this.adsControlFlowManagerHelper,K);K.slotLifecycleStage!=="entered"&&xF(K.slot,K.slotLifecycleStage,"enterLayoutForSlot");K.slotLifecycleStage="rendering";K.registeredLayoutRenderingAdapter.startRendering(K.layout)}}};
_.z.onSlotExited=function(K){if(CU(this.adsControlFlowManagerHelper,K)!=null){be(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",K);this.adsControlFlowManagerHelper.onSlotExited(K);for(var X=_.D(this.adsControlFlowEventListeners),F=X.next();!F.done;F=X.next())F.value.onSlotExited(K);CU(this.adsControlFlowManagerHelper,K)!=null&&CU(this.adsControlFlowManagerHelper,K).markedForUnscheduleAfterOutboundAdapterRequests&&hRO(this,K)}};
_.z.onLayoutReceivedExternallyManaged=function(K,X,F){K.managerLayer!=="core"&&ie(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",K,X,F)};
var mjW=function(K,X,F){if(CU(K.adsControlFlowManagerHelper,X)!=null){ie(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",X,F);K=_.D(K.adsControlFlowEventListeners);for(var P=K.next();!P.done;P=K.next())mjW(P.value,X,F)}};
gQ.prototype.onLayoutExited=function(K,X,F){if(CU(this.adsControlFlowManagerHelper,K)!=null){ie(this.adEventLogger,s_d(F),K,X);this.adsControlFlowManagerHelper.onLayoutExited(K,X);for(var P=_.D(this.adsControlFlowEventListeners),H=P.next();!H.done;H=P.next())H.value.onLayoutExited(K,X,F);(F=Nr(this.adsControlFlowManagerHelper,K))&&X.layoutId===F.layoutId&&GHW(this,K)}};
gQ.prototype.disposeInternal=function(){var K=lcL(this.adsControlFlowManagerHelper);K=_.D(K);for(var X=K.next();!X.done;X=K.next())hRO(this,X.value);_.LJ.prototype.disposeInternal.call(this)};
var hRO=function(K,X){if(CU(K.adsControlFlowManagerHelper,X)!=null)if(CU(K.adsControlFlowManagerHelper,X).JSC$26927_isSlotExitRequested()||CU(K.adsControlFlowManagerHelper,X).JSC$26927_isLayoutExitRequested())CU(K.adsControlFlowManagerHelper,X).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(CU(K.adsControlFlowManagerHelper,X).isOccupyingSlotType())CU(K.adsControlFlowManagerHelper,X).markedForUnscheduleAfterOutboundAdapterRequests=!0,GHW(K,X);else if(CU(K.adsControlFlowManagerHelper,X).JSC$26927_isSlotFillRequested())CU(K.adsControlFlowManagerHelper,
X).markedForUnscheduleAfterOutboundAdapterRequests=!0,CU(K.adsControlFlowManagerHelper,X)!=null&&(be(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",X),X=CU(K.adsControlFlowManagerHelper,X),X.fulfillmentLifecycleStage="fill_cancel_requested",X.registeredFulfillmentAdapter.cancelSlotFilling());else{var F=Nr(K.adsControlFlowManagerHelper,X),P;K.experimentApiProvider.get();(P=_.S("h5_enable_layout_unscheduling_events"))&&(F?vkZ(K,X,F):_.Ey(Error("Dh"),X,F,void 0,!1));be(K.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",X);var H=CU(K.adsControlFlowManagerHelper,X),f=X.slotEntryTrigger,u=H.registeredSlotEntryTriggerAdapters.get(f.triggerId);u&&(u.unregisterTrigger(f),H.registeredSlotEntryTriggerAdapters.delete(f.triggerId));f=_.D(X.slotFulfillmentTriggers);for(u=f.next();!u.done;u=f.next()){u=u.value;var J=H.registeredFulfillmentTriggerAdapters.get(u.triggerId);J&&(J.unregisterTrigger(u),H.registeredFulfillmentTriggerAdapters.delete(u.triggerId))}f=_.D(X.slotExpirationTriggers);
for(u=f.next();!u.done;u=f.next())if(u=u.value,J=H.registeredExpirationTriggerAdapters.get(u.triggerId))J.unregisterTrigger(u),H.registeredExpirationTriggerAdapters.delete(u.triggerId);H.hasLayout()&&(f=H.layout,IQ(H,f.layoutExitNormalTriggers),IQ(H,f.layoutExitSkipTriggers),IQ(H,f.layoutExitMuteTriggers),IQ(H,f.layoutExitUserInputSubmittedTriggers),IQ(H,f.layoutExitUserCancelledTriggers));H.registeredFulfillmentAdapter=void 0;H.registeredSlotAdapter!=null&&(H.registeredSlotAdapter.release(),H.registeredSlotAdapter=
void 0);H.registeredLayoutRenderingAdapter!=null&&(H.registeredLayoutRenderingAdapter.release(),H.registeredLayoutRenderingAdapter=void 0);H=K.adsControlFlowManagerHelper;CU(H,X)&&(H=acC(H,X.slotType+"_"+X.slotPhysicalPosition))&&H.delete(X.slotId);be(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",X);K=_.D(K.adsControlFlowEventListeners);for(H=K.next();!H.done;H=K.next())H=H.value,H.onSlotUnscheduled(X),F&&!P&&vkZ(H,X,F)}},vkZ=function(K,X,F){ie(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
X,F);
ie(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",X,F);K=_.D(K.adsControlFlowEventListeners);for(var P=K.next();!P.done;P=K.next())P=P.value,F&&vkZ(P,X,F)},GHW=function(K,X){if(CU(K.adsControlFlowManagerHelper,X)!=null&&CU(K.adsControlFlowManagerHelper,X).isOccupyingSlotType()){var F=Nr(K.adsControlFlowManagerHelper,X);
if(F&&UjZ(K.adsControlFlowManagerHelper,X)){if(CU(K.adsControlFlowManagerHelper,X)!=null){var P=K.adEventLogger,H;var f=((H=H0M.get("abandoned"))==null?void 0:H.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";ie(P,f,X,F);K=CU(K.adsControlFlowManagerHelper,X);K.slotLifecycleStage!=="rendering"&&xF(K.slot,K.slotLifecycleStage,"exitLayout");K.slotLifecycleStage="rendering_stop_requested";K.registeredLayoutRenderingAdapter.stopRendering(F,"abandoned")}}else{be(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
X);try{P=CU(K.adsControlFlowManagerHelper,X);if(!P)throw new ka("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");P.slotLifecycleStage!=="enter_requested"&&P.slotLifecycleStage!=="entered"&&P.slotLifecycleStage!=="rendering"&&xF(P.slot,P.slotLifecycleStage,"exitSlot");P.slotLifecycleStage="exit_requested";if(P.registeredSlotAdapter===void 0)throw P.slotLifecycleStage="scheduled",new ka("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
P.registeredSlotAdapter.exit()}catch(u){u instanceof ka&&u.adsClientErrorMessage?(tCL(K.adEventLogger,u.adsClientErrorMessage,X),_.Ey(u,X,void 0,void 0,u.aggressivelySample)):(tCL(K.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",X),_.Ey(u,X))}}}};var kF=function(K,X,F,P,H,f){_.LJ.call(this);this.registry=K;this.experimentApiProvider=f;this.slotMap=new Map};
_.r(kF,_.LJ);var acC=function(K,X){return(K=K.slotMap.get(X))?K:new Map},CU=function(K,X){return acC(K,X.slotType+"_"+X.slotPhysicalPosition).get(X.slotId)},lcL=function(K){var X=[];
K.slotMap.forEach(function(F){F=_.D(F.values());for(var P=F.next();!P.done;P=F.next())X.push(P.value.slot)});
return X};
kF.prototype.onSlotEntered=function(K){K=CU(this,K);K.slotLifecycleStage!=="enter_requested"&&xF(K.slot,K.slotLifecycleStage,"onSlotEntered");K.slotLifecycleStage="entered"};
var UjZ=function(K,X){K=CU(K,X);return K.hasLayout()&&K.isRendering()},Nr=function(K,X){(K=CU(K,X))?K.hasLayout()&&!K.layout&&_.Ey("Unexpected empty layout",X):_.Ey("Unexpected undefined slotState",X);
return(K==null?void 0:K.layout)||null};
kF.prototype.onSlotExited=function(K){K=CU(this,K);K.slotLifecycleStage!=="exit_requested"&&xF(K.slot,K.slotLifecycleStage,"onSlotExited");K.slotLifecycleStage="scheduled"};
kF.prototype.onLayoutExited=function(K,X){K=CU(this,K);K.isPrimaryLayout(X)&&(K.slotLifecycleStage!=="rendering_stop_requested"&&xF(K.slot,K.slotLifecycleStage,"onLayoutExited"),K.slotLifecycleStage="entered")};
var IQ=function(K,X){X=_.D(X);for(var F=X.next();!F.done;F=X.next()){F=F.value;var P=K.registeredLayoutExitTriggerAdapters.get(F.triggerId);P&&(P.unregisterTrigger(F),K.registeredLayoutExitTriggerAdapters.delete(F.triggerId))}},xF=function(K,X,F){_.Ey("Slot stage was "+X+" when calling method "+F,K)};var OPC=function(K){_.LJ.call(this);this.deps=K;this.JSC$13343_adsControlFlowManager=$jN(this)};
_.r(OPC,_.LJ);var $jN=function(K){var X=new gQ(function(F,P,H,f){return new kF(K.deps.registry,F,P,H,f,K.deps.experimentApiProvider)},new Set(qd3(K.deps.registry).concat(K.deps.listeners)),K.deps.adEventLogger,K.deps.experimentApiProvider);
_.JH(K,X);return X};var VCC=function(K,X){_.LJ.call(this);this.experimentApiProvider=K;this.eventLoggingSettingsProvider=X;this.eventCount=0};
_.r(VCC,_.LJ);VCC.prototype.logEvent=function(K){Ea(this,K)};
var be=function(K,X,F,P){Ea(K,X,void 0,void 0,void 0,F,void 0,void 0,void 0,F.adSlotLoggingData,void 0,void 0,P)},ie=function(K,X,F,P,H){Ea(K,X,void 0,void 0,void 0,F,P?P:void 0,void 0,void 0,F.adSlotLoggingData,P?P.adLayoutLoggingData:void 0,void 0,H)},tCL=function(K,X,F){Ea(K,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,F,void 0,void 0,void 0,F.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:X})},Ea=function(K,X,F,P,H,f,u,J,Z,M,n,c,B){B=B===void 0?0:B;
gkT(K.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+X,"slot:",f,"layout:",u,"ping:",J,"Opportunity:",{opportunityType:F,associatedSlotId:P,slotsFromOpportunity:H,triggerBundle:Z,adSlotLoggingData:M,adLayoutLoggingData:n});try{var L=function(){K.experimentApiProvider.get();if(X!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){X||_.Ey("Empty PACF event type",f,u);var A=K.eventLoggingSettingsProvider.get();var d;(d=A.alwaysIncludeDebugData)||(A.experimentApiProvider.get(),d=
!1);A=d;d={eventType:X,eventOrder:++K.eventCount};var R={};f&&(R.slotData=D8d(A,f));if(u){var l={type:u.layoutType,controlFlowManagerLayer:z$4.get(u.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};A&&(l.debugData={layoutId:u.layoutId});R.layoutData=l}J&&(R.pingData={pingDispatchStatus:J.dispatchStatus,serializedAdPingMetadata:J.ping.serializedAdPingMetadata,pingIndex:J.index});Z&&(R.triggerData=fyP(Z.trigger,Z.category));F&&(R.opportunityData=uVw(A,F,P,H));d.adClientData=R;M&&(d.serializedSlotAdServingData=
M.serializedSlotAdServingDataEntry);n&&(d.serializedAdServingData=n.serializedAdServingDataEntry);c&&(d.errorInfo=c);_.LL("adsClientStateChange",{adsClientEvent:d})}};
B&&B>0?_.cu(_.Bj(),function(){return L()},B):L()}catch(A){gkT(K.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.cu(_.Bj(),function(){_.Ey(A instanceof Error?A:String(A),f,u,{pacf_message:"exception during pacf logging"})})}};var EkW=function(K,X){VCC.call(this,K,X)};
_.r(EkW,VCC);var bPt=function(){},gkT=function(K,X){return _.S(X)};var NWL=function(){var K=new CAE;this.JSC$13362_adsControlFlowManager=(new OPC(K)).JSC$13343_adsControlFlowManager},CAE=function(){_.LJ.call(this);
var K=this;this.experimentApiProvider=new djL(function(){return new bPt});
var X=new djL(function(){return new eRN(K.experimentApiProvider)});
this.adEventLogger=new EkW(this.experimentApiProvider,X);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.r(CAE,_.LJ);var iPt=function(){},xjO,Ki=function(){xjO||(xjO=new iPt);
return xjO},XB=function(K){if(!K.JSC$13373_externallyManagedSlotAdapterCallback){var X=(new NWL).JSC$13362_adsControlFlowManager;
K.JSC$13373_externallyManagedSlotAdapterCallback=X}return K.JSC$13373_externallyManagedSlotAdapterCallback},Ict=function(K,X,F){var P=X.opportunityType,H=Error("Eh");
if(P!==void 0){var f=XB(K);RRL(f,P,void 0,F)}else _.Ey(H,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});f=[];if(X.adSlotAndLayoutMetadata!==void 0){X=_.D(X.adSlotAndLayoutMetadata);for(var u=X.next();!u.done;u=X.next()){var J=u.value;if(u=J.adSlotMetadata)if(f.push(u),K.onSlotReceivedExternallyManaged(u,F),J.adLayoutMetadata){J=_.D(J.adLayoutMetadata);for(var Z=J.next();!Z.done;Z=J.next())K.onLayoutReceivedExternallyManaged(u,Z.value,F)}else F>0&&_.Ey("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
P,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else F>0&&_.Ey("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+P,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else F>0&&_.Ey("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+P,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(P!==void 0)K.onOpportunityProcessedExternallyManaged(P,f,void 0,F);else _.Ey(H,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
iPt.prototype.onSlotReceivedExternallyManaged=function(K,X){K=Kj(K);if(K instanceof ka)_.Ey(K,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else XB(this).onSlotReceivedExternallyManaged(K,X)};
iPt.prototype.onLayoutReceivedExternallyManaged=function(K,X,F){K=Kj(K);X=Z0l(X);if(K instanceof ka)_.Ey(K,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(X instanceof Xc)_.Ey(X,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else XB(this).onLayoutReceivedExternallyManaged(K,X,F)};
iPt.prototype.onOpportunityProcessedExternallyManaged=function(K,X,F,P){var H=[];X=_.D(X);for(var f=X.next();!f.done;f=X.next())f=Kj(f.value),f instanceof ka?_.Ey(f,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):H.push(f);XB(this).onOpportunityProcessedExternallyManaged(K,H,F,P)};
var kHL=function(K,X){X=Kj(X);if(X instanceof ka)_.Ey(X,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var F=XB(K);be(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",X);F=_.D(F.adsControlFlowEventListeners);for(var P=F.next();!P.done;P=F.next())P=CU(P.value,X),P.slotLifecycleStage!=="not_scheduled"&&xF(P.slot,P.slotLifecycleStage,"onSlotScheduled"),P.slotLifecycleStage="scheduled";K=XB(K);be(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",X);K=_.D(K.adsControlFlowEventListeners);
for(F=K.next();!F.done;F=K.next())F.value.onSlotEntered(X)}},KRC=function(K,X){X=Kj(X);
if(X instanceof ka)_.Ey(X,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var F=XB(K);be(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",X);F=_.D(F.adsControlFlowEventListeners);for(var P=F.next();!P.done;P=F.next())P.value.onSlotExited(X);K=XB(K);be(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",X);K=_.D(K.adsControlFlowEventListeners);for(F=K.next();!F.done;F=K.next())F.value.onSlotUnscheduled(X)}},XZu=function(K,X,F){X=Kj(X);
F=Z0l(F);if(X instanceof ka)_.Ey(X,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(F instanceof Xc)_.Ey(F,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var P=XB(K);ie(P.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",X,F);P=_.D(P.adsControlFlowEventListeners);for(var H=P.next();!H.done;H=P.next())H.value.onLayoutScheduled(X,F);K=XB(K);ie(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",X,F);K=_.D(K.adsControlFlowEventListeners);
for(P=K.next();!P.done;P=K.next())mjW(P.value,X,F)}},FB=function(K,X,F){X=Kj(X);
F=Z0l(F);if(X instanceof ka)_.Ey(X,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(F instanceof Xc)_.Ey(F,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var P=XB(K);ie(P.adEventLogger,s_d("normal"),X,F);P=_.D(P.adsControlFlowEventListeners);for(var H=P.next();!H.done;H=P.next())H.value.onLayoutExited(X,F,"normal");K=XB(K);K=_.D(K.adsControlFlowEventListeners);for(P=K.next();!P.done;P=K.next())vkZ(P.value,X,F)}};_.Ps=_.$c(function(K){var X=_.tA(K,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});K=Object.assign({},X);var F=X.data;X=X.customCommandResolver;var P=(delete K.data,delete K.customCommandResolver,K),H=_.t_();_.vp(H,function(){return F().interaction},X,function(){var J;
return(J=P.listenToTapEvent)==null?void 0:J.call(P)});
_.NF(H,{visibilityCallback:function(J){var Z,M=(Z=F().interaction)==null?void 0:Z.onFirstVisible;J&&(M&&_.e9(M),P.setOnErrorHandler()&&Ydl(H))},
showOption:_.OG});K=_.D(_.u_(!1,void 0,"eiYvIe"));var f=K.next().value,u=K.next().value;return _.Q("ad-image-view-model",{class:function(){var J,Z=[((J=F().interaction)==null?0:J.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],M;((M=P.isGridViewEnabled)==null?0:M.call(P))&&Z.push("ytwAdImageViewModelHostInGridView");return Z.join(" ")},
el:H,"on:touchend":_.DF(function(){var J;((J=P.setTouchEndHandler)==null?0:J.call(P))&&!f()&&(H.value.click(),u(!0),setTimeout(function(){u(!1)},100));
return!1})},_.Q("div",{class:"ytwAdImageViewModelHostImageContainer"},_.Q(_.av,{data:function(){var J;
return{sources:F().imageSources,contentMode:(J=F().imageProperties)==null?void 0:J.contentMode}},
alt:function(){var J,Z;return((J=F().interaction)==null?void 0:(Z=J.accessibility)==null?void 0:Z.label)||""},
targetHeight:P.targetHeight,targetWidth:P.targetWidth,preserveHeight:P.preserveHeight,preserveWidth:P.preserveWidth,useWidth:P.useWidth,style:function(){var J,Z;return"vertical-align: bottom;"+(((J=F().background)==null?0:J.color)?"background-color:"+_.j0((Z=F().background)==null?void 0:Z.color)+";":"")},
className:function(){return P.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var J,Z;return(Z=(J=P.setDraggable)==null?void 0:J.call(P))!=null?Z:void 0}})))},"gb");var FRV=_.$c(function(K){var X=K.data,F=K.listenToTapEvent,P=_.t_();_.S("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.vp(P,function(){return X().interaction},void 0,function(){return F==null?void 0:F()});
_.NF(P,{visibilityCallback:function(f){var u,J=(u=X().interaction)==null?void 0:u.onFirstVisible;f&&J&&_.e9(J)},
showOption:_.OG});var H=function(){};
return _.Q("ad-button-hover-overlay-view-model",{"on:click":_.DF(function(){if(_.S("enable_web_home_top_landscape_image_layout_legacy_click_command")){var f,u=(f=X().interaction)==null?void 0:f.onTap;u&&_.iX(P.value,"yt-navigate",{endpoint:_.w$(u)})}}),
class:function(){var f;return((f=X().interaction)==null?0:f.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:P},function(){return _.S("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.Q(_.Md,{data:function(){return X().button}},{adButtonViewModel:function(f){return _.Q(_.gJ,{data:f.data,
customCommandResolver:H})}}):_.Q(_.Md,{data:function(){return X().button}},{adButtonViewModel:_.gJ})}())},"hb");var Fc;_.EP(_.$c(function(K){var X=K.data;var F=_.t_();_.S("stop_av_measurement_on_detach")&&_.AZ(function(){HG(F)});
_.vp(F,function(){return X().interaction},void 0,function(){return!0});
_.NF(F,{visibilityCallback:function(f){if(f){var u;(f=(u=X().interaction)==null?void 0:u.onFirstVisible)&&_.e9(f);var J;if(u=(J=X().adLayoutData)==null?void 0:J.activeViewData)PG(F,u),_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&HG(F)})}else _.S("stop_av_measurement_on_detach")&&HG(F)},
showOption:_.OG,hideOption:Vu});K=_.D(_.u_(!1,void 0,"yzu6qe"));var P=K.next().value,H=K.next().value;return _.Q("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:F,"on:mouseenter":_.DF(function(){H(!0)}),
"on:mouseleave":_.DF(function(){H(!1)})},_.Q("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",
style:_.Je({"max-width":function(){return _.S("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.Q("div",{class:function(){var f;
a:{var u;switch((f=_.T(X().thumbnailImage,Q3))==null?void 0:(u=f.imageProperties)==null?void 0:u.renderingAspect){case "RENDERING_ASPECT_SQUARE":f="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":f="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}f=void 0}return f}},_.Q(_.Md,{data:function(){return X().thumbnailImage}},{adImageViewModel:function(f){return _.Q(_.Ps,
{data:f.data,
listenToTapEvent:!0,setTouchEndHandler:_.S("enable_top_landscape_image_experiment_dom_id_web")})}})),_.Q("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.Q(_.p,{cond:function(){var f,u,J;
return(f=_.T(X().thumbnailImage,Q3))==null?void 0:(u=f.imageProperties)==null?void 0:(J=u.overlayIcon)==null?void 0:J.iconImage},
then:function(f){return _.Q(_.av,{data:f,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.Q("div",{class:function(){return P()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.Q(_.Md,{data:function(){return X().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(f){return _.Q(FRV,
{data:f.data,
listenToTapEvent:!0})}}))),_.Q("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.Q(_.Md,{data:function(){return X().feedAdMetadata}},{feedAdMetadataViewModel:function(f){return _.Q(YSE,{data:f.data,
listenToTapEvent:!0,setTouchEndHandler:_.S("enable_top_landscape_image_experiment_dom_id_web")})}})))},"ib"),"compact-landscape-no-button-layout-view-model",{props:{data:_.vU}});_.EP(_.$c(function(K){var X=K.data;var F=_.t_();_.S("stop_av_measurement_on_detach")&&_.AZ(function(){HG(F)});
var P=_.rn(_.Wp);_.vp(F,function(){return X().interaction});
_.NF(F,{visibilityCallback:function(M){if(M){var n;(M=(n=X().interaction)==null?void 0:n.onFirstVisible)&&_.e9(M);var c;if(n=(c=X().adLayoutData)==null?void 0:c.activeViewData)PG(F,n),_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&HG(F)})}else _.S("stop_av_measurement_on_detach")&&HG(F)},
showOption:_.OG,hideOption:Vu});var H=_.DF(function(M){var n,c,B=(n=_.T(X().adImage,Q3))==null?void 0:(c=n.interaction)==null?void 0:c.onTap;B&&(_.S("enable_square_image_components_ui_web_with_custom_event")?_.iX(F.value,"yt-navigate",{endpoint:_.w$(B)}):OHl(M,B))}),f=_.DF(function(){var M,n,c=(M=_.T(X().adButton,Xju))==null?void 0:(n=M.interaction)==null?void 0:n.onTap;
c&&_.iX(F.value,"yt-navigate",{endpoint:_.w$(c)})}),u=function(){};
K={};var J={},Z={};return _.Q("square-image-layout-view-model",{class:_.HO("ytwSquareImageLayoutViewModelHost",(K.ytwSquareImageLayoutViewModelHostColumn=P,K)),el:F},_.Q("div",{class:_.HO("ytwSquareImageLayoutViewModelHostImage",(J.ytwSquareImageLayoutViewModelHostColumnImage=P,J))},function(){return _.S("enable_square_image_components_ui_web_with_native_img")?_.Q("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var M,n,c;return((M=_.T(X().adImage,Q3))==null?void 0:(n=M.imageSources)==
null?void 0:(c=n[0])==null?void 0:c.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:"false","on:click":H}):_.Q(_.Md,{data:function(){return X().adImage}},{adImageViewModel:function(M){return _.Q(_.Ps,{data:M.data,
isGridViewEnabled:P,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.Q("div",{class:_.HO("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(Z.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=P,Z))},_.Q(_.Md,{data:function(){return X().feedAdMetadata}},{feedAdMetadataViewModel:YSE}),function(){return _.S("enable_square_image_components_ui_web_with_float_button")?_.Q("div",{"on:click":f},_.Q(_.Md,{data:function(){return X().adButton}},
{adButtonViewModel:function(M){var n={};
return _.Q(_.gJ,{data:M.data,customCommandResolver:u,className:_.HO((n.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,n.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=P,n))})}})):_.Q(_.Md,{data:function(){return X().adButton}},{adButtonViewModel:function(M){var n={};
return _.Q(_.gJ,{data:M.data,className:_.HO((n.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,n.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=P,n))})}})}()))},"jb"),"square-image-layout-view-model",{props:{data:_.vU}});_.EP(_.$c(function(K){var X=K.data;var F=K.noBottomMargin;var P=K.typographyBump;var H=_.t_();_.S("stop_av_measurement_on_detach")&&_.AZ(function(){HG(H)});
_.S("enable_web_home_top_landscape_image_layout_level_click")&&_.vp(H,function(){return X().interaction},void 0,function(){return!0});
K=function(){return X().interaction};
K!==void 0&&K!==null||_.Gr(Error("Fh"));_.NF(H,{visibilityCallback:function(M){if(M){var n;(M=(n=X().interaction)==null?void 0:n.onFirstVisible)&&_.e9(M);var c;if(n=(c=X().adLayoutData)==null?void 0:c.activeViewData)PG(H,n),_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&HG(H)})}else _.S("stop_av_measurement_on_detach")&&HG(H)},
showOption:_.OG,hideOption:Vu});var f=function(){var M,n,c;return(M=_.T(X().thumbnailImage,Q3))==null?void 0:(n=M.background)==null?void 0:(c=n.backgroundImageSource)==null?void 0:c.imageSources};
K=_.D(_.u_(!1,void 0,"GIwTMc"));var u=K.next().value,J=K.next().value,Z=function(){return u()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.Q("top-landscape-image-layout-view-model",{class:function(){var M;return((M=X().interaction)==null?0:M.onTap)&&_.S("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:H,"on:mouseenter":_.DF(function(){J(!0)}),
"on:mouseleave":_.DF(function(){J(!1)})},_.Q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.Q(_.p,{cond:function(){return f()&&f().length>0},
then:function(){return _.Q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.Je({top:"0","background-image":function(){return"url("+String(f()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.Q(_.p,{cond:function(){return!!X().adButtonHoverOverlay},
then:function(){return _.Q("div",{class:Z},_.Q(_.Md,{data:function(){return X().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:FRV}))}}),_.Q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.Q(_.Md,{data:function(){return X().thumbnailImage}},{adImageViewModel:function(M){return _.Q(_.Ps,{data:M.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.S("enable_web_home_top_landscape_image_layout_level_click")})}})),_.Q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.Q(_.av,{data:{sources:[{clientResource:{imageName:_.S("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.Q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.Q(_.Md,{data:function(){return X().feedAdMetadata}},{feedAdMetadataViewModel:function(M){return _.Q(YSE,{data:M.data,
noBottomMargin:function(){return F==null?void 0:F()},
listenToTapEvent:function(){return _.S("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return P==null?void 0:P()}})}})))},"kb"),"top-landscape-image-layout-view-model",{props:{data:_.vU,
noBottomMargin:_.vU,typographyBump:_.vU}});_.EP(_.$c(function(K){var X=K.data;var F=K.typographyBump;var P=_.t_();_.NF(P,{visibilityCallback:function(H){if(H){var f;(H=(f=X().interaction)==null?void 0:f.onFirstVisible)&&_.e9(H);var u;f=(u=X().adLayoutData)==null?void 0:u.activeViewData;!_.S("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&f&&PG(P,f)}},
showOption:_.OG,hideOption:Vu});return _.Q("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:P},_.Q("div",null,_.Q(_.Md,{data:function(){return X().videoLockup}},{lockupViewModel:function(H){return _.Q(_.iJ,{data:H.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:F})}})))},"lb"),"video-display-button-group-layout-view-model",{props:{data:_.vU,
noBottomMargin:_.vU,typographyBump:_.vU}});_.EP(_.$c(function(K){var X=K.data;var F=K.className;var P=K.typographyBump;var H=_.t_();_.NF(H,{visibilityCallback:function(f){if(f){var u;(f=(u=X().interaction)==null?void 0:u.onFirstVisible)&&_.e9(f);var J;(u=(J=X().adLayoutData)==null?void 0:J.activeViewData)&&PG(H,u)}},
showOption:_.OG});return _.Q("video-display-compact-button-group-layout-view-model",{el:H,class:_.HO("videoDisplayCompactButtonGroupLayoutViewModelHost",F)},_.Q(_.Md,{data:function(){return X().videoLockup}},{lockupViewModel:function(f){return _.Q(_.iJ,{data:f.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:P})}}))},"mb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.vU,
className:_.vU,typographyBump:_.vU}});_.EP(_.$c(function(K){var X=K.data;var F=K.typographyBump;var P=_.t_();_.NF(P,{visibilityCallback:function(H){if(H){var f;(H=(f=X().interaction)==null?void 0:f.onFirstVisible)&&_.e9(H);var u;f=(u=X().adLayoutData)==null?void 0:u.activeViewData;!_.S("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&f&&PG(P,f)}},
showOption:_.OG,hideOption:Vu});return _.Q("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:P},_.Q("div",null,_.Q(_.Md,{data:function(){return X().videoLockup}},{lockupViewModel:function(H){return _.Q(_.iJ,{data:H.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:F})}})))},"nb"),"video-display-full-layout-view-model",{props:{data:_.vU,
noBottomMargin:_.vU,typographyBump:_.vU}});_.Pgu=_.$c(function(K){var X=K.data;K=_.t_();return _.Q("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:K},_.Q(_.p,{cond:function(){return X().imageBadge},
then:function(F){return _.Q(_.av,{data:F,alt:""})}}))},"ob");var H0t=_.$c(function(K){var X=K.data;var F=K.customCommandResolver;K=_.t_();_.vp(K,function(){return X().interaction},F);
_.NF(K,{visibilityCallback:function(P){var H,f=(H=X().interaction)==null?void 0:H.onFirstVisible;P&&f&&_.e9(f)},
showOption:_.OG});return _.Q("carousel-ad-card-image-view-model",{class:function(){var P;return((P=X().interaction)==null?0:P.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:K,"aria-label":function(){var P,H;return(P=X().interaction)==null?void 0:(H=P.accessibility)==null?void 0:H.label}},_.Q(_.Md,{data:function(){return X().adImage}},{adImageViewModel:function(P){return _.Q(_.Ps,{data:P.data,
customCommandResolver:F})}}),_.Q("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.Q(_.Md,{data:function(){return X().badge}},{adCardBadgeViewModel:_.Pgu})),_.Q(_.MB,{model:{color:4}}))},"pb");var s_C=_.$c(function(K){var X=_.D(_.u_(0,void 0,"o9Bzd")),F=X.next().value;X.next();var P=X.next().value,H=_.D(_.u_(!1,void 0,"KLdzYe"));X=H.next().value;var f=H.next().value,u;_.AZ(function(){clearTimeout(u)});
H=_.DF(function(){var M;((M=K.animate)==null?0:M.call(K))?(f(!0),u=setTimeout(function(){f(!1);J()},200)):J();
return!1});
var J=function(){P(function(M){return(M+K.numShownItems())%K.data().length})},Z={};
return _.Q("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.Q("div",{class:_.HO("ytwHorizontalCarouselCarouselWrapper")},_.Q("div",{class:_.HO("ytwHorizontalCarouselCarouselInnerWrapper",(Z.ytwHorizontalCarouselAnimating=X,Z))},_.Q(_.cd,{each:K.data,keyBy:"INDEX"},function(M,n){return _.Q("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.Je({"flex-basis":function(){return"calc((100% - (8px * "+(K.numShownItems()-1)+")) / "+K.numShownItems()+")"},
order:function(){var c=n-F();c<0&&(c+=K.data().length);return c}})},K.children(M,n))}))),_.Q("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":H},K.nextButton()))},"qb");var z$t=_.$c(function(K){var X=K.data;var F=K.customCommandResolver;var P=K.expansive;K=_.t_();_.NF(K,{visibilityCallback:function(H){var f,u=(f=X().interaction)==null?void 0:f.onFirstVisible;H&&u&&_.e9(u)},
showOption:_.OG});return _.Q("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:K},_.Q(s_C,{data:function(){var H;return((H=X())==null?void 0:H.carouselAdCards)||[]},
nextButton:function(){return _.Q(_.Md,{data:function(){return X().nextButton}},{buttonViewModel:function(H){var f=H.data;
return _.Q(_.Af,{data:function(){return(P==null?0:P())?Object.assign({},f(),{style:"mono"}):f()},
className:_.S("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(H){return _.Q(_.Md,{data:H},{carouselAdCardImageViewModel:function(f){return _.Q(H0t,{data:f.data,customCommandResolver:F})}})}))},"rb");var fyU=_.$c(function(K){var X=K.data;var F=K.customCommandResolver;var P=K.className;var H=K.buttonClassName;var f=K.animationEntityKey;var u=K.expansive;return _.Q("carousel-button-view-model",{class:_.HO("ytwCarouselButtonViewModelHost",P)},_.Q(_.Md,{data:function(){return X().carousel}},{carouselAdCardCollectionViewModel:function(J){return _.Q(z$t,{data:J.data,
customCommandResolver:F,expansive:u})}}),_.Q(_.Md,{data:function(){return X().button}},{adButtonViewModel:function(J){var Z=J.data;
return _.Q(_.gJ,{data:function(){return(u==null?0:u())?Object.assign({},Z(),{style:"AD_BUTTON_STYLE_TONAL"}):Z()},
className:H,customCommandResolver:F,animationEntityKey:f})}}))},"sb");_.D8C=_.$c(function(K){var X=K.data;K=K.className;var F=_.t_();_.AV(function(){var P;((P=X())==null?0:P.backgroundColor)&&F.value.setAttribute("data-background-color",String(X().backgroundColor))});
return _.Q("pivot-button-view-model",{el:F,class:_.HO("ytwPivotButtonViewModelHost",K)},_.Q(_.ku,{command:function(){var P=X();P=P.onClickCommand?_.w$(P.onClickCommand):P.contentDescription?_.Oz(P.contentDescription):void 0;return P},
ariaLabel:function(){return X().contentDescription}},_.Q(_.p,{cond:function(){return X().thumbnail},
then:function(P){return _.Q(_.av,{data:P,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.Q(_.p,{cond:function(){return X().icon},
then:function(P){return _.Q(_.ZF,{icon:function(){return P().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"tb");_.uVL=_.$c(function(K){var X=K.data;var F=K.buttonShapeOverrideables;return _.Q("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.Q(_.Md,{data:function(){return X().buttonViewModels}},{buttonViewModel:function(P){return _.Q(_.Af,{data:P.data,
buttonOverrides:F})},
likeButtonViewModel:function(P){return _.Q(_.rr,{data:P.data,buttonShapeOverrideables:F})},
dislikeButtonViewModel:function(P){return _.Q(_.TZ,{data:P.data,buttonShapeOverrideables:F})}}))},"ub");var qdC=_.$c(function(K){var X=K.avatar;var F=K.headline;var P=K.badge;var H=K.description;var f=K.expansive;K={};return _.Q("yt-ad-metadata-shape",{class:_.HO("ytAdMetadataShapeHost",(K.ytAdMetadataShapeHostLarge=f,K))},_.Q("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.Q(_.p,{cond:X,then:function(u){return _.Q(_.uuE,{data:function(){return(f==null?0:f())?Object.assign({},u(),{size:"AD_AVATAR_SIZE_MPLUS"}):u()}})}}),_.Q("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.Q(_.Oy,{text:F,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.Q(_.p,{cond:P,then:function(u){return _.Q(_.C5,{data:function(){return(f==null?0:f())?Object.assign({},u(),{style:"AD_BADGE_STYLE_STARK"}):u()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.Q("h2",{class:"ytAdMetadataShapeHostDescription"},_.Q(_.Oy,{text:H,
linkInheritColor:!0})))},"vb");var JXt=_.$c(function(K){var X=K.data;var F=K.onShow;var P=K.expansive;K=_.t_();_.vp(K,function(){return X().interaction});
_.AV(function(){var f,u=(f=X().animatedRenderingConfig)==null?void 0:f.delayedSecondsToVisible;if(u){var J=setTimeout(F,u*1E3);_.AZ(function(){clearTimeout(J)})}});
var H={};return _.Q("reels-ad-card-buttoned-view-model",{class:_.HO(function(){var f;return((f=X().interaction)==null?0:f.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(H.ytwReelsAdCardButtonedViewModelHostExpansive=P,H)),
el:K},_.Q(qdC,{avatar:function(){return _.T(X().avatar,kXN)},
headline:function(){return X().headline},
badge:function(){return _.T(X().adBadge,Klt)},
description:function(){return X().description},
expansive:P}),_.Q(_.Md,{data:function(){return X().ctaButton}},{adButtonViewModel:function(f){var u=f.data;
return _.Q(_.gJ,{data:function(){return(P==null?0:P())?Object.assign({},u(),{style:"AD_BUTTON_STYLE_FILLED"}):u()}})}}))},"wb");var Z0Z=_.$c(function(K){var X=K.data;K=K.expansive;var F=_.t_();_.S("web_ad_metadata_clickable")&&_.vp(F,function(){return X().interaction});
var P={};P=_.z9("ytwReelsAdMetadataViewModelHost",(P.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.S("web_ad_metadata_clickable"),P));return _.Q("reels-ad-metadata-view-model",{class:P,el:F},_.Q(qdC,{avatar:function(){return _.T(X().avatar,kXN)},
headline:function(){return X().headline},
badge:function(){return _.T(X().adBadge,Klt)},
description:function(){return X().description},
expansive:K}))},"xb");var YdZ={iconPosition:"icon-with-label",size:"L"},Q_Q=_.$c(function(K){var X=K.data;var F=K.overlayDensity;K=_.t_();var P=_.ag(F,0),H=function(){var c;return(c=X().reelsAdCardButtonedEntityKey)!=null?c:""},f=function(){return H()+"/ad_button"},u=_.sy(TxO,H),J=function(){var c,B;
return(B=(c=u())==null?void 0:c.value)!=null?B:!1},Z=_.rn(Sdw),M=function(){return Object.assign({},YdZ,(Z()||P()===2)&&{style:"overlay-dark"})};
F={};var n={};return _.Q("reels-player-overlay-layout-view-model",{class:_.HO("ytwReelsPlayerOverlayLayoutViewModelHost",(F.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!X().extension},F.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},F)),
"overlay-density":function(){return String(P())},
el:K},_.Q("div",{class:_.HO("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(n.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},n))},_.Q("div",{"aria-hidden":function(){return J()},
class:_.HO("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return J()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.Je({"transition-duration":function(){return Tyl(X())}})},_.Q(_.Md,{data:function(){return X().adMetadata}},{reelsAdMetadataViewModel:function(c){return _.Q(Z0Z,{data:c.data,
expansive:function(){return P()===1}})}}),_.Q(_.p,{cond:function(){return X().extension},
then:function(c){return _.Q("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.Q(_.Md,{data:c},{adButtonViewModel:function(B){return _.Q(_.gJ,{data:B.data,animationEntityKey:f,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(B){return _.Q(fyU,{data:B.data,animationEntityKey:f,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return P()===1}})}}))}})),_.Q("div",{"aria-hidden":function(){return!J()},
class:_.HO("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return J()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.Je({"transition-duration":function(){return Tyl(X())}})},_.Q(_.Md,{data:function(){return X().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(c){return _.Q(JXt,{data:c.data,
onShow:function(){_.vc(_.zl("booleanEntity",H(),{key:H(),value:!0}))},
expansive:function(){return P()===1}})}}))),_.Q("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.Q(_.Md,{data:function(){return X().actions}},{reelActionBarViewModel:function(c){return _.Q(_.uVL,{data:c.data,
buttonShapeOverrideables:M})}}),_.Q(_.Md,{data:function(){return X().menu}},{buttonViewModel:function(c){return _.Q(_.Af,{data:c.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},M(),{type:"tonal"})}})}}),_.Q(_.Md,{data:function(){return X().pivotButton}},{pivotButtonViewModel:function(c){return _.Q(_.D8C,{data:c.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"yb");_.EP(Q_Q,"reels-player-overlay-layout-view-model",{props:{data:_.vU,overlayDensity:_.vU}});var Hs=function(){var K=_.G.apply(this,arguments)||this;K.noBottomMargin=!1;K.overlayDensity=0;return K};
_.r(Hs,_.G);_.z=Hs.prototype;
_.z.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.S("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]]"}}}}}};
_.z.ready=function(){var K=this;bRl(function(){K.isAttached&&xa(K.JSC$13419_storedAdSlotMetadata,K.JSC$13419_storedAdLayoutMetadata,K.adSlotMetadata,K.adLayoutMetadata)&&FB(Ki(),K.JSC$13419_storedAdSlotMetadata,K.JSC$13419_storedAdLayoutMetadata)})};
_.z.attached=function(){xa(this.JSC$13419_storedAdSlotMetadata,this.JSC$13419_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&XZu(Ki(),this.JSC$13419_storedAdSlotMetadata,this.JSC$13419_storedAdLayoutMetadata)};
_.z.detached=function(){xa(this.JSC$13419_storedAdSlotMetadata,this.JSC$13419_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&FB(Ki(),this.JSC$13419_storedAdSlotMetadata,this.JSC$13419_storedAdLayoutMetadata)};
_.z.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.z.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13419_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13419_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13419_storedAdLayoutMetadata!==void 0&&this.JSC$13419_storedAdSlotMetadata!==void 0&&FB(Ki(),this.JSC$13419_storedAdSlotMetadata,this.JSC$13419_storedAdLayoutMetadata),XZu(Ki(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13419_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13419_storedAdSlotMetadata=this.adSlotMetadata)};
_.Oi.Object.defineProperties(Hs.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.adLayoutMetadata}}});
Hs.prototype.onAdMetadataChanged=Hs.prototype.onAdMetadataChanged;Hs.prototype.onTypographyBumpChanged=Hs.prototype.onTypographyBumpChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Hs.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Hs.prototype,"rendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Hs.prototype,"ytComponentBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],Hs.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],Hs.prototype,"noBottomMargin",void 0);_.O([_.h(),_.g("design:type",Object)],Hs.prototype,"overlayDensity",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],Hs.prototype,"typographyBump",void 0);_.O([_.U("data.adLayoutMetadata"),_.g("design:type",Object),_.g("design:paramtypes",[])],Hs.prototype,"adLayoutMetadata",null);_.O([_.h(),_.g("design:type",Object)],Hs.prototype,"adSlotMetadata",void 0);
_.O([_.fa("ytd-video-display-full-buttoned-and-button-group-renderer"),_.g("design:type",HTMLElement)],Hs.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.O([_.so("typographyBump"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Hs.prototype,"onTypographyBumpChanged",null);_.O([_.so("adLayoutMetadata","adSlotMetadata"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Hs.prototype,"onAdMetadataChanged",null);
Hs=_.O([_.v({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],Hs);
_.t(Hs,"ytd-in-feed-ad-layout-renderer",function(){if(sPC!==void 0)return sPC;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return sPC=K},
{mode:_.Ig("kevlar_poly_si_batch_j028")?1:2});var Mxt;var n6L;var sY=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return K};
_.r(sY,_.G);_.z=sY.prototype;_.z.computeHasLiveDescription=function(K){return!(K==null||!K.liveDescription)};
_.z.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.z.onYtToggleButton=function(K){var X,F=(X=this.data)==null?void 0:X.videoReminderEntityKey;F&&this.ytdReduxBehavior.dispatch(_.zl("upcomingEventReminderStateEntity",F,{key:F,state:K.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.z.attached=function(){this.updateChannelBanner()};
_.z.dataChanged=function(){this.updateChannelBanner()};
_.z.videoReminderStateChanged=function(){var K;this.videoReminderState&&_.T((K=this.data)==null?void 0:K.cta,_.w4)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.z.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var K=_.bH(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);K&&(K.startsWith("//")&&(K="https:"+K),this.hostElement.classList.add("channel-banner"),_.XU(this.hostElement,{"--ytvmh-channel-banner":"url("+K+")"}))}else _.S("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.z.onPlayerReady=function(){this.onIronResize()};
_.z.maybeFlushDebouncer=function(){_.S("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(K){var X;K=(X=K.getElementsByTagName("yt-attributed-string"))==null?void 0:X[0];LjP(K==null?void 0:K.polymerController)})};
_.z.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var K=_.C$(this.hostElement).querySelector("#live-description"),X;K&&((X=this.data)==null?0:X.shortLiveDescription)&&K.clientWidth<K.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
sY.prototype.onIronResize=sY.prototype.onIronResize;sY.prototype.videoReminderStateChanged=sY.prototype.videoReminderStateChanged;sY.prototype.dataChanged=sY.prototype.dataChanged;sY.prototype.onYtToggleButton=sY.prototype.onYtToggleButton;_.O([_.W(_.SL),_.g("design:type",Object)],sY.prototype,"ironResizableBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],sY.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],sY.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],sY.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],sY.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],sY.prototype,"data",void 0);_.O([_.h({selectorArgs:["data.videoReminderEntityKey"],selector:cFy}),_.g("design:type",Object)],sY.prototype,"videoReminderState",void 0);
_.O([_.h({reflectToAttribute:!0,value:_.S("web_modern_buttons")}),_.g("design:type",Boolean)],sY.prototype,"rounded",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.g("design:type",Boolean)],sY.prototype,"hasLiveDescription",void 0);_.O([_.h({reflectToAttribute:!0,value:_.S("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.g("design:type",Boolean)],sY.prototype,"resizableAdBannerSafariFix",void 0);
_.O([_.h({reflectToAttribute:!0,value:_.S("align_three_dot_menu_with_title_description")}),_.g("design:type",Boolean)],sY.prototype,"menuFix",void 0);_.O([_.DA("yt-formatted-string"),_.g("design:type",Array)],sY.prototype,"formattedStrings",void 0);_.O([_.fa("#cta-button"),_.g("design:type",HTMLElement)],sY.prototype,"ctaButton",void 0);_.O([_.Hc("yt-toggle-button"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],sY.prototype,"onYtToggleButton",null);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],sY.prototype,"dataChanged",null);_.O([_.so("videoReminderState"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],sY.prototype,"videoReminderStateChanged",null);_.O([_.Hc("iron-resize"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],sY.prototype,"onIronResize",null);
sY=_.O([_.v({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],sY);
_.t(sY,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(n6L!==void 0)return n6L;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return n6L=K},{mode:1});var cXC;var zz=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};K.isLocked=!1;return K};
_.r(zz,_.G);_.z=zz.prototype;_.z.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.z.onExpandedChanged=function(){this.expanded&&_.IJ(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.z.onMouseOver=function(){this.maybeExpand()};
_.z.onTap=function(){this.maybeExpand()};
_.z.onExpandableTileExpanding=function(K){K!==this&&(this.expanded=!1)};
_.z.onExpandableTileLockAndCollapse=function(K){this.isLocked=!0;K!==this&&(this.expanded=!1)};
_.z.onExpandableTileUnlock=function(){this.isLocked=!1};
zz.prototype.onTap=zz.prototype.onTap;zz.prototype.onMouseOver=zz.prototype.onMouseOver;zz.prototype.onExpandedChanged=zz.prototype.onExpandedChanged;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],zz.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],zz.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],zz.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],zz.prototype,"expanded",void 0);_.O([_.JA("expanded"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],zz.prototype,"onExpandedChanged",null);_.O([_.Hc("mouseover"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],zz.prototype,"onMouseOver",null);_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],zz.prototype,"onTap",null);
zz=_.O([_.v({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],zz);
_.t(zz,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(cXC!==void 0)return cXC;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return cXC=K},{mode:1});var pZZ;var fi=function(){var K=_.G.apply(this,arguments)||this;K.buttonOverrides={style:"overlay"};K.useYtdPlayer=_.S("use_ytd_player_for_desktop_masthead");K.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};K.playbackFinished=!1;K.JSC$13431_playerManager=null;K.JSC$13431_mastheadCounter=new PKC;return K};
_.r(fi,_.G);_.z=fi.prototype;_.z.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.z.created=function(){this.JSC$13431_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13431_playerManager=new MT)};
_.z.ready=function(){var K=this;this.JSC$13431_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var X=_.C$(this.hostElement).querySelector("#player");this.useYtdPlayer?X.style.display="none":(this.ytdPlayer.style.display="none",m1U(this.JSC$13431_playerManager,X,function(){K.onPlaybackEnded()}),_.C$(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var F;
((F=K.data)==null?0:F.navigationEndpoint)&&_.iX(K.hostElement,"yt-navigate",{endpoint:K.data.navigationEndpoint})}))};
_.z.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13431_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.z.attached=function(){var K=this;_.dl(function(){K.maybePlayVideo()})};
_.z.maybePlayVideo=function(){var K=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$13431_playerManager.playVideo(),this.getPlayerPromise().then(function(){K.JSC$13431_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.z.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13431_playerManager.stopVideo()};
_.z.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var K,X={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((K=this.data.playbackStartMs)!=null?K:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(X);this.setupYtdPlayer()}else lfC(this.JSC$13431_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(G5L(this.JSC$13431_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.z.getPlayerPromise=function(){return this.JSC$13431_playerManager.getPlayerPromise()};
_.z.onYtToggleButton=function(K){this.useYtdPlayer?this.toggleMute(K.detail.toggled):K.detail.toggled?this.JSC$13431_playerManager.mute():this.JSC$13431_playerManager.unMute()};
_.z.onYtNavigate=function(K){var X=MnP(K.detail.endpoint),F=nWd(this.data.clickthroughReportingData);X&&F&&(K.detail.endpoint.watchEndpoint?K.detail.tempData=F:_.Oc(X,F,30))};
_.z.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.z.onExpandedChanged=function(){this.expanded?(_.IJ(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.z.onMouseOver=function(){this.maybeExpand()};
_.z.onTap=function(){this.maybeExpand()};
_.z.onExpandableTileExpanding=function(K){K!==this&&(this.stopVideo(),this.expanded=!1)};
_.z.onExpandableTileLockAndCollapse=function(K){K!==this&&(this.isLocked=!0,this.expanded=!1)};
_.z.onExpandableTileUnlock=function(){this.isLocked=!1};
_.z.lockAndCollapseExpandableTiles=function(){_.xr(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.z.unlockExpandableTiles=function(){_.xr(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.z.setupYtdPlayer=function(){var K=this,X;return _.q(function(F){if(F.nextAddress==1)return _.Y(F,K.ytdPlayer.getPlayerPromise(),2);X=F.yieldResult;X.addEventListener("onStateChange",function(P){K.onPlayerStateChange(P)});
X.addEventListener("onCueRangeExit",function(P){K.onCueRangeExit(P)});
_.JT(F)})};
_.z.onPlayerStateChange=function(K){if(K===1&&(K=this.ytdPlayer.getPlayer())){var X=K.getCurrentTime(),F,P,H=X+((P=(F=this.data)==null?void 0:F.playbackDurationMs)!=null?P:0)/1E3;K.addCueRange("playback",X,H);this.JSC$13431_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.z.onCueRangeExit=function(K){K==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.z.toggleMute=function(K){var X=this,F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,X.ytdPlayer.getPlayerPromise(),2);F=P.yieldResult;K?F.mute():F.unMute();_.JT(P)})};
fi.prototype.onTap=fi.prototype.onTap;fi.prototype.onMouseOver=fi.prototype.onMouseOver;fi.prototype.onExpandedChanged=fi.prototype.onExpandedChanged;fi.prototype.onYtNavigate=fi.prototype.onYtNavigate;fi.prototype.onYtToggleButton=fi.prototype.onYtToggleButton;fi.prototype.dataChanged=fi.prototype.dataChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],fi.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],fi.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],fi.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],fi.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],fi.prototype,"expanded",void 0);_.O([_.h(),_.g("design:type",Object)],fi.prototype,"buttonOverrides",void 0);
_.O([_.h(),_.g("design:type",Object)],fi.prototype,"useYtdPlayer",void 0);_.O([_.fa("#ytd-player"),_.g("design:type",Object)],fi.prototype,"ytdPlayer",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],fi.prototype,"dataChanged",null);_.O([_.Hc("yt-toggle-button"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],fi.prototype,"onYtToggleButton",null);
_.O([_.Hc("yt-navigate"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],fi.prototype,"onYtNavigate",null);_.O([_.JA("expanded"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],fi.prototype,"onExpandedChanged",null);_.O([_.Hc("mouseover"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],fi.prototype,"onMouseOver",null);
_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],fi.prototype,"onTap",null);fi=_.O([_.v({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],fi);
_.t(fi,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(pZZ!==void 0)return pZZ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return pZZ=K},{mode:1});var Byt;var DM=function(){return _.G.apply(this,arguments)||this};
_.r(DM,_.G);DM.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
DM.prototype.onShow=function(){var K=_.C$(this.hostElement).querySelector("#live-description"),X;K&&((X=this.data)==null?0:X.shortLiveDescription)&&K.clientWidth<K.scrollWidth&&this.hostElement.classList.add("short-live-description")};
DM.prototype.onYtToggleButton=function(K){var X,F=(X=this.data)==null?void 0:X.videoReminderEntityKey;F&&this.ytdReduxBehavior.dispatch(_.zl("upcomingEventReminderStateEntity",F,{key:F,state:K.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
DM.prototype.videoReminderStateChanged=function(){var K;this.videoReminderState&&_.T((K=this.data)==null?void 0:K.cta,_.w4)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
DM.prototype.videoReminderStateChanged=DM.prototype.videoReminderStateChanged;DM.prototype.onYtToggleButton=DM.prototype.onYtToggleButton;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],DM.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],DM.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],DM.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],DM.prototype,"data",void 0);
_.O([_.h({selectorArgs:["data.videoReminderEntityKey"],selector:cFy}),_.g("design:type",Object)],DM.prototype,"videoReminderState",void 0);_.O([_.Hc("yt-toggle-button"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],DM.prototype,"onYtToggleButton",null);_.O([_.so("videoReminderState"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],DM.prototype,"videoReminderStateChanged",null);
DM=_.O([_.v({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],DM);
_.t(DM,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(Byt!==void 0)return Byt;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Byt=K},{mode:_.Ig("kevlar_poly_si_batch_j065")?1:2});var SdL;var u8=function(){var K=_.G.apply(this,arguments)||this;K.useYtdPlayer=_.S("use_ytd_player_for_desktop_masthead");K.buttonOverrides={style:"overlay"};K.JSC$13439_playerManager=null;K.JSC$13439_mastheadCounter=new PKC;K.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return K};
_.r(u8,_.G);_.z=u8.prototype;_.z.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.z.created=function(){this.JSC$13439_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13439_playerManager=new MT)};
_.z.ready=function(){var K=this;this.JSC$13439_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var X;(X=this.embeddedPlayer)==null||X.remove()}else{var F;(F=this.ytdPlayer)==null||F.remove();m1U(this.JSC$13439_playerManager,this.embeddedPlayer,function(){K.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){K.data&&K.data.navigationEndpoint&&_.iX(K.hostElement,"yt-navigate",{endpoint:K.data.navigationEndpoint})})}};
_.z.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13439_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.z.dataChanged=function(){var K=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var X=!this.data.disableAutoPlayback,F,P={autoplay:X,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((F=this.data.playbackStartMs)!=null?F:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(X?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(P);this.setupYtdPlayer()}else lfC(this.JSC$13439_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(G5L(this.JSC$13439_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13439_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.xr(K.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");K.JSC$13439_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.z.getPlayerPromise=function(){return this.JSC$13439_playerManager.getPlayerPromise()};
_.z.onYtToggleButton=function(K){this.useYtdPlayer?this.toggleMute(K.detail.toggled):K.detail.toggled?this.JSC$13439_playerManager.mute():this.JSC$13439_playerManager.unMute()};
_.z.onYtNavigate=function(K){var X=MnP(K.detail.endpoint),F=nWd(this.data.clickthroughReportingData);X&&F&&(K.detail.endpoint.watchEndpoint?K.detail.tempData=F:_.Oc(X,F,30))};
_.z.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13439_playerManager.stopVideo()};
_.z.setupYtdPlayer=function(){var K=this,X;return _.q(function(F){if(F.nextAddress==1)return _.Y(F,K.ytdPlayer.getPlayerPromise(),2);X=F.yieldResult;X.addEventListener("onStateChange",function(P){K.onPlayerStateChange(P)});
X.addEventListener("onCueRangeExit",function(P){K.onCueRangeExit(P)});
_.JT(F)})};
_.z.onPlayerStateChange=function(K){if(K===1&&(K=this.ytdPlayer.getPlayer())){var X=K.getCurrentTime(),F,P,H=X+((P=(F=this.data)==null?void 0:F.playbackDurationMs)!=null?P:0)/1E3;K.addCueRange("playback",X,H);_.xr(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13439_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.z.onCueRangeExit=function(K){K==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.z.toggleMute=function(K){var X=this,F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,X.ytdPlayer.getPlayerPromise(),2);F=P.yieldResult;K?F.mute():F.unMute();_.JT(P)})};
_.Oi.Object.defineProperties(u8.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var K,X;if(!((K=this.data)==null?0:(X=K.accessibilityData)==null?0:X.label))return"Ad primary link";var F,P;return _.uY("AD_TITLE",{title:(F=this.data)==null?void 0:(P=F.accessibilityData)==null?void 0:P.label})}}});
u8.prototype.onYtMastheadHidden=u8.prototype.onYtMastheadHidden;u8.prototype.onYtNavigate=u8.prototype.onYtNavigate;u8.prototype.onYtToggleButton=u8.prototype.onYtToggleButton;u8.prototype.dataChanged=u8.prototype.dataChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],u8.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],u8.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],u8.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],u8.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],u8.prototype,"useYtdPlayer",void 0);_.O([_.fa("ytd-toggle-button-renderer"),_.g("design:type",Object)],u8.prototype,"muteButton",void 0);_.O([_.h(),_.g("design:type",Object)],u8.prototype,"buttonOverrides",void 0);
_.O([_.U("data.accessibilityData.label"),_.g("design:type",String),_.g("design:paramtypes",[])],u8.prototype,"titleAriaLabel",null);_.O([_.fa("#replay-button"),_.g("design:type",Object)],u8.prototype,"replayButton",void 0);_.O([_.fa("#player-container"),_.g("design:type",Object)],u8.prototype,"playerContainer",void 0);_.O([_.fa("#player"),_.g("design:type",Object)],u8.prototype,"embeddedPlayer",void 0);_.O([_.fa("#ytd-player"),_.g("design:type",Object)],u8.prototype,"ytdPlayer",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],u8.prototype,"dataChanged",null);_.O([_.Hc("yt-toggle-button"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],u8.prototype,"onYtToggleButton",null);_.O([_.Hc("yt-navigate"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],u8.prototype,"onYtNavigate",null);
_.O([_.Hc("yt-masthead-hidden"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],u8.prototype,"onYtMastheadHidden",null);u8=_.O([_.v({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],u8);
_.t(u8,"ytd-video-masthead-ad-primary-video-renderer",function(){if(SdL!==void 0)return SdL;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return SdL=K},{mode:2});var o6Z;var qx=function(){var K=_.G.apply(this,arguments)||this;K.collapsed=!1;K.impressionResolver=_.Ue();K.JSC$13443_activeViewMeasurementDataResolver=_.Ue();K.actionMap={"yt-mute-ad-action":"handleMuteAd"};return K};
_.r(qx,_.G);_.z=qx.prototype;_.z.configureRendererStamper=function(){return{"data.expandableTiles":{id:"expandable-tile-container",mapping:{videoMastheadAdExpandableThumbnailTileRenderer:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",videoMastheadAdExpandableVideoTileRenderer:"ytd-video-masthead-ad-expandable-video-tile-renderer"}},"data.showAdRenderer":{id:"show-ad",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z.ready=function(){var K=this;_.C$(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){K.expandAd()});
this.hostElement.addEventListener("yt-action",function(X){if(X.detail.actionName==="yt-service-request"){var F=X.detail.args[1];F.videoMastheadAdMuteCommand&&(K.collapseAd(F.videoMastheadAdMuteCommand.encryptedMastheadId),X.stopPropagation())}})};
_.z.attached=function(){var K=this;_.dl(function(){K.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(X){if(!K.collapsed){X=_.D(X);for(var F=X.next();!F.done;F=X.next())F=F.value,Go(F.baseUrl,F.attributionSrcMode);K.data.impressionCommand=void 0}});
this.JSC$13443_activeViewMeasurementDataResolver.promise.then(function(X){K.ytdActiveViewBehavior.enableActiveViewMeasurement(X,15)});
_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&K.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.z.dataChanged=function(){var K;((K=this.data.impressionCommand)==null?0:K.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var X;((X=this.data)==null?0:X.activeView)&&this.JSC$13443_activeViewMeasurementDataResolver.resolve(this.data.activeView);(K=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(K.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.z.computeWidescreen=function(K){var X;return!!(K&&((X=_.T(K,CfQ))==null?0:X.isWidescreen))};
_.z.computeExpandable=function(K){return!!(K&&K.length>0)};
_.z.onIronResize=function(){if(this.expandable){var K=_.C$(this.hostElement).querySelector("#expandable-tile-container :first-child");K&&!K.expanded&&(K.expanded=!0)}};
_.z.handleMuteAd=function(){this.collapseAd(null)};
_.z.restoreCollapsedState=function(K){this.collapsed=_.ZO().get("HIDDEN_MASTHEAD_ID")===K};
_.z.collapseAd=function(K){if(K){var X=_.ZO();X.set("HIDDEN_MASTHEAD_ID",K);X.save()}(K=_.C$(this.hostElement).querySelector("#video"))&&_.iX(K,"yt-masthead-hidden");this.collapsed=!0};
_.z.expandAd=function(){var K=_.ZO();K.set("HIDDEN_MASTHEAD_ID",!1);K.save();location.reload()};
_.z.detached=function(){_.S("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
qx.prototype.onIronResize=qx.prototype.onIronResize;qx.prototype.dataChanged=qx.prototype.dataChanged;_.O([_.W(_.SL),_.g("design:type",Object)],qx.prototype,"ironResizableBehavior",void 0);_.O([_.W(rK),_.g("design:type",Object)],qx.prototype,"ytdActiveViewBehavior",void 0);_.O([_.W(_.dK),_.g("design:type",Object)],qx.prototype,"ytdGridStateAwareBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],qx.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],qx.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],qx.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],qx.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.g("design:type",Boolean)],qx.prototype,"widescreen",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.g("design:type",Boolean)],qx.prototype,"expandable",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],qx.prototype,"collapsed",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],qx.prototype,"dataChanged",null);
_.O([_.Hc("iron-resize"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],qx.prototype,"onIronResize",null);qx=_.O([_.v({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],qx);
_.t(qx,"ytd-video-masthead-ad-v3-renderer",function(){if(o6Z!==void 0)return o6Z;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return o6Z=K},{mode:2});var Jx=function(){return _.G.apply(this,arguments)||this};
_.r(Jx,_.G);_.z=Jx.prototype;_.z.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.z.ready=function(){var K=this;bRl(function(){K.isAttached&&xa(K.JSC$13448_storedAdSlotMetadata,K.JSC$13448_storedAdLayoutMetadata,K.adSlotMetadata,K.adLayoutMetadata)&&FB(Ki(),K.JSC$13448_storedAdSlotMetadata,K.JSC$13448_storedAdLayoutMetadata)})};
_.z.attached=function(){xa(this.JSC$13448_storedAdSlotMetadata,this.JSC$13448_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&XZu(Ki(),this.JSC$13448_storedAdSlotMetadata,this.JSC$13448_storedAdLayoutMetadata)};
_.z.detached=function(){xa(this.JSC$13448_storedAdSlotMetadata,this.JSC$13448_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&FB(Ki(),this.JSC$13448_storedAdSlotMetadata,this.JSC$13448_storedAdLayoutMetadata)};
_.z.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13448_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13448_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13448_storedAdLayoutMetadata!==void 0&&this.JSC$13448_storedAdSlotMetadata!==void 0&&FB(Ki(),this.JSC$13448_storedAdSlotMetadata,this.JSC$13448_storedAdLayoutMetadata),XZu(Ki(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13448_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13448_storedAdSlotMetadata=this.adSlotMetadata)};
_.Oi.Object.defineProperties(Jx.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.adLayoutMetadata}}});
Jx.prototype.onAdMetadataChanged=Jx.prototype.onAdMetadataChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Jx.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Jx.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Jx.prototype,"data",void 0);_.O([_.U("data.adLayoutMetadata"),_.g("design:type",Object),_.g("design:paramtypes",[])],Jx.prototype,"adLayoutMetadata",null);
_.O([_.h(),_.g("design:type",Object)],Jx.prototype,"adSlotMetadata",void 0);_.O([_.so("adLayoutMetadata","adSlotMetadata"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Jx.prototype,"onAdMetadataChanged",null);Jx=_.O([_.v({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],Jx);
_.t(Jx,"ytd-page-top-ad-layout-renderer",function(){if(Mxt!==void 0)return Mxt;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return Mxt=
K},{mode:_.Ig("kevlar_poly_si_batch_j070")?1:2});var LRC;var ZM=function(){var K=_.G.apply(this,arguments)||this;K.noBottomMargin=!1;K.overlayDensity=0;K.typographyBump=!1;return K};
_.r(ZM,_.G);_.z=ZM.prototype;
_.z.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.z.ready=function(){var K=this;bRl(function(){K.isAttached&&K.adSlotMetadata&&KRC(Ki(),K.adSlotMetadata)})};
_.z.attached=function(){if(this.adSlotMetadata){var K;if(this.adSlotMetadata===((K=this.data)==null?void 0:K.adSlotMetadata))kHL(Ki(),this.adSlotMetadata);else{var X;_.yy(Error("Gh`"+this.adSlotMetadata+"`"+((X=this.data)==null?void 0:X.adSlotMetadata)))}}};
_.z.detached=function(){this.adSlotMetadata&&KRC(Ki(),this.adSlotMetadata)};
_.z.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.z.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&KRC(Ki(),this.adSlotMetadata),kHL(Ki(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.Oi.Object.defineProperties(ZM.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var K,X,F=_.T((K=this.data)==null?void 0:(X=K.fulfillmentContent)==null?void 0:X.fulfilledLayout,_.ijC),P;return(K=(P=_.T(F==null?void 0:F.renderingContent,NMU))==null?void 0:P.layout)?K.toLowerCase().replace(/_/g,"-"):""}}});
ZM.prototype.onAdSlotMetadataChanged=ZM.prototype.onAdSlotMetadataChanged;ZM.prototype.onTypographyBumpChanged=ZM.prototype.onTypographyBumpChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],ZM.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],ZM.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ZM.prototype,"rendererBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],ZM.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],ZM.prototype,"noBottomMargin",void 0);_.O([_.h(),_.g("design:type",Object)],ZM.prototype,"overlayDensity",void 0);_.O([_.h(),_.g("design:type",Object)],ZM.prototype,"typographyBump",void 0);_.O([_.fa("ytd-in-feed-ad-layout-renderer"),_.g("design:type",HTMLElement)],ZM.prototype,"inFeedAdLayoutRenderer",void 0);
_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",String),_.g("design:paramtypes",[])],ZM.prototype,"layout",null);_.O([_.so("typographyBump"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ZM.prototype,"onTypographyBumpChanged",null);_.O([_.so("data.adSlotMetadata"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ZM.prototype,"onAdSlotMetadataChanged",null);
ZM=_.O([_.v({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],ZM);
_.t(ZM,"ytd-ad-slot-renderer",function(){if(LRC!==void 0)return LRC;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return LRC=K},{mode:_.Ig("kevlar_poly_si_batch_j077")?
1:2});var TyZ;var YQ=function(){return _.G.apply(this,arguments)||this};
_.r(YQ,_.G);_.z=YQ.prototype;_.z.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"},params:{noDotAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.z.maybeComputeHref=function(K){return _.S("enable_handle_watch_endpoint_click_for_vdc")?null:this.ytComponentBehavior.computeOptionalHref_(K)};
_.z.onTap=function(){_.S("enable_handle_watch_endpoint_click_for_vdc")||this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&qh4(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.z.onThumbnailContainerClick=function(K){this.onClick(K)};
_.z.onClick=function(K){if(_.S("enable_handle_watch_endpoint_click_for_vdc")){var X,F=(X=this.data)==null?void 0:X.navigationEndpoint;F&&_.T(F,_.vg)&&(this.ytSparklesClickLocationBehavior.handleClick(F,K,!1),K.stopPropagation())}};
_.z.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var K=_.D(this.data.impressionUrls),X=K.next();!X.done;X=K.next())X=X.value,L54(X,r6l(X));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);_.S("enable_handle_watch_endpoint_click_for_vdc")&&(this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",YQ.JSC$13456_DEFAULT_CLICK_LOCATION_BEHAVIOR,YQ.JSC$13456_CLICK_LOCATION_ID_MAP),this.thumbnail&&(K=this.thumbnail.getElementsByTagName("a"),
K.length>0&&(K=K.namedItem("thumbnail"))&&K.removeAttribute("href")))}};
_.z.attached=function(){var K=this;_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&K.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.z.detached=function(){_.S("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Oi.Object.defineProperties(YQ.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
YQ.prototype.dataChanged=YQ.prototype.dataChanged;YQ.prototype.onTap=YQ.prototype.onTap;YQ.JSC$13456_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
YQ.JSC$13456_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"}];_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],YQ.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],YQ.prototype,"ytRendererBehavior",void 0);_.O([_.W(rK),_.g("design:type",Object)],YQ.prototype,"ytdActiveViewBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],YQ.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],YQ.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.bd.YtSparklesClickLocationBehavior),_.g("design:type",Object)],YQ.prototype,"ytSparklesClickLocationBehavior",void 0);
_.O([_.h({selector:_.Wp}),_.g("design:type",Object)],YQ.prototype,"isGridViewEnabled",void 0);_.O([_.U("isGridViewEnabled"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],YQ.prototype,"watchFeedBigThumbs",null);_.O([_.U("isGridViewEnabled"),_.h({reflectToAttribute:!0}),_.g("design:type",String),_.g("design:paramtypes",[])],YQ.prototype,"thumbnailWidth",null);_.O([_.h(),_.g("design:type",Object)],YQ.prototype,"data",void 0);
_.O([_.fa("ytd-thumbnail"),_.g("design:type",HTMLElement)],YQ.prototype,"thumbnail",void 0);_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],YQ.prototype,"onTap",null);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],YQ.prototype,"dataChanged",null);YQ=_.O([_.v({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],YQ);
_.t(YQ,"ytd-compact-promoted-video-renderer",function(){if(TyZ!==void 0)return TyZ;var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return TyZ=K},{mode:1});var rXC;_.L4("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var QS=function(){return _.G.apply(this,arguments)||this};
_.r(QS,_.G);QS.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],QS.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],QS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],QS.prototype,"data",void 0);QS=_.O([_.v({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],QS);
_.t(QS,"ytd-search-pyv-renderer",function(){if(rXC!==void 0)return rXC;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return rXC=K},{mode:1});var AXu;_.L4("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var Mx=function(){var K=_.G.apply(this,arguments)||this;K.roundedContainer=!0;K.JSC$13464_handleOpenPostCommentDialogActionAfterStamp=!1;K.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return K};
_.r(Mx,_.G);_.z=Mx.prototype;
_.z.configureRendererStamper=function(){return{"data.post":{id:"post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{shouldHideAuthor:"[[isInEngagementPanel]]",shouldShowVideoTime:"[[isInEngagementPanel]]",shouldShowMenuInCompactView:"[[isInEngagementPanel]]",isInEngagementPanel:"[[isInEngagementPanel]]",usesFullLockup:"[[usesFullLockup]]",hideBorder:"[[hideBorder]]"}},postRenderer:"ytd-post-renderer",sharedPostRenderer:{component:"ytd-shared-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}}}},
"data.commentDialog":{id:"comment-dialog",mapping:{commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"},events:!0}}};
_.z.onStampFinished=function(){this.JSC$13464_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.z.handleSignalActionOpenPostCommentDialogAction=function(){var K=_.C$(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");K?K.openDialog():this.JSC$13464_handleOpenPostCommentDialogActionAfterStamp=!0};
_.z.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.z.computeHideBorder=function(){return this.isInEngagementPanel};
_.z.computeIsCompact=function(){return this.isInEngagementPanel};
_.z.computeUsesCompactLockup=function(K){return K==="BACKSTAGE_SURFACE_TYPE_HOME"||K==="BACKSTAGE_SURFACE_TYPE_SEARCH"||K==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||K==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||K==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||K==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.z.computeUsesFullLockup=function(){var K,X=(K=this.data)==null?void 0:K.post,F;K=(F=_.T(X,zUL))==null?void 0:F.surface;var P;F=(P=_.T(X,DLE))==null?void 0:P.originalPost;var H;if(P=K||((H=_.T(F,zUL))==null?void 0:H.surface))return!this.computeUsesCompactLockup(P)&&this.useUpdatedRepostUi;var f;return((f=_.T(X,DLE))==null?void 0:f.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.Oi.Object.defineProperties(Mx.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var K,X;return((X=_.T((K=this.data)==null?void 0:K.post,zUL))==null?void 0:X.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.useUpdatedRepostUi}}});
Mx.prototype.onYtCommentModerationPanelEmpty=Mx.prototype.onYtCommentModerationPanelEmpty;Mx.prototype.onStampFinished=Mx.prototype.onStampFinished;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Mx.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Mx.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Mx.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],Mx.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Mx.prototype,"roundedContainer",void 0);_.O([_.h({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.g("design:type",Boolean)],Mx.prototype,"hideBorder",void 0);_.O([_.h({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.g("design:type",Boolean)],Mx.prototype,"isCompact",void 0);
_.O([_.h({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.g("design:type",Boolean)],Mx.prototype,"usesFullLockup",void 0);_.O([_.Hc("yt-rendererstamper-finished"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Mx.prototype,"onStampFinished",null);
_.O([_.Hc("ytd-comment-moderation-panel-empty"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Mx.prototype,"onYtCommentModerationPanelEmpty",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Mx.prototype,"isInEngagementPanel",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Mx.prototype,"useUpdatedRepostUi",null);
Mx=_.O([_.v({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],Mx);
_.t(Mx,"ytd-backstage-post-thread-renderer",function(){if(AXu!==void 0)return AXu;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return AXu=K},{mode:1});var j_U;var ni=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return K};
_.r(ni,_.G);ni.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
ni.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var K=this.data.thumbnail.thumbnails;this.isDarkTheme&&(K=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(K=_.bH(K,24,void 0,"height"))?K:void 0}};
ni.prototype.onDarkModeToggledAction=function(K){this.isDarkTheme=K};
ni.prototype.computeHasText=function(){var K;return!((K=this.data)==null||!K.text)};
_.Oi.Object.defineProperties(ni.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.ps(this.bannerImageUrl))+'");'}}});
ni.prototype.computeHasText=ni.prototype.computeHasText;ni.prototype.computeBannerImageUrl=ni.prototype.computeBannerImageUrl;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],ni.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],ni.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ni.prototype,"ytRendererBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],ni.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Boolean)],ni.prototype,"isDarkTheme",void 0);_.O([_.h(),_.g("design:type",String)],ni.prototype,"bannerImageUrl",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.g("design:type",Boolean)],ni.prototype,"hasText",void 0);_.O([_.so("data","isDarkTheme"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ni.prototype,"computeBannerImageUrl",null);
_.O([_.so("data.text"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ni.prototype,"computeHasText",null);_.O([_.U("bannerImageUrl"),_.g("design:type",Object),_.g("design:paramtypes",[])],ni.prototype,"bannerStyle",null);ni=_.O([_.v({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],ni);
_.t(ni,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(j_U!==void 0)return j_U;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return j_U=K},{mode:1});var wZC;var cs=function(){return _.G.apply(this,arguments)||this};
_.r(cs,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],cs.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],cs.prototype,"data",void 0);cs=_.O([_.v({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],cs);
_.t(cs,"ytd-backstage-zero-state-renderer",function(){if(wZC!==void 0)return wZC;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return wZC=K},{mode:1});var yXT;var pi=function(){return _.G.apply(this,arguments)||this};
_.r(pi,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],pi.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],pi.prototype,"data",void 0);_.O([_.h({computed:"computeIcon_(data.icon)"}),_.g("design:type",String)],pi.prototype,"icon",void 0);pi=_.O([_.v({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],pi);
_.t(pi,"ytd-post-filter-zero-state-renderer",function(){if(yXT!==void 0)return yXT;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return yXT=K},{mode:1});var WRu;var d8t={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},Bs=function(){return _.G.apply(this,arguments)||this};
_.r(Bs,_.G);Bs.prototype.configureRendererStamper=function(){return d8t};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Bs.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Bs.prototype,"rendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Bs.prototype,"data",void 0);_.O([_.h({computed:"computeIcon_(data.icon)"}),_.g("design:type",String)],Bs.prototype,"icon",void 0);Bs=_.O([_.v({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],Bs);
_.t(Bs,"ytd-post-scheduling-zero-state-renderer",function(){if(WRu!==void 0)return WRu;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return WRu=K},{mode:1});var e$u;var SX=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return K};
_.r(SX,_.G);SX.prototype.onTabsActivate=function(K){this.data&&this.data.tabs&&_.iX(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[K.detail.selected].navigationEndpoint})};
SX.prototype.shouldShowTotalCount=function(K){return K&&K.totalCount!==void 0};
SX.prototype.handleUpdatePostsTotalCountAction=function(K){var X=this.get(["data.tabs",1,"totalCount"]),F=this.get("updatePostsTotalCountAction.updateType",K);K=this.get("updatePostsTotalCountAction.number",K);X!==void 0&&F!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&K&&(F==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(X)+K):F==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(X)-K))};
_.Oi.Object.defineProperties(SX.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var K=0,X=this.data.tabs.length;K<X;K++)if(this.data.tabs[K].selected)return K;return 0}}});
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],SX.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],SX.prototype,"rendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],SX.prototype,"data",void 0);_.O([_.U("data.tabs"),_.g("design:type",Number),_.g("design:paramtypes",[])],SX.prototype,"selected",null);SX=_.O([_.v({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],SX);
_.t(SX,"ytd-post-stream-filter-renderer",function(){if(e$u!==void 0)return e$u;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return e$u=K},{mode:1});var R$C;var ob=function(){return _.G.apply(this,arguments)||this};
_.r(ob,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ob.prototype,"kevlarBehaviors",void 0);_.O([_.h(),_.g("design:type",Object)],ob.prototype,"data",void 0);ob=_.O([_.v({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],ob);
_.t(ob,"ytd-channel-age-gate-renderer",function(){if(R$C!==void 0)return R$C;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return R$C=K},{mode:1});var U8N;_.L4("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var Li=function(){var K=_.G.apply(this,arguments)||this;K.data=null;return K};
_.r(Li,_.G);Li.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Oi.Object.defineProperties(Li.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return((K=this.data)==null?0:(X=K.title)==null?0:(F=X.runs)==null?0:F.length)?147:160}}});
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Li.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Li.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Number),_.g("design:paramtypes",[])],Li.prototype,"imageSizePx",null);Li=_.O([_.v({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],Li);
_.t(Li,"ytd-channel-owner-empty-state-renderer",function(){if(U8N!==void 0)return U8N;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return U8N=K},{mode:1});var h$t;var m8W;var Tz=function(){var K=_.G.apply(this,arguments)||this;K.boundSubmitSearch=function(){K.submitSearch()};
K.boundClearSearch=function(){K.clearSearch()};
return K};
_.r(Tz,_.G);_.z=Tz.prototype;_.z.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmitSearch]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundClearSearch]]"}}}}}};
_.z.toggleClearButton=function(){this.hideClearButton=kh4||!this.input.value};
_.z.submitOnEnterKeyUp=function(K){K.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.z.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.z.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.z.submit=function(){_.iX(this.hostElement,"search-query-changed",this.input.value)};
Tz.prototype.toggleClearButton=Tz.prototype.toggleClearButton;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Tz.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Tz.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Tz.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Tz.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Tz.prototype,"hideClearButton",void 0);_.O([_.h(),_.g("design:type",Object)],Tz.prototype,"boundSubmitSearch",void 0);_.O([_.h(),_.g("design:type",Object)],Tz.prototype,"boundClearSearch",void 0);_.O([_.fa("#input"),_.g("design:type",Object)],Tz.prototype,"input",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Tz.prototype,"toggleClearButton",null);
Tz=_.O([_.v({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],Tz);
_.t(Tz,"ytd-channel-switcher-search-box-renderer",function(){if(m8W!==void 0)return m8W;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return m8W=K},{mode:1});var GWE;var ru=function(){var K=_.G.apply(this,arguments)||this;K.boundSubmit=function(){K.submit()};
return K};
_.r(ru,_.G);_.z=ru.prototype;_.z.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmit]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.z.ready=function(){var K=this;this.form.addEventListener("submit",function(X){return K.onSubmit(X)})};
_.z.onSubmit=function(K){K.preventDefault();return!1};
_.z.toggleClearButton=function(){this.hideClearButton=kh4||!this.input.value};
_.z.submitOnEnterKeyUp=function(K){K.keyCode===13&&this.submit()};
_.z.submit=function(){var K=this.data.endpoint,X=(0,_.T8.unsafeClone)(K);_.T(X,_.f$)?_.T(X,_.f$).query=this.input.value:_.T(X,_.Dm)&&(_.T(X,_.Dm).query=this.input.value);var F=_.T(X.commandMetadata,_.g_);(F==null?0:F.url)?(F.url=_.eF(F.url,"query",this.input.value),_.iX(this.hostElement,"yt-navigate",{endpoint:X})):_.T(X,Ojt)?(_.T(X,Ojt).channelSwitcherQuery=this.input.value,_.i9().resolve(_.xU).resolveCommand(X,{form:{element:this.hostElement}})):(K=Error("Hh`"+JSON.stringify(K)),_.jF(K))};
_.z.getUrl=function(K){return this.get("commandMetadata.webCommandMetadata.url",K)};
ru.prototype.toggleClearButton=ru.prototype.toggleClearButton;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ru.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],ru.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],ru.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],ru.prototype,"hideClearButton",void 0);
_.O([_.h(),_.g("design:type",Object)],ru.prototype,"boundSubmit",void 0);_.O([_.fa("#form"),_.g("design:type",HTMLFormElement)],ru.prototype,"form",void 0);_.O([_.fa("#input"),_.g("design:type",Object)],ru.prototype,"input",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ru.prototype,"toggleClearButton",null);ru=_.O([_.v({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],ru);
_.t(ru,"ytd-search-box-renderer",function(){if(GWE!==void 0)return GWE;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return GWE=K},{mode:2});var Ax=function(){var K=_.G.apply(this,arguments)||this;K.showSearchBox=!0;return K};
_.r(Ax,_.G);Ax.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Ax.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Ax.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Ax.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Ax.prototype,"showSearchBox",void 0);Ax=_.O([_.v({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],Ax);
_.t(Ax,"ytd-channel-switcher-header-renderer",function(){if(h$t!==void 0)return h$t;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return h$t=K},{mode:1});var lyC;var v6t;var jX=function(){var K=_.G.apply(this,arguments)||this;K.isDisplayed=!0;return K};
_.r(jX,_.G);_.z=jX.prototype;_.z.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z.dataChanged=function(){this.isDisplayed=!0};
_.z.computeType=function(K){return K||"UNKNOWN"};
_.z.onYtServiceRequestCompleted=function(K){K.stopPropagation();this.isDisplayed=!1};
_.z.onClose=function(){this.isDisplayed=!1};
jX.prototype.onYtServiceRequestCompleted=jX.prototype.onYtServiceRequestCompleted;jX.prototype.dataChanged=jX.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],jX.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],jX.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],jX.prototype,"data",void 0);
_.O([_.h({computed:"computeType(data.type)",reflectToAttribute:!0}),_.g("design:type",String)],jX.prototype,"type",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],jX.prototype,"isDisplayed",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],jX.prototype,"dataChanged",null);
_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],jX.prototype,"onYtServiceRequestCompleted",null);jX=_.O([_.v({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],jX);
_.t(jX,"ytd-alert-with-button-renderer",function(){if(v6t!==void 0)return v6t;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return v6t=K},{mode:1});var wu=function(){var K=_.G.apply(this,arguments)||this;K.noResult=!1;K.enableAlertBanner=!1;K.dismissedAlertBanner=!1;K.hideCreateChannelButton=!1;K.boundDismissAlertBanner=function(){K.dismissAlertBanner()};
K.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return K};
_.r(wu,_.G);_.z=wu.prototype;_.z.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.z.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.z.updateChannelSwitcherAction=function(K){var X;K=(X=_.T(K,TdO))==null?void 0:X.page;_.T(K,LgZ)!==void 0&&(this.data=_.T(K,LgZ))};
_.z.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{channelSwitcherHeaderRenderer:"ytd-channel-switcher-header-renderer"}},"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}},accountItemRenderer:"ytd-account-item-renderer",continuationItemRenderer:"ytd-continuation-item-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundDismissAlertBanner]]"}}}}}};
_.z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.z.searchQueryChanged=function(K,X){if(this.data&&this.data.contents&&this.data.contents.length){K=[];var F=[];this.hideCreateChannelButton=this.noResult=!1;for(var P=document.querySelectorAll("ytd-account-item-renderer"),H=_.D(P),f=H.next();!f.done;f=H.next())f=f.value,F.push(f),f.style.display="block";this.resetRightBorder(F);if(X){this.hideCreateChannelButton=!0;for(F=1;F<this.data.contents.length;F++)if(f=this.data.contents[F],_.T(f,aVT)){var u=void 0,J=void 0;H=(u=_.T(f,aVT))==null?void 0:(J=
u.accountName)==null?void 0:J.simpleText;J=u=void 0;f=(u=_.T(f,aVT))==null?void 0:(J=u.channelHandle)==null?void 0:J.simpleText;(u=P[F-1])&&H&&_.JM(H,X)?K.push(u):_.S("enable_handle_search_on_channel_switcher")&&u&&f&&_.JM(f.toString(),X.toString())?K.push(u):u.style.display="none"}K.length===0&&(this.noResult=!0);this.resetRightBorder(K)}}};
_.z.resetRightBorder=function(K){for(var X=0;X<K.length;X++)K[X].style.borderRight=!this.hideCreateChannelButton&&(X+2)%3===0||this.hideCreateChannelButton&&(X+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.z.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.z.setShowSearchBox=function(K){if(K&&K.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var X=0;X<K.contents.length;X++)_.T(K.contents[X],_.xR)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.z.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.Oi.Object.defineProperties(wu.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null?0:K.contents)}}});
wu.prototype.onContinuationItemsUpdated=wu.prototype.onContinuationItemsUpdated;wu.prototype.searchQueryChanged=wu.prototype.searchQueryChanged;wu.prototype.onDataChanged=wu.prototype.onDataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],wu.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],wu.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],wu.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.eG),_.g("design:type",Object)],wu.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],wu.prototype,"data",void 0);_.O([_.fa("ytd-channel-switcher-header-renderer"),_.g("design:type",Object)],wu.prototype,"channelSwitcherHeaderRenderer",void 0);_.O([_.h(),_.g("design:type",Object)],wu.prototype,"noResult",void 0);
_.O([_.h(),_.g("design:type",Object)],wu.prototype,"enableAlertBanner",void 0);_.O([_.h(),_.g("design:type",Object)],wu.prototype,"dismissedAlertBanner",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],wu.prototype,"hideCreateChannelButton",void 0);_.O([_.U("data.contents"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],wu.prototype,"isLoading",null);_.O([_.h(),_.g("design:type",Object)],wu.prototype,"boundDismissAlertBanner",void 0);
_.O([_.h({computed:"computeButtonOverride()"}),_.g("design:type",Object)],wu.prototype,"buttonOverride",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],wu.prototype,"onDataChanged",null);_.O([_.Hc("search-query-changed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,String]),_.g("design:returntype")],wu.prototype,"searchQueryChanged",null);
_.O([_.Hc("yt-next-continuation-data-updated"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],wu.prototype,"onContinuationItemsUpdated",null);wu=_.O([_.v({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],wu);
_.t(wu,"ytd-channel-switcher-page-renderer",function(){if(lyC!==void 0)return lyC;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return lyC=K},{mode:1});var ayN;var txO;var yS=function(){var K=_.G.apply(this,arguments)||this;K.images=[];K.selectedImageIndex=0;return K};
_.r(yS,_.G);_.z=yS.prototype;
_.z.ready=function(){_.nB(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.nB(this.JSC$13509_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.nB(this.JSC$13509_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.nB(this.JSC$13509_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.z.onThumbnailClick=function(K){if(K=K.event_.detail)this.selectedImageIndex=this.images.indexOf(K)};
_.z.updateImageThumbnails=function(K){K=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:K.event_.detail});this.images.splice(this.selectedImageIndex,1,K);this.images=[].concat(_.LZ(this.images))};
_.z.cancelImageRepositions=function(){this.selectedImageIndex=0;_.iX(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.z.saveImageRepositions=function(){this.selectedImageIndex=0;_.iX(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.Oi.Object.defineProperties(yS.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var K=this;return(this.images||[]).map(function(X,F){return{image:X,selected:F===K.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],yS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.fa("ytd-backstage-image-preview-renderer"),_.g("design:type",Object)],yS.prototype,"JSC$13509_imagePreviewContainer",void 0);_.O([_.fa(".thumbnail-images-container"),_.g("design:type",HTMLElement)],yS.prototype,"thumbnailImagesContainer",void 0);_.O([_.h(),_.g("design:type",Array)],yS.prototype,"images",void 0);
_.O([_.h(),_.g("design:type",Object)],yS.prototype,"repositionInstructions",void 0);_.O([_.h(),_.g("design:type",Object)],yS.prototype,"selectedImageIndex",void 0);_.O([_.U("images","selectedImageIndex"),_.g("design:type",Array),_.g("design:paramtypes",[])],yS.prototype,"thumbnailRendererDatas",null);_.O([_.U("images","selectedImageIndex"),_.g("design:type",Object),_.g("design:paramtypes",[])],yS.prototype,"selectedImageData",null);
yS=_.O([_.v({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],yS);
_.t(yS,"ytd-backstage-multi-image-reposition-renderer",function(){if(txO!==void 0)return txO;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return txO=K},{mode:1});var Ws=function(K,X){_.ua.call(this);this.uploadUrl=K;this.channelId=X;this.imagesUploadData=[]};
_.r(Ws,_.ua);Ws.prototype.getAllUploadStatuses=function(){var K=this,X,F,P;return _.q(function(H){if(H.nextAddress==1)return _.Y(H,$8u(K),2);X=H.yieldResult;F=X.get("succeed");P=X.get("failed");return H.return(F.concat(P))})};
var VxE=function(K){var X,F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,$8u(K),2);X=P.yieldResult;F=X.get("failed");F.length>0&&O0t(K,F);return P.return(K.getAllUploadStatuses())})},$8u=function(K){var X,F,P,H,f,u,J;
return _.q(function(Z){if(Z.nextAddress==1)return X=new Map,_.Y(Z,Promise.allSettled(K.imagesUploadData.map(function(M){return M.uploadPromise})),2);
F=Z.yieldResult;P=[];H=_.D(F);for(f=H.next();!f.done;f=H.next())u=f.value,u.status==="fulfilled"&&P.push(u.value);J=K.imagesUploadData.map(function(M){return M.image}).filter(function(M){return P.every(function(n){return n.id!==M.id})});
X.set("succeed",P);X.set("failed",J);return Z.return(X)})},O0t=function(K,X){X=_.D(X);
for(var F=X.next();!F.done;F=X.next()){var P=K;F=F.value;g6U(P,F.id)>=0&&P.cancel(F.id);var H=new E6t(F),f=_.wGQ(P.uploadUrl,{"X-YouTube-ChannelId":P.channelId},F.imageBlob);H.transfer=f;H.uploadPromise=b0u(f,F);P.imagesUploadData.push(H);f.run()}};
Ws.prototype.cancel=function(K){var X=g6U(this,K);X!==-1&&((X=this.imagesUploadData[X].transfer)&&X.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(F){return F.image.id!==K}))};
var g6U=function(K,X){return K.imagesUploadData.findIndex(function(F){return F.image.id===X})},b0u=function(K,X){return new Promise(function(F,P){K.listen("l",function(){var H=K.getResponseText();
H?(H=JSON.parse(H).encryptedBlobId,X.encryptedBlobId=H,F(X)):P("upload failed")});
K.listen("n",function(){P("upload failed")})})},E6t=function(K){this.image=K};var rX3=function(K,X,F,P,H){this.id=K;this.imageBlob=X;this.localImageSrc=F;this.naturalWidth=P;this.naturalHeight=H;this.previewCoordinates=this.naturalHeight>this.naturalWidth?{top:(this.naturalHeight-this.naturalWidth)/2/this.naturalHeight,right:1,bottom:(this.naturalHeight+this.naturalWidth)/2/this.naturalHeight,left:0}:{top:0,right:(this.naturalWidth+this.naturalHeight)/2/this.naturalWidth,bottom:1,left:(this.naturalWidth-this.naturalHeight)/2/this.naturalWidth}};var CgW=[".jpeg",".jpg",".png"],du=function(){var K=_.G.apply(this,arguments)||this;K.showImagesPreview=!1;K.pollOptions=[];K.errorMessage="";K.optionPlaceholderText="";K.optionDefaultText="";K.JSC$13520_imageId=0;K.maxFileSizeMb=0;K.maxAspectRatio=0;K.invalidFileSizeError="";K.invalidAspectRatioError="";K.invalidFileTypeError="";K.imageSelector=new PH(null,"single_file",CgW);return K};
_.r(du,_.G);_.z=du.prototype;_.z.ready=function(){_.nB(this.imageSelector,"j",this.onImageSelect,!1,this);_.nB(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.nB(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.z.dataChanged=function(){var K,X,F=_.T((K=this.data)==null?void 0:(X=K.cellTemplate)==null?void 0:X.onEmptyCellTap,L9u);if(F&&F.uploadUrl&&F.channelId){var P;this.maxFileSizeMb=((P=F.imageValidationInfo)==null?void 0:P.maxFileSizeMb)||0;var H;this.maxAspectRatio=((H=F.imageValidationInfo)==null?void 0:H.allowedMaxAspectRatio)||0;var f;this.invalidFileSizeError=this.getSimpleString((f=this.data)==null?void 0:f.invalidFileSizeError);var u;this.invalidAspectRatioError=this.getSimpleString((u=this.data)==
null?void 0:u.invalidAspectRatioError);var J;this.invalidFileTypeError=this.getSimpleString((J=this.data)==null?void 0:J.invalidFileTypeError);this.uploadManager=new Ws(F.uploadUrl,F.channelId)}};
_.z.onEditorInfoChange=function(){this.optionPlaceholderText=_.lj(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.lj(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.z.observeAddImageError=function(){this.errorMessage!==""&&_.iX(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.z.onPollOptionsChange=function(){for(var K=!1,X=[],F=0;F<this.pollOptions.length;F++){var P=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(F+1);this.pollOptions[F].placeholderText!==P?(K=!0,X.push(Object.assign({},this.pollOptions[F],{placeholderText:P}))):X.push(this.pollOptions[F])}K&&(this.pollOptions=X);this.isValid()?_.iX(this.hostElement,"yt-commentbox-post-enable"):_.iX(this.hostElement,"yt-commentbox-post-disable")};
_.z.createPollOptions=function(K){var X=[],F;K=(F=K==null?void 0:K.minPollOptions)!=null?F:0;for(F=0;F<K;F++)X.push(this.createPollOption());return X};
_.z.onImageSelect=function(K){var X=this,F,P,H,f,u,J;return _.q(function(Z){if(Z.nextAddress==1){if(X.selectedImageIndex===void 0)return Z.jumpTo(0);F=K.files[0];X.errorMessage="";P=X.validateImage(F);if(P!=="")return X.errorMessage=P,Z.return();H=new GI(X.maxAspectRatio,!1,!0);return _.Y(Z,H.transform(F),3)}if(Z.nextAddress!=4)return f=Z.yieldResult,f.transformedData?f.invalidAspectRatio?(X.errorMessage=X.invalidAspectRatioError,Z.return()):_.Y(Z,AXT(X.JSC$13520_imageId,K.files[0],f.transformedData),
4):(X.errorMessage=X.invalidFileTypeError,Z.return());u=Z.yieldResult;X.JSC$13520_imageId++;O0t(X.uploadManager,[u]);J=Object.assign({},X.pollOptions[X.selectedImageIndex],{image:u});X.pollOptions.splice(X.selectedImageIndex,1,J);X.refreshPollOptions();_.iX(X.hostElement,"yt-backstage-poll-image-select");_.JT(Z)})};
_.z.validateImage=function(K){return K.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.z.refreshPollOptions=function(){this.pollOptions=[].concat(_.LZ(this.pollOptions))};
_.z.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.LZ(this.pollOptions),[this.createPollOption()]))};
_.z.onRemovePollOption=function(K){var X=this.pollOptions[K.model.index];X&&X.image&&this.uploadManager.cancel(X.image.id);this.pollOptions.splice(K.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.iX(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.z.onTextInput=function(){this.refreshPollOptions()};
_.z.onImageButtonClick=function(K){this.selectedImageIndex=K.model.index;this.imageSelector.click()};
_.z.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.z.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.z.saveImageRepositions=function(K){K=K.event_.detail;for(var X=0,F=[],P=_.D(this.pollOptions),H=P.next();!H.done;H=P.next())H=H.value,H.image!==void 0?(H=Object.assign({},H,{image:K[X]}),F.push(H),X++):F.push(H);this.showImagesPreview=!1;this.pollOptions=[].concat(_.LZ(F))};
_.z.isValid=function(){if(!this.editorInfo||this.showImagesPreview||this.pollOptions.length<Number(this.editorInfo.minPollOptions)||this.pollOptions.length>Number(this.editorInfo.maxPollOptions))return!1;for(var K=0,X=_.D(this.pollOptions),F=X.next();!F.done;F=X.next())if(F=F.value,F.optionText.trim()!==""||F.image!==void 0){if(!F.image||this.hasCustomOptionText&&F.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;K++}return K>=Number(this.editorInfo.minPollOptions)};
_.z.getAllUploadStatuses=function(){var K=this,X,F,P,H;return _.q(function(f){if(f.nextAddress==1)return _.Y(f,K.uploadManager.getAllUploadStatuses(),2);X=f.yieldResult;F=_.D(X);for(P=F.next();!P.done;P=F.next())if(H=P.value,H.encryptedBlobId===void 0)return f.return(VxE(K.uploadManager));return f.return(X)})};
_.z.getPostCreateOptions=function(){for(var K=[],X=_.D(this.pollOptions),F=X.next();!F.done;F=X.next())F=F.value,F.image!==void 0&&K.push({text:this.hasCustomOptionText?F.optionText:F.placeholderText,image:F.image});return K};
_.z.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.z.createButtonRenderer=function(K,X){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:K,accessibilityData:{accessibilityData:{label:this.getSimpleString(K)}},isDisabled:X}};
_.z.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.z.computeThumbnailRendererData=function(K){return K?{image:K,selected:!1}:void 0};
_.z.getSimpleString=function(K){return _.lj(K)};
_.z.updateOptionTextFromBinding=function(K){if(K.target){var X=Array.from(_.C$(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(K.target);if(X>=0){var F;this.pollOptions[X].optionText=(F=K.detail.value)!=null?F:""}}};
_.Oi.Object.defineProperties(du.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var K,X;return this.pollOptions.length<((X=(K=this.editorInfo)==null?void 0:K.maxPollOptions)!=null?X:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(K){return K.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(K){return K.image}).map(function(K){return K.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(K){return K.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var K,X=(K=this.data)==null?void 0:K.addOptionButtonText;return X?this.createButtonRenderer(X,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var K,X=(K=this.data)==null?void 0:K.repositionImagesButtonLabel;return X?this.createButtonRenderer(X,!this.hasImages):void 0}}});
du.prototype.onPollOptionsChange=du.prototype.onPollOptionsChange;du.prototype.observeAddImageError=du.prototype.observeAddImageError;du.prototype.onEditorInfoChange=du.prototype.onEditorInfoChange;du.prototype.dataChanged=du.prototype.dataChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],du.prototype,"ytRendererstamperBehavior",void 0);_.O([_.fa("ytd-backstage-multi-image-reposition-renderer"),_.g("design:type",Object)],du.prototype,"imageRepositionContainer",void 0);
_.O([_.h(),_.g("design:type",Object)],du.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],du.prototype,"editorInfo",void 0);_.O([_.h(),_.g("design:type",Ws)],du.prototype,"uploadManager",void 0);_.O([_.h(),_.g("design:type",Object)],du.prototype,"showImagesPreview",void 0);_.O([_.h(),_.g("design:type",Array)],du.prototype,"pollOptions",void 0);_.O([_.h(),_.g("design:type",Object)],du.prototype,"errorMessage",void 0);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],du.prototype,"dataChanged",null);_.O([_.JA("editorInfo"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],du.prototype,"onEditorInfoChange",null);_.O([_.so("errorMessage"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],du.prototype,"observeAddImageError",null);
_.O([_.JA("pollOptions"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],du.prototype,"onPollOptionsChange",null);_.O([_.U("pollOptions","editorInfo"),_.g("design:type",Object),_.g("design:paramtypes",[])],du.prototype,"isAllowedToAddOption",null);_.O([_.U("pollOptions"),_.g("design:type",Object),_.g("design:paramtypes",[])],du.prototype,"hasImages",null);
_.O([_.U("pollOptions"),_.g("design:type",Object),_.g("design:paramtypes",[])],du.prototype,"imagesToReposition",null);_.O([_.U("pollOptions"),_.g("design:type",Object),_.g("design:paramtypes",[])],du.prototype,"hasCustomOptionText",null);_.O([_.U("data","isAllowedToAddOption"),_.g("design:type",Object),_.g("design:paramtypes",[])],du.prototype,"addOptionButton",null);_.O([_.U("data","hasImages"),_.g("design:type",Object),_.g("design:paramtypes",[])],du.prototype,"repositionImagesButton",null);
du=_.O([_.v({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],du);
_.t(du,"ytd-backstage-image-poll-editor-renderer",function(){if(ayN!==void 0)return ayN;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return ayN=K},{mode:2});var NyQ={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 i0E;var eX=function(){var K=_.G.apply(this,arguments)||this;K.a11yConfig=NyQ;K.imageDisplayOffsetTop=0;K.imageDisplayOffsetLeft=0;K.pickerDisplayOffsetTop=0;K.pickerDisplayOffsetLeft=0;K.showPreviewContainer=!0;K.startPicker=!1;K.repositionOptional=!1;K.editOnlyMode=!1;K.savedImageDisplayOffsetTop=0;K.savedImageDisplayOffsetLeft=0;return K};
_.r(eX,_.G);_.z=eX.prototype;_.z.created=function(){_.dC.requestAvailability()};
_.z.ready=function(){};
_.z.onArrowKeysDown=function(K){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){K.detail.keyboardEvent.preventDefault();var X=0,F=0,P="";switch(K.detail.keyboardEvent.key){case "ArrowUp":j_P(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?P=this.a11yConfig.reachBottomOfImage:X=this.imageHeight*.05*-1;break;case "ArrowDown":j_P(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?P=this.a11yConfig.reachTopOfImage:
X=this.imageHeight*.05;break;case "ArrowLeft":j_P(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?P=this.a11yConfig.reachRightOfImage:F=this.imageWidth*.05*-1;break;case "ArrowRight":j_P(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?P=this.a11yConfig.reachLeftOfImage:F=this.imageWidth*.05}P&&_.uY(P)&&_.iX(this.hostElement,"iron-announce",{text:_.uY(P)});if(F||X)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+X)),K=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),K=_.uY(this.a11yConfig.imageVerticalPosition,{x_percent:""+K,y_percent:""+(100-K)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+F)),K=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),K=_.uY(this.a11yConfig.imageHorizontalPosition,{x_percent:""+K,y_percent:""+(100-K)})),K&&_.iX(this.hostElement,"iron-announce",{text:K})}};
_.z.getPreviewPosition=function(K,X,F,P){return Math.round(100*(K+X*.5-F)/P)};
_.z.calculateDisplayPosition=function(){var K=this.imageData.naturalWidth,X=this.imageData.naturalHeight;this.displayScale=Math.max(200/K,200/X);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var F=K*this.displayScale*this.imageData.previewCoordinates.left,P=X*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=X>K?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-F;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=K>X?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-P;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=K*this.displayScale;this.imageHeight=X*this.displayScale};
_.z.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.z.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.z.getSignedPosition=function(K,X,F){return X==="X"&&_.e8("HTML_DIR")==="rtl"?F==="-"?K+"px":K*-1+"px":F==="-"?K*-1+"px":K+"px"};
_.z.pickerMove=function(K){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var X=this.pickerOffsetX-K.clientX,F=this.pickerOffsetY-K.clientY;this.pickerOffsetX=K.clientX;this.pickerOffsetY=K.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
F)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-X))}};
_.z.pickerMoveStart=function(K){this.startPicker=!0;this.pickerOffsetX=K.clientX;this.pickerOffsetY=K.clientY};
_.z.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var K=this.generateCropPreview();K&&_.iX(this.hostElement,"ytd-backstage-image-preview-coordinates-update",K)};
_.z.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.iX(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.z.deleteImage=function(){_.iX(this.hostElement,"ytd-backstage-image-preview-delete")};
_.z.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.z.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var K=this.generateCropPreview();K&&_.iX(this.hostElement,"ytd-backstage-image-preview-coordinates-save",K)};
_.z.getPreviewOffset=function(K,X,F){return X&&K?(F==="X"&&_.e8("HTML_DIR")==="rtl"?300/X*K:300/X*K*-1)+"px":"0px"};
_.z.getSimpleText=function(K){return K?_.lj(K):""};
_.z.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize)return{top:this.cropOffsetTop/this.imageHeight,right:(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,bottom:(this.cropOffsetTop+this.pickerSize)/this.imageHeight,left:this.cropOffsetLeft/this.imageWidth}};
_.Oi.Object.defineProperties(eX.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var K=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.uY(this.a11yConfig.imageVerticalPosition,{x_percent:""+K,y_percent:""+(100-K)})+"\n"+_.uY(this.a11yConfig.verticalRepositionInstruction)}K=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.uY(this.a11yConfig.imageHorizontalPosition,{x_percent:""+K,y_percent:""+(100-K)})+"\n"+_.uY(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 K,X,F=(K=this.instruction)==null?void 0:(X=K.previewInstruction)==null?void 0:X.editButtonLabel;return F?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:F,accessibilityData:{accessibilityData:{label:this.getSimpleText(F)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var K,X,F,P,H=this.editOnlyMode?(K=this.instruction)==null?void 0:(X=K.editInstruction)==null?void 0:X.saveImagesButtonLabel:(F=this.instruction)==null?void 0:(P=F.editInstruction)==null?void 0:P.saveButtonLabel;return H?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:H,accessibilityData:{accessibilityData:{label:this.getSimpleText(H)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var K,X,F=(K=this.instruction)==null?void 0:(X=K.previewInstruction)==null?void 0:X.deleteButtonLabel;return F?{size:"SIZE_SMALL",text:F,accessibilityData:{accessibilityData:{label:this.getSimpleText(F)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var K,X,F=(K=this.instruction)==null?void 0:(X=K.editInstruction)==null?void 0:X.cancelButtonLabel;K=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return F?{style:K,size:"SIZE_SMALL",text:F,accessibilityData:{accessibilityData:{label:this.getSimpleText(F)}}}: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"}}});
eX.prototype.onEditOnlyModeUpdate=eX.prototype.onEditOnlyModeUpdate;eX.prototype.onImageChange=eX.prototype.onImageChange;_.O([_.h(),_.g("design:type",rX3)],eX.prototype,"imageData",void 0);_.O([_.h(),_.g("design:type",Object)],eX.prototype,"instruction",void 0);_.O([_.h(),_.g("design:type",Object)],eX.prototype,"a11yConfig",void 0);_.O([_.h(),_.g("design:type",Number)],eX.prototype,"imageWidth",void 0);_.O([_.h(),_.g("design:type",Number)],eX.prototype,"imageHeight",void 0);
_.O([_.h(),_.g("design:type",Number)],eX.prototype,"displayScale",void 0);_.O([_.h(),_.g("design:type",Object)],eX.prototype,"imageDisplayOffsetTop",void 0);_.O([_.h(),_.g("design:type",Object)],eX.prototype,"imageDisplayOffsetLeft",void 0);_.O([_.h(),_.g("design:type",Object)],eX.prototype,"pickerDisplayOffsetTop",void 0);_.O([_.h(),_.g("design:type",Object)],eX.prototype,"pickerDisplayOffsetLeft",void 0);_.O([_.h(),_.g("design:type",Object)],eX.prototype,"showPreviewContainer",void 0);
_.O([_.h(),_.g("design:type",Object)],eX.prototype,"startPicker",void 0);_.O([_.h(),_.g("design:type",Number)],eX.prototype,"pickerOffsetX",void 0);_.O([_.h(),_.g("design:type",Number)],eX.prototype,"pickerOffsetY",void 0);_.O([_.h(),_.g("design:type",Object)],eX.prototype,"repositionOptional",void 0);_.O([_.h(),_.g("design:type",Object)],eX.prototype,"editOnlyMode",void 0);_.O([_.fa("#picker-container"),_.g("design:type",HTMLElement)],eX.prototype,"JSC$13533_pickerContainer",void 0);
_.O([_.fa("#picker"),_.g("design:type",HTMLElement)],eX.prototype,"picker",void 0);_.O([_.fa("#preview-clipper"),_.g("design:type",HTMLElement)],eX.prototype,"previewClipper",void 0);_.O([_.fa("#image-in-picker-background"),_.g("design:type",HTMLImageElement)],eX.prototype,"JSC$13533_imageInBackground",void 0);_.O([_.fa("#image-in-picker"),_.g("design:type",HTMLImageElement)],eX.prototype,"JSC$13533_imageInPicker",void 0);
_.O([_.fa("#image-in-preview-clipper"),_.g("design:type",HTMLImageElement)],eX.prototype,"JSC$13533_imageInPreviewClipper",void 0);_.O([_.U("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.g("design:type",String),_.g("design:paramtypes",[])],eX.prototype,"altLabelForImage",null);_.O([_.U("imageHeight","imageWidth"),_.g("design:type",Number),_.g("design:paramtypes",[])],eX.prototype,"pickerSize",null);
_.O([_.U("imageHeight","imageWidth"),_.g("design:type",Object),_.g("design:paramtypes",[])],eX.prototype,"imageOrientationStyle",null);_.O([_.U("instruction"),_.g("design:type",Object),_.g("design:paramtypes",[])],eX.prototype,"editButton",null);_.O([_.U("instruction","editOnlyMode"),_.g("design:type",Object),_.g("design:paramtypes",[])],eX.prototype,"saveButton",null);_.O([_.U("instruction"),_.g("design:type",Object),_.g("design:paramtypes",[])],eX.prototype,"deleteButton",null);
_.O([_.U("instruction","editOnlyMode"),_.g("design:type",Object),_.g("design:paramtypes",[])],eX.prototype,"cancelButton",null);_.O([_.U("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.g("design:type",Number),_.g("design:paramtypes",[])],eX.prototype,"cropOffsetTop",null);_.O([_.U("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.g("design:type",Number),_.g("design:paramtypes",[])],eX.prototype,"cropOffsetLeft",null);
_.O([_.U("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.g("design:type",String),_.g("design:paramtypes",[])],eX.prototype,"pickerBackgroundStyle",null);_.O([_.U("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.g("design:type",String),_.g("design:paramtypes",[])],eX.prototype,"pickerDisplayStyle",null);_.O([_.U("cropOffsetLeft","cropOffsetTop"),_.g("design:type",String),_.g("design:paramtypes",[])],eX.prototype,"imageInPickerStyle",null);
_.O([_.U("cropOffsetLeft","cropOffsetTop","pickerSize"),_.g("design:type",String),_.g("design:paramtypes",[])],eX.prototype,"previewClipperStyle",null);_.O([_.JA("imageData"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],eX.prototype,"onImageChange",null);_.O([_.JA("editOnlyMode"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],eX.prototype,"onEditOnlyModeUpdate",null);
_.O([_.U("showPreviewContainer"),_.g("design:type",String),_.g("design:paramtypes",[])],eX.prototype,"pickerModeStyle",null);eX=_.O([_.v({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],eX);
_.t(eX,"ytd-backstage-image-preview-renderer",function(){if(i0E!==void 0)return i0E;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return i0E=K},{mode:1});var x8O;var IyZ={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 kWQ;var KVO;var Rb=function(){var K=_.G.apply(this,arguments)||this;K.a11yConfig=IyZ;K.imageDisplayOffsetTop=0;K.imageDisplayOffsetLeft=0;K.pickerDisplayOffsetTop=0;K.pickerDisplayOffsetLeft=0;K.cropCoordinatesSaved=!1;K.previewSize=0;K.startPicker=!1;K.repositionOptional=!1;return K};
_.r(Rb,_.G);_.z=Rb.prototype;_.z.created=function(){_.dC.requestAvailability()};
_.z.ready=function(){};
_.z.onArrowKeysDown=function(K){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){K.detail.keyboardEvent.preventDefault();var X=0,F=0,P="";switch(K.detail.keyboardEvent.key){case "ArrowUp":wZ3(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?P=this.a11yConfig.reachBottomOfImage:X=this.imageHeight*.05*-1;break;case "ArrowDown":wZ3(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?P=this.a11yConfig.reachTopOfImage:
X=this.imageHeight*.05;break;case "ArrowLeft":wZ3(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?P=this.a11yConfig.reachRightOfImage:F=this.imageWidth*.05*-1;break;case "ArrowRight":wZ3(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?P=this.a11yConfig.reachLeftOfImage:F=this.imageWidth*.05}P&&_.uY(P)&&_.iX(this.hostElement,"iron-announce",{text:_.uY(P)});if(F||X)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+X)),K=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),K=_.uY(this.a11yConfig.imageVerticalPosition,{x_percent:""+K,y_percent:""+(100-K)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+F)),K=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),K=_.uY(this.a11yConfig.imageHorizontalPosition,{x_percent:""+K,y_percent:""+(100-K)})),K&&_.iX(this.hostElement,"iron-announce",{text:K})}};
_.z.getPreviewPosition=function(K,X,F,P){return Math.round(100*(K+X*.5-F)/P)};
_.z.displayImage=function(){var K=this.JSC$13544_pickerContainer.getBoundingClientRect().width,X=this.JSC$13544_pickerContainer.getBoundingClientRect().height,F=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),P=this.JSC$13544_imageInBackground.naturalWidth,H=this.JSC$13544_imageInBackground.naturalHeight;this.displayScale=Math.max(F/P,F/H);this.imageWidth=P*this.displayScale;this.imageHeight=H*this.displayScale;this.pickerDisplayOffsetLeft=(K-F)/2;this.pickerDisplayOffsetTop=
(X-F)/2;this.imageDisplayOffsetLeft=H>P?this.pickerDisplayOffsetLeft:(K-this.imageWidth)/2;this.imageDisplayOffsetTop=P>H?this.pickerDisplayOffsetTop:(X-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.z.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13544_imageInBackground.src=this.imageData.toString(),this.JSC$13544_imageInPicker.src=this.imageData.toString(),this.JSC$13544_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.z.getSignedPosition=function(K,X,F){return X==="X"&&_.e8("HTML_DIR")==="rtl"?F==="-"?K+"px":K*-1+"px":F==="-"?K*-1+"px":K+"px"};
_.z.pickerMove=function(K){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var X=this.pickerOffsetX-K.clientX,F=this.pickerOffsetY-K.clientY;this.pickerOffsetX=K.clientX;this.pickerOffsetY=K.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
F)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-X))}};
_.z.pickerMoveStart=function(K){this.startPicker=!0;this.pickerOffsetX=K.clientX;this.pickerOffsetY=K.clientY};
_.z.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.z.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.iX(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.z.getPreviewOffset=function(K,X,F,P){return X&&K&&F?(P==="X"&&_.e8("HTML_DIR")==="rtl"?F/X*K:F/X*K*-1)+"px":"0px"};
_.z.getSimpleText=function(K){return K?_.lj(K):""};
_.z.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var K=this.cropOffsetTop/this.imageHeight,X=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,F=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,P=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.C$(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.iX(this.hostElement,"yt-img-crop-coordinates-update",{top:K,right:X,bottom:F,left:P})}};
_.Oi.Object.defineProperties(Rb.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var K=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.uY(this.a11yConfig.imageVerticalPosition,{x_percent:""+K,y_percent:""+(100-K)})+"\n"+_.uY(this.a11yConfig.verticalRepositionInstruction)}K=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.uY(this.a11yConfig.imageHorizontalPosition,{x_percent:""+K,y_percent:""+(100-K)})+"\n"+_.uY(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 K,X=(K=this.learnMore.runs[0])==null?void 0:K.navigationEndpoint,F;return((F=_.T(X,_.mc))==null?void 0:F.url)||void 0}}}});
Rb.prototype.onImageDataChange=Rb.prototype.onImageDataChange;_.O([_.h(),_.g("design:type",Object)],Rb.prototype,"imageData",void 0);_.O([_.h(),_.g("design:type",Object)],Rb.prototype,"instruction",void 0);_.O([_.h(),_.g("design:type",Object)],Rb.prototype,"a11yConfig",void 0);_.O([_.h(),_.g("design:type",Number)],Rb.prototype,"imageWidth",void 0);_.O([_.h(),_.g("design:type",Number)],Rb.prototype,"imageHeight",void 0);_.O([_.h(),_.g("design:type",Number)],Rb.prototype,"displayScale",void 0);
_.O([_.h(),_.g("design:type",Object)],Rb.prototype,"imageDisplayOffsetTop",void 0);_.O([_.h(),_.g("design:type",Object)],Rb.prototype,"imageDisplayOffsetLeft",void 0);_.O([_.h(),_.g("design:type",Object)],Rb.prototype,"pickerDisplayOffsetTop",void 0);_.O([_.h(),_.g("design:type",Object)],Rb.prototype,"pickerDisplayOffsetLeft",void 0);_.O([_.h(),_.g("design:type",Object)],Rb.prototype,"cropCoordinatesSaved",void 0);_.O([_.h(),_.g("design:type",Object)],Rb.prototype,"previewSize",void 0);
_.O([_.h(),_.g("design:type",Object)],Rb.prototype,"startPicker",void 0);_.O([_.h(),_.g("design:type",Number)],Rb.prototype,"pickerOffsetX",void 0);_.O([_.h(),_.g("design:type",Number)],Rb.prototype,"pickerOffsetY",void 0);_.O([_.h(),_.g("design:type",Object)],Rb.prototype,"repositionOptional",void 0);_.O([_.fa("#picker-container"),_.g("design:type",HTMLElement)],Rb.prototype,"JSC$13544_pickerContainer",void 0);_.O([_.fa("#picker"),_.g("design:type",HTMLElement)],Rb.prototype,"picker",void 0);
_.O([_.fa("#image-in-picker-background"),_.g("design:type",HTMLImageElement)],Rb.prototype,"JSC$13544_imageInBackground",void 0);_.O([_.fa("#image-in-picker"),_.g("design:type",HTMLImageElement)],Rb.prototype,"JSC$13544_imageInPicker",void 0);_.O([_.fa("#image-in-preview-clipper"),_.g("design:type",HTMLImageElement)],Rb.prototype,"JSC$13544_imageInPreviewClipper",void 0);_.O([_.fa("#full-image-as-preview"),_.g("design:type",HTMLImageElement)],Rb.prototype,"imageAsPreview",void 0);
_.O([_.U("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.g("design:type",String),_.g("design:paramtypes",[])],Rb.prototype,"altLabelForImage",null);_.O([_.U("imageHeight","imageWidth"),_.g("design:type",Number),_.g("design:paramtypes",[])],Rb.prototype,"pickerSize",null);_.O([_.U("imageHeight","imageWidth"),_.g("design:type",Object),_.g("design:paramtypes",[])],Rb.prototype,"imageOrientationStyle",null);
_.O([_.U("instruction.previewInstruction.editButtonLabel"),_.g("design:type",Object),_.g("design:paramtypes",[])],Rb.prototype,"editButton",null);_.O([_.U("instruction.editInstruction.saveButtonLabel"),_.g("design:type",Object),_.g("design:paramtypes",[])],Rb.prototype,"saveButton",null);_.O([_.U("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.g("design:type",Number),_.g("design:paramtypes",[])],Rb.prototype,"cropOffsetTop",null);
_.O([_.U("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.g("design:type",Number),_.g("design:paramtypes",[])],Rb.prototype,"cropOffsetLeft",null);_.O([_.U("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.g("design:type",String),_.g("design:paramtypes",[])],Rb.prototype,"pickerBackgroundStyle",null);_.O([_.U("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.g("design:type",String),_.g("design:paramtypes",[])],Rb.prototype,"pickerDisplayStyle",null);
_.O([_.U("cropOffsetLeft","cropOffsetTop"),_.g("design:type",String),_.g("design:paramtypes",[])],Rb.prototype,"imageInPickerStyle",null);_.O([_.U("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.g("design:type",String),_.g("design:paramtypes",[])],Rb.prototype,"previewClipperStyle",null);_.O([_.so("imageData"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Rb.prototype,"onImageDataChange",null);
_.O([_.U("cropCoordinatesSaved"),_.g("design:type",String),_.g("design:paramtypes",[])],Rb.prototype,"pickerModeStyle",null);_.O([_.U("instruction.editInstruction.learnMore"),_.g("design:type",Object),_.g("design:paramtypes",[])],Rb.prototype,"learnMore",null);_.O([_.U("learnMore"),_.g("design:type",Object),_.g("design:paramtypes",[])],Rb.prototype,"learnMoreUrl",null);Rb=_.O([_.Tb({is:"yt-img-crop-picker",disableElementRegistration:!0})],Rb);
_.t(Rb,"yt-img-crop-picker",function(){if(KVO===void 0){var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;kWQ===void 0&&(kWQ=document.createElement("template"));var P=kWQ;F.call(X,P.content.cloneNode(!0),K.content.firstChild);KVO=K}K=KVO;return K},{mode:2});var UY=function(){var K=_.G.apply(this,arguments)||this;K.errorMessage="";K.hasPreview=!1;K.isBackstagePost=!1;K.dismissButtonOverrides={size:"XS"};return K};
_.r(UY,_.G);_.z=UY.prototype;_.z.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},"data.selectButton":{id:"select",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z.detached=function(){this.removeOverlay()};
_.z.setPreview=function(K){_.C$(this.hostElement).querySelector("#preview-picker").imageData=K;this.hasPreview=!0;_.iX(this.hostElement,"yt-backstage-image-select-preview")};
_.z.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var K=_.C$(this.hostElement).querySelector("#dropzone");K.classList.remove("dragover");K.classList.remove("error");_.iX(this.hostElement,"yt-backstage-image-select-cancel")};
_.z.setupOverlay=function(){var K=this.imageUploadEndpoint;this.removeOverlay();if(K&&K.imageValidationInfo){var X=_.C$(this.hostElement).querySelector("#dropzone"),F=_.C$(this.hostElement).querySelector("#select");this.overlay=new vH(K.uploadUrl,K.channelId,K.imageValidationInfo.maxFileSizeMb,K.imageValidationInfo.allowedMaxAspectRatio,X,F,!0);_.nB(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.nB(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.nB(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.nB(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.nB(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.z.removeOverlay=function(){this.overlay&&(_.DG(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.DG(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.DG(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.DG(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.DG(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.z.onDragOver=function(K){var X=_.C$(this.hostElement).querySelector("#dropzone");_.iN(X,"dragover",K.value)};
_.z.onPreview=function(K){this.setPreview(K.value)};
_.z.onImageError=function(K){if(K.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var X;K=(X=this.data)==null?void 0:X.fileSizeError}else if(K.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var F;K=(F=this.data)==null?void 0:F.invalidError}else if(K.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var P;K=(P=this.data)==null?void 0:P.invalidAspectRatioError}else return;this.errorMessage=_.lj(K);_.C$(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.z.onImageAlert=function(K){this.onImageError(K)};
_.z.uploadPromise=function(){var K=this,X=this.overlay&&this.overlay.uploadPromise();if(X)return X.catch(function(){throw Error(K.data?_.lj(K.data.uploadFailureError):"");})};
_.Oi.Object.defineProperties(UY.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var K,X;if((K=this.data)==null?0:(X=K.icon)==null?0:X.iconType)return _.Fl(this.data.icon.iconType)}}});
UY.prototype.setupOverlay=UY.prototype.setupOverlay;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],UY.prototype,"rendererStamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],UY.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],UY.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],UY.prototype,"imageUploadEndpoint",void 0);_.O([_.h(),_.g("design:type",Object)],UY.prototype,"errorMessage",void 0);
_.O([_.h(),_.g("design:type",vH)],UY.prototype,"overlay",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],UY.prototype,"hasPreview",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],UY.prototype,"isBackstagePost",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],UY.prototype,"selectionCancel",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],UY.prototype,"previewCancel",null);
_.O([_.U("data.icon.iconType"),_.g("design:type",Object),_.g("design:paramtypes",[])],UY.prototype,"icon",null);_.O([_.h(),_.g("design:type",Object)],UY.prototype,"dismissButtonOverrides",void 0);_.O([_.so("imageUploadEndpoint"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],UY.prototype,"setupOverlay",null);UY=_.O([_.v({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],UY);
_.t(UY,"ytd-backstage-image-select-renderer",function(){if(x8O!==void 0)return x8O;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return x8O=K},{mode:1});var XwU;var FVU;var ab=function(){var K=_.G.apply(this,arguments)||this;K.selected=!1;return K};
_.r(ab,_.G);_.z=ab.prototype;_.z.computeSelected=function(K){return K==null?void 0:K.selected};
_.z.computeTransform=function(K,X,F){var P,H,f=(H=(P=this.imageContainer)==null?void 0:P.getBoundingClientRect())!=null?H:{width:0,height:0};P=Math.max(f.width/X,f.height/F);F=F*P*K.top;return"translateX("+this.getSignedPosition(X*P*K.left,"X","-")+") translateY("+this.getSignedPosition(F,"Y","-")+")"};
_.z.getSignedPosition=function(K,X,F){return X==="X"&&_.e8("HTML_DIR")==="rtl"?F==="-"?K+"px":K*-1+"px":F==="-"?K*-1+"px":K+"px"};
_.z.onClick=function(){var K;_.iX(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(K=this.data)==null?void 0:K.image)};
_.z.onKeyPress=function(K){if(K.keyCode===13)this.onClick()};
_.Oi.Object.defineProperties(ab.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.data)==null?void 0:(X=K.image)==null?void 0:X.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)!=null&&K.image){var X;K=(X=this.data)==null?void 0:X.image;return K.previewCoordinates.top!==0||K.previewCoordinates.left!==0?(X=this.computeTransform(K.previewCoordinates,K.naturalWidth,K.naturalHeight),K.naturalHeight>=K.naturalWidth?"width:inherit;transform:"+X+";":"height:inherit;transform:"+X+";"):K.naturalHeight>=K.naturalWidth?"width:inherit;":"height:inherit;"}}}});
ab.prototype.onKeyPress=ab.prototype.onKeyPress;_.O([_.fa(".image-container"),_.g("design:type",HTMLElement)],ab.prototype,"imageContainer",void 0);_.O([_.h(),_.g("design:type",Object)],ab.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.g("design:type",Object)],ab.prototype,"selected",void 0);_.O([_.U("data.image"),_.g("design:type",Object),_.g("design:paramtypes",[])],ab.prototype,"thumbnailUrl",null);
_.O([_.U("data.image","data.image.previewCoordinates"),_.g("design:type",Object),_.g("design:paramtypes",[])],ab.prototype,"thumbnailStyle",null);_.O([_.Hc("keypress"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],ab.prototype,"onKeyPress",null);ab=_.O([_.v({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],ab);
_.t(ab,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(FVU!==void 0)return FVU;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return FVU=K},{mode:2});var tx=function(K,X,F){F=F===void 0?!1:F;_.ua.call(this);var P=this;this.dropZoneOverlay=new F5(K);this.selectOverlay=F?new PH(X,"multiple_file",["image/*"]):new PH(X,"single_file",["image/*"]);this.handler=new _.iv(this);_.JH(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(X,"click",function(){P.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.r(tx,_.ua);tx.prototype.onChange=function(K){var X;(X=K.files)!=null&&X.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:K.files}))};var $Q=function(){var K=_.G.apply(this,arguments)||this;K.addImageErrorMessage="";K.errorMessage="";K.images=[];K.selectedImageIndex=0;K.modern=_.S("web_modern_buttons");K.maxNumImagesPerPost=_.kU("max_num_images_per_post_web_ui");K.JSC$13559_imageId=0;return K};
_.r($Q,_.G);_.z=$Q.prototype;_.z.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.iX(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.z.observeDragToReorder=function(){var K=this;if(this.showImagesPreview){var X,F=AlN(_.VZ.getInstance(),(X=this.data)==null?void 0:X.dragToReorderTooltip);_.A9.addLowPriorityJob(function(){_.X0(K.hostElement,F,K.thumbnailDragDropArea)})}};
_.z.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dataForAddImageButton:{id:"add-image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},thumbnailRenderers:{id:"thumbnail-drag-drop-area",mapping:{renderer:"ytd-backstage-multi-image-thumbnail-renderer"},events:!0,reuseComponents:!0,stamperStableList:!0}}};
_.z.computeThumbnail=function(K){return(K==null?void 0:K.localImageSrc)||void 0};
_.z.onRendererstamperFinished=function(){_.z2T(this.ytReorderableBehavior,_.C$(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.C$(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.z.handleDrop=function(K){var X=K.currDragItem;if(X!=null&&X.data){K=this.images[this.selectedImageIndex];var F=X.data.image,P=this.images.indexOf(F)||0;X=_.tM(X.parentNode.children,X);this.images.splice(P,1);this.images.splice(X,0,F);this.images=[].concat(_.LZ(this.images));this.selectedImageIndex=this.images.indexOf(K)}};
_.z.setUpImagePicker=function(){var K=this.imageUploadEndpoint;K&&K.imageValidationInfo&&(this.uploadManager=new Ws(K.uploadUrl,K.channelId),this.initialPicker||(this.initialPicker=new tx(this.dropzone,this.selectLink,!0),_.nB(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new tx(this.addImageButtonContainer,this.addImageSelectButton),_.nB(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.nB(this.JSC$13559_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.nB(this.JSC$13559_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.nB(_.C$(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.z.detached=function(){this.initialPicker&&(_.DG(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.DG(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.z.onInitialSelectImages=function(K){var X=this;return _.q(function(F){return _.Y(F,X.onSelectImages(K,!1),0)})};
_.z.onAddImage=function(K){var X=this;return _.q(function(F){return _.Y(F,X.onSelectImages(K,!0),0)})};
_.z.onSelectImages=function(K,X){var F=this,P,H,f,u,J,Z,M,n,c,B,L,A,d,R,l,a,E,V,x,N;return _.q(function(Dl){switch(Dl.nextAddress){case 1:X?F.addImageErrorMessage="":(F.images=[],F.errorMessage="");P=K.detail;H=F.validateImages([].concat(_.LZ(P)));if(H!=="")return X?F.addImageErrorMessage=H:F.errorMessage=H,Dl.return();f=[].concat(_.LZ(P)).map(function(Mq){return(new GI(F.maxAspectRatio,!1,!0)).transform(Mq)});
return _.Y(Dl,Promise.allSettled(f),2);case 2:u=Dl.yieldResult,J=_.D(u.entries()),Z=J.next();case 3:if(Z.done){Dl.jumpTo(5);break}M=Z.value;n=_.D(M);c=n.next().value;B=n.next().value;L=c;A=B;if(A.status!=="fulfilled"){l=R=d=void 0;X?F.addImageErrorMessage=_.lj((d=F.data)==null?void 0:d.invalidError):F.errorMessage=F.errorMessage===""?_.lj((R=F.data)==null?void 0:R.invalidError):_.lj((l=F.data)==null?void 0:l.multiFileError);Dl.jumpTo(4);break}a=A.value;a.cropped&&_.iX(F.hostElement,"yt-backstage-multi-image-cropped");
if(a.invalidAspectRatio){x=V=E=void 0;X?F.addImageErrorMessage=_.lj((E=F.data)==null?void 0:E.invalidAspectRatioError):F.errorMessage=F.errorMessage===""?_.lj((V=F.data)==null?void 0:V.invalidAspectRatioError):_.lj((x=F.data)==null?void 0:x.multiFileError);Dl.jumpTo(4);break}return _.Y(Dl,AXT(F.JSC$13559_imageId,K.detail[L],a.transformedData),8);case 8:N=Dl.yieldResult,F.images.push(N),F.JSC$13559_imageId++;case 4:Z=J.next();Dl.jumpTo(3);break;case 5:if(F.errorMessage!==""||F.addImageErrorMessage!==
"")return Dl.return();X?O0t(F.uploadManager,[F.images[F.images.length-1]]):O0t(F.uploadManager,F.images);F.images=[].concat(_.LZ(F.images));F.selectedImageIndex=X?Math.max(F.images.length-1,0):0;_.iX(F.hostElement,"yt-backstage-multi-image-select");_.JT(Dl)}})};
_.z.onThumbnailClick=function(K){if(K=K.event_.detail)this.selectedImageIndex=this.images.indexOf(K)};
_.z.validateImages=function(K){if(K.length>this.maxNumImagesPerPost){var X;return _.lj((X=this.data)==null?void 0:X.multiImageExceedMaxImageCountError)}var F=1048576*this.maxFileSizeMb;K=K.filter(function(f){return f.size>F}).length;
if(K===0)return"";var P,H;K=K>1?(P=this.data)==null?void 0:P.multiFileError:(H=this.data)==null?void 0:H.fileSizeError;return _.lj(K)};
_.z.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.LZ(this.images));this.selectedImageIndex=0};
_.z.repositionImage=function(K){this.images[this.selectedImageIndex].previewCoordinates=K.event_.detail;this.images=[].concat(_.LZ(this.images))};
_.z.getAllUploadStatuses=function(){var K=this,X,F,P,H;return _.q(function(f){if(f.nextAddress==1)return _.Y(f,K.uploadManager.getAllUploadStatuses(),2);X=f.yieldResult;F=_.D(X);for(P=F.next();!P.done;P=F.next())if(H=P.value,H.encryptedBlobId===void 0)return f.return(VxE(K.uploadManager));return f.return(X)})};
_.z.hasImages=function(){return this.images.length>0};
_.z.cancel=function(){for(var K=this.uploadManager,X=_.D(K.imagesUploadData),F=X.next();!F.done;F=X.next())K.cancel(F.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.iX(this.hostElement,"yt-backstage-multi-image-cancel")};
_.Oi.Object.defineProperties($Q.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.imageUploadEndpoint)==null?void 0:(X=K.imageValidationInfo)==null?void 0:X.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.imageUploadEndpoint)==null?void 0:(X=K.imageValidationInfo)==null?void 0:X.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var K,X;if((K=this.data)==null?0:(X=K.icon)==null?0:X.iconType)return _.Fl(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.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 K=this;return(this.images||[]).map(function(X,F){return{renderer:{image:X,selected:F===K.selectedImageIndex}}})}}});
$Q.prototype.setUpImagePicker=$Q.prototype.setUpImagePicker;$Q.prototype.onRendererstamperFinished=$Q.prototype.onRendererstamperFinished;$Q.prototype.observeDragToReorder=$Q.prototype.observeDragToReorder;$Q.prototype.observeAddImageError=$Q.prototype.observeAddImageError;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],$Q.prototype,"rendererStamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],$Q.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.fkZ),_.g("design:type",Object)],$Q.prototype,"ytReorderableBehavior",void 0);_.O([_.fa("#dropzone"),_.g("design:type",HTMLElement)],$Q.prototype,"dropzone",void 0);_.O([_.fa("#select-link"),_.g("design:type",HTMLElement)],$Q.prototype,"selectLink",void 0);_.O([_.fa("#thumbnail-drag-drop-area"),_.g("design:type",HTMLElement)],$Q.prototype,"thumbnailDragDropArea",void 0);_.O([_.fa("#add-image-button-container"),_.g("design:type",HTMLElement)],$Q.prototype,"addImageButtonContainer",void 0);
_.O([_.fa("#add-image-button"),_.g("design:type",HTMLElement)],$Q.prototype,"addImageSelectButton",void 0);_.O([_.fa("#image-preview-container"),_.g("design:type",Object)],$Q.prototype,"JSC$13559_imagePreviewContainer",void 0);_.O([_.h(),_.g("design:type",Object)],$Q.prototype,"addImageErrorMessage",void 0);_.O([_.h(),_.g("design:type",Object)],$Q.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],$Q.prototype,"errorMessage",void 0);
_.O([_.h(),_.g("design:type",Object)],$Q.prototype,"imageUploadEndpoint",void 0);_.O([_.h(),_.g("design:type",Array)],$Q.prototype,"images",void 0);_.O([_.h(),_.g("design:type",tx)],$Q.prototype,"initialPicker",void 0);_.O([_.h(),_.g("design:type",tx)],$Q.prototype,"addImagePicker",void 0);_.O([_.h(),_.g("design:type",Ws)],$Q.prototype,"uploadManager",void 0);_.O([_.h(),_.g("design:type",Object)],$Q.prototype,"selectedImageIndex",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],$Q.prototype,"modern",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],$Q.prototype,"maxNumImagesPerPost",void 0);_.O([_.U("imageUploadEndpoint"),_.g("design:type",Number),_.g("design:paramtypes",[])],$Q.prototype,"maxAspectRatio",null);_.O([_.U("imageUploadEndpoint"),_.g("design:type",Number),_.g("design:paramtypes",[])],$Q.prototype,"maxFileSizeMb",null);
_.O([_.U("data.icon.iconType"),_.g("design:type",Object),_.g("design:paramtypes",[])],$Q.prototype,"dropIcon",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],$Q.prototype,"selectionCancel",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],$Q.prototype,"previewCancel",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],$Q.prototype,"dataForAddImageButton",null);
_.O([_.U("errorMessage"),_.g("design:type",String),_.g("design:paramtypes",[])],$Q.prototype,"dropzoneClass",null);_.O([_.U("images"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],$Q.prototype,"showImagesPreview",null);_.O([_.U("images"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],$Q.prototype,"containMaxImages",null);_.O([_.so("addImageErrorMessage"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],$Q.prototype,"observeAddImageError",null);
_.O([_.so("showImagesPreview"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],$Q.prototype,"observeDragToReorder",null);_.O([_.U("images","selectedImageIndex"),_.g("design:type",Object),_.g("design:paramtypes",[])],$Q.prototype,"selectedImageData",null);_.O([_.U("images","selectedImageIndex"),_.g("design:type",Array),_.g("design:paramtypes",[])],$Q.prototype,"thumbnailRenderers",null);
_.O([_.Hc("yt-rendererstamper-finished"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],$Q.prototype,"onRendererstamperFinished",null);_.O([_.so("imageUploadEndpoint"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],$Q.prototype,"setUpImagePicker",null);$Q=_.O([_.v({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],$Q);
_.t($Q,"ytd-backstage-multi-image-select-renderer",function(){if(XwU!==void 0)return XwU;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return XwU=K},{mode:1});var PEW;var HeU;var slC;var OY=function(){var K=_.G.apply(this,arguments)||this;K.boundCaptureFocus=function(X){K.onCaptureFocus(X)};
return K};
_.r(OY,_.G);_.z=OY.prototype;_.z.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.z.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.z.onCaptureFocus=function(K){_.lN(K).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.z.getIconType=function(K){return K?"yt-icons:"+K.toLowerCase():null};
_.z.onSelect=function(){var K;if((K=this.data)==null?0:K.onSelectCommand)if(_.S("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var X;((X=_.T(this.data.onSelectCommand.commandMetadata,_.g_))==null?0:X.url)?_.iX(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.i9().resolve(_.xU).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.Oi.Object.defineProperties(OY.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.lj(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}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],OY.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],OY.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],OY.prototype,"data",void 0);_.O([_.fa("#item"),_.g("design:type",HTMLElement)],OY.prototype,"item",void 0);_.O([_.U("data.label"),_.g("design:type",String),_.g("design:paramtypes",[])],OY.prototype,"label",null);
_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],OY.prototype,"value",null);OY=_.O([_.v({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],OY);
_.t(OY,"ytd-privacy-dropdown-item-renderer",function(){if(slC!==void 0)return slC;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return slC=K},{mode:1});var VS=function(){var K=_.G.apply(this,arguments)||this;K.value="";K.label="";K.disabled=!1;return K};
_.r(VS,_.G);_.z=VS.prototype;_.z.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.z.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.z.dataChanged=function(){this.reset()};
_.z.valueChanged=function(){var K;if(this.value&&(K=this.data)!=null&&K.entries){K=_.D(this.data.entries);for(var X=K.next();!X.done;X=K.next())if((X=this.getRendererForEntry(X.value))&&this.getItemRendererValue(X)===this.value){this.label=this.ytComponentBehavior.getSimpleString(X.label);break}}};
_.z.setInitialLabel=function(){if(this.data&&this.data.entries)for(var K=_.D(this.data.entries),X=K.next();!X.done;X=K.next())if(X=this.getRendererForEntry(X.value)){if(X.isSelected){this.label=this.ytComponentBehavior.getSimpleString(X.label);break}this.data.label&&(this.label=this.data.label)}};
_.z.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var K=_.D(this.data.entries),X=K.next();!X.done;X=K.next()){X=this.getRendererForEntry(X.value);var F=void 0;if((F=X)==null?0:F.isSelected)return this.getItemRendererValue(X)||-1}return-1};
_.z.getItemRendererValue=function(K){return"stringValue"in K||"int32Value"in K?K.stringValue||K.int32Value||null:null};
_.z.getRendererForEntry=function(K){return K.dropdownItemRenderer||K.privacyDropdownItemRenderer||K.navigationDropdownItemRenderer||null};
_.z.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R9("value-changed",this.value))};
_.z.updateValueFromBinding=function(K){this.value=K.detail.value};
VS.prototype.valueChangedForBinding=VS.prototype.valueChangedForBinding;VS.prototype.valueChanged=VS.prototype.valueChanged;VS.prototype.dataChanged=VS.prototype.dataChanged;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],VS.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],VS.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],VS.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],VS.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],VS.prototype,"value",void 0);_.O([_.h(),_.g("design:type",Object)],VS.prototype,"label",void 0);_.O([_.fa("#entries"),_.g("design:type",Object)],VS.prototype,"entries",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],VS.prototype,"disabled",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],VS.prototype,"dataChanged",null);
_.O([_.JA("value"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],VS.prototype,"valueChanged",null);_.O([_.so("value"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],VS.prototype,"valueChangedForBinding",null);VS=_.O([_.v({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],VS);
_.t(VS,"ytd-flat-dropdown-renderer",function(){if(HeU!==void 0)return HeU;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return HeU=K},{mode:1});var zYt;var gu=function(){var K=_.G.apply(this,arguments)||this;K.quizOptions=[];K.explanationPlaceholderText="";K.optionPlaceholderText="";K.correctAnswerIndex=-1;K.isMarkAnswerTooltipShown=!1;K.timer=0;return K};
_.r(gu,_.G);_.z=gu.prototype;_.z.dataChanged=function(){this.optionPlaceholderText=_.lj(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.lj(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.z.onMarkCorrectAnswer=function(K){var X,F=((X=this.quizOptions[this.correctAnswerIndex])==null?void 0:X.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[K.model.index]=Object.assign({},this.quizOptions[K.model.index],{explanationText:F,isCorrect:!0});this.correctAnswerIndex=K.model.index;this.quizOptions=[].concat(_.LZ(this.quizOptions))};
_.z.updatePlaceholderTexts=function(){for(var K=!1,X=[],F=0;F<this.quizOptions.length;F++){var P=this.optionPlaceholderText+" "+(F+1),H=void 0;((H=this.quizOptions[F])==null?void 0:H.placeholderText)!==P?(K=!0,X.push(Object.assign({},this.quizOptions[F],{placeholderText:P}))):X.push(this.quizOptions[F])}K&&(this.quizOptions=X);this.isValid()?_.iX(this.hostElement,"yt-commentbox-post-enable"):_.iX(this.hostElement,"yt-commentbox-post-disable")};
_.z.getSimpleString=function(K){return _.lj(K)};
_.z.createQuizOptions=function(K){var X=[],F;K=(F=K==null?void 0:K.minQuizOptions)!=null?F:0;for(F=0;F<K;F++)X.push(this.createQuizOption());return X};
_.z.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.LZ(this.quizOptions),[this.createQuizOption()]))};
_.z.onInput=function(){this.quizOptions=[].concat(_.LZ(this.quizOptions))};
_.z.onExplanationInput=function(){_.iX(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.z.onRemoveQuizOption=function(K){this.quizOptions.splice(K.model.index,1);K.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:K.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.LZ(this.quizOptions));this.quizOptions.length===0&&_.iX(this.hostElement,"yt-quiz-attachment-dismiss")};
_.z.updateHintRenderer=function(){var K=this;clearTimeout(this.timer);this.timer=setTimeout(function(){K.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.z.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var K=0,X=0,F=_.D(this.quizOptions),P=F.next();!P.done;P=F.next()){P=P.value;var H=void 0;if(((H=P.optionText)==null?void 0:H.trim())!==""||P.isCorrect){P.isCorrect&&X++;H=void 0;if(this.hasCustomOptionText&&((H=P.optionText)==null?void 0:H.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;K++}}return K>=
Number(this.editorInfo.minQuizOptions)&&X===1};
_.z.getPostCreateOptions=function(){for(var K=[],X=_.D(this.quizOptions),F=X.next();!F.done;F=X.next()){F=F.value;var P=void 0;((P=F.optionText)==null?void 0:P.trim())!==""&&K.push({pollOption:{text:F.optionText,explanation:F.explanationText},isCorrect:F.isCorrect})}return K};
_.z.getExplanationText=function(){var K;return((K=this.quizOptions[this.correctAnswerIndex])==null?void 0:K.explanationText)||""};
_.z.maybeDisplayMarkAnswerEduToolTip=function(){var K,X,F,P,H,f,u;this.shouldShowMarkAnswerTooltip()&&((K=this.editorInfo)==null?0:(X=K.markAnswerButton)==null?0:(F=X.buttonRenderer)==null?0:(P=F.hint)==null?0:(H=P.hintRenderer)==null?0:(f=H.content)==null?0:(u=f.bubbleHintRenderer)==null?0:u.text)&&(_.VZ.getInstance(),K=gz(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,(K==null?void 0:K.length)>0&&this.optionSelectors&&_.sP(K[0],this.optionSelectors[0]))};
_.z.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var K=0,X=_.D(this.quizOptions),F=X.next();!F.done;F=X.next()){F=F.value;var P=void 0;((P=F.optionText)==null?void 0:P.trim())!==""&&K++;if(F.isCorrect)return!1}return K<2?!1:!0};
_.z.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.z.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.z.updateOptionTextFromBinding=function(K){if(K.target){var X=Array.from(_.C$(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(K.target);if(X>=0){var F;this.quizOptions[X].optionText=(F=K.detail.value)!=null?F:""}}};
_.Oi.Object.defineProperties(gu.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var K,X,F=(K=this.editorInfo)==null?void 0:(X=K.addOptionButton)==null?void 0:X.buttonRenderer;F&&(F.style="STYLE_SUGGESTIVE",F.size="SIZE_SMALL",F.isDisabled=!this.isAllowedToAddOption);return(F==null?0:F.text)?F:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var K,X;return this.quizOptions.length<((X=(K=this.editorInfo)==null?void 0:K.maxQuizOptions)!=null?X:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(K){var X;return(X=K.optionText)==null?void 0:X.trim()})}}});
gu.prototype.updatePlaceholderTexts=gu.prototype.updatePlaceholderTexts;gu.prototype.dataChanged=gu.prototype.dataChanged;_.O([_.h(),_.g("design:type",Object)],gu.prototype,"editorInfo",void 0);_.O([_.h(),_.g("design:type",Array)],gu.prototype,"quizOptions",void 0);_.O([_.h(),_.g("design:type",Object)],gu.prototype,"explanationPlaceholderText",void 0);_.O([_.DA(".option-selector-button"),_.g("design:type",Array)],gu.prototype,"optionSelectors",void 0);
_.O([_.JA("editorInfo"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],gu.prototype,"dataChanged",null);_.O([_.U("editorInfo","isAllowedToAddOption","quizOptions"),_.g("design:type",Object),_.g("design:paramtypes",[])],gu.prototype,"addAnswerButton",null);_.O([_.U("editorInfo","quizOptions"),_.g("design:type",Object),_.g("design:paramtypes",[])],gu.prototype,"isAllowedToAddOption",null);
_.O([_.JA("quizOptions"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],gu.prototype,"updatePlaceholderTexts",null);_.O([_.U("quizOptions"),_.g("design:type",Object),_.g("design:paramtypes",[])],gu.prototype,"hasCustomOptionText",null);gu=_.O([_.v({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],gu);
_.t(gu,"ytd-backstage-quiz-editor-renderer",function(){if(zYt!==void 0)return zYt;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return zYt=K},{mode:2});var ftN;var DpE=(My.FIRSTDAYOFWEEK+1)%7;var ubt;var qkL=[],JJQ=0,ZeZ=0;JJQ=0;ZeZ=24;if(.25*(ZeZ-JJQ)<0)ubt=[];else{for(var Ykt=JJQ;Ykt<ZeZ;Ykt+=.25)qkL.push(Ykt);ubt=qkL}var QlZ=ubt.map(function(K){K=K*60*60;return{secondsSinceMidnight:K,text:(new h7(7)).format(new Date(0,0,0,0,0,K))}});var MrV;var EY=function(){var K=_.G.apply(this,arguments)||this;K.skipNextOpenDialog=!1;K.errorMessage="";return K};
_.r(EY,_.G);_.z=EY.prototype;_.z.attached=function(){var K=this,X=new MutationObserver(function(){K.JSC$13602_calendarMain.scrollHeight>0&&(X.disconnect(),K.calendarConfig&&K.calendarConfig.selectedDate&&K.scrollToDate())});
X.observe(this.JSC$13602_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){X.disconnect()},1E3)};
_.z.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.z.onDateTextChange=function(){if(this.calendarConfig){var K=this.validateDateText();K.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(K.details)):this.textbox.setAttribute("invalid","")}};
_.z.handleDayClick=function(K){K.model.day.date&&(this.commitDate(K.model.day.date),this.dialog.close())};
_.z.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var K=GWn(this.calendarConfig.selectedDate,this.renderData);K!==void 0&&this.JSC$13602_calendarMain.scrollToIndex(K)}};
_.z.scrollToNextMonth=function(){this.JSC$13602_calendarMain.scrollToIndex(this.JSC$13602_calendarMain.firstVisibleIndex+1)};
_.z.scrollToPrevMonth=function(){this.JSC$13602_calendarMain.firstVisibleIndex===0&&this.JSC$13602_calendarMain.scrollTo(0,0);this.JSC$13602_calendarMain.scrollToIndex(this.JSC$13602_calendarMain.firstVisibleIndex-1)};
_.z.onFormSubmit=function(K){K.preventDefault();this.calendarConfig&&(K=this.validateDateText(),K.isValid&&(this.commitDate(K.details),this.dialog.close()))};
_.z.onEscOrClickingOutside=function(K){K=K.detail.path&&!!K.detail.path.length&&K.detail.path[0];if(K.classList.contains("ytd-calendar-date-picker")){K===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var X=0;X<this.dropdownButton.children.length;X++)this.dropdownButton.children[X]===K&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}K=this.textbox.value!==this.dateText;X=this.validateDateText();K&&X.isValid&&this.commitDate(X.details);this.dialog.close();this.textbox.value=
this.dateText};
_.z.commitDate=function(K){this.calendarConfig&&(this.set("calendarConfig.selectedDate",K),_.iX(this.hostElement,"ytd-calendar-date-selected",K))};
_.z.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var K=this.textbox.value;var X=new Date;K=(new FVP(2)).parse(K,X,{validate:!0})===K.length?h$4(X):void 0;if(!K)return this.errorMessage=_.uY("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};X=this.calendarConfig.start;var F=this.calendarConfig.end;if(WRT(K,X))return this.errorMessage=_.uY("ENTER_DATE_OR_LATER",{allowed_date:U8y(X)}),{isValid:!1,details:void 0};if(WRT(F,K))return this.errorMessage=
_.uY("ENTER_DATE_OR_EARLIER",{allowed_date:U8y(F)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:K}};
_.Oi.Object.defineProperties(EY.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?U8y(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var K=this.calendarConfig,X=[],F=0;F<7;F++)X.push(My.NARROWWEEKDAYS[(F+DpE)%7]);F=[];for(var P=new Date(K.start.year,K.start.month);P.getFullYear()<K.end.year||P.getFullYear()===K.end.year&&P.getMonth()<=K.end.month;){var H=F,f=H.push,u=P.getFullYear(),J=P.getMonth(),Z=K,M=void 0,n=[],c=Object.freeze({extraCssClass:"invisible",debugClass:""}),B=new Date(u,J),L=h$4(B);B=B.getDay();for(var A=h$4(new Date);L.month===
J;){B!==DpE&&M||(M=Array.from({length:7}).fill(c),n.push(M));var d={date:{year:u,month:J,day:L.day},extraCssClass:"",debugClass:""};Z.selectedDate&&d.date&&yXy(d.date,Z.selectedDate)&&(d.extraCssClass+=" selected");if(WRT(L,Z.start)||WRT(Z.end,L))d.extraCssClass+=" disabled";yXy(L,A)&&(d.extraCssClass+=" today");d.extraCssClass=d.extraCssClass.trim();M[(B-DpE+7)%7]=d;L=e$T(L);B=(B+1)%7}f.call(H,{weeks:n,monthLabel:My.SHORTMONTHS[J]+" "+u,year:u,month:J,monthLabelExtraCssClass:n[0][2]===c?"shift-down-label":
""});P.setMonth(P.getMonth()+1)}return{months:F,daysOfWeekLabel:X}}}}});
EY.prototype.onEscOrClickingOutside=EY.prototype.onEscOrClickingOutside;EY.prototype.scrollToDate=EY.prototype.scrollToDate;_.O([_.h(),_.g("design:type",Object)],EY.prototype,"calendarConfig",void 0);_.O([_.h(),_.g("design:type",Object)],EY.prototype,"skipNextOpenDialog",void 0);_.O([_.h(),_.g("design:type",Object)],EY.prototype,"errorMessage",void 0);_.O([_.fa("#textbox"),_.g("design:type",HTMLInputElement)],EY.prototype,"textbox",void 0);
_.O([_.fa("#calendar-dialog"),_.g("design:type",Object)],EY.prototype,"dialog",void 0);_.O([_.fa("#calendar-main"),_.g("design:type",Object)],EY.prototype,"JSC$13602_calendarMain",void 0);_.O([_.fa("#date-picker"),_.g("design:type",HTMLElement)],EY.prototype,"dropdownButton",void 0);_.O([_.U("calendarConfig.selectedDate"),_.g("design:type",String),_.g("design:paramtypes",[])],EY.prototype,"dateText",null);
_.O([_.U("calendarConfig","calendarConfig.selectedDate"),_.g("design:type",Object),_.g("design:paramtypes",[])],EY.prototype,"renderData",null);_.O([_.so("renderData","calendarConfig.selectedDate"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],EY.prototype,"scrollToDate",null);_.O([_.Hc("iron-overlay-canceled"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],EY.prototype,"onEscOrClickingOutside",null);
EY=_.O([_.Tb({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],EY);
_.t(EY,"ytd-calendar-date-picker",function(){if(MrV!==void 0)return MrV;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return MrV=K},{mode:2});var nKV=_.uY("UTC_OFFSET_FORMAT",{utc_offset:(new h7("Z")).format(new Date)}),cJN=(new Date).getTimezoneOffset()*-60,pwC=new Date,BaV,SkW=Uz(pwC.getTimezoneOffset());BaV=Umu(mmU(SkW,pwC));var oKV=_.uY("LOCAL_TIME_GMT_LABEL",{gmt_text:BaV.replace("+0","+").replace("-0","-").replace(":00","")}),b8=function(){var K=_.G.apply(this,arguments)||this;K.selectedTimeIndex=0;K.selectedTimezoneIndex=0;K.timeOfDayOptions=QlZ;return K};
_.r(b8,_.G);_.z=b8.prototype;_.z.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var K=R$3();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=K,this.selectedTimeIndex=0;else{var X=m8O(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},K,{selectedDate:X.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(F){return F.secondsSinceMidnight===X.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.z.onDatePicked=function(K){this.selectedDate=K.detail};
_.z.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.iX(this.hostElement,"ytd-date-time-selection-cancelled")};
_.z.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var K=this.selectedDate;K=new Date(K.year,K.month,K.day);_.iX(this.hostElement,"ytd-date-time-selection-update",Math.floor(K.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+K.getTimezoneOffset()*60))}};
_.z.getTimezoneFormat=function(K){return K.localizedDisplayText?K.localizedDisplayText:_.uY("TIMEZONE_FORMAT",{utc_offset_text:""+K.localizedUtcOffset,city_name:""+K.localizedName})};
_.z.updateSelectedTimeIndexFromBinding=function(K){this.selectedTimeIndex=K.detail.value};
_.z.updateSelectedTimezoneIndexFromBinding=function(K){this.selectedTimezoneIndex=K.detail.value};
_.Oi.Object.defineProperties(b8.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var K=this.data.timezoneOptions;var X={name:"Etc/Unknown",localizedName:_.uY("LOCAL_TIME_LABEL"),localizedUtcOffset:nKV,utcOffsetSec:""+cJN,localizedDisplayText:oKV};K?K.length&&K[0].name!==X.name&&(K[0].localizedDisplayText||(X.localizedDisplayText=""),K.unshift(X)):K=[X];return K}}},
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]}}});
b8.prototype.onDateTimeTimezoneChange=b8.prototype.onDateTimeTimezoneChange;b8.prototype.onDatePicked=b8.prototype.onDatePicked;b8.prototype.updateDefaultSelectedValue=b8.prototype.updateDefaultSelectedValue;_.O([_.h(),_.g("design:type",Object)],b8.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],b8.prototype,"calendarConfig",void 0);_.O([_.h(),_.g("design:type",Object)],b8.prototype,"selectedDate",void 0);_.O([_.h(),_.g("design:type",Object)],b8.prototype,"selectedTimeIndex",void 0);
_.O([_.h(),_.g("design:type",Object)],b8.prototype,"selectedTimezoneIndex",void 0);_.O([_.fa("#time-listbox"),_.g("design:type",Object)],b8.prototype,"timeListBox",void 0);_.O([_.fa("#timezone-listbox"),_.g("design:type",Object)],b8.prototype,"timezoneListBox",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],b8.prototype,"rendererStamperBehavior",void 0);_.O([_.U("data.timezoneOptions"),_.g("design:type",Object),_.g("design:paramtypes",[])],b8.prototype,"timeZones",null);
_.O([_.JA("data","timeZones"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],b8.prototype,"updateDefaultSelectedValue",null);_.O([_.U("selectedTimezoneIndex","timeZones"),_.g("design:type",Object),_.g("design:paramtypes",[])],b8.prototype,"selectedTimezone",null);_.O([_.U("selectedTimeIndex"),_.g("design:type",Object),_.g("design:paramtypes",[])],b8.prototype,"selectedTime",null);
_.O([_.Hc("ytd-calendar-date-selected"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],b8.prototype,"onDatePicked",null);_.O([_.so("selectedTimezone","selectedTime","selectedDate"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],b8.prototype,"onDateTimeTimezoneChange",null);b8=_.O([_.v({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],b8);
_.t(b8,"ytd-date-time-picker-renderer",function(){if(ftN!==void 0)return ftN;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return ftN=K},{mode:1});var LVL;var Ci=function(){var K=_.G.apply(this,arguments)||this;K.boundOnTapDismissButton=function(){K.dismissTapHandler()};
K.dismissButtonOverrides={size:"XS"};return K};
_.r(Ci,_.G);Ci.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}}}}}};
Ci.prototype.dismissTapHandler=function(){_.iX(this.hostElement,"yt-backstage-attachment-dismissed")};
Ci.prototype.computeAttachmentType=function(K){return K?K.backstageImageRenderer?"image":K.videoRenderer?"video":"none":"none"};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Ci.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Ci.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Ci.prototype,"attachmentPreview",void 0);_.O([_.h(),_.g("design:type",Object)],Ci.prototype,"dismissButton",void 0);_.O([_.h(),_.g("design:type",Object)],Ci.prototype,"boundOnTapDismissButton",void 0);
_.O([_.h(),_.g("design:type",Object)],Ci.prototype,"dismissButtonOverrides",void 0);_.O([_.h({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.g("design:type",String)],Ci.prototype,"attachmentType",void 0);Ci=_.O([_.v({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],Ci);
_.t(Ci,"ytd-backstage-dismissable-attachment",function(){if(LVL!==void 0)return LVL;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return LVL=K},{mode:1});var Tau;var Nx=function(){var K=_.G.apply(this,arguments)||this;K.selectedVideoId=void 0;K.picker=void 0;K.dismissButtonOverrides={size:"XS"};K.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return K};
_.r(Nx,_.G);_.z=Nx.prototype;_.z.onServiceRequestCompleted=function(K){K.stopPropagation()};
_.z.handleAddVideoPreviewAction=function(K){K=this.get("addVideoPreviewAction",K);this.onGetVideoPreviewSuccess(K)};
_.z.configureRendererStamper=function(){return{videoPreview:{id:"video-preview",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}}}},cancelButton:{id:"cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}}}};
_.z.onLaunchVideoPicker=function(K){var X=this,F=_.lj(this.get("addVideoLinkAction.title",K)),P=this.get("addVideoLinkAction.onePickHostId",K);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",K);P&&(this.picker||(F=_.RjU(_.p9T(P).setTitle(F).addView(yHL()).addView(w_T()),function(H){X.onPickVideo(H)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",K)||F.addView("youtube"),this.picker=F.build()),this.picker.setVisible(!0))};
_.z.onPickVideo=function(K){if(K)if(K.action==="cancel")_.iX(this.hostElement,"yt-video-link-button-cancel");else if(K.action==="picked"){K=K.docs;if(!K||K.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(K=(K==null?0:K.length)?K[0]:void 0)?K.id:void 0;this.setVideoPreview()}};
_.z.setVideoPreview=function(){var K=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){K.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.z.onGetVideoPreviewSuccess=function(K){if(K&&K.videoPreview&&K.cancelButton)this.videoPreview=K.videoPreview,this.cancelButton=K.cancelButton,_.iX(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.z.onGetVideoPreviewError=function(){this.cancel()};
_.z.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.iX(this.hostElement,"yt-video-link-cancel")};
_.z.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
Nx.prototype.onServiceRequestCompleted=Nx.prototype.onServiceRequestCompleted;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Nx.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Nx.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Nx.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Nx.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Nx.prototype,"videoPreview",void 0);_.O([_.h(),_.g("design:type",Object)],Nx.prototype,"cancelButton",void 0);_.O([_.h(),_.g("design:type",Object)],Nx.prototype,"getVideoPreviewCommand",void 0);_.O([_.h(),_.g("design:type",Object)],Nx.prototype,"dismissButtonOverrides",void 0);
_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Nx.prototype,"onServiceRequestCompleted",null);Nx=_.O([_.v({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],Nx);
_.t(Nx,"ytd-backstage-video-link-attachment",function(){if(Tau!==void 0)return Tau;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Tau=K},{mode:1});var rJE;var AJt;var jlW;var i8=function(){return _.G.apply(this,arguments)||this};
_.r(i8,_.G);i8.prototype.dataChanged=function(){this.active=!1};
i8.prototype.onTap=function(){_.iX(this.hostElement,"yt-select-emoji-suggestion",this.data)};
i8.prototype.identity=function(K){return K};
_.Oi.Object.defineProperties(i8.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var K,X,F,P;if((K=this.data)==null?0:(X=K.image)==null?0:(F=X.thumbnails)==null?0:(P=F[0])==null?0:P.url)return K=this.data.image.thumbnails[0].url,K.startsWith("data:image/svg+xml")?ZX(K):_.ps(K)}}});
i8.prototype.dataChanged=i8.prototype.dataChanged;_.O([_.h(),_.g("design:type",Object)],i8.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],i8.prototype,"active",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],i8.prototype,"dataChanged",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],i8.prototype,"imageSrc",null);
i8=_.O([_.v({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],i8);
_.t(i8,"ytd-emoji-suggestion",function(){if(jlW!==void 0)return jlW;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return jlW=K},{mode:1});var wwt=/.*([:@#].*?)$/,xQ=function(){var K=_.G.apply(this,arguments)||this;K.suggestions=[];K.suggestionIndex=-1;K.JSC$13630_lastSuggestionRange=null;return K};
_.r(xQ,_.G);_.z=xQ.prototype;_.z.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.z.getSuggestions=function(K){var X=[],F=ZKN(this.emojiManager,K.substr(0,3));if(F)for(var P in F)if(P.toLocaleLowerCase().indexOf(K)===0){var H=F[P];if(H&&H.emojiId){H=wA(this.emojiManager,H.emojiId);var f=void 0,u=void 0,J=void 0,Z=void 0,M=((f=H)==null?0:f.isCustomEmoji)?(u=H)==null?void 0:(J=u.shortcuts)==null?void 0:J[0]:(Z=H)==null?void 0:Z.emojiId;f=void 0;X.push({suggestion:{image:(f=H)==null?void 0:f.image,alt:M,text:P}});if(X.length>=64)break}}return X?X.sort(function(n,c){return c.suggestion.text<
n.suggestion.text?-1:c.suggestion.text===n.suggestion.text?0:1}):null};
_.z.insertSuggestion=function(K){_.iX(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13630_lastSuggestionRange,text:K.alt});this.dropdown.opened=!1};
_.z.updateSuggestionsAtCaret=function(K){this.updateSuggestions(K,this.retrieveTextBeforeRange(K))};
_.z.offsetStartOfRangeBy=function(K,X){K.startOffset>=X&&K.setStart(K.startContainer,K.startOffset-X)};
_.z.updateSuggestions=function(K,X){var F=this;this.JSC$13630_lastSuggestionRange&&(this.JSC$13630_lastSuggestionRange.detach(),this.JSC$13630_lastSuggestionRange=null);if((X=wwt.exec(X))&&X.length&&(X=X[X.length-1].toLocaleLowerCase(),X.length>2||X===":_")&&(this.offsetStartOfRangeBy(K,X.length),this.JSC$13630_lastSuggestionRange=K,(K=this.getSuggestions(X))&&K.length)){this.suggestions=K;_.tg(this,function(){F.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(K.length-1);return}this.dropdown.opened=!1};
_.z.onKeyDown=function(K){if(this.dropdown.opened)switch(K.key){case "Escape":this.dropdown.opened=!1;K.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);K.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);K.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),K.preventDefault()}};
_.z.onKeyUp=function(K,X){switch(K.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(X);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(X)}};
_.z.onKeyPress=function(K){K.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),K.preventDefault())};
_.z.changeSuggestionIndex=function(K){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(K+this.suggestions.length)%this.suggestions.length,K=this.dropdownContent.children[this.suggestionIndex],K.active=!0,this.dropdownContent.scrollTop=K.offsetTop)};
_.z.retrieveTextBeforeRange=function(K){var X=K.startContainer;return X&&X.nodeType===Node.TEXT_NODE?X.textContent.substr(0,K.startOffset):""};
xQ.prototype.onKeyPress=xQ.prototype.onKeyPress;xQ.prototype.onKeyUp=xQ.prototype.onKeyUp;xQ.prototype.onKeyDown=xQ.prototype.onKeyDown;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],xQ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Array)],xQ.prototype,"suggestions",void 0);_.O([_.h(),_.g("design:type",_.A1)],xQ.prototype,"emojiManager",void 0);_.O([_.h(),_.g("design:type",Number)],xQ.prototype,"verticalSuggestionsOffset",void 0);
_.O([_.fa("#dropdown"),_.g("design:type",Object)],xQ.prototype,"dropdown",void 0);_.O([_.fa("#dropdown-content"),_.g("design:type",HTMLDivElement)],xQ.prototype,"dropdownContent",void 0);_.O([_.Hc("keydown"),_.g("design:type",Function),_.g("design:paramtypes",[KeyboardEvent]),_.g("design:returntype")],xQ.prototype,"onKeyDown",null);_.O([_.Hc("keyup"),_.g("design:type",Function),_.g("design:paramtypes",[KeyboardEvent,Range]),_.g("design:returntype")],xQ.prototype,"onKeyUp",null);
_.O([_.Hc("keypress"),_.g("design:type",Function),_.g("design:paramtypes",[KeyboardEvent]),_.g("design:returntype")],xQ.prototype,"onKeyPress",null);xQ=_.O([_.v({disableElementRegistration:!0,is:"ytd-emoji-input"})],xQ);
_.t(xQ,"ytd-emoji-input",function(){if(AJt!==void 0)return AJt;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return AJt=K},{mode:2});var yJt;var Ib=function(){var K=_.G.apply(this,arguments)||this;K.hasMaxOptions=!1;return K};
_.r(Ib,_.G);_.z=Ib.prototype;_.z.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.z.setPrefilledChoices=function(K){var X=this;this.set("pollOptions",[]);var F;for(F=0;F<Math.min(K.length,this.data.maxPollOptions);F++)this.push("pollOptions",K[F].substring(0,this.data.maxPollOptionChars));for(;F<this.data.minPollOptions;F++)this.push("pollOptions","");this.hasMaxOptions=F>=this.data.maxPollOptions;_.tg(this,function(){for(var P=X.pollOptions,H=_.C$(X.hostElement).querySelectorAll(".poll-option-input"),f=0;f<H.length;f++)H[f].value=P[f]})};
_.z.focusChanged=function(){_.XU(this.hostElement)};
_.z.onInput=function(){var K=this;_.eu(this,"onInput",function(){K.isValid()?_.iX(K.hostElement,"yt-commentbox-post-enable"):_.iX(K.hostElement,"yt-commentbox-post-disable")},300)};
_.z.setPollOptions=function(){var K=[],X,F=((X=this.data)==null?0:X.minPollOptions)?this.data.minPollOptions:0;for(X=0;X<F;X++)K.push("");return K};
_.z.addPollOption=function(){var K=this;_.iX(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.A9.addLowPriorityJob(function(){var X;(X=_.C$(K.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||X.focus()})};
_.z.onRemovePollOption=function(K){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.iX(this.hostElement,"yt-poll-attachment-dismiss")):(K=this.repeat.indexForElement(K.target.parentNode),K!==null&&(this.splice("pollOptions",K,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.iX(this.hostElement,"yt-commentbox-post-enable"))))};
_.z.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.z.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var K=0,X=this.pollOptions.length;K<X;K++)if(this.pollOptions[K].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.z.getPollOptions=function(){return this.pollOptions};
_.z.setPollOptionsFromInputs=function(){for(var K=_.C$(this.hostElement).querySelectorAll(".poll-option-input"),X=0;X<K.length;X++)this.pollOptions[X]=K[X].value.trim()};
_.z.clearPollOptions=function(){var K=_.C$(this.hostElement).querySelectorAll(".poll-option-input");K=_.D(K);for(var X=K.next();!X.done;X=K.next())X.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.z.getSimpleString=function(K){return _.lj(K)};
_.z.updateValueFromBinding=function(K){if(K.target&&this.pollOptions){var X=Array.from(_.C$(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(K.target);if(X>=0){var F;this.pollOptions[X]=(F=K.detail.value)!=null?F:"";this.notifyPath("pollOptions."+X)}}};
Ib.prototype.dataChanged=Ib.prototype.dataChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Ib.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Ib.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Array)],Ib.prototype,"pollOptions",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Ib.prototype,"hasMaxOptions",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Ib.prototype,"enableCreationBox",void 0);
_.O([_.fa("#repeat"),_.g("design:type",Bc)],Ib.prototype,"repeat",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ib.prototype,"dataChanged",null);Ib=_.O([_.v({disableElementRegistration:!0,is:"ytd-poll-attachment"})],Ib);
_.t(Ib,"ytd-poll-attachment",function(){if(yJt!==void 0)return yJt;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return yJt=K},{mode:2});var WVL;var dpO;var eYV;var RYZ;var kQ=function(){return _.G.apply(this,arguments)||this};
_.r(kQ,_.G);_.Oi.Object.defineProperties(kQ.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],kQ.prototype,"rendererBehaviors",void 0);_.O([_.h(),_.g("design:type",Object)],kQ.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],kQ.prototype,"focused",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("focused"),_.g("design:type",Object),_.g("design:paramtypes",[])],kQ.prototype,"ariaSelected",null);kQ=_.O([_.Tb({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],kQ);
_.t(kQ,"yt-user-mention-suggestion-renderer",function(){if(RYZ===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;eYV===void 0&&(eYV=document.createElement("template"));var P=eYV;F.call(X,P.content.cloneNode(!0),K.content.firstChild);RYZ=K}K=RYZ;return K},{mode:2});var UpN;var hYN;var KF=function(){var K=_.G.apply(this,arguments)||this;K.focusedSuggestionIndex=-1;return K};
_.r(KF,_.G);_.z=KF.prototype;_.z.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.z.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.z.setFocusedSuggestionIndex=function(K){!this.data||!this.data.suggestions||K<0||K>=this.data.suggestions.length||(this.focusedSuggestionIndex=K,K=this.getSuggestionId(K),this._setFocusedSuggestionId(K))};
_.z.advanceSuggestion=function(K){this.focusedSuggestionIndex===-1||K!==-1&&K!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+K),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.z.ensureSuggestionVisible=function(K){K=this.getSuggestionId(K);K=_.C$(this.hostElement).querySelector("[id="+K+"]");K!=null&&(K.offsetTop<this.hostElement.scrollTop?K.scrollIntoView(!0):K.offsetTop+K.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&K.scrollIntoView(!1))};
_.z.getSuggestionId=function(K){return"user-mention-suggestion-"+K};
_.z.onSuggestionTap=function(K){var X=_.T(K.model.item,cPE);this.ytRendererBehavior.logExplicitClick(X);_.iX(this.hostElement,"yt-user-mention-suggestion-selected",{data:X,index:K.model.index})};
_.z.onSuggestionMouseMove=function(K){K.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(K.model.index)};
_.z.isSuggestionFocused=function(K,X){return K===X};
_.z.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.z.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R9("focused-suggestion-id-changed",this.focusedSuggestionId))};
KF.prototype.focusedSuggestionIdChangedForBinding=KF.prototype.focusedSuggestionIdChangedForBinding;KF.prototype.onDomChange=KF.prototype.onDomChange;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],KF.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],KF.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],KF.prototype,"focusedSuggestionIndex",void 0);_.O([_.h({readOnly:!0}),_.g("design:type",String)],KF.prototype,"focusedSuggestionId",void 0);
_.O([_.Hc("dom-change"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],KF.prototype,"onDomChange",null);_.O([_.so("focusedSuggestionId"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],KF.prototype,"focusedSuggestionIdChangedForBinding",null);KF=_.O([_.Tb({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],KF);
_.t(KF,"yt-user-mention-suggestions-dropdown",function(){if(hYN===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;UpN===void 0&&(UpN=document.createElement("template"));var P=UpN;F.call(X,P.content.cloneNode(!0),K.content.firstChild);hYN=K}K=hYN;return K},{mode:2});var Xx=function(){var K=_.G.apply(this,arguments)||this;K.suggestionsResponse=null;K.activeMention=null;K.selectionChangeListener=K.onSelectionChange.bind(K);K.handlesEnabled=_.S("enable_handles_in_mention_suggest_posts");K.handlesInMentionSuggestionsEnabled=_.S("handles_in_mention_suggest_posts");K.zeroPrefixMentionSuggestionEnabled=_.S("enable_zero_prefix_mention_suggestion_web");K.pendingQuery=null;K.flowNonce=null;return K};
_.r(Xx,_.G);_.z=Xx.prototype;_.z.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.z.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.z.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.z.hasSuggestions=function(K){return!!(K&&K.suggestions&&K.suggestions.length>0)};
_.z.onInput=function(){var K=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var X=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),F=this.activeMention.JSC$9253_getText().slice(-1)===" ",P=this.activeMention.JSC$9253_getText().slice(-2,-1)===" ",H="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9253_getText().slice(-2,-1))>=
0;H=this.zeroPrefixMentionSuggestionEnabled&&H;if(this.activeMention.isCollapsed()||(X||P||H)&&F)this.cancelActiveMention();else{var f=this.activeMention.JSC$9253_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.eu(this,"requestSuggestions",function(){K.requestSuggestions(f)},100)}}}};
_.z.onServiceRequestSent=function(K){K.stopPropagation()};
_.z.onServiceRequestCompleted=function(K){K.stopPropagation();K=K.detail.data;K.query&&(!this.pendingQuery||this.pendingQuery!==K.query)||!this.zeroPrefixMentionSuggestionEnabled&&K.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=K,this.hasSuggestions(K)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.z.onServiceRequestError=function(K){K.stopPropagation()};
_.z.onUserMentionSuggestionSelected=function(K){this.selectSuggestion(K.detail.data,K.detail.index)};
_.z.onSelectionChange=function(){if(this.activeMention){var K=_.qy(),X=this.activeMention.JSC$9253_containsRange(K);K=K&&this.containsHelper(this.dropdown,K.getContainer());X||K||this.cancelActiveMention()}};
_.z.containsHelper=function(K,X){var F;if(((F=window.ShadyDOM)==null?void 0:F.noPatch)===!0)return K.contains(X);for(;X;){if(X===K)return!0;X=X instanceof ShadowRoot?X.host:X.parentNode}return!1};
_.z.maybeStartSuggest=function(){var K=_.qy();if(K&&K.isCollapsed()){var X=K.JSC$9253_getStartNode(),F=K.JSC$9253_getStartOffset();if(X instanceof Text&&!(F<1)){var P=X.textContent;!(P=P&&P.charAt(F-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(P)<0||(this.activeMention=_.jT(X,F-1,K.JSC$9253_getEndNode(),K.JSC$9253_getEndOffset()),this.flowNonce=Ly(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.z.updateActiveMention=function(){if(this.activeMention){var K=_.qy();K&&K.isCollapsed()&&(this.activeMention=_.jT(this.activeMention.JSC$9253_getStartNode(),this.activeMention.JSC$9253_getStartOffset(),K.JSC$9253_getEndNode(),K.JSC$9253_getEndOffset()))}};
_.z.requestSuggestions=function(K){if(this.activeMention){var X={suggestions_query:K};this.pendingQuery=K;_.Kl(this.hostElement,[this.suggestionsEndpoint,X])}};
_.z.cancelActiveMention=function(){this.activeMention&&this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STOPPED");this.suggestionsResponse=this.pendingQuery=this.activeMention=null;this.dropdown.clearFocusedSuggestion()};
_.z.focusPreviousSuggestion=function(K){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),K.preventDefault())};
_.z.focusNextSuggestion=function(K){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),K.preventDefault())};
_.z.selectFocusedSuggestion=function(K){if(this.hasSuggestions(this.suggestionsResponse)){var X=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.T(X,cPE)&&(this.selectSuggestion(_.T(X,cPE),this.dropdown.focusedSuggestionIndex),K.preventDefault())}};
_.z.selectSuggestion=function(K,X){if(K){var F=this.activeMention;if(F){var P=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&K.handle?_.oY(P,"\u00a0\u2068@"+K.handle+"\u2069\u00a0"):this.handlesEnabled?_.oY(P,"\u00a0"+K.displayName+"\u00a0"):_.oY(P,"\u00a0@"+K.displayName+"\u00a0");Ao(P,"/channel/"+K.channelId);P.classList.add("yt-formatted-string","yt-simple-endpoint");P.setAttribute("spellcheck","false");F.isCollapsed()||F.JSC$9253_removeContents();F.insertNode(P,!0);K=document.createTextNode(" ");
P.parentNode.insertBefore(K,P.nextSibling);window.getSelection().collapse(K,1);X={suggestionSelected:{suggestionIndex:X}};if(this.zeroPrefixMentionSuggestionEnabled){var H;X.suggestionSelected.isZeroPrefix=((H=this.suggestionsResponse)==null?void 0:H.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",X);this.cancelActiveMention();_.iX(this.hostElement,"yt-mention-inserted")}}};
_.z.getPositionTarget=function(K){return K&&K.getBrowserRangeObject()};
_.z.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.z.onFocusedSuggestionIdChanged=function(K){var X=_.LYd(this.hostElement)[0];X&&(K.detail.value?X.setAttribute("aria-activedescendant",K.detail.value):X.removeAttribute("aria-activedescendant"))};
_.z.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.z.logGELEvent=function(K,X){K={eventType:K,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};X&&(K=Object.assign(K,X));_.LL("userMentionAutoCompleteBoxEvent",K)};
Xx.prototype.onDomChange=Xx.prototype.onDomChange;Xx.prototype.onUserMentionSuggestionSelected=Xx.prototype.onUserMentionSuggestionSelected;Xx.prototype.onServiceRequestError=Xx.prototype.onServiceRequestError;Xx.prototype.onServiceRequestCompleted=Xx.prototype.onServiceRequestCompleted;Xx.prototype.onServiceRequestSent=Xx.prototype.onServiceRequestSent;Xx.prototype.onInput=Xx.prototype.onInput;_.O([_.W(_.JP),_.g("design:type",Object)],Xx.prototype,"ironA11yKeysBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],Xx.prototype,"suggestionsEndpoint",void 0);_.O([_.h(),_.g("design:type",Object)],Xx.prototype,"suggestionsResponse",void 0);_.O([_.h(),_.g("design:type",Object)],Xx.prototype,"activeMention",void 0);_.O([_.fa("#dropdown"),_.g("design:type",Object)],Xx.prototype,"dropdown",void 0);_.O([_.fa("#iron-dropdown"),_.g("design:type",Object)],Xx.prototype,"ironDropdown",void 0);
_.O([_.Hc("input"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],Xx.prototype,"onInput",null);_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Xx.prototype,"onServiceRequestSent",null);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Xx.prototype,"onServiceRequestCompleted",null);
_.O([_.Hc("yt-service-request-error"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Xx.prototype,"onServiceRequestError",null);_.O([_.Hc("yt-user-mention-suggestion-selected"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Xx.prototype,"onUserMentionSuggestionSelected",null);
_.O([_.Hc("dom-change"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Xx.prototype,"onDomChange",null);Xx=_.O([_.Tb({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],Xx);
_.t(Xx,"yt-user-mention-autosuggest-input",function(){if(dpO===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;WVL===void 0&&(WVL=document.createElement("template"));var P=WVL;F.call(X,P.content.cloneNode(!0),K.content.firstChild);dpO=K}K=dpO;return K},{mode:2});var Fx=null;
_.pa({is:"ytd-commentbox",_template:function(){if(rJE!==void 0)return rJE;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return rJE=K},
behaviors:[_.Krn.YtHostElementBehavior,_.JP,_.NT.YtActionHandlerBehavior,_.dk.YtComponentBehavior,_.CE.YtRendererstamperBehavior,_.wat.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(K,X){return _.FF(K.entities,"aadcGuidelinesStateEntityPayload",X)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(K,X){return _.FF(K.entities,"commentboxStateEntity",X)},
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 _.yU}},
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:_.S("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.S("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",_.Pc(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(K){this.fire(K?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(K){this.set("submitButtonDisabled",void 0);this.clear();K&&this.computeIsEmojiButtonDisplayed_(K)&&(K=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&K.updateEmojiCategories()},
observePrefilledImage_:function(K,X,F){this.isValidPrefilledImage_(K,X,F)&&(this.prefilledAttachment_="image",this.prefilledImageData_=X,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(K,X){this.isValidPrefilledVideo_(K,X)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(K){K&&K.pollData&&K.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(K.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Fz();this.focus()},
detached:function(){document.removeEventListener("tap",_.Pc(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(K){K=K.detail;K=K.isCustomEmoji?K.shortcuts[0]:K.emojiId;var X=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(X,K);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var K=_.qy();if(K){K=K.getBrowserRangeObject();for(var X=K.commonAncestorContainer;X;){if(X===this.getEditableTextArea_())return K;X=X.parentNode}}K=this.getEditableTextArea_();K=_.AL(K,K.childNodes.length);K.select();return K.getBrowserRangeObject()},
insertTextWithEmojis_:function(K,X,F){(X=this.emojiManager.createDocumentFragment(X,!0,!1,F===void 0?!0:F))&&X.childNodes.length!==0&&(K.collapsed||K.deleteContents(),F=X.lastChild,K.insertNode(X),_.XWO(F).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var K=_.qy();if(K){var X=K.JSC$9253_getStartNode(),F=K.JSC$9253_getEndNode();if(lyd(X)&&lyd(F)){var P=K.JSC$9253_getStartOffset(),H;if(_.KM&&X.nodeType===Node.ELEMENT_NODE&&(H=_.YlZ(X)))_.AL(H,0).select();else{H=fj(X)?X:_.RR(X,fj);var f=fj(F)?F:_.RR(F,fj);if(H||f)if(K.isCollapsed()){if(X.nodeType===Node.TEXT_NODE){K=!0;P===X.length&&(K=!1);if(Fx==="end"||Fx==="right")K=!1;X=X.parentNode;K=[].concat(_.LZ(X.parentNode.childNodes)).indexOf(X)+(K?0:1);_.AL(X.parentNode,K).select()}}else H?
H.previousSibling&&H.previousSibling.length>0?_.jT(F,K.JSC$9253_getEndOffset(),H.previousSibling,H.previousSibling.length-1).select():(X=document.createTextNode("\u200b"),H.parentNode.insertBefore(X,H),_.jT(F,K.JSC$9253_getEndOffset(),X,0).select()):f&&(f.nextSibling&&f.nextSibling.length>0?_.jT(X,K.JSC$9253_getStartOffset(),f.nextSibling,1).select():(F=document.createTextNode("\u200b"),f.parentNode.insertBefore(F,f.nextSibling),_.jT(X,K.JSC$9253_getStartOffset(),F,F.length).select()));Fx=null}}else Fx=
null}else Fx=null},
leftKeyPressed_:function(){Fx="left"},
rightKeyPressed_:function(){Fx="right"},
endKeyPressed_:function(){Fx="end"},
maybeDeleteChip_:function(){var K=Vxn(!0);if(K){var X=_.qy(),F=X.JSC$9253_getStartNode();X=X.JSC$9253_getStartOffset();_.ST(F,X,K,K.childNodes.length).select()}},
maybeBackspaceChip_:function(){var K=Vxn(!1);if(K){var X=_.qy(),F=X.JSC$9253_getStartNode();X=X.JSC$9253_getStartOffset();_.ST(F,X,K,0).select()}},
maybeBackspaceChipWordMode_:function(K){var X=_.qy();if(X.isCollapsed()){var F=X.JSC$9253_getStartNode();X=X.JSC$9253_getStartOffset();var P=g6P(F,X,!0);P&&(_.ST(F,X,P,0).select(),document.execCommand("delete"),K.preventDefault(),K.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(K){var X=_.qy();if(X.isCollapsed()){var F=X.JSC$9253_getStartNode();X=X.JSC$9253_getStartOffset();var P=g6P(F,X,!1);P&&(_.ST(F,X,P,P.childNodes.length).select(),document.execCommand("delete"),K.preventDefault(),K.stopImmediatePropagation())}},
onTap_:function(K){if(!K.defaultPrevented&&(K.currentTarget.tagName==="YTD-COMMENTBOX"&&fj(K.target)&&K.preventDefault(),this.isEmojiPickerDisplayed)){var X=this.$$("#emojis"),F=this.$$("#emoji-button"),P=this.getEditableTextArea_();if((K=K.path?K.path:K.composedPath&&K.composedPath())&&!K.includes(X)&&!K.includes(P)&&!K.includes(F))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(K,X,F){return K==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&X!==void 0&&X.encryptedBlobId!==null&&X.sourceExternalVideoId!==null&&F!==void 0&&F.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(K,X){return K==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!X&&!!X.videoRenderer&&!!X.videoRenderer.videoId},
isValidPrefilledAttachment_:function(K,X,F){return this.isValidPrefilledImage_(K,X,F)||this.isValidPrefilledVideo_(K,F)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.S("enable_multi_image_post_creation")){var K=this.$$("ytd-backstage-multi-image-select-renderer");K&&K.hasImages()&&K.cancel()}else(K=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&K.cancel();(K=this.$["poll-attachment"])&&this.hasPoll_&&K.clearPollOptions();(K=this.$["image-poll-attachment"])&&this.hasImagePoll_&&K.resetPollOptions();(K=this.$["quiz-attachment"])&&this.hasQuiz_&&K.resetQuizOptions();
(K=this.$["video-link-attachment"])&&this.hasVideo_&&K.cancel();(K=this.$["access-restrictions-selector"].firstElementChild)&&K.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 _.C$(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.C$(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(K,X){K=ayy(K,this.emojiManager,X).cloneNode(!0);for(X=K.firstChild;X;)if(X.nodeType!==1)X=X.nextSibling;else switch(X.tagName){case "BR":var F=_.M_();_.odN(F,X);X=F.nextSibling;break;case "DIV":(F=X.lastChild)&&X.nextSibling&&_.Bz(_.M_(),F);X.previousSibling&&(X.previousSibling.nodeType===1||X.previousSibling.nodeType===3&&!X.previousSibling.textContent.endsWith("\n"))&&_.pb(_.M_(),X);F&&F.nodeName==="BR"&&_.c_(F);F=X;X.hasChildNodes()?(X=X.firstChild,
_.L4N(F)):(X=X.nextSibling,_.c_(F));break;default:X=X.nextSibling}return E6M(K)},
onAddImageError_:function(K){K.stopPropagation();this.errorMessage_=_.GS(K.detail)},
setTextAreaValue_:function(K){K||(K="");var X=this.getEditableFormattedString_();X.text="";this.getEditableTextArea_().innerText="";typeof K==="string"&&(K={runs:[{text:K}]});X.text=K},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Fx=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var K=this.getEditableTextArea_();K&&(_.AL(K,K.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.e8("HTML_DIR")==="rtl"){var K=this.getEditableTextArea_(),X=this.getTextAreaValue()!==""?"auto":"rtl";K.setAttribute("dir",X)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var K;return ZuO((K=this.$["quiz-attachment"])==null?void 0:K.getExplanationText())||ZuO(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var K=null;if(this.isEmojiButtonDisplayed){var X=this.getInputRange_();X&&(K=this.emojiInput.retrieveTextBeforeRange(X))}this.insertText_(K,!0);this.updateCharCount_();this.setSubmitButton_();K=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=K.scrollHeight>K.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var K=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:K})},
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(K){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(K)},
onPasteEmoji_:function(K){K.preventDefault();K.stopImmediatePropagation();K=K.clipboardData.getData("text/plain");this.insertText_(K,!1,!1)},
insertText_:function(K,X,F){X=X===void 0?!1:X;F=F===void 0?!0:F;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&K){var P=this.getInputRange_().cloneRange();this.emojiManager&&P&&(X&&this.emojiInput.offsetStartOfRangeBy(P,K.length),this.insertTextWithEmojis_(P,K,F),v64(this.getEditableTextArea_().lastChild)||(P=this.getInputRange_().cloneRange()),P&&(this.emojiInput.updateSuggestions(P,K),this.updateSuggestionOffset_(P)))}},
setSubmitButton_:function(){if(this.data){var K=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",X=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(K||X){var F=this.getTextAreaValue().trim();X=F===this.previousText_;F=!F||this.aboveCharLimit_;K&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(F=this.aboveCharLimit_);this.submitButtonDisabled=
X||F||!this.getTextLength();K&&_.S("enable_post_scheduling")&&(this.submitButtonDisabled=X&&!this.scheduledPublishTimeSec_||F)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.lj,computeCreationBoxClass_:function(K){return K?"focused":"not-focused"},
computeFooterMessageClass_:function(K,X){return X?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(K,X){return X?X:K},
computeFooterMessageHidden_:function(K,X){return!X&&!K},
computePlaceholderText_:function(K,X,F){return(F==="video"||F==="image")&&(K==null?0:K.prefilledPlaceholderText)?K==null?void 0:K.prefilledPlaceholderText:X==="poll"||X==="image-poll"?K==null?void 0:K.pollPostPlaceholderText:X==="quiz"?K==null?void 0:K.quizPostPlaceholderText:X==="image"?K==null?void 0:K.imagePostPlaceholderText:K==null?void 0:K.placeholderText},
computeHideAttachmentButtons_:function(K,X,F,P){return K===void 0?!1:P&&this.getSimpleString(P)===this.getSimpleString(K.rateLimitErrorMessage)?!0:X!=="none"||F!=="none"||!K.videoLinkButton&&!K.pollButton&&!K.imagePollButton&&!K.quizButton&&!K.imageButton},
computeHideDismissableAttachment_:function(K){return K!=="image"&&K!=="video"},
computeHasVideo_:function(K){return K==="video"},
computeHasImage_:function(K){return K==="image"},
computeHasPoll_:function(K){return K==="poll"},
computeHasImagePoll_:function(K){return K==="image-poll"},
computeHasQuiz_:function(K){return K==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(K){return K&&K.backstageAttachment?K.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!K.backstageAttachment.quizRenderer&&!K.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(K){if(this.isValidPrefilledAttachment_(K.purpose,K.prefilledImageData,K.backstageAttachment))return K.backstageAttachment},
computeEditAttachment_:function(K){if(this.computePrefilledContent_(K)===void 0)return K.backstageAttachment},
computeAuthorThumbnailDimension_:function(K,X){return K&&!X?24:40},
computeImageUploadEndpoint_:function(K){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",K)},
computeRateLimitErrorCommands_:function(K){var X,F;return K==null?void 0:(X=K.advancedTierFeatures)==null?void 0:(F=X.rateLimit)==null?void 0:F.rateLimitCommands},
computeIsBackstageComment_:function(K){return!(!K||K!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(K){return this.get("submitButton.buttonRenderer.serviceEndpoint",K)||this.get("replyButton.buttonRenderer.serviceEndpoint",K)||this.get("postButton.buttonRenderer.serviceEndpoint",K)},
computeSubmitButtonOverride:function(){if(_.S("web_modern_buttons")){var K,X;return{segmentedPosition:this.dropdownSchedulePanel_||!((K=this.data)==null?0:(X=K.postOptionsMenu)==null?0:X.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.S("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(K,X){K=this.get("submitButton.buttonRenderer",K)||this.get("replyButton.buttonRenderer",K)||this.get("postButton.buttonRenderer",K);X&&(K=X);K&&(K=Object.assign({},K),K.serviceEndpoint=void 0,K.isDisabled=this.submitButtonDisabled);return K},
computeHasExternalLinksAccess_:function(K){if(_.S("enable_rfa_external_links")){var X,F,P;return(P=K==null?void 0:(X=K.advancedTierFeatures)==null?void 0:(F=X.externalLinks)==null?void 0:F.allowExternalLinks)!=null?P:!0}return!0},
computeIsEmojiButtonDisplayed_:function(K){return K.emojiButton&&K.emojiPicker&&K.emojiPicker.emojiPickerRenderer&&K.emojiPicker.emojiPickerRenderer.categories?K.emojiPicker.emojiPickerRenderer.categories.find(function(X){return X.emojiPickerCategoryRenderer?X.emojiPickerCategoryRenderer.emojiIds&&X.emojiPickerCategoryRenderer.emojiIds.length>0:X.emojiPickerUpsellCategoryRenderer?X.emojiPickerUpsellCategoryRenderer.emojis&&X.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(K){return K.charLimit?K.charLimit:null},
computeDropdownSchedulingPanel_:function(K,X){if(K==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&X)return X},
computeInlineSchedulingPanel_:function(K,X){if(K==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&X)return X},
computeHideAuthorThumbnail_:function(K,X){return K||this.computeUseIdentityChip_(X)},
computeHideIdentityChipRenderer_:function(K,X){return K||!this.computeUseIdentityChip_(X)},
computeUseIdentityChip_:function(K){return!!K&&!!K.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(K){var X,F,P,H;(K==null?0:(X=K.detail)==null?0:(F=X.endpoint)==null?0:F.ypcGetOffersEndpoint)||(K==null?0:(P=K.detail)==null?0:(H=P.endpoint)==null?0:H.ypcOffersEndpoint)?(K.stopPropagation(),_.Kl(this,[K.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",K)&&(K.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(K){this.addedAttachment="video";this.selectedVideoId_=K.detail.videoId},
commentboxStateEntityChanged_:function(K){var X=this;(K==null?void 0:K.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(K==null?void 0:K.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){X.focus()})},
onYtServiceRequestSent_:function(K,X){if(X.actions)for(K=_.D(X.actions),X=K.next();!X.done;X=K.next())X.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(K){this.isLoading=!1;var X=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",K),F,P,H,f=K==null?void 0:(F=K.detail)==null?void 0:(P=F.data)==null?void 0:(H=P.actionResult)==null?void 0:H.commentboxStateEntityKey;if(X)this.errorMessage_=X;else if(f){var u;this.dismissData_=K==null?void 0:(u=K.detail)==null?void 0:u.data;this.commentboxStateKey_=f}else{this.clear();var J;this.fire("yt-commentbox-dismiss",K==null?void 0:(J=K.detail)==
null?void 0:J.data)}},
onYtServiceRequestError_:function(K){K.stopPropagation();this.isLoading=!1;var X,F;if(((X=this.data)==null?void 0:X.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((F=this.data)==null?void 0:F.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(X=this.get("detail.error.args",K)||[],X.length>1&&X[1].message){this.handlePostsServiceRequestError_(X[1].message);return}(K=this.get("detail.error.message",K))?this.errorMessage_=this.data.errorMessage||_.GS(K):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(K){if(_.S("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var X=_.D(this.rateLimitErrorCommands),F=X.next();!F.done;F=X.next())if(F=F.value,F.errorLabel===K){_.sP(F.command,this.hostElement);return}this.errorMessage_=_.GS(K)},
submitIfNotBackstagePost_:function(K){if(!this.isBackstagePost)this.onSubmit_(K)},
onSubmit_:function(K){var X=this,F,P,H,f,u,J,Z,M,n,c,B,L,A,d,R;return _.q(function(l){switch(l.nextAddress){case 1:K.stopPropagation();if(!X.serviceEndpoint||!X.isValidInput_())return l.return();if(X.shouldShowPostAadcNotice_())return X.showPostAadcNotice_(),l.return();if(X.shouldShowCommentAadcNotice_())return X.showCommentAadcNotice_(),l.return();if(!(X.$$("ytd-backstage-multi-image-select-renderer")&&X.hasImage_&&_.S("enable_multi_image_post_creation"))){l.jumpTo(2);break}F=X.$$("ytd-backstage-multi-image-select-renderer");
return _.Y(l,F.getAllUploadStatuses(),3);case 3:P=l.yieldResult;if(!P)return l.return();H=_.D(P);for(f=H.next();!f.done;f=H.next())if(u=f.value,u.encryptedBlobId===void 0)return X.isLoading=!1,Z=J=void 0,X.errorMessage_=(Z=(J=X.imageUploadEndpoint_)==null?void 0:J.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?Z:null,l.return();return l.return(X.submitForm_(void 0,void 0,void 0,void 0,F.images,X.taggedVideoId_));case 2:if(!X.hasImagePoll_||!X.$["image-poll-attachment"]){l.jumpTo(4);
break}return _.Y(l,X.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:M=l.yieldResult;if(!M)return l.return();n=_.D(M);for(c=n.next();!c.done;c=n.next())if(B=c.value,!B.encryptedBlobId)return X.isLoading=!1,L=void 0,X.errorMessage_=(L=X.data.errorMessage)!=null?L:null,l.return();case 4:d=(A=X.$$("ytd-backstage-image-select-renderer"))&&A.uploadPromise(),R=X.getSharedPostId_(),d?d.then(function(){X.submitForm_.apply(X,_.LZ(_.Ls.apply(0,arguments)))}).catch(function(a){X.isLoading=!1;
X.errorMessage_=_.GS(a.message)}):X.selectedVideoId_?X.submitForm_(void 0,X.selectedVideoId_):X.prefilledAttachment_==="image"?X.submitForm_(X.prefilledImageData_.encryptedBlobId,void 0,void 0,X.prefilledImageData_.sourceExternalVideoId,void 0,X.taggedVideoId_):X.prefilledAttachment_==="video"?X.submitForm_(void 0,X.data.backstageAttachment.videoRenderer.videoId):R?X.submitForm_(void 0,void 0,R):X.taggedVideoId_!==void 0?X.submitForm_(void 0,void 0,void 0,void 0,void 0,X.taggedVideoId_):X.submitForm_(),
_.JT(l)}})},
openSchedulingPanel:function(K){K&&K.scheduleButton&&K.scheduleButton.buttonRenderer&&(this.scheduleButton_=K.scheduleButton.buttonRenderer);K&&K.dateTimePicker&&this.set("data.schedulingDateTimePicker",K.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(K){K.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(K){K.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(K){K.stopPropagation();K.detail.alertMessage&&(this.alertMessage_=K.detail.alertMessage)},
onImageSelected_:function(K){K.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(K){K.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(K){K.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(K.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(K){K.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(K){var X=this.$["video-link-attachment"];X&&X.onLaunchVideoPicker(K)},
onAttachmentDismiss_:function(K){K.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"&&_.S("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.S("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 K;if(this.addedAttachment==="image-poll"&&((K=this.$["image-poll-attachment"])==null||!K.isValid()))return!1;var X;if(this.addedAttachment==="quiz"&&((X=this.$["quiz-attachment"])==null||!X.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;K=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(K=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")K=!0;return K||!!this.getTextAreaValue().trim()},
submitForm_:function(K,X,F,P,H,f){var u=this.getTextAreaValue().trim(),J={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&u===this.previousText_&&(u=void 0);u!==void 0&&(J.comment_text=u);this.isLoading=!0;f!=void 0&&(J.tagged_video_id=f);K?(J.image_blob_id=K,this.imagePreviewCoordinates_&&(J.image_preview_coordinates=this.imagePreviewCoordinates_)):X?J.attached_video_id=X:F?J.shared_post_id=F:H&&H.length>0&&(J.images_data=H.map(function(Z){return{encryptedBlobId:Z.encryptedBlobId,
previewCoordinates:Z.previewCoordinates}}));
P&&(J.source_video_id=P);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(J.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(J.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(J.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.S("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(J.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.S("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(J.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.Kl(this,[this.serviceEndpoint,J])},
onIsInputFocusChanged_:function(K,X){K?this.fire("yt-autonav-pause-focus"):X!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(K){var X=this.getEditableTextArea_();[].concat(_.LZ(K.dataTransfer.items)).forEach(function(F){F.kind==="string"&&F.type.match("^text/plain")&&F.getAsString(function(P){X.appendChild(document.createTextNode(P))})});
K.preventDefault()},
preventDefault_:function(K){K.preventDefault()},
onSuggestionInsert_:function(K){this.insertTextWithEmojis_(K.detail.range,K.detail.text)},
onEmojiSuggestionClick_:function(K){this.emojiInput.insertSuggestion(K.detail)},
computeSubmitButtonClass_:function(K,X){return!X||K?"":"with-options"},
updateSuggestionOffset_:function(K){if(this.emojiInput&&_.C$(this.emojiInput).querySelector("#dropdown")){var X=this.getEditableTextArea_().getBoundingClientRect().bottom,F=K.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(X-F)+5;X=this.getEditableTextArea_().getBoundingClientRect().left;K=K.getBoundingClientRect().left-X;_.C$(this.emojiInput).querySelector("#dropdown").style.marginLeft=K+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(K){if(_.S("enable_post_scheduling")&&this.data&&this.data.purpose){K=K.detail;if(Math.floor(Date.now()/1E3)>=K)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var X=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(X)||X!==K?this.scheduledPublishTimeSec_=K:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=K;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var K=["image-button","image-poll-button","poll-button"];_.S("enable_quiz_creation")&&K.push("quiz-button");_.S("auto_convert_posts_video_tag")||K.push("video-link-button");return K},
getButtonRenderer:function(K,X){if(K)switch(X){case "video-link-button":var F;return((F=K.videoLinkButton)==null?void 0:F.buttonRenderer)||void 0;case "image-button":var P;return((P=K.imageButton)==null?void 0:P.buttonRenderer)||void 0;case "poll-button":var H;return((H=K.pollButton)==null?void 0:H.buttonRenderer)||void 0;case "image-poll-button":var f;return((f=K.imagePollButton)==null?void 0:f.buttonRenderer)||void 0;case "quiz-button":var u;return((u=K.quizButton)==null?void 0:u.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var K;return(K=this.data)==null||!K.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var K,X;return!((K=this.data)==null||!K.openAadcDialog)&&!((X=this.aadcGuidelinesState_)==null||!X.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.e8("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var K;((K=this.data)==null?0:K.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.dG("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(K){K.clickTrackingParams&&_.uH().clickCommand(K);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.xr(this,"yt-close-popup-action")},
onHideIdentityChip:function(K){var X;this.set("data.placeholderText",(X=K.hideIdentityChipAction)==null?void 0:X.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var P8=function(){var K=_.G.apply(this,arguments)||this;K.isOpen=!1;K.modern=_.S("web_modern_buttons");K.roundedContainer=!0;K.dropdownButtonOverride=_.S("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;K.inPopupContainer=!1;K.isCommentboxLoading=!1;var X=["image-button","image-poll-button","poll-button"];_.S("enable_quiz_creation")&&X.push("quiz-button");_.S("auto_convert_posts_video_tag")||X.push("video-link-button");K.attachmentButtonIds=X;K.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 K};
_.r(P8,_.G);_.z=P8.prototype;_.z.computeButtonOverride=function(){var K;return((K=this.data)==null?0:K.postOptionsMenu)&&_.S("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.z.configureRendererStamper=function(){var K={"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]]"}}}}};_.S("auto_convert_posts_video_tag")||(K["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return K};
_.z.ready=function(){var K=this,X=_.C$(this.hostElement).querySelector("#placeholder-area"),F=function(P){K.onOpen(P)};
X.addEventListener("tap",F);X.addEventListener("keypress",F)};
_.z.showButtonEduTooltip=function(){var K,X,F,P,H,f,u;if(_.S("enable_quiz_creation")&&((K=this.data)==null?0:(X=K.quizButton)==null?0:(F=X.buttonRenderer)==null?0:(P=F.hint)==null?0:(H=P.hintRenderer)==null?0:(f=H.content)==null?0:(u=f.bubbleHintRenderer)==null?0:u.text)&&(_.VZ.getInstance(),K=gz(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(K==null?void 0:
K.length)>0)){this.ytComponentBehavior.resolveCommand(K[0],{form:{element:this.quizButton}});return}var J;if((J=this.data)==null?0:J.imagePollButtonTooltip)if(_.VZ.getInstance(),J=gz(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(J==null?void 0:J.length)>0){this.ytComponentBehavior.resolveCommand(J[0],{form:{element:this.imagePollButton}});return}var Z;_.S("enable_multi_image_post_creation")&&
((Z=this.data)==null?0:Z.multiImageButtonTooltip)&&(_.VZ.getInstance(),Z=gz(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(Z==null?void 0:Z.length)>0&&this.ytComponentBehavior.resolveCommand(Z[0],{form:{element:this.imageButton}}))};
_.z.onCreatePollAction=function(K){_.T(K,y4C)&&(this.JSC$13685_commentbox.addedAttachment="poll",this.openDialog())};
_.z.onAddVideoLinkAction=function(K){if(_.T(K,wjT))this.JSC$13685_commentbox.onAddVideoLink(K)};
_.z.onShowSchedulingPanelCommand=function(K){(K=_.T(K,Prt))&&this.openSchedulingPanel(K)};
_.z.onCreateImagePollCommand=function(K){_.T(K,qrZ)&&(this.JSC$13685_commentbox.openImagePollComponent(),this.openDialog())};
_.z.onCreateQuizCommand=function(K){_.T(K,JKO)&&(this.JSC$13685_commentbox.openQuizComponent(),this.openDialog())};
_.z.openSchedulingPanel=function(K){_.S("enable_post_scheduling")&&(this.openDialog(),this.JSC$13685_commentbox.openSchedulingPanel(K))};
_.z.onCreateCommentAction=function(K){this.get("createCommentAction.contents",K)&&(this.JSC$13685_commentbox.clear(),this.closeDialog())};
_.z.onOpen=function(K){K instanceof KeyboardEvent&&K.type==="keypress"&&K.keyCode!==13&&K.keyCode!==32||(this.data.prepareAccountEndpoint?_.iX(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.z.onYtCommentboxDismiss=function(){this.closeDialog()};
_.z.onYtCommentboxLoadingStart=function(K){K.stopPropagation();this.isCommentboxLoading=!0};
_.z.onYtCommentboxLoadingEnd=function(K){K.stopPropagation();this.isCommentboxLoading=!1};
_.z.onYtVideoLinkButtonCancel=function(K){K.stopPropagation();this.onOpen(K)};
_.z.onYtVideoLinkSelected=function(K){K.stopPropagation();this.onOpen(K)};
_.z.onIronSelect=function(K){K.stopPropagation();K.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=K.detail.item.value&&(this.accessRestriction?(this.accessRestriction=K.detail.item.value,this.onOpen(K)):this.accessRestriction=K.detail.item.value)};
_.z.onYtNavigate=function(K){this.get("detail.endpoint.backstageImageUploadEndpoint",K)&&(this.JSC$13685_commentbox.addedAttachment="image",this.JSC$13685_commentbox.submitButtonDisabled=!0,this.onOpen(K))};
_.z.onRequestSent=function(K){if(_.S("web_button_rework"))for(var X=_.D(K.detail),F=X.next();!F.done;F=X.next())_.T(F.value,L9u)&&(this.JSC$13685_commentbox.addedAttachment="image",this.JSC$13685_commentbox.submitButtonDisabled=!0,this.onOpen(K))};
_.z.openDialog=function(){this.JSC$13685_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13685_commentbox.focus()};
_.z.onPopupClosed=function(){_.VZ.getInstance()};
_.z.computeCreationDisabled=function(K){return!!K};
_.z.computeIsCreationDialog=function(K){return!!K&&K==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.z.computeDisabledPostButton=function(K){if(!K)return null;K.isDisabled=!0;return K};
_.z.computeIsCreationDialogWithHeader=function(K){return!this.inPopupContainer&&!!K&&!!K.authorText&&K.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.z.computeIsHeaderHidden=function(K,X){return!K||X};
_.z.computeDropdownRendererClasses=function(K){return K?["text-secondary-style"]:[]};
_.z.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var K=_.C$(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;K&&K.reset()};
P8.prototype.onPopupClosed=P8.prototype.onPopupClosed;P8.prototype.onRequestSent=P8.prototype.onRequestSent;P8.prototype.onYtNavigate=P8.prototype.onYtNavigate;P8.prototype.onIronSelect=P8.prototype.onIronSelect;P8.prototype.onYtVideoLinkSelected=P8.prototype.onYtVideoLinkSelected;P8.prototype.onYtVideoLinkButtonCancel=P8.prototype.onYtVideoLinkButtonCancel;P8.prototype.onYtCommentboxLoadingEnd=P8.prototype.onYtCommentboxLoadingEnd;P8.prototype.onYtCommentboxLoadingStart=P8.prototype.onYtCommentboxLoadingStart;
P8.prototype.onYtCommentboxDismiss=P8.prototype.onYtCommentboxDismiss;P8.prototype.showButtonEduTooltip=P8.prototype.showButtonEduTooltip;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],P8.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],P8.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],P8.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],P8.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],P8.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],P8.prototype,"isOpen",void 0);_.O([_.h({computed:"computeButtonOverride(data)"}),_.g("design:type",Object)],P8.prototype,"buttonOverride",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],P8.prototype,"modern",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],P8.prototype,"roundedContainer",void 0);_.O([_.h(),_.g("design:type",Object)],P8.prototype,"dropdownButtonOverride",void 0);_.O([_.h({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.g("design:type",Boolean)],P8.prototype,"creationDisabled",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],P8.prototype,"enableCreationBox",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.g("design:type",Boolean)],P8.prototype,"isCreationDialog",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],P8.prototype,"inPopupContainer",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.g("design:type",Boolean)],P8.prototype,"isCreationDialogWithHeader",void 0);_.O([_.h(),_.g("design:type",Object)],P8.prototype,"accessRestriction",void 0);
_.O([_.h({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.g("design:type",Array)],P8.prototype,"dropdownRendererClasses",void 0);_.O([_.h(),_.g("design:type",Object)],P8.prototype,"isCommentboxLoading",void 0);_.O([_.h(),_.g("design:type",Array)],P8.prototype,"attachmentButtonIds",void 0);_.O([_.fa("#image-button"),_.g("design:type",HTMLElement)],P8.prototype,"imageButton",void 0);
_.O([_.fa("#image-poll-button"),_.g("design:type",HTMLElement)],P8.prototype,"imagePollButton",void 0);_.O([_.fa("#quiz-button"),_.g("design:type",HTMLElement)],P8.prototype,"quizButton",void 0);_.O([_.fa("#commentbox"),_.g("design:type",Object)],P8.prototype,"JSC$13685_commentbox",void 0);_.O([_.so("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],P8.prototype,"showButtonEduTooltip",null);
_.O([_.Hc("yt-commentbox-dismiss"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],P8.prototype,"onYtCommentboxDismiss",null);_.O([_.Hc("yt-commentbox-loading-start"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],P8.prototype,"onYtCommentboxLoadingStart",null);
_.O([_.Hc("yt-commentbox-loading-end"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],P8.prototype,"onYtCommentboxLoadingEnd",null);_.O([_.Hc("yt-video-link-button-cancel"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],P8.prototype,"onYtVideoLinkButtonCancel",null);
_.O([_.Hc("yt-video-link-selected"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],P8.prototype,"onYtVideoLinkSelected",null);_.O([_.Hc("iron-select"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],P8.prototype,"onIronSelect",null);_.O([_.Hc("yt-navigate"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],P8.prototype,"onYtNavigate",null);
_.O([_.Hc("yt-service-request-sent-button-renderer"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],P8.prototype,"onRequestSent",null);_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],P8.prototype,"onPopupClosed",null);P8=_.O([_.v({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],P8);
_.t(P8,"ytd-backstage-post-dialog-renderer",function(){if(PEW!==void 0)return PEW;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return PEW=K},{mode:1});var mpO;var GFC;var H8=function(){return _.G.apply(this,arguments)||this};
_.r(H8,_.G);_.z=H8.prototype;_.z.computeHeartButtonStyle=function(K){return(K==null?0:K.styleType)?K.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.z.onYtButtonTap=function(){if(this.data.isEnabled){var K=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(K=this.getEndpoint(K))&&_.i9().resolve(_.xU).resolveCommand(K,{form:{element:this.hostElement}})}else(K=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(K)};
_.z.toggle=function(K){this.set("data.isHearted",K!==void 0?K:!this.data.isHearted)};
_.z.getEndpoint=function(K){var X,F=(X=this.data)==null?void 0:X.heartEndpoint,P;X=(P=this.data)==null?void 0:P.unheartEndpoint;if(F&&X)return K?X:F};
_.z.computeButtonAccessibility=function(K,X){var F,P,H=K==null?void 0:(F=K.heartedAccessibility)==null?void 0:(P=F.accessibilityData)==null?void 0:P.label,f,u;K=K==null?void 0:(f=K.unheartedAccessibility)==null?void 0:(u=f.accessibilityData)==null?void 0:u.label;return X?H:K};
_.Oi.Object.defineProperties(H8.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 K;return _.S("kevlar_system_icons")&&!((K=this.data)==null||!K.isHearted)}}});
H8.prototype.onYtButtonTap=H8.prototype.onYtButtonTap;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],H8.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.v9),_.g("design:type",Object)],H8.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],H8.prototype,"data",void 0);_.O([_.U("data.isHearted"),_.g("design:type",Object),_.g("design:paramtypes",[])],H8.prototype,"heartTooltip",null);
_.O([_.U("data.isHearted"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],H8.prototype,"iconFilled",null);_.O([_.h({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.g("design:type",String)],H8.prototype,"buttonAccessibility",void 0);_.O([_.h({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.g("design:type",String)],H8.prototype,"heartButtonStyle",void 0);
_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],H8.prototype,"onYtButtonTap",null);H8=_.O([_.v({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],H8);
_.t(H8,"ytd-creator-heart-renderer",function(){if(GFC!==void 0)return GFC;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return GFC=K},{mode:1});var s4=function(){var K=_.G.apply(this,arguments)||this;K.hasCreatorReply=!1;K.buttonOverrides={size:"S",iconPosition:"icon-only"};K.replyButtonOverrides={size:"S",type:"text"};K.forceIconButton=!_.S("web_modern_buttons");K.modern=_.S("web_modern_buttons");K.buttonTooltipPosition="bottom";K.systemIcons=_.S("kevlar_system_icons");K.replyDialog=null;return K};
_.r(s4,_.G);_.z=s4.prototype;
_.z.configureRendererStamper=function(){return{"data.creatorHeart":{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}},replyButtonBeginning:{id:"reply-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}},replyButtonEnd:{id:"reply-button-end",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{forceIconButton:!0},properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]",overrides:"[[replyButtonOverrides]]",forceIconButton:"[[forceIconButton]]"}}}},
"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]"}}}}}};
_.z.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.z.dataChange=function(){this.replyDialog&&_.C$(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var K,X,F;this.isLiked=this.systemIcons&&!!((K=this.data)==null?0:(X=K.likeButton)==null?0:(F=X.toggleButtonRenderer)==null?0:F.isToggled)};
_.z.computeShowVoteCountBeginning=function(K,X){return K===void 0||X===void 0?!0:K.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!X&&this.ytRendererBehavior.getSimpleString(X)!=="0"};
_.z.computeShowVoteCountEnd=function(K,X){return K===void 0||X===void 0?!0:K.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!X&&this.ytRendererBehavior.getSimpleString(X)!=="0"};
_.z.computeShowCommentCount=function(K,X){return K===void 0||X===void 0?!0:K.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!X&&this.ytRendererBehavior.getSimpleString(X)!=="0"};
_.z.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.z.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.z.showReplyDialog=function(K){K&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.C$(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=K,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.z.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.z.onRequestSent=function(K){if(_.S("web_button_rework")){K=_.D(K.detail);for(var X=K.next();!X.done;X=K.next())(X=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",X.value))&&this.showReplyDialog(X)}};
_.z.onYtNavigate=function(K){var X,F;(K=(X=_.T(K.detail.endpoint,_.rmT))==null?void 0:(F=X.dialog)==null?void 0:F.commentReplyDialogRenderer)&&this.showReplyDialog(K)};
_.z.onYtServiceRequestSent=function(K,X){K.stopPropagation();if(X.actions)for(K=0;K<X.actions.length;K++){var F=_.T(X.actions[K],eUU);F&&this.handleUpdateCommentVoteAction(F)}};
_.z.handleUpdateCommentVoteAction=function(K){this.voteCount=K.voteCount||_.GS("0");K.voteStatus==="LIKE"?this.JSC$13696_ytdDislikeToggleButtonRenderer.toggle(!1):K.voteStatus==="DISLIKE"?this.JSC$13696_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13696_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13696_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.z.computeReplyButtonHidden=function(K){return K};
_.z.computeReplyButtonBeginning=function(K){return(K==null?0:K.replyButton)&&K.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?K.replyButton:void 0};
_.z.computeReplyButtonEnd=function(K){return(K==null?0:K.replyButton)&&K.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?K.replyButton:void 0};
_.z.computeActionButtonStyle=function(K){return(K==null?0:K.style)?K.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.z.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.z.onYtToggleButton=function(K){var X,F;this.isLiked=this.systemIcons&&!!((X=K.detail)==null?0:(F=X.actions)==null?0:F.like)};
s4.prototype.onYtToggleButton=s4.prototype.onYtToggleButton;s4.prototype.onButtonTooltipPositionChanged=s4.prototype.onButtonTooltipPositionChanged;s4.prototype.onYtServiceRequestSent=s4.prototype.onYtServiceRequestSent;s4.prototype.onYtNavigate=s4.prototype.onYtNavigate;s4.prototype.onRequestSent=s4.prototype.onRequestSent;s4.prototype.onYtCommentboxDismiss=s4.prototype.onYtCommentboxDismiss;s4.prototype.dataChange=s4.prototype.dataChange;
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],s4.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],s4.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],s4.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],s4.prototype,"voteCount",void 0);_.O([_.h(),_.g("design:type",Object)],s4.prototype,"commentCount",void 0);_.O([_.h(),_.g("design:type",Object)],s4.prototype,"replyThumbnail",void 0);
_.O([_.h(),_.g("design:type",Object)],s4.prototype,"hasCreatorReply",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],s4.prototype,"enableCreationBox",void 0);_.O([_.h({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.g("design:type",String)],s4.prototype,"actionButtonsStyle",void 0);_.O([_.h({computed:"computeReplyButtonBeginning(data)"}),_.g("design:type",Object)],s4.prototype,"replyButtonBeginning",void 0);
_.O([_.h({computed:"computeReplyButtonEnd(data)"}),_.g("design:type",Object)],s4.prototype,"replyButtonEnd",void 0);_.O([_.h(),_.g("design:type",Object)],s4.prototype,"buttonOverrides",void 0);_.O([_.h(),_.g("design:type",Object)],s4.prototype,"replyButtonOverrides",void 0);_.O([_.h(),_.g("design:type",Object)],s4.prototype,"forceIconButton",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],s4.prototype,"useCommentIcon",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],s4.prototype,"modern",void 0);_.O([_.h(),_.g("design:type",Object)],s4.prototype,"buttonTooltipPosition",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],s4.prototype,"systemIcons",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],s4.prototype,"isLiked",void 0);_.O([_.fa("ytd-button-renderer"),_.g("design:type",Object)],s4.prototype,"ytdReplyButtonRenderer",void 0);
_.O([_.fa("#like-button"),_.g("design:type",Object)],s4.prototype,"JSC$13696_ytdLikeToggleButtonRenderer",void 0);_.O([_.fa("#dislike-button"),_.g("design:type",Object)],s4.prototype,"JSC$13696_ytdDislikeToggleButtonRenderer",void 0);_.O([_.fa("#reply-dialog"),_.g("design:type",HTMLElement)],s4.prototype,"replyDialogElement",void 0);_.O([_.fa("#reply-button"),_.g("design:type",HTMLElement)],s4.prototype,"replyButtonElement",void 0);
_.O([_.fa("#reply-button-end"),_.g("design:type",HTMLElement)],s4.prototype,"replyButtonEndElement",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],s4.prototype,"dataChange",null);_.O([_.Hc("yt-commentbox-dismiss"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],s4.prototype,"onYtCommentboxDismiss",null);
_.O([_.Hc("yt-service-request-sent-button-renderer"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],s4.prototype,"onRequestSent",null);_.O([_.Hc("yt-navigate"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],s4.prototype,"onYtNavigate",null);
_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.yk]),_.g("design:returntype")],s4.prototype,"onYtServiceRequestSent",null);_.O([_.so("buttonTooltipPosition"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],s4.prototype,"onButtonTooltipPositionChanged",null);
_.O([_.Hc("yt-toggle-button"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],s4.prototype,"onYtToggleButton",null);s4=_.O([_.v({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],s4);
_.t(s4,"ytd-comment-action-buttons-renderer",function(){if(mpO!==void 0)return mpO;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return mpO=K},{mode:1});var ltE;var zg=function(){return _.G.apply(this,arguments)||this};
_.r(zg,_.G);zg.prototype.focus=function(){_.C$(this.hostElement).querySelector("#commentbox").focus()};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],zg.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],zg.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],zg.prototype,"zeroStepChannelCreationRenderer",void 0);zg=_.O([_.v({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],zg);
_.t(zg,"ytd-comment-dialog-renderer",function(){if(ltE!==void 0)return ltE;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return ltE=K},{mode:1});var vKE;var fF=function(){var K=_.G.apply(this,arguments)||this;K.buttonOverrides={size:"S",iconPosition:"icon-only"};K.replyButtonOverrides={size:"S",type:"text"};return K};
_.r(fF,_.G);_.z=fF.prototype;_.z.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.z.detached=function(){this.replyBox&&this.replyBox.remove()};
_.z.showReplyDialog=function(K){if(K){var X=this.replyBox;X||(X=document.createElement("ytd-comment-reply-dialog-renderer"),X.id="replybox",_.C$(this.replyDialogDiv).appendChild(X));X.data=K;this.replyDialogDiv.hidden=!1;X.openDialog()}};
_.z.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.z.onYtServiceRequestSent=function(K,X){K.stopPropagation();if(X.actions)for(var F=0;F<X.actions.length;F++){var P=_.T(X.actions[F],eUU);P?this.handleUpdateCommentVoteAction(P):K.target===this.heartButton&&this.toggleHeartState()}};
_.z.handleUpdateCommentVoteAction=function(K){var X;(X=this.toolbarState)!=null&&X.key&&this.ytdReduxBehavior.dispatch(_.Bp("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:K.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":K.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.z.toggleHeartState=function(){var K;(K=this.toolbarState)!=null&&K.key&&this.ytdReduxBehavior.dispatch(_.Bp("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.Oi.Object.defineProperties(fF.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return(((K=this.toolbarState)==null?void 0:K.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(X=this.toolbarData)==null?void 0:X.likeCountLiked:(F=this.toolbarData)==null?void 0:F.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.toolbarSurface)==null?void 0:K.commentDisabledActionCommand)!==void 0}},
isSubscribersOnlyComments:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.toolbarSurface)==null?void 0:K.subscribersOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.toolbarSurface)==null?void 0:K.prepareAccountCommand)!==void 0&&!_.S("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var K,X=_.T((K=this.toolbarSurface)==null?void 0:K.prepareAccountCommand,_.j9),F,P,H,f,u,J,Z,M,n;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((F=this.toolbarSharedData)==null||!F.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((P=this.toolbarState)==null?void 0:P.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:X!=null?X:_.T((H=this.toolbarSurface)==null?void 0:H.likeCommand,_.j9),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:X!=null?X:_.T((f=this.toolbarSurface)==null?void 0:f.unlikeCommand,_.j9),defaultCommand:this.isVisiblyDisabled?_.T((u=this.toolbarSurface)==null?void 0:u.commentDisabledActionCommand,_.j9):void 0,defaultTooltip:(J=this.toolbarData)==null?void 0:J.likeInactiveTooltip,toggledTooltip:(Z=this.toolbarData)==null?void 0:Z.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(M=this.toolbarData)==null?void 0:M.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(n=this.toolbarSharedData)==null?void 0:n.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var K,X=_.T((K=this.toolbarSurface)==null?void 0:K.prepareAccountCommand,_.j9),F,P,H,f,u,J,Z,M,n,c;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((F=this.toolbarSharedData)==null||!F.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((P=this.toolbarState)==null?void 0:P.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:X!=null?X:_.T((H=this.toolbarSurface)==null?void 0:H.dislikeCommand,_.j9),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:X!=null?X:_.T((f=this.toolbarSurface)==null?void 0:f.undislikeCommand,_.j9),defaultCommand:this.isVisiblyDisabled?_.T((u=this.toolbarSurface)==null?void 0:u.commentDisabledActionCommand,_.j9):void 0,defaultTooltip:(J=this.toolbarData)==null?void 0:J.dislikeInactiveTooltip,toggledTooltip:(Z=this.toolbarData)==null?void 0:
Z.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(M=this.toolbarSharedData)==null?void 0:M.dislikeReplyButtonA11y:(n=this.toolbarSharedData)==null?void 0:n.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(c=this.toolbarSharedData)==null?void 0:c.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var K,X,F;if(((K=this.toolbarState)==null?void 0:K.heartState)!==void 0&&((X=this.toolbarState)==null?void 0:X.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((F=this.toolbarState)==null?void 0:F.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var P,H,f,u,J,Z,M,n,c,B,L,A,d,R;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(P=this.toolbarData)==null?void 0:P.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((H=this.toolbarState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((f=this.toolbarState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((u=this.toolbarState)==null?void 0:u.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((J=this.toolbarState)==null?void 0:J.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.T((Z=this.toolbarSurface)==null?void 0:Z.heartCommand,
_.j9),unheartEndpoint:this.isVisiblyDisabled?void 0:_.T((M=this.toolbarSurface)==null?void 0:M.unheartCommand,_.j9),disabledEndpoint:this.isVisiblyDisabled?_.T((n=this.toolbarSurface)==null?void 0:n.commentDisabledActionCommand,_.j9):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(c=this.toolbarData)==null?void 0:c.heartActiveTooltip,unheartedTooltip:(B=this.toolbarData)==null?void 0:B.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((L=
this.toolbarState)==null?void 0:L.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(A=this.toolbarSharedData)==null?void 0:A.unheartButtonA11y:(d=this.toolbarSharedData)==null?void 0:d.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(R=this.toolbarSharedData)==null?void 0:R.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.toolbarSurface)==null||!K.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var K,X,F,P;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubscribersOnlyComments?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(K=this.commentStrings)==null?void 0:K.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubscribersOnlyComments?void 0:_.T((X=this.toolbarSurface)==null?void 0:X.replyCommand,_.j9),command:this.isVisiblyDisabled?_.T((F=this.toolbarSurface)==null?void 0:F.commentDisabledActionCommand,
_.j9):this.isSubscribersOnlyComments?_.T((P=this.toolbarSurface)==null?void 0:P.subscribersOnlySnackbarCommand,_.j9):void 0}}}});
fF.prototype.onYtServiceRequestSent=fF.prototype.onYtServiceRequestSent;fF.prototype.hideReplyDialogDiv=fF.prototype.hideReplyDialogDiv;_.O([_.h(),_.g("design:type",Object)],fF.prototype,"commentStrings",void 0);_.O([_.h(),_.g("design:type",Boolean)],fF.prototype,"isReply",void 0);_.O([_.h(),_.g("design:type",Object)],fF.prototype,"toolbarData",void 0);_.O([_.h(),_.g("design:type",Object)],fF.prototype,"toolbarSharedData",void 0);
_.O([_.h(),_.g("design:type",String)],fF.prototype,"toolbarStateKey",void 0);_.O([_.h(),_.g("design:type",String)],fF.prototype,"toolbarSurfaceKey",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],fF.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],fF.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],fF.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.fa("#reply-dialog"),_.g("design:type",HTMLElement)],fF.prototype,"replyDialogDiv",void 0);_.O([_.fa("#replybox"),_.g("design:type",Object)],fF.prototype,"replyBox",void 0);_.O([_.fa("ytd-creator-heart-renderer"),_.g("design:type",Object)],fF.prototype,"heartButton",void 0);_.O([_.h({selector:function(K,X){return _.FF(K.entities,"engagementToolbarStateEntityPayload",X)},
selectorArgs:["toolbarStateKey"]}),_.g("design:type",Object)],fF.prototype,"toolbarState",void 0);_.O([_.h({selector:p5l,selectorArgs:["toolbarSurfaceKey"]}),_.g("design:type",Object)],fF.prototype,"toolbarSurface",void 0);_.O([_.h(),_.g("design:type",Object)],fF.prototype,"buttonOverrides",void 0);_.O([_.Hc("yt-commentbox-dismiss"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],fF.prototype,"hideReplyDialogDiv",null);
_.O([_.U("toolbarData","toolbarState"),_.g("design:type",String),_.g("design:paramtypes",[])],fF.prototype,"likeCount",null);_.O([_.U("likeCount"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],fF.prototype,"showLikeCount",null);_.O([_.U("toolbarSurface"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],fF.prototype,"isVisiblyDisabled",null);_.O([_.U("toolbarSurface"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],fF.prototype,"isSubscribersOnlyComments",null);
_.O([_.U("toolbarSurface"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],fF.prototype,"hasPrepareAccountCommand",null);_.O([_.U("toolbarData","toolbarState","toolbarSurface"),_.g("design:type",Object),_.g("design:paramtypes",[])],fF.prototype,"likeToggleButtonRenderer",null);_.O([_.U("isReply","toolbarData","toolbarState","toolbarSurface"),_.g("design:type",Object),_.g("design:paramtypes",[])],fF.prototype,"dislikeToggleButtonRenderer",null);
_.O([_.U("toolbarData","toolbarState","toolbarSurface"),_.g("design:type",Object),_.g("design:paramtypes",[])],fF.prototype,"creatorHeartSupportedRenderer",null);_.O([_.U("toolbarSurface"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],fF.prototype,"hasReplyCommand",null);_.O([_.U("toolbarSurface","commentStrings","isVisiblyDisabled"),_.g("design:type",Object),_.g("design:paramtypes",[])],fF.prototype,"replyButtonRenderer",null);
_.O([_.h(),_.g("design:type",Object)],fF.prototype,"replyButtonOverrides",void 0);_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.yk]),_.g("design:returntype")],fF.prototype,"onYtServiceRequestSent",null);fF=_.O([_.v({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],fF);
_.t(fF,"ytd-comment-engagement-bar",function(){if(vKE!==void 0)return vKE;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return vKE=K},{mode:1});var atW;var Dj=function(){return _.G.apply(this,arguments)||this};
_.r(Dj,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Dj.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Dj.prototype,"data",void 0);Dj=_.O([_.v({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],Dj);
_.t(Dj,"ytd-comment-inline-thumbnail-renderer",function(){if(atW!==void 0)return atW;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return atW=K},{mode:1});var trC;var uh=function(){return _.G.apply(this,arguments)||this};
_.r(uh,_.G);_.O([_.h(),_.g("design:type",Object)],uh.prototype,"data",void 0);uh=_.O([_.v({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],uh);
_.t(uh,"ytd-comment-pause-composer-renderer",function(){if(trC!==void 0)return trC;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return trC=K},{mode:1});var $pu;var OeV;var qk=function(){var K=_.G.apply(this,arguments)||this;K.isOpen=!1;return K};
_.r(qk,_.G);_.z=qk.prototype;_.z.dataChanged=function(){this.isOpen=!1};
_.z.onTap=function(){this.data&&(this.data.navigationEndpoint?_.iX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.z.focus=function(){this.JSC$13722_commentbox.focus()};
_.z.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.z.openDialog=function(){this.isOpen=!0;this.JSC$13722_commentbox.focus();this.JSC$13722_commentbox.maybeHeightChanged()};
qk.prototype.onYtCommentboxDismiss=qk.prototype.onYtCommentboxDismiss;qk.prototype.dataChanged=qk.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],qk.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],qk.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],qk.prototype,"isOpen",void 0);_.O([_.fa("#commentbox"),_.g("design:type",Object)],qk.prototype,"JSC$13722_commentbox",void 0);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],qk.prototype,"dataChanged",null);_.O([_.Hc("yt-commentbox-dismiss"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],qk.prototype,"onYtCommentboxDismiss",null);qk=_.O([_.v({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],qk);
_.t(qk,"ytd-comment-reply-dialog-renderer",function(){if(OeV!==void 0)return OeV;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return OeV=K},{mode:1});var Vrt;var Jn=function(){return _.G.apply(this,arguments)||this};
_.r(Jn,_.G);_.Oi.Object.defineProperties(Jn.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var K,X,F=(K=this.data)==null?void 0:(X=K.icon)==null?void 0:X.iconType;return F?"yt-icons:"+F.toLowerCase():null}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Jn.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Jn.prototype,"data",void 0);_.O([_.h(),_.U("data.icon"),_.g("design:type",Object),_.g("design:paramtypes",[])],Jn.prototype,"icon",null);Jn=_.O([_.v({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Jn);
_.t(Jn,"ytd-pinned-comment-badge-renderer",function(){if(Vrt!==void 0)return Vrt;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Vrt=K},{mode:1});var gKW;var EKC={},beL={input:!0,meta:!0,br:!0,link:!0,img:!0},Zj=null;EKC.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(){Zj==null&&(Zj=document.createElement("tp-yt-paper-tooltip"),Zj.offset=8,Zj.fitToVisibleBounds=!0)},
onMouseOver_:function(K){if(K=_.RR(K.target,function(H){return H==this||H.getAttribute&&H.getAttribute("shared-tooltip-text")}.bind(this),!0)){var X=K.getAttribute("shared-tooltip-text");
if(X){var F=this,P=null;K!=this&&(K.tagName.toLowerCase()in beL?F=K.parentElement:F=K,K.id&&(P=K.id));this.polymerController.createTooltipIfRequired_();if(Zj.parentElement!=F||Zj.for!=P)(0,_.Ka)(Zj).textContent=X,_.C$(F).appendChild(Zj),Zj.for=P,Zj.animationDelay=this.polymerController.sharedTooltipAnimationDelay,Zj.position=this.polymerController.sharedTooltipPosition}}}};var YJ=function(){return _.G.apply(this,arguments)||this};
_.r(YJ,_.G);YJ.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]]"}}}}}};
YJ.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
YJ.prototype.colorChanged=function(){var K,X,F,P=(K=this.data)==null?void 0:(X=K.color)==null?void 0:(F=X.basicColorPaletteData)==null?void 0:F.foregroundBodyColor;P&&(this.rgbBadgeColor=_.j0(P));_.C$(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
YJ.prototype.tooltipChanged=function(){var K;((K=this.data)==null?0:K.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
YJ.prototype.tooltipChanged=YJ.prototype.tooltipChanged;YJ.prototype.colorChanged=YJ.prototype.colorChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],YJ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(EKC.YtSharedTooltipBehavior),_.g("design:type",Object)],YJ.prototype,"ytSharedTooltipBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],YJ.prototype,"data",void 0);
_.O([_.h({value:"#4285F4"}),_.g("design:type",String)],YJ.prototype,"rgbBadgeColor",void 0);_.O([_.so("data.color"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],YJ.prototype,"colorChanged",null);_.O([_.so("data.tooltip"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],YJ.prototype,"tooltipChanged",null);YJ=_.O([_.v({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],YJ);
_.t(YJ,"ytd-sponsor-comment-badge-renderer",function(){if(gKW!==void 0)return gKW;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return gKW=K},{mode:1});var CET;var NaE;var Qa=function(){return _.G.apply(this,arguments)||this};
_.r(Qa,_.G);Qa.prototype.computeState=function(K){switch(K==null?void 0:K.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"}};
Qa.prototype.updateStateIdentifier=function(K){if(this.viewModel.triStateKey){var X=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.Bp("triStateButtonStateEntityPayload",X,{key:X,stateIdentifier:K}))}};
Qa.prototype.onClick=function(){var K=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(){K.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){K.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.Oi.Object.defineProperties(Qa.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 K;return((K=this.data)==null?void 0:K.buttonText)||""}}});
_.O([_.h(),_.g("design:type",Object)],Qa.prototype,"viewModel",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Qa.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],Qa.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Qa.prototype,"ytRendererBehavior",void 0);_.O([_.h({selector:BXO,selectorArgs:["viewModel.triStateKey"]}),_.g("design:type",Object)],Qa.prototype,"triStateButtonStateEntity",void 0);
_.O([_.h({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.g("design:type",String)],Qa.prototype,"state",void 0);_.O([_.U("viewModel","state"),_.g("design:type",Object),_.g("design:paramtypes",[])],Qa.prototype,"data",null);_.O([_.U("data"),_.g("design:type",String),_.g("design:paramtypes",[])],Qa.prototype,"buttonText",null);Qa=_.O([_.v({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],Qa);
_.t(Qa,"ytd-tri-state-button-view-model",function(){if(NaE!==void 0)return NaE;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return NaE=K},{mode:1});var ieV;var xpZ;var Mk=function(){var K=_.G.apply(this,arguments)||this;K.defaultIconToFilled=!_.S("kevlar_fill_comment_chip_icon_killswitch");return K};
_.r(Mk,_.G);Mk.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
Mk.prototype.dataChanged=function(){if(this.data){var K,X;((K=this.data.chipColorPalette)==null?0:K.backgroundColor)&&((X=this.data.chipColorPalette)==null?0:X.foregroundTitleColor)&&_.XU(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.wq(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.wq(this.data.chipColorPalette.foregroundTitleColor)});var F;((F=this.data)==null?0:F.command)?(_.XU(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.XU(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}};
Mk.prototype.onTap=function(){var K;if(this.data&&(K=this.data)!=null&&K.command){var X;this.ytComponentBehavior.resolveCommand((X=this.data)==null?void 0:X.command)}};
Mk.prototype.getIconSize=function(){return _.S("kevlar_fill_comment_chip_icon_killswitch")?24:12};
Mk.prototype.onTap=Mk.prototype.onTap;Mk.prototype.dataChanged=Mk.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Mk.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Mk.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.JP),_.g("design:type",Object)],Mk.prototype,"ironA11yKeysBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Mk.prototype,"data",void 0);
_.O([_.h(),_.g("design:type",Object)],Mk.prototype,"basePriceText",void 0);_.O([_.h(),_.g("design:type",Object)],Mk.prototype,"chipIcon",void 0);_.O([_.h(),_.g("design:type",Object)],Mk.prototype,"defaultIconToFilled",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Mk.prototype,"dataChanged",null);_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Mk.prototype,"onTap",null);
Mk=_.O([_.Tb({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],Mk);
_.t(Mk,"yt-pdg-comment-chip-renderer",function(){if(xpZ===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;ieV===void 0&&(ieV=document.createElement("template"));var P=ieV;F.call(X,P.content.cloneNode(!0),K.content.firstChild);xpZ=K}K=xpZ;return K},{mode:2});var nF=function(){var K=_.G.apply(this,arguments)||this;K.useSmallAvatars=_.S("small_avatars_for_comments");K.webWatchCompactComments=_.S("web_watch_compact_comments");K.editDialog=null;return K};
_.r(nF,_.G);_.z=nF.prototype;_.z.onShow=function(){_.jv("cmv",void 0,"wn_comments")};
_.z.configureRendererStamper=function(){return{authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},linkedCommentBadge:{id:"linked-comment-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[linkedCommentBadge]]"}}}},pinnedCommentBadge:{id:"pinned-comment-badge",mapping:{renderer:"ytd-pinned-comment-badge-renderer"}},sponsorCommentBadge:{id:"sponsor-comment-badge",mapping:{renderer:"ytd-sponsor-comment-badge-renderer"}},
editDialog:{id:"edit-dialog",mapping:{commentDialogRenderer:"ytd-comment-dialog-renderer",commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"}}}};
_.z.detached=function(){this.editDialog=null;this.expander.reset()};
_.z.updateBackgroundColor=function(){if(this.backgroundColor){var K={"--ytd-comment-paid-background-color":_.wq(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.XU(this.hostElement,K)}else _.XU(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.z.resetExpander=function(){var K;(K=this.expander)==null||K.reset()};
_.z.openEditDialog=function(K){K.dialog&&(this.editDialog=K.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.z.onYtNavigate=function(K){var X=K.detail.endpoint;if(X=_.T(X,_.AmW)||_.T(X,_.j5V))K.stopPropagation(),this.openEditDialog(X)};
_.z.onYtCommentboxDismiss=function(){this.editDialog=null;_.XU(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.z.onAuthorThumbnailClicked=function(){var K=this;_.S("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(X,F){K.onAuthorThumbnailEndpointSuccess(F)},
onServerError:function(X,F){_.yy(new _.nG("Failed to resolve the command",F))}}})};
_.z.onAuthorThumbnailEndpointSuccess=function(K){if((K=K==null?void 0:K.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(K,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();K=K==null?void 0:K.clickTrackingParams;var X=_.r_();K&&X&&_.uH().graftServerVe(K,X)}};
_.z.logScreenVe=function(){_.IZ(_.uH(),66557)};
_.z.onYtCommentboxResize=function(K){var X;(K==null?0:(X=K.detail)==null?0:X.height)&&_.XU(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":K.detail.height+"px"})};
_.Oi.Object.defineProperties(nF.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 K,X=(K=this.commentEntity)==null?void 0:K.author;return X&&(X.isCreator||X.isVerified||X.isArtist)?{renderer:{authorEndpoint:X.channelPageEndpoint?_.T(X.channelPageEndpoint,_.j9):_.T(X.channelCommand,_.j9),authorText:{runs:[{text:X.displayName}]},color:X.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:X.isArtist?{iconType:"AUDIO_BADGE"}:
X.isVerified?{iconType:X.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:X.isArtist||X.isVerified?X.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var K,X=(K=this.commentEntity)==null?void 0:K.author;return X!=null&&X.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:X.sponsorBadgeUrl}]},tooltip:X.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var K;return _.T((K=this.commentSurfaceEntity)==null?void 0:K.pdgCommentChip,_.XTC)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var K;return this.voiceReplyContainerViewModel&&((K=this.voiceReplyContainerViewModel)==null?void 0:K.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var K;return _.T((K=this.commentSurfaceEntity)==null?void 0:K.voiceReplyContainerViewModel,vAO)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var K;return this.voiceReplyContainerViewModel&&(K=this.voiceReplyContainerViewModel)!=null&&K.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var K,X;return(X=(K=this.commentSurfaceEntity)==null?void 0:K.commentBackgroundColor)!=null?X:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.S("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var K,X;return(((K=this.commentEntity)==null?void 0:(X=K.properties)==null?void 0:X.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var K,X;if(_.S("enable_profile_cards_on_comments")&&((K=this.commentEntity)==null?0:(X=K.author)==null?0:X.profileCardEndpoint)&&this.viewModel.allowProfileCard){var F,P;return _.T((F=this.commentEntity)==null?void 0:(P=F.author)==null?void 0:P.profileCardEndpoint,_.j9)}var H,f;return _.T((H=this.commentEntity)==null?void 0:(f=H.avatar)==null?void 0:f.endpoint,_.j9)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var K,X;if(_.S("enable_profile_cards_on_comments")&&((K=this.commentEntity)==null?0:(X=K.author)==null?0:X.channelPageEndpoint)){var F,P;return _.T((F=this.commentEntity)==null?void 0:(P=F.author)==null?void 0:P.channelPageEndpoint,_.j9)}var H,f;return _.T((H=this.commentEntity)==null?void 0:(f=H.avatar)==null?void 0:f.endpoint,_.j9)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var K,X,F,P,H=(K=this.commentEntity)==null?void 0:(X=K.avatar)==null?void 0:(F=X.image)==null?void 0:(P=F.sources)==null?void 0:P[0];return H?{thumbnails:[{url:H.url,width:H.width,height:H.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.commentEntity)==null?0:(X=K.author)==null?0:X.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.commentEntity)==null?void 0:(X=K.author)==null?void 0:X.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.commentEntity)==null?void 0:(X=K.properties)==null?void 0:X.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var K;return _.T((K=this.commentSurfaceEntity)==null?void 0:K.publishedTimeCommand,_.j9)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var K,X;if(((K=this.commentEntity)==null?0:K.translatedContent)&&((X=this.translateButtonState)==null?void 0:X.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var F;if((F=this.voiceReplyContainerViewModel)==null?0:F.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var P,H;return((P=this.commentEntity)==null?void 0:(H=P.properties)==null?void 0:H.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.commentSharedEntity)==null?void 0:(X=K.strings)==null?void 0:X.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.commentSharedEntity)==null?void 0:(X=K.strings)==null?void 0:X.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.commentEntity)==null||!K.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var K,X,F=(X=_.T((K=this.viewModel)==null?void 0:K.translateButton,lZt))!=null?X:{},P,H,f,u,J,Z,M,n,c,B,L;return Object.assign({},F,{untoggledStateData:Object.assign({},F.untoggledStateData,{buttonText:(P=this.commentEntity)==null?void 0:(H=P.translateData)==null?void 0:H.text}),togglingStateData:Object.assign({},F.togglingStateData,{buttonText:(f=this.commentSharedEntity)==null?
void 0:(u=f.strings)==null?void 0:u.translatingText}),toggledStateData:Object.assign({},F.toggledStateData,{buttonText:(J=this.commentSharedEntity)==null?void 0:(Z=J.strings)==null?void 0:Z.seeOriginalText}),transitionCommand:((M=this.commentEntity)==null?0:M.translatedContent)?void 0:_.T((n=this.commentEntity)==null?void 0:(c=n.translateData)==null?void 0:c.translateComment,_.j9),triStateKey:(B=this.commentEntity)==null?void 0:(L=B.properties)==null?void 0:L.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return((X=_.T(_.T((K=this.toolbarSurface)==null?void 0:K.menuCommand,_.j9),wVN))==null?void 0:(F=X.menu)==null?void 0:F.menuRenderer)||null}}});
nF.prototype.onYtCommentboxResize=nF.prototype.onYtCommentboxResize;nF.prototype.onYtCommentboxDismiss=nF.prototype.onYtCommentboxDismiss;nF.prototype.onYtNavigate=nF.prototype.onYtNavigate;nF.prototype.resetExpander=nF.prototype.resetExpander;nF.prototype.updateBackgroundColor=nF.prototype.updateBackgroundColor;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],nF.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],nF.prototype,"ytdReduxBehavior",void 0);
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],nF.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],nF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.fa("#author-thumbnail > button"),_.g("design:type",HTMLElement)],nF.prototype,"authorThumbnailAnchor",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("viewModel"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],nF.prototype,"linked",null);
_.O([_.U("viewModel","linked"),_.g("design:type",Object),_.g("design:paramtypes",[])],nF.prototype,"linkedCommentBadge",null);_.O([_.h({reflectToAttribute:!0}),_.U("viewModel"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],nF.prototype,"pinned",null);_.O([_.U("viewModel","pinned"),_.g("design:type",Object),_.g("design:paramtypes",[])],nF.prototype,"pinnedCommentBadge",null);
_.O([_.U("commentEntity","commentSharedEntity"),_.g("design:type",Object),_.g("design:paramtypes",[])],nF.prototype,"authorCommentBadge",null);_.O([_.h({reflectToAttribute:!0}),_.U("authorCommentBadge"),_.g("design:type",Object),_.g("design:paramtypes",[])],nF.prototype,"hasAuthorBadge",null);_.O([_.U("commentEntity"),_.g("design:type",Object),_.g("design:paramtypes",[])],nF.prototype,"sponsorCommentBadge",null);
_.O([_.h({reflectToAttribute:!0}),_.U("sponsorCommentBadge"),_.g("design:type",Object),_.g("design:paramtypes",[])],nF.prototype,"hasSponsorBadge",null);_.O([_.U("commentSurfaceEntity"),_.g("design:type",Object),_.g("design:paramtypes",[])],nF.prototype,"pdgCommentChipRenderer",null);_.O([_.h({reflectToAttribute:!0}),_.U("voiceReplyContainerViewModel"),_.g("design:type",Object),_.g("design:paramtypes",[])],nF.prototype,"hasVoiceReply",null);
_.O([_.U("commentSurfaceEntity"),_.g("design:type",Object),_.g("design:paramtypes",[])],nF.prototype,"voiceReplyContainerViewModel",null);_.O([_.U("voiceReplyContainerViewModel"),_.g("design:type",Object),_.g("design:paramtypes",[])],nF.prototype,"voiceReplyUnavailableText",null);_.O([_.h(),_.g("design:type",Object)],nF.prototype,"data",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],nF.prototype,"viewModel",null);
_.O([_.h({selector:function(K,X){return _.FF(K.entities,"commentSharedEntityPayload",X)},
selectorArgs:["viewModel.sharedKey"]}),_.g("design:type",Object)],nF.prototype,"commentSharedEntity",void 0);_.O([_.h({selector:function(K,X){return _.FF(K.entities,"commentEntityPayload",X)},
selectorArgs:["viewModel.commentKey"]}),_.g("design:type",Object)],nF.prototype,"commentEntity",void 0);_.O([_.h({selector:function(K,X){return _.FF(K.entities,"commentSurfaceEntityPayload",X)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.g("design:type",Object)],nF.prototype,"commentSurfaceEntity",void 0);_.O([_.h({selector:p5l,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.g("design:type",Object)],nF.prototype,"toolbarSurface",void 0);_.O([_.h({selector:BXO,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.g("design:type",Object)],nF.prototype,"translateButtonState",void 0);
_.O([_.U("commentSurfaceEntity"),_.g("design:type",Object),_.g("design:paramtypes",[])],nF.prototype,"backgroundColor",null);_.O([_.h({reflectToAttribute:!0}),_.U("viewModel"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],nF.prototype,"optimalReadingWidthComments",null);_.O([_.fa("ytd-expander"),_.g("design:type",Object)],nF.prototype,"expander",void 0);
_.O([_.so("backgroundColor"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],nF.prototype,"updateBackgroundColor",null);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],nF.prototype,"useSmallAvatars",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],nF.prototype,"webWatchCompactComments",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("commentEntity"),_.g("design:type",Object),_.g("design:paramtypes",[])],nF.prototype,"isReply",null);
_.O([_.U("commentEntity"),_.g("design:type",Object),_.g("design:paramtypes",[])],nF.prototype,"authorThumbnailEndpoint",null);_.O([_.U("commentEntity"),_.g("design:type",Object),_.g("design:paramtypes",[])],nF.prototype,"authorNameEndpoint",null);_.O([_.U("commentEntity"),_.g("design:type",Object),_.g("design:paramtypes",[])],nF.prototype,"authorThumbnail",null);_.O([_.U("commentEntity"),_.g("design:type",String),_.g("design:paramtypes",[])],nF.prototype,"authorTextClass",null);
_.O([_.U("commentEntity"),_.g("design:type",String),_.g("design:paramtypes",[])],nF.prototype,"authorChannelName",null);_.O([_.U("commentEntity"),_.g("design:type",Object),_.g("design:paramtypes",[])],nF.prototype,"publishedTime",null);_.O([_.U("commentSurfaceEntity"),_.g("design:type",Object),_.g("design:paramtypes",[])],nF.prototype,"publishedTimeCommand",null);
_.O([_.U("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.g("design:type",Object),_.g("design:paramtypes",[])],nF.prototype,"contentText",null);_.O([_.so("contentText"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],nF.prototype,"resetExpander",null);_.O([_.U("commentEntity"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],nF.prototype,"shouldShowReadMoreInitially",null);
_.O([_.U("commentSharedEntity"),_.g("design:type",String),_.g("design:paramtypes",[])],nF.prototype,"expandText",null);_.O([_.U("commentSharedEntity"),_.g("design:type",String),_.g("design:paramtypes",[])],nF.prototype,"collapseText",null);_.O([_.U("commentEntity"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],nF.prototype,"shouldShowTranslateButton",null);
_.O([_.U("commentEntity","commentSharedEntity"),_.g("design:type",Object),_.g("design:paramtypes",[])],nF.prototype,"translateButton",null);_.O([_.U("toolbarSurface"),_.g("design:type",Object),_.g("design:paramtypes",[])],nF.prototype,"overflowMenuRenderer",null);_.O([_.h(),_.g("design:type",Object)],nF.prototype,"editDialog",void 0);_.O([_.fa("ytd-comment-dialog-renderer"),_.g("design:type",Object)],nF.prototype,"editCommentDialogContainer",void 0);
_.O([_.fa("ytd-comment-reply-dialog-renderer"),_.g("design:type",Object)],nF.prototype,"editReplyDialogContainer",void 0);_.O([_.Hc("yt-navigate"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],nF.prototype,"onYtNavigate",null);_.O([_.Hc("yt-commentbox-dismiss"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],nF.prototype,"onYtCommentboxDismiss",null);
_.O([_.Hc("yt-commentbox-resize"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],nF.prototype,"onYtCommentboxResize",null);nF=_.O([_.v({disableElementRegistration:!0,is:"ytd-comment-view-model"})],nF);
_.t(nF,"ytd-comment-view-model",function(){if(CET!==void 0)return CET;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return CET=K},{mode:_.Ig("kevlar_poly_si_batch_j025")?1:2});var c8=function(){var K=_.G.apply(this,arguments)||this;K.modern=_.S("web_modern_buttons");K.isWatchGrid=_.S("kevlar_watch_grid");K.buttonOverrides={style:"call-to-action"};K.JSC$13768_spinnerEl=null;return K};
_.r(c8,_.G);_.z=c8.prototype;_.z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.z.configureRendererStamper=function(){return{"data.teaserContents":{id:"teaser-replies",mapping:{commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentViewModel:{component:"ytd-comment-view-model"},continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}};
_.z.attached=function(){this.isShowRepliesVisible=!0};
_.z.dataChanged=function(){var K=this.expanderContents;K&&(K.hidden=!0);this.isLoading=!1};
_.z.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.z.isLoadingChanged=function(){this.isLoading&&!this.JSC$13768_spinnerEl&&(this.JSC$13768_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.C$(this.expanderContents).appendChild(this.JSC$13768_spinnerEl));this.JSC$13768_spinnerEl&&(this.JSC$13768_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var K;(K=this.contents)==null||K.classList.remove("reloading")}};
_.z.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var K=_.T(this.data.viewReplies,_.jg);K&&this.ytRendererBehavior.logExplicitClick(K)};
_.z.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var K=_.T(this.data.hideReplies,_.jg);K&&this.ytRendererBehavior.logExplicitClick(K)};
_.z.isShowMoreChanged=function(){var K=_.C$(this.hostElement).querySelector("#expander-contents");K&&(K.hidden=this.isShowRepliesVisible)};
_.z.computeAlign=function(){if(this.modern){var K;return!((K=this.data)==null?0:K.viewRepliesCreatorThumbnail)}};
_.Oi.Object.defineProperties(c8.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var K,X=(K=this.data)==null?void 0:K.contents;return!!X&&X.length>0&&!!X[X.length-1].continuationItemRenderer}}});
c8.prototype.isShowMoreChanged=c8.prototype.isShowMoreChanged;c8.prototype.isLoadingChanged=c8.prototype.isLoadingChanged;c8.prototype.triggerFirstContinuation=c8.prototype.triggerFirstContinuation;c8.prototype.dataChanged=c8.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],c8.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],c8.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.W(_.eG),_.g("design:type",Object)],c8.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],c8.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],c8.prototype,"modern",void 0);_.O([_.h(),_.g("design:type",Boolean)],c8.prototype,"isLoading",void 0);_.O([_.h({value:!0}),_.g("design:type",Boolean)],c8.prototype,"isShowRepliesVisible",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],c8.prototype,"useNewFormatting",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],c8.prototype,"isWatchGrid",void 0);_.O([_.h(),_.g("design:type",Object)],c8.prototype,"buttonOverrides",void 0);_.O([_.fa("#expander-contents"),_.g("design:type",HTMLElement)],c8.prototype,"expanderContents",void 0);_.O([_.fa("ytd-continuation-item-renderer"),_.g("design:type",Object)],c8.prototype,"continuationItemRenderer",void 0);_.O([_.fa("#contents"),_.g("design:type",HTMLElement)],c8.prototype,"contents",void 0);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],c8.prototype,"dataChanged",null);_.O([_.U("data.contents"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],c8.prototype,"hasContinuation",null);_.O([_.Hc("yt-expander-more-tapped"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],c8.prototype,"triggerFirstContinuation",null);
_.O([_.so("isLoading"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],c8.prototype,"isLoadingChanged",null);_.O([_.so("isShowRepliesVisible"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],c8.prototype,"isShowMoreChanged",null);c8=_.O([_.v({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],c8);
_.t(c8,"ytd-comment-replies-renderer",function(){if($pu!==void 0)return $pu;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[!hasContinuation]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return $pu=K},{mode:1});var ItV;var pF=function(){var K=_.G.apply(this,arguments)||this;K.isOpen=!1;K.commentDialog=null;K.useSmallAvatars=_.S("small_avatars_for_comments");K.useSmallAvatarsEngagementPanelOnly=_.S("small_avatars_for_comments_ep");K.placeholderFocusListener=null;K.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return K};
_.r(pF,_.G);_.z=pF.prototype;_.z.configureRendererStamper=function(){return{"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},commentDialog:{id:"comment-dialog",mapping:{commentDialogRenderer:{component:"ytd-comment-dialog-renderer",properties:{zeroStepChannelCreationRenderer:"[[data.zeroStep.zeroStepChannelCreationRenderer]]"}}}}}};
_.z.ready=function(){var K=this,X=_.C$(this.hostElement).querySelector("#placeholder-area"),F=_.C$(this.hostElement).querySelector("#simplebox-placeholder"),P=function(H){H.stopPropagation();H instanceof KeyboardEvent&&H.type==="keypress"&&H.keyCode!==13&&H.keyCode!==32||K.openDialog()};
this.placeholderFocusListener=P;F.addEventListener("focus",this.placeholderFocusListener);X.addEventListener("tap",P);X.addEventListener("keypress",P)};
_.z.maybeRemoveFocusEventListener=function(){var K;(K=this.data)!=null&&K.prepareAccountEndpoint&&!_.S("web_comments_simplebox_modal_focus_on_tap_ks")&&(K=_.C$(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(K.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.z.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.z.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.S("web_comment_simplebox_resolve_polymer_command_ks")?_.Hn.instance.resolveCommand(this.data.prepareAccountEndpoint):_.sP(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.C$(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.z.onYtCommentboxDismiss=function(K){K.stopPropagation();this.isOpen=!1};
_.z.onCreateCommentAction=function(K){this.get("createCommentAction.contents",K)&&(this.isOpen=!1)};
_.z.computeCommentDialog=function(K){return{placeholderText:K.placeholderText,authorThumbnail:K.authorThumbnail,submitButton:K.submitButton,imageButton:K.imageButton,cancelButton:K.cancelButton,emojiButton:K.emojiButton,emojis:K.emojis,emojiPicker:K.emojiPicker,aadcGuidelinesStateEntityKey:K.aadcGuidelinesStateEntityKey,openAadcDialog:K.openAadcDialog,unicodeEmojisUrl:K.unicodeEmojisUrl}};
_.z.onHideIdentityChip=function(K){_.T(K,WlW)&&this.set("data.placeholderText",_.T(K,WlW).placeholderText)};
pF.prototype.onYtCommentboxDismiss=pF.prototype.onYtCommentboxDismiss;pF.prototype.dataChanged=pF.prototype.dataChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],pF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],pF.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],pF.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],pF.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],pF.prototype,"isOpen",void 0);_.O([_.h(),_.g("design:type",Object)],pF.prototype,"commentDialog",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],pF.prototype,"engagementPanel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],pF.prototype,"useSmallAvatars",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],pF.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],pF.prototype,"enableCreationBox",void 0);_.O([_.h(),_.g("design:type",Boolean)],pF.prototype,"showCreateDialog",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],pF.prototype,"dataChanged",null);
_.O([_.Hc("yt-commentbox-dismiss"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],pF.prototype,"onYtCommentboxDismiss",null);pF=_.O([_.v({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],pF);
_.t(pF,"ytd-comment-simplebox-renderer",function(){if(ItV!==void 0)return ItV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return ItV=K},{mode:1});var kFZ;_.L4("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var B8=function(){var K=_.G.apply(this,arguments)||this;K.addHoverEffect=_.S("swatcheroo_comments_hover_effect");return K};
_.r(B8,_.G);B8.prototype.onTap=function(K){if(this.addHoverEffect&&!this.engagementPanel&&!_.lC(_.lN(K)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var X;((X=window.getSelection())==null?0:X.toString().length)||_.sP({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
B8.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.Oi.Object.defineProperties(B8.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)!=null&&K.commentViewModel)return _.T(this.data.commentViewModel,GtV)}}});
B8.prototype.onTap=B8.prototype.onTap;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],B8.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],B8.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],B8.prototype,"addHoverEffect",void 0);_.O([_.h(),_.g("design:type",Object)],B8.prototype,"data",void 0);
_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],B8.prototype,"commentViewModel",null);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],B8.prototype,"engagementPanel",void 0);_.O([_.Hc("tap"),_.Hc("click"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],B8.prototype,"onTap",null);B8=_.O([_.v({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],B8);
_.t(B8,"ytd-comment-thread-renderer",function(){if(kFZ!==void 0)return kFZ;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return kFZ=K},{mode:_.Ig("kevlar_poly_si_batch_j025")?1:2});var Kpt;var S5=function(){var K=_.G.apply(this,arguments)||this;K.modernTypography=_.S("web_modern_typography");K.compactHeader=_.S("web_watch_compact_comments_header");K.hidePanelButton=!1;K.isPostSchedulingEnabled=_.S("enable_post_scheduling");K.hasFinishedStamping=!1;K.JSC$13786_handleOpenPostCommentDialogActionAfterStamp=!1;K.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return K};
_.r(S5,_.G);_.z=S5.prototype;
_.z.configureRendererStamper=function(){return{"data.createRenderer":{id:"simple-box",mapping:{commentSimpleboxRenderer:{component:"ytd-comment-simplebox-renderer",properties:{engagementPanel:"[[engagementPanel]]",showCreateDialog:"[[data.showCreateDialog]]"}}}},"data.pausedCommentsMessage":{id:"paused-comments-message",mapping:{messageRenderer:"ytd-comment-pause-composer-renderer"}},backstagePostDialog:{id:"backstage-post-dialog",mapping:{backstagePostDialogRenderer:{component:"ytd-backstage-post-dialog-renderer"}},events:!0},
"data.sortMenu":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.alerts":{id:"alert",mapping:{alertWithButtonRenderer:"ytd-alert-with-button-renderer"},renderPriority:0,waitForSignal:"eocs"},"data.zeroStateMessage":{id:"zero-state-message",mapping:{backstageZeroStateRenderer:"ytd-backstage-zero-state-renderer",postFilterZeroStateRenderer:"ytd-post-filter-zero-state-renderer"}},"data.prefilledCreateDialogHeaderMessage":{id:"prefilled-dialog-header",mapping:{backstagePrefilledPostDialogHeaderRenderer:"ytd-backstage-prefilled-post-dialog-header-renderer"}},
"data.postStreamFilter":{id:"post-stream-filter",mapping:{postStreamFilterRenderer:"ytd-post-stream-filter-renderer"}},"data.schedulingZeroStateMessage":{id:"scheduling-zero-state-message",mapping:{postSchedulingZeroStateRenderer:"ytd-post-scheduling-zero-state-renderer"}}}};
_.z.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.z.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13786_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.z.onYtServiceRequestSent=function(K,X){if(!_.S("kevlar_command_handler")&&X.actions)for(K=0;K<X.actions.length;K++){var F=X.actions[K];_.T(F,Prt)&&_.C$(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.T(F,Prt))}};
_.z.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var K;if(this.getPrefilledBackstagePostDialog((K=this.data)==null?void 0:K.actions)){_.C$(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var X=_.C$(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;X&&_.tg(this,function(){X.focus();X.openDialog&&X.openDialog()})}}else this.hasActionsChange=!0};
_.z.computeIsBackstage=function(K){return K};
_.z.onYtCommentboxDismiss=function(){_.C$(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.z.removePrefilledDialog=function(K){if(K==null?0:K.actions){for(var X=K.actions.length-1;X>=0;X--){var F=void 0;((F=_.T(K.actions[X],TRW))==null?0:F.dialog)&&delete K.actions[X]}this.set("data",void 0);this.set("data",K)}};
_.z.getPrefilledBackstagePostDialog=function(K){if(K)for(var X=0;X<K.length;X++){var F=K[X],P=void 0;if((P=_.T(F,TRW))==null?0:P.dialog)return _.T(F,TRW).dialog}return null};
_.z.computeBackstagePostDialog=function(K){return K&&(this.getPrefilledBackstagePostDialog(K.actions)||K.createRenderer)};
_.z.dataChanged=function(){if(this.data){var K=this.data.customEmojis,X=this.data.unicodeEmojisUrl;_.yU.clear();X&&_.fuC(_.yU,X);K&&_.yU.load(K)}};
_.z.handleSignalActionOpenPostCommentDialogAction=function(){var K=_.C$(this.hostElement).querySelector("ytd-comment-simplebox-renderer");K?K.openDialog():this.JSC$13786_handleOpenPostCommentDialogActionAfterStamp=!0};
_.Oi.Object.defineProperties(S5.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.S("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var K,X,F,P,H,f,u;return!this.hidePanelButton&&_.S("kevlar_watch_comments_panel_button")&&((u=_.T((K=this.data)==null?void 0:(X=K.sortMenu)==null?void 0:(F=X.sortFilterSubMenuRenderer)==null?void 0:(P=F.subMenuItems)==null?void 0:(H=P[0])==null?void 0:(f=H.serviceEndpoint)==null?void 0:f.commandMetadata,_.g_))==null?void 0:u.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.uY("MINIPLAYER_EXPAND_LABEL"),text:_.GS(_.uY("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
S5.prototype.dataChanged=S5.prototype.dataChanged;S5.prototype.onYtCommentboxDismiss=S5.prototype.onYtCommentboxDismiss;S5.prototype.observePrefilledBackstagePostDialog=S5.prototype.observePrefilledBackstagePostDialog;S5.prototype.onYtServiceRequestSent=S5.prototype.onYtServiceRequestSent;S5.prototype.onStampFinished=S5.prototype.onStampFinished;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],S5.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],S5.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],S5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],S5.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],S5.prototype,"modernTypography",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],S5.prototype,"compactHeader",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],S5.prototype,"engagementPanel",void 0);_.O([_.h(),_.g("design:type",Object)],S5.prototype,"hidePanelButton",void 0);_.O([_.h({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.g("design:type",Boolean)],S5.prototype,"isBackstage",void 0);_.O([_.h({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.g("design:type",Object)],S5.prototype,"backstagePostDialog",void 0);
_.O([_.h(),_.g("design:type",Object)],S5.prototype,"isPostSchedulingEnabled",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("data","showCommentsPanelButton"),_.g("design:type",Object),_.g("design:paramtypes",[])],S5.prototype,"useSpaceBetween",null);_.O([_.h({reflectToAttribute:!0}),_.U("data","hidePanelButton"),_.g("design:type",Object),_.g("design:paramtypes",[])],S5.prototype,"showCommentsPanelButton",null);
_.O([_.U("data","showCommentsPanelButton"),_.g("design:type",Object),_.g("design:paramtypes",[])],S5.prototype,"commentsPanelButtonData",null);_.O([_.Hc("yt-rendererstamper-finished"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],S5.prototype,"onStampFinished",null);_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.yk]),_.g("design:returntype")],S5.prototype,"onYtServiceRequestSent",null);
_.O([_.so("data.actions"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],S5.prototype,"observePrefilledBackstagePostDialog",null);_.O([_.Hc("yt-commentbox-dismiss"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],S5.prototype,"onYtCommentboxDismiss",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],S5.prototype,"dataChanged",null);
S5=_.O([_.v({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],S5);
_.t(S5,"ytd-comments-header-renderer",function(){if(Kpt!==void 0)return Kpt;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Kpt=K},{mode:1});var XtU;var od=function(){return _.G.apply(this,arguments)||this};
_.r(od,_.G);_.O([_.h(),_.g("design:type",Object)],od.prototype,"data",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],od.prototype,"ytRendererBehavior",void 0);od=_.O([_.v({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],od);
_.t(od,"ytd-destination-button-renderer",function(){if(XtU!==void 0)return XtU;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return XtU=K},{mode:1});var FpL;var LF=function(){var K=_.G.apply(this,arguments)||this;K.isRichGrid=!1;K.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};K.modernTypography=_.S("web_modern_typography");return K};
_.r(LF,_.G);_.z=LF.prototype;_.z.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.z.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.z.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.z.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var K;if((K=this.data)==null||!K.isExpanded){K=this.hostElement.clientWidth;var X;if(K&&(X=this.data)!=null&&X.destinationButtons){X=Math.floor((K+4)/214);K=this.data.destinationButtons.length;var F=Math.ceil(K/X);this.fullyVisibleRows=K%X===1&&F===2?1:Math.min(F,2);this.isShowMoreVisible=this.fullyVisibleRows<F}}}};
_.z.updateRichGridDestinationButtonsVisibility=function(){var K,X;if(this.isRichGrid&&((K=this.data)==null||!K.isExpanded)&&(X=this.data)!=null&&X.destinationButtons){K=this.richGridItemsPerRow+1;X=this.data.destinationButtons.length;var F=Math.ceil(X/K);this.fullyVisibleRows=X%K===1&&F===2?1:Math.min(F,2);this.isShowMoreVisible=this.fullyVisibleRows<F}};
_.z.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
LF.prototype.updateRichGridDestinationButtonsVisibility=LF.prototype.updateRichGridDestinationButtonsVisibility;_.O([_.h(),_.g("design:type",Object)],LF.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Number)],LF.prototype,"fullyVisibleRows",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],LF.prototype,"isShowMoreVisible",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],LF.prototype,"isRichGrid",void 0);
_.O([_.h({selector:_.oA,value:0}),_.g("design:type",Number)],LF.prototype,"richGridItemsPerRow",void 0);_.O([_.h(),_.g("design:type",Object)],LF.prototype,"gridStateActionMap",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],LF.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],LF.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],LF.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],LF.prototype,"ytdReduxBehavior",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],LF.prototype,"modernTypography",void 0);_.O([_.so("data","richGridItemsPerRow"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],LF.prototype,"updateRichGridDestinationButtonsVisibility",null);
LF=_.O([_.v({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],LF);
_.t(LF,"ytd-destination-shelf-renderer",function(){if(FpL!==void 0)return FpL;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return FpL=K},{mode:1});var PoL;var Tg=function(){return _.G.apply(this,arguments)||this};
_.r(Tg,_.G);Tg.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"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Tg.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Tg.prototype,"data",void 0);Tg=_.O([_.v({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],Tg);
_.t(Tg,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(PoL!==void 0)return PoL;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return PoL=K},{mode:1});var Hot;var ro=function(){var K=_.G.apply(this,arguments)||this;K.disableAnimation=!1;K.isSlimlineSurvey=!1;K.isSlimlineSurveyFollowUp=!1;K.isShortsStyle=!1;return K};
_.r(ro,_.G);ro.prototype.onTap=function(K){K.preventDefault();this.data&&_.iX(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.Oi.Object.defineProperties(ro.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 K,X,F,P,H;return((K=this.data)==null?0:K.checked)?(X=this.data)==null?void 0:(F=X.onStateIcon)==null?void 0:F.iconType:(P=this.data)==null?void 0:(H=P.defaultStateIcon)==null?void 0:H.iconType}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ro.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],ro.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],ro.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],ro.prototype,"disableAnimation",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],ro.prototype,"isSlimlineSurvey",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],ro.prototype,"isSlimlineSurveyFollowUp",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],ro.prototype,"isShortsStyle",void 0);_.O([_.U("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],ro.prototype,"isAnimatedIcon",null);
_.O([_.U("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.g("design:type",Number),_.g("design:paramtypes",[])],ro.prototype,"iconSize",null);_.O([_.U("isShortsStyle"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],ro.prototype,"isDarkTheme",null);_.O([_.U("data.checked"),_.g("design:type",Object),_.g("design:paramtypes",[])],ro.prototype,"icon",null);ro=_.O([_.v({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],ro);
_.t(ro,"ytd-rating-survey-option-renderer",function(){if(Hot!==void 0)return Hot;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return Hot=K},{mode:2});var sHL;var An=function(){var K=_.G.apply(this,arguments)||this;K.firstResponseText=null;K.lastResponseText=null;K.selectedNonStarOption=null;K.hideOptions=!1;K.hideUndoButton=!0;K.disableAnimation=!1;K.showResponseRangeText=!1;K.selectedRatingIndex=-1;K.isSlimlineSurvey=!1;K.isSlimlineSurveyFollowUp=!1;K.isShortsStyle=!1;K.slimlineSurveyRatingSelectedIndex=-1;return K};
_.r(An,_.G);_.z=An.prototype;_.z.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.z.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.z.onOptionChange=function(K,X){var F=this;K=X.onStateIcon&&X.defaultStateIcon&&X.onStateIcon.iconType===X.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(u,J){u.responseText===X.responseText?F.isSlimlineSurvey?(F.selectedRatingIndex=J,F.ytdReduxBehavior.dispatch(uaU(J))):(F.setSurveyOptionValue(J,!0,"checked"),F.setSurveyOptionValue(J,!0,"selected")):(F.setSurveyOptionValue(J,!1,"checked"),F.setSurveyOptionValue(J,
!1,"selected"))});
else if(K)this.selectedNonStarOption=X,this.hideOptions=!0;else{var P=this.ytRendererBehavior.getSimpleString(X.responseText),H=!0;this.getOptionRenderers().forEach(function(u,J){F.setSurveyOptionValue(J,H,"checked");F.setSurveyOptionValue(J,!1,"selected");F.ytRendererBehavior.getSimpleString(u.responseText)===P&&(H=!1,F.setSurveyOptionValue(J,!0,"selected"))})}K=X.responseEndpoint;
var f;X.followUpCommand&&(f=_.T(X.followUpCommand,xeL));this.isSlimlineSurvey?(this.resetComponent(),_.xr(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.xr(this.hostElement,"ytd-inline-survey-rating-select-action",[K,f])};
_.z.showSelectedOption=function(){var K=this;_.A9.addJob(function(){var X=K.getOptionRenderers()[K.slimlineSurveyRatingSelectedIndex];K.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),X)},8,100)};
_.z.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(K){var X;return(X=_.T(K,kQZ))!=null?X:{}}):[]};
_.z.onUndoClick=function(){this.resetComponent();_.xr(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.z.setSurveyOptionValue=function(K,X,F){this.notifyPath("data.ratings."+K+".ratingSurveyOptionRenderer."+F);this.set("data.ratings."+K+".ratingSurveyOptionRenderer."+F,X)};
_.z.resetComponent=function(){var K=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var X=this.getOptionRenderers(),F,P;this.firstResponseText=(P=(F=X[0])==null?void 0:F.responseText)!=null?P:null;var H,f;this.lastResponseText=(f=(H=X[X.length-1])==null?void 0:H.responseText)!=null?f:null;X.forEach(function(u,J){K.setSurveyOptionValue(J,!1,"checked");K.setSurveyOptionValue(J,!1,"selected")})};
_.Oi.Object.defineProperties(An.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
An.prototype.onOptionChange=An.prototype.onOptionChange;An.prototype.dataChanged=An.prototype.dataChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],An.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],An.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],An.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],An.prototype,"data",void 0);
_.O([_.h(),_.g("design:type",Object)],An.prototype,"firstResponseText",void 0);_.O([_.h(),_.g("design:type",Object)],An.prototype,"lastResponseText",void 0);_.O([_.h(),_.g("design:type",Object)],An.prototype,"selectedNonStarOption",void 0);_.O([_.h(),_.g("design:type",Object)],An.prototype,"hideOptions",void 0);_.O([_.h(),_.g("design:type",Object)],An.prototype,"hideUndoButton",void 0);_.O([_.h(),_.g("design:type",Object)],An.prototype,"disableAnimation",void 0);
_.O([_.h(),_.g("design:type",Object)],An.prototype,"showResponseRangeText",void 0);_.O([_.h(),_.g("design:type",Object)],An.prototype,"selectedRatingIndex",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],An.prototype,"isSlimlineSurvey",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],An.prototype,"isSlimlineSurveyFollowUp",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],An.prototype,"isShortsStyle",void 0);_.O([_.h({selector:function(K){return K.ui.slimlineSurveyRatingSelectedIndex}}),
_.g("design:type",Object)],An.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.O([_.U("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],An.prototype,"isSingleSelect",null);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],An.prototype,"dataChanged",null);
_.O([_.Hc("ytd-rating-survey-option-changed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],An.prototype,"onOptionChange",null);An=_.O([_.v({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],An);
_.t(An,"ytd-rating-survey-renderer",function(){if(sHL!==void 0)return sHL;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return sHL=K},{mode:1});var zJE;var fxL;var D7V;var kWl=(My.FIRSTDAYOFWEEK+1)%7,uhL=function(K,X,F,P){var H="";if(P.selection&&Nyl(P.selection))ZV(K,P.selection)&&(H+=" selected");else if(P.selection&&i0n(P.selection)){var f=P.selection.selectionState||"START_DATE";ZV(K,P.selection.start)&&(H+=" period-start ",f==="START_DATE"&&(H+="selected"));ZV(K,P.selection.end)&&(H+=" period-end ",f==="END_DATE"&&(H+="selected"));YR(K,P.selection.start)||YR(P.selection.end,K)||(H+=" highlighted")}if(YR(X,P.start)||YR(P.end,X))H+=" disabled";P.circleToday&&
ZV(X,F)&&(H+=" today");return H};var j5=function(){return _.G.apply(this,arguments)||this};
_.r(j5,_.G);_.z=j5.prototype;_.z.attached=function(){var K=this;_.tg(this,function(){K.JSC$13820_calendarMain.scrollHeight>0&&(K.calendarConfig.selection?K.scrollToDate(x89(K.calendarConfig.selection)):K.scrollToDate(K.calendarConfig.end))})};
_.z.updateSelection=function(K){K=KV9(Object.assign({},this.calendarConfig,{selection:K}),uhL);this.splice.apply(this,["renderData.months",0,K.length].concat(_.LZ(K)))};
_.z.scrollToDate=function(K){this.renderData&&(K=XwP(K,this.renderData),K!==void 0&&this.JSC$13820_calendarMain.scrollToIndex(K))};
_.z.scrollToNextMonth=function(){this.JSC$13820_calendarMain.scrollToIndex(this.JSC$13820_calendarMain.firstVisibleIndex+1)};
_.z.scrollToPrevMonth=function(){this.JSC$13820_calendarMain.firstVisibleIndex===0&&this.JSC$13820_calendarMain.scrollTo(0,0);this.JSC$13820_calendarMain.scrollToIndex(this.JSC$13820_calendarMain.firstVisibleIndex-1)};
_.z.handleDayClick=function(K){_.xr(this.hostElement,"ytd-calendar-date-clicked",[K.model.day.date])};
_.z.handleDayMouseDown=function(K){K.preventDefault();_.xr(this.hostElement,"ytd-calendar-date-mousedown",[K.model.day.date])};
_.z.handleDayMouseUp=function(K){_.xr(this.hostElement,"ytd-calendar-date-mouseup",[K.model.day.date])};
_.z.handleDayMouseEnter=function(K){K.preventDefault();_.xr(this.hostElement,"ytd-calendar-date-mouseenter",[K.model.day.date])};
_.z.handleDayMouseLeave=function(K){_.xr(this.hostElement,"ytd-calendar-date-mouseleave",[K.model.day.date])};
_.Oi.Object.defineProperties(j5.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var K=this.calendarConfig,X=uhL;X=X===void 0?uhL:X;for(var F=[],P=0;P<7;P++)F.push(My.NARROWWEEKDAYS[(P+kWl)%7]);return{months:KV9(K,X),daysOfWeekLabel:F}}}});
_.O([_.h(),_.g("design:type",Object)],j5.prototype,"calendarConfig",void 0);_.O([_.fa("#calendar-main"),_.g("design:type",Object)],j5.prototype,"JSC$13820_calendarMain",void 0);_.O([_.U("calendarConfig"),_.g("design:type",Object),_.g("design:paramtypes",[])],j5.prototype,"renderData",null);j5=_.O([_.v({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],j5);
_.t(j5,"ytd-scrollable-calendar",function(){if(D7V!==void 0)return D7V;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return D7V=K},{mode:2});var qCL;var J$U;var wo=function(){var K=_.G.apply(this,arguments)||this;K.hideCharCounter=!1;K.hideLabel=!1;K.noLabelFloat=!1;K.autoValidate=!0;K.invalid=!1;K.disabled=!1;K.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return K};
_.r(wo,_.G);_.z=wo.prototype;_.z.reset=function(K){this.value=K&&this.data?this.data.value=K:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.z.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.z.focusTextInput=function(){this.input.focus()};
_.z.validate=function(){if(!this.autoValidate)return!this.invalid;if(!this.input)return!1;if(this.isMultiline&&this.data&&this.value!=null&&this.data.validValueRegexp&&!RegExp("^"+this.data.validValueRegexp+"$").test(this.input.value))return this.input.autoValidate=!1,this.invalid=!0,!1;this.input.autoValidate=!0;return this.input.validate()};
_.z.valueChanged=function(){var K,X;if(((K=this.data)==null?0:K.value)||((X=this.data)==null?void 0:X.value)==="")this.value=this.data.value;else{var F;((F=this.data)==null?void 0:F.value)!==void 0||this.value||(this.value="")}};
_.z.computeLabel=function(K,X){return X?"":_.lj(K)};
_.z.computeAriaLabel=function(K,X){return X?_.lj(K):""};
_.z.computeErrorMessage=function(K,X,F,P){!K&&X?K=F||this.strings.REQUIRED_LABEL:(K=_.lj(P),K=_.qq(K,"&")?"document"in _.FP?sSl(K):zql(K):K);return K};
_.z.computeType=function(K){return K==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.z.onTextValueChanged=function(K){this.value=K.detail.value;var X;(X=this.onValueChanged)==null||X.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.z.handleUpdateTextInputFormFieldRendererCommand=function(K){(K=_.T(K,pLO))&&this.data&&this.data.id===K.id&&(K.invalid!==void 0&&(this.invalid=K.invalid),K.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",K.invalidValueErrorMessage))};
_.z.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R9("value-changed",this.value))};
_.z.updateInvalidFromBinding=function(K){this.invalid=K.detail.value};
_.Oi.Object.defineProperties(wo.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var K;return!((K=this.data)==null||!K.isMultiline)}}});
wo.prototype.valueChangedForBinding=wo.prototype.valueChangedForBinding;wo.prototype.valueChanged=wo.prototype.valueChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],wo.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],wo.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],wo.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],wo.prototype,"data",void 0);_.O([_.h(),_.g("design:type",String)],wo.prototype,"value",void 0);_.O([_.h(),_.g("design:type",String)],wo.prototype,"pattern",void 0);_.O([_.h(),_.g("design:type",String)],wo.prototype,"errorMessage",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],wo.prototype,"componentStyle",void 0);_.O([_.h(),_.g("design:type",Object)],wo.prototype,"hideCharCounter",void 0);
_.O([_.h(),_.g("design:type",Object)],wo.prototype,"hideLabel",void 0);_.O([_.h(),_.g("design:type",Object)],wo.prototype,"noLabelFloat",void 0);_.O([_.h(),_.g("design:type",Function)],wo.prototype,"onValueChanged",void 0);_.O([_.h(),_.g("design:type",Boolean)],wo.prototype,"isMultilineOverride",void 0);_.O([_.h(),_.g("design:type",Object)],wo.prototype,"autoValidate",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],wo.prototype,"invalid",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],wo.prototype,"disabled",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],wo.prototype,"enableOverlayTheme",void 0);_.O([_.h({value:{REQUIRED_LABEL:_.uY("REQUIRED_LABEL",void 0,"Required")}}),_.g("design:type",Object)],wo.prototype,"strings",void 0);_.O([_.fa("#input"),_.g("design:type",Object)],wo.prototype,"input",void 0);
_.O([_.U("data","isMultilineOverride"),_.g("design:type",Object),_.g("design:paramtypes",[])],wo.prototype,"isMultiline",null);_.O([_.JA("data.value"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],wo.prototype,"valueChanged",null);_.O([_.so("value"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],wo.prototype,"valueChangedForBinding",null);wo=_.O([_.Tb({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],wo);
_.t(wo,"yt-text-input-form-field-renderer",function(){if(J$U===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;qCL===void 0&&(qCL=document.createElement("template"));var P=qCL;F.call(X,P.content.cloneNode(!0),K.content.firstChild);J$U=K}K=J$U;return K},{mode:2});var ya=function(){var K=_.G.apply(this,arguments)||this;K.data=void 0;K.selectionState="START_DATE";K.isStartDateInvalid=!1;K.isEndDateInvalid=!1;K.autoapply=!1;K.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 K};
_.r(ya,_.G);_.z=ya.prototype;_.z.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.applyButton":{id:"apply-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.z.focus=function(){this.startDateInput.focus()};
_.z.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:Q$(this.data.selection.start),end:Q$(this.data.selection.end)})};
_.z.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.z.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.zJ(this.selectionState)}};
_.z.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.z.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.z.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.z.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var K=this.calendar.calendarConfig,X=K.end;K=PEO({start:K.start,end:this.endDate||X},this.startDateInput.value||"");this.isStartDateInvalid=!K.isValid;K.isValid&&(K=K.value,this.selection=this.endDate?{start:K,end:this.endDate}:K,this.calendar.scrollToDate(K));this.updateInvalidState()}};
_.z.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var K=this.calendar.calendarConfig,X=K.start;K=PEO({start:this.startDate||X,end:K.end},this.endDateInput.value||"");this.isEndDateInvalid=!K.isValid;K.isValid&&(K=K.value,this.selection={start:this.startDate,end:K},this.calendar.scrollToDate(K));this.updateInvalidState()}};
_.z.handleCalendarDateClicked=function(K){var X=this.selection&&x89(this.selection),F=this.selection&&Iyl(this.selection);X&&!YR(K,X)&&this.selectionState==="END_DATE"?(this.selection={start:X,end:K},this.selectionState="START_DATE"):(F&&!YR(F,K)?this.selection={start:K,end:F}:this.selection=K,this.selectionState="END_DATE")};
_.z.handleCalendarDateMouseDown=function(K){this.selection&&!Nyl(this.selection)&&(this.dragPivot=ZV(K,this.selection.start)?this.selection.end:ZV(K,this.selection.end)?this.selection.start:K)};
_.z.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.z.handleCalendarDateMouseEnter=function(K){this.dragPivot&&(this.selection={start:function(X,F){return YR(X,F)?X:F}(this.dragPivot,K),
end:function(X,F){return YR(X,F)?F:X}(this.dragPivot,K)},this.dragPivot||(this.selectionState="START_DATE"))};
_.z.handleCalendarDateMouseLeave=function(){};
_.z.handleCalendarSubmitDateRange=function(){this.selection&&!Nyl(this.selection)&&_.xr(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.z.updateInvalidState=function(){var K=function(X,F){F?X.setAttribute("invalid",""):X.removeAttribute("invalid")};
K(this.startDateInput,this.isStartDateInvalid);K(this.endDateInput,this.isEndDateInvalid)};
_.z.updateDateStrings=function(){this.selection&&(Nyl(this.selection)?CgO(this.selection):(CgO(this.selection.start),CgO(this.selection.end)))};
_.z.updateCalendarSelection=function(K){this.calendar.updateSelection(Object.assign({},K,{selectionState:this.selectionState}))};
_.z.updateIsStartDateInvalidFromBinding=function(K){this.isStartDateInvalid=K.detail.value};
_.z.updateIsEndDateInvalidFromBinding=function(K){this.isEndDateInvalid=K.detail.value};
_.z.updateStartDateStringFromBinding=function(){};
_.z.updateEndDateStringFromBinding=function(){};
_.Oi.Object.defineProperties(ya.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:Q$(this.data.dateRangeStart),end:Q$(this.data.dateRangeEnd),selection:{start:Q$(this.data.selection.start),end:Q$(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&x89(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&Iyl(this.selection)}}});
ya.prototype.resetTextboxes=ya.prototype.resetTextboxes;ya.prototype.observeSelection=ya.prototype.observeSelection;ya.prototype.dataChanged=ya.prototype.dataChanged;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],ya.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],ya.prototype,"ytRendererstamperBehavior",void 0);_.O([_.fa("#calendar"),_.g("design:type",Object)],ya.prototype,"calendar",void 0);
_.O([_.fa("#start-date"),_.g("design:type",Object)],ya.prototype,"startDateInput",void 0);_.O([_.fa("#end-date"),_.g("design:type",Object)],ya.prototype,"endDateInput",void 0);_.O([_.h(),_.g("design:type",Object)],ya.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],ya.prototype,"selection",void 0);_.O([_.h(),_.g("design:type",String)],ya.prototype,"selectionState",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],ya.prototype,"calendarConfig",null);
_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],ya.prototype,"errorMessage",null);_.O([_.U("selection"),_.g("design:type",Object),_.g("design:paramtypes",[])],ya.prototype,"startDate",null);_.O([_.U("selection"),_.g("design:type",Object),_.g("design:paramtypes",[])],ya.prototype,"endDate",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ya.prototype,"dataChanged",null);
_.O([_.so("selection","selectionState"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ya.prototype,"observeSelection",null);_.O([_.so("selectionState"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ya.prototype,"resetTextboxes",null);ya=_.O([_.v({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],ya);
_.t(ya,"ytd-date-period-picker-renderer",function(){if(fxL!==void 0)return fxL;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return fxL=K},{mode:1});var W8=function(){var K=_.G.apply(this,arguments)||this;var X={};K.actionMap=(X["ytd-date-period-picker-apply"]="handleDateRangeUpdated",X);return K};
_.r(W8,_.G);W8.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
W8.prototype.handleDateRangeUpdated=function(){};
_.O([_.h(),_.g("design:type",Object)],W8.prototype,"data",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],W8.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],W8.prototype,"rendererstamperBehavior",void 0);W8=_.O([_.v({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],W8);
_.t(W8,"ytd-report-history-section-header-renderer",function(){if(zJE!==void 0)return zJE;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return zJE=K},{mode:1});var ZoL;var YCZ;var QHL;var e5=function(){return _.G.apply(this,arguments)||this};
_.r(e5,_.G);_.Oi.Object.defineProperties(e5.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.data)==null?0:(X=K.icon)==null?0:X.iconType)?_.Fl(this.data.icon.iconType):""}}});
_.O([_.h(),_.g("design:type",Object)],e5.prototype,"data",void 0);_.O([_.U("data"),_.g("design:type",String),_.g("design:paramtypes",[])],e5.prototype,"icon",null);e5=_.O([_.v({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],e5);
_.t(e5,"ytd-report-history-table-text-cell-renderer",function(){if(QHL!==void 0)return QHL;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return QHL=K},{mode:1});var Rd=function(){return _.G.apply(this,arguments)||this};
_.r(Rd,_.G);Rd.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Rd.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Rd.prototype,"data",void 0);Rd=_.O([_.v({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],Rd);
_.t(Rd,"ytd-report-history-table-reason-cell-renderer",function(){if(YCZ!==void 0)return YCZ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return YCZ=K},{mode:1});var U4=function(){return _.G.apply(this,arguments)||this};
_.r(U4,_.G);U4.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"}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],U4.prototype,"rendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],U4.prototype,"data",void 0);U4=_.O([_.v({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],U4);
_.t(U4,"ytd-report-history-table-cell-renderer",function(){if(ZoL!==void 0)return ZoL;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);
return ZoL=K},{mode:1});var MfV;var hn=function(){var K=_.G.apply(this,arguments)||this;K.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 K};
_.r(hn,_.G);hn.prototype.onDataChanged=function(){var K;if((K=this.data)==null?0:K.style)this.componentStyle=this.getStyleName(this.data.style)};
hn.prototype.getCellForColumn=function(K){return this.cells.find(function(X){var F;return((F=_.T(X==null?void 0:X.cell,FDE)||_.T(X==null?void 0:X.cell,XzL))==null?void 0:F.columnId)===K.type})};
hn.prototype.getClassForColumn=function(K){switch(K){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
hn.prototype.getStyleName=function(K){switch(K){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.Oi.Object.defineProperties(hn.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var K;return(((K=this.data)==null?void 0:K.cells)||[]).map(function(X){return _.T(X,KDQ)})}}});
hn.prototype.onDataChanged=hn.prototype.onDataChanged;_.O([_.h(),_.g("design:type",Object)],hn.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Array)],hn.prototype,"columnRenderData",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],hn.prototype,"componentStyle",void 0);_.O([_.U("data"),_.g("design:type",Array),_.g("design:paramtypes",[])],hn.prototype,"cells",null);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],hn.prototype,"onDataChanged",null);hn=_.O([_.v({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],hn);
_.t(hn,"ytd-report-history-table-row-renderer",function(){if(MfV!==void 0)return MfV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return MfV=K},{mode:1});var nTZ;var c$W;var HeP={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},sld={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var mT=function(){return _.G.apply(this,arguments)||this};
_.r(mT,_.G);mT.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"}}}}}};
mT.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.Oi.Object.defineProperties(mT.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?0:K.columns)?qkw(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return Dpn(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var K=this.tableSpec,X=HeP;X=X===void 0?sld:X;X=ubM(K.columnDimensions,K.columnsToShow||[],X);K=0;X=_.D(X);for(var F=X.next();!F.done;F=X.next())F=F.value,K+=F.minWidth+F.paddingLeft+F.paddingRight;return K}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.O([_.W(_.eG),_.g("design:type",Object)],mT.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],mT.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],mT.prototype,"data",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],mT.prototype,"tableSpec",null);_.O([_.U("tableSpec"),_.g("design:type",Array),_.g("design:paramtypes",[])],mT.prototype,"columnRenderData",null);
_.O([_.U("tableSpec"),_.g("design:type",Number),_.g("design:paramtypes",[])],mT.prototype,"totalMinWidth",null);_.O([_.U("totalMinWidth"),_.g("design:type",String),_.g("design:paramtypes",[])],mT.prototype,"tableWidthStyle",null);mT=_.O([_.v({is:"ytd-table-renderer",disableElementRegistration:!0})],mT);
_.t(mT,"ytd-table-renderer",function(){if(c$W!==void 0)return c$W;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return c$W=K},{mode:1});var Gg=function(){return _.G.apply(this,arguments)||this};
_.r(Gg,_.G);Gg.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}}}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Gg.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Gg.prototype,"data",void 0);Gg=_.O([_.v({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],Gg);
_.t(Gg,"ytd-report-reason-history-modal-renderer",function(){if(nTZ!==void 0)return nTZ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return nTZ=K},{mode:1});var ptC;var BOL;var SCU;var lh=function(){return _.G.apply(this,arguments)||this};
_.r(lh,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],lh.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],lh.prototype,"data",void 0);lh=_.O([_.v({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],lh);
_.t(lh,"ytd-profile-column-stats-entry-renderer",function(){if(SCU!==void 0)return SCU;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return SCU=K},{mode:1});var oTO;var v8=function(){return _.G.apply(this,arguments)||this};
_.r(v8,_.G);v8.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],v8.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],v8.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],v8.prototype,"data",void 0);v8=_.O([_.v({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],v8);
_.t(v8,"ytd-profile-column-stats-renderer",function(){if(oTO!==void 0)return oTO;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return oTO=K},{mode:1});var LpO;var ad=function(){return _.G.apply(this,arguments)||this};
_.r(ad,_.G);_.Oi.Object.defineProperties(ad.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)==null||!K.useThumbnailSize)return 80;var X,F;K=(X=this.data)==null?void 0:(F=X.thumbnail)==null?void 0:F.thumbnails;var P;return K&&((P=K[0])==null?void 0:P.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)==null||!K.useThumbnailSize)return 80;var X,F;K=(X=this.data)==null?void 0:(F=X.thumbnail)==null?void 0:F.thumbnails;var P;return K&&((P=K[0])==null?void 0:P.height)||80}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ad.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],ad.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],ad.prototype,"componentStyle",void 0);_.O([_.U("data.useThumbnailSize"),_.g("design:type",Object),_.g("design:paramtypes",[])],ad.prototype,"thumbnailWidth",null);
_.O([_.U("data.useThumbnailSize"),_.g("design:type",Object),_.g("design:paramtypes",[])],ad.prototype,"thumbnailHeight",null);ad=_.O([_.v({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],ad);
_.t(ad,"ytd-profile-column-user-info-renderer",function(){if(LpO!==void 0)return LpO;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return LpO=K},{mode:1});var tn=function(){return _.G.apply(this,arguments)||this};
_.r(tn,_.G);tn.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]]"}}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],tn.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],tn.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],tn.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],tn.prototype,"componentStyle",void 0);tn=_.O([_.v({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],tn);
_.t(tn,"ytd-profile-column-renderer",function(){if(BOL!==void 0)return BOL;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return BOL=K},{mode:1});var $J=function(){var K=_.G.apply(this,arguments)||this;K.componentStyle="NON_CENTERED_PROFILE";return K};
_.r($J,_.G);$J.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
$J.prototype.getIcon=function(K){return K?"settings:"+K.toLowerCase():null};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],$J.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],$J.prototype,"data",void 0);$J=_.O([_.v({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],$J);
_.t($J,"ytd-page-introduction-renderer",function(){if(ptC!==void 0)return ptC;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return ptC=K},{mode:1});var TOZ;var O4=function(){return _.G.apply(this,arguments)||this};
_.r(O4,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],O4.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],O4.prototype,"data",void 0);O4=_.O([_.v({is:"ytd-report-description-renderer",disableElementRegistration:!0})],O4);
_.t(O4,"ytd-report-description-renderer",function(){if(TOZ!==void 0)return TOZ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return TOZ=K},{mode:1});var r$u;var A$V;var Va=function(){return _.G.apply(this,arguments)||this};
_.r(Va,_.G);Va.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Va.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Va.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Va.prototype,"data",void 0);Va=_.O([_.v({is:"ytd-video-report-renderer",disableElementRegistration:!0})],Va);
_.t(Va,"ytd-video-report-renderer",function(){if(A$V!==void 0)return A$V;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return A$V=K},{mode:1});var jHt;_.L4("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.L4("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var go=function(){return _.G.apply(this,arguments)||this};
_.r(go,_.G);go.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]]"}}}}}};
go.prototype.computeMessageStyle=function(K){return K};
go.prototype.computeButtonOverride=function(K){var X;if((K==null?0:(X=K.style)==null?0:X.value)&&K.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],go.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],go.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],go.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],go.prototype,"shelf",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],go.prototype,"panel",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.g("design:type",Boolean)],go.prototype,"componentStyle",void 0);_.O([_.h({computed:"computeButtonOverride(data)"}),_.g("design:type",Object)],go.prototype,"buttonOverride",void 0);go=_.O([_.v({is:"ytd-message-renderer",disableElementRegistration:!0})],go);
_.t(go,"ytd-message-renderer",function(){if(jHt!==void 0)return jHt;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return jHt=K},{mode:1});var E4=function(){return _.G.apply(this,arguments)||this};
_.r(E4,_.G);E4.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"}}}};
E4.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
E4.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.Oi.Object.defineProperties(E4.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var K,X;return!!(((K=this.data)==null?0:K.header)&&((X=this.data)==null?0:X.table))}}});
E4.prototype.onRequestError=E4.prototype.onRequestError;_.O([_.W(_.eG),_.g("design:type",Object)],E4.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],E4.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],E4.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],E4.prototype,"data",void 0);
_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],E4.prototype,"isUnifiedReportHistory",null);_.O([_.Hc("yt-service-request-error"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],E4.prototype,"onRequestError",null);E4=_.O([_.v({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],E4);
_.t(E4,"ytd-report-history-section-renderer",function(){if(r$u!==void 0)return r$u;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return r$u=K},{mode:1});var wtE;var bh=function(){var K=_.G.apply(this,arguments)||this;K.answerExpanded=!1;return K};
_.r(bh,_.G);bh.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],bh.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],bh.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],bh.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],bh.prototype,"answerExpanded",void 0);bh=_.O([_.v({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],bh);
_.t(bh,"ytd-handles-claiming-faq-renderer",function(){if(wtE!==void 0)return wtE;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return wtE=K},{mode:1});var y$O;var CF=function(){return _.G.apply(this,arguments)||this};
_.r(CF,_.G);_.O([_.h(),_.g("design:type",Object)],CF.prototype,"data",void 0);CF=_.O([_.v({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],CF);
_.t(CF,"ytd-handles-claiming-faq-section-renderer",function(){if(y$O!==void 0)return y$O;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return y$O=K},{mode:1});var Wpu;var Nk=function(){var K=_.G.apply(this,arguments)||this;K.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";K.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";K.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";K.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";K.leftSquiggly=K.leftSquigglyLight;K.rightSquiggly=K.rightSquigglyLight;
K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};K.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return K};
_.r(Nk,_.G);_.z=Nk.prototype;_.z.updateLeftSquigglyStyle=function(){_.XU(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.z.updateRightSquigglyStyle=function(){_.XU(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.z.ready=function(){var K=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(K)};
_.z.onDarkModeToggledAction=function(K){K!==this.isDarkTheme&&(this.set("isDarkTheme",K),K?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.z.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
Nk.prototype.updateRightSquigglyStyle=Nk.prototype.updateRightSquigglyStyle;Nk.prototype.updateLeftSquigglyStyle=Nk.prototype.updateLeftSquigglyStyle;_.O([_.h(),_.g("design:type",Object)],Nk.prototype,"data",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],Nk.prototype,"isDarkTheme",void 0);_.O([_.h(),_.g("design:type",String)],Nk.prototype,"leftSquiggly",void 0);_.O([_.h(),_.g("design:type",String)],Nk.prototype,"rightSquiggly",void 0);
_.O([_.so("leftSquiggly"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Nk.prototype,"updateLeftSquigglyStyle",null);_.O([_.so("rightSquiggly"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Nk.prototype,"updateRightSquigglyStyle",null);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Nk.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Nk.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Nk.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Nk.prototype,"actionButtonOverride",void 0);Nk=_.O([_.v({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],Nk);
_.t(Nk,"ytd-handles-claiming-header-renderer",function(){if(Wpu!==void 0)return Wpu;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return Wpu=K},{mode:1});var d7u;var ih=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};K.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";K.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";K.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";K.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
K.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";K.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";K.image0SquigglyBackground=K.image0LightSquigglyBackground;K.image1SquigglyBackground=K.image1LightSquigglyBackground;K.image3SquigglyBackground=K.image3LightSquigglyBackground;return K};
_.r(ih,_.G);_.z=ih.prototype;_.z.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.z.onDataChanged=function(){this.updateTitleAndImages()};
_.z.onThemeChanged=function(){this.updateTitleAndImages()};
_.z.onDarkModeToggledAction=function(K){K!==this.isDarkTheme&&(this.isDarkTheme=K)};
_.z.updateImage0SquigglyBackground=function(){_.XU(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.z.updateImage1SquigglyBackground=function(){_.XU(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.z.updateImage3SquigglyBackground=function(){_.XU(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.z.updateTitleAndImages=function(){var K,X;((K=this.data)==null?void 0:(X=K.titleImages)==null?void 0:X.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))};
ih.prototype.updateImage3SquigglyBackground=ih.prototype.updateImage3SquigglyBackground;ih.prototype.updateImage1SquigglyBackground=ih.prototype.updateImage1SquigglyBackground;ih.prototype.updateImage0SquigglyBackground=ih.prototype.updateImage0SquigglyBackground;ih.prototype.onThemeChanged=ih.prototype.onThemeChanged;ih.prototype.onDataChanged=ih.prototype.onDataChanged;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],ih.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],ih.prototype,"isDarkTheme",void 0);_.O([_.h(),_.g("design:type",Object)],ih.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],ih.prototype,"title0",void 0);_.O([_.h(),_.g("design:type",Object)],ih.prototype,"title1",void 0);_.O([_.h(),_.g("design:type",Object)],ih.prototype,"title2",void 0);_.O([_.h(),_.g("design:type",Object)],ih.prototype,"title3",void 0);
_.O([_.h(),_.g("design:type",Object)],ih.prototype,"title4",void 0);_.O([_.h(),_.g("design:type",Object)],ih.prototype,"image0",void 0);_.O([_.h(),_.g("design:type",Object)],ih.prototype,"image1",void 0);_.O([_.h(),_.g("design:type",Object)],ih.prototype,"image2",void 0);_.O([_.h(),_.g("design:type",Object)],ih.prototype,"image3",void 0);_.O([_.h(),_.g("design:type",Object)],ih.prototype,"image4",void 0);_.O([_.h(),_.g("design:type",String)],ih.prototype,"image0SquigglyBackground",void 0);
_.O([_.h(),_.g("design:type",String)],ih.prototype,"image1SquigglyBackground",void 0);_.O([_.h(),_.g("design:type",String)],ih.prototype,"image3SquigglyBackground",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ih.prototype,"onDataChanged",null);_.O([_.so("isDarkTheme"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ih.prototype,"onThemeChanged",null);
_.O([_.so("image0SquigglyBackground"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ih.prototype,"updateImage0SquigglyBackground",null);_.O([_.so("image1SquigglyBackground"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ih.prototype,"updateImage1SquigglyBackground",null);
_.O([_.so("image3SquigglyBackground"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ih.prototype,"updateImage3SquigglyBackground",null);ih=_.O([_.v({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],ih);
_.t(ih,"ytd-handles-claiming-title-images-section-renderer",function(){if(d7u!==void 0)return d7u;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return d7u=K},{mode:1});var eJL;var xJ=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return K};
_.r(xJ,_.G);xJ.prototype.ready=function(){var K=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(K)};
xJ.prototype.onDarkModeToggledAction=function(K){K!==this.isDarkTheme&&this.set("isDarkTheme",K)};
xJ.prototype.onCopyButtonClick=function(){var K=this,X,F,P;return _.q(function(H){return(X=K.data)!=null&&X.primaryChannelUrl?_.Y(H,navigator.clipboard.writeText(((F=K.data)==null?0:F.encodedChannelUrl)?K.data.encodedChannelUrl:"https://"+_.lj((P=K.data)==null?void 0:P.primaryChannelUrl)),0):H.jumpTo(0)})};
_.O([_.h(),_.g("design:type",Object)],xJ.prototype,"data",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],xJ.prototype,"ytComponentBehavior",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],xJ.prototype,"isDarkTheme",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],xJ.prototype,"ytActionHandlerBehavior",void 0);xJ=_.O([_.v({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],xJ);
_.t(xJ,"ytd-handles-claiming-update-social-renderer",function(){if(eJL!==void 0)return eJL;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return eJL=K},{mode:1});var RJC;var Id=function(){var K=_.G.apply(this,arguments)||this;K.JSC$13915_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";K.JSC$13915_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};K.squigglyBackground=K.JSC$13915_squigglyBackgroundLight;return K};
_.r(Id,_.G);Id.prototype.updateSquigglyBackgroundStyle=function(){_.XU(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
Id.prototype.ready=function(){var K=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",K);this.squigglyBackground=K?this.JSC$13915_squigglyBackgroundDark:this.JSC$13915_squigglyBackgroundLight};
Id.prototype.onDarkModeToggledAction=function(K){K!==this.isDarkTheme&&(this.set("isDarkTheme",K),this.squigglyBackground=K?this.JSC$13915_squigglyBackgroundDark:this.JSC$13915_squigglyBackgroundLight)};
Id.prototype.updateSquigglyBackgroundStyle=Id.prototype.updateSquigglyBackgroundStyle;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Id.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Id.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Id.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Id.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],Id.prototype,"isDarkTheme",void 0);_.O([_.h(),_.g("design:type",String)],Id.prototype,"squigglyBackground",void 0);_.O([_.so("squigglyBackground"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Id.prototype,"updateSquigglyBackgroundStyle",null);Id=_.O([_.v({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],Id);
_.t(Id,"ytd-handles-claiming-vanity-info-renderer",function(){if(RJC!==void 0)return RJC;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return RJC=K},{mode:1});var U7t;var kJ=function(){var K=_.G.apply(this,arguments)||this;K.JSC$13918_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";K.JSC$13918_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";K.squigglyBackground=K.JSC$13918_squigglyBackgroundLight;K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return K};
_.r(kJ,_.G);_.z=kJ.prototype;_.z.ready=function(){var K=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(K)};
_.z.onDarkModeToggledAction=function(K){K!==this.isDarkTheme&&(this.set("isDarkTheme",K),this.squigglyBackground=K?this.JSC$13918_squigglyBackgroundDark:this.JSC$13918_squigglyBackgroundLight)};
_.z.updateSquigglyBackgroundStyle=function(){_.XU(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.z.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.z.detached=function(){this.stop()};
_.z.stop=function(){this.playerElement.stop()};
_.z.setupVideoPlayer=function(){var K=this,X,F;return _.q(function(P){X=K.data.videoId;F="http://i1.ytimg.com/vi/"+X+"/maxresdefault.jpg";K.playerElement.loadVideoWithPlayerVars({video_id:X,iurlhq:F});_.JT(P)})};
kJ.prototype.onDataChanged=kJ.prototype.onDataChanged;kJ.prototype.updateSquigglyBackgroundStyle=kJ.prototype.updateSquigglyBackgroundStyle;_.O([_.h({value:!1}),_.g("design:type",Boolean)],kJ.prototype,"isDarkTheme",void 0);_.O([_.h(),_.g("design:type",String)],kJ.prototype,"squigglyBackground",void 0);_.O([_.fa("#player"),_.g("design:type",Object)],kJ.prototype,"playerElement",void 0);_.O([_.h(),_.g("design:type",Object)],kJ.prototype,"data",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],kJ.prototype,"ytActionHandlerBehavior",void 0);_.O([_.so("squigglyBackground"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],kJ.prototype,"updateSquigglyBackgroundStyle",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],kJ.prototype,"onDataChanged",null);
kJ=_.O([_.v({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],kJ);
_.t(kJ,"ytd-handles-claiming-video-item-renderer",function(){if(U7t!==void 0)return U7t;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return U7t=K},{mode:1});var hJW;var Xe=function(){var K=_.ub.apply(this,arguments)||this;K.dragging=!1;K.dragMouseStart=0;K.dragOffsetStart=0;K.containerWidthDiff=0;K.boundPrevClick=function(){K.set("offset",KC(K,K.offset-(K.scrollDistance||320)))};
K.boundNextClick=function(){K.set("offset",KC(K,K.offset+(K.scrollDistance||320)))};
K.boundScrollContainerMouseDown=function(X){K.dragMouseStart=X.clientX;K.dragOffsetStart=K.offset;K.dragging=!0};
K.boundScrollContainerDrag=function(X){K.dragging&&K.set("offset",KC(K,K.dragOffsetStart-(X.clientX-K.dragMouseStart)))};
K.boundMouseUp=function(){K.onMouseUp()};
K.boundWheelScroll=function(X){var F=0;Math.abs(X.deltaX)>=Math.abs(X.deltaY)?F=X.deltaX:X.shiftKey&&(F=X.deltaY);F!==0&&(K.offset+=F,X.stopPropagation(),X.preventDefault())};
K.boundChipCloudChipScrollIntoView=function(X){(X=X.detail)&&K.scrollChipIntoView(X)};
return K};
_.r(Xe,_.ub);Xe.prototype.attached=function(){var K=_.C$(this.hostElement).querySelector("#scroll-container");K.addEventListener("wheel",this.boundWheelScroll);K.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);K.style.touchAction="pan-y";K.addEventListener("pointerdown",this.boundScrollContainerMouseDown);K.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
Xe.prototype.detached=function(){var K=_.C$(this.hostElement).querySelector("#scroll-container");K.removeEventListener("wheel",this.boundWheelScroll);K.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);K.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);K.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
Xe.prototype.reset=function(){this.set("offset",0);_.tg(this,this.setContainerWidthDiff);Fe(this)};
var KC=function(K,X){return Math.min(Math.max(X,0),K.containerWidthDiff)};
Xe.prototype.onMouseUp=function(){this.dragging=!1};
Xe.prototype.transformContainer=function(){this.offset=KC(this,this.offset);var K=_.e8("HTML_DIR")==="rtl"?"":"-";_.C$(this.hostElement).querySelector("#chips").style.transform="translateX("+K+this.offset+"px)";Fe(this)};
var Fe=function(K){_.tg(K,K.setButtonsState)};
Xe.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=KC(this,this.offset));this.atStart=this.offset<=0};
Xe.prototype.setContainerWidthDiff=function(){var K=_.C$(this.hostElement).querySelector("#scroll-container"),X=_.C$(this.hostElement).querySelector("#chips");K&&X&&(this.containerWidthDiff=X.clientWidth-K.clientWidth)};
Xe.prototype.scrollChipIntoView=function(K){var X=_.C$(this.hostElement).querySelector("#scroll-container");if(X){var F=this.atStart?0:106,P=this.atEnd?0:106;K.offsetLeft<this.offset+F?this.offset=KC(this,K.offsetLeft-F):K.offsetLeft+K.clientWidth>this.offset+X.clientWidth-P&&(this.offset=KC(this,K.offsetLeft+K.clientWidth+P-X.clientWidth))}};
Xe.prototype.transformContainer=Xe.prototype.transformContainer;_.O([_.h({value:0}),_.g("design:type",Number)],Xe.prototype,"offset",void 0);_.O([_.h({value:!0,reflectToAttribute:!0}),_.g("design:type",Boolean)],Xe.prototype,"atStart",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],Xe.prototype,"atEnd",void 0);_.O([_.h(),_.g("design:type",Number)],Xe.prototype,"scrollDistance",void 0);
_.O([_.so("offset"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Xe.prototype,"transformContainer",null);Xe=_.O([_.qY()],Xe);var m7C;var GqT;var axO=_.$c(function(K){var X=K.data;K=_.D(_.u_(!1,void 0,"icHmSe"));var F=K.next().value,P=K.next().value;K={};K=_.HO("ytChipShapeChip",function(){a:switch(X==null?void 0:X().state){case 0:var f="ytChipShapeActive";break a;case 1:f="ytChipShapeDisabled";break a;default:f="ytChipShapeInactive"}return f},function(){var f=X().type===1||X().type===2,u=X();
return f||u!=null&&u.startIcon?u==null||!u.startIcon||u!=null&&u.text?f?"ytChipShapeEndIconPadding":(u==null?0:u.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(K.ytChipShapeFocused=function(){var f;
return F()&&((f=X())==null?void 0:f.state)!==1},K));
var H=function(f){if((X==null?void 0:X().state)!==1){var u,J;(J=(u=X()).onTap)==null||J.call(u,f)}};
return _.Q("chip-shape",{class:"ytChipShapeHost","on:focusin":_.DF(function(){var f=_.i9().resolve(_.Nu(_.Iu));if(f){P(f.isKeyBoardInUse());var u,J;(J=(u=X()).onFocusIn)==null||J.call(u)}return!1}),
"on:focusout":_.DF(function(){P(!1);return!1})},_.Q(lxO,{shouldWrapInButton:function(){return X().type!==2},
selected:function(){return X().state===0},
onClick:H,isDropdown:function(){return X().type===1},
accessibilityLabel:function(){return X().accessibilityLabel}},_.Q("div",{class:K},_.Q(_.p,{cond:function(){return X().startIcon},
then:function(){return _.Q(_.ZF,{icon:function(){var f;return(f=X())==null?void 0:f.startIcon},
className:function(){return X().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return X().text},_.Q(vTN,{shape:X,
onClick:H}))))},"zb");
axO.idomCompat=!0;var lxO=_.$c(function(K){var X=_.DF(function(F){K.onClick(F);return!1});
return _.Q(_.p,{cond:K.shouldWrapInButton,then:function(){return _.Q("button",{class:"ytChipShapeButtonReset","on:click":X,role:function(){return K.isDropdown()?"combobox":"tab"},
"aria-label":K.accessibilityLabel,"aria-selected":K.selected},K.children)},
else:function(){return K.children}})},"Ab"),vTN=_.$c(function(K){var X=K.shape;
var F=K.onClick;var P=_.DF(function(H){F(H);return!1});
return _.Q(_.S8,null,_.Q(_.p9,{when:function(){return X().type===1}},function(){return _.Q(_.ZF,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.Q(_.p9,{when:function(){return X().type===2}},function(){return _.Q("button",{class:"ytChipShapeButtonReset",
"on:click":P},_.Q(_.ZF,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.Q(_.p9,{when:function(){return X().type===0}},function(){return _.Q(_.ID,null)}))},"Bb");_.EP(axO,"chip-shape",{props:{data:_.vU}});var Pi=function(){var K=_.G.apply(this,arguments)||this;K.disableDeselectEvent=!1;K.modern=_.S("web_modern_typography");K.useChipShape=_.S("web_chip_shape_defrag");K.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return K};
_.r(Pi,_.G);_.z=Pi.prototype;_.z.beforeRegister=function(){_.S("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.z.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.z.onSelectChipCommand=function(K){if(!this.selected&&this.data&&(K=_.T(K,uXE),K.targetId&&K.targetId===this.data.targetId))this.onTap()};
_.z.onFilterChipTransformCommand=function(K){if(!this.selected&&this.data){var X;(K=(X=_.T(K,ZkE))==null?void 0:X.chipUniqueId)&&K===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.z.dataChanged=function(){var K=this;_.tg(this,function(){K.data&&K.data.isSelected&&!K.selected&&(K.scrollChipIntoView(),K.onTap())})};
_.z.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.z.computeChipStyle=function(K){return K!=null?K:"STYLE_DEFAULT"};
_.z.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.xr(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.xr(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.z.onFocus=function(){var K=_.i9().resolve(_.Nu(_.Iu));K&&K.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.z.scrollChipIntoView=function(){_.iX(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.Oi.Object.defineProperties(Pi.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return nKq({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
Pi.prototype.onFocus=Pi.prototype.onFocus;Pi.prototype.onTap=Pi.prototype.onTap;Pi.prototype.selectionChanged=Pi.prototype.selectionChanged;Pi.prototype.dataChanged=Pi.prototype.dataChanged;_.O([_.W(_.Q5),_.g("design:type",Object)],Pi.prototype,"ironButtonState",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Pi.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Pi.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Pi.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.JP),_.g("design:type",Object)],Pi.prototype,"ironA11yKeysBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Pi.prototype,"disableDeselectEvent",void 0);_.O([_.h(),_.g("design:type",Object)],Pi.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("data.icon"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Pi.prototype,"hasIcon",null);
_.O([_.h({reflectToAttribute:!0}),_.U("data.uniqueId"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Pi.prototype,"isGnomeChip",null);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Pi.prototype,"modern",void 0);_.O([_.h({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.g("design:type",String)],Pi.prototype,"chipStyle",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],Pi.prototype,"selected",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Pi.prototype,"useChipShape",void 0);_.O([_.U("data","selected"),_.g("design:type",Object),_.g("design:paramtypes",[])],Pi.prototype,"chipShapeData",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Pi.prototype,"dataChanged",null);_.O([_.so("selected"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Pi.prototype,"selectionChanged",null);
_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Pi.prototype,"onTap",null);_.O([_.Hc("focus"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Pi.prototype,"onFocus",null);Pi=_.O([_.Tb({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],Pi);
_.t(Pi,"yt-chip-cloud-chip-renderer",function(){if(GqT===void 0){var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n<div id="chip-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <yt-icon class="leading-icon style-scope yt-chip-cloud-chip-renderer" hidden="[[!hasIcon]]" icon="[[data.icon.iconType]]">\n    </yt-icon>\n    <yt-formatted-string id="text" ellipsis-truncate="" text="[[data.text]]" class="style-scope yt-chip-cloud-chip-renderer">\n    </yt-formatted-string>\n</div>\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;m7C===void 0&&(m7C=document.createElement("template"));var P=m7C;F.call(X,P.content.cloneNode(!0),K.content.firstChild);GqT=K}K=GqT;return K},{mode:2});var Hi=function(){var K=_.G.apply(this,arguments)||this;K.isDarkTheme=!1;K.notSticky=!1;K.transparentBackground=!1;K.shouldHide=!1;K.disableSticky=!1;K.fluidWidth=!1;K.isClipList=!1;K.defaultChipIndex=0;K.isPlaylist=!1;K.playlistVotingAnimationEnabled=_.S("web_enable_voting_animation");K.toolbarHeight=0;K.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return K};
_.r(Hi,_.G);_.z=Hi.prototype;
_.z.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.z.attached=function(){var K=this;document.addEventListener("scroll",_.Pc(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var X;this.toolbarHeight=((X=document.querySelector("ytd-masthead"))==null?void 0:X.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(F){K.handleIntersect(F)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){K.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.z.detached=function(){var K;(K=this.intersectionObserver)==null||K.disconnect();var X;(X=this.resizeObserver)==null||X.disconnect();document.removeEventListener("scroll",_.Pc(this,this.updateChipBarWidthAndTop))};
_.z.dataChanged=function(){var K=this,X,F,P;((P=_.T((X=this.data)==null?void 0:(F=X.contents)==null?void 0:F[0],eLL))==null?void 0:P.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var H=this.findSelectedChipIndex();this.selectedIndex!==H&&(this.selectedIndex=-1);_.tg(this,function(){K.selectedIndex=H;K.updating=!1;K.ytScrollableChipCloudBehavior.reset()})};
_.z.findSelectedChipIndex=function(){var K;if((K=this.data)==null||!K.contents)return 0;K=this.data.contents;for(var X=0;X<K.length;X++){var F=void 0;if((F=_.T(K[X],eLL))==null?0:F.isSelected)return X}return 0};
_.z.computeStyle=function(K){return K};
_.z.handleChipCloudChipSelectAction=function(K){K=this.JSC$13937_chipsSelector.indexOf(K);K>-1&&this.JSC$13937_chipsSelector.selectIndex(K)};
_.z.handleChipCloudChipDeselectAction=function(){if(_.S("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var K,X,F,P=(F=_.T((K=this.data)==null?void 0:(X=K.contents)==null?void 0:X[0],eLL))==null?void 0:F.navigationEndpoint;P&&_.xr(this.hostElement,"yt-browse-section-list-reload-endpoint",[P]);this.JSC$13937_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.z.onGuideIsExpandedChanged=function(){var K=this.ytScrollableChipCloudBehavior;_.tg(K,K.setContainerWidthDiff);Fe(this.ytScrollableChipCloudBehavior)};
_.z.onResize=function(){var K=this.ytScrollableChipCloudBehavior;_.tg(K,K.setContainerWidthDiff);Fe(this.ytScrollableChipCloudBehavior)};
_.z.onDarkModeToggledAction=function(K){this.isDarkTheme=K};
_.z.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.z.handleIntersect=function(K){this.notSticky=this.isChannelPageGrid||this.disableSticky||K[0].intersectionRatio===1};
_.z.updateDimensions=function(){var K=this.ytRendererBehavior.parentComponent;if(K){var X,F=(X=K.headerElement)!=null?X:K;_.XU(this.hostElement,{"--ytd-rich-grid-chips-bar-width":F.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.z.updateSelectedIndexFromBinding=function(K){this.selectedIndex=K.detail.value};
_.z.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var K;(K=this.sortFilterHeaderRendererElement)==null||K.setAttribute("is-playlist-page-with-filters","")}};
_.z.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(ZAL(!this.notSticky))};
_.Oi.Object.defineProperties(Hi.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 K,X,F=(K=this.data)==null?void 0:(X=K.contents)==null?void 0:X.find(function(P){return _.T(P,GOE)});
return{sortFilterHeaderRenderer:_.T(F,GOE)}}}});
Hi.prototype.dispatchChipBarIsSticky=Hi.prototype.dispatchChipBarIsSticky;Hi.prototype.isPlaylistPageChanged=Hi.prototype.isPlaylistPageChanged;Hi.prototype.updateChipBarWidthAndTop=Hi.prototype.updateChipBarWidthAndTop;Hi.prototype.onResize=Hi.prototype.onResize;Hi.prototype.onGuideIsExpandedChanged=Hi.prototype.onGuideIsExpandedChanged;Hi.prototype.dataChanged=Hi.prototype.dataChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Hi.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Hi.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Hi.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.SL),_.g("design:type",Object)],Hi.prototype,"ironResizableBehavior",void 0);_.O([_.W(),_.g("design:type",Xe)],Hi.prototype,"ytScrollableChipCloudBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],Hi.prototype,"ytdReduxBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],Hi.prototype,"data",void 0);_.O([_.h({value:0}),_.g("design:type",Number)],Hi.prototype,"selectedIndex",void 0);_.O([_.h({value:320}),_.g("design:type",Number)],Hi.prototype,"scrollDistance",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Hi.prototype,"isDarkTheme",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Hi.prototype,"notSticky",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Hi.prototype,"transparentBackground",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.g("design:type",String)],Hi.prototype,"componentStyle",void 0);_.O([_.h({selector:_.u5O}),_.g("design:type",Boolean)],Hi.prototype,"guideIsExpanded",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Hi.prototype,"shouldHide",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Hi.prototype,"disableSticky",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Hi.prototype,"fluidWidth",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Hi.prototype,"isClipList",void 0);_.O([_.h(),_.g("design:type",Object)],Hi.prototype,"defaultChipIndex",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Hi.prototype,"isPlaylist",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Hi.prototype,"playlistVotingAnimationEnabled",void 0);_.O([_.fa("#chips"),_.g("design:type",Object)],Hi.prototype,"JSC$13937_chipsSelector",void 0);_.O([_.fa("ytd-sort-filter-header-renderer"),_.g("design:type",HTMLElement)],Hi.prototype,"sortFilterHeaderRendererElement",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],Hi.prototype,"updating",void 0);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Hi.prototype,"dataChanged",null);_.O([_.so("guideIsExpanded"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Hi.prototype,"onGuideIsExpandedChanged",null);_.O([_.Hc("iron-resize"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Hi.prototype,"onResize",null);
_.O([_.JA("isChannelPageGrid","disableSticky","data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Hi.prototype,"updateChipBarWidthAndTop",null);_.O([_.U("componentStyle"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Hi.prototype,"isChannelPageGrid",null);_.O([_.U("componentStyle"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Hi.prototype,"isHashtagLandingPage",null);
_.O([_.so("isPlaylistPage"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Hi.prototype,"isPlaylistPageChanged",null);_.O([_.U("componentStyle"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Hi.prototype,"isPlaylistPage",null);_.O([_.U("componentStyle"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Hi.prototype,"isDisableDeselectEvent",null);
_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],Hi.prototype,"sortFilterHeaderRendererData",null);_.O([_.h({reflectToAttribute:!0,selector:_.n2l}),_.g("design:type",String)],Hi.prototype,"frostedGlassMode",void 0);_.O([_.so("notSticky"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Hi.prototype,"dispatchChipBarIsSticky",null);Hi=_.O([_.v({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],Hi);
_.t(Hi,"ytd-feed-filter-chip-bar-renderer",function(){if(hJW!==void 0)return hJW;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return hJW=K},{mode:1});var tfV;var $7V=_.$c(function(K){var X=K.data;var F=K.buttonIndex;var P=K.selectedIndex;var H=K.onSelect;var f=function(){return F()===P()},u=function(){var J,Z;
return(Z=(J=X().text)==null?void 0:J.content)!=null?Z:""};
K=_.irP();return _.Q("yt-toggleable-image-button-view-model",{class:function(){var J={};J=(J["toggleable-image-button-view-model-wiz"]=!0,J[""]=!0,J["toggleable-image-button-view-model-wiz__semi-transparent"]=P()!==-1&&!f(),J);return _.z9(J)},
tabindex:0,"aria-label":u,"aria-pressed":f,role:"button","on:keydown":K,"on:click":_.DF(function(){H(X().onSubmitCommand);return!1})},_.Q(_.p,{cond:function(){return X().logo},
then:function(J){return _.Q(_.av,{data:J,className:function(){var Z={};Z=(Z["toggleable-image-button-view-model-wiz__image"]=!0,Z["toggleable-image-button-view-model-wiz__circular-radius"]=!(!X().backgroundColor||!X().backgroundColorDarkMode),Z["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(f()&&X().backgroundColor&&X().backgroundColorDarkMode),Z);return _.z9(Z)},
alt:u,useWidth:!1,style:function(){if(f()&&X().backgroundColor&&X().backgroundColorDarkMode){var Z=yh(Number(X().backgroundColorDarkMode),"1");var M=yh(Number(X().backgroundColor),"1");Z="background: linear-gradient(180deg,"+Z+","+M+") border-box;"}else Z="";return Z}})}}),_.Q(_.MB,{model:{borderRadius:"16px"}}),_.Q("p",{class:function(){var J={};
J=(J["toggleable-image-button-view-model-wiz__label"]=!0,J["toggleable-image-button-view-model-wiz__bold-text"]=f(),J);return _.z9(J)}},_.Q(_.Oy,{text:function(){return X().text}})))},"Cb");
$7V.idomCompat=!0;var Vft=_.$c(function(K){var X=K.data;K=_.D(_.u_({index:-1,command:{}},void 0,"Zcqtsb"));var F=K.next().value,P=K.next().value;return _.Q("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.Q("div",{class:"nudge-form-view-model-wiz__form-options"},_.Q(_.Md,{data:function(){return X().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(H,f){return _.Q($7V,{data:H.data,buttonIndex:f,selectedIndex:function(){return F().index},
onSelect:function(u){P({index:f(),command:u})}})}})),_.Q(_.Oy,{text:function(){return X().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.Q("div",{class:"nudge-form-view-model-wiz__submit"},_.Q(_.Md,{data:function(){return X().submitButton}},{buttonViewModel:function(H){return _.Q(OoC,{data:H.data,
isDisabled:function(){return F().index===-1},
onClick:function(){_.e9(F().command)}})}})))},"Db");
Vft.idomCompat=!0;var OoC=_.$c(function(K){var X=_.Qs(function(){return Object.assign({},K.data(),{state:K.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.Q(_.Af,{data:X,onClick:K.onClick})},"Eb");_.EP(Vft,"yt-nudge-form-view-model",{props:{data:_.vU}});var s7=function(){var K=_.G.apply(this,arguments)||this;K.roundedContainer=!0;K.buttonUpdate=_.S("web_modern_buttons");K.isDarkMode=!1;K.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return K};
_.r(s7,_.G);_.z=s7.prototype;_.z.computeNudgeStyle=function(K){return K?"modernized-nudge":""};
_.z.handleDarkModeToggledAction=function(K){this.isDarkMode=K};
_.z.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.z.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{chipCloudChipRenderer:"yt-chip-cloud-chip-renderer",nudgeFormViewModel:"yt-nudge-form-view-model"}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",
mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.z.computeIsHorizontalButtons=function(K){return K?!!K.applyModernizedStyle&&!!K.enableHorizontalButtons&&!!K.secondaryButton:!1};
_.Oi.Object.defineProperties(s7.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var K,X;return(X=(K=this.data)==null?void 0:K.backgroundStyle)!=null?X:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var K,X;return(X=(K=this.data)==null?void 0:K.contentsLocation)!=null?X:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null?0:K.lightIconImage)}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],s7.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],s7.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.yD),_.g("design:type",Object)],s7.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],s7.prototype,"actionHandlerBehavior",void 0);
_.O([_.h({reflectToAttribute:!0}),_.U("isHideEnclosingAction"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],s7.prototype,"isHidden",null);_.O([_.h(),_.g("design:type",Object)],s7.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],s7.prototype,"roundedContainer",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],s7.prototype,"buttonUpdate",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.g("design:type",String)],s7.prototype,"nudgeStyle",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("data.trimStyle"),_.g("design:type",String),_.g("design:paramtypes",[])],s7.prototype,"trimStyle",null);_.O([_.h({reflectToAttribute:!0}),_.U("data.backgroundStyle"),_.g("design:type",String),_.g("design:paramtypes",[])],s7.prototype,"backgroundStyle",null);
_.O([_.h({reflectToAttribute:!0}),_.U("data.contentsLocation"),_.g("design:type",String),_.g("design:paramtypes",[])],s7.prototype,"contentsLocation",null);_.O([_.h({reflectToAttribute:!0}),_.U("data.disableDropShadow"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],s7.prototype,"noShadow",null);_.O([_.h({reflectToAttribute:!0}),_.U("data.lightIconImage"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],s7.prototype,"noIcon",null);
_.O([_.h({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.g("design:type",Boolean)],s7.prototype,"isHorizontalButtons",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Object)],s7.prototype,"isDarkMode",void 0);s7=_.O([_.v({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],s7);
_.t(s7,"ytd-feed-nudge-renderer",function(){if(tfV!==void 0)return tfV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return tfV=K},{mode:_.Ig("kevlar_poly_si_batch_j028")?1:2});var gTC;var ETO;var z2=function(){var K=_.G.apply(this,arguments)||this;K.collapsed=!1;K.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return K};
_.r(z2,_.G);z2.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"}}}};
z2.prototype.handleRatingSelect=function(){var K;((K=this.data)==null?0:K.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
z2.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],z2.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],z2.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],z2.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],z2.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.yD),_.g("design:type",Object)],z2.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],z2.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],z2.prototype,"collapsed",void 0);z2=_.O([_.v({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],z2);
_.t(z2,"ytd-slimline-survey-renderer",function(){if(ETO!==void 0)return ETO;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return ETO=K},{mode:1});var boL;var fC=function(){return _.G.apply(this,arguments)||this};
_.r(fC,_.G);fC.prototype.maybeGetBackgroundColor=function(K){return this.isDarkMode?K.section2Color:K.section3Color};
fC.prototype.colorPaletteChanged=function(){var K=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;K&&(K==null?0:K.secondaryTitleColor)&&this.maybeGetBackgroundColor(K)?(this.hostElement.style.backgroundColor=_.j0(this.maybeGetBackgroundColor(K)),this.hostElement.style.color=_.j0(K.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
fC.prototype.colorPaletteChanged=fC.prototype.colorPaletteChanged;_.O([_.W(_.jn),_.g("design:type",Object)],fC.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],fC.prototype,"data",void 0);_.O([_.h({selector:function(K){return K.ui.darkModeIsEnabled}}),
_.g("design:type",Boolean)],fC.prototype,"isDarkMode",void 0);_.O([_.h(),_.g("design:type",Object)],fC.prototype,"lightColorPalette",void 0);_.O([_.h(),_.g("design:type",Object)],fC.prototype,"darkColorPalette",void 0);_.O([_.so("darkColorPalette","lightColorPalette","data","isDarkMode"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],fC.prototype,"colorPaletteChanged",null);fC=_.O([_.v({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],fC);
_.t(fC,"ytd-endorsement-header-renderer",function(){if(boL!==void 0)return boL;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return boL=K},{mode:1});_.EP(_.SZ,"yt-decorated-avatar-view-model",{props:{data:_.vU,className:_.vU}});var De=function(){var K=_.G.apply(this,arguments)||this;K.fullHeight=_.S("web_rich_grid_media_full_height");K.showChannelAvatar=!0;K.hasPlaylistThumbnail=!1;K.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};K.prepareThumbnailForPageTransition=function(){_.S("web_thumbnail_to_watch_transition")&&(K.thumbnail.style.viewTransitionName="thumbnail-to-watch",K.cleanupThumbnailAfterPageTransition(K.thumbnail))};
return K};
_.r(De,_.G);_.z=De.prototype;
_.z.configureRendererStamper=function(){return{lazyLoadMenu:sG,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"}}}};
_.z.attached=function(){this.updateInlinePreviewHoverListeners()};
_.z.detached=function(){this.clearInlinePreviewHoverListeners()};
_.z.shouldLazyLoadMenu=function(){var K=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.S("kevlar_modern_downloads_page")||!K};
_.z.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13963_inlinePreviewHoverListener=l6({mediaRenderer:this,lockupElement:this.JSC$13963_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.z.getVideoPreviewOpts=function(){var K={},X;if((X=this.data)==null?0:X.multipleInlinePlaybackEndpoint)K=$Jt;this.isRadio&&(K=tlQ);return _.S("web_thumbnail_to_watch_transition")?Object.assign({},K,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):K};
_.z.clearInlinePreviewHoverListeners=function(){var K;(K=this.JSC$13963_inlinePreviewHoverListener)==null||Ny(K)};
_.z.getOwner=function(){var K,X,F;return((K=this.data)==null?void 0:(X=K.channelThumbnailSupportedRenderers)==null?void 0:X.channelThumbnailWithLinkRenderer)||_.T((F=this.data)==null?void 0:F.showProviderChannelThumbnail,THQ)};
_.z.updateLockupSize=function(){var K;((K=this.getOwner())==null?0:K.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.z.getFeedbackEndpoint=function(K){if(_.T(K,_.Tt))return K;var X,F;K=(F=(X=_.T(K,_.PW))==null?void 0:X.commands)!=null?F:[];X=_.D(K);for(F=X.next();!F.done;F=X.next())if(F=this.getFeedbackEndpoint(F.value))return F;return null};
_.z.computeNavigationEndpoint=function(K){return a1P(K==null?void 0:K.navigationEndpoint)};
_.z.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var K=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(K)!==JSON.stringify(this.data)&&this.set("data",K)}};
_.z.onDataChanged=function(){var K=this,X=this.getOwner();if(X){this.set("data.owner",X);var F,P,H,f,u,J=((F=this.data)==null?void 0:(P=F.shortBylineText)==null?void 0:(H=P.runs)==null?void 0:(f=H[0])==null?void 0:f.text)||((u=X.name)==null?void 0:u.simpleText);this.set("data.owner.title",J)}var Z,M,n,c,B,L;X=((Z=this.data)==null?void 0:(M=Z.thumbnailRenderer)==null?void 0:M.playlistVideoThumbnailRenderer)||((n=this.data)==null?void 0:(c=n.thumbnailRenderer)==null?void 0:c.playlistCustomThumbnailRenderer)||
((B=this.data)==null?void 0:(L=B.thumbnailRenderer)==null?void 0:L.showCustomThumbnailRenderer);var A;((A=this.data)==null?0:A.thumbnail)||!X||this.set("data.thumbnail",X.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){K.updateLockupSize()});
var d;if(Z=((d=this.data)==null?void 0:d.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(Z);var R;((R=this.dismissActionToReplayEntity)==null?0:R.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.z.onHiddenChanged=function(){this.updateLockupSize()};
_.z.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.xr(this.hostElement,"yt-terminate-video-preview-action");else{var K;(K=this.videoTitleLink)==null||K.focus()}};
_.z.metadataColorChanged=function(){var K;if(this.metadataColor&&((K=this.videoTitle)==null?0:K.style))this.videoTitle.style.color=_.j0(this.metadataColor);else{var X,F;!this.metadataColor&&((X=this.videoTitle)==null?0:(F=X.style)==null?0:F.color)&&(this.videoTitle.style.color="")}};
_.z.onDetailsClick=function(K){var X=this.computedNavigationEndpoint;X&&(_.lC(_.lN(K),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.iX(this.hostElement,"yt-navigate",{endpoint:X}))};
_.z.cleanupThumbnailAfterPageTransition=function(K){_.CNT(document,"yt-page-type-changed",function(){K.style.viewTransitionName=""})};
_.z.onRendererTap=function(){this.prepareThumbnailForPageTransition();var K,X,F=((K=this.data)==null?void 0:K.serviceEndpoint)||this.getFeedbackEndpoint((X=this.data)==null?void 0:X.navigationEndpoint);F&&_.T(F,_.Tt)&&this.ytComponentBehavior.resolveCommand(F)};
_.z.onMouseDown=function(K){var X=K.target,F=this.computedNavigationEndpoint,P;K=X.href||((P=_.T(F==null?void 0:F.commandMetadata,_.g_))==null?void 0:P.url);P=X.data||F;K&&P&&m59(K,P)};
_.z.computeVideoTitleText=function(){var K;if((K=this.data)==null?0:K.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.z.computeHasPlaylistThumbnail=function(K){var X,F,P,H,f;if((((X=K.thumbnailRenderer)==null?0:X.playlistVideoThumbnailRenderer)||((F=K.thumbnailRenderer)==null?0:F.playlistCustomThumbnailRenderer)||((P=K.thumbnailRenderer)==null?0:P.showCustomThumbnailRenderer)||((H=K.thumbnailRenderer)==null?0:H.playlistVideoThumbnailRenderer)||((f=K.thumbnailRenderer)==null?0:f.playlistCustomThumbnailRenderer))&&K.thumbnailOverlays)for(X=0;X<K.thumbnailOverlays.length;X++)if(F=void 0,(F=K.thumbnailOverlays[X])==
null?0:F.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Oi.Object.defineProperties(De.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.S("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var K;return(K=this.data)==null?void 0:K.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var K;return(K=this.data)==null?void 0:K.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.JSC$13963_inlinePreviewHoverListener)==null?0:rJ(K))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.sm(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.data)==null?void 0:K.videoId)||((X=this.data)==null?void 0:X.playlistId)||""}}});
De.prototype.onMouseDown=De.prototype.onMouseDown;De.prototype.metadataColorChanged=De.prototype.metadataColorChanged;De.prototype.onIsDismissedChanged=De.prototype.onIsDismissedChanged;De.prototype.onHiddenChanged=De.prototype.onHiddenChanged;De.prototype.onDataChanged=De.prototype.onDataChanged;De.prototype.handleReloadDownloadsInfo=De.prototype.handleReloadDownloadsInfo;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],De.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],De.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],De.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.yD),_.g("design:type",Object)],De.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.W(_.mE),_.g("design:type",Object)],De.prototype,"ytdLockupBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],De.prototype,"ytdReduxBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],De.prototype,"data",void 0);_.O([_.h(),_.g("design:type",String)],De.prototype,"entitySelectorType",void 0);_.O([_.h(),_.g("design:type",Boolean)],De.prototype,"noEndpoints",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],De.prototype,"isRadio",void 0);_.O([_.h({reflectToAttribute:!0,selector:_.SJ}),_.g("design:type",Boolean)],De.prototype,"miniMode",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],De.prototype,"fullHeight",void 0);
_.O([_.h(),_.g("design:type",Boolean)],De.prototype,"showDarkVideoMetadata",void 0);_.O([_.h(),_.g("design:type",Boolean)],De.prototype,"showLightVideoMetadata",void 0);_.O([_.h(),_.g("design:type",Number)],De.prototype,"metadataColor",void 0);_.O([_.h(),_.g("design:type",Object)],De.prototype,"showChannelAvatar",void 0);_.O([_.h(),_.g("design:type",Boolean)],De.prototype,"hidden",void 0);_.O([_.h({value:!0}),_.g("design:type",Boolean)],De.prototype,"showYtInteraction",void 0);
_.O([_.h(),_.g("design:type",String)],De.prototype,"dismissedContentId",void 0);_.O([_.h({selectorArgs:["dismissedContentId"],selector:LI3}),_.g("design:type",Object)],De.prototype,"dismissActionToReplayEntity",void 0);
_.O([_.h({selectorArgs:["entitySelectorType","mediaId"],selector:function(K,X,F){if(_.S("kevlar_modern_downloads_page")&&F&&X&&X!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(X){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var P=SHq(K,F);if(P){X=_.rI(K,F);var H=wI(K,F),f=enM(K,F);K=y4(K,F);var u=DAl(P,X,H,f);H=u.shortViewCountText;var J=u.publishedTimeText;u=u.badges;var Z=K>0;f=z6l(P,X,f,K);P=_.J7(X)||X==="TRANSFER_STATE_FAILED"||X==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!qa(P.policyEntity)?
void 0:l1d(F,K,P.videoEntity.lengthSeconds);X==="TRANSFER_STATE_PAUSED_BY_USER"&&F&&!_.S("dl_resume_click_killswitch")&&(P={offlineVideoEndpoint:{videoId:F,action:"ACTION_RESUME"}});F={shortViewCountText:H,publishedTimeText:J,badges:u,isWatched:Z,navigationEndpoint:P,thumbnailOverlays:f}}else F=void 0;return F;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(X=o29(K,F))if(P=_.A7(K,F),f=_.LQd(K,F),P!=="TRANSFER_STATE_UNKNOWN"){F=fgy(X,P,f,F,Mgy(K));break a}F=void 0}return F;default:_.yy(new _.nG("Error: entitySelectorType defined but not matched in selector.",
K,X))}}}),
_.g("design:type",Object)],De.prototype,"entityDrivenState",void 0);_.O([_.h({computed:"computeVideoTitleText(data)"}),_.g("design:type",Object)],De.prototype,"videoTitleText",void 0);_.O([_.h({computed:"computeHasPlaylistThumbnail(data)"}),_.g("design:type",Object)],De.prototype,"hasPlaylistThumbnail",void 0);_.O([_.h({computed:"computeNavigationEndpoint(data)"}),_.g("design:type",Object)],De.prototype,"computedNavigationEndpoint",void 0);
_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],De.prototype,"typographyBump",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("typographyBump"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],De.prototype,"typographyBumpV2",null);_.O([_.fa("#video-title"),_.g("design:type",HTMLElement)],De.prototype,"videoTitle",void 0);_.O([_.fa("#video-title-link"),_.g("design:type",HTMLElement)],De.prototype,"videoTitleLink",void 0);
_.O([_.fa("#thumbnail"),_.g("design:type",HTMLElement)],De.prototype,"thumbnail",void 0);_.O([_.fa("#dismissible"),_.g("design:type",HTMLElement)],De.prototype,"JSC$13963_dismissibleMedia",void 0);_.O([_.U("data.menu"),_.g("design:type",Object),_.g("design:paramtypes",[])],De.prototype,"lazyLoadMenu",null);_.O([_.U("data.menu"),_.g("design:type",Object),_.g("design:paramtypes",[])],De.prototype,"immediateLoadMenu",null);
_.O([_.JA("entityDrivenState"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],De.prototype,"handleReloadDownloadsInfo",null);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],De.prototype,"onDataChanged",null);_.O([_.JA("hidden"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],De.prototype,"onHiddenChanged",null);
_.O([_.so("isDismissed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],De.prototype,"onIsDismissedChanged",null);_.O([_.so("metadataColor"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],De.prototype,"metadataColorChanged",null);_.O([_.Hc("mousedown"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],De.prototype,"onMouseDown",null);
_.O([_.U("lockupIsHovered"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],De.prototype,"isHovered",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],De.prototype,"useAvatar",null);_.O([_.U("data","entitySelectorType"),_.g("design:type",String),_.g("design:paramtypes",[])],De.prototype,"mediaId",null);De=_.O([_.v({is:"ytd-rich-grid-media",disableElementRegistration:!0})],De);
var Cot=_.xc()(De,"ytd-rich-grid-media",function(){if(gTC!==void 0)return gTC;var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return gTC=K},{mode:_.Ig("kevlar_poly_si_batch_j072")?1:2});var NOC;var u0=function(){var K=_.G.apply(this,arguments)||this;K.removeMaxWidth=!0;K.insetMetadata=!1;return K};
_.r(u0,_.G);_.z=u0.prototype;_.z.configureRendererStamper=function(){return{innerMenu:sG,outerMenu:Object.assign({},sG,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.z.onDataChanged=function(){var K,X=((K=this.data)==null?void 0:K.trackingParams)||"";X&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(X));var F;((F=this.dismissActionToReplayEntity)==null?0:F.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.z.attached=function(){this.updateInlinePreviewHoverListeners()};
_.z.detached=function(){this.clearInlinePreviewHoverListeners()};
_.z.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13968_inlinePreviewHoverListener=l6({mediaRenderer:this,lockupElement:this.JSC$13968_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:OHZ})};
_.z.clearInlinePreviewHoverListeners=function(){var K;(K=this.JSC$13968_inlinePreviewHoverListener)==null||Ny(K)};
_.z.onRendererTap=function(){var K,X,F=(K=this.data)==null?void 0:(X=K.serviceEndpoints)==null?void 0:X[0];_.T(F,_.Tt)&&this.componentBehavior.resolveCommand(F)};
_.z.onDetailsClick=function(K){var X,F=(X=this.data)==null?void 0:X.navigationEndpoint;F&&(_.lC(_.lN(K),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(F))};
_.z.onShow=function(){var K=this.data;K.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(K.onFirstVisibleCommand),delete K.onFirstVisibleCommand)};
_.Oi.Object.defineProperties(u0.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var K;return this.insetMetadata?void 0:(K=this.data)==null?void 0:K.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var K;return this.insetMetadata?(K=this.data)==null?void 0:K.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var K=this.data;if(K!=null&&K.badge&&(K=_.T(K.badge,rKL))){var X,F,P;return[{metadataBadgeRenderer:{label:((X=K.label)==null?void 0:(F=X.runs)==null?void 0:F[0].text)||((P=K.label)==null?void 0:P.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var K=this.data;return Object.assign({},K.headline,{accessibility:K.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return this.isSlimShort?(K=this.computedTitle)==null?void 0:(X=K.accessibility)==null?void 0:(F=X.accessibilityData)==null?void 0:F.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.S("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.JSC$13968_inlinePreviewHoverListener)==null?0:rJ(K))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
u0.prototype.onDataChanged=u0.prototype.onDataChanged;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],u0.prototype,"componentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],u0.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.mE),_.g("design:type",Object)],u0.prototype,"ytdLockupBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],u0.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.W(_.yD),_.g("design:type",Object)],u0.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],u0.prototype,"ytdReduxBehavior",void 0);_.O([_.fa("ytd-thumbnail"),_.g("design:type",HTMLElement)],u0.prototype,"thumbnail",void 0);_.O([_.fa("#dismissible"),_.g("design:type",HTMLElement)],u0.prototype,"JSC$13968_dismissibleMedia",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],u0.prototype,"removeMaxWidth",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],u0.prototype,"insetMetadata",void 0);_.O([_.h(),_.g("design:type",String)],u0.prototype,"dismissedContentId",void 0);_.O([_.h({selectorArgs:["dismissedContentId"],selector:LI3}),_.g("design:type",Object)],u0.prototype,"dismissActionToReplayEntity",void 0);_.O([_.U("insetMetadata"),_.g("design:type",Object),_.g("design:paramtypes",[])],u0.prototype,"thumbnailObjectFit",null);
_.O([_.U("data","insetMetadata"),_.g("design:type",Object),_.g("design:paramtypes",[])],u0.prototype,"innerMenu",null);_.O([_.U("data","insetMetadata"),_.g("design:type",Object),_.g("design:paramtypes",[])],u0.prototype,"outerMenu",null);_.O([_.h(),_.g("design:type",Object)],u0.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,selector:_.SJ}),_.g("design:type",Boolean)],u0.prototype,"miniMode",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],u0.prototype,"onDataChanged",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],u0.prototype,"shortsBadges",null);_.O([_.U("data"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],u0.prototype,"isShort",null);
_.O([_.U("data"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],u0.prototype,"isSlimShort",null);_.O([_.U("data","isShort"),_.g("design:type",Object),_.g("design:paramtypes",[])],u0.prototype,"computedTitle",null);_.O([_.U("isSlimShort","computedTitle"),_.g("design:type",Object),_.g("design:paramtypes",[])],u0.prototype,"computedAccessibilityLabel",null);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],u0.prototype,"shouldForce2By3",null);_.O([_.U("lockupIsHovered"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],u0.prototype,"isHovered",null);u0=_.O([_.v({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],u0);
_.t(u0,"ytd-rich-grid-slim-media",function(){if(NOC!==void 0)return NOC;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return NOC=K},{mode:_.Ig("kevlar_poly_si_batch_j063")?1:2});var ioT;var x7W;var q9=function(){var K=_.G.apply(this,arguments)||this;K.darkerDarkTheme=_.S("web_darker_dark_theme");return K};
_.r(q9,_.G);q9.prototype.computeIcon=function(K){return K&&K.iconType?"yt-sys-icons:"+K.iconType.toLowerCase():""};
q9.prototype.onMouseEnter=function(){this.isHovered=!0};
q9.prototype.onMouseLeave=function(){this.isHovered=!1};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],q9.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],q9.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],q9.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],q9.prototype,"data",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],q9.prototype,"isHovered",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],q9.prototype,"darkerDarkTheme",void 0);q9=_.O([_.v({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],q9);
_.t(q9,"ytd-expand-on-hover-card-renderer",function(){if(x7W!==void 0)return x7W;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return x7W=K},{mode:1});var IxC,kqT=function(){if(IxC!==void 0)return IxC;var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return IxC=K};_.L4("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var Jh=function(){var K=_.G.apply(this,arguments)||this;K.compactStyle=!1;K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return K};
_.r(Jh,_.G);_.z=Jh.prototype;_.z.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.z.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.channelMembershipsButton":{id:"channel-memberships-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z.computeHideDot=function(K){return!(K&&K.subscriberCountText&&K.videoCountText)||this.compactStyle};
_.z.hasDualButtons=function(K){return K&&K.purchaseButton&&K.subscribeButton};
_.z.backgroundColorChanged=function(){if(this.data!==void 0){var K=this.data.backgroundColor;this.isDarkTheme&&(K=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=K!=null?_.j0(K):"transparent"}};
_.z.onDarkModeToggledAction=function(K){this.isDarkTheme=K};
_.z.onTap=function(K){var X,F,P=((X=this.data)==null?void 0:X.navigationEndpoint)||((F=this.data)==null?void 0:F.serviceEndpoint);_.T(P,_.i6)&&(P&&_.i9().resolve(_.xU).resolveCommand(P,{form:{element:this.hostElement}}),K.preventDefault())};
_.z.computeChannelEndpoint=function(K){return _.T(K,_.i6)?null:K};
_.z.computeHrefEndpoint=function(K){return _.T(K,_.i6)?null:this.componentBehavior.computeHref_(K)};
_.z.computeChannelRendererStyle=function(K){return K};
_.z.computeIconSize=function(K){return K?108:136};
_.Oi.Object.defineProperties(Jh,{template:{configurable:!0,enumerable:!0,get:function(){return kqT()}}});
Jh.prototype.backgroundColorChanged=Jh.prototype.backgroundColorChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Jh.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Jh.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.v9),_.g("design:type",Object)],Jh.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Jh.prototype,"componentBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],Jh.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Boolean)],Jh.prototype,"isDarkTheme",void 0);_.O([_.h({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.g("design:type",String)],Jh.prototype,"channelRendererStyle",void 0);_.O([_.h({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],Jh.prototype,"dualButtons",void 0);_.O([_.h({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.g("design:type",Boolean)],Jh.prototype,"useBiggerThumbs",void 0);_.O([_.h({reflectToAttribute:!0,value:function(){return _.KG("desktop_search_bigger_thumbs_style")}}),
_.g("design:type",String)],Jh.prototype,"biggerThumbStyle",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Jh.prototype,"compactStyle",void 0);_.O([_.so("data","isDarkTheme"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Jh.prototype,"backgroundColorChanged",null);Jh=_.O([_.v({is:"ytd-channel-renderer",disableElementRegistration:!0})],Jh);_.t(Jh,"ytd-channel-renderer",function(){return kqT()},{mode:1});var KZZ;var XPt;_.L4("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var Ze=function(){var K=_.G.apply(this,arguments)||this;K.displayItemCount=2;K.collections=_.S("web_modern_collections_v2");K.hasPlaylistThumbnail=!1;K.stackThumbnailSize="large";return K};
_.r(Ze,_.G);_.z=Ze.prototype;_.z.attached=function(){this.updateInlinePreviewHoverListeners()};
_.z.detached=function(){this.clearInlinePreviewHoverListeners()};
_.z.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.z.computeFirstVideos=function(K,X){return K&&X?K.slice(0,X):[]};
_.z.computeThumbnailWidth=function(K,X){return K?X==="BIG"?500:X==="MASSIVE"?600:X==="MEDIUM"?450:420:360};
_.z.computeThumbnailHeight=function(K,X){return K?X==="BIG"?280:X==="MASSIVE"?337:234:202};
_.z.clearInlinePreviewHoverListeners=function(){var K;(K=this.JSC$13981_inlinePreviewHoverListener)==null||Ny(K)};
_.z.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13981_inlinePreviewHoverListener=l6({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:$Jt,thumbnailElement:this.thumbnail})};
_.z.computeHasPlaylistThumbnail=function(K){var X,F;if((((X=K.thumbnailRenderer)==null?0:X.playlistVideoThumbnailRenderer)||((F=K.thumbnailRenderer)==null?0:F.playlistCustomThumbnailRenderer))&&K.thumbnailOverlays)for(X=0;X<K.thumbnailOverlays.length;X++)if(F=void 0,(F=K.thumbnailOverlays[X])==null?0:F.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Oi.Object.defineProperties(Ze.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.JSC$13981_inlinePreviewHoverListener)==null?0:rJ(K))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Ze.prototype.dataChanged=Ze.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Ze.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.mE),_.g("design:type",Object)],Ze.prototype,"ytdLockupBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Ze.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],Ze.prototype,"displayItemCount",void 0);_.O([_.h({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.g("design:type",Boolean)],Ze.prototype,"useBiggerThumbs",void 0);_.O([_.h({reflectToAttribute:!0,value:function(){return _.KG("desktop_search_bigger_thumbs_style")}}),
_.g("design:type",String)],Ze.prototype,"biggerThumbsStyle",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Ze.prototype,"collections",void 0);_.O([_.h({computed:"computeHasPlaylistThumbnail(data)"}),_.g("design:type",Object)],Ze.prototype,"hasPlaylistThumbnail",void 0);_.O([_.h(),_.g("design:type",String)],Ze.prototype,"stackThumbnailSize",void 0);_.O([_.fa("ytd-thumbnail"),_.g("design:type",HTMLElement)],Ze.prototype,"thumbnail",void 0);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ze.prototype,"dataChanged",null);_.O([_.U("lockupIsHovered"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Ze.prototype,"isHovered",null);Ze=_.O([_.v({is:"ytd-radio-renderer",disableElementRegistration:!0})],Ze);
_.t(Ze,"ytd-radio-renderer",function(){if(XPt!==void 0)return XPt;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return XPt=K},{mode:_.Ig("kevlar_poly_si_batch_j058")?1:2});var FZQ;_.L4("itemSectionRenderer","showRenderer","ytd-show-renderer");var Yj=function(){return _.G.apply(this,arguments)||this};
_.r(Yj,_.G);Yj.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Yj.prototype.computeThumbnailWidth=function(K){return K?360:246};
Yj.prototype.computeUseProminentThumbs=function(K){return K};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Yj.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Yj.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Yj.prototype,"data",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],Yj.prototype,"isSearch",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.g("design:type",Boolean)],Yj.prototype,"useProminentThumbs",void 0);Yj=_.O([_.v({is:"ytd-show-renderer",disableElementRegistration:!0})],Yj);
_.t(Yj,"ytd-show-renderer",function(){if(FZQ!==void 0)return FZQ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return FZQ=K},{mode:1});_.L4("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var Q6=function(){var K=_.G.apply(this,arguments)||this;K.isRichGrid=!1;return K};
_.r(Q6,_.G);Q6.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"}}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Q6.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Q6.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Q6.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Q6.prototype,"isRichGrid",void 0);Q6=_.O([_.v({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],Q6);
_.t(Q6,"ytd-feed-entry-renderer",function(){if(KZZ!==void 0)return KZZ;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return KZZ=K},{mode:1});var P3Q;var M9=function(){return _.G.apply(this,arguments)||this};
_.r(M9,_.G);M9.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.O([_.W(_.jn),_.g("design:type",Object)],M9.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],M9.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],M9.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],M9.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,selector:_.oA,value:3}),_.g("design:type",Number)],M9.prototype,"itemsPerRow",void 0);
M9=_.O([_.v({is:"ytd-link-card-renderer",disableElementRegistration:!0})],M9);
_.t(M9,"ytd-link-card-renderer",function(){if(P3Q!==void 0)return P3Q;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return P3Q=K},{mode:1});var HgN;var nC=function(){return _.G.apply(this,arguments)||this};
_.r(nC,_.G);_.z=nC.prototype;_.z.configureRendererStamper=function(){return{"data.menu":sG,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.z.onRendererTap=function(K){if(!this.ytdDismissibleItemBehavior.isDismissed){var X,F=(X=this.data)==null?void 0:X.navigationEndpoint;F&&!_.lC(_.lN(K),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(F)?_.lC(_.lN(K),this.hostElement,["A"])||_.iX(this.hostElement,"yt-navigate",{endpoint:F}):this.ytComponentBehavior.resolveCommand(F,{}))}};
_.z.maybeComputeHref=function(K){return this.ytComponentBehavior.computeHref_(K,!0)};
_.z.getNavigationCommand=function(K){return this.isNavigationCommand(K)?K:null};
_.z.isNavigationCommand=function(K){return K?_.T(K,_.f$)||_.T(K,_.vg)||_.T(K,_.mc)?!0:!1:!1};
nC.prototype.onRendererTap=nC.prototype.onRendererTap;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],nC.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],nC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.yD),_.g("design:type",Object)],nC.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],nC.prototype,"ytComponentBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],nC.prototype,"data",void 0);_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],nC.prototype,"onRendererTap",null);nC=_.O([_.v({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],nC);
_.t(nC,"ytd-lumiere-promo-item-image-renderer",function(){if(HgN!==void 0)return HgN;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return HgN=K},{mode:1});var s$C;var ci=function(){return _.G.apply(this,arguments)||this};
_.r(ci,_.G);ci.prototype.computeLandscapeThumbnail=function(){var K;return((K=this.data)==null?void 0:K.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ci.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],ci.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],ci.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,selector:_.SJ}),_.g("design:type",Boolean)],ci.prototype,"miniMode",void 0);_.O([_.h({reflectToAttribute:!0,selector:_.oA}),_.g("design:type",Number)],ci.prototype,"itemsPerRow",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.g("design:type",Boolean)],ci.prototype,"landscapeThumbnail",void 0);ci=_.O([_.v({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],ci);
_.t(ci,"ytd-lumiere-shelf-details-renderer",function(){if(s$C!==void 0)return s$C;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return s$C=K},{mode:_.Ig("kevlar_poly_si_batch_j076")?1:2});var zKE;var pC=function(){return _.G.apply(this,arguments)||this};
_.r(pC,_.G);pC.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],pC.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],pC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],pC.prototype,"data",void 0);pC=_.O([_.v({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],pC);
_.t(pC,"ytd-primetime-promo-details-renderer",function(){if(zKE!==void 0)return zKE;var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return zKE=K},{mode:1});var f8C;var Bi=function(){return _.G.apply(this,arguments)||this};
_.r(Bi,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Bi.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Bi.prototype,"data",void 0);Bi=_.O([_.v({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],Bi);
_.t(Bi,"ytd-panel-show-style-metadata-renderer",function(){if(f8C!==void 0)return f8C;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return f8C=K},{mode:1});var DCL;var SS=function(){return _.G.apply(this,arguments)||this};
_.r(SS,_.G);_.z=SS.prototype;_.z.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.z.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.z.computeThumbnail=function(K){if(K)return K.smallFormFactorBackgroundThumbnail||K.largeFormFactorBackgroundThumbnail};
_.z.maybeComputeHref=function(K){return this.ytComponentBehavior.computeHref_(K,!0)};
_.z.isNavigationCommand=function(K){return K?_.T(K,_.f$)||_.T(K,_.vg)||_.T(K,_.mc)?!0:!1:!1};
_.z.getNavigationCommand=function(K){return this.isNavigationCommand(K)?K:null};
SS.prototype.onPanelTap=SS.prototype.onPanelTap;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],SS.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],SS.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],SS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],SS.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0,value:!0}),_.g("design:type",Boolean)],SS.prototype,"roundedContainer",void 0);_.O([_.h({reflectToAttribute:!0,value:_.S("web_modern_buttons")}),_.g("design:type",Boolean)],SS.prototype,"modernButtons",void 0);_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],SS.prototype,"onPanelTap",null);SS=_.O([_.v({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],SS);
_.t(SS,"ytd-primetime-promo-panel-renderer",function(){if(DCL!==void 0)return DCL;var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return DCL=K},{mode:1});_.EP(_.$c(function(K){K=_.tA(K,{data:{},useFullWidth:!1});var X=K.data,F=K.useFullWidth,P=function(){return X().caption},H=function(){return X().image},f=function(){return _.w$(X().onTap)};
K={};K=_.HO("ytTeaserCardViewModelHost",(K.ytTeaserCardViewModelUseFullWidth=function(){return F()},K));
return _.Q("teaser-card-view-model",{class:K},_.Q(_.p,{cond:function(){return f()},
then:function(){return _.Q(wqu,{className:"ytTeaserCardViewModelLink",command:f,forceNewState:!0,useATagConfig:!0},_.Q("div",{class:"ytTeaserCardViewModelImageContainer"},_.Q(_.p,{cond:H,then:function(u){return _.Q(_.av,{data:u,className:"ytTeaserCardViewModelImage",alt:""})}})),_.Q("p",{class:"ytTeaserCardViewModelCaption"},P))}}))},"Fb"),"teaser-card-view-model",{props:{data:_.vU,
useFullWidth:_.vU}});var uRL=new _.Oh("RICH_GRID_VIDEO_RENDERER_TOKEN");_.EP(_.$c(function(K){var X=K.data;var F=K.showYtInteractionInContent;var P=function(){return!!X().selectableFeedback};
K=_.D(_.u_(!1,void 0,"nblDw"));var H=K.next().value,f=K.next().value;_.AV(function(){var B=_.T(X().primaryButton,_.cp);(B==null?0:B.isToggled)&&f(B.isToggled)});
K=_.DF(function(B){if(!P())return!1;if(H()){var L;var A=(L=X().selectableFeedback)==null?void 0:L.onDeselect}else{var d;A=(d=X().selectableFeedback)==null?void 0:d.onSelect}A&&_.e9(A,{form:{element:B.target}});f(!H());if(B=_.T(X().primaryButton,_.cp))B.isToggled=H();return!1});
var u=function(){if(!P()){var B,L=(B=X().loggingDirectives)==null?void 0:B.trackingParams;L&&_.FT(_.i9().resolve(_.n3),L)}},J=_.xwd(),Z=function(){var B;
return P()?(B=X().selectableFeedback)==null?void 0:B.a11yLabel:void 0},M=function(){return P()?{toggled:H()}:{}},n=_.i9().resolve(_.Nu(uRL)),c={};
return _.Q("yt-feedback-item-renderer",{class:_.HO("ytFeedbackItemRendererHost",(c.ytFeedbackItemRendererSelectableFeedback=P,c)),"on:click":K,"on:keydown":J,title:Z,"aria-label":Z,"aria-pressed":function(){return P()?H():void 0},
tabindex:function(){return P()?0:void 0},
role:function(){return P()?"button":void 0}},_.Q("div",{class:"ytFeedbackItemRendererContentContainer"},_.Q(_.Md,{data:function(){return X().content}},{videoRenderer:function(B){return _.Q(n,{data:B.data,
showYtInteraction:F})},
lockupViewModel:function(B){return _.Q(_.iJ,{data:B.data,containerType:2})}})),_.Q("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.Q(_.Md,{data:function(){return X().primaryButton}},{toggleButtonViewModel:function(B){return _.Q(_.pS,{data:B.data,
buttonShapeOverrides:M,disableExplicitClickLogging:!0,onToggle:u})}})))},"Gb"),"yt-feedback-item-renderer",{props:{data:_.vU,
showYtInteractionInContent:_.vU}});var oL=function(){var K=_.G.apply(this,arguments)||this;K.isShortsGrid=!1;K.isCompactGrid=!1;K.isShortsPanelGrid=!1;K.renderedFromRichGrid=!1;K.isInFirstColumn=!1;K.noGutterMargins=!1;K.isInlineGroupItem=!1;K.insetMetadata=!1;K.noBottomMarginInAds=_.S("web_no_bottom_margin_for_home_ad_buttons");K.force16By9ThumbnailAspectRatio=!1;K.useCompactList=!1;K.containerType=2;K.thumbnailTargetWidth=9999;K.isResponsiveGrid=!1;K.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};K.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};K.hoverListener=K.hover.bind(K);K.leaveListener=K.leave.bind(K);K.highlighted=!1;K.JSC$14016_unsubscribeFromInlinePreviewIsActive=function(){};
return K};
_.r(oL,_.G);_.z=oL.prototype;_.z.computeContainerType=function(){return this.useCompactList?3:2};
_.z.computeThumbnailTargetWidth=function(){var K;return(K=this.itemWidth)!=null?K:9999};
_.z.updateIsInFirstColumn=function(){var K;this.isInFirstColumn=((K=this.data)==null?void 0:K.colIndex)===0};
_.z.observerContainerType=function(){if(this.lockup){var K=this.lockup;K.containerType=this.containerType;K.sizing=this.sizing;K.typographyBump=this.typographyBump;K.itemWidth=this.itemWidth}this.richGridMedia&&_.S("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.S("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.z.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.z.leave=function(K){K=K.relatedTarget;var X=document.querySelector("ytd-video-preview");K&&X&&_.ND(X).contains(K)||this.removeAndCleanupHighlight()};
_.z.hover=function(){var K;if(!this.highlighted&&(!_.S("web_enable_rich_item_on_focus_effect")||(K=this.data)!=null&&K.onFocusEffect)){var X,F;((X=this.data)==null?void 0:(F=X.onFocusEffect)==null?void 0:F.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(K=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:K,boxShadow:"0 0 0 10px "+K}));var P,H;((P=this.data)==null?void 0:(H=P.onFocusEffect)==null?void 0:
H.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.z.removeAndCleanupHighlight=function(){this.hostElement.classList.remove("ytd-rich-item-renderer-highlight");this.hostElement.classList.remove("ytd-rich-item-renderer-highlight-border");Object.assign(this.hostElement.style,{backgroundColor:"",boxShadow:""});this.highlighted=!1};
_.z.registerHoverHighlightListeners=function(){var K=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$14016_unsubscribeFromInlinePreviewIsActive=_.Dg(_.aA(),_.Zzq,function(X){K.highlighted&&!X&&K.removeAndCleanupHighlight()})};
_.z.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$14016_unsubscribeFromInlinePreviewIsActive()};
_.z.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.z.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.z.getBackgroundColor=function(){var K,X,F=(K=this.data)==null?void 0:(X=K.onFocusEffect)==null?void 0:X.onFocusColor;if(F){if(document.documentElement.hasAttribute("dark")&&(F==null?0:F.darkTheme))return _.j0(F==null?void 0:F.darkTheme);if(F==null?0:F.lightTheme)return _.j0(F==null?void 0:F.lightTheme)}};
_.z.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var K=_.AD(),X,F,P;K&&((X=this.data)==null?0:X.trackingParams)&&((F=this.data)==null?void 0:F.colIndex)!=null&&((P=this.data)==null?void 0:P.rowIndex)!=null&&_.tc(K,_.QB(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.z.isSlimMediaRenderer=function(K){return!!_.T(K==null?void 0:K.content,_.XVQ)||!!_.T(K==null?void 0:K.content,K9L)||!!_.T(K==null?void 0:K.content,_.Ap)||!!_.T(K==null?void 0:K.content,ost)};
_.z.isPostRenderer=function(){var K,X;return!!_.T((K=this.data)==null?void 0:K.content,fZE)||!!_.T((X=this.data)==null?void 0:X.content,DLE)};
_.z.computeIsGameCardShelf=function(){var K;return!!_.T((K=this.data)==null?void 0:K.content,D_Z)};
_.z.computeIsMiniGameCardShelf=function(){var K,X;return!!_.T((K=this.data)==null?void 0:K.content,rIQ)||!!_.T((X=this.data)==null?void 0:X.content,AIT)};
_.z.computeIsTeaserCard=function(){var K;return!!_.T((K=this.data)==null?void 0:K.content,AIT)};
_.z.computeIsSelectableFeedbackItem=function(){var K,X;return!((X=_.T((K=this.data)==null?void 0:K.content,_.wzL))==null||!X.selectableFeedback)};
_.z.computeContainsLumierePosters=function(){var K,X;return((X=_.T((K=this.data)==null?void 0:K.content,pjN))==null?void 0:X.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.z.computeIsExpandOnHoverCardShelf=function(){var K;return!!_.T((K=this.data)==null?void 0:K.content,c4U)};
_.z.computeIsLinkCardShelf=function(){var K;return!!_.T((K=this.data)==null?void 0:K.content,wHC)};
_.z.computeIsReelItemStyleAvatarCircle=function(K){var X;return((X=_.T(K==null?void 0:K.content,_.Ap))==null?void 0:X.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.z.computeIsLinkCardFullWidth=function(K,X){var F;return((F=_.T(K==null?void 0:K.content,wHC))==null?void 0:F.useFullWidth)||X<=2};
_.Oi.Object.defineProperties(oL.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.S("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.S("web_enable_rich_item_on_focus_effect")||_.S("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}}});
oL.prototype.richGridHoverHighlightChanged=oL.prototype.richGridHoverHighlightChanged;oL.prototype.observerContainerType=oL.prototype.observerContainerType;oL.prototype.updateIsInFirstColumn=oL.prototype.updateIsInFirstColumn;_.O([_.W(_.jn),_.g("design:type",Object)],oL.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],oL.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],oL.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],oL.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.mE),_.g("design:type",Object)],oL.prototype,"ytdLockupBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],oL.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.g("design:type",Boolean)],oL.prototype,"isPost",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.g("design:type",Boolean)],oL.prototype,"containsLumierePosters",void 0);_.O([_.h({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.g("design:type",Boolean)],oL.prototype,"isSlimMedia",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.g("design:type",Boolean)],oL.prototype,"isGameCardShelf",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.g("design:type",Boolean)],oL.prototype,"isMiniGameCardShelf",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.g("design:type",Boolean)],oL.prototype,"isTeaserCard",void 0);_.O([_.h({computed:"computeIsSelectableFeedbackItem(data)"}),_.g("design:type",Boolean)],oL.prototype,"isSelectableFeedbackItem",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],oL.prototype,"isShortsGrid",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],oL.prototype,"isSlimGrid",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],oL.prototype,"isCompactGrid",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],oL.prototype,"isShortsPanelGrid",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.g("design:type",Boolean)],oL.prototype,"isExpandOnHoverCardShelf",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.g("design:type",Boolean)],oL.prototype,"isLinkCardShelf",void 0);_.O([_.h({reflectToAttribute:!0,selector:_.oA,value:3}),_.g("design:type",Number)],oL.prototype,"itemsPerRow",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],oL.prototype,"renderedFromRichGrid",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],oL.prototype,"isInFirstColumn",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],oL.prototype,"noGutterMargins",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],oL.prototype,"isInlineGroupItem",void 0);_.O([_.h(),_.g("design:type",Object)],oL.prototype,"insetMetadata",void 0);
_.O([_.h(),_.g("design:type",Object)],oL.prototype,"noBottomMarginInAds",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],oL.prototype,"isShelfItem",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.g("design:type",Boolean)],oL.prototype,"isReelItemStyleAvatarCircle",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.g("design:type",Boolean)],oL.prototype,"isLinkCardFullWidth",void 0);
_.O([_.h(),_.g("design:type",Object)],oL.prototype,"force16By9ThumbnailAspectRatio",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],oL.prototype,"useCompactList",void 0);_.O([_.h(),_.g("design:type",String)],oL.prototype,"sizing",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],oL.prototype,"typographyBump",void 0);_.O([_.h(),_.g("design:type",Number)],oL.prototype,"itemWidth",void 0);_.O([_.h(),_.g("design:type",Boolean)],oL.prototype,"isHomeShelf",void 0);
_.O([_.h(),_.g("design:type",Boolean)],oL.prototype,"isHomeGrid",void 0);_.O([_.fa("yt-lockup-view-model"),_.g("design:type",HTMLElement)],oL.prototype,"lockup",void 0);_.O([_.fa("ytd-rich-grid-media"),_.g("design:type",HTMLElement)],oL.prototype,"richGridMedia",void 0);_.O([_.fa("ytd-ad-slot-renderer"),_.g("design:type",HTMLElement)],oL.prototype,"adSlotRenderer",void 0);_.O([_.h({computed:"computeContainerType(useCompactList)"}),_.g("design:type",Object)],oL.prototype,"containerType",void 0);
_.O([_.h({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.g("design:type",Object)],oL.prototype,"thumbnailTargetWidth",void 0);_.O([_.U("showYtInteractionOnRichItem"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],oL.prototype,"showYtInteractionOnRichGridMedia",null);_.O([_.U("isSelectableFeedbackItem","richGridHoverHighlight"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],oL.prototype,"showYtInteractionOnRichItem",null);
_.O([_.U("typographyBump","isHomeGrid"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],oL.prototype,"richTypographyBump",null);_.O([_.h({reflectToAttribute:!0}),_.U("isShortsGrid","isCompactGrid"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],oL.prototype,"richGridHoverHighlight",null);_.O([_.U("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.g("design:type",Number),_.g("design:paramtypes",[])],oL.prototype,"shortsLockupViewModelAspectRatio",null);
_.O([_.U("isInlineGroupItem"),_.g("design:type",Number),_.g("design:paramtypes",[])],oL.prototype,"shortsLockupViewModelScrimStyle",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],oL.prototype,"updateIsInFirstColumn",null);_.O([_.so("containerType","sizing","typographyBump"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],oL.prototype,"observerContainerType",null);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],oL.prototype,"isResponsiveGrid",void 0);_.O([_.h(),_.g("design:type",Object)],oL.prototype,"lockupExperiments",void 0);_.O([_.so("richGridHoverHighlight"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],oL.prototype,"richGridHoverHighlightChanged",null);oL=_.O([_.v({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],oL);
_.qbC=_.xc()(oL,"ytd-rich-item-renderer",function(){if(ioT===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);ioT=K}K=ioT;return K},{mode:_.Ig("kevlar_poly_si_batch_j028")?1:2});var AJM={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var Upy=_.GS(_.uY("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var JSL;var LC=function(){var K=_.G.apply(this,arguments)||this;K.useResponsiveGrid=!1;K.hidden=!1;K.standardShelfMargins=_.S("web_rich_grid_standard_shelf_margins");K.isShowMoreHidden=!1;K.isExpanded=!1;K.isInnerShelf=!1;K.allVideosCount=0;K.allPlaylistCount=0;K.haveSmartDownloadsCompleted=!1;K.isShowLessHidden=!0;K.restrictContentsOverflow=!1;K.firstShownIndex=0;K.horizontalOffset=0;K.atEnd=!0;K.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};K.nextClick=function(){var X;(X=K.data)!=null&&X.contents&&(K.firstShownIndex+=K.currentElementsPerRow,K.updateHorizontalOffset(),K.updateHorizontalItemVisibility())};
K.previousClick=function(){var X;(X=K.data)!=null&&X.contents&&(K.firstShownIndex-=K.currentElementsPerRow,K.updateHorizontalOffset(),K.updateHorizontalItemVisibility())};
return K};
_.r(LC,_.G);_.z=LC.prototype;
_.z.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.e8("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.z.attached=function(){this.requestElementsPerRow()};
_.z.refreshGridLayoutNew=function(){var K;if((K=this.data)!=null&&K.contents&&this.containerWidth){var X;((X=this.data.responsiveContainerConfiguration)==null?0:X.responsiveSize)?(K=_.GF3(this.data.responsiveContainerConfiguration,this.containerWidth),K=_.ak(Object.assign({},K,{standardUnitMinWidth:this.standardUnitMinWidth}))):K=_.ak({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=K.typographyBump;if(this.elementsPerRow!==
K.numItems||this.gutter!==K.gutter)this.elementsPerRow=K.numItems,this.gutter=K.gutter,this.itemWidth=K.itemWidth,_.XU(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":K.gutter+"px"})}};
_.z.computeSizing=function(){if(!this.isLumiere){var K=_.X2w(this.data);if(K)return K;if(_.S("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.z.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.z.computeButton=function(K){var X=_.T(K,_.jg);K=Object.assign({},_.T(K,_.jg));return X?(K.text||(K.text={simpleText:K.tooltip}),K.style="STYLE_MONO_OUTLINE",K.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",K):X};
_.z.onRowIndexChange=function(){var K=_.AD(),X,F;((X=this.data)==null?0:X.trackingParams)&&((F=this.data)==null?void 0:F.rowIndex)!=null&&K&&_.tc(K,_.QB(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.z.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var K,X=((K=this.getRichItemRenderers()[0])==null?void 0:K.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*X;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.z.requestElementsPerRow=function(){_.iX(this.hostElement,"yt-request-elements-per-row")};
_.z.onUpdateElementsPerRowAction=function(K,X,F,P,H,f){if(this.containerWidth!==f&&(this.containerWidth=f,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&K&&X&&F&&P&&H&&(this.elementsPerRow!==K||this.postsPerRow!==X||this.slimItemsPerRow!==F||this.gameCardsPerRow!==P||this.miniGameCardsPerRow!==H)&&(this.elementsPerRow=K,this.postsPerRow=X,this.slimItemsPerRow=F,this.gameCardsPerRow=P,this.miniGameCardsPerRow=H,this.updateItemVisibility())};
_.z.getRichItemRenderers=function(){return _.C$(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.z.updateItemVisibility=function(){var K=this;if(this.data&&this.data.contents){var X=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(P,H){var f;((f=K.data)==null?0:f.isExpanded)?(P.hidden=H>X-1,P.ytRendererBehavior.markDirty()):P.hidden=H>K.currentElementsPerRow-1||H>X-1});
var F=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||F||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||F||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.z.setHeightToSingleRow=function(){var K=this.getRichItemRenderers(),X=Number.parseInt(getComputedStyle(K[0]).marginBottom,10)||0;K=K.slice(0,this.currentElementsPerRow).reduce(function(F,P){return Math.max(F,P.getBoundingClientRect().height+X)},0);
this.contents.style.height=K+"px"};
_.z.focusNextExpandedItem=function(){var K;((K=this.data)==null?0:K.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.z.focusItem=function(K,X){var F=this.getRichItemRenderers();if(F[K]&&(K=F[K].querySelector(".focus-on-expand"))){if(X){var P;(P=F[this.currentElementsPerRow])==null||P.scrollIntoView({behavior:"smooth",block:"center"})}K.focus({preventScroll:!0})}};
_.z.onDataChange=function(){var K=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var X;if((X=this.data)==null?0:X.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.tg(this,function(){K.updateItemVisibility()});
var F;if((F=this.data)==null?0:F.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.XU(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),X=0;X<this.data.contents.length;X++)F=_.T(this.data.contents[X],_.Sg)||{},F.colIndex=X,F.rowIndex=this.data.rowIndex};
_.z.handleRerenderDownloadsData=function(){_.S("kevlar_modern_downloads_page")&&this.entityDrivenRichShelfData&&(this.set("data.contents",this.entityDrivenRichShelfData.contents),this.entityDrivenRichShelfData.subtitle&&this.set("data.subtitle",this.entityDrivenRichShelfData.subtitle),this.updateItemVisibility())};
_.z.blockInlinePreview=function(K){var X=this,F;return _.q(function(P){(F=X.inlinePreviewIsEnabled)&&X.ytdReduxBehavior.dispatch(_.JjC(!1));return P.return(new Promise(function(H){K(function(){F&&X.ytdReduxBehavior.dispatch(_.JjC(!0));H()})}))})};
_.z.expandShelf=function(){var K=this;if(this.data){var X,F=(X=_.T(this.data.showMoreButton,_.jg))==null?void 0:X.trackingParams;F&&_.FT(_.uH(),F);this.data.isExpanded=!0;this.blockInlinePreview(function(P){K.setHeightToSingleRow();K.updateItemVisibility();K.contents.style.height=K.contents.scrollHeight+"px";_.A9.addJob(function(){K.contents.style.height="auto";K.focusNextExpandedItem();P()},2,200)})}};
_.z.collapseShelf=function(){var K=this;return _.q(function(X){if(X.nextAddress==1){if(!K.data)return X.return();K.data.isExpanded=!1;return _.Y(X,K.blockInlinePreview(function(F){K.contents.style.height=K.contents.scrollHeight+"px";K.setHeightToSingleRow();_.A9.addJob(function(){K.updateItemVisibility();K.contents.style.height="auto";F()},2,200)}),2)}_.iX(K.hostElement,"yt-rich-shelf-renderer-collapse",K.data.trackingParams);
K.focusItem(0,!1);_.JT(X)})};
_.z.updateArrowButtonStatus=function(){var K=this.getRichItemRenderers().length;if(!_.S("web_rich_shelf_renderer_use_data_contents_killswitch")){var X,F;K=((X=this.data)==null?void 0:(F=X.contents)==null?void 0:F.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=K};
_.z.onChildElementFocus=function(K){this.hasChevronButtons&&(K=K.target.closest("#contents > *"),this.contents.contains(K)&&(K.offsetLeft<this.horizontalOffset?this.previousClick():K.offsetLeft+K.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.z.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.e8("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.z.updateHorizontalOffset=function(){var K=this.getRichItemRenderers(),X=K.length;if(!_.S("web_rich_shelf_renderer_use_data_contents_killswitch")){var F,P;X=((F=this.data)==null?void 0:(P=F.contents)==null?void 0:P.length)||0}var H;K=((H=K[0])==null?void 0:H.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>X?this.firstShownIndex=X-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*K};
_.z.isSlimMediaShelfRenderer=function(){var K,X,F,P=(F=_.T((K=this.data)==null?void 0:(X=K.contents)==null?void 0:X[0],_.Sg))==null?void 0:F.content;return!!(_.T(P,_.XVQ)||_.T(P,K9L)||_.T(P,_.Ap)||_.T(P,ost))};
_.z.isGameCardShelf=function(){var K,X,F,P=(F=_.T((K=this.data)==null?void 0:(X=K.contents)==null?void 0:X[0],_.Sg))==null?void 0:F.content;return!!_.T(P,D_Z)};
_.z.isGnomeShelf=function(){var K,X,F,P=(F=_.T((K=this.data)==null?void 0:(X=K.contents)==null?void 0:X[0],_.Sg))==null?void 0:F.content;return!!_.T(P,_.wzL)};
_.z.isMiniGameCardShelf=function(){var K,X,F,P=(F=_.T((K=this.data)==null?void 0:(X=K.contents)==null?void 0:X[0],_.Sg))==null?void 0:F.content;return!!_.T(P,rIQ)||!!_.T(P,AIT)};
_.z.hasGameBoxArtAvatarStyle=function(){var K;return((K=this.data)==null?void 0:K.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.z.hasRoundedGameBoxArtAvatarStyle=function(){var K;return((K=this.data)==null?void 0:K.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.z.isShortsShelf=function(){var K,X,F,P=(F=_.T((K=this.data)==null?void 0:(X=K.contents)==null?void 0:X[0],_.Sg))==null?void 0:F.content;return!!_.T(P,_.Ap)||!!_.T(P,ost)};
_.z.isPostShelfRenderer=function(){var K,X,F,P=(F=_.T((K=this.data)==null?void 0:(X=K.contents)==null?void 0:X[0],_.Sg))==null?void 0:F.content;return!(!_.T(P,fZE)&&!_.T(P,DLE))};
_.z.isLumiereShelf=function(){var K,X,F=_.T((K=this.data)==null?void 0:(X=K.contents)==null?void 0:X[0],_.Sg);return!!_.T(F==null?void 0:F.content,pjN)};
_.z.isLumiereShelfWithPosters=function(){var K,X,F=_.T((K=this.data)==null?void 0:(X=K.contents)==null?void 0:X[0],_.Sg),P;return((P=_.T(F==null?void 0:F.content,pjN))==null?void 0:P.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.z.isExpandOnHoverCardShelf=function(){var K,X,F,P=(F=_.T((K=this.data)==null?void 0:(X=K.contents)==null?void 0:X[0],_.Sg))==null?void 0:F.content;return!!_.T(P,c4U)};
_.z.computeHasFeaturedBadge=function(){var K,X,F=_.T((K=this.data)==null?void 0:(X=K.badges)==null?void 0:X[0],_.jct);return F?F.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.z.computeHasPaygatedFeaturedBadge=function(){var K,X,F=_.T((K=this.data)==null?void 0:(X=K.badges)==null?void 0:X[0],_.jct);return F?(F==null?void 0:F.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.z.computeHeaderHidden=function(){var K,X,F,P,H,f;return!((K=this.data)==null?0:K.icon)&&!((X=this.data)==null?0:X.title)&&!((F=this.data)==null?0:F.subtitle)&&!((P=this.data)==null?0:P.thumbnail)&&!((H=this.data)==null?0:H.badges)&&!((f=this.data)==null?0:f.menu)};
_.z.showCtaButton=function(){var K;return!((K=this.data)==null||!K.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.z.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.z.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.z.computeForce16By9ThumbnailAspectRatio=function(){var K,X;return((K=this.data)==null?void 0:(X=K.responsiveContainerConfiguration)==null?void 0:X.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.z.onSectionReactiveDismissal=function(K,X,F){var P,H;var f=(P=this.data)==null?void 0:(H=P.targetingContext)==null?void 0:H.targetGroupId;this&&f&&X.targetGroupId&&f.includes(X.targetGroupId)?(P=this.rowIndex,K=P===void 0?!1:!(X.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&P<=K)):K=!1;K&&(this.hidden=F)};
_.Oi.Object.defineProperties(LC.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var K=this.elementsPerRow;this.isPostShelfRenderer()?K=this.postsPerRow:this.isSlimMediaShelfRenderer()?K=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?K=this.slimItemsPerRow-1:this.isGameCardShelf()?K=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(K=this.miniGameCardsPerRow);return K}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.S("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var K,X;return!((K=this.data)==null||!K.previousButton)&&!((X=this.data)==null||!X.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 K;return((K=_.i9().resolve(_.ax).getCurrentPage())==null?void 0:K.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var K,X,F,P;return!((K=this.data)==null?0:(X=K.thumbnail)==null?0:(F=X.accessibility)==null?0:(P=F.accessibilityData)==null?0:P.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
LC.prototype.onChildElementFocus=LC.prototype.onChildElementFocus;LC.prototype.handleRerenderDownloadsData=LC.prototype.handleRerenderDownloadsData;LC.prototype.onDataChange=LC.prototype.onDataChange;LC.prototype.onRowIndexChange=LC.prototype.onRowIndexChange;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],LC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],LC.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.yD),_.g("design:type",Object)],LC.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],LC.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],LC.prototype,"ytdReduxBehavior",void 0);_.O([_.h({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.g("design:type",Object)],LC.prototype,"useResponsiveGrid",void 0);_.O([_.h(),_.g("design:type",Object)],LC.prototype,"data",void 0);
_.O([_.h(),_.g("design:type",Number)],LC.prototype,"standardUnitMinWidth",void 0);_.O([_.h({reflectToAttribute:!0,value:3}),_.g("design:type",Number)],LC.prototype,"elementsPerRow",void 0);_.O([_.h({value:3}),_.g("design:type",Number)],LC.prototype,"postsPerRow",void 0);_.O([_.h({value:6}),_.g("design:type",Number)],LC.prototype,"slimItemsPerRow",void 0);_.O([_.h({value:6}),_.g("design:type",Number)],LC.prototype,"gameCardsPerRow",void 0);
_.O([_.h({value:6}),_.g("design:type",Number)],LC.prototype,"miniGameCardsPerRow",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],LC.prototype,"hidden",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],LC.prototype,"standardShelfMargins",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],LC.prototype,"isShowMoreHidden",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],LC.prototype,"isExpanded",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],LC.prototype,"isInnerShelf",void 0);_.O([_.h({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.g("design:type",Boolean)],LC.prototype,"isShorts",void 0);_.O([_.h({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.g("design:type",Boolean)],LC.prototype,"isLumiere",void 0);_.O([_.h({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.g("design:type",Boolean)],LC.prototype,"hasBoxArtThumbnailStyle",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.g("design:type",Boolean)],LC.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.g("design:type",Boolean)],LC.prototype,"hasFeaturedBadge",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.g("design:type",Boolean)],LC.prototype,"hasPaygatedFeaturedBadge",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.g("design:type",Boolean)],LC.prototype,"isHeaderHidden",void 0);_.O([_.h({selector:_.B4P}),_.g("design:type",Object)],LC.prototype,"allVideosCount",void 0);_.O([_.h({selector:mp9}),_.g("design:type",Object)],LC.prototype,"allPlaylistCount",void 0);_.O([_.h({selector:WQl}),_.g("design:type",Object)],LC.prototype,"haveSmartDownloadsCompleted",void 0);
_.O([_.h({selectorArgs:["entitySelectorType"],selector:function(K,X){if(_.S("kevlar_modern_downloads_page")&&X&&X!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var F=K.entities;switch(X){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":X=_.cv(F);K=cG(X);var P=_.ZH(X);F=_.Bv(F);F=_.bY(ww4(P,F,X.length));return{contents:K,subtitle:F};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return F=_.cv(F),{contents:cG(F)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return F=
_.pI(F),{contents:cG(F)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return F=_.xf4(F),{contents:cG(F)};default:_.yy(new _.nG("Error: entitySelectorType defined but not matched in selector.",K,X))}}}}),
_.g("design:type",Object)],LC.prototype,"entityDrivenRichShelfData",void 0);_.O([_.h({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.g("design:type",Boolean)],LC.prototype,"hasTopCtaButton",void 0);_.O([_.h({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.g("design:type",Boolean)],LC.prototype,"hasBottomCtaButton",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.g("design:type",Boolean)],LC.prototype,"force16By9ThumbnailAspectRatio",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],LC.prototype,"isShowLessHidden",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],LC.prototype,"restrictContentsOverflow",void 0);_.O([_.h({selector:_.YHq}),_.g("design:type",Boolean)],LC.prototype,"inlinePreviewIsEnabled",void 0);
_.O([_.h({computed:"computeSizing(data)"}),_.g("design:type",String)],LC.prototype,"sizing",void 0);_.O([_.h(),_.g("design:type",Boolean)],LC.prototype,"typographyBump",void 0);_.O([_.h(),_.g("design:type",Number)],LC.prototype,"itemWidth",void 0);_.O([_.h(),_.g("design:type",Object)],LC.prototype,"firstShownIndex",void 0);_.O([_.h(),_.g("design:type",Object)],LC.prototype,"horizontalOffset",void 0);_.O([_.h(),_.g("design:type",Object)],LC.prototype,"atEnd",void 0);
_.O([_.fa("#contents"),_.g("design:type",HTMLElement)],LC.prototype,"contents",void 0);_.O([_.so("data.rowIndex"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],LC.prototype,"onRowIndexChange",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],LC.prototype,"onDataChange",null);
_.O([_.so("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],LC.prototype,"handleRerenderDownloadsData",null);_.O([_.Hc("focusin"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],LC.prototype,"onChildElementFocus",null);_.O([_.h({reflectToAttribute:!0}),_.U("data","isHomePage"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],LC.prototype,"isTruncated",null);
_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],LC.prototype,"hideBottomDivider",null);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],LC.prototype,"hasChevronButtons",null);_.O([_.U("firstShownIndex"),_.g("design:type",Object),_.g("design:paramtypes",[])],LC.prototype,"previousButtonOverride",null);
_.O([_.U("atEnd"),_.g("design:type",Object),_.g("design:paramtypes",[])],LC.prototype,"nextButtonOverride",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],LC.prototype,"isHomePage",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],LC.prototype,"thumbnailAriaHidden",null);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],LC.prototype,"initiallyIsExpanded",null);
_.O([_.U("data"),_.g("design:type",String),_.g("design:paramtypes",[])],LC.prototype,"entitySelectorType",null);LC=_.O([_.v({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],LC);
_.ZgT=_.xc()(LC,"ytd-rich-shelf-renderer",function(){if(JSL===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);JSL=K}K=JSL;return K},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Ig("kevlar_poly_si_batch_j028")?1:2});var YbC;_.EP(EPC,"yt-slimline-survey-view-model",{props:{data:_.vU}});var T2=function(){var K=_.G.apply(this,arguments)||this;K.tileLottieAnimationRef={};K.backgroundLottieAnimationRef={};K.isOnHoverBehaviorForLottieEnabled=!0;K.useBiggerShowcaseImage=_.S("enable_desktop_search_bigger_thumbs");K.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return K};
_.r(T2,_.G);_.z=T2.prototype;_.z.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.z.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.z.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var K=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);K!==this.hasTile&&this.set("hasTile",K);K=this.hasLogo(this.data)||!!this.data.badgeText;K!==this.hasMetadata&&this.set("hasMetadata",K);K=this.data.overflowButton?!1:K;K!==this.showLogoImage&&this.set("showLogoImage",K);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.z.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.z.currentColorChanged=function(){this.updateButtonPalette()};
_.z.computeBackgroundStyle=function(K){if(K&&this.data){var X=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var F=_.CB((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);F&&X.push('background-image: url("'+F+'");')}var P;((P=K.basicColorData)==null?void 0:P.backgroundColor)!==void 0&&X.push("background-color: "+_.wq(K.basicColorData.backgroundColor)+";");return X.join("")}};
_.z.onDarkModeToggledAction=function(K){K!==this.isDarkTheme&&this.set("isDarkTheme",K)};
_.z.getCurrentLogo=function(K,X){if(K)return X?K.darkLogoImage:K.lightLogoImage};
_.z.getCurrentStaticTileImage=function(K,X){if(this.hasStaticTile(K))return K.darkTileImage?X?K.darkTileImage:K.tileImage:K.tileImage};
_.z.computeTitleStyle=function(K){if(this.data&&this.data.title&&K&&K.basicColorData&&K.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.j0(K.basicColorData.foregroundTitleColor)+";"};
_.z.computeSubtitleStyle=function(K){if(this.data&&this.data.subtitle&&K&&K.basicColorData&&K.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.j0(K.basicColorData.foregroundBodyColor)+";"};
_.z.computeSupplementalStyle=function(K){if(this.data&&this.data.supplementalText&&K&&K.supplementalTextColor!==void 0)return K=_.j0(K.supplementalTextColor),"color:"+K+";--yt-endpoint-color:"+K+";--yt-endpoint-hover-color:"+K+";--yt-endpoint-visited-color:"+K+";--yt-formatted-string-bold-font-weight:700;"};
_.z.computeBadgeStyle=function(K){if(this.data&&this.data.badgeText&&K&&K.basicColorData&&K.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.j0(K.basicColorData.foregroundActivatedColor)+";"};
_.z.computeDismissIconStyle=function(K){var X,F;if((K==null?0:(X=K.dismissButtonColorData)==null?0:X.foregroundTitleColor)&&(K==null?0:(F=K.dismissButtonColorData)==null?0:F.backgroundColor))return"--yt-button-color:"+_.wq(K.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.wq(K.dismissButtonColorData.backgroundColor)+";"};
_.z.computeOverflowIconStyle=function(K){var X,F;if((K==null?0:(X=K.dismissButtonColorData)==null?0:X.foregroundTitleColor)&&(K==null?0:(F=K.dismissButtonColorData)==null?0:F.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.wq(K.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.wq(K.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.wq(K.dismissButtonColorData.foregroundTitleColor)+";"};
_.z.computeBannerStyle=function(K){return K?K.toLowerCase().replace(/_/g,"-"):""};
_.z.computeLocation=function(K){switch(K==null?void 0:K.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.z.shouldShowTileSection=function(K,X,F){return!this.shouldExpandLogo(K,X,F)&&X};
_.z.shouldShowExpandedLogoSection=function(K,X,F){return this.shouldExpandLogo(K,X,F)&&K!==void 0&&this.hasLogo(K)};
_.z.shouldExpandLogo=function(K,X,F){return K&&X?!1:F>=2};
_.z.hasStaticTile=function(K){return!(K==null||!K.tileImage)};
_.z.hasTileLottie=function(K){var X;return!!(K==null?0:(X=K.tileLottie)==null?0:X.url)};
_.z.hasLogo=function(K){return this.getCurrentLogo(K,this.isDarkTheme)!==void 0};
_.z.getLogoHeight=function(K){return this.logoWithPadding(K)?"26":"20"};
_.z.getExpandedLogoHeight=function(K){return this.logoWithPadding(K)?"31":"24"};
_.z.getLogoImageId=function(K){return this.logoWithPadding(K)?"logo-image-with-padding":"logo-image"};
_.z.hasBackgroundLottie=function(K){var X;return!!(K==null?0:(X=K.backgroundLottie)==null?0:X.url)};
_.z.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var K,X;(K=this.tileLottieAnimationRef)==null||(X=K.lottieEl)==null||X.play();var F,P;(F=this.backgroundLottieAnimationRef)==null||(P=F.lottieEl)==null||P.play()}};
_.z.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var K,X;(K=this.tileLottieAnimationRef)==null||(X=K.lottieEl)==null||X.pause();var F,P;(F=this.backgroundLottieAnimationRef)==null||(P=F.lottieEl)==null||P.pause()}};
_.z.pauseLottie=function(){var K,X;(K=this.tileLottieAnimationRef)==null||(X=K.lottieEl)==null||X.pause();var F,P;(F=this.backgroundLottieAnimationRef)==null||(P=F.lottieEl)==null||P.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.z.performPrimaryButtonAction=function(){var K,X,F;((K=this.data)==null?0:(X=K.primaryButton)==null?0:(F=X.buttonRenderer)==null?0:F.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.z.requestElementsPerRow=function(){_.iX(this.hostElement,"yt-request-elements-per-row")};
_.z.updateButtonPalette=function(){if(this.data&&this.currentColorData){var K;((K=this.data.dismissButton)==null?0:K.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 X;if((X=this.data.primaryButton)==null?0:X.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 F;if((F=this.data.secondaryButton)==
null?0:F.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 P;((P=this.data.primaryButton)==null?0:P.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var H;((H=this.data.secondaryButton)==null?0:H.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.z.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var K=this.getTileLottieDataBasedOnTheme(),X,F;if(K.url!==((X=this.tileLottiePlayerProps)==null?void 0:(F=X.animationConfig)==null?void 0:F.path)){var P,H;(P=this.tileLottieAnimationRef)==null||(H=P.lottieEl)==null||H.destroy();var f;this.isOnHoverBehaviorForLottieEnabled=!((f=K.settings)==null?0:f.autoplay);var u,J;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(J=(u=K.settings)==null?void 0:u.autoplay)!=null?J:!1,loop:this.getLottieLoopValue(K.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof K.url==="string"?this.tileLottiePlayerProps.animationConfig.path=K.url:this.tileLottiePlayerProps.animationConfig.animationData=K.url}}};
_.z.getOverflowButton=function(K){return _.T(K.overflowButton,jKQ)};
_.z.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var K=this.getBackgroundLottieDataBasedOnTheme(),X,F;if(K.url!==((X=this.backgroundLottiePlayerProps)==null?void 0:(F=X.animationConfig)==null?void 0:F.path)){var P,H;(P=this.backgroundLottieAnimationRef)==null||(H=P.lottieEl)==null||H.destroy();var f;this.isOnHoverBehaviorForLottieEnabled=!((f=K.settings)==null?0:f.autoplay);var u,J;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(J=(u=K.settings)==null?void 0:u.autoplay)!=null?J:!1,loop:this.getLottieLoopValue(K.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof K.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=K.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
K.url}}};
_.z.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var K;((K=this.tileLottieAnimationRef)==null?void 0:K.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var X;((X=this.backgroundLottieAnimationRef)==null?void 0:X.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.z.getTileLottieDataBasedOnTheme=function(){var K;if(this.isDarkTheme&&((K=this.data)==null?0:K.darkThemeTileLottie))return this.data.darkThemeTileLottie;var X;return((X=this.data)==null?0:X.tileLottie)?this.data.tileLottie:{}};
_.z.getBackgroundLottieDataBasedOnTheme=function(){var K;if(this.isDarkTheme&&((K=this.data)==null?0:K.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var X;return((X=this.data)==null?0:X.backgroundLottie)?this.data.backgroundLottie:{}};
_.z.onUpdateElementsPerRowAction=function(K){K&&this.elementsPerRow!==K&&(this.elementsPerRow=K)};
_.z.getLottieLoopValue=function(K){return K?K.loop!==void 0?K.loop:K.loopCount?K.loopCount-1:!0:!0};
_.z.logoWithPadding=function(K){var X,F,P;return(K=(X=this.getCurrentLogo(K,this.isDarkTheme))==null?void 0:(F=X.thumbnails)==null?void 0:(P=F[0])==null?void 0:P.height)&&K%31===0?!0:!1};
T2.prototype.currentColorChanged=T2.prototype.currentColorChanged;T2.prototype.themeChanged=T2.prototype.themeChanged;T2.prototype.dataChanged=T2.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],T2.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],T2.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.yD),_.g("design:type",Object)],T2.prototype,"ytdDismissibleItemBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],T2.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],T2.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],T2.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],T2.prototype,"primaryButton",void 0);_.O([_.h(),_.g("design:type",Object)],T2.prototype,"secondaryButton",void 0);
_.O([_.h({reflectToAttribute:!0,value:3}),_.g("design:type",Number)],T2.prototype,"elementsPerRow",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],T2.prototype,"isDarkTheme",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],T2.prototype,"hasTile",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],T2.prototype,"hasMetadata",void 0);
_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],T2.prototype,"showLogoImage",void 0);_.O([_.h(),_.g("design:type",Object)],T2.prototype,"currentColorData",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.g("design:type",String)],T2.prototype,"bannerStyle",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.g("design:type",String)],T2.prototype,"location",void 0);
_.O([_.h(),_.g("design:type",Object)],T2.prototype,"tileLottiePlayerProps",void 0);_.O([_.h(),_.g("design:type",Object)],T2.prototype,"tileLottieAnimationRef",void 0);_.O([_.h(),_.g("design:type",Object)],T2.prototype,"backgroundLottiePlayerProps",void 0);_.O([_.h(),_.g("design:type",Object)],T2.prototype,"backgroundLottieAnimationRef",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],T2.prototype,"useBiggerShowcaseImage",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],T2.prototype,"isHideEnclosingAction",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],T2.prototype,"dataChanged",null);_.O([_.JA("isDarkTheme"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],T2.prototype,"themeChanged",null);
_.O([_.JA("currentColorData"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],T2.prototype,"currentColorChanged",null);T2=_.O([_.v({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],T2);
_.t(T2,"ytd-statement-banner-renderer",function(){if(YbC!==void 0)return YbC;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-img-shadow>\n            <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="36" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[!data.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return YbC=K},{mode:1});var Q$C;var rN=function(){var K=_.G.apply(this,arguments)||this;K.isSearch=!1;K.hideShelfHeader=!1;K.engagementPanel=!1;K.disableMouseScroll=!0;K.useFloorScrolling=!0;K.modernTypography=_.S("web_modern_typography");return K};
_.r(rN,_.G);rN.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.uY("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.uY("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
rN.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
rN.prototype.onDataChanged=rN.prototype.onDataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],rN.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],rN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],rN.prototype,"isSearch",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],rN.prototype,"hideShelfHeader",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],rN.prototype,"engagementPanel",void 0);_.O([_.h(),_.g("design:type",Object)],rN.prototype,"disableMouseScroll",void 0);_.O([_.h(),_.g("design:type",Object)],rN.prototype,"useFloorScrolling",void 0);_.O([_.h(),_.g("design:type",Object)],rN.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],rN.prototype,"modernTypography",void 0);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],rN.prototype,"onDataChanged",null);rN=_.O([_.v({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],rN);
_.t(rN,"ytd-reel-shelf-renderer",function(){if(Q$C!==void 0)return Q$C;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Q$C=K},{mode:_.Ig("kevlar_poly_si_batch_j028")?1:2});var MsC;var net=_.$c(function(K){var X=K.data;K=K.useSmallFont;var F={},P={};return _.Q("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.Q(_.p,{cond:function(){return X().favicon},
then:function(H){return _.Q(_.av,{data:H,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.Q("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.Q(_.Oy,{text:function(){return X().title},
className:_.HO("yt-channel-external-link-view-model-wiz__title",(F["yt-channel-external-link-view-model-wiz__title--title-small-font"]=K,F)),ellipsisTruncate:!0,userInput:!0}),_.Q(_.Oy,{text:function(){return X().link},
className:_.HO("yt-channel-external-link-view-model-wiz__link",(P["yt-channel-external-link-view-model-wiz__link--link-small-font"]=K,P)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Hb");
net.idomCompat=!0;_.EP(net,"yt-channel-external-link-view-model",{props:{data:_.vU,useSmallFont:_.vU}});_.L4("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var Ah=function(){var K=_.G.apply(this,arguments)||this;K.revealButtonClass="button";K.businessEmailDisplayState="HIDE_SECTION";return K};
_.r(Ah,_.G);_.z=Ah.prototype;_.z.refit=function(){var K=this;_.dl(function(){_.IJ(K.hostElement,"yt-refit-popups-action")});
_.tg(this,function(){_.IJ(K.hostElement,"yt-refit-popups-action")})};
_.z.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.e4("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.z.businessEmailMetadataChanged=function(){this.revealButton||this.businessEmail||this.metadata.signInForBusinessEmail?this.metadata.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.metadata.businessEmail&&(this.businessEmail=this.metadata.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.z.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.z.configureRendererStamper=function(){return{"data.flaggingButton":{id:"flagging-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.shareChannel":{id:"share-channel",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"metadata.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:"yt-channel-external-link-view-model"}}}};
_.z.computeEmailHref=function(K){return"mailto:"+K};
_.z.computeSafeUrl=function(K){if(K)return _.ps(K)};
_.z.linkEndpoint=function(K){return _.T(K.onTap,_.j9)};
_.z.linkEndpointToHref=function(K){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(K))};
_.z.onYtServiceRequestCompleted=function(K){var X;if((X=K.detail.data)==null?0:X.businessEmail)this.businessEmail=K.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var F;if((F=K.detail.data)==null?0:F.errorMessage)this.businessEmailErrorMessage=K.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.z.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var K=this.JSC$14120_captchaTextarea.value;if(K){K={recaptcha_response_token:K,channel_id:this.metadata.channelId};var X=_.T(this.metadata.onBusinessEmailRevealClickCommand,_.j9);X&&this.ytComponentBehavior.resolveCommand(X,{form:K})}}};
_.z.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Oi.Object.defineProperties(Ah.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var K;return _.T((K=this.data)==null?void 0:K.metadata,LlC)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.T(this.metadata.businessEmailRevealButton,_.nS)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var K=new URL(this.metadata.canonicalChannelUrl);return K.host+K.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 _.T(this.metadata.learnMoreOnTap,_.j9)}}});
Ah.prototype.onYtServiceRequestCompleted=Ah.prototype.onYtServiceRequestCompleted;Ah.prototype.businessEmailMetadataChanged=Ah.prototype.businessEmailMetadataChanged;Ah.prototype.refit=Ah.prototype.refit;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Ah.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Ah.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Ah.prototype,"ytRendererstamperBehavior",void 0);_.O([_.fa("#g-recaptcha-response"),_.g("design:type",HTMLTextAreaElement)],Ah.prototype,"JSC$14120_captchaTextarea",void 0);_.O([_.h(),_.g("design:type",Object)],Ah.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],Ah.prototype,"revealButtonClass",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],Ah.prototype,"metadata",null);
_.O([_.U("metadata"),_.g("design:type",Object),_.g("design:paramtypes",[])],Ah.prototype,"revealButton",null);_.O([_.U("metadata"),_.g("design:type",Object),_.g("design:paramtypes",[])],Ah.prototype,"channelDisplayUrl",null);_.O([_.JA("metadata"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ah.prototype,"refit",null);_.O([_.U("metadata"),_.g("design:type",Object),_.g("design:paramtypes",[])],Ah.prototype,"formattedDescription",null);
_.O([_.U("metadata","learnMoreCommand"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Ah.prototype,"shouldRendereVerifiedPhoneStatus",null);_.O([_.U("metadata"),_.g("design:type",Object),_.g("design:paramtypes",[])],Ah.prototype,"learnMoreCommand",null);_.O([_.h(),_.g("design:type",String)],Ah.prototype,"businessEmailDisplayState",void 0);_.O([_.h(),_.g("design:type",String)],Ah.prototype,"businessEmail",void 0);
_.O([_.h(),_.g("design:type",String)],Ah.prototype,"businessEmailErrorMessage",void 0);_.O([_.JA("metadata"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ah.prototype,"businessEmailMetadataChanged",null);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Ah.prototype,"onYtServiceRequestCompleted",null);
Ah=_.O([_.v({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],Ah);
_.t(Ah,"ytd-about-channel-renderer",function(){if(MsC!==void 0)return MsC;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return MsC=K},{mode:1});var cSC;var jS=function(){return _.G.apply(this,arguments)||this};
_.r(jS,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],jS.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],jS.prototype,"data",void 0);jS=_.O([_.v({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],jS);
_.t(jS,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(cSC!==void 0)return cSC;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return cSC=K},{mode:1});var pPO;var wN=function(){return _.G.apply(this,arguments)||this};
_.r(wN,_.G);wN.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],wN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],wN.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],wN.prototype,"aligment",void 0);wN=_.O([_.v({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],wN);
_.t(wN,"ytd-channel-list-sub-menu-renderer",function(){if(pPO!==void 0)return pPO;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return pPO=
K},{mode:1});var BfC;var y6=function(){return _.G.apply(this,arguments)||this};
_.r(y6,_.G);y6.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}}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],y6.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],y6.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],y6.prototype,"data",void 0);y6=_.O([_.v({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],y6);
_.t(y6,"ytd-channel-sub-menu-renderer",function(){if(BfC!==void 0)return BfC;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return BfC=K},{mode:1});var SbQ;var oeW;var Wi=function(){var K=_.G.apply(this,arguments)||this;K.isCompact=!1;return K};
_.r(Wi,_.G);_.Oi.Object.defineProperties(Wi.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var K,X;return((X=_.T((K=this.data)==null?void 0:K.endpoint,_.mc))==null?void 0:X.target)==="TARGET_NEW_WINDOW"}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Wi.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Wi.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Wi.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Wi.prototype,"isCompact",void 0);_.O([_.U("isCompact"),_.g("design:type",Number),_.g("design:paramtypes",[])],Wi.prototype,"thumbnailWidth",null);
_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Wi.prototype,"openNewWindow",null);Wi=_.O([_.v({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],Wi);
_.t(Wi,"ytd-media-lockup-renderer",function(){if(oeW!==void 0)return oeW;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return oeW=K},{mode:1});var LZE;var dN=function(){return _.G.apply(this,arguments)||this};
_.r(dN,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],dN.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],dN.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],dN.prototype,"data",void 0);dN=_.O([_.v({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],dN);
_.t(dN,"ytd-structured-description-channel-lockup-renderer",function(){if(LZE!==void 0)return LZE;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return LZE=K},{mode:1});var TfC;var eS=function(){var K=_.G.apply(this,arguments)||this;K.isCompact=!1;K.collections=_.S("web_modern_collections_v2");K.collectionsStackColor=_.S("modernize_structured_description_playlist_lockups_v2");return K};
_.r(eS,_.G);eS.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:_.S("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.Oi.Object.defineProperties(eS.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var K,X,F,P,H,f;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(K=this.data)==null?void 0:(X=K.thumbnail)==null?void 0:X.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(F=this.data)==null?void 0:(P=F.thumbnail)==null?void 0:P.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(H=this.data)==null?void 0:(f=H.thumbnail)==
null?void 0:f.vibrantColorPalette:void 0}}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],eS.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],eS.prototype,"componentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],eS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],eS.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],eS.prototype,"showSidePanelThumbnailOverlay",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],eS.prototype,"isCompact",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],eS.prototype,"collections",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],eS.prototype,"collectionsStackColor",void 0);_.O([_.U("data"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],eS.prototype,"twoLineTitle",null);
_.O([_.U("data","collections","collectionsStackColor"),_.g("design:type",Object),_.g("design:paramtypes",[])],eS.prototype,"collectionStack",null);eS=_.O([_.v({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],eS);
_.t(eS,"ytd-structured-description-playlist-lockup-renderer",function(){if(TfC!==void 0)return TfC;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return TfC=K},{mode:1});var rSL;var RL=function(){return _.G.apply(this,arguments)||this};
_.r(RL,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],RL.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],RL.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],RL.prototype,"data",void 0);RL=_.O([_.v({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],RL);
_.t(RL,"ytd-structured-description-video-lockup-renderer",function(){if(rSL!==void 0)return rSL;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return rSL=K},{mode:2});var U7=function(){return _.G.apply(this,arguments)||this};
_.r(U7,_.G);
U7.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}}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],U7.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],U7.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],U7.prototype,"data",void 0);U7=_.O([_.v({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],U7);
_.t(U7,"ytd-compact-infocard-renderer",function(){if(SbQ!==void 0)return SbQ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return SbQ=K},{mode:1});var ASu;var hh=function(){var K=_.G.apply(this,arguments)||this;K.useModernCollectionsV2=_.S("web_modern_collections_v2");return K};
_.r(hh,_.G);hh.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Oi.Object.defineProperties(hh.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],hh.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],hh.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.yD),_.g("design:type",Object)],hh.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],hh.prototype,"ytdReduxBehavior",void 0);_.O([_.h({selector:_.Wp}),_.g("design:type",Object)],hh.prototype,"isGridViewEnabled",void 0);
_.O([_.U("isGridViewEnabled"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],hh.prototype,"watchFeedBigThumbs",null);_.O([_.U("isGridViewEnabled","data"),_.h({reflectToAttribute:!0,value:"168"}),_.g("design:type",String),_.g("design:paramtypes",[])],hh.prototype,"thumbnailWidth",null);_.O([_.U("isGridViewEnabled","data"),_.h({reflectToAttribute:!0,value:"94"}),_.g("design:type",String),_.g("design:paramtypes",[])],hh.prototype,"customThumbnailSize",null);
_.O([_.h(),_.g("design:type",Object)],hh.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],hh.prototype,"useModernCollectionsV2",void 0);hh=_.O([_.v({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],hh);
_.t(hh,"ytd-compact-playlist-renderer",function(){if(ASu!==void 0)return ASu;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return ASu=K},{mode:1});var j$u;var mF=function(){var K=_.G.apply(this,arguments)||this;K.darkerDarkTheme=_.S("web_darker_dark_theme");K.roundedContainer=!0;K.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return K};
_.r(mF,_.G);_.z=mF.prototype;_.z.attached=function(){this.requestElementsPerRow()};
_.z.configureRendererStamper=function(){return{"data.actionButton":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.z.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.z.computeViewStyle=function(K){return K.style?K.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.z.onUpdateElementsPerRowAction=function(K){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&K===1};
_.z.requestElementsPerRow=function(){_.iX(this.hostElement,"yt-request-elements-per-row")};
mF.prototype.dataChanged=mF.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],mF.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],mF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.yD),_.g("design:type",Object)],mF.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],mF.prototype,"actionHandlerBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],mF.prototype,"data",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],mF.prototype,"hideThumbnail",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.g("design:type",String)],mF.prototype,"viewStyle",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],mF.prototype,"darkerDarkTheme",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],mF.prototype,"roundedContainer",void 0);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],mF.prototype,"dataChanged",null);mF=_.O([_.v({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],mF);
_.t(mF,"ytd-compact-promoted-item-renderer",function(){if(j$u!==void 0)return j$u;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return j$u=K},{mode:1});var wPQ;var G2=function(){var K=_.G.apply(this,arguments)||this;K.collections=_.S("web_modern_collections_v2");return K};
_.r(G2,_.G);G2.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
G2.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
G2.prototype.onYtNavigate=function(K,X){var F=this;if(X.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",X)){var P=this.get("watchEndpoint.videoId",X.endpoint),H=_.IJ(this.hostElement,"yt-get-current-video-id-action")[0];_.S("kevlar_mix_handle_first_endpoint_different")&&P&&H&&P!==H||(K.stopPropagation(),_.Oe().getPlayerPromise().then(function(f){if(f.getPlayerState()===0&&F.data.secondaryNavigationEndpoint)var u=F.data.secondaryNavigationEndpoint;else{u=
Object.assign({},X.endpoint);var J=_.T(u.commandMetadata,_.g_);J&&(f=Math.floor(f.getCurrentTime()),J.url=_.ON(J.url,{t:f}),!_.S("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(J=_.T(u,_.vg)))&&(J.startTimeSeconds=f)}_.iX(F.hostElement,"yt-navigate",{endpoint:u})}))}};
_.Oi.Object.defineProperties(G2.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var K,X,F,P,H,f;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(K=this.data)==null?void 0:(X=K.thumbnail)==null?void 0:X.sampledThumbnailColor,vibrantColorPalette:(F=this.data)==null?void 0:(P=F.thumbnail)==null?void 0:P.vibrantColorPalette,darkColorPalette:(H=this.data)==null?void 0:(f=H.thumbnail)==null?void 0:f.darkColorPalette,experimentEnabled:this.collections}}}});
G2.prototype.onYtNavigate=G2.prototype.onYtNavigate;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],G2.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.DP.YtEndpointBehavior),_.g("design:type",Object)],G2.prototype,"ytEndpointBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],G2.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.yD),_.g("design:type",Object)],G2.prototype,"ytdDismissibleItemBehavior",void 0);
_.O([_.W(_.mE),_.g("design:type",Object)],G2.prototype,"ytdLockupBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],G2.prototype,"ytdReduxBehavior",void 0);_.O([_.h({selector:_.Wp}),_.g("design:type",Object)],G2.prototype,"isGridViewEnabled",void 0);_.O([_.U("isGridViewEnabled"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],G2.prototype,"watchFeedBigThumbs",null);
_.O([_.U("isGridViewEnabled"),_.h({reflectToAttribute:!0}),_.g("design:type",String),_.g("design:paramtypes",[])],G2.prototype,"thumbnailWidth",null);_.O([_.h(),_.g("design:type",Object)],G2.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],G2.prototype,"collections",void 0);_.O([_.U("data","collections"),_.g("design:type",Object),_.g("design:paramtypes",[])],G2.prototype,"collectionStack",null);
_.O([_.Hc("yt-navigate"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],G2.prototype,"onYtNavigate",null);G2=_.O([_.v({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],G2);
_.t(G2,"ytd-compact-radio-renderer",function(){if(wPQ!==void 0)return wPQ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return wPQ=K},{mode:1});var ySL;var l0=function(){return _.G.apply(this,arguments)||this};
_.r(l0,_.G);l0.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
l0.prototype.computeRendererStyle=function(K){return K.style?K.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.O([_.h(),_.g("design:type",Object)],l0.prototype,"data",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],l0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],l0.prototype,"rendererBehavior",void 0);_.O([_.h({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.g("design:type",String)],l0.prototype,"rendererStyle",void 0);
l0=_.O([_.v({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],l0);
_.t(l0,"ytd-compact-text-promo-renderer",function(){if(ySL!==void 0)return ySL;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return ySL=K},{mode:1});var WZT;var vi=function(){var K=_.G.apply(this,arguments)||this;K.isShortsStyle=!1;return K};
_.r(vi,_.G);_.z=vi.prototype;_.z.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.z.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.iX(this.hostElement,"yt-disable-lockup-interaction"):_.iX(this.hostElement,"yt-enable-lockup-interaction"))};
_.z.isMetaBlockEmpty=function(K){return!K||!K.longBylineText&&!K.shortBylineText&&!K.shortViewCountText&&!K.viewCountText};
_.z.computeHasOneLineTitle=function(K){return this.forceOneLineTitle||!(K==null||!K.buttons)};
_.z.computeDisableInteraction=function(){var K;return!((K=this.data)==null?0:K.navigationEndpoint)};
_.z.hasSingularTopStandaloneBadge=function(){var K;return!((K=this.data)==null||!K.topStandaloneBadge)};
_.Oi.Object.defineProperties(vi.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("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 K;return this.hasSingularTopStandaloneBadge()?[(K=this.data)==null?void 0:K.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var K;return this.shouldShowTopBadges?((K=this.data)==null?void 0:K.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
vi.prototype.disableInteractionChanged=vi.prototype.disableInteractionChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],vi.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],vi.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.yD),_.g("design:type",Object)],vi.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.W(_.mE),_.g("design:type",Object)],vi.prototype,"ytdLockupBehavior",void 0);
_.O([_.W(_.jn),_.g("design:type",Object)],vi.prototype,"ytdReduxBehavior",void 0);_.O([_.h({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.g("design:type",Boolean)],vi.prototype,"metaBlockEmpty",void 0);_.O([_.h({selector:_.Wp}),_.g("design:type",Object)],vi.prototype,"isGridViewEnabled",void 0);_.O([_.U("isGridViewEnabled"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],vi.prototype,"watchFeedBigThumbs",null);
_.O([_.U("isGridViewEnabled"),_.h({reflectToAttribute:!0}),_.g("design:type",String),_.g("design:paramtypes",[])],vi.prototype,"thumbnailWidth",null);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],vi.prototype,"isShortsStyle",void 0);_.O([_.h(),_.g("design:type",Object)],vi.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.g("design:type",Boolean)],vi.prototype,"hasOneLineTitle",void 0);
_.O([_.h(),_.g("design:type",Boolean)],vi.prototype,"hideThumbnail",void 0);_.O([_.h(),_.g("design:type",Boolean)],vi.prototype,"forceOneLineTitle",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.g("design:type",Boolean)],vi.prototype,"disableInteraction",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],vi.prototype,"musicMetadataVideoLockup",void 0);
_.O([_.so("disableInteraction"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],vi.prototype,"disableInteractionChanged",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],vi.prototype,"shouldShowTopBadges",null);_.O([_.U("data"),_.g("design:type",Array),_.g("design:paramtypes",[])],vi.prototype,"topBadges",null);
_.O([_.U("shouldShowTopBadges","data"),_.g("design:type",Array),_.g("design:paramtypes",[])],vi.prototype,"inlineMetadataBadges",null);_.O([_.U("shouldShowTopBadges"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],vi.prototype,"shouldShowBadgesBelowMetadata",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],vi.prototype,"compactTitleClass",null);vi=_.O([_.v({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],vi);
_.t(vi,"ytd-compact-video-renderer",function(){if(WZT!==void 0)return WZT;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return WZT=K},{mode:_.Ig("kevlar_poly_si_batch_j067")?1:2});var dCC;_.L4("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var aL=function(){return _.G.apply(this,arguments)||this};
_.r(aL,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],aL.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],aL.prototype,"data",void 0);aL=_.O([_.v({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],aL);
_.t(aL,"ytd-counterfactual-renderer",function(){if(dCC!==void 0)return dCC;var K=document.createElement("template");_.w(K,"\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");K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return dCC=K},{mode:1});var eKT;var th=function(){var K=_.G.apply(this,arguments)||this;K.hidden=!1;return K};
_.r(th,_.G);th.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.i9().resolve(_.xU).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
th.prototype.computeHidden=function(K){return!!K};
_.Oi.Object.defineProperties(th.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}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],th.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],th.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.g("design:type",Object)],th.prototype,"hidden",void 0);_.O([_.U("data.label"),_.g("design:type",String),_.g("design:paramtypes",[])],th.prototype,"label",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],th.prototype,"value",null);
th=_.O([_.v({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],th);
_.t(th,"ytd-dropdown-item-renderer",function(){if(eKT!==void 0)return eKT;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return eKT=K},{mode:1});var RKZ;var UCW;var O7=function(){return _.G.apply(this,arguments)||this};
_.r(O7,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],O7.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],O7.prototype,"data",void 0);_.O([_.h({computed:"getSimpleString(data.label)"}),_.g("design:type",String)],O7.prototype,"label",void 0);O7=_.O([_.v({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],O7);
_.t(O7,"ytd-navigation-dropdown-item-renderer",function(){if(UCW!==void 0)return UCW;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return UCW=K},{mode:1});var V6=function(){var K=_.G.apply(this,arguments)||this;K.disabled=!1;K.value="";K.noLabelFloat=!1;K.noUnderline=!1;K.usePrimaryColor=!1;K.hasBackground=!1;K.verticalAlign="top";K.autosize=!1;K.minAutosizeWidth=100;K.autosizeFont="14px Roboto";return K};
_.r(V6,_.G);_.z=V6.prototype;_.z.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.z.open=function(){this.inputEl.open()};
_.z.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.z.dataChanged=function(){this.reset()};
_.z.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R9("value-changed",this.value))};
_.z.stopPropagation=function(K){K.stopPropagation()};
_.z.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var K=this.canvas.getContext("2d");K&&(K.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(K.measureText(this.inputEl.value).width)+24)+"px")}};
_.z.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var K=0,X=this.data.entries.length;K<X;K++){var F=this.data.entries[K],P;for(P in F)if(F.hasOwnProperty(P)){var H=F[P];if("isSelected"in H&&H.isSelected)return"stringValue"in H?H.stringValue||"":"int32Value"in H?H.int32Value||0:0}}return null};
_.z.updateValueFromBinding=function(K){this.value=K.detail.value};
_.Oi.Object.defineProperties(V6.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 K=0,X=this.data.entries.length;K<X;K++){var F=this.data.entries[K],P;for(P in F)if(F.hasOwnProperty(P)){var H=F[P];if("isSelected"in H&&H.isSelected&&"label"in H)return this.ytRendererBehavior.getSimpleString(H.label)}}return null}}});
V6.prototype.autoSizeLabel=V6.prototype.autoSizeLabel;V6.prototype.stopPropagation=V6.prototype.stopPropagation;V6.prototype.valueChangedForBinding=V6.prototype.valueChangedForBinding;V6.prototype.dataChanged=V6.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],V6.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],V6.prototype,"ytRendererStamperBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],V6.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],V6.prototype,"disabled",void 0);_.O([_.h(),_.g("design:type",Object)],V6.prototype,"value",void 0);_.O([_.h(),_.g("design:type",Object)],V6.prototype,"noLabelFloat",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],V6.prototype,"noUnderline",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],V6.prototype,"theme",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],V6.prototype,"usePrimaryColor",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],V6.prototype,"hasBackground",void 0);_.O([_.h(),_.g("design:type",Object)],V6.prototype,"verticalAlign",void 0);_.O([_.h(),_.g("design:type",Object)],V6.prototype,"autosize",void 0);_.O([_.h(),_.g("design:type",Object)],V6.prototype,"minAutosizeWidth",void 0);_.O([_.h(),_.g("design:type",Object)],V6.prototype,"autosizeFont",void 0);
_.O([_.fa("#entries"),_.g("design:type",Object)],V6.prototype,"entries",void 0);_.O([_.fa("#input"),_.g("design:type",Object)],V6.prototype,"inputEl",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],V6.prototype,"dataChanged",null);_.O([_.JA("value"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],V6.prototype,"valueChangedForBinding",null);
_.O([_.Hc("iron-overlay-opened"),_.Hc("iron-overlay-closed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],V6.prototype,"stopPropagation",null);_.O([_.Hc("iron-select"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],V6.prototype,"autoSizeLabel",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],V6.prototype,"label",null);
V6=_.O([_.v({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],V6);
_.t(V6,"ytd-dropdown-renderer",function(){if(RKZ!==void 0)return RKZ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return RKZ=K},{mode:1});var hKL;var gN=function(){var K=_.G.apply(this,arguments)||this;K.isConstrainedList=!1;return K};
_.r(gN,_.G);gN.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"}}}};
gN.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
gN.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
gN.prototype.computeViewAllHidden=function(K,X){return K||!X.viewAllEndpoint};
gN.prototype.fillRestIfNoShowMore=gN.prototype.fillRestIfNoShowMore;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],gN.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],gN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.CA.YtLazyListBehavior),_.g("design:type",Object)],gN.prototype,"ytLazyListBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],gN.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],gN.prototype,"isConstrainedList",void 0);_.O([_.JA("data","canShowMore"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],gN.prototype,"fillRestIfNoShowMore",null);gN=_.O([_.v({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],gN);
_.t(gN,"ytd-expanded-shelf-contents-renderer",function(){if(hKL!==void 0)return hKL;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return hKL=K},{mode:_.Ig("kevlar_poly_si_batch_j025")?1:2});var mCV;var E7=function(){return _.G.apply(this,arguments)||this};
_.r(E7,_.G);E7.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}}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],E7.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],E7.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],E7.prototype,"data",void 0);E7=_.O([_.v({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],E7);
_.t(E7,"ytd-feed-channel-filter-header-renderer",function(){if(mCV!==void 0)return mCV;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return mCV=K},{mode:1});var GuN;var l8W;var veV;var b0=function(){return _.G.apply(this,arguments)||this};
_.r(b0,_.G);_.z=b0.prototype;_.z.onClick=function(K){var X,F=(X=this.data)==null?void 0:X.sectionEndpoint;!_.lC(_.lN(K),this.hostElement,["A".toString()])&&F&&_.iX(this.hostElement,"yt-navigate",{endpoint:F})};
_.z.computeHasSectionEndpoint=function(K){return(K==null?void 0:K.sectionEndpoint)!==void 0};
_.z.computeShowHeaderAsLink=function(K){return(K==null?void 0:K.header)!==void 0&&(K==null?void 0:K.sectionEndpoint)!==void 0};
_.z.computeShowSubheaderAsLink=function(K){return(K==null?void 0:K.subheader)!==void 0&&(K==null?void 0:K.sectionEndpoint)!==void 0&&(K==null?void 0:K.header)===void 0};
_.z.getHeaderAsLinkClass=function(K){var X=[],F;(K==null?0:(F=K.headerIcon)==null?0:F.iconType)&&X.push("header-link-active");return X.join(" ")};
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],b0.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],b0.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],b0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],b0.prototype,"data",void 0);
_.O([_.h({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],b0.prototype,"hasSectionEndpoint",void 0);_.O([_.h({computed:"computeShowHeaderAsLink(data)"}),_.g("design:type",Boolean)],b0.prototype,"showHeaderAsLink",void 0);_.O([_.h({computed:"computeShowSubheaderAsLink(data)"}),_.g("design:type",Boolean)],b0.prototype,"showSubheaderAsLink",void 0);b0=_.O([_.v({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],b0);
_.t(b0,"ytd-medical-panel-section-renderer",function(){if(veV!==void 0)return veV;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return veV=K},{mode:1});var CC=function(){var K=_.G.apply(this,arguments)||this;K.isExpanded=!1;K.roundedContainer=!0;K.skipRoundingTop=!1;K.toggleExpandableSection=function(){K.isExpanded=!K.isExpanded};
return K};
_.r(CC,_.G);
CC.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]]"}}}}}};
CC.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
CC.prototype.dataChanged=CC.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],CC.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],CC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],CC.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],CC.prototype,"isExpanded",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],CC.prototype,"roundedContainer",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],CC.prototype,"skipRoundingTop",void 0);_.O([_.h(),_.g("design:type",Object)],CC.prototype,"toggleExpandableSection",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],CC.prototype,"dataChanged",null);CC=_.O([_.v({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],CC);
_.t(CC,"ytd-medical-panel-content-renderer",function(){if(l8W!==void 0)return l8W;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return l8W=K},{mode:1});_.L4("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var N9=function(){var K=_.G.apply(this,arguments)||this;K.roundedContainer=!0;K.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");K.hasTitle=!1;K.linkIcon="OPEN_IN_NEW";K.isDismissed=!1;return K};
_.r(N9,_.G);
N9.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",roundedContainer:"[[roundedContainer]]"}},
horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
N9.prototype.computeHasTitle=function(K){return!(K==null||!K.title)};
N9.prototype.onClick=function(K){var X,F=(X=this.data)==null?void 0:X.headerEndpoint;!_.lC(_.lN(K),this.hostElement,["BUTTON".toString()])&&F&&this.ytComponentBehavior.resolveCommand(F)};
_.Oi.Object.defineProperties(N9.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 K;return((K=this.data)==null?void 0:K.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.data)==null?void 0:K.disableBottomDivider)||!((X=this.data)==null?0:X.title)}}});
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],N9.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],N9.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],N9.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],N9.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],N9.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],N9.prototype,"roundedContainer",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],N9.prototype,"amsterdamEnabled",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.g("design:type",Object)],N9.prototype,"hasTitle",void 0);
_.O([_.h({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.U("data.background"),_.g("design:type",Object),_.g("design:paramtypes",[])],N9.prototype,"background",null);_.O([_.h({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.U("data.titleStyle"),_.g("design:type",Object),_.g("design:paramtypes",[])],N9.prototype,"titleStyle",null);
_.O([_.h({type:_.S("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.U("data.titleStyle"),_.g("design:type",Object),_.g("design:paramtypes",[])],N9.prototype,"showLinkIcon",null);_.O([_.h(),_.g("design:type",String)],N9.prototype,"linkIcon",void 0);_.O([_.h({type:_.S("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],N9.prototype,"hideDivider",null);
_.O([_.h({selectorArgs:["data.dismissStateEntityKey"],selector:function(K,X){K=_.FF(K.entities,"dismissState",X);return(K==null?void 0:K.isDismissed)||(K==null?void 0:K.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(K==null?void 0:K.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.g("design:type",Object)],N9.prototype,"isDismissed",void 0);N9=_.O([_.v({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],N9);
_.t(N9,"ytd-info-panel-container-renderer",function(){if(GuN!==void 0)return GuN;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return GuN=K},{mode:1});var a8C;_.L4("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var i0=function(){var K=_.G.apply(this,arguments)||this;K.modernTypography=_.S("web_modern_typography");return K};
_.r(i0,_.G);i0.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
i0.prototype.computeStyle=function(K){return K?K:""};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],i0.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],i0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],i0.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.g("design:type",String)],i0.prototype,"titleStyle",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],i0.prototype,"modernTypography",void 0);i0=_.O([_.v({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],i0);
_.t(i0,"ytd-item-section-header-renderer",function(){if(a8C!==void 0)return a8C;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return a8C=K},{mode:1});var tsT;var $Ct,OgC=function(){return $Ct!==void 0?$Ct:$Ct=document.createElement("template")};
document.head.appendChild(OgC().content);var VsC;_.xj=new _.Oh("VOTING_ANIMATION_CONTROLLER_TOKEN");var Eet=_.$c(function(K){var X=K.data;var F=_.t_(),P=_.t_();K=_.D(_.u_("VOTE_STATUS_NONE",void 0,"FVF7mc"));var H=K.next().value,f=K.next().value,u=_.sy(ltn,function(){var B;return(B=X())==null?void 0:B.entityKey}),J=_.S("web_enable_voting_animation")||_.S("enable_music_web_cairo_voting_animation");
_.AV(function(){var B;((B=X().initialState)==null?0:B.status)&&f(X().initialState.status)});
var Z=function(){var B,L,A=(L=(B=X().initialState)==null?void 0:B.votes)!=null?L:0,d;B=(d=X().initialState)==null?void 0:d.status;return B==="VOTE_STATUS_UPVOTED"?A-1:B==="VOTE_STATUS_DOWNVOTED"?A+1:A},M=function(){return H()==="VOTE_STATUS_UPVOTED"?Z()+1:H()==="VOTE_STATUS_DOWNVOTED"?Z()-1:Z()},n=function(B){var L=B?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
f(L);var A=M(),d=_.i9().resolve(_.Nu(_.xj)),R=u();R&&(B&&(R==null?0:R.upvoteDefaultButtonOnTap)?_.e9(R.upvoteDefaultButtonOnTap,{form:{element:F.value},disableClickTracking:!0}):(R==null?0:R.upvoteToggledButtonOnTap)&&_.e9(R.upvoteToggledButtonOnTap,{form:{element:F.value},disableClickTracking:!0}));var l;B=(l=R==null?void 0:R.enableOptimisticReordering)!=null?l:X().enableOptimisticReordering;J&&d&&X().itemId&&B&&geL(d,X().itemId,A,L)},c=function(B){var L=B?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
f(L);var A=M(),d=_.i9().resolve(_.Nu(_.xj)),R=u();R&&(B&&(R==null?0:R.downvoteDefaultButtonOnTap)?_.e9(R.downvoteDefaultButtonOnTap,{form:{element:P.value},disableClickTracking:!0}):(R==null?0:R.downvoteToggledButtonOnTap)&&_.e9(R.downvoteToggledButtonOnTap,{form:{element:P.value},disableClickTracking:!0}));var l;B=(l=R==null?void 0:R.enableOptimisticReordering)!=null?l:X().enableOptimisticReordering;J&&d&&X().itemId&&B&&geL(d,X().itemId,A,L)};
K={};K=_.HO("ytVotingViewModelVoteCount",(K.ytVotingViewModelVoteCountDisabled=function(){return X().isDisabled},K));
return _.Q("voting-view-model",{class:"ytVotingViewModelHost"},_.Q("div",{el:F},_.Q(_.Md,{data:function(){var B=_.T(X().upvoteButton,_.cp);return{toggleButtonViewModel:Object.assign({},B,{isToggled:H()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(B){return _.Q(_.pS,{data:B.data,
onToggle:n})}})),_.Q("div",{class:K},function(){var B,L,A;
return H()==="VOTE_STATUS_UPVOTED"?(B=X().initialState)==null?void 0:B.compactVotesUpvoted:H()==="VOTE_STATUS_DOWNVOTED"?(L=X().initialState)==null?void 0:L.compactVotesDownvoted:(A=X().initialState)==null?void 0:A.compactVotes}),_.Q("div",{el:P},_.Q(_.Md,{data:function(){var B=_.T(X().downvoteButton,_.cp);
return{toggleButtonViewModel:Object.assign({},B,{isToggled:H()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(B){return _.Q(_.pS,{data:B.data,
onToggle:c})}})))},"Ib");_.EP(_.$c(function(K){var X=K.data;return _.Q("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.Q("div",{class:_.HO("ytEngagementBarViewModelEngagementBarWrapper",K.className)},_.Q(_.Md,{data:function(){return X().actions}},{votingViewModel:Eet})))},"Jb"),"engagement-bar-view-model",{props:{data:_.vU,
className:_.vU}});var IL=function(){var K=_.G.apply(this,arguments)||this;K.amsterdamPostMvp=_.S("web_amsterdam_post_mvp_playlists");K.cairoCollabPlaylistPostMvp=_.S("web_collab_playlist_thumbnail_size");K.playlistVotingAnimationEnabled=_.S("web_enable_voting_animation");K.downloadProgress=0;K.transferState="TRANSFER_STATE_UNKNOWN";K.downloadState="DOWNLOAD_STATE_UNKNOWN";K.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";K.offlineVideoPolicyExpirationTimestamp=0;return K};
_.r(IL,_.G);_.z=IL.prototype;_.z.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.engagementBar":{id:"engagement-bar",mapping:{engagementBarViewModel:"engagement-bar-view-model"}}}};
_.z.canReorderChanged=function(){this.persistentDragHandle=_.S("kevlar_playlist_drag_handles")&&this.canReorder};
_.z.onDrag=function(){if(this.thumbnail){var K=_.C$(this.thumbnail).querySelector("yt-image");K&&(K.shouldRenderLazy=!1)}};
_.z.onMenuOverlayChanged=function(K,X){this.menuOpened=X};
_.z.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.z.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.z.onContentsTap=function(K){var X,F=(X=this.data)==null?void 0:X.serviceEndpoints;if(F&&F.length===1&&_.T(F[0],KR3)&&!_.lC(_.lN(K),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(F[0]);else{var P;(X=(P=this.data)==null?void 0:P.navigationEndpoint)&&_.S("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?bgV(_.i9().resolve(_.Wj),X):(_.zC().playlistSuggestionsShelfActivation=
!0,_.C3L(_.i9().resolve(_.Wj),X)):X&&!_.lC(_.lN(K),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.S("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.iX(this.hostElement,"yt-navigate",{endpoint:X}):this.ytComponentBehavior.resolveCommand(X))}};
_.z.computeStyle=function(K){return K?K.toLowerCase().replace(/_/g,"-"):""};
_.z.computeThumbnailWidth=function(K){return K==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.z.downloadStateChanged=function(){this.isDownloads=!1;if(this.entityInfo||this.downloadRenderData){if(!this.entityInfo&&this.downloadRenderData)this.downloadRenderData={shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};else{if(!this.entityInfo)return;this.downloadRenderData=DAl(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference,!0);this.isDownloads=Object.keys(this.downloadRenderData).length>0}this.set("data",
Object.assign({},this.data,this.downloadRenderData))}};
_.z.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.z.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.z.dataChanged=function(){if(this.data){var K,X,F,P=((K=this.downloadRenderData)==null?void 0:K.badges)&&((X=this.downloadRenderData)==null?void 0:X.badges)!==((F=this.data)==null?void 0:F.badges),H,f,u;K=((H=this.downloadRenderData)==null?void 0:H.thumbnailOverlays)&&((f=this.downloadRenderData)==null?void 0:f.thumbnailOverlays)!==((u=this.data)==null?void 0:u.thumbnailOverlays);(!this.downloadRenderData||P||K)&&this.downloadStateChanged()}};
_.z.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var K,X,F=(K=this.data.menu)==null?void 0:(X=K.menuRenderer)==null?void 0:X.items;if(F)for(K=_.D(F),X=K.next();!X.done;X=K.next())if(X=X.value,F=void 0,_.T((F=X.menuServiceItemRenderer)==null?void 0:F.serviceEndpoint,_.TI)){var P=F=void 0,H=void 0;X=(F=X)==null?void 0:(P=F.menuServiceItemRenderer)==null?void 0:(H=P.serviceEndpoint)==null?void 0:H.playlistEditEndpoint;H=P=void 0;if(F=(P=X)==null?void 0:(H=P.actions)==null?void 0:
H[0])P=void 0,F.setVideoId=(P=this.data)==null?void 0:P.setVideoId;H=P=F=void 0;if(X=(F=X)==null?void 0:(P=F.clientActions)==null?void 0:(H=P[0])==null?void 0:H.playlistRemoveVideosAction)F=void 0,X.setVideoIds=[(F=this.data)==null?void 0:F.setVideoId]}}};
_.Oi.Object.defineProperties(IL.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
IL.prototype.setVideoIdChanged=IL.prototype.setVideoIdChanged;IL.prototype.dataChanged=IL.prototype.dataChanged;IL.prototype.downloadStateChanged=IL.prototype.downloadStateChanged;IL.prototype.onMenuOverlayChanged=IL.prototype.onMenuOverlayChanged;IL.prototype.canReorderChanged=IL.prototype.canReorderChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],IL.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],IL.prototype,"ytdReduxBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],IL.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.mE),_.g("design:type",Object)],IL.prototype,"ytdLockupBehavior",void 0);_.O([_.W(_.yD),_.g("design:type",Object)],IL.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],IL.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],IL.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],IL.prototype,"amsterdamPostMvp",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],IL.prototype,"canReorder",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],IL.prototype,"menuOpened",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],IL.prototype,"handleIsHovered",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],IL.prototype,"persistentDragHandle",void 0);
_.O([_.h(),_.g("design:type",Object)],IL.prototype,"downloadRenderData",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.g("design:type",String)],IL.prototype,"styleType",void 0);_.O([_.h({computed:"computeThumbnailWidth(data.style)"}),_.g("design:type",Number)],IL.prototype,"thumbnailWidth",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],IL.prototype,"isDownloads",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],IL.prototype,"cairoCollabPlaylistPostMvp",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],IL.prototype,"playlistVotingAnimationEnabled",void 0);_.O([_.h({selector:wI,selectorArgs:["data.videoId"]}),_.g("design:type",Object)],IL.prototype,"downloadProgress",void 0);_.O([_.h(),_.g("design:type",Number)],IL.prototype,"relativeDateReference",void 0);
_.O([_.h({selector:_.rI,selectorArgs:["data.videoId"]}),_.g("design:type",Object)],IL.prototype,"transferState",void 0);_.O([_.h({selector:enM,selectorArgs:["data.videoId"]}),_.g("design:type",Object)],IL.prototype,"downloadState",void 0);_.O([_.h({selector:cpO,selectorArgs:["data.videoId"]}),_.g("design:type",Object)],IL.prototype,"offlinePolicyAction",void 0);_.O([_.h({selector:pHw,selectorArgs:["data.videoId"]}),_.g("design:type",Object)],IL.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.O([_.h({selector:SHq,selectorArgs:["data.videoId"]}),_.g("design:type",Object)],IL.prototype,"entityInfo",void 0);_.O([_.h({selector:_.LI}),_.g("design:type",Boolean)],IL.prototype,"miniplayerIsActive",void 0);_.O([_.U("data"),_.g("design:type",String),_.g("design:paramtypes",[])],IL.prototype,"playlistVideoId",null);_.O([_.fa("#thumbnail"),_.g("design:type",Object)],IL.prototype,"thumbnail",void 0);
_.O([_.JA("canReorder"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],IL.prototype,"canReorderChanged",null);_.O([_.Hc("yt-menu-overlay-changed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Boolean]),_.g("design:returntype")],IL.prototype,"onMenuOverlayChanged",null);
_.O([_.JA("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],IL.prototype,"downloadStateChanged",null);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],IL.prototype,"dataChanged",null);
_.O([_.JA("data.setVideoId"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],IL.prototype,"setVideoIdChanged",null);IL=_.O([_.v({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],IL);
_.t(IL,"ytd-playlist-video-renderer",function(){if(VsC!==void 0)return VsC;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);K.content.insertBefore(OgC().content.cloneNode(!0),K.content.firstChild);return VsC=K},{mode:1});var Nft;var kj=function(){return _.G.apply(this,arguments)||this};
_.r(kj,_.G);_.O([_.h(),_.g("design:type",Object)],kj.prototype,"data",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],kj.prototype,"rendererBehavior",void 0);kj=_.O([_.v({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],kj);
_.t(kj,"ytd-premium-browse-footer-renderer",function(){if(Nft!==void 0)return Nft;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Nft=K},{mode:1});var igW;var KK=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return K};
_.r(KK,_.G);_.z=KK.prototype;_.z.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.z.handleDarkModeToggledAction=function(K){this.isDarkTheme=K};
_.z.computeHeaderLogoThumbnail=function(K,X){if(K)return X?K.darkLogo:K.lightLogo};
_.z.computeHeaderLogoHeight=function(K,X){var F,P,H;return(K=(F=this.computeHeaderLogoThumbnail(K,X))==null?void 0:(P=F.thumbnails)==null?void 0:(H=P[0])==null?void 0:H.height)&&K%31===0?"31":"24"};
_.z.computeHeaderLogoMarginBottom=function(K,X){return this.computeHeaderLogoHeight(K,X)==="24"?"0":"-7"};
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],KK.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],KK.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],KK.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Boolean)],KK.prototype,"isDarkTheme",void 0);_.O([_.h({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.g("design:type",Object)],KK.prototype,"themeLogo",void 0);
_.O([_.h({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.g("design:type",String)],KK.prototype,"logoHeight",void 0);_.O([_.h({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.g("design:type",String)],KK.prototype,"logoMarginBottom",void 0);KK=_.O([_.v({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],KK);
_.t(KK,"ytd-primetime-promo-header-renderer",function(){if(igW!==void 0)return igW;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return igW=K},{mode:1});var xCu;var kuu=_.$c(function(K){var X=_.DF(function(H){var f;(f=K.onClick)==null||f.call(K,H)}),F={},P={};
return _.Q("yt-shelf-header-layout",{class:_.HO("shelf-header-layout-wiz",(F["shelf-header-layout-wiz--disable-horizontal-padding"]=K.disableHorizontalPadding,F["shelf-header-layout-wiz--disable-vertical-padding"]=K.disableVerticalPadding,F["shelf-header-layout-wiz--responsive"]=K.useResponsiveLayout,F["shelf-header-layout-wiz--narrow"]=function(){var H,f;return((H=K.useResponsiveLayout)==null?void 0:H.call(K))&&((f=K.forceSmallLayout)==null?void 0:f.call(K))},F["shelf-header-layout-wiz--is-overlay"]=
K.isOverlay,F["shelf-header-layout-wiz--tappable"]=!!K.onClick,F)),
"on:click":X,tabindex:K.onClick?0:void 0},_.Q(_.p,{cond:K.leadingIcon,then:function(H){return _.Q("div",{class:"shelf-header-layout-wiz__leading-icon"},_.Q(_.ZF,{icon:H}))},
else:function(){return _.Q(_.p,{cond:K.hasLeadingImage,then:function(){var H,f={};return _.Q("div",{class:_.HO("shelf-header-layout-wiz__leading-image",(f["shelf-header-layout-wiz__leading-image--circular-image"]=K.circularImage,f))},(H=K.leadingImage)==null?void 0:H.call(K))}})}}),_.Q("div",{class:"shelf-header-layout-wiz__label-container"},_.Q(_.p,{cond:K.hasSuperlabel,
then:function(){var H;return _.Q("div",{class:"shelf-header-layout-wiz__superlabel"},(H=K.superlabel)==null?void 0:H.call(K))}}),_.Q("div",{class:"shelf-header-layout-wiz__title-row"},_.Q(I8O,{text:K.title,
className:_.HO("shelf-header-layout-wiz__title",(P["shelf-header-layout-wiz__title--small-title"]=K.forceSmallLayout,P)),tagLevel:K.tagLevel}),_.Q(_.p,{cond:K.hasDetail,then:function(){var H;return _.Q("div",{class:"shelf-header-layout-wiz__detail"},(H=K.detail)==null?void 0:H.call(K))}})),_.Q(_.p,{cond:K.hasSublabel,
then:function(){var H;return _.Q("div",{class:"shelf-header-layout-wiz__sublabel"},(H=K.sublabel)==null?void 0:H.call(K))}})),_.Q(_.p,{cond:K.hasTrailingActions,
then:function(){var H;return _.Q("div",{class:"shelf-header-layout-wiz__trailing-actions"},(H=K.trailingActions)==null?void 0:H.call(K))}}))},"Kb");
kuu.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var I8O=_.$c(function(K){var X=K.text;var F=K.className;var P=K.tagLevel;return _.Q(_.S8,null,_.Q(_.p9,{when:function(){return(P==null?void 0:P())===0}},function(){return _.Q("h2",{class:F},X())}),_.Q(_.p9,{when:function(){return(P==null?void 0:P())===1}},function(){return _.Q("h3",{class:F},X())}),_.Q(_.p9,{when:function(){return(P==null?void 0:P())===2}},function(){return _.Q("h4",{class:F},X())}),_.Q(_.Bd,null,function(){return _.Q("h2",{class:F},X())}))},"Lb");var FUO,KUC,XeO;_.XZ=_.$c(function(K){var X=K.data;return _.Q("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:_.Je({"background-color":function(){return vKn(X().backgroundColor)?_.wq(vKn(X().backgroundColor)):void 0}})},_.Q(kuu,{hasDetail:!1,
title:function(){return _.Q(_.Oy,{text:function(){return X().headline}})},
hasTitle:!0,sublabel:function(){return _.Q(KUC,{data:X})},
hasSublabel:function(){return!!X().sublabel||!!X().bottomBadge},
superlabel:function(){return _.Q(XeO,{data:X})},
hasSuperlabel:function(){return!!X().superlabel||!!X().topBadge},
leadingImage:function(){return _.Q(FUO,{leadingAccessory:function(){return X().leadingAccessory}})},
hasLeadingImage:function(){return!!X().leadingAccessory},
trailingActions:function(){return _.Q(_.Md,{data:function(){return X().trailingActions}},{flexibleActionsViewModel:Lf})},
hasTrailingActions:function(){return!!X().trailingActions},
disableHorizontalPadding:K.disableHorizontalPadding,disableVerticalPadding:K.disableVerticalPadding,forceSmallLayout:K.forceSmallLayout,useResponsiveLayout:K.useResponsiveLayout,isOverlay:K.isOverlay,onClick:function(F){if(_.hf(X().rendererContext)){var P=_.Uy(X().rendererContext);P&&_.yB(P,{form:{element:F.target,event:F}})}}}))},"Mb");
FUO=_.$c(function(K){var X=K.leadingAccessory;return _.Q(_.ID,null,_.Q(_.p,{cond:function(){var F;return(F=X().image)!=null?F:_.$a(X().themedImage)},
then:function(F){return _.Q(_.av,{data:F,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.Q(_.p,{cond:function(){return _.T(X().avatar,_.Gl)},
then:function(F){return _.Q(_.BY,{data:F})}}))},"Nb");
KUC=_.$c(function(K){var X=K.data;return _.Q(_.ID,null,_.Q(_.p,{cond:function(){return _.T(X().bottomBadge,W2Z)},
then:function(F){var P={};return _.Q(_.EG,{data:F,class:_.HO((P.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!F()&&!!X().sublabel},P))})}}),_.Q(_.p,{cond:function(){return X().sublabel},
then:function(F){return _.Q(_.Oy,{text:F})}}))},"Ob");
XeO=_.$c(function(K){var X=K.data;return _.Q(_.ID,null,_.Q(_.p,{cond:function(){return _.T(X().topBadge,W2Z)},
then:function(F){var P={};return _.Q(_.EG,{data:F,class:_.HO((P.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!F()&&!!X().superlabel},P))})}}),_.Q(_.p,{cond:function(){return X().superlabel},
then:function(F){return _.Q(_.Oy,{text:F})}}))},"Pb");_.EP(_.XZ,"yt-section-header-view-model",{props:{data:_.vU,className:_.vU,disableHorizontalPadding:_.vU,disableVerticalPadding:_.vU,forceSmallLayout:_.vU,useResponsiveLayout:_.vU,isOverlay:_.vU}});_.L4("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var FZ=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return K};
_.r(FZ,_.G);_.z=FZ.prototype;_.z.attached=function(){this.requestElementsPerRow()};
_.z.configureRendererStamper=function(){return{"data.panels":{id:"panels",mapping:{richItemRenderer:"ytd-rich-item-renderer"}},"data.header":{id:"header-contents",mapping:{primetimePromoHeaderRenderer:"ytd-primetime-promo-header-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.sectionHeader":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.details":{id:"details-panel",mapping:{primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer"}}}};
_.z.onDataChange=function(){var K=this;_.tg(this,function(){K.updateItemVisibility()})};
_.z.onUpdateElementsPerRowAction=function(K){K&&this.elementsPerRow!==K&&(this.elementsPerRow=K,this.updateItemVisibility())};
_.z.updateItemVisibility=function(){var K=this;this.data&&this.data.panels&&_.C$(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(X,F){X.hidden=F>K.elementsPerRow-1})};
_.z.requestElementsPerRow=function(){_.iX(this.hostElement,"yt-request-elements-per-row")};
FZ.prototype.onDataChange=FZ.prototype.onDataChange;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],FZ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.yD),_.g("design:type",Object)],FZ.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],FZ.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],FZ.prototype,"actionHandlerBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],FZ.prototype,"data",void 0);_.O([_.h({value:3}),_.g("design:type",Number)],FZ.prototype,"elementsPerRow",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],FZ.prototype,"onDataChange",null);FZ=_.O([_.v({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],FZ);
_.t(FZ,"ytd-primetime-promo-renderer",function(){if(xCu!==void 0)return xCu;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return xCu=K},{mode:1});var PGu;var PS=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return K};
_.r(PS,_.G);PS.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
PS.prototype.handleButtonRefreshAction=function(K){if(K=_.T(K,gRE))this.set("data.button",K.membershipButton),this.notifyPath("data.button")};
_.Oi.Object.defineProperties(PS.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.data)==null?void 0:(X=K.avatars)==null?void 0:X.slice(0,8))||[]}}});
_.O([_.h(),_.g("design:type",Object)],PS.prototype,"data",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],PS.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],PS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],PS.prototype,"rendererBehavior",void 0);_.O([_.U("data"),_.g("design:type",Array),_.g("design:paramtypes",[])],PS.prototype,"avatars",null);
PS=_.O([_.v({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],PS);
_.t(PS,"ytd-recognition-shelf-renderer",function(){if(PGu!==void 0)return PGu;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return PGu=K},{mode:1});var Hdu;var sTE;var HS=function(){var K=_.G.apply(this,arguments)||this;K.modernButtons=_.S("web_modern_buttons");return K};
_.r(HS,_.G);_.z=HS.prototype;
_.z.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",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]]"}}}}}};
_.z.dataChanged=function(){this.collapsed=!0};
_.z.computeVisibleItems=function(K,X){return K!==void 0&&K.items?X?K.items.slice(0,this.data.collapsedItemCount):K.items:[]};
_.z.computeHideShowMore=function(K,X,F){return K>=X||!F};
_.z.computeHideShowAll=function(K,X,F){return!(K&&X)||F};
_.z.onMoreClick=function(){this.collapsed=!1};
_.Oi.Object.defineProperties(HS.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.S("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.KG("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.S("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
HS.prototype.dataChanged=HS.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],HS.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],HS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],HS.prototype,"data",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],HS.prototype,"isSearch",void 0);
_.O([_.h({computed:"computeVisibleItems(data,collapsed)"}),_.g("design:type",Array)],HS.prototype,"visibleItems",void 0);_.O([_.h({value:!0}),_.g("design:type",Boolean)],HS.prototype,"collapsed",void 0);_.O([_.h({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.g("design:type",Boolean)],HS.prototype,"hideShowMore",void 0);
_.O([_.h({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.g("design:type",Boolean)],HS.prototype,"hideShowAll",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],HS.prototype,"modernButtons",void 0);_.O([_.U("isSearch"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],HS.prototype,"typographyBump",null);
_.O([_.U("isSearch"),_.g("design:type",Object),_.g("design:paramtypes",[])],HS.prototype,"lockupExperiments",null);_.O([_.U("isSearch"),_.g("design:type",String),_.g("design:paramtypes",[])],HS.prototype,"thumbnailWidth",null);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],HS.prototype,"dataChanged",null);HS=_.O([_.v({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],HS);
_.t(HS,"ytd-vertical-list-renderer",function(){if(sTE!==void 0)return sTE;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return sTE=K},{mode:1});var z7U=_.lr(["#"]);_.L4("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var st=function(){var K=_.G.apply(this,arguments)||this;K.isConstrainedList=!1;K.modernTypography=_.S("web_modern_typography");return K};
_.r(st,_.G);_.z=st.prototype;
_.z.configureRendererStamper=function(){return{"data.content":{id:"contents",mapping:{gridRenderer:"ytd-grid-renderer",horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:118},properties:{isSearch:"[[isSearch]]"}},horizontalMovieListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:302}},expandedShelfContentsRenderer:{component:"ytd-expanded-shelf-contents-renderer",properties:{isConstrainedList:"[[isConstrainedList]]"}},messageRenderer:{component:"ytd-message-renderer",
params:{shelf:!0}},verticalListRenderer:{component:"ytd-vertical-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.playAllButton":{id:"play-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",attributes:{condensed:!0},properties:{icon:"[[menuIcon]]"}}}},"data.sortFilter":{id:"sort-filter",
mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.z.computeThumbnailStyle=function(K){return K||""};
_.z.computePlaceAnnotationUnderTitle=function(){var K;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((K=this.data)==null?void 0:K.thumbnailStyle)||"")};
_.z.computeHrefWithDefault=function(K){return this.ytComponentBehavior.computeHref_(K)||_.Tp(z7U)};
_.z.computeIsPromoShelf=function(K){var X;return(K=K==null?void 0:(X=K[0])==null?void 0:X.metadataBadgeRenderer)?K.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.z.computePlaceBadgeBesideTitle=function(K){var X;return(K==null?0:(X=K[0])==null?0:X.metadataBadgeRenderer)?!this.computeIsPromoShelf(K):!1};
_.z.computeMenuIcon=function(K){return this.computeIsPromoShelf(K)?"yt-icons:more_vert":"yt-icons:more"};
_.z.onDataChange=function(){var K,X;((K=this.data)==null?0:(X=K.content)==null?0:X.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.z.onLockupRequested=function(K){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&K.detail&&K.detail.videoIds){for(var X=this.data.content.gridRenderer.items,F=new Set,P=_.D(K.detail.videoIds),H=P.next();!H.done;H=P.next())F.add(H.value);K.detail.returnValue=X.filter(function(f){return f.gridVideoRenderer&&f.gridVideoRenderer.videoId&&F.has(f.gridVideoRenderer.videoId)}).map(function(f){return f.gridVideoRenderer})}};
_.z.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
st.prototype.onLockupRequested=st.prototype.onLockupRequested;st.prototype.onDataChange=st.prototype.onDataChange;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],st.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.yD),_.g("design:type",Object)],st.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],st.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],st.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.SL),_.g("design:type",Object)],st.prototype,"ironResizableBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],st.prototype,"data",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],st.prototype,"isSearch",void 0);_.O([_.h(),_.g("design:type",Object)],st.prototype,"isConstrainedList",void 0);_.O([_.h({reflectToAttribute:!0,value:function(){return _.S("kevlar_fluid_dismiss")}}),
_.g("design:type",Boolean)],st.prototype,"enableFluidDismiss",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.g("design:type",String)],st.prototype,"thumbnailStyle",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],st.prototype,"modernTypography",void 0);_.O([_.h({computed:"computeMenuIcon(data.badges)"}),_.g("design:type",String)],st.prototype,"menuIcon",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],st.prototype,"onDataChange",null);_.O([_.Hc("yt-lockup-requested"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],st.prototype,"onLockupRequested",null);st=_.O([_.v({is:"ytd-shelf-renderer",disableElementRegistration:!0})],st);
_.t(st,"ytd-shelf-renderer",function(){if(Hdu!==void 0)return Hdu;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Hdu=K},{mode:1});var fzC;var za=function(){return _.G.apply(this,arguments)||this};
_.r(za,_.G);za.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.Oi.Object.defineProperties(za.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],za.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],za.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],za.prototype,"data",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],za.prototype,"isPlaylist",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],za.prototype,"isClipList",void 0);
_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],za.prototype,"isPlaylistPageWithFilters",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],za.prototype,"hasTitle",null);_.O([_.h(),_.U("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.g("design:type",Object),_.g("design:paramtypes",[])],za.prototype,"isRightAligned",null);
za=_.O([_.v({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],za);
_.t(za,"ytd-sort-filter-header-renderer",function(){if(fzC!==void 0)return fzC;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return fzC=K},{mode:1});var DWE;var fK=function(){var K=_.G.apply(this,arguments)||this;K.enableRightArrowHidden=_.S("channel_details_shelf_resize_observer");return K};
_.r(fK,_.G);fK.prototype.attached=function(){var K=this;this.enableRightArrowHidden&&(this.JSC$14251_throttledOnResize=new _.VW(function(){K.ytdHorizontalListBehavior.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var X;
(X=K.JSC$14251_throttledOnResize)==null||X.fire()}),this.resizeObserver.observe(this.hostElement))};
fK.prototype.detached=function(){if(this.enableRightArrowHidden){var K;(K=this.resizeObserver)==null||K.disconnect();var X;(X=this.JSC$14251_throttledOnResize)==null||X.dispose()}};
fK.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]]"}}}}}};
fK.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.Oi.Object.defineProperties(fK.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.S("enable_creator_details_shelf_m2")){var K=[],X;((X=this.data)==null?0:X.creatorVideosButton)&&K.push(this.data.creatorVideosButton);var F;((F=this.data)==null?0:F.creatorAboutButton)&&K.push(this.data.creatorAboutButton);X=_.D(this.data.creatorCustomUrlButtons||[]);for(F=X.next();!F.done;F=X.next())K.push(F.value);return K}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.S("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],fK.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.Nh.YtdHorizontalListBehavior),_.g("design:type",Object)],fK.prototype,"ytdHorizontalListBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],fK.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],fK.prototype,"engagementPanel",void 0);
_.O([_.h(),_.g("design:type",Object)],fK.prototype,"enableRightArrowHidden",void 0);_.O([_.U("enableRightArrowHidden","atEnd"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],fK.prototype,"hideRightArrow",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],fK.prototype,"creatorCustomUrlButtons",null);
_.O([_.h({reflectToAttribute:!0}),_.U("data","creatorCustomUrlButtons"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],fK.prototype,"showCreatorCustomUrlButtons",null);_.O([_.U("showCreatorCustomUrlButtons"),_.g("design:type",Number),_.g("design:paramtypes",[])],fK.prototype,"channelAvatarSize",null);fK=_.O([_.v({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],fK);
_.t(fK,"ytd-video-description-infocards-section-renderer",function(){if(DWE!==void 0)return DWE;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return DWE=K},{mode:_.Ig("kevlar_poly_si_batch_j067")?1:2});var uyV;var Du=function(){return _.G.apply(this,arguments)||this};
_.r(Du,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Du.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Du.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Du.prototype,"data",void 0);_.O([_.h({computed:"computeIcon_(data.infoIcon)"}),_.g("design:type",Object)],Du.prototype,"infoIcon",void 0);Du=_.O([_.v({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],Du);
_.t(Du,"ytd-eom-settings-disclaimer-renderer",function(){if(uyV!==void 0)return uyV;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return uyV=K},{mode:1});var qFV;var u1=function(){return _.G.apply(this,arguments)||this};
_.r(u1,_.G);_.Oi.Object.defineProperties(u1.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.suppressPaddingDisclaimer)}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],u1.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],u1.prototype,"componentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],u1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],u1.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],u1.prototype,"suppressPaddingDisclaimer",null);u1=_.O([_.v({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],u1);
_.t(u1,"ytd-product-list-header-renderer",function(){if(qFV!==void 0)return qFV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return qFV=K},{mode:1});var J3t;var qn=function(){return _.G.apply(this,arguments)||this};
_.r(qn,_.G);qn.prototype.computeThumbnailStyle=function(K){if(K&&(K=_.j0(K)))return"background-color:"+K+";"};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],qn.prototype,"rendererBehaviors",void 0);_.O([_.h(),_.g("design:type",Object)],qn.prototype,"data",void 0);qn=_.O([_.v({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],qn);
_.t(qn,"ytd-hashtag-tile-renderer",function(){if(J3t!==void 0)return J3t;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return J3t=K},{mode:1});var ZdL;var Ju=function(){return _.G.apply(this,arguments)||this};
_.r(Ju,_.G);Ju.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}}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Ju.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Ju.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Ju.prototype,"data",void 0);Ju=_.O([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Ju);
_.t(Ju,"ytd-sponsorships-alert-renderer",function(){if(ZdL!==void 0)return ZdL;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return ZdL=K},{mode:1});var YFU;var Zu=function(){return _.G.apply(this,arguments)||this};
_.r(Zu,_.G);Zu.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.Oi.Object.defineProperties(Zu.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.O([_.W(_.yD),_.g("design:type",Object)],Zu.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.W(_.mE),_.g("design:type",Object)],Zu.prototype,"ytdLockupBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Zu.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Zu.prototype,"ytRendererBehavior",void 0);_.O([_.h({selector:_.Wp}),_.g("design:type",Object)],Zu.prototype,"isGridViewEnabled",void 0);
_.O([_.U("isGridViewEnabled"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Zu.prototype,"watchFeedBigThumbs",null);_.O([_.U("isGridViewEnabled"),_.h({reflectToAttribute:!0}),_.g("design:type",String),_.g("design:paramtypes",[])],Zu.prototype,"thumbnailWidth",null);_.O([_.h(),_.g("design:type",Object)],Zu.prototype,"data",void 0);Zu=_.O([_.v({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],Zu);
_.t(Zu,"ytd-compact-movie-renderer",function(){if(YFU!==void 0)return YFU;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return YFU=K},{mode:1});var QTL;var MwL;var nDO=_.e8("HTML_DIR")==="rtl",YY=function(){var K=_.G.apply(this,arguments)||this;K.engagementPanel=!1;K.maxLines=2;K.expandButtonOffset=0;K.showExpandButton=!1;K.isTruncated=!1;K.isExpanded=!1;K.currentSnippetType=2;K.alwaysShowExpandButton=!1;K.JSC$14268_lastWidth=NaN;K.observer=null;K.left=0;K.right=0;K.mid=0;K.longestSnippetLength=0;K.isFinalSnippet=!1;K.isFirstMutation=!1;K.isResetMutation=!1;K.OVERFLOW_THRESHOLD=5;return K};
_.r(YY,_.G);_.z=YY.prototype;_.z.onClick=function(K){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.lC(_.lN(K)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var X;if((X=window.getSelection())==null||!X.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.z.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.z.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.z.updateTextOnSnippetTypeChange=function(){_.S("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.z.setUpBinarySearch=function(K){K=K*this.maxLines/8;this.left=0;var X,F;this.right=Math.min(K*2,(F=(X=this.simpleText)==null?void 0:X.length)!=null?F:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.z.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.z.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.yy(new _.nG("AttributedSnippet is empty when the description is not empty",this.text))};
_.z.mutationCallback=function(){if(this.observer!=null){var K=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var X=Math.floor(K*this.maxLines/8);this.setSnippetText(this.text,X);X!==0||this.attributedTextIsEmpty()||_.yy(new _.nG("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;K=K*this.maxLines/8;this.left=0;var F;this.right=Math.min(K*2,(F=(X=this.simpleText)==null?void 0:X.length)!=null?F:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=
0;this.setSnippetText(this.text,this.mid);this.isFirstMutation=!1}else this.isTruncated=!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset()),this.isFinalSnippet=!0,this.isFirstMutation=!1,this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else{this.isOverflowing()?this.right=this.mid-1:(this.left=this.mid+1,this.longestSnippetLength=this.mid);if(this.left>this.right){if(this.mid===this.longestSnippetLength){this.expandButtonOffset=this.computeExpandButtonOffset();
this.observer.disconnect();this.maybeLogWarningForEmptyAttributedSnippet();return}this.setSnippetText(this.text,this.longestSnippetLength);this.isFinalSnippet=!0}this.mid=Math.floor(this.left+(this.right-this.left)/2);this.setSnippetText(this.text,this.mid)}}};
_.z.mutationObserve=function(K){var X=this;this.observer||(this.observer=new MutationObserver(function(){X.mutationCallback()}));
this.observer.observe(K,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.z.attached=function(){var K=this;_.tg(this,function(){K.resize()})};
_.z.isExpandedChanged=function(){_.iX(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.z.updateSnippetContainerMaxHeight=function(){this.isExpanded?(this.snippetContainer.style.setProperty("overflow",""),this.snippetContainer.style.setProperty("max-height","")):(this.snippetContainer.style.setProperty("overflow","hidden"),this.snippetContainer.style.setProperty("max-height",2*this.maxLines+"rem"));this.resize(!0)};
_.z.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var K="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((nDO?"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",K);this.snippetContainer.style.setProperty("mask-image",
K)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(nDO?"right":"left",this.expandButtonOffset+"px")};
_.z.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.z.setSnippetText=function(K,X){K||(K={});if(_.GD(K)){var F=G2l(K,X);F.attachmentRuns||F.commandRuns||F.decorationRuns||F.styleRuns||F.alignment||F.lineBreakMode?this.attributedSnippetTextEl?(_.S("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=G2l(K,X),this.attributedSnippetTextEl.headerRuns=m9T(X,this.headerRuns)):this.attributedSnippetText={data:G2l(K,X),headerRuns:m9T(X,this.headerRuns)},this.currentSnippetType=0):_.yy(new _.nG("Tried to set snippet text when HTML element was null",
K)):(this.plainSnippetText.textContent=UP(K.content||"",X),this.currentSnippetType=2)}else{a:{F=atO(K,X);if(F.runs){F=_.D(F.runs);for(var P=F.next();!P.done;P=F.next())if(P=P.value,P.bold||P.deemphasize||P.italics||P.strikethrough||P.textColor||P.navigationEndpoint||_.T(P,r$)){F=!0;break a}}F=!1}F?this.formattedSnippetText?(this.formattedSnippetText.text=atO(K,X),this.currentSnippetType=1):_.yy(new _.nG("Tried to set snippet text when HTML element was null",K)):(this.plainSnippetText.textContent=
UP(_.lj(K),X),this.currentSnippetType=2)}};
_.z.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.z.attributedTextIsEmpty=function(){var K=this.text;if(!_.GD(K))return!0;var X;return((X=K.content)==null?void 0:X.length)===0?!0:!1};
_.z.resize=function(K){if(this.snippetText){if(K===void 0?0:K)this.JSC$14268_lastWidth=NaN;var X=this.hostElement.offsetWidth;if(X!==this.JSC$14268_lastWidth&&!this.isExpanded)if(this.JSC$14268_lastWidth=X,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;K=0;var F,P;X=Math.min(X*this.maxLines/8*2,(P=(F=this.simpleText)==null?void 0:F.length)!=null?P:0)-1;for(F=0;K<=X;)P=Math.floor(K+(X-K)/2),this.setSnippetText(this.text,P),this.isOverflowing()?X=P-1:(K=P+1,F=P);this.setSnippetText(this.text,F);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.z.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.z.onExpandClick=function(){var K=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.S("inline_expander_reset_focus_killswitch")||_.tg(this,function(){var X;((X=_.i9().resolve(_.Nu(_.Iu)))==null?0:X.isKeyBoardInUse())&&_.OM(K.hostElement)});
_.iX(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.z.onCollapseClick=function(){this.collapse();_.iX(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.z.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.z.computeExpandButtonOffset=function(){var K=this.expandSizer;return K?nDO?K.offsetParent?K.offsetParent.offsetWidth-K.offsetWidth-K.offsetLeft:0:K.offsetLeft:0};
_.Oi.Object.defineProperties(YY.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.GD(this.text)?this.text.content||"":_.lj(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 _.GD(this.text)?!0:this.text&&_.S("web_replace_formatted_with_attributed_string")&&HCd(this.text)?(this.text=_.TD(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}}});
YY.prototype.onTextChanged=YY.prototype.onTextChanged;YY.prototype.updateMaskAndExpandButtonOffset=YY.prototype.updateMaskAndExpandButtonOffset;YY.prototype.updateSnippetContainerMaxHeight=YY.prototype.updateSnippetContainerMaxHeight;YY.prototype.isExpandedChanged=YY.prototype.isExpandedChanged;YY.prototype.updateTextOnSnippetTypeChange=YY.prototype.updateTextOnSnippetTypeChange;YY.prototype.updateIsFormattedExpanded=YY.prototype.updateIsFormattedExpanded;YY.prototype.updateIsAttributedExpanded=YY.prototype.updateIsAttributedExpanded;
YY.prototype.onClick=YY.prototype.onClick;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],YY.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],YY.prototype,"text",void 0);_.O([_.h(),_.g("design:type",Array)],YY.prototype,"headerRuns",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],YY.prototype,"engagementPanel",void 0);_.O([_.h(),_.g("design:type",Object)],YY.prototype,"maxLines",void 0);
_.O([_.h(),_.g("design:type",String)],YY.prototype,"expandLabel",void 0);_.O([_.h(),_.g("design:type",String)],YY.prototype,"collapseLabel",void 0);_.O([_.h(),_.g("design:type",Object)],YY.prototype,"expandCommand",void 0);_.O([_.h(),_.g("design:type",Object)],YY.prototype,"expandButtonOffset",void 0);_.O([_.U("text"),_.g("design:type",String),_.g("design:paramtypes",[])],YY.prototype,"simpleText",null);
_.O([_.Hc("click"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],YY.prototype,"onClick",null);_.O([_.U("text","isExpanded"),_.g("design:type",Object),_.g("design:paramtypes",[])],YY.prototype,"expandedText",null);_.O([_.U("headerRuns","isExpanded"),_.g("design:type",Object),_.g("design:paramtypes",[])],YY.prototype,"expandedHeaderRuns",null);
_.O([_.U("text"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],YY.prototype,"hasAttributedStringText",null);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],YY.prototype,"showExpandButton",void 0);_.O([_.U("collapseLabel","isExpanded"),_.g("design:type",Object),_.g("design:paramtypes",[])],YY.prototype,"showCollapseButton",null);_.O([_.h(),_.g("design:type",Object)],YY.prototype,"isTruncated",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],YY.prototype,"isExpanded",void 0);_.O([_.h(),_.g("design:type",Boolean)],YY.prototype,"isAttributedExpanded",void 0);_.O([_.so("isExpanded","hasAttributedStringText"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],YY.prototype,"updateIsAttributedExpanded",null);_.O([_.h(),_.g("design:type",Boolean)],YY.prototype,"isFormattedExpanded",void 0);
_.O([_.so("isExpanded","hasAttributedStringText"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],YY.prototype,"updateIsFormattedExpanded",null);_.O([_.h(),_.g("design:type",Number)],YY.prototype,"currentSnippetType",void 0);_.O([_.U("currentSnippetType"),_.g("design:type",Object),_.g("design:paramtypes",[])],YY.prototype,"useAttributedSnippet",null);
_.O([_.U("currentSnippetType"),_.g("design:type",Object),_.g("design:paramtypes",[])],YY.prototype,"useFormattedSnippet",null);_.O([_.U("currentSnippetType"),_.g("design:type",Object),_.g("design:paramtypes",[])],YY.prototype,"usePlainSnippet",null);_.O([_.h(),_.g("design:type",Object)],YY.prototype,"alwaysShowExpandButton",void 0);_.O([_.so("currentSnippetType"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],YY.prototype,"updateTextOnSnippetTypeChange",null);
_.O([_.h(),_.g("design:type",Object)],YY.prototype,"attributedSnippetText",void 0);_.O([_.fa("#snippet"),_.g("design:type",HTMLElement)],YY.prototype,"snippetContainer",void 0);_.O([_.fa("#snippet-text"),_.g("design:type",HTMLElement)],YY.prototype,"snippetText",void 0);_.O([_.fa("#plain-snippet-text"),_.g("design:type",HTMLElement)],YY.prototype,"plainSnippetText",void 0);_.O([_.fa("#formatted-snippet-text"),_.g("design:type",Object)],YY.prototype,"formattedSnippetText",void 0);
_.O([_.fa("#attributed-snippet-text"),_.g("design:type",Object)],YY.prototype,"attributedSnippetTextEl",void 0);_.O([_.fa("#expand"),_.g("design:type",HTMLElement)],YY.prototype,"expandButton",void 0);_.O([_.fa("#expand-sizer"),_.g("design:type",HTMLElement)],YY.prototype,"expandSizer",void 0);_.O([_.JA("isExpanded"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],YY.prototype,"isExpandedChanged",null);
_.O([_.so("isExpanded","maxLines"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],YY.prototype,"updateSnippetContainerMaxHeight",null);_.O([_.so("isTruncated","showExpandButton","expandButtonOffset"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],YY.prototype,"updateMaskAndExpandButtonOffset",null);
_.O([_.JA("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],YY.prototype,"onTextChanged",null);YY=_.O([_.v({is:"ytd-text-inline-expander",disableElementRegistration:!0})],YY);
_.t(YY,"ytd-text-inline-expander",function(){if(MwL===void 0){var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);MwL=K}K=MwL;return K},{mode:2});var QX=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return K};
_.r(QX,_.G);QX.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
QX.prototype.handleUpdateDescriptionAction=function(K){if(K=_.T(K,_.keu))if(K.attributedDescription)this.set("data.attributedDescriptionBodyText",K.attributedDescription);else if(K.description){var X;((X=this.data)==null?0:X.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.TD(K.description)):this.set("data.descriptionBodyText",K.description)}};
_.Oi.Object.defineProperties(QX.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var K,X;return!((K=this.data)==null||!K.attributedDescriptionBodyText)||!((X=this.data)==null||!X.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)==null?0:K.collapsedLineCount){var X;return(X=this.data)==null?void 0:X.collapsedLineCount}K=_.kU("web_watch_description_collapsed_default_lines",12);if(_.S("ww_desc_line_page_size_ks"))return K;X=Math.round(_.qD().height*_.kU("web_watch_description_screen_height_percentage",.5)/20);return Math.max(X,K)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return(F=(K=this.data)==null?void 0:K.descriptionBodyText)!=null?F:(X=this.data)==null?void 0:X.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.sourceAttributions}}});
QX.prototype.panelContentVisibleChanged=QX.prototype.panelContentVisibleChanged;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],QX.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],QX.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],QX.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],QX.prototype,"data",void 0);
_.O([_.h(),_.g("design:type",Boolean)],QX.prototype,"panelContentVisible",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],QX.prototype,"engagementPanel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],QX.prototype,"shortsPanel",void 0);_.O([_.fa("#inline-expander"),_.g("design:type",Object)],QX.prototype,"inlineExpander",void 0);
_.O([_.so("panelContentVisible"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],QX.prototype,"panelContentVisibleChanged",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],QX.prototype,"hasDescriptionText",null);_.O([_.U("data"),_.g("design:type",Number),_.g("design:paramtypes",[])],QX.prototype,"collapsedLines",null);
_.O([_.U("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.g("design:type",Object),_.g("design:paramtypes",[])],QX.prototype,"descriptionText",null);_.O([_.U("data","data.headerRuns"),_.g("design:type",Object),_.g("design:paramtypes",[])],QX.prototype,"headerRuns",null);_.O([_.U("data","data.sourceAttributions"),_.g("design:type",Object),_.g("design:paramtypes",[])],QX.prototype,"sourceAttributions",null);
QX=_.O([_.v({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],QX);
_.t(QX,"ytd-expandable-video-description-body-renderer",function(){if(QTL!==void 0)return QTL;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return QTL=K},{mode:_.Ig("kevlar_poly_si_batch_j028")?1:2});var c3L;var peU=_.$c(function(K){var X=K.data;return _.Q("factoid-renderer",{class:"ytwFactoidRendererHost"},_.Q("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return X().accessibilityText}},_.Q("span",{class:"ytwFactoidRendererValue"},_.Q(_.Oy,{text:function(){return X().value}})),_.Q("span",{class:"ytwFactoidRendererLabel"},_.Q(_.Oy,{text:function(){return X().label}}))))},"Qb");_.EP(peU,"factoid-renderer",{props:{data:_.vU}});_.EP(_.$c(function(K){var X=K.data;return _.Q("upload-time-factoid-renderer",null,_.Q(_.Md,{data:function(){return X().factoid}},{factoidRenderer:peU}))},"Rb"),"upload-time-factoid-renderer",{props:{data:_.g$}});_.EP(_.$c(function(K){var X=K.data;return _.Q("view-count-factoid-renderer",null,_.Q(_.Md,{data:function(){return X().factoid}},{factoidRenderer:peU}))},"Sb"),"view-count-factoid-renderer",{props:{data:_.g$}});var Mn=function(){var K=_.G.apply(this,arguments)||this;K.shortsPanel=!1;K.engagementPanel=!1;K.watchWhileSdp=_.S("shorts_desktop_watch_while_sdp");return K};
_.r(Mn,_.G);Mn.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"}}}}};
_.Oi.Object.defineProperties(Mn.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var K;return(K=this.data)==null?void 0:K.channel}}});
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Mn.prototype,"componentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Mn.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Mn.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Mn.prototype,"shortsPanel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Mn.prototype,"engagementPanel",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Mn.prototype,"watchWhileSdp",void 0);_.O([_.U("shortsPanel","engagementPanel","data.channel"),_.g("design:type",Object),_.g("design:paramtypes",[])],Mn.prototype,"showChannelInfo",null);Mn=_.O([_.v({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],Mn);
_.t(Mn,"ytd-video-description-header-renderer",function(){if(c3L!==void 0)return c3L;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return c3L=K},{mode:1});var BmO;var nK=function(){return _.G.apply(this,arguments)||this};
_.r(nK,_.G);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],nK.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],nK.prototype,"ytRendererBehavior",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],nK.prototype,"noPadding",void 0);_.O([_.h(),_.g("design:type",Object)],nK.prototype,"data",void 0);nK=_.O([_.v({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],nK);
_.t(nK,"ytd-list-item-view-model",function(){if(BmO!==void 0)return BmO;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return BmO=K},{mode:1});var SFQ;var oDE;var LUL;var TmL;var cS=function(){var K=_.G.apply(this,arguments)||this;K.adaptiveFullWidth=!1;K.modernButtons=_.S("web_modern_buttons");K.buttonOverrides={style:"call-to-action",type:"filled"};K.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return K};
_.r(cS,_.G);cS.prototype.handleSetTimestamp_=function(K){this.data&&this.data.shortUrl&&(_.C$(this.hostElement).querySelector("#share-url").value=K.isSet?_.Wz(this.data.shortUrl,"t",K.timestamp):this.data.shortUrl)};
cS.prototype.handleSignalActionCopyShareUrl_=function(K,X){(_.S("killswitch_copy_link_target_check")||_.C$(this.hostElement).querySelector("#copy-button")===X)&&this.copyUrlToClipboard()};
cS.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.C$(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
cS.prototype.computeStyle_=function(K){return K?K.toLowerCase().replace(/_/g,"-"):""};
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],cS.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],cS.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],cS.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.g("design:type",String)],cS.prototype,"rendererStyle",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],cS.prototype,"adaptiveFullWidth",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],cS.prototype,"modernButtons",void 0);_.O([_.h(),_.g("design:type",Object)],cS.prototype,"buttonOverrides",void 0);cS=_.O([_.Tb({is:"yt-copy-link-renderer",disableElementRegistration:!0})],cS);
_.t(cS,"yt-copy-link-renderer",function(){if(TmL===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;LUL===void 0&&(LUL=document.createElement("template"));var P=LUL;F.call(X,P.content.cloneNode(!0),K.content.firstChild);TmL=K}K=TmL;return K},{mode:2});_.L4("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var pK=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return K};
_.r(pK,_.G);_.z=pK.prototype;_.z.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.z.attached=function(){this.keyboardFocused=!1};
_.z.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var K=_.i9().resolve(_.Nu(_.Iu));K&&(this.keyboardFocused=K.isKeyBoardInUse())}};
_.z.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.z.computeDescription_=function(){if(this.data){if(this.data.toggled&&this.data.toggledDescription)return this.data.toggledDescription;if(!this.data.toggled&&this.data.description)return this.data.description}};
_.z.onChange_=function(){if(this.data){var K=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;K&&this.ytComponentBehavior.resolveCommand(K);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.z.handleUpdateToggleAction_=function(K){(K=_.T(K,scO))&&this.data&&K.targetId==this.data.targetId&&this.set("data.toggled",K.toggled)};
_.z.toBoolean_=function(K){return!!K};
_.z.reset=function(){};
_.z.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R9("data-changed",this.data))};
_.z.updateDataToggledFromBinding=function(K){this.set("data.toggled",K.detail.value)};
pK.prototype.dataChangedForBinding=pK.prototype.dataChangedForBinding;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],pK.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],pK.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],pK.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],pK.prototype,"ytRendererBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],pK.prototype,"data",void 0);_.O([_.h({computed:"computeDescription_(data.*)"}),_.g("design:type",Object)],pK.prototype,"description_",void 0);_.O([_.h({value:function(){return!!_.i9().resolve(_.Nu(_.Iu))&&_.S("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.g("design:type",Boolean)],pK.prototype,"useKeyboardFocused",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],pK.prototype,"keyboardFocused",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],pK.prototype,"dataChangedForBinding",null);pK=_.O([_.Tb({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],pK);
_.t(pK,"yt-toggle-form-field-renderer",function(){if(oDE===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;SFQ===void 0&&(SFQ=document.createElement("template"));var P=SFQ;F.call(X,P.content.cloneNode(!0),K.content.firstChild);oDE=K}K=oDE;return K},{mode:2});var r3N;var A3O;var BS=function(){var K=_.G.apply(this,arguments)||this;K.isDarkTheme=!1;K.isSearch=!1;K.darkerDarkTheme=_.S("web_darker_dark_theme");K.noTopMargin=_.S("kevlar_watch_no_top_margin");K.maskFade=_.S("web_watch_chips_mask_fade");K.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 K};
_.r(BS,_.G);_.z=BS.prototype;_.z.configureRendererStamper=function(){return{"data.chips":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer"}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.z.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.z.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.z.dataChanged=function(){var K=this.getSelectedIndex();if(K>0)this.selected=K;else{this.selected=0;var X,F;(X=this.ytScrollableChipCloudBehavior)==null||(F=X.reset)==null||F.call(X)}};
_.z.getSelectedIndex=function(){var K;if((K=this.data)==null||!K.chips)return-1;K=-1;for(var X,F=0;F<((X=this.data)==null?void 0:X.chips.length);F++){var P=void 0,H=void 0;if((P=this.data)==null?0:(H=P.chips[F].chipCloudChipRenderer)==null?0:H.isSelected){K=F;break}}return K};
_.z.onResize=function(){var K=this.ytScrollableChipCloudBehavior;_.tg(K,K.setContainerWidthDiff);Fe(this.ytScrollableChipCloudBehavior)};
_.z.onDarkModeToggledAction=function(K){this.isDarkTheme=K};
_.z.handleRelatedChipCommand=function(K,X){K=this.JSC$14295_chipsSelector.indexOf(X);K!==-1&&this.JSC$14295_chipsSelector.selectIndex(K)};
_.z.handleChipCloudChipSelectAction=function(K){K=this.JSC$14295_chipsSelector.indexOf(K);K>-1&&this.JSC$14295_chipsSelector.selectIndex(K)};
_.z.handleChipCloudChipDeselectAction=function(){var K=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14295_chipsSelector&&((K==null?0:K.continuationCommand)?_.Kl(this.hostElement,[K]):(K==null?0:K.searchEndpoint)?this.ytComponentBehavior.resolveCommand(K):K&&_.X0(this.hostElement,[K],this.hostElement),this.JSC$14295_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.z.updateSelectedFromBinding=function(K){this.selected=K.detail.value};
BS.prototype.onResize=BS.prototype.onResize;BS.prototype.dataChanged=BS.prototype.dataChanged;BS.prototype.isSearchChanged=BS.prototype.isSearchChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],BS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],BS.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],BS.prototype,"actionHandlerBehavior",void 0);
_.O([_.W(_.SL),_.g("design:type",Object)],BS.prototype,"ironResizableBehavior",void 0);_.O([_.W(),_.g("design:type",Xe)],BS.prototype,"ytScrollableChipCloudBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],BS.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],BS.prototype,"data",void 0);_.O([_.h({value:0}),_.g("design:type",Number)],BS.prototype,"selected",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],BS.prototype,"isDarkTheme",void 0);_.O([_.h({value:160}),_.g("design:type",Number)],BS.prototype,"scrollDistance",void 0);_.O([_.h(),_.g("design:type",Object)],BS.prototype,"isSearch",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],BS.prototype,"darkerDarkTheme",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],BS.prototype,"noTopMargin",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],BS.prototype,"maskFade",void 0);_.O([_.fa("#chips"),_.g("design:type",Object)],BS.prototype,"JSC$14295_chipsSelector",void 0);_.O([_.so("isSearch"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],BS.prototype,"isSearchChanged",null);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],BS.prototype,"dataChanged",null);
_.O([_.Hc("iron-resize"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],BS.prototype,"onResize",null);BS=_.O([_.Tb({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],BS);
_.t(BS,"yt-chip-cloud-renderer",function(){if(A3O===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;r3N===void 0&&(r3N=document.createElement("template"));var P=r3N;F.call(X,P.content.cloneNode(!0),K.content.firstChild);A3O=K}K=A3O;return K},{mode:2});var jTt,weU=function(){return jTt!==void 0?jTt:jTt=document.createElement("template")};
document.head.appendChild(weU().content);var y3L;var WUN=document.head,dWT=WUN.appendChild,e7E;if(y3L===void 0){var R7U=document.createElement("template");_.w(R7U,"");R7U.content.insertBefore(weU().content.cloneNode(!0),R7U.content.firstChild);y3L=R7U}e7E=y3L;dWT.call(WUN,e7E.content);var UWL=_.$c(function(K){var X=K.data;return _.Q("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.Q("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.Q("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.Q(_.p,{cond:function(){return _.$a(X().image)},
then:function(F){return _.Q("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.Q(_.av,{data:F,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.Q("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.Q(_.Oy,{text:function(){return X().title}})),_.Q("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.Q(_.Oy,{text:function(){return X().subtitle}})))),_.Q(_.p,{cond:function(){var F;
return(F=X())==null?void 0:F.hasBottomDivider},
then:function(){return _.Q("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Tb");var h7C=_.$c(function(K){var X=K.data;return _.Q("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.Q("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.Q(_.Md,{data:function(){var F;return(F=X().offerPlanDetailsItem)!=null?F:[]}},{offerPlanDetailsItemViewModel:function(F){return _.Q("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.Q(UWL,{data:F.data}))}})),_.Q("div",null,_.Q(_.p,{cond:function(){return X().hasBottomDivider},
then:function(){return _.Q("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.Q("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.Q("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.Q("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.Q("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Ub");var mWO=_.$c(function(K){var X=K.data;K=_.D(_.u_(!1,void 0,"SpEGQd"));var F=K.next().value,P=K.next().value,H=_.DF(function(){P(!F());return!1}),f=function(){var u;
return(u=X().offerPlanDetailsContainer)!=null?u:[]};
return _.Q("lp-complex-offer-card-details-view-model",null,_.Q("div",null,_.Q(_.p,{cond:function(){return F()},
then:function(){return _.Q("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.Q("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":H,"aria-expanded":F},_.Q(_.Oy,{text:function(){return X().expandedTitle}})),_.Q("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.Q(_.Md,{data:f},{offerPlanDetailsContainerViewModel:function(u){return _.Q("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.Q(h7C,{data:u.data}))}})),_.Q("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.Q(_.Oy,{text:function(){return X().legalText}})))},
else:function(){return _.Q("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":H,"aria-expanded":F},_.Q(_.Oy,{text:function(){return X().collapsedTitle}}),_.Q("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.Q(_.ZF,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Vb");var G0O=_.$c(function(K){var X=K.data;return _.Q("lp-complex-offer-card-option-view-model",null,_.Q("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.Q(_.p,{cond:function(){return X().topDividerText},
then:function(){return _.Q("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.Q("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.Q("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.Q("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.Q(_.Oy,{text:function(){return X().topDividerText}}))))}}),_.Q(_.p,{cond:function(){return X().planPricingPrimary},
then:function(){return _.Q("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.Q(_.Oy,{text:function(){return X().planPricingPrimary}}))}}),_.Q(_.p,{cond:function(){return X().planPricingSecondary},
then:function(){return _.Q("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.Q(_.Oy,{text:function(){return X().planPricingSecondary}}))}}),_.Q(_.p,{cond:function(){return X().primaryButton},
then:function(){return _.Q("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.Q(_.Md,{data:function(){return X().primaryButton}},{buttonViewModel:function(F){return _.Q(_.Af,{data:F.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Wb");var lzE=_.$c(function(K){var X=K.data;var F=function(){var f;return((f=X())==null?void 0:f.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
K={};var P={},H={};return _.Q("ytm-lp-complex-offer-card-view-model",null,_.Q("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.Q("div",{class:_.HO((K.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=F,K),"ytmLpComplexOfferCardViewModelCardContainer")},_.Q(_.p,{cond:function(){var f;return(f=X())==null?void 0:f.bannerText},
then:function(){return _.Q("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.Q("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.Q(_.Oy,{text:function(){return X().bannerText}})))}}),_.Q(_.p,{cond:function(){return _.$a(X().logo)},
then:function(f){var u={};return _.Q("div",{class:_.HO((u.ytmLpComplexOfferCardViewModelLogoAlignLeft=F,u),"ytmLpComplexOfferCardViewModelLogo")},_.Q(_.av,{data:f,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.Q("div",{class:_.HO((P.ytmLpComplexOfferCardViewModelTitleAlignLeft=F,P),"ytmLpComplexOfferCardViewModelTitle")},_.Q(_.Oy,{text:function(){return X().title}})),_.Q(_.p,{cond:function(){var f;
return(f=X())==null?void 0:f.subtitle},
then:function(){var f={};return _.Q("div",{class:_.HO((f.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=F,f),"ytmLpComplexOfferCardViewModelSubtitle")},_.Q(_.Oy,{text:function(){return X().subtitle}}))}}),_.Q(_.p,{cond:function(){return X().planPricingPrimary},
then:function(){return _.Q("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.Q(_.Oy,{text:function(){return X().planPricingPrimary}}))}}),_.Q(_.p,{cond:function(){return X().planPricingSecondary},
then:function(){return _.Q("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.Q(_.Oy,{text:function(){return X().planPricingSecondary}}))}}),_.Q(_.p,{cond:function(){return X().purchaseButton},
then:function(){return _.Q("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.Q(_.Md,{data:function(){return X().purchaseButton}},{buttonViewModel:function(f){return _.Q(_.Af,{data:f.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.Q(_.p,{cond:function(){var f;
return(f=X())==null?void 0:f.offerOptions},
then:function(){return _.Q("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.Q(_.Md,{data:function(){return X().offerOptions}},{lpComplexOfferCardOptionViewModel:G0O}))}}),_.Q("div",{class:_.HO((H.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=F,H),"ytmLpComplexOfferCardViewModelLegalText")},_.Q(_.Oy,{text:function(){return X().legalText}})),_.Q(_.p,{cond:function(){var f;
return(f=X())==null?void 0:f.offerCardDetails},
then:function(){return _.Q("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.Q(_.Md,{data:function(){return X().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:mWO}))}}))))},"Xb");var vDQ=_.$c(function(K){var X=K.data;var F=function(){var u;return((u=X())==null?void 0:u.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
K={};var P={},H={},f={};return _.Q("ytm-lp-complex-offer-card-section-view-model",null,_.Q("div",{class:_.HO("ytmLpComplexOfferCardSectionViewModelHost")},_.Q("div",{class:_.HO((K.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=F,K),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.Q("div",{class:_.HO((P.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=F,P),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.Q("h2",{class:_.HO((H.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
F,H),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.Q(_.Oy,{text:function(){return X().title}}))),_.Q(_.p,{cond:function(){var u;
return(u=X())==null?void 0:u.subtitle},
then:function(){var u={},J={};return _.Q("div",{class:_.HO((u.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=F,u),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.Q("div",{class:_.HO((J.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=F,J),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.Q(_.Oy,{text:function(){return X().subtitle}})))}}),_.Q("div",{class:_.HO((f.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=F,f),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.Q(_.Md,{data:function(){var u;
return(u=X().offerPlans)!=null?u:[]}},{lpComplexOfferCardViewModel:function(u){return _.Q("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.Q(lzE,{data:u.data}))}})))))},"Yb");var azC=_.$c(function(K){return _.Q("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.Q("div",{class:"ytLpCouponBannerViewModelIcon"},_.Q(_.ZF,{icon:function(){return"price_tag"}})),_.Q("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.Q("div",{class:"ytLpCouponBannerViewModelContent"},_.Q("div",{class:"ytLpCouponBannerViewModelHeading"},_.Q(_.Oy,{text:function(){var X;
return(X=K.data())==null?void 0:X.title}})),_.Q("div",{class:"ytLpCouponBannerViewModelBody"},_.Q(_.Oy,{text:function(){var X;
return(X=K.data())==null?void 0:X.subtitle}})))))},"Zb");
azC.idomCompat=!0;_.SK=SgC.getInstance();var twT=_.$c(function(K){return _.Q("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":K.shouldAriaHideContent},_.Q("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:K.questionId},_.Q(_.Oy,{text:K.question})))},"$b"),$WQ=_.$c(function(K){var X=K.data;
var F=K.themeOverride;K=_.D(_.u_(!1,void 0,"ljTVPd"));var P=K.next().value,H=K.next().value;K=_.DF(function(){H(!P());return!1});
var f=function(){return P()?"EXPAND_LESS":"EXPAND_MORE"},u=("faq-container"+_.L1(_.SK)).toString(),J="faq-question-and-answers-section-question"+_.L1(_.SK),Z={},M={};
return _.Q("faq-entry-view-model-c3",null,_.Q("div",{class:_.HO("yt-lp-faq-entry-view-model",(Z["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return F==null?void 0:F().useDarkTheme},Z))},_.Q("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":K,role:"button","aria-expanded":P,"aria-labelledby":J.toString(),"tab-index":"0"},_.Q(twT,{question:function(){return X().question},
questionId:J,shouldAriaHideContent:!0}),_.Q(_.p,{cond:function(){return P()!==void 0},
then:function(){return _.Q("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.Q(_.ZF,{icon:f,ariaHidden:!0}),_.Q("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.Q("div",{class:_.HO("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(M["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!P()},M))},_.Q("div",{id:u},_.Q(_.cd,{each:function(){return X().answers||[]}},function(n){return _.Q("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.Q(_.Oy,{text:n}))})))))},"ac");
$WQ.idomCompat=!0;var OdQ=_.$c(function(K){var X=K.data;var F=K.themeOverride;K={};return _.Q("lp-faq-section-view-model-c3",null,_.Q("div",{class:_.HO("yt-lp-faq-section-view-model",(K["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return X().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},K["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(F==null||!F().useDarkTheme)},K))},_.Q("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.Q(_.p,{cond:function(){return X().header},
then:function(P){return _.Q("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.Q(_.Oy,{text:P}))}}),_.Q("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.Q(_.Md,{data:function(){return X().faqs}},{faqEntryViewModel:function(P){return _.Q($WQ,{data:P.data,
themeOverride:F})}})),_.Q("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.Q(_.cd,{each:function(){return X().footers||[]}},function(P){return _.Q(_.Oy,{text:P})})),_.Q(_.p,{cond:function(){return X().legal},
then:function(P){return _.Q("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.Q(_.Oy,{text:P}))}}))))},"bc");
OdQ.idomCompat=!0;var VwT=_.$c(function(K){var X=K.data;var F=K.themeOverride;_.AV(function(){var u=X().gtmId;u&&_.nE(u,_.e8("GL",""))});
var P={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var u,J,Z;return(Z=(u=X().logo)==null?void 0:(J=u.accessibilityData)==null?void 0:J.label)!=null?Z:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},H=_.i9().resolve(_.Nu(_.m$)),f=function(){return H&&H()||(F==null?void 0:F().useDarkTheme)};
return _.Q("lp-header-section-view-model",null,_.Q("div",{class:function(){var u=X().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",J=X().marginType==="LP_SECTION_MARGIN_TYPE_TOP",Z=F==null?void 0:F().useDarkTheme,M=["lp-header-section-view-model"];u&&M.push("lp-header-section-view-model--ptc-layout-type");J&&M.push("lp-header-section-view-model__lp-header-section-margin");Z&&M.push("lp-header-section-view-model--premium-force-dark-mode");return M.join(" ")}},_.Q(_.p,{cond:function(){return X().logo},
then:function(){return _.Q("div",null,_.Q(_.p,{cond:f,then:function(){return _.Q(_.p,{cond:function(){var u;return(u=X().logo)==null?void 0:u.imageDark},
then:function(u){return _.Q(_.av,Object.assign({},{data:u},P))}})},
else:function(){return _.Q(_.p,{cond:function(){var u;return(u=X().logo)==null?void 0:u.imageLight},
then:function(u){return _.Q(_.av,Object.assign({},{data:u},P))}})}}))}}),_.Q(_.p,{cond:function(){return X().title},
then:function(u){return _.Q("div",{class:"lp-header-section-view-model__lp-header-title"},_.Q(_.Oy,{text:u}))}}),_.Q("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.Q(_.p,{cond:function(){return X().subtitles},
then:function(u){return _.Q(_.cd,{each:u},function(J){return _.Q("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.Q(_.Oy,{text:J}))})}})),_.Q(_.p,{cond:function(){return X().additionalInfo},
then:function(u){return _.Q("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.Q(_.Oy,{text:u}))}}),_.Q("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.Q(_.p,{cond:function(){return X().primaryButton},
then:function(u){return _.Q("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.Q(_.Md,{data:u},{buttonViewModel:_.Af}))}}),_.Q(_.p,{cond:function(){return X().secondaryButton},
then:function(u){return _.Q("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.Q(_.Md,{data:u},{buttonViewModel:_.Af}))}})),_.Q(_.p,{cond:function(){return X().otherOffersInfo},
then:function(u){return _.Q("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.Q(_.Oy,{text:u}))}}),_.Q("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.Q(_.p,{cond:function(){return X().billingInfo},
then:function(u){return _.Q(_.cd,{each:u},function(J){return _.Q("div",null,_.Q(_.Oy,{text:J}))})}}))))},"cc");
VwT.idomCompat=!0;var gDu=_.$c(function(K){var X=K.data;var F=_.ag(K.themeOverride,{useDarkTheme:!1});K={};K=_.HO("ytm-lp-headline-section-view-model",(K["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return F().useDarkTheme},K));
return _.Q("lp-headline-section-view-model",null,_.Q("div",{class:K},_.Q("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.Q(_.Oy,{text:function(){return X().title}})),_.Q(_.p,{cond:function(){return X().subtitle},
then:function(P){return _.Q("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.Q(_.Oy,{text:P}))}})))},"dc");var EDO=_.$c(function(K){var X=K.data;var F=K.themeOverride;var P=_.i9().resolve(_.Nu(_.m$)),H=function(){return P&&P()||(F==null?void 0:F().useDarkTheme)},f=function(){var M,n;
var c=H()?(M=X().textBackgroundImage)==null?void 0:M.imageDark:(n=X().textBackgroundImage)==null?void 0:n.imageLight;return sOy((c==null?void 0:c.sources)||[])},u=function(){var M,n;
return H()?(M=X().featureImage)==null?void 0:M.imageDark:(n=X().featureImage)==null?void 0:n.imageLight},J=function(){return X().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},Z=function(){var M,n;
return H()?(M=X().logo)==null?void 0:M.imageDark:(n=X().logo)==null?void 0:n.imageLight};
return _.Q("ytm-lp-large-feature-section-view-model",null,_.Q("div",{class:function(){var M=X().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",n=X().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",c=(X().index||0)%2===1,B=F==null?void 0:F().useDarkTheme,L=["yt-lp-large-feature-section-view-model"];M?L.push("yt-lp-large-feature-section-view-model--music-feature-type"):n?L.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):c||L.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
B&&L.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return L.join(" ")}},_.Q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.Q(_.p,{cond:u,
then:function(){return _.Q(_.av,{data:function(){return u()},
alt:function(){var M,n,c;return(c=(M=X().featureImage)==null?void 0:(n=M.accessibilityData)==null?void 0:n.label)!=null?c:""},
contentMode:J})}})),_.Q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var M;return((M=f())==null?0:M.url)?"background-image: url("+_.ps(f().url)+");":""}},_.Q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.Q(_.p,{cond:Z,
then:function(){return _.Q(_.av,{data:function(){return Z()},
alt:function(){var M,n,c;return(c=(M=X().logo)==null?void 0:(n=M.accessibilityData)==null?void 0:n.label)!=null?c:""},
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"})}}),_.Q(_.p,{cond:function(){return X().eyebrowText},
then:function(){return _.Q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.Q(_.Oy,{text:function(){return X().eyebrowText}}))}}),_.Q(_.p,{cond:function(){return X().title},
then:function(){return _.Q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.Q(_.Oy,{text:function(){return X().title}}))}}),_.Q(_.p,{cond:function(){return X().subtitles},
then:function(){return _.Q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.Q(_.cd,{each:function(){return X().subtitles||[]}},function(M){return _.Q(_.Oy,{text:M})}))}})))))},"ec");
EDO.idomCompat=!0;var bdO=_.$c(function(K){return _.Q("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.Q("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.Q(_.ZF,{icon:function(){var X;return(X=K.data())==null?void 0:X.iconType},
className:function(){var X;return((X=K.data())==null?void 0:X.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.Q("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.Q(_.Oy,{text:function(){var X;
return(X=K.data())==null?void 0:X.text}}))))},"fc");var CGE=_.$c(function(K){K=_.tA(K,{config:void 0,themeOverride:void 0});var X=K.data,F=K.config,P=K.themeOverride;K={};K=_.HO("ytm-lp-offer-card-option-view-model",(K["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var J;return(J=P())==null?void 0:J.useDarkTheme},K));
var H=_.DF(function(){var J,Z;(J=F())==null||(Z=J.handleRadioButtonClick)==null||Z.call(J,X());return!1}),f=function(){var J;
return(J=F())==null?void 0:J.shouldDisplayRadioButton},u=function(){var J;
return(J=X().featureListItems)!=null?J:[]};
return _.Q("ytm-lp-offer-card-option-view-model",null,_.Q("div",{class:K,"on:click":_.DF(function(){if(f()){var J,Z;(J=F())==null||(Z=J.handleRadioButtonClick)==null||Z.call(J,X())}return!1})},_.Q(_.p,{cond:f,
then:function(){return _.Q("div",null,_.Q("input",{type:"radio","on:click":H,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var J;return!((J=F())==null||!J.isOptionSelected)}}))}}),_.Q("div",null,_.Q("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.Q(_.Oy,{text:function(){return X().eyebrowText}})),_.Q("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.Q(_.Oy,{text:function(){return X().title}})),_.Q("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.Q(_.Oy,{text:function(){return X().subtitle}})),_.Q(_.p,{cond:function(){return u().length>0},
then:function(){return _.Q("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.Q(_.Md,{data:u},{lpFeatureListItemViewModel:bdO}))}}),_.Q("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.Q(_.Oy,{text:function(){return X().description}})))))},"gc");
CGE.idomCompat=!0;var NmW=_.$c(function(K){var X=K.data;var F=K.themeOverride;K=_.D(_.qB(function(){var f,u=(f=X().offerOptions)==null?void 0:f[0];return _.T(u,MqT)||{}}));
var P=K.next().value,H=K.next().value;K={};return _.Q("ytm-lp-offer-card-view-model",null,_.Q("div",{class:_.HO("ytm-lp-offer-card-view-model",(K["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(F==null||!F().useDarkTheme)},K))},_.Q("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.Q(_.p,{cond:function(){return X().titleIconType},
then:function(){return _.Q("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.Q(_.ZF,{icon:function(){var f;return((f=X().titleIconType)==null?void 0:f.toString())||""}}))}}),_.Q("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.Q(_.Oy,{text:function(){return X().title}})),_.Q(_.Md,{data:function(){return X().titleBadge}},{badgeViewModel:function(f){return _.Q("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.Q(_.EG,{data:f.data}))}})),_.Q("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.Q(_.Md,{data:function(){return X().offerOptions}},{lpOfferCardOptionViewModel:function(f){var u=f.data;
return _.Q(_.ID,null,_.Q("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.Q(CGE,{data:u,config:function(){var J;return{shouldDisplayRadioButton:(X().offerOptions||[]).length>1,isOptionSelected:u().id===((J=P())==null?void 0:J.id),handleRadioButtonClick:function(Z){return void H(Z)}}},
themeOverride:F}))}})),_.Q("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.Q(_.Md,{data:function(){var f;
return(f=P())==null?void 0:f.purchaseButtonOverride}},{buttonViewModel:_.Af}))))},"hc");
NmW.idomCompat=!0;var idW=_.$c(function(K){var X=K.data;var F=K.themeOverride;K={};K=_.HO("ytm-lp-offer-card-section-view-model",(K["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var P;return F==null?void 0:(P=F())==null?void 0:P.useDarkTheme},K));
return _.Q("ytm-lp-offer-card-section-view-model",null,_.Q("div",{class:K},_.Q(_.p,{cond:function(){return X().title!==void 0},
then:function(){return _.Q("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.Q("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.Q(_.Oy,{text:function(){return X().title}})),_.Q(_.p,{cond:function(){return X().subtitle},
then:function(){return _.Q("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.Q(_.Oy,{text:function(){return X().subtitle}}))}}))}}),_.Q("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.Q(_.Md,{data:function(){return X().offerCards}},{lpOfferCardViewModel:function(P){return _.Q("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.Q(NmW,{data:P.data,
themeOverride:F}))}})),_.Q(_.p,{cond:function(){return X().footer},
then:function(){return _.Q("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.Q(_.Oy,{text:function(){return X().footer}}))}})))},"ic");var xWV=_.$c(function(K){var X=K.data;return _.Q("lp-offer-table-cell-content-view-model",null,_.Q("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.Q(_.S8,null,_.Q(_.p9,{when:function(){return X().title}},function(){return _.Q(_.Oy,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return X().title}})}),_.Q(_.p9,{when:function(){return X().subTitle}},function(){return _.Q(_.Oy,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return X().subTitle}})}),_.Q(_.p9,{when:function(){return X().featureDescription}},function(){return _.Q(_.Oy,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return X().featureDescription}})}),_.Q(_.p9,{when:function(){return X().description}},function(){return _.Q(_.Oy,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return X().description}})}),_.Q(_.p9,{when:function(){return X().iconType}},function(){return _.Q("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.Q(_.ZF,{icon:function(){return X().iconType.toString()}}))}),_.Q(_.p9,{when:function(){return X().purchaseButton}},function(){return _.Q(_.Md,{data:function(){return X().purchaseButton}},{buttonViewModel:function(F){return _.Q("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.Q(_.Af,{data:F.data}))}})}),_.Q(_.p9,{when:function(){return X().note}},function(){return _.Q(_.Oy,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return X().note}})}),_.Q(_.p9,{when:function(){return X().featureDetail}},function(){return _.Q(_.Oy,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return X().featureDetail}})}),_.Q(_.p9,{when:function(){return X().badge}},function(){return _.Q(_.Md,{data:function(){return X().badge}},{badgeViewModel:_.EG})}))))},"jc");
xWV.idomCompat=!0;var IzE=_.$c(function(K){var X=K.data;return _.Q("lp-offer-table-cell-view-model",null,_.Q("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(X().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;"}}},_.Q(_.Md,{data:function(){return X().contents}},{lpOfferTableCellContentViewModel:xWV})))},
"kc");
IzE.idomCompat=!0;var k0O=_.$c(function(K){var X=K.data;var F=K.lpTableIsFirstRow;var P=K.lpTableIsLastRow;var H=function(){return(F==null?0:F())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},f=function(){return(F==null?0:F())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(P==null?0:P())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.Q("ytm-lp-offer-table-row-view-model",null,_.Q("div",{class:"yt-lp-offer-table-row-view-model"},_.Q(_.Md,{data:function(){return X().rowHeaderCell}},{lpOfferTableCellViewModel:function(u){return _.Q("div",{class:H},_.Q(IzE,{data:u.data}))}}),_.Q(_.Md,{data:function(){return X().contentCells}},{lpOfferTableCellViewModel:function(u){return _.Q("div",{class:f},_.Q(IzE,{data:u.data}))}})))},"lc");
k0O.idomCompat=!0;var KuO=_.$c(function(K){var X=K.data;var F=K.themeOverride;var P=_.i9().resolve(_.Nu(_.m$)),H=function(){return _.T(X().logo,WQQ)||{}};
K={};return _.Q("ytm-lp-offer-table-section-view-model",null,_.Q("div",{class:"yt-lp-offer-table-view-model"},_.Q(_.p,{cond:function(){var f,u;return P&&P()||(F==null?0:F().useDarkTheme)?(f=H())==null?void 0:f.imageDark:(u=H())==null?void 0:u.imageLight},
then:function(f){return _.Q(_.av,{data:f,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var u,J,Z;return(Z=(u=H())==null?void 0:(J=u.accessibilityData)==null?void 0:J.label)!=null?Z:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.Q("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.Q(_.Oy,{text:function(){return X().title}})),_.Q("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.Q(_.Oy,{text:function(){return X().subtitle}})),_.Q(_.p,{cond:function(){return X().disclaimers},
then:function(f){return _.Q("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.Q(_.cd,{each:f},function(u){return _.Q("div",null,_.Q(_.Oy,{text:u}))}))}}),_.Q("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.Q(_.Md,{data:function(){return X().rows}},{lpOfferTableRowViewModel:function(f,u){return _.Q(k0O,{data:f.data,
lpTableIsFirstRow:function(){return u()===0},
lpTableIsLastRow:function(){return u()===X().rows.length-1}})}})),_.Q("div",{class:_.HO((K["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return X().hasFooterBackground},K))},_.Q(_.p,{cond:function(){return X().footer},
then:function(){return _.Q("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.Q(_.Oy,{text:function(){return X().footer}}))}}),_.Q(_.p,{cond:function(){return X().footerTitle},
then:function(){return _.Q("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.Q(_.Oy,{text:function(){return X().footerTitle}}))}}),_.Q(_.p,{cond:function(){return X().footerDescription},
then:function(){return _.Q("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.Q(_.Oy,{text:function(){return X().footerDescription}}))}}))))},"mc");
KuO.idomCompat=!0;var XKC=_.$c(function(K){var X=K.data;var F=K.themeOverride;var P=_.i9().resolve(_.Nu(_.m$)),H=function(){var J;return F==null?void 0:(J=F())==null?void 0:J.useDarkTheme},f=function(){var J,Z;
return P&&P()||H()?(J=X().image)==null?void 0:J.imageDark:(Z=X().image)==null?void 0:Z.imageLight};
K={};K=_.HO("ytm-lp-small-feature-section-view-model",(K["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=H,K));var u=function(){var J,Z,M;return(M=(J=X().image)==null?void 0:(Z=J.accessibilityData)==null?void 0:Z.label)!=null?M:""};
return _.Q("ytm-lp-small-feature-section-view-model",{class:K},_.Q(_.p,{cond:function(){return f()&&!cJy},
then:function(){return _.Q("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.Q(_.av,{data:function(){return f()},
alt:u,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.Q("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.Q("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.Q(_.p,{cond:function(){return X().title},
then:function(J){return _.Q(_.Oy,{text:J})}})),_.Q("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.Q(_.Oy,{text:function(){return X().description}}))))},"nc");
XKC.idomCompat=!0;var FuT=_.$c(function(K){var X=K.data;var F=K.themeOverride;K={};return _.Q("ytm-lp-small-feature-section-group-view-model",null,_.Q("div",{class:_.HO("ytm-lp-small-feature-section-group-view-model",(K["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(F==null||!F().useDarkTheme)},K))},_.Q("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.Q(_.Md,{data:function(){return X().smallFeatures}},{lpSmallFeatureSectionViewModel:function(P){return _.Q("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.Q(XKC,{data:P.data,
themeOverride:F}))}}))))},"oc");
FuT.idomCompat=!0;_.EP(_.$c(function(K){var X=K.data;var F=function(){return X().forcedTheme==="USER_INTERFACE_THEME_DARK"},P=function(){return X().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},H=function(){var u="",J,Z;
var M=_.i9().resolve(_.Nu(_.m$));M=F()||(M==null?0:M())?(J=X().themedImageViewModel)==null?void 0:J.imageDark:(Z=X().themedImageViewModel)==null?void 0:Z.imageLight;(J=sOy((M==null?void 0:M.sources)||[]))&&J.url&&(u=P()?"background-image: linear-gradient(to bottom, transparent, "+(X().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.ps(J.url)+");":"background-image: url("+_.ps(J.url)+");");return u},f=function(){return{useDarkTheme:F()}};
K={};return _.Q("yt-section-group-view-model",null,_.Q("div",{class:_.HO("yt-lp-section-group-view-model",(K["yt-lp-section-group-view-model--premium-force-dark-mode"]=F,K["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return X().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},K))},_.Q(_.p,{cond:function(){return H().length},
then:function(){var u={};return _.Q("div",{class:_.HO("yt-lp-section-group-view-model__bg-image",(u["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=P,u)),style:H})}}),_.Q("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.Q(_.Md,{data:function(){return X().sections}},{lpFaqSectionViewModel:function(u){return _.Q(OdQ,{data:u.data,
themeOverride:f})},
lpHeaderSectionViewModel:function(u){return _.Q(VwT,{data:u.data,themeOverride:f})},
lpHeadlineSectionViewModel:function(u){return _.Q(gDu,{data:u.data,themeOverride:f})},
lpLargeFeatureSectionViewModel:function(u){return _.Q(EDO,{data:u.data,themeOverride:f})},
lpOfferCardSectionViewModel:function(u){return _.Q(idW,{data:u.data,themeOverride:f})},
lpComplexOfferCardSectionViewModel:function(u){return _.Q(vDQ,{data:u.data})},
lpOfferTableSectionViewModel:function(u){return _.Q(KuO,{data:u.data,themeOverride:f})},
lpSmallFeatureSectionGroupViewModel:function(u){return _.Q(FuT,{data:u.data,themeOverride:f})},
lpCouponBannerViewModel:function(u){return _.Q(azC,{data:u.data})}}))))},"pc"),"yt-section-group-view-model",{props:{data:_.vU}});var Oeq=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.PnQ=_.$c(function(K){function X(){if(Oeq.has(K.data().displayType)){var M=!P(),n;if((n=K.disableDeselection)==null||!n.call(K)||M){K.data().selected=M;n=Object.assign({},u(),{selected:M});J(n);var c;(c=K.callback)==null||c.call(K,n,M)}}}
var F=_.t_(),P=function(){var M,n;return!!(((M=K.selected)==null?void 0:M.call(K))!==void 0?(n=K.selected)==null?0:n.call(K):u().selected)},H=_.D(_.qB(K.data)),f=H.next().value;
H=H.next().value;var u=f,J=H,Z=_.sy($pT,function(){return K.data().chipEntityKey||""});
return _.Q("chip-view-model",{class:"ytChipViewModelHost",el:F},_.Q(axO,{data:function(){var M,n=Object.assign({},u(),{selected:P()}),c=Z(),B=(M=K.disableDeselection)==null?void 0:M.call(K);a:switch(n.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":M=1;break a;default:M=0}return{text:(c==null?void 0:c.text)||n.text,state:n.disabled?1:n.selected?0:2,type:M,onTap:Vr4(n,F,X,B),accessibilityLabel:n.accessibilityLabel||n.text}}}))},"qc");
_.PnQ.idomCompat={callbacks:{callback:!0}};_.H6W=_.$c(function(K){var X=_.sy(tr3,function(){var u;return(u=K.data())==null?void 0:u.chipBarStateEntityKey}),F=function(){return K.data().disableDeselection},P=_.D(_.qB(function(){var u;
if(((u=X())==null?void 0:u.selectedIndex)!=void 0)return X().selectedIndex;var J,Z;u=_.D(((J=K.data())==null?void 0:(Z=J.chips)==null?void 0:Z.entries())||[]);for(J=u.next();!J.done;J=u.next()){J=_.D(J.value);Z=J.next().value;J=J.next().value;var M=void 0;if((M=_.T(J,_.d4))==null?0:M.selected)return Z}return-1})),H=P.next().value,f=P.next().value;
return _.Q("chip-bar-view-model",{class:_.HO("ytChipBarViewModelHost",K.className),role:"tablist"},_.Q(_.Md,{data:function(){return K.data().chips}},{chipViewModel:function(u,J){return _.Q("div",{class:"ytChipBarViewModelChipWrapper"},_.Q(_.PnQ,{data:u.data,
selected:function(){return J()===H()},
callback:function(Z,M){Z=!!M;M=J();f(Z?M:-1);var n,c=(n=K.data())==null?void 0:n.chipBarStateEntityKey;c&&Z&&_.vc(_.zl("chipBarStateEntity",c,{key:c,selectedIndex:M}))},
disableDeselection:K.disableDeselection||F}))}}))},"rc");_.EP(_.H6W,"chip-bar-view-model",{props:{data:_.g$,className:_.g$,disableDeselection:_.g$}});_.soE=_.$c(function(K){var X=K.data;K={};return _.Q("divider-view-model",{class:_.HO("divider-view-model-wiz",(K["divider-view-model-wiz__inset-thin-padding"]=function(){return X().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},K))},_.Q("div",{class:_.HO("divider-view-model-wiz__base-divider",function(){return gKO(X().dividerStyle)}),
style:_.Je({"background-color":function(){return X().backgroundColor?_.j0(X().backgroundColor):void 0}})}))},"sc");
_.soE.idomCompat=!0;_.EP(_.soE,"divider-view-model",{props:{data:_.vU}});var BG=new Map,pj=new Map,CEy=0,SI;var XtP=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],Ho4={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var zxt,fUE;zxt=function(K){return function(X){return function(){return String(X())+K}}};
_.oO=zxt("px");fUE=zxt("s");var u2N=_.$c(function(K){function X(x){return function(){var N=L().numItemsPerGridRow,Dl=x()*N;N=Dl+N;var Mq,pO;return(pO=(Mq=P().contents)==null?void 0:Mq.slice(Dl,N))!=null?pO:[]}}
var F=_.tA(K,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),P=F.data,H=F.layoutContainerWidth,f=F.shouldUseOwnContainerSize,u=F.marginSettings;F=_.D(_.u_(!0,void 0,"qgr2Je"));var J=F.next().value,Z=F.next().value,M=function(){var x,N=(x=_.T(P().showMoreButton,_.nS))==null?void 0:x.trackingParams;N&&_.FT(_.uH(),N);Z(!1)},n=function(){var x,N=(x=_.T(P().showLessButton,_.nS))==null?void 0:x.trackingParams;
N&&_.FT(_.uH(),N);Z(!0)};
F=_.t_();var c=_.zJn(F,{canHaveZeroSize:!1}),B=function(){var x;return(x=P().contentAspectRatio)!=null?x:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},L=_.Qs(function(){var x=_.ak({containerWidth:f()&&c.width()>0?c.width()||H():H(),
sizing:"EXTRA_COMPACT",marginSettings:u(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:x.maxContainerWidth,numItemsPerGridRow:x.numItems,contentPadding:f()?x.margin:x.contentMargin,itemWidth:x.itemWidth,itemMargin:x.gutter/2}},void 0,"pqVdjc"),A=function(){if(P().enableVerticalExpansion){if(J())return d();
var x,N,Dl=(N=(x=P().contents)==null?void 0:x.length)!=null?N:0;return Math.ceil(Dl/L().numItemsPerGridRow)}return L().numItemsPerGridRow<=2?2:1},d=function(){var x;
return Math.ceil(((x=P().minCollapsedItemCount)!=null?x:1)/L().numItemsPerGridRow)},R=function(){return P().enableVerticalExpansion&&P().showLessButton&&!J()&&A()>d()},l=function(){var x,N;
return P().enableVerticalExpansion&&P().showMoreButton&&J()&&((N=(x=P().contents)==null?void 0:x.length)!=null?N:0)>L().numItemsPerGridRow*d()},a=function(){return!R()},E=function(){return!l()},V={};
return _.Q("grid-shelf-view-model",{class:_.HO("ytGridShelfViewModelHost",K.className,(V.ytGridShelfViewModelHostHasBottomButton=function(){return R()||l()},V)),
el:F,style:_.Je({"margin-left":(0,_.oO)(function(){return L().contentPadding}),
"margin-right":(0,_.oO)(function(){return L().contentPadding})})},_.Q(_.p,{cond:function(){return _.T(P().header,$ft)},
then:function(x){return _.Q(_.XZ,{data:x,disableHorizontalPadding:!0})}}),_.Q("div",null,_.Q(_.cd,{each:function(){return Array(A())}},function(x,N){return _.Q(DPQ,{className:K.className,
items:X(N),responsiveGridShelfLayout:L,contentAspectRatio:B})})),_.Q("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.Q(_.Md,{data:function(){return P().showMoreButton}},{buttonViewModel:function(x){return _.Q("div",{hidden:E},_.Q(_.Af,{data:x.data,
onClick:M}))}}),_.Q(_.Md,{data:function(){return P().showLessButton}},{buttonViewModel:function(x){return _.Q("div",{hidden:a},_.Q(_.Af,{data:x.data,
onClick:n}))}})))},"tc");
u2N.idomCompat=!0;var DPQ=_.$c(function(K){var X=K.items;var F=K.responsiveGridShelfLayout;var P=K.contentAspectRatio;K=K.className;var H=_.t_();bew(H,function(){a:{var u=H.value;for(var J=X(),Z=[],M=0;M<J.length;M++){var n=_.T(J[M],ost);if(!n||n==null||!n.inlinePlayerData){u=null;break a}var c=u.children.item(M);if(!c){u=null;break a}Z.push({thumbnailElement:c,videoData:n})}u={gridVideoPreviewData:{gridItems:Z}}}return u});
var f=(0,_.oO)(function(){return-F().itemMargin});
return _.Q("div",{el:H,class:_.HO("ytGridShelfViewModelGridShelfRow",K),style:_.Je({"margin-left":f,"margin-right":f})},_.Q(_.Md,{data:X,replacementWrapper:function(u){return _.Q(qqN,{responsiveGridShelfLayout:F},u)}},{shortsLockupViewModel:function(u){return _.Q(qqN,{responsiveGridShelfLayout:F},_.Q(iHt,{data:u.data,
aspectRatio:function(){return P()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"uc"),qqN=_.$c(function(K){return _.Q("div",{style:_.Je({width:(0,_.oO)(function(){return K.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+K.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},K.children)},"vc");
u2N.idomCompat=!0;_.EP(u2N,"grid-shelf-view-model",{props:{data:_.vU,layoutContainerWidth:_.vU,shouldUseOwnContainerSize:_.vU,marginSettings:_.vU,className:_.vU}});_.JOZ=_.$c(function(K){var X=_.D(_.u_(!1,void 0,"YYtxR")),F=X.next().value,P=X.next().value;X={};return _.Q("yt-alert-banner-view-model",{class:_.HO("ytAlertBannerViewModelHost",K.className,function(){var H;a:switch((H=K.data())==null?void 0:H.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":H="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":H="ytAlertBannerViewModelWarning";break a;default:H="ytAlertBannerViewModelInformational"}return H},(X.ytAlertBannerViewModelDismissed=
F,X.ytAlertBannerViewModelFullbleed=K.fullbleed,X.ytAlertBannerViewModelNarrow=K.narrow,X.ytAlertBannerViewModelIsInRichGrid=K.isInRichGrid,X))},_.Q(_.p,{cond:function(){var H;
return!((H=K.data())==null?0:H.hideIcon)},
then:function(){return _.Q("div",{class:"ytAlertBannerViewModelIcon"},_.Q(_.ZF,{icon:function(){return"info_circle"}}))}}),_.Q("div",{class:"ytAlertBannerViewModelOuterContainer"},_.Q("div",{class:"ytAlertBannerViewModelContainer"},_.Q("div",{class:"ytAlertBannerViewModelContent"},_.Q("div",{class:"ytAlertBannerViewModelHeading"},_.Q(_.Oy,{text:function(){var H;
return(H=K.data())==null?void 0:H.heading}})),_.Q("div",{class:"ytAlertBannerViewModelBody"},_.Q(_.Oy,{text:function(){var H;
return(H=K.data())==null?void 0:H.body}})))),_.Q(_.Md,{data:function(){var H;
return(H=K.data())==null?void 0:H.actionButton}},{buttonViewModel:function(H){return _.Q(_.Af,{data:H.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.Q(_.Md,{data:function(){var H;
return(H=K.data())==null?void 0:H.dismissButton}},{buttonViewModel:function(H){return _.Q(_.Af,{data:H.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var f;((f=K.data())==null?0:f.disableLocalDismissBehavior)||P(!0)}})}}))},"wc");_.EP(_.JOZ,"yt-alert-banner-view-model",{props:{data:_.vU,fullbleed:_.vU,narrow:_.vU,isInRichGrid:_.vU,className:_.vU}});var fxP;fxP=_.Jf({chipViewModel:_.PnQ,buttonViewModel:_.Af});_.Z6O=_.f4(D7q,{callbacks:{callback:!0}});_.iy(D7q);_.EP(_.Z6O,"chips-shelf-view-model",{props:{data:_.vU,callback:_.g$,enableSingleChipSelection:_.vU,disableChipsScrollAnimation:_.vU}});var YqO=_.$c(function(K){K=_.tA(K,{disabled:!1});var X=K.active,F=K.disabled;K={};K=_.HO("ytSwitchShapeTrack",(K.ytSwitchShapeTrackActive=function(){return X()},K.ytSwitchShapeTrackDisabled=function(){return F()},K));
var P={};P=_.HO("ytSwitchShapeKnob",(P.ytSwitchShapeKnobActive=function(){return X()},P));
return _.Q("switch-shape",{class:"ytSwitchShapeHost"},_.Q("div",{class:K}),_.Q("div",{class:P}))},"xc");var QoT=_.$c(function(K){var X=_.tA(K,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),F=X.data;K=X.className;var P=X.handleOnTapEventInParent,H=X.parentActive;X=_.D(_.qB(function(){var c;return(c=H())!=null?c:F().switchedOnByDefault||!1}));
var f=X.next().value,u=X.next().value,J=function(){return F().isDisabled},Z=_.t_();
X=_.DF(function(c){return c.key==="Enter"?(c.preventDefault(),Z.value.click(),!1):!0});
var M=_.DF(function(c){if(F().handleOnTapEventInParent||P())return!0;if(J())return!1;qCw(F(),f(),c);u(!f());return!1}),n={};
n=_.HO("ytSwitchButtonViewModelButton",(n.ytSwitchButtonViewModelTappable=function(){return!J()},n));
return _.Q("switch-button-view-model",{class:_.HO("ytSwitchButtonViewModelHost",K)},_.Q("button",{el:Z,class:n,"on:click":M,"on:keydown":X,"aria-label":function(){return f()?F().a11yLabelSwitchedOn:F().a11yLabelSwitchedOff},
"aria-checked":f,"aria-disabled":J,role:"switch"},_.Q(YqO,{active:f,disabled:J})))},"yc");var nIU=_.$c(function(K){var X=_.tA(K,{checked:!1});K=X.name;var F=X.onChange,P=X.onClick,H=X.checked,f=X.labelRenderable,u=X.hasLeadingLabel,J=X.labelClass,Z=X.isCompact,M=X.selectElementClass;X=X.disableHorizontalPadding;var n="checkbox"+_.L1(_.SK),c=_.DF(function(A){P==null||P(A);return!1}),B=_.DF(function(A){F==null||F(A);
return!1}),L={};
return _.Q("checkbox-shape",null,_.Q("label",{class:_.HO("checkbox-shape-wiz",J,(L["checkbox-shape-wiz--compact"]=Z,L["checkbox-shape-wiz--disable-horizontal-padding"]=X,L))},_.Q("input",{class:"checkbox-shape-wiz__input",id:n,checked:H,name:K,type:"checkbox","prop:checked":H,"on:change":B,"on:click":c}),_.Q(_.p,{cond:function(){return!(u==null?0:u())},
then:function(){return _.Q(MBZ,{isLeading:!0,selectElementClass:M})}}),_.Q(_.p,{cond:function(){return!!f},
then:function(){return _.Q("div",{class:"checkbox-shape-wiz__label"},f==null?void 0:f())}}),_.Q(_.p,{cond:u,
then:function(){return _.Q(MBZ,{isLeading:!1,selectElementClass:M})}})))},"zc");
nIU.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var MBZ=_.$c(function(K){var X=K.selectElementClass;K={};return _.Q("div",{class:_.HO("checkbox-shape-wiz__checkbox",X,(K["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(X==null?0:X())},K)),
"aria-hidden":"true"},_.Q(_.ZF,{icon:_.S("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.Q(_.ZF,{icon:_.S("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Ac");_.LK=_.$c(function(K){var X=K.name;var F=K.onChange;var P=K.onClick;var H=K.checked;var f=K.labelRenderable;var u=K.useCheckIcon;var J=K.hasLeadingLabel;var Z=K.labelClass;var M=K.isCompact;var n=K.selectElementClass;var c=K.ariaLabel;K=K.className;var B="radio"+_.L1(_.SK),L=_.t_(),A=_.DF(function(E){L.value.checked=!(H==null||!H());F==null||F(E);return!1}),d=_.DF(function(E){P==null||P(E);
return!1}),R=_.D(_.u_(!1,void 0,"v5AMrb")),l=R.next().value,a=R.next().value;
R={};return _.Q("radio-shape",{class:_.HO("radio-shape-wiz",K)},_.Q("input",{el:L,class:"radio-shape-wiz__input",id:B,"prop:checked":H,name:X,type:"radio","on:change":A,"on:click":d,"aria-label":c,"on:focusin":_.DF(function(){var E;((E=_.i9().resolve(_.Nu(_.Iu)))==null?0:E.isKeyBoardInUse())&&a(!0)}),
"on:focusout":_.DF(function(){a(!1)})}),_.Q("label",{class:_.HO("radio-shape-wiz__label-container",Z,(R["radio-shape-wiz--compact"]=M,R["radio-shape-wiz__label-container--keyboard-focused"]=l,R)),
for:B},_.Q(_.p,{cond:function(){return!(J==null?0:J())},
then:function(){return _.Q(cOZ,{checked:H,useCheckIcon:u,isLeading:!0,selectElementClass:n})}}),_.Q(_.p,{cond:function(){return!!f},
then:function(){return _.Q("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(c==null?0:c())?"true":"false"}},f==null?void 0:f())}}),_.Q(_.p,{cond:J,
then:function(){return _.Q(cOZ,{checked:H,useCheckIcon:u,isLeading:!1,selectElementClass:n})}})))},"Bc");
_.LK.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var cOZ=_.$c(function(K){var X=K.useCheckIcon;var F=K.selectElementClass;K=function(){return(X==null?0:X())?"CHECK":_.S("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var P={};return _.Q("div",{class:_.HO("radio-shape-wiz__radio",F,(P["radio-shape-wiz__radio--check-icon"]=X,P["radio-shape-wiz__radio--radio-default-style"]=function(){return!(F==null?0:F())},P)),
"aria-hidden":"true"},_.Q(_.ZF,{icon:K}),_.Q(_.ZF,{icon:K,active:function(){return!(X==null?0:X())}}))},"Cc");_.Ta=_.$c(function(K){function X(){var dL;((dL=_.i9().resolve(_.Nu(_.Iu)))==null?0:dL.isKeyBoardInUse())&&a3(!0)}
function F(){a3(!1)}
var P=K.data;var H=K.isMenuItem;var f=K.isCompact;var u=K.onTap;var J=K.trailingAccessory;var Z=K.hideSelectionTextChevron;var M=K.disabled;var n=K.inPopup;var c=K.disableHorizontalPadding;K=K.isOverlay;var B=_.S("apply_button_role_to_list_item"),L=_.rn(function(dL){a:{var nt=P();if((nt==null?0:nt.entitySelectorType)&&(nt==null?0:nt.entityKey))switch(nt.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":dL=_.CIy(dL,nt.entityKey);dL=dL==null?void 0:
dL.value;nt=!1;dL==="CAPTIONS_UNAVAILABLE"&&(nt=!0,dL="");dL=Object.assign({},!!dL&&{selectionText:{content:dL}},{isSelected:!!dL},!!dL&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:nt});break a;default:dL={}}else dL={}}return dL}),A=function(){return _.S("enable_web_shorts_captions_language_command")?Object.assign({},P(),L()):P()},d=function(){return!(A().isSelected===void 0||!A().selectionStyle||A().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
R=function(){return(_.hf(A().rendererContext)||u)&&!d()},l=function(){return _.hf(A().rendererContext)||d()},a={};
K=_.HO("yt-list-item-view-model-wiz",(a["yt-list-item-view-model-wiz--is-overlay"]=K,a["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!B&&gw()},a));
a={};var E=_.HO("yt-list-item-view-model-wiz__label",(a["yt-list-item-view-model-wiz__container"]=function(){return!d()},a["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!A().isDisabled||!(M==null||!M())},a["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!A().subtitle},a["yt-list-item-view-model-wiz__container--compact"]=f,a["yt-list-item-view-model-wiz__container--tappable"]=R,a["yt-list-item-view-model-wiz__container--in-popup"]=n,a["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return B&&gw()},a["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(c==null?void 0:c())&&!d()},a));
a={};var V=_.HO("yt-list-item-view-model-wiz__container",(a["yt-list-item-view-model-wiz__container--tappable"]=l,a["yt-list-item-view-model-wiz__container--compact"]=f,a["yt-list-item-view-model-wiz__container--in-popup"]=n,a["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(c==null?void 0:c())&&d()},a)),x=function(){return A().leadingImage||A().leadingAccessory},N=_.HO("yt-list-item-view-model-wiz__image-container",function(){return x()?"yt-list-item-view-model-wiz__trailing":
"yt-list-item-view-model-wiz__leading"});
n=_.t_();var Dl=_.t_(),Mq=B?Dl:n,pO=_.$c(function(){return _.Q(_.p,{cond:function(){return B},
then:function(){return _.Q("div",{class:E,el:Dl,role:function(){return l()||R()?"button":void 0},
tabindex:function(){return u||R()?0:void 0},
"on:keydown":Wy,"on:click":y9},_.Q(pKL,{data:A,hideSelectionTextChevron:Z,trailingAccessory:J}))},
else:function(){return _.Q("div",{class:E,el:Dl},_.Q(pKL,{data:A,hideSelectionTextChevron:Z,trailingAccessory:J}))}})},"Dc");
pO.idomCompat=!0;_.m_(n,function(){return A().rendererContext});
var y9=_.DF(function(dL){return void(u==null?void 0:u(dL))}),Wy=_.irP(),eP=_.D(_.u_(!1,void 0,"inP9Dc"));
a=eP.next().value;eP=eP.next().value;var gw=a,a3=eP;_.AV(function(){R()&&(Mq.value.addEventListener("focusin",X),Mq.value.addEventListener("focusout",F));_.AZ(function(){Mq.value&&R()&&(Mq.value.removeEventListener("focusin",X),Mq.value.removeEventListener("focusout",F))})});
a=_.DF(function(){return!0});
return _.Q("yt-list-item-view-model",{el:n,class:K,role:function(){return(H==null?0:H())?"menuitem":"listitem"},
tabindex:function(){var dL=R();dL=B?void 0:u||dL?0:void 0;return dL},
"on:keydown":B?a:Wy,"on:click":B?a:y9},_.Q(_.p,{cond:d,then:function(){return _.Q(_.S8,null,_.Q(_.p9,{when:function(){return A().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.Q(nIU,{labelRenderable:function(){return _.Q(pO,null)},
isCompact:f,checked:function(){return A().isSelected},
hasLeadingLabel:function(){return!!x()},
labelClass:V,selectElementClass:N,disableHorizontalPadding:c})}),_.Q(_.p9,{when:function(){return A().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.Q(_.LK,{labelRenderable:function(){return _.Q(pO,null)},
isCompact:f,checked:function(){return A().isSelected},
hasLeadingLabel:function(){return!!x()},
labelClass:V,selectElementClass:N})}),_.Q(_.p9,{when:function(){return A().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.Q(_.LK,{labelRenderable:function(){return _.Q(pO,null)},
isCompact:f,checked:function(){return A().isSelected},
hasLeadingLabel:function(){return!!x()},
labelClass:V,selectElementClass:N,useCheckIcon:!0})}),_.Q(_.Bd,null,function(){return _.Q(pO,null)}))},
else:function(){return _.Q(pO,null)}}))},"Ec");
_.Ta.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var pKL=_.$c(function(K){var X=K.data;var F=K.hideSelectionTextChevron;var P=K.trailingAccessory;return _.Q(_.ID,null,_.Q(BiL,{data:X,isLeading:!0,hideSelectionTextChevron:function(){return!(F==null||!F())}}),_.Q(SqT,{data:X}),_.Q(_.p,{cond:function(){return!!P},
then:function(){return _.Q("div",{class:"yt-list-item-view-model-wiz__trailing"},P==null?void 0:P())},
else:function(){return _.Q(BiL,{data:X,isLeading:!1,hideSelectionTextChevron:function(){return!(F==null||!F())}})}}))},"Fc"),BiL=_.$c(function(K){var X=K.data;
var F=K.isLeading;var P=K.hideSelectionTextChevron;var H=_.HO("yt-list-item-view-model-wiz__button-container");K={};var f=_.HO("yt-list-item-view-model-wiz__image-container",(K["yt-list-item-view-model-wiz__leading"]=F,K["yt-list-item-view-model-wiz__trailing"]=function(){return!F()},K)),u=function(){return F()?X().leadingImage:X().trailingImage},J=_.HO("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
K={};var Z=_.HO("yt-list-item-view-model-wiz__accessory",(K["yt-list-item-view-model-wiz__leading"]=F,K["yt-list-item-view-model-wiz__trailing"]=function(){return!F()},K)),M=function(){a:switch(X().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var n="expand_more";
break a;default:n="chevron_right"}return n};
return _.Q(_.p,{cond:function(){var n=X(),c=F();return!!(c&&(n.leadingImage||n.leadingAccessory)||!c&&(n.trailingImage||n.trailingButton||n.trailingButtons||n.selectionText))},
then:function(){return _.Q(_.ID,null,_.Q(_.p,{cond:u,then:function(n){return _.Q("div",{class:f,"aria-hidden":"true"},_.Q(_.av,{data:n,alt:"",preserveWidth:!0,preserveHeight:!0,className:J}))}}),_.Q(_.p,{cond:function(){return F()&&X().leadingAccessory},
then:function(){return _.Q("div",{class:f},_.Q(_.Md,{data:function(){return X().leadingAccessory}},{avatarViewModel:function(n){return _.Q(_.BY,{data:n.data,
avatarButtonCustomClassName:J})},
collectionThumbnailViewModel:$wO}))}}),_.Q(_.p,{cond:function(){return!F()&&X().trailingButton},
then:function(){return _.Q("div",{class:H},_.Q(_.Md,{data:function(){return X().trailingButton}},{buttonViewModel:function(n){return _.Q(_.Af,{data:n.data,
className:Z})}}))}}),_.Q(_.p,{cond:function(){var n;
return!F()&&((n=X().trailingButtons)==null?void 0:n.buttons)},
then:function(){return _.Q("div",{class:H},_.Q(_.Md,{data:function(){var n;return(n=X().trailingButtons)==null?void 0:n.buttons}},{buttonViewModel:function(n){return _.Q(_.Af,{data:n.data,
className:Z})},
accountLinkButtonViewModel:function(n){return _.Q(eol,{data:n.data,className:function(){return Z()||""}})},
switchButtonViewModel:function(n){return _.Q(QoT,{data:n.data,className:Z})},
subscribeButtonViewModel:function(n){return _.Q(_.S1,{data:n.data,isOverlay:!1,animateWidth:!1,className:Z})},
toggleButtonViewModel:function(n){return _.Q(_.pS,{data:n.data,className:Z})}}))}}),_.Q(_.p,{cond:function(){return!F()&&!!X().selectionText},
then:function(){return _.Q(_.ID,null,_.Q(_.Oy,{text:function(){return X().selectionText},
className:_.HO("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.Q(_.p,{cond:function(){return!P()},
then:function(){return _.Q(_.ZF,{icon:M,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Gc"),SqT=_.$c(function(K){var X=K.data;
return _.Q(_.p,{cond:function(){return X().title||X().subtitle},
then:function(){return _.Q("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.Q("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.Q(_.p,{cond:function(){return X().title},
then:function(F){return _.Q(_.Oy,{text:F,className:"yt-list-item-view-model-wiz__title"})}})),_.Q(_.p,{cond:function(){return X().subtitle},
then:function(F){return _.Q(_.Oy,{text:F,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Hc");_.oIu=_.$c(function(K){var X=K.data;var F=K.onTap;var P=K.onSwitch;var H=K.overrideDisabled;K=K.disableHorizontalPadding;var f=_.D(_.qB(function(){var c;return((c=ZoP(n()))==null?void 0:c.switchedOnByDefault)||!1})),u=f.next().value,J=f.next().value;
f=_.D(_.u_(!1,void 0,"ZHBkbb"));var Z=f.next().value,M=f.next().value,n=function(){var c;if(!(c=X().switchButton)){var B=X();c=H==null?void 0:H();B={switchOnCommand:B.switchOnCommand,switchOffCommand:B.switchOffCommand,switchedOnByDefault:B.switchedOnByDefault,isDisabled:B.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:B.a11yLabelSwitchedOn,a11yLabelSwitchedOff:B.a11yLabelSwitchedOff};c!==void 0&&(B.isDisabled=c);c={switchButtonViewModel:B}}return c};
return _.Q("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.Q(_.Ta,{data:function(){return{title:X().title,subtitle:X().attributedSubtitle,leadingImage:X().leadingImage,leadingAccessory:X().leadingAccessory,isDisabled:X().isDisabled}},
onTap:function(c){var B=ZoP(n());!B||B.isDisabled||X().ignoreTapUntilCommandCompletes&&Z()||(F==null||F(c),qCw(B,u(),c,X().ignoreTapUntilCommandCompletes,M),J(!u()),P==null||P(u()))},
trailingAccessory:function(){return _.Q(_.Md,{data:n},{switchButtonViewModel:function(c){return _.Q(QoT,{data:c.data,parentActive:u,handleOnTapEventInParent:!!F})}})},
disableHorizontalPadding:K}))},"Ic");var LuQ=_.$c(function(K){var X=_.t_(),F=_.D(_.qB(function(){var f,u;return!!((f=K.data())==null?0:(u=f.initialState)==null?0:u.isToggled)})),P=F.next().value,H=F.next().value;
_.m_(X,function(){return K.data().rendererContext});
return _.Q("toggleable-list-item-view-model",{el:X,class:_.HO("toggleableListItemViewModelHost",K.className),"on:click":_.DF(function(){H(!P())})},_.Q(_.p,{cond:P,
then:function(){return _.Q(_.Md,{data:function(){return K.data().toggledListItem}},{listItemViewModel:_.Ta})},
else:function(){return _.Q(_.Md,{data:function(){return K.data().defaultListItem}},{listItemViewModel:_.Ta})}}))},"Jc");var TiC=_.uY("DOWNLOAD",{},"Download"),rOL=_.uY("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),AOT=_.uY("RETRY",{},"Retry"),jot=_.uY("PAUSE_DOWNLOADING",{},"Pause downloading"),wKO=_.uY("RESUME_DOWNLOAD",{},"Resume download"),YCl={text:TiC,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},on={text:rOL,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},nTl={text:AOT,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
QHP={text:jot,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},Mfq={text:wKO,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var yON=_.$c(function(K){var X=function(){var J=K.data();J=_.Uy(J.rendererContext);var Z;return(Z=_.T(J,_.Xj))==null?void 0:Z.videoId},F=_.rn(function(J){var Z=X(),M=BOw(K.data());
return Z?_.rI(J,Z):M?_.A7(J,M):"TRANSFER_STATE_UNKNOWN"}),P=_.sy(_.d2P,X),H=_.rn(function(J){return _.rpO(J,X(),BOw(K.data()))}),f=function(){return ptd(F(),P(),_.Uy(K.data().rendererContext),!!BOw(K.data()))},u=function(){return H()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.Q("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:u},_.Q(_.p,{cond:function(){return!u()},
then:function(){return _.Q(_.p,{cond:f,then:function(J){return _.Q(_.cd,{each:J},function(Z){return _.Q(_.Ta,{data:Z,isCompact:K.isCompact,isMenuItem:K.isMenuItem,inPopup:K.inPopup,disableHorizontalPadding:K.disableHorizontalPadding})})}})}}))},"Kc");
yON.idomCompat=!0;_.WuN=_.$c(function(K){var X=K.data;var F=K.isCompact;var P=K.hideSelectionTextChevron;var H=K.inPopup;var f=K.isOverlay;var u=K.disableHorizontalPadding;var J=function(){return SCP(X())&&(H==null?void 0:H())};
K={};return _.Q("yt-list-view-model",{class:_.HO("yt-list-view-model-wiz",(K["yt-list-view-model-wiz--kaios-spat-nav"]=cJy&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",K)),role:function(){return J()?"menu":"list"},
style:_.Je({"max-height":function(){var Z,M=(Z=X())==null?void 0:Z.visibleElementCount;if(M)return Lp9(X())?(M+.5)*48+"px":(M+.5)*40+"px"}})},_.Q(_.Md,{data:function(){return X().listItems}},{listItemViewModel:function(Z){return _.Q(_.Ta,{data:Z.data,
isMenuItem:J,isCompact:F,hideSelectionTextChevron:P,inPopup:H,isOverlay:f,disableHorizontalPadding:u})},
toggleableListItemViewModel:function(Z){return _.Q(LuQ,{data:Z.data})},
downloadListItemViewModel:function(Z){return _.Q(yON,{data:Z.data,isMenuItem:J,isCompact:F,inPopup:H,disableHorizontalPadding:u})},
switchListItemViewModel:function(Z){return _.Q(_.oIu,{data:Z.data,disableHorizontalPadding:u})}}))},"Lc");
_.WuN.idomCompat=!0;var dPu=_.$c(function(K){var X=K.data;var F=K.isOverlay;K={};return _.Q("yt-course-perks-view-model",{class:_.HO("ytwCoursePerksViewModelHost",(K.ytwCoursePerksViewModelHostOverlay=F,K))},_.Q("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.Q(_.Oy,{text:function(){return X().title}})),_.Q("div",null,_.Q(_.p,{cond:function(){return X().perks},
then:function(P){return _.Q(_.WuN,{data:function(){return{listItems:P()}},
isCompact:!0,isOverlay:F})}})))},"Mc");_.EP(dPu,"yt-course-perks-view-model",{props:{data:_.g$,isOverlay:_.g$}});_.EP(_.$c(function(K){var X=K.data;return _.Q("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.Q("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.Q(_.Oy,{text:function(){return X().title}})),_.Q("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.Q(_.Oy,{text:function(){return X().progressSummary}})),_.Q("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.Q("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.Je({width:function(){return X().progressPercentage*100+"%"}})})))},"Nc"),"yt-course-progress-view-model",{props:{data:_.vU}});var exu=_.$c(function(K){var X={};return _.Q("yt-progress-view-model",{class:_.HO("ytwProgressViewModelHost",(X.ytwProgressViewModelHostOverlay=_.ag(K.isOverlay,!1),X))},_.Q(_.p,{cond:function(){return K.data().progressSummary},
then:function(F){return _.Q("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.Q(_.Oy,{text:F}))}}),_.Q("div",{class:"ytwProgressViewModelHostProgressContainer"},_.Q(_.p,{cond:function(){return K.data().leadingLabel},
then:function(F){return _.Q("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.Q(_.Oy,{text:F}))}}),_.Q("div",{class:"ytwProgressViewModelHostProgressBar"},_.Q("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(K.data().progressPercentage||0)*100+"%"}}))))},"Oc");var rT=_.$c(function(K){var X=K.starNumber;var F=K.data;var P=function(){var H;return((H=F())==null?void 0:H.rating)||0};
return _.Q(_.p,{cond:function(){return X()},
then:function(H){return _.Q(_.S8,null,_.Q(_.p9,{when:function(){return P()>=H()-.25}},function(){return _.Q("div",{class:"ytStarRatingViewModelHostStar"},_.Q(_.ZF,{icon:"STAR_FILLED"}))}),_.Q(_.p9,{when:function(){return P()>=H()-.75}},function(){return _.Q("div",{class:"ytStarRatingViewModelHostStar"},_.Q(_.ZF,{icon:"STAR_HALF"}))}),_.Q(_.Bd,null,function(){return _.Q("div",{class:"ytStarRatingViewModelHostStar"},_.Q(_.ZF,{icon:"STAR_BORDER"}))}))}})},"Pc"),RxO=_.$c(function(K){K=K.data;
return _.Q("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.Q(rT,{starNumber:1,data:K}),_.Q(rT,{starNumber:2,data:K}),_.Q(rT,{starNumber:3,data:K}),_.Q(rT,{starNumber:4,data:K}),_.Q(rT,{starNumber:5,data:K}))},"Qc");_.EP(_.$c(function(K){var X=_.tA(K,{}).data;return _.Q("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.Q("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.Q(_.Oy,{text:function(){var F;return(F=X())==null?void 0:F.title}})),_.Q("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.Q(_.p,{cond:function(){return X().starProgressViewModels},
then:function(F){return _.Q("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.Q(_.Md,{data:F},{progressViewModel:exu}))}}),_.Q("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.Q("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.Q(_.Oy,{text:function(){var F;
return(F=X())==null?void 0:F.averageRatingLabel}})),_.Q(_.p,{cond:function(){return X().zeroStateText},
then:function(F){return _.Q("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.Q(_.Oy,{text:F}))}}),_.Q(_.p,{cond:function(){return X().starRatingViewModel},
then:function(F){return _.Q("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.Q(_.Md,{data:F},{starRatingViewModel:RxO}))}}),_.Q("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.Q(_.Oy,{text:function(){var F;
return(F=X())==null?void 0:F.totalRatingsCountLabel}})))))},"Rc"),"yt-course-ratings-view-model",{props:{data:_.g$}});var UPN;UPN={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}};_.hxZ=_.$c(function(K){var X=_.t_(),F=_.kf();_.Tr(function(){requestAnimationFrame(function(){var H;(H=F.lottieEl)==null||H.addEventListener("DOMLoaded",function(){var f;(f=K.onLottieLoaded)==null||f.call(K)})});
var P=K.data().browseEndpoint;P&&_.e9(P)});
return _.Q("yt-learning-journey-loader-view-model",{class:_.HO("learningJourneyLoaderViewModelHost",K.className),"data-target-id":function(){var P;return((P=K.data)==null?void 0:P.call(K).targetId)||""},
el:X},_.Q(_.se,{className:_.HO("learningJourneyLoaderViewModelLoader",K.className),animationName:function(){return UPN.animationConfig.name},
data:UPN,animationRef:F}))},"Sc");_.EP(_.hxZ,"yt-learning-journey-loader-view-model",{props:{data:_.vU,className:_.g$,onLottieLoaded:_.g$}});_.mPC=_.$c(function(K){var X=function(){return K.data()},F=_.D(_.u_(-1,void 0,"vug48")),P=F.next().value,H=F.next().value,f=function(n){return P()===n},u=function(n){return X().correctAnswerIndex===n},J=function(){return P()!==-1},Z=function(){return P()===X().correctAnswerIndex},M=_.DF(function(){H(-1);
return!1});
return _.Q("learning-journey-quiz-view-model",{class:_.HO("learningJourneyQuizViewModelHost",K.className),style:_.Je({background:function(){return rM(Lj(X())).backgroundColor}})},_.Q(_.p,{cond:function(){return!!X().video},
then:function(){return _.Q("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.Je({background:function(){return rM(Lj(X())).videoBackgroundColor}})},_.Q(_.Md,{data:function(){return X().video}},{lockupViewModel:function(n){return _.Q(_.iJ,{data:n.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.Q("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.Q("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.Q("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.Q("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.Je({"align-items":function(){return X().overflowMenu?"start":"center"}})},_.Q("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.Je({"min-height":function(){return X().overflowMenu?"48px":"26px"}})},_.Q("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.Je({color:function(){return rM(Lj(X())).primaryTextColor}}),
"client-ve-type":function(){var n=J(),c=Z();return n?c?264685:264684:264683}},_.Q(_.Oy,{text:function(){var n=X(),c=J(),B=Z();
return c?B?n.successTitle:n.failureTitle:n.questionHeaderText}}))),_.Q("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.Q(_.p,{cond:J,
then:function(){return _.Q("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":M,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.Q("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.Je({fill:function(){return rM(Lj(X())).primaryTextColor}})},_.Q("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"})))}}),
_.Q(_.Md,{data:function(){return X().overflowMenu}},{buttonViewModel:function(n){return _.Q(_.Af,{data:n.data})}}))),_.Q("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.Je({color:function(){return rM(Lj(X())).secondaryTextColor}}),
"client-ve-type":264688},_.Q(_.Oy,{text:function(){var n=X();return J()?n.explanationText:n.questionSubheaderText}}))),_.Q("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.Q(_.cd,{each:function(){return X().optionsData||[]}},function(n,c){var B={};
return _.Q("div",{class:_.HO("learningJourneyQuizViewModelHostQuizOptions",(B.learningJourneyQuizViewModelHostQuizHover=function(){return!J()},B.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return Z()&&f(c())},B.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!Z()&&f(c())},B.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return J()&&!f(c())},B)),
"on:click":_.DF(function(){if(J())return!1;H(c());return!1}),
style:_.Je({background:function(){return J()&&f(c())?"":rM(Lj(X())).optionColor}}),
role:"button","aria-disabled":J,"tab-index":"0","client-ve-type":264686},_.Q(_.p,{cond:J,then:function(){return _.Q("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var L=c();return u(L)?"0 0 24 24":"0 -960 960 960"},
class:"learningJourneyQuizViewModelHostQuizOptionIcon",style:_.Je({fill:function(){return rM(Lj(X())).primaryTextColor}})},_.Q("path",{d:function(){var L=c();
return u(L)?"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"}}))}}),_.Q(_.Oy,{text:n.optionText}))})))))},"Tc");
_.mPC.idomCompat=!0;_.EP(_.mPC,"learning-journey-quiz-view-model",{props:{data:_.vU,className:_.vU}});var GNL=_.$c(function(K){var X=_.t_();_.m_(X,function(){return K.data().rendererContext});
var F=_.tA(K,{palette:void 0,isLastItem:!1}),P=F.palette,H=F.isLastItem,f=function(){return K.data().isHighlighted},u=function(){var M;
return TOl((M=P())==null?void 0:M.iconDisabledColor)},J=function(){var M;
return TOl((M=P())==null?void 0:M.primaryTitleColor)},Z=function(){var M;
return TOl((M=P())==null?void 0:M.secondaryTitleColor)};
F={};return _.Q("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:X},_.Q(_.Md,{data:function(){return K.data().thumbnail}},{thumbnailViewModel:_.$$}),_.Q("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.Q("div",{class:_.HO("ytMacroMarkerListItemViewModelTimeDescription",(F.ytMacroMarkerListItemViewModelHighlighted=f,F)),
style:_.Je({"background-color":function(){return f()?J():u()},
color:function(){return f()?"":Z()}})},_.Q(_.Oy,{text:function(){return K.data().timestamp}})),_.Q("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.Je({"background-color":function(){return H()?"transparent":u()}})}),_.Q("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(f()?J():Z())}},_.Q(_.Oy,{text:function(){return K.data().title}}))))},"Uc");_.Au=_.$c(function(K){function X(uu){l("transform:translateX("+(_.e8("HTML_DIR")==="rtl"?"":"-")+uu+"px)")}
function F(uu){return Math.min(Math.max(uu,0),R()-N())}
function P(){var uu=V()+y9();return H()?(Math.round(N()/uu)||1)*uu:0}
var H=function(){return K.data().items||[]},f=function(){return K.data().previousButton},u=function(){return K.data().nextButton},J=function(){var uu,X8;
return(X8=(uu=K.disableArrows)==null?void 0:uu.call(K))!=null?X8:!1},Z=function(){var uu;
return!((uu=K.forceNarrowLayout)==null||!uu.call(K))},M=_.t_(),n=_.t_(),c=_.D(_.u_(0,void 0,"D4aXB")),B=c.next().value,L=c.next().value;
c=_.D(_.u_(0,void 0,"GQlHRc"));var A=c.next().value,d=c.next().value,R=A;A=_.D(_.u_("",void 0,"Bw1Yz"));c=A.next().value;var l=A.next().value;A=_.D(_.u_(0,void 0,"buTjVb"));var a=A.next().value,E=A.next().value,V=a;A=_.D(_.u_(0,void 0,"GIAWN"));a=A.next().value;var x=A.next().value,N=a;A=_.D(_.u_(!1,void 0,"cenvwc"));var Dl=A.next().value,Mq=A.next().value;A=_.D(_.u_(0,void 0,"LSY2Ub"));a=A.next().value;var pO=A.next().value,y9=a;A=_.D(_.u_(0,void 0,"oS46jc"));var Wy=A.next().value,eP=A.next().value,
gw=function(){var uu,X8=(uu=K.data())==null?void 0:uu.responsiveContainerConfiguration,qV,J0;return X8?KBy(X8==null?void 0:X8.responsiveSize):(J0=(qV=K.sizing)==null?void 0:qV.call(K))!=null?J0:"STANDARD"};
A=_.Qs(function(){return!J()&&B()>0},void 0,"KINjJe");
a=_.Qs(function(){return!J()&&B()<R()-N()},void 0,"Ea00Ib");
var a3=function(){L(F(B()-P()));X(B())},dL=function(){L(F(B()+P()));
X(B())},nt=function(){M.value!==null&&YC()},ht;
_.AV(function(){YC();window.ResizeObserver?(ht=new ResizeObserver(_.Dn(nt,0)),ht.observe(M.value)):window.addEventListener("resize",nt)});
_.AZ(function(){if(window.ResizeObserver){var uu;(uu=ht)==null||uu.disconnect()}else window.removeEventListener("resize",nt)});
var YC=function(){var uu=M.value.clientWidth,X8=K.includeMargin!==void 0?K.includeMargin():!1,qV;var J0=K.hasPeek!==void 0?K.hasPeek():!((qV=K.data())==null||!qV.hasPeek);uu=_.ak({containerWidth:uu,hasPeek:J0,sizing:gw(),marginSettings:X8?Z()?4:1:0});pO(uu.gutter);eP(uu.margin);E(uu.itemWidth);Mq(uu.maxContainerWidth<528||Z());x(uu.maxContainerWidth);H()&&d((uu.itemWidth+uu.gutter)*H().length-uu.gutter)};
return _.Q("horizontal-shelf-view-model",{class:_.HO("ytwHorizontalShelfViewModelHost",K.className),el:M},_.Q(_.p,{cond:function(){var uu;return K.data().header&&!((uu=K.horizontalShelfExperiments)==null?0:uu.call(K).hideHeader)},
then:function(){return _.Q("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.Je({width:function(){return N()+"px"},
padding:function(){return"0 "+Wy()+"px"}})},_.Q(_.Md,{data:function(){return K.data().header}},{sectionHeaderViewModel:function(uu){return _.Q(_.XZ,{data:uu.data,
disableHorizontalPadding:!0,forceSmallLayout:Dl,useResponsiveLayout:!0})}}))}}),_.Q("div",{class:"ytwHorizontalShelfViewModelOuterContainer",
style:_.Je({"margin-top":function(){var uu,X8=K.data().header&&!((uu=K.horizontalShelfExperiments)==null?0:uu.call(K).hideHeader),qV;return(((qV=K.ensureMarginTop)==null?0:qV.call(K))&&!X8?12:0)+"px"}})},_.Q("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.Je({width:function(){return N()+"px"},
padding:function(){return"0 "+Wy()+"px"},
overflow:function(){return J()?"auto":"hidden"}})},_.Q("div",{class:"ytwHorizontalShelfViewModelItems",
el:n,style:c},_.Q(_.Md,{data:H},{macroMarkerListItemViewModel:function(uu,X8){return _.Q("div",{style:_.Je({width:function(){return V()+"px"},
"margin-right":function(){return(X8()===H().length-1?0:y9())+"px"}})},_.Q(GNL,{data:uu.data,
palette:_.ag(K.palette),isLastItem:function(){return X8()===H().length-1}}))},
lockupViewModel:function(uu,X8){var qV=uu.data;return _.Q("div",{style:_.Je({width:function(){return V()+"px"},
"margin-right":function(){return(X8()===H().length-1?0:y9())+"px"}})},_.Q(_.iJ,{data:qV,
containerType:4,sizing:gw,protectBackground:K.protectBackground,thumbnailFixedWidth:function(){return r$T(qV())+"px"},
thumbnailTargetWidth:function(){return r$T(qV())}}))}}))),_.Q(_.p,{cond:A,
then:function(){return _.Q("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.Q(_.Md,{data:f},{buttonViewModel:function(uu){return _.Q(_.Af,{data:uu.data,onClick:a3})}}))}}),_.Q(_.p,{cond:a,
then:function(){return _.Q("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.Q(_.Md,{data:u},{buttonViewModel:function(uu){return _.Q(_.Af,{data:uu.data,onClick:dL})}}))}})))},"Vc");
_.Au.idomCompat=!0;var lUL=_.$c(function(K){var X=function(){return K.data().targetId||""},F=function(){var A;
return((A=K.data())==null?void 0:A.expansionEntityKey)||""},P=_.sy(_.CIy,F),H=!0,f=function(){var A;
return((A=P())==null?void 0:A.value)===X()},u=function(A){_.vc(_.zl("stringEntity",F(),{key:F(),
value:A?X():""}))};
_.Tr(function(){H=!1;K.data().isExpanded&&u(!0)});
var J=function(){if(f()){var A=!0;K.onCollapse!==void 0&&(A=K.onCollapse());A&&u(!1)}else u(!0)},Z=_.DF(J),M=function(){var A;
return(((A=K.accordionStyle)==null?void 0:A.call(K))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},n=_.t_(),c=function(){var A,d;
return(d=(A=_.T(K.data().rendererContext,_.Jp))==null?void 0:A.label)!=null?d:""},B={},L={};
return _.Q("yt-accordion-item-view-model",{class:_.HO("ytAccordionItemViewModelHost",K.className,(B.ytAccordionItemViewModelExpanded=function(){return f()},B.ytAccordionItemViewModelHidden=function(){var A;
return(A=K.hideIfNotExpanded)==null?void 0:A.call(K)},B.ytAccordionItemViewModelMini=M,B)),
"data-target-id":X},_.Q("div",{class:"ytAccordionItemViewModelContainer"},_.Q("div",{class:"ytAccordionItemViewModelLeftSection","on:click":Z,title:c},_.Q(_.Oy,{text:function(){return K.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:c})),_.Q("div",{class:"ytAccordionItemViewModelRightSection"},_.Q(_.Md,{data:function(){return f()?K.data().expandButton:K.data().collapseButton}},{buttonViewModel:function(A){return _.Q(_.Af,{data:A.data,
className:"ytAccordionItemViewModelToggleButton",onClick:J})}}))),_.Q("div",{class:"ytAccordionItemViewModelContainer"},_.Q("div",{class:_.HO("ytAccordionItemViewModelContent",(L.ytAccordionItemViewModelExpandedSubtitle=function(){return f()},L)),
el:n,style:_.Je({"max-height":function(){return H?"auto":f()?n.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!f()}},_.Q(_.p,{cond:function(){return!M()},
then:function(){return _.Q(_.Oy,{text:function(){return K.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.Q(_.Md,{data:function(){return K.data().content}},{horizontalShelfViewModel:function(A){return _.Q(_.Au,{data:A.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Wc");_.vIE=_.$c(function(K){var X=_.D((0,_.Y0U)(K.data)).next().value,F=function(){return K.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},P=function(){return F()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},H=_.D(_.u_(!0,void 0,"FVec2e")),f=H.next().value,u=H.next().value,J=function(){return P()&&f()},Z=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){u(!f())}}},M=_.DF(function(){X().onTitleTap&&_.e9(X().onTitleTap||{})});
H={};return _.Q("yt-accordion-view-model",{class:_.HO("ytAccordionViewModelHost",(H.ytAccordionViewModelMinimized=function(){return J()},H)),
"data-target-id":function(){return K.data().targetId||""}},_.Q(_.p,{cond:function(){return P()||!!X().title},
then:function(){return _.Q("div",{class:"ytAccordionViewModelHeader"},_.Q("div",{class:"ytAccordionViewModelTitleSection"},_.Q("div",{class:"ytAccordionViewModelTitleWrapper"},_.Q(_.p,{cond:function(){return!!K.data().headerIcon},
then:function(){return _.Q(_.ZF,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var n;return(n=K.data().headerIcon)==null?void 0:n.iconType}})}}),_.Q("div",{class:"ytAccordionViewModelTitle",
"on:click":M},_.Q(_.Oy,{className:"ytAccordionViewModelTitleText",text:function(){return X().title}})))),_.Q("div",{class:"ytAccordionViewModelButtonSection"},_.Q(_.p,{cond:P,
then:function(){return _.Q(gV,{data:Z,iconName:function(){return J()?"chevron_down":"chevron_collapse"}})}})))}}),_.Q("div",{class:"ytAccordionViewModelContent"},_.Q(_.Md,{data:function(){return X().contents}},{accordionItemViewModel:function(n){return _.Q(lUL,{data:n.data,
className:"ytAccordionViewModelRow",accordionStyle:F,hideIfNotExpanded:J,onCollapse:function(){return P()?(u(!0),!1):!0}})}})),_.Q("div",null,_.Q(_.p,{cond:function(){return!P()&&(!!X().disclaimerFooter||!!X().footer)},
then:function(){return _.Q("div",{class:"ytAccordionViewModelFooter"},_.Q(_.Oy,{text:function(){return X().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.Q(_.Md,{data:function(){return K.data().footer}},{flexibleActionsViewModel:function(n){return _.Q(Lf,{data:n.data,
layout:0})}}))}})))},"Xc");_.EP(_.vIE,"yt-accordion-view-model",{props:{data:_.vU}});_.EP(_.$c(function(K){var X,F=(X=_.i9().resolve(_.Nu(_.m$)))==null?void 0:X(),P=_.D(_.u_(!1,void 0,"BxguL"));X=P.next().value;var H=P.next().value;P=_.D(_.u_(!0,void 0,"WTCeFf"));var f=P.next().value,u=P.next().value,J=_.t_(),Z=function(A){H(!0);A={learningJourneyFormData:{query:A}};_.e9(K.data().searchEndpoint||{},{form:{formData:A}});return!1},M=_.DF(function(A){A.target.closest("button-view-model")&&H(!0)});
P=_.DF(function(){u(J.value.value.length===0)});
var n=_.DF(function(A){if(A.key==="Enter"&&!A.shiftKey&&!f()){var d=A.target;A.preventDefault();Z(d.value)}}),c={},B={},L={};
return _.Q("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.Q("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.Q(_.av,{data:function(){return K.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.Q("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.Q("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.Q("div",{class:_.HO("ytLearningJourneyZeroStateSearchBar",(c.ytLearningJourneyZeroStateSearchBarDark=F,c))},_.Q("textarea",{class:_.HO("ytLearningJourneyZeroStateTextInput",(B.ytLearningJourneyZeroStateTextInputDark=F,B)),el:J,"on:keyup":P,"on:keydown":n,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.Q("div",{class:_.HO("ytLearningJourneyZeroStateSearchButtonContainer",(L.ytLearningJourneyZeroStateSearchButtonContainerDark=F,L))},_.Q(_.Af,{data:function(){return _.T(K.data().searchButton,_.nS)},
className:"search-button",onClick:function(){return Z(J.value.value)},
buttonOverrides:function(){return{disabled:f(),style:F?"mono-inverse":"mono",size:"XL"}}}))),_.Q(_.p,{cond:function(){return!!K.data().errorBanner},
then:function(){return _.Q("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer"},_.Q(_.Md,{data:function(){return K.data().errorBanner}},{alertBannerViewModel:function(A){return _.Q(_.JOZ,{data:A.data,
"client-ve-type":264617})}}))}})),_.Q(_.p,{cond:X,
then:function(){return _.Q("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.Q(_.Md,{data:function(){return K.data().loader}},{learningJourneyLoaderViewModel:function(A){return _.Q(_.hxZ,{data:A.data})}}))},
else:function(){return _.Q("div",null,_.Q(_.p,{cond:function(){return!!K.data().learningJourneyShelf},
then:function(){return _.Q("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.Q("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return K.data().learningJourneySectionTitle}),_.Q(_.Md,{data:function(){return K.data().learningJourneyShelf}},{horizontalShelfViewModel:_.Au}))}}),_.Q("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.Q("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return K.data().suggestedJourneySectionTitle}),
_.Q("div",{"on:click":M},_.Q(_.Md,{data:function(){return K.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(A){return _.Q(Lf,{data:A.data,
layout:1})}}))))}}))},"Yc"),"yt-learning-journey-zero-state",{props:{data:_.vU}});var aUT=_.$c(function(K){var X=K.data;return _.Q("ytvl-live-leaderboard-item-action-content-view-model",{class:_.HO("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.Q(_.Oy,{text:function(){var F;return(F=X())==null?void 0:F.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.Q(_.Md,{data:function(){return X().actionButton}},{buttonViewModel:function(F){return _.Q(_.Af,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:F.data})}}))},"Zc");var tBL=_.$c(function(K){var X=K.data;return _.Q("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.HO("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.Q(_.Oy,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var F;return(F=X())==null?void 0:F.displayName},
ellipsisTruncate:!0}),_.Q(_.Md,{data:function(){return X().badge}},{buttonViewModel:function(F){return _.Q(_.Af,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:F.data})}}))},"$c");_.EP(_.$c(function(K){var X=K.data;return _.Q("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.Q("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.Q(_.Oy,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var F;return(F=X())==null?void 0:F.rank}})),_.Q("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.Q(_.Md,{data:function(){return X().avatar}},{avatarViewModel:_.BY})),_.Q("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.Q(_.Md,{data:function(){return X().content}},{liveLeaderboardItemChannelContentViewModel:tBL,
liveLeaderboardItemActionContentViewModel:aUT})),_.Q(_.Oy,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var F;return(F=X())==null?void 0:F.points}}))},"ad"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.vU}});_.EP(_.$c(function(K){var X=K.data;return _.Q("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.Q(_.Oy,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var F,P;return(F=X())==null?void 0:(P=F.ranking)==null?void 0:P.rank}}),_.Q("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.Q(_.Md,{data:function(){return X().avatar}},{avatarViewModel:_.BY})),_.Q(_.Oy,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var F,P;return(F=X())==null?void 0:(P=F.channelContent)==null?void 0:P.channelName}}),_.Q(_.Oy,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var F;return(F=X())==null?void 0:F.points}}))},"bd"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.vU}});var $PL=_.$c(function(K){K=_.tA(K,{wrapper:!1}).wrapper;return _.Q(_.p,{cond:K,then:function(){return _.Q("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.Q("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.Q("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"cd");
$PL.idomCompat=!0;var O6u=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],VBO=_.$c(function(K){var X=K.data;var F=_.t_(),P=_.Qs(function(){return X().command},void 0,"tJY20c");
_.rs(function(){P()&&_.yB(P(),{form:{element:F.value}})},"qs6Sof");
return _.Q("div",{el:F,class:"YtQrCodeRendererHostContainer"},_.Q(_.p,{cond:function(){return X().qrCodeImage},
then:function(H){return _.Q(_.av,{data:H,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.Q(_.p,{cond:function(){return X().spinner},
then:function(){return _.Q($PL,null)}})}}),_.Q(_.p,{cond:function(){return X().label},
then:function(H){return _.Q(_.Oy,{text:H,className:"YtQrCodeRendererHostLabel"})}}),_.Q(_.p,{cond:function(){return X().labels},
then:function(H){return _.Q("div",{class:"YtQrCodeRendererHostLabels"},_.Q(_.cd,{each:H},function(f){return _.Q(_.Oy,{text:f})}))}}))},"ed");_.EP(_.$c(function(K){var X=K.data;var F=_.Qs(function(){return X().qrEntityKey},void 0,"joYCxd"),P=_.Qs(function(){return X().deleteEntityOnDismiss},void 0,"x3yAde"),H=_.Qs(function(){return X().command},void 0,"dJe1Re"),f=_.sy(rRM,F);
K=_.Qs(function(){return X().qrCodeImage},void 0,"qM5dZe");
var u=_.Qs(function(){return X().style&&O6u.includes(X().style)},void 0,"CaNEkf"),J=_.t_();
_.NF(J,{visibilityCallback:function(Z){Z&&H()&&_.yB(H())},
showOption:{calledOnce:!0,state:"visible"}});_.AV(function(){_.AZ(function(){P()&&F()&&_.Gb().dispatch(_.zl("qrCodeEntity",F()))})});
return _.Q("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:J},_.Q(_.p,{cond:u,then:function(){return _.Q(_.p,{cond:f,then:function(Z){return _.Q(VBO,{data:Z})}})}}),_.Q(_.p,{cond:K,
then:function(Z){return _.Q(_.av,{data:Z,alt:""})}}))},"dd"),"yt-qr-code-renderer",{props:{data:_.vU}});_.gIC=_.$c(function(K){var X=K.data;var F=K.topbarOffset;var P,H=((P=_.i9().resolve(_.Nu(_.m$)))==null?void 0:P())||!1;return _.Q("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var f=X();var u,J,Z=H?(u=f.config)==null?void 0:u.darkThemeBackgroundColor:(J=f.config)==null?void 0:J.lightThemeBackgroundColor;f=Z?_.j0(Z):void 0;f="background-color: "+f+";";F!==void 0&&(f+="top: -"+F()+"px;");return f},
"aria-hidden":!0},_.Q(_.p,{cond:function(){var f,u,J;return!!((f=X().backgroundImageConfig)==null?0:(u=f.image)==null?0:(J=u.sources)==null?0:J.length)},
then:function(){return _.Q(_.av,{data:function(){var f;return(f=X().backgroundImageConfig)==null?void 0:f.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.Q("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+A$q(H,X().gradientColorConfig)+";"}}))},"fd");
_.gIC.idomCompat=!0;var jK=_.$c(function(K){var X=K.className;var F=K.data;var P=K.isOverlay;var H=K.maxLinesOverride;var f=K.useMediumText;K=_.t_();var u=function(){return F().alwaysShowTruncationText},J=function(){return F().truncationText},Z=function(){return f!==void 0&&f()?"medium":"small"},M=function(){return P!==void 0&&P()?"overlay":"default"},n=function(){var d,R;
return(R=(d=_.T(F().rendererContext,_.Jp))==null?void 0:d.label)!=null?R:""},c=_.D(_.u_(!1,void 0,"mkuWzb")),B=c.next().value,L=c.next().value;
_.m_(K,function(){return F().rendererContext});
c=_.DF(function(){F().expandOnTap&&L(!B());return!1});
var A={};return _.Q("yt-description-preview-view-model",{el:K,class:_.HO("yt-description-preview-view-model-wiz",X,(A["yt-description-preview-view-model-wiz--clickable"]=function(){var d;return!((d=_.T(F().rendererContext,DJl))==null||!d.onTap)},A["yt-description-preview-view-model-wiz--is-overlay"]=P,A)),
"on:click":c},_.Q(_.p,{cond:function(){return F().description},
then:function(d){return _.Q(_.p,{cond:B,then:function(){var R={};return _.Q("div",{class:_.HO("yt-description-preview-view-model-wiz__description",(R["yt-description-preview-view-model-wiz__description--medium-text"]=f,R))},_.Q(_.Oy,{text:d}))},
else:function(){return _.Q(MlL,{text:d,alwaysShowTruncationText:u,truncationText:J,maxLines:function(){var R;return(R=H==null?void 0:H())!=null?R:F().maxLines},
textStyle:M,accessibilityLabel:n,textSize:Z})}})}}))},"gd");
jK.idomCompat=!0;var EIZ=_.$c(function(K){var X=K.data;var F=K.isOverlay;return _.Q("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.Q("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.Q(_.Md,{data:function(){return X().header}},{sectionHeaderViewModel:function(P){return _.Q(_.XZ,{data:P.data,
isOverlay:F})}})),_.Q("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.Q(_.Md,{data:function(){return X().channelInfoButtons}},{flexibleActionsViewModel:Lf})),_.Q("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.Q(_.Md,{data:function(){return X().description}},{descriptionPreviewViewModel:function(P){return _.Q(jK,{data:P.data,
isOverlay:F})}})))},"hd");
EIZ.idomCompat=!0;var b6N=_.$c(function(K){var X=K.data;var F={};return _.Q("factoid-view-model",{class:_.HO("ytwFactoidViewModelHost",(F.ytwFactoidViewModelHostOverlay=K.isOverlay,F))},_.Q(_.Oy,{text:function(){return X().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.Q(_.Oy,{text:function(){return X().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"id");
b6N.idomCompat=!0;var CnV=_.$c(function(K){var X=K.data;var F=K.isOverlay;return _.Q("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.Q(_.Md,{data:function(){return X().factoids}},{factoidViewModel:function(P){return _.Q(b6N,{data:P.data,
isOverlay:F})}}))},"jd");
CnV.idomCompat=!0;_.Nit=_.$c(function(K){var X=K.data;var F=K.isOverlay;return _.Q("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.Q(_.Md,{data:function(){return X().items}},{channelInfoViewModel:function(P){return _.Q("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Q(EIZ,{data:P.data,
isOverlay:F}))},
coursePerksViewModel:function(P){return _.Q("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Q(dPu,{data:P.data,isOverlay:F}))},
descriptionPreviewViewModel:function(P){return _.Q("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Q(jK,{data:P.data,isOverlay:F}))},
factoidsRowViewModel:function(P){return _.Q("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Q(CnV,{data:P.data,isOverlay:F}))},
progressViewModel:function(P){return _.Q("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Q(exu,{data:P.data,isOverlay:F}))}}))},"kd");var i6L=_.$c(function(K){return _.Q("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.Q(_.Md,{data:function(){return K.data().content}},{courseMetadataViewModel:function(X){return _.Q(_.Nit,{data:X.data,
isOverlay:K.isOverlay})},
progressViewModel:function(X){return _.Q(exu,{data:X.data})}}))},"ld");var xPC=_.$c(function(K){var X=K.data;K=K.className;var F=_.t_(),P=function(){var f;return _.hf((f=X())==null?void 0:f.rendererContext)},H={};
H=(H["dynamic-text-view-model-wiz"]=!0,H["dynamic-text-view-model-wiz--tappable"]=function(){return P()},H);
_.m_(F,function(){var f;return(f=X())==null?void 0:f.rendererContext});
return _.Q("yt-dynamic-text-view-model",{el:F,role:function(){return P()?"link":void 0},
tabindex:function(){return P()?0:void 0},
class:_.HO(K,H)},_.Q("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var f,u,J;return(J=(u=_.T((f=X())==null?void 0:f.rendererContext,_.Jp))==null?void 0:u.label)!=null?J:""}},_.Q(_.Oy,{text:function(){return X().text},
userInput:!0})))},"md");
xPC.idomCompat=!0;_.IUZ=_.$c(function(K){var X=K.data;var F=K.isPositionRelative;var P=_.$3(),H=_.wtn("(max-width: 527.9px)"),f=function(){var u,J;return(J=(u=X())==null?void 0:u.style)!=null?J:"IMAGE_BANNER_STYLE_FULL_BLEED"};
K={};K=(K["yt-image-banner-view-model-wiz"]=!0,K["yt-image-banner-view-model-wiz--inset"]=function(){return y$9(f())},K["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.ws(!0)&&!(F==null?0:F())},K["yt-image-banner-view-model-wiz--small-inset"]=function(){return y$9(f())&&H()},K["yt-image-banner-view-model-wiz--tappable"]=function(){var u;
return _.ws(P.value)&&_.hf((u=X())==null?void 0:u.rendererContext)},K);
_.m_(P,function(){var u;return(u=X())==null?void 0:u.rendererContext});
return _.Q("yt-image-banner-view-model",{el:P,class:_.HO(K)},_.Q(_.p,{cond:function(){var u;return(u=X())==null?void 0:u.image},
then:function(){return _.Q(_.av,{data:function(){return X().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.Q(_.Md,{data:function(){var u;
return(u=X())==null?void 0:u.overlays}},{thumbnailHoverOverlayViewModel:p5}))},"nd");
_.IUZ.idomCompat=!0;var kNO;kNO=_.$c(function(K){var X=K.condition;var F=K.content;return _.Q(_.p,{cond:X,then:function(){return _.Q("div",{class:"page-header-view-model-wiz__scroll-container"},F())},
else:function(){return F()}})},"od");
_.KCQ=_.$c(function(K){var X=K.data;var F=K.noPadding;var P=K.enableBanner;var H=K.cinematicContainerTopbarOffset;var f=K.allowCinematicContainerOverflow;var u=K.displayAsSidebar;var J=K.displayAsPanel;var Z=WpT(),M=function(){return!!X().image||!!X().animatedImage},n=function(){return!!X().background},c=function(){return(u==null?0:u())||(J==null?0:J())?1:Z()},B=function(){return c()===1},L=function(){return B()||c()===2},A=function(){return c()===4},d=function(){var Wy=X();
var eP=!!X().heroImage;var gw=c(),a3=d7T(X()),dL=u==null?void 0:u(),nt=!Wy.metadata,ht;if(ht=eP?_.T(Wy.heroImage,dfC):_.T(Wy.animatedImage||Wy.image,dfC)){Wy=ht.style;var YC=ht.layoutMode;if(YC!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(ht=c2P(nkw(ht)),eP)eP=jHM(gw,Wy,YC,ht,dL);else b:if(nt)eP=gw===1?{size:48}:{size:72};else switch(gw){case 1:eP={size:72};break b;case 2:eP={size:120};break b;default:eP=a3<4?{size:120}:{size:160}}else eP=void 0}else eP={size:0};return eP};
K={};K=_.HO((K["page-header-view-model-wiz"]=!0,K["page-header-view-model-wiz--no-padding"]=function(){return!(F==null||!F())},K["page-header-view-model-wiz--small-top-padding"]=function(){return B()&&!X().actions&&!(J==null?0:J())||c()===2&&!(M()||X().heroImage)},K["page-header-view-model-wiz--small-bottom-padding"]=function(){return L()&&!X().actions&&!(J==null?0:J())},K["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(f==null?0:f())},K["page-header-view-model-wiz--display-as-sidebar"]=
u,K));
var R={},l=_.HO((R["page-header-view-model-wiz__page-header-headline"]=!0,R["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var Wy;return(Wy=d())==null?void 0:Wy.allowFullWidth},R)),a=function(){var Wy;
return L()&&!((Wy=d())==null?0:Wy.allowFullWidth)},E=function(){return B()&&(!!X().heroImage||M())&&d7T(X())>0},V=function(){return E()&&(J==null?void 0:J())};
R={};var x=_.HO((R["page-header-view-model-wiz__page-header-title"]=!0,R["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!E()},R["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return E()&&!V()},R["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=V,R["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=n,R));
R={};var N=_.HO((R["page-header-view-model-wiz__page-header-headline-image"]=!0,R["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!X().heroImage&&L()},R));
R={};var Dl=_.HO((R["page-header-view-model-wiz__page-header-banner-container"]=P,R["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var Wy;return(P==null?void 0:P())&&((Wy=_.T(X().banner,_.Rrt))==null?void 0:Wy.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},R));
R={};var Mq=_.HO((R["page-header-view-model-wiz__page-header-content-metadata"]=!0,R["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=n,R));R={};var pO=_.HO((R["page-header-view-model-wiz__page-header-flexible-actions"]=!0,R["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!X().metadata||L()},R["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!L()},R));
R={};var y9=_.HO((R["page-header-view-model-wiz__page-header-attribution"]=!0,R["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=n,R));return _.Q("yt-page-header-view-model",{class:K},_.Q(_.p,{cond:n,then:function(){return _.Q("div",{class:"page-header-view-model-wiz__page-header-background"},_.Q(_.Md,{data:function(){return X().background}},{cinematicContainerViewModel:function(Wy){return _.Q(_.gIC,{data:Wy.data,
topbarOffset:H})}}))}}),_.Q(kNO,{condition:function(){return!(u==null||!u())},
content:function(){return _.Q("div",{class:"page-header-view-model-wiz__page-header-content"},_.Q(_.p,{cond:function(){return(P==null?void 0:P())&&X().banner},
then:function(){return _.Q("div",{class:Dl},_.Q(_.Md,{data:function(){return X().banner}},{imageBannerViewModel:_.IUZ}))}}),_.Q("div",{class:l},_.Q(_.p,{cond:M,
then:function(){return _.Q(_.Md,{data:function(){var Wy;if(!(Wy=X().animatedImage)){Wy=X();if(M()){var eP=Wy=Object.assign({},Wy),gw=c(),a3=d7T(X()),dL=eP.image,nt=_.T(dL,erQ),ht=nt==null?void 0:nt.avatar,YC=_.T(ht,_.Gl);if(dL&&ht&&YC){switch(gw){case 1:YC.avatarImageSize="AVATAR_SIZE_XL";break;case 2:YC.avatarImageSize="AVATAR_SIZE_XXL";break;default:a3<4?YC.avatarImageSize="AVATAR_SIZE_XXL":YC.avatarImageSize="AVATAR_SIZE_XXXL"}_.S("web_enable_sink_page_header_view_model")&&(_.LB(ht,_.Gl,Object.assign({},
YC)),nt.avatar=Object.assign({},ht),_.LB(dL,erQ,Object.assign({},nt)),eP.image=Object.assign({},dL))}}Wy=Wy.image}return Wy}},{contentPreviewImageViewModel:function(Wy){return _.Q(_.bJ,{data:Wy.data,
className:N,imageSizeConfig:d})},
decoratedAvatarViewModel:function(Wy){return _.Q(_.SZ,{data:Wy.data,className:N})}})}}),_.Q(_.p,{cond:function(){return!!X().heroImage&&!a()},
then:function(){return _.Q(_.Md,{data:function(){return X().heroImage}},{contentPreviewImageViewModel:function(Wy){return _.Q(_.bJ,{data:Wy.data,
className:N,imageSizeConfig:d})}})}}),_.Q("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.Q(_.p,{cond:function(){return!!X().heroImage&&a()},
then:function(){return _.Q("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.Q(_.Md,{data:function(){return X().heroImage}},{contentPreviewImageViewModel:function(Wy){return _.Q(_.bJ,{data:Wy.data,
className:N,imageSizeConfig:d})}}))}}),_.Q(_.Md,{data:function(){return X().title}},{dynamicTextViewModel:function(Wy){return _.Q(xPC,{data:Wy.data,
className:x})}}),_.Q(_.Md,{data:function(){return X().metadata}},{contentMetadataViewModel:function(Wy){return _.Q(_.HHE,{data:Wy.data,
layout:function(){return B()?1:0},
className:Mq,isOverlay:n,useMediumText:A})}}),_.Q(_.p,{cond:function(){return X().description&&!B()},
then:function(){return _.Q(_.Md,{data:function(){return X().description}},{descriptionPreviewViewModel:function(Wy){return _.Q(jK,{data:Wy.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:n,maxLinesOverride:function(){return B()?void 0:1},
useMediumText:A})}})}}),_.Q(_.p,{cond:function(){return X().attribution&&!L()},
then:function(){return _.Q(_.Md,{data:function(){return X().attribution}},{attributionViewModel:function(Wy){return _.Q(xwC,{data:Wy.data,
className:y9,useMediumText:A})}})}}),_.Q(_.p,{cond:function(){return X().actions&&!L()},
then:function(){return _.Q(_.Md,{data:function(){return X().actions}},{flexibleActionsViewModel:function(Wy){return _.Q(Lf,{data:Wy.data,
layout:function(){return eJP(c())},
className:pO})}})}}))),_.Q("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.Q(_.p,{cond:function(){return X().description&&B()},
then:function(){return _.Q(_.Md,{data:function(){return X().description}},{descriptionPreviewViewModel:function(Wy){return _.Q(jK,{data:Wy.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:n,maxLinesOverride:function(){return B()?void 0:1},
useMediumText:A})}})}}),_.Q(_.p,{cond:function(){return X().attribution&&L()},
then:function(){return _.Q(_.Md,{data:function(){return X().attribution}},{attributionViewModel:function(Wy){return _.Q(xwC,{data:Wy.data,
className:y9,useMediumText:A})}})}}),_.Q(_.p,{cond:function(){return X().actions&&L()},
then:function(){return _.Q(_.Md,{data:function(){return X().actions}},{flexibleActionsViewModel:function(Wy){return _.Q(Lf,{data:Wy.data,
layout:function(){return eJP(c())},
className:pO})}})}})),_.Q("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.Q(_.Md,{data:function(){return X().bottomMetadataFlexibleContainer}},{flexibleContainer:function(Wy){return _.Q(i6L,{data:Wy.data,
isOverlay:n})}})))}}))},"pd");
_.KCQ.idomCompat=!0;_.EP(_.$c(function(K){var X=_.D(_.u_(!1,void 0,"vVRl3b")),F=X.next().value,P=X.next().value;return _.Q("yt-official-card-view-model",{class:_.HO("ytOfficialCardViewModelHost",K.className),style:_.Je({"background-color":function(){var H,f=vKn((H=K.data())==null?void 0:H.backgroundColor);return f?_.wq(f):void 0}})},_.Q(_.Md,{data:function(){return K.data().header}},{pageHeaderViewModel:function(H){return _.Q(_.KCQ,{data:H.data,
noPadding:!0})}}),_.Q(_.Md,{data:function(){return K.data().contents}},{horizontalShelfViewModel:function(H){return _.Q(_.Au,{data:H.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0}})}}),_.Q(_.p,{cond:F,
then:function(){return _.Q("div",{class:"ytOfficialCardViewModelExpandedContent"},_.Q(_.Md,{data:function(){return K.data().expandedContents}},{horizontalShelfViewModel:function(H){return _.Q(_.Au,{data:H.data,
sizing:"MINI"})}}),_.Q("div",{class:"ytOfficialCardViewModelCollapseButton"},_.Q(_.Md,{data:function(){return K.data().collapseButton}},{buttonViewModel:function(H){return _.Q(_.Af,{data:H.data,
onClick:function(){P(!F())}})}})))},
else:function(){return _.Q("div",{class:"ytOfficialCardViewModelExpandButton"},_.Q(_.Md,{data:function(){return K.data().expandButton}},{buttonViewModel:function(H){return _.Q(_.Af,{data:H.data,
onClick:function(){P(!F())}})}}))}}))},"qd"),"yt-official-card-view-model",{props:{data:_.vU,
className:_.vU}});var RJ3=_.Jf({buttonViewModel:_.Af});_.iy(U74);_.K4(U74,"ytw-search-friction-view-model",{propNames:["data"]});_.wT=_.$c(function(K){var X=_.t_(),F,P=(F=_.i9().resolve(_.Nu(_.m$)))==null?void 0:F();_.rs(function(){var H=X.value;var f=new F4E,u=new Map(f.JSC$7312_sanitizerTable.globalAttributePolicies);u.set("style",{policyAction:4});f.JSC$7312_sanitizerTable=new ut(f.JSC$7312_sanitizerTable.allowedElements,f.JSC$7312_sanitizerTable.elementPolicies,f.JSC$7312_sanitizerTable.allowedGlobalAttributes,u,f.JSC$7312_sanitizerTable.globallyAllowedAttributePrefixes);var J=["data-time"];if(J===void 0)u=new Set(f.JSC$7312_sanitizerTable.globallyAllowedAttributePrefixes),
u.add("data-"),f.JSC$7312_sanitizerTable=new ut(f.JSC$7312_sanitizerTable.allowedElements,f.JSC$7312_sanitizerTable.elementPolicies,f.JSC$7312_sanitizerTable.allowedGlobalAttributes,f.JSC$7312_sanitizerTable.globalAttributePolicies,u);else{u=new Set(f.JSC$7312_sanitizerTable.allowedGlobalAttributes);J=_.D(J);for(var Z=J.next();!Z.done;Z=J.next()){Z=Z.value;if(Z.indexOf("data-")!==0)throw Error("qa`"+Z);u.add(Z)}f.JSC$7312_sanitizerTable=new ut(f.JSC$7312_sanitizerTable.allowedElements,f.JSC$7312_sanitizerTable.elementPolicies,
u,f.JSC$7312_sanitizerTable.globalAttributePolicies,f.JSC$7312_sanitizerTable.globallyAllowedAttributePrefixes)}u=new Set(f.JSC$7312_sanitizerTable.allowedGlobalAttributes);u.add("class");f.JSC$7312_sanitizerTable=new ut(f.JSC$7312_sanitizerTable.allowedElements,f.JSC$7312_sanitizerTable.elementPolicies,u,f.JSC$7312_sanitizerTable.globalAttributePolicies,f.JSC$7312_sanitizerTable.globallyAllowedAttributePrefixes);_.v$(H,_.xty(f.build(),m73(K.text())));Gqy(X.value)},"FI2gYe");
F={};return _.Q("div",null,_.Q("markdown-div",{class:_.HO("ytwMarkdownDivHost",(F.ytwMarkdownDivDark=P,F.ytwMarkdownDivHostSmall=function(){var H;return((H=K.isSmallText)==null?void 0:H.call(K))||!1},F)),
el:X}))},"rd");
_.wT.idomCompat=!0;var X7t=_.$c(function(K){var X=K.imageData;var F=_.ag(K.isInList,!1),P=function(){return F()?{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 _.Q("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.Q(_.p,{cond:function(){return X().image},
then:function(H){return _.Q(_.av,{data:H,alt:function(){return P().alt},
contentMode:function(){return P().contentMode},
targetWidth:function(){return P().targetWidth},
targetHeight:function(){return P().targetHeight},
className:function(){return P().className}})}}),_.Q("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.Q("div",{class:_.HO("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.Q(_.Oy,{text:function(){return X().title}})),_.Q(_.cd,{each:function(){var H;
return(H=X().description)!=null?H:[]}},function(H){return _.Q("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.Q(yX,{content:H}))})))},"sd"),FCV=_.$c(function(K){var X=K.list;
var F=function(){var P;return(P=X().items)!=null?P:[]};
return _.Q("div",{class:"ytwGenAiRichTextViewModelListContent"},_.Q(_.p,{cond:function(){return X().title},
then:function(P){return _.Q("div",{class:_.HO("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.Q(_.Oy,{text:P}))}}),_.Q(_.p,{cond:function(){return X().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.Q("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.Q(_.cd,{each:F},function(P){return _.Q("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.Q(yX,{content:P,isInList:!0}))}))}}),_.Q(_.p,{cond:function(){return X().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.Q("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.Q(_.cd,{each:F},function(P){return _.Q("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.Q(yX,{content:P,isInList:!0}))}))}}),_.Q(_.p,{cond:function(){return X().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.Q("div",{class:"ytwGenAiRichTextViewModelImageList"},_.Q(_.cd,{each:F},function(P){return _.Q("div",{class:"ytwGenAiRichTextViewModelListItem"},_.Q(yX,{content:P,isInList:!0}))}))}}))},"td"),P7Z=_.$c(function(K){var X=K.table;
return _.Q("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.Q("thead",null,_.Q("tr",null,_.Q(_.cd,{each:function(){var F,P;return(P=(F=X().header)==null?void 0:F.cells)!=null?P:[]}},function(F){return _.Q("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.Q(_.cd,{each:function(){return F.contents}},function(P){return _.Q(yX,{content:P})}))}))),_.Q("tbody",null,_.Q(_.cd,{each:function(){var F;
return(F=X().rows)!=null?F:[]}},function(F){return _.Q("tr",null,_.Q(_.cd,{each:function(){return F.cells}},function(P){return _.Q("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.Q(_.cd,{each:function(){return P.contents}},function(H){return _.Q(yX,{content:H})}))}))})))},"ud"),yX=_.$c(function(K){var X=K.content;
var F=_.ag(K.isInList,!1),P=function(){var H,f;return(f=(H=X().contentBlock)==null?void 0:H.contents)!=null?f:[]};
return _.Q("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.Q(_.p,{cond:function(){return X().text},
then:function(H){return _.Q(_.Oy,{className:"ytwGenAiRichTextViewModelText",text:H})}}),_.Q(_.p,{cond:function(){return X().image},
then:function(H){return _.Q(X7t,{imageData:H,isInList:F})}}),_.Q(_.p,{cond:function(){return X().list},
then:function(H){return _.Q(FCV,{list:H})}}),_.Q(_.p,{cond:function(){return X().contentBlock},
then:function(){return _.Q("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.Q(_.cd,{each:P},function(H){return _.Q(yX,{content:H,isInList:!1})}))}}),_.Q(_.p,{cond:function(){return X().table},
then:function(H){return _.Q(P7Z,{table:H})}}))},"vd"),HqL=_.$c(function(K){var X={};
X=_.z9("ytwGenAiRichTextViewModelHost",(X.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.KG("search_overview_link_style")),X));return _.Q("gen-ai-rich-text-view-model",{class:X},_.Q(yX,{content:function(){return K.data().content}}))},"wd");_.iy(lx9);_.iy(Aq);_.s6C=_.$c(function(K){var X=K.data;var F=function(){var d;return((d=X().loadingUi)!=null?d:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},P=function(){return X().isLoading&&(F()==="UNSPECIFIED"||F()==="GHOST_CARD")},H=function(){return!X().isLoading},f=function(){return!!X().content&&!X().contents},u=function(){return!!X().contents},J=function(){return!!X().nextQueryButtons},Z=function(){return X().isLoading&&F()==="INVISIBLE"},M=function(){var d,R;
return(R=(d=X().headerIcon)==null?void 0:d.iconType)!=null?R:""},n=function(){var d;
return(d=X().content)!=null?d:""},c=function(){return!!X().sourcesSection},B,L=!((B=_.i9().resolve(_.Nu(_.m$)))==null||!B()),A=_.Qs(function(){var d=[],R=X().contents;
if(R)for(var l=0;l<R.length;l++){var a=_.T(R&&R[l],tqW);a&&d.push(a)}return d},void 0,"ycU97e");
_.AV(function(){X().isLoading||_.Ac("so_re",void 0,"search_overview_answer")});
return _.Q("ytd-overview-answer-view-model",{class:function(){var d={};d=(d.ytdOverviewAnswerViewModelHost=!0,d.ytdOverviewAnswerViewModelDarkBackground=L&&!Z(),d.ytdOverviewAnswerViewModelLightBackground=!L&&!Z(),d);return _.z9(d)}},_.Q(_.p,{cond:function(){return!Z()},
then:function(){return _.Q(_.ID,null,_.Q("h2",null,_.Q("div",{class:"ytdOverviewAnswerViewModelHeader"},_.Q(_.p,{cond:M,then:function(d){return _.Q("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.Q(_.ZF,{icon:d}))}}),_.Q("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.Q("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return X().headerText}),_.Q("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.Q(_.Oy,{text:function(){return X().headerSubtext}}))))),_.Q(_.p,{cond:P,
then:function(){return lx9()}}),_.Q(_.p,{cond:H,
then:function(){return _.Q(_.ID,null,_.Q(_.p,{cond:f,then:function(){return _.Q("div",{class:"ytdOverviewAnswerViewModelText"},_.Q(_.wT,{text:n,isSmallText:!0}))}}),_.Q(_.p,{cond:u,
then:function(){return _.Q("div",{class:"ytdOverviewAnswerViewModelRichText"},_.Q(_.cd,{each:A},function(d){return _.Q(HqL,{data:d})}))}}),_.Q(_.p,{cond:J,
then:function(){return _.Q("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.Q(_.Md,{data:function(){return X().nextQueryButtons}},{buttonViewModel:function(d){return _.Q(_.Af,{data:d.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.Au}))}}),_.Q("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.Q("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.Q(_.p,{cond:function(){return!!_.T(X().likeButtonViewModel,_.S6)&&!!_.T(X().dislikeButtonViewModel,_.ok)},
then:function(){return _.Q("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.Q(_.rr,{data:function(){return _.T(X().likeButtonViewModel,_.S6)},
disableIconAnimation:!0}),_.Q(_.TZ,{data:function(){return _.T(X().dislikeButtonViewModel,_.ok)}}))}})),_.Q(_.p,{cond:function(){var d;
return(d=X().sourcesSection)==null?void 0:d.headerText},
then:function(d){return _.Q("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.Q(_.Oy,{text:d}))}})),_.Q(_.p,{cond:c,
then:function(){return _.Q("div",{class:"ytdOverviewAnswerViewModelSources"},_.Q(_.Md,{data:function(){var d;return(d=X().sourcesSection)==null?void 0:d.sourcesShelf}},{buttonViewModel:_.Af,
horizontalShelfViewModel:function(d){return _.Q(_.Au,{data:d.data,includeMargin:!0,hasPeek:!0})}}))}}),_.Q(_.p,{cond:function(){return X().disclaimerText},
then:function(){return _.Q("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.Q(_.Oy,{text:function(){return X().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"xd");var zuu=_.$c(function(K){var X=K.data;var F=K.active;var P=_.t_();_.rs(function(){var H,f,u,J=((H=_.i9().resolve(_.Nu(_.m$)))==null?0:H())?(f=X())==null?void 0:f.darkThemeColorPalette:(u=X())==null?void 0:u.lightThemeColorPalette;J&&(J.additiveBackground&&P.value.style.setProperty("--timestamp-active-background-color",_.wq(J.additiveBackground)),J.textSecondary&&P.value.style.setProperty("--timestamp-active-color",_.j0(J.textSecondary)))},"KHcbwb");
K={};return _.Q("transcript-segment-view-model",{class:_.HO("ytwTranscriptSegmentViewModelHost",(K.ytwTranscriptSegmentViewModelHostActive=F,K.ytwTranscriptSegmentViewModelHostModern=_.S("enable_timeline_view_modern_transcript")||_.S("enable_timeline_view_modern_transcript_fe"),K)),el:P},_.Q(_.p,{cond:function(){var H;return(H=X())==null?void 0:H.timestamp},
then:function(H){var f={};return _.Q("div",{class:_.HO("ytwTranscriptSegmentViewModelTimestamp",(f.ytwTranscriptSegmentViewModelTimestampActive=F,f))},H)}}),_.Q(_.Oy,{text:function(){var H,f,u;
return(u=(H=X())==null?void 0:H.attributedText)!=null?u:{content:(f=X())==null?void 0:f.simpleText}},
linkInheritColor:!0}))},"yd");var fSQ=_.$c(function(K){var X=K.data;return _.Q("div",{class:"yt-video-attributes-section-view-model__header"},_.Q("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return X().headerTitle}),_.Q(_.p,{cond:function(){return X().headerSubtitle},
then:function(){return _.Q("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return X().headerSubtitle})}}))},"zd"),DIQ=_.$c(function(K){function X(d){return Math.max(Math.min(d,0),M()-J())}
var F=K.data;var P,H=_.t_(function(d){if(_.S("web_metadata_carousel_elref_bugfix")){var R=function(){n(d.clientWidth)};
R();window.ResizeObserver&&(P=new ResizeObserver(R),P.observe(d))}}),f=_.t_(function(d){Z(d.scrollWidth)}),u=_.D(_.u_(0,void 0,"I9GbH"));
K=u.next().value;u=u.next().value;var J=K,Z=u;u=_.D(_.u_(0,void 0,"eQAn5b"));K=u.next().value;u=u.next().value;var M=K,n=u;K=_.D(_.u_(0,void 0,"VU3lg"));var c=K.next().value,B=K.next().value;_.AV(function(){if(!_.S("web_metadata_carousel_elref_bugfix")){var d=function(){Z(f.value.scrollWidth);n(H.value.clientWidth)};
d();if(window.ResizeObserver){var R=new ResizeObserver(d);R.observe(H.value);_.AZ(function(){R.disconnect()})}}});
_.AZ(function(){if(_.S("web_metadata_carousel_elref_bugfix")){var d;(d=P)==null||d.disconnect()}});
var L=function(){B(X(c()+M()))},A=function(){B(X(c()-M()))};
return _.Q("yt-video-attributes-section-view-model",null,_.Q("div",{class:"yt-video-attributes-section-view-model"},_.Q(_.p,{cond:function(){return F().headerTitle},
then:function(){return _.Q(fSQ,{data:F})}}),_.Q("div",{class:_.HO("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:H},_.Q("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.Je({transform:function(){var d=c();_.e8("HTML_DIR")==="rtl"&&(d*=-1);return"translateX("+d+"px)"}}),
el:f},_.Q(_.Md,{data:function(){return F().videoAttributeViewModels}},{videoAttributeViewModel:nnQ}))),_.Q(_.Md,{data:function(){return F().footerButton}},{buttonViewModel:function(d){return _.Q(_.Af,{data:d.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.Q(_.p,{cond:function(){return c()<0&&F().previousButton},
then:function(){return _.Q("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.Q(_.Md,{data:function(){return F().previousButton}},{buttonViewModel:function(d){return _.Q(_.Af,{data:d.data,
onClick:L})}}))}}),_.Q(_.p,{cond:function(){return c()>M()-J()&&F().nextButton},
then:function(){return _.Q("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.Q(_.Md,{data:function(){return F().nextButton}},{buttonViewModel:function(d){return _.Q(_.Af,{data:d.data,
onClick:A})}}))}})))},"Ad");
DIQ.idomCompat=!0;var u_W=_.$c(function(K){var X=K.data;var F=K.active;var P={},H={};return _.Q("timeline-item-view-model",{class:_.HO("ytwTimelineItemViewModelHost",(P.ytwTimelineItemViewModelHostChapterChild=K.chapterChild,P.ytwTimelineItemViewModelModern=_.S("enable_timeline_view_modern_transcript")||_.S("enable_timeline_view_modern_transcript_fe"),P))},_.Q("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.Q("div",{class:_.HO("ytwTimelineItemViewModelTimestamp",(H.ytwTimelineItemViewModelTimestampActive=
F,H))},function(){return X().timestamp})),_.Q("div",{class:"ytwTimelineItemViewModelContentItems"},_.Q(_.Md,{data:function(){return X().contentItems}},{transcriptSegmentViewModel:function(f){return _.Q(zuu,{data:f.data,
active:F})},
videoAttributesSectionViewModel:DIQ})))},"Bd");var q3N=_.$c(function(K){var X=K.data;K={};return _.Q("timeline-chapter-view-model",{class:_.HO("ytwTimelineChapterViewModelHost")},_.Q("div",{class:_.HO("ytwTimelineChapterViewModelTitle",(K.ytwTimelineChapterViewModelModern=_.S("enable_timeline_view_modern_transcript")||_.S("enable_timeline_view_modern_transcript_fe"),K))},function(){return X().title}),_.Q(_.Md,{data:function(){return X().contents}},{timelineItemViewModel:function(F){return _.Q(u_W,{data:F.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(F){return _.Q(DIQ,{data:F.data})}}))},"Cd");var JzC=_.$c(function(K){var X=K.data;var F=_.t_(),P=_.sy(_.BxP,function(){var f;return(f=X().markersEngagementPanelSyncEntityKey)!=null?f:""}),H=function(){var f;
return((f=P())==null?void 0:f.activeItemIndex)===X().index};
return _.Q("macro-markers-panel-item-view-model",{class:_.HO("ytwMacroMarkersPanelItemViewModelHost",{"is-active":H}),el:F,"on:click":_.DF(function(f){var u,J,Z,M,n;return _.q(function(c){if(c.nextAddress==1)return f.stopPropagation(),_.Rk(_.e6(f),F.value,["A".toString(),"BUTTON".toString()])?c.return():(u=_.w$(X().onTap))?_.Y(c,_.xf(),2):c.return();J=c.yieldResult;M=(Z=_.T(u,_.vg))==null?void 0:Z.startTimeSeconds;M===void 0||(n=J)!=null&&n.seekTo(M,!0);_.JT(c)})}),
tabindex:0},_.Q(_.Md,{data:function(){var f;return(f=X())==null?void 0:f.item}},{timelineChapterViewModel:function(f){return _.Q(q3N,{data:f.data,
active:H})},
timelineItemViewModel:function(f){return _.Q(u_W,{data:f.data,active:H})},
videoAttributeViewModel:nnQ}))},"Dd");
JzC.idomCompat=!0;_.EP(JzC,"macro-markers-panel-item-view-model",{props:{data:_.vU}});_.EP(DIQ,"yt-video-attributes-section-view-model",{props:{data:_.vU}});var Zqt=_.$c(function(K){var X=function(){var F,P,H;return(H=(F=K.data().leadingLogoAccessibility)==null?void 0:(P=F.accessibilityData)==null?void 0:P.label)!=null?H:""};
return _.Q("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.Q(_.p,{cond:function(){return K.data().leadingLogo},
then:function(F){return _.Q(_.av,{className:"ytwFantasySectionHeaderViewModelLogo",data:F,alt:X})}}),_.Q("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.Q(_.Oy,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return K.data().title}}),_.Q(_.Oy,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return K.data().subtitle}})),_.Q(_.Md,{data:function(){return K.data().trailingButton}},{buttonViewModel:function(F){return _.Q(_.Af,{data:F.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Ed");var Y3C=_.$c(function(K){var X={};X=_.HO("ytwFantasyTeamViewModelHost",(X.ytwFantasyTeamViewModelCompact=function(){var H;return!((H=K.compact)==null||!H.call(K))},X.ytwFantasyTeamViewModelUser=function(){return K.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},X.ytwFantasyTeamViewModelOpponent=function(){return K.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},X));
var F=function(){var H,f,u;return(u=(H=K.data().teamLogoAccessibility)==null?void 0:(f=H.accessibilityData)==null?void 0:f.label)!=null?u:""},P=_.sy(oNq,function(){return K.data().teamEntityKey});
return _.Q("ytw-fantasy-team-view-model",{class:X},_.Q(_.p,{cond:function(){return K.data().teamLogo},
then:function(H){return _.Q(_.av,{className:"ytwFantasyTeamViewModelLogo",data:H,alt:F})}}),_.Q("div",{class:"ytwFantasyTeamViewModelMetadata"},_.Q("div",{class:"ytwFantasyTeamViewModelHeader"},_.Q(_.Oy,{className:"ytwFantasyTeamViewModelScore",
text:function(){var H;return(H=P())==null?void 0:H.score}}),_.Q(_.ZF,{icon:function(){var H;
return(H=P())==null?void 0:H.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.Q(_.Oy,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var H;return(H=P())==null?void 0:H.projectedScore}})),_.Q(_.Oy,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return K.data().primaryText}}),_.Q(_.Oy,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return K.data().secondaryText}}),_.Q(_.Oy,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return K.data().tertiaryText}})),_.Q(_.Oy,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var H;return(H=P())==null?void 0:H.score}}))},"Fd");_.EP(_.$c(function(K){return _.Q("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.Q("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.Q(_.Md,{data:function(){return K.data().summaryHeader}},{fantasySectionHeaderViewModel:Zqt})),_.Q(_.Md,{data:function(){return K.data().userTeam}},{fantasyTeamViewModel:Y3C}),_.Q(_.Md,{data:function(){return K.data().opponentTeam}},{fantasyTeamViewModel:Y3C}))},"Gd"),"fantasy-league-summary-view-model",{props:{data:_.vU}});var Q6t=_.$c(function(K){var X=_.tA(K,{shape:{},useCustomTabRenderable:!1}),F=X.shape;X=X.useCustomTabRenderable;var P=K.customTabRenderable,H=function(){return F().disabled},f=function(){return F().selected},u=function(){return F().title},J=function(){return F().icon},Z=_.t_();
K=_.DF(function(c){var B;if(!H()&&((B=F().aTagConfig)==null?0:B.onclick))F().aTagConfig.onclick(c);return!1});
var M=_.DF(function(c){if(c.key==="Enter"||c.key==="ArrowUp"||c.key==="ArrowDown")c.preventDefault(),Z.value.click();return!1}),n={};
return _.Q("yt-tab-shape",{class:_.HO("yt-tab-shape-wiz",function(){return F().className},(n["yt-tab-shape-wiz__tab--last-tab"]=function(){return F().isLastTab},n["yt-tab-shape-wiz--host-disabled"]=H,n["yt-tab-shape-wiz--host-clickable"]=!P,n)),
role:P?void 0:"tab","aria-selected":f!=null?f:!1,"aria-disabled":H,tabindex:P?void 0:0,"on:click":K,"on:keydown":M,el:Z,"tab-identifier":function(){return F().identifier},
"tab-title":u},_.Q(_.p,{cond:X,then:function(){return P()},
else:function(){var c={},B={};return _.Q(_.ID,null,_.Q("div",{class:_.HO("yt-tab-shape-wiz__tab",(c["yt-tab-shape-wiz__tab--tab-selected"]=f,c))},_.Q(_.p,{cond:J,then:function(L){return _.Q(_.ZF,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return L().iconType}})}}),u),_.Q("div",{class:_.HO("yt-tab-shape-wiz__tab-bar",(B["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=f,B))}))}}))},"Hd");
Q6t.idomCompat={callbacks:{customTabRenderable:!0}};_.nHu=_.$c(function(K){var X=K.shape;K=_.D(_.u_(48,void 0,"r9IBlb"));var F=K.next().value,P=K.next().value;K=_.D(_.u_(0,void 0,"Bd7rmd"));var H=K.next().value,f=K.next().value,u=function(){return X().tabs},J=_.t_(),Z=function(){var M,n;
return(n=(M=u())==null?void 0:M.findIndex(function(c){return c.selected}))!=null?n:-1};
_.AV(function(){var M=J.value.querySelectorAll("yt-tab-shape"),n=Z()>-1?M[Z()]:void 0;_.A9.addJob(function(){P((n==null?void 0:n.getBoundingClientRect().width)||0)},8,0)});
_.rs(function(){var M=Z(),n=_.A9.addJob(function(){var c,B=((c=J.value)==null?void 0:c.querySelectorAll("yt-tab-shape"))||[],L;P(((L=M>-1?B[M]:void 0)==null?void 0:L.getBoundingClientRect().width)||0);for(L=c=0;L<M;L++)c+=B[L].offsetWidth+24;_.e8("HTML_DIR")==="rtl"&&(c=-c);f(c)},8,0);
_.AZ(function(){_.A9.cancelJob(n)})},"EHixkc");
K={};return _.Q("yt-tab-group-shape",{class:_.HO("yt-tab-group-shape-wiz",(K["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return X().isOverflowHidden},K)),
el:J},_.Q(_.p,{cond:u,then:function(M){return _.Q(_.ID,null,_.Q("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.Q(_.cd,{each:M},function(n,c){return _.Q(Q6t,{shape:function(){return Object.assign({},n,{isLastTab:c()===M().length-1})},
customTabRenderable:n.customTabRenderable,useCustomTabRenderable:!!n.customTabRenderable})})),_.Q(McC,{width:F,
sliderOffset:H}))}}))},"Id");
_.nHu.idomCompat=!0;var McC=_.$c(function(K){var X=_.ag(K.sliderOffset,0),F=K.width;return _.Q("div",{class:"yt-tab-group-shape-wiz__slider",style:_.Je({width:function(){return F()+"px"},
transform:function(){return"translateX("+X()+"px)"}})})},"Jd");var czu=_.$c(function(K){var X=function(){var f,u,J;return(J=(f=K.data().playerLogoAccessibility)==null?void 0:(u=f.accessibilityData)==null?void 0:u.label)!=null?J:""},F=_.sy(LJy,function(){return K.data().playerEntityKey}),P={};
P=_.HO("ytwFantasyPlayerViewModelHost",(P.ytwFantasyPlayerViewModelPlaying=function(){var f;return!((f=F())==null||!f.isPlayerPlaying)},P.ytwFantasyPlayerViewModelOnField=function(){var f;
return((f=F())==null?void 0:f.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},P.ytwFantasyPlayerViewModelRedZone=function(){var f;
return((f=F())==null?void 0:f.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},P));
var H=function(){var f,u,J,Z=((f=_.i9().resolve(_.Nu(_.m$)))==null?0:f())?(u=K.data().playerLogoBackgroundColor)==null?void 0:u.darkTheme:(J=K.data().playerLogoBackgroundColor)==null?void 0:J.lightTheme;return Z===void 0?"":_.wq(Z)};
return _.Q("ytw-fantasy-player-view-model",{class:P},_.Q(_.p,{cond:function(){return K.data().playerLogo},
then:function(f){return _.Q("div",{class:"ytwFantasyPlayerViewModelLogo"},_.Q("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.Q(_.av,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.Je({"background-color":H}),data:f,alt:X})),_.Q("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.Q(_.ZF,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.Q("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.Q("div",{class:"ytwFantasyPlayerViewModelHeader"},_.Q(_.Oy,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var f;return(f=K.data())==null?void 0:f.playerNameText}}),_.Q(_.Oy,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var f;return(f=K.data())==null?void 0:f.playerDescriptionText}})),_.Q("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.Q(_.Oy,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var f;return(f=F())==null?void 0:f.gamePeriodText}}),_.Q(_.Oy,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var f;return(f=K.data())==null?void 0:f.opponentTeamText}}),_.Q(_.Oy,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var f;return(f=F())==null?void 0:f.gameStatusText}}),_.Q(_.Oy,{className:_.HO("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var f;return(f=F())==null?void 0:f.playerStatusText}})),_.Q("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.Q(_.Oy,{text:function(){var f;
return(f=F())==null?void 0:f.playerStatsText}}))),_.Q(_.Oy,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var f;return(f=F())==null?void 0:f.fantasyScore}}))},"Kd");var p7C=_.$c(function(K){return _.Q("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.Q(_.p,{cond:function(){return K.data().players},
then:function(X){return _.Q(_.Md,{data:X},{fantasyPlayerViewModel:czu})}}))},"Ld");var Bet=_.$c(function(K){var X=_.D(_.qB(function(){var H;return(H=K.data().selectedTabIdentifierKey)!=null?H:""})),F=X.next().value,P=X.next().value;
_.Tr(function(){var H;(H=K.setSelectedTabSignal)==null||H.call(K,F)});
return _.Q("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.Q("div",{class:"ytTabbedViewModelTabGroup"},_.Q(_.nHu,{shape:function(){var H=K.data(),f=[],u={tabs:f};if(!H.tabs)return u;H=_.D(H.tabs);for(var J=H.next(),Z={};!J.done;Z={tabViewModel:void 0},J=H.next())if(Z.tabViewModel=_.T(J.value,iTu),Z.tabViewModel){var M=J=void 0;f.push({aTagConfig:{onclick:function(n){return function(){var c;P((c=n.tabViewModel.tabIdentifier)!=null?c:"")}}(Z)},
identifier:Z.tabViewModel.tabIdentifier,selected:F()===Z.tabViewModel.tabIdentifier,title:(M=(J=Z.tabViewModel.title)==null?void 0:J.content)!=null?M:""})}return u}})),_.Q(_.Md,{data:function(){var H,f=_.D((H=K.data().tabs)!=null?H:[]);
for(H=f.next();!H.done;H=f.next())if((H=_.T(H.value,iTu))&&H.tabIdentifier===F())return H.content}},{fantasyRosterViewModel:p7C}))},"Md");_.EP(_.$c(function(K){var X=_.D(vTy()),F=X.next().value,P=X.next().value;return _.Q("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.Q(_.Oy,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return K.data().title}}),_.Q(_.p,{cond:function(){return K.data().tabbedViewModel},
then:function(H){return _.Q(_.Md,{data:H},{tabbedViewModel:function(f){return _.Q(Bet,{data:f.data,setSelectedTabSignal:P})}})}}),_.Q(_.p,{cond:function(){var H,f=(H=_.T(K.data().tabbedViewModel,xft))==null?void 0:H.tabs;
H=_.T(f==null?void 0:f[0],iTu);f=_.T(f==null?void 0:f[1],iTu);var u=H==null?void 0:H.tabIdentifier;if(F()===u){var J,Z;if(!((J=_.T(H==null?void 0:H.content,iMu))==null?0:(Z=J.players)==null?0:Z.length))return K.data().noUserTeamPlayersText}else{var M,n;if(!((M=_.T(f==null?void 0:f.content,iMu))==null?0:(n=M.players)==null?0:n.length))return K.data().noOpponentTeamPlayersText}},
then:function(H){return _.Q(_.Oy,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:H})}}))},"Nd"),"ytw-fantasy-matchup-view-model",{props:{data:_.vU}});_.EP(_.$c(function(K){return _.Q("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.Q(_.Oy,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return K.data().title}}),_.Q(_.p,{cond:function(){return K.data().matchupTeamPairs},
then:function(X){return _.Q(_.cd,{each:X,keyBy:"INDEX"},function(F){return _.Q("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.Q(_.Md,{data:function(){return[F().firstTeam,F().secondTeam]}},{fantasyTeamViewModel:function(P){return _.Q(Y3C,{data:P.data,
compact:!0})}}))})}}))},"Od"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.vU}});_.EP(_.$c(function(K){var X=function(){var H,f,u;return(u=(H=K.data().userLogoAccessibility)==null?void 0:(f=H.accessibilityData)==null?void 0:f.label)!=null?u:""},F=function(){var H,f,u;
return(u=(H=K.data().opponentLogoAccessibility)==null?void 0:(f=H.accessibilityData)==null?void 0:f.label)!=null?u:""},P=_.sy(SWP,function(){return K.data().entityKey});
return _.Q("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.Q("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.Q(_.p,{cond:function(){return K.data().userLogo},
then:function(H){return _.Q(_.av,{className:"ytwFantasyWinProbabilityViewModelLogo",data:H,alt:X})}}),_.Q("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.Q(_.Oy,{text:function(){return K.data().title}})),_.Q(_.p,{cond:function(){return K.data().opponentLogo},
then:function(H){return _.Q(_.av,{className:"ytwFantasyWinProbabilityViewModelLogo",data:H,alt:F})}})),_.Q("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.Q("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.Q(_.Oy,{text:function(){var H;
return(H=P())==null?void 0:H.userWinNumberLabel}})),_.Q("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.Q("div",{class:_.HO("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.Je({flex:function(){var H,f;return(f=(H=P())==null?void 0:H.userWinNumber)!=null?f:50}})}),_.Q("div",{class:_.HO("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.Je({flex:function(){var H,f;return(f=(H=P())==null?void 0:H.opponentWinNumber)!=null?f:50}})})),_.Q("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.Q(_.Oy,{text:function(){var H;
return(H=P())==null?void 0:H.opponentWinNumberLabel}}))))},"Pd"),"fantasy-win-probability-view-model",{props:{data:_.vU}});_.L4("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var WS=function(){var K=_.G.apply(this,arguments)||this;K.darkerPanels=_.S("web_watch_darker_panels");K.commentsHidePanelButton=!1;K.isWatchGrid=!1;K.continuationShowButton=!1;K.isSearch=!1;K.isConstrainedList=!1;K.isWatch=!1;K.eligibleToSwitchToGrid=!1;K.notSticky=!1;K.epRestyle=!1;K.isCarouselInFeed=!0;K.topSpacingZero=!1;K.continuationIsInitialLoad=!0;K.enableSqueezebackPanels=_.S("web_shorts_enable_squeezeback_panels");K.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");K.mastheadHeight=
0;K.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};K.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return K};
_.r(WS,_.G);_.z=WS.prototype;_.z.updateLockupContainerTypes=function(K){if(this.eligibleToSwitchToGrid){var X;(X=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||X.forEach(function(F){F.containerType=K})}};
_.z.getItemsPath=function(){return"data.contents"};
_.z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.z.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",
errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",
expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},
learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},
reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.S("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.S("kevlar_low_priority_continuation")}}};
_.z.created=function(){this.JSC$14501_cachedViewportHeight=_.e8("initialInnerHeight")||window.innerHeight};
_.z.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.z.handleIntersect=function(K){this.notSticky=K[0].intersectionRatio===1};
_.z.attached=function(){var K=this;document.addEventListener("scroll",_.Pc(this,this.updateHeaderState));var X;this.mastheadHeight=((X=document.querySelector("ytd-masthead"))==null?void 0:X.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(F){K.handleIntersect(F)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){K.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.z.detached=function(){document.removeEventListener("scroll",_.Pc(this,this.updateHeaderState));var K;(K=this.intersectionObserver)==null||K.disconnect();var X;(X=this.resizeObserver)==null||X.disconnect()};
_.z.updated=function(K){K.has("data")&&this.updateHeaderState()};
_.z.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(ZAL(!this.notSticky))};
_.z.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var K=_.C$(this.hostElement).querySelector("ytd-comments-header-renderer");K&&(K.hidePanelButton=this.commentsHidePanelButton)}};
_.z.onRetrieveLocation=function(K,X){this.containsComments()&&(this.firstCommentsLoaded=X.hasComments=!0)};
_.z.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.z.onLoadReloadContinuation=function(K,X){var F=this;K.stopPropagation();this.isReloading=!0;_.iX(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(P){var H=_.i9().resolve(_.oj);P=X(P);H.postData(P).then(function(f){F.onReloadContinuationData(f)})}})};
_.z.onReloadContinuationData=function(K){if(K=this.get("response.continuationContents.itemSectionContinuation",K)||this.get("response.contents.itemSectionRenderer",K)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",K)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",K))this.set("data.contents",K.contents||K.results),K.header&&this.set("data.header",K.header),this.set("data.continuations",
K.continuations||[]);this.isReloading=!1};
_.z.computeContentsClass=function(K){return K?"reloading":""};
_.z.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.z.computeSectionIdentifier=function(K){return K==null?void 0:K.sectionIdentifier};
_.z.computeFitContainer=function(K){return(K==null?void 0:K.sectionIdentifier)==="youchat-item-section"};
_.z.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.S("kevlar_disable_comments_auto_load")};
_.z.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.z.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.z.computeHasDestinationShelfRenderer=function(K){var X,F;return!!(K==null?0:(X=K.contents)==null?0:(F=X[0])==null?0:F.destinationShelfRenderer)};
_.z.computeHasSectionGroupViewModel=function(K){var X,F;return!!(K==null?0:(X=K.contents)==null?0:(F=X[0])==null?0:F.sectionGroupViewModel)};
_.z.computeHasQrCodeRenderer=function(K){var X,F;return!!(K==null?0:(X=K.contents)==null?0:(F=X[0])==null?0:F.qrCodeRenderer)};
_.z.computeStaticCommentsHeader=function(K){return K&&this.containsComments()};
_.z.computeEpRestyle=function(K){return _.S("web_ep_restyling")&&K&&this.containsComments()};
_.z.computeIsContinuationCommentSection=function(K){return(K==null?void 0:K.targetId)==="shorts-engagement-panel-comments-section"||(K==null?void 0:K.targetId)==="comments-section"||(K==null?void 0:K.targetId)==="engagement-panel-comments-section"};
_.z.computeSuppressPaddingDisclaimer=function(){var K,X,F,P;return!!((K=this.data)==null?0:(X=K.contents)==null?0:(F=X[0])==null?0:(P=F.productListHeaderRenderer)==null?0:P.suppressPaddingDisclaimer)};
_.z.computeHeaderStyle=function(K){switch(K==null?void 0:K.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.z.dataChanged=function(){this.firstCommentsLoaded=!1};
_.z.observeDataContentsLength=function(){var K,X;((K=this.data)==null?0:(X=K.contents)==null?0:X.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.z.onYtDismissibleItemDismissedChange=function(K){this._setItemDismissed(K.type==="yt-dismissible-item-dismissed")};
_.z.triggerContinuations=function(){for(var K=_.C$(this.hostElement).querySelector("#continuations").children,X=0;X<K.length;X++)K[X].trigger()};
_.z.triggerInitialContinuations=function(){for(var K=_.C$(this.hostElement).querySelector("#continuations").children,X=0;X<K.length;X++)K[X].triggerIfNotPreviouslyTriggered()};
_.z.handleYtItemSectionContinuation=function(K,X){var F;X&&((F=this.data)==null?void 0:F.sectionIdentifier)!==X||(this.set("data.continuations",[K]),this.triggerContinuations())};
_.z.handleYtItemSectionReplace=function(K,X){var F;X&&((F=this.data)==null?void 0:F.sectionIdentifier)!==X||(this.set("data.contents",K),this.set("data.continuations",[]))};
_.z.computeUseHeightHack=function(K){return K&&!_.S("kevlar_disable_height_hack")};
_.z.computeTopSpacingZero=function(K){return K};
_.z.continuationShowButtonChanged=function(){var K=_.C$(this.hostElement).querySelector("ytd-continuation-item-renderer");K&&(K.showButton=this.continuationShowButton)};
_.z.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R9("data-changed",this.data))};
_.Oi.Object.defineProperties(WS.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.S("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return!!((K=this.data)==null?0:(X=K.contents)==null?0:(F=X[0])==null?0:F.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var K,X,F,P,H,f,u;return!!((K=this.data)==null?0:(X=K.contents)==null?0:(F=X[0])==null?0:(P=F.shelfRenderer)==null?0:(H=P.content)==null?0:(f=H.gridRenderer)==null?0:(u=f.targetId)==null?0:u.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return!!((K=this.data)==null?0:(X=K.contents)==null?0:(F=X[0])==null?0:F.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return!!((K=this.data)==null?0:(X=K.contents)==null?0:(F=X[0])==null?0:F.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.KG("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.S("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.S("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14501_cachedViewportHeight-130)/150)},
set:function(){}}});
WS.prototype.dataChangedForBinding=WS.prototype.dataChangedForBinding;WS.prototype.continuationShowButtonChanged=WS.prototype.continuationShowButtonChanged;WS.prototype.onYtDismissibleItemDismissedChange=WS.prototype.onYtDismissibleItemDismissedChange;WS.prototype.observeDataContentsLength=WS.prototype.observeDataContentsLength;WS.prototype.dataChanged=WS.prototype.dataChanged;WS.prototype.onServiceRequestCompleted=WS.prototype.onServiceRequestCompleted;WS.prototype.onLoadReloadContinuation=WS.prototype.onLoadReloadContinuation;
WS.prototype.onRetrieveLocation=WS.prototype.onRetrieveLocation;WS.prototype.commentsHidePanelButtonChanged=WS.prototype.commentsHidePanelButtonChanged;WS.prototype.dispatchChipBarIsSticky=WS.prototype.dispatchChipBarIsSticky;WS.prototype.updateLockupContainerTypes=WS.prototype.updateLockupContainerTypes;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],WS.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],WS.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],WS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.CA.YtLazyListBehavior),_.g("design:type",Object)],WS.prototype,"ytLazyListBehavior",void 0);_.O([_.W(_.RQ.YtNextContinuationBehavior),_.g("design:type",Object)],WS.prototype,"ytNextContinuationBehavior",void 0);
_.O([_.W(_.eG),_.g("design:type",Object)],WS.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],WS.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],WS.prototype,"ytdReduxBehavior",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],WS.prototype,"darkerPanels",void 0);_.O([_.h(),_.g("design:type",Object)],WS.prototype,"data",void 0);
_.O([_.h(),_.g("design:type",Boolean)],WS.prototype,"engagementPanel",void 0);_.O([_.h(),_.g("design:type",Object)],WS.prototype,"commentsHidePanelButton",void 0);_.O([_.h(),_.g("design:type",Object)],WS.prototype,"isWatchGrid",void 0);_.O([_.h(),_.g("design:type",Object)],WS.prototype,"continuationShowButton",void 0);_.O([_.h({computed:"computeIsContinuationCommentSection(data)"}),_.g("design:type",Boolean)],WS.prototype,"continuationIsCommentsSection",void 0);
_.O([_.h({value:!0}),_.g("design:type",Boolean)],WS.prototype,"autoFill",void 0);_.O([_.h(),_.g("design:type",Boolean)],WS.prototype,"continuationDisablePrescanVisibility",void 0);_.O([_.h(),_.g("design:type",Boolean)],WS.prototype,"isReloading",void 0);_.O([_.h(),_.g("design:type",Object)],WS.prototype,"isSearch",void 0);_.O([_.h(),_.g("design:type",Object)],WS.prototype,"isConstrainedList",void 0);_.O([_.h(),_.g("design:type",Object)],WS.prototype,"isWatch",void 0);
_.O([_.h(),_.g("design:type",Object)],WS.prototype,"eligibleToSwitchToGrid",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],WS.prototype,"notSticky",void 0);_.O([_.h({selector:_.Wp}),_.g("design:type",Object)],WS.prototype,"isGridViewEnabled",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.g("design:type",Object)],WS.prototype,"epRestyle",void 0);
_.O([_.U("isWatch"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],WS.prototype,"hideShortsShelfHeader",null);_.O([_.U("isSearch","isWatch"),_.g("design:type",String),_.g("design:paramtypes",[])],WS.prototype,"thumbnailWidth",null);_.O([_.U("isSearch","isWatch"),_.g("design:type",String),_.g("design:paramtypes",[])],WS.prototype,"sizing",null);
_.O([_.U("isWatch","isGridViewEnabled","data"),_.h({reflectToAttribute:!0}),_.g("design:type",Number),_.g("design:paramtypes",[])],WS.prototype,"lockupContainerType",null);_.O([_.so("lockupContainerType","data"),_.g("design:type",Function),_.g("design:paramtypes",[Number]),_.g("design:returntype")],WS.prototype,"updateLockupContainerTypes",null);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],WS.prototype,"pageSubtype",void 0);
_.O([_.h({computed:"computeContainerWidth()"}),_.g("design:type",Number)],WS.prototype,"containerWidth",void 0);_.O([_.h(),_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],WS.prototype,"isPlaylist",null);_.O([_.h(),_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],WS.prototype,"isClipList",null);_.O([_.h(),_.g("design:type",Object)],WS.prototype,"isCarouselInFeed",void 0);
_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],WS.prototype,"isPlaylistVideoContainer",null);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],WS.prototype,"isSearchFrictionPage",null);_.O([_.h({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.g("design:type",Boolean)],WS.prototype,"useHeightHack",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.g("design:type",Object)],WS.prototype,"topSpacingZero",void 0);_.O([_.h({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.g("design:type",Boolean)],WS.prototype,"showButton",void 0);_.O([_.h(),_.g("design:type",Boolean)],WS.prototype,"firstCommentsLoaded",void 0);_.O([_.h(),_.g("design:type",Object)],WS.prototype,"continuationIsInitialLoad",void 0);
_.O([_.h(),_.g("design:type",Boolean)],WS.prototype,"isSearchDova",void 0);_.O([_.h({reflectToAttribute:!0,readOnly:!0}),_.g("design:type",Boolean)],WS.prototype,"itemDismissed",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.g("design:type",String)],WS.prototype,"sectionIdentifier",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.g("design:type",String)],WS.prototype,"fitContainer",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.g("design:type",Boolean)],WS.prototype,"hasDestinationShelfRenderer",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.g("design:type",Boolean)],WS.prototype,"staticCommentsHeader",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],WS.prototype,"enableSqueezebackPanels",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],WS.prototype,"enableAnchoredPanel",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.g("design:type",Boolean)],WS.prototype,"hasSectionGroupViewModel",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.g("design:type",Boolean)],WS.prototype,"hasQrCodeRenderer",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.g("design:type",Boolean)],WS.prototype,"suppressDisclaimerSeparator",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.g("design:type",String)],WS.prototype,"headerStyle",void 0);_.O([_.U("isSearch"),_.g("design:type",Object),_.g("design:paramtypes",[])],WS.prototype,"lockupExperiments",null);
_.O([_.U("isSearch"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],WS.prototype,"typographyBump",null);_.O([_.fa("#header"),_.g("design:type",HTMLElement)],WS.prototype,"header",void 0);_.O([_.so("notSticky"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],WS.prototype,"dispatchChipBarIsSticky",null);
_.O([_.so("commentsHidePanelButton"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],WS.prototype,"commentsHidePanelButtonChanged",null);_.O([_.Hc("yt-retrieve-location"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],WS.prototype,"onRetrieveLocation",null);
_.O([_.Hc("yt-load-reload-continuation"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Function]),_.g("design:returntype")],WS.prototype,"onLoadReloadContinuation",null);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],WS.prototype,"onServiceRequestCompleted",null);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],WS.prototype,"dataChanged",null);
_.O([_.JA("data.contents.length"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],WS.prototype,"observeDataContentsLength",null);_.O([_.Hc("yt-dismissible-item-dismissed"),_.Hc("yt-dismissible-item-undismissed"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],WS.prototype,"onYtDismissibleItemDismissedChange",null);
_.O([_.so("continuationShowButton"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],WS.prototype,"continuationShowButtonChanged",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],WS.prototype,"dataChangedForBinding",null);WS=_.O([_.v({is:"ytd-item-section-renderer",disableElementRegistration:!0})],WS);
_.t(WS,"ytd-item-section-renderer",function(){if(tsT!==void 0)return tsT;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return tsT=K},{mode:1});var S3Q;var VfM=_.GS(_.uY("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var ax9={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var oHN={},Oo3=(oHN[0]={title:_.bY(_.uY("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.bY(_.uY("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:gb("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},oHN[1]={title:_.bY(_.uY("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:gb("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},oHN);_.L4("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var dT=function(){var K=_.G.apply(this,arguments)||this;K.allVideosCount=0;K.allPlaylistCount=0;K.shouldRenderDownloadsBanner=!1;K.hasOptedIntoSmartDownloads=!1;K.areAllSmartDownloadsDeleted=!1;K.smartDownloadsCompleted=!1;return K};
_.r(dT,_.G);dT.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
dT.prototype.attached=function(){this.downloadsToRenderChanged()};
dT.prototype.detached=function(){this.set("renderableData",{})};
dT.prototype.downloadsToRenderChanged=function(){var K=_.aA().getState().entities,X=_.cv(K),F=_.S("kevlar_playlist_dl_page_killswitch")?znO(K):_.pI(K),P=_.XHl(K),H=_.ZH(X);K=_.Bv(K);this.set("renderableData",ET9(F,X,P,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,H,K))};
dT.prototype.downloadsToRenderChanged=dT.prototype.downloadsToRenderChanged;_.O([_.W(_.jn),_.g("design:type",Object)],dT.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],dT.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],dT.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],dT.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],dT.prototype,"renderableData",void 0);_.O([_.h({selector:_.B4P}),_.g("design:type",Object)],dT.prototype,"allVideosCount",void 0);_.O([_.h({selector:mp9}),_.g("design:type",Object)],dT.prototype,"allPlaylistCount",void 0);_.O([_.h({selector:_.jZ9}),_.g("design:type",Object)],dT.prototype,"shouldRenderDownloadsBanner",void 0);_.O([_.h({selector:_.wH3}),_.g("design:type",Object)],dT.prototype,"hasOptedIntoSmartDownloads",void 0);
_.O([_.h({selector:_.ypn}),_.g("design:type",Object)],dT.prototype,"areAllSmartDownloadsDeleted",void 0);_.O([_.h({selector:WQl}),_.g("design:type",Object)],dT.prototype,"smartDownloadsCompleted",void 0);_.O([_.JA("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],dT.prototype,"downloadsToRenderChanged",null);
dT=_.O([_.v({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],dT);
_.t(dT,"ytd-offline-item-section-renderer",function(){if(S3Q!==void 0)return S3Q;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return S3Q=K},
{mode:1});var LCZ;var TeE;var eK=function(){return _.G.apply(this,arguments)||this};
_.r(eK,_.G);
eK.prototype.onDataChanged=function(){if(this.JSC$14527_lastData){var K=this.getFilterClass(this.JSC$14527_lastData.status);K&&this.hostElement.classList.remove(K)}var X;(K=this.getFilterClass((X=this.data)==null?void 0:X.status))&&this.hostElement.classList.add(K);K==="selected"?_.C$(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.C$(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");K==="disabled"?_.C$(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.C$(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14527_lastData=this.data};
eK.prototype.getFilterClass=function(K){switch(K){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
eK.prototype.onDataChanged=eK.prototype.onDataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],eK.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],eK.prototype,"data",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],eK.prototype,"onDataChanged",null);eK=_.O([_.v({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],eK);
_.t(eK,"ytd-search-filter-renderer",function(){if(TeE!==void 0)return TeE;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return TeE=K},{mode:_.Ig("kevlar_poly_si_batch_j075")?1:2});var RO=function(){return _.G.apply(this,arguments)||this};
_.r(RO,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],RO.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],RO.prototype,"data",void 0);RO=_.O([_.v({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],RO);
_.t(RO,"ytd-search-filter-group-renderer",function(){if(LCZ!==void 0)return LCZ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return LCZ=K},{mode:_.Ig("kevlar_poly_si_batch_j075")?1:2});var rzZ;var Ut=function(){return _.G.apply(this,arguments)||this};
_.r(Ut,_.G);Ut.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Fz());this.isCollapsed=!this.isCollapsed};
Ut.prototype.navigateToAboutTheseResultsPage=function(){var K=ns("https://www.youtube.com/howyoutubeworks/product-features/search/");K?_.ei(window,K,"_blank"):_.UN(Error("Mh"))};
Ut.prototype.dataChanged=function(){this.isCollapsed=!0};
Ut.prototype.computeShowBottomBorder=function(){var K,X,F;return!!((K=this.data)==null?0:(X=K.button)==null?0:X.toggleButtonRenderer)||!((F=this.data)==null||!F.aboutTheseResultsButton)};
Ut.prototype.dataChanged=Ut.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Ut.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.g("design:type",Boolean)],Ut.prototype,"showBottomBorder",void 0);_.O([_.h(),_.g("design:type",Boolean)],Ut.prototype,"renderCollapsibleMenu",void 0);
_.O([_.h(),_.g("design:type",Boolean)],Ut.prototype,"isCollapsed",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ut.prototype,"dataChanged",null);Ut=_.O([_.v({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],Ut);
_.t(Ut,"ytd-search-sub-menu-renderer",function(){if(rzZ!==void 0)return rzZ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return rzZ=K},{mode:1});var Azt;var j6u=new _.Oh("SECTION_LIST_RENDERER_TOKEN");var w7L;var hu=function(){return _.G.apply(this,arguments)||this};
_.r(hu,_.G);hu.prototype.computeStyle=function(K){return K?K.toLowerCase().replace(/_/g,"-"):""};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],hu.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],hu.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.g("design:type",String)],hu.prototype,"headerStyle",void 0);hu=_.O([_.v({is:"ytd-text-header-renderer",disableElementRegistration:!0})],hu);
_.t(hu,"ytd-text-header-renderer",function(){if(w7L!==void 0)return w7L;var K=document.createElement("template");_.w(K,"\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");K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return w7L=K},{mode:1});var yzE;var mo=function(){return _.G.apply(this,arguments)||this};
_.r(mo,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],mo.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],mo.prototype,"data",void 0);mo=_.O([_.v({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],mo);
_.t(mo,"ytd-minor-moment-header-renderer",function(){if(yzE!==void 0)return yzE;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return yzE=K},{mode:1});var WCQ;var Ga=function(){return _.G.apply(this,arguments)||this};
_.r(Ga,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Ga.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Ga.prototype,"data",void 0);Ga=_.O([_.v({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],Ga);
_.t(Ga,"ytd-minor-moment-setting-alert-renderer",function(){if(WCQ!==void 0)return WCQ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return WCQ=K},{mode:1});var dIu;var euC;var l1=function(){var K=_.G.apply(this,arguments)||this;K.booleanSettingById=!1;K.smartDownloadsEnabledVE=_.cO(128287);K.smartDownloadsDisabledVE=_.cO(128286);K.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return K};
_.r(l1,_.G);_.z=l1.prototype;_.z.attachSmartDownloadsSettingVes=function(){var K;this.activeVeForLogging||((K=this.data)==null?void 0:K.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.k2(_.uH(),this.smartDownloadsEnabledVE),_.k2(_.uH(),this.smartDownloadsDisabledVE))};
_.z.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.iX(this.hostElement,"yt-settings-switch-ready")};
_.z.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.z.onSwitchChange=function(K){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(K=_.vI(K).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.S("kevlar_settings_switch_resolve_command_killswitch")?_.i9().resolve(_.xU).resolveCommand(K,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(K)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.z.handleUpdateSettingsSwitch=function(K){(K=_.T(K,n_O))&&this.data&&this.data.id===K.id&&this.set("data.enabled",!!K.enabled)};
_.z.onToggleSettingsSwitch=function(K,X){this.data&&this.data.id===K&&this.set("data.enabled",X!=null?X:!this.data.enabled)};
_.z.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.$2.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.z.maybeLogSmartDownloadsSettingVisibility=function(){var K=_.AD(),X;K&&((X=this.data)==null?void 0:X.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.G6(K,[this.smartDownloadsEnabledVE]),_.lY(K,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.G6(K,[this.smartDownloadsDisabledVE]),_.lY(K,[this.smartDownloadsEnabledVE])))};
_.z.maybeLogSmartDownloadsSettingClick=function(){var K;((K=this.data)==null?void 0:K.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.XT(_.uH(),this.activeVeForLogging)};
_.z.updateDataEnabledFromBinding=function(K){this.set("data.enabled",K.detail.value)};
_.Oi.Object.defineProperties(l1.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var K=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!K&&(K=this.ytRendererBehavior.getSimpleString(this.data.title));return K}}});
l1.prototype.dataChanged=l1.prototype.dataChanged;_.O([_.W(_.jn),_.g("design:type",Object)],l1.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],l1.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],l1.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],l1.prototype,"ytComponentBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],l1.prototype,"data",void 0);_.O([_.h({selector:function(K,X){if(Object.keys(K==null?void 0:K.entities).length)switch(X){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return f6P(K.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.g("design:type",Object)],l1.prototype,"booleanSettingById",void 0);_.O([_.h(),_.g("design:type",_.TY)],l1.prototype,"activeVeForLogging",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],l1.prototype,"toggleAriaLabel",null);_.O([_.JA("data"),_.JA("booleanSettingById"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],l1.prototype,"dataChanged",null);
l1=_.O([_.v({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],l1);
_.t(l1,"ytd-settings-switch-renderer",function(){if(euC!==void 0)return euC;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return euC=K},{mode:1});var vS=function(){return _.G.apply(this,arguments)||this};
_.r(vS,_.G);vS.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}}}}};
_.Oi.Object.defineProperties(vS.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var K=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(K+=" remove-left-margin");this.data.extraBottomSpace&&(K+=" extra-bottom-space");return K}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],vS.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],vS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],vS.prototype,"data",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],vS.prototype,"contentsClassName",null);vS=_.O([_.v({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],vS);
_.t(vS,"ytd-minor-moment-setting-section-renderer",function(){if(dIu!==void 0)return dIu;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return dIu=K},{mode:1});var RuW;var aO=function(){return _.G.apply(this,arguments)||this};
_.r(aO,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],aO.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],aO.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],aO.prototype,"data",void 0);aO=_.O([_.v({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],aO);
_.t(aO,"ytd-empty-product-details-renderer",function(){if(RuW!==void 0)return RuW;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return RuW=K},{mode:1});var UIN;var huZ;var tu=function(){var K=_.G.apply(this,arguments)||this;K.expanded=!0;return K};
_.r(tu,_.G);tu.prototype.getBadgeRowClass=function(K,X,F){for(var P=_.D(this.hostElement.querySelectorAll("yt-img-shadow")),H=P.next();!H.done;H=P.next())H.value.onShow();K=K.selected;return F?K!==-1?K===X?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(K!==void 0?K:0)===X?"badge-line":"badge-hidden"};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],tu.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],tu.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],tu.prototype,"expanded",void 0);tu=_.O([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],tu);
_.t(tu,"ytd-sponsorships-loyalty-badges-renderer",function(){if(huZ!==void 0)return huZ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return huZ=K},{mode:1});var mIE;var $Y=function(){var K=_.G.apply(this,arguments)||this;K.expanded=!0;return K};
_.r($Y,_.G);$Y.prototype.getContainerClasses=function(K,X){K=K?"expanded":"collapsed";X&&(K+=" item");return K};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],$Y.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],$Y.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],$Y.prototype,"expanded",void 0);$Y=_.O([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],$Y);
_.t($Y,"ytd-sponsorships-perk-renderer",function(){if(mIE!==void 0)return mIE;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return mIE=K},{mode:1});var GcC;var Ot=function(){var K=_.G.apply(this,arguments)||this;K.expanded=!0;return K};
_.r(Ot,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Ot.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Ot.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],Ot.prototype,"expanded",void 0);Ot=_.O([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],Ot);
_.t(Ot,"ytd-sponsorships-perks-renderer",function(){if(GcC!==void 0)return GcC;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return GcC=K},{mode:1});var VX=function(){var K=_.G.apply(this,arguments)||this;K.isCollapsed=!1;return K};
_.r(VX,_.G);VX.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
VX.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
VX.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var K;this.expandCollapseButton=_.T((K=this.data)==null?void 0:K.expandButton,_.jg)}else{var X;this.expandCollapseButton=_.T((X=this.data)==null?void 0:X.collapseButton,_.jg)}};
VX.prototype.updateExpandCollapseButton=VX.prototype.updateExpandCollapseButton;VX.prototype.onDataChanged=VX.prototype.onDataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],VX.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],VX.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],VX.prototype,"isCollapsed",void 0);_.O([_.h(),_.g("design:type",Object)],VX.prototype,"expandCollapseButton",void 0);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],VX.prototype,"onDataChanged",null);_.O([_.JA("data","isCollapsed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],VX.prototype,"updateExpandCollapseButton",null);VX=_.O([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],VX);
_.t(VX,"ytd-sponsorships-expandable-perks-renderer",function(){if(UIN!==void 0)return UIN;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return UIN=K},{mode:1});var lSt;var gT=function(){return _.G.apply(this,arguments)||this};
_.r(gT,_.G);gT.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],gT.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],gT.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],gT.prototype,"data",void 0);gT=_.O([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],gT);
_.t(gT,"ytd-sponsorships-actionable-message-renderer",function(){if(lSt!==void 0)return lSt;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return lSt=K},{mode:1});var vHE;var Et=function(){return _.G.apply(this,arguments)||this};
_.r(Et,_.G);_.z=Et.prototype;_.z.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.z.getExpansionIcon=function(K){return K?"COLLAPSE":"EXPAND"};
_.z.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.z.computeMessageContainerStyle=function(K){var X=K.expandableItems?" style-clickable":"";return K.messageContainerStyle?K.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+X:"style-unspecified"+X};
_.z.isSinglePerk=function(K){return!!K.messageContainerStyle&&(K.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||K.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.z.onExpandedChanged=function(){var K=this;if(this.expanded)for(var X=_.D(this.hostElement.querySelectorAll("yt-img-shadow")),F=X.next();!F.done;F=X.next())F.value.onShow();_.tg(this,function(){_.iX(K.hostElement,"yt-refit")})};
_.z.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
Et.prototype.onDataChanged=Et.prototype.onDataChanged;Et.prototype.onExpandedChanged=Et.prototype.onExpandedChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Et.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Et.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Et.prototype,"data",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],Et.prototype,"expanded",void 0);
_.O([_.so("expanded"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Et.prototype,"onExpandedChanged",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Et.prototype,"onDataChanged",null);Et=_.O([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],Et);
_.t(Et,"ytd-sponsorships-expandable-message-renderer",function(){if(vHE!==void 0)return vHE;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return vHE=K},{mode:_.Ig("kevlar_poly_si_batch_j028")?1:2});var aST;var b1=function(){return _.G.apply(this,arguments)||this};
_.r(b1,_.G);b1.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"}}}}};
b1.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.T(this.data.endButton,_.jg).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
b1.prototype.onDataChanged=b1.prototype.onDataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],b1.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],b1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],b1.prototype,"data",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],b1.prototype,"onDataChanged",null);
b1=_.O([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],b1);
_.t(b1,"ytd-sponsorships-heading-renderer",function(){if(aST!==void 0)return aST;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return aST=K},{mode:1});var tct;var CK=function(){return _.G.apply(this,arguments)||this};
_.r(CK,_.G);_.O([_.h(),_.g("design:type",Object)],CK.prototype,"data",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],CK.prototype,"ytRendererBehavior",void 0);CK=_.O([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],CK);
_.t(CK,"ytd-sponsorships-links-renderer",function(){if(tct!==void 0)return tct;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return tct=K},{mode:1});var $IT;var Nn=function(){return _.G.apply(this,arguments)||this};
_.r(Nn,_.G);_.z=Nn.prototype;_.z.onDataChanged=function(){if(this.data&&this.data.expandableItems){var K;(K=_.C$(this.hostElement).querySelector("tp-yt-paper-button"))==null||K.setAttribute("role","button")}else{var X;(X=_.C$(this.hostElement).querySelector("tp-yt-paper-button"))==null||X.removeAttribute("role")}};
_.z.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.z.getExpansionIcon=function(K){return K?"COLLAPSE":"EXPAND"};
_.z.getTileClasses=function(K){return K?"tile expandable-tile":"tile"};
_.z.getButtonDisabled=function(K){return K?void 0:""};
Nn.prototype.onDataChanged=Nn.prototype.onDataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Nn.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Nn.prototype,"data",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],Nn.prototype,"expanded",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Nn.prototype,"onDataChanged",null);
Nn=_.O([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],Nn);
_.t(Nn,"ytd-sponsorships-list-tile-renderer",function(){if($IT!==void 0)return $IT;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return $IT=K},{mode:1});var Oqu;var VcQ;var i1=function(){return _.G.apply(this,arguments)||this};
_.r(i1,_.G);i1.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],i1.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],i1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],i1.prototype,"data",void 0);i1=_.O([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],i1);
_.t(i1,"ytd-sponsorships-promotion-renderer",function(){if(VcQ!==void 0)return VcQ;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return VcQ=K},{mode:1});var gHW;var xY=function(){return _.G.apply(this,arguments)||this};
_.r(xY,_.G);xY.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],xY.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],xY.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],xY.prototype,"data",void 0);xY=_.O([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],xY);
_.t(xY,"ytd-sponsorships-purchase-option-renderer",function(){if(gHW!==void 0)return gHW;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return gHW=K},{mode:1});var EHL;var bqU;var IO=function(){return _.G.apply(this,arguments)||this};
_.r(IO,_.G);_.O([_.h(),_.g("design:type",Object)],IO.prototype,"data",void 0);IO=_.O([_.v({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],IO);
_.t(IO,"ytd-ypc-offer-promo-renderer",function(){if(bqU!==void 0)return bqU;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return bqU=K},{mode:1});var kY=function(){return _.G.apply(this,arguments)||this};
_.r(kY,_.G);_.z=kY.prototype;
_.z.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.expandableMessage":{id:"expandable-message",mapping:{sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.purchaseOption":{id:"purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},"data.alternativePurchaseOption":{id:"alternative-purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},
"data.offerPromoCard":{id:"offer-promo",mapping:{ypcOfferPromoRenderer:{component:"ytd-ypc-offer-promo-renderer"}}}}};
_.z.expansionCTA=function(K,X){return K&&(X?K.collapseCallToAction:K.expansionCallToAction)};
_.z.getExpansionIcon=function(K){return K?"COLLAPSE":"EXPAND"};
_.z.expansionCallToActionTap=function(){var K=this;this.expanded=!this.expanded;_.tg(this,function(){_.iX(K.hostElement,"yt-refit")})};
_.z.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var K,X=(K=this.data)==null?void 0:K.onVisible;X&&this.ytComponentBehavior.resolveCommand(X)};
_.z.computeDisplayTitle=function(K){return!(!K||this.titledisplaystatus!=="show")};
_.z.computeDisplaySeparator=function(){return!1};
_.z.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
kY.prototype.onDataChanged=kY.prototype.onDataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],kY.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],kY.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],kY.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],kY.prototype,"data",void 0);
_.O([_.h({value:!1}),_.g("design:type",Boolean)],kY.prototype,"expanded",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],kY.prototype,"purchaseButtonClicked",void 0);_.O([_.h({reflectToAttribute:!0,value:"show"}),_.g("design:type",String)],kY.prototype,"titledisplaystatus",void 0);_.O([_.h({computed:"computeDisplayTitle(data.title)"}),_.g("design:type",Boolean)],kY.prototype,"displayTitle",void 0);
_.O([_.h({computed:"computeDisplaySeparator(data)"}),_.g("design:type",Boolean)],kY.prototype,"displaySeparator",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],kY.prototype,"onDataChanged",null);kY=_.O([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],kY);
_.t(kY,"ytd-sponsorships-tier-renderer",function(){if(EHL!==void 0)return EHL;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return EHL=K},{mode:2});var KX=function(){return _.G.apply(this,arguments)||this};
_.r(KX,_.G);
KX.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"}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],KX.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],KX.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],KX.prototype,"data",void 0);KX=_.O([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],KX);
_.t(KX,"ytd-sponsorships-management-renderer",function(){if(Oqu!==void 0)return Oqu;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return Oqu=K},{mode:1});var C7T;var Xt=function(){return _.G.apply(this,arguments)||this};
_.r(Xt,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Xt.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Xt.prototype,"data",void 0);Xt=_.O([_.v({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],Xt);
_.t(Xt,"ytd-open-in-native-app-view-model",function(){if(C7T!==void 0)return C7T;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return C7T=K},{mode:_.Ig("kevlar_poly_si_batch_j028")?1:2});var NeC;var iqW;var xIN=_.lr(["top-"]),ISC=_.lr(["bottom-"]),kcL=_.lr(["left-"]),K1U=_.lr(["right-"]),XQu={},F1Z=function(K,X,F){K.removeAttribute("top-"+F);K.removeAttribute("bottom-"+F);K.removeAttribute("left-"+F);K.removeAttribute("right-"+F);X&&(X.top&&_.af([_.kE(xIN)],K,"top-"+F,X.top),X.bottom&&_.af([_.kE(ISC)],K,"bottom-"+F,X.bottom),X.left&&_.af([_.kE(kcL)],K,"left-"+F,X.left),X.right&&_.af([_.kE(K1U)],K,"right-"+F,X.right))};
XQu.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(K){var X,F=_.C$((X=this.hostElement)!=null?X:this),P;X=this.cardItemBoxBehaviorMarginTargetId&&F?F.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(P=this.hostElement)!=null?P:this;F1Z(X,K,"margin")},
cardItemContainerPaddingChanged_:function(K){var X,F=_.C$((X=this.hostElement)!=null?X:this),P;X=this.cardItemBoxBehaviorPaddingTargetId&&F?F.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(P=this.hostElement)!=null?P:this;F1Z(X,K,"padding")}}];var Ft={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 PPQ;var Hmt;var PX=function(){return _.G.apply(this,arguments)||this};
_.r(PX,_.G);PX.prototype.textColorChanged_=function(){this.hostElement.style.color=Ft[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
PX.prototype.textColorChanged_=PX.prototype.textColorChanged_;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],PX.prototype,"ytRendererBehavior",void 0);_.O([_.W(XQu.YtCardItemBoxBehavior),_.g("design:type",Object)],PX.prototype,"ytCardItemBoxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],PX.prototype,"data",void 0);_.O([_.so("data.textColor"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],PX.prototype,"textColorChanged_",null);
PX=_.O([_.Tb({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],PX);
_.t(PX,"yt-card-item-text-renderer",function(){if(Hmt===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;PPQ===void 0&&(PPQ=document.createElement("template"));var P=PPQ;F.call(X,P.content.cloneNode(!0),K.content.firstChild);Hmt=K}K=Hmt;return K},{mode:2});var sFT;var zsQ;var HX=function(){return _.G.apply(this,arguments)||this};
_.r(HX,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],HX.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],HX.prototype,"data",void 0);HX=_.O([_.Tb({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],HX);
_.t(HX,"yt-card-item-badge-renderer",function(){if(zsQ===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;sFT===void 0&&(sFT=document.createElement("template"));var P=sFT;F.call(X,P.content.cloneNode(!0),K.content.firstChild);zsQ=K}K=zsQ;return K},{mode:2});var f3Z;var DNQ;var sW=function(){return _.G.apply(this,arguments)||this};
_.r(sW,_.G);sW.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],sW.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],sW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],sW.prototype,"data",void 0);sW=_.O([_.Tb({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],sW);
_.t(sW,"yt-card-item-text-collection-renderer",function(){if(DNQ===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;f3Z===void 0&&(f3Z=document.createElement("template"));var P=f3Z;F.call(X,P.content.cloneNode(!0),K.content.firstChild);DNQ=K}K=DNQ;return K},{mode:2});var udN;var q8C;var zG=function(){return _.G.apply(this,arguments)||this};
_.r(zG,_.G);zG.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]]"}}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],zG.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],zG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],zG.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Number)],zG.prototype,"iconSize",void 0);zG=_.O([_.Tb({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],zG);
_.t(zG,"yt-card-item-text-with-button-renderer",function(){if(q8C===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;udN===void 0&&(udN=document.createElement("template"));var P=udN;F.call(X,P.content.cloneNode(!0),K.content.firstChild);q8C=K}K=q8C;return K},{mode:2});var fX=function(){return _.G.apply(this,arguments)||this};
_.r(fX,_.G);fX.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"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],fX.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],fX.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],fX.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],fX.prototype,"data",void 0);fX=_.O([_.v({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],fX);
_.t(fX,"ytd-commerce-cart-summary-line-item-renderer",function(){if(iqW!==void 0)return iqW;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return iqW=K},{mode:1});_.L4("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var DE=function(){var K=_.G.apply(this,arguments)||this;K.hidden=!1;return K};
_.r(DE,_.G);_.z=DE.prototype;_.z.configureRendererStamper=function(){return{"data.estimatedTotalLineItem":{id:"estimated-total-line-item",mapping:{commerceCartSummaryLineItemRenderer:"ytd-commerce-cart-summary-line-item-renderer"}},"data.checkoutButton":{id:"checkout-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.cartButton":{id:"cart-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.z.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.z.updateSummary=function(){var K=this.commerceCartCheckoutButtonEntity,X;if(((X=this.data)==null?0:X.cartButton)&&K.checkoutSummaryText){var F,P=jI((F=this.data)==null?void 0:F.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+P+".cardItemTextRenderer.text",wM(K.checkoutSummaryText));if(K.checkoutDetailText){var H;F=jI((H=this.data)==null?void 0:H.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+F+".cardItemTextRenderer.text",wM(K.checkoutDetailText))}if(K.checkoutAdditionalMetadataText){var f;
H=jI((f=this.data)==null?void 0:f.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+H+".cardItemTextRenderer.text",wM(K.checkoutAdditionalMetadataText))}}else K.estimatedTotalPrice&&(f=jI((P=this.data)==null?void 0:P.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+f+".cardItemTextRenderer.text",wM(K.estimatedTotalPrice)))};
_.z.updateIsHidden=function(){var K,X=(K=this.commerceCartCheckoutButtonEntity)==null?void 0:K.isHidden;X!==void 0&&(this.hidden=X)};
_.z.updateCheckoutButton=function(){var K,X=(K=this.commerceCartCheckoutButtonEntity)==null?void 0:K.isDisabled;X!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",X);var F;K=(F=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:F.innertubeCommand;K!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",K);var P;F=(P=this.commerceCartCheckoutButtonEntity)==null?void 0:P.checkoutButtonText;F!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:F})};
DE.prototype.entityChanged=DE.prototype.entityChanged;_.O([_.W(_.jn),_.g("design:type",Object)],DE.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],DE.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],DE.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],DE.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],DE.prototype,"fullWidth",void 0);_.O([_.h(),_.g("design:type",Object)],DE.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],DE.prototype,"compact",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],DE.prototype,"hidden",void 0);
_.O([_.h({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:S1y}),_.g("design:type",Object)],DE.prototype,"commerceCartCheckoutButtonEntity",void 0);_.O([_.so("commerceCartCheckoutButtonEntity","data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],DE.prototype,"entityChanged",null);DE=_.O([_.v({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],DE);
_.t(DE,"ytd-commerce-cart-checkout-button-renderer",function(){if(NeC!==void 0)return NeC;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return NeC=K},{mode:2});var JyV;_.ZmL={};
_.ZmL.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",_.Pc(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.Pc(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(K){!this.tappableItemBehaviorTapEnabled||K.keyCode!==13&&K.keyCode!==32||K.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var K=this.data.onTap;K.ypcGetCartEndpoint?(_.Kl(this.hostElement,[K]),this.tappableItemBehaviorTapEnabled=!1):K.ypcOffersEndpoint?_.Kl(this.hostElement,[K]):_.X0(this.hostElement,[K],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(K){this.tappableItemBehaviorTapEnabled=!!K},
tappableItemBehaviorOnTapEnabledChanged_:function(){var K=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(K.setAttribute("tabIndex",0),K.setAttribute("role","button")):(K.removeAttribute("tabIndex"),K.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(K){K.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var Y8C;var QFZ;var uw=function(){return _.G.apply(this,arguments)||this};
_.r(uw,_.G);uw.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.T9("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.T9("sharingToggleButtonAndDefaultButton")}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],uw.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],uw.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],uw.prototype,"data",void 0);uw=_.O([_.Tb({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],uw);
_.t(uw,"yt-card-item-actions-renderer",function(){if(QFZ===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;Y8C===void 0&&(Y8C=document.createElement("template"));var P=Y8C;F.call(X,P.content.cloneNode(!0),K.content.firstChild);QFZ=K}K=QFZ;return K},{mode:2});var M$N;var ntC;var cyN;var pQO;var BtV;var S8V;var qb=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return K};
_.r(qb,_.G);qb.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
qb.prototype.handleDarkModeToggledAction_=function(K){this.isDarkTheme_=K};
qb.prototype.computeThemeImage_=function(K,X){if(!K||!K.imageLight)return!1;this.isCircular_=K.isCircular;K.imageWidth&&(this.hostElement.style.width=K.imageWidth+"px");K.imageHeight&&(this.hostElement.style.height=K.imageHeight+"px");K.borderWidth&&(this.image.style.borderWidth=K.borderWidth+"px",this.image.style.borderStyle="solid");K.borderColor&&(this.image.style.borderColor=_.wq(K.borderColor));return X&&K.imageDark?K.imageDark:K.imageLight};
qb.prototype.computeThemeIcon_=function(K){var X,F;if(!(K==null?0:(X=K.themedIcon)==null?0:(F=X.icon)==null?0:F.iconType))return!1;this.icon.style.color=Ft[K.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(K.imageWidth||18)+"px";this.icon.style.height=(K.imageHeight||18)+"px";return _.Fl(K.themedIcon.icon.iconType)};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],qb.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],qb.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(XQu.YtCardItemBoxBehavior),_.g("design:type",Object)],qb.prototype,"ytCardItemBoxBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],qb.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],qb.prototype,"data",void 0);
_.O([_.h({value:!1}),_.g("design:type",Boolean)],qb.prototype,"fit",void 0);_.O([_.h(),_.g("design:type",Boolean)],qb.prototype,"isDarkTheme_",void 0);_.O([_.h({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.g("design:type",Object)],qb.prototype,"themeImage_",void 0);_.O([_.h({computed:"computeThemeIcon_(data)"}),_.g("design:type",Object)],qb.prototype,"themeIcon_",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Object)],qb.prototype,"isCircular_",void 0);
_.O([_.fa("#image"),_.g("design:type",Object)],qb.prototype,"image",void 0);_.O([_.fa("#icon"),_.g("design:type",Object)],qb.prototype,"icon",void 0);qb=_.O([_.Tb({is:"yt-themed-image-renderer",disableElementRegistration:!0})],qb);
_.t(qb,"yt-themed-image-renderer",function(){if(S8V===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;BtV===void 0&&(BtV=document.createElement("template"));var P=BtV;F.call(X,P.content.cloneNode(!0),K.content.firstChild);S8V=K}K=S8V;return K},{mode:2});var JR=function(){return _.G.apply(this,arguments)||this};
_.r(JR,_.G);JR.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"}}}}};
JR.prototype.computeImagePlacement_=function(K){return K||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],JR.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],JR.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],JR.prototype,"data",void 0);_.O([_.h({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.g("design:type",String)],JR.prototype,"imagePlacement",void 0);
JR=_.O([_.Tb({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],JR);
_.t(JR,"yt-card-item-text-with-image-renderer",function(){if(pQO===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;cyN===void 0&&(cyN=document.createElement("template"));var P=cyN;F.call(X,P.content.cloneNode(!0),K.content.firstChild);pQO=K}K=pQO;return K},{mode:2});var ZE=function(){return _.G.apply(this,arguments)||this};
_.r(ZE,_.G);ZE.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"}}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],ZE.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ZE.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],ZE.prototype,"data",void 0);ZE=_.O([_.Tb({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],ZE);
_.t(ZE,"yt-card-item-error-renderer",function(){if(ntC===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;M$N===void 0&&(M$N=document.createElement("template"));var P=M$N;F.call(X,P.content.cloneNode(!0),K.content.firstChild);ntC=K}K=ntC;return K},{mode:2});var otW;var L1E;_.L4("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var YN=function(){return _.G.apply(this,arguments)||this};
_.r(YN,_.G);_.z=YN.prototype;
_.z.configureRendererStamper=function(){return{"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",
mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"},cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},themedImageRenderer:{component:"yt-themed-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}},"data.errorRenderer":{id:"error-renderer",mapping:{cardItemErrorRenderer:{component:"yt-card-item-error-renderer"}}},"data.headerPromoRenderer":{id:"header-promo-renderer",
mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.footerRenderer":{id:"footer-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.z.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.z.backgroundColorChanged_=function(){var K,X=(K=this.data)==null?void 0:K.backgroundColor;K=Ft[X||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.C$(this.hostElement).querySelector("#main-content").style.backgroundColor=K};
_.z.headerPromoBackgroundColorChanged_=function(){var K,X=(K=this.data)==null?void 0:K.headerPromoBackgroundColor;K=Ft[X||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.C$(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=K};
_.z.errorRendererVisibilityChanged_=function(){var K=this.isExpanded_,X;this.isErrorRendererVisible_=!((X=this.data)==null||!X.errorRenderer)&&!K};
_.z.onYtToggleButton_=function(K,X){this.isExpanded_=X.toggled};
YN.prototype.onYtToggleButton_=YN.prototype.onYtToggleButton_;YN.prototype.errorRendererVisibilityChanged_=YN.prototype.errorRendererVisibilityChanged_;YN.prototype.headerPromoBackgroundColorChanged_=YN.prototype.headerPromoBackgroundColorChanged_;YN.prototype.backgroundColorChanged_=YN.prototype.backgroundColorChanged_;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],YN.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],YN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(XQu.YtCardItemBoxBehavior),_.g("design:type",Object)],YN.prototype,"ytCardItemBoxBehavior",void 0);_.O([_.W(_.ZmL.YtTappableItemBehavior),_.g("design:type",Object)],YN.prototype,"ytTappableItemBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],YN.prototype,"data",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],YN.prototype,"isExpanded_",void 0);
_.O([_.h({value:!1}),_.g("design:type",Boolean)],YN.prototype,"isErrorRendererVisible_",void 0);_.O([_.so("data.backgroundColor"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],YN.prototype,"backgroundColorChanged_",null);_.O([_.so("data.headerPromoBackgroundColor"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],YN.prototype,"headerPromoBackgroundColorChanged_",null);
_.O([_.so("data.errorRenderer","isExpanded_"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],YN.prototype,"errorRendererVisibilityChanged_",null);_.O([_.Hc("yt-toggle-button"),_.g("design:type",Function),_.g("design:paramtypes",[Event,Object]),_.g("design:returntype")],YN.prototype,"onYtToggleButton_",null);YN=_.O([_.Tb({is:"yt-card-item-renderer",disableElementRegistration:!0})],YN);
_.t(YN,"yt-card-item-renderer",function(){if(L1E===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;otW===void 0&&(otW=document.createElement("template"));var P=otW;F.call(X,P.content.cloneNode(!0),K.content.firstChild);L1E=K}K=L1E;return K},{mode:2});_.L4("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var QC=function(){var K=_.G.apply(this,arguments)||this;K.hidden=!1;return K};
_.r(QC,_.G);_.z=QC.prototype;_.z.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.z.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.z.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var K,X=(K=this.commerceCartHeaderEntity)==null?void 0:K.isHidden;X!==void 0&&(this.hidden=X)}};
_.z.updateTitle=function(){var K=this.commerceCartHeaderEntity.isDisabled,X,F,P=(F=_.T((X=this.data)==null?void 0:X.item,rpW))==null?void 0:F.headingRenderer;P&&(X=jI(P,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+X+".0.cardItemTextRenderer.textColor",K?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.z.updateSummaryText=function(){var K=this.commerceCartHeaderEntity;if(this.compact){var X,F,P=(F=_.T((X=this.data)==null?void 0:X.item,rpW))==null?void 0:F.headingRenderer;P&&(X=jI(P,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+X+".1.cardItemTextRenderer.text",K.shortHeaderSummaryText?wM(K.shortHeaderSummaryText):K.headerSummaryText?wM(K.headerSummaryText):""))}else{var H;if(X=(H=_.T((P=this.data)==null?void 0:P.item,rpW))==null?void 0:H.additionalInfoRenderer)X=jI(X,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+X+".text",K.headerSummaryText?wM(K.headerSummaryText):"")}};
_.z.updateCheckoutButton=function(){var K=this.commerceCartHeaderEntity,X,F,P=(F=_.T((X=this.data)==null?void 0:X.item,rpW))==null?void 0:F.additionalInfoRenderer;X=jI(P,"buttonRenderer");var H;F=(H=this.commerceCartHeaderEntity)==null?void 0:H.isButtonDisabled;var f;H=(f=this.commerceCartHeaderEntity)==null?void 0:f.isButtonHidden;F!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+X+".buttonRenderer.isDisabled",F);H!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
H);var u;K=(u=K.checkoutButtonCommand)==null?void 0:u.innertubeCommand;K!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+X+".buttonRenderer.command",K)};
QC.prototype.entityChanged=QC.prototype.entityChanged;_.O([_.W(_.jn),_.g("design:type",Object)],QC.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],QC.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],QC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],QC.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],QC.prototype,"compact",void 0);_.O([_.h({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(K,X){return _.FF(K.entities,"commerceCartHeaderEntity",X)}}),
_.g("design:type",Object)],QC.prototype,"commerceCartHeaderEntity",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],QC.prototype,"hidden",void 0);_.O([_.so("commerceCartHeaderEntity","data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],QC.prototype,"entityChanged",null);QC=_.O([_.v({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],QC);
_.t(QC,"ytd-commerce-cart-header-renderer",function(){if(JyV!==void 0)return JyV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return JyV=K},{mode:1});var Ttt;var ryC=_.Dn(function(K,X){var F;return(F=K.onChangeCallback)==null?void 0:F.call(K,X)},1E3),AyN=_.$c(function(K){var X=K.data;
var F=K.iconMinus;K=K.iconPlus;var P=function(){return!!X().disabled},H=_.D(_.u_(0,void 0,"r56zNb")),f=H.next().value,u=H.next().value;
H={};H=_.HO("yt-spec-quantity-incrementer-shape__icon",(H["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return P()||f()===(X().onRemoveCommand?0:1)},H));
var J={};J=_.HO("yt-spec-quantity-incrementer-shape__icon",(J["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return f()>=X().maxValue||P()},J));
var Z={};Z=_.HO("yt-spec-quantity-incrementer-shape__text",(Z["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return f()>X().maxValue},Z["yt-spec-quantity-incrementer-shape__text--text-disabled"]=P,Z));
var M=_.DF(function(){if(f()===1){var c,B;(B=(c=X()).onRemoveCommand)==null||B.call(c)}c=f()>X().maxValue?X().maxValue:f()-1;u(c);ryC(X(),c);return!1}),n=_.DF(function(){if(f()===X().maxValue)return!1;
var c=f()+1;u(c);ryC(X(),c);return!1});
_.Tr(function(){u(X().value)});
return _.Q("quantity-incrementer-shape",null,_.Q("div",{class:"yt-spec-quantity-incrementer-shape"},_.Q("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return f()===(X().onRemoveCommand?0:1)||P()},
"aria-label":function(){return f()!==1?X().minusLabel:X().minimumReachedLabel},
"on:click":M},_.Q(_.MB,{model:{circular:!0}}),_.Q("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.Q("div",{class:H},F()))),_.Q("div",{class:Z},f),_.Q("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return f()>=X().maxValue||P()},
"aria-label":function(){return f()!==X().maxValue?X().plusLabel:X().maximumReachedLabel},
"on:click":n},_.Q(_.MB,{model:{circular:!0}}),_.Q("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.Q("div",{class:J},K())))))},"Qd");_.EP(_.$c(function(K){function X(){F().onRemoveCommand&&_.e9(F().onRemoveCommand)}
var F=K.data;var P=_.sy(jqy,function(){return F().quantityIncrementerEntityKey});
return _.Q("yt-quantity-incrementer-view-model",null,_.Q(AyN,{data:function(){var H=F(),f;var u=P()?!((f=P())==null||!f.disabled):!1;var J;f=P()?(J=P())==null?void 0:J.quantity:F().quantity;return NOd(H,u,X,f)},
iconMinus:function(){return _.Q(_.ZF,{icon:"BAR_HORIZONTAL",className:_.z9("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.Q(_.ZF,{icon:"ADD",className:_.z9("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"Rd"),"yt-quantity-incrementer-view-model",{props:{data:_.vU}});var Mb=function(){var K=_.G.apply(this,arguments)||this;K.compact=!1;K.hasQuantityIncrementer=!1;return K};
_.r(Mb,_.G);Mb.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"}}}};
Mb.prototype.computeHasQuantityIncrementer=function(){var K;return!!_.T((K=this.data)==null?void 0:K.picker,ypE)};
Mb.prototype.onLabelClick=function(){var K;(K=this.dropdownEl)==null||K.open()};
_.O([_.fa("ytd-dropdown-renderer"),_.g("design:type",Object)],Mb.prototype,"dropdownEl",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Mb.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Mb.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Mb.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],Mb.prototype,"quantityColor",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Mb.prototype,"compact",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.g("design:type",Object)],Mb.prototype,"hasQuantityIncrementer",void 0);Mb=_.O([_.v({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],Mb);
_.t(Mb,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(Ttt!==void 0)return Ttt;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Ttt=K},{mode:1});var jFT;var wQL;var nX=function(){return _.G.apply(this,arguments)||this};
_.r(nX,_.G);nX.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
nX.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
nX.prototype.updateTitle=function(){var K=this.disabledCartItemEntity;K.disableActionName&&this.set("data.title",wM(K.disableActionName))};
nX.prototype.updateButton=function(){var K,X=(K=this.disabledCartItemEntity.undoCommand)==null?void 0:K.innertubeCommand;X!==void 0&&(this.set("data.actionButton.buttonRenderer.command",X),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
nX.prototype.entityChanged=nX.prototype.entityChanged;_.O([_.W(_.jn),_.g("design:type",Object)],nX.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],nX.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],nX.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(K,X){return _.FF(K.entities,"disabledCartItemEntity",X)}}),
_.g("design:type",Object)],nX.prototype,"disabledCartItemEntity",void 0);_.O([_.h(),_.g("design:type",Object)],nX.prototype,"data",void 0);_.O([_.so("disabledCartItemEntity","data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],nX.prototype,"entityChanged",null);nX=_.O([_.v({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],nX);
_.t(nX,"ytd-disabled-cart-item-renderer",function(){if(wQL!==void 0)return wQL;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return wQL=K},{mode:1});_.L4("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var cX=function(){var K=_.G.apply(this,arguments)||this;K.compact=!1;K.hidden=!1;K.errorHidden=!1;K.noOnTap=!1;return K};
_.r(cX,_.G);_.z=cX.prototype;
_.z.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.textMetadata":{id:"text-metadata",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.merchantUpdateText":{id:"merchant-update-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.cartItemNotification":{id:"cart-item-notification",mapping:{cardItemTextWithImageRenderer:"yt-card-item-text-with-image-renderer"}},"data.cardItemActions":{id:"cart-item-actions",
mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{disableTextTransform:"[[compact]]"}}},events:!0},"data.quantityPicker":{id:"quantity-picker",mapping:{commerceCartItemQuantityPickerRenderer:{component:"ytd-commerce-cart-item-quantity-picker-renderer",properties:{compact:"[[compact]]",quantityColor:"[[commerceCartItemEntity.quantityColor]]"}}}},"data.disabledCartItem":{id:"disabled-cart-item",mapping:{disabledCartItemRenderer:"ytd-disabled-cart-item-renderer"}}}};
_.z.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.z.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var K=this.firstButtonElement;K.alignByText=!0;K.iconAlignByText=!0}};
_.z.computeNoOnTap=function(K){return!K};
_.z.updateQuantityColor=function(){if(this.pickerElement){var K,X=(K=this.commerceCartItemEntity)==null?void 0:K.quantityColor;this.pickerElement.quantityColor=X}};
_.z.updateTotalPriceColor=function(){var K,X=(K=this.commerceCartItemEntity)==null?void 0:K.totalPriceColor;if(X){var F;K=_.T((F=this.data)==null?void 0:F.quantityPicker,jZO);if(F=_.T(K==null?void 0:K.price,ApO))F.textColor=X}};
_.z.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var K,X=(K=this.commerceCartItemEntity)==null?void 0:K.isHidden;X!==void 0&&(this.hidden=X)}};
_.z.updateHideErrorMessage=function(){var K,X=(K=this.commerceCartItemEntity)==null?void 0:K.hideErrorMessage;X!==void 0&&(this.errorHidden=X)};
_.z.updateQuantity=function(){var K=this,X,F=(X=this.commerceCartItemEntity)==null?void 0:X.quantity,P;X=(P=this.commerceCartItemEntity)==null?void 0:P.totalPrice;if(F){this.updateTotalPriceColor();this.updateQuantityColor();var H;P=_.T((H=this.data)==null?void 0:H.quantityPicker,jZO);if(H=_.T(P==null?void 0:P.price,ApO))H.text=X?{simpleText:X.content}:void 0;if(X=_.T(P==null?void 0:P.picker,ypE))X.quantity=F;var f;if(H=(f=_.T(P==null?void 0:P.picker,RLW))==null?void 0:f.entries){f=!1;X=void 0;H=
_.D(H);for(P=H.next();!P.done;P=H.next())P=P.value,P.dropdownItemRenderer&&(X||(X=P.dropdownItemRenderer),P.dropdownItemRenderer.isSelected=!1,F===P.dropdownItemRenderer.int32Value&&(f=!0,P.dropdownItemRenderer.isSelected=!0));!f&&X&&(X.isSelected=!0)}_.tg(this,function(){var u;K.set("data.quantityPicker",_.T8.unsafeClone((u=K.data)==null?void 0:u.quantityPicker))})}};
cX.prototype.onYtRendererstamperFinished=cX.prototype.onYtRendererstamperFinished;cX.prototype.entityChanged=cX.prototype.entityChanged;_.O([_.h(),_.g("design:type",Object)],cX.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],cX.prototype,"compact",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],cX.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],cX.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],cX.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],cX.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(K,X){return _.FF(K.entities,"commerceCartItemEntity",X)}}),
_.g("design:type",Object)],cX.prototype,"commerceCartItemEntity",void 0);_.O([_.h(),_.g("design:type",Object)],cX.prototype,"quantityPicker",void 0);_.O([_.h(),_.g("design:type",Object)],cX.prototype,"compactQuantityPicker",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],cX.prototype,"hidden",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],cX.prototype,"errorHidden",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.g("design:type",Object)],cX.prototype,"noOnTap",void 0);_.O([_.fa("ytd-commerce-cart-item-quantity-picker-renderer"),_.g("design:type",Object)],cX.prototype,"pickerElement",void 0);_.O([_.fa("yt-button-renderer"),_.g("design:type",Element)],cX.prototype,"firstButtonElement",void 0);
_.O([_.so("commerceCartItemEntity","data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],cX.prototype,"entityChanged",null);_.O([_.Hc("yt-rendererstamper-finished"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],cX.prototype,"onYtRendererstamperFinished",null);cX=_.O([_.v({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],cX);
_.t(cX,"ytd-commerce-cart-item-renderer",function(){if(jFT!==void 0)return jFT;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return jFT=K},{mode:_.Ig("kevlar_poly_si_batch_j028")?1:2});var yyu;var W1t;var pX=function(){return _.G.apply(this,arguments)||this};
_.r(pX,_.G);pX.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}}}}}};
pX.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
pX.prototype.updateCheckoutLineItems=function(){var K,X=(K=this.commerceCartCheckoutButtonEntity)==null?void 0:K.checkoutLineItems;X&&(K=X.map(function(F){a:{var P=F.price,H=F.description;switch(F.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":F={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:wM(H),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",
left:"CARD_ITEM_UX_SPACE_4"}}},price:{cardItemTextRenderer:{text:wM(P),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:F={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:wM(H),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",
right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",left:"CARD_ITEM_UX_SPACE_0"}}},price:{cardItemTextRenderer:{text:wM(P),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 F}),this.set("data.summaryLineItems",K))};
pX.prototype.updateIsHidden=function(){var K,X=(K=this.commerceCartCheckoutButtonEntity)==null?void 0:K.isHidden;X!==void 0&&(this.hostElement.hidden=X)};
pX.prototype.entityChanged=pX.prototype.entityChanged;_.O([_.W(_.jn),_.g("design:type",Object)],pX.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],pX.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],pX.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],pX.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],pX.prototype,"data",void 0);_.O([_.h({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:S1y}),_.g("design:type",Object)],pX.prototype,"commerceCartCheckoutButtonEntity",void 0);_.O([_.so("commerceCartCheckoutButtonEntity","data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],pX.prototype,"entityChanged",null);pX=_.O([_.v({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],pX);
_.t(pX,"ytd-commerce-cart-summary-renderer",function(){if(W1t!==void 0)return W1t;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return W1t=K},{mode:1});var dNL={};dNL.InjectBehavior=[xSP.InjectBehavior];var esO;var Rsu;var BX=function(){return _.G.apply(this,arguments)||this};
_.r(BX,_.G);
BX.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:_.T9("menuRenderer")}}};
BX.prototype.onMenuTap=function(K){K.stopPropagation()};
_.Oi.Object.defineProperties(BX.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 K,X;return!(((K=this.data)==null||!K.sectionHeading)&&((X=this.data)==null?void 0:X.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var K,X;return!(((K=this.data)==null||!K.image)&&((X=this.data)==null?void 0:X.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var K,X;return!(((K=this.data)==null||!K.menu)&&((X=this.data)==null?void 0:X.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],BX.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],BX.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.ZmL.YtTappableItemBehavior),_.g("design:type",Object)],BX.prototype,"ytTappableItemBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],BX.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.U("data.accessibilityData"),_.g("design:type",String),_.g("design:paramtypes",[])],BX.prototype,"ariaLabel",null);_.O([_.U("data.sectionHeading","data.layout"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],BX.prototype,"sectionHeadingVisible",null);_.O([_.U("data.image","data.layout"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],BX.prototype,"imageVisible",null);
_.O([_.U("data.menu","data.layout"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],BX.prototype,"menuVisible",null);BX=_.O([_.Tb({is:"yt-activity-item-renderer",disableElementRegistration:!0})],BX);
_.t(BX,"yt-activity-item-renderer",function(){if(Rsu===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;esO===void 0&&(esO=document.createElement("template"));var P=esO;F.call(X,P.content.cloneNode(!0),K.content.firstChild);Rsu=K}K=Rsu;return K},{mode:2});var UNL;var hsZ;var mNL;var GRC;var SR=function(){return _.G.apply(this,arguments)||this};
_.r(SR,_.G);
SR.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"}}}}};
SR.prototype.backgroundColorChanged_=function(){var K,X=(K=this.data)==null?void 0:K.backgroundColor;this.hostElement.style.backgroundColor=Ft[X||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
SR.prototype.backgroundColorChanged_=SR.prototype.backgroundColorChanged_;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],SR.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],SR.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],SR.prototype,"data",void 0);
_.O([_.so("data.backgroundColor"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],SR.prototype,"backgroundColorChanged_",null);SR=_.O([_.Tb({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],SR);
_.t(SR,"yt-offer-item-upsell-renderer",function(){if(GRC===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;mNL===void 0&&(mNL=document.createElement("template"));var P=mNL;F.call(X,P.content.cloneNode(!0),K.content.firstChild);GRC=K}K=GRC;return K},{mode:2});_.L4("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var o8=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};K.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return K};
_.r(o8,_.G);_.z=o8.prototype;
_.z.configureRendererStamper=function(){return{"data.baseRenderer":{id:"base",mapping:{cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0}}},"data.contents":{id:"contents",mapping:{commerceCartHeaderRenderer:{component:"ytd-commerce-cart-header-renderer",properties:{compact:"[[compact]]"},noInjection:!0},commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{fullWidth:"[[compact]]"}},commerceCartItemRenderer:{component:"ytd-commerce-cart-item-renderer",noInjection:!0,
properties:{compact:"[[compact]]"}},cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0},offerItemUpsellRenderer:{component:"yt-offer-item-upsell-renderer",noInjection:!0},activityItemRenderer:{component:"yt-activity-item-renderer",noInjection:!0}}},"data.continuationSection":{id:"continuation-section",mapping:_.T9("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.z.computeContainerStyle_=function(K){return K};
_.z.computeContainerIsHidden_=function(K){return K&&!!K.isHidden};
_.z.computeShowSpinner_=function(K,X){return K&&X==="in-progress"};
_.z.computeShowMoreContentsButton_=function(K,X,F,P,H){return!(!(P&&P.length||H&&H.length&&F)||!K||X)};
_.z.onToggleButton_=function(K){var X=this;K.stopPropagation();this.isExpanded_=K.detail&&K.detail.toggled;var F,P;this.isExpanded_&&!this.data.continuationSection.length&&((F=this.data)==null?0:(P=F.continuation)==null?0:P.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.iX(this.hostElement,"yt-load-next-continuation",function(H){return X.getContinuationUrl_(X.data.continuation.onClickContinuationData,H)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.Kl(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.z.onShowMoreContentsButtonClicked_=function(K){var X=this;K.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.iX(this.hostElement,"yt-load-next-continuation",function(F){return X.getContinuationUrl_(X.data.continuations[0].nextContinuationData,F)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.Kl(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.z.getContinuationUrl_=function(K,X){var F=K.continuation;K=K.clickTrackingParams;var P=_.AD();K&&P&&_.vW(P,_.QB(K));return _.ON(X,{continuation:F})};
_.z.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var K=_.C$(this.hostElement).querySelector("#continuation-section");K&&(K=K.querySelectorAll("ytmusic-item-section-renderer"))&&K.forEach(function(X){return X.classList.add("memberships-and-purchases")})};
_.z.dataChanged_=function(){var K;this.isExpanded_=!((K=this.data)==null||!K.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.z.updateCardOnClickCommand_=function(K){K=_.T(K,n2Z);var X,F;this.data&&((X=this.data)==null?0:X.targetId)&&K&&K.targetId===((F=this.data)==null?void 0:F.targetId)&&K.onClickCommand&&(this.data.onClickCommand=K.onClickCommand,this.isOnClickCommand_=!0)};
_.z.backgroundColorChanged_=function(){var K,X=(K=this.data)==null?void 0:K.backgroundColor;this.hostElement.style.backgroundColor=Ft[X||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
o8.prototype.backgroundColorChanged_=o8.prototype.backgroundColorChanged_;o8.prototype.dataChanged_=o8.prototype.dataChanged_;o8.prototype.nextContinuationDataUpdated_=o8.prototype.nextContinuationDataUpdated_;o8.prototype.onToggleButton_=o8.prototype.onToggleButton_;_.O([_.W(_.eG),_.g("design:type",Object)],o8.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],o8.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],o8.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.RQ.YtNextContinuationBehavior),_.g("design:type",Object)],o8.prototype,"ytNextContinuationBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],o8.prototype,"ytRendererBehavior",void 0);_.O([_.W(dNL.InjectBehavior),_.g("design:type",Object)],o8.prototype,"injectBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],o8.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],o8.prototype,"compact",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],o8.prototype,"isExpanded_",void 0);_.O([_.h({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.g("design:type",String)],o8.prototype,"containerStyle_",void 0);_.O([_.h({value:"not-started"}),_.g("design:type",String)],o8.prototype,"continuationStatus_",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.g("design:type",Boolean)],o8.prototype,"showSpinner_",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],o8.prototype,"isOnClickCommand_",void 0);_.O([_.h({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.g("design:type",Boolean)],o8.prototype,"showMoreContentsButton_",void 0);
_.O([_.h({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(K,X){return!X||K.entities?null:_.FF(K.entities,"cardItemContainerEntity",X)}}),
_.g("design:type",Object)],o8.prototype,"cardItemContainerEntity_",void 0);_.O([_.Hc("yt-toggle-button"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],o8.prototype,"onToggleButton_",null);_.O([_.Hc("yt-next-continuation-data-updated"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],o8.prototype,"nextContinuationDataUpdated_",null);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],o8.prototype,"dataChanged_",null);_.O([_.so("data.backgroundColor"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],o8.prototype,"backgroundColorChanged_",null);o8=_.O([_.Tb({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],o8);
_.t(o8,"yt-card-item-container-renderer",function(){if(hsZ===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;UNL===void 0&&(UNL=document.createElement("template"));var P=UNL;F.call(X,P.content.cloneNode(!0),K.content.firstChild);hsZ=K}K=hsZ;return K},{mode:2});var LX=function(){return _.G.apply(this,arguments)||this};
_.r(LX,_.G);LX.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"}}}};
LX.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
LX.prototype.computeLoadingHidden=function(){var K;return!((K=this.commerceCartPageStateEntity)==null?0:K.cartActionInProgress)};
LX.prototype.updateNotification=function(){var K,X=(K=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:K.summaryText;X&&this.set("data.cartNotification",wM(X))};
LX.prototype.notificationEntityChanged=LX.prototype.notificationEntityChanged;_.O([_.W(_.jn),_.g("design:type",Object)],LX.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],LX.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],LX.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],LX.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],LX.prototype,"data",void 0);_.O([_.h({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(K,X){return _.FF(K.entities,"commerceCartExpandableNotificationEntity",X)}}),
_.g("design:type",Object)],LX.prototype,"commerceCartExpandableNotificationEntity",void 0);_.O([_.h({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(K,X){return _.FF(K.entities,"commerceCartPageStateEntity",X)}}),
_.g("design:type",Object)],LX.prototype,"commerceCartPageStateEntity",void 0);_.O([_.fa("#spinner"),_.g("design:type",HTMLElement)],LX.prototype,"spinner",void 0);_.O([_.so("commerceCartExpandableNotificationEntity","data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],LX.prototype,"notificationEntityChanged",null);LX=_.O([_.v({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],LX);
_.t(LX,"ytd-commerce-cart-renderer",function(){if(yyu!==void 0)return yyu;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return yyu=K},{mode:1});var l3C;var TG=function(){var K=_.G.apply(this,arguments)||this;K.bigImage=!1;return K};
_.r(TG,_.G);_.Oi.Object.defineProperties(TG.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.placeholderImageUrl}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],TG.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],TG.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],TG.prototype,"bigImage",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],TG.prototype,"placeholderImageUrl",null);TG=_.O([_.v({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],TG);
_.t(TG,"ytd-empty-product-shelf-renderer",function(){if(l3C!==void 0)return l3C;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return l3C=K},{mode:1});var vtC;var rx=function(){var K=_.G.apply(this,arguments)||this;K.itemStyle="link-item";K.watchMetadataRefresh=!1;K.skinnyMode=!1;K.metaPanel=!1;K.inStructuredDescription=!1;K.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};K.updateOnResizeDebouncer=null;return K};
_.r(rx,_.G);_.z=rx.prototype;_.z.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.z.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{iconSize:16}},menuRenderer:"ytd-menu-renderer"}},"data.emptyProductShelf":{id:"empty-product",mapping:{emptyProductShelfRenderer:{component:"ytd-empty-product-shelf-renderer"}}}}};
_.z.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.z.attachVEs=function(K){K.trackingParams&&_.uH().graftServerVe(K.trackingParams)};
_.z.handleUpdateMerchShelfAction=function(K){var X=this,F=_.T(K.updateMerchandiseShelfAction.merchandiseShelf,_.k4C);F&&(F.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){X.attachVEs(F);X.data=F},Number(F.renderDelayMs))):(this.attachVEs(F),this.data=F))};
_.z.updateOnResize=function(){if(this.JSC$14695_scrollContainer!==void 0&&this.JSC$14695_scrollContainer.clientWidth!==0&&this.items!==void 0){var K=this.JSC$14695_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-K));this.ytdHorizontalListBehavior.reposition_();var X;switch((X=this.data)==null?void 0:X.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var F,
P;((F=this.data)==null?void 0:(P=F.items)==null?void 0:P.length)===1?this.itemStyle="cta-item":this.itemStyle=K>=740?"large-item":"small-item"}}};
_.z.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.xs(this.updateOnResizeDebouncer,_.vT.after(100),this.updateOnResize)};
rx.prototype.debouncedUpdateOnResize=rx.prototype.debouncedUpdateOnResize;rx.prototype.dataChanged=rx.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],rx.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],rx.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.Nh.YtdHorizontalListBehavior),_.g("design:type",Object)],rx.prototype,"ytdHorizontalListBehavior",void 0);
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],rx.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],rx.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],rx.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],rx.prototype,"itemStyle",void 0);_.O([_.h({value:6}),_.g("design:type",Number)],rx.prototype,"initialCount",void 0);
_.O([_.h({value:"data.items"}),_.g("design:type",String)],rx.prototype,"itemsPath",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],rx.prototype,"watchMetadataRefresh",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],rx.prototype,"skinnyMode",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],rx.prototype,"metaPanel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],rx.prototype,"inStructuredDescription",void 0);
_.O([_.fa("#items"),_.g("design:type",HTMLDivElement)],rx.prototype,"items",void 0);_.O([_.fa("#scroll-container"),_.g("design:type",HTMLDivElement)],rx.prototype,"JSC$14695_scrollContainer",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],rx.prototype,"dataChanged",null);_.O([_.Hc("iron-resize"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],rx.prototype,"debouncedUpdateOnResize",null);
rx=_.O([_.v({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],rx);
_.t(rx,"ytd-merch-shelf-renderer",function(){if(vtC!==void 0)return vtC;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return vtC=K},{mode:2});var a3Z;var AR=function(){var K=_.G.apply(this,arguments)||this;K.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 K};
_.r(AR,_.G);_.z=AR.prototype;
_.z.addBackstagePostAction=function(K){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(K=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",K))&&(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:K}):this.set("data.contents",[{backstagePostThreadRenderer:K}]))};
_.z.addBackstageCommentAction=function(K){var X=this.get("addBackstageCommentAction.parentId",K);K=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",K);if(X&&K){X=this.postIdToIndices(X);for(var F=0;F<X.length;F++){var P=X[F];if(P<0)break;P="data.contents."+P+".backstagePostThreadRenderer.comments";this.get(P)&&(this.get(P+".backstageCommentsRenderer.contents")&&this.push(P+".backstageCommentsRenderer.contents",{commentThreadRenderer:K}),this.get(P+".backstageCommentsRenderer.teaserContents")?
this.push(P+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:K}):this.set(P+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:K}]))}}};
_.z.addBackstageReplyAction=function(K){var X=this.get("addBackstageReplyAction.parentId",K);K=this.get("addBackstageReplyAction.renderer.commentRenderer",K);X&&K&&this.setCreatorReply(X,K)};
_.z.banAuthorAction=function(K){var X=this.get("banAuthorAction.commentId",K);X&&(K=this.get("banAuthorAction.parentCommentId",K)||this.getParentPostId(X),this.removeFromStream(X,K))};
_.z.hideReportedCommentAction=function(K){var X=this.get("hideReportedCommentAction.commentId",K);X&&((K=this.get("hideReportedCommentAction.parentCommentId",K))||(K=this.getParentPostId(X)),this.removeFromStream(X,K))};
_.z.replaceBackstageCommentAction=function(K){var X=this.get("replaceBackstageCommentAction.commentId",K),F=this.get("replaceBackstageCommentAction.parentId",K);K=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",K);if(X&&F&&K){F=this.postIdToIndices(F);for(var P=0;P<F.length;P++){var H=F[P];if(H<0)break;var f=this.commentIdToIndex(X,H,!1);if(f>=0){var u=this.get("data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+f+".commentThreadRenderer.replies.commentRepliesRenderer");
u&&(K.replies={commentRepliesRenderer:u});this.splice("data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",f,1,{commentThreadRenderer:K})}f=this.commentIdToIndex(X,H,!0);if(f>=0){if(u=this.get("data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(f+".commentThreadRenderer.replies.commentRepliesRenderer")))K.replies={commentRepliesRenderer:u};this.splice("data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
f,1,{commentThreadRenderer:K})}}}};
_.z.replaceBackstagePostAction=function(K){var X=this.get("replaceBackstagePostAction.itemId",K);if(X){X=this.postIdToIndices(X);for(var F=0;F<X.length;F++){var P=X[F];if(P<0)break;var H=this.getPostRendererType(P),f=this.get("replaceBackstagePostAction.renderer."+H,K);if(!f&&H!=="sharedPostRenderer")break;var u=!1;f||(u=!0,f=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",K));if(!f)break;var J={};u?(_.LB(J,zUL,f),this.set("data.contents."+P+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
J)):(_.LB(J,new _.b(H),f),this.set("data.contents."+P+".backstagePostThreadRenderer.post",J))}}};
_.z.replaceBackstageReplyAction=function(K){var X=this.get("replaceBackstageReplyAction.replyId",K),F=this.get("replaceBackstageReplyAction.parentId",K);K=this.get("replaceBackstageReplyAction.renderer.commentRenderer",K);X&&K&&F&&this.setCreatorReply(F,K)};
_.z.removeCommentAction=function(K){var X=this.get("removeCommentAction.commentId",K);if(X){var F=this.get("removeCommentAction.parentCommentId",K);F&&this.get("removeCommentAction.isCreatorReply",K)?this.setCreatorReply(F,void 0):(F||(F=this.getParentPostId(X)),this.removeFromStream(X,F))}};
_.z.setCreatorReply=function(K,X){var F=this.getParentPostId(K);if(F){F=this.postIdToIndices(F);for(var P=0;P<F.length;P++){var H=F[P];if(H<0)break;var f=this.commentIdToIndex(K,H,!1);if(f>=0){var u="data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+f;f=u+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";u+=".commentThreadRenderer.replies";X==void 0?(this.set(u,{}),this.set(f,!1)):(this.set(u,{commentRepliesRenderer:{teaserContents:[{commentRenderer:X}]}}),
this.set(u+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(f,!0))}f=this.commentIdToIndex(K,H,!0);f>=0&&(f="data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+f,H=f+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",f+=".commentThreadRenderer.replies",X==void 0?(this.set(f,{}),this.set(H,!1)):(this.set(f,{commentRepliesRenderer:{teaserContents:[{commentRenderer:X}]}}),this.set(H,!0)))}}};
_.z.removeFromStream=function(K,X){if(X){X=this.postIdToIndices(X);for(var F=0;F<X.length;F++){var P=X[F];if(P<0)break;var H=this.commentIdToIndex(K,P,!1);H>=0&&this.splice("data.contents."+P+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",H,1);H=this.commentIdToIndex(K,P,!0);H>=0&&this.splice("data.contents."+P+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",H,1);P="data.contents."+P+".backstagePostThreadRenderer.post.backstagePostRenderer";
H=P+".backstageAttachment.pollRenderer.votedCommentId";this.get(H)===K&&(this.set(H,null),this.set(P+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(X=this.postIdToIndices(K).reverse(),F=0;F<X.length;F++){P=X[F];if(P<0)break;H=this.getPostRendererType(P);var f=this.get("backstagePostThreadRenderer.post."+H,this.data.contents[P]);f.postId===K?this.splice("data.contents",P,1):H==="sharedPostRenderer"&&this.set("data.contents."+P+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);f.scheduledPublishTimeSec&&_.xr(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.z.postIdToIndices=function(K){for(var X=[],F=0;F<this.data.contents.length;F++){var P=this.getPostRendererType(F);this.get("backstagePostThreadRenderer.post."+P+".postId",this.data.contents[F])===K&&X.push(F);if(P==="sharedPostRenderer"){var H=this.get("backstagePostThreadRenderer.post."+P+".originalPost.backstagePostRenderer.postId",this.data.contents[F]);P=this.get("backstagePostThreadRenderer.post."+P+".originalPost.postRenderer.postId",this.data.contents[F]);H!==K&&P!==K||X.push(F)}}return X};
_.z.commentIdToIndex=function(K,X,F){if(X<0)return-1;var P,H,f,u,J=_.T((P=this.data)==null?void 0:(H=P.contents)==null?void 0:(f=H[X])==null?void 0:(u=f.backstagePostThreadRenderer)==null?void 0:u.comments,HkC);return(X=F?J==null?void 0:J.teaserContents:J==null?void 0:J.contents)&&X.length?X.findIndex(function(Z){return _.T(Z,RUt).comment.commentRenderer.commentId===K}):-1};
_.z.getParentPostId=function(K){K=K.split(".");if(K[1])return K[0]};
_.z.getPostRendererType=function(K){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[K])?"sharedPostRenderer":"backstagePostRenderer"};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],AR.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],AR.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],AR.prototype,"data",void 0);AR=_.O([_.v({disableElementRegistration:!0,is:"ytd-backstage-items"})],AR);
_.t(AR,"ytd-backstage-items",function(){if(a3Z!==void 0)return a3Z;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return a3Z=
K},{mode:1});var t$E;_.pa({is:"ytd-comments",_template:function(){if(t$E!==void 0)return t$E;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return t$E=K},
behaviors:[_.Krn.YtHostElementBehavior,_.ld.YtPlayerListenerBehavior,_.k.YtRendererBehavior,_.NT.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,
value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"},listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)",
"headerChanged_(data.header)"],created:function(){this.RenderingPriority={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100};this.initCommentsCsi_()},
contentsChanged_:function(K){K&&K.value&&K.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(K){K&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.rb("wn_comments");var K=_.AD();K&&_.T6({clientScreenNonce:K},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(K){K=ioy(K);var X,F,P;if(K=(X=K)==null?void 0:(F=X.createCommentAction)==null?void 0:(P=F.contents)==null?void 0:P.commentThreadRenderer){var H,f,u,J,Z,M;!this.isBackstage&&((H=this.data)==null?0:(f=H.header)==null?0:(u=f.commentsHeaderRenderer)==null?0:(J=u.createRenderer)==null?0:(Z=J.commentSimpleboxRenderer)==null?0:(M=Z.zeroStep)==null?0:M.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var n,c,B,L;this.isBackstage&&((n=this.data)==null?0:(c=n.header)==null?0:(B=c.commentsHeaderRenderer)==null?0:(L=B.zeroStateMessage)==null?0:L.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(K)}},
doReplyInsert_:function(K,X,F,P){P?this.splice(K,P,0,X):this.push(K,X)},
getRepliesPath_:function(K){return"data.contents."+K+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(K,X){K=this.getRepliesPath_(K);return X?K+".commentRepliesRenderer.teaserContents":K+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(K){K=ioy(K);var X,F,P=(X=K)==null?void 0:(F=X.createCommentReplyAction)==null?void 0:F.parentCommentId,H,f;if(X=(H=K)==null?void 0:(f=H.createCommentReplyAction)==null?void 0:f.contents)if(P=this.commentIdToIndex_(P),!(P<0))if(H=this.getRepliesPath_(P),this.get(H)){var u,J;K=(u=K)==null?void 0:(J=u.createCommentReplyAction)==null?void 0:J.replyToCommentId;u=this.getRepliesContentsPath_(P,!1);this.get(u)&&(J=this.get(u).length,H=u+"."+(J-1)+".continuationItemRenderer",
this.get(H+".button")?(H=this.replyIdToIndex_(K,P,!1),this.doReplyInsert_(u,X,H,J-1)):this.get(H)||(J=this.replyIdToIndex_(K,P,!1),this.doReplyInsert_(u,X,J,null)));u=this.getRepliesContentsPath_(P,!0);this.get(u)?(P=this.replyIdToIndex_(K,P,!0),(!K||P>=0)&&this.doReplyInsert_(u,X,P,null)):this.set(u,[X])}else this.set(H,{commentRepliesRenderer:{teaserContents:[X]}})},
hideReportedCommentAction_:function(K){var X,F=K==null?void 0:(X=K.hideReportedCommentAction)==null?void 0:X.commentId;if(F){var P;K=K==null?void 0:(P=K.hideReportedCommentAction)==null?void 0:P.parentCommentId;F=F.replace("#",".");K||(K=this.getParentCommentId_(F));this.remove_(F,K)}},
getParentCommentId_:function(K){K=K.split(".");if(K[1])return K[0]},
removeCommentAction_:function(K){var X,F=K==null?void 0:(X=K.removeCommentAction)==null?void 0:X.commentId;if(F){var P;K=K==null?void 0:(P=K.removeCommentAction)==null?void 0:P.parentCommentId;F=F.replace("#",".");K||(K=this.getParentCommentId_(F));this.remove_(F,K)}},
pinCommentAction_:function(K){K=ioy(K);var X,F,P=(X=K)==null?void 0:(F=X.pinCommentAction)==null?void 0:F.commentId;P&&(K=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",K))&&(this.remove_(P),this.insert_(K,!0))},
unpinCommentAction_:function(K){K=ioy(K);var X,F,P=(X=K)==null?void 0:(F=X.unpinCommentAction)==null?void 0:F.commentId;if(P){var H,f,u;if(K=(H=K.unpinCommentAction)==null?void 0:(f=H.actionResult)==null?void 0:(u=f.update)==null?void 0:u.commentThreadRenderer)this.remove_(P),this.insert_(K)}},
banAuthorAction_:function(K){var X,F=K==null?void 0:(X=K.banAuthorAction)==null?void 0:X.commentId;if(F){var P;K=K==null?void 0:(P=K.banAuthorAction)==null?void 0:P.parentCommentId;F=F.replace("#",".");K||(K=this.getParentCommentId_(F));this.remove_(F,K)}},
commentIdToIndex_:function(K){var X;return K&&(X=this.data)!=null&&X.contents?this.data.contents.findIndex(function(F){var P,H;return K===((F==null?void 0:(P=F.commentThreadRenderer)==null?void 0:P.commentViewModel)&&((H=_.T(F.commentThreadRenderer.commentViewModel,GtV))==null?void 0:H.commentId))}):-1},
insert_:function(K,X){var F,P;if((F=this.data)==null?0:(P=F.contents)==null?0:P.some(function(f){return!(f==null||!f.commentThreadRenderer)}))for(F=0,P=this.data.contents.length;F<P;F++){var H=this.data.contents[F].commentThreadRenderer;
if(this.RenderingPriority[K.renderingPriority]>=this.RenderingPriority[H.renderingPriority]){X&&this.RenderingPriority[K.renderingPriority]==this.RenderingPriority[H.renderingPriority]?this.splice("data.contents",F,1,{commentThreadRenderer:K}):this.splice("data.contents",F,0,{commentThreadRenderer:K});break}}else this.set("data.contents",[{commentThreadRenderer:K}])},
doReplyRemove_:function(K,X,F){K=this.replyIdToIndex_(K,X,F);K<0||(X=this.getRepliesContentsPath_(X,F),this.splice(X,K,1))},
remove_:function(K,X){X=this.commentIdToIndex_(X);X<0?(X=this.commentIdToIndex_(K),X<0||this.splice("data.contents",X,1)):(this.doReplyRemove_(K,X,!1),this.doReplyRemove_(K,X,!0))},
replyIdToIndex_:function(K,X,F){if(X<0)return-1;X=this.getRepliesContentsPath_(X,F);X=this.get(X);if(!X||!X.length)return-1;F=0;for(var P=X.length;F<P;F++){var H=void 0,f=void 0;if(((H=X[F])==null?void 0:(f=H.commentViewModel)==null?void 0:f.commentId)===K)return F}return-1},
computeIsBackstage_:function(K){return!!K},
tickForCommentsTimer_:function(K){_.jv(K,void 0,"wn_comments")},
reloadComments_:function(K){K&&K.reloadCommentsCommand&&K.reloadCommentsCommand.command&&K.reloadCommentsCommand.command.continuationCommand&&_.Kl(this,[K.reloadCommentsCommand.command])}});var jR=function(){return _.ub.apply(this,arguments)||this};
_.r(jR,_.ub);_.z=jR.prototype;_.z.bindIf=function(K,X,F){return K?X:F};
_.z.bindIfDefined=function(K,X){return K!==void 0?K:X};
_.z.booleanString=function(K){return(!!K).toString()};
_.z.equals=function(){for(var K=_.Ls.apply(0,arguments),X=K[0],F=1;F<K.length;F++)if(X!=K[F])return!1;return!0};
_.z.isGreaterThan=function(K,X){return K>X};
_.z.isLessThan=function(K,X){return K<X};
_.z.logicalAND=function(){for(var K=_.Ls.apply(0,arguments),X=!!K[0],F=1;F<K.length;F++)X=X&&!!K[F];return X};
_.z.logicalOR=function(){for(var K=_.Ls.apply(0,arguments),X=!!K[0],F=1;F<K.length;F++)X=X||!!K[F];return X};
_.z.toBool=function(K){return!!K};
jR.prototype.toBool=jR.prototype.toBool;jR.prototype.logicalOR=jR.prototype.logicalOR;jR.prototype.logicalAND=jR.prototype.logicalAND;jR.prototype.isLessThan=jR.prototype.isLessThan;jR.prototype.isGreaterThan=jR.prototype.isGreaterThan;jR.prototype.equals=jR.prototype.equals;jR.prototype.booleanString=jR.prototype.booleanString;jR.prototype.bindIfDefined=jR.prototype.bindIfDefined;jR.prototype.bindIf=jR.prototype.bindIf;jR=_.O([_.qY()],jR);_.$NO=[jR.prototype];var OmC;var V$O;var wx=function(){return _.G.apply(this,arguments)||this};
_.r(wx,_.G);wx.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
wx.prototype.onBackIconTap_=function(){window.history.back()};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],wx.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],wx.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],wx.prototype,"data",void 0);wx=_.O([_.Tb({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],wx);
_.t(wx,"yt-header-with-back-renderer",function(){if(V$O===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;OmC===void 0&&(OmC=document.createElement("template"));var P=OmC;F.call(X,P.content.cloneNode(!0),K.content.firstChild);V$O=K}K=V$O;return K},{mode:2});var gtO;var EtO;var yC=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return K};
_.r(yC,_.G);_.z=yC.prototype;_.z.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.z.onDarkModeToggledAction=function(K){K!==this.isDarkTheme&&(this.isDarkTheme=K,this.setUrl())};
_.z.dataChanged=function(){var K=this;if(this.data){var X=this.setUrl();X&&_.$_({destination:window,iframe:this.iframe,origin:_.fQL(X.toString()),channelName:"yt-iframe",onMessage:function(F){(F=K.getCommunicationCommand(F.data))&&K.ytComponentBehavior.resolveCommand(F)},
onEstablished:function(){}})}};
_.z.setUrl=function(){if(this.data&&this.data.iframeUrl){var K=_.jt(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(K)return _.W$(this.iframe,K),K}};
_.z.getCommunicationCommand=function(K){var X;if((X=this.data)!=null&&X.onCommunicationCommandsMap){X=this.data.onCommunicationCommandsMap.find(function(H){return H.key===K});
if(X==null?0:X.value)return X==null?void 0:X.value;try{var F=f6L(_.Jt(K)),P=this.data.onCommunicationCommandsMap.find(function(H){return H.key===(F==null?void 0:_.BL(F,1))});
if(P==null?0:P.value)return P==null?void 0:P.value}catch(H){}}};
yC.prototype.dataChanged=yC.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],yC.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],yC.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],yC.prototype,"actionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],yC.prototype,"data",void 0);
_.O([_.h({value:!1}),_.g("design:type",Boolean)],yC.prototype,"isDarkTheme",void 0);_.O([_.fa("#iframe"),_.g("design:type",HTMLIFrameElement)],yC.prototype,"iframe",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],yC.prototype,"dataChanged",null);yC=_.O([_.Tb({is:"yt-iframe-renderer",disableElementRegistration:!0})],yC);
_.t(yC,"yt-iframe-renderer",function(){if(EtO===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;gtO===void 0&&(gtO=document.createElement("template"));var P=gtO;F.call(X,P.content.cloneNode(!0),K.content.firstChild);EtO=K}K=EtO;return K},{mode:2});_.WX=function(K){_.LJ.call(this);this.callback=K;this.bezier=new aHU(0,0,.4,0,.2,1,1,1);this.delay=new _.Ei(this.next,window,this);this.JSC$14726_animating=!1;_.JH(this,this.delay)};
_.r(_.WX,_.LJ);_.WX.prototype.isAnimating=function(){return this.JSC$14726_animating};
_.WX.prototype.start=function(K,X,F){this.config={from:K,to:X,duration:F,startTime:(0,_.CG)()};this.JSC$14726_animating=!0;this.next()};
_.WX.prototype.stop=function(){this.delay.stop();this.JSC$14726_animating=!1;this.config=void 0};
_.WX.prototype.next=function(){if(this.config){var K=this.config,X=K.from,F=K.to,P=K.duration;K=K.startTime;var H=(0,_.CG)()-K;K=this.bezier;P=$aL(K,H/P);if(P==0)K=K.y0;else if(P==1)K=K.y3;else{H=q_(K.y0,K.y1,P);var f=q_(K.y1,K.y2,P);K=q_(K.y2,K.y3,P);H=q_(H,f,P);f=q_(f,K,P);K=q_(H,f,P)}K=_.rH(K,0,1);this.callback(X+(F-X)*K);K<1?this.delay.start():this.JSC$14726_animating=!1}};_.dx=new _.Oh("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var bmL={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},NtT=function(K,X,F,P){_.LJ.call(this);this.JSC$14734_miniAppId=K;this.localReleaseId=X;this.derivedDeviceInterface=F;this.isForeground=P;this.JSC$14734_playNonceResolver=new _.K$;this.playPingTimerId=NaN;this.playPingIntervalMs=_.kU("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.kU("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.S("enable_displaying_ppn");this.JSC$14734_miniAppClientDataProvider=_.i9().resolve(_.dx);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;CPZ(this);var H=setTimeout(function(){_.yy(new _.nG("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14734_playNonceResolver.promise.then(function(){clearTimeout(H)})};
_.r(NtT,_.LJ);var xNW=function(K,X){K.JSC$14734_playNonceResolver.resolve(X!=null?X:Ly(8));K.enableDisplayingPpn&&imL(K).then(function(F){K.JSC$14734_miniAppClientDataProvider.clientData.set("post_play_nonce",F)})},imL=function(K){return _.q(function(X){return X.nextAddress==1?_.Y(X,K.JSC$14734_playNonceResolver.promise,2):X.return(X.yieldResult)})},CPZ=function(K){var X,F;
_.q(function(P){if(P.nextAddress==1)return _.Y(P,K.JSC$14734_playNonceResolver.promise,2);X=P.yieldResult;F={miniAppInfo:{externalPostId:K.JSC$14734_miniAppId,localReleaseId:K.localReleaseId,postPlayNonce:X,derivedDeviceInterface:K.derivedDeviceInterface}};_.T6(F);_.JT(P)})},kRt=function(K){K.state!==0?_.yy(new _.nG("[MiniAppPlayLogger] recordPlayStart failed with state "+bmL[K.state])):(K.state=1,eR(K,"ma_cl"),R8(K,"PLAY_EVENT_TYPE_PLAY_START"),I3L(K))},KnW=function(K){K.isForeground=!1;
R8(K,"PLAY_EVENT_TYPE_PLAY_PAUSE")},XrC=function(K){K.state!==1&&K.state!==2?_.yy(new _.nG("[MiniAppPlayLogger] recordPlayEnd failed with state "+bmL[K.state])):(K.state=3,window.clearInterval(K.playPingTimerId),K.playPingTimerId=NaN,zLy(),R8(K,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},FnN=function(K,X){K.state===2&&K.gameReady&&(K.firstClickRecorded?Date.now()-K.clickRecordedMs<K.playClickIntervalMs||(K.clickRecordedMs=Date.now(),R8(K,"PLAY_EVENT_TYPE_PLAY_CLICK")):X&&(eR(K,"ma_fua"),R8(K,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),K.firstClickRecorded=!0,K.clickRecordedMs=Date.now()))};
NtT.prototype.logError=function(K){var X=this,F;_.q(function(P){if(P.nextAddress==1)return K.metadata.externalPostId=X.JSC$14734_miniAppId,F=K.metadata,_.Y(P,Promise.race([X.JSC$14734_playNonceResolver.promise,new Promise(function(H){setTimeout(function(){H("")},3E4)})]),2);
F.postPlayNonce=P.yieldResult;K.metadata.localReleaseId=X.localReleaseId;K.loggingError.level="WARNING";_.jF(K.loggingError,K.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:K.metadata});_.JT(P)})};
var Pxt=function(K,X,F,P){var H,f,u,J,Z,M;_.q(function(n){if(n.nextAddress==1)return _.Y(n,K.JSC$14734_playNonceResolver.promise,2);H=n.yieldResult;f={externalPostId:K.JSC$14734_miniAppId,localReleaseId:K.localReleaseId,postPlayNonce:H,sdkVersion:F,api:X};P!==void 0&&(f.networkRequestsMeasurement={networkRequests:_.XA(P,1),cachedRequests:_.XA(P,2),transferredBytes:_.XA(P,3)},(u=P)==null?0:_.zQ(u,$w,6))&&(f.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((J=_.xS(P,
$w,6))==null?void 0:oc(J,1))||"0",cacheHits:((Z=_.xS(P,$w,6))==null?void 0:oc(Z,2))||"0",cachedBytes:((M=_.xS(P,$w,6))==null?void 0:oc(M,3))||"0"});_.LL("miniAppSdkUsage",f);_.JT(n)})},sNN=function(K,X,F){var P,H,f,u,J,Z,M,n,c,B,L,A,d,R,l,a;
_.q(function(E){if(E.nextAddress==1)return _.Y(E,K.JSC$14734_playNonceResolver.promise,2);P=E.yieldResult;H={externalPostId:K.JSC$14734_miniAppId,localReleaseId:K.localReleaseId,postPlayNonce:P,sdkVersion:F,measurementWindow:{startTimestampMs:String(cL(X,1)),endTimestampMs:String(cL(X,2))},frameRate:{averageFrameTimeDeltaMs:pM(X,3),averageFrameIdleTimeMs:pM(X,4)}};_.zQ(X,O_,5)&&(H.networkRequests={networkRequests:(f=i4(X))==null?void 0:_.XA(f,1),cachedRequests:(u=i4(X))==null?void 0:_.XA(u,2),transferredBytes:(J=
i4(X))==null?void 0:_.XA(J,3),sameOriginStatusCodeToCounts:HhZ((Z=i4(X))==null?void 0:XFO(Z,4)),crossOriginStatusCodeToCounts:HhZ((M=i4(X))==null?void 0:XFO(M,5))},(n=i4(X))==null?0:_.zQ(n,$w,6))&&(H.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((c=i4(X))==null?void 0:(B=_.xS(c,$w,6))==null?void 0:oc(B,1))||"0",cacheHits:((L=i4(X))==null?void 0:(A=_.xS(L,$w,6))==null?void 0:oc(A,2))||"0",cachedBytes:((d=i4(X))==null?void 0:(R=_.xS(d,$w,6))==null?void 0:oc(R,3))||"0"});_.zQ(X,
XGU,7)&&(H.gameCapture={averageFrameTimeDeltaMs:(l=_.xS(X,XGU,7))==null?void 0:pM(l,1),averageFrameIdleTimeMs:(a=_.xS(X,XGU,7))==null?void 0:pM(a,2)});_.LL("miniAppPerformanceMetrics",H);_.JT(E)})},zzt=function(K,X,F){var P,H;
return _.q(function(f){if(f.nextAddress==1)return _.Y(f,K.JSC$14734_playNonceResolver.promise,2);P=f.yieldResult;H={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:K.JSC$14734_miniAppId,postPlayNonce:P,miniAppReleaseId:K.localReleaseId},derivedDeviceInterface:K.derivedDeviceInterface,adTriggerType:X};H.rejectedReason=F||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.LL("miniAppAdEvent",H);_.JT(f)})};
NtT.prototype.disposeInternal=function(){_.LJ.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var R8=function(K,X,F,P){F=F===void 0?{}:F;P=P===void 0?!1:P;var H,f,u,J;_.q(function(Z){if(Z.nextAddress==1)return H=K.isForeground,f=K.beforeReady,_.Y(Z,K.JSC$14734_playNonceResolver.promise,2);u=Z.yieldResult;J={externalPostId:K.JSC$14734_miniAppId,localReleaseId:K.localReleaseId,derivedDeviceInterface:K.derivedDeviceInterface,postPlayNonce:u,type:X};F.sequenceGroup=u;J.playState=f?"PLAY_STATE_NOT_READY":H?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.LL("miniAppPlayEvent",J,F);
P&&_.A_();_.JT(Z)})},eR=function(K,X){var F;
_.q(function(P){if(P.nextAddress==1)return F=(0,_.CG)(),_.Y(P,K.JSC$14734_playNonceResolver.promise,2);_.Ac(X,F);_.JT(P)})},I3L=function(K){isNaN(K.playPingTimerId)&&(K.playPingTimerId=_.Hm(function(){K.state!==1&&K.state!==2?_.yy(new _.nG("[MiniAppPlayLogger] reportPlayPing failed with state "+bmL[K.state])):R8(K,"PLAY_EVENT_TYPE_PLAY_PING")},K.playPingIntervalMs))},HhZ=function(K){return Array.from(K.entries()).map(function(X){var F=_.D(X);
X=F.next().value;F=F.next().value;return{key:X,value:F}})};var fIW=_.kU("show_mini_app_ad_frequency_cap_ms",0),DKO=function(){this.showAdIntervalMs=fIW;this.isRateLimited=!0},uQL=function(K,X){setTimeout(function(){return K.isRateLimited=!1},K.showAdIntervalMs);
K.showMiniAppAdCommand=X.showMiniAppAdCommand;K.isEmbeddedInWebview=X.isEmbeddedInWebview;K.playLogger=X.playLogger},JCL=function(K,X){var F;
return _.q(function(P){if(P.nextAddress==1){if(!K.showMiniAppAdCommand||!K.isEmbeddedInWebview)return P.return(qnt(K,X,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(K.isRateLimited)return P.return(qnt(K,X,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));K.adResolver=new _.K$;F=oou(new SEZ,X);WG(K.showMiniAppAdCommand,LDN(F));K.isRateLimited=!0;setTimeout(function(){return K.isRateLimited=!1},K.showAdIntervalMs);
return _.Y(P,K.adResolver.promise,2)}return P.return(P.yieldResult)})};
DKO.prototype.onAdFinished=function(K){K=R4V(K);var X;(X=this.adResolver)==null||X.resolve(K)};
var qnt=function(K,X,F){var P;return _.q(function(H){if(H.nextAddress==1)H=_.Y(H,(P=K.playLogger)==null?void 0:zzt(P,FZl(X),F),2);else{var f=H.return;var u=new e4Z;u=_.It(u,1,2);H=f.call(H,u)}return H})};var ZhW=new _.Oh("INNERTUBE_MANAGER_TOKEN");var YnT=function(){this.callbacks={}};
YnT.prototype.initialize=function(K){var X=this;this.callbacks=K;window.youtubewebview?window.youtubewebview.onmessage=function(F){QNC(X,F)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(F){QNC(X,F)})};
var QNC=function(K,X){if(X.data)try{var F=f6L(X.data);if(_.vF(_.sX(F,1))!=null){var P=QYT(_.BL(F,2));switch(_.BL(F,1)){case "yt-mini-app-load-audio-state":var H,f;(f=(H=K.callbacks).onAudioStateLoaded)==null||f.call(H,_.nM(P,Y3(P,oZ,1)));break;case "yt-mute-mini-app":var u,J;(J=(u=K.callbacks).onMuteMiniApp)==null||J.call(u);break;case "yt-unmute-mini-app":var Z,M;(M=(Z=K.callbacks).onUnmuteMiniApp)==null||M.call(Z);break;case "yt-playable-exit":var n,c;(c=(n=K.callbacks).onExit)==null||c.call(n);
break;case "yt-post-play-nonce":var B,L;(L=(B=K.callbacks).onPostPlayNonceReceived)==null||L.call(B,LM(P,2,oZ));break;case "yt-confirm-exit-mini-app":var A,d;(d=(A=K.callbacks).confirmExitMiniApp)==null||d.call(A);break;case "yt-confirm-exit-mini-app-edu":var R,l;(l=(R=K.callbacks).confirmExitMiniAppEdu)==null||l.call(R);break;case "yt-benchmarking-response":var a,E;(E=(a=K.callbacks).onNativeBenchmarkingMessageReceived)==null||E.call(a,LM(P,2,oZ));break;case "yt-mini-app-load-3p-consent-state":var V,
x;(x=(V=K.callbacks).multiplayer3pAckStateLoaded)==null||x.call(V,_.nM(P,Y3(P,oZ,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var N,Dl;(Dl=(N=K.callbacks).exitMiniAppSeenStateLoaded)==null||Dl.call(N,_.nM(P,Y3(P,oZ,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var Mq,pO;(pO=(Mq=K.callbacks).onNavigateToNewMiniApp)==null||pO.call(Mq);break;case "yt-game-data-available":var y9,Wy;(Wy=(y9=K.callbacks).onGameDataAvailable)==null||Wy.call(y9,LM(P,2,oZ));break;case "yt-pause-mini-app":var eP,
gw;(gw=(eP=K.callbacks).onPauseMiniApp)==null||gw.call(eP);break;case "yt-resume-mini-app":var a3,dL;(dL=(a3=K.callbacks).onResumeMiniApp)==null||dL.call(a3);break;case "yt-playable-ad-finished":var nt,ht;(ht=(nt=K.callbacks).onAdFinished)==null||ht.call(nt,LM(P,2,oZ))}}else _.yy(Error("Nh"))}catch(YC){_.jF(Error("Oh"))}else _.yy(Error("Ph"))};var Hgy=function(K){this.rpcErrorCode=K};var UW=function(K,X,F){this.intervalMs=K;this.apiFunc=X;this.type=F;this.schedulerReady=!0};
UW.prototype.call=function(K){var X=this,F;return _.q(function(P){if(P.nextAddress==1){if(X.type!==1&&K===X.cachedValue)return P.return();X.pendingApiRequestResolver||(X.pendingApiRequestResolver=new _.K$);F=X.pendingApiRequestResolver.promise;X.cachedValue=K;return _.Y(P,M2t(X),2)}return P.return(F)})};
UW.prototype.flush=function(K){K=K===void 0?!1:K;var X=this;return _.q(function(F){return X.cachedValue===void 0?F.return():_.Y(F,X.apiFunc(X.cachedValue,K),0)})};
var M2t=function(K){var X,F,P;return _.q(function(H){switch(H.nextAddress){case 1:if(!K.schedulerReady||!K.pendingApiRequestResolver)return H.return();K.schedulerReady=!1;X=K.pendingApiRequestResolver;K.pendingApiRequestResolver=void 0;_.s2(H,2);if(K.cachedValue===void 0){H.jumpTo(4);break}return _.Y(H,K.apiFunc(K.cachedValue),5);case 5:F=H.yieldResult,X.resolve(F);case 4:_.Gy(H,3);break;case 2:P=_.qc(H),X.reject(P);case 3:setTimeout(function(){return _.q(function(f){K.schedulerReady=!0;return _.Y(f,
M2t(K),0)})},K.intervalMs),_.JT(H)}})};var f83=window.location.origin+"/miniapp_cloudsaves",s$d=[400,401],n7t=_.kU("cloud_save_game_data_rate_limit_ms",3E3),BUL=function(K){var X=this;this.JSC$14778_miniAppId=K;this.loadAttempts=0;this.cloudSaveIntervalMs=n7t;this.initialDownloadDataSucceeded=!1;this.JSC$14778_playNonceResolver=new _.K$;this.scottyUploadRateLimiter=new UW(this.cloudSaveIntervalMs,function(F,P){return cCt(X,F,P)},2);
this.downloadDataPromise=prU(this);this.downloadDataPromise.then(function(){X.initialDownloadDataSucceeded=!0}).catch(function(){})},SnO=function(K,X){X.then(function(F){return K.JSC$14778_playNonceResolver.resolve(F)})},o7L=function(K){return _.q(function(X){return K.cachedData===void 0?X.return(K.downloadDataPromise):X.return(K.cachedData)})},LnV=function(K,X){return _.q(function(F){K.cachedData=X;
if(!K.initialDownloadDataSucceeded)throw Error("Qh");return _.Y(F,K.scottyUploadRateLimiter.call(X),0)})},TUU=function(){return new Promise(function(K){setTimeout(K,1E3,"")})},rCt=function(K,X){var F,P;
return _.q(function(H){if(H.nextAddress==1)return F=K.JSC$14778_miniAppId,_.Y(H,Promise.race([K.JSC$14778_playNonceResolver.promise,TUU()]),2);P={"X-YouTube-MiniAppId":F,"X-YouTube-PostPlayNonce":H.yieldResult};"DELEGATED_SESSION_ID"in _.Wd&&$zd(X,P);return H.return(P)})},cCt=function(K,X,F){F=F===void 0?!1:F;
return _.q(function(P){return P3l()?_.S("enable_cloud_save_error_popup_after_retry")?P.return(new Promise(function(H,f){var u,J,Z,M,n;return _.q(function(c){switch(c.nextAddress){case 1:u=0,J=!0,M=Z=null;case 2:if(!(J&&u++<2)){c.jumpTo(4);break}_.s2(c,5);return _.Y(c,ACU(K,X,F),7);case 7:Z=c.yieldResult;J=Z.ok?!1:!s$d.includes(Z.status);_.Gy(c,2);break;case 5:M=n=_.qc(c);J=zKn(M);c.jumpTo(2);break;case 4:Z?Z.ok?(hR(K,n7t),H()):(hR(K,K.cloudSaveIntervalMs*2),f(Error("Rh`"+String(Z.status),{cause:{rpcErrorCode:Z.status}}))):
(hR(K,K.cloudSaveIntervalMs*2),f(M||Error("Sh"))),_.JT(c)}})})):P.return(new Promise(function(H,f){var u,J;
return _.q(function(Z){if(Z.nextAddress==1){if(K.JSC$14778_miniAppId==="")return f(Error("Th")),Z.return();_.s2(Z,2);return _.Y(Z,ACU(K,X,F),4)}if(Z.nextAddress!=2)return u=Z.yieldResult,u.ok?(hR(K,n7t),H()):(hR(K,K.cloudSaveIntervalMs*2),f(Error("Rh`"+String(u.status),{cause:{rpcErrorCode:u.status}}))),_.Gy(Z,0);J=_.qc(Z);hR(K,K.cloudSaveIntervalMs*2);f(J);_.JT(Z)})})):P.return()})},ACU=function(K,X,F){F=F===void 0?!1:F;
var P,H,f;return _.q(function(u){if(u.nextAddress==1)return P=_.iW((new TextEncoder).encode(X)),H=DCP(),_.Y(u,rCt(K,H),2);f=u.yieldResult;return u.return(fetch(H,{method:"POST",body:new Blob([P]),headers:f,keepalive:F}))})},prU=function(K){var X,F;
return _.q(function(P){if(P.nextAddress==1){if(!P3l())return P.return("");if(K.JSC$14778_miniAppId==="")throw Error("Th");if(K.loadAttempts>2)return P.return(K.downloadDataPromise);_.s2(P,2);return _.Y(P,jNO(K),4)}if(P.nextAddress!=2)return X=P.yieldResult,P.return(X);F=_.qc(P);if(zKn(F)&&++K.loadAttempts<2)return P.return(prU(K));throw F;})},jNO=function(K){var X,F,P,H,f;
return _.q(function(u){switch(u.nextAddress){case 1:return _.s2(u,2),X=DCP(),_.Y(u,rCt(K,X),4);case 4:return F=u.yieldResult,_.Y(u,fetch(X,{method:"GET",headers:F}),5);case 5:return P=u.yieldResult,P.ok?_.Y(u,P.text(),6):u.return(Promise.reject(Error("Uh`"+String(P.status),{cause:new Hgy(P.status)})));case 6:return H=u.yieldResult,u.return((new TextDecoder).decode(_.Jt(H)));case 2:return f=_.qc(u),u.return(Promise.reject(f))}})},hR=function(K,X){K.cloudSaveIntervalMs=X;
K.scottyUploadRateLimiter.intervalMs=K.cloudSaveIntervalMs};
BUL.prototype.flush=function(){var K=this;return _.q(function(X){return K.initialDownloadDataSucceeded?_.Y(X,K.scottyUploadRateLimiter.flush(!0),0):X.return()})};var wrt=CT(b4(1),gC(1)),yCL=CT(b4(1),gC(3)),mJ=function(K){this.callbacks=K};
_.z=mJ.prototype;_.z.onAudioToggled=function(K,X){(X===void 0||X)&&_.kl("yt-mini-app-is-audio-enabled",K,2592E3)};
_.z.onPause=function(){this.onAudioToggled(!1,!1)};
_.z.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.z.returnNativeBenchmarkingMessage=function(){};
_.z.sendGameData=function(){};
_.z.sendStartGameFrameCapture=function(){};
var uRw=function(K,X,F){this.callbacks=K;var P=this;this.sdkVersion=new _.K$;this.channel=new cQP(_.$_({destination:window,iframe:X,origin:(new URL(F.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var H=GG;var f=b4(5);var u=new $dC;u=_.rd(u,1,1E4);f=_.P$(f,4,iSt,u);H(P,f);P.onAudioToggled(P.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){P.sdkVersion.resolve("")},1E4)};
_.r(uRw,mJ);_.z=uRw.prototype;_.z.onAudioToggled=function(K,X){mJ.prototype.onAudioToggled.call(this,K,X===void 0?!0:X);X=GG;var F=b4(2),P=new abt;K=_.sw(P,1,K);K=_.P$(F,3,iSt,K);X(this,K)};
_.z.onPause=function(){mJ.prototype.onPause.call(this);GG(this,b4(3))};
_.z.onResume=function(){mJ.prototype.onResume.call(this);GG(this,b4(4))};
_.z.returnNativeBenchmarkingMessage=function(K){var X=GG,F=b4(6);var P=gC(_.zQ(K,hI,1)?1:2);K=_.zQ(K,hI,1)?K:null;P=_.P$(P,5,E_,K);X(this,CT(F,P))};
_.z.sendGameData=function(K){var X=GG,F=b4(7);K=_.P$(F,5,iSt,K);X(this,K)};
_.z.sendStartGameFrameCapture=function(){GG(this,b4(9))};
var lw=function(K,X,F){var P,H,f;return _.q(function(u){if(u.nextAddress==1)return P=K.callbacks,H=P.onSdkCalled,f=X,_.Y(u,K.sdkVersion.promise,2);H.call(P,f,u.yieldResult,F);_.JT(u)})};
uRw.prototype.onMessage=function(){var K=this;return SuT(xw,function(X){var F,P,H,f,u,J,Z,M,n,c,B,L,A,d,R,l,a,E,V,x,N,Dl,Mq,pO,y9,Wy,eP,gw,a3,dL,nt,ht,YC,uu,X8,qV,J0,yd,uT,SU,RC,tw,TE,NV,$E,bu;return _.q(function(sZ){switch(sZ.nextAddress){case 1:if(!snC(X.data))return _.yy(Error("Vh")),sZ.return();F=_.S3(X.data,1);_.S("enable_iframe_message_get_type_via_fields")&&(P=X.data,F=H=_.S3(P,1));switch(F){case 8:if(X.data.hasMetadata()){var tt=K.sdkVersion,BF=tt.resolve;var BN=X.data.getMetadata();BN=_.BL(BN,
1);BF.call(tt,BN);clearTimeout(K.sdkVersionTimeoutId)}break;case 6:return sZ.jumpTo(2);case 16:if(!_.fM(X.data,klE,14,Iy))return sZ.return();f=_.TQ(X.data,klE,14,Iy);(J=(u=K.callbacks).onGameFrameReceived)==null||J.call(u,f);return sZ.return();case 17:if(!_.fM(X.data,IbW,15,Iy))return sZ.return();(M=(Z=K.callbacks).onGameAudioReceived)==null||M.call(Z,_.TQ(X.data,IbW,15,Iy));return sZ.return();case 1:if(tt=_.TQ(X.data,gaC,2,Iy))switch(_.S3(tt,1)){case 1:K.callbacks.onFirstFrameReady();if(_.S("enable_network_request_logging_on_game_events")&&
_.zQ(tt,O_,4)){lw(K,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.xS(tt,O_,4));break}lw(K,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(BN=(BF=K.callbacks).onGameReady)==null||BN.call(BF);if(_.S("enable_network_request_logging_on_game_events")&&_.zQ(tt,O_,4)){lw(K,"MINI_APP_SDK_API_GAME_READY",_.xS(tt,O_,4));break}lw(K,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.fM(tt,V5,3,EaW))K.callbacks.onResourceLoaded(_.TQ(tt,V5,3,EaW))}return sZ.return();case 3:return sZ.jumpTo(3);case 4:return sZ.jumpTo(4);
case 2:return sZ.jumpTo(5);case 9:return sZ.jumpTo(6);case 10:return K.callbacks.onClick(),sZ.return();case 5:return sZ.jumpTo(7);case 11:if(!_.fM(X.data,ay,9,Iy))return sZ.return();n=_.TQ(X.data,ay,9,Iy);(B=(c=K.callbacks).onBenchmarkingMessageReceived)==null||B.call(c,n);tt=X.reply;BF=b4(1);BN=gC(1);var wL=new ay;var Zd=new Uint8Array(tVy(n,Y3(n,h4O,6))|0);wL=DW(wL,5,h4O,_.lu(Zd,!1));BN=_.P$(BN,5,E_,wL);tt.call(X,CT(BF,BN));return sZ.return();case 12:return sZ.jumpTo(8);case 13:return sZ.jumpTo(9);
case 15:if(!_.S("enable_open_yt_content"))return X.reply(yCL),sZ.return();if(!_.fM(X.data,xdL,12,Iy))return X.reply(CT(b4(1),gC(2))),sZ.return();tt=_.TQ(X.data,xdL,12,Iy);L=_.BL(tt,1);K.callbacks.onOpenYTContent(L);X.reply(wrt);return sZ.return();case 14:return sZ.jumpTo(10);default:return sZ.return()}sZ.jumpTo(0);break;case 2:if(!_.fM(X.data,Nf,5,Iy))return sZ.return();BF=X.data;tt=Y3(BF,Iy,5);BF=BF.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(tt=jy(BF,BF[_.LW]|0,Nf,tt))||(tt=Nf[OV])||
(tt=new Nf,jU(tt.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),tt=Nf[OV]=tt);A=tt;tt=_.kp(A,tP,1,_.KJ());d=_.D(tt);R=d.next();case 12:if(R.done){sZ.jumpTo(14);break}l=R.value;a=new _.nG;a.level=_.S3(l,2)===1?"WARNING":"ERROR";E=JSw(l.getSource());return _.Y(sZ,K.sdkVersion.promise,15);case 15:V={source:E,sdkVersion:sZ.yieldResult};_.Lt(_.sX(l,6))!=null?(a.message=l.getMessage(),a.stack=_.BL(l,5),V.sdkErrorType=Zgy(_.S3(l,6)),_.Lt(_.sX(l,7))!=null&&(V.sdkApi=Ybd(_.S3(l,7)))):a.stack=void 0;
N=x=void 0;(N=(x=K.callbacks).onError)==null||N.call(x,{loggingError:a,metadata:V});R=d.next();sZ.jumpTo(12);break;case 14:return sZ.return();case 3:return _.s2(sZ,16),tt=K.callbacks,BF=tt.onSave,BN=_.TQ(X.data,t6C,4,Iy),BN=_.BL(BN,1),_.Y(sZ,BF.call(tt,BN),18);case 18:X.reply(wrt);_.Gy(sZ,17);break;case 16:return Dl=_.qc(sZ),Mq=dM,pO=Dl,y9=K.callbacks,Wy="MINI_APP_SDK_API_SAVE_DATA",_.Y(sZ,K.sdkVersion.promise,19);case 19:Mq(pO,y9,Wy,sZ.yieldResult),X.reply(yCL);case 17:return _.Y(sZ,lw(K,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return sZ.return();case 4:return _.s2(sZ,21),_.Y(sZ,K.callbacks.onLoad(),23);case 23:eP=sZ.yieldResult;tt=X.reply;BF=b4(1);BN=gC(1);wL=new t6C;wL=_.Qf(wL,1,eP);BN=_.P$(BN,3,E_,wL);tt.call(X,CT(BF,BN));_.Gy(sZ,22);break;case 21:return gw=_.qc(sZ),a3=dM,dL=gw,nt=K.callbacks,ht="MINI_APP_SDK_API_LOAD_DATA",_.Y(sZ,K.sdkVersion.promise,24);case 24:a3(dL,nt,ht,sZ.yieldResult),X.reply(yCL);case 22:return _.Y(sZ,lw(K,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return sZ.return();case 5:_.s2(sZ,
26);K.callbacks.onSendHighScore(eM(_.TQ(X.data,PfC,3,Iy).getValue()));X.reply(CT(b4(1),gC(1)));_.Gy(sZ,27);break;case 26:return YC=_.qc(sZ),uu=dM,X8=YC,qV=K.callbacks,J0="MINI_APP_SDK_API_SEND_SCORE",_.Y(sZ,K.sdkVersion.promise,28);case 28:uu(X8,qV,J0,sZ.yieldResult),X.reply(yCL);case 27:return _.Y(sZ,lw(K,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return sZ.return();case 6:if(!_.fM(X.data,Hjt,8,Iy)){sZ.jumpTo(30);break}tt=_.TQ(X.data,Hjt,8,Iy);tt=_.S3(tt,1);return _.Y(sZ,lw(K,Ybd(tt)),30);case 30:return sZ.return();
case 7:return tt=X.reply,BF=b4(1),BN=gC(1),wL=K.callbacks.getLanguage(),BN=DW(BN,4,E_,lW(wL)),tt.call(X,CT(BF,BN)),_.Y(sZ,lw(K,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return sZ.return();case 8:if(!_.fM(X.data,Fmt,10,Iy))return sZ.return();yd=_.TQ(X.data,Fmt,10,Iy);uT=K.callbacks;SU=uT.onSdkPerformanceUpdate;return _.Y(sZ,K.sdkVersion.promise,33);case 33:return SU.call(uT,yd,sZ.yieldResult),sZ.return();case 9:tt=X.data;BF=Y3(tt,Iy,11);if(_.vF(_.sX(tt,BF))==null)return X.reply(CT(b4(1),gC(2))),
sZ.return();RC=LM(X.data,11,Iy);K.callbacks.onShareInviteCode(RC);X.reply(wrt);return _.Y(sZ,lw(K,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return sZ.return();case 10:if(_.fM(X.data,vaC,13,Iy)){sZ.jumpTo(35);break}return _.Y(sZ,K.callbacks.onShowMiniAppAd(2),36);case 36:return tw=sZ.yieldResult,X.reply(CT(b4(1),C6U(tw))),_.Y(sZ,lw(K,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return sZ.return();case 35:tt=_.TQ(X.data,vaC,13,Iy);a:switch(_.S3(tt,1)){case 1:tt={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:tt={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:tt={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}TE=tt;NV=TE.adType;$E=TE.sdkApi;tt=K.callbacks;BF=tt.onShowMiniAppAd;BN=_.TQ(X.data,vaC,13,Iy);BN=_.BL(BN,2);return _.Y(sZ,BF.call(tt,NV,BN||void 0),38);case 38:return bu=sZ.yieldResult,X.reply(CT(b4(1),C6U(bu))),_.Y(sZ,lw(K,$E),39);case 39:return sZ.return()}})})};
var GG=function(K,X){_.q(function(F){K.channel.send(X);_.JT(F)})},eI=function(K,X,F){this.callbacks=K;
var P=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;K=zHM(X,(new URL(F.toString())).origin);this.gameSnacks=new U3O(K);this.gameSnacks.page.onReady(function(){P.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){P.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var H,f;(f=(H=P.callbacks).onGameReady)==null||f.call(H)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(H,f){try{P.callbacks.onSendHighScore(f)}catch(u){dM(u,P.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(H,f){var u;return _.q(function(J){if(J.nextAddress==1)return _.s2(J,2),_.Y(J,P.callbacks.onSave(P.decoder.decode(f)),4);if(J.nextAddress!=2)return _.Gy(J,0);u=_.qc(J);dM(u,P.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return J.return()})});
this.gameSnacks.storage.onLoad(function(){var H,f;return _.q(function(u){if(u.nextAddress==1)return _.s2(u,2),_.Y(u,P.callbacks.onLoad(),4);if(u.nextAddress!=2)return H=u.yieldResult,u.return(P.encoder.encode(H));f=_.qc(u);dM(f,P.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return u.return(P.encoder.encode(""))})});
this.gameSnacks.init()};
_.r(eI,mJ);eI.prototype.onAudioToggled=function(K,X){mJ.prototype.onAudioToggled.call(this,K,X===void 0?!0:X);var F;(F=this.gameSnacks)==null||F.audio.update(K)};
eI.prototype.onPause=function(){mJ.prototype.onPause.call(this);var K;(K=this.gameSnacks)==null||K.game.pause()};
eI.prototype.onResume=function(){mJ.prototype.onResume.call(this);var K;(K=this.gameSnacks)==null||K.game.resume()};var WnZ=Q$d,dKE=_.$c(function(K){var X=K.data;var F=K.loadingProgress;K=_.D(_.u_("",void 0,"LYYTdd"));var P=K.next().value,H=K.next().value;K=_.D(_.u_(!1,void 0,"K0waae"));var f=K.next().value,u=K.next().value,J=[],Z=function(){return"transform: scaleX("+(_.ws(F)||0)+")"},M=null,n=function(){var A;
return(A=X()&&M)!=null?A:M=X().showAnniversaryAnimation?6:WnZ()};
_.rs(function(){var A;if(X().timeOutMessages&&((A=X().timeOutMessages)==null?0:A.length)){M=null;A=_.D(J);for(var d=A.next();!d.done;d=A.next())clearTimeout(d.value);J.length=0;Ms3(X().timeOutMessages,J,H,u)}},"hrKvCe");
var c=function(){return!!X().persistentErrorMessageTitle},B=function(){return F!==void 0},L=function(){return X().title};
return _.Q("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.Q("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.Q("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.Q("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var A,d=(A=X().backgroundImage)==null?void 0:A.sources,R;return(d==null?0:d.length)?"background-image: url("+((R=d[0])==null?void 0:R.url)+")":
""}}),_.Q("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.Q(_.p,{cond:function(){return!c()},
then:function(){var A={};return _.Q("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.Q("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.Q(_.se,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+n()},
data:function(){var d="loading_animation_"+n();return{animationConfig:{name:d,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+d+".json",loop:!0,autoplay:!0}}}})),_.Q("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.Q(_.p,{cond:L,
then:function(){return _.Q("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},L)}}),_.Q("p",{class:_.HO("mini-app-splash-screen-view-model-wiz__timeout-message",(A["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return f()},A)),
"aria-live":"polite"},P),_.Q(_.p,{cond:B,then:function(){return _.Q("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.Q("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:Z}))}})))}}),_.Q(_.p,{cond:c,
then:function(){return _.Q("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.Q("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return X().persistentErrorMessageTitle}),_.Q(_.p,{cond:function(){return!!X().persistentErrorMessageDescription},
then:function(){return _.Q("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return X().persistentErrorMessageDescription})}}))}})))},"Sd");var ezZ=new _.Oh("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var RzZ=Eg;Eg=function(K){function X(F){if(F){var P,H;(P=F.__spec)==null||(H=P.didUnmount)==null||H.call(P);for(P=0;P<F.childNodes.length;P++)X(F.childNodes[P])}}
RzZ==null||RzZ(K);Bn(function(){for(var F=0;F<K.length;F++)X(K[F])})};var UKu=_.$c(function(K){var X=K.data;var F=K.score;var P=K.formattedScore;var H=K.onScoreChanged;var f=K.isEmbeddedInWebview;var u=_.$3(),J=function(){var L;return _.T(X==null?void 0:(L=X())==null?void 0:L.buttonViewModel,_.nS)},Z=function(){var L;
return(F==null?void 0:F())||Number(X==null?void 0:(L=X())==null?void 0:L.lastScore)||0},M=function(){var L;
return(P==null?void 0:P())||((L=J())==null?void 0:L.title)||""},n,c=1;
if(K=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))K=Number(K),c=isNaN(K)?1:K/100;_.rs(function(){H==null||H(Z());var L;var A=_.w$((L=J())==null?void 0:L.onTap);if(A){L=_.T(A,APC);var d,R,l;L=_.T(L==null?void 0:(d=L.panelLoadingStrategy)==null?void 0:(R=d.inlineContent)==null?void 0:(l=R.dialogViewModel)==null?void 0:l.customContent,TPU)}else L=void 0;if(d=L)d.score=M()},"KZFi5e");
K=_.DF(function(){var L,A,d=X==null?void 0:(L=X())==null?void 0:(A=L.loggingDirectives)==null?void 0:A.trackingParams;d&&_.FT(_.i9().resolve(_.n3),d);return!1});
_.AV(function(){if(u.value){var L=u.value.querySelector("button"),A=J();L&&A&&ne4(L,A);by("yt-share-playable-with-high-score",function(){var d=Z().toString(),R=X==null?void 0:X().onShareHighScoreCommand,l=X==null?void 0:X().highScoreShareClientParamIdentifier,a=f==null?void 0:f();R&&(a?(l=new QyU,d=_.Qf(l,2,d),WG(R,d.JSC$10275_serializeBinary())):l&&(_.i9().resolve(ezZ).clientParams.set(l,{miniAppClientParams:{highScore:d}}),kqy(R,!1)))})}});
var B=function(){var L=J();L&&(F==null?0:F())&&L.accessibilityText&&(L.accessibilityText=L.accessibilityText.replace(n,M()));n=M();return{numberValue:Z(),numberText:M(),heightPx:36,fontSizeMultiplier:c,shouldAnimate:!(F==null||!F())&&!0}};
return _.Q("yt-mini-app-score-button-view-model",{class:function(){var L={};return _.z9("mini-app-score-button-view-model-wiz",(L["mini-app-score-button-view-model-wiz--is-visible"]=Z()!==0,L))},
el:u,"on:click":K},bB(!1,function(){return _.Q("span",{style:"display:none;"},Z)}),_.Q(_.Md,{data:function(){var L;
return X==null?void 0:(L=X())==null?void 0:L.buttonViewModel}},{buttonViewModel:function(L){return _.Q(_.Af,{data:L.data,
animatedTextProps:B})}}))},"Td");var v7U=_.$c(function(K){var X,F=(X=_.KE("yt-mini-app-is-theater-mode-enabled"))!=null?X:!1,P=_.S("enable_playable_container_save_button"),H=_.S("enable_play_next_destination_page_in_toolbar");X={};return _.Q("ytm-mini-app-top-bar-view-model",null,_.Q("div",{class:_.HO("yt-mini-app-top-bar-view-model",(X["yt-mini-app-top-bar-view-model--mobile"]=!1,X["yt-mini-app-top-bar-view-model--desktop"]=!0,X))},_.Q("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.Q(_.p,{cond:function(){var f;
return!!K.data().backButtonEdu&&!((f=K.isExitMiniAppSeen)==null?0:f.call(K))},
then:function(){return _.Q(_.Md,{data:function(){return K.data().backButtonEdu}},{buttonViewModel:_.Af})},
else:function(){return _.Q(_.Md,{data:function(){return K.data().backButton}},{buttonViewModel:_.Af})}}),_.Q(_.p,{cond:function(){return K.data().viewAllButton&&!0},
then:function(){return _.Q(_.Md,{data:function(){return K.data().viewAllButton}},{buttonViewModel:_.Af})}}),_.Q(_.p,{cond:function(){return K.data().title&&!0},
then:function(){return _.Q("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return K.data().title})}})),_.Q("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.Q(_.p,{cond:function(){var f;
return(f=K.isDesktopPlayPage)==null?void 0:f.call(K)},
then:function(){return _.Q(_.ID,null,_.Q(hzO,{highScoreButton:function(){return K.data().highScoreButton},
score:K.score,formattedScore:K.formattedScore,onScoreChanged:K.onScoreChanged,isEmbeddedInWebview:K.isEmbeddedInWebview}),_.Q(mKT,{enableSaveButton:function(){return _.ws(P)},
saveButton:function(){return K.data().saveButton},
isSaved:K.isSaved,onSaveToggled:function(){return K.onSaveToggled}}),_.Q(GhV,{menuButton:function(){return K.data().menuButton}}))},
else:function(){return _.Q(_.p,{cond:function(){return!1},
then:function(){return _.Q(_.Md,{data:function(){return K.data().playPageButton}},{buttonViewModel:function(f){return _.Q(_.Af,{data:f.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.Q(hzO,{highScoreButton:function(){return K.data().highScoreButton},
score:K.score,formattedScore:K.formattedScore,onScoreChanged:K.onScoreChanged,isEmbeddedInWebview:K.isEmbeddedInWebview})}})}})),_.Q("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.Q(_.Md,{data:function(){return K.data().muteButton}},{toggleButtonViewModel:function(f){var u=f.data;
return _.Q(_.pS,{data:function(){var J,Z;return Object.assign({},u(),{isToggled:(Z=(J=K.isAudioEnabled)==null?void 0:J.call(K))!=null?Z:!0})},
onToggle:K.onAudioToggled,useOutlinedIcon:!0})}}),_.Q(_.Md,{data:function(){return K.data().theatreModeButton}},{toggleButtonViewModel:function(f){var u=f.data;
return _.Q("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.Q(_.pS,{data:function(){return Object.assign({},u(),{isToggled:F})},
useOutlinedIcon:!0}))}}),_.Q(lIE,{fullscreenButton:function(){return K.data().fullscreenButton}}),_.Q(_.p,{cond:function(){return _.ws(H)&&K.data().viewAllButton&&!1},
then:function(){return _.Q(_.Md,{data:function(){return K.data().viewAllButton}},{buttonViewModel:_.Af})}}),_.Q(_.p,{cond:function(){var f;
return!((f=K.isDesktopPlayPage)==null?0:f.call(K))},
then:function(){return _.Q(_.ID,null,_.Q(mKT,{enableSaveButton:function(){return _.ws(P)},
saveButton:function(){return K.data().saveButton},
isSaved:K.isSaved,onSaveToggled:function(){return K.onSaveToggled}}),_.Q(GhV,{menuButton:function(){return K.data().menuButton}}))}}))))},"Ud");
v7U.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var GhV=_.$c(function(K){return _.Q(_.Md,{data:K.menuButton},{buttonViewModel:_.Af})},"Vd"),mKT=_.$c(function(K){var X=K.enableSaveButton;
var F=K.saveButton;var P=K.isSaved;var H=K.onSaveToggled;return _.Q(_.p,{cond:function(){return X()&&!(F==null||!F())},
then:function(){return _.Q(_.Md,{data:function(){var f=_.T(F==null?void 0:F(),_.cp),u;return{toggleButtonViewModel:Object.assign({},f,{isToggled:(u=P==null?void 0:P())!=null?u:!(f==null||!f.isToggled)})}}},{toggleButtonViewModel:function(f){return _.Q(_.pS,{data:f.data,
onToggle:H})}})}})},"Wd"),hzO=_.$c(function(K){var X=K.highScoreButton;
var F=K.score;var P=K.formattedScore;var H=K.onScoreChanged;var f=K.isEmbeddedInWebview;return _.Q(_.Md,{data:X},{miniAppScoreButtonViewModel:function(u){return _.Q(UKu,{data:u.data,score:F,formattedScore:P,onScoreChanged:H,isEmbeddedInWebview:f})}})},"Xd"),lIE=_.$c(function(K){K=K.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.Q(_.ID,null):_.Q(_.Md,{data:K},{buttonViewModel:_.Af})},"Yd");_.aIN=new _.Oh("DESKTOP_CURRENT_PAGE");var E7C=_.$c(function(K){var X=K.data;var F=_.S("force_active_time_logging_webview"),P=!1,H=new YnT,f=void 0,u=void 0,J=_.i9().resolve(ZhW),Z=new DKO,M=void 0,n=void 0,c=[],B=void 0,L=void 0,A=!1,d=!1,R=!1,l=!1,a=new _.K$,E=_.i9().resolve(ezZ),V=_.i9().resolve(_.dx),x=_.i9().resolve(_.Nu(DY)),N,Dl=(N=_.i9().resolve(_.Nu(_.aIN)))==null?void 0:N.getCurrentPage(),Mq=!1,pO=0,y9=function(V9){V9.preventDefault();return V9.returnValue=""},Wy;
K=_.D(_.u_(!((Wy=_.KE("yt-mini-app-is-audio-enabled"))!=null&&!Wy),void 0,"HKETIe"));var eP=K.next().value,gw=K.next().value,a3;Wy=_.D(_.u_(!((a3=_.KE("exit-mini-app-seen-state"))==null||!a3),void 0,"YikM9"));var dL=Wy.next().value,nt=Wy.next().value;a3=_.D(_.u_(!1,void 0,"iTNqCb"));var ht=a3.next().value,YC=a3.next().value;a3=_.D(_.u_(void 0,void 0,"bU3Vbf"));var uu=a3.next().value,X8=a3.next().value;a3=_.D(_.u_(void 0,void 0,"qd4Zt"));var qV=a3.next().value,J0=a3.next().value;a3=_.D(_.u_(!0,void 0,
"Cqc83e"));var yd=a3.next().value,uT=a3.next().value;a3=_.D(_.u_(!1,void 0,"oHovIe"));var SU=a3.next().value,RC=a3.next().value;a3=_.D(_.u_(void 0,void 0,"aeN11"));var tw=a3.next().value,TE=a3.next().value;a3=_.D(_.u_(0,void 0,"AEGRyb"));var NV=a3.next().value,$E=a3.next().value,bu=_.t_(),sZ=function(){return X().isEmbeddedInWebview},tt=function(){return X().hasPlayNextShelf};
by("yt-page-type-changed",function(V9){if(_.S("enable_is_mini_app_page_active_bugfix"))V9.detail.newPageSubtype==="mini_app"&&V9.detail.newPageType==="ytd-browse"||!yd()||wL();else if(V9=_.XZT()==="mini_app",V9!==yd())if(uT(V9),V9){var Dd;V9=(Dd=X().playableId)==null?void 0:Dd.toString();V9!==void 0&&window.location.href.includes(V9)&&!d&&(l=!0,BF(),Zs(MV.value))}else V9||wL()});
by("yt-action",function(V9){V9.detail.actionName==="yt-engagement-panel-visible-changed"&&V9.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&V9.detail.args[2]==="PAmini_app_panel"&&wL();_.S("enable_is_mini_app_page_active_bugfix")?V9.detail.actionName==="yt-history-load"&&!yd()&&(Dl==null?0:Dl.active)?(uT(!0),BF(),Zs(MV.value)):V9.detail.actionName==="yt-history-load"&&yd()&&!X().isEmbeddedInWebview&&Bk():yd()&&V9.detail.actionName==="yt-history-load"&&(l?l=!1:X().isEmbeddedInWebview||Bk())});
_.AZ(function(){BN()});
_.rs(function(){BF()},"C24xad");
var BF=function(){var V9=X().playableId,Dd=X().localReleaseId,Ds=X().derivedDeviceInterface;if(d)_.yy(new _.nG("[MiniAppContainerViewModel] onEnter was called more than once"));else{d=!0;f=new NtT(V9,Dd,Ds,document.visibilityState==="visible");kRt(f);u=new BUL(V9);t2L(J,V9);uQL(Z,{showMiniAppAdCommand:X().showMiniAppAdCommand,isEmbeddedInWebview:X().isEmbeddedInWebview,playLogger:f});wgy()&&(L=document.body.style.backgroundColor,_.TM(document.body,"background-color","black"));Ms();cN();a=new _.K$;
if(X().isEmbeddedInWebview){if(V9=(new URLSearchParams(window.location.search)).get("postPlayNonce"))xNW(f,V9),Mq=!0;H.initialize({onAudioStateLoaded:function(Kx){ft(Kx)},
onMuteMiniApp:function(){ft(!1)},
onUnmuteMiniApp:function(){ft(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(Kx){Mq||(xNW(f,Kx),Mq=!0)},
confirmExitMiniApp:function(){var Kx,wE,$i;return _.q(function(dj){if(dj.nextAddress==1)return X().confirmExitMiniAppCommand?_.Y(dj,Promise.race([a.promise,Promise.resolve(!1)]),2):dj.return();(Kx=dj.yieldResult)?!X().confirmExitMiniAppCommandEdu||($i=(wE=dL)==null?void 0:wE())!=null&&$i?SO(X().confirmExitMiniAppCommand):(SO(X().confirmExitMiniAppCommandEdu),_.kl("exit-mini-app-seen-state","true",2592E6)):SO(X().closeMiniAppCommand);_.JT(dj)})},
onNativeBenchmarkingMessageReceived:function(Kx){Kx=GlW(_.xCT(Kx));if(_.fM(Kx,_.y$,3,UdC)){var wE=_.TQ(Kx,_.y$,3,UdC),$i=KZl();var dj=eM($i.getSeconds())-eM(wE.getSeconds());wE=_.XA($i,2)-_.XA(wE,2);dj<0&&wE>0?(dj+=1,wE-=1E9):dj>0&&wE<0&&(--dj,wE+=1E9);dj=(new hI).setSeconds(dj);dj=_.Tm(dj,2,_.r1(wE),0);_.Fw(Kx,1,dj)}var Y_;(Y_=n)==null||Y_.returnNativeBenchmarkingMessage(Kx)},
multiplayer3pAckStateLoaded:function(Kx){Bk(Kx)},
exitMiniAppSeenStateLoaded:function(Kx){X().confirmExitMiniAppCommandEdu&&nt(Kx)},
onNavigateToNewMiniApp:function(){SO(X().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(Kx){Kx=new URLSearchParams(Kx);var wE=void 0;Kx.has("invite_code")&&(wE=new V6L,Kx=Kx.get("invite_code"),wE=_.Qf(wE,1,Kx));if(Kx=wE){var $i;($i=n)==null||$i.sendGameData(Kx)}},
onPauseMiniApp:function(){P=!0;Zd()},
onResumeMiniApp:function(){P=!0;fs()},
onAdFinished:function(Kx){Z.onAdFinished(Kx)}});
X().showMultiplayer3pConsentDialogCommand||a.resolve(!0);SO(X().onContainerReadyCommand)}else xNW(f),a.resolve(!0);SnO(u,imL(f));imL(f).then(function(Kx){Kx={miniAppPlayData:{postPlayNonce:Kx}};var wE,$i=(wE=X().loggingDirectives)==null?void 0:wE.trackingParams;$i&&_.uH().stateChanged($i,Kx)});
V9=X().showSignInDialogCommand;!P3l()&&V9&&(_.kl("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),SO(V9));X().confirmExitMiniAppCommand&&x&&(V9=x7O(X().confirmExitMiniAppCommand))&&(x.customConfirmationCommand=V9)}},BN=function(){L&&_.TM(document.body,"background-color",L);
A=!1;B&&B.release();u.flush().catch(function(V9){_.yy(V9)});
J.flush().catch(function(V9){_.yy(V9)});
XrC(f);h0();n=void 0;$KC(E)},wL=function(){uT(!1);
BN();YC(!1);TE(void 0);X8(void 0);J0(void 0);pO=0;$E(0);d=!1},Zd=function(){var V9;
(V9=n)==null||V9.onPause();B&&B.release();u.flush().catch(function(Dd){_.yy(Dd)});
J.flush().catch(function(Dd){_.yy(Dd)});
KnW(f)},fs=function(){var V9;
(V9=n)==null||V9.onResume();cN();V9=f;V9.isForeground=!0;R8(V9,"PLAY_EVENT_TYPE_PLAY_RESUME")},ft=function(V9){var Dd;
(Dd=n)==null||Dd.onAudioToggled(V9);gw(V9)},Bk=function(V9){X().showMultiplayer3pConsentDialogCommand&&(X().isEmbeddedInWebview&&V9!==void 0&&a.resolve(V9),!V9&&_.XZT()==="mini_app"&&SO(X().showMultiplayer3pConsentDialogCommand))},z6=function(){var V9,Dd,Ds,Kx;
return _.q(function(wE){if(wE.nextAddress==1){!X().isLivestream||X().disableVideoCapture||(V9=n)!=null&&V9.sendStartGameFrameCapture();Dd=(new URL(window.location.href)).searchParams;if(Dd.has("invite_code")){var $i=new V6L,dj=Dd.get("invite_code");Ds=_.Qf($i,1,dj);(Kx=n)==null||Kx.sendGameData(Ds)}ht()||(YC(!0),$i=f,$i.state!==1?_.yy(new _.nG("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+bmL[$i.state])):(_.X$("mini_app_ids_without_game_ready").includes($i.JSC$14734_miniAppId)&&($i.gameReady=
!0),$i.state=2,$i.beforeReady=!1,eR($i,"ma_ffr"),R8($i,"PLAY_EVENT_TYPE_PLAY_READY")));return _.Y(wE,a.promise,2)}SO(X().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();X().isEmbeddedInWebview||Bk();_.JT(wE)})},OZ=function(){var V9=f;
V9.gameReady=!0;eR(V9,"ma_gr")},TJ=function(V9){var Dd;
return _.q(function(Ds){if(Ds.nextAddress==1)return _.s2(Ds,2),_.Y(Ds,LnV(u,V9),4);if(Ds.nextAddress!=2)return _.Gy(Ds,0);Dd=_.qc(Ds);SO(X().showSavingErrorPopupCommand);throw Dd;})},x5=function(){var V9,Dd;
return _.q(function(Ds){if(Ds.nextAddress==1)return _.s2(Ds,2),_.Y(Ds,o7L(u),4);if(Ds.nextAddress!=2)return V9=Ds.yieldResult,Ds.return(V9);Dd=_.qc(Ds);SO(X().showLoadingErrorDialogCommand);throw Dd;})},fx=function(V9){f.logError(V9)},qu=function(V9,Dd,Ds){Pxt(f,V9,Dd,Ds)},jO=function(V9,Dd){sNN(f,V9,Dd)},LG=function(){!F&&X().isEmbeddedInWebview||_.iU();
FnN(f,!0);A||(window.addEventListener("beforeunload",y9,{capture:!0}),A=!0)},JV=function(V9){var Dd,Ds,Kx,wE,$i,dj,Y_;
return _.q(function(Qg){if(Qg.nextAddress==1)return J&&(!M||M<V9)&&V9>0?_.Y(Qg,OhL(J,V9),3):Qg.jumpTo(0);Dd=Qg.yieldResult;Ds=_.D(Dd);Kx=Ds.next().value;wE=Ds.next().value;$i=Kx;dj=wE;((Y_=$i)==null?0:Y_.displayString)&&dj&&(X8(dj),J0($i.displayString));_.JT(Qg)})},to=function(V9){var Dd=X().onBenchmarkingMessageReceivedCommand;
if(Dd){var Ds=KZl();_.P$(V9,3,UdC,Ds);WG(Dd,lbt(V9))}},fl=function(V9){var Dd=X().onGameFrameReceivedCommand;
if(Dd){var Ds=new SEZ;var Kx=new noL;var wE=cL(V9,1);Kx=_.MF(Kx,1,wE);V9=_.BL(V9,2);V9=_.Qf(Kx,2,V9);Ds=_.Fw(Ds,2,V9);WG(Dd,LDN(Ds))}},LO=function(V9){var Dd=X().onGameAudioDataReceivedCommand;
if(Dd){var Ds=new SEZ;var Kx=new pzL;V9=_.BL(V9,1);Kx=_.Qf(Kx,1,V9);Ds=_.Fw(Ds,4,Kx);WG(Dd,LDN(Ds))}},Gn=function(){var V9=new URLSearchParams(window.location.search);
if(X().isEmbeddedInWebview&&V9&&V9.get("override_hl")==="true"&&V9.get("hl"))return V9.get("hl");V9=document.documentElement.lang;return V9!==""?V9:_.Wv},$d=function(V9){var Dd=X().onShareInviteCodeCommand;
if(Dd)if(X().isEmbeddedInWebview){var Ds=new QyU;V9=_.Qf(Ds,1,V9);WG(Dd,nwL(V9))}else Ds=X().inviteCodeShareClientParamIdentifier,E.clientParams.set(Ds,{miniAppClientParams:{inviteCode:V9}}),SO(Dd)},nW=function(V9){var Dd,Ds,Kx;
return _.q(function(wE){if(wE.nextAddress==1)return Dd=X().onMiniAppOpenYtContentRequested,J&&_.S("enable_open_yt_content")&&Dd?_.Y(wE,V2u(J,V9),3):wE.jumpTo(0);Ds=wE.yieldResult;if(Ds==="OK")if(X().isEmbeddedInWebview){var $i=new ZbL;Kx=DW($i,2,oZ,lW(V9));WG(Dd,MhC(Kx))}else V.clientData.set("video_id",V9),SO(Dd);_.JT(wE)})},sV=function(V9){pO+=_.XA(V9,3);
V9=Math.min(Math.log(1+pO/15E6*9)/Math.log(10),.99);$E(V9);WJ(V9)},WJ=_.Dn(function(V9){var Dd=X().updateLoadingProgressCommand;
if(Dd){var Ds=new ZbL;V9=DW(Ds,3,oZ,_.uW(V9));WG(Dd,MhC(V9))}},100),Y5=function(V9){return JCL(Z,V9)},cN=function(){var V9,Dd;
((V9=_.joM())==null?void 0:(Dd=V9.wakeLock)==null?void 0:Dd.request)!=null&&_.joM().wakeLock.request("screen").then(function(Ds){B=Ds}).catch(function(){})},MV=_.t_();
_.rs(function(){X().isSupportedCountry&&(P3l()||_.S("enable_sign_in_promo")||!X().showSignInDialogCommand?Zs(MV.value):SO(X().onMiniAppReadyCommand))},"anRCse");
var Sk=function(){return _.Q("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return ht()?0:-1},
el:MV})},Zs=function(V9,Dd){Dd=Dd===void 0?!1:Dd;
var Ds=zE();Ds&&(Dd||Ds.toString()!==V9.getAttribute("src"))&&(n=qb3(X().source,{isAudioEnabled:eP,onFirstFrameReady:z6,onGameReady:OZ,onSave:TJ,onLoad:x5,onError:fx,onSdkCalled:qu,onSdkPerformanceUpdate:jO,onClick:LG,onSendHighScore:JV,onBenchmarkingMessageReceived:to,getLanguage:Gn,onShareInviteCode:$d,onResourceLoaded:sV,onOpenYTContent:nW,onShowMiniAppAd:Y5,onGameFrameReceived:fl,onGameAudioReceived:LO},V9,Ds),Za(V9,"load",function(){eR(f,"ma_il");Za(V9,"load",function(){Zs(V9,!0)})}),_.W$(V9,
Ds))},zE=function(){var V9=X().url;
if(V9&&(V9=_.jt(V9),V9!==null)){if(X().source&&X().source==="MINI_APP_SOURCE_GAMESNACKS")V9=_.Fs(V9,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.S("enable_origin_query_parameter_bugfix")){var Dd=_.pk(_.KIl(V9.toString()));Dd=new URLSearchParams(Dd||"");Dd.set("origin",window.location.origin);Dd=Dd.toString();V9=_.ui(V9).toString();V9=_.DX(PTu.exec(V9)[0]+(Dd.trim()?"#"+Dd:""))}return V9}},B$=function(){var V9={};
V9=_.HO("yt-mini-app-container-view-model__loading-screen",(V9["yt-mini-app-container-view-model__loading-screen--fade-out"]=ht,V9));var Dd=function(){return ht()?1:NV()};
return _.Q("div",{class:V9},_.Q(_.Md,{data:function(){return X().splashScreen}},{miniAppSplashScreenViewModel:function(Ds){return _.Q(dKE,{data:Ds.data,
loadingProgress:Dd})}}))},Ms=function(){c=[];
c.push(_.nB(window,"visibilitychange",function(){R||P&&sZ()||(document.visibilityState==="visible"?fs():Zd())}));
c.push(_.nB(window,"pagehide",function(){BN()}));
c.push(_.nB(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&bu.value.dispatchEvent(new Event("tap"))},0)}));
c.push(_.nB(bu.value,"pointerdown",function(){FnN(f,!1)},!0));
c.push(_.nB(bu.value,"pause",function(){R=!0;Zd()}));
c.push(_.nB(bu.value,"play",function(){R=!1;fs()}));
c.push(_.nB(bu.value,"exit",function(){BN()}));
var V9=navigator.keyboard,Dd=V9&&V9.lock;c.push(_.nB(window,HlC,function(){RC(z3W());z3W()?(X().hasPlayNextShelf&&dq("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),uU("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),Dd&&V9.lock(["Escape"])):(X().hasPlayNextShelf&&uU("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),dq("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),Dd&&V9.unlock())}));
X().showMultiplayer3pConsentDialogCommand&&c.push(_.nB(window,"yt-playables-ack-3p-data-usage",function(){g7u(J)}));
X().confirmExitMiniAppCommandEdu&&c.push(_.nB(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.kl("exit-mini-app-seen-state","true",2592E6)}))},h0=function(){c.forEach(function(V9){YO(V9)});
window.removeEventListener("beforeunload",y9,{capture:!0})},SO=function(V9){V9&&kqy(V9,X().isEmbeddedInWebview||!1)},uU=function(V9,Dd){V9=_.D(bu.value.getElementsByClassName(V9));
for(var Ds=V9.next();!Ds.done;Ds=V9.next())Ds.value.classList.add(Dd)},dq=function(V9,Dd){V9=_.D(bu.value.getElementsByClassName(V9));
for(var Ds=V9.next();!Ds.done;Ds=V9.next())Ds.value.classList.remove(Dd)};
return function(){var V9={};V9=_.HO("yt-mini-app-container-view-model",(V9["yt-mini-app-container-view-model--desktop"]=!0,V9["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return X().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},V9["yt-mini-app-container-view-model--ios-web-view"]=wgy(),V9["yt-mini-app-container-view-model--no-top-bar"]=function(){return!X().topBar},V9["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return X().hasPlayNextShelf},V9["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return X().hasPlayNextShelf},V9["yt-mini-app-container-view-model--show-peek-below"]=function(){return!SU()&&X().hasPlayNextShelf},V9));
var Dd={};Dd=_.HO("yt-mini-app-container-view-model__content",(Dd["yt-mini-app-container-view-model__content--desktop-content"]=!0,Dd["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return X().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Dd["yt-mini-app-container-view-model--desktop-play-page"]=function(){return X().hasPlayNextShelf},Dd));
return _.Q("mini-app-container-view-model",{el:bu},_.Q("div",{class:V9},_.Q(_.p,{cond:function(){return X().topBar&&!SU()},
then:function(){return _.Q(_.Md,{data:function(){return X().topBar}},{miniAppTopBarViewModel:function(Ds){return _.Q(v7U,{data:Ds.data,
isAudioEnabled:eP,onAudioToggled:function(Kx){ft(Kx)},
score:uu,formattedScore:qV,onScoreChanged:function(Kx){M=Kx},
isEmbeddedInWebview:sZ,isSaved:tw,onSaveToggled:function(Kx){TE(Kx)},
isExitMiniAppSeen:dL,isDesktopPlayPage:tt})}})}}),_.Q("div",{class:Dd},_.Q(_.p,{cond:yd,
then:function(){return Sk()}}),_.Q(_.p,{cond:function(){return!X().isEmbeddedInWebview},
then:function(){return B$()}}))))}()},"Zd");
E7C.idomCompat=!0;_.EP(E7C,"mini-app-container-view-model",{props:{data:_.vU}});var bhQ=_.$c(function(K){var X=K.data;return _.Q("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.Q("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.DF(function(){var F=X().onTap;F&&_.e9(F)})},_.Q(_.p,{cond:function(){return X().icon},
then:function(F){return _.Q(_.ZF,{icon:function(){return F().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.Q("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return X().title})))},"$d");
bhQ.idomCompat=!0;var CxT=_.$c(function(K){var X=_.t_(),F=_.D(_.u_(void 0,void 0,"kFCJ0c")),P=F.next().value,H=F.next().value;F=_.D(_.u_(void 0,void 0,"PIPgWd"));var f=F.next().value,u=F.next().value;F=_.D(_.u_(void 0,void 0,"rV66ob"));var J=F.next().value,Z=F.next().value,M=function(){var l=P();return l!==void 0?Math.abs(l):void 0},n=function(){var l=M();
return l===void 0||l<=3},c=function(){var l=M();
var a=f(),E=J();l=l!==void 0&&a!==void 0&&E!==void 0?a-E-l:void 0;return l===void 0||l<=3},B=function(l){X.value&&X.value.scrollBy({top:0,
left:(_.e8("HTML_DIR")==="rtl"?-1:1)*l*X.value.clientWidth,behavior:"smooth"})},L=function(){var l;
H((l=X.value)==null?void 0:l.scrollLeft);var a;u((a=X.value)==null?void 0:a.scrollWidth);var E;Z((E=X.value)==null?void 0:E.clientWidth)},A=function(){B(-.5)},d=function(){B(.5)};
F=_.DF(function(){L()});
_.Tr(function(){L();if(X.value){var l=new ResizeObserver(L);l.observe(X.value);_.AZ(function(){l.disconnect()})}});
var R={};return _.Q("yt-sponsorships-scrollable-shelf",{class:_.HO("ytdSponsorshipsScrollableShelfHost",K.className)},_.Q("div",{class:_.HO("ytdSponsorshipsScrollableShelfContent",(R.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return K.data().previousButton&&K.data().nextButton&&!n()&&!c()},R.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return K.data().previousButton&&!n()&&c()},R.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return K.data().nextButton&&
n()&&!c()},R)),
el:X,"on:scroll":F},K.children),_.Q(_.p,{cond:function(){return!n()},
then:function(){return _.Q(_.Md,{data:function(){return K.data().previousButton}},{buttonViewModel:function(l){return _.Q(_.Af,{data:l.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:A})}})}}),_.Q(_.p,{cond:function(){return!c()},
then:function(){return _.Q(_.Md,{data:function(){return K.data().nextButton}},{buttonViewModel:function(l){return _.Q(_.Af,{data:l.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:d})}})}}))},"ae");
CxT.idomCompat=!0;var ihC=_.$c(function(K){var X=K.data;K={};return _.Q("yt-sponsorships-hub",{class:_.HO("ytdSponsorshipsHubHost",(K.ytdSponsorshipsHubHostIndented=function(){return X().indented},K))},_.Q("div",{class:"ytdSponsorshipsHubHeader"},_.Q("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.Q("div",{class:"ytdSponsorshipsHubAvatar"},_.Q(_.Md,{data:function(){return X().avatar}},{avatarViewModel:_.BY})),_.Q(_.p,{cond:function(){return X().badgeImage},
then:function(F){return _.Q("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.Q("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.Q("div",{class:"ytdSponsorshipsHubBadge"},_.Q(_.av,{data:F,targetWidth:24,targetHeight:24,alt:""}))))}})),_.Q("div",{class:"ytdSponsorshipsHubDetails"},_.Q("div",{class:"ytdSponsorshipsHubTierName"},function(){return X().tierName}),_.Q("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return X().membershipType}),_.Q("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return X().membershipDurationOrExpiry})),_.Q("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.Q(_.Md,{data:function(){return X().manageButton}},{buttonViewModel:function(F){return _.Q(_.Af,{data:F.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.Q(_.Md,{data:function(){return X().actionMenuButton}},{buttonViewModel:function(F){return _.Q(_.Af,{data:F.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.Q("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return X().perksTitle}),_.Q(CxT,{data:function(){return{previousButton:X().previousPerkButton,
nextButton:X().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.Q("div",{class:"ytdSponsorshipsHubPerkCards"},_.Q(_.Md,{data:function(){return X().perkCards}},{sponsorshipsHubPerkCardViewModel:bhQ}),_.Q(_.p,{cond:function(){return X().viewAllPerksButton},
then:function(F){return _.Q(NUU,{data:F})}}))))},"be");
ihC.idomCompat=!0;var NUU=_.$c(function(K){var X=K.data;return _.Q("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.Q(_.Md,{data:function(){return X().button}},{buttonViewModel:_.Af}),_.Q("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.Q("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return X().title}),_.Q("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return X().subtitle})))},"ce");
NUU.idomCompat=!0;_.EP(ihC,"yt-sponsorships-hub",{props:{data:_.vU}});_.xKQ=_.$c(function(K){var X=K.data;return _.Q("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.Je({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var F;return((F=X().badgeCutoutRadius)!=null?F:14)+"px"}})},_.Q("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.Q(_.Md,{data:function(){return X().startAvatar}},{avatarViewModel:_.BY}),_.Q(_.Md,{data:function(){return X().endAvatar}},{avatarViewModel:_.BY})),_.Q(_.Md,{data:function(){return X().badge}},{contentPreviewImageViewModel:function(F){return _.Q("div",
{class:"ytDualAvatarViewModelBadge"},_.Q(_.bJ,{data:F.data}))}}))},"de");
_.xKQ.idomCompat=!0;var kht=_.$c(function(K){var X=K.data;var F,P=!((F=_.i9().resolve(_.Nu(_.m$)))==null||!F());K=_.Qs(function(){var n,c,B=P?(n=X().header)==null?void 0:n.backgroundColorDarkMode:(c=X().header)==null?void 0:c.backgroundColorLightMode;if(B!==void 0)return _.wq(B)},void 0,"UX2G6c");
F=_.Qs(function(){var n,c;return P?(n=X().header)==null?void 0:n.backgroundImagePart1Dark:(c=X().header)==null?void 0:c.backgroundImagePart1Light},void 0,"GPAi1d");
var H=_.Qs(function(){var n,c;return P?(n=X().header)==null?void 0:n.backgroundImagePart2Dark:(c=X().header)==null?void 0:c.backgroundImagePart2Light},void 0,"nboJld"),f=_.Qs(function(){return _.e8("HTML_DIR")==="rtl"},void 0,"LGJceb"),u=_.t_(),J=!1,Z=function(){var n=u.value;
if(n&&!J){var c,B=(c=n.parentElement)==null?void 0:c.parentElement;if(B)for(n=n.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),c=0;c<n.length;++c){var L=n[c];if(L instanceof HTMLElement){B.scrollTo({top:L.offsetTop+L.clientHeight/2-B.clientHeight/2,behavior:"smooth"});J=!0;break}}}};
_.AV(function(){var n=u.value;if(n){var c=new ResizeObserver(Z);c.observe(n);_.AZ(function(){c.disconnect()})}});
var M={};return _.Q("yt-sponsorships-perks-list",{el:u,class:_.HO("ytdSponsorshipsPerksListHost",(M.ytdSponsorshipsPerksListHorizontalPadding=function(){return X().horizontalPaddingEnabled},M))},_.Q("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.Q("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.Je({"background-color":K})},_.Q("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.Q(_.p,{cond:F,then:function(n){var c={};return _.Q("div",{class:_.HO((c.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=P,c.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!P,c.ytdSponsorshipsPerksListFlipped=f,c))},_.Q(_.av,{data:n,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.Q("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.Q(_.p,{cond:H,
then:function(n){var c={};return _.Q("div",{class:_.HO((c.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=P,c.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!P,c.ytdSponsorshipsPerksListFlipped=f,c))},_.Q(_.av,{data:n,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.Q("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.Q(_.Md,{data:function(){var n;
return(n=X().header)==null?void 0:n.dualAvatar}},{dualAvatarViewModel:_.xKQ})))),_.Q("div",{class:"ytdSponsorshipsPerksListBody"},_.Q("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return X().title}),_.Q(_.p,{cond:function(){return X().perks},
then:function(n){return _.Q(_.cd,{each:n},function(c,B){var L={};return _.Q("div",{class:_.HO("ytdSponsorshipsPerksListPerkContainer",(L.ytdSponsorshipsPerksListSelectedPerk=function(){var A=B(),d=X().selectedPerkIndex;return A===d},L))},_.Q(_.p,{cond:function(){return B()>0},
then:function(){return _.Q("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.Q("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.Q(_.p,{cond:function(){return c.icon},
then:function(A){return _.Q(_.ZF,{icon:function(){return A().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.Q("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.Q("div",{class:"ytdSponsorshipsPerksListPerkTitle"},c.title),_.Q("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.Q(_.Oy,{text:c.description})),_.Q(_.p,{cond:function(){return c.instructions},
then:function(){var A,d;return _.Q("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.Q("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(A=c.instructions)==null?void 0:A.title),_.Q("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.Q(_.Oy,{text:(d=c.instructions)==null?void 0:d.text})))}}))),_.Q(_.p,{cond:function(){return c.emoji},
then:function(A){return _.Q("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.Q(_.cd,{each:function(){return A()}},function(d){return _.Q(_.av,{data:d,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.Q(IIE,{data:c}))})}})))},"ee");
kht.idomCompat=!0;var IIE=_.$c(function(K){var X=K.data;var F=function(u,J){return u===J},P=function(){var u=X();
u=_.T(u==null?void 0:u.badgesShelf,S_N);return u!==void 0&&u!==null?u:{previousButton:{},nextButton:{}}},H=_.$3(),f=function(){var u=H.value;
if(u){var J=u.parentElement;if(J){u=u.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var Z=0;Z<u.length;++Z){var M=u[Z];if(M instanceof HTMLElement){J.scrollTo({left:M.offsetLeft+M.clientWidth/2-J.clientWidth/2,behavior:"instant"});break}}}}};
_.AV(function(){var u=H.value;if(u){var J=new ResizeObserver(f);J.observe(u);_.AZ(function(){J.disconnect()})}});
return _.Q("div",null,_.Q(_.p,{cond:function(){return X().badges},
then:function(u){return _.Q(CxT,{data:P},_.Q("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:H},_.Q(_.cd,{each:function(){return u()}},function(J,Z){var M={},n={},c={};
return _.Q("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.Q(_.p,{cond:function(){return Z()>0},
then:function(){return _.Q("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.Q("div",{class:_.HO("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(M.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return F(Z(),X().currentBadgeIndex)},M.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!F(Z(),X().currentBadgeIndex)},M))},_.Q("div",{class:_.HO("ytdSponsorshipsPerksListLoyaltyBadge",(n.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return F(Z(),
X().currentBadgeIndex)},n.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!F(Z(),X().currentBadgeIndex)},n))},_.Q(_.p,{cond:function(){return J.image},
then:function(B){var L={};return _.Q("div",{class:_.HO((L.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return F(Z(),X().currentBadgeIndex)},L.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!F(Z(),X().currentBadgeIndex)},L))},_.Q(_.av,{data:B,
alt:""}))}})),_.Q("div",{class:_.HO("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(c.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return F(Z(),X().currentBadgeIndex)},c))},J.title)))})))}}))},"fe");
IIE.idomCompat=!0;_.EP(kht,"yt-sponsorships-perks-list",{props:{data:_.vU}});_.EP(_.$c(function(K){return _.Q("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.Q(_.p,{cond:function(){return K.data().image},
then:function(X){return _.Q(_.av,{className:"ytwFantasyEmptyStateViewModelImage",data:X,ariaHidden:!0,alt:""})}}),_.Q(_.Oy,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return K.data().title}}),_.Q(_.Oy,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return K.data().subtitle}}),_.Q(_.Md,{data:function(){return K.data().primaryButton}},{buttonViewModel:function(X){return _.Q(_.Af,{data:X.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"ge"),"ytw-fantasy-empty-state-view-model",{props:{data:_.vU}});var KxU;var cSd=_.Jf({buttonRenderer:_.mr});_.iy(pP9);_.K4(pP9,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var vX=function(){var K=_.G.apply(this,arguments)||this;K.hideJoinButtonBeforeSubscribed=_.S("hide_join_button_before_subscribed");K.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return K};
_.r(vX,_.G);_.z=vX.prototype;
_.z.configureRendererStamper=function(){return{"data.avatarStack":{id:"avatar-stack",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model"}}},"data.membershipButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}},timedAnimationButtonRenderer:{component:"timed-animation-button-renderer",params:{uniqueId:"join-button"},properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
"data.analyticsButton":{id:"analytics-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z.updateJoinButtonOverrides=function(){var K,X;(K=_.C$(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(X=K.polymerController)==null||X.set("overrides",this.joinButtonOverrides);if(K=_.C$(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))K.overrides=this.joinButtonOverrides};
_.z.handleButtonRefreshAction=function(K){if(K=_.T(K,gRE))this.set("data.membershipButton",K.membershipButton),this.notifyPath("data.membershipButton")};
_.z.onYtServiceRequestError=function(K){_.b6(this.hostElement,K.detail.error.message)};
_.z.handleUnsubscribeAction=function(){var K,X,F;((K=this.data)==null?void 0:(X=K.membershipButton)==null?void 0:(F=X.buttonRenderer)==null?void 0:F.style)==="STYLE_PRIMARY"&&_.C$(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.Oi.Object.defineProperties(vX.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.subscriptionStateEntity)==null||!K.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var K,X=(K=this.data)==null?void 0:K.membershipButton,F;K=(X==null?void 0:X.buttonRenderer)||_.T(X==null?void 0:(F=X.timedAnimationButtonRenderer)==null?void 0:F.buttonRenderer,_.jg);return(K==null?void 0:K.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(K==null?void 0:K.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(K==null?void 0:K.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}}});
vX.prototype.onYtServiceRequestError=vX.prototype.onYtServiceRequestError;vX.prototype.updateJoinButtonOverrides=vX.prototype.updateJoinButtonOverrides;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],vX.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],vX.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],vX.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.W(_.jn),_.g("design:type",Object)],vX.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],vX.prototype,"data",void 0);_.O([_.U("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.g("design:type",Object),_.g("design:paramtypes",[])],vX.prototype,"hideJoin",null);_.O([_.h(),_.g("design:type",String)],vX.prototype,"subscribeKey",void 0);_.O([_.h({selectorArgs:["subscribeKey"],selector:Mm3}),_.g("design:type",Object)],vX.prototype,"subscriptionStateEntity",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],vX.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.O([_.U("subscriptionStateEntity"),_.h({reflectToAttribute:!0}),_.g("design:type",Object),_.g("design:paramtypes",[])],vX.prototype,"subscribed",null);_.O([_.U("subscribed","data.membershipButton"),_.g("design:type",Object),_.g("design:paramtypes",[])],vX.prototype,"joinButtonOverrides",null);
_.O([_.so("joinButtonOverrides"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],vX.prototype,"updateJoinButtonOverrides",null);_.O([_.Hc("yt-service-request-error"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],vX.prototype,"onYtServiceRequestError",null);vX=_.O([_.v({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],vX);
var XlZ=_.xc()(vX,"ytd-video-owner-renderer",function(){if(KxU===void 0){var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);KxU=K}K=KxU;return K},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.EP(_.$c(function(K){var X=K.data;var F;K=_.D(_.u_(!((F=_.KE("yt-mini-app-is-theater-mode-enabled"))==null||!F),void 0,"LUeOgf"));var P=K.next().value,H=K.next().value,f;F=(f=_.i9().resolve(_.Nu(j6u)))!=null?f:function(){return _.Q("div",null)};
_.aI("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){H(!0);_.kl("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.aI("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){H(!1);_.kl("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
f={};K={};var u={};return _.Q("mini-app-play-page-renderer",{class:_.HO("miniAppPlayPageRendererHost",(f.miniAppPlayPageRendererHostDetailsView=function(){return!P()},f))},_.Q("div",{class:_.HO("miniAppPlayPageRendererGameContainer",(K.miniAppPlayPageRendererGameContainerDetailsView=function(){return!P()},K))},_.Q(_.Md,{data:function(){return X().containerViewModel}},{miniAppContainerViewModel:E7C}),_.Q(_.p,{cond:function(){return X().channel&&X().subscribeButton},
then:function(){return _.Q("div",{class:"miniAppPlayPageRendererChannelContainer"},_.Q(_.Md,{data:function(){return X().channel}},{videoOwnerRenderer:function(J){return _.Q(XlZ,{data:J.data})}}),_.Q(_.Md,{data:function(){return X().subscribeButton}},{subscribeButtonViewModel:function(J){return _.Q(_.S1,{data:J.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.Q(_.p,{cond:function(){return!P()&&X().description},
then:function(){return _.Q("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.Q("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return X().description}))}})),_.Q("div",{class:_.HO("miniAppPlayPageRendererPlayNextContainer",(u.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!P()},u))},_.Q(_.Md,{data:function(){return X().sectionList}},{sectionListRenderer:F})))},"he"),"mini-app-play-page-renderer",{props:{data:_.vU}});var a8=function(){var K=_.G.apply(this,arguments)||this;K.isSearch=!1;K.isConstrainedList=!1;K.hasChipsBar=!1;K.inReplyPanel=!1;K.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"}};K.monitorScroll=!0;K.SCROLL_ANIMATION_DURATION_MS=300;K.nextContinuation={continuationType:"sectionListContinuation"};return K};
_.r(a8,_.G);_.z=a8.prototype;
_.z.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(K){switch(K.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearchDova:"[[isSearchDova]]",isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",
noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",
noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},
miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},
liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},
fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.S("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.S("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.z.created=function(){var K=this;this.JSC$14872_scrollAnimation=new _.WX(function(X){K.hostElement.scrollTop=X})};
_.z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.z.getItemsPath=function(){return"data.contents"};
_.z.replacePrimaryContent=function(K){this.set("data.contents",K)};
_.z.computeHasSortFilter=function(K){return!!K&&!!K.sortFilterSubMenuRenderer};
_.z.computeShouldScrollInPanel=function(K){var X;return!!(K==null?0:(X=K.scrollPaneStyle)==null?0:X.scrollable)};
_.z.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.iN(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.z.scrollToTop=function(){this.hostElement.scrollTop=0};
_.z.scrollToItemSection=function(K){if(K=this.getItemByIdentifier(K))K=this.getScrollPositionForItem(K),this.hostElement.scrollTop!==K&&this.JSC$14872_scrollAnimation.start(this.hostElement.scrollTop,K,this.SCROLL_ANIMATION_DURATION_MS)};
_.z.getItemByIdentifier=function(K){var X=this.contents.querySelectorAll("ytd-item-section-renderer");if(X&&X.length!==0){var F=Array.from(X).findIndex(function(P){return P.sectionIdentifier===K});
return X[F===-1?0:F]}};
_.z.getScrollPositionForItem=function(K){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===K)return 0;K=_.dp(K).y+this.hostElement.scrollTop-_.dp(this.hostElement).y;return Math.min(K,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Oi.Object.defineProperties(a8.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.targetId)==="browse-feedFEclips"}}});
a8.prototype.onScroll=a8.prototype.onScroll;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],a8.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],a8.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.CA.YtLazyListBehavior),_.g("design:type",Object)],a8.prototype,"ytLazyListBehavior",void 0);_.O([_.W(_.RQ.YtNextContinuationBehavior),_.g("design:type",Object)],a8.prototype,"ytNextContinuationBehavior",void 0);
_.O([_.W(_.$NO),_.g("design:type",Object)],a8.prototype,"ytBooleanLogicBehavior",void 0);_.O([_.W(_.eG),_.g("design:type",Object)],a8.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],a8.prototype,"data",void 0);_.O([_.h({value:2}),_.g("design:type",Number)],a8.prototype,"initialCount",void 0);_.O([_.h({value:!0}),_.g("design:type",Boolean)],a8.prototype,"autoFill",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.g("design:type",Boolean)],a8.prototype,"hasSortFilter",void 0);_.O([_.h({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.g("design:type",Boolean)],a8.prototype,"hideBottomSeparator",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.g("design:type",Boolean)],a8.prototype,"shouldScrollInPanel",void 0);
_.O([_.h(),_.g("design:type",Object)],a8.prototype,"isSearch",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],a8.prototype,"isConstrainedList",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],a8.prototype,"responsiveSizing",void 0);_.O([_.h(),_.g("design:type",Object)],a8.prototype,"hasChipsBar",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],a8.prototype,"pageSubtype",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],a8.prototype,"engagementPanel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],a8.prototype,"liveChatEngagementPanel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],a8.prototype,"inReplyPanel",void 0);_.O([_.fa("#action-button"),_.g("design:type",HTMLElement)],a8.prototype,"actionButton",void 0);_.O([_.h(),_.g("design:type",Object)],a8.prototype,"scrollUpButtonData",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],a8.prototype,"engagementPanelDropdown",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],a8.prototype,"engagementPanelDialog",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],a8.prototype,"isClipList",null);_.O([_.fa("#contents"),_.g("design:type",HTMLElement)],a8.prototype,"monitorScrollElement",void 0);_.O([_.fa("#contents"),_.g("design:type",HTMLElement)],a8.prototype,"contents",void 0);
_.O([_.Hc("scroll"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],a8.prototype,"onScroll",null);a8=_.O([_.v({is:"ytd-section-list-renderer",disableElementRegistration:!0})],a8);
var FxQ=_.xc()(a8,"ytd-section-list-renderer",function(){if(Azt===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);Azt=K}K=Azt;return K},{mode:1});var PlE;var HnL;var smu;var zCZ;var tR=function(){return _.G.apply(this,arguments)||this};
_.r(tR,_.G);tR.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
tR.prototype.onLikeButtonClick=function(K){K.stopPropagation();K.preventDefault()};
_.Oi.Object.defineProperties(tR.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)!=null&&K.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)})}}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],tR.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],tR.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],tR.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],tR.prototype,"ytRendererStamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],tR.prototype,"data",void 0);
_.O([_.h({selectorArgs:["data.likeStatusEntityKey"],selector:Ae}),_.g("design:type",Object)],tR.prototype,"likeStatusEntity",void 0);_.O([_.U("data","likeStatusEntity"),_.g("design:type",Object),_.g("design:paramtypes",[])],tR.prototype,"likeButtonRenderer",null);tR=_.O([_.v({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],tR);
_.t(tR,"ytd-slim-metadata-toggle-button-renderer",function(){if(zCZ!==void 0)return zCZ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);
return zCZ=K},{mode:1});var $N=function(){var K=_.G.apply(this,arguments)||this;K.minimizePipBreakages=_.S("web_pip_minimize_breakages");K.showEqualizer=_.S("web_enable_playlist_video_lockup_equalizer");K.watchColorUpdate=_.S("kevlar_watch_color_update");K.actionMap={};return K};
_.r($N,_.G);_.z=$N.prototype;_.z.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.z.computeEditableClass=function(K){return K&&K.menu?"editable":""};
_.z.computeSelected=function(K){return!(K==null||!K.selected)};
_.z.computeUseColorPalette=function(K){return!!((K==null?0:K.lightColorPalette)&&(K==null?0:K.darkColorPalette))};
_.z.computeLargerPlaylistThumbs=function(K,X){return _.S("web_enable_playlist_bigger_thumbnails")&&!X};
_.z.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.z.onYtServiceRequestSent=function(K,X){X.endpoint&&this.isHideEnclosingAction(X.endpoint)&&!this.selected&&gWW(_.dz(),this.data.videoId)};
_.z.isHideEnclosingAction=function(K){var X=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",K);K=this.get("likeEndpoint.status",K)==="INDIFFERENT";return X||K};
_.z.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.z.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.Oi.Object.defineProperties($N.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var K;return!!(this.withinMiniplayer&&((K=this.data)==null?0:K.actionButtons))}}});
$N.prototype.onYtServiceRequestSent=$N.prototype.onYtServiceRequestSent;$N.prototype.canReorderChanged=$N.prototype.canReorderChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],$N.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],$N.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.mE),_.g("design:type",Object)],$N.prototype,"ytdLockupBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],$N.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],$N.prototype,"withinMiniplayer",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],$N.prototype,"minimizePipBreakages",void 0);_.O([_.h({computed:"computeSelected(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],$N.prototype,"selected",void 0);
_.O([_.h({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],$N.prototype,"useColorPalette",void 0);_.O([_.h({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.g("design:type",Boolean)],$N.prototype,"largerPlaylistThumbs",void 0);_.O([_.h(),_.g("design:type",Object)],$N.prototype,"showEqualizer",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],$N.prototype,"canReorder",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],$N.prototype,"touchPersistentDragHandle",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],$N.prototype,"handleIsHovered",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],$N.prototype,"watchColorUpdate",void 0);_.O([_.h(),_.g("design:type",String),_.g("design:paramtypes",[])],$N.prototype,"reorderIcon",null);
_.O([_.U("largerPlaylistThumbs"),_.g("design:type",Number),_.g("design:paramtypes",[])],$N.prototype,"thumbnailWidth",null);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],$N.prototype,"showActionButtons",null);_.O([_.JA("canReorder"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],$N.prototype,"canReorderChanged",null);
_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.yk]),_.g("design:returntype")],$N.prototype,"onYtServiceRequestSent",null);$N=_.O([_.v({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],$N);
_.t($N,"ytd-playlist-panel-video-renderer",function(){if(smu!==void 0)return smu;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return smu=K},{mode:2});var OW=function(){return _.G.apply(this,arguments)||this};
_.r(OW,_.G);OW.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],OW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],OW.prototype,"data",void 0);OW=_.O([_.v({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],OW);
_.t(OW,"ytd-playlist-panel-supported-items",function(){if(HnL!==void 0)return HnL;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return HnL=
K},{mode:1});sAQ=!0;oOu("\\P{N}");var Bfd;var f7u=_.uY("END_OF_PLAYLIST",void 0,"End of playlist"),DGt=_.uY("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),VC=function(){var K=_.G.apply(this,arguments)||this;K.minimizePipBreakages=_.S("web_pip_minimize_breakages");K.updatedCoursePanel=_.S("move_three_dot_menu_to_playlist_panel_header_for_courses");K.hideHeaderText=!1;K.useColorPalette=!1;K.collapsed=!1;K.collapsedPreServerOverride="not_tracked";K.isHovered=!1;K.modernPanels=_.S("kevlar_watch_modern_panels");
K.expandLabel=_.uY("MINIPLAYER_EXPAND_LABEL");K.collapseLabel=_.uY("MINIPLAYER_COLLAPSE_LABEL");K.isFloating=!1;K.metaPanel=!1;K.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};K.currentIndex=void 0;return K};
_.r(VC,_.G);_.z=VC.prototype;
_.z.configureRendererStamper=function(){return{menuRendererData:{id:"playlist-action-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{forceIconButton:!1}}}},overflowMenuDataTopRow:{id:"overflow-menu-top-row",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},overflowMenuData:{id:"overflow-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.contentHeader":{id:"content-header",mapping:{messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.contents":{id:"items",
events:!0,mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",attributes:{id:"playlist-items"},properties:{canReorder:"[[canReorder]]",withinMiniplayer:"[[withinMiniplayer]]"}},messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.saveButton":{id:"save-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.topRowButtons":{id:"top-row-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z.created=function(){this.scrollThrottle=new _.VW(this.onThrottledScroll,1E3,this)};
_.z.onMouseEnter=function(){this.isHovered=!0};
_.z.onMouseLeave=function(){this.isHovered=!1};
_.z.computeOverflowMenuData=function(K){return K&&K.menu?K.menu:null};
_.z.computeCollapsible=function(K){return!K};
_.z.computeHasPlaylistButtons=function(K){return!(!K||!K.playlistButtons)};
_.z.computeHasSeparateSaveButton=function(K){return!(!K||!K.saveButton)};
_.z.computeHasToolbarButton=function(K,X){return!(!K||!(X||K.saveButton||K.menu))};
_.z.computePlaylistType=function(K){if(K&&K.playlistId)return K.playlistId.substring(0,4)};
_.z.computeCanReorder=function(K){return K?K.playlistId&&K.playlistId.startsWith("TLPQ")?!0:!!K.isEditable&&!K.isInfinite:!1};
_.z.attached=function(){var K=this;try{_.i9().resolve(_.AW).setPlaylistComponent(this.hostElement)}catch(X){if(_.S("kevlar_park_on_playlist_token_killswitch"))throw X;_.wz().parkOrScheduleJob(function(){_.i9().resolve(_.AW).setPlaylistComponent(K.hostElement)},2,"ci")}_.Cy(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.z.detached=function(){_.N$(this.hostElement)};
_.z.computeTrailingIcon=function(K,X,F){return F?X?"yt-icons:collapse":"yt-icons:close":X?"yt-icons:expand":_.S("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.z.computeIndexMessage=function(K,X){return LZn(K+1)+" / "+LZn(X)};
_.z.onRenderStamperFinished=function(){if(this.scrollForStampDom){var K=!0;this.isHovered&&(K=!1);if(this.collapsed||this.hidden)K=!1;K&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.z.collapseChanged=function(){var K=this;this.collapsed||(_.QW(this.ytTaskEmitterBehavior.getTaskManager(),function(){K.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.z.hiddenChanged=function(){var K=this;this.hidden||_.QW(this.ytTaskEmitterBehavior.getTaskManager(),function(){K.scrollToCurrentVideo()})};
_.z.setupReordering=function(){var K=_.C$(this.hostElement).querySelector("#items");LrQ?_.z2T(this.ytReorderableBehavior,K,K,"playlist-drag-handle"):_.z2T(this.ytReorderableBehavior,K,K)};
_.z.scrollToCurrentVideo=function(){var K=this;_.A9.addJob(function(){var X=_.C$(K.hostElement).querySelector("#items");if(X){X.style.setProperty("padding-bottom","");var F=_.C$(K.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(F){X=F.parentElement||_.Yo(document);var P=X||_.Yo(document);var H=_.dp(F),f=_.dp(P),u=_.CTZ(P);if(P==_.Yo(document)){var J=H.x-P.scrollLeft;H=H.y-P.scrollTop}else J=H.x-f.x-u.left,H=H.y-f.y-u.top;F=VPU(F);f=P.clientHeight-
F.height;u=P.scrollLeft;var Z=P.scrollTop;u+=J-(P.clientWidth-F.width)/2;P=new _.jA(u,Z+(H-f/2));X.scrollLeft=P.x;X.scrollTop=P.y}}},8)};
_.z.dataChanged=function(){var K=this;_.sMC(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.tg(this,function(){_.cu(K.ytTaskEmitterBehavior.getTaskManager(),function(){K.ytRendererBehavior.markDirty();K.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.z.onTheaterModeChanged=function(){_.S("web_watch_imax_theater_mode")&&(this.isTheaterMode?this.setCollapsed(!0):this.setCollapsed(!1))};
_.z.onFullscreenChanged=function(){_.S("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.z.updateNowPlayingOverlay=function(){_.S("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.z.onPlaylistLockupNowPlaying=function(K,X){X&&(this.activeNowPlayingRenderer=X);this.updateNowPlayingOverlay()};
_.z.onScroll=function(){this.scrollThrottle.fire()};
_.z.onThrottledScroll=function(){var K=this;_.cu(this.ytTaskEmitterBehavior.getTaskManager(),function(){K.ytRendererBehavior.markDirty()})};
_.z.onToggleExpanded=function(K){!this.collapsible||K&&(_.vI(K).tagName==="A"||_.lC(_.lN(K),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.z.setCollapsed=function(K){this.collapsible&&(this.collapsed=K,_.IJ(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.z.handleCollapsedFromData=function(K){if(K){var X=K.playlistPanelCollapseState;X==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||X==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),X=X==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==X&&this.setCollapsed(X)):this.currentPlaylistId!==K.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(X=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==X&&this.setCollapsed(X),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=K.playlistId}};
_.z.handleDrop=function(K){var X=K.currDragItem;K=X.data.playlistSetVideoId;var F=_.tM(X.parentNode.childNodes,X),P=void 0;F>0&&(P=X.parentNode.childNodes[F-1].data.playlistSetVideoId);X=_.dz();if(X.responsePlaylistData&&X.responsePlaylistData.contents){var H=Cmq(K,X.responsePlaylistData);X.responsePlaylistData=(0,_.T8.unsafeClone)(X.responsePlaylistData);Twq(X.responsePlaylistData.contents,H,F);X.queueProxy?S6U(X.queueProxy,H,F,K,P):X.playlistProxy&&S6U(X.playlistProxy,H,F,K,P);_.e7(X,_.RE(X,X.response?
X.response.autoplayRenderer:void 0))}};
_.z.handleDarkModeChange=function(K){K!==this.isDarkTheme&&(this.isDarkTheme=K)};
_.z.colorPaletteChanged=function(){var K,X=((K=this.data)==null?void 0:K.contents)||[],F;K=_.D(X);for(X=K.next();!X.done;X=K.next()){X=X.value;var P=void 0;if((P=X.playlistPanelVideoRenderer)==null?0:P.selected){K=X.playlistPanelVideoRenderer;P=X=void 0;(F=this.isDarkTheme?(X=K)==null?void 0:X.darkColorPalette:(P=K)==null?void 0:P.lightColorPalette)&&_.Sd(this.hostElement,F);break}}this.useColorPalette=!!F};
_.Oi.Object.defineProperties(VC.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var K,X;return!((K=this.data)==null||!K.playlistId)&&!((X=this.data)==null||!X.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var K=_.i9().resolve(_.Nu(_.AW)),X;if(((X=this.data)==null?0:X.contents)&&(K==null?0:K.hasAutoplayData())){var F;if(((F=this.playlistLoopStateEntity)==null?void 0:F.state)==="PLAYLIST_LOOP_STATE_ONE"){if(K=this.data.currentIndex,K!==void 0){var P,H;var f=(P=this.data.contents[K])==null?void 0:(H=P.playlistPanelVideoRenderer)==null?void 0:H.title}}else{var u,J=(u=_.T(K.getAutoplayEndpoint(),_.vg))==null?void 0:u.videoId,Z,M;f=(Z=this.data.contents.find(function(n){var c;
return((c=n.playlistPanelVideoRenderer)==null?void 0:c.videoId)===J}))==null?void 0:(M=Z.playlistPanelVideoRenderer)==null?void 0:M.title}return f}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)!=null&&K.nextVideoLabel?this.nextVideoTitle?_.lj(this.data.nextVideoLabel)+":":f7u:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var K;if(((K=this.data)==null?0:K.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.GS(DGt);var X;return(X=this.data)==null?void 0:X.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var K,X,F,P=(K=this.data)==null?void 0:(X=K.playlistButtons)==null?void 0:(F=X.menuRenderer)==null?void 0:F.topLevelButtons;if(P)for(K=_.D(P),X=K.next();!X.done;X=K.next())if(X=X.value,X.playlistLoopButtonRenderer)return X.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var K;return!!(this.collapsed&&((K=this.data)==null?0:K.nextVideoLabel))}}});
VC.prototype.colorPaletteChanged=VC.prototype.colorPaletteChanged;VC.prototype.onPlaylistLockupNowPlaying=VC.prototype.onPlaylistLockupNowPlaying;VC.prototype.updateNowPlayingOverlay=VC.prototype.updateNowPlayingOverlay;VC.prototype.onFullscreenChanged=VC.prototype.onFullscreenChanged;VC.prototype.onTheaterModeChanged=VC.prototype.onTheaterModeChanged;VC.prototype.dataChanged=VC.prototype.dataChanged;VC.prototype.hiddenChanged=VC.prototype.hiddenChanged;VC.prototype.collapseChanged=VC.prototype.collapseChanged;
VC.prototype.onRenderStamperFinished=VC.prototype.onRenderStamperFinished;VC.prototype.onMouseLeave=VC.prototype.onMouseLeave;VC.prototype.onMouseEnter=VC.prototype.onMouseEnter;_.O([_.W(_.SL),_.g("design:type",Object)],VC.prototype,"ironResizableBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],VC.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],VC.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.W(PLL.YtPlaylistPanelBehavior),_.g("design:type",Object)],VC.prototype,"ytPlaylistPanelBehavior",void 0);_.O([_.W(_.Vj.YtTaskEmitterBehavior),_.g("design:type",Object)],VC.prototype,"ytTaskEmitterBehavior",void 0);_.O([_.W(_.fkZ),_.g("design:type",Object)],VC.prototype,"ytReorderableBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],VC.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],VC.prototype,"ytdReduxBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],VC.prototype,"actionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],VC.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],VC.prototype,"autoplayData",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],VC.prototype,"withinMiniplayer",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],VC.prototype,"minimizePipBreakages",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],VC.prototype,"updatedCoursePanel",void 0);_.O([_.h({computed:"setMenuData_(data)"}),_.g("design:type",Object)],VC.prototype,"menuRendererData",void 0);_.O([_.h({computed:"computeOverflowMenuData(data)"}),_.g("design:type",Object)],VC.prototype,"overflowMenuDataTopRow",void 0);_.O([_.h({computed:"computeOverflowMenuData(data)"}),_.g("design:type",Object)],VC.prototype,"overflowMenuData",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],VC.prototype,"hideHeaderText",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],VC.prototype,"useColorPalette",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.g("design:type",Boolean)],VC.prototype,"collapsible",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],VC.prototype,"collapsed",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],VC.prototype,"hidden",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.g("design:type",Boolean)],VC.prototype,"hasPlaylistButtons",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.g("design:type",Boolean)],VC.prototype,"hasSeparateSaveButton",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.g("design:type",Boolean)],VC.prototype,"hasToolbar",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.g("design:type",String)],VC.prototype,"playlistType",void 0);_.O([_.h(),_.g("design:type",Object)],VC.prototype,"isHovered",void 0);_.O([_.h({selectorArgs:["playlistLoopStateEntityKey"],selector:_.o99}),_.g("design:type",Object)],VC.prototype,"playlistLoopStateEntity",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],VC.prototype,"modernPanels",void 0);_.O([_.h({value:56}),_.g("design:type",Number)],VC.prototype,"scrollMargin",void 0);_.O([_.h({computed:"computeCanReorder(data)"}),_.g("design:type",Boolean)],VC.prototype,"canReorder",void 0);_.O([_.h(),_.g("design:type",Object)],VC.prototype,"expandLabel",void 0);_.O([_.h(),_.g("design:type",Object)],VC.prototype,"collapseLabel",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],VC.prototype,"isFloating",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],VC.prototype,"metaPanel",void 0);_.O([_.h({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.g("design:type",String)],VC.prototype,"trailingIcon",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],VC.prototype,"isDarkTheme",void 0);
_.O([_.h({selector:_.LI}),_.g("design:type",Boolean)],VC.prototype,"miniplayerIsActive",void 0);_.O([_.h({selector:function(K){return K.watch.playerState}}),
_.g("design:type",Number)],VC.prototype,"playerState",void 0);_.O([_.h({selector:_.yW}),_.g("design:type",Boolean)],VC.prototype,"isFullscreen",void 0);_.O([_.h({selector:_.wV}),_.g("design:type",Boolean)],VC.prototype,"isTheaterMode",void 0);_.O([_.h(),_.g("design:type",Object)],VC.prototype,"activeNowPlayingRenderer",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],VC.prototype,"moveThreeDotMenuToTopRow",null);
_.O([_.U("data","autoplayData","playlistLoopStateEntity"),_.g("design:type",Object),_.g("design:paramtypes",[])],VC.prototype,"nextVideoTitle",null);_.O([_.U("data","nextVideoTitle"),_.g("design:type",String),_.g("design:paramtypes",[])],VC.prototype,"nextVideoLabel",null);_.O([_.U("collapsed"),_.g("design:type",String),_.g("design:paramtypes",[])],VC.prototype,"buttonAriaLabel",null);
_.O([_.U("data","playlistId","longBylineText"),_.g("design:type",Object),_.g("design:paramtypes",[])],VC.prototype,"mixLongByLine",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],VC.prototype,"playlistLoopStateEntityKey",null);_.O([_.Hc("mouseenter"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],VC.prototype,"onMouseEnter",null);
_.O([_.Hc("mouseleave"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],VC.prototype,"onMouseLeave",null);_.O([_.h({reflectToAttribute:!0}),_.U("data","collapsed"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],VC.prototype,"showNextVideoHeader",null);_.O([_.Hc("yt-rendererstamper-finished"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],VC.prototype,"onRenderStamperFinished",null);
_.O([_.so("collapsed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],VC.prototype,"collapseChanged",null);_.O([_.so("hidden"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],VC.prototype,"hiddenChanged",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],VC.prototype,"dataChanged",null);
_.O([_.so("isTheaterMode"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],VC.prototype,"onTheaterModeChanged",null);_.O([_.so("isFullscreen"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],VC.prototype,"onFullscreenChanged",null);_.O([_.so("playerState","miniplayerIsActive"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],VC.prototype,"updateNowPlayingOverlay",null);
_.O([_.Hc("yt-playlist-lockup-now-playing-active"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],VC.prototype,"onPlaylistLockupNowPlaying",null);_.O([_.so("data","isDarkTheme"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],VC.prototype,"colorPaletteChanged",null);VC=_.O([_.v({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],VC);
_.uGE=_.xc()(VC,"ytd-playlist-panel-renderer",function(){if(PlE===void 0){var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);PlE=K}K=PlE;return K},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var q5Q;var gx=function(){var K=_.G.apply(this,arguments)||this;K.modern=_.S("web_button_rework");return K};
_.r(gx,_.G);gx.prototype.computeShouldButtonBeVertical=function(K,X){return K||X};
gx.prototype.onYtServiceRequestSent=function(K,X){(K=_.T(X.endpoint,_.Rn))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.zl("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:K.status})):this.handleLikeEndpoint(K))};
gx.prototype.computelikeStatusEntityKey=function(K){return K==null?void 0:K.likeStatusEntityKey};
gx.prototype.handleLikeEndpoint=function(K){K.status==="LIKE"?this.JSC$14897_ytdDislikeToggleButtonRenderer.toggle(!1):K.status==="DISLIKE"?this.JSC$14897_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14897_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14897_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.Oi.Object.defineProperties(gx.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var K;return j$T(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(K=this.likeStatusEntity)==null?void 0:K.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var K;if(this.data&&((K=this.data)==null||!K.hideDislikeButton)){var X;return j$T(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(X=this.likeStatusEntity)==null?void 0:X.likeStatus)}}}});
gx.prototype.onYtServiceRequestSent=gx.prototype.onYtServiceRequestSent;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],gx.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],gx.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],gx.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],gx.prototype,"vertical",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],gx.prototype,"textTransform",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],gx.prototype,"useShortsIcon",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],gx.prototype,"underIconLabel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],gx.prototype,"modern",void 0);_.O([_.h({value:"left"}),_.g("design:type",String)],gx.prototype,"buttonTooltipPosition",void 0);
_.O([_.h(),_.g("design:type",Object)],gx.prototype,"overrides",void 0);_.O([_.fa("#like-button"),_.g("design:type",Object)],gx.prototype,"JSC$14897_ytdLikeToggleButtonRenderer",void 0);_.O([_.fa("#dislike-button"),_.g("design:type",Object)],gx.prototype,"JSC$14897_ytdDislikeToggleButtonRenderer",void 0);_.O([_.U("data","likeStatusEntity.likeStatus"),_.g("design:type",Object),_.g("design:paramtypes",[])],gx.prototype,"likeButton",null);
_.O([_.U("data","likeStatusEntity.likeStatus"),_.g("design:type",Object),_.g("design:paramtypes",[])],gx.prototype,"dislikeButton",null);_.O([_.h({computed:"computelikeStatusEntityKey(data)"}),_.g("design:type",String)],gx.prototype,"likeStatusEntityKey",void 0);_.O([_.h({selectorArgs:["likeStatusEntityKey"],selector:Ae}),_.g("design:type",Object)],gx.prototype,"likeStatusEntity",void 0);
_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.yk]),_.g("design:returntype")],gx.prototype,"onYtServiceRequestSent",null);gx=_.O([_.v({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],gx);
var J8O=_.xc()(gx,"ytd-like-button-renderer",function(){if(q5Q===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);q5Q=K}K=q5Q;return K},{mode:1});_.ZnV={};
_.ZnV.YtConditionalRendererBehavior=[_.k.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(K,X){var F=this,P,H;return _.q(function(f){switch(f.nextAddress){case 1:if(!X)return F.hidden=!0,F.showSpinner=!1,f.return();if((P=K)==null?0:(H=P.visibilityCondition)==null?0:H.mode)switch(K.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return f.jumpTo(5);default:return f.jumpTo(6)}F.showSpinner=
!1;F.hidden=!0;return _.Y(f,F.shouldShow_(K),4);case 4:F.hidden=!f.yieldResult;f.jumpTo(0);break;case 5:return _.Y(f,F.shouldShow_(K),8);case 8:F.showSpinner=f.yieldResult;F.hidden=!1;f.jumpTo(0);break;case 6:return F.showSpinner=!1,_.Y(f,F.shouldShow_(K),9);case 9:F.hidden=!f.yieldResult,_.JT(f)}})},
shouldShow_:function(K){return K&&K.supportedDatas&&K.supportedDatas.rendererVisibilityConditionData&&K.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(K.supportedDatas.rendererVisibilityConditionData.showIf):K&&K.visibilityCondition&&K.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(K.visibilityCondition.showIf):K&&K.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(K.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(K){switch(K){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(K){switch(K){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var K=_.xr(this.hostElement,"yt-get-mdx-status");return K.length==1&&K[0].connected},
isLocationPermissionGranted_:function(){var K;return _.q(function(X){return X.nextAddress==1?navigator.permissions?_.Y(X,navigator.permissions.query({name:"geolocation"}),3):X.jumpTo(2):X.nextAddress!=2?(K=X.yieldResult,X.return(Promise.resolve(K.state==="granted"))):X.return(Promise.resolve(!1))})}}];var Y5N=function(K,X){X=X===void 0?{}:X;return function(F){var P=document.createElement(K),H;var f=(H=P.polymerController)!=null?H:P;vQ3(P,f,F,X);return P}}("yt-icon"),QmT=_.S("web_bypass_polymer_yt_icon")&&_.S("kevlar_use_wil_icons")?_.$c(function(K){var X=K.icon;
var F=K.active;var P=K.className;var H=K.style;var f=K.dataSelected;var u=K.dataDisabled;var J=K.role;var Z=K.themeOverride;var M=K.animateIcon;var n=K.ariaHidden;var c=K.ariaExpanded;var B=K.ariaLabel;var L=K.id;var A=K.iconFilter;var d=function(){var a=X==null?void 0:X(),E=null,V=void 0;a&&(a=xu.computeIcon(a),a=Qd4(a),a.length&&(E=a[1],V=a[0]));return{iconName:E,iconSetName:V}},R=function(){return xu.getIconShapeData(d().iconName,F==null?void 0:F(),void 0,void 0,d().iconSetName,_.i9().resolve(_.Pn))},
l=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:A==null?void 0:A()}};
return _.Q(_.p,{cond:M,then:function(){return _.Q(Y5N,{icon:X,active:F,className:P,style:H,dataSelected:f,dataDisabled:u,role:J,themeOverride:Z,ariaHidden:n,ariaExpanded:c,ariaLabel:B,id:L,iconFilter:A})},
else:function(){return _.Q(_.p,{cond:R,then:function(a){return _.Q(lEn,{data:a,options:l})}})}})},"ie"):Y5N;var MVL=function(K){var X=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];i$4();_.gS("ytglobal.ytUtilActivityCallback_",function(){_.IJ(K,"yt-user-activity")});
new Ni(function(){return X.JSC$14911_onMouseMove});
document.addEventListener("scroll",function(){return X.onScroll});
window.addEventListener("resize",function(){return X.onResize})},nBC=function(K,X,F){X in K.eventJobIds||(F=_.Bj().addLowPriorityJob(function(){_.iU();
delete K.eventJobIds[X]},F),K.eventJobIds[X]=F)};
MVL.prototype.onScroll=function(K){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):K.target===document&&nBC(this,"scroll",200)};
MVL.prototype.onResize=function(){nBC(this,"resize",200)};
MVL.prototype.JSC$14911_onMouseMove=function(){nBC(this,"mousemove",100)};
_.gK=function(K){K.scrollEventsToIgnore+=1;K.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){K.scrollEventsToIgnore--},500))};var c8t=function(K){this.element=K;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
c8t.prototype.showFeedbackDialog=function(K,X,F,P){var H=plV();if(!H)return!1;var f=l8O();f.productId=H;X&&(f.flow="submit",f.report={description:X});F&&(plV()==="59"?f.callback=_.hV(function(){_.LL("userFeedbackEvent",{});F()}):f.callback=_.hV(F));
f.bucket=P||_.e8("GOOGLE_FEEDBACK_BUCKET","Other");B6L(f);K=S5C(this,"GFEEDBACK",K);try{_.UyE(f,K)}catch(u){return _.UN(u),!1}return!0};
c8t.prototype.showHelpDialog=function(K,X,F){var P=this,H=plV();if(!H)return!1;var f={helpCenterPath:"/youtube",productData:S5C(this,"GUIDED_HELP",F)};B6L(f);var u=l8O();u.context=K||f.productData.context||"default";u.defaultHelpArticleId=X;u.enableSendFeedback=!0;(_.mz("gapi.load")||function(J,Z){return Z()})("client",function(){try{var J=BEE(H,f);
if(_.S("web_always_load_chat_support")&&!P.chatSupportLoaded)try{J.JSC$7986_loadChatSupport(u),P.chatSupportLoaded=!0}catch(Z){}J.startHelp(u)}catch(Z){_.UN(Z)}})};
var plV=function(){var K=_.e8("GOOGLE_FEEDBACK_PRODUCT_ID");K||_.UN(Error("Zh"));return K},B6L=function(K){K&&(K.locale=_.S("kevlar_help_use_locale")?_.e8("INNERTUBE_CONTEXT_HL","en"):_.e8("HTML_LANG","en"))},S5C=function(K,X,F){var P=K.productData;
delete P.origin;P.device=_.nO();var H;a:{if(H=document.createElement("canvas")){var f=H.getContext("experimental-webgl",{stencil:!0});if(f){var u=f.getExtension("WEBGL_debug_renderer_info");if(u){H=f.getParameter(u.UNMASKED_RENDERER_WEBGL);break a}}if(f=H.getContext("webgl")){H=f.getParameter(f.RENDERER);break a}}H=null}P.gpu=H;P.isSDC=!!_.e8("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(H=_.e8("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.T8.extend(P,H);_.mCq(X,P);_.Guy(P);(K=_.IJ(K.element,"yt-get-autonav-pause-debug-state"))&&
K.length&&(P.autonav_pause_state=K[0]);K=_.JE();P.browser_resolution=K.width+"\u00d7"+K.height+"@"+(window.devicePixelRatio||1)+"x";F&&_.T8.extend(P,F);return P};
c8t.prototype.resetProductData=function(){this.productData={}};var oBL=function(K){this.feedbackManager=new c8t(K)};
oBL.prototype.showFeedbackDialog=function(K,X,F,P){return this.feedbackManager.showFeedbackDialog(K,X,F,P)};
oBL.prototype.showHelpDialog=function(K,X,F){return this.feedbackManager.showHelpDialog(K,X,F)};var LxV=function(){this.baseUrl="";this.aTag=document.createElement("a")},QOu=function(K,X,F){F=F===void 0?{}:F;
F.pbj||(F.pbj=1);F=_.hcn(X,F);K.baseUrl&&F&&!_.V8(F)[1]&&!_.g2(F)&&(X=K.baseUrl,zn(X,"/")&&(X=X.slice(0,-1)),_.Hy(F,"/")&&(F=F.slice(1)),F=X+"/"+F);Ao(K.aTag,ns(F||""));return K.aTag.href};
LxV.prototype.fetchData=function(K){return _.WZy(K)};
LxV.prototype.postData=function(K,X){var F={method:"POST"};if(X){for(var P=_.D(Object.keys(X)),H=P.next();!H.done;H=P.next()){H=H.value;var f=X[H];_.XL(f)&&(X[H]=JSON.stringify(f))}F.postParams=X}return _.WZy(K,F)};
_.MKO=function(K,X,F,P,H){K=QOu(K,X,F);if(!K)throw P=Error("$h"),Object.assign(P,{params:X}),P;return _.WZy(K,H,P)};
LxV.prototype.requestDataForServiceEndpoint=function(K,X){if(_.T(K,_.qAO))return this.fetchData("/getAccountSwitcherEndpoint");X=X||{};var F=_.T(K,gst);F?X.se=F.base64EncodedServiceEndpoint:X.sej=JSON.stringify(K);(F=_.AD())&&_.S("enable_service_ajax_csn")&&(X.csn=F);X.theme=_.n$();_.T(K,DZ3)&&_.e8("DELEGATION_CONTEXT")&&(X.delegation_context=JSON.stringify(_.e8("DELEGATION_CONTEXT")));F=null;for(var P in K)if(zn(P,"Endpoint")||zn(P,"Command")){F=P;break}if(!F){var H=Error("ai");Object.assign(H,{params:K});
_.ec9(H,"WARNING");return new _.fL(function(u,J){J(H)})}P={name:F};
var f;(F=(f=_.T(K,_.ss))==null?void 0:f.signal)&&(P.signal=F);(f=_.tV(window.location.href))&&f.internalcountrycode&&(P.internalcountrycode=f.internalcountrycode);f="/service_ajax";_.S("debug_forward_web_query_parameters")&&(f=_.Ehy(f,window.location.search));f=_.ON(f,P);K.clickTrackingParams&&_.Oc(f,{itct:K.clickTrackingParams});return this.postData(f,X)};_.T6Q=new _.Oh("GFEEDBACK_TOKEN");var r8W;var A8U;var jmL;var wlT;var EW=function(){var K=_.G.apply(this,arguments)||this;K.compact=!1;return K};
_.r(EW,_.G);EW.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
EW.prototype.computeHasIcon_=function(K){return!!K};
EW.prototype.isSignInIcon_=function(K){return K=="yt-icons:prompted_sign_in"};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],EW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],EW.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.ZnV.YtConditionalRendererBehavior),_.g("design:type",Object)],EW.prototype,"ytConditionalRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],EW.prototype,"data",void 0);
_.O([_.h({computed:"computeIcon_(data.icon)"}),_.g("design:type",Object)],EW.prototype,"icon_",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.g("design:type",Boolean)],EW.prototype,"hasIcon_",void 0);_.O([_.h({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.g("design:type",Boolean)],EW.prototype,"signInIcon_",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],EW.prototype,"compact",void 0);
EW=_.O([_.Tb({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],EW);
_.t(EW,"yt-player-error-message-renderer",function(){if(wlT===void 0){var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;jmL===void 0&&(jmL=document.createElement("template"));var P=jmL;F.call(X,P.content.cloneNode(!0),K.content.firstChild);wlT=K}K=wlT;return K},{mode:2});var y8Z;var WxL;var bw=function(){return _.G.apply(this,arguments)||this};
_.r(bw,_.G);bw.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
bw.prototype.computeIcon_=function(K){return K?"yt-icons:"+K.iconType.toLowerCase():"error_outline"};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],bw.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],bw.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],bw.prototype,"data",void 0);_.O([_.h({computed:"computeIcon_(data.icon)"}),_.g("design:type",Object)],bw.prototype,"icon_",void 0);bw=_.O([_.Tb({is:"yt-player-kav-renderer",disableElementRegistration:!0})],bw);
_.t(bw,"yt-player-kav-renderer",function(){if(WxL===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;y8Z===void 0&&(y8Z=document.createElement("template"));var P=y8Z;F.call(X,P.content.cloneNode(!0),K.content.firstChild);WxL=K}K=WxL;return K},{mode:2});_.EP(_.$c(function(K){var X=_.t_(),F=_.D(_.u_(0,void 0,"gCmSbf")),P=F.next().value,H=F.next().value;F=_.D(_.u_(null,void 0,"Rj9zMe"));var f=F.next().value,u=F.next().value;_.AV(function(){tsy(X.value,H,u);X.value.scrollIntoView()});
F=$CM.bind(null,K.data,P);by("resize",function(){var J=f();if(P()===1&&J!==null){var Z;(Z=window.grecaptcha)==null||Z.reset(J)}});
return _.Q("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.Q("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.Q("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var J,Z;return(J=K.data().accessibility)==null?void 0:(Z=J.accessibilityData)==null?void 0:Z.label}),_.Q(_.Oy,{text:F,
className:_.HO("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.Q("div",{el:X,class:"ytwPlayerCaptchaViewModelGridItem"})))},"je"),"yt-player-captcha-view-model",{props:{data:_.g$}});var Ogd=!1;_.dGW=_.$c(function(K){var X=K.data;return _.Q("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.Q(_.p,{cond:function(){return X().icon},
then:function(F){return _.Q("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.Q(_.av,{data:F,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.Q(_.p,{cond:function(){return X().title},
then:function(F){return _.Q("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.Q(_.Oy,{text:F}))}}),_.Q(_.p,{cond:function(){return X().description},
then:function(F){return _.Q("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.Q(_.Oy,{text:F}))}}),_.Q(_.Md,{data:function(){return X().primaryButton}},{buttonViewModel:function(F){return _.Q(_.Af,{data:F.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.Q(_.Md,{data:function(){return X().secondaryButton}},{buttonViewModel:function(F){return _.Q(_.Af,{data:F.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"ke");
_.dGW.idomCompat=!0;var eCU=_.$c(function(K){var X=K.data;_.GX();return _.Q("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.Q("div",{class:"player-interstitial-renderer-wiz__scrim"},_.Q(_.Md,{data:function(){return X().content}},{interstitialViewModel:_.dGW})))},"le");
eCU.idomCompat=!0;_.EP(eCU,"yt-player-interstitial-renderer",{props:{data:_.vU}});var CX=function(){var K=_.G.apply(this,arguments)||this;K.noBackground=!1;K.compact=!1;K.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return K};
_.r(CX,_.G);CX.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"}}}};
CX.prototype.onUpdatePlayerErrorMessageCommand_=function(K){if(_.T(K,sKt)){var X;if(K=(X=_.T(K,sKt))==null?void 0:X.newPlayerErrorMessageRenderer)this.data=K}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],CX.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],CX.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],CX.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],CX.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],CX.prototype,"status",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],CX.prototype,"noBackground",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],CX.prototype,"compact",void 0);CX=_.O([_.Tb({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],CX);
var RCU=_.xc()(CX,"yt-playability-error-supported-renderers",function(){if(A8U===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;r8W===void 0&&(r8W=document.createElement("template"));var P=r8W;F.call(X,P.content.cloneNode(!0),K.content.firstChild);A8U=K}K=A8U;return K},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var Vs3=void 0,EeM=void 0;var NfM=new HZL;var UGC=function(K){this.store=K;this.ryM=new _.f4C},Nty=function(K,X,F){var P,H;
if(!(H=((P=X.playabilityStatus)==null?void 0:P.status)!=="OK")){K=K.store;var f;H=X.offlineState&&((f=X.videoDetails)==null?0:f.videoId)?_.S("enable_pl_r_c_cd")?rPP(K.getState().entities,X.videoDetails.videoId):!!I_l(K.getState().entities,X.videoDetails.videoId):!1}if(H)return!0;H=KU3(X);if(H===1){if(_.S("ab_v_vid_sig")){var u,J=(u=X.videoDetails)==null?void 0:u.videoId;if(!J||!F||J!==F){var Z;X=new _.nG("282054944_vid",{zEg:F,ac2:(Z=X.videoDetails)==null?void 0:Z.videoId});_.jF(X)}}return!0}Wiy=
0;var M,n;Z=(J=X.auxiliaryUi)==null?void 0:(M=J.messageRenderers)==null?void 0:(n=M.bkaEnforcementMessageViewModel)==null?void 0:n.displayType;if(H!==3&&(Z==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||Z==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;Z={reason:_.bY(_.uY("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.S("ks_something_wrong_learn_more")?oKq("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.bY(_.uY("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:_.bY("282054944")};hCu(X,{playerErrorMessageRenderer:Z});return!1},imw=function(K,X){if(bEl(X)){_.HI(1,!0);
var F=(F=bEl(X))&&_.geP()?F:void 0;F?(hCu(X,{enforcementMessageViewModel:F}),K.ryM.increment("IN_PLAYER"),_.HI(5)):(K.ryM.increment("SKIP_DISPLAY"),_.HI(2))}},hCu=function(K,X){K.playabilityStatus=Object.assign({},K.playabilityStatus,{status:"ERROR",
errorScreen:X});K.videoDetails=void 0};
UGC.prototype.handleResponse=function(K,X){if(K.playabilityStatus){var F,P,H,f=(X==null?void 0:(F=X.innerTubeRequest)==null?void 0:F.videoId)||(X==null?void 0:(P=X.innerTubeRequest)==null?void 0:(H=P.playerRequest)==null?void 0:H.videoId);Nty(this,K,f)&&imw(this,K)}};
UGC[$0]=[FJ];var bmP=new _.Oh("ADBLOCK_DETECTION_SERVICE_TOKEN");var V$=function(K){this.tHQ=K};
V$.prototype.bindInnertubeChallengeFetcher=function(K){this.tHQ.bicf(K)};
V$.prototype.registerChallengeFetchedCallback=function(K){this.tHQ.bcr(K)};
V$.prototype.getLatestChallengeResponse=function(){return this.tHQ.blc()};var vBC;_.Nb=function(K,X,F){var P=this;this.network=K;this.options=X;this.networkStatusManager=F;this.iB=null;if(X.useBotguardEverywhere){var H=new _.K$;this.iB=H.promise;_.FP.ytAtRC&&_.u6(_.A9,function(){var f,u;return _.q(function(J){if(J.nextAddress==1){if(!_.FP.ytAtRC)return J.return();f=mGN(null);return _.Y(J,P.gP(f),2)}u=J.yieldResult;_.FP.ytAtRC&&_.FP.ytAtRC(JSON.stringify(u));_.JT(J)})});
sTn().then(function(f){var u,J,Z,M;return _.q(function(n){if(n.nextAddress==1)return f.bindInnertubeChallengeFetcher(function(c){return P.gP(mGN(c))}),_.Y(n,yHw(),2);
u=n.yieldResult;J=f.getLatestChallengeResponse();Z=J.challenge;if(!Z)throw Error("bi");M={challenge:Z,yW:OD(Z),xh:u,bgChallenge:new tq};H.resolve(M);f.registerChallengeFetchedCallback(function(c){c=c.challenge;if(!c)throw Error("ci");c={challenge:c,yW:OD(c),xh:u,bgChallenge:new tq};P.iB=Promise.resolve(c)});
_.JT(n)})})}else X.preload&&GjQ(this,new Promise(function(f){_.cu(_.A9,function(){f(l7L(P))},0)}))};
vBC=function(K){var X={preload:!0,useBotguardEverywhere:!0},F=!1;if(typeof X==="boolean")var P={preload:X};else typeof X==="undefined"?P={preload:!0}:(P=X,F=!!X.vTt);X=F?void 0:new _.lU;_.Nb.instance=new _.Nb(K,P,X);return _.Nb.instance};
_.Nb.prototype.yh2=function(){var K=this;return _.q(function(X){return X.nextAddress==1?_.Y(X,Promise.race([K.iB,null]),2):X.return(!!X.yieldResult)})};
_.Nb.prototype.xdQ=function(K,X,F){var P=this,H,f,u;return _.q(function(J){P.iB===null&&GjQ(P,l7L(P));H=!1;f={};u=function(){var Z,M,n;return _.q(function(c){switch(c.nextAddress){case 1:return _.Y(c,P.iB,2);case 2:Z=c.yieldResult;f.challenge=Z.challenge;if(!Z.xh){"c1a"in Z.yW&&(f.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");c.jumpTo(3);break}M=Object.assign({},{c:Z.challenge,e:K},X);_.s2(c,4);H=!0;if(_.S("attbs")&&!P.options.useBotguardEverywhere){n=_.HsL(Z.xh,{fS:M});c.jumpTo(6);break}return _.Y(c,
Z.xh.snapshot({fS:M}),7);case 7:n=c.yieldResult;case 6:n?f.webResponse=n:f.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.Gy(c,3);break;case 4:_.qc(c),f.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(K==="ENGAGEMENT_TYPE_PLAYBACK"){var B=Z.yW,L={};if(B.c6a){var A=Number(_.e8("DCLKSTAT",0));L.reportingStatus=String(Number(B.c)^(isNaN(A)?0:A))}B.c6b&&(L.broadSpectrumDetectionResult=String(Number(B.c)^Number(_.e8("CATSTAT",0))));f.adblockReporting=L}return c.return(f)}})};
return J.return(Promise.race([u(),a7W(F,function(){var Z=Object.assign({},f);H&&(Z.error="ATTESTATION_ERROR_VM_TIMEOUT");return Z})]))})};
var mGN=function(K){var X={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};K&&(X.interpreterHash=K);return X},l7L=function(K,X){X=X===void 0?0:X;
var F,P,H,f,u,J,Z,M,n,c,B,L;return _.q(function(A){switch(A.nextAddress){case 1:F=mGN(fXC().dk1);if(_.S("att_fet_ks"))return _.s2(A,7),_.Y(A,K.gP(F),9);_.s2(A,4);return _.Y(A,tVT(K,F),6);case 6:u=A.yieldResult;H=u.buY;f=u.nUH;P=u;_.Gy(A,3);break;case 4:return _.qc(A),_.yy(Error("di`"+X)),$GQ(K,864E5),A.return({challenge:"",yW:{},xh:void 0,bgChallenge:void 0});case 9:P=A.yieldResult;if(!P)throw Error("ei");if(!P.challenge)throw Error("fi");H=P.challenge;f=OD(H);if("c1a"in f&&(!P.bgChallenge||!P.bgChallenge.program))throw Error("gi");
_.Gy(A,3);break;case 7:J=_.qc(A);_.yy(J);X++;if(X>=5)return _.yy(Error("di`"+X)),$GQ(K,864E5),A.return({challenge:"",yW:{},xh:void 0,bgChallenge:void 0});Z=1E3*Math.pow(2,X-1)+Math.random()*1E3;return A.return(new Promise(function(d){_.cu(_.A9,function(){d(l7L(K,X))},Z)}));
case 3:M=HdT(f);$GQ(K,M*1E3);n=void 0;if(!("c1a"in f&&P.bgChallenge)){A.jumpTo(10);break}c=PGT(P.bgChallenge);_.s2(A,11);return _.Y(A,uwT(fXC(),c),13);case 13:_.Gy(A,12);break;case 11:return B=_.qc(A),_.yy(B),A.return({challenge:H,yW:f,xh:n,bgChallenge:c});case 12:return _.s2(A,14),n=new _.oG({challenge:c,tb:{uS:"aGIf"}}),_.Y(A,n.qH3,16);case 16:_.Gy(A,10);break;case 14:L=_.qc(A),_.yy(L),n=void 0;case 10:return A.return({challenge:H,yW:f,xh:n,bgChallenge:c})}})};
_.Nb.prototype.gP=function(K){var X=this,F;return _.q(function(P){F=X.networkStatusManager;if(!F||F.isNetworkAvailable())return P.return(X.network.gP(K));_.wb("att_pna",void 0,"attestation_challenge_fetch");return P.return(new Promise(function(H){F.listenOnce("publicytnetworkstatus-online",function(){X.network.gP(K).then(H)})}))})};
var OnW=function(K){if(!K)throw Error("ei");if(!K.challenge)throw Error("fi");var X=K.challenge,F=OD(X);if("c1a"in F&&(!K.bgChallenge||!K.bgChallenge.program))throw Error("gi");return Object.assign({},K,{buY:X,nUH:F})},tVT=function(K,X){var F,P,H,f,u;
return _.q(function(J){switch(J.nextAddress){case 1:F=void 0,P=0,H={};case 2:if(!(P<5)){J.jumpTo(4);break}if(!(P>0)){J.jumpTo(5);break}H.qw1=1E3*Math.pow(2,P-1)+Math.random()*1E3;return _.Y(J,new Promise(function(Z){return function(M){_.cu(_.A9,function(){M(void 0)},Z.qw1)}}(H)),5);
case 5:return _.s2(J,7),_.Y(J,K.gP(X),9);case 9:return f=J.yieldResult,J.return(OnW(f));case 7:F=u=_.qc(J),u instanceof Error&&_.yy(u);case 8:P++;H={qw1:void 0};J.jumpTo(2);break;case 4:throw F;}})},GjQ=function(K,X){K.iB=X},VVL=function(K){var X,F,P;
return _.q(function(H){if(H.nextAddress==1)return _.Y(H,Promise.race([K.iB,null]),2);X=H.yieldResult;var f=l7L(K);K.iB=f;(F=X)==null||(P=F.xh)==null||P.dispose();_.JT(H)})},$GQ=function(K,X){var F=Date.now()+X,P=function(){var H;
return _.q(function(f){H=F-Date.now();return H<1E3?_.Y(f,VVL(K),0):(_.cu(_.A9,P,Math.min(H,6E4)),f.jumpTo(0))})};
P()},a7W=function(K,X){return new Promise(function(F){_.cu(_.A9,function(){F(X())},K)})};var gBL=function(){};
gBL.prototype.processContext=function(K){var X=_.Nb.instance;if(!X)return _.mQ();var F=qFq(K);return F?new hp(X.xdQ(F,DWn(K),500).then(function(P){var H;(K==null?0:(H=K.innerTubeRequest)==null?0:H.context)||(K.innerTubeRequest.context={});H=K.innerTubeRequest.context;H.request||(H.request={});H.request.attestationResponseData=P})):_.mQ()};var EBC=function(K){this.innertubeTransportService=K};
EBC.prototype.gP=function(K){_.wb("att_fsr",void 0,"attestation_challenge_fetch");return _.rz(this.innertubeTransportService,K,_.t7(_.Hpt)).then(function(X){_.wb("att_frr",void 0,"attestation_challenge_fetch");return X})};_.bnC=function(K){this.innertubeTransportService=K};var ClQ=new _.Oh("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var N6Z=function(){},xGO=function(K,X,F,P,H){var f=_.e8("YPC_MB_URL");
_.ED9(f).then(function(){inZ(f,K,X,F,P,H)})},inZ=function(K,X,F,P,H,f){try{var u=payments.business.integration,J=payments.business.integration.Style.create().withMaterialDesignStyle(),Z=u.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.S("enable_window_constrained_buy_flow_dialog")&&(Z=Z.usingPopupStyle("windowConstrained"));f&&(Z=Z.usingCloseCallback(f));var M=F?F:_.e8("YPC_GB_LANGUAGE"),n=_.e8("SESSION_INDEX");u.bootstrap.fromPaymentsUrl(K);u.bootstrap.asMashupMode(Z).usingGaiaIndex(n).usingLocale(M).usingStyle(J).usingDefaultActivityStatusChangeHandler().inStandaloneContext(u.standaloneContextAuthId.forGaia()).purchaseManager(X,function(c){P&&P(c)}).load(void 0,H)}catch(c){throw H&&H(c),_.jF(c),c;
}};var I7C=new _.Oh("PURCHASE_MANAGER_TOKEN");var kjT=function(){var K=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return K.videos},
getContinuationsPresent:function(){return K.continuationsPresent},
setVideos:function(X){K.videos=X},
getRecommendedVideos:function(){return K.recommendedVideos},
setRecommendedVideos:function(X){K.recommendedVideos=X}}};
kjT.prototype.addVideos=function(K){K&&(this.videos=K.filter(function(X){return!!_.Zdw(X)}).map(function(X){var F=_.Zdw(X);
a:{var P;if(X.playlistVideoRenderer&&((P=X.playlistVideoRenderer)==null?0:P.voteSortTiebreaker))var H=X.playlistVideoRenderer.voteSortTiebreaker;else{if(_.T(X,ED)){var f;if(P=(H=_.T(X,ED))==null?void 0:(f=H.playlistItemData)==null?void 0:f.voteSortTiebreaker){H=P;break a}}H=""}}return{itemId:F,videoId:_.MwP(X),voteCount:_.nD9(X),voteSortTiebreaker:H}}),this.continuationsPresent=!!_.T(K[K.length-1],_.xR))};
var KeC=function(K,X){return K.videos.findIndex(function(F){return F.itemId===X})},X3t=function(K,X){return K.recommendedVideos.findIndex(function(F){return F.itemId===X})},Feu=function(K){K={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:K}}}}};_.i9().resolve(_.xU).resolveCommand(K)};var PFL=function(){kjT.apply(this,arguments)};
_.r(PFL,kjT);
var geL=function(K,X,F,P){if(!K.parentElem)throw Error("li");var H=KeC(K,X);H===-1&&(H=X3t(K,X),H=H!==-1?H+K.videos.length:-1);if(H===-1)throw Error("mi");var f=H>=K.videos.length?K.recommendedVideos[H-K.videos.length]:K.videos[H];f.voteCount=F;f.voteSortTiebreaker=Date.now().toString();H>=K.videos.length?K.recommendedVideos.splice(H-K.videos.length,1):K.videos.splice(H,1);var u=K.videos;for(var J=0,Z=u.length-1;J<=Z;){var M=Math.floor((J+Z)/2);if(u[M].voteCount<f.voteCount)Z=M-1;else if(u[M].voteCount>f.voteCount)J=
M+1;else{a:{var n=f.voteSortTiebreaker;var c=u[M].voteSortTiebreaker;if(n.length!==c.length)n=n.length>c.length;else{for(var B=0;B<n.length;B++){var L=n.charCodeAt(B),A=c.charCodeAt(B);if(L>A){n=!0;break a}if(L<A)break}n=!1}}n?Z=M-1:J=M+1}}u=J;if(u===-1)throw Error("ni");K.videos.splice(u,0,f);H!==u&&HcW(K,H,u,X,F,P)},HcW=function(K,X,F,P,H,f){var u,J=(u=K.parentElem)==null?void 0:u.children,Z=Math.min(X,F),M=Math.max(X,F);
if(J)for(u=Z;u<=M;u++)J[u].style.viewTransitionName="item-"+String(u);document.startViewTransition(function(){if(K.parentElem){var n=K.parentElem.children;if(!(!n||X<0||X>=n.length||F<0||F>=n.length)){var c=n[X];if(c){c.remove();K.showRefreshPill=F>=K.videos.length-1&&K.continuationsPresent;if(!K.showRefreshPill){n=n[F]||null;var B;(B=K.parentElem)==null||B.insertBefore(c,n)}_.iX(K.parentElem,"yt-update-video-data-voting-animation",{toIdx:F,itemId:P,newVoteCount:H,voteStatus:f,hideItem:K.showRefreshPill})}}}}).finished.then(function(){if(J)for(var n=
Z;n<=M;n++)J[n].style.viewTransitionName="";
if(K.showRefreshPill)Feu(_.uY("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var c;if(c=n=(c=K.parentElem)==null?void 0:c.children[F])c=n.getBoundingClientRect(),n=c.bottom,c=!(c.top>=0&&n<=K.clientHeight);c&&(c=_.qm(X>F?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(X-F)),Feu(c))}})};var f$L=function(K,X){var F=this;K?this.innertubeTransportServicePromise=Promise.resolve(K):X&&(this.innertubeTransportServicePromise=X(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new UW(3E3,function(P){return s4W(F,P)},0);
this.validateMiniAppVideoIdRateLimiter=new UW(3E3,function(P){return zgC(F,P)},1)},t2L=function(K,X){K.JSC$15023_miniAppId=X;
K.reportMiniAppValueRateLimiter=new UW(3E3,function(F){return s4W(K,F)},0);
K.validateMiniAppVideoIdRateLimiter=new UW(3E3,function(F){return zgC(K,F)},1)},OhL=function(K,X){var F;
return _.q(function(P){if(P.nextAddress==1)return _.Y(P,K.reportMiniAppValueRateLimiter.call(X),2);F=P.yieldResult;return P.return([F,X])})},s4W=function(K,X){var F,P,H,f,u,J,Z;
return _.q(function(M){switch(M.nextAddress){case 1:return _.Y(M,K.innertubeTransportServicePromise,2);case 2:return F=M.yieldResult,P=_.t7(JkC),H=Date.now(),f={externalPostId:K.JSC$15023_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(H/1E3),nanos:Math.round(H%1E3*1E6)},intValue:""+X}},_.s2(M,3),_.Y(M,_.rz(F,f,P),5);case 5:u=M.yieldResult;_.Gy(M,4);break;case 3:throw J=_.qc(M),J;case 4:if(u){if("error"in u&&u.error)throw u.error;if(u.errorMetadata)throw Error("oi`"+
u.errorMetadata.status);if(Z=u.userStatResult)return M.return(Z);throw Error("pi");}throw Error("qi");}})},g7u=function(K){var X,F,P,H,f;
_.q(function(u){switch(u.nextAddress){case 1:return _.Y(u,K.innertubeTransportServicePromise,2);case 2:return X=u.yieldResult,F=_.t7(JkC),P={externalPostId:K.JSC$15023_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.s2(u,3),_.Y(u,_.rz(X,P,F),5);case 5:H=u.yieldResult;_.Gy(u,4);break;case 3:throw f=_.qc(u),f;case 4:if(H==null)throw Error("qi");if("error"in H&&H.error)throw H.error;if(H.errorMetadata)throw Error("oi`"+H.errorMetadata.status);_.JT(u)}})};
f$L.prototype.flush=function(){var K=this;return _.q(function(X){return X.nextAddress==1?_.Y(X,K.reportMiniAppValueRateLimiter.flush(),2):_.Y(X,K.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var V2u=function(K,X){return _.q(function(F){return F.nextAddress==1?_.Y(F,K.validateMiniAppVideoIdRateLimiter.call(X),2):F.return(F.yieldResult)})},zgC=function(K,X){var F,P,H,f,u,J;
return _.q(function(Z){switch(Z.nextAddress){case 1:return _.Y(Z,K.innertubeTransportServicePromise,2);case 2:return F=Z.yieldResult,P=_.t7(PZL),H={videoId:X},_.s2(Z,3),_.Y(Z,_.rz(F,H,P),5);case 5:f=Z.yieldResult;_.Gy(Z,4);break;case 3:throw u=_.qc(Z),u;case 4:if(f){if("error"in f&&f.error)throw f.error;if(f.errorMetadata)throw Error("oi`"+f.errorMetadata.status);if(J=f.playabilityStatus)return Z.return(J.status);throw Error("ri");}throw Error("qi");}})};
f$L[$0]=[_.Nu(_.L$),_.Nu(mhZ)];var DHW=function(){this.clientData=new Map};
DHW.prototype.getData=function(K){return this.clientData.get(K)};var uIL=function(K){this.store=K};
uIL.prototype.handleResponse=function(K){(K=_.T(K.frameworkUpdates,mW))&&_.fI(K,this.store)};
uIL[$0]=[_.jE];var q9Q=new _.Oh("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var JGu={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],
search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,
1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,
1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var ZcL=new _.Oh("ICON_SET_TOKEN"),Y9t=new _.Oh("ICON_URL_PROVIDER_TOKEN"),Q4L=new _.Oh("PREFETCH_ICONS_TOKEN"),MoT=new _.Oh("ICON_MAP_FN_TOKEN");var iw={},nVL=(iw.ACCESS_TIME="clock",iw.ACCOUNT_BOX="person_account",iw.ACCOUNT_BOX_CAIRO="person_account_cairo",iw.ACCOUNT_CIRCLE="person_circle",iw.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",iw.ACCOUNT_LINKED="account_link_success",iw.ACCOUNT_UNLINKED="account_link",iw.ADD_FRIEND="people",iw.ADD_MODERATOR="shield_add",iw.ADD_TO_LIBRARY=Cj("add"),iw.ADD_TO_PLAYLIST="add",iw.ADD_TO_QUEUE_TAIL="list_queue",iw.ADD_TO_REMOTE_QUEUE="list_music",iw.ADD_TO_WATCH_LATER="clock",iw.ADD_VIDEO_LINK="film_strip_add",
iw.ALERT_WARN_RED="alert_triangle",iw.ARROW_BACK="arrow_left",iw.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",iw.ARROW_DROP_DOWN="chevron_down",iw.ARROW_DROP_UP="chevron_up",iw.ARROW_FORWARD="arrow_right",iw.AUDIOTRACK="audio",iw.AUTO_AWESOME="sparkle",iw.AVATAR_ANONYMOUS="person_circle",iw.AVATAR_LOGGED_OUT="person_circle",iw.BACK="arrow_left",iw.BAR_CHART="bar_graph",iw.BLOCK="slash_circle_left",iw.BLOCK_USER="slash_circle_left",iw.BOOKMARK_BORDER="bookmark",iw.BREAKING_NEWS_ALT_1="article_alert",
iw.BROADCAST_CAIRO="podcast_cairo",iw.BUG_REPORT="bug",iw.CAMERA_ALT="camera",iw.CAMPAIGN="megaphone",iw.CANCEL="x_circle",iw.CAPTIONS="closed_caption",iw.CAST_OUTLINE="chromecast",iw.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",iw.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",iw.CHAT="message_bubble_left",iw.CHAT_BUBBLE="message_bubble_empty",iw.CHAT_SPARK="spark_message_bubble_left",iw.CHECK_BOX_OUTLINE_BLANK="box_empty",iw.CHECK_CIRCLE_OUTLINE="check_circle",iw.CHECK_CIRCLE_THICK="check_circle",iw.CLARIFY=
"article_clarify",iw.CLOSED_CAPTION_SELECTED="closed_caption",iw.CLOSE="x_mark",iw.CLOUD_UPLOAD="cloud_arrow_up",iw.COLLAPSE="chevron_up",iw.COLLAPSE_CAIRO="chevron_up_cairo",iw.COLLECTION="layers",iw.COLOR_LENS="palette",iw.COMMENT="message_bubble_right",iw.CONSENT_SHIELD="person_shield",iw.CONTENT_CUT="scissors",iw.CONTENT_CUT_CAIRO="scissors_cairo",iw.COURSE=_.S("web_enable_course_icon_update")?"creator_academy":"lightbulb",iw.COURSE_CAIRO=_.S("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",iw.CREATION_LIVE="radar_live",iw.CREATION_POST="box_pencil",iw.CREATION_UPLOAD="my_videos",iw.CREATION_UPLOAD_RED="upload",iw.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",iw.CREATOR_STUDIO="youtube_studio",iw.DASHBOARD="grid_asymmetrical",iw.DELETE="trash_can",iw.DELETE_SWEEP="trash_can",iw.DESKTOP="laptop",iw.DISLIKE="thumb_down",iw.DISLIKE_SELECTED="thumb_down",iw.DISMISSAL="x_mark",iw.DISMISS_QUEUE="list_remove",iw.DONE_ALL="check_double",iw.DOWN_ARROW="arrow_down",iw.DO_NOT_DISTURB=
"slash_circle_left",iw.DRAFT="paper_corner_folded",iw.DRAG_HANDLE="bars_2",iw.EDIT="pencil",iw.EMOJI="face_very_happy",iw.EMOJI_FLAGS="flag",iw.EMOJI_OBJECTS="lightbulb",iw.EMOJI_PEOPLE="face_very_happy",iw.EMOJI_RECENT="clock",iw.EMPTY_HEART="heart",iw.EMPTY_LIKE="thumb_up",iw.ERROR_BLACK="alert_circle",iw.ERROR_OUTLINE="alert_circle",iw.EXIT_APP="arrow_in",iw.EXIT_TO_APP="arrow_in",iw.EXPAND="chevron_down",iw.EXPAND_ALL="chevron_expand",iw.EXPAND_CAIRO="chevron_down_cairo",iw.EXPAND_LESS="chevron_up",
iw.EXPAND_MORE="chevron_down",iw.EXPLORE="compass",iw.EXPLORE_DESTINATION="compass",iw.EXTERNAL_LINK="open_new",iw.FAB_UPLOAD="upload",iw.FACE_HAPPY_OUTLINE="face_happy",iw.FACT_CHECK="article_check",iw.FASHION_LOGO="fashion",iw.FASHION_LOGO_CAIRO="fashion_cairo",iw.FAVORITE="heart",iw.FEEDBACK="message_bubble_alert",iw.FEEDBACK_CAIRO="message_bubble_alert_cairo",iw.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",iw.FILL_ARROW_SOLID_UP_16="arrow_solid_up",iw.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
iw.FILTER="menu_filter",iw.FIRST_PAGE="chevron_first",iw.FLAG="flag",iw.FULL_HEART="heart",iw.GAME_CONSOLE_DPAD="game_console_dpad",iw.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",iw.GAMING_LOGO="gaming",iw.GAMING_LOGO_CAIRO="gaming_cairo",iw.GO_TO_PAGE="arrow_right",iw.GROUPS="people_group",iw.HAPPY="face_happy",iw.HEALTH_AND_SAFETY="shield_plus",iw.HELP="question_circle",iw.HELP_CAIRO="question_circle_cairo",iw.HELP_OUTLINE="question_circle",iw.HIDE="slash_circle_left",iw.IMAGE="image",
iw.INFINITY_ICON="infinity",iw.INFO="info_circle",iw.INFO_OUTLINE="info_circle",iw.INSERT_CHART_OUTLINED="bar_graph_box_vertical",iw.INSERT_PHOTO="image",iw.KEEP="pin",iw.KEEP_OFF="pin_off",iw.KEYBOARD="keyboard",iw.KEYBOARD_ARROW_DOWN="chevron_down",iw.KEYBOARD_ARROW_UP="chevron_up",iw.KIDS_BLOCK="slash_circle_left",iw.LANGUAGE="globe",iw.LAST_PAGE="chevron_last",iw.LAUNCH="open_new",iw.LEARNING="lightbulb",iw.LEARNING_CAIRO="lightbulb_cairo",iw.LIBRARY_ADD=Cj("library_add"),iw.LIBRARY_OUTLINE="library",
iw.LIBRARY_REMOVE=Cj(),iw.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",iw.LIKES_PLAYLIST="thumb_up",iw.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",iw.LIKE="thumb_up",iw.LIKE_SELECTED="thumb_up",iw.LIVE="radar_live",iw.LIVE_CAIRO="radar_live_cairo",iw.LIVE_UNLISTED="link",iw.LOCATION_ON="location_point",iw.LOCATION_PIN="location_point",iw.LOOP="arrow_repeat",iw.LOOP_ACTIVE="arrow_repeat",iw.LOOP_ONE="arrow_repeat_1",iw.LOOP_ONE_ACTIVE="arrow_repeat_1",iw.MEH="face_meh",iw.MEMBERS_ONLY_MODE_OFF="message_bubble_left",
iw.MESSAGE="message_bubble_left",iw.MICROPHONE_ON="mic",iw.MIX="youtube_mix",iw.MONETIZATION_ON="dollar_sign_circle",iw.MONEY_FILL="dollar_sign_container",iw.MONEY_FILL_JPY="yen_sign_container",iw.MONEY_HEART="dollar_sign_heart",iw.MORE_HORIZ="overflow_horizontal",iw.MORE_VERT="overflow_vertical",iw.MUSIC="audio",iw.MUSIC_CAIRO="audio_cairo",iw.MUSIC_NOTE_SYMBOL="music",iw.MUSIC_SHUFFLE="arrow_shuffle",iw.MY_CHANNEL="person_circle",iw.MY_LOCATION="location_point",iw.NEWS_STORY="news",iw.NEXT="chevron_right",
iw.NOTIFICATIONS="bell",iw.NOTIFICATIONS_ACTIVE="bell_on",iw.NOTIFICATIONS_CAIRO="bell_cairo",iw.NOTIFICATIONS_DONE_CHECKMARK="check",iw.NOTIFICATIONS_INBOX="bell",iw.NOTIFICATIONS_NONE="bell",iw.NOTIFICATIONS_OFF="bell_off",iw.NOT_INTERESTED="slash_circle_left",iw.OFFICIAL_ARTIST_BADGE="audio",iw.OFFLINE_CLOUD="cloud_off",iw.OFFLINE_DOWNLOAD="download",iw.OFFLINE_DOWNLOAD_CAIRO="download_cairo",iw.OFFLINE_PAUSE="pause",iw.OPEN_IN_NEW="open_new",iw.OUTLINE_ADJUST="adjust",iw.OUTLINE_ARROW_SOLID_DOWN_16=
"arrow_solid_down",iw.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",iw.OUTLINE_BAG="bag",iw.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",iw.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",iw.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",iw.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",iw.PAID="dollar_sign",iw.PAUSE_OUTLINED="pause",iw.PAYMENT="credit_card",iw.PERSON_RADAR_FILLED="person_radar",iw.PHONE_DOWNLOAD="mobile_download",iw.PLAYABLES_LOGO="tic_tac_toe",iw.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",
iw.PLAYLISTS="list_play_arrow",iw.PLAYLISTS_CAIRO="list_play_arrow_cairo",iw.PLAYLIST_ADD=Cj("list_add"),iw.PLAYLIST_ADD_CHECK=Cj("list_check"),iw.PLAYLIST_PLAY="list_play_arrow",iw.PLAY_ALL="play_arrow",iw.PLAY_CIRCLE="play_arrow_circle",iw.PLAY_OUTLINED="play_arrow_circle",iw.PRIVACY_INFO="shield",iw.PRIVACY_PRIVATE="lock",iw.PRIVACY_PUBLIC="earth",iw.PRIVACY_UNLISTED="link",iw.PROMOTE="megaphone",iw.PURCHASES="price_tag",iw.PURCHASE_SUPER_CHAT="super_chat",iw.PURCHASE_SUPER_STICKER="super_sticker",
iw.QUESTION_ANSWER="message_bubble_question",iw.QUEUE_PLAY_LAST="list_queue_last",iw.QUEUE_PLAY_NEXT="list_play_arrow",iw.REMIX_FILLED="youtube_shorts_remix",iw.REMOVE="bar_circle",iw.REMOVE_CIRCLE="bar_circle",iw.REMOVE_CIRCLE_OUTLINE="bar_circle",iw.REMOVE_DONE="check_double_off",iw.REMOVE_FROM_HISTORY="bar_circle",iw.REMOVE_FROM_PLAYLIST="bar_circle",iw.REMOVE_MODERATOR="shield_off",iw.REPLAY="arrow_circle",iw.REPLAY_10="skip_back_10",iw.REPORT_PROBLEM="alert_triangle",iw.SAD="face_sad",iw.SAVE_PLAYLIST=
Cj("library_add"),iw.SCHEDULE="clock",iw.SCHOOL="creator_academy",iw.SCREEN_FULLSCREEN="screen_full",iw.SEARCH_HISTORY="arrow_time",iw.SELL="price_tag",iw.SETTINGS="gear",iw.SETTINGS_CAIRO="gear_cairo",iw.SETTINGS_LIGHT="gear",iw.SETTINGS_MATERIAL="gear",iw.SHARE_ARROW="share",iw.SHIELD_WITH_AVATAR="person_shield",iw.SHOPPING_BAG="bag",iw.SHOPPING_BAG_CAIRO="bag_cairo",iw.SHOPPING_CART="cart",iw.SHORTS_COMMENT="youtube_shorts_message_bubble_right",iw.SHORTS_DISLIKE="youtube_shorts_thumb_down",iw.SHORTS_LIKE=
"youtube_shorts_thumb_up",iw.SHORTS_SHARE="youtube_shorts_share",iw.SHUFFLE="arrow_shuffle",iw.SLOW_MODE_OFF="message_bubble_left",iw.SOCIAL="people",iw.SORT="menu_sort",iw.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",iw.SPEED_1X="1x",iw.SPEED_1_POINT_2X="1_point_2x",iw.SPEED_1_POINT_5X="1_point_5x",iw.SPEED_1_POINT_8X="1_point_8x",iw.SPEED_2X="2x",iw.SPEED_POINT_2X="point_2x",iw.SPEED_POINT_8X="point_8x",iw.SPONSORSHIP_STAR=_.S("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",iw.STAFF_PICK=
"spotlight",iw.START_DVR="add",iw.STAR_BORDER="star",iw.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",iw.STICKER_EMOTICON="face_happy",iw.STOP_DVR="stop",iw.SUBSCRIBE="youtube_logo_icon",iw.SUBSCRIBE_PLUS="add_cairo",iw.SUBSCRIPTION_MANAGER="gear",iw.SUPERVISOR_ACCOUNT="people",iw.SUPER_CHAT_FOR_GOOD="hands_heart",iw.SWAP_HORIZ="arrow_swap_horizontal",iw.SWITCH_ACCOUNTS="person_account",iw.TAB_ACCOUNT="person",iw.TAB_ACTIVITY="bell",iw.TAB_BOOKMARK="bookmark",iw.TAB_EXPLORE="compass",iw.TAB_HOME=
"home",iw.TAB_HOME_CAIRO="home_cairo",iw.TAB_INBOX="mail",iw.TAB_LIKED="thumb_up",iw.TAB_MUSIC_PREMIUM="youtube_music",iw.TAB_SHORTS="youtube_shorts",iw.TAB_SHORTS_CAIRO="youtube_shorts_cairo",iw.TAB_SUBSCRIPTIONS="subscriptions",iw.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",iw.TAB_TRENDING="fire",iw.TIMER="stopwatch",iw.TRAILER="youtube_originals",iw.TRENDING="fire",iw.TRENDING_CAIRO="fire_cairo",iw.TRENDING_UP="rating_up",iw.TROPHY="trophy",iw.TROPHY_CELEBRATIONS="fireworks",iw.TUNE="adjust",
iw.UNBLOCK_USER="bar_circle",iw.UNLIMITED="youtube_logo_icon",iw.UNPLUGGED_LIVE_GUIDE="radar_live",iw.UNPLUGGED_SPORTS="eye_off",iw.UPLOADS="library",iw.UP_ARROW="arrow_up",iw.VERTICAL_ALIGN_BOTTOM="download",iw.VERY_HAPPY="face_very_happy",iw.VERY_SAD="face_very_sad",iw.VIDEOGAME_ASSET="gaming",iw.VIDEOS="play_arrow_circle",iw.VIDEO_CALL="video_camera_add",iw.VIDEO_LIBRARY_WHITE="library",iw.VIDEO_YOUTUBE="youtube_logo_icon",iw.VIEW_LIST="list_view",iw.VIEW_LIST_CAIRO="list_view_cairo",iw.VISIBILITY=
"eye",iw.VISIBILITY_OFF="eye_off",iw.VOLUME_MUTE="volume_off",iw.VOLUME_UP="volume_on",iw.WALLPAPER="image",iw.WARNING="alert_triangle",iw.WATCH_HISTORY="arrow_time",iw.WATCH_HISTORY_CAIRO="arrow_time_cairo",iw.WATCH_LATER="clock",iw.WATCH_LATER_CAIRO="clock_cairo",iw.WATCH_RELATED_MIX="youtube_mix",iw.WHAT_TO_WATCH="home",iw.YOUTUBE_MUSIC_MONOCHROME="youtube_music",iw.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",iw.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",iw.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",iw.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",iw.YT_OUTLINE_MUSIC_24="music",iw);var xN={},cGT=(xN.ACCESS_TIME="clock",xN.ACCOUNT_BOX="person_square",xN.ACCOUNT_BOX_CAIRO="person_square",xN.ACCOUNT_CIRCLE="person_circle",xN.ACCOUNT_CIRCLE_CAIRO="person_circle",xN.ACCOUNT_LINKED="account_link",xN.ACCOUNT_UNLINKED="account_link",xN.ADD_CIRCLE="add_circle",xN.ADD_FRIEND="person_child",xN.ADD_TO_LIBRARY="bookmark",xN.ADD_TO_PLAYLIST="add",xN.ADD_TO_QUEUE_TAIL="queue",xN.ADD_TO_REMOTE_QUEUE="playlist_audio",xN.ADD_TO_WATCH_LATER="clock",xN.ADD_VIDEO_LINK="film_strip_add",xN.ADMIN_PANEL_SETTINGS=
"gear",xN.ALERT_WARN_RED="alert_triangle",xN.ALIGN_LEFT="text_align_left",xN.ARROWS_ALERT="arrow_split_alert",xN.ARROW_BACK="arrow_left",xN.ARROW_CIRCLE="arrow_counterclockwise",xN.ARROW_CIRCLE_PLAY="replay",xN.ARROW_CIRCLE_RIGHT="arrow_clockwise",xN.ARROW_DIAGONAL="arrow_up_left",xN.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",xN.ARROW_DROP_DOWN="triangle_down",xN.ARROW_DROP_UP="triangle_up",xN.ARROW_FORWARD="arrow_right",xN.ARROW_PAUSE="pause_history",xN.ARROW_UNDO="undo",xN.ARTICLE="text_page",xN.ARTICLE_ALERT=
"text_page_alert",xN.ARTICLE_CHECK="text_page_check",xN.ARTICLE_CLARIFY="text_page_info",xN.AUDIOTRACK="audio",xN.AUDIO_BADGE="audio_badge",xN.AUDIO_SURROUND="surround_sound",xN.AVATAR_ANONYMOUS="person_circle",xN.AVATAR_LOGGED_OUT="person_circle",xN.BACK="arrow_left",xN.BAR_CHART="chart_bar",xN.BAR_CIRCLE="minus_circle",xN.BAR_HORIZONTAL="minus",xN.BLOCK="circle_slash",xN.BLOCK_USER="circle_slash",xN.BOOKMARK_BORDER="bookmark",xN.BOX_OPEN_CHECK="quiz",xN.BOX_PENCIL="square_pencil",xN.BREAKING_NEWS_ALT_1=
"text_page_alert",xN.BROADCAST="podcast",xN.BROADCAST_CAIRO="podcast",xN.BUG_REPORT="bug",xN.CAMERA_ALT="camera",xN.CAMPAIGN="megaphone",xN.CANCEL="x_circle",xN.CAPTIONS="closed_captions",xN.CAST_ICON="chromecast",xN.CAST_OUTLINE="chromecast",xN.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",xN.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",xN.CHAT="text_bubble",xN.CHAT_BUBBLE="bubble",xN.CHECK_BOX="check_square",xN.CHECK_BOX_OUTLINE_BLANK="square",xN.CHECK_CIRCLE_FILLED="check_circle",xN.CHECK_CIRCLE_OUTLINE=
"check_circle",xN.CHECK_CIRCLE_THICK="check_circle",xN.CHECK_DOUBLE="check_done",xN.CHECK_DOUBLE_OFF="check_done_slash",xN.CHEVRON_LEFT="chevron_left",xN.CHEVRON_RIGHT="chevron_right",xN.CHEVRON_RIGHT_CAIRO="chevron_right",xN.CIRCLES_OVERLAP="account_link",xN.CLAPPERBOARD_CAIRO="clapperboard",xN.CLARIFY="text_page_info",xN.CLOCK_ARROWS="clock_split",xN.CLOCK_ARROWS_ALERT="clock_split_alert",xN.CLOSED_CAPTION="closed_captions",xN.CLOSED_CAPTION_SELECTED="closed_captions",xN.CLOSE="x",xN.CLOUD_UPLOAD=
"cloud_arrow_up",xN.COLLAPSE="chevron_up",xN.COLLAPSE_CAIRO="chevron_up",xN.COLLECTION="square3d_stack",xN.COLOR_LENS="paint_palette",xN.COMMENT="text_bubble",xN.CONSENT_SHIELD="person_shield",xN.CONTENT_CUT="scissors",xN.CONTENT_CUT_CAIRO="scissors",xN.COURSE="graduation_cap",xN.COURSE_CAIRO="graduation_cap",xN.CREATION_LIVE="live",xN.CREATION_POST="square_pencil",xN.CREATION_UPLOAD="video",xN.CREATION_UPLOAD_RED="upload",xN.CREATOR_ACADEMY="graduation_cap",xN.CREATOR_STUDIO="youtube_studio",xN.DARK_THEME=
"theme",xN.DELETE="trash_can",xN.DELETE_SWEEP="trash_can",xN.DESKTOP="laptop",xN.DISLIKE="thumb_down",xN.DISLIKE_SELECTED="thumb_down",xN.DISMISSAL="x",xN.DISMISS_QUEUE="playlist_x",xN.DOGFOOD="pawprint",xN.DOLLAR_SIGN="dollar_sign_circle",xN.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",xN.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",xN.DOWN_ARROW="arrow_down",xN.DO_NOT_DISTURB="circle_slash",xN.DRAFT="document",xN.EARTH="globe",xN.EDIT="pencil",xN.EMOJI="face_very_happy",xN.EMOJI_FLAGS="flag",xN.EMOJI_OBJECTS=
"lightbulb",xN.EMOJI_PEOPLE="face_very_happy",xN.EMOJI_RECENT="clock",xN.EMPTY_HEART="heart",xN.EMPTY_LIKE="thumb_up",xN.ERROR_BLACK="alert_circle",xN.ERROR_OUTLINE="alert_circle",xN.ERROR_WHITE="alert_circle",xN.EXIT_APP="arrow_in",xN.EXIT_TO_APP="arrow_in",xN.EXPAND="chevron_down",xN.EXPAND_ALL="chevron_expand",xN.EXPAND_CAIRO="chevron_down",xN.EXPAND_LESS="chevron_up",xN.EXPAND_MORE="chevron_down",xN.EXPLORE="compass",xN.EXPLORE_DESTINATION="compass",xN.EXTERNAL_LINK="arrow_up_right",xN.EYE_OFF=
"eye_slash",xN.FAB_UPLOAD="upload",xN.FACE_HAPPY_OUTLINE="face_happy",xN.FACE_MEH="face_neutral",xN.FACT_CHECK="text_page_check",xN.FASHION_LOGO="fashion",xN.FASHION_LOGO_CAIRO="fashion",xN.FAVORITE="thumb_up",xN.FEEDBACK="alert_bubble",xN.FEEDBACK_CAIRO="alert_bubble",xN.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",xN.FILL_ARROW_SOLID_UP_16="arrow_solid_up",xN.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",xN.FLAG_CAIRO="flag",xN.FLASH_OFF="flash_slash",xN.FLASH_ON="flash",xN.FULL_HEART="heart",xN.GAMING_LOGO=
"gaming",xN.GAMING_LOGO_CAIRO="gaming",xN.GO_TO_PAGE="arrow_right",xN.GROUPS="person3",xN.HAND_SWIPE_LEFT="gesture_swipe_left",xN.HAND_SWIPE_RIGHT="gesture_swipe_right",xN.HAPPY="face_happy",xN.HEALTH_AND_SAFETY="shield_health",xN.HEART_BOX="heart_cube",xN.HELP="help_circle",xN.HELP_CAIRO="help_circle",xN.HELP_OUTLINE="help_circle",xN.HIDE="circle_slash",xN.INCOGNITO_CAIRO="incognito",xN.INFINITY_ICON="infinity",xN.INFO="info_circle",xN.INFO_OUTLINE="info_circle",xN.INSERT_CHART_OUTLINED="chart_bar_square",
xN.INSERT_PHOTO="image",xN.KEEP="pin",xN.KEEP_OFF="pin_slash",xN.KEYBOARD="keyboard",xN.KEYBOARD_ARROW_DOWN="chevron_down",xN.KEYBOARD_ARROW_UP="chevron_up",xN.KIDS_BLOCK="circle_slash",xN.LANGUAGE="globe",xN.LAUNCH="arrow_up_right",xN.LEARNING="lightbulb",xN.LEARNING_CAIRO="lightbulb",xN.LIBRARY_ADD="bookmark",xN.LIBRARY_IMAGE="image_stack",xN.LIBRARY_MUSIC="audio_square_stack",xN.LIBRARY_OUTLINE="play_square_stack",xN.LIBRARY_REMOVE="bookmark",xN.LIBRARY_SAVED="check_square_stack",xN.LIKES_PLAYLIST=
"thumb_up",xN.LIKES_PLAYLIST_CAIRO="thumb_up",xN.LIKE="thumb_up",xN.LIKE_SELECTED="thumb_up",xN.LIST_QUEUE="queue",xN.LIVE_CAIRO="live",xN.LIVE_UNLISTED="link",xN.LOCATION_ON="location_pin",xN.LOCATION_PIN="location_pin",xN.LOCATION_POINT="location_pin",xN.LOOP="repeat",xN.LOOP_ACTIVE="repeat",xN.LOOP_ONE="repeat1",xN.LOOP_ONE_ACTIVE="repeat1",xN.MEET="google_meet",xN.MEH="face_neutral",xN.MEMBERSHIPS="memberships",xN.MEMBERS_ONLY_MODE_OFF="text_bubble",xN.MENU_FILTER="filter",xN.MESSAGE="text_bubble",
xN.MESSAGE_BUBBLE_GEAR="bubble_gear",xN.MESSAGE_BUBBLE_LEFT="text_bubble",xN.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",xN.MESSAGE_BUBBLE_OVERLAP="bubble_stack",xN.MESSAGE_BUBBLE_QUESTION="help_bubble",xN.MICROPHONE_ON="mic",xN.MONETIZATION_ON="dollar_sign_circle",xN.MONEY_FILL="dollar_sign_rectangle",xN.MONEY_FILL_JPY="yen_sign_rectangle",xN.MONEY_HAND="dollar_sign_circle_hand",xN.MONEY_HEART="dollar_sign_heart",xN.MOON_Z="sleep_timer",xN.MORE_HORIZ="overflow_horizontal",xN.MORE_VERT="overflow_vertical",
xN.MUSIC="audio",xN.MUSIC_CAIRO="audio",xN.MUSIC_EXPLICIT_BADGE="explicit",xN.MUSIC_NEW_RELEASE="audio_badge",xN.MUSIC_NOTE_SYMBOL="audio",xN.MUSIC_SCISSORS="audio_scissors",xN.MUSIC_SHUFFLE="shuffle",xN.MY_CHANNEL="person_circle",xN.MY_LOCATION="location_pin",xN.MY_VIDEOS="video",xN.MY_VIDEOS_CAIRO="video",xN.NEWS_CAIRO="news",xN.NEWS_STORY="news",xN.NEXT="chevron_right",xN.NOTE_ADD="bubble_pencil",xN.NOTIFICATIONS="bell",xN.NOTIFICATIONS_ACTIVE="bell_waves",xN.NOTIFICATIONS_CAIRO="bell",xN.NOTIFICATIONS_DONE_CHECKMARK=
"check",xN.NOTIFICATIONS_INBOX="bell",xN.NOTIFICATIONS_NONE="bell",xN.NOTIFICATIONS_OFF="bell_slash",xN.NOT_INTERESTED="circle_slash",xN.OFFICIAL_ARTIST_BADGE="audio",xN.OFFLINE_CLOUD="cloud_slash",xN.OFFLINE_DOWNLOAD="download",xN.OFFLINE_DOWNLOAD_CAIRO="download",xN.OFFLINE_PAUSE="pause",xN.OPEN_IN_NEW="arrow_up_right",xN.OUTLINE_ADJUST="adjust",xN.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",xN.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",xN.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",xN.OUTLINE_ARROW_SOLID_UP_16=
"arrow_solid_up",xN.OUTLINE_BAG="bag",xN.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",xN.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",xN.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",xN.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",xN.PAID="dollar_sign_circle",xN.PAUSE_OUTLINED="pause",xN.PAYMENT="credit_card",xN.PEOPLE="person_child",xN.PEOPLE_2="person2_rectangle",xN.PEOPLE_GROUP="person3",xN.PEOPLE_NOTE="bubble_asterisk",xN.PERSON_2="person2",xN.PERSON_ACCOUNT="person_square_stack",xN.PERSON_MINUS=
"person_x",xN.PERSON_MUSIC="person_audio",xN.PERSON_RADAR="person_waves",xN.PERSON_RADAR_FILLED="person_waves",xN.PERSON_SETTING="person_gear",xN.PHONE="phone",xN.PHONE_DOWNLOAD="mobile_arrow_down",xN.PICTURE_IN_PICTURE="picture_in_picture",xN.PLAYABLES_LOGO="playables",xN.PLAYABLES_LOGO_CAIRO="playables",xN.PLAYLISTS="playlist",xN.PLAYLISTS_CAIRO="playlist",xN.PLAYLIST_ADD_CHECK="bookmark",xN.PLAY_ALL="play",xN.PLAY_ARROW="play",xN.PLAY_ARROW_CIRCLE="play_circle",xN.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",
xN.PLAY_CIRCLE="play_circle",xN.PLAY_OUTLINED="play_circle",xN.PODCAST_ADD="podcast_add",xN.PODCAST_CHECK="podcast_check",xN.PRIVACY_INFO="shield_x",xN.PRIVACY_PRIVATE="lock",xN.PRIVACY_PUBLIC="globe",xN.PRIVACY_UNLISTED="link",xN.PROMOTE="megaphone",xN.PURCHASES="price_tag",xN.PURCHASE_SUPER_CHAT="super_chat",xN.PURCHASE_SUPER_STICKER="super_sticker",xN.QUESTION_ANSWER="help_bubble",xN.QUESTION_CIRCLE="help_circle",xN.QUEUE_PLAY_LAST="queue_last",xN.QUEUE_PLAY_NEXT="playlist",xN.QUOTATION_MARK="quote",
xN.RADAR_LIVE="live",xN.REMOVE="minus_circle",xN.REMOVE_CIRCLE="minus_circle",xN.REMOVE_CIRCLE_OUTLINE="minus_circle",xN.REMOVE_FROM_HISTORY="minus_circle",xN.REMOVE_FROM_PLAYLIST="minus_circle",xN.REPLAY="arrow_counterclockwise",xN.REPLAY_10="skip10_back",xN.REPLAY_ARROW="replay",xN.REPORT_PROBLEM="alert_triangle",xN.RSS_OFF="rss_slash",xN.SAD="face_sad",xN.SAVE_PLAYLIST="bookmark",xN.SCHEDULE="clock",xN.SCHOOL="graduation_cap",xN.SCREEN_DEFAULT="player_default",xN.SCREEN_FULLSCREEN="player_full_enter",
xN.SCREEN_LIGHT="ambient_mode",xN.SCREEN_ROTATION="rotate_portrait",xN.SCREEN_SWITCH="player_switch",xN.SEARCH_CAIRO="search",xN.SEARCH_HISTORY="history",xN.SELL="price_tag",xN.SETTINGS="gear",xN.SETTINGS_CAIRO="gear",xN.SETTINGS_LIGHT="gear",xN.SETTINGS_MATERIAL="gear",xN.SETTINGS_REMOTE="remote_waves",xN.SHARE="share",xN.SHARE_ARROW="share",xN.SHARE_CAIRO="share",xN.SHIELD="shield_x",xN.SHIELD_OFF="shield_slash",xN.SHIELD_WITH_AVATAR="person_shield",xN.SHOPPING_BAG="bag",xN.SHOPPING_BAG_CAIRO="bag",
xN.SHOPPING_CART="cart",xN.SHORTS_COMMENT="text_bubble",xN.SHORTS_DISLIKE="thumb_down",xN.SHORTS_LIKE="thumb_up",xN.SHORTS_SHARE="share",xN.SKIP_FORWARD_30="skip30_forward",xN.SLASH_CIRCLE_RIGHT="circle_slash",xN.SLOW_MODE_OFF="text_bubble",xN.SOCIAL="person_child",xN.SPARKLE="sparkles",xN.SPARK_IMAGE="image_spark",xN.SPARK_RADAR="spark_waves",xN.SPARK_VIDEO="video_spark",xN.SPEAKER_GROUP="speaker_stack",xN.SPEAKER_OFF="speaker_slash",xN.SPEED_1X="n1x",xN.SPEED_1_POINT_2X="n1point2x",xN.SPEED_1_POINT_5X=
"n1point5x",xN.SPEED_1_POINT_8X="n1point8x",xN.SPEED_2X="n2x",xN.SPONSORSHIP_STAR="memberships",xN.SPORTS="basketball",xN.SPOTLIGHT="spotlight",xN.STAFF_PICK="spotlight",xN.START_DVR="add",xN.STAR_BORDER="star",xN.STAR_HALF="star_half_filled",xN.STAR_SHOOTING="hype",xN.STICKER="sticker",xN.STICKER_EMOTICON="face_happy",xN.STOP_DVR="stop",xN.SUBSCRIBE="youtube",xN.SUBSCRIBE_PLUS="add",xN.SUBSCRIPTION_MANAGER="gear",xN.SUPERSTAR="super_star",xN.SUPERVISOR_ACCOUNT="person_child",xN.SWAP_HORIZ="arrow_swap_horizontal",
xN.SWITCH_ACCOUNTS="person_square_stack",xN.TAB_ACCOUNT="person",xN.TAB_ACTIVITY="bell",xN.TAB_BOOKMARK="bookmark",xN.TAB_EXPLORE="compass",xN.TAB_HOME="home",xN.TAB_HOME_CAIRO="home",xN.TAB_INBOX="mail",xN.TAB_LIKED="thumb_up",xN.TAB_MUSIC_PREMIUM="youtube_music",xN.TAB_SHORTS="shorts",xN.TAB_SHORTS_CAIRO="shorts",xN.TAB_SUBSCRIPTIONS="subscriptions",xN.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",xN.TAB_TRENDING="trending",xN.TARGET="target",xN.TARGET_ADD="target_add",xN.TEMPLATE_ADD="template_add",
xN.TEXT="font",xN.TIMER="stopwatch",xN.TRENDING_CAIRO="trending",xN.TRENDING_UP="arrow_trend_up",xN.TROPHY_CAIRO="trophy",xN.TROPHY_CELEBRATIONS="fireworks",xN.TROPHY_STAR="star_trophy",xN.TUNE="adjust",xN.UNBLOCK_USER="minus_circle",xN.UNFAVORITE="thumb_down",xN.UNLIMITED="youtube",xN.UNPLUGGED_LIVE_GUIDE="live",xN.UNPLUGGED_SPORTS="eye_slash",xN.UPLOADS="play_square_stack",xN.UP_ARROW="arrow_up",xN.VERTICAL_ALIGN_BOTTOM="chevron_down_end",xN.VERTICAL_ALIGN_TOP="chevron_up_end",xN.VERY_HAPPY="face_very_happy",
xN.VERY_SAD="face_very_sad",xN.VIDEOS="play_circle",xN.VIDEO_CALL="video_camera_add",xN.VIDEO_LIBRARY_WHITE="play_square_stack",xN.VIDEO_QUALITY_4K="n4k",xN.VIDEO_QUALITY_8K="n8k",xN.VIDEO_YOUTUBE="youtube",xN.VIEW_LIST_CAIRO="view_list",xN.VIEW_MODULE="view_column3_row2",xN.VISIBILITY="eye",xN.VISIBILITY_OFF="eye_slash",xN.VOLUME_DOWN="volume_min",xN.VOLUME_MUTE="volume_mute",xN.VOLUME_OFF="volume_mute",xN.VOLUME_STABLE="stable_volume",xN.VOLUME_UP="volume_max",xN.WALLPAPER="image",xN.WARNING="alert_triangle",
xN.WATCH_HISTORY="history",xN.WATCH_HISTORY_CAIRO="history",xN.WATCH_LATER="clock",xN.WATCH_LATER_CAIRO="clock",xN.WATCH_RELATED_MIX="mix",xN.WHAT_TO_WATCH="home",xN.YOUTUBE_LINKED_TV="tv_mobile",xN.YOUTUBE_MUSIC_MONOCHROME="youtube_music",xN.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",xN.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",xN.YOUTUBE_SHORTS_ARROW_UP="arrow_up",xN.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",xN.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",xN.YOUTUBE_SHORTS_OUTLINE_24=
"shorts",xN);var p3T={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,8,16],[1,8,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,5,24],
[1,5,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,4,24],[1,4,20],[1,4,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_circle:[[0,9,24],[1,9,16],[1,9,24]],alert_triangle:[[0,8,12],[0,8,24],[1,8,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,36],[1,
1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,7,24],[1,7,24]],arrow_left:[[1,
7,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],arrow_solid_up:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,9,12],[0,9,16],[0,9,24],[1,9,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,1,
24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,8,24],[1,8,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,9,24],[1,9,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,10,
12],[0,10,16],[0,10,24],[1,10,16],[1,10,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,8,18],[1,8,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
6,16,!0],[0,6,18,!0],[0,6,24,!0],[1,6,16,!0],[1,6,18,!0],[1,6,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,8,24],[1,8,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,3,24],[1,3,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,9,24],[1,9,16],[1,9,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,4,16],[0,4,24],[1,4,12],[1,4,16],[1,4,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,10,16],[0,10,24],[1,10,16],[1,10,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,21,12],[0,21,24],[1,21,16],[1,21,24]],dollar_sign_off:[[1,3,24]],download:[[0,10,24],[1,10,16],[1,10,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,5,24],[1,5,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],
face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_unhappy:[[0,8,24],[0,8,36],[1,8,24],[1,8,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,6,24],[1,6,24]],film_strip_add:[[1,2,24]],
filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,3,24],[1,3,24]],
gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,8,24],[1,8,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,3,24]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,
24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,17,13],[0,17,24],[1,17,16],[1,17,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,2,16],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,
1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,9,16],[1,9,18],[1,9,20],[1,9,24]],journey:[[1,1,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],
library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,7,18],[1,7,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],
live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,11,12],[0,11,24],[1,11,12],[1,11,16],[1,11,18],[1,11,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,
3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,8,12],[0,8,16],[0,8,18],[0,8,24],[1,8,24]],mention:[[1,4,16],[1,4,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,
1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,
3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,
2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,5,24],[1,5,32]],overflow_vertical:[[1,11,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,7,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,8,16],[1,
8,18],[1,8,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,6,24]],person_box:[[1,5,24]],person_circle:[[0,9,24],[1,9,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],
person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,2,24],[1,2,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,3,
24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,8,16],[1,8,24],[1,8,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,7,12],[0,7,24],[1,7,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,1,24]],quotation_mark:[[0,
1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,7,12],[0,7,24],
[1,7,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,
1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,11,24],[1,11,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,10,24,!0],[0,10,32,!0],[1,10,16,!0],[1,10,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,
1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,
1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,5,24]],skip_previous:[[0,5,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],
[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,8,12],[0,8,16],[0,8,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],
speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,3,12],[0,3,16],[0,3,18],[0,3,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,3,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,
1,24]],subscriptions:[[0,10,24],[1,10,18],[1,10,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,
1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,21,16],[0,21,24],[0,21,36],[1,21,16],[1,21,24],[1,21,36]],thumb_up:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],[1,19,24],[1,19,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,2,24],[1,2,24]],tic_tac_toe:[[0,
4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,2,24]],trash_can:[[1,9,16],[1,9,18],[1,9,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,
1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,7,12],[0,7,16],[0,7,24],[1,7,16],[1,7,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,8,24],[1,8,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,4,16],[1,4,24]],video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],
volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,2,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,2,24],[1,2,24]],x:[[1,9,18],[1,9,24]],x_cairo:[[1,1,24]],x_circle:[[1,7,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,
6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],
youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],
[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,1,24],[1,1,24]]};var B7E={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,8,24]],add_circle:[[0,5,24],[1,5,24]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,4,24],[1,4,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_bubble:[[1,1,24]],alert_circle:[[0,9,24],[1,9,24]],alert_octagon:[[0,2,24],[1,2,24]],alert_triangle:[[0,8,24],[1,8,24]],ambient_mode:[[1,1,
24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,1,24]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,7,24]],arrow_left:[[1,7,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,3,24],[1,3,24]],
arrow_solid_up:[[0,3,24],[1,3,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,1,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,1,24]],audio:[[0,9,24],[1,9,24]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,
24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,8,24],[1,8,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],
[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_gear:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,9,24],[1,9,24]],camera_audio:[[1,5,24]],camera_flip:[[1,
4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,2,24],[1,2,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,10,24]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,
24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,8,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_right:[[1,6,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,8,24],[1,8,24]],chromecast_mobile:[[1,3,24]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,9,24],[1,9,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,
3,24]],cloud_arrow_up:[[0,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,1,24]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,4,24],[1,4,24]],csv:[[0,2,
24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,10,24],[1,10,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,
1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[1,21,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],download:[[1,10,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,5,24],[1,5,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,9,24],[1,9,24]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,2,24],[1,2,24]],face_paintbrush:[[1,
2,24]],face_sad:[[0,9,24],[1,9,24]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,8,24],[1,8,24]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,9,24],[1,9,24]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,6,24],[1,6,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,
8,24],[1,8,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_underline:[[1,
1,24]],football:[[0,3,24],[1,3,24]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,8,24],[1,8,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,3,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,
2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,2,24],[1,2,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,17,24],[1,17,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,1,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,2,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,9,24]],info_circle_spark:[[1,1,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,
2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],
link:[[1,7,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,11,24],[1,11,24]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,8,24],[1,8,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_slash:[[1,
1,24]],minus:[[1,1,24]],minus_circle:[[0,2,24],[1,2,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,2,24],[1,2,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,
1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,5,24]],overflow_vertical:[[1,11,24]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,7,24],[1,7,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,
8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,1,24],[1,1,24]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[1,9,24]],person_circle_slash:[[1,2,24]],person_gear:[[1,1,24]],person_shield:[[1,7,24]],person_square:[[0,1,24],[1,1,24]],person_square_stack:[[0,1,24],[1,1,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,
1,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,2,24],[1,2,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,1,24],[1,1,24]],play_circle:[[0,1,24],[1,1,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,1,24],[1,1,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,
1,24]],player_full_enter_portrait:[[1,1,24]],player_full_exit:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,1,24]],playlist_add:[[1,1,24]],playlist_audio:[[0,1,24],[1,1,24]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,1,24]],playlist_x:[[1,1,24]],podcast:[[0,3,24],[1,3,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,
2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,8,24]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,7,24],[1,7,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,
24]],repeat:[[0,1,24],[1,1,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,1,24]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,1,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,7,24],[1,7,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,10,24],[1,10,24]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,
1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[1,10,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,2,24],[1,2,24]],shorts:[[0,2,24],[1,2,24]],shorts_empty:[[0,2,24],[1,2,24]],shuffle:[[0,2,24],[1,2,24]],skip10_back:[[1,1,24]],skip10_forward:[[1,
1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,1,24]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,5,24],[1,5,24]],skip_previous:[[0,5,24],[1,5,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,1,
24]],spacebar:[[1,2,24]],spark:[[0,8,24],[1,8,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],
square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,3,24],[1,3,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,3,24],[1,3,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,10,24],[1,10,24]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],
super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,2,24],[1,2,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,
24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,21,24],[1,21,24]],thumb_up:[[0,19,24],[1,19,24]],thumb_up_down:[[0,2,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,2,24]],trash_can:[[0,9,24],[1,9,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,
3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,7,24],[1,7,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[1,8,24]],video_camera_add:[[1,2,24]],video_link:[[1,4,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,
1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,2,24]],waveform_spark:[[1,1,24]],wrench:[[1,2,24]],x:[[1,9,24]],x_circle:[[0,7,24],[1,7,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,
7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var S9E={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",PLAYER_FULL_ENTER_DELHI_PLAYER:"PLAYER_FULL_ENTER",PLAYER_FULL_EXIT_DELHI_PLAYER:"PLAYER_FULL_EXIT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},
I8=function(K){this.iconUrlProvider=K};
I8.prototype.resolveIcon=function(K,X){var F=S9E[K.iconName.toUpperCase()];F&&(K.iconName=F);var P=K.iconName;P=P.replace(/-/g,"_");K=Object.assign({},K,{iconName:this.mapIconTypeToStandardName(P,!!F)||P.toLowerCase()});if(_.S("enable_web_delhi_icons")||F){var H;return peP(B7E,K,((H=this.iconUrlProvider)==null?void 0:H.getYtStandardUrl)||oDn,X)}var f;return peP(p3T,K,((f=this.iconUrlProvider)==null?void 0:f.getYtStandardUrl)||SFl,X)};
I8.prototype.mapIconTypeToStandardName=function(K,X){return _.S("enable_web_delhi_icons")||X?cGT[K.toUpperCase()]:nVL[K.toUpperCase()]};
I8[$0]=[_.Nu(Y9t)];var oVC=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),LeU=function(K){this.urlProvider=this.iconUrlProvider=K};
_.r(LeU,I8);
LeU.prototype.resolveIcon=function(K,X){K.iconName==="youtube_logo"&&(K.iconName="yt-logo-updated");if(K.iconName==="youtube_premium_logo"||K.iconName==="youtube_red_logo")K.iconName="yt-logo-red-updated";var F=Object.assign({},K);K.iconName==="menu"&&(_.S("enable_web_delhi_icons")||(F.iconName="bars_3"),F.iconStyle="youtube_outline");K.iconSetName==="socialNetworksRound"&&(K.iconName==="mail"&&(F.iconName="email"),K.iconName==="embed"&&(F.iconSize=60));K.iconName==="more"&&(F.iconName="overflow_horizontal");
K.iconName==="fullscreen"&&(F.iconName="screen_full");K.iconName==="premium_standalone"&&(F.iconName="premium_standalone_cairo");_.S("enable_connect_icon_update_web")&&K.iconName==="account_linked"&&(F.iconName="circles_overlap_check",F.iconStyle="youtube_fill");_.S("enable_connect_icon_update_web")&&K.iconName==="account_unlinked"&&(F.iconName="circles_overlap",F.iconStyle="youtube_outline");oVC.has(K.iconName)&&(F.iconStyle="youtube_fill");_.S("enable_web_delhi_icons")&&K.iconName==="playlist_add"&&
(F.iconName="bookmark");K=Object.assign({},F,{iconName:(I8.prototype.mapIconTypeToStandardName.call(this,F.iconName)||F.iconName).toLowerCase()});var P;return(K=peP(JGu,K,((P=this.urlProvider)==null?void 0:P.getUrl)||LUw,X))?K:I8.prototype.resolveIcon.call(this,F,X)};
LeU[$0]=[_.Nu(Y9t)];_.T7E=1;var kN=function(){};
_.r(kN,wQ);kN.prototype.resolveCommand=function(K){var X,F;return _.q(function(P){X=_.T(K,ERt);if(!X)return P.return();F=Number(X.enableDelayedPacfLoggingTvMs);if(isNaN(F)){var H=Ki();Ict(H,X,0)}else Ict(Ki(),X,F);_.JT(P)})};_.K7=function(){};
_.r(_.K7,wQ);
_.K7.prototype.resolveCommand=function(K,X){var F=this,P,H,f,u,J,Z,M;return _.q(function(n){P=_.T(K,bjL);f=(H=X.form)==null?void 0:H.element;J=(u=f)==null?void 0:u.closest("ytd-enforcement-message-view-model");if(!P||!J)return n.return();F.allowAdsAction||(Z=P.fundingChoiceInstructionPageUrl,F.allowAdsAction=new opU(window,_.jt(Z)));var c=F.allowAdsAction;c.wallElement=J;c.allowAdsPopup.style.setProperty("display","flex","important");var B=c.scrollManager;B.originalBodyOverflow=B.JSC$8010_domHelper.JSC$7337_document_.body.style.overflow;B.JSC$8010_domHelper.JSC$7337_document_.body.style.overflow=
"hidden";c.wallElement.style.setProperty("display","none","important");Uct(c.accessibilityManager,c.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((M=F.allowAdsAction.allowAdsPopup)&&M instanceof HTMLElement)for(c=_.D(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),B=c.next();!B.done;B=c.next()){var L=_.D(B.value);B=L.next().value;L=L.next().value;M.style.setProperty(B,L)}_.JT(n)})};
_.K7.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var X6=function(){};
_.r(X6,wQ);X6.prototype.resolveCommand=function(K){var X;return _.q(function(F){X=_.T(K,HTN);if(!X)return F.return();ojl(K);_.JT(F)})};var F6=function(K){this.JSC$15063_commandHandler=K};
_.r(F6,wQ);
F6.prototype.resolveCommand=function(K){var X=this,F,P,H,f,u,J,Z,M;return _.q(function(n){if(n.nextAddress==1){F=_.T(K,W9N);if((P=F)==null||!P.text||!navigator.clipboard)return n.return();_.s2(n,2);return _.Y(n,navigator.clipboard.writeText(F.text),4)}if(n.nextAddress!=2){if(!F.successActions||F.successActions.length===0)return n.return();H=_.D(F.successActions);for(f=H.next();!f.done;f=H.next())u=f.value,X.JSC$15063_commandHandler.resolveCommand(u);return _.Gy(n,0)}_.qc(n);if(!F.failureActions||F.failureActions.length===
0)return n.return();J=_.D(F.failureActions);for(Z=J.next();!Z.done;Z=J.next())M=Z.value,X.JSC$15063_commandHandler.resolveCommand(M);_.JT(n)})};
F6[$0]=[_.xU];var Pa=function(K){this.JSC$15067_commandHandler=K};
_.r(Pa,wQ);
Pa.prototype.resolveCommand=function(K,X){var F=this,P,H,f,u,J,Z,M,n,c,B;return _.q(function(L){switch(L.nextAddress){case 1:P=_.T(K,JPT);if(!P)return L.return();_.s2(L,2);if(!P.imageBytes&&!P.imageUrl)throw Error("si");if(!P.imageUrl){if(P.imageBytes){f=P.imageBytes;u=f.replace(/-/g,"+").replace(/_/g,"/");var A=A39(u);H=_.Si(A)}L.jumpTo(4);break}return _.Y(L,fetch(P.imageUrl),5);case 5:return J=L.yieldResult,_.Y(L,J.blob(),6);case 6:Z=L.yieldResult,H=_.Si(Z);case 4:c=(M=X)==null?void 0:(n=M.form)==
null?void 0:n.element;B=document.createElement("a");Ao(B,H);c.appendChild(B);B.download="";B.click();c.removeChild(B);URL.revokeObjectURL(_.Qz(H));P.successCommand&&F.JSC$15067_commandHandler.resolveCommand(P.successCommand);_.Gy(L,0);break;case 2:_.qc(L),P.errorCommand&&F.JSC$15067_commandHandler.resolveCommand(P.errorCommand),_.JT(L)}})};
Pa[$0]=[_.xU];var Ha=function(K){this.store=K};
_.r(Ha,wQ);Ha.prototype.resolveCommand=function(K){var X=this,F,P,H;return _.q(function(f){P=(F=_.T(K,_.OMO))==null?void 0:F.entityBatchUpdate;if(!P)return f.jumpTo(0);H=Object.assign({},P,{mutations:[].concat(_.LZ(P.mutations||[]))});return _.Y(f,_.fI(H,X.store),0)})};var rGC=function(K){this.JSC$15074_commandHandler=K;this.feedbackDialogMap=new Map};
rGC.prototype.openDialog=function(K,X){(K=this.feedbackDialogMap.get(K))&&this.JSC$15074_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:K}},X)};
rGC[$0]=[_.xU];var sp=new _.Oh("FEEDBACK_CONTROLLER_TOKEN");var zU=new _.Oh("APP_STORE_TOKEN");var f7=function(K,X){this.store=K;this.controller=X};
_.r(f7,wQ);f7.prototype.resolveCommand=function(K,X){var F=this,P,H,f,u,J,Z,M,n,c,B,L,A,d,R,l,a,E;return _.q(function(V){if(V.nextAddress==1){P=_.T(K,_.Tt);if(f=(H=P)==null?void 0:H.contentId)for(J=_.D(((u=P)==null?void 0:u.actions)||[]),Z=J.next();!Z.done;Z=J.next())M=Z.value,AGL(F,M,f);B=(n=X)==null?void 0:(c=n.form)==null?void 0:c.element;return _.Y(V,_.Kl(B,[K]).catch(function(){}),2)}L=V.yieldResult;
((A=L)==null?0:(d=A.data)==null?0:(R=d.feedbackResponses)==null?0:R.length)&&(a=(l=L.data.feedbackResponses[0])==null?void 0:l.followUpDialog)&&f&&(E=F.controller)!=null&&E.feedbackDialogMap.set(f,a);_.JT(V)})};
var AGL=function(K,X,F){var P=_.T(X,_.PW);if(P){P=_.D(P.commands||[]);for(var H=P.next();!H.done;H=P.next())AGL(K,H.value,F)}_.T(X,_.Y2)&&K.store.dispatch(_.zl("commandEntity",djw(F),{key:F,command:X}));_.T(X,VIO)&&K.store.dispatch(_.zl("commandEntity",djw(F),{key:F,command:X}))};
f7[$0]=[zU,sp];var Dh=function(K){this.controller=K};
_.r(Dh,wQ);Dh.prototype.resolveCommand=function(K,X){var F=this,P,H,f,u;return _.q(function(J){P=_.T(K,_.Uj);f=(H=P)==null?void 0:H.targetId;if(((u=P)==null?void 0:u.signal)!=="TELL_US_WHY"||!f)return J.return();F.controller.openDialog(f,X);_.JT(J)})};
Dh[$0]=[sp];var uI=function(K){this.store=K};
_.r(uI,wQ);uI.prototype.resolveCommand=function(K,X){var F=this,P,H,f,u,J,Z,M;return _.q(function(n){P=_.T(K,UIy);f=(H=P)==null?void 0:H.contentId;Z=(u=X)==null?void 0:(J=u.form)==null?void 0:J.element;M=_.Kl(Z,[K]);f&&F.undo(f);return _.Y(n,M,0)})};
uI.prototype.undo=function(K){this.store.dispatch(_.zl("commandEntity",djw(K),{key:K,command:void 0}))};
uI[$0]=[zU];var q5=function(K){this.JSC$15089_commandHandler=K};
_.r(q5,wQ);q5.prototype.resolveCommand=function(K){var X=this,F,P,H,f,u,J,Z,M;return _.q(function(n){F=_.T(K,sYU);P=F.flowStateKey;H=F.validationFailureCommand;f=F.submitValidFormCommand;u=lb(_.bf,[P||""]);J=_.T(u,fnO);((Z=J)==null?0:Z.isValid)&&f&&X.JSC$15089_commandHandler.resolveCommand(f);((M=J)==null?0:M.isValid)||!H||X.JSC$15089_commandHandler.resolveCommand(H);_.JT(n)})};
q5[$0]=[_.xU];var Js=function(K){this.innertubeTransportService=K};
_.r(Js,wQ);Js.prototype.resolveCommand=function(K,X){var F=this,P;return _.q(function(H){return _.Y(H,_.Rx(F.innertubeTransportService,K,(P=X)==null?void 0:P.form).then(function(f){var u,J;X==null||(u=X.commandController)==null||(J=u.onSuccess)==null||J.call(u,K,f)},function(f){var u,J;
X==null||(u=X.commandController)==null||(J=u.onServerError)==null||J.call(u,K,f)}),0)})};
Js[$0]=[_.L$];var Zh=function(){};
_.r(Zh,wQ);Zh.prototype.resolveCommand=function(K){var X,F,P,H;return _.q(function(f){if(X=_.T(K,_.MgT)){if(F=X.gtmId)P=_.e8("GL",""),_.nE(F,P);(H=X.gtmData)&&_.cU(H)}_.JT(f)})};var Yb=function(K,X){this.innertubeTransportService=K;this.JSC$15100_actionRouter=X};
_.r(Yb,wQ);Yb.prototype.resolveCommand=function(K){var X=this,F,P;return _.q(function(H){F=_.T(K,Y$C);if(!F)return H.return();P=F.command;if(!P)return H.return();X.JSC$15100_actionRouter.triggerAction("yt-insert-rich-section-action",F);return _.Y(H,_.Rx(X.innertubeTransportService,P,{disableCache:!0}),0)})};
Yb[$0]=[_.L$,tp];weP.bind(null,y0);var j4N=weP.bind(null,MCE);WUy.bind(null,y0);var w3V=WUy.bind(null,MCE);e7n.bind(null,y0);var yGC=e7n.bind(null,MCE);var Q_=function(){};
_.r(Q_,wQ);
Q_.prototype.resolveCommand=function(K){var X,F,P,H,f,u,J,Z,M,n;return _.q(function(c){X=_.T(K,OkU);if(!X)return c.return();P=((F=X.operations)==null?void 0:F.operations)||[];H=_.D(P);for(f=H.next();!f.done;f=H.next())if(u=f.value,u.insertItemSectionContent){var B=u.insertItemSectionContent,L=B.contents||[];B.insertByPositionInSection?j4N(B.insertByPositionInSection.sectionTargetId,L,B.insertByPositionInSection.position):B.insertByRelativePositionInSection&&B.insertByRelativePositionInSection.sectionTargetId&&B.insertByRelativePositionInSection.itemTargetId&&
w3V(B.insertByRelativePositionInSection.sectionTargetId,B.insertByRelativePositionInSection.itemTargetId,L,B.insertByRelativePositionInSection.relativePosition)}else u.replaceSection?(B=u.replaceSection,L={},B.replaceByTargetId?L=B.replaceByTargetId:B.replaceByGroupId&&(L={targetId:B.replaceByGroupId.groupId,newContent:B.replaceByGroupId.newContent,undoKey:""}),L.newContent&&p2O(L.targetId,{continuationItems:[L.newContent]})):u.removeItem?(B=u.removeItem,B.removeByTargetId&&B.sectionTargetId&&yGC(B.sectionTargetId,
B.removeByTargetId.targetIds||[])):u.removeSection&&(u.removeSection.removeByTargetId?(J=void 0,WeQ(((J=u.removeSection)==null?void 0:J.removeByTargetId.targetIds)||[])):u.removeSection.removeByGroupId&&(Z=void 0,WeQ(((Z=u.removeSection)==null?void 0:Z.removeByGroupId.groupIds)||[])));n=((M=X.operations)==null?void 0:M.scrollConfig)||{};dHO(n);_.JT(c)})};
var WeQ=function(K){K=_.D(K);for(var X=K.next();!X.done;X=K.next())p2O(X.value,{continuationItems:[]})},dHO=function(K){if(K.scrollToItem){var X=K.scrollToItem.item||{},F=X.itemTargetId;
X=X.sectionTargetId;if(F&&X){var P=document.querySelector("[data-target-id="+X+"]"),H=P==null?void 0:P.querySelector("[data-target-id="+F+"]");P&&H&&setTimeout(function(){var f=H.offsetTop-P.offsetTop,u;if(((u=K.scrollToItem)==null?void 0:u.scrollPosition)==="SCROLL_POSITION_CENTER")f-=P.offsetHeight/2,f+=H.offsetHeight/2;else{var J;((J=K.scrollToItem)==null?void 0:J.scrollPosition)==="SCROLL_POSITION_END"&&(f-=P.offsetHeight,f+=H.offsetHeight)}P.scroll({top:f,behavior:"smooth"})},100)}}};var M5=new _.Oh("CLIENT_NAME_TOKEN");var egQ=new _.Oh("DEFAULT_STORE_EXPIRATION_TOKEN");var CPl=new _.Oh("CLIENT_LOCATION_SERVICE_TOKEN");var n7=function(K,X,F){this.clientName=K||_.e8("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=X||_.BI.getInstance();this.JSC$15128_commandHandler=F||_.Hn.instance};
_.r(n7,wQ);n7.prototype.resolveCommand=function(K){var X=this,F,P;return _.q(function(H){P=(F=_.T(K,InC))==null?void 0:F.onComplete;X.clientLocationService.clearLocationPlayabilityToken(X.clientName);P&&X.JSC$15128_commandHandler.resolveCommand(P);_.JT(H)})};
n7[$0]=[M5,CPl,_.xU];var ca=function(K){this.innertubeTransportService=K};
_.r(ca,wQ);ca.prototype.resolveCommand=function(K,X){var F=this,P,H,f,u;return _.q(function(J){f=(P=X)==null?void 0:(H=P.form)==null?void 0:H.element;return _.Y(J,_.Rx(F.innertubeTransportService,K,(u=X)==null?void 0:u.form).then(function(Z){jVl(f,new CustomEvent("yt-service-request-completed"),{data:Z},_.e8("openPopupConfig"))}),0)})};
ca[$0]=[_.L$];var p7=function(){};
_.r(p7,wQ);p7.prototype.resolveCommand=function(K){var X,F;return _.q(function(P){X=_.T(K,JIE);F=document.querySelector("mini-app-container-view-model");if(!X||!F)return P.return();X.isPlaying?F.dispatchEvent(new Event("play")):F.dispatchEvent(new Event("pause"));_.JT(P)})};var Ba=function(){};
_.r(Ba,wQ);Ba.prototype.resolveCommand=function(K){var X,F,P,H,f,u,J;return _.q(function(Z){X=_.T(K,u5W);if((F=X)==null||!F.paramKeys)return Z.return();P=X.paramKeys;H=_.az(window.location.href);f=_.D(P);for(u=f.next();!u.done;u=f.next())J=u.value,H.JSC$8042_queryData_.remove(J);window.history.replaceState(window.history.state,document.title,H.toString());_.JT(Z)})};var RgU=function(){this.dropdownMap=new Map};_.UHT=new _.Oh("DROPDOWN_CONTROLLER_TOKEN");var SH=function(K){this.controller=K};
_.r(SH,wQ);SH.prototype.resolveCommand=function(K){var X=this,F,P,H,f;return _.q(function(u){F=_.T(K,OTE);if(!F)return u.return();P=F;H=P.dropdownId;f=P.selectedOptionIndex;if(H===void 0||f===void 0)return u.return();var J=X.controller.dropdownMap.get(H);J&&J(f);_.JT(u)})};
SH[$0]=[_.UHT];var oV=function(K){this.controller=K};
_.r(oV,wQ);oV.prototype.resolveCommand=function(K){var X=this,F;return _.q(function(P){return(F=_.T(K,zht))?_.Y(P,X.controller.closeDialog(),0):P.return()})};
oV[$0]=[_.BR];var L7=function(K){this.controller=K};
_.r(L7,wQ);L7.prototype.resolveCommand=function(K){var X=this,F,P;return _.q(function(H){F=_.T(K,$6L);if(!F)return H.return();var f,u=F.panelIdentifier||((f=F.identifier)==null?void 0:f.tag);if(!u)throw Error("ti");return(P=u)?_.Y(H,X.controller.hidePanel(P),0):H.jumpTo(0)})};
L7[$0]=[_.cR];var TU=function(K,X){this.innertubeTransportService=K;this.controller=X};
_.r(TU,wQ);TU.prototype.resolveCommand=function(K){var X=this,F,P,H,f;return _.q(function(u){if(u.nextAddress==1)return F=_.T(K,OuL),(P=F)!=null&&P.panelId?_.Y(u,X.controller.getReloadContinuation(F.panelId),2):u.return();if(u.nextAddress!=3)return(H=u.yieldResult)?_.Y(u,_.Rx(X.innertubeTransportService,K,{continuation:H}),3):u.return();f=u.yieldResult;return _.Y(u,X.controller.updatePanel(F.panelId,f.content,!1),0)})};
TU[$0]=[_.L$,_.cR];var rD=function(K,X,F){this.innertubeTransportService=K;this.JSC$15164_screenManager=X;this.JSC$15164_commandHandler=F};
_.r(rD,wQ);
rD.prototype.resolveCommand=function(K){var X=this,F,P,H,f,u,J;return _.q(function(Z){if(Z.nextAddress==1){F=_.T(K,_.R0V);if(!F)return Z.return();if(F.commands)for(P=_.D(F.commands),H=P.next();!H.done;H=P.next())f=H.value,X.JSC$15164_commandHandler.resolveCommand(f,{disableClickTracking:!0});u=_.QB(K.clickTrackingParams);_.IZ(X.JSC$15164_screenManager,21760,u,{layer:7,parentLayer:0});return _.Y(Z,_.Rx(X.innertubeTransportService,K),2)}J=Z.yieldResult;if(!J)return Z.return();X.JSC$15164_screenManager.graftServerVe(J.trackingParams,u,
7);_.JT(Z)})};
rD[$0]=[_.L$,_.n3,_.xU];var As=new _.Oh("PANEL_LOADING_STRATEGY_TOKEN");var jH=function(K,X){this.controller=K;this.panelLoadingStrategy=X};
_.r(jH,wQ);
jH.prototype.resolveCommand=function(K,X){var F=this,P,H,f;return _.q(function(u){P=_.T(K,APC);if((H=P)==null||!H.panelLoadingStrategy)return u.return();f=function(J){var Z,M,n,c,B,L,A,d,R;return _.q(function(l){M=_.T((Z=J.dialogViewModel)==null?void 0:Z.header,VLT);n={viewModel:J.dialogViewModel};c={};if(A=_.S("web_enable_dialog_header_label")?(B=M)==null?void 0:(L=B.headline)==null?void 0:L.content:void 0)c.ariaLabel=A;P.dismissOnBackgroundTap===!1&&(c.isModal=!0);return J.dialogViewModel?_.Y(l,
F.controller.openDialog(n,(d=X)==null?void 0:(R=d.form)==null?void 0:R.element,c),0):l.return()})};
return _.Y(u,F.panelLoadingStrategy.execute({command:K,data:P.panelLoadingStrategy,renderFn:f,createScreenConfig:{layer:4}}),0)})};
jH[$0]=[_.BR,As];var wD=function(K,X,F){this.innertubeTransportService=K;this.controller=X;this.JSC$15184_screenManager=F};
_.r(wD,wQ);
wD.prototype.resolveCommand=function(K,X){var F=this,P,H,f,u,J,Z,M,n,c,B,L,A;return _.q(function(d){switch(d.nextAddress){case 1:P=_.T(K,_.Lk);if(!P)return d.return();var R,l=P.panelIdentifier||((R=P.identifier)==null?void 0:R.tag);if(!l)throw Error("ti");H=l;return _.Y(d,F.controller.isVisible(H,!0),2);case 2:if((f=d.yieldResult)&&P.blockIfPanelOpen)return d.return();Z=(J=(u=F.controller).getPanelContent)==null?void 0:J.call(u,H);if(!(R=Z))if(P){var a;R=((a=P.globalConfiguration)==null?void 0:a.initialState)||
P.engagementPanel;if(a=!R)a=!!(P==null?0:(l=P.engagementPanelPresentationConfigs)==null?0:l.engagementPanelPopupPresentationConfig);a&&(R=_.R7P(P.panelIdentifier,P.identifier))}else R=void 0;M=R;n=P.engagementPanelPresentationConfigs;c=P.engagementPanelExtras;return _.Y(d,F.controller.showPanel(H,M,n,c,(B=X)==null?void 0:(L=B.form)==null?void 0:L.element),3);case 3:if(!P.globalConfiguration){d.jumpTo(0);break}_.IZ(F.JSC$15184_screenManager,32633);return _.Y(d,_.Rx(F.innertubeTransportService,K),5);
case 5:return A=d.yieldResult,F.JSC$15184_screenManager.graftServerVe(A.trackingParams),_.Y(d,F.controller.updatePanel(H,A.content,!0,c,void 0,A.updatePanelContinuationData),0)}})};
wD[$0]=[_.L$,_.cR,_.n3];var y_=function(K,X){this.controller=K;this.panelLoadingStrategy=X};
_.r(y_,wQ);y_.prototype.resolveCommand=function(K,X){var F=this,P,H,f,u,J,Z;return _.q(function(M){P=_.T(K,_.fS);if((H=P)==null||!H.panelLoadingStrategy)return M.return();J=hgt(F.controller,(f=X)==null?void 0:(u=f.form)==null?void 0:u.element);Z=function(n){return _.q(function(c){return n.sheetViewModel?_.Y(c,F.controller.openSheet({viewModel:n.sheetViewModel},J),0):c.return()})};
return _.Y(M,F.panelLoadingStrategy.execute({command:K,data:P.panelLoadingStrategy,renderFn:Z,createScreenConfig:{layer:0}}),0)})};
y_[$0]=[_.pf,As];var Wa=function(K,X){this.controller=K;this.JSC$15192_commandHandler=X};
_.r(Wa,wQ);Wa.prototype.resolveCommand=function(K,X){var F=this,P,H,f;return _.q(function(u){if(u.nextAddress==1){P=_.T(K,buO);var J=_.T(P.showCommand,_.Lk),Z,M,n=(M=J==null?void 0:J.panelIdentifier)!=null?M:J==null?void 0:(Z=J.identifier)==null?void 0:Z.tag;if(!n)throw Error("ui");H=n;return _.Y(u,F.controller.isVisible(H),2)}return(f=u.yieldResult)?_.Y(u,F.controller.hidePanel(H),0):_.Y(u,F.JSC$15192_commandHandler.resolveCommand(P.showCommand,X),0)})};
Wa[$0]=[_.cR,_.xU];var dD=function(K,X,F){this.innertubeTransportService=K;this.controller=X;this.JSC$15195_screenManager=F};
_.r(dD,wQ);
dD.prototype.resolveCommand=function(K){var X=this,F,P,H,f,u,J,Z,M,n,c,B,L,A,d,R,l,a,E,V,x,N,Dl;return _.q(function(Mq){switch(Mq.nextAddress){case 1:return P=F=_.T(K,CRt),H=P.targetPanelIdentifier,f=P.contentSourcePanelIdentifier,u=P.globalConfiguration,((J=H)==null?0:J.tag)&&((Z=f)==null?0:Z.tag)?u?_.Y(Mq,X.controller.showPanel(H.tag,_.R7P(H.tag,H),void 0,void 0,void 0),5):_.Y(Mq,(B=(c=X.controller).getPanel)==null?void 0:B.call(c,f.tag),4):Mq.return();case 4:L=Mq.yieldResult;M=(A=L)==null?void 0:
(R=(d=A).getPanelContent)==null?void 0:R.call(d);Mq.jumpTo(3);break;case 5:return _.Y(Mq,_.Rx(X.innertubeTransportService,K),6);case 6:l=Mq.yieldResult,((a=l)==null?0:a.trackingParams)&&X.JSC$15195_screenManager.graftServerVe(l.trackingParams),M=(E=l)==null?void 0:E.content,n=(V=l)==null?void 0:V.updatePanelContinuationData;case 3:if(N=(x=M)==null?void 0:x.engagementPanelSectionListRenderer)return _.Y(Mq,X.controller.showPanel(H.tag,void 0,void 0,void 0,void 0,{content:N.content,secondaryHeaderContent:(Dl=
N.header)!=null?Dl:{},targetId:N.targetId},n),0);Mq.jumpTo(0)}})};
dD[$0]=[_.L$,_.cR,_.n3];var eH=function(K,X){this.JSC$15204_commandHandler=K;this.store=X};
_.r(eH,wQ);
eH.prototype.resolveCommand=function(K){var X=this,F,P,H,f,u,J;return _.q(function(Z){if(Z.nextAddress==1)return(F=_.T(K,HuE))?_.Y(Z,_.xf(),2):Z.return();P=Z.yieldResult;if(!P)return Z.return();var M=P,n=X.store,c=(H=F)==null?void 0:H.languageCode,B=(f=F)==null?void 0:f.isAutoTranslated;if(M.getVideoData&&_.h7d(M).length){c=G09(M,c,B);var L=_.XF("/youtube/app/player_caption_language_entity_key","stringEntity",2),A;n.dispatch(_.zl("stringEntity",L,{key:L,value:B?(c==null?void 0:(A=c.translationLanguage)==null?
void 0:A.languageName)||"":(c==null?void 0:c.displayName)||(c==null?void 0:c.languageName)||""}));c?M.setOption("captions","track",c):(M.setOption("captions","stickyLoading",{}),M.setOption("captions","track",{}))}u=P.isSubtitlesOn()?_.uY("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.uY("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");J=_.Oz(u);X.JSC$15204_commandHandler.resolveCommand(J);_.JT(Z)})};
eH[$0]=[_.xU,FJ];var RV=function(K,X){this.shortsPlayerPromise=K;this.JSC$15208_commandHandler=X};
_.r(RV,wQ);
RV.prototype.resolveCommand=function(K){var X=this,F,P,H,f,u,J,Z,M;return _.q(function(n){if(n.nextAddress==1)return(F=_.T(K,ShU))?_.Y(n,X.shortsPlayerPromise,2):n.return();P=n.yieldResult;var c=lzn(P);c!=null&&c.length||(P.loadModule("captions"),c=lzn(P));H=c;if((f=H)==null||!f.length)return u=_.uY("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),J=_.Oz(u),X.JSC$15208_commandHandler.resolveCommand(J),n.return();P.toggleSubtitles();Z=P.isSubtitlesOn()?_.uY("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.uY("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");M=_.Oz(Z);X.JSC$15208_commandHandler.resolveCommand(M);_.JT(n)})};
RV[$0]=[_.sWE,_.xU];var Up=function(K){this.JSC$15211_playerPromise=K};
_.r(Up,wQ);Up.prototype.resolveCommand=function(K){var X=this,F,P,H,f;return _.q(function(u){if(u.nextAddress==1)return(F=_.T(K,gvZ))?_.Y(u,X.JSC$15211_playerPromise,2):u.return();P=u.yieldResult;H=P.getVideoData().video_id;F.videoId===H&&(f=Number(F.offsetFromVideoStartMilliseconds),f>=0&&P.seekTo(f/1E3));_.JT(u)})};
Up[$0]=[_.bC];var mHQ=_.XF("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),hs=function(K){this.store=K};
_.r(hs,wQ);
var GdN=function(K){var X,F,P,H;return _.q(function(f){if(f.nextAddress==1)return X=_.e8("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,F=_.e8("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,P=X||F,K.mainAppPlayer=new aW(P),_.Y(f,K.mainAppPlayer.api,2);H=f.yieldResult;H.addEventListener("onStateChange",K.JSC$15215_playerStateChangeListener.bind(K));document.addEventListener("yt-page-data-updated",K.pauseOnNavigation.bind(K));window.addEventListener("state-navigatestart",
K.pauseOnNavigation.bind(K));_.JT(f)})};
hs.prototype.JSC$15215_playerStateChangeListener=function(K){switch(K){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"}l$U(this)};
var l$U=function(K){K.store.dispatch(_.zl("sfvAudioItemCurrentlyPlayingEntity",mHQ,{key:mHQ,externalVideoId:K.externalVideoId,sfvAudioItemPlaybackState:K.playbackState,nowPlayingEntityValue:K.nowPlayingEntityValue}))};
hs.prototype.pauseOnNavigation=function(){var K=this,X,F,P,H;return _.q(function(f){if(f.nextAddress==1){if(!K.mainAppPlayer){var u=new _.nG("Error: mainAppPlayer is unavailable",K.mainAppPlayer);_.jF(u);return f.return()}return _.Y(f,K.mainAppPlayer.api,2)}X=f.yieldResult;P=(F=X)==null?void 0:F.getPlayerState();P!==1||(H=X)!=null&&H.pauseVideo();_.JT(f)})};
hs.prototype.playVideo=function(K,X,F){var P=this,H,f;return _.q(function(u){if(u.nextAddress==1)return _.Y(u,(H=P.mainAppPlayer)==null?void 0:H.api,2);f=u.yieldResult;if(!P.mainAppPlayer||!f){var J=new _.nG("Error: mainAppPlayer is unavailable",P.mainAppPlayer);_.jF(J);return u.return()}return _.Y(u,P.mainAppPlayer.loadVideoWithPlayerVars({videoId:P.externalVideoId,audio_only:"1",start:K/1E3,end:K/1E3+X,player_params:F}),0)})};
hs.prototype.pauseVideo=function(){var K=this,X,F;return _.q(function(P){if(P.nextAddress==1){if(!K.mainAppPlayer){var H=new _.nG("Error: mainAppPlayer is unavailable",K.mainAppPlayer);_.jF(H);return P.return()}return _.Y(P,K.mainAppPlayer.api,2)}X=P.yieldResult;(F=X)==null||F.pauseVideo();_.JT(P)})};
hs.prototype.resolveCommand=function(K){var X=this,F,P,H,f,u,J,Z,M,n,c,B,L,A,d,R,l,a,E,V;return _.q(function(x){if(x.nextAddress==1)return F=_.T(K,nsE),H=(P=F)==null?void 0:P.nowPlayingEntityValue,u=(f=F)==null?void 0:f.externalVideoId,c=Number((n=(J=F)==null?void 0:(Z=J.defaultStartPoints)==null?void 0:(M=Z[0])==null?void 0:M.offsetMs)!=null?n:"0"),l=Number((R=(B=F)==null?void 0:(L=B.defaultStartPoints)==null?void 0:(A=L[0])==null?void 0:(d=A.duration)==null?void 0:d.seconds)!=null?R:"15"),V=(E=
(a=F)==null?void 0:a.playerParams)!=null?E:"",H&&u?X.mainAppPlayer?x.jumpTo(2):_.Y(x,GdN(X),2):x.return();if(x.nextAddress!=6){if(X.nowPlayingEntityValue&&H===X.nowPlayingEntityValue)return X.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.Y(x,X.pauseVideo(),0):_.Y(x,X.playVideo(c,l,V),0);X.externalVideoId=u;X.nowPlayingEntityValue=H;X.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.Y(x,X.playVideo(c,l,V),6)}l$U(X);return x.jumpTo(0)})};
hs[$0]=[FJ];var mO=function(K){this.JSC$15234_commandHandler=K};
_.r(mO,wQ);mO.prototype.resolveCommand=function(K,X){var F=this,P,H,f,u,J;return _.q(function(Z){if(Z.nextAddress==1)return(P=_.T(K,sGt))?_.Y(Z,_.xf(),2):Z.return();H=Z.yieldResult;if(!H)return Z.return();(f=Odl(H))?F.JSC$15234_commandHandler.resolveCommand(f,X):(u=_.uY("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),J=_.Oz(u),F.JSC$15234_commandHandler.resolveCommand(J));_.JT(Z)})};
mO[$0]=[_.xU];var GU=function(K){this.JSC$15237_playerPromise=K};
_.r(GU,wQ);GU.prototype.resolveCommand=function(K){var X=this,F,P,H,f,u;return _.q(function(J){if(J.nextAddress==1){F=_.T(K,EvC);if(!F)return J.return();P=F.overlayRenderer;return P?(H=_.T(P,Hzt))?_.Y(J,X.JSC$15237_playerPromise,3):J.jumpTo(0):J.return()}f=J.yieldResult;f.renderChapterSeekingAnimation(1,_.lj(H.text),(u=H.icon)==null?void 0:u.iconType);_.JT(J)})};
GU[$0]=[_.bC];var lI=function(K){this.store=K};
_.r(lI,wQ);
lI.prototype.resolveCommand=function(K){var X=this,F,P,H;return _.q(function(f){if(f.nextAddress==1){F=_.T(K,fRC);if(!F)return f.return();P="";(H=X.store.getState().collabInviteLink)&&F.id===H.playlistId?P=H.inviteLinkURL:F.shortUrl&&(P=F.shortUrl);return P?_.Y(f,navigator.clipboard.writeText(P),3):f.jumpTo(0)}var u={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.uY("COPY_LINK_SUCCESS_TOAST")}}}}};_.i9().resolve(_.xU).resolveCommand(u);_.JT(f)})};
lI[$0]=[zU];var va=function(K,X){this.innertubeTransportService=K;this.JSC$15247_commandHandler=X};
_.r(va,wQ);va.prototype.resolveCommand=function(K,X){var F=this,P,H,f,u,J,Z,M,n,c,B;return _.q(function(L){if(L.nextAddress==1)return(P=_.T(K,_.WH))?_.Y(L,_.Rx(F.innertubeTransportService,K,(H=X)==null?void 0:H.form),2):L.return();(f=L.yieldResult)&&f.errorMetadata&&(u=f,J=_.Oz(u.error.message),F.JSC$15247_commandHandler.resolveCommand(J));Z=f;if((M=Z)==null?0:M.actions)for(n=_.D(Z.actions),c=n.next();!c.done;c=n.next())B=c.value,F.JSC$15247_commandHandler.resolveCommand(B);_.JT(L)})};
va[$0]=[_.L$,_.xU];var aV=function(){};
_.r(aV,wQ);aV.prototype.resolveCommand=function(K){var X;return _.q(function(F){X=_.T(K,IZE);if(!X)return F.return();(new zpt(X)).show();_.JT(F)})};_.ts=new _.Oh("PLAYLIST_EDIT_CONTROLLER_TOKEN");var $b=function(K,X,F,P){this.store=K;this.innertubeTransportService=X;this.controller=F;this.JSC$15255_commandHandler=P};
_.r($b,wQ);
$b.prototype.resolveCommand=function(K,X){var F=this,P,H,f,u,J,Z,M,n,c,B,L,A,d,R,l,a,E,V,x,N,Dl,Mq,pO,y9,Wy,eP;return _.q(function(gw){if(gw.nextAddress==1){P=_.T(K,_.TI);if(!P)return gw.return();if(P.clientActions){H=_.D(P.clientActions);for(f=H.next();!f.done;f=H.next())u=f.value,F.JSC$15255_commandHandler.resolveCommand(u);var a3,dL=X==null?void 0:(a3=X.form)==null?void 0:a3.element;dL&&_.iX(dL,"yt-dismissible-item-action",P.clientActions)}return _.Y(gw,_.Rx(F.innertubeTransportService,K,(J=X)==
null?void 0:J.form),2)}if(Z=gw.yieldResult)Z.errorMetadata?(M=Z,n=_.Oz(M.error.message),F.JSC$15255_commandHandler.resolveCommand(n),"error"in Z&&((c=X)==null?0:(B=c.commandController)==null?0:B.onServerError)&&((L=X)==null||(A=L.commandController)==null||A.onServerError(K,Z))):(d=X)==null||(R=d.commandController)==null||(a=(l=R).onSuccess)==null||a.call(l,K,Z);E=Z;((V=E)==null?0:V.collaborationInviteLink)&&P.playlistId&&(_.S("web_enable_invite_collaborators_link")||_.S("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
F.store.dispatch(_.iY({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:P.playlistId,inviteLinkUrl:E.collaborationInviteLink}}));((x=E)==null?0:x.redirectEndpoint)&&F.JSC$15255_commandHandler.resolveCommand(E.redirectEndpoint);((N=E)==null?0:(Dl=N.newHeader)==null?0:Dl.playlistHeaderRenderer)?vVC(F.controller,E.newHeader.playlistHeaderRenderer):((Mq=E)==null?0:(pO=Mq.newHeader)==null?0:pO.musicEditablePlaylistDetailHeaderRenderer)&&vVC(F.controller,E.newHeader.musicEditablePlaylistDetailHeaderRenderer);
F.controller.playlistVideoListElement&&((y9=E)==null?0:(Wy=y9.playlistEditResults)==null?0:(eP=Wy[0])==null?0:eP.playlistEditVideoAddedResultData)&&((dL=F.controller.playlistVideoListElement)==null||dL.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:E.playlistEditResults[0].playlistEditVideoAddedResultData})));_.JT(gw)})};
$b[$0]=[zU,_.L$,_.ts,_.xU];var Op=function(K,X){this.controller=K;this.JSC$15265_commandHandler=X};
_.r(Op,wQ);Op.prototype.resolveCommand=function(K,X){var F=this,P,H,f;return _.q(function(u){P=_.T(K,DeE);F.controller.showRefreshPill&&((H=P)==null?0:H.command)&&(F.JSC$15265_commandHandler.resolveCommand((f=P)==null?void 0:f.command,X),F.controller.showRefreshPill=!1);_.JT(u)})};
Op[$0]=[_.xj,_.xU];var V_=function(K,X){this.store=K;this.JSC$15269_commandHandler=X||_.Hn.instance};
_.r(V_,wQ);V_.prototype.resolveCommand=function(K,X){var F=this,P,H,f,u,J,Z,M,n,c,B;return _.q(function(L){P=_.T(K,o_L);H=F.store.getState().radioButtonGroup;if((f=P)==null?0:f.command)F.JSC$15269_commandHandler.resolveCommand((u=P)==null?void 0:u.command,X);else if(((J=P)==null?void 0:J.formId)===H.currentFormId)for(Z=Object.values(H.commandsMap),M=_.D(Z),n=M.next();!n.done;n=M.next()){c=n.value;B=_.w$(c);if(!B)return L.return();F.JSC$15269_commandHandler.resolveCommand(B,X)}_.JT(L)})};
V_[$0]=[zU];var gD=new _.Oh("USER_PREFS");var Ep=function(K){this.JSC$15273_prefCookie=K};
_.r(Ep,wQ);Ep.prototype.resolveCommand=function(K){var X=this,F;return _.q(function(P){(F=_.T(K,VNN))&&typeof F.useListView==="boolean"&&(_.YX(0,155,F.useListView),X.JSC$15273_prefCookie.save());_.JT(P)})};
Ep[$0]=[gD];var bI=function(K){this.JSC$15277_prefCookie=K};
_.r(bI,wQ);bI.prototype.resolveCommand=function(K){var X=this,F,P,H,f,u;return _.q(function(J){F=_.T(K,Kgu);if((P=F)==null||!P.gl)return J.return();H=F.gl;f={persist_gl:"1",gl:H};X.JSC$15277_prefCookie.set("gl",H);X.JSC$15277_prefCookie.save();u=QCV(f);_.Rj(u);_.JT(J)})};
bI[$0]=[gD];var C7=function(K){this.JSC$15281_prefCookie=K};
_.r(C7,wQ);C7.prototype.resolveCommand=function(K){var X=this,F,P;return _.q(function(H){F=_.T(K,qXt);if(!F)return H.return();P=!1;F.flagNum&&typeof F.value==="boolean"?(_.YX(0,F.flagNum,F.value),P=!0):F.key&&typeof F.stringValue==="string"&&(X.JSC$15281_prefCookie.set(F.key,F.stringValue),P=!0);P&&X.JSC$15281_prefCookie.save();_.JT(H)})};
C7[$0]=[gD];var N5=new _.Oh("PREF_STORAGE_PROMISE_TOKEN");var iI=function(K){this.JSC$15285_prefStoragePromise=K};
_.r(iI,wQ);iI.prototype.resolveCommand=function(K){var X=this,F,P;return _.q(function(H){if(H.nextAddress==1)return(F=_.T(K,ZMO))?_.Y(H,X.JSC$15285_prefStoragePromise,2):H.return();P=H.yieldResult;return P===void 0||F.key===void 0||F.value===void 0?H.return():_.Y(H,P.set(F.key,F.value),0)})};
iI[$0]=[N5];var a$V=function(K){this.innertubeTransportService=K};
_.r(a$V,wQ);a$V.prototype.resolveCommand=function(K,X){var F=this,P,H;return _.q(function(f){(P=_.T(K,_.a1U))&&P&&P.isFirstRequest&&(_.rb("search_overview_answer"),_.Ac("so_rq",void 0,"search_overview_answer"));return _.Y(f,_.Rx(F.innertubeTransportService,K,(H=X)==null?void 0:H.form),0)})};
a$V[$0]=[_.L$];var toN=function(){};
_.r(toN,wQ);
toN.prototype.resolveCommand=function(K){var X,F,P,H,f,u,J,Z,M;return _.q(function(n){X=_.T(K,VQN);if((F=X)==null?0:F.sectionIdentifier){if(X.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(H=(P=document.getElementsByTagName(X.sectionIdentifier))==null?void 0:P.item(0))H.scrollIntoView({behavior:"smooth"}),(f=$Dl(H))&&f.focus({preventScroll:!0});return n.return()}u=document.querySelector("[section-identifier="+X.sectionIdentifier+"]");J=document.querySelector("[section-identifier="+X.referenceSectionIdentifier+
"]");if(!u)return n.return();Z=X.verticalScrollOffsetDp?X.verticalScrollOffsetDp:0;J&&(Z-=J.offsetTop);window.scrollTo({top:u.offsetTop+Z,behavior:"smooth"});(M=$Dl(u))&&M.focus({preventScroll:!0})}_.JT(n)})};var xb=function(){};
_.r(xb,wQ);
xb.prototype.resolveCommand=function(K){var X,F,P,H,f,u,J;return _.q(function(Z){if(Z.nextAddress==1){X=_.T(K,ZTU);if(!X||!X.imageBytes||!navigator.clipboard)return Z.return();if(X.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.jF(Error("wi")),Z.return();_.s2(Z,2);P=(F=X)==null?void 0:F.imageBytes;H=P.replace(/-/g,"+").replace(/_/g,"/");f=A39(H);u={};J=[new ClipboardItem((u[f.type]=f,u))];return _.Y(Z,navigator.clipboard.write(J),4)}if(Z.nextAddress!=2)return _.Gy(Z,0);
_.qc(Z);_.JT(Z)})};var IV=function(K,X){this.innertubeTransportService=K;this.JSC$15300_commandHandler=X};
_.r(IV,wQ);IV.prototype.resolveCommand=function(K,X){var F=this,P,H,f,u,J;return _.q(function(Z){if(Z.nextAddress==1)return(P=_.T(K,Y_L))?_.Y(Z,_.Rx(F.innertubeTransportService,K,(H=X)==null?void 0:H.form),2):Z.return();(f=Z.yieldResult)&&f.errorMetadata&&P.onFailureCommand&&F.JSC$15300_commandHandler.resolveCommand(P.onFailureCommand);u=f;((J=u)==null?0:J.shareCommand)&&F.JSC$15300_commandHandler.resolveCommand(u.shareCommand,X);_.JT(Z)})};
IV[$0]=[_.L$,_.xU];var kb=function(){};
_.r(kb,wQ);kb.prototype.resolveCommand=function(K){var X,F;return _.q(function(P){X=_.T(K,ztu);if(!X||!navigator.share)return P.return();F={url:X.url};try{return P.return(navigator.share(F))}catch(H){}_.JT(P)})};var KR=function(){};
_.r(KR,wQ);KR.prototype.resolveCommand=function(){return _.q(function(K){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.JT(K)})};var XD=function(K){this.JSC$15310_navigationConfirmationService=K};
_.r(XD,wQ);XD.prototype.resolveCommand=function(){var K=this;return _.q(function(X){K.JSC$15310_navigationConfirmationService.cancelPendingNavigation();_.JT(X)})};
XD[$0]=[DY];var FD=function(K){this.JSC$15313_screenManager=K};
_.r(FD,wQ);FD.prototype.resolveCommand=function(K,X){var F=this,P,H,f,u,J,Z,M;return _.q(function(n){H=(P=X.form)==null?void 0:P.event;u=(f=X.form)==null?void 0:f.element;if(!H)throw new _.nG("Event not passed in when resolving command");J=_.D(H.composedPath());for(Z=J.next();!Z.done;Z=J.next())if(M=Z.value,M.tagName==="YT-COPY-LINK-RENDERER")return M.copyUrlToClipboard(),u&&_.WO(F.JSC$15313_screenManager,u),n.return();_.JT(n)})};
FD[$0]=[_.n3];var Po=function(){this.JSC$15317_miniAppClientDataProvider=_.i9().resolve(_.dx)};
_.r(Po,wQ);Po.prototype.resolveCommand=function(){var K=this,X,F;return _.q(function(P){if(K.JSC$15317_miniAppClientDataProvider.clientData.has("video_id")){var H=K.JSC$15317_miniAppClientDataProvider,f=H.clientData.get("video_id");f&&H.clientData.delete("video_id");X="https://youtube.com/watch?v="+f;F=ns(X);if(F===void 0)throw Error("xi`"+X);_.ei(window,F)}_.JT(P)})};var Ho=function(){};
_.r(Ho,wQ);Ho.prototype.resolveCommand=function(){return _.q(function(K){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.JT(K)})};var sA=function(){};
_.r(sA,wQ);sA.prototype.resolveCommand=function(){var K;return _.q(function(X){if(X.nextAddress==1)return _.Y(X,_.JmT(window.document.documentElement),2);(K=document.querySelector("mini-app-container-view-model iframe"))&&K.focus();_.JT(X)})};var z7=function(K){this.JSC$15324_navigationConfirmationService=K};
_.r(z7,wQ);
z7.prototype.resolveCommand=function(){var K=this;return _.q(function(X){var F=K.JSC$15324_navigationConfirmationService,P=_.i9().resolve(_.Jk),H;if(((H=F.navigateParams)==null?void 0:H.data)!==void 0){var f;_.KIQ(P,F.navigateParams.endpoint,F.navigateParams.data,(f=F.navigateParams.navigationType)!=null?f:1,F.navigateParams.tempData,F.navigateParams.isMiniplayer,void 0,!0);F.navigateParams=void 0;F.customConfirmationCommand=void 0}else F.navigateParams&&(P.navigate(F.navigateParams.endpoint,F.navigateParams.reload,
F.navigateParams.params,F.navigateParams.tempData,F.navigateParams.requestType,F.navigateParams.createScreenConfig,!0),F.navigateParams=void 0,F.customConfirmationCommand=void 0);_.JT(X)})};
z7[$0]=[DY];var fR=function(){};
_.r(fR,wQ);fR.prototype.resolveCommand=function(){return _.q(function(K){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.JT(K)})};var Dk=function(K){this.JSC$15329_prefStorage=K};
_.r(Dk,wQ);Dk.prototype.resolveCommand=function(){var K=this,X,F;return _.q(function(P){switch(P.nextAddress){case 1:return _.Y(P,K.JSC$15329_prefStorage,2);case 2:return(X=P.yieldResult)?_.Y(P,X.set("sfvle",!1),3):P.return();case 3:return _.Y(P,X.set("sfvles",!0),4);case 4:F=_.ZO(),_.YX(0,203,!1),_.YX(0,204,!0),F.save(),_.JT(P)}})};
Dk[$0]=[N5];var uL=function(K){this.JSC$15332_prefStorage=K};
_.r(uL,wQ);uL.prototype.resolveCommand=function(){var K=this,X,F;return _.q(function(P){switch(P.nextAddress){case 1:return _.Y(P,K.JSC$15332_prefStorage,2);case 2:return(X=P.yieldResult)?_.Y(P,X.set("sfvle",!0),3):P.return();case 3:return _.Y(P,X.set("sfvles",!0),4);case 4:F=_.ZO(),_.YX(0,203,!0),_.YX(0,204,!0),F.save(),_.JT(P)}})};
uL[$0]=[N5];var $HW=new _.Oh("SNACKBAR_CONTROLLER_TOKEN");var qZ=function(K){this.controller=K};
_.r(qZ,wQ);qZ.prototype.resolveCommand=function(K){var X=this,F,P,H;return _.q(function(f){F=_.T(K,jyE);if(!F)return f.return();P=_.T(F.content,vwT);if(!P)return f.return();var u=X.controller,J=P,Z=(H=F.animationStyle)!=null?H:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(u.showSnackbarFn)u.showSnackbarFn({snackbarViewModel:J,animationStyle:Z,durationMs:F.durationSeconds*1E3});else throw Error("fj");_.JT(f)})};
qZ[$0]=[$HW];var JB=function(){};
_.r(JB,wQ);JB.prototype.resolveCommand=function(K){var X;return _.q(function(F){X=_.T(K,Jbu);if(!X||typeof X.key!=="string"||typeof X.value!=="string")return F.return();window.localStorage.setItem(X.key,X.value);_.JT(F)})};var Zk=function(K){this.store=K};
_.r(Zk,wQ);Zk.prototype.resolveCommand=function(K){var X=this,F;return _.q(function(P){F=_.T(K,RuO);if(!F||!F.stepId||!F.token)return P.return();X.store.dispatch(fDZ({stepId:F.stepId,token:F.token,isSelected:!1}));_.JT(P)})};
Zk[$0]=[zU];var YG=function(K,X,F){this.innertubeTransportService=K;this.store=X;this.JSC$15348_screenManager=F};
_.r(YG,wQ);
YG.prototype.resolveCommand=function(K){var X=this,F,P,H,f,u,J,Z,M,n,c,B,L,A,d,R,l,a,E,V,x,N,Dl,Mq;return _.q(function(pO){F=_.T(K,QiC);if(!F||(P=F.stepIds)==null||!P.length)return pO.return();H=X.store.getState().talkToRecs;f=[];u=[];J=_.D(F.stepIds);for(Z=J.next();!Z.done;Z=J.next())for(M=Z.value,n=void 0,(c=(n=H.stepStates[M])==null?void 0:n.userQuery)&&u.push({userQuery:c.userQuery,userQueryToken:c.token}),B=void 0,L=(B=H.stepStates[M])==null?void 0:B.selectionStates,A=_.D(Object.entries(L)),d=
A.next();!d.done;d=A.next())R=d.value,l=_.D(R),a=l.next().value,E=l.next().value,V=a,x=E,x.isSelected&&f.push(V);N={selectedChipTokens:f,userQueries:u,submittedStepIds:F.stepIds};Dl={browseTalk2recsFormData:N};F.browseEndpoint?(Mq=K,_.LB(Mq,_.f$,F.browseEndpoint)):F.command&&(Mq=F.command);return Mq?_.Y(pO,_.Rx(X.innertubeTransportService,Mq,{formData:Dl,disableCache:!0}).then(function(y9){(y9==null?0:y9.trackingParams)&&X.JSC$15348_screenManager.graftServerVe(y9==null?void 0:y9.trackingParams)}),
0):pO.return()})};
YG[$0]=[_.L$,zU,_.n3];var Q7=function(K){this.store=K};
_.r(Q7,wQ);Q7.prototype.resolveCommand=function(K){var X=this,F;return _.q(function(P){F=_.T(K,eud);if(!F||!F.stepId||!F.token)return P.return();X.store.dispatch(fDZ({stepId:F.stepId,token:F.token,isSelected:!0}));_.JT(P)})};
Q7[$0]=[zU];var MZ=function(K){this.store=K};
_.r(MZ,wQ);MZ.prototype.resolveCommand=function(K,X){var F=this,P,H,f,u,J;return _.q(function(Z){P=_.T(K,MNV);if(!P||!P.stepId||!P.userQueryToken)return Z.return();J=(u=(H=X)==null?void 0:(f=H.form)==null?void 0:f.userQuery)!=null?u:"";F.store.dispatch(_.iY({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:P.stepId,userQueryToken:P.userQueryToken,userQuery:J}}));_.JT(Z)})};
MZ[$0]=[zU];_.OcE=new _.Oh("TIMELY_ACTIONS_CONTROLLER_TOKEN");var nR=function(K){this.controller=K};
_.r(nR,wQ);nR.prototype.resolveCommand=function(K){var X=this,F,P,H,f;return _.q(function(u){F=_.T(K,tQt);if(!F)return u.return();P=F;H=P.id;f=P.isVisible;if(H===void 0||f===void 0)return u.return();var J;(J=X.controller.timelyActionsMap.get(H))==null||J(H,f);_.JT(u)})};
nR[$0]=[_.OcE];var Vot=function(){this.timelyActionsMap=new Map};var co=function(K){this.JSC$15375_commandHandler=K};
_.r(co,wQ);co.prototype.resolveCommand=function(K){var X=this,F,P,H,f,u;return _.q(function(J){F=_.T(K,_.Z6);if(!F)return J.return();f=(P=F.item)==null?void 0:(H=P.notificationTextRenderer)==null?void 0:H.successResponseText;if(!f)return J.return();u=_.$x(f);X.JSC$15375_commandHandler.resolveCommand(u);_.JT(J)})};
co[$0]=[_.xU];var pR=function(K,X){this.innertubeTransportService=K;this.JSC$15380_playerApiPromise=X};
_.r(pR,wQ);
pR.prototype.resolveCommand=function(K){var X=this,F,P,H,f,u,J,Z,M,n;return _.q(function(c){if(c.nextAddress==1)return _.Y(c,X.JSC$15380_playerApiPromise,2);F=c.yieldResult;P=F.getOption("captions","track");H=Object.assign({},_.T(K,_.RtL));(u=(f=F.getVideoData())==null?void 0:f.video_id)?H.externalVideoId=u:_.Gr(Error("yi"));if((J=P)==null?0:J.languageCode)H.languageCode=P.languageCode;if((Z=P)==null?0:Z.kind)H.kind=P.kind;if((M=P)==null?0:M.name)H.name=P.name;n=Object.assign({},K,{getTranscriptEndpoint:H});return _.Y(c,
_.Rx(X.innertubeTransportService,n),0)})};
pR[$0]=[_.L$,_.bC];var Bo=function(){};
_.r(Bo,wQ);Bo.prototype.resolveCommand=function(K){var X,F,P,H,f,u,J,Z;return _.q(function(M){X=_.T(K,SXZ);if((F=X)==null||!F.paramKeyValuePairs)return M.return();P=window.location.href;H=_.D(X.paramKeyValuePairs);for(f=H.next();!f.done;f=H.next())u=f.value,u.key&&u.value&&(J={},P=_.$U(P,(J[u.key]=u.value,J)));Z=_.i9().resolve(_.sI);_.HR(Z,P);_.JT(M)})};var S_=function(K,X){this.JSC$15387_commandHandler=K;this.innertubeTransportService=X};
_.r(S_,wQ);
S_.prototype.resolveCommand=function(K,X){var F=this,P,H,f,u,J,Z,M,n,c,B,L,A,d,R,l,a,E;return _.q(function(V){switch(V.nextAddress){case 1:return(f=(P=X)==null?void 0:(H=P.form)==null?void 0:H.element)&&_.hq(f),u=_.ZO().get("hl"),J="",_.s2(V,2),_.Y(V,bd9(u),4);case 4:J=V.yieldResult;_.Gy(V,3);break;case 2:return _.qc(V),f&&_.mm(f),_.jF(Error("Ai"),"ERROR"),V.return();case 3:Z=_.T(K,ZzV);if(!Z)return f&&_.mm(f),V.return();(c=(M=Z.commerceActionConfig)==null?void 0:(n=M.commandLifeCycleConfig)==null?
void 0:n.onStartCommand)&&F.JSC$15387_commandHandler.resolveCommand(c);return _.Y(V,_.Rx(F.innertubeTransportService,K,{client_data:{paymentsClientToken:{token:J}}}),5);case 5:(B=V.yieldResult)?(f&&_.mm(f),((R=B)==null?0:R.command)&&F.JSC$15387_commandHandler.resolveCommand(B.command),(E=(l=Z.commerceActionConfig)==null?void 0:(a=l.commandLifeCycleConfig)==null?void 0:a.onSuccessCommand)&&F.JSC$15387_commandHandler.resolveCommand(E)):(f&&_.mm(f),_.jF(Error("Bi")),(d=(L=Z.commerceActionConfig)==null?
void 0:(A=L.commandLifeCycleConfig)==null?void 0:A.onFailureCommand)&&F.JSC$15387_commandHandler.resolveCommand(d)),_.JT(V)}})};
S_[$0]=[_.xU,_.L$];var oM=function(K,X,F){this.store=K;this.JSC$15403_commandHandler=X;this.innertubeTransportService=F};
_.r(oM,wQ);
oM.prototype.resolveCommand=function(K,X){var F=this,P,H,f,u,J,Z,M,n,c;return _.q(function(B){P=_.T(K,YHV);H=P.googlePaymentPayload;P.onStartCommand&&F.JSC$15403_commandHandler.resolveCommand(P.onStartCommand);f=H.encryptedPurchaseParams;u=H.ypcLogWalletAnalyticDataEndpoint;J=P.serializedTransactionFlowLoggingParams;Z=H.serializedPaymentsClientParams;M=P.ypcCujContext;c=idO(F.innertubeTransportService,(n=X)==null?void 0:n.form,f,u,J,Z,M);return B.return(c.then(function(L){CGn(X==null?void 0:X.form,
!1);var A=F.store,d=F.JSC$15403_commandHandler,R=L.integratorData;R==null||R===""||L.error!=null?(String(L.error)==="-1"&&P.onDismissCommand?d.resolveCommand(P.onDismissCommand):String(L.error)!=="-1"&&P.onFailureCommand&&d.resolveCommand(P.onFailureCommand),String(L.error)!=="-1"&&String(L.error)!=="132"&&_.jF(Error("Ci"),"ERROR")):(P.googlePaymentEntityKey&&A.dispatch(_.zl("commerceAcquisitionClientPayloadEntity",P.googlePaymentEntityKey,{key:P.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:R,
fundsGuaranteeCallbackClientData:L.integratorClientCallbackData}}})),P.onSuccessCommand&&d.resolveCommand(P.onSuccessCommand));_.F0()},function(L){CGn(X==null?void 0:X.form,!1);
_.jF(L,"ERROR");P.onFailureCommand&&F.JSC$15403_commandHandler.resolveCommand(P.onFailureCommand)}))})};
oM[$0]=[FJ,_.xU,_.L$];var LR=function(K,X){this.JSC$15407_commandHandler=K;this.purchaseManager=X};
_.r(LR,wQ);
LR.prototype.resolveCommand=function(K){var X=this,F,P,H,f,u,J,Z,M,n;return _.q(function(c){F=_.T(K,QZL);((P=F)==null?0:(H=P.commandLifeCycleConfig)==null?0:H.onStartCommand)&&X.JSC$15407_commandHandler.resolveCommand(F.commandLifeCycleConfig.onStartCommand);if(!((f=F)==null?0:(u=f.googlePaymentPurchaseManagerPayload)==null?0:u.securePayloadBytes))return _.jF(Error("Di"),"ERROR"),c.return();J=RFT(_.Jt(F.googlePaymentPurchaseManagerPayload.securePayloadBytes));Z=_.ZO().get("hl");M=_.Ue();xGO(J.serialize(),
Z,function(B){M.resolve(B)},function(B){M.reject(B)},M.resolve);
n=M.promise;return c.return(n.then(function(B){if(B)if(B==null?0:B.errorCode){_.jF(Error("Ei`"+B.errorCode),"ERROR");var L,A;((L=F)==null?0:(A=L.commandLifeCycleConfig)==null?0:A.onFailureCommand)&&X.JSC$15407_commandHandler.resolveCommand(F.commandLifeCycleConfig.onFailureCommand)}else if(B==null?0:B.isCancelled){var d,R;((d=F)==null?0:(R=d.commandLifeCycleConfig)==null?0:R.onCancelCommand)&&X.JSC$15407_commandHandler.resolveCommand(F.commandLifeCycleConfig.onCancelCommand)}else{var l,a;((l=F)==
null?0:(a=l.commandLifeCycleConfig)==null?0:a.onSuccessCommand)&&X.JSC$15407_commandHandler.resolveCommand(F.commandLifeCycleConfig.onSuccessCommand)}},function(B){_.jF(B,"ERROR");
var L,A;((L=F)==null?0:(A=L.commandLifeCycleConfig)==null?0:A.onFailureCommand)&&X.JSC$15407_commandHandler.resolveCommand(F.commandLifeCycleConfig.onFailureCommand)}))})};
LR[$0]=[_.xU,I7C];var gVL=function(K,X){this.JSC$15415_commandHandler=K;this.commandAllowlistOverride=X;var F;this.commandAllowlist=(F=this.commandAllowlistOverride)!=null?F:he};
gVL.prototype.handleResponse=function(K,X,F){var P,H=X==null?void 0:(P=X.config)==null?void 0:P.command;if(!H||this.commandAllowlist.some(function(f){return!!_.T(H,f)})){X=void 0;
F!==void 0&&(X={form:{element:F}});K.onResponseReceivedCommand&&this.JSC$15415_commandHandler.resolveCommand(K.onResponseReceivedCommand,X);K.onResponseReceivedAction&&this.JSC$15415_commandHandler.resolveCommand(K.onResponseReceivedAction,X);K.onResponseReceivedEndpoint&&this.JSC$15415_commandHandler.resolveCommand(K.onResponseReceivedEndpoint,X);K.command&&this.JSC$15415_commandHandler.resolveCommand(K.command,X);if(K.onResponseReceivedCommands)for(F=_.D(K.onResponseReceivedCommands),P=F.next();!P.done;P=
F.next())this.JSC$15415_commandHandler.resolveCommand(P.value,X);if(K.onResponseReceivedActions)for(F=_.D(K.onResponseReceivedActions),P=F.next();!P.done;P=F.next())this.JSC$15415_commandHandler.resolveCommand(P.value,X);if(K.onResponseReceivedEndpoints)for(F=_.D(K.onResponseReceivedEndpoints),P=F.next();!P.done;P=F.next())this.JSC$15415_commandHandler.resolveCommand(P.value,X);if(K.actions)for(K=_.D(K.actions),F=K.next();!F.done;F=K.next())this.JSC$15415_commandHandler.resolveCommand(F.value,X)}};
gVL[$0]=[_.xU,_.Nu(QMP)];var EVE=new _.Oh("INNERTUBE_TOKEN_SERVICE");var bct=new _.Oh("SCHEDULER_TOKEN");var CFN=function(K){this.scheduler=K;K={};this.tokenMap=(K.app={},K.user={},K)};
CFN.prototype.handleResponse=function(K,X){if(!X)throw Error("Fi");var F;if(K=(F=K.responseContext)==null?void 0:F.innertubeTokenJar){if(K.appTokens){var P,H,f;F=(P=X.innerTubeRequest.context)==null?void 0:(H=P.request)==null?void 0:(f=H.innertubeTokenJar)==null?void 0:f.appTokens;N7t(this,K.appTokens,this.tokenMap.app,F)}if(K.userTokens){var u,J,Z;X=(u=X.innerTubeRequest.context)==null?void 0:(J=u.request)==null?void 0:(Z=J.innertubeTokenJar)==null?void 0:Z.userTokens;N7t(this,K.userTokens,this.tokenMap.user,
X)}}};
CFN.prototype.processContext=function(K){K.request||(K.request={});var X=Object.keys(this.tokenMap.app).length,F=Object.keys(this.tokenMap.user).length;if(X||F)K.request.innertubeTokenJar={},X&&(K.request.innertubeTokenJar.appTokens=[].concat(_.LZ(Object.values(this.tokenMap.app).flat()))),F&&(K.request.innertubeTokenJar.userTokens=[].concat(_.LZ(Object.values(this.tokenMap.user).flat())))};
var N7t=function(K,X,F,P){X=_.D(X);for(var H=X.next(),f={};!H.done;f={token$jscomp$137:void 0},H=X.next()){f.token$jscomp$137=H.value;if(f.token$jscomp$137.type===void 0)throw new _.nG("InnerTube token has no type",f.token$jscomp$137);if(f.token$jscomp$137.clearTokens)F[f.token$jscomp$137.type]=[];else if(f.token$jscomp$137.value!==void 0){F[f.token$jscomp$137.type]||(F[f.token$jscomp$137.type]=[]);if(P!==void 0&&P.length){H=_.D(P);for(var u=H.next(),J={};!u.done;J={requestToken:void 0},u=H.next())J.requestToken=
u.value,u=F[f.token$jscomp$137.type].findIndex(function(Z){return function(M){return M===Z.requestToken||(0,_.T8.equals)(M,Z.requestToken)}}(J)),u>-1&&F[f.token$jscomp$137.type].splice(u,1)}F[f.token$jscomp$137.type].push(f.token$jscomp$137);
f.token$jscomp$137.maxAgeSeconds&&Number(f.token$jscomp$137.maxAgeSeconds)>0&&K.scheduler.addLowPriorityJob(function(Z){return function(){var M=F[Z.token$jscomp$137.type].indexOf(Z.token$jscomp$137);M>-1&&F[Z.token$jscomp$137.type].splice(M,1)}}(f),Number(f.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.nG("InnerTube token has no value",f.token$jscomp$137);
}};
CFN[$0]=[bct];var icL=new _.Oh("LOCAL_INNERTUBE_ROUTER_TOKEN"),xHT=new _.Oh("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var T7=function(K){this.serviceMap=K};
T7.prototype.shouldPreferLocalResponse=function(K,X){return(K=I$Z(this,K))?K.shouldPreferLocalResponse(X):!1};
T7.prototype.localInnertubeResponse=function(K,X){var F=this,P;return _.q(function(H){return(P=I$Z(F,K))?H.return(P.localInnertubeResponse(X)):H.return(Promise.reject(Error("Gi")))})};
T7.prototype.canProvideFallbackResponse=function(K,X){return(K=I$Z(this,K))?K.canProvideFallbackResponse(X):!1};
T7.prototype.localFallbackInnertubeResponse=function(K,X){var F=this,P;return _.q(function(H){return(P=I$Z(F,K))?H.return(P.localFallbackInnertubeResponse(X)):H.return(Promise.reject(Error("Gi")))})};
var I$Z=function(K,X){X=_.zy(X);return X?(K=K.serviceMap[X])?K:null:null};
T7[$0]=[xHT];var QP=function(){};
QP.prototype.shouldPreferLocalResponse=function(){return!1};
QP.prototype.localInnertubeResponse=function(){return _.q(function(K){return K.return(Promise.reject(Error("Hi")))})};
QP.prototype.canProvideFallbackResponse=function(){return!0};
QP.prototype.localFallbackInnertubeResponse=function(){var K,X,F;return _.q(function(P){K=nj("CLOSE_POPUP");X={openPopupAction:Izn()};F={actions:[K,X]};return P.return(F)})};var LCl=function(K,X){this.JSC$15465_upliftPromise=K;this.store=X};
_.z=LCl.prototype;_.z.shouldPreferLocalResponse=function(K){var X=K.videoId,F;if(F=X)F=rPP(this.store.getState().entities,K.videoId);return F&&APd(this.store.getState().entities,X)?Ku9(this.store.getState().entities,K.playlistId):!1};
_.z.localInnertubeResponse=function(K){var X=this,F;return _.q(function(P){return(F=X.getPlayerResponse(K))?P.return(Promise.resolve(F)):P.return(Promise.reject(Error("Ii")))})};
_.z.canProvideFallbackResponse=function(K){return!!K.videoId};
_.z.localFallbackInnertubeResponse=function(K){var X=this,F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,X.JSC$15465_upliftPromise,2);F=X.getPlayerResponse(K);var H;F?H=P.return(Promise.resolve(F)):H=Q4(X.store.getState().entities,K.videoId)?P.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.bY(_.uY("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:LVP()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
P.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.bY(_.uY("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:oKq()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return H})};
_.z.getPlayerResponse=function(K){return I_l(this.store.getState().entities,K.videoId)};var YA=function(K,X){this.localPlayerService=K;this.localWatchNextService=X};
YA.prototype.shouldPreferLocalResponse=function(K){var X=K.playerRequest;K=K.watchNextRequest;return!!(X&&this.localPlayerService.shouldPreferLocalResponse(X)&&K&&this.localWatchNextService.shouldPreferLocalResponse(K))};
YA.prototype.localInnertubeResponse=function(K){var X=this,F,P,H,f;return _.q(function(u){if(u.nextAddress==1){F=K.playerRequest;P=K.watchNextRequest;if(!F||!P)throw new _.nG("Missing streaming request",K);return _.Y(u,X.localPlayerService.localInnertubeResponse(F),2)}if(u.nextAddress!=3)return H=u.yieldResult,_.Y(u,X.localWatchNextService.localInnertubeResponse(P),3);f=u.yieldResult;return u.return({playerResponse:H,watchNextResponse:f})})};
YA.prototype.canProvideFallbackResponse=function(K){var X=K.playerRequest;K=K.watchNextRequest;return!!(X&&this.localPlayerService.canProvideFallbackResponse(X)&&K&&this.localWatchNextService.canProvideFallbackResponse(K))};
YA.prototype.localFallbackInnertubeResponse=function(K){var X=this,F,P,H,f;return _.q(function(u){if(u.nextAddress==1)return F=K.playerRequest,P=K.watchNextRequest,F&&P?_.Y(u,X.localPlayerService.localFallbackInnertubeResponse(F),2):u.return(Promise.reject(new _.nG("Missing streaming request",K)));if(u.nextAddress!=3)return H=u.yieldResult,_.Y(u,X.localWatchNextService.localFallbackInnertubeResponse(P),3);f=u.yieldResult;return u.return({playerResponse:H,watchNextResponse:f})})};var qL=function(K){this.JSC$15475_persistentStorePromiseAccessor=K};
qL.prototype.shouldPreferLocalResponse=function(){return!1};
qL.prototype.localInnertubeResponse=function(){return _.q(function(K){return K.return(Promise.reject(Error("Ji")))})};
qL.prototype.canProvideFallbackResponse=function(){return!0};
qL.prototype.localFallbackInnertubeResponse=function(){var K=this,X,F;return _.q(function(P){return P.nextAddress==1?_.Y(P,K.JSC$15475_persistentStorePromiseAccessor(),2):P.nextAddress!=3?(X=P.yieldResult)?_.Y(P,X.get("service:guide:fallback"),3):P.return(Promise.reject(Error("Ki"))):(F=P.yieldResult)&&_.Kk(F)?P.return(XKd(_.Kk(F))):P.return(Promise.reject(Error("Li")))})};var ML=function(){};
ML.prototype.shouldPreferLocalResponse=function(){return!1};
ML.prototype.localInnertubeResponse=function(){return _.q(function(K){return K.return(Promise.reject(Error("Mi")))})};
ML.prototype.canProvideFallbackResponse=function(){return!0};
ML.prototype.localFallbackInnertubeResponse=function(){var K,X,F;return _.q(function(P){K=nj("CLOSE_POPUP");X={openPopupAction:Izn()};F={actions:[K,X]};return P.return(F)})};var ur=function(){this.urlMap=kdU;this.fallbackCommand=_.fp};
ur.prototype.shouldPreferLocalResponse=function(K){return(K=K.url)?!!KGW(this,K):!1};
ur.prototype.localInnertubeResponse=function(K){var X=this,F;return _.q(function(P){return(F=K.url)?P.return(X1V(K,KGW(X,F))):P.return(Promise.reject(Error("Ni")))})};
ur.prototype.canProvideFallbackResponse=function(){return!0};
ur.prototype.localFallbackInnertubeResponse=function(K){var X=this,F,P,H,f,u,J,Z;return _.q(function(M){F=K.url;if(!F)return M.return(X1V(K,X.fallbackCommand));if(P=KGW(X,F))return M.return(X1V(K,P));H=void 0;f=_.zy(F);f==="/watch"&&(u=_.lB(F,"v"))&&(Z=(J=_.lB(F,"list"))!=null?J:void 0,H=_.Es(u,Z));H||(H=X.fallbackCommand);return M.return(X1V(K,H))})};
var KGW=function(K,X){if(X)return K.urlMap[_.Uc(X)]},X1V=function(K,X){X&&K.parentTrackingParams&&(X.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:K.parentTrackingParams}},X.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:X})};var J4=function(K,X,F){this.JSC$15485_upliftPromise=K;this.store=X;this.JSC$15485_persistentStorePromiseAccessor=F};
J4.prototype.shouldPreferLocalResponse=function(){return!1};
J4.prototype.localInnertubeResponse=function(){return _.q(function(K){return K.return(Promise.reject(Error("Oi")))})};
J4.prototype.canProvideFallbackResponse=function(){return!0};
J4.prototype.localFallbackInnertubeResponse=function(){var K=this;return _.q(function(X){return X.return(FGu(K))})};
var FGu=function(K){var X,F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,kR(K.JSC$15485_upliftPromise,K.store),2);X=P.yieldResult;F={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[k09(X)]}}}};return P.return(P2W(K,F))})},P2W=function(K,X){var F,P;
return _.q(function(H){if(H.nextAddress==1)return _.Y(H,K.JSC$15485_persistentStorePromiseAccessor(),2);if(H.nextAddress!=3)return F=H.yieldResult,_.Y(H,XJ(F),3);P=H.yieldResult;return H.return({responseContext:{},contents:X,topbar:P})})};var fk=function(K,X,F){this.JSC$15492_upliftPromise=K;this.store=X;this.JSC$15492_persistentStorePromiseAccessor=F};
fk.prototype.shouldPreferLocalResponse=function(K){var X=K.videoId;return X&&rPP(this.store.getState().entities,X)&&APd(this.store.getState().entities,X)?Ku9(this.store.getState().entities,K.playlistId):!1};
fk.prototype.localInnertubeResponse=function(K){var X=this,F,P;return _.q(function(H){if(H.nextAddress==1)return(F=K.videoId)?_.Y(H,X.JSC$15492_upliftPromise,2):H.return(Promise.reject(Error("Pi")));if(H.nextAddress!=3)return _.Y(H,HVu(X,K,F),3);P=H.yieldResult;return H.return(shN(X,P,F))})};
fk.prototype.canProvideFallbackResponse=function(K){return K.videoId?!0:!1};
fk.prototype.localFallbackInnertubeResponse=function(K){var X=this,F,P,H,f;return _.q(function(u){switch(u.nextAddress){case 1:return(F=K.videoId)?_.Y(u,X.JSC$15492_upliftPromise,2):u.return(Promise.reject(Error("Pi")));case 2:return _.Y(u,HVu(X,K,F),3);case 3:P=u.yieldResult;if(Q4(X.store.getState().entities,F)){u.jumpTo(4);break}return _.Y(u,kR(X.JSC$15492_upliftPromise,X.store),5);case 5:return H=u.yieldResult,u.return(zPU(P,H));case 4:return rPP(X.store.getState().entities,F)&&APd(X.store.getState().entities,
F)?u.return(shN(X,P,F)):(f={title:_.bY(_.uY("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:LVP()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},u.return(zPU(P,f)))}})};
var HVu=function(K,X,F){var P,H,f,u,J;return _.q(function(Z){if(Z.nextAddress==1)return P=X.playlistId,H=_.Es(F,P),_.Y(Z,K.JSC$15492_persistentStorePromiseAccessor(),2);if(Z.nextAddress!=3)return f=Z.yieldResult,_.Y(Z,XJ(f),3);u=Z.yieldResult;J={responseContext:{},currentVideoEndpoint:H,topbar:u};return Z.return(J)})},shN=function(K,X,F){if(K=Q4(K.store.getState().entities,F)){var P;
F=K.videoEntity;var H,f={title:Cl(F.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.Nm((P=F.localizedStrings)==null?void 0:P.viewCount),viewCount:_.Nm((H=F.localizedStrings)==null?void 0:H.viewCount)}}};F.publishedTimestampMillis&&(f.dateText=_.Nm(a6l(new Date(Number(F.publishedTimestampMillis)))));P={videoPrimaryInfoRenderer:f};H=K.videoEntity;K=K.channelEntity;K={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:Cl(_.uY("SHOW_MORE",void 0,"Show more")),
showLessText:Cl(_.uY("SHOW_LESS",void 0,"Show less")),description:H.formattedDescription,owner:{videoOwnerRenderer:{title:Cl(K.title),thumbnail:K.avatar}}}};X.contents={twoColumnWatchNextResults:{results:{results:{contents:[P,K]}}}}}return X},zPU=function(K,X){K.contents={singleColumnWatchNextResults:{results:{results:{contents:[k09(X)]}}}};
return K};var ZZ=function(K,X,F){this.JSC$15497_upliftPromise=K;this.store=X;this.JSC$15497_persistentStorePromiseAccessor=F};
ZZ.prototype.shouldPreferLocalResponse=function(){return!1};
ZZ.prototype.localInnertubeResponse=function(){return _.q(function(K){return K.return(Promise.reject(Error("Qi")))})};
ZZ.prototype.canProvideFallbackResponse=function(){return!0};
ZZ.prototype.localFallbackInnertubeResponse=function(){var K=this,X,F,P,H;return _.q(function(f){switch(f.nextAddress){case 1:return _.Y(f,K.JSC$15497_persistentStorePromiseAccessor(),2);case 2:return X=f.yieldResult,_.Y(f,XJ(X),3);case 3:return F=f.yieldResult,P={responseContext:{},topbar:F},_.Y(f,K.JSC$15497_upliftPromise,4);case 4:return _.Y(f,kR(K.JSC$15497_upliftPromise,K.store),5);case 5:return H=f.yieldResult,P.watchStatus={backgroundPromoRenderer:H},f.return(P)}})};var f2O=new _.Oh("ENDPOINT_MAP");var D3Q=function(){var K=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return K.sequenceMap}}},KoU=function(K,X,F){var P,H=(P=X.config)==null?void 0:P.sequenceStrategy;
if(!H)return F();K.sequenceMap.has(H.sequenceKey)||K.sequenceMap.set(H.sequenceKey,[]);K=K.sequenceMap.get(H.sequenceKey);switch(H.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return u9U(K,X,F);case "REQUEST_SEQUENCE_TYPE_REPLACE":return quO(K,X,F);default:throw new _.nG("Request could not be sequenced",X);}},u9U=function(K,X,F){var P,H,f;
return _.q(function(u){K.length>0?(H=K[K.length-1],P=H.responsePromise.then(function(){return F()})):P=F();
f={request:X,responsePromise:P};K.push(f);JQQ(K,f);return u.return(f.responsePromise)})},quO=function(K,X,F){F=F();
if(K.length>0)for(var P=_.D(K),H=P.next();!H.done;H=P.next())H.value.responsePromise=F;var f={request:X,responsePromise:F};K.push(f);JQQ(K,f);return Promise.resolve().then(function(){return K.indexOf(f)>0?f.responsePromise.then(function(u){return Object.assign({},u,{sequenceMetaData:{skipProcessing:!0}})}):f.responsePromise})},JQQ=function(K,X){X.responsePromise.then(function(){var F=K.indexOf(X);
F>-1&&K.splice(F,1)})};var ZVt=new _.Oh("REQUEST_SEQUENCING");var rB=function(){};
_.r(rB,IE);rB.prototype.getApiPaths=function(){return[]};
rB.prototype.getExtension=function(K){return _.T(K,myT)};
rB.prototype.JSC$10998_buildRequest=function(K,X){K.recaptchaToken=X.recaptchaToken};
rB.prototype.getApiUrl=function(){return"/das_captcha"};var AB=function(){};
_.r(AB,IE);AB.prototype.getApiPaths=function(){return JWV};
AB.prototype.getExtension=function(K){return _.T(K,uJL)};
AB.prototype.JSC$10998_buildRequest=function(K,X,F){F=F===void 0?{}:F;X.createBackstagePostParams&&(K.createBackstagePostParams=X.createBackstagePostParams);F.comment_text&&(K.commentText=F.comment_text);if(F.attached_video_id)K.videoAttachment={videoId:F.attached_video_id};else if(F.image_poll_options)K.pollAttachmentData={options:F.image_poll_options};else if(F.poll_options)K.pollAttachment={choices:F.poll_options};else if(F.quiz_options)K.quizAttachmentData={options:F.quiz_options};else if(F.image_blob_id)K.imageAttachment=
{encryptedBlobId:F.image_blob_id},F.source_video_id&&(K.imageAttachment.sourceExternalVideoId=F.source_video_id),F.image_preview_coordinates&&(K.imageAttachment.previewCoordinates=JSON.parse(F.image_preview_coordinates));else if(F.images_data)K.imagesAttachment={imagesData:F.images_data};else if(F.clip_external_video_id!==void 0||F.clip_offset_ms!==void 0||F.clip_duration_ms!==void 0){var P,H,f,u,J;K.clipAttachment={externalVideoId:(f=F.clip_external_video_id)!=null?f:"",offsetMs:(u=(P=F.clip_offset_ms)==
null?void 0:P.toString())!=null?u:"",durationMs:(J=(H=F.clip_duration_ms)==null?void 0:H.toString())!=null?J:""}}else F.shared_post_id&&(K.sharedPostAttachment={postId:F.shared_post_id});F.tagged_video_id&&(K.postCreationData={taggedVideoId:F.tagged_video_id});F.access_restrictions&&(typeof F.access_restrictions==="number"&&(X=F.access_restrictions,K.accessRestrictions={restriction:X!==1&&X===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof F.access_restrictions==="string"&&
(K.accessRestrictionsParams=F.access_restrictions));F.scheduled_publish_time_sec&&(K.scheduledPublishTimeSec=F.scheduled_publish_time_sec.toString())};var j_=function(){};
_.r(j_,IE);j_.prototype.getApiPaths=function(){return phW};
j_.prototype.getExtension=function(K){return _.T(K,QKu)};
j_.prototype.JSC$10998_buildRequest=function(K,X,F){F=F===void 0?{}:F;X.decorateMessageParams&&(K.params=X.decorateMessageParams);F.text&&(K.text=F.text)};var wB=function(){};
_.r(wB,IE);wB.prototype.getApiPaths=function(){return vlL};
wB.prototype.getExtension=function(K){return _.T(K,q$C)};
wB.prototype.JSC$10998_buildRequest=function(K,X,F){F=F===void 0?{}:F;F.video_id&&(K.videoId=F.video_id)};var y7=function(){};
_.r(y7,IE);y7.prototype.getApiPaths=function(){return glL};
y7.prototype.getExtension=function(K){return _.T(K,_.ss)};
y7.prototype.JSC$10998_buildRequest=function(K,X,F){F.suggestions_query&&(K.input=F.suggestions_query)};var Wo=function(){};
_.r(Wo,IE);Wo.prototype.getApiPaths=function(){return TkZ};
Wo.prototype.getExtension=function(K){return _.T(K,J4L)};
Wo.prototype.JSC$10998_buildRequest=function(K,X,F){F.comment_text!==void 0&&(K.commentText=F.comment_text);F.scheduled_publish_time_sec&&(K.scheduledPublishTimeSec=F.scheduled_publish_time_sec.toString());K.updateBackstagePostParams=X.updateBackstagePostParams};var dB=function(){};
_.r(dB,IE);dB.prototype.getApiPaths=function(){return gM};
dB.prototype.getExtension=function(K){return _.T(K,_.jd)};
dB.prototype.JSC$10998_buildRequest=function(K,X,F){F.formData&&(K.formData=F.formData);X.token?K.continuation=X.token:X.continuationTokenKey&&(F=_.aA().getState(),X=_.FF(F.entities,"continuationTokenEntity",X.continuationTokenKey))&&(K.continuation=String(X.continuationToken))};
var YuL=function(){};
_.r(YuL,IE);_.z=YuL.prototype;_.z.getApiPaths=function(){return gM};
_.z.getExtension=function(K){return _.T(K,_.f$)};
_.z.isNavigationCommand=function(){return!0};
_.z.JSC$11005_getStoreKey=function(K){if((K=this.getExtension(K))&&K.browseId){var X={browseId:K.browseId};K.browseEndpointContextSupportedConfigs&&(X.browseEndpointContextSupportedConfigs=JSON.stringify(K.browseEndpointContextSupportedConfigs));K.params&&(X.params=K.params);K.query&&(X.query=K.query);return _.lX("browse",X)}};
_.z.JSC$10998_buildRequest=function(K,X,F){X.browseId&&(K.browseId=X.browseId);X.params&&(K.params=X.params);X.query&&(K.query=X.query);F.formData?K.formData=F.formData:X.formData&&(K.formData=X.formData);X.browseId==="FEsubscriptions"&&_.ZO().getFlag(155)&&(K.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");X.browseId==="SPaccount_playback"&&(F=_.ZO(),K.formData||(K.formData={}),K.formData.accountSettingsFormData={flagCaptionsDefaultOff:F.getFlag(65),flagAutoCaptionsDefaultOn:F.getFlag(66),
flagDisableInlinePreview:F.getFlag(186),flagAudioDescriptionDefaultOn:F.getFlag(198)});if(X.browseId==="FEwhat_to_watch"){F=_.ZO();var P=F.getFlag(196);F.getFlag(197)&&(K.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:P}}})}X.browseId==="FEwhat_to_watch"&&(X=_.ZO().getFlag(186),K.inlineSettingStatus=X?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.z.getRequestConfig=function(K,X){X=X===void 0?{}:X;var F={};if(K=this.JSC$11005_getStoreKey(K,X))F.storeStrategy={storeKey:K,disableCache:X.disableCache};_.S("web_log_browse_ticks_ks")||(F.requestTick="br_s",F.responseTick="br_r");return F};var e_=function(){};
_.r(e_,IE);e_.prototype.getApiPaths=function(){return sEN};
e_.prototype.getExtension=function(K){return _.T(K,WgC)};
e_.prototype.JSC$10998_buildRequest=function(K,X,F){K.legacyYoutubeChannelUsername=F.legacyYouTubeChannelUsername||"";K.legacyYoutubeChannelPassword=F.legacyYouTubeChannelPassword||""};var RM=function(){};
_.r(RM,IE);RM.prototype.getApiPaths=function(){return YxL};
RM.prototype.getExtension=function(K){return _.T(K,BHL)};
RM.prototype.JSC$10998_buildRequest=function(K,X,F){F.recaptcha_response_token&&(K.recaptchaResponseToken=F.recaptcha_response_token);F.channel_id&&(K.channelId=F.channel_id)};var UA=function(){};
_.r(UA,IE);UA.prototype.getApiPaths=function(){return rkO};
UA.prototype.getExtension=function(K){return _.T(K,A4u)};
UA.prototype.JSC$10998_buildRequest=function(K,X,F){X.externalChannelId&&(K.externalChannelId=X.externalChannelId);F.handle&&(K.handleUpdate={handle:F.handle},X.handleEditSource&&(K.handleUpdate.handleEditSource=X.handleEditSource))};var hB=function(){};
_.r(hB,IE);hB.prototype.getApiPaths=function(){return ykL};
hB.prototype.getExtension=function(K){return _.T(K,aZu)};
hB.prototype.JSC$10998_buildRequest=function(K,X,F){X.request&&(K.channelId=X.request.channelId);var P;if(F==null?0:(P=F.uploadDefaults)==null?0:P.emojiReactionSet)K.uploadDefaultsRequest||(K.uploadDefaultsRequest={}),K.uploadDefaultsRequest.emojiReactionSet=F.uploadDefaults.emojiReactionSet};var ms=function(){};
_.r(ms,IE);ms.prototype.getApiPaths=function(){return eAN};
ms.prototype.getExtension=function(K){return _.T(K,S$L)};
ms.prototype.JSC$10998_buildRequest=function(K,X,F){X.externalChannelId&&(K.externalChannelId=X.externalChannelId);X.channelHandleEntityKey&&(K.channelHandleEntityKey=X.channelHandleEntityKey);X.handleEditSource&&(K.handleEditSource=X.handleEditSource);F.handle?K.handle=F.handle:F.name&&(K.name=F.name)};var G7=function(){};
_.r(G7,IE);G7.prototype.getApiPaths=function(){return DAQ};
G7.prototype.getExtension=function(K){return _.T(K,CzN)};
G7.prototype.JSC$10998_buildRequest=function(K,X){X.actions?K.actions=X.actions:X.action&&(K.actions=[X.action])};var lL=function(){};
_.r(lL,IE);lL.prototype.getApiPaths=function(){return uTt};
lL.prototype.getExtension=function(K){return _.T(K,_.jd)};
lL.prototype.JSC$10998_buildRequest=function(K,X){X.token&&(K.continuation=X.token)};var vo=function(){};
_.r(vo,IE);vo.prototype.getApiPaths=function(){return GCC};
vo.prototype.getExtension=function(K){return _.T(K,_.jd)};
vo.prototype.JSC$10998_buildRequest=function(K,X){K.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";X.token&&(K.fetchCommentsParams={continuation:X.token})};var aM=function(){};
_.r(aM,IE);aM.prototype.getApiPaths=function(){return QEZ};
aM.prototype.getExtension=function(K){return _.T(K,bwC)};
aM.prototype.JSC$10998_buildRequest=function(K,X,F){F=F===void 0?{}:F;X.createReplyParams&&(K.createReplyParams=X.createReplyParams);X.commentText&&(K.commentText=_.lj(X.commentText));F.comment_text&&(K.commentText=F.comment_text);F.image_blob_id&&(K.imageAttachment={encryptedBlobId:F.image_blob_id});F.botguard_response&&(K.botguardResponse=F.botguard_response)};
_.Oi.Object.defineProperties(aM.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var tB=function(){};
_.r(tB,IE);tB.prototype.getApiPaths=function(){return M7W};
tB.prototype.getExtension=function(K){return _.T(K,_.EsN)};
tB.prototype.JSC$10998_buildRequest=function(K,X,F){F=F===void 0?{}:F;X.createCommentParams&&(K.createCommentParams=X.createCommentParams);X.commentText&&(K.commentText=_.lj(X.commentText));X.videoPositionMention&&(K.videoPositionMention=X.videoPositionMention);X.sources&&(K.sources=X.sources);F.comment_text&&(K.commentText=F.comment_text);F.attached_video_id?K.videoAttachment={videoId:F.attached_video_id}:F.poll_options?K.pollAttachment={choices:F.poll_options}:F.image_blob_id?K.imageAttachment=
{encryptedBlobId:F.image_blob_id}:F.shared_post_id&&(K.sharedPostAttachment={postId:F.shared_post_id});F.access_restrictions&&typeof F.access_restrictions==="number"&&(X=F.access_restrictions,K.accessRestrictions={restriction:X!==1&&X===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});F.botguard_response&&(K.botguardResponse=F.botguard_response)};
_.Oi.Object.defineProperties(tB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $G=function(){};
_.r($G,IE);$G.prototype.getApiPaths=function(){return AkT};
$G.prototype.getExtension=function(K){return _.T(K,iwt)};
$G.prototype.JSC$10998_buildRequest=function(K,X,F){X.commentText&&(K.replyText=_.lj(X.commentText));F.comment_text&&(K.replyText=F.comment_text);K.updateReplyParams=X.updateReplyParams};
_.Oi.Object.defineProperties($G.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var OA=function(){};
_.r(OA,IE);OA.prototype.getApiPaths=function(){return jut};
OA.prototype.getExtension=function(K){return _.T(K,N9C)};
OA.prototype.JSC$10998_buildRequest=function(K,X,F){X.commentText&&(K.commentText=_.lj(X.commentText));F.comment_text&&(K.commentText=F.comment_text);K.updateCommentParams=X.updateCommentParams};
_.Oi.Object.defineProperties(OA.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var V7=function(){};
_.r(V7,IE);V7.prototype.getApiPaths=function(){return wUT};
V7.prototype.getExtension=function(K){return _.T(K,mLC)};
V7.prototype.JSC$10998_buildRequest=function(K,X){X.settings&&(K.settings=X.settings)};var gB=function(){};
_.r(gB,IE);gB.prototype.getApiPaths=function(){return Wft};
gB.prototype.getExtension=function(K){return _.T(K,oAW)};
gB.prototype.JSC$10998_buildRequest=function(K,X){X.channelCreationToken&&(K.channelCreationToken=X.channelCreationToken);X.source&&(K.source=X.source)};var EA=function(){};
_.r(EA,IE);EA.prototype.getApiPaths=function(){return YLO};
EA.prototype.getExtension=function(K){return _.T(K,r4C)};
EA.prototype.JSC$10998_buildRequest=function(K,X,F){F=F===void 0?{}:F;if(F.name&&(F.given_name||F.family_name))K=new _.nG("channel creation cannot set both GAIA and YouTube names",X),_.jF(K);else{if(X.zeroStepChannelCreationParams){if(!F.comment_text){K=new _.nG("zero_step_create_comment_params but no zero_step_texts",X);_.jF(K);return}K.zeroStepChannelCreationParams=X.zeroStepChannelCreationParams;K.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(K.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
F.comment_text,F.botguard_response&&(K.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=F.botguard_response))}K.channelCreationToken=X.channelCreationToken;F.given_name&&(K.givenName=F.given_name);F.family_name&&(K.familyName=F.family_name);X.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(K.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(F.name||F.handle||F.avatar_url||F.encryptedBlobId||F.isNameChanged!==void 0||F.isHandleChanged!==void 0||F.isDefaultProfilePhoto!==
void 0||F.obakeImageSource)K.overrideChannelCreationParams={},F.name&&(K.overrideChannelCreationParams.name=F.name),F.handle&&(K.overrideChannelCreationParams.handle=F.handle),F.avatar_url&&(K.overrideChannelCreationParams.avatarUrl=F.avatar_url),F.encryptedBlobId&&(K.overrideChannelCreationParams.blobEncryptionId=F.encryptedBlobId),F.enableIdentityForAllChannelCreationDialog&&(F.encryptedBlobId?K.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
F.isDefaultProfilePhoto!==void 0&&(K.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=F.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),F.isNameChanged!==void 0&&(K.overrideChannelCreationParams.identityForAllChannelCreationNameTag=F.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),F.isHandleChanged!==
void 0&&(K.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=F.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),F.obakeImageSource&&(K.overrideChannelCreationParams.obakeImageSourceType=F.obakeImageSource))}};var bL=function(){};
_.r(bL,IE);bL.prototype.getApiPaths=function(K){return(K=this.getExtension(K))&&K.status==="DISLIKE"?Lfu:K&&K.status==="INDIFFERENT"?DTC:ipL};
bL.prototype.getExtension=function(K){return _.T(K,_.Rn)};
bL.prototype.JSC$10998_buildRequest=function(K,X){X.target&&(K.target=X.target);if(X=this.getParams(X))K.params=X};
bL.prototype.getParams=function(K){switch(K==null?void 0:K.status){case "DISLIKE":return K.dislikeParams;case "INDIFFERENT":return K.removeLikeParams;default:return K==null?void 0:K.likeParams}};var CR=function(){};
_.r(CR,IE);CR.prototype.getApiPaths=function(){return pUO};
CR.prototype.getExtension=function(K){return _.T(K,zrL)};
CR.prototype.JSC$10998_buildRequest=function(K,X){X.settingItemId&&(K.settingItemId=X.settingItemId);X.stringValue!=null&&X.stringValue!==void 0?K.newValue={stringValue:X.stringValue}:X.intValue?K.newValue={intValue:X.intValue}:X.boolValue!==null&&X.boolValue!==void 0?K.newValue={boolValue:X.boolValue}:(K=new _.nG("Unknown value type for SetSettingEndpoint.",X),_.jF(K))};var NZ=function(){};
_.r(NZ,IE);NZ.prototype.getApiPaths=function(){return SxV};
NZ.prototype.getExtension=function(K){return _.T(K,TCL)||void 0};
NZ.prototype.JSC$10998_buildRequest=function(K,X,F){F=F===void 0?{}:F;X.channelIds&&(K.channelIds=X.channelIds);X.siloName&&(K.siloName=X.siloName);X.params&&(K.params=X.params);F.botguardResponse&&(K.botguardResponse=F.botguardResponse);F.feature&&(K.clientFeature=F.feature)};
_.Oi.Object.defineProperties(NZ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var iL=function(){};
_.r(iL,IE);iL.prototype.getApiPaths=function(){return LiU};
iL.prototype.getExtension=function(K){return _.T(K,f_u)||void 0};
iL.prototype.JSC$10998_buildRequest=function(K,X){X.channelIds&&(K.channelIds=X.channelIds);X.siloName&&(K.siloName=X.siloName);X.params&&(K.params=X.params)};
_.Oi.Object.defineProperties(iL.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var xG=function(K){this.shareClientParamsProvider=K};
_.r(xG,IE);xG.prototype.getApiPaths=function(){return t7t};
xG.prototype.getExtension=function(K){return _.T(K,e0C)||_.T(K,_.R0V)||_.T(K,dEC)};
xG.prototype.JSC$10998_buildRequest=function(K,X){X.serializedShareEntity&&(K.serializedSharedEntity=X.serializedShareEntity);if(X.clientParamIdentifier){var F;if((F=this.shareClientParamsProvider)==null?0:F.clientParams.has(X.clientParamIdentifier)){F=this.shareClientParamsProvider;X=X.clientParamIdentifier;var P=F.clientParams.get(X);P&&F.clientParams.delete(X);K.clientParams=P}}};
xG[$0]=[ezZ];var IM=function(){};
_.r(IM,IE);IM.prototype.getApiPaths=function(){return FfC};
IM.prototype.getExtension=function(K){return _.T(K,aRt)};
IM.prototype.JSC$10998_buildRequest=function(K,X){X.params&&(K.params=X.params)};var kG=function(){};
_.r(kG,IE);kG.prototype.getApiPaths=function(){return TzL};
kG.prototype.getExtension=function(K){return _.T(K,GQE)};
kG.prototype.JSC$10998_buildRequest=function(K,X){X.dismissal&&(K.items=[X.dismissal])};
_.Oi.Object.defineProperties(kG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var KN=function(){};
_.r(KN,IE);KN.prototype.getApiPaths=function(){return CmV};
KN.prototype.getExtension=function(K){return _.T(K,_.Tt)||void 0};
KN.prototype.JSC$10998_buildRequest=function(K,X,F){K.feedbackTokens=[];X.feedbackToken&&K.feedbackTokens.push(X.feedbackToken);if(X=X.cpn||F.cpn)K.feedbackContext={cpn:X};K.isFeedbackTokenUnencrypted=!!F.is_feedback_token_unencrypted;K.shouldMerge=!1;F.extra_feedback_tokens&&(K.shouldMerge=!0,K.feedbackTokens=K.feedbackTokens.concat(F.extra_feedback_tokens))};
_.Oi.Object.defineProperties(KN.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var XK=function(){};
_.r(XK,IE);XK.prototype.getApiPaths=function(){return CmV};
XK.prototype.getExtension=function(K){return _.T(K,_.ss)};
XK.prototype.JSC$10998_buildRequest=function(K,X,F){F.feedback_tokens&&(K.feedbackTokens=F.feedback_tokens,K.shouldMerge=!0)};
_.Oi.Object.defineProperties(XK.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var FK=function(){};
_.r(FK,IE);FK.prototype.getApiPaths=function(){return CmV};
FK.prototype.getExtension=function(K){return _.T(K,UIy)};
FK.prototype.JSC$10998_buildRequest=function(K,X){X.undoToken&&(K.feedbackTokens=[X.undoToken]);X.isUndoTokenUnencrypted&&(K.isFeedbackTokenUnencrypted=X.isUndoTokenUnencrypted)};
_.Oi.Object.defineProperties(FK.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var P5=function(){};
_.r(P5,IE);P5.prototype.getApiPaths=function(){return RAt};
P5.prototype.getExtension=function(K){return _.T(K,UeO)};
P5.prototype.JSC$10998_buildRequest=function(K,X){X.nextEndpoint&&_.T(X.nextEndpoint,_.mc)?K.nextEndpoint={urlEndpoint:_.T(X.nextEndpoint,_.mc)}:X.nextEndpoint&&_.T(X.nextEndpoint,_.vg)&&(K.nextEndpoint={watchEndpoint:_.T(X.nextEndpoint,_.vg)});X.setRacy&&(K.setRacy=X.setRacy);X.setControvercy&&(K.setControvercy=X.setControvercy)};var H5=function(K){this.JSC$15678_storeWithEntities=K};
_.r(H5,IE);H5.prototype.getApiPaths=function(){return AWL};
H5.prototype.getExtension=function(K){return _.T(K,Hbt)};
H5.prototype.JSC$10998_buildRequest=function(K,X){X.flowId&&(K.flowId=X.flowId);X.targetId&&(K.targetId=X.targetId);X.continuation&&(K.continuation=X.continuation);var F=X.flowStateEntityKey;if(X.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&F&&this.JSC$15678_storeWithEntities){var P;if(X=(P=this.JSC$15678_storeWithEntities.getState())==null?void 0:P.entities)if(P=_.I7(F).entityType,P=_.FF(X,P,F))K.flowState=P,K.flowStateEntityKey=F}};
_.Oi.Object.defineProperties(H5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
H5[$0]=[FJ];var QhZ=function(){};
_.r(QhZ,IE);_.z=QhZ.prototype;_.z.getApiPaths=function(){return bpT};
_.z.JSC$11005_getStoreKey=function(){return _.lX("guide")};
_.z.getRequestConfig=function(){var K=this.JSC$11005_getStoreKey(),X;K&&(X={storeStrategy:{storeKey:K}});return X};
_.z.isNavigationCommand=function(){return!0};
_.z.getExtension=function(K){return _.T(K,_.ss)};
_.z.JSC$10998_buildRequest=function(K){K.fetchLiveState=!0};var Z0=function(){};
_.r(Z0,IE);Z0.prototype.getApiPaths=function(){return z6Z};
Z0.prototype.getExtension=function(K){return _.T(K,OwL)};
Z0.prototype.JSC$10998_buildRequest=function(){};var Y9=function(){};
_.r(Y9,IE);Y9.prototype.getApiPaths=function(){return fgN};
Y9.prototype.getExtension=function(K){return _.T(K,VqT)};
Y9.prototype.JSC$10998_buildRequest=function(){};var QK=function(){};
_.r(QK,IE);QK.prototype.getApiPaths=function(){return Xht};
QK.prototype.getExtension=function(K){return _.T(K,_.jd)};
QK.prototype.JSC$10998_buildRequest=function(K,X){X.token&&(K.continuation=X.token);var F,P;K==null||(F=K.context)==null||(P=F.user)==null||delete P.onBehalfOfUser};
QK.prototype.getRequestConfig=function(K){var X={},F;if(((F=this.getExtension(K))==null?void 0:F.sessionIndex)!==void 0){var P;X={authStrategy:{sessionIndex:(P=this.getExtension(K))==null?void 0:P.sessionIndex}}}return X};var MX=function(){};
_.r(MX,IE);MX.prototype.JSC$10998_getRequest=function(K){var X=this.getExtension(K),F=K="";if(X==null?0:X.popup)K="true";if(X==null?0:X.disableSignout)F="true";X={};return{input:"/getAccountSwitcherEndpoint",requestShell:GY("/getAccountSwitcherEndpoint","GET",(X["X-YouTube-Delegation-Context"]=_.e8("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),X["X-YouTube-Account-Switcher-Popup"]=K,X["X-YouTube-Account-Switcher-Disable-Signout"]=F,X)),innerTubeRequest:{}}};
MX.prototype.getApiPaths=function(){return[]};
MX.prototype.getExtension=function(K){return _.T(K,_.qAO)};
MX.prototype.JSC$10998_buildRequest=function(){};var nN=function(){};
_.r(nN,IE);nN.prototype.JSC$10998_getRequest=function(K){var X="/cross_account_channel_transfer";(K=this.getExtension(K))&&(X=TgM(X,{target_session:K.targetSessionIndex,source_rapt:K.sourceRapt,rapt:K.targetRapt}));return{input:X,requestShell:GY(X,"GET"),innerTubeRequest:{}}};
nN.prototype.getApiPaths=function(){return[]};
nN.prototype.getExtension=function(K){return _.T(K,$yt)};
nN.prototype.JSC$10998_buildRequest=function(){};var c5=function(){};
_.r(c5,IE);c5.prototype.getApiPaths=function(){return jEW};
c5.prototype.isNavigationCommand=function(){return!0};
c5.prototype.getExtension=function(K){return _.T(K,_.ss)};
c5.prototype.JSC$10998_buildRequest=function(K){var X=_.ZO().get("gsml","");X&&(K.safetyModeLockerObfuscatedGaiaId=X);K.userInterfaceTheme=_.n$(!0);_.cI()?K.deviceTheme="DEVICE_THEME_SELECTED":_.Z3M()?K.deviceTheme="DEVICE_THEME_SUPPORTED":K.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var pN=function(){};
_.r(pN,IE);pN.prototype.getApiPaths=function(){return Xht};
pN.prototype.getExtension=function(K){return _.T(K,Ojt)};
pN.prototype.JSC$10998_buildRequest=function(K,X){if(X&&X.requestType&&(K.requestType=X.requestType,X.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||X.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var F=X.nextUrl;F&&(_.Ag3(F)||b9(F))&&(K.nextNavendpoint={urlEndpoint:{url:F}})}X&&X.channelSwitcherQuery&&(K.channelSwitcherQuery=X.channelSwitcherQuery);X&&X.triggerChannelCreation&&(K.triggerChannelCreation=X.triggerChannelCreation);var P;if(X==null?0:(P=X.contentOwnerConfig)==
null?0:P.externalContentOwnerId)K.contentOwnerConfig=X.contentOwnerConfig;K.callCircumstance=X&&X.requestType&&X.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var H,f;X=K==null?void 0:(H=K.context)==null?void 0:(f=H.user)==null?void 0:f.onBehalfOfUser;if(X!==void 0){K.obfuscatedSelectedGaiaId=X;var u,J;K==null||(u=K.context)==null||(J=u.user)==null||delete J.onBehalfOfUser}var Z,M;if(H=K==null?void 0:(Z=K.context)==null?void 0:(M=Z.user)==null?
void 0:M.serializedDelegationContext)K.selectedSerializedDelegationContext=H};var B5=function(){};
_.r(B5,IE);B5.prototype.getApiPaths=function(){return agC};
B5.prototype.getExtension=function(K){return _.T(K,lVZ)};
B5.prototype.JSC$10998_buildRequest=function(K,X){X.profileOwnerExternalChannelId&&(K.profileOwnerExternalChannelId=X.profileOwnerExternalChannelId);X.profileCardContext&&(K.profileCardContext=X.profileCardContext)};var Sm=function(){};
_.r(Sm,IE);Sm.prototype.getApiPaths=function(){return PmU};
Sm.prototype.getExtension=function(K){return _.T(K,UEZ)};
Sm.prototype.JSC$10998_buildRequest=function(K,X){X.params&&(K.params=X.params)};var o1=function(){};
_.r(o1,IE);o1.prototype.getApiPaths=function(){return ZpW};
o1.prototype.getExtension=function(K){return _.T(K,_.CaU)};
o1.prototype.JSC$10998_buildRequest=function(K,X){if(X=X.createBroadcastRequest)K.useMasks=X.useMasks,K.broadcastType=X.broadcastType,K.broadcastSource=X.broadcastSource,K.broadcastMetadata=X.broadcastMetadata,K.broadcastMetadataMask=X.broadcastMetadataMask,K.videoMetadata=X.videoMetadata,K.videoMetadataMask=X.videoMetadataMask,K.liveChatSettingsUpdate=X.liveChatSettingsUpdate,K.liveChatSettingsUpdateMask=X.liveChatSettingsUpdateMask,K.cloneVideoId=X.cloneVideoId,K.cloneWithOverrides=X.cloneWithOverrides,
K.targetEntity=X.targetEntity,K.scheduledRedirectMetadata=X.scheduledRedirectMetadata};var LN=function(){};
_.r(LN,IE);LN.prototype.getApiPaths=function(){return nlQ};
LN.prototype.getExtension=function(K){return _.T(K,bbN)};
LN.prototype.JSC$10998_buildRequest=function(K,X,F){F=F===void 0?{}:F;X.params&&(K.params=X.params);F.questionText&&(K.questionText=F.questionText);F.optionText&&F.optionText.length>0&&(K.optionText=F.optionText)};var Tx=function(){};
_.r(Tx,IE);Tx.prototype.getApiPaths=function(){return Bzt};
Tx.prototype.getExtension=function(K){return _.T(K,goL)};
Tx.prototype.JSC$10998_buildRequest=function(K,X){X.params&&(K.params=X.params)};var rX=function(){};
_.r(rX,IE);rX.prototype.getApiPaths=function(){return e6V};
rX.prototype.getExtension=function(K){return _.T(K,thT)};
rX.prototype.JSC$10998_buildRequest=function(K,X){X.params&&(K.params=X.params)};var AF=function(){};
_.r(AF,IE);AF.prototype.getApiPaths=function(){return UAL};
AF.prototype.getExtension=function(K){return _.T(K,$_T)};
AF.prototype.JSC$10998_buildRequest=function(K,X,F){X.params&&(K.params=X.params);X.continuation&&(K.continuation=X.continuation);F.currentPlayerState&&F.currentPlayerState.playerOffsetMs&&(K.currentPlayerState={playerOffsetMs:F.currentPlayerState.playerOffsetMs.toString()})};var jm=function(){};
_.r(jm,IE);jm.prototype.getApiPaths=function(){return h6u};
jm.prototype.getExtension=function(K){return _.T(K,anV)};
jm.prototype.JSC$10998_buildRequest=function(K,X,F){X.params&&(K.params=X.params);F.continuation&&(K.continuation=F.continuation);"hidden"in F&&(K.webClientInfo={isDocumentHidden:F.hidden});F.isInvalidationTimeoutRequest&&(K.isInvalidationTimeoutRequest=F.isInvalidationTimeoutRequest);F.invalidationPayload&&(X=voO(_.Jt(C9(F.invalidationPayload))),K.invalidationPayloadLastPublishAtUsec=oc(X,2));F.reloadActionPanel&&(K.reloadActionPanel=F.reloadActionPanel);F.fullReload&&(K.fullReload=F.fullReload);
F.currentPlayerState&&(K.currentPlayerState=F.currentPlayerState)};var wX=function(){};
_.r(wX,IE);wX.prototype.getApiPaths=function(){return xAt};
wX.prototype.getExtension=function(K){return _.T(K,EoV)};
wX.prototype.JSC$10998_buildRequest=function(K,X){K.params=X.params};var yK=function(){};
_.r(yK,IE);yK.prototype.getApiPaths=function(){return R6u};
yK.prototype.getExtension=function(K){return _.T(K,i1t)};
yK.prototype.JSC$10998_buildRequest=function(K,X){X.params&&(K.params=X.params)};var W5=function(){};
_.r(W5,IE);W5.prototype.getApiPaths=function(){return mAt};
W5.prototype.getExtension=function(K){return _.T(K,xEZ)};
W5.prototype.JSC$10998_buildRequest=function(K,X){X.params&&(K.params=X.params)};var dX=function(){};
_.r(dX,IE);dX.prototype.getApiPaths=function(){return IgQ};
dX.prototype.getExtension=function(K){return _.T(K,CtO)};
dX.prototype.JSC$10998_buildRequest=function(K,X){X.params&&(K.params=X.params)};var em=function(){};
_.r(em,IE);em.prototype.getApiPaths=function(){return KiO};
em.prototype.getExtension=function(K){return _.T(K,NPC)};
em.prototype.JSC$10998_buildRequest=function(K,X){X.params&&(K.params=X.params)};var R1=function(){};
_.r(R1,IE);R1.prototype.getApiPaths=function(){return uEZ};
R1.prototype.getExtension=function(K){return _.T(K,GVV)};
R1.prototype.JSC$10998_buildRequest=function(K,X){X.params&&(K.params=X.params)};var U1=function(){};
_.r(U1,IE);U1.prototype.getApiPaths=function(){return nuQ};
U1.prototype.getExtension=function(K){return _.T(K,_.ibU)};
U1.prototype.JSC$10998_buildRequest=function(K,X,F){F=F===void 0?{}:F;X.params&&(K.params=X.params);F.client_message_id&&(K.clientMessageId=F.client_message_id);F.recaptcha_token&&(K.recaptchaToken=F.recaptcha_token);F.rich_message&&F.rich_message.text_segments?(X=F.rich_message.text_segments.map(function(P){var H={};P.text&&(H.text=P.text);P.emoji_id&&(H.emojiId=P.emoji_id);return H}),K.richMessage={textSegments:X}):F.message&&(K.message=F.message);
F.currentPlayerState&&(K.currentPlayerState=F.currentPlayerState)};var hF=function(){};
_.r(hF,IE);hF.prototype.getApiPaths=function(){return ckO};
hF.prototype.getExtension=function(K){return _.T(K,x_C)};
hF.prototype.JSC$10998_buildRequest=function(K,X){X.params&&(K.params=X.params)};var mI=function(){};
_.r(mI,IE);mI.prototype.getApiPaths=function(){return ouC};
mI.prototype.getExtension=function(K){return _.T(K,kMT)};
mI.prototype.JSC$10998_buildRequest=function(K,X,F){X.isUserInitiated&&(K.isUserInitiated=X.isUserInitiated);X.initiationSource&&(K.initiationSource=X.initiationSource);F.locationInfo&&(K.context.client.locationInfo=F.locationInfo)};var Gx=function(){};
_.r(Gx,IE);Gx.prototype.getApiPaths=function(){return kCu};
Gx.prototype.getExtension=function(K){return _.T(K,NYC)};
Gx.prototype.JSC$10998_buildRequest=function(K,X,F){X.metadataUpdateRequest&&(X=X.metadataUpdateRequest,K.encryptedVideoId=X.encryptedVideoId,X.liveChat&&(X=X.liveChat,K.liveChat||(K.liveChat={}),X.performAsExternalChannelId&&(K.liveChat.performAsExternalChannelId=X.performAsExternalChannelId),X.source&&(K.liveChat.source=X.source)));var P;if(F==null?0:(P=F.liveChat)==null?0:P.liveChatSettings)K.liveChat||(K.liveChat={}),F=F.liveChat.liveChatSettings,K.liveChat.newLiveChatSettings=F,K.liveChat.newLiveChatSettingsMask||
(K.liveChat.newLiveChatSettingsMask={}),F.emojiReactionSet&&(K.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var lS=function(){};
_.r(lS,IE);lS.prototype.getApiPaths=function(){return dTu};
lS.prototype.getExtension=function(K){return _.T(K,_.Dft)};
lS.prototype.JSC$10998_buildRequest=function(K,X,F){F.continuation?K.continuation=F.continuation:X.videoId&&(K.videoId=X.videoId);F.clientParams&&(K.clientParams=F.clientParams)};var v5=function(){};
_.r(v5,IE);v5.prototype.getApiPaths=function(){return GCC};
v5.prototype.getExtension=function(K){return _.T(K,_.Lz)};
v5.prototype.JSC$10998_buildRequest=function(K,X){K.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";K.fetchCommentsParams={};X.videoId&&(K.fetchCommentsParams.encryptedVideoId=X.videoId);X.postId&&(K.fetchCommentsParams.postId=X.postId);X.externalChannelId&&(K.fetchCommentsParams.externalChannelId=X.externalChannelId);X.linkedCommentId&&(K.fetchCommentsParams.linkedCommentId=X.linkedCommentId);(0,_.T8.isEmpty)(K.fetchCommentsParams)&&delete K.fetchCommentsParams};var a1=function(){};
_.r(a1,IE);a1.prototype.getApiPaths=function(){return gM};
a1.prototype.JSC$10998_buildRequest=function(K){K.browseId="FEnotifications_inbox"};
a1.prototype.getExtension=function(K){return _.T(K,_.ss)};var tF=function(){};
_.r(tF,IE);tF.prototype.getApiPaths=function(){return GCC};
tF.prototype.JSC$10998_buildRequest=function(K,X){X.signal==="GET_NOTIFICATIONS_MENU"&&(K.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");X.ctoken&&(K.ctoken=X.ctoken)};
var MbU=function(){};
_.r(MbU,tF);MbU.prototype.getExtension=function(K){return _.T(K,_.ss)};
var nmL=function(){};
_.r(nmL,tF);nmL.prototype.getExtension=function(K){return _.T(K,deu)};var $9=function(){};
_.r($9,IE);$9.prototype.getApiPaths=function(){return V7t};
$9.prototype.getExtension=function(K){return _.T(K,_.ss)};
$9.prototype.JSC$10998_buildRequest=function(){};var O1=function(){};
_.r(O1,IE);O1.prototype.getApiPaths=function(){return XUt};
O1.prototype.getExtension=function(K){return _.T(K,kOV)||void 0};
O1.prototype.JSC$10998_buildRequest=function(K,X){X.params&&(K.params=X.params);X.secondaryParams&&(K.secondaryParams=X.secondaryParams)};var VK=function(){};
_.r(VK,IE);VK.prototype.getApiPaths=function(){return FiO};
VK.prototype.getExtension=function(K){return _.T(K,h0N)};
VK.prototype.JSC$10998_buildRequest=function(K,X){X.undo&&(K.undo=X.undo);X.serializedOptOut&&(K.serializedOptOut=X.serializedOptOut);X.serializedRecordInteractionsRequest&&(K.serializedRecordInteractionsRequest=X.serializedRecordInteractionsRequest)};var gX=function(){};
_.r(gX,IE);gX.prototype.getApiPaths=function(){return suC};
gX.prototype.getExtension=function(K){return _.T(K,mEZ)};
gX.prototype.JSC$10998_buildRequest=function(K,X){X.serializedInteractionsRequest&&(K.serializedRecordNotificationInteractionsRequest=X.serializedInteractionsRequest)};var E1=function(){};
_.r(E1,IE);E1.prototype.getApiPaths=function(){return uyq};
E1.prototype.getExtension=function(K){return _.T(K,poq)};
E1.prototype.JSC$10998_buildRequest=function(K,X,F){X=X===void 0?{}:X;F=F===void 0?{}:F;X.videoId?K.videoId=X.videoId:X.playlistId&&(K.playlistId=X.playlistId);var P,H=(P=X.offlineWebClientEligibility)!=null?P:F.offlineWebClientEligibility;H&&(K.offlineWebClientEligibility=H);var f;if(P=(f=X.preferredFormatType)!=null?f:F.preferredFormatType)K.preferredFormatType=P;var u;if(f=(u=X.lastOfflineQualitySettingsSavedMs)!=null?u:F.lastOfflineQualitySettingsSavedMs)K.lastOfflineQualitySettingsSavedMs=f;
X.params&&(K.params=X.params)};var bS=function(){};
_.r(bS,IE);bS.prototype.getApiPaths=function(){return aZ};
bS.prototype.getExtension=function(K){return _.T(K,_.jd)};
bS.prototype.JSC$10998_buildRequest=function(K,X,F){F=F===void 0?{}:F;X.token&&(K.continuation=X.token);F.formData&&(K.formData=F.formData)};var CN=function(){};
_.r(CN,IE);CN.prototype.getApiPaths=function(){return aZ};
CN.prototype.getExtension=function(K){return _.T(K,OuL)};
CN.prototype.JSC$10998_buildRequest=function(K,X,F){F=F===void 0?{}:F;K.continuation=F.continuation};var NX=function(){};
_.r(NX,IE);NX.prototype.getApiPaths=function(){return aZ};
NX.prototype.getExtension=function(K){return _.T(K,_.Lk)};
NX.prototype.JSC$10998_buildRequest=function(K,X){var F,P=X.panelIdentifier||((F=X.identifier)==null?void 0:F.tag);P&&(K.panelId=P);var H;if((H=X.globalConfiguration)==null?0:H.params){var f;K.params=(f=X.globalConfiguration)==null?void 0:f.params}};
_.Oi.Object.defineProperties(NX.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var iS=function(){};
_.r(iS,IE);iS.prototype.getApiPaths=function(){return aZ};
iS.prototype.getExtension=function(K){return _.T(K,APC)};
iS.prototype.JSC$10998_buildRequest=function(K,X){X.panelLoadingStrategy&&son(K,X.panelLoadingStrategy)};var x9=function(){};
_.r(x9,IE);x9.prototype.getApiPaths=function(){return aZ};
x9.prototype.getExtension=function(K){return _.T(K,b1E)};
x9.prototype.JSC$10998_buildRequest=function(K,X){X.loadingStrategy&&son(K,X.loadingStrategy)};var I1=function(){};
_.r(I1,IE);I1.prototype.getApiPaths=function(){return aZ};
I1.prototype.getExtension=function(K){return _.T(K,_.fS)};
I1.prototype.JSC$10998_buildRequest=function(K,X){X.panelLoadingStrategy&&son(K,X.panelLoadingStrategy)};var k9=function(){};
_.r(k9,IE);k9.prototype.getApiPaths=function(){return aZ};
k9.prototype.getExtension=function(K){return _.T(K,CRt)};
k9.prototype.JSC$10998_buildRequest=function(K,X){var F,P=(F=X.contentSourcePanelIdentifier)==null?void 0:F.tag;P&&(K.panelId=P);var H;if((H=X.globalConfiguration)==null?0:H.params){var f;K.params=(f=X.globalConfiguration)==null?void 0:f.params}};var K_=function(){};
_.r(K_,IE);K_.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
K_.prototype.getExtension=function(K){return _.T(K,NRQ)};
K_.prototype.JSC$10998_buildRequest=function(K,X){X.params&&(K.params=X.params)};var XH=function(){};
_.r(XH,IE);XH.prototype.getApiPaths=function(){return WiN};
XH.prototype.getExtension=function(K){return _.T(K,IBV)};
XH.prototype.JSC$10998_buildRequest=function(K,X){X.externalChannelId&&(K.externalChannelId=X.externalChannelId);X.superChatAction&&(K.superChatAction=X.superChatAction);X.superStickersAction&&(K.superStickersAction=X.superStickersAction)};var FH=function(){};
_.r(FH,IE);FH.prototype.getApiPaths=function(){return whU};
FH.prototype.getExtension=function(K){return _.T(K,$ON)||_.T(K,SAl)};
FH.prototype.JSC$10998_buildRequest=function(K,X){X.videoIds?K.videoIds=X.videoIds:X.videoId&&(K.videoIds=[X.videoId]);X.playlistId&&(K.playlistId=X.playlistId);X.params&&(K.params=X.params);K.excludeWatchLater=!1};var PB=function(){};
_.r(PB,IE);PB.prototype.getApiPaths=function(){return cWO};
PB.prototype.getExtension=function(K){return _.T(K,_.WH)};
PB.prototype.JSC$10998_buildRequest=function(K,X,F){F.create_playlist_title?K.title=F.create_playlist_title:X.title&&(K.title=X.title);if(F.create_playlist_privacy_status&&typeof F.create_playlist_privacy_status==="number"){a:{var P=F.create_playlist_privacy_status;if(P!==0){if(P===1){P="PUBLIC";break a}if(P===2){P="UNLISTED";break a}}P="PRIVATE"}K.privacyStatus=P}else X.privacyStatus&&(K.privacyStatus=X.privacyStatus);F.create_playlist_description&&(K.description=F.create_playlist_description);X.videoIds&&
(K.videoIds=X.videoIds);X.params&&(K.params=X.params);X.sourcePlaylistId&&(K.sourcePlaylistId=X.sourcePlaylistId)};var HB=function(){};
_.r(HB,IE);HB.prototype.getApiPaths=function(){return SLO};
HB.prototype.getExtension=function(K){return _.T(K,xOt)};
HB.prototype.JSC$10998_buildRequest=function(K,X){K.playlistId=X.playlistId};var sf=function(){};
_.r(sf,IE);sf.prototype.getApiPaths=function(){return lgE};
sf.prototype.getExtension=function(K){return _.T(K,ymV)};
sf.prototype.JSC$10998_buildRequest=function(K,X){X.playlistId&&(K.playlistId=X.playlistId);X.params&&(K.params=X.params)};var zL=function(){};
_.r(zL,IE);zL.prototype.getApiPaths=function(){return HEO};
zL.prototype.getExtension=function(K){return _.T(K,_.TI)||void 0};
zL.prototype.JSC$10998_buildRequest=function(K,X){X.actions&&(K.actions=X.actions);X.params&&(K.params=X.params);X.playlistId&&(K.playlistId=X.playlistId)};var f_=function(){};
_.r(f_,IE);_.z=f_.prototype;_.z.getApiPaths=function(){return zAC};
_.z.getExtension=function(K){return _.T(K,_.J6)};
_.z.JSC$10998_buildRequest=function(K,X){X.videoId&&(K.playerRequest={videoId:X.videoId},X.playerParams&&(K.playerRequest.params=X.playerParams),X.racyCheckOk&&(K.playerRequest.racyCheckOk=!!X.racyCheckOk),X.contentCheckOk&&(K.playerRequest.contentCheckOk=!!X.contentCheckOk));X.params&&(K.params=X.params);X.inputType&&(K.inputType=X.inputType);K.disablePlayerResponse=!0};
_.z.getRequestConfig=function(K){var X;(K=this.JSC$11005_getStoreKey(K))&&(X={storeStrategy:{storeKey:K}});_.S("web_log_reels_ticks")&&(X=X||{},X.requestTick="r_wrs",X.responseTick="r_wrr");return X};
_.z.JSC$11005_getStoreKey=function(K){K=this.getExtension(K);if(_.S("shorts_controller_retrieve_seedless_sequence_v2")){if((K==null?void 0:K.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.lX("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.S("web_prefetch_riw_for_next_video")||_.S("web_shorts_prefetch_service_enabled"))&&K!=null&&K.videoId){var X={videoId:K.videoId};K.params&&(X.params=K.params);return _.lX("reel_item_watch",X)}};var DN=function(){};
_.r(DN,IE);_.z=DN.prototype;_.z.getApiPaths=function(){return f9t};
_.z.getExtension=function(K){return _.T(K,_.J6)};
_.z.JSC$10998_buildRequest=function(K,X,F){F=F===void 0?{}:F;K.sequenceParams=X.sequenceParams;var P;((P=F)==null?0:P.contentPlaybackContext)&&_.S("web_shorts_prefetch_service_enabled")&&(K.playbackContext={contentPlaybackContext:F.contentPlaybackContext})};
_.z.JSC$11005_getStoreKey=function(K){if(_.S("shorts_controller_retrieve_seedless_sequence_v2")&&(K=this.getExtension(K),K==null?0:K.sequenceParams))return _.lX("reel_watch_sequence",{sequenceParams:K.sequenceParams})};
_.z.getRequestConfig=function(K){K=this.JSC$11005_getStoreKey(K);var X;K&&(X={storeStrategy:{storeKey:K}});_.S("reel_watch_sequence_request_log_ticks")&&(X=X||{},X.requestTick="r_wsrs",X.responseTick="r_wsrr",X.processorTick="r_wsrp");return X};
var u5=function(){};
_.r(u5,IE);u5.prototype.getApiPaths=function(){return f9t};
u5.prototype.getExtension=function(K){return _.T(K,_.jd)};
u5.prototype.JSC$10998_buildRequest=function(K,X,F){F=F===void 0?{}:F;X.token&&(K.continuation=X.token);var P;((P=F)==null?0:P.contentPlaybackContext)&&_.S("web_shorts_prefetch_service_enabled")&&(K.playbackContext={contentPlaybackContext:F.contentPlaybackContext})};
u5.prototype.getRequestConfig=function(K){K=this.JSC$11005_getStoreKey(K);var X;K&&(X={storeStrategy:{storeKey:K}});_.S("reel_watch_sequence_request_log_ticks")&&(X=X||{},X.requestTick="r_wsrs",X.responseTick="r_wsrr",X.processorTick="r_wsrp");return X};var qQ=function(){};
_.r(qQ,IE);qQ.prototype.getApiPaths=function(){return rWt};
qQ.prototype.getExtension=function(K){return _.T(K,_.Ptt)};
qQ.prototype.JSC$10998_buildRequest=function(K,X,F){F=F===void 0?{}:F;X.flagAction&&(K.action=X.flagAction);X.flagRequestType&&(K.flagRequestType=X.flagRequestType);X.additionalDetailCheckboxChecked&&(K.additionalDetailCheckboxChecked=X.additionalDetailCheckboxChecked);X.legalCheckboxChecked&&(K.legalCheckboxChecked=X.legalCheckboxChecked);X={};F.flag_issue_type!==void 0&&(X.issue=F.flag_issue_type);F.flag_affiliation!==void 0&&(X.affiliation=F.flag_affiliation);F.flag_full_name&&(X.fullName=F.flag_full_name);
Object.keys(X).length&&(K.legalReportDetails=X);if(F.flag_description||F.text)K.userComments=F.flag_description||F.text;X={};F.minutes!==void 0&&F.seconds!==void 0&&(X.minutes=F.minutes,X.seconds=F.seconds);F.vss_id&&(X.vssId=F.vss_id);Object.keys(X).length&&(K.videoReportDetails=X);X={};F.video_ids&&(X.videoIds=F.video_ids);F.impersonated_channel_url&&(X.impersonatedChannelUrl=F.impersonated_channel_url);Object.keys(X).length&&(K.channelAbuseReportDetails=X)};
_.Oi.Object.defineProperties(qQ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ja=function(){};
_.r(Ja,IE);Ja.prototype.getApiPaths=function(){return dAL};
Ja.prototype.getExtension=function(K){return _.T(K,d_T)};
Ja.prototype.JSC$10998_buildRequest=function(K,X){X.blockedForKidsContent&&(K.blockedForKidsContent=X.blockedForKidsContent)};var ZN=function(){};
_.r(ZN,IE);ZN.prototype.getApiPaths=function(){return qxL};
ZN.prototype.getExtension=function(K){return _.T(K,BBO)};
ZN.prototype.JSC$10998_buildRequest=function(K,X,F){K.params=X.params;F.impersonated_channel_url&&(K.impersonatedChannelUrl=F.impersonated_channel_url)};var Yy=function(){};
_.r(Yy,IE);Yy.prototype.getApiPaths=function(){return NzL};
Yy.prototype.getExtension=function(K){return _.T(K,_.e1C)};
Yy.prototype.JSC$10998_buildRequest=function(K,X){X.items&&(K.items=X.items);X.kidGaiaId&&(K.kidGaiaId=X.kidGaiaId)};var Ql=function(){};
_.r(Ql,IE);Ql.prototype.getApiPaths=function(){return yWT};
Ql.prototype.getExtension=function(K){return _.T(K,_.a1U)};
Ql.prototype.JSC$10998_buildRequest=function(K,X){X.params&&(K.params=X.params);X.targetId&&(K.targetId=X.targetId)};var MQ=function(){};
_.r(MQ,IE);MQ.prototype.getApiPaths=function(){return QuO};
MQ.prototype.getExtension=function(K){return _.T(K,etC)};
MQ.prototype.JSC$10998_buildRequest=function(K,X){X.externalVideoId&&(K.externalVideoId=X.externalVideoId);X.query&&(K.query=X.query);X.sourceTimelines&&(K.sourceTimelines=X.sourceTimelines)};var n_=function(){};
_.r(n_,IE);n_.prototype.getApiPaths=function(){return MEZ};
n_.prototype.getExtension=function(K){return _.T(K,_.jd)||void 0};
n_.prototype.JSC$10998_buildRequest=function(K,X){X.token&&(K.continuation=X.token)};
_.cQL=function(){};
_.r(_.cQL,IE);_.z=_.cQL.prototype;_.z.getApiPaths=function(){return MEZ};
_.z.getExtension=function(K){return _.T(K,_.Dm)||void 0};
_.z.isNavigationCommand=function(){return!0};
_.z.JSC$11005_getStoreKey=function(K,X){X=X===void 0?{}:X;if(!X.disableCache&&(K=this.getExtension(K))&&K.query)return X={query:K.query},K.params&&(X.params=K.params),_.lX("search",X)};
_.z.JSC$10998_buildRequest=function(K,X,F){X.query&&(K.query=X.query);X.params&&(K.params=X.params);if(!_.S("web_forward_suggest_stats_killswitch")){var P=_.T(X,o0t);P&&(K.suggestStats=P)}var H;!_.S("kevlar_searchbox_stats_killswitch")&&((H=F.tempData)==null?0:H.gs_l)&&!_.T(X,o0t)&&(K.webSearchboxStatsUrl="/search?oq="+(F.tempData.oq||"")+"&gs_l="+F.tempData.gs_l);var f;if((f=F.tempData)==null?0:f.entityMid)X=K.suggestionSearchParams||{},X.entityMid=F.tempData.entityMid,K.suggestionSearchParams=X};
_.z.getRequestConfig=function(K,X){X=X===void 0?{}:X;K=this.JSC$11005_getStoreKey(K,X);var F;K&&(F={storeStrategy:{storeKey:K}});_.S("web_log_search_ticks_ks")||(F=F||{},F.requestTick="sr_s",F.responseTick="sr_r");return F};var cB=function(){};
_.r(cB,IE);cB.prototype.getApiPaths=function(){return $AW};
cB.prototype.getExtension=function(K){return _.T(K,Y_L)};
cB.prototype.JSC$10998_buildRequest=function(K,X){X.serializedGetSharingProviderDataParams&&(K.serializedGetSharingProviderDataParams=X.serializedGetSharingProviderDataParams)};var p_=function(){};
_.r(p_,IE);p_.prototype.getApiPaths=function(){return OpV};
p_.prototype.getExtension=function(K){return _.T(K,IRQ)};
p_.prototype.JSC$10998_buildRequest=function(K,X){X.endpoint&&(K.endpoint=X.endpoint);X.action&&(K.action=X.action)};var BB=function(){};
_.r(BB,IE);BB.prototype.getApiPaths=function(){return olZ};
BB.prototype.getExtension=function(K){return _.T(K,I1t)};
BB.prototype.JSC$10998_buildRequest=function(K,X){K.videoId=X.videoId;X.scheduledRedirectMetadataSourceVideoId&&(K.scheduledRedirectMetadata={sourceVideoId:X.scheduledRedirectMetadataSourceVideoId})};var Sz=function(){};
_.r(Sz,IE);Sz.prototype.getApiPaths=function(){return BkZ};
Sz.prototype.getExtension=function(K){return _.T(K,_.C4Z)};
Sz.prototype.JSC$10998_buildRequest=function(K,X){K.params=X.params;K.correctionText=X.correctionText};var oe=function(){};
_.r(oe,IE);oe.prototype.getApiPaths=function(){return fz3};
oe.prototype.getExtension=function(K){return _.T(K,_.RtL)};
oe.prototype.JSC$10998_buildRequest=function(K,X){X.params&&(K.params=X.params);K.searchQuery=X.searchQuery;K.languageCode=X.languageCode;K.kind=X.kind;K.name=X.name;K.externalVideoId=X.externalVideoId};var L_=function(){};
_.r(L_,IE);L_.prototype.getApiPaths=function(){return hAV};
L_.prototype.getExtension=function(K){return _.T(K,D2N)};
L_.prototype.JSC$10998_buildRequest=function(K,X){X.params&&(K.params=X.params)};var TL=function(K){this.JSC$15953_storeWithEntities=K};
_.r(TL,IE);TL.prototype.getApiPaths=function(){return qLZ};
TL.prototype.getExtension=function(K){return _.T(K,qHQ)||_.T(K,ZzV)};
TL.prototype.JSC$10998_buildRequest=function(K,X,F){F.client_data&&(K.clientData=F.client_data);if(X.commerceActionConfig){var P=X.commerceActionConfig;X=P.actionId;P=P.commerceActionParams;X&&(K.actionId=X);P&&(K.commerceActionParams=P)}else{var H=X.actionId,f=X.commerceActionParams;F=X.entityKeys;H&&(K.actionId=H);f&&(K.commerceActionParams=f);var u;X=(P=this.JSC$15953_storeWithEntities)==null?void 0:(u=P.getState())==null?void 0:u.entities;if(F&&X){P=[];u=_.D(F);for(F=u.next();!F.done;F=u.next())if(H=
F.value,F=_.I7(H).entityType,H=_.FF(X,F,H))f={},P.push((f[F]=H,f));K.entityMutationPayloads=P}}};
TL.prototype.getRequestConfig=function(K){var X,F=(X=_.T(K,qHQ))==null?void 0:X.requestSequenceType;if(F&&K.clickTrackingParams&&F!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:K.clickTrackingParams,sequenceType:F}}};
TL[$0]=[FJ];var rv=function(){};
_.r(rv,IE);rv.prototype.getApiPaths=function(){return mTC};
rv.prototype.getExtension=function(K){return _.T(K,_.d2L)};
rv.prototype.JSC$10998_buildRequest=function(K,X){X.feedbackData&&(K.feedbackData=X.feedbackData);X.params&&(K.itemParams=X.params)};
_.Oi.Object.defineProperties(rv.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Aa=function(){};
_.r(Aa,IE);Aa.prototype.getApiPaths=function(){return GPT};
Aa.prototype.getExtension=function(K){return _.T(K,ent)};
Aa.prototype.JSC$10998_buildRequest=function(K,X,F){F.payments_payload&&(K.paymentsPayload=F.payments_payload);F.offer_params&&(K.offerParams=F.offer_params);X.transactionParams&&(K.transactionParams=X.transactionParams)};var jz=function(){};
_.r(jz,IE);jz.prototype.getApiPaths=function(){return l9V};
jz.prototype.getExtension=function(K){return _.T(K,_.Rnt)};
jz.prototype.JSC$10998_buildRequest=function(K,X,F){F=F===void 0?{}:F;X.buybucketParams&&(K.buybucketData={params:X.buybucketParams},X.stickerParams?K.buybucketData.stickerParams=X.stickerParams:(F.rich_chat_message?K.buybucketData.richChatMessage=F.rich_chat_message:F.chat_message_text&&(K.buybucketData.chatMessageText=F.chat_message_text),F.purchase_price_micros&&(K.buybucketData.purchasePriceMicros=F.purchase_price_micros.toString())));X.donationAmountMicros&&(K.tipAmountMicros=X.donationAmountMicros,
X.tipParams&&(K.tipParams=X.tipParams));X.offerParams&&(K.offerParams=X.offerParams);X.productData&&(K.productData=X.productData);X.transactionParams&&(K.transactionParams=X.transactionParams)};var wv=function(){};
_.r(wv,IE);wv.prototype.getApiPaths=function(){return vuT};
wv.prototype.getExtension=function(K){return _.T(K,m2V)};
wv.prototype.JSC$10998_buildRequest=function(K,X){X.updateFopParams&&(K.updateFopParams=X.updateFopParams)};var yl=function(){};
_.r(yl,IE);yl.prototype.getApiPaths=function(){return a9L};
yl.prototype.getExtension=function(K){return _.T(K,_.i6)};
yl.prototype.JSC$10998_buildRequest=function(K,X){X.couponCode&&(K.couponCode=X.couponCode);X.params&&(K.itemParams=X.params)};var WB=function(){};
_.r(WB,IE);WB.prototype.getApiPaths=function(){return tEu};
WB.prototype.getExtension=function(K){return _.T(K,_.JpU)};
WB.prototype.JSC$10998_buildRequest=function(K,X,F){F=F===void 0?{}:F;X.params&&(K.params=X.params);F.ctk&&(K.clientToken=F.ctk)};var dv=function(K){this.JSC$15988_storeWithEntities=K};
_.r(dv,IE);dv.prototype.getApiPaths=function(){return $TE};
dv.prototype.getExtension=function(K){return _.T(K,_.eg)};
dv.prototype.JSC$10998_buildRequest=function(K,X,F){F.purchase_price_micros&&(K.productData={pdgData:{purchasePriceMicros:F.purchase_price_micros.toString()}},F.rich_chat_message&&(K.productData.pdgData.richChatMessage=F.rich_chat_message),F.currency_code&&(K.productData.pdgData.currencyCode=F.currency_code));X.transactionParams&&(K.transactionParams=X.transactionParams);X.clientLocationContext&&(K.clientLocationContext=X.clientLocationContext);F.payments_payload&&(K.paymentsPayload=F.payments_payload);
F.funds_guarantee_callback_client_data&&(K.fundsGuaranteeCallbackClientData=F.funds_guarantee_callback_client_data);var P,H;F=(P=this.JSC$15988_storeWithEntities)==null?void 0:(H=P.getState())==null?void 0:H.entities;if(X.entityKeys&&F){P=[];X=_.D(X.entityKeys);for(H=X.next();!H.done;H=X.next()){var f=H.value;H=_.I7(f).entityType;if(f=_.FF(F,H,f)){var u={};P.push((u[H]=f,u))}}K.entityMutationPayloads=P}};
dv[$0]=[FJ];var ez=function(){};
_.r(ez,IE);ez.prototype.getApiPaths=function(){return OEL};
ez.prototype.getExtension=function(K){return _.T(K,U2V)};
ez.prototype.JSC$10998_buildRequest=function(K,X,F){F=F===void 0?{}:F;F.backend_analytics&&(K.serializedBackendAnalyticsEvent=F.backend_analytics);X.offerParams&&(K.offerParams=X.offerParams)};var Re=function(){};
_.r(Re,IE);Re.prototype.getApiPaths=function(){return a9L};
Re.prototype.getExtension=function(K){return _.T(K,KR3)};
Re.prototype.JSC$10998_buildRequest=function(K,X){X.params&&(K.itemParams=X.params)};var Uf=function(){};
_.r(Uf,IE);Uf.prototype.getApiPaths=function(){return VEC};
Uf.prototype.getExtension=function(K){return _.T(K,_.cpW)};
Uf.prototype.JSC$10998_buildRequest=function(K,X,F){F.resume_time_ms&&(K.resumeTimeMs=F.resume_time_ms);X.pauseParams&&(K.pauseParams=X.pauseParams)};var ha=function(){};
_.r(ha,IE);ha.prototype.getApiPaths=function(){return guC};
ha.prototype.getExtension=function(K){return _.T(K,_.hnU)};
ha.prototype.JSC$10998_buildRequest=function(K,X,F){F=F===void 0?{}:F;F.c&&(K.redeemCode=F.c);F.rd&&(K.riskData=F.rd);F.ctk&&(K.clientToken=F.ctk)};var mw=function(){};
_.r(mw,IE);mw.prototype.getApiPaths=function(){return EuW};
mw.prototype.getExtension=function(K){return _.T(K,_.pHL)};
mw.prototype.JSC$10998_buildRequest=function(K,X){X.resumeParams&&(K.resumeParams=X.resumeParams)};var GL=function(K,X){this.clientName=K;this.defaultExpirationDelayMs=X};
GL.prototype.put=function(K,X){var F=this,P;return _.q(function(H){P=Object.assign({},X.data);P.key=K;P.clientName=F.clientName;P.expireTimestampMs===void 0&&(P.expireTimestampMs=(Math.round((0,_.CG)())+F.defaultExpirationDelayMs).toString());return H.return(F.putInternal(K,P))})};
GL[$0]=[M5,egQ];var p1V=function(){GL.apply(this,arguments);this.JSC$16018_responseStore=new Map};
_.r(p1V,GL);_.z=p1V.prototype;_.z.get=function(K){var X=this;return _.q(function(F){return F.return(FM(X,K))})};
_.z.putInternal=function(K,X){var F=this,P,H,f;return _.q(function(u){P=F.defaultExpirationDelayMs;X.expireTimestampMs&&(P=Number(X.expireTimestampMs)-Math.round((0,_.CG)()),H=_.kU("mweb_override_response_store_expiration_ms"),H>0&&H<P&&(P=H));f=setTimeout(function(){F.remove(K)},P);
F.JSC$16018_responseStore.set(K,{entryData:X,timer:f});_.JT(u)})};
_.z.remove=function(K){var X=this;return _.q(function(F){B3u(X,K);_.JT(F)})};
_.z.removeAll=function(){var K=this;return _.q(function(X){K.JSC$16018_responseStore.forEach(function(F){clearTimeout(F.timer)});
K.JSC$16018_responseStore.clear();_.JT(X)})};
_.z.has=function(K){return!!this.JSC$16018_responseStore.get(K)};
_.z.getKeys=function(){return this.JSC$16018_responseStore.keys()};
var FM=function(K,X){if(K=K.JSC$16018_responseStore.get(X))return new _.XM(K.entryData)},B3u=function(K,X){var F=K.JSC$16018_responseStore.get(X);
F&&(clearTimeout(F.timer),K.JSC$16018_responseStore.delete(X))};var zx4;var u2y=function(K,X,F){GL.call(this,K,X);this.token=F};
_.r(u2y,GL);_.z=u2y.prototype;_.z.get=function(K){var X=this,F,P;return _.q(function(H){return H.nextAddress==1?_.Y(H,DPl(X.token),2):H.nextAddress!=3?(F=H.yieldResult,_.Y(H,F.get("ResponseStore",[K,X.clientName]),3)):(P=H.yieldResult)?H.return(new _.XM(P)):H.return(void 0)})};
_.z.putInternal=function(K,X){var F=this,P;return _.q(function(H){if(H.nextAddress==1)return _.Y(H,DPl(F.token),2);P=H.yieldResult;return _.Y(H,P.put("ResponseStore",X),0)})};
_.z.remove=function(K){var X=this,F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,DPl(X.token),2);F=P.yieldResult;return P.return(F.delete("ResponseStore",[K,X.clientName]))})};
_.z.removeAll=function(){var K=this,X;return _.q(function(F){if(F.nextAddress==1)return _.Y(F,DPl(K.token),2);X=F.yieldResult;return _.Y(F,UUE(X,IDBKeyRange.only(K.clientName)),0)})};
_.z.has=function(){throw Error("Ri");};_.l5=new _.Oh("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var Suu=function(K){var X;this.stateTagsData=(X=K.responseContext)==null?void 0:X.stateTags},omT=function(K){var X;
return((X=K.stateTagsData)==null?void 0:X.stateTagsModified)||[]};var LGQ;LGQ=function(K){this.JSC$16031_responseStore=K};
_.U$=function(K,X,F){if(!_.S("state_tags_killswitch")){var P=new Suu(X);if(omT(P).length>0){var H=K.JSC$16031_responseStore.getKeys();H=_.D(H);for(var f=H.next();!f.done;f=H.next()){f=f.value;var u=FM(K.JSC$16031_responseStore,f);if(u){var J=_.Kk(u);a:{var Z=void 0;u=omT(P);J=((Z=(new Suu(J)).stateTagsData)==null?void 0:Z.relevantStateTags)||[];Z=_.D(J);for(J=Z.next();!J.done;J=Z.next())if(J=J.value,J.stateTag!=null&&u.includes(J.stateTag)&&J.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){u=
!0;break a}u=!1}u&&B3u(K.JSC$16031_responseStore,f)}}}}var M;P=(M=X.responseContext)==null?void 0:M.maxAgeSeconds;_.S("web_prefetch_riw_for_next_video")&&!P&&X.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(P=3600);F&&P&&Number(P)>0&&(X=NB(X,P),K.JSC$16031_responseStore.put(F,new _.XM(X)))};
LGQ.prototype.handleResponse=function(K,X){if(!X)throw Error("Si");var F,P;X=(F=X.config)==null?void 0:(P=F.storeStrategy)==null?void 0:P.storeKey;_.U$(this,K,X)};
LGQ[$0]=[_.Kf];_.V$9=new _.Oh("STORE_RESPONSE_PROCESSOR_TOKEN");var T3L=function(K){this.JSC$16034_responseStore=K};
T3L.prototype.handleResponse=function(K,X){if(X.input.match(_.t7(f9t))){var F;if(K==null?0:(F=K.entries)==null?0:F.length)for(K=_.D(K.entries),X=K.next();!X.done;X=K.next()){F=X.value.command;var P=void 0;X=(P=_.T(F,_.J6))==null?void 0:P.unserializedPrefetchData;if(!F||!X)break;P=(new f_).JSC$11005_getStoreKey(F);var H=_.T(X,T9Z),f=void 0,u=void 0,J=void 0,Z=_.kU("web_shorts_prefetch_service_ttl_seconds")>0?_.kU("web_shorts_prefetch_service_ttl_seconds"):Number((J=(f=H)==null?void 0:(u=f.responseContext)==
null?void 0:u.maxAgeSeconds)!=null?J:3600);P&&Z>0&&(H=NB(H,Z),this.JSC$16034_responseStore.put(P,new _.XM(H)));F=(new PU).JSC$11005_getStoreKey(F);X=_.T(X,f1t);f=H=P=void 0;u=_.kU("web_shorts_prefetch_service_ttl_seconds")>0?_.kU("web_shorts_prefetch_service_ttl_seconds"):Number((f=(P=X)==null?void 0:(H=P.responseContext)==null?void 0:H.maxAgeSeconds)!=null?f:3600);F&&u>0&&(X=NB(X,u),this.JSC$16034_responseStore.put(F,new _.XM(X)))}}};
T3L[$0]=[_.Kf];var rQU=function(K){this.innertubeTransportService=K};
rQU[$0]=[_.L$];var AQt=new _.Oh("SUBMIT_API_SERVICE_TOKEN");var vB=function(){this.scheduler=_.Bj()},jhT;
vB.prototype.pause=function(){throw Error("Ti");};
vB.prototype.resume=function(){throw Error("Ti");};
vB.prototype.queue=function(K){var X=this,F=_.Ue(),P=_.cu(this.scheduler,function(){try{var H;if(_.Hn.instance)var f=_.Hn.instance;else{var u=new _.nG("Error: Unexpected uninitialized CommandHandler.");_.jF(u);f=void 0}(H=f)==null||H.resolveCommand(K.command);F.resolve()}catch(J){F.reject(J)}});
F.promise.thenCatch(function(H){H instanceof _.UD&&X.scheduler.cancelJob(P)});
return F.promise};
vB.prototype.queueAll=function(K){var X=new Map;K=_.D(K);for(var F=K.next();!F.done;F=K.next())F=F.value,X.set(F.id,this.queue(F));return X};var yQQ=function(K,X){var F=this;this.taskModel=K;this.onTaskCancelledCallback=X;this.resolver=_.Ue();K=K.proto.prefetchConfig;if(!K)throw Error("Ui");if(!K.prefetchAction)throw Error("Vi");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(P){P instanceof _.UD&&(w1t(F,F.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),F.onTaskCancelledCallback(F.taskModel.id,F.jobId),F.tick("pcc"));
throw P;});
this.timerName=this.taskModel.id;_.rb(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},WGt=function(K){switch(K.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},w1t=function(K,X){_.T6({prefetchInfo:{cancellationReason:X}},K.timerName)};
yQQ.prototype.tick=function(K){_.Ac(K,void 0,this.timerName)};var ta=function(){var K=this;this.scheduler=_.Bj();this.maxInflightTasks=_.kU("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.kU("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new F5t;this.onTaskCancelled=function(X,F){F&&K.scheduler.cancelJob(F);d3O(K,X);ae(K,3)}},ePV=function(){ta.instance||(ta.instance=new ta);
return ta.instance};
ta.prototype.pause=function(){this.prefetchCoordinatorState=0};
ta.prototype.resume=function(){ae(this,0)};
ta.prototype.queue=function(K){K=RPt(this,K);ae(this,1);return K};
ta.prototype.queueAll=function(K){var X=new Map;K=_.D(K);for(var F=K.next();!F.done;F=K.next())F=F.value,X.set(F.id,RPt(this,F));ae(this,1);return X};
var RPt=function(K,X){var F=K.allPrefetchTasks.get(X.id);if(F)return F.cancellablePromise;try{var P=new yQQ(X,K.onTaskCancelled)}catch(f){return _.pB(f)}F=P;F.tick("pcq");var H={prefetchInfo:{taskId:F.taskModel.id,isPrefetch:!0,fetchAction:F.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:F.taskModel.command.clickTrackingParams}};F.taskModel.csn&&(H.clientScreenNonce=F.taskModel.csn);_.T6(H,F.timerName);K.allPrefetchTasks.set(X.id,P);K.drainingHeap.insert(-WGt(P),P);return P.cancellablePromise},
ae=function(K,X){K.prefetchCoordinatorState===X&&(K.prefetchCoordinatorState=2,U3W(K))},U3W=function(K){for(var X={};K.prefetchCoordinatorState!==0;X={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(K.inflightPrefetchTasks.size>=K.maxInflightTasks){K.prefetchCoordinatorState=3;break}X.prefetchTask$jscomp$1=K.drainingHeap.remove();if(!X.prefetchTask$jscomp$1){K.prefetchCoordinatorState=1;break}X.taskId$jscomp$3=X.prefetchTask$jscomp$1.taskModel.id;if(K.allPrefetchTasks.has(X.taskId$jscomp$3)){var F=-1;K.coordinatorTimeoutMs>0&&(F=_.cu(K.scheduler,function(P){return function(){$y(K,P.taskId$jscomp$3,Error("Wi"))}}(X),K.coordinatorTimeoutMs));
K.inflightPrefetchTasks.set(X.taskId$jscomp$3,F);if(!K.JSC$16052_commandHandler){if(!_.Hn.instance){$y(K,X.taskId$jscomp$3,Error("Xi"));continue}K.JSC$16052_commandHandler=_.Hn.instance}a:switch(X.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":F=1;break a;default:F=0}X.prefetchTask$jscomp$1.jobId=K.scheduler.addJob(function(P){return function(){P.prefetchTask$jscomp$1.tick("pcr");try{K.JSC$16052_commandHandler.resolveCommand(P.prefetchTask$jscomp$1.taskModel.command)||
$y(K,P.taskId$jscomp$3,Error("Yi"))}catch(H){$y(K,P.taskId$jscomp$3,H)}}}(X),F,0)}}},hPO=function(K,X){(X=d3O(K,X))!=null&&(X.resolver.resolve(),X.tick("pce"));
ae(K,3)},$y=function(K,X,F){(X=d3O(K,X,F))!=null&&(X.resolver.reject(F),X.tick("pcc"),w1t(X,"CANCELLATION_REASON_ERROR"),Math.random()<=_.kU("prefetch_coordinator_error_logging_sampling_rate")&&(F=new _.nG("Prefetch Command failed.",X.taskModel.id,F.message),_.jF(F)));
ae(K,3)},d3O=function(K,X,F){var P=K.allPrefetchTasks.get(X);
P?((F=K.inflightPrefetchTasks.get(X))&&F!==-1&&K.scheduler.cancelJob(F),K.inflightPrefetchTasks.delete(X),K.allPrefetchTasks.delete(X)):_.yy(new _.nG("Unexpected missing prefetch task when deleting task.",X,F==null?void 0:F.message));return P};var m3Z=function(K,X,F,P,H){this.id=K;this.triggerOn=X;this.cancelOn=F;this.command=P;this.proto=H};
_.Oi.Object.defineProperties(m3Z.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var G$O=function(){this.JSC$16057_prefetchCoordinator=ePV();jhT||(jhT=new vB);this.defaultCoordinator=jhT},l2O;
G$O.getInstance=function(){l2O||(l2O=new G$O);return l2O};
G$O.prototype.get=function(K){switch(K){case 0:return this.JSC$16057_prefetchCoordinator;default:return this.defaultCoordinator}};var Of=function(){this.coordinatorSupplier=G$O.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},tbN=function(K){var X=_.AD()||void 0,F=Object.keys(vmt)[0];
if(F){var P=K.taskIdByTriggerId.get(F);if(P!=null){K.taskIdByTriggerId.delete(F);F=[];P=_.D(P);for(var H=P.next();!H.done;H=P.next())if(H=K.tasks.get(H.value))X!=="UNDEFINED_CSN"&&(H.csn=X),F.push(H);F=Z69(F);X=[];F=_.D(F);for(P=F.next();!P.done;P=F.next()){H=_.D(P.value);P=H.next().value;H=H.next().value;P=K.coordinatorSupplier.get(P).queueAll(H);P=_.D(P);var f=P.next();for(H={};!f.done;H={taskId$jscomp$9:void 0},f=P.next()){var u=_.D(f.value);f=u.next().value;u=u.next().value;H.taskId$jscomp$9=
f;f=u;X.push(H.taskId$jscomp$9);K.queuedPromisesByTask.set(H.taskId$jscomp$9,_.Yv(f,function(J){return function(){a2C(K,J.taskId$jscomp$9)}}(H)))}}}}else _.yy(new _.nG("Unexpected malformed TriggerEvent."))};
Of.prototype.trigger=function(K,X){var F=this,P=this.tasks.get(K);if(!P||this.queuedPromisesByTask.has(K))return!1;$3u(this,K,P.triggerOn);X!=="UNDEFINED_CSN"&&(P.csn=X);X=this.coordinatorSupplier.get(P.taskType).queue(P);this.queuedPromisesByTask.set(K,_.Yv(X,function(){a2C(F,K)}));
return!0};
Of.prototype.cancel=function(K){var X=this.queuedPromisesByTask.get(K);if(X)X.cancel();else return a2C(this,K)};
var a2C=function(K,X){K.queuedPromisesByTask.delete(X);var F=K.tasks.get(X);if(!F)return!1;K.tasks.delete(X);$3u(K,X,F.triggerOn);(F=JOl(F.cancelOn))&&(K=K.taskIdByCancelId.get(F))&&K.delete(X);return!0},$3u=function(K,X,F){(F=Object.keys(F)[0])&&(K=K.taskIdByTriggerId.get(F))&&K.delete(X)};var vmt={taskRegistered:{}},Vl=function(){Of.instance||(Of.instance=new Of);this.JSC$16066_taskManager=Of.instance};
_.r(Vl,wQ);
Vl.prototype.resolveCommand=function(K){var X=this,F,P;return _.q(function(H){F=_.T(K,rPL);if((P=F)==null||!P.tasks){var f=new _.nG("RegisterTasksCommand is missing tasks.");_.jF(f);return H.return()}f=X.JSC$16066_taskManager;for(var u=_.D(F.tasks),J=u.next();!J.done;J=u.next())if(J=J.value,J=J.id&&J.triggerOn&&J.cancelOn&&J.command?new m3Z(J.id,J.triggerOn,J.cancelOn,J.command,J):void 0,J){var Z=Object.keys(J.triggerOn)[0];if(Z){var M=JOl(J.cancelOn);M?(f.tasks.set(J.id,J),f.taskIdByTriggerId.has(Z)||f.taskIdByTriggerId.set(Z,
new Set),f.taskIdByTriggerId.get(Z).add(J.id),f.taskIdByCancelId.has(M)||f.taskIdByCancelId.set(M,new Set),f.taskIdByCancelId.get(M).add(J.id)):_.yy(new _.nG("Unexpected malformed cancelOn field."))}else _.yy(new _.nG("Unexpected malformed triggerOn field."))}else _.yy(new _.nG("Unexpected malformed Task proto."));tbN(X.JSC$16066_taskManager);_.JT(H)})};var OVu={},VbL=(OVu.rendered={priority:0,callback:function(){var K={};K.numCpu=navigator.hardwareConcurrency;var X={};X.ramGb=_.FP.navigator.deviceMemory;var F={staticContext:{}};X.ramGb&&Yq9(X.ramGb)&&(F.staticContext.memoryTotalKbytes=(X.ramGb*1048576).toString());K.numCpu&&Yq9(K.numCpu)&&(F.staticContext.cpuCores=K.numCpu);if(_.S("web_enable_adaptive_appl_signal")){K={};X=_.yi("rses_dpj");var P=_.yi("rsef_dpj");X&&X>0&&P&&P>0&&(X=Math.ceil(P-X),X>0&&(K.loadLatency=X));K.loadLatency&&Yq9(K.loadLatency)&&
(F.appL=K.loadLatency.toString())}_.LL("applicationStarted",F)}},OVu);var gmC=new _.Oh("WINDOW_ON_ERROR"),Emu=new _.Oh("ERROR_WEIGHT_MAPS"),bVV=new _.Oh("INIT_ERROR");var C2Q={},N3C=(C2Q.initialized={priority:10,callback:function(K){K.injector.resolve(bVV)()}},C2Q);var iVC=function(){},x3E=function(){var K=_.mz("meta_logger_impl");
K||(K=new iVC,_.gS("meta_logger_impl",K));return K},I2N=function(){x3E().csiSubscriptionKey=pvq("meta_logging_csi_event",function(K){var X=K.timerName;
if(K=K.timelineData){_.rb(X,{startTime:K.startTime},X);K.infos&&_.T6(K.infos,X);for(var F=_.D(Object.keys(K.ticks)),P=F.next();!P.done;P=F.next())P=P.value,_.Ac(P,K.ticks[P],X)}})};
iVC.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&oxP(this.csiSubscriptionKey)};var k$E={},KAV=(k$E.initialized={priority:10,callback:function(){I2N()}},k$E);var X4N=function(K,X){this.innertubeClientName=K;this.JSC$16082_prefCookie=X};
X4N.prototype.record=function(){if(_.S("web_li_record_binary_eval_tick")){var K=_.yi("rsef_dpj");var X=_.yi("rses_dpj");K=K!==void 0&&X!==void 0?Math.round(K-X):void 0;if(K!==void 0&&K>0){X=_.KE(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var F=this.poolSize;if(!(X.valuesSeen>=1E9)){if(X.valuesSample.length<F)X.valuesSample.push(K);else{var P=Math.floor(Math.random()*(X.valuesSeen+1));P<F&&(X.valuesSample[P]=K)}X.valuesSeen+=1}_.kl(this.storagePrefix+"-"+this.innertubeClientName,
X,2592E3);K=X.valuesSample;X=Qoy(K);K=K.length<5?void 0:X<400?1:X<1700?2:3;K!==void 0&&(this.JSC$16082_prefCookie.set(this.cookiePrefix+this.innertubeClientName,K),this.JSC$16082_prefCookie.save())}}else _.XE(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$16082_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$16082_prefCookie.save()};
X4N[$0]=[M5,gD];var FAZ=function(){X4N.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.r(FAZ,X4N);var PVZ=new _.Oh("PAGE_LOAD_TIME_TOKEN");var H2L=new _.Oh("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var gv=function(K,X){this.JSC$16105_storeWithEntities=K;this.JSC$16105_commandHandler=X;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
gv.prototype.start=function(){this.JSC$16105_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
gv.prototype.observeDownloadingEntities=function(){var K=_.BCl(this.JSC$16105_storeWithEntities.getState().entities).map(function(P){return S_y(P)});
if(K.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var X={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:TaT()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.bY(_.uY("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$16105_commandHandler.resolveCommand(X)}this.downloadingEntities=K}else if(this.downloadingEntities.length){var F=pxq(this.JSC$16105_storeWithEntities.getState().entities).map(function(P){return S_y(P)});
this.downloadingEntities.filter(function(P){return F.includes(P)}).length&&(K={openPopupAction:xWq()},this.JSC$16105_commandHandler.resolveCommand(K));
this.downloadingEntities=[]}};
gv[$0]=[FJ,_.xU];var sSZ;_.Ef=function(K,X,F,P,H,f,u,J){this.JSC$16108_playerApiPromise=K;this.JSC$16108_commandHandler=X;this.JSC$16108_screenManager=F;this.offlineWebClientEligibility=P;this.JSC$16108_prefStorage=H;this.JSC$16108_actionRouter=f;this.entityTypeMap=u;this.JSC$16108_persistentStorePromiseAccessor=J;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
sSZ=function(){var K=_.i9().resolve(_.Ef),X;_.q(function(F){if(F.nextAddress==1)return K.downloadFailureListenerBound?F.return():_.Y(F,K.JSC$16108_playerApiPromise,2);X=F.yieldResult;X.addEventListener("onOfflineOperationFailure",function(P){if(P.failureReason&&P.entityKey&&P.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(P.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var H=_.I7(P.entityKey).entityId;H&&K.JSC$16108_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
H)}else if(_.S("kevlar_woffle")){H=K.JSC$16108_commandHandler;var f=H.resolveCommand;P=P.failureReason;var u=_.uY("TRANSFER_FAILED",void 0,"Download failed");P==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(u=_.uY("STORAGE_FULL",void 0,"Storage full"));f.call(H,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.bY(u),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
K.downloadFailureListenerBound=!0;_.JT(F)})};
_.Ef.prototype.deleteVideo=function(K,X){var F=this,P,H,f;return _.q(function(u){if(u.nextAddress==1)return _.Y(u,F.JSC$16108_playerApiPromise,2);P=u.yieldResult;f={offlineLoggingData:{offlineDeleteReason:(H=X)!=null?H:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.Y(u,P.queueOfflineAction(K,F.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",f),0)})};
_.Ef.prototype.pauseVideoDownload=function(K){var X=this,F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,X.JSC$16108_playerApiPromise,2);F=P.yieldResult;F.pauseVideoDownload(K);_.JT(P)})};
_.Ef.prototype.resumeVideoDownload=function(K){var X=this,F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,X.JSC$16108_playerApiPromise,2);F=P.yieldResult;return _.Y(P,F.resumeVideoDownload(K),0)})};
_.Ef[$0]=[_.bC,_.xU,_.n3,H2L,N5,tp,i3N,FE];var zqZ=new _.Oh("DOWNLOAD_STATE_STORE_TOKEN");var fiu=function(K,X){this.JSC$16127_persistentStorePromiseAccessor=K;this.store=X;this.upliftCompletionResolver=new _.K$},qJC=function(){var K=_.i9().resolve(DtC),X;
_.q(function(F){switch(F.nextAddress){case 1:if(K.upliftImplPromise)return F.return(K.upliftImplPromise);_.s2(F,2);K.upliftImplPromise=u4E(K);return _.Y(F,K.upliftImplPromise,4);case 4:K.upliftCompletionResolver.resolve();_.Gy(F,3);break;case 2:throw X=_.qc(F),K.upliftCompletionResolver.reject(X),X;case 3:return F.return(K.upliftImplPromise)}})},u4E=function(K){var X,F,P;
return _.q(function(H){switch(H.nextAddress){case 1:return _.RU("LOGGED_IN")?_.Y(H,K.JSC$16127_persistentStorePromiseAccessor(),2):H.return();case 2:X=H.yieldResult;if(!X)return _.Ac("vdeur"),H.return();_.Ac("vdeus");_.s2(H,3);return _.Y(H,JiN(X),5);case 5:F=H.yieldResult;K.store.dispatch(w0n(F));X.observe(function(f){yLl(K.store,f)});
_.Gy(H,4);break;case 3:throw P=_.qc(H),_.Ac("vdeur"),P;case 4:_.Ac("vdeuc"),_.JT(H)}})},JiN=function(K){var X;
return _.q(function(F){if(F.nextAddress==1)return _.Y(F,oIT(K),2);X=F.yieldResult;return F.return(X.reduce(function(P,H){if(!H.data||!H.key||!H.entityType)return P;P[H.entityType]||(P[H.entityType]={});P[H.entityType][H.key]=H.data;return P},{}))})};
fiu[$0]=[FE,_.jE];var DtC;DtC=new _.Oh("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.b5=new _.Oh("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var C_=function(K,X){this.JSC$16130_persistentStorePromiseAccessor=K;this.transportService=X};
C_.prototype.refresh=function(){var K=this,X,F,P,H;return _.q(function(f){if(f.nextAddress==1)return _.RU("LOGGED_IN")?_.Y(f,K.JSC$16130_persistentStorePromiseAccessor(),2):f.return();if(f.nextAddress!=3)return(X=f.yieldResult)?_.Y(f,Pnl(X),3):f.return();if((F=f.yieldResult)&&!(Number(F.data.refreshTimestampMs||0)<(0,_.CG)()))return f.return();P={browseId:"SPaccount_downloads"};H=_.t7(gM);_.rz(K.transportService,P,H).then(function(u){var J;if(X&&(u==null?void 0:(J=u.responseContext)==null?void 0:
J.maxAgeSeconds)!==0){var Z;J=(u==null?void 0:(Z=u.responseContext)==null?void 0:Z.maxAgeSeconds)||604800;Z=String(Math.floor((0,_.CG)())+J*1E3);X.put("service:downloads_settings:fallback",new _.XM({innertubeResponse:u,refreshTimestampMs:Z}))}});
_.JT(f)})};
C_[$0]=[_.l5,_.L$];var NQ=function(K,X){this.JSC$16134_playerPromise=K;this.store=X;this.started=!1};
NQ.prototype.start=function(){var K=this,X;return _.q(function(F){if(F.nextAddress==1)return K.started?F.return():_.Y(F,K.JSC$16134_playerPromise,2);X=F.yieldResult;X.addEventListener("onOrchestrationBecameLeader",K.updateIsLeader.bind(K,!0));X.addEventListener("onOrchestrationLostLeader",K.updateIsLeader.bind(K,!1));if(X.isOrchestrationLeader)K.updateIsLeader(X.isOrchestrationLeader());else{var P=new _.nG("Function isOrchestrationLeader is undefined",{"player.isReady":X.isReady(),"player.playVideo":X.playVideo?
"defined":"undefined"});_.jF(P);K.updateIsLeader(!1)}K.started=!0;_.JT(F)})};
NQ.prototype.updateIsLeader=function(K){this.store.dispatch(_.iY({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:K}}))};
NQ[$0]=[_.bC,_.jE];var Z2Z=function(K,X){this.networkStatusManager=K;this.JSC$16137_prefStoragePromise=X;this.redirectsToPreload=["https://youtube.com"]},YJE=function(){var K=_.i9().resolve(Z2Z),X,F,P,H,f,u;
_.q(function(J){switch(J.nextAddress){case 1:return _.Y(J,K.JSC$16137_prefStoragePromise,2);case 2:X=J.yieldResult;if(!(F=X)){J.jumpTo(3);break}return _.Y(J,X.get("yt-redirect-prefetch-id"),4);case 4:F=J.yieldResult;case 3:if(F||!K.networkStatusManager.isNetworkAvailable())return J.return();P={cache:"reload",redirect:"manual"};H=_.D(K.redirectsToPreload);f=H.next();case 5:if(f.done){if(!X){J.jumpTo(0);break}return _.Y(J,X.set("yt-redirect-prefetch-id",!0,86400),0)}u=f.value;_.s2(J,8);return _.Y(J,
_.FP.fetch(u,P),10);case 10:_.Gy(J,6);break;case 8:_.qc(J);case 6:f=H.next(),J.jumpTo(5)}})};var i5=function(K){K?(this.container=K,this.containerWasInjected=!0):this.containerWasInjected=!1};
i5.prototype.openDialog=function(K,X,F){var P=this,H;return _.q(function(f){(H=P.container)==null||H.openDialog(K,X,F);_.JT(f)})};
i5.prototype.closeDialog=function(){var K=this,X;return _.q(function(F){(X=K.container)==null||X.closeDialog();_.JT(F)})};
i5.prototype.isDialogOpen=function(){var K=this,X,F;return _.q(function(P){return P.return((F=(X=K.container)==null?void 0:X.isDialogOpen())!=null?F:!1)})};
i5[$0]=[_.Nu(o9O)];_.QSu=new _.Oh("POPUP_CONTROLLER_TOKEN");var MDO=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
MDO.prototype.registerPanel=function(K,X){if(K){this.panelMap.set(K,X);var F=this.pendingPanelResolvers.get(K);F&&(F.resolve(X),this.pendingPanelResolvers.delete(K))}};
MDO.prototype.getPanel=function(K){var X=this,F;return _.q(function(P){return(F=X.panelMap.get(K))?P.return(F):P.return(nZL(X,K))})};
var nZL=function(K,X){var F,P;return _.q(function(H){if(F=K.pendingPanelResolvers.get(X))return H.return(F.promise);P=new _.K$;K.pendingPanelResolvers.set(X,P);return H.return(P.promise)})},ciU=function(K){MDO.call(this);
var X=this;this.popupController=K;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return X.panelMap.size}}};
_.r(ciU,MDO);_.z=ciU.prototype;_.z.getReloadContinuation=function(K){var X=this,F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,X.getPanel(K),2);F=P.yieldResult;return P.return(F.getReloadContinuation())})};
_.z.showPanel=function(K,X,F,P,H,f,u){var J=this,Z,M,n,c;return _.q(function(B){if(B.nextAddress==1){u&&J.updatePanelContinuationDatas.set(K,u);if((Z=F)==null?0:(M=Z.engagementPanelPopupPresentationConfig)==null?0:M.popupType){n=F.engagementPanelPopupPresentationConfig.popupType;H===void 0&&(H=document.body);var L=B.return,A=J.popupController,d=A.openPopup;a:switch(n){case "PANEL_POPUP_TYPE_DIALOG":var R="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":R="DROPDOWN";break a;default:throw Error("$i`"+
n);}return L.call(B,d.call(A,K,X,R,H))}return _.Y(B,J.getPanel(K),2)}c=B.yieldResult;(X||f)&&c.updatePanel(X,!1,P,f);c.showPanel(P);_.JT(B)})};
_.z.hidePanel=function(K){var X=this,F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,X.getPanel(K),2);F=P.yieldResult;F.hidePanel();X.popupController.closePopup(K);_.JT(P)})};
_.z.isVisible=function(K,X){var F=this,P;return _.q(function(H){if(H.nextAddress==1)return X&&!F.panelMap.has(K)?H.return(!1):_.Y(H,F.getPanel(K),2);P=H.yieldResult;return H.return(P.isVisible())})};
_.z.updatePanel=function(K,X,F,P,H,f){F=F===void 0?!1:F;var u=this,J;return _.q(function(Z){if(Z.nextAddress==1){if(!X&&!H)return Z.return();f&&u.updatePanelContinuationDatas.set(K,f);return _.Y(Z,u.getPanel(K),2)}J=Z.yieldResult;J.updatePanel(X,F,P,H);_.JT(Z)})};
_.z.registerPanelContent=function(K,X){K&&this.panelContentMap.set(K,X)};
_.z.getPanelContent=function(K){return this.panelContentMap.get(K)};
_.z.getUpdatePanelContinuationData=function(K){return this.updatePanelContinuationDatas.get(K)};
ciU[$0]=[_.QSu];var xy=function(K,X){this.innertubeTransportService=K;this.JSC$16153_screenManager=X},p4t=function(K){var X;
return!((X=K.panelLoadingStrategy)==null||!X.requestTemplate)};
xy.prototype.makeRequest=function(K){var X=this,F,P;return _.q(function(H){switch(H.nextAddress){case 1:if(!p4t(X)){H.jumpTo(2);break}_.s2(H,3);return _.Y(H,_.Rx(X.innertubeTransportService,K),5);case 5:return F=H.yieldResult,F?H.return(F.content):(_.jF(Error("aj")),H.return(void 0));case 3:P=_.qc(H),_.jF(P);case 2:return H.return(void 0)}})};
xy.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
xy.prototype.execute=function(K){var X=this,F,P,H,f,u,J,Z,M,n,c;return _.q(function(B){if(B.nextAddress==1){F=K;P=F.data;H=F.fallbackVe;f=F.parentVe;u=F.createScreenConfig;J=F.renderFn;Z=F.command;X.panelLoadingStrategy=P;var L,A,d=((L=X.panelLoadingStrategy)==null?0:L.screenVe)?(A=X.panelLoadingStrategy)==null?void 0:A.screenVe:H;d&&_.IZ(X.JSC$16153_screenManager,d,f,u);return(M=X.getContent())?_.Y(B,J(M),2):B.jumpTo(2)}return B.nextAddress!=4?p4t(X)?_.Y(B,X.makeRequest(Z),4):B.return():(c=n=B.yieldResult)?
_.Y(B,J(c),0):B.return()})};
xy[$0]=[_.L$,_.n3];var Ie=function(){};
Ie.prototype.getContainer=function(){return _.Ec()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Ie.prototype.openSheet=function(K,X){var F=this,P,H,f,u,J,Z;return _.q(function(M){switch(M.nextAddress){case 1:return P={stack:[],error:void 0,hasError:!1},_.s2(M,2,3),H=CJ,_.Y(M,F.isSheetOpen(),5);case 5:f=M.yieldResult;Wnl(P,Wzn(H));if(f){if(X&&F.currentTarget===X)return(u=F.getContainer())==null||u.closeSheet(),M.return();F.pendingData={data:K,target:hgt(F,X)};return M.return()}K.viewModel&&(K={viewModel:K.viewModel});(J=F.getContainer())==null||J.openSheet(K,X);F.currentTarget=X;case 3:_.fZ(M);
dKn(P);_.uK(M,0);break;case 2:Z=_.qc(M),P.error=Z,P.hasError=!0,M.jumpTo(3)}})};
Ie.prototype.closeSheet=function(){var K=this,X;return _.q(function(F){if(F.nextAddress==1)return _.Y(F,(X=K.getContainer())==null?void 0:X.closeSheet(),2);if(F.nextAddress!=4)return K.currentTarget=void 0,K.pendingData?_.Y(F,K.openSheet(K.pendingData.data,K.pendingData.target),4):F.jumpTo(0);K.pendingData=void 0;_.JT(F)})};
Ie.prototype.isSheetOpen=function(){var K=this,X,F;return _.q(function(P){return P.return((F=(X=K.getContainer())==null?void 0:X.isSheetOpen())!=null?F:!1)})};
var hgt=function(K,X){if(!_.S("web_parent_target_for_sheets"))return X;var F,P;return(P=(F=K.getContainer())==null?void 0:F.getParentTarget(X))!=null?P:X};var Pj=window.documentPictureInPicture;var UPy=_.lr(["dark"]),hxl=_.lr(["system-icons"]),mPd=_.lr(["typography"]),GNP=_.lr(["lang"]),lUw=_.lr(["style"]),Wuy=_.lr(["dir"]),dPT=_.lr(["rounded-container"]),exT=_.lr(["style"]),aUy=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],ky=function(K){this.JSC$16165_clientRoot=K;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
ky.prototype.openWindow=function(K){var X=this,F,P;return _.q(function(H){if(H.nextAddress==1)return window.documentPictureInPicture&&_.dw()&&!X.currentPipWindow?_.Y(H,(F=Pj?Pj:null)==null?void 0:F.requestWindow(K),2):H.return(!1);if(H.nextAddress!=3){P=H.yieldResult;if(!P)return H.return(!1);P.addEventListener("pagehide",function(){B5t(X)});
P.addEventListener("resize",X.handlePipWindowResize);X.pipWindowResizeDelay=new _.Ei(function(){X.currentPipWindow&&_.xr(X.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.q4(X.currentPipWindow.innerWidth,X.currentPipWindow.innerHeight)])},P);
vIn(P);$Pw(P);return _.Y(H,yOy(P),3)}if(!AOy())return H.return(!1);X.currentPipWindow=P;X.JSC$16165_eventForwarder=tBw(P,X.JSC$16165_clientRoot);X.pipWindowResizeDelay.start();return H.return(!0)})};
ky.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var B5t=function(K){if(K.currentPipWindow){var X,F;(X=Pj?Pj:null)==null||(F=X.window)==null||F.close();K.currentPipWindow.removeEventListener("resize",K.handlePipWindowResize);var P;(P=K.pipWindowResizeDelay)==null||P.dispose();K.pipWindowResizeDelay=void 0;var H;(H=K.JSC$16165_eventForwarder)==null||H.stop();K.JSC$16165_eventForwarder=void 0;X=_.D(K.onCloseCallbacks);for(F=X.next();!F.done;F=X.next())F=F.value,F();K.onCloseCallbacks=[];K.currentPipWindow=null}};
ky.prototype.getWindow=function(){return this.currentPipWindow};
var SJN=function(K,X){var F;(F=K.onCloseCallbacks)==null||F.push(X)};
ky.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.dw()};
_.Oi.Object.defineProperties(ky.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
ky[$0]=[ORU];var oZL=new _.Oh("PICTURE_IN_PICTURE_CONTROLLER");var O6T=function(K,X){this.lengthY=this.lengthX=0;this.lengthX=X.x-K.x;this.lengthY=X.y-K.y};var LAN=function(){},vVC=function(K,X){var F;
(F=K.headerElement)==null||F.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:X}))};var T5O=function(){};
T5O.prototype.openPopup=function(K,X,F,P){var H=this,f;return _.q(function(u){if(!H.container)return u.return();f={openPopupAction:{popup:X,popupType:F,uniqueId:K}};return u.return(H.container.handleOpenPopupAction(f,P))})};
T5O.prototype.closePopup=function(K){this.container&&this.container.closePopup(K)};var riE=function(){this.openTunnels=new Map},zNn=function(K,X,F){if(Ni4(F)){var P=_.lB(F,"gclid");
F={handleEvent:function(J){X&&!X.closed&&typeof X.postMessage==="function"&&J&&J.origin&&J.source===X&&J.data&&J.data.action==="gcl_setup"&&X.postMessage(Object.assign({},{action:"gcl_transfer"},P&&{gclid:P},{gadSource:2}),J.origin)}};
for(var H=_.D(K.openTunnels),f=H.next();!f.done;f=H.next()){var u=_.D(f.value);f=u.next().value;u=u.next().value;if(f.closed)try{window.removeEventListener("message",u),K.openTunnels.delete(f)}catch(J){_.jF(J)}}X&&K.openTunnels.size<15&&(K.openTunnels.set(X,F),window.addEventListener("message",F))}};var AiL=function(){this.clientParams=new Map},$KC=function(K){for(var X=_.D(K.clientParams.keys()),F=X.next();!F.done;F=X.next())F=F.value,F.startsWith("yt-mini-app-share")&&K.clientParams.delete(F)};var jSN=function(K,X){_.LJ.call(this);var F=this;this.shortsController=K;this.storeWithShorts=X;K=_.Dg(this.storeWithShorts,_.o6l,function(P){if(P){var H,f=(H=F.shortsController.getRoot())==null?void 0:H.getPlayer(),u;(H=(u=F.shortsController.alternativePlayerContainerElement)==null?void 0:u.getPlayerContainer())&&(f==null||f.appendTo(H))}else{var J;u=(J=F.shortsController.alternativePlayerContainerElement)==null?void 0:J.getPlayerContainer().querySelector("#player");H=F.shortsController.activeIndex;
(J=(f=F.shortsController.getRoot())==null?void 0:f.querySelector('ytd-reel-video-renderer[id="'+H+'"] #player-container'))&&(u==null||u.appendTo(J,void 0,!0))}});
this.addOnDisposeCallback(K)};
_.r(jSN,_.LJ);var Kr=function(K,X,F,P,H){var f=this;this.storeWithShorts=K;this.ephemeralResponseStore=X;this.store=F;this.innertubeTransportService=P;this.innertubeTransportLoader=H;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.rn(_.sD);this.isShortsPipActive=_.rn(_.zX);this.nextReelVe=_.cO(56921);this.prevReelVe=_.cO(56922);this.backButtonVe=_.cO(22156);this.TEST_ONLY={getActiveModules:function(){return f.activeModules}}},FrT,PJT,w4L;
Kr.prototype.initOrDisposeActiveModules=function(K){K?this.activeModules.push(new jSN(this,this.storeWithShorts)):(_.xp(this.activeModules),this.activeModules.length=0)};
Kr.prototype.getRoot=function(){return this.rootElement};
Kr.prototype.setActiveIndex=function(K){this.activeIndex=K};
_.ifC=function(K,X){var F,P,H,f,u,J,Z;return _.q(function(M){switch(M.nextAddress){case 1:return F=new f_,(P=F.JSC$11005_getStoreKey(X))&&K.ephemeralResponseStore.has(P)?_.Y(M,K.ephemeralResponseStore.get(P),7):_.Y(M,w4L(K,X),4);case 4:H=M.yieldResult;if(!P){M.jumpTo(3);break}f=NB(H,3600);return _.Y(M,K.ephemeralResponseStore.put(P,new _.XM(f)),3);case 7:H=(u=M.yieldResult)==null?void 0:_.Kk(u);case 3:return((J=H)==null?0:J.replacementEndpoint)&&(Z=_.T(H.replacementEndpoint,_.J6))&&H.sequenceContinuation&&
(Z.sequenceParams=H.sequenceContinuation),M.return(H)}})};
FrT=function(K,X){X=(new DN).JSC$11005_getStoreKey(X);return!!X&&K.ephemeralResponseStore.has(X)};
PJT=function(K,X,F){var P,H,f,u,J;_.q(function(Z){if(Z.nextAddress==1){P=new DN;H=P.JSC$11005_getStoreKey(X);if(!H)return Z.return();if(F.reelWatchSequenceResponse)return f=NB(F.reelWatchSequenceResponse,3600),K.ephemeralResponseStore.put(H,new _.XM(f)),Z.jumpTo(0);if(!K.ephemeralResponseStore.has(H))return Z.jumpTo(0);J=F;return _.Y(Z,K.ephemeralResponseStore.get(H),4)}J.reelWatchSequenceResponse=(u=Z.yieldResult)==null?void 0:_.Kk(u);_.JT(Z)})};
w4L=function(K,X){var F=F===void 0?{}:F;var P,H,f;return _.q(function(u){switch(u.nextAddress){case 1:if(K.innertubeTransportService){P=K.innertubeTransportService;u.jumpTo(2);break}if(!K.innertubeTransportLoader){_.UN(Error("cj"));u.jumpTo(2);break}return _.Y(u,K.innertubeTransportLoader(),4);case 4:P=u.yieldResult;case 2:return _.Y(u,(H=P)==null?void 0:_.Rx(H,X,F),5);case 5:return f=u.yieldResult,u.return(f)}})};
_.Oi.Object.defineProperties(Kr.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
Kr[$0]=[t1U,_.Kf,FJ,_.Nu(_.L$),_.Nu(mhZ)];_.yiW=new _.Oh("STORAGE_MANAGER_TOKEN");var WAE=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},dtQ;
WAE.prototype.enqueue=function(K,X){X===1?this.currentPersistentToast=K:this.queue.push(K);this.openToast()};
WAE.prototype.openToast=function(){var K;(K=this.currentToast)!=null&&K.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.eqQ=new _.Oh("TOAST_MANAGER_TOKEN");var RqC;_.UtT=_.$c(function(K){return _.Q("basic-content-view-model",{class:_.HO("ytBasicContentViewModelHost",_.ag(K.className))},_.Q(_.p,{cond:function(){return K.data().headline},
then:function(X){return _.Q("div",{class:"ytBasicContentViewModelHeadline"},_.Q(_.Oy,{text:X}))}}),_.Q(_.cd,{each:function(){return K.data().paragraphs||[]},
keyBy:"INDEX"},function(X){return _.Q("div",{class:"ytBasicContentViewModelParagraph"},_.Q(_.p,{cond:function(){var F=X();return!!(F.header||F.customHeader||F.headline)},
then:function(){return _.Q(RqC,{paragraph:X})}}),_.Q(_.p,{cond:function(){return X().asset||X().text},
then:function(){return _.Q("div",{class:"ytBasicContentViewModelParagraphContent"},_.Q(_.p,{cond:function(){return X().asset},
then:function(F){return _.Q("div",{class:"ytBasicContentViewModelParagraphAsset"},_.Q(_.Md,{data:F},{contentPreviewImageViewModel:_.bJ}))}}),_.Q(_.p,{cond:function(){return X().text},
then:function(F){return _.Q("div",{class:"ytBasicContentViewModelParagraphText"},_.Q(_.Oy,{text:F}))}}))}}))}))},"me");
RqC=_.$c(function(K){var X=K.paragraph;return _.Q(_.ID,null,_.Q(_.p,{cond:function(){return X().headline},
then:function(F){return _.Q(_.Oy,{text:F,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.Q(_.Md,{data:function(){return X().header||X().customHeader}},{sectionHeaderViewModel:function(F){return _.Q(_.XZ,{data:F.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"ne");var mtu=_.$c(function(K){var X=_.t_(),F=_.DF(function(P){if(!_.Rk(_.e6(P),X.value,["A".toString(),"BUTTON".toString()])){var H;(H=K.expandedCallback)==null||H.call(K,!1)}});
return _.Q("yt-expandable-metadata-header-view-model",{el:X,class:"ytExpandableMetadataHeaderViewModelHost"},_.Q(_.p,{cond:function(){return K.expanded()},
then:function(){return _.Q("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":F},_.Q("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.Q(_.p,{cond:function(){return K.data().expandedTitleImage},
then:function(P){return _.Q("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.Q(_.av,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:P}))}}),_.Q("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.Q("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.Q(_.Oy,{text:function(){return K.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.Q(_.Oy,{text:function(){return K.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.Q(_.Oy,{text:function(){return K.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.Q("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.Q(_.Md,{data:function(){return K.data().infoButton}},{buttonViewModel:_.Af}),_.Q(_.Md,{data:function(){return K.data().collapseButton}},{buttonViewModel:function(P){return _.Q(_.Af,{data:P.data,
onClick:function(){var H;(H=K.expandedCallback)==null||H.call(K,!1)}})}})))},
else:function(){return _.Q(hqL,Object.assign({},K))}}))},"oe"),GfU=_.$c(function(K){return _.Q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.Q(_.p,{cond:function(){return K.data().collapsedLabelImage},
then:function(X){return _.Q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.Q(_.av,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:X,alt:""}))}}),_.Q(_.Oy,{text:function(){return K.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"pe"),hqL=_.$c(function(K){return _.Q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.DF(function(){var X;return void((X=K.expandedCallback)==null?void 0:X.call(K,!0))})},_.Q("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.Q(_.p,{cond:function(){return K.data().collapsedImage},
then:function(X){return _.Q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.Q(_.av,{width:16,height:16,data:X,alt:""}))}}),_.Q(_.p,{cond:function(){return K.data().showLeadingCollapsedLabel},
then:function(){return _.Q(GfU,Object.assign({},K))}}),_.Q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.Q(_.Oy,{text:function(){return K.data().collapsedTitle}}))),_.Q("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.Q(_.p,{cond:function(){return!K.data().showLeadingCollapsedLabel},
then:function(){return _.Q(GfU,Object.assign({},K))}}),_.Q(_.Md,{data:function(){return K.data().infoButton}},{buttonViewModel:_.Af}),_.Q(_.Md,{data:function(){return K.data().expandButton}},{buttonViewModel:function(X){return _.Q(_.Af,{data:X.data,
onClick:function(){var F;(F=K.expandedCallback)==null||F.call(K,!0)}})}})))},"qe");_.liN=_.$c(function(K){var X=_.D(_.qB(function(){return K.data().initiallyExpanded})),F=X.next().value,P=X.next().value,H,f=(H=_.i9().resolve(_.Nu(_.m$)))==null?void 0:H(),u=function(){var J=K.data().colorData;
if(J)return f?J==null?void 0:J.darkColorPalette:J==null?void 0:J.lightColorPalette};
return _.Q("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.Je({"background-color":function(){var J=u();return(J==null?0:J.section2Color)?_.wq(J.section2Color):""}})},_.Q(_.Md,{data:function(){return K.data().header}},{expandableMetadataHeaderViewModel:function(J){return _.Q(mtu,{data:J.data,
expanded:function(){return!!F()},
expandedCallback:function(Z){P(Z)}})}}),_.Q(_.p,{cond:function(){return F()},
then:function(){return _.Q("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.Q(_.Md,{data:function(){return K.data().expandedContent}},{horizontalShelfViewModel:function(J){return _.Q(_.Au,{data:J.data,
includeMargin:!0,forceNarrowLayout:!0,palette:u})},
videoSummaryContentViewModel:function(J){return _.Q(c5N,{data:J.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(J){return _.Q(_.iJ,{data:J.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(J){return _.Q(_.UtT,{data:J.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.Q(_.Md,{data:function(){return K.data().expandedBottomButtons}},{buttonViewModel:function(J){return _.Q("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.Q(_.Af,{data:J.data}))}}))}}))},"re");var vZT=_.$c(function(K){var X=K.text;var F=K.marqueeSpacing;var P=K.scrollDelay;var H=K.scrollDuration;var f=K.enableMarqueeScroll;K=K.large;var u=_.D(_.u_(!1,void 0,"kfNqfd")),J=u.next().value,Z=u.next().value,M=_.D(_.u_(0,void 0,"bYgZbf"));u=M.next().value;var n=M.next().value,c=_.t_();M=_.t_();var B=_.t_(),L=_.i9().resolve(_.lH);_.rs(function(){if(f()){var R=B.value.getBoundingClientRect().width,l=c.value.getBoundingClientRect().width;if(R>l){var a=(L==="ltr"?-1:1)*(R+(F?F():16));Promise.resolve().then(function(){Z(!0);
n(a)})}}},"giRlme");
var A={},d={};return _.Q("marquee-scroll",{class:_.HO("ytMarqueeScrollHost",(A.ytMarqueeScrollHostLarge=K,A)),el:c},_.Q("div",{id:"marquee-scroll-inner-container",class:_.HO("ytMarqueeScrollInnerContainer",(d.ytMarqueeScrollAnimationEnabled=function(){return J()},d)),
el:M,style:_.Je({gap:F?(0,_.oO)(F):"16px","animation-duration":H?fUE(H):"16s","animation-delay":P?fUE(P):"3s","--marquee-translate":(0,_.oO)(u)})},_.Q("span",{el:B,dir:"auto"},_.Q(_.Oy,{text:X,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.Q(_.p,{cond:J,then:function(){return _.Q("span",{"aria-hidden":"true",dir:"auto"},_.Q(_.Oy,{text:X,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"se");_.aiT=_.$c(function(K){var X=K.data;var F=K.overlayDensity;K=_.DF(function(){X().onTapCommand&&_.e9(X().onTapCommand);return!1});
var P=_.irP(),H={};return _.Q("reel-sound-metadata-view-model",{class:_.HO("ytReelSoundMetadataViewModelHost",(H.ytReelSoundMetadataViewModelHostLarge=function(){return(F==null?void 0:F())===1},H)),
"on:click":K,tabindex:0,role:"button","on:keydown":P},_.Q("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.Q(_.p,{cond:function(){return X().musicIcon},
then:function(f){return _.Q(_.av,{data:f,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.Q("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.Q(vZT,{text:function(){return X().soundMetadata},
enableMarqueeScroll:function(){return!!X().enableMarqueeScroll},
large:function(){return(F==null?void 0:F())===1}}))))},"te");var tDT,$tT,X3,EZO,CVN,gZL,xtT,i2L;tDT=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];$tT=_.kU("wil_icon_max_concurrent_fetches",Infinity);
X3=function(K,X,F){var P=this;this.iconSet=K;this.appDirection=X;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.FP.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.S("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.S("wil_icon_network_first");this.renderWhenIdle=_.S("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.S("wil_icon_load_immediately");this.isPurging=!1;K=function(){P.cacheStorageAvailable&&(P.cacheStorageAsync=_.FP.caches.open("yt-icons").then(function(f){return P.cacheStorageSync=f}).catch(function(){P.cacheStorageAvailable=!1}))};
F=(F==null?void 0:F())||{};F=_.D(Object.entries(F));for(X=F.next();!X.done;X=F.next()){var H=_.D(X.value);X=H.next().value;H=H.next().value;H=Dq(H);O2W(H);this.iconCache[X]=H.cloneNode(!0)}this.isPurging=VDT(this);this.isPurging instanceof Promise?this.isPurging.then(K):K()};
_.mby=function(K,X){var F=K.resolveIcon(X);return F?K.renderingMode===1?gZL(K,F,K.renderingMode):(X=K.iconCache[F.url])?(X=X.cloneNode(!0),EZO(K,X),gZL(K,F,K.renderingMode,X)):_.b2t(K,F).then(function(P){var H=P?0:1;EZO(K,P);return gZL(K,F,H,P)}):(_.wc(new _.nG("Icon not found",{iconShape:X})),function(){})};
EZO=function(K,X){if(X){K.counter+=1;K="_yt"+K.counter;X=[X].concat(_.LZ(X.getElementsByTagName("*")));X=_.D(X);for(var F=X.next();!F.done;F=X.next())if(F=F.value,F.tagName==="style"&&F.textContent)F.textContent=CVN(F.textContent,K,!0);else for(var P=_.D(F.attributes),H=P.next();!H.done;H=P.next()){H=H.value;H.name==="id"&&(H.value+=K);["mask","fill","clip-path"].includes(H.name)&&(H.value=CVN(H.value,K));if(H.name==="style"){var f=F.style;try{f.cssText=CVN(f.cssText,K,!0)}catch(n){var u=void 0,J=
void 0,Z=void 0,M=void 0;F3({error:((u=n)==null?void 0:(Z=(J=u).toString)==null?void 0:Z.call(J))||"",el:F.outerHTML,style:!!f,cssText:(M=f)==null?void 0:M.cssText})}}H.name==="xlink:href"&&(H.value=H.value.replace(/#(.*)/,"#$1"+K))}}};
CVN=function(K,X,F){var P=/url\(["']?#(.*?)["']?\)/;(F===void 0?0:F)&&(P=/url\(["']?#(.*?)["']?\)/g);return K.replace(P,"url(#$1"+X+")")};
gZL=function(K,X,F,P){return function(H,f){var u=Object.assign({},{iconColor:"currentcolor",iconWidth:X.size+"px",iconHeight:X.size+"px",iconDisplay:"block"},f);f=_.nJ("DIV");var J=u.iconColor,Z=u.iconFilter;u="width: "+u.iconWidth+"; height: "+u.iconHeight+"; display: "+u.iconDisplay+";";Z&&(u+=" filter: "+Z+";");F===0&&(u+=" fill: "+J+";");F===1&&(Z=X.url,u+=" -webkit-mask: url("+Z+") no-repeat center / cover; mask: url("+(Z+") no-repeat center / cover; background-color: ")+J);X.allowMirroring&&
K.appDirection==="rtl"&&(u+=" transform: scale(-1, 1); transform-origin: center center;");f.setAttribute("style",u);F===0&&P&&f.appendChild(P);H.appendChild(f)}};
_.b2t=function(K,X){var F,P,H;return _.q(function(f){F=function(u){return wF(u)};
P=X.url;if(!N5C(P))throw Error("dj");H=i2L(K,P);return f.return(H.then(function(u){return u.clone().text()}).then(function(u){var J=F(u);
u=X.size;var Z=_.nJ("DIV");_.v$(Z,J);J=_.c_(Z.firstElementChild!==void 0?Z.firstElementChild:_.TwV(Z.firstChild,!0));u=O2W(J,u);K.iconCache[P]=u.cloneNode(!0);delete K.responsePromises[P];return u}).catch(function(){}))})};
xtT=function(K){var X,F=(X=K.requestAninmationFrameResolver)==null?void 0:X.promise;F||(K.requestAninmationFrameResolver=new _.K$,F=K.requestAninmationFrameResolver.promise,_.FP.requestAnimationFrame(function(){var P;(P=K.requestAninmationFrameResolver)==null||P.resolve();K.requestAninmationFrameResolver=null}));
return F};
i2L=function(K,X){var F,P;return _.q(function(H){if(H.nextAddress==1)return K.waitForAnimationFrame?_.Y(H,xtT(K),2):H.jumpTo(2);F=K.responsePromises[X];F||(P=function(){var f,u,J;return _.q(function(Z){switch(Z.nextAddress){case 1:if(!K.cacheStorageAvailable){f=void 0;Z.jumpTo(2);break}if(u=K.cacheStorageSync){Z.jumpTo(3);break}return _.Y(Z,K.cacheStorageAsync,4);case 4:u=Z.yieldResult;case 3:f=u;case 2:return J=f,K.isNetworkFirstStrategy?Z.return(K.fetchAndUpdateCache(X,J).catch(K.getCacheStorageResponse.bind(K,
X,J))):Z.return(K.getCacheStorageResponse(X,J).catch(K.fetchAndUpdateCache.bind(K,X,J)))}})},F=K.renderWhenIdle?new Promise(function(f,u){_.cu(_.A9,function(){P().then(f).catch(u)},10)}):P(),K.responsePromises[X]=F);
return H.return(F.catch(function(f){delete K.responsePromises[X];F3({error:(f==null?0:f.toString)?f.toString():"",url:X});throw f;}))})};
X3.prototype.fetchAndUpdateCache=function(K,X){var F=this;return _.q(function(P){return P.return(IiE(F,K).then(function(H){kfZ(F,K,H,X);return H}))})};
var IiE=function(K,X){var F;return _.q(function(P){if(K.numFetches<$tT)return K.numFetches+=1,P.return(K4w(K,X).finally(function(){--K.numFetches;if(Object.keys(K.queuedResponseResolvers).length){var H=Object.keys(K.queuedResponseResolvers)[0],f=K.queuedResponseResolvers[H];delete K.queuedResponseResolvers[H];f.resolve(IiE(K,H))}}));
F=new _.K$;K.queuedResponseResolvers[X]=F;return P.return(F.promise)})},K4w=function(K,X,F){F=F===void 0?2:F;
var P;return _.q(function(H){P={credentials:"same-origin",priority:"low"};return H.return(_.FP.fetch(X,P).then(function(f){return f.ok?f:Promise.reject(Error("ej`"+f.status+"`"+f.statusText))}).catch(function(f){if(F>0)return K4w(K,X,F-1);
throw f;}))})},kfZ=function(K,X,F,P){_.q(function(H){return P?H.return(new Promise(function(f){_.cu(_.A9,function(){var u,J;
return _.q(function(Z){switch(Z.nextAddress){case 1:if(!K.isNetworkFirstStrategy){u=void 0;Z.jumpTo(2);break}return _.Y(Z,P.match(X).catch(function(){}),3);
case 3:u=Z.yieldResult;case 2:if(J=u){Z.jumpTo(4);break}return _.Y(Z,P.put(X,F.clone()).catch(function(M){F3({error:(M==null?0:M.toString)?M.toString():"",url:X})}),4);
case 4:f(),_.JT(Z)}})},50)})):H.return()})};
X3.prototype.getCacheStorageResponse=function(K,X){return _.q(function(F){return X?F.return(X.match(K).then(function(P){return P&&P.ok?P:Promise.reject()})):F.return(Promise.reject())})};
var O2W=function(K,X){X===void 0||K.getAttribute("viewBox")||K.setAttribute("viewBox","0 0 "+X+" "+X);K.setAttribute("focusable","false");K.setAttribute("aria-hidden","true");try{K.style.pointerEvents="none",K.style.display="inherit",K.style.width="100%",K.style.height="100%"}catch(H){var F;F3({error:((F=H)==null?0:F.toString)?H.toString():""});try{K.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(f){var P;F3({error:((P=f)==null?0:P.toString)?f.toString():
""})}}return K},N5C=function(K){for(var X=_.D(tDT),F=X.next();!F.done;F=X.next())if(K.startsWith(F.value)&&K.endsWith(".svg"))return!0;
return!1};
X3.prototype.resolveIcon=function(K){return this.iconSet.resolveIcon(K)};
var F3=function(K){_.yy(new _.nG("Error in IconManager",K))},VDT=function(K){if(_.S("wil_icons_cache_purge_killswitch"))return!1;
try{var X=_.FP.localStorage}catch(f){return!1}if(!X||!K.cacheStorageAvailable)return!1;var F=function(f){try{var u;(u=X)==null||u.setItem("yt-icons-last-purged",f.toString())}catch(Z){var J;F3({error:((J=Z)==null?0:J.toString)?Z.toString():""})}},P=Number(X.getItem("yt-icons-last-purged"));
if(!P)return P=new Date,P=P.setDate(P.getDate()-Math.floor(Math.random()*90+1)),F(P),!1;if(function(f,u){f=new Date(f);u=new Date(u);return u.getMonth()-f.getMonth()+12*(u.getFullYear()-f.getFullYear())}(P,Date.now())<3)return!1;
try{return _.FP.caches.delete("yt-icons").then(function(f){f&&F(Date.now());return f}).catch(function(){return!1}).finally(function(){K.isPurging=!1})}catch(f){var H;
F3({error:((H=f)==null?0:H.toString)?f.toString():""});return!1}};
X3[$0]=[ZcL,_.lH,_.Nu(MoT)];_.Pq=function(K,X){this.iconManager=K;this.iconsToFetch=X};
_.Pq[$0]=[_.Pn,_.Nu(Q4L)];var Xyk=function(){};var F4J=function(K,X,F){this.requestKey=K;this.iIT=X;this.aCg=F;this.qX0=function(){return new XMLHttpRequest};
this.jqe=void 0;this.kI1=[]};
F4J.prototype.getLatestChallengeResponse=function(){return this.aCg};
var LkC=function(K,X,F){var P,H,f,u;return _.q(function(J){if(J.nextAddress==1){_.rb("attestation_challenge_fetch");_.Ac("att_fs",void 0,"attestation_challenge_fetch");if(!K.jqe)throw new _.M6(9,"Missing fetcher");return _.Y(J,K.jqe(X,F),2)}P=J.yieldResult;f=(H=P)==null?void 0:H.bgChallenge;if(!f)throw new _.M6(15,"Missing field");K.aCg=P;K.kI1.forEach(function(Z){Z(P)});
u=PGT(f);_.Ac("att_fc",void 0,"attestation_challenge_fetch");sKM("attestation_challenge_fetch");return J.return(u)})},EiN=function(K,X){var F,P,H,f,u;
return _.q(function(J){switch(J.nextAddress){case 1:F=new fJ(100,3E5,.25,2),P=void 0;case 2:if(!(F.currBackoffCount_<10)){J.jumpTo(4);break}_.s2(J,5);if(!(F.currBackoffCount_>0)){J.jumpTo(7);break}return _.Y(J,i6P(F.getValue()),7);case 7:return _.Y(J,PTW(K,X),9);case 9:return H=J.yieldResult,J.return(H);case 5:f=_.qc(J);f instanceof _.M6?P=f:(u=f instanceof Error?f.message:"Unknown",P=new _.M6(9,u));e8Z(F);J.jumpTo(2);break;case 4:if(P)throw P;throw new _.M6(9,"Unknown error");}})},PTW=function(K,
X){X=JoQ(ZsL(new qvC,X),K.requestKey);
var F=new _.K$,P=K.qX0();P.open("POST",K.iIT);P.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");P.setRequestHeader("Content-Type","application/json+protobuf");P.onload=function(){if(_.lpd(P)){var H=oEt(P.responseText);F.resolve(H)}else F.reject(new _.M6(_.uB(_.F$(P)),P.statusText))};
P.onerror=function(){F.reject(new _.M6(_.uB(_.F$(P)),P.statusText))};
P.send(X.serialize());return F.promise};var s3t=function(K){this.networkStatusManager=K;this.isDownloaded=H6O===void 0?function(){return!1}:H6O;
this.isReady=!1;this.mFw=HO1(this)},HO1=function(K){var X;
return _.q(function(F){if(F.nextAddress==1)return _.Y(F,yHw(),2);if(F.nextAddress!=3)return X=F.yieldResult,_.Y(F,tUL(X),3);K.zo=F.yieldResult;IUl(K.zo).then(function(){K.isReady=!0});
return F.return(K.zo)})},zyd=function(K,X,F){K.zo?(K=K.zo.ke({fS:F,
yQH:!0,rQ8:!0}),X.serviceIntegrityDimensions={poToken:K}):_.jF(Error("gj"))};
s3t.prototype.processContext=function(K){var X=this;if(!K.input.match(_.t7(PZL)))return _.mQ();var F=K.innerTubeRequest,P=F.videoId;return!P||this.isDownloaded(F)||this.networkStatusManager&&!this.zo&&!this.networkStatusManager.isNetworkAvailable()?_.mQ():this.zo?this.isReady?(zyd(this,F,P),_.mQ()):new hp(IUl(this.zo).then(function(){zyd(X,F,P)})):new hp(this.mFw.then(function(H){return _.q(function(f){if(f.nextAddress==1)return _.Y(f,IUl(H),2);
zyd(X,F,P);_.JT(f)})}))};var flG=new _.Oh("WEB_PO_CONTEXT_PROCESSOR");var Dqs=function(K,X){var F=this;this.aD8=0;var P;this.f2V=(P=X==null?void 0:X.f2V)!=null?P:window;this.networkStatusManagerPromise=X==null?void 0:X.networkStatusManagerPromise;var H;this.requestKey=(H=X==null?void 0:X.requestKey)!=null?H:_.KG("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var f;this.dnt=(f=X==null?void 0:X.dnt)!=null?f:function(Z){return new Lu(Z)};
var u;P=(u=X==null?void 0:X.oO9)!=null?u:function(Z,M,n){return new F4J(Z,M,n)};
this.bgChallenge=PGT(K.bgChallenge);this.ttlSeconds=HdT(OD(K.challenge||""));this.jR=P(this.requestKey,_.S("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.FP.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",K);xPd(this.jR);var J;this.iq1=(J=X==null?void 0:X.iq1)!=null?J:function(Z){_.nB(F.f2V.document,"visibilitychange",function(){F.f2V.document.visibilityState===
"visible"&&Z()})}},ql8=function(K){if(!K.xh){var X={maxAttempts:5,
sNe:K.ttlSeconds*1E3};kN9(K.f2V);K.xh=K.dnt({jR:K.jR,tb:{disable:_.S("html5_web_po_disable_remote_logging"),uS:"aGIf",gst:RbT("html5_web_po_experiment_ids"),pMy:_.S("wpo_dis_lfdms")?0:1E3,rr:_.S("wpo_gel_strz")?function(P){var H=FYC.get(P);H||(H=new XRt(P),H=new ZL(H),FYC.set(P,H));return H}:void 0},
a87:X,wDz:K.bgChallenge,jdy:KCl});K.aD8=Date.now();coN(K.xh,function(){K.aD8=Date.now()});
RjP(K.xh,function(){return _.q(function(P){return P.return(uP1(K))})});
var F=K.iJq.bind(K);K.networkStatusManagerPromise&&K.ttlSeconds>0&&K.networkStatusManagerPromise.then(function(P){P.listen("publicytnetworkstatus-online",F)});
K.iq1(F)}};
Dqs.prototype.iJq=function(){if(Date.now()>this.aD8+this.ttlSeconds*1E3){var K;(K=this.xh)==null||niW(K)}};
var uP1=function(K){if(K.s9M)return K.s9M;if(!K.xh)throw Error("hj");K.s9M=new jQ({xh:K.xh,jR:K.jR,x18:!0,onError:KCl});return K.s9M},FCq=function(K,X){K=new Dqs(K,X);
ql8(K);uP1(K)};var Hq=function(K,X){this.store=K;this.queue=[];this.supportsFocus=_.S("web_ephemeral_actions_focus");X==null||X.addEventListener("yt-navigate-start",this.reset.bind(this))};
Hq.prototype.enqueue=function(K){var X=K.command,F=K.durationMs,P=K.elementToFocus;var H=K.label;var f=K.elementToFocus;K.command?H=_.uY("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:H,shortcut:_.uY("SHIFT_PLUS_ENTER")}):f&&this.supportsFocus&&(K=H+". "+_.uY("SHIFT_PLUS_ENTER")+" for more information.",H=_.uY("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:H,shortcut:_.uY("SHIFT_PLUS_ENTER")},K));F={announcement:H,durationMs:F!=null?F:this.supportsFocus?8E3:void 0};X?F.command=X:P&&this.supportsFocus&&(P.classList.add("ephemeral-action-focusable-element"),
F.selector=P.tagName+".ephemeral-action-focusable-element");this.queue.push(F);JM5(this)};
Hq.prototype.activate=function(K){var X=_.pKw(this.store.getState());if(X){if(X==null?0:X.command)_.yB(X.command),this.store.dispatch(IPC(null));(X==null?0:X.selector)&&this.supportsFocus&&(X=document.querySelector(X.selector),_.Kz3(X));K.preventDefault()}};
var JM5=function(K){if(!_.pKw(K.store.getState())&&K.queue.length){var X=K.queue.shift();X&&(K.previousAnnouncement===X.announcement&&(X.announcement+="\u00a0"),K.store.dispatch(IPC(X)),K.previousAnnouncement=X.announcement,K.timeoutId=setTimeout(function(){if(X.selector&&K.supportsFocus){var F;(F=document.querySelector(X.selector))==null||F.classList.remove("ephemeral-action-focusable-element")}K.store.dispatch(IPC(null));JM5(K)},X.durationMs))}};
Hq.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(IPC(null));this.queue.length=0;this.timeoutId=void 0};
Hq[$0]=[_.jE,_.Jk];_.sR=new _.Oh("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var ZOd=new _.Oh("AUTH_SERVICE_TOKEN");var s6d=_.lr(["about:blank"]),HqP;var YlV=new _.Oh("API_IFRAME_TOKEN"),Q3d=new _.Oh("FETCH_FN_TOKEN"),MPV=new _.Oh("PARSE_FN_TOKEN"),nd8=new _.Oh("WINDOW_REQUEST_TOKEN");var TEC;TEC=new _.Oh("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.cMd=new _.Oh("MISC_UI_SHARED_FLAGS_TOKEN");var pyt=function(){};
pyt.prototype.getFlag=function(K){if(K.configType!==2)throw Error("ij");return Bws(K)};
var Bws=function(K){switch(K.flagType){case "bool":return _.S(K.flagName);case "int":return _.CW(_.kU(K.flagName));case "double":return _.kU(K.flagName);case "string":return _.KG(K.flagName);case "int32_list":return RbT(K.flagName);case "int64_list":return RbT(K.flagName).map(function(X){return _.CW(X)});
case "string_list":return _.X$(K.flagName);default:throw Error("jj");}};var zA=function(K,X,F){X=X===void 0?{}:X;oK.call(this,F===void 0?"uninitialized":F);this.env=K;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}];X.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=X.shouldWaitOnAsyncImmediate)};
_.r(zA,oK);zA.prototype.init=function(K){var X=this,F;return _.q(function(P){if(P.nextAddress==1)return X.processPluginOptions.shouldWaitOnAsyncImmediate?_.Y(P,K(X.env),2):(K(X.env),P.jumpTo(2));if(P.nextAddress!=4)return X.jobSet?_.Y(P,X.jobSet.completedResolver.promise,4):P.jumpTo(4);F=_.wz();F.parkOrScheduleJob(function(){X.transition("rendering")},10,"ci");
_.JT(P)})};
zA.prototype.initialRender=function(K){var X=this,F;return _.q(function(P){if(P.nextAddress==1)return X.processPluginOptions.shouldWaitOnAsyncImmediate?_.Y(P,K(X.env),2):(K(X.env),P.jumpTo(2));if(P.nextAddress!=4)return X.jobSet?_.Y(P,X.jobSet.completedResolver.promise,4):P.jumpTo(4);F=_.wz();F.parkOrScheduleJob(function(){X.transition("rendered")},10,"cr");
_.JT(P)})};
zA.prototype.afterRenderImmediate=function(K){var X=this,F;return _.q(function(P){if(P.nextAddress==1)return X.processPluginOptions.shouldWaitOnAsyncImmediate?_.Y(P,K(X.env),2):(K(X.env),P.jumpTo(2));if(P.nextAddress!=4)return X.jobSet?_.Y(P,X.jobSet.completedResolver.promise,4):P.jumpTo(4);F=_.wz();F.parkOrScheduleJob(function(){X.transition("after-render-deferred")},10,"carml");
_.JT(P)})};
zA.prototype.afterRenderDeferred=function(K){var X=this;return _.q(function(F){K(X.env);_.JT(F)})};var Sl8={},odF=(Sl8.rendered={priority:0,callback:function(K){K3U(K.injector.resolve(pL))}},Sl8);var L4F=!1,Q64=0,q3y=null,Y33=null;var Two=new _.Oh("NETWORK_SLI_TOKEN");var rMd=function(K,X,F,P){this.networkSli=K;this.fetchFn=X;this.parseFn=F;this.requestFn=P};
rMd.prototype.fetch=function(K,X,F){var P=this,H,f,u;return _.q(function(J){H=AMW(P,K,X);u=(f=P.fetchFn)!=null?f:fetch;return J.return(u(H).then(function(Z){return P.handleResponse(Z,F)}).catch(function(Z){_.yy(Z);
if((F==null?0:F.expectJsonStrict)&&Z instanceof D9&&Z.errorType===1)return Promise.reject(Z)}))})};
var k2Z=function(K,X,F,P){var H,f,u,J,Z,M,n;return _.q(function(c){switch(c.nextAddress){case 1:return H=AMW(K,X,F),_.s2(c,2),_.Y(c,fetch(H),4);case 4:f=c.yieldResult;_.Gy(c,3);break;case 2:throw _.qc(c),new D9(2,"Failed to parse streaming response",H.url);case 3:if(!f.redirected&&!f.ok)throw(u=K.networkSli)==null||u.failure(),new _.nG("Streaming fetch request not ok",H.url);if(!f.body)throw new _.nG("No response body in streaming response",H.url);J={};if(_.S("web_streaming_fast"))return Z=f.body.getReader(),
c.return(j31(K,Z,J,P));M=f.body.pipeThrough(new TextDecoderStream).getReader();n=new _.NM;return c.return(wy8(K,M,n,kUM,J,P))}})},AMW=function(K,X,F){if(K.networkSli){var P=_.zy(_.Vn(X,"key"))||"/UNKNOWN_PATH";
K.networkSli.start(P)}P=F;_.S("wug_networking_gzip_request")&&(P=ExM(F));var H;return new ((H=K.requestFn)!=null?H:window.Request)(X,P)},j31=function(K,X,F,P){var H,f,u,J,Z,M,n,c,B,L,A;
return _.q(function(d){switch(d.nextAddress){case 1:H=new TextDecoder("utf-8"),f="",u=function(R){a:{R=R.trim();if(R.length!==0&&(R.startsWith("[")&&(R=R.substring(1)),R.endsWith("]")&&(R=R.slice(0,-1)),R.endsWith(",")&&(R=R.slice(0,-1)),R!=="]"&&R!=="[")){R=R.trim();break a}R=void 0}if(R)try{var l=JSON.parse(R);kUM(F,l);P==null||P(F,l)}catch(a){throw new D9(1,"Failed to parse streaming response",R);}},_.s2(d,2,3);
case 5:return _.Y(d,X.read(),8);case 8:J=d.yieldResult;Z=J.value;if(M=J.done)return f.length>0&&u(f),n=void 0,(n=K.networkSli)==null||n.success(),d.return(F);f+=H.decode(Z,{stream:!0});c=f.split("\n");f=c.pop()||"";B=_.D(c);for(L=B.next();!L.done;L=B.next())A=L.value,u(A);d.jumpTo(5);break;case 3:_.fZ(d);X.releaseLock();_.uK(d,0);break;case 2:throw _.qc(d),new D9(1,"Failed to parse streaming response");}})},wy8=function(K,X,F,P,H,f){var u,J,Z,M,n,c,B,L,A;
return _.q(function(d){if(d.nextAddress==1)return _.Y(d,X.read(),2);u=d.yieldResult;J=u.value;if(Z=u.done)return(M=K.networkSli)==null||M.success(),d.return(H);try{n=F.parse(J)}catch(R){throw new D9(1,"Failed to parse streaming response",J);}if(n!=null)for(c=_.D(n),B=c.next();!B.done;B=c.next())L=B.value,P(H,L),A=void 0,(A=f)==null||A(H,L);return d.return(wy8(K,X,F,P,H,f))})};
rMd.prototype.handleResponse=function(K,X){var F,P=(F=this.parseFn)!=null?F:JSON.parse;F=K.text().then(function(H){if((X==null?0:X.jspbResponseCtor)&&K.ok)return F0y(X.jspbResponseCtor,H);H=H.replace(")]}'","");if((X==null?0:X.expectJsonStrict)&&H)try{var f=P(H)}catch(J){throw new D9(1,"JSON parsing failed after fetch");}var u;return(u=f)!=null?u:P(H)});
K.redirected||K.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),F=F.then(function(H){_.yy(new _.nG("Error: API fetch failed",K.status,K.url,H));return Object.assign({},H,{errorMetadata:{status:K.status}})}));
return F};
rMd[$0]=[_.Nu(Two),_.Nu(Q3d),_.Nu(MPV),_.Nu(nd8)];var yMv=new _.Oh("NETWORK_MANAGER_TOKEN");var W4k=[1,2,4,8,16,30],eyG=function(K){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=K.maxTimeMs;this.maxFrameCount=K.maxFrameCount===void 0?Math.ceil(60*K.maxTimeMs/1E3):K.maxFrameCount;K=_.D(W4k);for(var X=K.next();!X.done;X=K.next())this.brokenFrameSummarizers.push(new dqt(X.value/60*1E3))},Ryw=function(K){var X=K.frameCountInternal>=K.maxFrameCount;
return K.elapsedTimeMs>=K.maxTimeMs||X},Uqw=function(K){for(var X=[],F=_.D(K.brokenFrameSummarizers),P=F.next();!P.done;P=F.next())P=P.value,P=P.brokenFrameCount!==0?{severityMs:Math.round(P.targetFrameTimeMs),
eventCount:P.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(P.averageDurationBetweenEventsMs)}:void 0,P&&X.push(P);return{summaries:X,monitoringDurationMs:Math.round(K.elapsedTimeMs)}};
_.Oi.Object.defineProperties(eyG.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 dqt=function(K){this.targetFrameTimeMs=K;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.Oi.Object.defineProperties(dqt.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var hyw=function(){};
hyw.prototype.start=function(K,X){var F=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var P=new eyG({maxTimeMs:K});this.monitor=P;this.lastSummaryInternal=void 0;this.metadataToLog=X;return new Promise(function(H){var f=function(u){if(u===void 0)F.stop(),H(void 0);else if(F.monitor!==P)u=Object.assign({},Uqw(P),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),H(u);else{var J=F.monitor;if(!Ryw(J)){J.frameCountInternal++;if(J.prevTime===void 0)J.startTime=
u;else for(var Z=u-J.prevTime,M=_.D(J.brokenFrameSummarizers),n=M.next();!n.done;n=M.next()){n=n.value;var c=n.currTimeMs;n.currTimeMs+=Z;Z>n.targetFrameTimeMs+2&&(n.brokenFrameCount++,n.timeOfFirstBrokenFrameMs===void 0&&(n.timeOfFirstBrokenFrameMs=c),n.timeOfLastBrokenFrameMs=c)}J.prevTime=u}Ryw(F.monitor)?H(F.stop()):_.A9.addJob(f,5,0)}};
_.A9.addJob(f,5,0)})};
hyw.prototype.stop=function(K){if(!this.monitor)return this.lastSummaryInternal;var X=Object.assign({},Uqw(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(X.monitoringDurationMs){K=K!=null?K:this.metadataToLog;var F={droppedFramesSummary:X,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};K&&(F[K.type]=K.data);_.LL("manualSmoothnessMeasurement",F)}this.monitor=void 0;this.lastSummaryInternal=X;this.metadataToLog=void 0;return X};_.mq5=new _.Oh("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var GnV;GnV=function(K){this.JSC$16286_expiringStorage=new pG(K)};
_.ll1=function(K){if(_.Mc3()&&(K=_.orw(_.Qq()+"::"+K)))return new GnV(K)};
GnV.prototype.set=function(K,X,F){F=F!==void 0?Date.now()+F:void 0;this.JSC$16286_expiringStorage.set(K,X,F)};
GnV.prototype.get=function(K){return this.JSC$16286_expiringStorage.get(K)};
GnV.prototype.remove=function(K){this.JSC$16286_expiringStorage.remove(K)};var vdJ=new _.Oh("SESSION_STORAGE");_.fr=function(){};
_.fr.getInstance=function(){var K=_.mz("ytglobal.storage_");K||(K=new _.fr,_.gS("ytglobal.storage_",K));return K};
_.fr.prototype.estimate=function(){var K,X,F;return _.q(function(P){K=navigator;return((X=K.storage)==null?0:X.estimate)?P.return(K.storage.estimate()):((F=K.webkitTemporaryStorage)==null?0:F.queryUsageAndQuota)?P.return(nHT()):P.return()})};
_.gS("ytglobal.storageClass_",_.fr);var alW=!1;var tPk=_.lr(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),$qk=_.lr(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var kdU={"/":_.fp,"/?feature=ytca":_.fp,"/feed/downloads":_.Baq};var DZ=function(K,X,F){this.JSC$16298_upliftPromise=K;this.store=X;this.JSC$16298_persistentStorePromiseAccessor=F};
DZ.prototype.shouldPreferLocalResponse=function(K){return K.browseId==="FEdownloads"||K.browseId==="FEsmart_downloads"&&_.S("kevlar_modern_downloads_page")?!0:!1};
DZ.prototype.localInnertubeResponse=function(K){var X=this;return _.q(function(F){return K.browseId==="FEdownloads"?_.S("kevlar_modern_downloads_page")?F.return(OOt(X)):F.return(VPk(X)):K.browseId==="FEsmart_downloads"&&_.S("kevlar_modern_downloads_page")?F.return(gdt(X)):F.return(Promise.reject(Error("lj")))})};
DZ.prototype.canProvideFallbackResponse=function(){return!0};
DZ.prototype.localFallbackInnertubeResponse=function(K){var X=this,F,P,H;return _.q(function(f){switch(f.nextAddress){case 1:return _.Y(f,X.JSC$16298_persistentStorePromiseAccessor(),2);case 2:F=f.yieldResult;if(K.browseId!=="SPaccount_downloads"||!F){f.jumpTo(3);break}return _.Y(f,Pnl(F),4);case 4:if(P=f.yieldResult)return f.return(_.Kk(P));case 3:return K.browseId==="FEwhat_to_watch"?f.return(Edw(X)):(H=_.S("web_offline_continuation_automatic_retry")||_.S("web_offline_continuation_retry_button"))&&
K.continuation?f.return(bOs(X)):f.return(CTV(X))}})};
var Edw=function(K){var X;return _.q(function(F){if(F.nextAddress==1)return _.Y(F,K.JSC$16298_upliftPromise,2);X=_.xf4(K.store.getState().entities);return X.length?F.return(NwG(K,X)):F.return(CTV(K))})},VPk=function(K){var X,F;
return _.q(function(P){if(P.nextAddress==1)return _.Y(P,K.JSC$16298_upliftPromise,2);if(P.nextAddress!=3)return X=iOd([{offlineItemSectionRenderer:{}}]),_.Y(P,xqw(K,X),3);F=P.yieldResult;F.onResponseReceivedActions=[nj("REFRESH_DOWNLOADS")];return P.return(F)})},OOt=function(K){var X,F,P,H,f,u,J,Z,M,n,c,B,L;
return _.q(function(A){if(A.nextAddress==1)return _.Y(A,K.JSC$16298_upliftPromise,2);if(A.nextAddress!=3)return X=K.store.getState(),F=X.entities,P=_.cv(F),H=_.pI(F),f=_.wH3(X),u=_.jZ9(X),J=_.ypn(X),Z=_.XHl(F),M=_.ZH(P),n=_.Bv(F),c={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.WVw(P,H,Z,f,u,M,n,J),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},B=_.uY("DOWNLOADS",void 0,"Downloads"),_.Y(A,IlG(K,c,B),3);L=A.yieldResult;
L.onResponseReceivedActions=[nj("REFRESH_DOWNLOADS")];return A.return(L)})},gdt=function(K){var X,F,P,H,f,u,J,Z,M;
return _.q(function(n){if(n.nextAddress==1)return _.Y(n,K.JSC$16298_upliftPromise,2);if(n.nextAddress!=3)return X=K.store.getState(),F=X.entities,P=_.cv(F),H=_.ZH(P),f=_.Bv(F),u={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.eYq(P),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},J=_.uY("SMART_DOWNLOADS",void 0,"Smart downloads"),Z=ww4(H,f),_.Y(n,IlG(K,u,J,Z),3);M=n.yieldResult;M.onResponseReceivedActions=[nj("REFRESH_DOWNLOADS")];
return n.return(M)})},CTV=function(K){var X,F;
return _.q(function(P){if(P.nextAddress==1)return _.Y(P,kR(K.JSC$16298_upliftPromise,K.store),2);X=P.yieldResult;F=iOd([k09(X)]);return P.return(xqw(K,F))})},bOs=function(K){var X,F,P,H;
return _.q(function(f){if(f.nextAddress==1)return X={},F=K.store.getState().continuation.continuationCommand,_.LB(X,_.jd,F),_.Y(f,kR(K.JSC$16298_upliftPromise,K.store,X,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);P=f.yieldResult;H={};_.LB(H,_.tNO,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:P}}}],targetId:"browse-feedFEwhat_to_watch"});return f.return({responseContext:{},onResponseReceivedActions:[H]})})},iOd=function(K){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:K}}}}]}}},NwG=function(K,X){var F,P;
return _.q(function(H){var f={contents:cG(X)};F=f&&f.contents?f:{};_.S("kevlar_modern_downloads_page")&&(F=Object.assign({},_.RYl(X),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));P={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:F}}}]}};return H.return(xqw(K,P))})},xqw=function(K,X){var F,P;
return _.q(function(H){if(H.nextAddress==1)return _.Y(H,K.JSC$16298_persistentStorePromiseAccessor(),2);if(H.nextAddress!=3)return F=H.yieldResult,_.Y(H,XJ(F),3);P=H.yieldResult;return H.return({responseContext:{},contents:X,topbar:P})})},IlG=function(K,X,F,P){var H,f;
return _.q(function(u){if(u.nextAddress==1)return _.Y(u,K.JSC$16298_persistentStorePromiseAccessor(),2);if(u.nextAddress!=3)return H=u.yieldResult,_.Y(u,XJ(H),3);f=u.yieldResult;var J=u.return;var Z=P;Z=Z===void 0?"":Z;Z={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:F}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.uY("SETTINGS",void 0,"Settings"),accessibilityText:_.uY("SETTINGS",void 0,"Settings"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",
type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",isFullWidth:!0,iconName:"SETTINGS",onTap:{innertubeCommand:gb("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:Z}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:F};
return J.call(u,{responseContext:{},contents:X,topbar:f,header:{pageHeaderRenderer:Z}})})};var kn1=function(){this.moduleRegistry={};this.fetchCount=0};
kn1.prototype.isFetching=function(){return this.fetchCount>0};
var dH=function(K,X){K.moduleRegistry[X.toString()]={asyncId:X,isFetching:!1};return K};
kn1.prototype.JSC$16309_loadModules=function(){for(var K=this,X=new Map,F=[],P=_.D(_.Ls.apply(0,arguments)),H=P.next();!H.done;H=P.next()){H=H.value;var f=this.moduleRegistry[H];f?f.resolver?X.set(H,f.resolver):(f.resolver=new _.K$,X.set(H,f.resolver),F.push(f.asyncId),f.isFetching=!0):(f=new _.K$,X.set(H,f),f.resolve(void 0))}F.length&&(this.fetchCount+=1,_.Yv(_.NA.getMultipleAsync.apply(_.NA,_.LZ(F)).then(function(u){for(var J=0;J<F.length;J++){var Z=u[J],M=K.moduleRegistry[F[J].toString()];M.isFetching=
!1;M.resolver.resolve(Z)}}).catch(function(u){for(var J=_.D(F),Z=J.next();!Z.done;Z=J.next()){Z=Z.value;
var M=K.moduleRegistry[Z.toString()];M.resolver=void 0;M.isFetching=!1;X.get(Z.toString()).reject(u)}}),function(){--K.fetchCount}));
return Promise.all([].concat(_.LZ(X.values())).map(function(u){return u.promise}))};_.eN=new _.Oh("MODULE_REGISTRY_TOKEN");var KtW={},XNw=(KtW.rendered={priority:0,callback:function(K){a:{var X=void 0;try{var F;b:{if(_.kKT()){var P=_.ScO(_.Qq()+"::pom");if(P){var H=new Qj(P);break b}}H=void 0}var f=(F=H)==null?void 0:F.get("role_text");if(!f)break a;X={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:f}]}}}}}}catch(Z){}X&&K.injector.resolve(_.xU).resolveCommand(X)}try{var u=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(u){var J=JSON.parse(u);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
J&&K.injector.resolve(_.xU).resolveCommand(J)}}catch(Z){}}},KtW);var Ft8,Pus={},HWt=(Pus.initialized={priority:10,callback:function(){Ft8=cj()}},Pus.rendering={callback:function(K){var X;
return _.q(function(F){if(F.nextAddress==1)return _.Y(F,Ft8,2);X=F.yieldResult;if(!X.endpoint)throw Error("nj`"+_.FP.location.href);oi(K,X);_.JT(F)})}},Pus);var sC8={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.LZ(_.S("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(K){var X=K.stack;if(X.includes("chrome://")||X.includes("chrome-extension://")||K.message.includes("chrome-extension://")||X.includes("moz-extension://")||X.includes("local.adguard.org")||X.includes("auctioneer3.50million.club")||X.includes("youtubedownloader")||X.includes("youtube_home_page")||X.includes("is_youtube_video_no_longer_available")||
X.includes("switchScreenSizeHack")||X.includes("yt_main_big_banner.js")||X.includes("YouTubeCenter.js")||X.includes("/mytube.js")||X.includes("JSON.parseWrapper")||X.includes("/inj_js/common.js")||X.includes("firebug-lite")||X.includes(".repl.co/")||X.includes("linkfix")||X.includes("playAfterAd")||K.message.includes("Access is denied for this document")&&X.includes("<anonymous>")||K.fileName==="user-script"||K.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
X.includes("<anonymous>"))return!0;if(X.includes("https://www.youtube.com"))return!1;K=X.split("\n");if(!K.length)return!1;if(K.length<=3&&X.includes("s.onloadeddata"))return!0;X=0;for(var F=_.D(K),P=F.next();!P.done;P=F.next())P=P.value,(P.includes("https://")||P.includes("http://"))&&X++;return X/K.length>.95},
weight:0},{callback:function(K){return K.message==="Unknown Error"&&K.name.indexOf("NS_")===0},
weight:100},{callback:function(K){if(!_.ir)return!1;var X=K.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||K.message.includes("available to complete this operation"),F=K.stack.includes("webcomponents")&&K.message==="Object doesn't support this action";K=K.message.includes("object that does not implement interface Element");return X||F||K},
weight:0},{callback:function(K){return K.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(K){return K.message==="Operation is not supported"&&(K.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(K){return K.stack.includes("eval code (eval (code:1:1)")||K.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(K){return K.message.includes("Permission denied")&&K.stack.includes("this.domHandler")?!0:K.name.includes("TypeError")&&K.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(K){if(!K.stack)return!1;var X=K.stack.trim().split("\n");X.length&&X[0].endsWith("Error: "+K.message)&&X.shift();X.length&&X[X.length-1].includes("at window.onerror (")&&X.pop();if(!X.length)return!0;if(K.message==="Script error.")return X[0].includes("www.youtube.com")||X.length>=2&&X[0].startsWith("at new")&&X[1].startsWith("at window.onerror");if(K.message==="Unexpected token")return!0;K=_.D(X);for(X=K.next();!X.done;X=K.next())if(X=X.value,!(X.includes("<anonymous>")||
X.startsWith("load@")||X.startsWith("global code@")||X.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(K){return K.message==="Cannot read property 'experiments'"&&K.stack.includes("/s/player/")},
weight:500},{callback:function(K){return K.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(K){return K.stack.includes("/embed.js")?(K.params&&K.params&&(K.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.S("use_error_suppression"))var K=_.e8("SUPPRESS_CLIENT_ERRORS",!1);else{if(K=_.XX)K=/Chrome\/(\d+)/.exec(_.nO()),K=(K?parseFloat(K[1]):NaN)>=66;K=!(K||_.KM&&_.kA(65)||_.dS&&_.kA(12.1)||OU&&_.kA(79))}return K},
weight:500}]};var zTG={},fQ8=(zTG.initialized={priority:10,callback:function(K){K.injector.addProvider({provide:ORU,useValue:K.root});K.injector.addProvider({provide:gmC,useValue:cYq});K.injector.addProvider({provide:Emu,useValue:sC8});var X={};K.injector.addProvider((X.provide=bVV,X.useFactory=function(F,P){return function(){cOl(F,P)}},X[$0]=[gmC,
Emu],X));K.injector.addProvider({provide:zZ,useClass:zZ})}},zTG);var DVo={},uL5=(DVo.initialized={priority:3,callback:function(){var K;if(K=Ycl()){K=K.replace("/",".");var X=_.ZO();X.set("tz",K);X.save();K=!0}else K=!1;K||(K=_.ZO(),K.set("utco",-Math.floor((new Date).getTimezoneOffset())),K.save())}},DVo);var qZt={},JtG=(qZt.initialized={priority:10,callback:function(K){K.injector.resolve(zZ).start();K=_.Um();var X=_.RU("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.RU("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.RU("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.RU("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.s$(_.G44(),{mainAppWeb:Object.assign({},K,{pageType:X})});_.s$(vvM(),{mainAppWeb:Object.assign({},K,{pageType:X})});
_.s$(aGl(),{mainAppWeb:K});_.s$(tQM(),{mainAppWeb:K});ZGN(function(){_.zt(aGl(),"FAILURE");_.zt(tQM(),"FAILURE")});
WCl();dIT();O3y()}},qZt);var ZWv={},YZd=(ZWv.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Ac("dl"),_.wz().processSignal("pcl");else{var K=function(){_.Ac("dl");_.wz().processSignal("pcl");window.removeEventListener("load",K)};
window.addEventListener("load",K)}}},ZWv);var QCo={},MUo=(QCo.rendering={priority:0,callback:function(){var K=_.wz();K.parkOrScheduleJob(function(){K.processSignal("eocs")},10,"eor",5E3)}},QCo);var nCV=function(){};
_.r(nCV,wQ);
nCV.prototype.resolveCommand=function(K,X){var F,P,H,f,u,J,Z,M;return _.q(function(n){H=(F=_.T(K,_.rmT))==null?void 0:(P=F.dialog)==null?void 0:P.commentReplyDialogRenderer;if(!H)throw new _.nG("No dialog in createCommentReplyDialogEndpoint");u=(f=X.form)==null?void 0:f.event;if(!u)throw new _.nG("Event not passed in when resolving command");J=_.D(u.composedPath());for(Z=J.next();!Z.done;Z=J.next())if(M=Z.value,M.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||M.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return M.showReplyDialog(H),n.return();
_.JT(n)})};var DC=function(K){this.pageRequestService=K;this.JSC$16324_prefetchCoordinator=ePV()};
_.r(DC,wQ);DC.prototype.resolveCommand=function(K){var X=this,F,P,H,f;return _.q(function(u){if(u.nextAddress==1){F=_.T(K,HwE);if((P=F)==null||!P.taskId)throw Error("oj");H=F.taskId;_.s2(u,2);return _.Y(u,_.KrE(X.pageRequestService,K,{},"").then(function(J){if(!J)throw Error("pj");},function(J){throw Error("qj`"+J);
}),4)}if(u.nextAddress!=2)return hPO(X.JSC$16324_prefetchCoordinator,H),_.Gy(u,0);
f=_.qc(u);$y(X.JSC$16324_prefetchCoordinator,H,f);_.JT(u)})};
DC[$0]=[nk];var uM=function(K){this.innertubeTransportService=K};
_.r(uM,wQ);uM.prototype.resolveCommand=function(K){var X=this,F,P;return _.q(function(H){F=_.T(K,zrL);if(F.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||F.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")P=F.boolValue?2:1,_.$2.getInstance().setState(P,!0,!0);return _.Y(H,_.Rx(X.innertubeTransportService,K),0)})};
uM[$0]=[_.L$];var qw={},ctF=(qw.addToPlaylistEndpoint=Vi(ca),qw.addToToastAction=Vi(co),qw.adsControlFlowOpportunityReceivedCommand=Vi(kN),qw.captionLanguageSelectActionCommand=Vi(eH),qw.captionPickerEndpoint=Vi(RV),qw.changeMiniAppPlayStateCommand=Vi(p7),qw.changeTimelyActionVisibilityCommand=Vi(nR),qw.channelCreationFormEndpoint=Vi(Js),qw.clearLocationCommand=Vi(n7),qw.clearUrlParamCommand=Vi(Ba),qw.copyLinkCommand=Vi(lI),qw.copyTextEndpoint=Vi(F6),qw.createCommentReplyDialogEndpoint=mOO(nCV),qw.createPlaylistServiceEndpoint=
Vi(va),qw.dismissDialogEndpoint=Vi(oV),qw.entityUpdateCommand=Vi(Ha),qw.feedbackEndpoint=Vi(f7),qw.getAnswerCommand=Vi(a$V),qw.getPaymentsClientTokenCommand=Vi(S_),qw.getTranscriptEndpoint=Vi(pR),qw.googlePaymentBillingCommand=Vi(oM),qw.googlePaymentPurchaseManagerCommand=Vi(LR),qw.hideEngagementPanelEndpoint=Vi(L7),qw.insertRichSectionCommand=Vi(Yb),qw.listMutationCommand=Vi(Q_),qw.logGtmCommand=Vi(Zh),qw.notifyDropdownOptionSelectedCommand=Vi(SH),qw.openAdAllowlistInstructionCommand=Vi(_.K7),qw.openOnePickAddVideoModalCommand=
Vi(aV),qw.persistSubscriptionsDisplayPreferencesCommand=Vi(Ep),qw.pingingEndpoint=Vi(X6),qw.playlistEditEndpoint=Vi($b),qw.playlistVotingRefreshPopupCommand=Vi(Op),qw.refreshPanelEndpoint=Vi(TU),qw.saveImageToDeviceEndpoint=Vi(Pa),qw.scrollToSectionEndpoint=mOO(toN),qw.seekToVideoTimestampCommand=Vi(Up),qw.selectCountryCommand=Vi(bI),qw.setCookieCommand=Vi(C7),qw.setLocalStorageCommand=Vi(JB),qw.setPrefStorageEntryCommand=Vi(iI),qw.setSettingEndpoint=Vi(uM),qw.sfvAudioItemPlaybackCommand=Vi(hs),qw.shareImageCommand=
Vi(xb),qw.sharingProviderDataCommand=Vi(IV),qw.showCaptionLanguageSelectActionCommand=Vi(mO),qw.showDialogCommand=Vi(jH),qw.showEngagementPanelEndpoint=Vi(wD),qw.showSheetCommand=Vi(y_),qw.showSnackbarCommand=Vi(qZ),qw.showTransientPlayerScrimOverlayCommand=Vi(GU),qw.submitFormWithValidationFlowCommand=Vi(q5),qw.talkToRecsDeselectCommand=Vi(Zk),qw.talkToRecsNextCommand=Vi(YG),qw.talkToRecsSelectCommand=Vi(Q7),qw.talkToRecsUpdateTextCommand=Vi(MZ),qw.toggleEngagementPanelCommand=Vi(Wa),qw.undoFeedbackEndpoint=
Vi(uI),qw.updateEngagementPanelContentCommand=Vi(dD),qw.updateUrlParamCommand=Vi(Bo),qw.verifyCommand=Vi(Js),qw.webNativeShareCommand=Vi(kb),qw.webSubmitFormCommand=Vi(V_),qw.ACK_PLAYABLES_3P_DATA_CONSENT=Vi(KR),qw.CANCEL_NAVIGATION=Vi(XD),qw.COPY_SHARE_URL=Vi(FD),qw.MINI_APP_EXIT_DIALOG_SEEN=Vi(Ho),qw.MINI_APP_OPEN_URL=Vi(Po),qw.REQUEST_MINI_APP_FULLSCREEN=Vi(sA),qw.RESUME_NAVIGATION=Vi(z7),qw.SHARE_PLAYABLE_WITH_HIGH_SCORE=Vi(fR),qw.TELL_US_WHY=Vi(Dh),qw);
_.S("web_enable_prefetching_videos_on_home")&&(ctF.prefetchWatchCommand=Vi(DC),ctF.registerTasksCommand=Vi(Vl));_.S("enable_share_panel_navigation_logging_fix_on_web")&&(ctF.shareEntityServiceEndpoint=Vi(rD));var zlL=Object.assign({},ctF);var pNt={},BLF=(pNt.initialized={priority:10,callback:mIn},pNt);var SZV={},oC5=(SZV.initialized={callback:function(K){var X={},F={};EG3().install((X.document_disposed={callback:function(){_.S("finalize_all_timelines")?zLy():Ll();Jz3("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.PSd();var P=K.injector.resolve(zZ);P.intervalId!==void 0&&(P.intervalId&&_.A9.cancelJob(P.intervalId),P.intervalId=void 0,--P.currentPartitionIndex,P=dZQ(P),P>0&&bzW({mainAppWeb:_.Um(),survivalSli:{partitionMinute:P,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));l6C(RZ);UH!=null&&
UH.flush();Na&&Na.snapshotAndFlush();P=_.D(FYC.values());for(var H=P.next();!H.done;H=P.next())H.value.snapshotAndFlush()}},X),(F.flush_logs={callback:function(){_.A_()}},F))}},SZV);var LtV={},TLV=(LtV.rendered={priority:0,callback:function(){var K=new FqT;K.increment("STARTED");if(_.e8("LOGGED_IN")&&_.e8("SERVER_VERSION")!=="test"&&_.e8("SERVER_VERSION")!=="dev"&&!aiy()&&!vZy()){K.increment("EXECUTING");var X=document.createElement("iframe");X.style.display="none";_.pJn(X,2,_.ps("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.e8("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(X);K.increment("DONE")}}},LtV);var rtk={},At8=(rtk.rendered={callback:function(){ePV().resume()}},rtk);var jC8={acknowledgeChannelTouStrikeCommand:Zm(IM),addToPlaylistServiceEndpoint:Zm(FH),addToPlaylistEndpoint:Zm(FH),addUpcomingEventReminderEndpoint:Zm(Sm),browseEndpoint:Zm(YuL),channelCreationFormEndpoint:Zm(gB),channelCreationServiceEndpoint:Zm(EA),claimLegacyYoutubeChannelEndpoint:Zm(e_),clearSearchHistoryEndpoint:Zm(Z0),clearWatchHistoryEndpoint:Zm(Y9),commerceActionCommand:Y1(TL),createBackstagePostEndpoint:Zm(AB),createBroadcastCommand:Zm(o1),createCommentEndpoint:Zm(tB),createCommentReplyEndpoint:Zm(aM),
createLiveChatPollEndpoint:Zm(LN),createPlaylistServiceEndpoint:Zm(PB),crossAccountChannelTransferEndpoint:Zm(nN),deleteLiveChatMessageCommand:Zm(Tx),deletePlaylistEndpoint:Zm(HB),deleteVideoEndpoint:Zm(BB),dismissalEndpoint:Zm(kG),feedbackEndpoint:Zm(KN),flagEndpoint:Zm(qQ),getAccountSwitcherEndpoint:Zm(MX),verifyCommand:Zm(rB),getAccountsListInnertubeEndpoint:Zm(pN),getCommentsFromInboxCommand:Zm(v5),getDownloadActionCommand:Zm(E1),getFlowCommand:Y1(H5),getKidsBlocklistPickerCommand:Zm(Ja),getNotificationMenuEndpoint:Zm(nmL),
getPaymentInstrumentsParamsCommand:Zm(WB),getPaymentsClientTokenCommand:Y1(TL),getPdgBuyFlowCommand:Zm(K_),getReportFormEndpoint:Zm(ZN),getSearchInVideoCommand:Zm(MQ),getAnswerCommand:Zm(Ql),getSurveyCommand:Zm(p_),getTranscriptEndpoint:Zm(oe),getPostVideoPreviewEndpoint:Zm(wB),decorateMessageEndpoint:Zm(j_),likeEndpoint:Zm(bL),liveChatActionEndpoint:Zm(wX),liveChatEndpoint:Zm(jm),liveChatItemContextMenuEndpoint:Zm(rX),liveChatPurchaseMessageEndpoint:Zm(yK),liveChatReplayEndpoint:Zm(AF),manageLiveChatUserEndpoint:Zm(dX),
metadataUpdateCommand:Zm(Gx),moderateLiveChatEndpoint:Zm(em),modifyChannelNotificationPreferenceEndpoint:Zm(O1),notificationOptOutEndpoint:Zm(VK),openSuperStickerBuyFlowCommand:Zm(W5),performCommentActionEndpoint:Zm(G7),playlistEditEndpoint:Zm(zL),playlistEditorEndpoint:Zm(sf),profileCardCommand:Zm(B5),recordNotificationInteractionsEndpoint:Zm(gX),reelWatchEndpoint:Zm(f_),refreshPanelEndpoint:Zm(CN),removeUpcomingEventReminderEndpoint:Zm(R1),resolveLocationCommand:Zm(mI),revealBusinessEmailCommand:Zm(RM),
searchEndpoint:Zm(_.cQL),sendLiveChatMessageEndpoint:Zm(U1),sendLiveChatVoteEndpoint:Zm(hF),setSettingEndpoint:Zm(CR),shareEntityServiceEndpoint:Y1(xG),sharingProviderDataCommand:Zm(cB),showEngagementPanelEndpoint:Zm(NX),showMoreDrawerCommand:Zm(x9),showSheetCommand:Zm(I1),showDialogCommand:Zm(iS),subscribeEndpoint:Zm(NZ),transcriptSubmitCaptionCorrectionCommand:Zm(Sz),undoFeedbackEndpoint:Zm(FK),unsubscribeEndpoint:Zm(iL),updateBackstagePostEndpoint:Zm(Wo),updateCommentEndpoint:Zm(OA),updateCommentReplyEndpoint:Zm($G),
updateCommentsSettingsEndpoint:Zm(V7),updateCreatorChannelInnertubeCommand:Zm(hB),updateKidsBlacklistEndpoint:Zm(Yy),updateEngagementPanelContentCommand:Zm(k9),updatePdgFeatureEnablementCommand:Zm(XH),updatedMetadataEndpoint:Zm(lS),validateChannelHandleCommand:Zm(ms),updateChannelPageSettingsEndpoint:Zm(UA),verifyAgeEndpoint:Zm(P5),watchEndpoint:Y1(PU),whitelistEditEndpoint:Zm(L_),ypcCancelRecurrenceEndpoint:Zm(rv),ypcCompleteTransactionEndpoint:Zm(Aa),ypcFixInstrumentEndpoint:Zm(wv),ypcGetCartEndpoint:Zm(jz),
ypcGetOffersEndpoint:Zm(yl),ypcHandleTransactionEndpoint:Y1(dv),ypcLogWalletAnalyticDataEndpoint:Zm(ez),ypcOffersEndpoint:Zm(Re),ypcPauseSubscriptionCommand:Zm(Uf),ypcRedeemCodeEndpoint:Zm(ha),ypcResumeSubscriptionCommand:Zm(mw),ypcUpdateFopEndpoint:Zm(wv)},Jd={},wN5=(Jd.GET_ACCOUNT_MENU=Zm(c5),Jd.GET_NOTIFICATIONS_MENU=Zm(MbU),Jd.GET_NOTIFICATIONS_INBOX=Zm(a1),Jd.GET_UNSEEN_NOTIFICATION_COUNT=Zm($9),Jd.GET_USER_MENTION_SUGGESTIONS=Zm(y7),Jd.LOAD_GUIDE=Zm(QhZ),Jd.SUBMIT_FEEDBACK=Zm(XK),Jd),ZC={},
yt8=(ZC.CONTINUATION_REQUEST_TYPE_BROWSE=Zm(dB),ZC.CONTINUATION_REQUEST_TYPE_SEARCH=Zm(n_),ZC.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=Zm(sx),ZC.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=Zm(QK),ZC.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=Zm(vo),ZC.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=Zm(lL),ZC.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=Zm(u5),ZC.CONTINUATION_REQUEST_TYPE_GET_PANEL=Zm(bS),ZC),Wt1={player:Y1(PU),watchNext:Zm(HU)},dVv={player:Y1(PU),reelItemWatch:Zm(f_),reelWatchSequence:Zm(DN)},
eT8={watchEndpoint:Y1(zP)},RT8={commandEndpointMap:jC8,signalEndpointMap:wN5,continuationEndpointMap:yt8,watchEndpointMap:Wt1,reelWatchEndpointMap:dVv,streamingEndpointMap:eT8};var UVs,hTv,mVv,GE5={disableAllTransitions:(hTv=(UVs=window).matchMedia)==null?void 0:(mVv=hTv.call(UVs,"(prefers-reduced-motion: reduce)"))==null?void 0:mVv.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var lQ8=new _.Oh("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.YP=new _.Oh("VIEW_TRANSITION_MANAGER_TOKEN");var vCv=function(K){this.config=K;this.transitionTasksMap=new Map;K=_.D(K.transitionConfigs);for(var X=K.next();!X.done;X=K.next())X=_.D(X.value).next().value,this.transitionTasksMap.set(X,[])};
vCv[$0]=[lQ8];var Gc3={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 vHn=["videoPrimaryInfoRenderer","title"],aSy=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var aQv;aQv=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.tU8=_.$c(function(K){K=_.tA(K,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var X=K.data,F=K.playlistData,P=K.expanded,H=K.onExpandClick,f=K.isReadyToResume,u=function(){var n;return!((n=F())==null||!n.contents)},J=function(){var n=F();
return n&&n.totalVideos&&n.currentIndex!==void 0?n.currentIndex+1+" / "+n.totalVideos:""};
K=_.DF(function(){_.Qr(_.i9().resolve(_.Wj));return!1});
var Z=_.DF(function(){u()&&H&&H()}),M={};
return _.Q("ytd-miniplayer-info-bar",{class:_.HO("ytdMiniplayerInfoBarHost",(M.ytdMiniplayerInfoBarHasPlaylistData=u,M)),"on:click":Z},_.Q("div",{class:"ytdMiniplayerInfoBarContent"},_.Q("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":K},_.Q(_.Oy,{text:function(){var n=X();var c=F();if(c==null?0:c.contents){var B;n=(B=_.xAM(c))==null?void 0:B.title}else n=n==null?void 0:n.miniplayerTitle;return $Iy(n)},
noEndpoints:!0,ellipsisTruncate:!0})),_.Q("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.Q(_.p,{cond:f,then:function(){return _.Q($XQ,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:aQv})}}),_.Q("h1",null,_.Q(_.Oy,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var n=X();var c=F();n=f()?{simpleText:_.uY("CONTINUE_WATCHING",void 0,"Continue watching")}:(c==null?0:c.contents)?c.titleText:n==null?void 0:n.miniplayerSubtitle;return $Iy(n)},
noEndpoints:!0,ellipsisTruncate:!0})),_.Q(_.p,{cond:function(){return!!J()&&!f()},
then:function(){return _.Q("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.Q("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.Q("span",null,J))}}))),_.Q(_.p,{cond:u,
then:function(){return _.Q("div",{class:"ytdMiniplayerInfoBarExpand"},_.Q(gV,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(n){H&&(H(),n.stopPropagation())}}},
iconName:function(){return P()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"ue");var $V8;$V8=_.$c(function(K){return _.Q("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.Q(gV,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:K.onTap}},
iconName:"yt-icons:close"}))},"ve");
_.OWt=_.$c(function(K){K=_.tA(K,{playabilityStatus:void 0,isDisabled:!1});var X=K.size,F=K.playabilityStatus,P=K.isDisabled,H=_.t_();K=_.D(_.u_(void 0,void 0,"bJr0Se"));var f=K.next().value,u=K.next().value;K=_.rn(_.zX);var J=!1,Z=function(){return X().height<=0};
_.rs(function(){var B=X(),L=Z(),A=f();A&&!L&&A.setInternalSize(B.width,B.height)},"OUOyKb");
_.Tr(function(){var B,L,A;return _.q(function(d){if(d.nextAddress==1){B=_.i9().resolve(_.Wj);L=B.getPlayerElement();if(!B.isMiniplayerActive()||!L||!H.value)return d.return();L.appendTo(H.value);return _.Y(d,L.getPlayerPromise(),2)}A=d.yieldResult;A.setSizeStyle(!1,!0);u(A);_.JT(d)})});
_.AZ(function(){M()});
_.rs(function(){var B=f();if(B)if(P()){var L=B.getPlayerState();(J=L===-1||L===1||L===3)&&B.pauseVideo()}else M()},"KKHe5");
var M=function(){if(J){J=!1;var B;(B=f())==null||B.playVideo()}},n=_.DF(function(){_.Qr(_.i9().resolve(_.Wj))}),c={};
return _.Q("ytd-miniplayer-player-container",{class:_.HO("ytdMiniplayerPlayerContainerHost",(c.ytdMiniplayerPlayerContainerHidden=Z,c.ytdMiniplayerPlayerContainerHostShortsPip=K,c)),style:_.Je({width:function(){return X().width+"px"},
height:function(){return X().height+"px"}})},_.Q("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:H}),_.Q(_.p,{cond:function(){return!!F()&&!_.EIl(F())},
then:function(){return _.Q(RCU,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var B;return((B=F())==null?void 0:B.errorScreen)||null},
status:function(){var B;return((B=F())==null?void 0:B.status)||null}})}}),_.Q(_.p,{cond:P,
then:function(){return _.Q("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":n},_.Q($V8,{onTap:function(){_.i9().resolve(_.Wj).close()}}))}}))},"we");_.VUv=_.$c(function(K){var X=K.toastData;var F=_.t_();K=_.D(_.qB(function(){return!!X()}));
var P=K.next().value,H=K.next().value;K=_.D(_.u_(!1,void 0,"xkrBze"));var f=K.next().value,u=K.next().value,J=function(){var n;return _.lj((n=X())==null?void 0:n.data.title)};
_.AV(function(){_.dC.requestAvailability();X()&&H(!1)});
var Z,M;_.rs(function(){P()&&(_.iX(F.value,"iron-announce",{text:X().label+" "+J()}),Z&&_.A9.cancelJob(Z),Z=_.A9.addLowPriorityJob(function(){u(!0)},2500))},"OTdL1e");
_.rs(function(){f()&&(M&&_.A9.cancelJob(M),M=_.A9.addLowPriorityJob(function(){H(!1);u(!1)},300))},"yybqib");
K={};return _.Q("ytd-miniplayer-toast",{el:F,class:_.HO("ytdMiniplayerToastHost",(K.ytdMiniplayerToastOpening=function(){return P()},K.ytdMiniplayerToastClosing=function(){return f()},K))},_.Q(_.p,{cond:function(){var n;
return(n=X())==null?void 0:n.data},
then:function(n){return _.Q(NvQ,{className:"ytdMiniplayerToastThumbnail",data:n,width:78})}}),_.Q("div",{class:"ytdMiniplayerToastInfo"},_.Q("div",{class:"ytdMiniplayerToastLabel"},function(){var n;
return(n=X())==null?void 0:n.label}),_.Q("div",{class:"ytdMiniplayerToastTitle"},J)))},"xe");var ISd;var F1l=new Set,XQT=null;var Hm4=null;var ECW=_.$c(function(K){var X=K.progressState;var F=K.multiMarkersPlayerBarRenderer;var P=K.progressBarWidth;var H=function(){return DNl(F())},f=function(){return Jyq(X())},u=function(){return P()*(X().playedTime/X().videoDuration)};
return _.Q("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.Q(_.cd,{each:H},function(J,Z){return _.Q(gCw,{modifiedProps:f,chapters:H,index:Z,playedProgressWidth:u,backgroundGradientPosition:function(){var M=f(),n=H(),c=Z(),B=u();return(M.playedTime-wH(_.T(n[c],jN)))/M.playedTime*B}})}))},"ye"),gCw=_.$c(function(K){var X=K.modifiedProps;
var F=K.chapters;var P=K.index;var H=K.playedProgressWidth;var f=K.backgroundGradientPosition;K={};K=_.HO("ytChapteredProgressBarChapteredPlayerBarChapter",(K.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return u().isScrubbing},K.ytChapteredProgressBarHoveredMacroMarker=function(){return u().scrubberHovering},K.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return u().videoPosition==="seen"},K));
var u=function(){return ZmP(X(),F(),P())},J=function(){var Z=X();
var M=F(),n=P();if(ZmP(Z,M,n).videoPosition!=="active")Z=0;else{var c=wH(_.T(M[n],jN));Z=(Z.playedTime-c)/((wH(_.T(M[n+1],jN))||Z.videoDuration)-c)}return Z};
return _.Q("div",{class:K,style:_.Je({width:function(){var Z=X(),M=F(),n=P(),c=_.T(M[n],jN);M=_.T(M[n+1],jN);return(M?wH(M)-wH(c):Z.videoDuration-wH(c))/Z.videoDuration*100+"%"},
"background-color":function(){a:{var Z=u();switch(Z.videoPosition){case "pending":Z=Z.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":Z=Z.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:Z=""}}return Z},
"background-size":function(){return(Y8d(u())?H():"")+"px"},
"background-position-x":function(){return(Y8d(u())?f():"")+"px"}})},_.Q("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var Z=X(),M=F(),n=P();if(ZmP(Z,M,n).videoPosition==="seen")var c=0;else c=wH(_.T(M[n],jN)),M=wH(_.T(M[n+1],jN))||Z.videoDuration,Z=Z.videoDuration*Z.percentLoaded,c=M<=Z?1:c>=Z?0:(Z-c)/(M-c);return"width: "+c*100+"%"}}),_.Q("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.Je({width:function(){return J()*100+"%"},
"background-size":function(){return(Y8d(u(),J())?H():"")+"px"},
"background-position-x":function(){return(Y8d(u(),J())?f():"")+"px"}})}))},"ze");var bWF=function(K,X){X=X===void 0?Sot:X;var F,P=[],H,f=!1;return function(){var u=_.Ls.apply(0,arguments);if(f&&F===this&&X(u,P))return H;H=K.apply(this,u);f=!0;F=this;P=u;return H}}(function(K){var X=K.heatMarkers,F=K.minHeightDp===void 0?0:K.minHeightDp,P=K.maxHeightDp===void 0?60:K.maxHeightDp;
var H=H===void 0?!1:H;var f=1E3/X.length;K=[];K.push({x:0,y:100});for(var u=0;u<X.length;u++){var J=void 0,Z=((J=_.T(X[u],POW))==null?void 0:J.heatMarkerIntensityScoreNormalized)||0;J=(u+.5)*f;Z=100-_.rH(Z*100,F/321*100,P/321*100);u!==0||H||K.push({x:0,y:Z});K.push({x:J,y:Z});u===X.length-1&&K.push({x:1E3,y:Z})}K.push({x:1E3,y:100});X="";for(F=0;F<K.length;F++)H=K[F],F===0?H="M "+H.x.toFixed(1)+","+H.y.toFixed(1):(P=VB9(K[F-1],K[F-2],H),f=VB9(H,K[F-1],K[F+1],!0),H=" C "+(P.x.toFixed(1)+","+P.y.toFixed(1)+
" "+f.x.toFixed(1)+","+f.y.toFixed(1)+" "+H.x.toFixed(1)+","+H.y.toFixed(1))),X+=H;return X});var CuV=_.$c(function(K){var X=K.progressBarProps;var F=K.config;var P={};K=_.HO("ytHeatSeekerHost",(P.ytHeatSeekerHighContrast=K.highContrast,P));var H=function(){return bqP(F().chapterData)};
return _.Q("yt-progress-bar-heatseeker",{class:K,style:function(){var f;return"height: 320px; display: "+(X().isDragging&&((f=H())==null?0:f.heatMarkers)?"block":"none")}},_.Q(_.p,{cond:H,
then:function(f){return _.Q(_.p,{cond:function(){return f().heatMarkers},
then:function(){return _.Q("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.Q("path",{d:function(){return bWF(f())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Ae");var NLt=_.$c(function(K){var X=K.progressBarProps;var F=K.config;K={};K=_.HO("ytProgressBarLineProgressBarLine",(K.ytProgressBarLineProgressBarLineRounded=function(){return F().rounded},K.ytProgressBarLineProgressBarLineBottomInset=function(){return F().position===2},K));
return _.Q("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.Q("div",{class:K},_.Q("div",{class:"ytProgressBarLineProgressBarBackground"}),_.Q("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+X().percentLoaded*100+"%"}}),_.Q("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var P=X();return"width: "+(P.videoDuration?_.rH(P.hoveredTime/P.videoDuration,0,1):0)*100+"%"}}),_.Q("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+Vcl(X())*100+"%"}})))},"Be");
NLt.idomCompat=!0;var iWv=_.$c(function(K){var X=K.progressBarProps;var F=K.playheadData;var P=K.interpolateDotPosition;var H=K.hidePlayhead;K={};var f=_.HO("ytProgressBarPlayheadProgressBarPlayheadDot",(K.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return X().isDragging},K.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!X().isDragging&&H()},K));
return _.Q("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.Je({"margin-left":function(){return gHO(X())*100+"%"},
transform:function(){return"translateX(-"+(P()?gHO(X())*12:6)+"px)"}})},_.Q(_.p,{cond:function(){var u;
return(u=_.ag(F)())==null?void 0:u.playheadImage},
then:function(u){var J={};return _.Q("div",{class:_.HO("ytProgressBarPlayheadProgressBarPlayheadCustom",(J.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return X().isDragging},J.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!X().isDragging&&H()},J)),
style:_.Je({"transform-origin":function(){return(P()?gHO(X())*20:10)+"px center"}})},_.Q(_.av,{data:u,
alt:"","aria-hidden":"true"}))},
else:function(){return _.Q("div",{class:f,style:_.Je({"transform-origin":function(){return(P()?gHO(X())*12:6)+"px center"}})})}}))},"Ce");
iWv.idomCompat=!0;var Mw=function(K,X,F,P,H,f){this.getProgressBarRect=K;this.updateProgressBarRect=X;this.getFilmstripYPosition=F;this.setFineScrubbingDraggedTime=P;this.updateFilmStripDraggedYDistance=H;this.resetFilmStripYOffset=f;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.VW(this.onThrottledSeek,100,this)},xVw=function(K,X,F){return function(P){K.handleClick(P,X(),F())}},KvW=function(K,X){return function(F){IQd(K,
F,kEw(F),X())}},XFt=function(K,X){return function(F){IQd(K,F,{x:F.clientX,
y:F.clientY},X())}},PWd=function(K,X,F){return function(P){var H=X(),f=F();
FvW(K,P,kEw(P),H,f,!0);if(f.onTouchMove)f.onTouchMove(H)}},sss=function(K,X,F){return function(P){Htk(K,P,X(),F())}},z85=function(K,X){return function(){K.handleMouseLeave(X())}},fdJ=function(K,X,F){return function(){var P=X(),H=F();
nr(K,P,H);if(H.onTouchEnd)H.onTouchEnd(P)}},Do5=function(K,X,F){return function(){var P=X(),H=F();
nr(K,P,H);if(H.onTouchEnd)H.onTouchEnd(P)}},u8J=function(K,X,F){return function(){nr(K,X(),F())}},qVF=function(K){return function(X){if(X.keyCode===39||X.keyCode===38){var F,P;
(F=K())==null||(P=F.playerApi)==null||P.seekBy(5,void 0,void 0,72)}else if(X.keyCode===37||X.keyCode===40){var H,f;(H=K())==null||(f=H.playerApi)==null||f.seekBy(-5,void 0,void 0,71)}}},Jwo=function(K,X,F){return function(P){!F().disableScrubbing&&K.startPosition&&Htk(K,P,X(),F())}},ZtF=function(K,X,F){return function(){if(!F().disableScrubbing)if(K.startPosition){var P=X(),H=F();
nr(K,X(),F());if(H.onTouchEnd)H.onTouchEnd(P)}else X().setState({isDragging:!1})}},kEw=function(K){K=K.touches[0];
return{x:K.clientX,y:K.clientY}},Htk=function(K,X,F,P){if(X.buttons!==1){if(X.movementX||X.movementY)X.preventDefault(),X.stopPropagation(),K=YVv(K,F,X.clientX),F.setState({isHovering:!0,
hoveredTime:K*F.videoDuration})}else Qsv(F),FvW(K,X,{x:X.clientX,y:X.clientY},F,P,!1)};
Mw.prototype.handleMouseLeave=function(K){Qsv(K)};
var Qsv=function(K){K.isHovering&&K.setState({isHovering:!1,hoveredTime:0})},IQd=function(K,X,F,P){K.startPosition||(K.startPosition=F,K.updateProgressBarRect(),K.controlsWereVisibleBeforeDragging=P.controlsVisible,X.stopPropagation(),_.S("medium_progress_bar_modification")||X.preventDefault())},FvW=function(K,X,F,P,H,f){if(K.startPosition)if(f&&H.isInlinePlayback&&K.startPosition&&!K.hasDraggedTheMinimumDistance&&Math.abs(F.y-K.startPosition.y)>Math.abs(F.x-K.startPosition.x))nr(K,P,H);
else if(X.preventDefault(),X.stopPropagation(),P.videoDuration&&(K.startPosition&&!K.hasDraggedTheMinimumDistance&&(K.hasDraggedTheMinimumDistance=Math.abs(F.x-K.startPosition.x)>=1),H.enableFineScrubbing&&(K.startPosition&&(K.isDraggedForFineScrubbing=-(F.y-K.startPosition.y)>=60),!K.startPosition||F.y>=K.startPosition.y||(P.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:QFl(P.draggedTime,P,H.chapterData)}),K.setFineScrubbingDraggedTime(P.draggedTime),K.updateFilmStripDraggedYDistance(K.startPosition.y,
F.y,P))),K.hasDraggedTheMinimumDistance)){X=YVv(K,P,F.x);if(K.isDraggedForFineScrubbing){var u;(u=P.playerApi)==null||u.pauseVideo();P.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:P.draggedTime,filmStripXDistance:QFl(X*P.videoDuration,P,H.chapterData)})}H.enableFineScrubbing&&(!H.enableFineScrubbing||K.getFilmstripYPosition(P)<68)||P.setState({draggedTime:X*P.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:K.controlsWereVisibleBeforeDragging});var J;(J=
H.cancelAutohideControlsFn)==null||J.call(H)}},nr=function(K,X,F){var P=F.enableFineScrubbing&&X.fineScrubbingActiveState!=="off";
if(X.isDragging||P){P={isDragging:!1,playedTime:X.draggedTime,controlsVisible:K.controlsWereVisibleBeforeDragging};F.enableFineScrubbing&&X.fineScrubbingActiveState!=="on"&&(K.resetFilmStripYOffset(),P.fineScrubbingActiveState="off");var H=H===void 0?Hm4:H;var f=_.AD(0);f&&H&&_.a7(f,H,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(X.playedTime*1E3),endMediaTimeMs:Math.round(X.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});X.setState(P);
K.seekThrottle.fire(X.draggedTime,X,7);_.S("mweb_new_progress_bar_play_on_seek")&&K.resumeVideo(X);F.unmuteOnSeek&&(F=X.playerApi,X.volumeMuted&&(F==null||F.unMute()))}else X.setState({controlsVisible:!X.controlsVisible}),(f=F.triggerAutohideControlsAfterDelayFn)==null||f.call(F);K.startPosition=null;K.hasDraggedTheMinimumDistance=!1;K.isDraggedForFineScrubbing=!1;K.controlsWereVisibleBeforeDragging=!1};
Mw.prototype.handleClick=function(K,X,F){this.updateProgressBarRect();K.stopPropagation();K=YVv(this,X,K.clientX)*X.videoDuration;X.setState({playedTime:K});if(X.playerState!==2){var P;(P=F.triggerAutohideControlsAfterDelayFn)==null||P.call(F)}this.seekThrottle.fire(K,X,7)};
var YVv=function(K,X,F){K=K.getProgressBarRect(X);return _.rH(0,(F-K.left)/K.width,1)};
Mw.prototype.resumeVideo=function(K){if(K.draggedTime<K.videoDuration){var X;(X=K.playerApi)==null||X.playVideo()}};
Mw.prototype.onThrottledSeek=function(K,X,F){if(X=X.playerApi){var P;if((P=X.getVideoData())==null?0:P.isLive)P=this.getProgressState(X),K+=(P==null?void 0:P.seekableStart)||0;X.seekTo(K,void 0,void 0,void 0,F)}};
Mw.prototype.getProgressState=function(K){var X=K==null?void 0:K.getPresentingPlayerType();return K==null?void 0:K.getProgressState(X)};var cwF,n5G,pFw,SVd,Mk8,o5V,Lv8,T1F,rws;cwF=_.$c(function(K){var X=K.progressBarProps;var F=K.config;var P=K.progressBarWidthPx;var H=K.chapterData;var f=Btq(X,function(){return F().isShortsPage}),u=function(){return!X().isHovering&&!F().isShortsPage};
K={};var J=_.HO("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(K.ytPlayerStoryboardHostMwebShorts=function(){return F().isShortsPage&&!1},K));
return _.Q("yt-player-storyboard",null,_.Q(_.p,{cond:function(){return X().isDragging||X().isHovering},
then:function(){return _.Q(_.p,{cond:f,then:function(Z){return _.Q(_.p,{cond:u,then:function(){return _.Q("div",{class:J,"aria-hidden":"true"},_.Q(Mk8,{props:X,config:F,isBigboard:!0,chapterData:H}))},
else:function(){return _.Q(n5G,{props:X,frame:Z,config:F,progressBarWidthPx:P,chapterData:H})}})}})}}))},"De");
_.B15=_.$c(function(K){var X=K.progressBarProps;var F=Btq(X,K.isShortsPage);return _.Q("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.Q(_.p,{cond:function(){return X().isDragging||X().isHovering},
then:function(){return _.Q(_.p,{cond:F,then:function(P){return _.Q(pFw,{frame:P,props:X,isBigboard:!0})}})}}))},"Ee");
n5G=_.$c(function(K){var X=K.props;var F=K.frame;var P=K.config;var H=K.progressBarWidthPx;K=K.chapterData;var f={};f=_.HO("ytPlayerStoryboardHost",(f.ytPlayerStoryboardHostMwebShorts=function(){return P().isShortsPage&&!1},f.ytPlayerStoryboardHostInlinePlayer=function(){return P().isInlinePlayer},f.ytPlayerStoryboardHostFadeIn=function(){return P().useFadeInAnimation},f));
return _.Q("div",{class:f,"aria-hidden":"true",style:function(){var u=X(),J=M$y(F()),Z=H();u=ntd(u)/u.videoDuration;var M=Z*u,n=J/2+6;J=Z-(J/2+6);return"left: "+(M<=n?n/Z*100:M>=J?J/Z*100:u*100)+"%"}},_.Q(_.p,{cond:function(){var u=X();
return!(P().isShortsPage&&u.videoDuration<15)},
then:function(){return _.Q(pFw,{frame:F,props:X,isBigboard:!1})}}),_.Q(Mk8,{props:X,
config:P,isBigboard:!1,chapterData:K}))},"Fe");
pFw=_.$c(function(K){var X=K.frame;var F=K.props;var P=K.isBigboard;var H=function(){var J,Z;return(Z=(J=F().playerApi)==null?void 0:J.getVideoContentRect())!=null?Z:{width:0,height:0}},f=function(){return M$y(X())},u=function(){var J=X();
return J?J.height/J.rows:0};
K={};K=_.HO((K.ytPlayerStoryboardBigboardImageWrapper=P,K.ytPlayerStoryboardStoryboardImageWrapper=function(){return!P()},K));
return _.Q("div",{class:K,style:function(){return"width: "+(P()?H().width:f())+"px; height: "+(P()?H().height:u())+"px;"}},_.Q(SVd,{frame:X,
storyboardWidth:f,storyboardHeight:u,storyboardScale:function(){return(P()?H().width:f())/f()}}))},"Ge");
SVd=_.$c(function(K){var X=K.frame;var F=K.storyboardWidth;var P=K.storyboardHeight;var H=K.storyboardScale;var f=function(){var u=X().row,J=X().column,Z=F(),M=P(),n=H();return{left:-J*Z*n,top:-u*M*n}};
return _.Q("img",{src:function(){return X().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+f().left+"px; top: "+f().top+"px; width: "+X().width*H()+"px; height: "+X().height*H()+"px;"}})},"He");
Mk8=_.$c(function(K){var X=K.props;var F=K.config;var P=K.isBigboard;var H=K.chapterData;K={};K=_.HO("ytPlayerStoryboardMetadata",(K.ytPlayerStoryboardMetadataBigboard=P,K));return _.Q("div",{class:K},_.Q(_.p,{cond:P,then:function(){return _.Q(_.ID,null,_.Q(o5V,{props:X,config:F}),_.Q(_.p,{cond:function(){a:{var f=X();var u=F(),J=H(),Z;if((u==null?0:u.activeChapter)&&((Z=_.T(u==null?void 0:u.activeChapter,jN))==null?0:Z.title))f=!0;else{u=_.D(C7y(J));for(u=u.next();!u.done;u=u.next()){f=(u=_.T(u.value,
sZu))&&cyy(f,u);break a}f=!1}}return f},
then:function(){return _.Q(Lv8,{props:X,config:F,isBigboard:!0,chapterData:H})}}))},
else:function(){return _.Q(_.ID,null,_.Q(Lv8,{props:X,config:F,isBigboard:!0,chapterData:H}),_.Q(o5V,{props:X,config:F}))}}))},"Ie");
o5V=_.$c(function(K){var X=K.props;var F=K.config;K={};K=_.HO("ytPlayerStoryboardTimestamp",(K.ytPlayerStoryboardTimestampShorts=function(){return F().isShortsPage},K.ytPlayerStoryboardTimestampIsHovering=function(){return X().isHovering||F().isShortsPage&&!0},K));
return _.Q("div",{class:K},_.Q(_.ID,null,function(){return _.pQ9(ntd(X()))}))},"Je");
Lv8=_.$c(function(K){var X=K.props;var F=K.config;var P=K.isBigboard;var H=K.chapterData;K={};P=_.HO("ytPlayerStoryboardTitle",(K.ytPlayerStoryboardTitleBigboard=P,K));return _.Q("div",{class:P},_.Q(_.p,{cond:function(){return!F().isShortsPage},
then:function(){return _.Q(T1F,{props:X,activeChapter:function(){return F().activeChapter},
chapterData:H})}}))},"Ke");
T1F=_.$c(function(K){var X=K.props;var F=K.activeChapter;var P=K.chapterData;return _.Q(_.ID,null,_.Q(_.cd,{each:function(){return C7y(P())},
keyBy:"INDEX"},function(H){return _.Q(_.ID,null,_.Q(_.p,{cond:function(){return _.T(H(),sZu)&&cyy(X(),_.T(H(),sZu))},
then:function(){return _.Q(rws,{timedMarker:function(){return _.T(H(),sZu)}})}}))}),_.Q(_.p,{cond:function(){var H;
return F()&&((H=_.T(F(),jN))==null?void 0:H.title)},
then:function(H){return _.Q(_.Oy,{text:H,noPreWrap:!0})}}))},"Le");
rws=_.$c(function(K){var X=K.timedMarker;return _.Q(_.ID,null,_.Q("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.Q(_.ZF,{icon:function(){return X().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.Q(_.Oy,{text:function(){return X().label},
noPreWrap:!0}))},"Me");_.Awk=_.$c(function(K){var X=K.progressBarProps;var F=K.playheadData;var P=K.config;K=_.t_();var H=_.t_(),f=_.t_(),u=_.D(_.u_({width:0,left:0},void 0,"NcXsUb")),J=u.next().value,Z=u.next().value,M=function(){f.value&&Z(f.value.getBoundingClientRect())},n=function(){J().width<=0&&M();
return J()};
by("resize",M);var c=new Mw(n,function(){},function(){return 0},function(){},function(){},function(){}),B=function(){return X()};
u=_.D(_.u_(!1,void 0,"ZsF6Xc"));var L=u.next().value,A=u.next().value;u=_.DF(function(){A(!0);P().position===2?setTimeout(function(){M()},100):M()});
var d=_.DF(function(){A(!1);z85(c,B)()}),R=_.DF(function(a3){P().doSeekOnClick&&xVw(c,B,P)(a3);
return!1}),l=_.DF(function(a3){KvW(c,B)(a3);
return!1}),a=_.DF(function(a3){XFt(c,B)(a3);
return!1}),E=_.DF(function(a3){PWd(c,B,P)(a3);
return!1}),V=_.DF(function(a3){sss(c,B,P)(a3);
return!1}),x=_.DF(function(){fdJ(c,B,P)();
return!1}),N=_.DF(function(){Do5(c,B,P)();
return!1}),Dl=_.DF(function(){u8J(c,B,P)();
return!1}),Mq=_.DF(function(a3){qVF(B)(a3);
return!1});
by("mousemove",Jwo(c,B,P));by("mouseup",ZtF(c,B,P));_.AV(function(){sFy(H.value);A(!1);M();ZtF(c,B,P)()});
var pO={};pO=_.HO("ytPlayerProgressBarHost",function(){return P().className},(pO.ytPlayerProgressBarHostReadOnly=function(){return P().disableScrubbing},pO.ytPlayerProgressBarHostHidden=function(){return P().hideProgressBar&&!L()},pO.ytPlayerProgressBarHostLowerPlayer=function(){return P().position===0},pO.ytPlayerProgressBarHostBottomEdge=function(){return P().position===1},pO.ytPlayerProgressBarHostBottomInset=function(){return P().position===2},pO.ytPlayerProgressBarHostCustom=function(){return P().position===
3},pO));
var y9={},Wy=_.HO("ytPlayerProgressBarBackground",(y9.ytPlayerProgressBarBackgroundHide=function(){return P().position===2&&!L()&&!X().isDragging},y9));
y9={};y9=_.HO("ytPlayerProgressBarDragContainer",(y9.ytPlayerProgressBarDragContainerBottomEdge=function(){return P().position===1},y9));
var eP={};eP=_.HO("ytPlayerProgressBarProgressBar",(eP.ytPlayerProgressBarProgressBarInset=function(){return P().position===2},eP.ytPlayerProgressBarProgressBarInsetMinimized=function(){return P().position===2&&!L()&&!X().isDragging},eP));
var gw=function(){return Math.floor(Vcl(X())*100)};
return _.Q("yt-progress-bar",{el:K,class:pO},_.Q(_.p,{cond:function(){return P().position===2},
then:function(){return _.Q("div",{class:Wy})}}),_.Q("div",{el:H,
"on:click":R,"on:touchstart":l,"on:touchmove":E,"on:mouseenter":u,"on:mousedown":a,"on:mouseleave":d,"on:mousemove":V,"on:mouseup":N,"on:touchend":x,"on:touchcancel":Dl,"on:keydown":Mq,class:y9,role:"slider","aria-valuenow":gw,"aria-valuetext":function(){return gw()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return X().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.uY("SEEK_SLIDER")},_.Q("div",{el:f,class:eP},_.Q(CuV,{progressBarProps:X,config:P,highContrast:function(){return!!P().isInlinePlayback}}),_.Q(_.p,{cond:function(){return P().chapterData&&Ned(P().chapterData)},
then:function(){return _.Q(ECW,{progressState:X,multiMarkersPlayerBarRenderer:function(){return P().chapterData},
progressBarWidth:function(){return J().width}})},
else:function(){return _.Q(NLt,{progressBarProps:X,config:P})}}),_.Q(iWv,{progressBarProps:X,
playheadData:F,interpolateDotPosition:function(){return P().position!==2},
hidePlayhead:function(){return P().playheadDotBehavior===1&&!L()}}))),_.Q(cwF,{progressBarProps:X,
config:function(){return{activeChapter:q83(X(),P().chapterData),getProgressBarWidthPx:function(){return n().width},
isShortsPage:!!P().isShortsPage,isInlinePlayer:!!P().isInlinePlayback,useFadeInAnimation:!!P().isInlinePlayback}},
progressBarWidthPx:function(){return J().width},
chapterData:function(){return P().chapterData}}))},"Ne");
_.Awk.idomCompat=!0;Object.assign({},_.iqO(),{setState:function(){},
domMeasurements:{},appApi:_.OqT(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var jsF;
_.wFF=_.$c(function(){var K,X=(K=_.yP(S8q().playerApi))!=null?K:void 0;K=_.D(_.u_(!1,void 0,"HLFBmb"));var F=K.next().value,P=K.next().value;K=_.D(_.u_(!1,void 0,"lHH9bc"));var H=K.next().value,f=K.next().value;K=_.D(_.u_(!1,void 0,"zsY7yd"));var u=K.next().value,J=K.next().value;K=_.D(_.u_(!1,void 0,"KeHQgc"));var Z=K.next().value,M=K.next().value;K=_.D(_.u_(0,void 0,"gLLCj"));var n=K.next().value,c=K.next().value;K=_.D(_.u_(0,void 0,"s3RYkf"));var B=K.next().value,L=K.next().value;K=_.D(_.u_(!1,void 0,
"Dn608e"));var A=K.next().value,d=K.next().value;K=_.D(_.u_(0,void 0,"AnkH1b"));var R=K.next().value,l=K.next().value;K=_.D(_.u_(0,void 0,"QYNL0b"));var a=K.next().value,E=K.next().value;K=_.D(_.u_("",void 0,"Yzw45d"));var V=K.next().value,x=K.next().value;K=_.D(_.u_(-1,void 0,"iiVI0c"));var N=K.next().value,Dl=K.next().value,Mq=_.Qs(function(){var pO={controlsVisible:F(),isOverlayHidden:H(),shouldWaitToHideControls:u(),isDragging:Z(),isHovering:A(),videoDuration:R(),playedTime:a(),videoId:V(),draggedTime:B(),
hoveredTime:n(),playerState:N()};return Object.assign({},_.iqO(),pO,{domMeasurements:{},setState:function(y9){y9.controlsVisible!==void 0&&P(y9.controlsVisible);y9.isOverlayHidden!==void 0&&f(y9.isOverlayHidden);y9.shouldWaitToHideControls!==void 0&&J(y9.shouldWaitToHideControls);y9.isDragging!==void 0&&M(y9.isDragging);y9.isHovering!==void 0&&d(y9.isHovering);y9.draggedTime!==void 0&&L(y9.draggedTime);y9.hoveredTime!==void 0&&c(y9.hoveredTime);y9.videoDuration!==void 0&&l(y9.videoDuration);y9.playedTime!==
void 0&&E(y9.playedTime);y9.videoId!==void 0&&x(y9.videoId);y9.playerState!==void 0&&Dl(y9.playerState)},
appApi:_.OqT(),playerApi:X})},void 0,"ZW7y9");
_.Tr(function(){X==null||X.addEventListener("onVideoProgress",K1P(Mq));X==null||X.addEventListener("onVideoDataChange",kcP(Mq));X==null||X.addEventListener("onStateChange",xIy(Mq))});
_.AZ(function(){if(X==null?0:X.isReady())X==null||X.removeEventListener("onVideoProgress",K1P(Mq)),X==null||X.removeEventListener("onVideoDataChange",kcP(Mq)),X==null||X.removeEventListener("onStateChange",xIy(Mq))});
return _.Q("desktop-shorts-player-controls",null,_.Q(jsF,{playerControlsProps:Mq}))},"Oe");
jsF=_.$c(function(K){var X=K.playerControlsProps;return _.Q("div",{class:"desktopShortsPlayerControlsWizHost"},_.Q(_.Awk,{progressBarProps:X,config:function(){return{isShortsPage:!0,hideProgressBar:X().videoDuration<30&&X().playerState!==2&&!X().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Pe");_.ywv=_.$c(function(K){function X(pO){pO!==0||c()?pO>50&&(c()||!L())?(B(!1),A(!0)):pO<=50&&(c()||L())&&(B(!1),A(!1)):B(!0)}
function F(pO,y9){var Wy;return _.q(function(eP){if(eP.nextAddress==1)return _.Y(eP,_.xf(),2);Wy=eP.yieldResult;y9&&Wy?(Wy.unMute(!0),pO&&(L1n(pO,Wy.getVolume()),R(Wy.getVolume()))):Wy&&(Wy.mute(!0),pO&&L1n(pO,0));_.JT(eP)})}
function P(pO){var y9,Wy;return _.q(function(eP){if(eP.nextAddress==1)return _.Y(eP,_.xf(),2);y9=eP.yieldResult;Wy=50;y9&&(Wy=y9.getVolume(),y9.isMuted()?L1n(pO,0):L1n(pO,Wy));R(Wy);_.JT(eP)})}
var H=K.orientation;K=_.t_();var f=_.t_(),u=_.$3(),J=_.D(_.u_(!1,void 0,"F6vt0d")),Z=J.next().value,M=J.next().value,n=_.D(_.u_(!1,void 0,"S5PCqb"));J=n.next().value;n=n.next().value;var c=J,B=n;n=_.D(_.u_(!0,void 0,"Tgy4e"));J=n.next().value;n=n.next().value;var L=J,A=n;J=_.D(_.u_(50,void 0,"Dq3efd"));var d=J.next().value,R=J.next().value;J=_.Qs(function(){var pO=c();return _.S("web_shorts_keyboard_enable_mute_shortcut")?pO?_.uY("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.uY("PLAYER_LABEL_MUTE",
void 0,"Mute (m)"):pO?_.uY("UNMUTE_VOLUME",void 0,"Unmute"):_.uY("MUTE_VOLUME",void 0,"Mute")},void 0,"zjOD8c");
n=_.Qs(function(){var pO=c(),y9=L();return{sources:[{clientResource:{imageName:pO?_.S("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":y9?_.S("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.S("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"bIZ5A");
var l=_.Qs(function(){var pO=d();return c()?pO+"% volume muted":pO+"% volume"},void 0,"kvkmyc"),a=_.Qs(function(){return H()==="vertical_down"},void 0,"zaNsZ");
_.AV(function(){function pO(){M(!0)}
function y9(){M(!1)}
u&&u.value&&(u.value.addEventListener("focus",pO),u.value.addEventListener("focusout",y9),P(u.value).then(function(){X(Number(TtM(u.value)))}));
f&&f.value&&(f.value.addEventListener("focus",pO),f.value.addEventListener("focusout",y9));_.AZ(function(){var Wy;u==null||(Wy=u.value)==null||Wy.removeEventListener("focus",pO);var eP;u==null||(eP=u.value)==null||eP.removeEventListener("focusout",y9);var gw;f==null||(gw=f.value)==null||gw.removeEventListener("focus",pO);var a3;f==null||(a3=f.value)==null||a3.removeEventListener("focusout",y9)})});
var E=_.DF(function(){if(u&&u.value){var pO=Number(TtM(u.value));otO(pO);R(pO);u.value.style.setProperty("--gradient-percent",pO+"%");X(pO)}return!1}),V=_.DF(function(){M(!0)}),x=_.DF(function(){u&&u.value&&(F(u.value,c()),B(!c()));
return!1}),N={},Dl={},Mq={};
return _.Q("desktop-shorts-volume-controls",{"on:pointerleave":_.DF(function(){M(!1)}),
class:_.HO("ytdDesktopShortsVolumeControlsHost",(N.ytdDesktopShortsVolumeControlsHostVertical=a,N.ytdDesktopShortsVolumeControlsHostExpanded=Z,N)),el:K},_.Q(_.p,{cond:function(){return!a()},
then:function(){var pO={};return _.Q("div",{class:_.HO("ytdDesktopShortsVolumeControlsBackgroundScrim",(pO.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=Z,pO))})}}),_.Q("div",{class:_.HO((Dl.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=a,Dl))},_.Q("button",{"aria-label":J,
title:J,el:f,"on:click":x,"on:pointerenter":V,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},n?_.Q(_.av,{data:n,alt:J,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.Q("div",{class:_.HO("ytdDesktopShortsVolumeControlsSliderContainer",(Mq.ytdDesktopShortsVolumeControlsSliderContainerExpanded=Z,Mq.ytdDesktopShortsVolumeControlsSliderContainerVertical=a,Mq.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=a,Mq.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return Z()&&a()},Mq))},_.Q("input",{"aria-label":_.uY("VOLUME"),
title:_.uY("VOLUME"),el:u,"on:input":E,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":d,"aria-valuetext":l,"aria-valuemin":0,"aria-valuemax":100})))},"Qe");_.Wv1=_.$c(function(K){var X=K.data;return _.Q("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.Q(_.ku,{command:function(){return X().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.Q(_.p,{cond:function(){return X().iconName},
then:function(F){return _.Q(_.ZF,{icon:F})}}),_.Q("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return X().text}),_.Q(_.p,{cond:function(){return X().showEndChevron},
then:function(){return _.Q(_.ZF,{icon:"CHEVRON_RIGHT"})}})))},"Re");var doJ=_.$c(function(K){var X=K.data;var F=K.overlayDensity;K={};return _.Q("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.Q(_.Md,{data:function(){return X().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(P){var H=P.data;
return _.Q(_.SZ,{data:function(){return(F==null?void 0:F())===1?Object.assign({},H(),{avatar:{avatarViewModel:Object.assign({},_.T(H().avatar,_.Gl),{avatarImageSize:"AVATAR_SIZE_48"})}}):H()}})}}),_.Q(_.Md,{data:function(){return X().avatarStackViewModel}},{avatarStackViewModel:function(P){return _.Q(_.oB,{data:P.data})}}),_.Q(_.Oy,{className:_.HO("ytReelChannelBarViewModelChannelName",(K.ytReelChannelBarViewModelChannelNameLarge=function(){return(F==null?void 0:F())===1},K)),
text:function(){return X().channelName},
linkInheritColor:!0,userInput:!0}),_.Q("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.Q(_.Md,{data:function(){return X().subscribeButtonViewModel}},{subscribeButtonViewModel:function(P){var H=P.data;
return _.Q(_.S1,{data:function(){return(F==null?void 0:F())===1?Object.assign({},H(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},H().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):H()},
isOverlay:!1})},
buttonViewModel:_.Af})),_.Q("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.Q(_.Md,{data:function(){var P,H;return(H=_.T((P=X())==null?void 0:P.sponsorButtonViewModel,LNC))==null?void 0:H.sponsorButton}},{buttonViewModel:function(P){return _.Q(_.Af,{data:P.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Se");var e8V=_.$c(function(K){var X={};return _.Q("yt-reel-multi-format-link-view-model",{class:_.HO("ytReelMultiFormatLinkViewModelHost",(X.ytReelMultiFormatLinkViewModelHostTall=!0,X.ytReelMultiFormatLinkViewModelHostLarge=function(){var F;return((F=K.overlayDensity)==null?void 0:F.call(K))===1},X))},_.Q(_.ku,{ariaLabel:function(){return K.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.w$(K.data().command)},
dangerousStopPropagation:!1},_.Q("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.Q(_.p,{cond:function(){return K.data().icon},
then:function(F){return _.Q(_.av,{data:F,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.Q(_.Oy,{text:function(){return K.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Te");
e8V.idomCompat=!0;var R8s=_.$c(function(K){var X=K.data;var F=K.overlayDensity;var P=_.t_();K=_.D(_.u_(!1,void 0,"xDqzhe"));var H=K.next().value,f=K.next().value;K=_.D(_.u_(!1,void 0,"LI9CFd"));var u=K.next().value,J=K.next().value,Z=function(){return X().isMultiLineSa},M=_.sy(TxO,function(){var E,V;
return(V=(E=X().toggleableContent)==null?void 0:E.entityKey)!=null?V:""}),n=function(){var E,V,x;
return(x=X().toggleableContent)!=null&&x.entityKey?(V=(E=M())==null?void 0:E.value)!=null?V:!1:!1},c=function(){var E,V,x,N,Dl,Mq,pO,y9,Wy,eP,gw;
return X().toggleableContent?n()?(E=X().toggleableContent)==null?void 0:E.toggledData:(V=X().toggleableContent)==null?void 0:V.untoggledData:{primaryText:(y9=(x=X().defaultContent)==null?void 0:x.primaryText)!=null?y9:X().text,secondaryText:(N=X().defaultContent)==null?void 0:N.secondaryText,onTapCommand:(Wy=(Dl=X().defaultContent)==null?void 0:Dl.onTapCommand)!=null?Wy:X().onTapCommand,icon:(eP=(Mq=X().defaultContent)==null?void 0:Mq.icon)!=null?eP:X().icon,image:(gw=(pO=X().defaultContent)==null?
void 0:pO.image)!=null?gw:X().image}},B=function(){return Z()?X().trailingTapTarget:void 0};
K=function(E,V){return function(){return H()?V:E}};
var L={leadingSection:K("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:K("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:K("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:K("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};K={};K=_.HO((K.ytShortsSuggestedActionViewModelStaticHost=function(){return!Z()},K.ytShortsSuggestedActionViewModelDynamicHost=Z,K.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return Z()&&u()},K.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return Z()&&!u()},K));
_.AV(function(){if(Z()){var E=0,V;if((V=X().animationParams)==null?0:V.shouldExpand){var x,N;E=((N=(x=X().animationParams)==null?void 0:x.expansionDelaySecs)!=null?N:0)*1E3}var Dl,Mq=((Dl=X().animationParams)==null?0:Dl.shouldExpand)?setTimeout(function(){f(!0)},E):void 0,pO,y9;
E=((pO=X().animationParams)==null?0:pO.visibilityDelaySecs)?((y9=X().animationParams)==null?NaN:y9.visibilityDelaySecs)*1E3:0;var Wy=setTimeout(function(){J(!0)},E);
_.AZ(function(){Mq&&clearTimeout(Mq);clearTimeout(Wy)})}});
var A=function(E){_.e9(E,Object.assign({},{form:{element:P.value}}))},d=_.DF(function(){var E,V=(E=c())==null?void 0:E.onTapCommand;
V&&A(V)}),R=_.DF(function(){var E,V;
if(E=(V=B())==null?void 0:V.onTapCommand)return A(E),!1}),l=_.Je({"vertical-align":"bottom",
"border-radius":function(){var E;return Z()?((E=X().defaultContent)==null?0:E.isCircleImage)?"50%":"4px":"0px"},
width:function(){var E,V,x;return Z()&&((E=X().defaultContent)==null?0:E.imageSize)?((x=(V=X().defaultContent)==null?void 0:V.imageSize)!=null?x:24)+"px":null},
height:function(){var E,V,x;return Z()&&((E=X().defaultContent)==null?0:E.imageSize)?((x=(V=X().defaultContent)==null?void 0:V.imageSize)!=null?x:24)+"px":null}}),a={};
return _.Q("yt-shorts-suggested-action-view-model",{class:K,el:P},_.Q("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.Q("button",{class:_.HO(function(){return Z()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var E;
return(E=X().useFullRoundedBorder)!=null&&E?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!B()&&Z()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":Z()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var E;
return(E=X().disableFixedHeight)!=null&&E?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(a.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(F==null?void 0:F())===1},a)),
"on:click":d},_.Q(_.MB,{model:{color:4}}),_.Q("div",{class:_.HO(function(){return Z()?L.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.Q(_.p,{cond:function(){var E;
return(E=c())==null?void 0:E.image},
then:function(E){return _.Q(_.av,{data:E,alt:"",className:function(){return Z()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:l})}}),_.Q(_.p,{cond:function(){var E,V;
return(E=c())==null?void 0:(V=E.icon)==null?void 0:V.iconType},
then:function(E){return _.Q(_.ZF,{icon:E,active:n,className:function(){return Z()?H()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.Q("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.Q(_.p,{cond:function(){var E;
return(E=c())==null?void 0:E.primaryText},
then:function(E){return _.Q("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.Q(_.Oy,{text:E}))}}),_.Q(_.p,{cond:function(){var E;
return(E=c())==null?void 0:E.secondaryText},
then:function(E){return _.Q("div",{class:L.secondaryText},_.Q(_.Oy,{text:E}))}}))),_.Q(_.p,{cond:B,
then:function(E){return _.Q("div",{class:L.trailingSection,"aria-label":function(){var V;return(V=E().a11yLabel)!=null?V:""},
"on:click":R,role:"button",tabindex:0},_.Q(_.MB,{model:{color:4}}),_.Q(_.ZF,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Ue");var Uoo=_.$c(function(K){var X=K.data;var F=K.overlayDensity;var P=_.t_();K=_.DF(function(u){if(_.Rk(_.e6(u),P.value,["A".toString()]))return!1;(u=X().truncatedTextOnTapCommand)&&_.e9(u);return!1});
var H={},f={};return _.Q("yt-shorts-video-title-view-model",{el:P,class:_.HO("ytShortsVideoTitleViewModelHost",(H.ytShortsVideoTitleViewModelHostClickable=function(){return!!X().truncatedTextOnTapCommand},H)),
"on:click":K},_.Q("h2",{class:_.HO("ytShortsVideoTitleViewModelShortsVideoTitle",(f.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(F==null?void 0:F())===1},f))},_.Q(_.Oy,{text:function(){return X().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"Ve");_.h88=_.$c(function(K){var X=K.data;var F=K.overlayDensity;return _.Q("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.Q(_.Md,{data:function(){return X().metadataItems}},{badgeViewModel:function(P){return _.Q("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Q(_.EG,{data:P.data}))},
playerDisclosureViewModel:function(P){return _.Q("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Q(_.Wv1,{data:P.data}))},
shortsSuggestedActionViewModel:function(P){return _.Q("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Q(R8s,{data:P.data,overlayDensity:F}))},
reelChannelBarViewModel:function(P){return _.Q("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Q(doJ,{data:P.data,overlayDensity:F}))},
reelMultiFormatLinkViewModel:function(P){return _.Q("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Q(e8V,{data:P.data,overlayDensity:F}))},
shortsVideoTitleViewModel:function(P){return _.Q("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Q(Uoo,{data:P.data,overlayDensity:F}))},
reelSoundMetadataViewModel:function(P){return _.Q("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Q(_.aiT,{data:P.data,overlayDensity:F}))},
toggleButtonViewModel:function(P){return _.Q("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Q(_.pS,{data:P.data}))}}))},"We");var mos=_.$c(function(K){var X=_.tA(K,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),F=X.size,P=X.onTap,H=X.disabled,f=X.tooltipText;return _.Q("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.Q(gV,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:F(),disabled:H(),tooltipText:f(),onTap:P}},
iconName:K.iconType}))},"Xe"),GJo=_.$c(function(K){function X(n){n.stopPropagation();
n.code==="ArrowUp"?(n.preventDefault(),jFy(J.value)):n.code==="ArrowDown"?(n.preventDefault(),wQw(J.value)):n.code==="KeyM"?ry3():(n.code==="KeyK"||n.code==="Space")&&Ayy(Z())}
var F=_.tA(K,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});K=F.previousButtonDisabled;var P=F.nextButtonDisabled,H=F.data,f=F.playabilityStatus,u=F.previewThumbnail,J=_.t_(),Z=_.rn(_.QZP),M;_.Tr(function(){(M=_.yf(J.value))&&M.addEventListener("keydown",X)});
_.AZ(function(){var n;(n=M)==null||n.removeEventListener("keydown",X)});
F=function(){var n,c,B;return(n=H())==null?void 0:(c=n.reelPlayerOverlayRenderer)==null?void 0:(B=c.likeButton)==null?void 0:B.likeButtonRenderer};
return _.Q("ytd-shorts-miniplayer-overlay",{el:J,class:"ytdShortsMiniplayerOverlayHost"},_.Q("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.Je({"background-image":function(){var n=u();return n?'url("'+_.CB(n.thumbnails)+'")':""}})}),_.Q("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.Q("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.Q(mos,{iconType:function(){var n=Z();
return n===2||n===-1||n===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){Ayy(Z())},
tooltipText:function(){var n=Z();return n===1||n===3?_.uY("PLAYER_LABEL_PAUSE"):_.uY("PLAYER_LABEL_PLAY")}}),_.Q(_.ywv,{orientation:"horizontal_right"})),_.Q("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.Q(mos,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:K,onTap:function(){jFy(J.value)},
tooltipText:_.uY("PREVIOUS_VIDEO_LABEL")}),_.Q(mos,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:P,onTap:function(){wQw(J.value)},
tooltipText:_.uY("NEXT_VIDEO_LABEL")}),_.S("web_shorts_pip_like_button")?_.Q("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.Q(J8O,{buttonTooltipPosition:"left",data:F,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.Q("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.Q(_.p,{cond:function(){var n,c;return _.T((n=H())==null?void 0:(c=n.reelPlayerOverlayRenderer)==null?void 0:c.metapanel,
_.pTL)},
then:function(n){return _.Q("div",{class:_.HO("ytdShortsMiniplayerOverlayInteractive")},_.Q(_.h88,{data:n}))}})),_.Q("div",{class:_.HO("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var n;return!((n=H())==null||!n.adsOverlay)||f()&&!gId(f())}},_.Q("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.Q(_.wFF,null)))),_.Q(_.p,{cond:function(){var n=H(),c,B;
n=_.T(n==null?void 0:(c=n.adsOverlay)==null?void 0:(B=c.fulfillmentContent)==null?void 0:B.fulfilledLayout,xyC);return _.T(n==null?void 0:n.renderingContent,Flu)},
then:function(n){return _.Q("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.Q(Q_Q,{data:n}))}}))},"Ye");var yyT=_.$c(function(){var K=_.D(_.u_(new _.q4(NaN,NaN),void 0,"HSMFk")),X=K.next().value,F=K.next().value;K=_.D(_.u_(!1,void 0,"uaAxwf"));var P=K.next().value,H=K.next().value,f=_.D(_.u_(!1,void 0,"nVSwef"));K=f.next().value;var u=f.next().value,J=_.i9().resolve(_.Wj).miniplayerPropSignalMap[0],Z=J.data,M=J.shortsData,n=J.nextButtonDisabled,c=J.shortsPreviewThumbnail,B=J.previousButtonDisabled,L=J.externalPlaylistData;f=J.toastData;var A=J.playabilityStatus,d=J.isDisabled,R=J.playerVe,l=J.closeVe;
J=_.rn(_.zX);_.aI("yt-pip-window-resized",function(x){F(x)});
_.aI("yt-activate-pip-miniplayer",function(){return _.q(function(x){u(!0);_.JT(x)})});
var a=function(){var x;return!((x=L())==null||!x.contents)&&P()},E=function(){var x=X(),N=!!Z(),Dl=a();
x=x.clone();N&&(x.height-=76);Dl&&(x.height-=285);return x},V=function(){H(!P())};
_.rs(function(){var x=R(),N=_.AD(11),Dl=_.r_(11);N&&Dl&&x&&(_.Us(N,Dl,x),Dl=l())&&(_.hc(N,x,[Dl]),_.G6(N,[Dl]))},"HPkp0c");
return _.Q("ytd-pip-container",{class:"ytdPipContainerHost"},_.Q(_.p,{cond:K,then:function(){return _.Q(_.OWt,{isDisabled:d,playabilityStatus:A,size:E})}}),_.Q(_.p,{cond:Z,
then:function(){return _.Q(_.tU8,{data:Z,expanded:P,onExpandClick:V,playlistData:L})}}),_.Q(_.p,{cond:a,
then:function(){return _.Q("div",{class:"ytdPipContainerPlaylistPanel"},_.Q(_.uGE,{data:L,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.Q(_.p,{cond:J,
then:function(){return _.Q(GJo,{data:M,nextButtonDisabled:n,previousButtonDisabled:B,playabilityStatus:A,previewThumbnail:c})}}),_.Q("div",{class:"ytdPipContainerToast"},_.Q(_.VUv,{toastData:f})))},"Ze");var cq=function(K,X){var F=this;this.pipController=K;this.JSC$16468_clientRoot=X;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=lSM();this.watchPipEnabled=_.S("web_watch_pip");this.shortsPipEnabled=_.S("web_shorts_pip");this.JSC$16468_watchWhileEnabled=_.S("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;_.Dg(_.aA(),_.qHl,function(P){F.isSingleOptionSurveyActive=P});
this.JSC$16468_onPlayerPlayVideo=this.JSC$16468_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);_.ly(_.GT.getInstance(),this.miniplayerServiceActionMap,this.JSC$16468_clientRoot);K.pictureInPictureSupported()&&_.LL("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},EGC,btv,Oto,CWw,N1J,bgV;
cq.prototype.handleMediaSessionPipActivation=function(){var K=this,X;return _.q(function(F){_.zC().mediaSessionPipActivation=!0;X=_.i9().resolve(_.ax);return X.isOnWatch()&&K.watchPipEnabled?(_.zC().watchPipActivation=!0,_.ldJ(K,X.data),F.jumpTo(0)):X.isOnShorts()&&K.shortsPipEnabled?(_.zC().shortsPipActivation=!0,_.v5o(K),F.jumpTo(0)):K.isMiniplayerActive()&&K.watchPipEnabled&&!K.watchWhileMode?_.Y(F,add(K),0):F.jumpTo(0)})};
var add=function(K){var X,F,P,H;return _.q(function(f){if(f.nextAddress==1)return X=!K.miniplayerToPipMode,F=K.playerElement,P=K.miniplayerData,H=K.watchResponse,_.Y(f,K.deactivate(),2);if(f.nextAddress!=3)return X?(_.zC().mediaSessionPipActivation=!0,_.zC().watchPipActivation=!0):_.zC().miniplayerButtonActivation=!0,_.Y(f,K.activate(F,P,H),3);K.miniplayerToPipMode=X;_.JT(f)})};
cq.prototype.onDownloadedVideoDeleted=function(K){var X,F=_.T((X=this.miniplayerData)==null?void 0:X.watchEndpoint,_.vg),P,H;F&&((P=this.watchResponse)==null?void 0:(H=P.playerResponse)==null?void 0:H.offlineState)!==void 0&&(X=F.videoId)&&K&&X===K&&this.close()};
cq.prototype.onShowMiniplayerCommand=function(K){var X=this,F,P,H,f,u,J,Z,M,n,c,B,L,A;return _.q(function(d){switch(d.nextAddress){case 1:return F=_.T(K,D6u),H=(P=F)==null?void 0:P.miniplayerCommand,f=_.T(H,_.vg),H&&f&&!X.active?_.Y(d,_.MA.getInstance(),2):d.return();case 2:return u=d.yieldResult,_.Y(d,(J=u)==null?void 0:J.get("yt-miniplayer-shown-video-id"),3);case 3:Z=d.yieldResult;M=f.videoId;if(!M||Z===M)return d.return();n=_.i9().resolve(_.ax);if(n.isOnWatch())return _.yy(Error("zj")),d.return();
c={channelItem:{externalId:btoa(M)}};X.readyToResumeVe=_.cO(121253,void 0,void 0,c);_.zC().showMiniplayerCommandActivation=!0;return _.Y(d,_.C3L(X,H,!0),4);case 4:return X.active?(_.pr(X,{readyToResumeVe:X.readyToResumeVe,continueWatching:!0,premiumBranding:!((B=F)==null||!B.showPremiumBranding)}),_.S("ytd_miniplayer_to_wiz")&&_.pr(X,{isReadyToResume:!0}),X.isReadyToResume=!0):_.pr(X,{continueWatching:!0,premiumBranding:!((L=F)==null||!L.showPremiumBranding)}),_.Y(d,(A=u)==null?void 0:A.set("yt-miniplayer-shown-video-id",
f.videoId),5);case 5:X.readyToResumeVe=void 0,_.JT(d)}})};
cq.prototype.init=function(K){this.miniplayerEl?_.yy(new _.nG("MiniplayerService already initialized.")):this.miniplayerEl=K};
cq.prototype.isInitialized=function(){var K=!!this.miniplayerEl;K||_.yy(new _.nG("MiniplayerService used before initialized."));return K};
_.ldJ=function(K,X){if(K.isInitialized()){var F=_.tcM(X.response,X.playerResponse),P=_.i9().resolve(_.ax).getPlayerFromWatch();_.zC().currentEndpoint=F.watchEndpoint||null;K.activate(P,F,X)}};
_.v5o=function(K){if(K.isInitialized()){var X=_.i9().resolve(_.ax).getPlayerFromShorts();K.activate(X)}};
EGC=function(K,X){var F;(F=!K.isInitialized())||(F=_.i9().resolve(_.ax).isOnWatch()&&K.watchPipMode,F=!(K.isMiniplayerActive()&&(_.zC().userActivation||_.zC().lockupActivation||F)));if(F)return!1;tkd(K,X)?_.Qr(K):bgV(K,X);return K.watchPipMode?!_.i9().resolve(_.ax).isOnWatch():!0};
cq.prototype.isMiniplayerActive=function(){return this.active};
var tkd=function(K,X){var F;X=(F=_.T(X,_.vg))==null?void 0:F.videoId;var P,H;K=(H=_.T((P=K.miniplayerData)==null?void 0:P.watchEndpoint,_.vg))==null?void 0:H.videoId;return X!=null&&X===K};
cq.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.iX(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.xr(this.miniplayerEl,"yt-navigate-home-action"))};
_.C3L=function(K,X,F,P){F=F===void 0?!1:F;var H,f,u;return _.q(function(J){switch(J.nextAddress){case 1:if(K.active){J.jumpTo(2);break}H=_.i9().resolve(_.ax);if(u=(f=K.playerElement)!=null?f:H.getPlayerFromWatch()){J.jumpTo(3);break}return _.Y(J,_.i9().resolve(_.bC),4);case 4:u=H.getPlayerFromWatch();case 3:if(!u){_.yy(Error("Bj"));J.jumpTo(2);break}return _.Y(J,K.activate(u,P),2);case 2:return K.active?_.Y(J,bgV(K,X,F),0):J.return()}})};
cq.prototype.activate=function(K,X,F){var P=this,H,f,u,J,Z,M,n,c,B;return _.q(function(L){switch(L.nextAddress){case 1:if(!P.isInitialized())return L.return();if(!K)return _.yy(Error("Bj")),L.return();if(_.MYT()||P.isMiniplayerActive())var A=!0;else A=_.zC().watchPipActivation||_.zC().watchWhileActivation,_.i9().resolve(_.ax).isOnWatch()&&!A?(_.yy(new _.nG("miniplayer activated on watch page")),A=!0):A=_.zC().watchWhileActivation?P.userDeactivatedWatchWhile||!!document.pictureInPictureElement||AOy():
!1;if(A)return Q9E(),L.return();H=_.zC().mediaSessionPipActivation;f=_.zC().shortsPipActivation;u=_.zC().watchPipActivation;Z=(J=_.zC().watchWhileActivation)||u;M=u||f;if(!P.pictureInPictureEnabled()||!M){L.jumpTo(2);break}return _.Y(L,$ot(P,H),3);case 3:if(!L.yieldResult)return _.yy(Error("Aj")),Q9E(),L.return();case 2:return P.setActive(!0),P.watchResponse=F,P.playerElement=K,P.updateMiniplayerData(X),_.Y(L,Oto(P,K),4);case 4:if(!P.active)return _.yy(new _.nG("miniplayer deactivated during activation")),
P.removePlayerListeners(),L.return();A=_.i9().resolve(_.AW);A.addEventListener("yt-navigate",_.Pc(P,P.onPlaylistNavigate));A.addEventListener("yt-playlist-data-updated",_.Pc(P,P.JSC$16468_onPlaylistDataUpdated));P.JSC$16468_onPlaylistDataUpdated();Q9E();P.JSC$16468_watchWhileEnabled&&_.VkV(P,J);P.pictureInPictureEnabled()&&P.shortsPipEnabled&&(P.shortsPipMode=f,_.aA().dispatch(XCt(P.shortsPipMode)));P.pictureInPictureEnabled()&&P.watchPipEnabled&&(P.watchPipMode=u,_.wK9(P.handleMediaSessionPipActivation));
P.player&&(n=P.player.getPlayerState(),c=n===1,_.aA().dispatch(q6u(n)),_.IJ(P.miniplayerEl,"yt-miniplayer-play-state-changed",[c]),_.zC().isVideoPlaying=c);_.IJ(P.miniplayerEl,"yt-miniplayer-endpoint-changed");g58(P);_.E5k(P);return P.shortsPipMode||P.watchPipMode?_.Y(L,_.kr(P.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.S("ytd_miniplayer_to_wiz")?_.Y(L,_.kr(P.miniplayerEl,"yt-activate-miniplayer",[Z]),6):_.Y(L,_.kr(P.miniplayerEl,"yt-activate-miniplayer-action",[K,Z]),6);case 6:if(P.watchResponse&&
!_.S("miniplayer_copy_screen_on_activation_killswitch")){A=P.getScreenLayer();var d=_.AD(0),R=ovO(0);d&&R&&(_.w_(d,R,A),A===0&&BYq(void 0,0))}btv(P);CWw(P,!0);(B=P.getPlayerElement())==null||B.focusOnPlayer();_.JT(L)}})};
cq.prototype.updateMiniplayerData=function(K){this.miniplayerData=K;_.pr(this,{data:K})};
_.E5k=function(K){var X,F,P=((X=K.miniplayerData)==null?void 0:(F=X.miniplayerRenderer)==null?void 0:F.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";X=K.watchWhileMode||K.watchPipMode?P&&!_.i9().resolve(_.ax).isOnWatch():P;_.pr(K,{isDisabled:X});var H,f;F=_.T((H=K.miniplayerData)==null?void 0:(f=H.miniplayerRenderer)==null?void 0:f.minimizedEndpoint,_.pz);X&&F&&_.i9().resolve(_.pf).openSheet({openPopupActionCommand:{openPopupAction:F}},K.miniplayerEl)};
btv=function(K){if(K.watchResponse&&!N1J(K)){var X,F=(X=K.watchResponse.playerResponse)==null?void 0:X.trackingParams;F&&(_.pr(K,{expandVe:_.cO(35989),closeVe:_.cO(34699),readyToResumeCloseVe:_.cO(131070),repositionVe:_.cO(226204),resizeVe:_.cO(226205)}),_.pr(K,{playerVe:_.QB(F)}))}};
Oto=function(K,X){return _.q(function(F){if(F.nextAddress==1)return X.preparePlayer(),_.Y(F,X.getPlayerPromise(),2);K.player=F.yieldResult;K.player&&(K.player.addEventListener("onPlayVideo",K.JSC$16468_onPlayerPlayVideo),K.player.addEventListener("onCloseMiniplayer",K.onPlayerCloseMiniplayer),K.player.addEventListener("onExpandMiniplayer",K.onPlayerExpandMiniplayer),K.player.addEventListener("onStateChange",K.onPlayerStateChange));_.JT(F)})};
_.z=cq.prototype;_.z.JSC$16468_onPlayerPlayVideo=function(K){var X=K.sessionData&&"autonav"in K.sessionData,F;K.sessionData&&K.sessionData.itct&&(F=K.sessionData.itct);var P=K.watchEndpoint;X=P&&X?_.Ws4(P,F):_.Es(K.videoId,K.listId||void 0,F);K.sessionData&&_.Oc(_.T(X.commandMetadata,_.g_).url,K.sessionData);bgV(this,X)};
_.z.onPlayerExpandMiniplayer=function(){_.Qr(this)};
_.z.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.z.onPlayerStateChange=function(){if(this.player){var K=this.player.getPlayerState(),X=K===1;_.aA().dispatch(q6u(K));_.aA().dispatch(_.Y6C(K));_.IJ(this.miniplayerEl,"yt-miniplayer-play-state-changed",[X]);_.zC().isVideoPlaying=X;if(K===0){X=!_.$2.getInstance().isAutoplaySetExplicitly();var F,P,H,f,u,J,Z=(F=this.watchResponse.response)==null?void 0:(P=F.contents)==null?void 0:(H=P.twoColumnWatchNextResults)==null?void 0:(f=H.autoplay)==null?void 0:(u=f.autoplay)==null?void 0:(J=u.autoplayExplicitChoiceDialogRenderer)==
null?void 0:J.confirmDialogRenderer;X&&Z&&this.player.setAutonavState(1)}K===0&&this.watchWhileMode&&this.deactivate()}};
_.z.onPlaylistNavigate=function(K,X){var F=this,P,H,f,u,J,Z,M;return _.q(function(n){if(n.nextAddress==1){if(!_.T(X.endpoint,_.vg))return n.return();_.zC().currentEndpoint=X.endpoint;_.IJ(F.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.i9().resolve(_.ax).isOnWatch()&&(F.watchWhileMode||F.watchPipMode))return n.return();K.stopPropagation();(f=(H=_.T((P=X.endpoint)==null?void 0:P.commandMetadata,_.g_))==null?void 0:H.url)&&X.tempData&&!_.T8.isEmpty(X.tempData)&&_.Oc(f,X.tempData);u={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};J=new M1E(function(){return F.getPlayerElement()},u,{layer:F.getScreenLayer()});
Z=function(c){J.processChunk({endpoint:X.endpoint,data:c})};
itW(F);F.miniplayerFetchRequest=xov(F,X.endpoint,Z);_.s2(n,2);return _.Y(n,F.miniplayerFetchRequest,4)}if(n.nextAddress!=2)return M=n.yieldResult,Id5(F,M),_.Gy(n,0);_.qc(n);_.JT(n)})};
_.z.JSC$16468_onPlaylistDataUpdated=function(){var K=_.i9().resolve(_.AW).getPlaylistData();this.hasPlaylistData=!!K;_.pr(this,{externalPlaylistData:K||{}})};
_.z.close=function(K){if(this.isInitialized())if(K){if(!((this.watchWhileMode||this.watchPipMode)&&_.i9().resolve(_.ax).isOnWatch()||this.shortsPipMode)){var X;(X=this.getPlayerElement())==null||X.stop()}this.deactivate()}else _.dz().closeMiniplayer(this.miniplayerEl)};
_.z.deactivate=function(K){var X=this,F,P,H,f;return _.q(function(u){if(u.nextAddress==1){if(!X.isInitialized()||!X.active)return u.return();X.setActive(!1);itW(X);(F=!!K&&tkd(X,K))&&X.isSingleOptionSurveyActive&&_.xr(X.miniplayerEl,"yt-show-watch-page-survey",[X.isSingleOptionSurveyActive]);return _.Y(u,kJo(X),2)}if(u.nextAddress!=3){CWw(X,!1);X.isReadyToResume=!1;X.watchResponse=void 0;X.updateMiniplayerData(void 0);X.shortsPipMode&&(X.shortsPipMode=!1,_.aA().dispatch(XCt(X.shortsPipMode)),B5t(X.pipController),
(P=X.player)==null||P.setInternalSize(NaN,NaN));X.watchPipMode&&(X.watchPipMode=!1,B5t(X.pipController));(H=X.watchWhileMode)&&_.VkV(X,!1);X.removePlayerListeners();var J=_.i9().resolve(_.AW);J.removeEventListener("yt-navigate",_.Pc(X,X.onPlaylistNavigate));J.removeEventListener("yt-playlist-data-updated",_.Pc(X,X.JSC$16468_onPlaylistDataUpdated));_.zC().currentEndpoint=null;_.IJ(X.miniplayerEl,"yt-miniplayer-endpoint-changed");X.playerElement=null;Q9E();return X.shortsPipMode||X.watchPipMode?u.jumpTo(3):
_.Y(u,_.kr(X.miniplayerEl,_.S("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[F,H]),3)}(f=X.player)==null||f.setInternalSize(NaN,NaN);X.player=null;_.JT(u)})};
var kJo=function(K){var X;return _.q(function(F){X=_.i9().resolve(_.ax);return K.shortsPipMode?_.Y(F,X.movePlayerToShorts(K.playerElement),0):_.Y(F,X.movePlayerToWatch(K.playerElement),0)})};
cq.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16468_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
cq.prototype.setActive=function(K){this.active=K;this.isSingleOptionSurveyActive?_.xr(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.xr(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.aA().dispatch(_.iY({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.VkV=function(K,X){K.watchWhileMode=X;_.pr(K,{watchWhile:X})};
CWw=function(K,X){if(!N1J(K))if(K.shortsPipMode||K.watchPipMode){var F;(F=K.player)==null||F.setDocumentPictureInPicture(X)}else{var P;(P=K.player)==null||P.setMinimized(X)}};
N1J=function(K){return K.watchWhileMode&&_.S("kevlar_watch_while_counterfactual")};
_.Qr=function(K){var X;return _.q(function(F){switch(F.nextAddress){case 1:if(!K.isInitialized())return F.return();_.s2(F,2);return _.Y(F,K.miniplayerFetchRequest,4);case 4:_.Gy(F,3);break;case 2:_.qc(F);case 3:K.watchResponse&&K.miniplayerData&&K.miniplayerData.watchEndpoint?(X={url:K.watchResponse.url,endpoint:K.miniplayerData.watchEndpoint,data:K.watchResponse,miniplayer:!0},_.iX(K.miniplayerEl,"yt-navigate-cache",X)):K.miniplayerData&&K.miniplayerData.watchEndpoint&&_.iX(K.miniplayerEl,"yt-navigate",
{endpoint:K.miniplayerData.watchEndpoint}),_.JT(F)}})};
bgV=function(K,X,F){var P,H,f,u;return _.q(function(J){if(J.nextAddress==1){if(tkd(K,X))return J.return();_.zC().currentEndpoint=X;_.IJ(K.miniplayerEl,"yt-miniplayer-endpoint-changed");_.IJ(K.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.zC().isVideoPlaying=!1;P={clientParams:{miniplayer:!0,autoSaveToQueue:!F}};H=new M1E(function(){return K.getPlayerElement()},P,{layer:K.getScreenLayer(),
parentLayer:0},void 0,K.readyToResumeVe);f=function(Z){var M,n,c=Object.assign({},(M=Z.playerResponse)==null?void 0:(n=M.playerConfig)==null?void 0:n.playbackStartConfig,{startPaused:!0}),B;F&&((B=Z.playerResponse)==null?0:B.playerConfig)&&(Z.playerResponse.playerConfig.playbackStartConfig=c);H.processChunk({endpoint:X,data:Z})};
itW(K);K.miniplayerFetchRequest=xov(K,X,f);_.s2(J,2);return _.Y(J,K.miniplayerFetchRequest,4)}if(J.nextAddress!=2)return u=J.yieldResult,Id5(K,u),_.Gy(J,0);_.qc(J);_.JT(J)})};
cq.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var itW=function(K){K.miniplayerFetchRequest&&(K.miniplayerFetchRequest.cancel&&K.miniplayerFetchRequest.cancel("Active request obsolete"),K.miniplayerFetchRequest=null)},xov=function(K,X,F){var P=_.uZ.instance,H,f=(H=_.T(X.commandMetadata,_.g_))==null?void 0:H.url,u;
H=!f||_.S("disable_miniplayer_tempdata")?{}:(u=DET(f))!=null?u:{};return Ri(P,X,H,window.location.href,"watch",function(J,Z){F(Z)},function(J){return J!==K.miniplayerFetchRequest})},Id5=function(K,X){var F;
_.q(function(P){if(!X)return P.return();K.watchResponse=X;btv(K);g58(K);F=_.tcM(X.response,X.playerResponse);if(K.isMiniplayerActive()){X.response&&(K.playerElement.watchNextData=X.response);var H=_.T8.getValueByKeys.apply(_.T8,[X].concat(_.LZ(AjT)));_.T8.getValueByKeys.apply(_.T8,[X].concat(_.LZ(dhN)))&&H&&_.i9().resolve(_.AW).setAutoplayRenderer(H);if(H)if(_.S("kevlar_is_pupi_enabled")){var f,u,J,Z,M,n=((f=X.response)==null?0:(u=f.playerOverlays)==null?0:(J=u.playerOverlayRenderer)==null?0:(Z=J.autonavToggle)==
null?0:(M=Z.autoplaySwitchButtonRenderer)==null?0:M.enabled)?2:1;_.$2.getInstance().setState(n,!1,!1)}else f=o0M()?2:1,(n=K.player)==null||n.setAutonavState(f);K.updateMiniplayerData(F);_.E5k(K)}_.JT(P)})},g58=function(K){var X,F,P=(X=K.watchResponse)==null?void 0:(F=X.playerResponse)==null?void 0:F.playabilityStatus,H;
X=P==null?void 0:(H=P.miniplayer)==null?void 0:H.miniplayerRenderer;(X==null?void 0:X.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&X.minimizedEndpoint&&_.Kl(K.miniplayerEl,[X.minimizedEndpoint]);_.pr(K,{miniplayerRenderer:X,playabilityStatus:P})};
cq.prototype.openToast=function(K,X){_.pr(this,{toastData:{data:K,label:X}})};
_.pr=function(K,X){var F=K.miniplayerEl,P;for(P in X)F[P]=X[P];(0,K.miniplayerPropSignalMap[1])(X)};
cq.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var K;return this.playerElement?this.playerElement:(K=_.C$(this.miniplayerEl).querySelector("#player-container"))==null?void 0:K.firstElementChild};
cq.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var $ot=function(K,X){X=X===void 0?!1:X;var F,P,H,f,u,J,Z;return _.q(function(M){if(M.nextAddress==1){F=navigator.userActivation.isActive||X;if(!F||!K.pictureInPictureSupported())return M.return(!1);P=K01(K);H=P.width;f=P.height;return _.Y(M,K.pipController.openWindow({width:H,height:f}),2)}u=M.yieldResult;J=K.pipController.getWindow();if(!J||!u)return M.return(!1);J.document.body.style.overflow="hidden";Z=W1M(J);SJN(K.pipController,function(){XJw(K);Z()});
return M.return(!0)})},K01=function(K){var X=_.zC().shortsPipActivation,F,P;
K=X?.5625:(P=(F=K.player)==null?void 0:F.getVideoAspectRatio())!=null?P:16/9;F=Math.min(window.innerWidth,window.innerHeight)/2;X=X?0:76;return K>1?new _.q4(F,X+F/K):new _.q4(F*K,X+F)},XJw=function(K){var X;
_.q(function(F){X=_.i9().resolve(_.ax);return X.isOnWatch()&&K.watchPipMode||X.isOnShorts()&&K.shortsPipMode?_.Y(F,K.deactivate(),0):K.miniplayerToPipMode?_.Y(F,add(K),0):K.watchPipMode?_.Y(F,_.Qr(K),0):F.jumpTo(0)})};
cq.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.Oi.Object.defineProperties(cq.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
cq[$0]=[oZL,ORU];var F08="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(" "),
Pc1="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(" "),Hx1="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
s01="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var zHw=null;var fsV={},DRF=(fsV.initialized={priority:10,callback:function(K){var X=_.i9();X.addProvider({provide:TEC,useClass:pyt});X.addProvider({provide:_.cMd,useFactory:function(){return new rTO}});
X.addProvider({provide:M5,useValue:_.e8("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});X.addProvider({provide:egQ,useValue:5184E6});X.addProvider({provide:bct,useValue:_.Bj()});X.addProvider({provide:PVZ,useClass:IMC});X.addProvider({provide:WA,useClass:WA});X.addProvider({provide:_.bC,useFactory:function(){return PdN.promise}});
X.addProvider({provide:_.sWE,useFactory:function(){return _.HAW.promise}});
X.addProvider({provide:j1M,useValue:function(){var J;return((J=_.$f())==null?void 0:J.getPlayer())||null}});
var F={};X.addProvider((F.provide=_.l5,F.useFactory=function(J,Z){return function(){return qqy(J,Z)}},F[$0]=[M5,
egQ],F));F={};X.addProvider((F.provide=_.Kf,F.useClass=p1V,F[$0]=[M5,egQ],F));F={};X.addProvider((F.provide=_.V$9,F.useClass=LGQ,F[$0]=[_.Kf],F));X.addProvider({provide:zU,useFactory:_.aA});X.addProvider({provide:FJ,useFactory:_.aA});X.addProvider({provide:zqZ,useFactory:_.aA});X.addProvider({provide:t1U,useFactory:_.aA});X.addProvider({provide:_.jE,useFactory:_.aA});X.addProvider({provide:FE,useValue:_.sz});X.addProvider({provide:ZOd,useClass:Acy});X.addProvider({provide:q9Q,useClass:uIL});X.addProvider({provide:TL,
useClass:TL});X.addProvider({provide:PU,useClass:PU});X.addProvider({provide:HU,useClass:HU});X.addProvider({provide:zP,useClass:zP});X.addProvider({provide:dv,useClass:dv});X.addProvider({provide:H5,useClass:H5});X.addProvider({provide:xG,useClass:xG});X.addProvider({provide:f2O,useValue:RT8});X.addProvider({provide:_.n3,useFactory:_.uH});X.addProvider({provide:gD,useFactory:_.ZO});F={};X.addProvider((F.provide=j6T,F.useFactory=function(J){return function(Z){var M=M===void 0?{}:M;var n,c,B=(c=_.T((n=
Z.endpoint)==null?void 0:n.commandMetadata,_.g_))==null?void 0:c.rootVe;if(B){var L,A;if(n=Z.previousCsn||((A=_.T((L=Z.endpoint)==null?void 0:L.commandMetadata,l1C))==null?void 0:A.parentCsn)){var d=d===void 0?{}:d;if(n!==_.AD(d.layer)||B!==ovO(d.layer))jGy(n,d.cttAuthInfo,d.layer||0),BYq(n,d.layer||0),L=d.layer||0,_.d2(SQy(L===void 0?0:L),B);M.parentCsn=n}Z.endpoint&&n?KdC(J,Z.endpoint,M):_.IZ(J,B,void 0,M);var R;((R=Z.response)==null?0:R.trackingParams)&&J.graftServerVe(Z.response.trackingParams);
var l;((l=Z.playerResponse)==null?0:l.trackingParams)&&J.graftServerVe(Z.playerResponse.trackingParams);var a;((a=Z.reelWatchSequenceResponse)==null?0:a.trackingParams)&&J.graftServerVe(Z.reelWatchSequenceResponse.trackingParams)}}},F[$0]=[_.n3],F));
F={};X.addProvider((F.provide=DtC,F.useClass=fiu,F[$0]=[FE,_.jE],F));F={};X.addProvider((F.provide=NQ,F.useClass=NQ,F[$0]=[_.bC,_.jE],F));F={};X.addProvider((F.provide=gv,F.useClass=gv,F[$0]=[FJ,_.xU],F));X.addProvider({provide:_.QSu,useClass:T5O});F={};X.addProvider((F.provide=_.cR,F.useClass=ciU,F[$0]=[_.QSu],F));X.addProvider({provide:_.pf,useClass:Ie});X.addProvider({provide:$HW,useClass:Xyk});X.addProvider({provide:_.BR,useClass:i5});F={};X.addProvider((F.provide=_.ts,F.useClass=LAN,F[$0]=[_.ts],
F));X.addProvider({provide:_.xj,useClass:PFL});X.addProvider({provide:Js,useClass:Js});X.addProvider({provide:ca,useClass:ca});X.addProvider({provide:As,useClass:xy});F={};X.addProvider((F.provide=y_,F.useClass=y_,F[$0]=[_.pf,As],F));_.S("web_enable_feedback_endpoint_resolver")&&(F={},X.addProvider((F.provide=f7,F.useClass=f7,F[$0]=[zU,sp],F)),X.addProvider({provide:sp,useClass:rGC}));_.S("web_enable_feedback_endpoint_resolver_batch_2")&&(F={},X.addProvider((F.provide=uI,F.useClass=uI,F[$0]=[zU],
F)),F={},X.addProvider((F.provide=Dh,F.useClass=Dh,F[$0]=[sp],F)));F={};X.addProvider((F.provide=jH,F.useClass=jH,F[$0]=[_.BR,As],F));F={};X.addProvider((F.provide=oV,F.useClass=oV,F[$0]=[_.BR],F));F={};X.addProvider((F.provide=wD,F.useClass=wD,F[$0]=[_.L$,_.cR],F));F={};X.addProvider((F.provide=rD,F.useClass=rD,F[$0]=[_.L$,_.n3],F));X.addProvider({provide:xb,useClass:xb});F={};X.addProvider((F.provide=V_,F.useClass=V_,F[$0]=[zU],F));X.addProvider({provide:qZ,useClass:qZ});F={};X.addProvider((F.provide=
Zk,F.useClass=Zk,F[$0]=[zU],F));F={};X.addProvider((F.provide=YG,F.useClass=YG,F[$0]=[_.L$,zU],F));F={};X.addProvider((F.provide=Q7,F.useClass=Q7,F[$0]=[zU],F));F={};X.addProvider((F.provide=MZ,F.useClass=MZ,F[$0]=[zU],F));F={};X.addProvider((F.provide=L7,F.useClass=L7,F[$0]=[_.cR],F));F={};X.addProvider((F.provide=FD,F.useClass=FD,F[$0]=[_.n3],F));F={};X.addProvider((F.provide=Dk,F.useClass=Dk,F[$0]=[N5],F));F={};X.addProvider((F.provide=uL,F.useClass=uL,F[$0]=[N5],F));X.addProvider({provide:sA,
useClass:sA});X.addProvider({provide:z7,useClass:z7});X.addProvider({provide:XD,useClass:XD});F={};X.addProvider((F.provide=Wa,F.useClass=Wa,F[$0]=[_.cR,_.xU],F));X.addProvider({provide:Q_,useClass:Q_});F={};X.addProvider((F.provide=TU,F.useClass=TU,F[$0]=[_.L$,_.cR],F));X.addProvider({provide:p7,useClass:p7});F={};X.addProvider((F.provide=$b,F.useClass=$b,F[$0]=[zU,_.L$,_.ts],F));F={};X.addProvider((F.provide=va,F.useClass=va,F[$0]=[_.L$,_.xU],F));X.addProvider({provide:WMN,useValue:r3y});X.addProvider({provide:hoE,
useValue:kaM});X.addProvider({provide:aV,useClass:aV});F={};X.addProvider((F.provide=lI,F.useClass=lI,F[$0]=[zU],F));F={};X.addProvider((F.provide=Op,F.useClass=Op,F[$0]=[_.xj,_.xU],F));F={};X.addProvider((F.provide=q5,F.useClass=q5,F[$0]=[_.xU],F));X.addProvider({provide:Ha,useFactory:function(){return new Ha(_.aA())}});
X.addProvider({provide:CPl,useFactory:_.BI.getInstance});F={};X.addProvider((F.provide=n7,F.useClass=n7,F[$0]=[M5,CPl,_.xU],F));X.addProvider({provide:Zh,useClass:Zh});X.addProvider({provide:kN,useClass:kN});X.addProvider({provide:X6,useClass:X6});X.addProvider({provide:_.K7,useClass:_.K7});X.addProvider({provide:pR,useClass:pR});F={};X.addProvider((F.provide=hs,F.useClass=hs,F[$0]=[FJ],F));F={};X.addProvider((F.provide=mO,F.useClass=mO,F[$0]=[_.xU],F));_.S("web_enable_prefetching_videos_on_home")&&
(X.addProvider({provide:Vl,useClass:Vl}),X.addProvider({provide:DC,useClass:DC}));F={};X.addProvider((F.provide=co,F.useClass=co,F[$0]=[_.xU],F));X.addProvider({provide:F6,useClass:F6});F={};X.addProvider((F.provide=IV,F.useClass=IV,F[$0]=[_.L$,_.xU],F));F={};X.addProvider((F.provide=Pa,F.useClass=Pa,F[$0]=[_.xU],F));X.addProvider({provide:uM,useClass:uM});X.addProvider({provide:RV,useClass:RV});F={};X.addProvider((F.provide=eH,F.useClass=eH,F[$0]=[FJ,_.xU],F));F={};X.addProvider((F.provide=oM,F.useClass=
oM,F[$0]=[FJ,_.xU,_.L$],F));F={};X.addProvider((F.provide=LR,F.useClass=LR,F[$0]=[_.xU],F));F={};X.addProvider((F.provide=S_,F.useClass=S_,F[$0]=[_.xU,_.L$],F));F={};X.addProvider((F.provide=GU,F.useClass=GU,F[$0]=[_.bC],F));F={};X.addProvider((F.provide=Up,F.useClass=Up,F[$0]=[_.bC],F));X.addProvider({provide:C7,useClass:C7});X.addProvider({provide:iI,useClass:iI});X.addProvider({provide:JB,useClass:JB});X.addProvider({provide:kb,useClass:kb});X.addProvider({provide:bI,useClass:bI});X.addProvider({provide:Ba,
useClass:Ba});X.addProvider({provide:Ep,useClass:Ep});_.S("kevlar_enable_mss_lazy_load")&&X.addProvider({provide:_.eN,useClass:kn1});X.addProvider({provide:_.fE,useClass:Kr});X.addProvider({provide:tp,useFactory:function(){return _.GT.getInstance()}});
X.addProvider({provide:H2L,useFactory:rOP});X.addProvider({provide:N5,useFactory:function(){return _.MA.getInstance()}});
X.addProvider({provide:i3N,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});F={};X.addProvider((F.provide=_.Ef,F.useClass=_.Ef,F[$0]=[_.bC,_.xU,_.n3,H2L,N5,tp,i3N,FE],F));X.addProvider({provide:_.sI,useClass:jML});X.addProvider({provide:_.UHT,useClass:RgU});F={};X.addProvider((F.provide=SH,F.useClass=SH,F[$0]=[_.UHT],F));F={};X.addProvider((F.provide=_.b5,F.useFactory=function(J){return J.upliftCompletionResolver.promise},F[$0]=[DtC],F));
F=_.RU("IS_SHELL_LOAD")?"aa":"eocs";var P=_.RU("IS_SHELL_LOAD")?3:2;_.wz().parkOrScheduleJob(function(){qJC()},P,F);
_.wz().parkOrScheduleJob(function(){_.i9().resolve(NQ).start()},2,"eocs");
_.wz().parkOrScheduleJob(function(){sSZ()},2,"eocs");
_.wz().parkOrScheduleJob(function(){_.i9().resolve(gv).start()},2,"eocs");
_.S("kevlar_debug_data_app_registration_ks")||Ikd();X.addProvider({provide:_.BO,useValue:new MVL(K.root)});X.addProvider({provide:h_,useValue:new V9M});X.addProvider({provide:_.T6Q,useValue:new oBL(K.root)});X.addProvider({provide:_.oj,useValue:new LxV});X.addProvider({provide:_.Jk,useClass:uq});X.addProvider({provide:oZL,useClass:ky});_.S("kevlar_network_sli_killswitch")||X.addProvider({provide:Two,useValue:afW});X.addProvider({provide:YlV,useFactory:zuT});_.S("web_bind_fetch")&&(F={},X.addProvider((F.provide=
Q3d,F.useFactory=fSl,F[$0]=[_.Nu(YlV)],F)));_.S("web_bind_parse")&&(F={},X.addProvider((F.provide=MPV,F.useFactory=DIl,F[$0]=[_.Nu(YlV)],F)));_.S("web_bind_window_request")&&(F={},X.addProvider((F.provide=nd8,F.useFactory=u_O,F[$0]=[_.Nu(YlV)],F)));F={};X.addProvider((F.provide=xHT,F.useFactory=Ten,F[$0]=[_.b5,zU,_.l5],F));F={};X.addProvider((F.provide=icL,F.useClass=T7,F[$0]=[xHT],F));X.addProvider({provide:ZVt,useClass:D3Q});X.addProvider({provide:EVE,useClass:CFN});F=[].concat(_.LZ(he));_.S("web_continuation_response_processing")&&
F.push(_.jd);F.push(qHQ);_.S("enable_share_panel_navigation_logging_fix_on_web")&&F.push(_.R0V);X.addProvider({provide:QMP,useValue:F});X.addProvider({provide:xNO,useClass:gVL});X.addProvider({provide:yMv,useClass:rMd});F={};X.addProvider((F.provide=bmP,F.useClass=UGC,F[$0]=[FJ],F));_.A9.addLowPriorityJob(function(){C3w()});
F={};X.addProvider((F.provide=V1U,F.useFactory=function(J){return function(Z){var M,n=(M=_.T(Z.commandMetadata,_.g_))==null?void 0:M.url;if(!n)throw new _.nG("No URL for PBJ Command",Z);n=TgM(n,{pbj:"1"});M=$zd(n,{})||{};M=Object.assign({},M,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.e8("STS").toString()});Z=_.Dr({command:JSON.stringify(Z),session_token:_.e8("XSRF_TOKEN")});return J.fetch(n,{method:"POST",headers:M,body:Z})}},F[$0]=[yMv],F));
F=[];F.push(X.resolve(EVE));P={};P=(P.client_location=_.BI.getInstance(),P.consistency=_.nqy(),P.entities=X.resolve(q9Q),P.response_received_commands=X.resolve(xNO),P.store=X.resolve(_.V$9),P.tokens=X.resolve(EVE),P);if(_.S("web_shorts_prefetch_service_enabled")){var H=new T3L(X.resolve(_.Kf));P.shorts_prefetch=H}P.adblock_detection=X.resolve(bmP);X.addProvider({provide:_.lU,useClass:_.lU});H=X.resolve(f2O);var f=[];_.S("PremiumClientSharedConfig__enable_att_context_processor")&&(X.addProvider({provide:ClQ,
useClass:gBL}),f.push(X.resolve(ClQ)));if(_.S("owl_pl_await")){var u={};X.addProvider((u.provide=flG,u.useFactory=function(J){return new s3t(J)},u[$0]=[_.lU],u));
f.push(X.resolve(flG))}NNZ(H,X.resolve(yMv),X.resolve(ZOd),P,X.resolve(_.Kf),F,f,X.resolve(icL),X.resolve(ZVt));X.addProvider({provide:_.L$,useValue:_.dn.instance});_.S("start_client_gcf")&&X.addProvider({provide:pL,useValue:xUO()});X.addProvider({provide:Z2Z,useFactory:function(){return new Z2Z(_.i9().resolve(_.lU),_.MA.getInstance())}});
_.wz().parkOrScheduleJob(function(){YJE()},1,"eocs");
F={};X.addProvider((F.provide=C_,F.useClass=C_,F[$0]=[_.l5,_.L$],F));X.addProvider({provide:_.yiW,useFactory:_.fr.getInstance});_.wz().parkOrScheduleJob(function(){_.i9().resolve(C_).refresh()},0,"eocs");
gzT(RT8.watchEndpointMap||{},H.reelWatchEndpointMap||{},K.injector.resolve(_.L$));X.addProvider({provide:nk,useValue:_.uZ.instance});_.S("kevlar_signal_collection_killswitch")||(F={},X.addProvider((F.provide=FAZ,F.useClass=FAZ,F[$0]=[M5,gD],F)),_.wz().parkOrScheduleJob(function(){_.i9().resolve(FAZ).record()},1,"eocs"));
_.S("web_debug_handler_registration_killswitch")||_.wz().parkOrScheduleJob(function(){iRy("DOWNLOAD_PES",Tid);_.S("offline_client_state_export_ks")||iRy("OFFLINE_CLIENT_STATE",Sqy)},0,"eocs");
_.S("kevlar_prevent_polymer_dynamic_font_load")&&_.wz().parkOrScheduleJob(function(){var J=[_.Xs(tPk),_.Xs($qk)];J=_.D(J);for(var Z=J.next();!Z.done;Z=J.next()){Z=Z.value;var M=document.createElement("link");_.Vz(M,Z,"stylesheet");document.head.appendChild(M)}},1,"eocs");
F=K.injector.resolve(_.L$);_.bnC.instance=new _.bnC(F);z7P(vBC(new EBC(F)));F={};K.injector.addProvider((F.provide=CL,F.useFactory=function(J){(J=J==null?void 0:J.getCurrentPage())?J=J.visibilityObserver:(zHw||(zHw=LdT()),J=zHw);return J},F[$0]=[_.Nu(_.ax)],F.skipCache=!0,F));
X.addProvider({provide:_.Wj,useClass:cq});X.addProvider({provide:DY,useClass:UZC});K.injector.addProvider({provide:lMU,useValue:QmT});X.addProvider({provide:QqT,useValue:Tf3});X.addProvider({provide:_.m$,useValue:hKw});K=X.addProvider;dtQ||(dtQ=new WAE);K.call(X,{provide:_.eqQ,useValue:dtQ});X.addProvider({provide:_.lH,useValue:_.e8("HTML_DIR")==="rtl"?"rtl":"ltr"});X.addProvider({provide:ZcL,useClass:LeU});X.addProvider({provide:_.Pn,useClass:X3});_.i9().addProvider({provide:Q4L,useValue:_.S("enable_web_delhi_icons")?
Pc1.concat(s01):F08.concat(Hx1)});X.addProvider({provide:_.Pq,useClass:_.Pq});X.addProvider({provide:_.mq5,useValue:new hyw});X.addProvider({provide:ZhW,useClass:f$L});X.addProvider({provide:KR,useClass:KR});X.addProvider({provide:Po,useClass:Po});K={};X.addProvider((K.provide=dD,K.useClass=dD,K[$0]=[_.L$,_.cR],K));X.addProvider({provide:Bo,useClass:Bo});X.addProvider({provide:ezZ,useClass:AiL});X.addProvider({provide:fR,useClass:fR});X.addProvider({provide:uRL,useValue:Cot});X.addProvider({provide:_.dx,
useClass:DHW});_.S("enable_payments_purchase_manager")&&X.addProvider({provide:I7C,useClass:N6Z});X.addProvider({provide:vdJ,useFactory:function(){return function(J){return _.ll1(J)}}});
X.addProvider({provide:_.OcE,useClass:Vot});K={};X.addProvider((K.provide=nR,K.useClass=nR,K[$0]=[_.OcE],K));X.addProvider({provide:Ho,useClass:Ho});X.addProvider({provide:j6u,useValue:FxQ});X.addProvider({provide:Oru,useValue:_.liN});X.addProvider({provide:f0y,useClass:riE});X.addProvider({provide:lQ8,useValue:GE5});K={};X.addProvider((K.provide=_.YP,K.useClass=vCv,K[$0]=[lQ8],K));_.S("web_ephemeral_actions")&&(K={},X.addProvider((K.provide=_.sR,K.useClass=Hq,K[$0]=[_.jE,_.Jk],K)));if(_.S("web_explore_hub_on_hover")||
_.S("web_client_explore_hub_on_hover"))K={},X.addProvider((K.provide=Yb,K.useClass=Yb,K[$0]=[_.L$,tp],K));X.addProvider({provide:hiw,useValue:wXy});K={};X.addProvider((K.provide=AQt,K.useClass=rQU,K[$0]=[_.L$],K))}},fsV);var umt={},qBw=(umt.initialized={priority:10,callback:function(){if(!L4F){i$4();Jz3("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.Hm(_.Jc(Jz3,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.S("log_heartbeat_with_lifecycles")){var K={};O6.instance||(O6.instance=new O6);O6.instance.install((K.document_visible={callback:Zq4,priority:10},K.document_hidden={callback:Zq4,priority:10},K))}else _.CQ(document,"visibilitychange",Zq4);L4F=!0}(K=_.AD())&&K!=="UNDEFINED_CSN"&&crP(K)}},umt);var J0s={},ZxG=(J0s.initialized={callback:function(K){var X=_.cO(232091),F=K.injector.resolve(_.n3);_.k2(F,X);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?dNP()&&_.XT(F,X):(K=K.injector.resolve(vdJ)("refresh_detector"))&&(K.get("first_tab_load")?_.XT(F,X):K.set("first_tab_load","1"))}},J0s);var YBo={},Q0v=(YBo.initialized={priority:10,callback:vt3},YBo);var MyW={},n85=(MyW.initialized={priority:0,callback:function(){var K=new XkE,X="other";_.XX?X="chrome":_.KM?X="firefox":_.dS?X="safari":OU&&(X="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(F){K.increment(_.YS(),F,X)}).catch(function(){K.increment(_.YS(),!1,X)}):K.increment(_.YS(),!1,X)}},MyW);var c0J={},pJJ=(c0J.rendering={priority:8,callback:a3l},c0J);var Bjk={},SB5=(Bjk.rendering={priority:10,callback:kR4},Bjk.rendered={callback:I3w},Bjk),o8W={},L0w=(o8W.rendering={callback:kR4},o8W.rendered={callback:I3w},o8W);var Tjs=!1,r05={},A0G=(r05.initialized={priority:10,callback:function(){Tjs||(wuT({didPatch:function(K){K.el&&MeP(K.el,K.props)},
didUnmount:function(K){YRl(K.el)}}),Tjs=!0)}},r05);var j0W=/^\/shorts\/?$/;_.d2("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});
if(_.S("kevlar_enable_mss")){_.P9P(new mFL);var wJW=!0,y08,Bq;wJW=wJW===void 0?!1:wJW;y08=y08===void 0?!1:y08;Bq=Bq===void 0?{}:Bq;var W0d=Bq.cssRowKey||"",dRG=Bq.combinedSignature||"";!W0d&&window&&window._F_cssRowKey&&(W0d=window._F_cssRowKey,!dRG&&window._F_combinedSignature&&(dRG=window._F_combinedSignature));if(W0d&&typeof window._F_installCss!=="function")throw Error("sd");var eH8=Bq.loaderClass||_.WT,Se=V84("base-js"),RHw,URF=EU4("",Se);RHw=_.DX(URF);var oq=new eH8(RHw,W0d,dRG,wJW,y08),hHv=
Bq.useCors||Se&&Se.hasAttribute("crossorigin"),mR1=Bq.corsMode||Se&&Se.getAttribute("crossorigin");hHv&&(oq.useCors_=hHv);mR1&&(oq.corsMode_=mR1);Bq.urlMaxLength&&(oq.urlMaxLength=Bq.urlMaxLength);Bq.fetchPriority&&(oq.fetchPriority=Bq.fetchPriority);var GmG=yY();GmG.JSC$8064_loader_=oq;GmG.setBatchModeEnabled(!0)}
(function(){var K=document.querySelector("ytd-app");if(!K)throw Error("Cj");K=new zA({root:K,injector:_.i9()});K.install(qBw);var X={};K.install((X.initialized={priority:10,callback:Y6d},X));_.S("wp_lat_b")&&(X={},K.install((X.initialized={priority:10,callback:function(){P7l()}},X)));
X={};K.install((X.rendered={priority:0,callback:q6T},X));X={};K.install((X.rendered={priority:0,callback:function(){_.A9.addLowPriorityJob(function(){_.T7E>1&&(Pdy(),DhT())},4E4)}},X));
K.install(YZd);K.install(ZxG);K.install(A0G);alW||(alW=!0,Object.assign(_.Kv,{handleError:czT,enableComponentStacksInErrorMessages:!1,enableLazyTsx:_.S("mweb_enable_wiz_lazy_tsx")||_.S("kevlar_enable_wiz_lazy_tsx")||_.S("creator_enable_wiz_lazy_tsx")}),GT4=NGZ,A_w=p7d,$Fd=Nu3,v3M=iiT,_.S("ytwiz_enable_debug_component_props")&&Cyy());K.install(oC5);K.install(fQ8);K.install(JtG);K.install(N3C);K.install(KAV);K.install(BLF);K.install(DRF);_.S("kevlar_enable_mss_lazy_load")&&K.install(Q0v);K.install(uL5);
K.install(n85);if(!_.RU("IS_SHELL_LOAD")||_.S("kevlar_fetch_initial_data_promise_client")||_.S("sw_nav_preload_pbj")){var F=_.zy(window.location.href);X=F&&F==="/watch";F=F&&F.match(j0W);X?K.install(L0w):F?K.install(pJJ):K.install(SB5)}else K.install(HWt);K.install(MUo);_.S("web_enable_prefetching_videos_on_home")&&K.install(At8);_.S("start_client_gcf")&&K.install(odF);K.install(VbL);(new FqT).increment("INSTALLED");K.install(TLV);K.install(XNw);K.transition("initialized")})();
_.kx=[[["aDNraW5kI20xcXpubjZ6ZWM=","bHZhbHVlIzJjd3BkOTh0aDNu"],"TlRFUkVEI2EwNGszanhmNmRqcEFEX1BMQUNFTUVOVF9LSU5EX0xBWU9VVF9JRF9F"]];_.IA=["bGJhY2tzI2k1NWU5dHRqbjZrdWdsb2JhbENhbA==","dGVjdGVkI2J5bm1qNDN2anM1aW9uQWJub3JtYWxpdHlEZQ==","QWRTa2lwIzU3dm1wazF1dTYwZ29u","c3BvbnNlI3Z2eWtueG84YjBrYnJhd19wbGF5ZXJfcmU=","bmRlcmVyIzQzdGRnM2UwYXYydmFkc0VuZ2FnZW1lbnRQYW5lbFJl"];_.UL="bGJhY2tzI2k1NWU5dHRqbjZrdWdsb2JhbENhbA== dGVjdGVkI2J5bm1qNDN2anM1aW9uQWJub3JtYWxpdHlEZQ== QWRTa2lwIzU3dm1wazF1dTYwZ29u c3BvbnNlI3Z2eWtueG84YjBrYnJhd19wbGF5ZXJfcmU= aXBzX2tzIzZ6YTZqdHpkYjNjdndlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9zaw== X3NhX2VmIzdrNjNvcXV0amF2ZmFi bmRlcmVyIzQzdGRnM2UwYXYydmFkc0VuZ2FnZW1lbnRQYW5lbFJl".split(" ");
_._ModuleManager_initialize=function(K,X){if(!_.jM){if(!_.w0)return;_.P9P(_.w0())}_.jM.setAllModuleInfoString(K,X)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2,3/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/syl:o/nmfa2d:h,n,p/sym:7,o/syn:g,h,p,r/CF909:n,s/Tm0L3c:s/L3n37:g,h,n,r/iuT5Oc',['sy2','sy3','sy8','syc','sya','sy6','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.Ad=function(K,X,F,P,H){var f={};X&&(f[X]=F);P?f.errorType=P:H&&(f.errorReason=H);_.LL(K,f);_.A_()};
_.je=function(K){var X=_.wz();return _.lDu(X,K,1)};
_.pa({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 K=this.query;K&&(this.full||K[0]==="("||(K="("+K+")"),this._mq=window.matchMedia(K),this._add(),this.queryHandler(this._mq))},
queryHandler:function(K){this._setQueryMatches(K.matches)}});var bxv;var Cc8;var Njt=function(){};
_.z=Njt.prototype;_.z.addOwnKeyBinding=function(){};
_.z.removeOwnKeyBindings=function(){};
_.z.keyboardEventMatchesKeys=function(){};
_.z._collectKeyBindings=function(){};
_.z._prepKeyBindings=function(){};
_.z._addKeyBinding=function(){};
_.z._resetKeyEventListeners=function(){};
_.z._listenKeyEventListeners=function(){};
_.z._unlistenKeyEventListeners=function(){};
_.z._onKeyBindingEvent=function(){};
_.z._triggerKeyHandler=function(){};
_.z._tapHandler=function(){};
_.z._focusChanged=function(){};
_.z._detectKeyboardFocus=function(){};
_.z._userActivate=function(){};
_.z._upHandler=function(){};
_.z._spaceKeyDownHandler=function(){};
_.z._spaceKeyUpHandler=function(){};
_.z._asyncClick=function(){};
_.z._pressedChanged=function(){};
_.z._ariaActiveAttributeChanged=function(){};
_.z._activeChanged=function(){};
_.z._controlStateChanged=function(){};
_.z._changedButtonState=function(){};
_.z._focusBlurHandler=function(){};
_.z._disabledChanged=function(){};
_.z._changedControlState=function(){};
_.z._downHandler=function(){};
_.z.ensureRipple=function(){};
_.z.getRipple=function(){};
_.z.hasRipple=function(){};
_.z._noinkChanged=function(){};
_.z._focusedChanged=function(){};
_.z._createRipple=function(){};
_.z.registered=function(){};
_.z._invalidChanged=function(){};
_.z.hasValidator=function(){};
_.z.validate=function(){};
_.z._getValidity=function(){};
_.z._requiredChanged=function(){};
_.z._valueChanged=function(){};
_.z._checkedChanged=function(){};
_.z._buttonStateChanged=function(){};
_.z._setPressed=function(){};
_.z._setPointerDown=function(){};
_.z._setReceivedFocusFromKeyboard=function(){};
_.z._setFocused=function(){};
Njt=_.pa({is:"tp-yt-paper-radio-button",_template:function(){if(Cc8!==void 0)return Cc8;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;bxv===void 0&&(bxv=document.createElement("template"));var P=bxv;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return Cc8=K},
behaviors:[_.oft],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(){_.tg(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var K=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),X=Math.floor(3*K);X%2!==K%2&&X++;this.updateStyles({"--paper-radio-button-ink-size":X+"px"})}})}});var ix1;var xRv;_.pa({_template:function(){if(xRv!==void 0)return xRv;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;ix1===void 0&&(ix1=document.createElement("template"));var P=ix1;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return xRv=K},
is:"tp-yt-paper-radio-group",behaviors:[_.heC],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(K){var X=this._valueToItem(K);if(!X||!X.hasAttribute("disabled")){if(this.selected){X=this._valueToItem(this.selected);if(this.selected==K)if(this.allowEmptySelection)K="";else{X&&(X.checked=!0);return}X&&
(X.checked=!1)}_.Uo.select.apply(this,[K]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(K){this._focusPrevious();K.preventDefault();this._activateFocusedItem()},
_onDownKey:function(K){this._focusNext();K.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(K){_.UYL._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(K){_.UYL._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.Uo._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.Bx._resetTabindices.apply(this,arguments);this.items.forEach(function(K){K.removeAttribute("aria-selected")},this)}});var Is1;_.L4("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var w8=function(){return _.G.apply(this,arguments)||this};
_.r(w8,_.G);_.z=w8.prototype;_.z.computeHasPrimaryIcon=function(K){return!(!K.icon&&!K.thumbnail)};
_.z.computeHasSecondary=function(K){return!(!K.secondaryIcon&&!K.secondaryNotificationText)};
_.z.computeHideSecondaryString=function(K){return!_.S("disable_hide_empty_secondary_string")&&!K.secondaryNotificationText};
_.z.computeCompactLinkStyle=function(K){return K?K.toLowerCase().replace(/_/g,"-"):""};
_.z.computeHasFitHeight=function(K){return K==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.z.isActiveEndpoint=function(K){return(K=this.get("commandMetadata.webCommandMetadata.url",K))?_.zy(window.location.href)!=="/account_transfer_channel"&&_.zy(window.location.href)!=="/gaia_link"&&_.zy(window.location.href)!=="/channel_switcher"||K!=="/account"?_.zy(window.location.href)===K:!0:!1};
_.z.onTap=function(){var K;((K=this.data)==null?0:K.serviceEndpoint)&&_.Kl(this.hostElement,[this.data.serviceEndpoint])};
w8.prototype.onTap=w8.prototype.onTap;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],w8.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],w8.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.g("design:type",Boolean)],w8.prototype,"active",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.g("design:type",String)],w8.prototype,"compactLinkStyle",void 0);
_.O([_.h({computed:"computeIcon_(data.icon)"}),_.g("design:type",Object)],w8.prototype,"icon",void 0);_.O([_.h({computed:"computeIcon_(data.secondaryIcon)"}),_.g("design:type",Object)],w8.prototype,"secondaryIcon",void 0);_.O([_.h({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],w8.prototype,"hasSecondary",void 0);_.O([_.h({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],w8.prototype,"hideSecondaryString",void 0);
_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],w8.prototype,"onTap",null);w8=_.O([_.v({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],w8);
_.t(w8,"ytd-compact-link-renderer",function(){if(Is1!==void 0)return Is1;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Is1=K},{mode:1});var kmG;_.L4("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var yr=function(){var K=_.G.apply(this,arguments)||this;K.role="link";K.tabindex="0";K.actionMap=_.S("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 K};
_.r(yr,_.G);_.z=yr.prototype;_.z.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.n$()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.z.getCurrentTheme=function(){return _.cI()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.n$()};
_.z.onThemeSelected=function(K,X){var F=K||X?K:_.MD(),P=(F&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!F&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.YTP(_.zy(window.location.href));_.YX(0,165,K);_.YX(0,174,X);this.prefs.save();P&&_.xr(this.hostElement,"yt-dark-mode-toggled-action",[F]);_.xr(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.z.onTap=function(){this.data.serviceEndpoint&&_.Kl(this.hostElement,[this.data.serviceEndpoint])};
_.z.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.z.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.z.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
yr.prototype.onTap=yr.prototype.onTap;yr.prototype.dataChanged=yr.prototype.dataChanged;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],yr.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],yr.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.vx),_.g("design:type",Object)],yr.prototype,"paperItemBehaviors",void 0);_.O([_.h(),_.g("design:type",Object)],yr.prototype,"data",void 0);_.O([_.h({value:function(){return _.ZO()}}),
_.g("design:type",_.gR)],yr.prototype,"prefs",void 0);_.O([_.h(),_.g("design:type",Object)],yr.prototype,"label",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],yr.prototype,"role",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],yr.prototype,"tabindex",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],yr.prototype,"dataChanged",null);
_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],yr.prototype,"onTap",null);yr=_.O([_.v({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],yr);
_.t(yr,"ytd-toggle-theme-compact-link-renderer",function(){if(kmG!==void 0)return kmG;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return kmG=K},{mode:1});
}catch(e){_._DumpException(e)}
try{
var X$5,FkG;_.Wq=function(K){return!!K.getOptions("captions")};
_.Kkw=function(K){return(K=K.getOption("captions","track"))?!!K.displayName:!1};
_.d8=function(K,X){_.A4(X,K,function(){return X$5[X]},function(F){X$5[X]=F;
if(!_.S("mweb_player_ve_show_ks")){var P=_.AD(0);P&&F&&_.mb(P,F)}})};
_.ee=function(K){(K=X$5[K])&&_.XT(_.uH(),K)};
X$5={};var Pid;/*

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
*/
_.pa({_template:function(){if(Pid!==void 0)return Pid;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;FkG===void 0&&(FkG=document.createElement("template"));var P=FkG;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return Pid=K},
is:"tp-yt-paper-checkbox",behaviors:[_.oft],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.tg(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var K=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),X="px",F=K.match(/[A-Za-z]+$/);F!==null&&(X=F[0]);K=parseFloat(K);F=8/3*K;X==="px"&&(F=Math.floor(F),F%2!==K%2&&F++);this.updateStyles({"--paper-checkbox-ink-size":F+
X})}})},
_computeCheckboxClass:function(K,X){var F="";K&&(F+="checked ");X&&(F+="invalid");return F},
_computeCheckmarkClass:function(K){return K?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.BnC._createRipple.call(this)}});var Hs8=new _.b("radioButtonSurveyOptionRenderer"),sf5=new _.b("checkboxSurveyOptionRenderer");var zdk;var fX5;var Dvw=0,Rq=function(){var K=_.G.call(this)||this;K.selected=!1;K.isOverlay=!1;K.inputId="toggle-option-"+Dvw;Dvw++;return K};
_.r(Rq,_.G);Rq.prototype.onTap=function(){_.iX(this.hostElement,"ytd-toggle-option-clicked")};
_.O([_.h(),_.g("design:type",String)],Rq.prototype,"label",void 0);_.O([_.h(),_.g("design:type",String)],Rq.prototype,"inputId",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Rq.prototype,"selected",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Rq.prototype,"isOverlay",void 0);Rq=_.O([_.v({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.g("design:paramtypes",[])],Rq);
_.t(Rq,"ytd-toggle-option-renderer",function(){if(fX5!==void 0)return fX5;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return fX5=K},{mode:1});var UR=function(){var K=_.G.apply(this,arguments)||this;K.isToggleOption=!1;K.isOverlay=!1;return K};
_.r(UR,_.G);UR.prototype.onTap=function(K){K.preventDefault();this.data&&(K=!this.data.checked,this.set("data.checked",K),_.iX(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:K,value:this.data.value}))};
_.Oi.Object.defineProperties(UR.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
UR.prototype.onTap=UR.prototype.onTap;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],UR.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],UR.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],UR.prototype,"isToggleOption",void 0);_.O([_.h(),_.g("design:type",Object)],UR.prototype,"isOverlay",void 0);_.O([_.U("data.responseText"),_.g("design:type",String),_.g("design:paramtypes",[])],UR.prototype,"label",null);
_.O([_.Hc("ytd-toggle-option-clicked"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],UR.prototype,"onTap",null);UR=_.O([_.v({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],UR);
_.t(UR,"ytd-checkbox-survey-option-renderer",function(){if(zdk!==void 0)return zdk;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return zdk=K},{mode:1});var uw8;var qvs;var hd=function(){var K=_.G.apply(this,arguments)||this;K.checked=!1;K.isToggleOption=!1;return K};
_.r(hd,_.G);hd.prototype.onTap=function(){this.data&&(this.checked?_.xr(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.xr(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
hd.prototype.onTap=hd.prototype.onTap;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],hd.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],hd.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],hd.prototype,"checked",void 0);_.O([_.h(),_.g("design:type",Object)],hd.prototype,"isToggleOption",void 0);_.O([_.Hc("ytd-toggle-option-clicked"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],hd.prototype,"onTap",null);
hd=_.O([_.v({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],hd);
_.t(hd,"ytd-radio-button-survey-option-renderer",function(){if(qvs!==void 0)return qvs;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return qvs=K},{mode:1});var mM=function(){var K=_.G.apply(this,arguments)||this;K.disableAnimation=!1;K.isToggleOption=!0;K.followUpSurveyCommand=null;K.selectedRatingEndpoint=null;K.isSlimlineSurveyFollowUp=!1;K.isShortsStyle=!1;K.styleOverrideAttribute=!0;K.isDarkMode=!1;K.isSubmitted=!1;K.roundedContainer=!0;K.improveShortsResponseRate=_.S("web_improve_shorts_response_rate");K.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 K};
_.r(mM,_.G);_.z=mM.prototype;
_.z.configureRendererStamper=function(){return{"data.inlineContent":{id:"inline-survey-compact-video-renderer",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",properties:{isShortsStyle:"[[isShortsStyle]]"}}}},"data.response.expandableSurveyResponseRenderer.options":{id:"rating-survey",mapping:{ratingSurveyRenderer:{component:"ytd-rating-survey-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]",
showResponseRangeText:"[[isShortsStyle]]"}}}},"followUpSurveyCommand.followUpOptions":{id:"follow-up-survey-options",mapping:{checkboxSurveyOptionRenderer:{component:"ytd-checkbox-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]",isOverlay:"[[isShortsStyle]]"}},radioButtonSurveyOptionRenderer:{component:"ytd-radio-button-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]"}}}},"data.response.expandableSurveyResponseRenderer.skipButton":{id:"skip-btn-footer",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.response.expandableSurveyResponseRenderer.continueButton":{id:"continue-btn-footer",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"post-submit-message",mapping:{messageRenderer:{component:"ytd-message-renderer"}}}}};
_.z.attached=function(){var K=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(F){var P;if((P=F[0])!=null&&P.isIntersecting){_.fB().reportShown(K.hostElement);var H;(H=K.intersectionObserver)==null||H.unobserve(K.hostElement)}},{rootMargin:"0px",
threshold:.6});var X;(X=this.intersectionObserver)==null||X.observe(this.hostElement)};
_.z.onDarkModeToggledAction=function(K){this.isDarkMode=K};
_.z.dataChanged=function(){var K;if(((K=this.data)==null?void 0:K.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var X;((X=this.data)==null?void 0:X.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var F,P,H,f;this.darkColorPalette=(F=this.data)==null?void 0:(P=F.inlineContent)==null?void 0:(H=P.compactVideoRenderer)==null?void 0:(f=H.thumbnail)==null?
void 0:f.darkColorPalette;var u,J,Z,M;this.lightColorPalette=(u=this.data)==null?void 0:(J=u.inlineContent)==null?void 0:(Z=J.compactVideoRenderer)==null?void 0:(M=Z.thumbnail)==null?void 0:M.lightColorPalette;var n,c;if(((n=this.data)==null?0:(c=n.inlineContent)==null?0:c.compactVideoRenderer)&&this.isShortsStyle){var B,L,A,d;K=_.CB((B=this.data)==null?void 0:(L=B.inlineContent)==null?void 0:(A=L.compactVideoRenderer)==null?void 0:(d=A.thumbnail)==null?void 0:d.thumbnails);_.XU(this.hostElement,
{"--yt-background-url":"url("+K+")"})}};
_.z.handleRequestCompletion=function(){this.hostElement.hidden&&_.iX(this.hostElement,"yt-dismissible-item-dismissed")};
_.z.onPopupClosed=function(K){var X;((X=K.detail)==null?void 0:X.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.xr(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.z.handleInlineSurveyRatingSelect=function(K,X){var F=this;this.selectedRatingEndpoint=K;this.followUpSurveyCommand=X;this.expanded=!!K;this.getOptionRenderers().forEach(function(P,H){F.notifyPath("followUpSurveyCommand.followUpOptions."+H+".checkboxSurveyOptionRenderer.checked");F.set("followUpSurveyCommand.followUpOptions."+H+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),K=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.xr(this.hostElement,"yt-reel-non-video-content-dismissal-command",[K]))};
_.z.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.xr(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var K,X=(K=this.data)==null?void 0:K.dismissalEndpoint;X&&this.ytComponentBehavior.resolveCommand(X)}};
_.z.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.xr(this.hostElement,"yt-close-popup-action"))};
_.z.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var K=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{K=this.getOptionRenderers().filter(function(P){return P.checked});
if(K.length===0)return;K=K.map(function(P){return P.responseEndpoint})}var X=[];
K.forEach(function(P,H){H!==0&&(P=_.T(P,_.Tt))&&P.feedbackToken&&X.push(P.feedbackToken)});
if(K=K[0]){var F={};X.length>0&&(F.extra_feedback_tokens=X);this.ytComponentBehavior.resolveCommand(K,{form:F})}}};
_.z.getOptionRenderers=function(){var K=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(X){K.isSingleSelect=!!_.T(X,Hs8);return K.isSingleSelect?_.T(X,Hs8):_.T(X,sf5)}):[]};
_.z.handleInlineSurveyOptionSelect=function(K){K=this.optionSelector.indexOf(K);K!==-1&&this.optionSelector.selectIndex(K)};
_.z.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.z.maybeGetBackgroundColor=function(K){return this.isDarkMode?K.section2Color:K.section3Color};
_.z.colorPaletteChanged=function(){var K=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;K=K&&this.maybeGetBackgroundColor(K);this.dismissibleEl.style.backgroundColor=!K||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.j0(K)};
_.Oi.Object.defineProperties(mM.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
mM.prototype.colorPaletteChanged=mM.prototype.colorPaletteChanged;mM.prototype.onPopupClosed=mM.prototype.onPopupClosed;mM.prototype.handleRequestCompletion=mM.prototype.handleRequestCompletion;mM.prototype.dataChanged=mM.prototype.dataChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],mM.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],mM.prototype,"actionHandlerBehavior",void 0);
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],mM.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],mM.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.yD),_.g("design:type",Object)],mM.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.fa("#follow-up-survey-options"),_.g("design:type",Object)],mM.prototype,"optionSelector",void 0);_.O([_.h(),_.g("design:type",Object)],mM.prototype,"data",void 0);
_.O([_.h(),_.g("design:type",Object)],mM.prototype,"disableAnimation",void 0);_.O([_.h(),_.g("design:type",Object)],mM.prototype,"isToggleOption",void 0);_.O([_.h(),_.g("design:type",Object)],mM.prototype,"followUpSurveyCommand",void 0);_.O([_.h(),_.g("design:type",Object)],mM.prototype,"selectedRatingEndpoint",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],mM.prototype,"expanded",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],mM.prototype,"isSlimlineSurveyFollowUp",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],mM.prototype,"isShortsStyle",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],mM.prototype,"styleOverrideAttribute",void 0);_.O([_.h(),_.g("design:type",Boolean)],mM.prototype,"isSingleSelect",void 0);_.O([_.h(),_.g("design:type",Object)],mM.prototype,"isDarkMode",void 0);
_.O([_.h(),_.g("design:type",Object)],mM.prototype,"lightColorPalette",void 0);_.O([_.h(),_.g("design:type",Object)],mM.prototype,"darkColorPalette",void 0);_.O([_.U("selectedRatingEndpoint","isShortsStyle"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],mM.prototype,"isOptionSelected",null);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],mM.prototype,"roundedContainer",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],mM.prototype,"improveShortsResponseRate",void 0);_.O([_.fa("#dismissible"),_.g("design:type",HTMLElement)],mM.prototype,"dismissibleEl",void 0);_.O([_.fa("#dismiss-button yt-icon-button"),_.g("design:type",HTMLElement)],mM.prototype,"dismissButtonEl",void 0);_.O([_.fa("#inline-survey-header yt-icon-button"),_.g("design:type",HTMLElement)],mM.prototype,"inlineHeaderDismissButtonEl",void 0);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],mM.prototype,"dataChanged",null);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],mM.prototype,"handleRequestCompletion",null);_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],mM.prototype,"onPopupClosed",null);
_.O([_.so("darkColorPalette","lightColorPalette","isDarkMode"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],mM.prototype,"colorPaletteChanged",null);mM=_.O([_.v({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],mM);
_.t(mM,"ytd-inline-survey-renderer",function(){if(uw8!==void 0)return uw8;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return uw8=K},{mode:1});var Jod=["en-CA","en","es-MX","fr-CA"];_.Zs1=_.$c(function(K){var X=_.tA(K,{isOverlay:!1,isModern:!1}),F=X.captionIconType,P=X.onClick;K=X.ariaLabel;var H=X.ariaPressed,f=X.isOverlay,u=X.isModern;X=_.t_(function(M){_.d8(M,127299)});
var J=_.DF(function(M){_.ee(127299);P==null||P(M);return!1}),Z={};
return _.Q("ytm-closed-captioning-button",{class:_.HO("ytmClosedCaptioningButtonHost",(Z.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return F()===-1&&f()},Z.ytmClosedCaptioningButtonIconDisabled=function(){return F()===-1&&!f()},Z))},_.Q("button",{el:X,
class:"ytmClosedCaptioningButtonButton",title:K,"aria-label":K,"aria-pressed":H,"on:click":J},_.Q(_.ZF,{icon:function(){var M="";var n=u()?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";var c=_.ZO().get("hl");n=!c||Jod.includes(c)?n:"SUBTITLES";c=F();switch(c){case -1:case 0:M=n;break;case 1:M=n+"_FILLED";break;default:_.zJ(c)}return M}})))},"$e");
_.Zs1.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.gh=function(K){return function(X,F){var P=K||F.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(X,F,{get:function(){var H;return this.$?this.$[P]:(H=_.zb(this))==null?void 0:H.querySelector("#"+P)},
enumerable:!0,configurable:!0})}};_.ES=function(K){K=K===void 0?!1:K;_.LJ.call(this);this.pubSub_=new _.uD(K);_.JH(this,this.pubSub_)};
_.br(_.ES,_.LJ);_.ES.prototype.subscribe=function(K,X,F){return this.isDisposed()?0:this.pubSub_.subscribe(K,X,F)};
_.ES.prototype.unsubscribe=function(K,X,F){return this.isDisposed()?!1:this.pubSub_.unsubscribe(K,X,F)};
_.ES.prototype.unsubscribeByKey=function(K){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(K)};
_.ES.prototype.publish=function(K,X){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var vGk=function(){_.Ad("ypcRedeemFlowStarted")},Z3=function(K){_.Ad("ypcRedeemFlowFailed",void 0,void 0,void 0,K)},ak1=function(K,X,F){X&&F&&(K.videos.forEach(function(P){P.videoId===X&&(P.itemId=F)}),K.recommendedVideos.forEach(function(P){P.videoId===X&&(P.itemId=F)}))};var t_8;var $Z8;/*

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
*/
_.pa({_template:function(){if($Z8!==void 0)return $Z8;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;t_8===void 0&&(t_8=document.createElement("template"));var P=t_8;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return $Z8=K},
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(K,X){var F=this._resolveSrc(K);F!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",K===""||X?this._setLoading(!1):(this._resolvedSrc=F,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 K=this.$.sizedImgDiv.style,X=this.$.placeholder.style;K.backgroundSize=X.backgroundSize=this.sizing;K.backgroundPosition=X.backgroundPosition=this.sizing?this.position:"";K.backgroundRepeat=X.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(K){K=_.k3(K,this.$.baseURIAnchor.href);K.length>=2&&K[0]==="/"&&K[1]!=="/"&&(K=(location.origin||location.protocol+"//"+location.host)+K);return K}});var ORk;var V_5;_.pa({_template:function(){if(V_5!==void 0)return V_5;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;ORk===void 0&&(ORk=document.createElement("template"));var P=ORk;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return V_5=K},
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(K){return K?"false":"true"},
_headingChanged:function(K){var X=this.getAttribute("heading"),F=this.getAttribute("aria-label");typeof F==="string"&&F!==X||this.setAttribute("aria-label",K)},
_computeHeadingClass:function(K){return K?" over-image":""},
_computeAnimated:function(K){return K}});var gG1=new _.b("addRendererToItemSectionAction");var EGs;var Yt=function(){return _.G.apply(this,arguments)||this};
_.r(Yt,_.G);Yt.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Yt.prototype,"rendererBehavior",void 0);_.O([_.W(_.yD),_.g("design:type",Object)],Yt.prototype,"dismissibleItemBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Yt.prototype,"rendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Yt.prototype,"data",void 0);Yt=_.O([_.v({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],Yt);
_.t(Yt,"ytd-comment-history-entry-renderer",function(){if(EGs!==void 0)return EGs;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return EGs=K},{mode:1});var bRV;_.L4("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.L4("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var QH=function(){return _.G.apply(this,arguments)||this};
_.r(QH,_.G);_.z=QH.prototype;_.z.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z.onKeyUp=function(K){if(K.keyCode===13)this.onTap()};
_.z.onTap=function(){this.data.recordClickEndpoint&&_.i9().resolve(_.xU).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var K=this.data.navigationEndpoint;K&&_.T(K,_.Lz)&&_.i9().resolve(_.xU).resolveCommand(K,{form:{element:this.hostElement}})};
_.z.readChanged=function(){var K;_.iN(this.hostElement,"unread",!((K=this.data)==null?0:K.read))};
_.z.dataChanged=function(){this.data&&_.iN(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.z.computeThumbnailSize=function(){var K;return((K=this.data)==null?0:K.highPriorityNotification)?32:48};
_.z.getEndpointURL=function(K){return K&&!_.T(K,_.Lz)?this.componentBehavior.computeHref_(K):null};
_.z.getEndpointData=function(K){return K&&!_.T(K,_.Lz)?K:null};
QH.prototype.computeThumbnailSize=QH.prototype.computeThumbnailSize;QH.prototype.dataChanged=QH.prototype.dataChanged;QH.prototype.readChanged=QH.prototype.readChanged;QH.prototype.onKeyUp=QH.prototype.onKeyUp;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],QH.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],QH.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],QH.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],QH.prototype,"data",void 0);_.O([_.h({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.g("design:type",Number)],QH.prototype,"thumbnailSize",void 0);_.O([_.Hc("keyup"),_.g("design:type",Function),_.g("design:paramtypes",[KeyboardEvent]),_.g("design:returntype")],QH.prototype,"onKeyUp",null);
_.O([_.so("data.read"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],QH.prototype,"readChanged",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],QH.prototype,"dataChanged",null);_.O([_.so("data.highPriorityNotification"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],QH.prototype,"computeThumbnailSize",null);
QH=_.O([_.v({is:"ytd-notification-renderer",disableElementRegistration:!0})],QH);
_.t(QH,"ytd-notification-renderer",function(){if(bRV!==void 0)return bRV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return bRV=K},{mode:1});var CLo;var MN=function(){return _.G.apply(this,arguments)||this};
_.r(MN,_.G);MN.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"}}}};
MN.prototype.computeActionButtonClass=function(K){return!K.actionButtons||K.actionButtons.length<=1?"single-button":K.description?"vertical-buttons":"horizontal-buttons"};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],MN.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],MN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],MN.prototype,"data",void 0);MN=_.O([_.v({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],MN);
_.t(MN,"ytd-playlist-show-metadata-renderer",function(){if(CLo!==void 0)return CLo;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return CLo=K},{mode:1});var NB8;_.L4("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var nm=function(){return _.G.apply(this,arguments)||this};
_.r(nm,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],nm.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],nm.prototype,"data",void 0);nm=_.O([_.v({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],nm);
_.t(nm,"ytd-purchase-item-renderer",function(){if(NB8!==void 0)return NB8;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return NB8=K},{mode:1});var iRF;var xZG={};xZG.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(K){if(K)return K.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(K){if(K==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.L4("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var cQ=function(){return _.G.apply(this,arguments)||this};
_.r(cQ,_.G);cQ.prototype.onYtNavigate=function(K){var X=this.openPopupBehavior.getNavigationEndpointPopupAction(K.detail.endpoint);X&&(K.stopPropagation(),this.openPopupBehavior.openPopup(X))};
cQ.prototype.onYtNavigate=cQ.prototype.onYtNavigate;_.O([_.W(xZG.YtSimpleTextSectionBehavior),_.g("design:type",Object)],cQ.prototype,"ytSimpleTextSectionBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],cQ.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.v9),_.g("design:type",Object)],cQ.prototype,"openPopupBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],cQ.prototype,"data",void 0);
_.O([_.Hc("yt-navigate"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],cQ.prototype,"onYtNavigate",null);cQ=_.O([_.v({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],cQ);
_.t(cQ,"ytd-simple-text-section-renderer",function(){if(iRF!==void 0)return iRF;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return iRF=K},{mode:1});var Ik5;_.L4("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var pm=function(){return _.G.apply(this,arguments)||this};
_.r(pm,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],pm.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],pm.prototype,"data",void 0);pm=_.O([_.v({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],pm);
_.t(pm,"ytd-unlimited-page-feature-info-renderer",function(){if(Ik5!==void 0)return Ik5;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Ik5=K},{mode:1});var k71;var KId;var BQ=function(){return _.G.apply(this,arguments)||this};
_.r(BQ,_.G);BQ.prototype.dataChanged=function(){if(this.data){var K=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);K&&(K=_.bH(K,screen.width),this.hostElement.style.backgroundImage="url("+K+")")}};
BQ.prototype.dataChanged=BQ.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],BQ.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],BQ.prototype,"data",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],BQ.prototype,"dataChanged",null);BQ=_.O([_.v({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],BQ);
_.t(BQ,"ytd-post-redemption-section-renderer",function(){if(KId!==void 0)return KId;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return KId=K},{mode:1});var X58;var S$=function(){return _.G.apply(this,arguments)||this};
_.r(S$,_.G);S$.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],S$.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],S$.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],S$.prototype,"data",void 0);S$=_.O([_.v({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],S$);
_.t(S$,"ytd-ypc-post-redemption-renderer",function(){if(X58!==void 0)return X58;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return X58=K},{mode:1});_.L4("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var oF=function(){var K=_.G.apply(this,arguments)||this;K.MIN_CODE_LENGTH=12;K.MAX_CODE_LENGTH=24;return K};
_.r(oF,_.G);_.z=oF.prototype;_.z.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.z.created=function(){this.riskService=new _.Vwy;this.loadPaymentThenable=_.ED9(_.e8("YPC_MB_URL"))};
_.z.ready=function(){var K=this;this.code.addEventListener("keypress",function(X){K.onCodeInputKeypress(X)})};
_.z.dataChanged=function(){var K=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(X){X=_.D(X);for(var F=X.next();!F.done;F=X.next())F=F.value,F.type==="attributes"&&F.attributeName==="dark"&&K.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.z.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var K=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+K+")")}};
_.z.computeRedeemButton=function(K){(K=this.get("redeemButton.buttonRenderer",K))&&(K=Object.assign({},K,{serviceEndpoint:void 0}));return K};
_.z.onRedeemButtonTap=function(K){K.stopPropagation();vGk();this.redeemCode()};
_.z.redeemCode=function(){var K=this;this.isLoading=!0;var X=this.riskService.init();_.ZG([X,this.loadPaymentThenable]).then(function(){var F=K.data.redeemButton.buttonRenderer.serviceEndpoint,P=_.gDT(),H=payments.business.integration.ClientTokenFactory.createClientToken(_.T(F,_.hnU).countryCode,P);P={c:K.code.value.trim(),rd:window.btoa(P),ctk:H};F&&_.i9().resolve(_.xU).resolveCommand(F,{form:Object.assign({},P,{element:K.hostElement})})},function(){K.showGenericError();
Z3("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.UN(Error("Ql"))})};
_.z.onYtServiceRequestCompleted=function(K){K.stopPropagation();this.isLoading=!1;var X,F;this.errorMessage=(X=K.detail)==null?void 0:(F=X.data)==null?void 0:F.errorMessage;var P,H;this.postRedemptionRenderer=(P=K.detail)==null?void 0:(H=P.data)==null?void 0:H.renderer;var f,u;if(K=(f=K.detail)==null?void 0:(u=f.data)==null?void 0:u.redirectEndpoint)this.isLoading=!0,_.iX(this.hostElement,"yt-navigate",{endpoint:K});this.errorMessage?Z3("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
K)&&_.Ad("ypcRedeemFlowSucceeded")};
_.z.onYtServiceRequestError=function(K){K.stopPropagation();this.isLoading=!1;if(K=this.get("detail.error.message",K))this.errorMessage=_.GS(K);Z3("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.z.onInvokeInstrumentManagerActionCompleted=function(K){K.stopPropagation();this.redeemCode()};
_.z.onInvokeInstrumentManagerActionError=function(K){K.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",K)){case "instrumentManagerLoadError":this.showGenericError();Z3("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();Z3("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.Ad("ypcRedeemFlowCancelled")}};
_.z.onInput=function(){var K=this;_.eu(this,"onInput",function(){var X=K.code.value.trim();K.redeemButtonDisabled=X.length<K.MIN_CODE_LENGTH||X.length>K.MAX_CODE_LENGTH},200)};
_.z.onCodeInputKeypress=function(K){K.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(vGk(),this.redeemCode())};
_.z.computeImageUrl=function(K){return K?_.bH(K.thumbnails,600):null};
_.z.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
oF.prototype.onInvokeInstrumentManagerActionError=oF.prototype.onInvokeInstrumentManagerActionError;oF.prototype.onInvokeInstrumentManagerActionCompleted=oF.prototype.onInvokeInstrumentManagerActionCompleted;oF.prototype.onYtServiceRequestError=oF.prototype.onYtServiceRequestError;oF.prototype.onYtServiceRequestCompleted=oF.prototype.onYtServiceRequestCompleted;oF.prototype.dataChanged=oF.prototype.dataChanged;
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],oF.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],oF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],oF.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],oF.prototype,"isLoading",void 0);_.O([_.h(),_.g("design:type",Boolean)],oF.prototype,"redeemButtonDisabled",void 0);
_.O([_.h(),_.g("design:type",Object)],oF.prototype,"errorMessage",void 0);_.O([_.h(),_.g("design:type",Object)],oF.prototype,"postRedemptionRenderer",void 0);_.O([_.h(),_.g("design:type",Object)],oF.prototype,"observer",void 0);_.O([_.fa("#code"),_.g("design:type",HTMLInputElement)],oF.prototype,"code",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],oF.prototype,"dataChanged",null);
_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],oF.prototype,"onYtServiceRequestCompleted",null);_.O([_.Hc("yt-service-request-error"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],oF.prototype,"onYtServiceRequestError",null);
_.O([_.Hc("yt-invoke-instrument-manager-action-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],oF.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.O([_.Hc("yt-invoke-instrument-manager-action-error"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],oF.prototype,"onInvokeInstrumentManagerActionError",null);oF=_.O([_.v({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],oF);
_.t(oF,"ytd-redeem-code-renderer",function(){if(k71!==void 0)return k71;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return k71=K},{mode:1});var FId;_.L4("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var Lm=function(){var K=_.G.apply(this,arguments)||this;K.businessEmailDisplayState="HIDE_SECTION";return K};
_.r(Lm,_.G);_.z=Lm.prototype;_.z.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:{component:"yt-channel-external-link-view-model",params:{useSmallFont:!0}}}}}};
_.z.dataChanged=function(){this.data&&(this.data.businessEmailButton||this.data.signInForBusinessEmail)?this.data.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.data.businessEmail&&(this.businessEmail=this.data.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.z.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.z.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.e4("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.z.onYtServiceRequestCompleted=function(K){var X;if((X=K.detail.data)==null?0:X.businessEmail)this.businessEmail=K.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var F;if((F=K.detail.data)==null?0:F.errorMessage)this.businessEmailErrorMessage=K.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.z.computeEmailHref=function(K){return"mailto:"+K};
_.z.computeSafeUrl=function(K){if(K)return _.ps(K)};
_.z.onBusinessEmailCaptchaSubmit=function(){var K;(K=this.data)!=null&&K.onBusinessEmailRevealClickCommand&&(K=this.JSC$19082_captchaTextarea.value)&&(K={recaptcha_response_token:K,channel_id:this.data.channelId},_.i9().resolve(_.xU).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},K,{element:this.hostElement})}))};
_.z.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Oi.Object.defineProperties(Lm.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 K,X;return!((K=this.data)==null||!K.primaryLinks)&&!((X=this.data)==null?0:X.links)&&this.data.primaryLinks.every(function(F){return F.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var K,X;return!((K=this.data)==null||!K.primaryLinks)&&!((X=this.data)==null?0:X.links)&&!this.shouldShowNewLinks}}});
Lm.prototype.onYtServiceRequestCompleted=Lm.prototype.onYtServiceRequestCompleted;Lm.prototype.dataChanged=Lm.prototype.dataChanged;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Lm.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Lm.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Lm.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.fa("#g-recaptcha-response"),_.g("design:type",HTMLTextAreaElement)],Lm.prototype,"JSC$19082_captchaTextarea",void 0);_.O([_.h(),_.g("design:type",Object)],Lm.prototype,"data",void 0);_.O([_.h(),_.g("design:type",String)],Lm.prototype,"businessEmailDisplayState",void 0);_.O([_.h(),_.g("design:type",String)],Lm.prototype,"businessEmail",void 0);_.O([_.h(),_.g("design:type",String)],Lm.prototype,"businessEmailErrorMessage",void 0);
_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Lm.prototype,"hideDetailsSection",null);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Lm.prototype,"dataChanged",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Lm.prototype,"shouldShowNewLinks",null);_.O([_.U("data","shouldShowLinks"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Lm.prototype,"shouldShowLegacyLinks",null);
_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Lm.prototype,"onYtServiceRequestCompleted",null);Lm=_.O([_.v({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],Lm);
_.t(Lm,"ytd-channel-about-metadata-renderer",function(){if(FId!==void 0)return FId;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return FId=K},{mode:1});var PS5;_.L4("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var TR=function(){return _.G.apply(this,arguments)||this};
_.r(TR,_.G);TR.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"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],TR.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],TR.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],TR.prototype,"data",void 0);TR=_.O([_.v({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],TR);
_.t(TR,"ytd-channel-featured-content-renderer",function(){if(PS5!==void 0)return PS5;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return PS5=K},{mode:1});var HNF;_.L4("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var rt=function(){var K=_.G.apply(this,arguments)||this;K.roundContainer=!0;K.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");return K};
_.r(rt,_.G);_.z=rt.prototype;_.z.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.z.dataChanged=function(){this.imageWidth=this.imageHeight=24;var K=this.data;K.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!K.style&&K.image&&K.image.thumbnails.length&&(K=K.image.thumbnails[0],this.imageWidth=K.width||0,this.imageHeight=K.height||0)};
_.z.computeSource=function(K){return K.secondarySource?_.lj(K.secondarySource):_.lj(K.source)};
_.z.computeClarifyStyle=function(K){return K?K.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.z.isLargeStyle=function(K){return K==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.z.computeBackgroundStyle=function(K){return K?K.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.z.computeHasActionButton=function(K){return!!K.actionButton};
_.z.computeHasBottomSection=function(K){return!!K.ctaHasBottomSection};
_.z.computeIsSourceMissing=function(K){return K.ctaHasBottomSection===!1?!0:K&&this.computeSource(K)?!1:!0};
_.z.computeSecondaryEndpoint=function(K){return K.secondaryEndpoint||K.endpoint};
rt.prototype.dataChanged=rt.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],rt.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],rt.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],rt.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Number)],rt.prototype,"imageWidth",void 0);_.O([_.h(),_.g("design:type",Number)],rt.prototype,"imageHeight",void 0);
_.O([_.h({computed:"computeSecondaryEndpoint(data)"}),_.g("design:type",Object)],rt.prototype,"secondaryEndpoint",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.g("design:type",Boolean)],rt.prototype,"hasActionButton",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.g("design:type",Boolean)],rt.prototype,"hasBottomSection",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.g("design:type",Boolean)],rt.prototype,"missingSource",void 0);_.O([_.h({computed:"computeIcon_(data.icon)"}),_.g("design:type",String)],rt.prototype,"icon",void 0);_.O([_.h({computed:"computeIcon_(data.secondaryIcon)"}),_.g("design:type",String)],rt.prototype,"secondaryIcon",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.g("design:type",String)],rt.prototype,"clarifyStyle",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.g("design:type",String)],rt.prototype,"backgroundStyle",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],rt.prototype,"roundContainer",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],rt.prototype,"amsterdamEnabled",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],rt.prototype,"dataChanged",null);
rt=_.O([_.v({is:"ytd-clarification-renderer",disableElementRegistration:!0})],rt);
_.t(rt,"ytd-clarification-renderer",function(){if(HNF!==void 0)return HNF;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return HNF=K},{mode:1});var s11;var zNJ;var Ay=function(){var K=_.G.apply(this,arguments)||this;K.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");return K};
_.r(Ay,_.G);_.z=Ay.prototype;_.z.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.z.computeIcon=function(K){return K?"yt-icons:"+K.toLowerCase():null};
_.z.computeUseContacts=function(K){return!!K.contacts&&K.contacts.length>0};
_.z.computePhoneContact=function(K){var X,F;return(X=K.contacts)==null?void 0:(F=X.find(function(P){var H;return(P==null?void 0:(H=P.icon)==null?void 0:H.iconType)==="PHONE"}))==null?void 0:F.actionText};
_.z.computeSmsContact=function(K){var X,F;return(X=K.contacts)==null?void 0:(F=X.find(function(P){var H;return(P==null?void 0:(H=P.icon)==null?void 0:H.iconType)==="SMS"}))==null?void 0:F.actionText};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Ay.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Ay.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Ay.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Ay.prototype,"amsterdamEnabled",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.g("design:type",Boolean)],Ay.prototype,"useContacts",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.g("design:type",String)],Ay.prototype,"phoneContact",void 0);Ay=_.O([_.v({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Ay);
_.t(Ay,"ytd-single-action-emergency-support-renderer",function(){if(zNJ!==void 0)return zNJ;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return zNJ=K},{mode:1});_.L4("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var j$=function(){var K=_.G.apply(this,arguments)||this;K.roundedContainer=!0;K.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");return K};
_.r(j$,_.G);j$.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"}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],j$.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],j$.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],j$.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],j$.prototype,"roundedContainer",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],j$.prototype,"amsterdamEnabled",void 0);
j$=_.O([_.v({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],j$);
_.t(j$,"ytd-emergency-onebox-renderer",function(){if(s11!==void 0)return s11;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return s11=K},{mode:1});var f08;_.L4("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var wt=function(){return _.G.apply(this,arguments)||this};
_.r(wt,_.G);wt.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"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],wt.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],wt.prototype,"data",void 0);wt=_.O([_.v({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],wt);
_.t(wt,"ytd-exploratory-results-renderer",function(){if(f08!==void 0)return f08;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return f08=K},{mode:1});var DX5;_.L4("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var yH=function(){var K=_.G.apply(this,arguments)||this;K.messageData=null;return K};
_.r(yH,_.G);_.z=yH.prototype;_.z.onServiceRequestCompleted=function(K,X){K=X.actions||[];X=0;for(var F=K.length;X<F;X++){var P=K[X],H=void 0,f=void 0;if((H=_.T(P,_.Y2))==null?0:(f=H.item)==null?0:f.messageRenderer)this.messageData=_.T(P,_.Y2).item.messageRenderer}};
_.z.dataChanged=function(){var K=this.data;this.hostElement.hidden=!1;_.iN(this.hostElement,"is-channel",K&&!K.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.z.computeThumbnailWidth=function(K){return K?126:56};
_.z.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.z.onSubmitTap=function(){var K=this.data,X=this.selectedResponseIndex;K!==void 0&&X!==void 0&&(K=K.responses[X],K.responseData&&_.i9().resolve(_.xU).resolveCommand(K.responseData,{form:{element:this.hostElement}}))};
_.z.onDismissTap=function(){this.hostElement.hidden=!0;var K=this.data;K!==void 0&&K.dismissalEndpoint&&_.i9().resolve(_.xU).resolveCommand(K.dismissalEndpoint,{form:{element:this.hostElement}})};
_.z.updateSelectedResponseIndexFromBinding=function(K){this.selectedResponseIndex=K.detail.value};
yH.prototype.onSelectedResponseIndexChange=yH.prototype.onSelectedResponseIndexChange;yH.prototype.dataChanged=yH.prototype.dataChanged;yH.prototype.onServiceRequestCompleted=yH.prototype.onServiceRequestCompleted;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],yH.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],yH.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],yH.prototype,"messageData",void 0);
_.O([_.h(),_.g("design:type",Number)],yH.prototype,"selectedResponseIndex",void 0);_.O([_.fa("#submit-button"),_.g("design:type",HTMLButtonElement)],yH.prototype,"submitButton",void 0);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.G9]),_.g("design:returntype")],yH.prototype,"onServiceRequestCompleted",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],yH.prototype,"dataChanged",null);
_.O([_.so("selectedResponseIndex"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],yH.prototype,"onSelectedResponseIndexChange",null);yH=_.O([_.v({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],yH);
_.t(yH,"ytd-feedback-elicitation-single-question-renderer",function(){if(DX5!==void 0)return DX5;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return DX5=K},{mode:1});var uKw;var WQ=function(){return _.G.apply(this,arguments)||this};
_.r(WQ,_.G);WQ.prototype.computeThumbnailWidth=function(K){return K?602:428};
WQ.prototype.updateWideFromBinding=function(K){this.wide=K.detail.value};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],WQ.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Boolean)],WQ.prototype,"wide",void 0);WQ=_.O([_.v({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],WQ);
_.t(WQ,"ytd-newspaper-hero-video-renderer",function(){if(uKw!==void 0)return uKw;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return uKw=K},{mode:1});var q1k;var dt=function(){return _.G.apply(this,arguments)||this};
_.r(dt,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],dt.prototype,"rendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],dt.prototype,"data",void 0);dt=_.O([_.v({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],dt);
_.t(dt,"ytd-newspaper-mini-video-renderer",function(){if(q1k!==void 0)return q1k;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return q1k=K},{mode:1});var JFF;_.L4("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var e$=function(){return _.G.apply(this,arguments)||this};
_.r(e$,_.G);e$.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"}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],e$.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],e$.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],e$.prototype,"data",void 0);e$=_.O([_.v({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],e$);
_.t(e$,"ytd-newspaper-renderer",function(){if(JFF!==void 0)return JFF;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return JFF=K},{mode:1});var ZNk;_.L4("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var RF=function(){var K=_.G.apply(this,arguments)||this;K.isSegment=!1;K.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};K.nextContinuation={continuationType:"playlistVideoListContinuation"};return K};
_.r(RF,_.G);_.z=RF.prototype;_.z.attached=function(){_.i9();var K;(K=_.i9().resolve(_.Nu(_.ts)))!=null&&(K.playlistVideoListElement=this.hostElement)};
_.z.detached=function(){var K;(K=_.i9().resolve(_.Nu(_.ts)))!=null&&(K.playlistVideoListElement=void 0);K=_.i9().resolve(_.Nu(_.xj));_.S("web_enable_voting_animation")&&K&&(K.parentElem=void 0,K.videos=[],K.continuationsPresent=!1,K.showRefreshPill=!1)};
_.z.configureRendererStamper=function(){return{"data.contents":{id:"contents",reuseComponents:!1,mapping:{playlistVideoRenderer:{component:"ytd-playlist-video-renderer",properties:{canReorder:"[[canReorder]]"}},continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.continuations":{id:"continuations",mapping:{nextContinuationData:"yt-next-continuation"}},"data.sortFilterMenu":{id:"sort-filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",
params:{closeOnActivate:"true"}}}}}};
_.z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.z.dataChanged=function(){var K=_.i9().resolve(_.Nu(_.xj));if(_.S("web_enable_voting_animation")&&this.data&&K){var X=_.C$(this.hostElement).querySelector("#contents");X&&(K.parentElem=X);K.addVideos(this.data.contents)}_.sMC(this.ytReorderableBehavior)};
_.z.onRendererstamperFinished=function(){this.canReorder&&_.z2T(this.ytReorderableBehavior,_.C$(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.z.onPlaylistReloading=function(){this.isReloading=!0};
_.z.onUpdateSetVideoId=function(K){if(K.detail&&this.data&&this.data.contents){var X=K.detail;K=this.data.contents.findIndex(function(H){var f;return((f=H.playlistVideoRenderer)==null?void 0:f.videoId)===X.videoId});
if(!(K<0)&&X.setVideoId&&(this.set("data.contents."+K+".playlistVideoRenderer.setVideoId",X.setVideoId),_.S("web_enable_voting_animation"))){var F;if(K=_.T((F=this.data.contents[K].playlistVideoRenderer)==null?void 0:F.engagementBar,_.YFP)){var P;(P=K.actions)==null||P.forEach(function(H){if(H=_.T(H,_.QTP))H.itemId=X.setVideoId})}(F=_.i9().resolve(_.Nu(_.xj)))&&ak1(F,X.videoId,X.setVideoId)}}};
_.z.computeContentsClass=function(K){return K?"reloading":""};
_.z.computeIsSortable=function(K,X){return K&&X>0&&!this.isSegment&&!_.S("shorts_in_playlists_web")};
_.z.computeIsEditable=function(K){return K};
_.z.computeCanReorder=function(K){return K};
_.z.handlePlaylistRemoveVideosAction=function(K){if(this.get("playlistRemoveVideosAction.setVideoIds",K)&&this.data&&this.data.contents){K=_.T(K,_.gAV).setVideoIds;for(var X=this.data.contents.length-1;X>=0;){var F=this.data.contents[X].playlistVideoRenderer;F&&F.setVideoId&&K.includes(F.setVideoId)&&this.splice("data.contents",X,1);X--}_.xr(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.z.updateIndices=function(){if(this.data&&this.data.contents)for(var K=0;K<this.data.contents.length;K++)this.set("data.contents."+K+".playlistVideoRenderer.index",_.GS(String(K+1)))};
_.z.handleDrop=function(K){K=K.currDragItem;var X=_.tM(K.parentNode.childNodes,K),F=this.data.contents.splice(Number(_.lj(K.data.index))-1,1)[0];this.data.contents.splice(X,0,F);X=X?this.get("contents."+(X-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();K=this.buildReorderServiceEndpoint(K.data.setVideoId,X);this.ytComponentBehavior.resolveCommand(K)};
_.z.buildReorderServiceEndpoint=function(K,X){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",K),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",X),this.data.onReorderEndpoint):null};
_.z.handleUpdatePlaylistAction=function(K){var X;(K=_.T((X=_.T(K,_.EAC))==null?void 0:X.updatedRenderer,_.urO))&&this.canReorder!==K.canReorder&&this.set("data.canReorder",K.canReorder);K&&K.contents&&(this.set("data.contents",K.contents),this.isReloading=!1);K&&K.continuations&&this.set("data.continuations",K.continuations)};
_.z.handleAddRendererToItemSectionAction=function(K){var X,F=(X=_.T(K,gG1))==null?void 0:X.renderer,P;F&&((P=_.T(K,gG1))==null?void 0:P.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,F),K=_.i9().resolve(_.Nu(_.xj)),_.S("web_enable_voting_animation")&&K&&(F&&(X=_.Zdw(F))&&K.recommendedVideos.push({itemId:X,videoId:_.MwP(F),voteCount:_.nD9(F),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.z.isVotingEnabledOnPlaylist=function(K){if(!K)return!1;K=_.D(K);for(K=K.next();!K.done;K=K.next()){var X=void 0;return!!_.T((X=K.value.playlistVideoRenderer)==null?void 0:X.engagementBar,_.YFP)}return!1};
_.z.onAppendContinuationItemsActionFinished=function(){var K;this.isVotingEnabledOnPlaylist((K=this.data)==null?void 0:K.contents)&&(this.updateIndices(),K=_.i9().resolve(_.Nu(_.xj)),_.S("web_enable_voting_animation")&&K&&this.data&&K.addVideos(this.data.contents))};
_.z.updateVideoData=function(K){if(K.detail&&this.data&&this.data.contents){var X=K.detail;K=X.toIdx;var F=X.itemId,P=X.newVoteCount,H=X.voteStatus;X=X.hideItem;var f,u,J=(f=this.data)==null?void 0:(u=f.contents)==null?void 0:u.findIndex(function(c){return _.Zdw(c)===F});
if(!(J<0)){f=this.data.contents[J];var Z;if((Z=f.playlistVideoRenderer)==null?0:Z.voteCount)f.playlistVideoRenderer.voteCount=P;var M;if(Z=_.T((M=f.playlistVideoRenderer)==null?void 0:M.engagementBar,_.YFP)){var n;(n=Z.actions)==null||n.forEach(function(c){(c=_.T(c,_.QTP))&&c.initialState&&(c.initialState.votes=P,c.initialState.status=H)})}this.data.contents.splice(J,1);
X||this.data.contents.splice(K,0,f);this.updateIndices()}}};
RF.prototype.updateVideoData=RF.prototype.updateVideoData;RF.prototype.onAppendContinuationItemsActionFinished=RF.prototype.onAppendContinuationItemsActionFinished;RF.prototype.onUpdateSetVideoId=RF.prototype.onUpdateSetVideoId;RF.prototype.onPlaylistReloading=RF.prototype.onPlaylistReloading;RF.prototype.onRendererstamperFinished=RF.prototype.onRendererstamperFinished;RF.prototype.dataChanged=RF.prototype.dataChanged;
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],RF.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],RF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],RF.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.RQ.YtNextContinuationBehavior),_.g("design:type",Object)],RF.prototype,"ytNextContinuationBehavior",void 0);
_.O([_.W(_.fkZ),_.g("design:type",Object)],RF.prototype,"ytReorderableBehavior",void 0);_.O([_.W(_.eG),_.g("design:type",Object)],RF.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],RF.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],RF.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Boolean)],RF.prototype,"isReloading",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],RF.prototype,"isSegment",void 0);_.O([_.h({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.g("design:type",Boolean)],RF.prototype,"isSortable",void 0);_.O([_.h({computed:"computeIsEditable(data.isEditable)"}),_.g("design:type",Boolean)],RF.prototype,"isEditable",void 0);_.O([_.h({computed:"computeCanReorder(data.canReorder)"}),_.g("design:type",Boolean)],RF.prototype,"canReorder",void 0);
_.O([_.h({value:101}),_.g("design:type",Number)],RF.prototype,"scrollMargin",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],RF.prototype,"dataChanged",null);_.O([_.Hc("yt-rendererstamper-finished"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],RF.prototype,"onRendererstamperFinished",null);
_.O([_.Hc("yt-playlist-reloading"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],RF.prototype,"onPlaylistReloading",null);_.O([_.Hc("yt-update-set-video-id"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],RF.prototype,"onUpdateSetVideoId",null);
_.O([_.Hc("yt-append-continuation-items-action-finished"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],RF.prototype,"onAppendContinuationItemsActionFinished",null);_.O([_.Hc("yt-update-video-data-voting-animation"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],RF.prototype,"updateVideoData",null);RF=_.O([_.v({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],RF);
_.t(RF,"ytd-playlist-video-list-renderer",function(){if(ZNk!==void 0)return ZNk;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return ZNk=K},{mode:_.Ig("kevlar_poly_si_batch_j047")?1:2});var Y1k;var U8=function(){return _.G.apply(this,arguments)||this};
_.r(U8,_.G);U8.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"}}}}};
U8.prototype.onTextWrapperTap=function(K){var X=this.data&&this.data.navigationEndpoint;X&&!_.lC(_.lN(K),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.iX(this.hostElement,"yt-navigate",{endpoint:X})};
U8.prototype.dataChanged=function(){var K=this.get("data.offerButton.buttonRenderer.serviceEndpoint");K&&K.commandMetadata&&_.T(K.commandMetadata,_.BH)&&_.T(K.commandMetadata,_.BH).fireAutomatically&&_.i9().resolve(_.xU).resolveCommand(K,{form:{element:this.hostElement}})};
U8.prototype.dataChanged=U8.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],U8.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],U8.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.mE),_.g("design:type",Object)],U8.prototype,"ytdLockupBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],U8.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.g("design:type",Boolean)],U8.prototype,"useBiggerThumbs",void 0);_.O([_.h({reflectToAttribute:!0,value:function(){return _.KG("desktop_search_bigger_thumbs_style")}}),
_.g("design:type",String)],U8.prototype,"biggerThumbsStyle",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],U8.prototype,"leftAligned",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],U8.prototype,"dataChanged",null);U8=_.O([_.v({disableElementRegistration:!0,is:"ytd-movie-renderer"})],U8);
_.t(U8,"ytd-movie-renderer",function(){if(Y1k!==void 0)return Y1k;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Y1k=K},{mode:1});var Q1V;var hy=function(){var K=_.G.apply(this,arguments)||this;K.rounded=!0;K.pageAttachedTo=void 0;K.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return K};
_.r(hy,_.G);hy.prototype.attached=function(){this.pageAttachedTo=_.i9().resolve(_.ax).getCurrentPage();_.iX(this.hostElement,"yt-player-attached",this.player)};
hy.prototype.detached=function(){var K;if((K=this.pageAttachedTo)==null?0:K.hostElement)_.iX(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
hy.prototype.dataChanged=function(){var K;if((K=this.data)==null?0:K.videoId)K={video_id:this.data.videoId,autoplay:!0},!_.S("miniplayer_stop_channel_video_autoplay_killswitch")&&_.i9().resolve(_.Wj).isMiniplayerActive()&&(K.pause_at_start=!0,K.autoplay=!1),this.player.loadVideoWithPlayerVars(K)};
hy.prototype.handleSignalActionPausePlayer=function(){_.Oe().pause()};
hy.prototype.dataChanged=hy.prototype.dataChanged;_.O([_.h(),_.g("design:type",Object)],hy.prototype,"data",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],hy.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],hy.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],hy.prototype,"rounded",void 0);_.O([_.fa("#player"),_.g("design:type",Object)],hy.prototype,"player",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],hy.prototype,"dataChanged",null);hy=_.O([_.v({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],hy);
_.t(hy,"ytd-channel-video-player-renderer",function(){if(Q1V!==void 0)return Q1V;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Q1V=K},{mode:1});var Mms;var n9V;var cFF;var m1=function(){var K=_.G.apply(this,arguments)||this;K.playing=!1;K.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.FL(K);K.active=!1;return K};
_.r(m1,_.G);_.z=m1.prototype;_.z.detached=function(){this.stop()};
_.z.play=function(){var K=this,X,F,P,H,f;return _.q(function(u){if(u.nextAddress==1)return K.active=!0,X=K.get("data.inlinePlaybackEndpoint.watchEndpoint"),F=X.videoId||K.data.videoId,P=X.startTimeSeconds||0,H=X.playerParams||null,_.S("kevlar_player_update_killswitch")?_.Y(u,K.playerEl.update({args:{video_id:F,startSeconds:P,player_params:H}}),2):(K.playerEl.loadVideoWithPlayerVars({video_id:F,startSeconds:P,player_params:H,autoplay:!0}),u.jumpTo(2));if(u.nextAddress!=4)return _.Y(u,K.playerEl.getPlayerPromise(),
4);f=u.yieldResult;f.unloadModule("annotations_module");f.addEventListener("onStateChange",function(J){K.onPlayerStateChange(J)});
_.JT(u)})};
_.z.onPlayerStateChange=function(K){if(this.active)switch(this.playing=K===1,K){case 1:_.iX(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.iX(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.z.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.z.resize=function(){var K=this,X;return _.q(function(F){if(F.nextAddress==1)return _.Y(F,K.playerEl.getPlayerPromise(),2);X=F.yieldResult;X.setSize(NaN,NaN);_.JT(F)})};
_.O([_.h(),_.g("design:type",Object)],m1.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],m1.prototype,"playing",void 0);_.O([_.h(),_.g("design:type",Object)],m1.prototype,"playerId",void 0);_.O([_.fa("#player"),_.g("design:type",Object)],m1.prototype,"playerEl",void 0);m1=_.O([_.v({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],m1);
_.t(m1,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(cFF!==void 0)return cFF;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return cFF=K},{mode:1});var p5V;var BXt;var GR=function(){var K=_.G.apply(this,arguments)||this;K.width=0;return K};
_.r(GR,_.G);_.z=GR.prototype;_.z.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.Pc(this,this.onEnded));this.mp4El.addEventListener("error",_.Pc(this,this.onError))};
_.z.detached=function(){this.videoEl.removeEventListener("ended",_.Pc(this,this.onEnded));this.mp4El.removeEventListener("error",_.Pc(this,this.onError))};
_.z.play=function(){var K=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var X=this.videoEl.play();X?X.then(function(){K.handleVideoStartPlaying()}).catch(function(){_.iX(K.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.iX(this.hostElement,"yt-video-thumbnail-not-playing")};
_.z.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.z.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.z.dataChanged=function(){var K;if((K=this.data)==null?0:K.thumbnailPlaceholder)K=_.bH(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+K+")";this.stop();this.autoplay&&this.play()};
_.z.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.z.onEnded=function(){this.stop();_.iX(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.z.onError=function(){_.iX(this.hostElement,"yt-video-thumbnail-error")};
_.z.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.z.getVideoThumbnail=function(K){if(K&&K.length)return K[0]};
GR.prototype.dataChanged=GR.prototype.dataChanged;_.O([_.h(),_.g("design:type",Object)],GR.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],GR.prototype,"animatePlaceholderOnEntrance",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],GR.prototype,"autoplay",void 0);_.O([_.h({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.g("design:type",Object)],GR.prototype,"videoThumbnail",void 0);
_.O([_.h(),_.g("design:type",Boolean)],GR.prototype,"loop",void 0);_.O([_.h(),_.g("design:type",Boolean)],GR.prototype,"isVideoPlaying",void 0);_.O([_.h(),_.g("design:type",Object)],GR.prototype,"width",void 0);_.O([_.fa("#mp4"),_.g("design:type",HTMLElement)],GR.prototype,"mp4El",void 0);_.O([_.fa("#placeholder"),_.g("design:type",HTMLElement)],GR.prototype,"placeholderEl",void 0);_.O([_.fa("#video"),_.g("design:type",HTMLVideoElement)],GR.prototype,"videoEl",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],GR.prototype,"dataChanged",null);GR=_.O([_.Tb({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],GR);
_.t(GR,"yt-video-as-thumbnail-details",function(){if(BXt===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;p5V===void 0&&(p5V=document.createElement("template"));var P=p5V;F.call(X,P.content.cloneNode(!0),K.content.firstChild);BXt=K}K=BXt;return K},{mode:2});var lP=function(){var K=_.G.apply(this,arguments)||this;K.disableGridStateAware=!1;K.animationEnabled=_.S("enable_web_ketchup_hero_animation");K.transitioningOut=!1;K.narrow=!1;K.narrower=!1;K.isCarouselInFeed=!1;K.videoTimeoutJobId=0;K.panelTimeoutJobId=0;K.panelTimeoutJobStartMs=0;K.actionMap={"yt-window-resized":"onWindowResized"};return K};
_.r(lP,_.G);_.z=lP.prototype;_.z.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.z.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var K;this.player&&((K=this.data)==null?0:K.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.z.attached=function(){this.onWindowResized()};
_.z.detached=function(){this.clearTimeouts()};
_.z.onWindowResized=function(){this.updateSize()};
_.z.computePanelLayout=function(K){return K&&K.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.z.playVideo=function(){var K;this.video&&((K=this.data)==null?0:K.videoThumbnail)&&this.video.play();var X;this.player&&((X=this.data)==null?0:X.inlinePlaybackRenderer)&&this.player.play()};
_.z.stopVideo=function(){var K;this.video&&((K=this.data)==null?0:K.videoThumbnail)&&this.video.stop();var X;this.player&&((X=this.data)==null?0:X.inlinePlaybackRenderer)&&this.player.stop()};
_.z.transitionOut=function(){var K=this;this.transitioningOut=!0;return new Promise(function(X){var F=function(){_.C$(K.hostElement).querySelector("#action-button").removeEventListener("animationend",F);_.A9.cancelJob(P);X();K.transitioningOut=!1};
var P=_.cu(_.A9,F,1E3);_.C$(K.hostElement).querySelector("#action-button").addEventListener("animationend",F);K.player&&(K.player.playing=!1)})};
_.z.computeMetadataOrder=function(K){return K&&K.metadataOrder&&K.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?K.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.z.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.z.computeAvatarSize=function(K){return K&&K.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.z.onContentClick=function(K){if(!_.lC(_.lN(K),this.hostElement,["A".toString(),"BUTTON".toString()])){var X;if((X=this.data)==null?0:X.navigationEndpoint){var F;this.componentBehavior.resolveCommand((F=this.data)==null?void 0:F.navigationEndpoint)}}};
_.z.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.z.setBackgroundImage=function(K){if(K=this.getBackgroundImageUrl(K))_.C$(this.hostElement).querySelector("#hero").style.backgroundImage="url("+K+")"};
_.z.setScrimLayer=function(K){var X=this.getScrimLayerColorStops(K);K=((K==null?void 0:K.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(K=180);_.e8("HTML_DIR")==="rtl"&&(K=-K);X&&(_.C$(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+K+"deg, "+X+")")};
_.z.isNarrower=function(){return this.hostElement.clientWidth<lP.NARROW_VERSION_SIZE};
_.z.getScrimLayerColorStops=function(){var K,X=(K=this.data)==null?void 0:K.scrimColorValues;if(!X)return null;if(X.length===1)return K=_.wq(X[0]),K+" 0%, "+K+" 100%";if(X.length===3){var F=[0,72,98];return X.map(function(P,H){return _.wq(P)+" "+F[H]+"%"}).join(",")}return null};
_.z.getBackgroundImageUrl=function(K){return K&&K.largeFormFactorBackgroundThumbnail?_.bH((K.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||K.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.z.onPlaying=function(){this.startVideoTimeout()};
_.z.onEnded=function(){this.rotate()};
_.z.startPanelTimeout=function(){var K=this;if(!this.panelTimeoutJobId){var X=this.get("data.minPanelDisplayDurationMs");X&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.cu(_.A9,function(){K.rotate()},X))}};
_.z.startVideoTimeout=function(){var K=this;if(!this.videoTimeoutJobId){_.A9.cancelJob(this.panelTimeoutJobId);var X=Date.now()-this.panelTimeoutJobStartMs;X=Math.max(0,this.get("data.minPanelDisplayDurationMs")-X);X=Math.max(this.get("data.minVideoPlayDurationMs")||0,X);this.videoTimeoutJobId=_.cu(_.A9,function(){K.rotate()},X)}};
_.z.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.A9.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.A9.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.z.rotate=function(){this.clearTimeouts();_.iX(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.Oi.Object.defineProperties(lP.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.C$(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.C$(this.hostElement).querySelector("#video")}}});
_.Oi.Object.defineProperties(lP,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
lP.prototype.onEnded=lP.prototype.onEnded;lP.prototype.onPlaying=lP.prototype.onPlaying;lP.prototype.dataChanged=lP.prototype.dataChanged;_.O([_.W(_.dK),_.g("design:type",Object)],lP.prototype,"ytdGridStateAwareBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],lP.prototype,"componentBehavior",void 0);_.O([_.W(_.RW.YtdGuideStateAwareBehavior),_.g("design:type",Object)],lP.prototype,"ytdGuideStateAwareBehavior",void 0);
_.O([_.W(_.$NO),_.g("design:type",Object)],lP.prototype,"ytBooleanLogicBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],lP.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],lP.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],lP.prototype,"ytRendererBehavior",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],lP.prototype,"disableGridStateAware",void 0);_.O([_.h(),_.g("design:type",Object)],lP.prototype,"data",void 0);_.O([_.h({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.g("design:type",String)],lP.prototype,"panelLayout",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],lP.prototype,"animationEnabled",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],lP.prototype,"transitioningOut",void 0);
_.O([_.h({computed:"computeMetadataOrder(data)"}),_.g("design:type",Boolean)],lP.prototype,"metadataOrder",void 0);_.O([_.h({computed:"computeByline(data)"}),_.g("design:type",Object)],lP.prototype,"byline",void 0);_.O([_.h({computed:"computeAvatarSize(data)"}),_.g("design:type",Number)],lP.prototype,"avatarSize",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],lP.prototype,"narrow",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],lP.prototype,"narrower",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],lP.prototype,"layoutStyle",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],lP.prototype,"isCarouselInFeed",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],lP.prototype,"dataChanged",null);_.O([_.Hc("yt-default-promo-panel-renderer-playing"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],lP.prototype,"onPlaying",null);
_.O([_.Hc("yt-default-promo-panel-renderer-ended"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],lP.prototype,"onEnded",null);lP=_.O([_.v({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],lP);
_.t(lP,"ytd-default-promo-panel-renderer",function(){if(n9V!==void 0)return n9V;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return n9V=K},{mode:1});_.L4("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var vQ=function(){var K=_.G.apply(this,arguments)||this;K.narrower=!1;K.dotMenuVisible=!1;K.paginationThumbnailsVisible=!1;K.active=!0;K.disableGridStateAware=!1;K.actionMap={"yt-window-resized":"onWindowResized"};return K};
_.r(vQ,_.G);_.z=vQ.prototype;_.z.configureRendererStamper=function(){return{currentItem:{id:"carousel-item",mapping:{defaultPromoPanelRenderer:{component:"ytd-default-promo-panel-renderer",attributes:{autoplay:!0},properties:{disableGridStateAware:"[[disableGridStateAware]]",layoutStyle:"[[data.layoutStyle]]",isCarouselInFeed:"[[isCarouselInFeed]]"}}}}}};
_.z.attached=function(){document.addEventListener("yt-page-type-changed",_.Pc(this,this.onPageTypeChange));this.currentPageSubtype=_.sm(location.pathname);this.onWindowResized()};
_.z.detached=function(){this.jobId&&_.A9.cancelJob(this.jobId);this.updateSizeJobId&&_.A9.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.Pc(this,this.onPageTypeChange))};
_.z.onPageTypeChange=function(K){this.active=K.detail.newPageSubtype===this.currentPageSubtype};
_.z.onWindowResized=function(){this.updateSize()};
_.z.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.z.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.z.setCarouselItem=function(K){K>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.A9.cancelJob(this.jobId);var X=this.getCurrentPanelElement();X&&X.stopVideo();this.currentItemIndex=K%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(X||(X=this.getCurrentPanelElement()),X.playVideo()):this.startRotationJob()};
_.z.scrollThumbnails=function(K){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var X=this.getCurrentPaginationElement();if(X){var F=_.C$(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?F.style.transform="translateX(0)":(X=X.offsetWidth+8,F.style.transform="translateX(-"+X*(K-Math.ceil(Math.floor(this.overlay.offsetWidth/X)/2)+1)+"px)")}}};
_.z.onDataChanged=function(){var K=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.QW(_.A9,function(){K.getCurrentPanelElement().updateSize();K.updateSize()}))};
_.z.getCurrentPanelElement=function(){return _.C$(_.C$(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.z.getCurrentPaginationElement=function(){return _.C$(_.C$(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.z.getNavigationClass=function(K,X){return K===X?"selected":""};
_.z.getNavigationDurationStyle=function(K){return"animation-duration:"+(this.get("data.carouselItems."+K+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.z.onNavigationTap=function(K){var X=this,F=K.model.index;F!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){X.setCarouselItem(F)}),this.autorotateActive=!1)};
_.z.onVideoThumbnailEnded=function(){var K=this;if(this.shouldRotate()){var X=this.getCurrentPaginationElement();X&&(X.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){X.classList.remove("finished");K.setNextCarouselItem()}))}};
_.z.onVideoThumbnailError=function(){this.startRotationJob()};
_.z.onVideoNotPlaying=function(){this.startRotationJob()};
_.z.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.z.startRotationJob=function(){var K=this;_.A9.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.A9.addLowPriorityJob(function(){K.getCurrentPanelElement().transitionOut().then(function(){K.setNextCarouselItem()})},this.rotationTimeout))};
_.z.computeDotMenuVisible=function(K,X){return!!K&&!!K.carouselItems&&K.carouselItems.length>1&&!K.paginationThumbnails||!!X};
_.z.computePaginationThumbnailsVisible=function(K,X){var F,P;return((P=K==null?void 0:(F=K.paginationThumbnails)==null?void 0:F.length)!=null?P:0)>1&&!X};
_.z.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.z.computePaginatorAlignment=function(K){return(K==null?void 0:K.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.z.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.z.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.z.isNarrower=function(K){return(K!=null?K:0)<lP.NARROW_VERSION_SIZE};
vQ.prototype.activeChanged=vQ.prototype.activeChanged;vQ.prototype.onVideoNotPlaying=vQ.prototype.onVideoNotPlaying;vQ.prototype.onVideoThumbnailError=vQ.prototype.onVideoThumbnailError;vQ.prototype.onVideoThumbnailEnded=vQ.prototype.onVideoThumbnailEnded;vQ.prototype.onDataChanged=vQ.prototype.onDataChanged;_.O([_.W(_.dK),_.g("design:type",Object)],vQ.prototype,"ytdGridStateAwareBehavior",void 0);
_.O([_.W(_.RW.YtdGuideStateAwareBehavior),_.g("design:type",Object)],vQ.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],vQ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],vQ.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],vQ.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],vQ.prototype,"currentItem",void 0);
_.O([_.h(),_.g("design:type",Number)],vQ.prototype,"currentItemIndex",void 0);_.O([_.h(),_.g("design:type",Number)],vQ.prototype,"rotationTimeout",void 0);_.O([_.h(),_.g("design:type",Number)],vQ.prototype,"loopCount",void 0);_.O([_.h({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.g("design:type",String)],vQ.prototype,"paginatorAlignment",void 0);_.O([_.h(),_.g("design:type",Number)],vQ.prototype,"jobId",void 0);
_.O([_.h(),_.g("design:type",Number)],vQ.prototype,"updateSizeJobId",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],vQ.prototype,"isCarouselInFeed",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],vQ.prototype,"narrower",void 0);_.O([_.h({computed:"computeDotMenuVisible(data, narrower)"}),_.g("design:type",Object)],vQ.prototype,"dotMenuVisible",void 0);
_.O([_.h({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.g("design:type",Object)],vQ.prototype,"paginationThumbnailsVisible",void 0);_.O([_.h({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.g("design:type",String)],vQ.prototype,"layoutType",void 0);_.O([_.h({value:!0,reflectToAttribute:!0}),_.g("design:type",Boolean)],vQ.prototype,"autorotateActive",void 0);_.O([_.h(),_.g("design:type",Object)],vQ.prototype,"active",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],vQ.prototype,"disableGridStateAware",void 0);_.O([_.fa("#overlay"),_.g("design:type",HTMLElement)],vQ.prototype,"overlay",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],vQ.prototype,"onDataChanged",null);
_.O([_.Hc("yt-video-thumbnail-ended"),_.Hc("yt-default-promo-panel-renderer-rotate"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],vQ.prototype,"onVideoThumbnailEnded",null);_.O([_.Hc("yt-video-thumbnail-error"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],vQ.prototype,"onVideoThumbnailError",null);
_.O([_.Hc("yt-video-thumbnail-not-playing"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],vQ.prototype,"onVideoNotPlaying",null);_.O([_.JA("active"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],vQ.prototype,"activeChanged",null);vQ=_.O([_.v({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],vQ);
_.t(vQ,"ytd-carousel-item-renderer",function(){if(Mms!==void 0)return Mms;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return Mms=K},{mode:2});var S18;var o9G;var LIs;var TX8;var aF=function(){var K=_.G.apply(this,arguments)||this;K.originalQuery=null;K.originalEndpoint=null;return K};
_.r(aF,_.G);aF.prototype.computeShowOriginalQueryWithoutEndpoint_=function(K,X){return!(!K||X)};
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],aF.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],aF.prototype,"correctedText",void 0);_.O([_.h(),_.g("design:type",Object)],aF.prototype,"correctedQuery",void 0);_.O([_.h(),_.g("design:type",Object)],aF.prototype,"correctedEndpoint",void 0);_.O([_.h(),_.g("design:type",Object)],aF.prototype,"originalText",void 0);_.O([_.h(),_.g("design:type",Object)],aF.prototype,"originalQuery",void 0);
_.O([_.h(),_.g("design:type",Object)],aF.prototype,"originalEndpoint",void 0);_.O([_.h({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.g("design:type",Boolean)],aF.prototype,"showOriginalQueryWithoutEndpoint",void 0);aF=_.O([_.Tb({is:"yt-search-query-correction",disableElementRegistration:!0})],aF);
_.t(aF,"yt-search-query-correction",function(){if(TX8===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;LIs===void 0&&(LIs=document.createElement("template"));var P=LIs;F.call(X,P.content.cloneNode(!0),K.content.firstChild);TX8=K}K=TX8;return K},{mode:2});_.L4("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var ty=function(){return _.G.apply(this,arguments)||this};
_.r(ty,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ty.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],ty.prototype,"data",void 0);ty=_.O([_.Tb({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],ty);
_.t(ty,"yt-did-you-mean-renderer",function(){if(o9G===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;S18===void 0&&(S18=document.createElement("template"));var P=S18;F.call(X,P.content.cloneNode(!0),K.content.firstChild);o9G=K}K=o9G;return K},{mode:2});var rFt;var AFF;_.L4("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var $t=function(){return _.G.apply(this,arguments)||this};
_.r($t,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],$t.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],$t.prototype,"data",void 0);$t=_.O([_.Tb({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],$t);
_.t($t,"yt-including-results-for-renderer",function(){if(AFF===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;rFt===void 0&&(rFt=document.createElement("template"));var P=rFt;F.call(X,P.content.cloneNode(!0),K.content.firstChild);AFF=K}K=AFF;return K},{mode:2});var j1w;var w5v;_.L4("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var O8=function(){return _.G.apply(this,arguments)||this};
_.r(O8,_.G);O8.prototype.computeExtraClasses_=function(K,X){var F="";K&&(F+=" "+K.toLowerCase().replace(/_/g,"-"));X&&(F+=" "+X.toLowerCase().replace(/_/g,"-"));return F};
O8.prototype.computeUrlImg_=function(){var K=this.data;K.image&&(_.C$(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.bH(K.image.thumbnails,Number.MAX_VALUE)+")")};
O8.prototype.computeUrlImg_=O8.prototype.computeUrlImg_;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],O8.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],O8.prototype,"data",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],O8.prototype,"computeUrlImg_",null);O8=_.O([_.Tb({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],O8);
_.t(O8,"yt-music-pass-feature-info-renderer",function(){if(w5v===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;j1w===void 0&&(j1w=document.createElement("template"));var P=j1w;F.call(X,P.content.cloneNode(!0),K.content.firstChild);w5v=K}K=w5v;return K},{mode:2});var yFF;var WI8;_.L4("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var VH=function(){return _.G.apply(this,arguments)||this};
_.r(VH,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],VH.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],VH.prototype,"data",void 0);VH=_.O([_.Tb({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],VH);
_.t(VH,"yt-no-results-found-showing-results-for-renderer",function(){if(WI8===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;yFF===void 0&&(yFF=document.createElement("template"));var P=yFF;F.call(X,P.content.cloneNode(!0),K.content.firstChild);WI8=K}K=WI8;return K},{mode:2});var dX8;var eNt;_.L4("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var gt=function(){return _.G.apply(this,arguments)||this};
_.r(gt,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],gt.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],gt.prototype,"data",void 0);gt=_.O([_.Tb({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],gt);
_.t(gt,"yt-results-without-quotes-renderer",function(){if(eNt===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;dX8===void 0&&(dX8=document.createElement("template"));var P=dX8;F.call(X,P.content.cloneNode(!0),K.content.firstChild);eNt=K}K=eNt;return K},{mode:2});var RNJ;var UXF;_.L4("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var E8=function(){return _.G.apply(this,arguments)||this};
_.r(E8,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],E8.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],E8.prototype,"data",void 0);E8=_.O([_.Tb({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],E8);
_.t(E8,"yt-search-no-results-renderer",function(){if(UXF===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;RNJ===void 0&&(RNJ=document.createElement("template"));var P=RNJ;F.call(X,P.content.cloneNode(!0),K.content.firstChild);UXF=K}K=UXF;return K},{mode:2});var hNt;var mXJ;_.L4("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var bP=function(){return _.G.apply(this,arguments)||this};
_.r(bP,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],bP.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],bP.prototype,"data",void 0);bP=_.O([_.Tb({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],bP);
_.t(bP,"yt-showing-results-for-renderer",function(){if(mXJ===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;hNt===void 0&&(hNt=document.createElement("template"));var P=hNt;F.call(X,P.content.cloneNode(!0),K.content.firstChild);mXJ=K}K=mXJ;return K},{mode:2});var Gxt;var l08;var v95;var a0V;var Cm=function(){var K=_.G.apply(this,arguments)||this;K.answerExpanded=!1;return K};
_.r(Cm,_.G);Cm.prototype.toggleAnswer_=function(K){var X=_.vI(K);X&&X.classList.contains("yt-simple-endpoint")||(K.preventDefault(),K.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
Cm.prototype.toggleAnswer_=Cm.prototype.toggleAnswer_;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Cm.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Cm.prototype,"answerExpanded",void 0);_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Cm.prototype,"toggleAnswer_",null);
Cm=_.O([_.Tb({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],Cm);
_.t(Cm,"yt-generic-faq-question-renderer",function(){if(a0V===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;v95===void 0&&(v95=document.createElement("template"));var P=v95;F.call(X,P.content.cloneNode(!0),K.content.firstChild);a0V=K}K=a0V;return K},{mode:2});_.L4("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var NN=function(){return _.G.apply(this,arguments)||this};
_.r(NN,_.G);NN.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],NN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],NN.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],NN.prototype,"data",void 0);NN=_.O([_.Tb({is:"yt-faq-section-renderer",disableElementRegistration:!0})],NN);
_.t(NN,"yt-faq-section-renderer",function(){if(l08===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;Gxt===void 0&&(Gxt=document.createElement("template"));var P=Gxt;F.call(X,P.content.cloneNode(!0),K.content.firstChild);l08=K}K=l08;return K},{mode:2});var tm8;var $Xd;_.L4("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var iP=function(){return _.G.apply(this,arguments)||this};
_.r(iP,_.G);
iP.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"}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],iP.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],iP.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],iP.prototype,"data",void 0);iP=_.O([_.Tb({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],iP);
_.t(iP,"yt-offer-item-expanded-renderer",function(){if($Xd===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;tm8===void 0&&(tm8=document.createElement("template"));var P=tm8;F.call(X,P.content.cloneNode(!0),K.content.firstChild);$Xd=K}K=$Xd;return K},{mode:2});var ONk;var Vmt;_.L4("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var xt=function(){return _.G.apply(this,arguments)||this};
_.r(xt,_.G);
xt.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"}}}}};
xt.prototype.computeFullWidthMode=function(K){return!(!K||!K.fullWidthMode)};
xt.prototype.computeBorderlessMode=function(K){return!(!K||!K.borderlessMode)};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],xt.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],xt.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],xt.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.g("design:type",Boolean)],xt.prototype,"fullWidthMode",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.g("design:type",Boolean)],xt.prototype,"borderlessMode",void 0);xt=_.O([_.Tb({is:"yt-offer-item-renderer",disableElementRegistration:!0})],xt);
_.t(xt,"yt-offer-item-renderer",function(){if(Vmt===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;ONk===void 0&&(ONk=document.createElement("template"));var P=ONk;F.call(X,P.content.cloneNode(!0),K.content.firstChild);Vmt=K}K=Vmt;return K},{mode:2});var g9w;var E9J;_.L4("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var IF=function(){return _.G.apply(this,arguments)||this};
_.r(IF,_.G);IF.prototype.computeAriaLevel_=function(K){return this.getLevelID_(K)};
IF.prototype.getLevelID_=function(K){return(K=K.match(/[0-9]+$/))&&K.length==1?K[0]:"1"};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],IF.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],IF.prototype,"data",void 0);_.O([_.h({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.g("design:type",String)],IF.prototype,"ariaLevel",void 0);_.O([_.h({value:"heading",reflectToAttribute:!0}),_.g("design:type",String)],IF.prototype,"role",void 0);
_.O([_.h({value:-1,reflectToAttribute:!0}),_.g("design:type",Number)],IF.prototype,"tabindex",void 0);IF=_.O([_.Tb({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],IF);
_.t(IF,"yt-subscription-product-header-renderer",function(){if(E9J===void 0){var K=document.createElement("template");_.w(K,"\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");K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;g9w===void 0&&(g9w=document.createElement("template"));var P=g9w;F.call(X,P.content.cloneNode(!0),K.content.firstChild);E9J=K}K=E9J;return K},{mode:2});var bNk;var CSG;_.L4("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var kt=function(){return _.G.apply(this,arguments)||this};
_.r(kt,_.G);kt.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:_.T9("menuRenderer"),events:!0}}};
kt.prototype.onStampFinished_=function(){_.C$(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
kt.prototype.onStampFinished_=kt.prototype.onStampFinished_;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],kt.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],kt.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],kt.prototype,"data",void 0);_.O([_.Hc("yt-rendererstamper-finished"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],kt.prototype,"onStampFinished_",null);
kt=_.O([_.Tb({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],kt);
_.t(kt,"yt-subscription-product-renderer",function(){if(CSG===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;bNk===void 0&&(bNk=document.createElement("template"));var P=bNk;F.call(X,P.content.cloneNode(!0),K.content.firstChild);CSG=K}K=CSG;return K},{mode:2});var NX8;var iNW;_.L4("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var Kh=function(){return _.G.apply(this,arguments)||this};
_.r(Kh,_.G);Kh.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Kh.prototype.imageScrimColorValuesChanged_=function(){var K,X=(K=this.data)==null?void 0:K.imageScrimColorValues;_.C$(this.hostElement).querySelector("#scrim").style.backgroundColor=X?_.wq(X[0]):"transparent"};
Kh.prototype.imageScrimColorValuesChanged_=Kh.prototype.imageScrimColorValuesChanged_;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Kh.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Kh.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Kh.prototype,"data",void 0);
_.O([_.so("data.imageScrimColorValues"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Kh.prototype,"imageScrimColorValuesChanged_",null);Kh=_.O([_.Tb({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],Kh);
_.t(Kh,"yt-subscription-product-upsell-offer-renderer",function(){if(iNW===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;NX8===void 0&&(NX8=document.createElement("template"));var P=NX8;F.call(X,P.content.cloneNode(!0),K.content.firstChild);iNW=K}K=iNW;return K},{mode:2});var xXs;var I0k;var kx8;var KwV;var XBV;var Fwk;var XQ=function(){return _.G.apply(this,arguments)||this};
_.r(XQ,_.G);XQ.prototype.onYtServiceRequestError_=function(K){_.b6(this.hostElement,K.detail.error.message)};
XQ.prototype.onYtServiceRequestError_=XQ.prototype.onYtServiceRequestError_;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],XQ.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],XQ.prototype,"data",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],XQ.prototype,"collapsible",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],XQ.prototype,"isManageRed",void 0);
_.O([_.Hc("yt-service-request-error"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],XQ.prototype,"onYtServiceRequestError_",null);XQ=_.O([_.Tb({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],XQ);
_.t(XQ,"yt-single-ypc-offer-renderer",function(){if(Fwk===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;XBV===void 0&&(XBV=document.createElement("template"));var P=XBV;F.call(X,P.content.cloneNode(!0),K.content.firstChild);Fwk=K}K=Fwk;return K},{mode:2});var FQ=function(){return _.G.apply(this,arguments)||this};
_.r(FQ,_.G);FQ.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],FQ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],FQ.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],FQ.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],FQ.prototype,"isManageRed",void 0);FQ=_.O([_.Tb({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],FQ);
_.t(FQ,"yt-single-ypc-offer-list-renderer",function(){if(KwV===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;kx8===void 0&&(kx8=document.createElement("template"));var P=kx8;F.call(X,P.content.cloneNode(!0),K.content.firstChild);KwV=K}K=KwV;return K},{mode:2});var P5W;var H_k;_.L4("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var Pr=function(){return _.G.apply(this,arguments)||this};
_.r(Pr,_.G);Pr.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Pr.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Pr.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Pr.prototype,"data",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],Pr.prototype,"isManageRed",void 0);Pr=_.O([_.Tb({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],Pr);
_.t(Pr,"yt-ypc-offers-list-renderer",function(){if(H_k===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;P5W===void 0&&(P5W=document.createElement("template"));var P=P5W;F.call(X,P.content.cloneNode(!0),K.content.firstChild);H_k=K}K=H_k;return K},{mode:2});_.L4("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var Hr=function(){return _.G.apply(this,arguments)||this};
_.r(Hr,_.G);
Hr.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}}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Hr.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Hr.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Hr.prototype,"data",void 0);Hr=_.O([_.Tb({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],Hr);
_.t(Hr,"yt-unlimited-manage-subscription-page-renderer",function(){if(I0k===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;xXs===void 0&&(xXs=document.createElement("template"));var P=xXs;F.call(X,P.content.cloneNode(!0),K.content.firstChild);I0k=K}K=I0k;return K},{mode:2});var sed;var zGF;var sn=function(){return _.G.apply(this,arguments)||this};
_.r(sn,_.G);_.z=sn.prototype;_.z.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.z.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.z.onKeypress_=function(K){K.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.z.handleHeaderTap_=function(K){K.preventDefault();K.stopPropagation();this.expandOffers_()};
_.z.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.z.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
sn.prototype.dataChanged_=sn.prototype.dataChanged_;_.O([_.W(_.JP),_.g("design:type",Object)],sn.prototype,"ironA11yKeysBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],sn.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],sn.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],sn.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],sn.prototype,"offersVisible_",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],sn.prototype,"dataChanged_",null);sn=_.O([_.Tb({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],sn);
_.t(sn,"yt-collapsible-ypc-offer-renderer",function(){if(zGF===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;sed===void 0&&(sed=document.createElement("template"));var P=sed;F.call(X,P.content.cloneNode(!0),K.content.firstChild);zGF=K}K=zGF;return K},{mode:2});var fN5;var DQ8;_.L4("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var zh=function(){return _.G.apply(this,arguments)||this};
_.r(zh,_.G);_.z=zh.prototype;_.z.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.z.dataChanged_=function(){if(this.data.backgroundImage){var K=_.bH(this.data.backgroundImage.thumbnails,screen.width),X=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=X?"linear-gradient(180deg, "+X+"), url("+K+")":"url("+K+")";this.data.gtmId&&_.nE(this.data.gtmId,_.e8("GL",""))}};
_.z.onYtServiceRequestError_=function(K){_.b6(this.hostElement,K.detail.error.message)};
_.z.getScrimLayerColorStops_=function(){var K,X,F=(K=this.data.unlimitedHeaderV2Data)==null?void 0:(X=K.unlimitedHeaderV2Data)==null?void 0:X.scrimLayerColors;if(!F)return null;var P=100/F.length;return F.map(function(H,f){f*=P;return _.wq(H)+" "+f+"%"}).join(",")};
_.z.computeLogoWithPadding=function(K){var X,F,P;return(K=(X=K.unlimitedLogoImage)==null?void 0:(F=X.thumbnails)==null?void 0:(P=F[0])==null?void 0:P.height)&&K%31===0?!0:!1};
zh.prototype.onYtServiceRequestError_=zh.prototype.onYtServiceRequestError_;zh.prototype.dataChanged_=zh.prototype.dataChanged_;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],zh.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],zh.prototype,"ytRendererBehavior",void 0);_.O([_.h({computed:"computeLogoWithPadding(data)"}),_.g("design:type",Boolean)],zh.prototype,"logoWithPadding",void 0);
_.O([_.h(),_.g("design:type",Object)],zh.prototype,"data",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],zh.prototype,"dataChanged_",null);_.O([_.Hc("yt-service-request-error"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],zh.prototype,"onYtServiceRequestError_",null);zh=_.O([_.Tb({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],zh);
_.t(zh,"yt-unlimited-page-header-renderer",function(){if(DQ8===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;fN5===void 0&&(fN5=document.createElement("template"));var P=fN5;F.call(X,P.content.cloneNode(!0),K.content.firstChild);DQ8=K}K=DQ8;return K},{mode:2});var uH8;var qfv;_.L4("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var fh=function(){return _.G.apply(this,arguments)||this};
_.r(fh,_.G);fh.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],fh.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],fh.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],fh.prototype,"data",void 0);fh=_.O([_.Tb({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],fh);
_.t(fh,"yt-unlimited-user-notification-renderer",function(){if(qfv===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;uH8===void 0&&(uH8=document.createElement("template"));var P=uH8;F.call(X,P.content.cloneNode(!0),K.content.firstChild);qfv=K}K=qfv;return K},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.pdV=_.$c(function(K){var X=_.tA(K,{numberOfChips:5}).numberOfChips;return _.Q("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.Q(_.cd,{each:function(){return Array(X==null?void 0:X())}},function(){return _.Q("div",{class:"ytGhostChipShelfChip"})}))},"lg");_.B2G=_.$c(function(K){var X=_.kf(),F=_.i9().resolve(_.lH);_.Tr(function(){requestAnimationFrame(function(){var H;(H=X.lottieEl)==null||H.addEventListener("DOMLoaded",function(){var f;(f=K.onLottieLoaded)==null||f.call(K)})})});
var P={};return _.Q("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var H;return((H=K.data)==null?void 0:H.call(K).targetId)||""}},_.Q(_.se,{className:_.HO((P.ytChatLoadingViewModelRtl=F==="rtl",P)),
animationName:"YOUCHAT_LOADER",data:function(){var H;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((H=K.data)==null?void 0:H.call(K).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:X}))},"mg");
}catch(e){_._DumpException(e)}
try{
var ViJ,git,EiF,bst,CiJ,NFk,isF,IXd,zQv,Nw,swo,XkJ,HZ8,PK5,Fq8,Kq1,f45,Dcd,ug8,q2s,iM,JTW,ZZ1,Y2v,cT5,nEV,MOo,xP,Qwo,S2J,oEw,Lqs,TE5,ATF,WqW,RQk,Ucw,hQW,Gsk,vE8,tOF,$cW,OZG,VO1,EEF,bZV,CKk,NE1,iZW,xcJ,I4v,KPV,H81,Pks,Xfv,sRk,FPF,z98,qOo,usv,fwG,D4w,kP,JEJ,Z8d,QR8,cE1,TpJ,rEv,AEo,jRF,wf5,yE5,WPs,d48,e9t,R9t,h95,m4F,G88,pk8,BEJ,SO5;
_.bM=function(K){var X=new _.nG("Error accessing DB");return _.w99().then(function(F){return new Promise(function(P,H){try{var f=F.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(K);f.onsuccess=function(){var u=f.result;P(u?u.value:null)};
f.onerror=function(){X.params={key:K,source:"onerror"};H(X)}}catch(u){X.params={key:K,
thrownError:String(u)},H(X)}})},function(){return null})};
_.Osw=function(K,X){var F=_.MyT(X);F!=="javascript:"&&F!=="data:"&&K.setAttribute("href",X)};
ViJ=function(K,X){return _.FF(K.entities,"flowStateEntity",X)};
git=function(K){return _.lT(K,function(X){return X.languageCode==="en"})};
EiF=function(K){var X=Cr;if(_.Kkw(K))K.setOption("captions","stickyLoading",{}),K.setOption("captions","track",{});else{var F=_.lT(_.h7d(K),function(P){return P.displayName===X});
K.setOption("captions","track",F)}};
bst=function(K){if(!K)return 0;var X=K.getPresentingPlayerType(),F=K.getVideoData();return F&&F.isLive?(K=K.getProgressState(X),K.seekableEnd-K.seekableStart):K.getDuration(X)};
CiJ=function(K,X){for(var F=_.D(Object.keys(K)),P=F.next();!P.done;P=F.next())if(P=P.value,K[P]!==X[P])return!1;return!0};
NFk=function(){return document.getElementById("player-control-overlay")};
isF=function(K){K!==-1&&!_.S("player_controls_log_creation_killswitch")&&NFk()&&(_.Ac("pcu_cs",K),_.Ac("pcu_ce"))};
IXd=function(K){return _.Q("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(K.subscribeButton?[K.subscribeButton,K.channelAccess]:[K.channelAccess]).map(function(X){return _.Q("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.Q("div",{class:"yt-profile-identity-info-view-model-wiz--button"},xvk(X)))}))};
_.kpo=function(K){var X=K.data;K=K.hideDivider;var F={};F=(F["yt-profile-identity-info-view-model-wiz__frame"]=!0,F["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!X.channelBanner,F);F={class:_.z9(F)};var P,H={imageBannerViewModel:{image:(P=X.channelBanner)==null?void 0:P.image,style:"IMAGE_BANNER_STYLE_INSET"}};P=_.Q("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},X.channelBanner?_.Q("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
xvk(H,{imageBannerViewModel:{isPositionRelative:!0}})):null);H=_.Q("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},xvk(X.avatar));var f;var u=_.Q("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.Q("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},X.channelDisplayName),X.verifiedOrOacBadge?_.Q("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.Q(_.av,{data:{thumbnails:[{url:(f=X.verifiedOrOacBadge)==null?void 0:f.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);f=_.Q("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},u,xvk(X.threeDotMenu));u=_.Q("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.Q("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.Q("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},X.channelHandle),X.channelPronouns&&X.channelHandle?_.Q("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.Q("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},X.channelPronouns)),_.Q("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.Q("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},X.leftOfBulletInfo),X.leftOfBulletInfo&&X.rightOfBulletInfo?_.Q("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.Q("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},X.rightOfBulletInfo)));f=_.Q("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},f,u);return _.Q("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.Q("div",F,P,_.Q("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},H,f),X.channelDescription?_.Q("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},X.channelDescription):
null,IXd(X),K?null:_.Q("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
zQv=function(K,X){var F=_.ag(K,{}),P=Kq1("top",X),H=Kq1("bottom",X),f=Kq1("left",X),u=Kq1("right",X);return _.Je({top:function(){return Nw(F().position,P)},
bottom:function(){return Nw(F().position,H)},
left:function(){return Nw(F().position,f)},
right:function(){return Nw(F().position,u)},
position:function(){return Nw(F().positionType,XkJ)},
height:function(){return Nw(F().height,iM)},
width:function(){return Nw(F().width,iM)},
"min-width":function(){return Nw(F().minWidth,iM)},
"min-height":function(){return Nw(F().minHeight,iM)},
"max-width":function(){return Nw(F().maxWidth,iM)},
"max-height":function(){return Nw(F().maxHeight,iM)},
"aspect-ratio":function(){return Nw(F().aspectRatio,String)},
"margin-top":function(){return Nw(F().margin,P)},
"margin-bottom":function(){return Nw(F().margin,H)},
"margin-left":function(){return Nw(F().margin,f)},
"margin-right":function(){return Nw(F().margin,u)},
"padding-top":function(){return Nw(F().padding,P)},
"padding-bottom":function(){return Nw(F().padding,H)},
"padding-left":function(){return Nw(F().padding,f)},
"padding-right":function(){return Nw(F().padding,u)},
"flex-direction":function(){return Nw(F().flexDirection,Fq8)},
"justify-content":function(){return Nw(F().justifyContent,PK5)},
"align-items":function(){return Nw(F().alignItems,HZ8)},
"flex-grow":function(){return Nw(F().flexGrow,String)},
"flex-shrink":function(){return Nw(F().flexShrink,String)},
"flex-basis":function(){return Nw(F().flexBasis,iM)},
"align-self":function(){return Nw(F().alignSelf,HZ8)},
"flex-wrap":function(){return Nw(F().flexWrap,swo)},
"align-content":function(){return Nw(F().alignContent,HZ8)}})};
Nw=function(K,X){return K!==void 0?X(K):void 0};
swo=function(K){switch(K){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
XkJ=function(K){switch(K){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
HZ8=function(K){switch(K){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"}};
PK5=function(K){switch(K){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"}};
Fq8=function(K){switch(K){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"}};
Kq1=function(K,X){var F=X==="rtl";switch(K){case "top":var P=f45;break;case "bottom":P=Dcd;break;case "left":P=ug8;break;default:P=q2s}return function(H){return Nw(P(H,F),iM)}};
f45=function(K){var X=K.top;var F=K.vertical;K=K.all;var P;return(P=X!=null?X:F)!=null?P:K};
Dcd=function(K){var X=K.bottom;var F=K.vertical;K=K.all;var P;return(P=X!=null?X:F)!=null?P:K};
ug8=function(K,X){var F=K.left;var P=K.end;var H=K.start;var f=K.horizontal;K=K.all;var u,J;return(J=(u=F!=null?F:X?P:H)!=null?u:f)!=null?J:K};
q2s=function(K,X){var F=K.right;var P=K.end;var H=K.start;var f=K.horizontal;K=K.all;var u,J;return(J=(u=F!=null?F:X?H:P)!=null?u:f)!=null?J:K};
iM=function(K){var X=K.value;switch(K.unit){case "YPC_DIMENSION_UNIT_POINT":return X+"px";case "YPC_DIMENSION_UNIT_FRACTION":return X+"%";default:return""+X}};
JTW=function(K){switch(K){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"}};
ZZ1=function(K){var X=K!=null?K:{};K=X.fontRole;var F=X.fontSize;X=X.fontWeight;if(K!==null&&F!==null)switch(K){case "YPC_FONT_ROLE_DISPLAY":switch(F){case "YPC_FONT_SIZE_L":return X==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return X==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return X==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return X==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(F){case "YPC_FONT_SIZE_L":return X==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return X==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return X===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return X==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(F){case "YPC_FONT_SIZE_XL":return X==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return X==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return X==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return X==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return X==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
Y2v=function(K,X){return _.FF(K.entities,"pdpStateEntity",X)};
cT5=function(K,X,F){function P(M){return Object.values(M).map(function(n){var c=n.productId;n=n.pricingOptionIndex;return xP(H(c).pricingOptions,n).pricingOptionId})}
function H(M){return J().get(M)}
function f(M){M=P(M);F(M)}
var u=Qwo([K,X],function(M,n){var c=M==null?void 0:M.selectedPricingOptions;M={};var B=!0;if(c&&n.length)for(var L=_.D(n),A=L.next();!A.done;A=L.next()){A=A.value;var d=MOo(A.pricingOptions,function(a){a:{a=a.pricingOptionId;for(var E=_.D(c),V=E.next();!V.done;V=E.next())if(V.value===a){a=!0;break a}a=!1}return a});
if(d>=0){B=!1;var R=xP(A.pricingOptions,d),l=void 0;M[A.groupId]={productId:A.productId,pricingOptionIndex:d,pricingGroupAttributes:(l=R)==null?void 0:l.pricingGroupAttributes}}}B&&n.length&&(B=xP(n[0].pricingOptions,0),M[n[0].groupId]={productId:n[0].productId,pricingOptionIndex:0,pricingGroupAttributes:B==null?void 0:B.pricingGroupAttributes});return M}),J=Qwo([X],function(M){return new Map(M.map(function(n){return[n.productId,
n]}))}),Z=Qwo([X],function(M){var n=new Map;
M=_.D(M);for(var c=M.next();!c.done;c=M.next()){var B=c.value;c=B.groupId;var L=B.productId;B=_.D(nEV(B.pricingOptions));for(var A=B.next();!A.done;A=B.next()){var d=_.D(A.value);A=d.next().value;d=d.next().value;n.set(d.pricingOptionId,{groupId:c,productId:L,index:A,pricingOption:d,pricingGroupAttributes:d.pricingGroupAttributes})}}return n});
return{getProductById:H,isProductSelected:function(M){var n=H(M);if(!n)return!1;var c;return((c=u()[n.groupId])==null?void 0:c.productId)===M},
getSelectedPricingOptions:function(){return Object.values(u()).map(function(M){var n=M.productId;M=M.pricingOptionIndex;return xP(H(n).pricingOptions,M)})},
getSelectedPricingGroupAttributesByGroupId:function(M){var n;return(M=(n=u()[M])==null?void 0:n.pricingGroupAttributes)?Array.from(M):void 0},
getSelectedProductByGroupId:function(M){var n;return(M=(n=u()[M])==null?void 0:n.productId)?H(M):void 0},
onProductSelected:function(M){var n=H(M);if(n){var c=u(),B;if(((B=c[n.groupId])==null?void 0:B.productId)!==M){var L,A;B=(A=(L=c[n.groupId])==null?void 0:L.pricingOptionIndex)!=null?A:0;L=0;for(A=n.pricingOptions[Symbol.iterator]();!A.next().done;)++L;L<=B&&(B=0);L=xP(n.pricingOptions,B);var d;A={};f(Object.assign({},c,(A[n.groupId]={productId:M,pricingOptionIndex:B,pricingGroupAttributes:(d=L==null?void 0:L.pricingGroupAttributes)!=null?d:[]},A)))}}},
onPricingOptionSelected:function(M){var n=Z().get(M);if(n){M=n.groupId;var c=n.productId;n=n.index;var B=u(),L,A;if(((L=B[M])==null?void 0:L.productId)!==c||((A=B[M])==null?void 0:A.pricingOptionIndex)!==n){var d,R;L={};f(Object.assign({},B,(L[M]={productId:c,pricingOptionIndex:n,pricingGroupAttributes:(R=(d=B[M])==null?void 0:d.pricingGroupAttributes)!=null?R:[]},L)))}}},
onClearGroupSelected:function(M){var n=u();n[M]&&(n=Object.fromEntries(Object.entries(n).filter(function(c){return _.D(c).next().value!==M})),f(n))}}};
nEV=function(K){return function F(){var P,H,f,u,J;return pk8(F,function(Z){switch(Z.nextAddress){case 1:_.D4(Z,2),P=0,H=_.D(K),f=H.next();case 4:if(f.done){Z.jumpTo(2);break}u=f.value;J=BEJ;return _.Y(Z,[P++,u],7);case 7:J(Z.yieldResult);f=H.next();Z.jumpTo(4);break;case 2:_.fZ(Z),_.uK(Z,0)}})}()};
MOo=function(K,X){K=_.D(nEV(K));for(var F=K.next();!F.done;F=K.next()){var P=_.D(F.value);F=P.next().value;P=P.next().value;if(X(P))return F}return-1};
xP=function(K,X){K=_.D(nEV(K));for(var F=K.next();!F.done;F=K.next()){var P=_.D(F.value);F=P.next().value;P=P.next().value;if(F===X)return P}};
Qwo=function(K,X){var F,P;return function(){for(var H=K.map(function(u){return u()}),f=0;f<H.length;f++)if(!F||H[f]!==F[f]){F=H;
P=X.apply(null,_.LZ(H));break}return P}};
S2J=function(K){var X,F;return!!(K.productId&&K.groupId&&((X=K.pricingOptions)==null?0:X.length)&&K.pricingOptions.every(function(P){return P.pricingOptionId})&&((F=K.pricingGroups)==null||!F.length||Array.isArray(K.pricingGroups)&&K.pricingGroups.every(function(P){return P.pricingGroupId&&P.pricingGroupAttributes&&P.pricingGroupAttributes.length>0})))};
oEw=function(K,X,F){return cT5(K,Qwo([X],function(P){return P.filter(S2J)}),F)};
Lqs=function(K,X){return X.length===0?[K]:[K.slice(0,X[0]),K.slice(X[0])].filter(function(F){return F.length>0})};
TE5=function(K){switch(K){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""}};
ATF=function(K,X,F,P){P=Object.assign({},P);_.LB(P,rTG,{selectedOptionId:K,primaryButtonOverride:F});_.Gb().dispatch(_.zl("flowStateEntity",X,P))};
_.yT5=function(){if(!jwG){var K=_.D(_.u_(new Map,void 0,"UJImUe"));jwG=K.next().value;wkt=K.next().value}return jwG};
WqW=function(K){if(K)return _.yT5()().get(K)};
_.dct=function(K,X){if(K&&X){var F=_.yT5();F().set(K,X);K=F();wkt(new Map(K))}};
_.eQG=function(K){return{onSubmit:function(){var X;(X=WqW(K()))==null||X.onSubmit()},
isValid:function(){var X=WqW(K());return X?X.isValid():!0},
isSubmitting:function(){var X,F;return!!((X=WqW(K()))==null?0:(F=X.isSubmitting)==null?0:F.call(X))}}};
RQk=function(K,X){return _.FF(K.entities,"contextNoteFeedEntityPayload",X)};
Ucw=function(K){K.style.height="auto";K.style.height=K.scrollHeight+"px"};
hQW=function(K){return[K.syncStep,K.asyncStep].filter(function(X){return X!==void 0})};
Gsk=function(K){var X,F,P;if(K=(X=K.structuredContextNoteFormSchema)==null?void 0:(F=X.fieldSchemas)==null?void 0:(P=F.noteBody)==null?void 0:P.validationSchema)for(X=_.D(hQW(K)),F=X.next();!F.done;F=X.next()){F=F.value.rules;if(!F)break;F=_.D(F);for(F=F.next();!F.done;F=F.next())return _.T(F.value,_.mc1)}};
vE8=function(K){if(K){K=_.D(hQW(K));for(var X=K.next();!X.done;X=K.next()){X=X.value.rules;if(!X)break;X=_.D(X);for(X=X.next();!X.done;X=X.next())return _.T(X.value,l4G)}}};
tOF=function(K){if(K){K=_.D(hQW(K));for(var X=K.next();!X.done;X=K.next()){X=X.value.rules;if(!X)break;X=_.D(X);for(X=X.next();!X.done;X=X.next())return _.T(X.value,a4G)}}};
$cW=function(K){K=/^https?:\/\//.test(K)?K:"http://"+K;try{var X=_.az(K)}catch(F){return!1}if(X.toString()!==K)return!1;K=X.JSC$8042_domain_.split(".");return K.length>1&&K.every(function(F){return!!F})};
OZG=function(K,X,F,P){var H;P=(H=P.structuredContextNoteData)==null?void 0:H.createCommentEndpoint;if(H=_.T(P,_.EsN))return H.commentText=_.GS(K),H.videoPositionMention=X,H.sources=F,P};
VO1=function(K){return K==null?void 0:K.stringValue};
EEF=function(K,X,F){K=K.map(function(P,H){return{listItemViewModel:{title:P.title,subtitle:P.subtitle,leadingImage:P.leadingImage,trailingImage:H===X?gEV:void 0,rendererContext:{commandContext:{onTap:P.onTap}}}}});
return Object.assign({},F&&{header:{panelHeaderViewModel:{title:F}}},{content:{listViewModel:{listItems:K}}})};
bZV=function(K,X){if(K&&X)switch(X){case "SELECTION_TYPE_BOOL":return K.boolValue;case "SELECTION_TYPE_INT":return K.intValue;case "SELECTION_TYPE_STRING":return K.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return K.privacyStatusValue}};
CKk=function(K){var X;K=(X=K.options)==null?void 0:X.findIndex(function(F){return F.isSelected});
return K===void 0?-1:K};
NE1=function(K,X,F){var P=function(){return K().label},H={},f=_.HO("ytDropdownViewModelLabel",(H.ytDropdownViewModelLabelError=X,H));
return _.Q(_.p,{cond:function(){return K().label&&!(F()===-1&&K().label&&!K().placeholderText)},
then:function(){return _.Q("div",{class:f},_.Q(_.Oy,{text:P}))}})};
iZW=function(K,X){var F={};F=_.HO("ytDropdownViewModelTitle",(F.ytDropdownViewModelTitlePlaceholder=function(){return X()===-1},F));
return _.Q("div",{class:F},_.Q(_.Oy,{text:function(){var P=K();var H=X();if(H===-1)P=P.placeholderText?P.placeholderText:P.label;else{var f,u;P=(f=P.options)==null?void 0:(u=f[H])==null?void 0:u.title}return P}}))};
xcJ=function(K,X){var F=function(){return K().hint};
return _.Q(_.ID,null,_.Q(_.p,{cond:function(){return F()&&!X()},
then:function(){return _.Q("div",{class:_.HO("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.Q(_.Oy,{text:F,className:"ytDropdownViewModelSupportText"}))}}),_.Q(_.p,{cond:X,
then:function(){return _.Q("div",{id:"dropdown-view-model-error",role:"alert",class:_.HO("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.Q(_.ZF,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.Q(_.Oy,{text:X,className:"ytDropdownViewModelSupportText"}))}}))};
I4v=function(K,X){var F=_.i9().resolve(_.UHT);_.AV(function(){var P=K().id;P&&F!=null&&F.dropdownMap.set(P,X)})};
KPV=function(K){K=_.T(K.scheduleButton,kso);K=_.T(K==null?void 0:K.primaryButton,_.nS);K=_.T(K==null?void 0:K.onTap,_.j9);var X,F,P=((F=_.T(K,_.PW))==null?void 0:F.commands)||[K];F=_.D(P);for(K=F.next();!K.done&&!(X=_.T(K.value,_.CaU));K=F.next());var H;X=(H=X)==null?void 0:H.createBroadcastRequest;if(!X)throw Error("Ej");return X};
H81=function(K,X,F){F=F===void 0?{}:F;var P,H;return _.q(function(f){if(P=Xfv(X))return f.return(P);(H=FPF(K,X,F))&&Pks(X,H);return f.return(H)})};
Pks=function(K,X){var F=sRk(K);F&&X.then(function(P){_.i9().resolve(_.Kf).put(F,new _.XM({innertubeResponse:P}))})};
Xfv=function(K){if(K=sRk(K)){var X=_.i9().resolve(_.Kf);if(X.has(K))return X.get(K).then(function(F){return F==null?void 0:_.Kk(F)})}return null};
sRk=function(K){var X=_.T(K.endpoint,_.vg);if(X!=null&&X.videoId)return X={videoId:X.videoId},_.S("web_imp_player_mute_params")&&(X.mutedAtStart=K.startPlaybackInMutedState),_.lX("inline_playback",X)};
FPF=function(K,X,F){K=_.Rx(K,X.endpoint,z98(X,F)).then(function(P){return P});
return Promise.resolve(K)};
z98=function(K,X){X=_.S("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!K.startPlaybackInMutedState},X):Object.assign({},{vis:5,autonav:"1"},X);var F;X={contentPlaybackContext:_.Qh(X,(F=_.T(K.endpoint.commandMetadata,_.g_))==null?void 0:F.url,window.location.href)};_.S("web_imp_player_mute_params")&&(X.overrideMutedAtStart=!K.startPlaybackInMutedState);return X};
qOo=function(K,X){var F=window.MutationObserver;F&&(Iq=new F(function(P,H){P=_.D(P);for(var f=P.next();!f.done;f=P.next()){f=f.value;var u;if(u=f.type==="childList"&&f.target)a:{u=K;f=fwG(f.target);u=fwG(u);for(var J=null,Z=0;Z<f.length;Z++)if(u.includes(f[Z])){if(Z===0){u=!1;break a}J=f[Z];break}J?(f=D4w(f,J),u=D4w(u,J),u=f<u):u=!1}if(u){X();H.disconnect();break}}}),(F=usv())&&Iq.observe(F,{childList:!0,
subtree:!0}))};
usv=function(){var K=document.getElementsByTagName("ytd-rich-grid-renderer");if(K.length>0)return K[0];K=document.getElementsByTagName("ytd-section-list-renderer");return K.length>0?K[0]:null};
fwG=function(K){for(var X=[];K;)X.push(K),K=K.parentElement;return X};
D4w=function(K,X){var F=Array.from(X.children);X=K.indexOf(X);return X>0?F.indexOf(K[X-1]):-1};
kP=function(K,X,F){F=F===void 0?{}:F;return _.uY(K,F,X)};
JEJ=function(K){switch(K){case "MUSIC":return!0;default:return!1}};
Z8d=function(K){return K==null?void 0:K.filter(function(X){return X.premiereTrailerBadgeRenderer})};
QR8=function(K){var X,F=K==null?void 0:(X=K.find(function(c){return c.thumbnailOverlayTimeStatusRenderer}))==null?void 0:X.thumbnailOverlayTimeStatusRenderer,P,H;
if((F==null?0:(P=F.icon)==null?0:P.iconType)&&JEJ(F==null?void 0:(H=F.icon)==null?void 0:H.iconType)){var f;return{icon:F==null?void 0:(f=F.icon)==null?void 0:f.iconType}}var u,J;var Z=(K=(u=K==null?void 0:(Z=K.find(function(c){return c.thumbnailBottomOverlayViewModel}))==null?void 0:Z.thumbnailBottomOverlayViewModel)==null?void 0:(J=u.badges)==null?void 0:J.find(function(c){var B,L;
return((B=_.T(c,YOW))==null?void 0:(L=B.inlinePlaybackBadgeData)==null?void 0:L.replicateAsTimestamp)===!0}))?_.T(K,YOW):void 0;
if(Z==null?0:Z.icon){var M,n;if((Z=(M=_.fud(Z==null?void 0:Z.icon))==null?void 0:(n=M.clientResource)==null?void 0:n.imageName)&&JEJ(Z))return{icon:Z}}return{}};
cE1=function(K,X){var F="",P="";switch(K){case -1:case 0:F=X?"VOLUME_OFF":"VOLUME_OFF_FILLED";P=MA8;break;case 1:F=X?"VOLUME_UP_OUTLINE":"VOLUME_UP";P=np5;break;default:_.zJ(K)}return{iconName:F,ariaLabel:P}};
TpJ=function(K,X){var F=pfs,P=_.D(_.u_(Bpt(new SO5(function(){},F,X)),void 0,"PAnyd")),H=P.next().value,f=P.next().value,u=new SO5(function(J){f(J)},F,X);
_.rs(function(){Promise.resolve().then(function(){var J,Z=(J=K())!=null?J:{};u.playerControlsData=Z;_.S("player_controls_skip_double_signal_old")&&(u.lastSeenPlayerApi=_.yP(Z.playerApi));_.S("player_controls_skip_double_signal_old")||(u.lastSeenPlayerApi=_.yP(Z.playerApi));opk(u)});
_.AZ(function(){LPF(u)})},"HikUP");
_.AZ(function(){LPF(u)});
return function(){return H()}};
rEv=function(K){return function(X){var F=K(),P={playerState:X};if(X===1){var H;(H=F.playerApi)==null||H.loadModule("captions")}if(X===0){var f;(f=F.playerApi)==null||f.unloadModule("captions")}(X!==-1||_.S("web_imp_controls_set_player_state_killswitch"))&&F.setState(P)}};
AEo=function(K){return function(X){K().setState({playbackRate:X})}};
jRF=function(K){return function(X){var F=K(),P=F.playerApi,H=P==null?void 0:P.getVideoData(),f=(H==null?void 0:H.isLive)||!1;H=H==null?void 0:H.video_id;f={videoDuration:bst(P||void 0),isLive:f,videoId:H};f.videoId!==F.videoId&&(f=Object.assign({},_.iqO(P),f));if(X==null?0:X.playertype)f.playerType=X.playertype;if(P){f.captionsAvailable=_.Wq(P);X=f;var u;H=(u=P.getStoryboardLevel(P.getNumberOfStoryboardLevels()-1))==null?void 0:u.intervalMs;X.storyboardInterval=H?H/1E3:void 0;f.captionsAvailable&&
(f.captionsEnabled=_.Kkw(P))}f.volumeMuted=!(P==null||!P.isMuted());F.setState(f)}};
wf5=function(K){return function(X){var F=K(),P=F.playerApi;if(P){var H=P.getPresentingPlayerType();X={playedTime:X||0,percentLoaded:P.getVideoLoadedFraction(),playerType:H};F.playerState===0&&(X.playedTime=F.videoDuration);F.isLive&&(H=P.getProgressState(H),X.playedTime-=H.seekableStart,X.videoDuration=bst(P));if(F.playerType===1)P=!1;else{var f;if((f=F.uxConfig)==null?0:f.showCuedOverlay){var u;P=!((u=F.playerApi)==null?0:u.getPlayerStateObject(F.playerType).isDomPaused)}else P=!0}P&&delete X.playedTime;
F.setState(X)}}};
yE5=function(K){return function(){var X=K(),F,P,H,f={volume:(H=(F=X.playerApi)==null?void 0:F.getVolume())!=null?H:0,volumeMuted:!((P=X.playerApi)==null||!P.isMuted())};X.setState(f)}};
WPs=function(K){return function(){var X=K(),F=X.playerApi;if(F){var P={captionsAvailable:_.Wq(F)};P.captionsAvailable&&(P.captionsEnabled=_.Kkw(F));X.setState(P)}}};
d48=function(K){return function(){var X=K();if(X.playerApi&&!(X.volumeMuted||X.controlsVisible&&X.isProbablyAScreenreaderUser)){X.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var F;(F=document.querySelector(".player-control-play-pause-icon"))==null||F.focus()}}};
e9t=function(K){return{appApi:Object.assign({},_.OqT(),{showCaptionsToggleToast:function(X){var F,P;(P=(F=K()).showCaptionsToggleToast)==null||P.call(F,X)},
openInMiniplayer:function(){var X,F;(F=(X=K()).openInMiniplayer)==null||F.call(X)}})}};
R9t=function(K,X){var F,P,H;return!!(K==null?0:(F=K.playerResponse)==null?0:(P=F.playerConfig)==null?0:(H=P.inlinePlaybackConfig)==null?0:H.showScrubbingControls)&&!(X==null?0:X.hideScrubbingControls)};
_.U4W=function(K){var X=!K.miniplayerIsActive;return[5,2,0].includes(K.miniplayerPlaybackState)||X};
h95={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};m4F=function(K,X){var F,P,H,f,u;_.q(function(J){if(!X.length)return J.return([]);F=[];P=_.D(X);for(H=P.next();!H.done;H=P.next())f=H.value,(u=K.resolveIcon(f))&&!K.iconCache[u.url]&&F.push(_.b2t(K,u).then(function(){}).catch(function(){}));
return J.return(Promise.all(F))})};
G88=function(K,X){var F=[];X=(new Set(X)).values();X=_.D(X);for(var P=X.next();!P.done;P=X.next()){P=P.value;for(var H=_.D(Object.values(h95)),f=H.next();!f.done;f=H.next())F.push({iconName:P,iconStyle:f.value})}m4F(K.iconManager,F)};
_.lwF=function(K,X,F){var P=F!=null?F:K.iconsToFetch;P!=null&&P.length?X!==void 0&&X>=0?_.cu(_.A9,function(){G88(K,P)},X):G88(K,P):Promise.resolve()};
pk8=function(K,X){X=new _.prP(new _.M24(X));_.Gt&&K.prototype&&(0,_.Gt)(X,K.prototype);return X};
BEJ=function(K){return K};
SO5=function(K,X,F){var P=this;this.renderFn=K;this.listeners=X;this.context=F;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var H;this.lastSeenPlayerApi=_.yP((H=this.playerControlsData)==null?void 0:H.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.iqO(),void 0);_.S("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){Bpt(P).setState({playerState:-1});P.resetRecentlyNavigatedJobId&&_.A9.cancelJob(P.resetRecentlyNavigatedJobId);
P.recentlyNavigated=!0;P.resetRecentlyNavigatedJobId=_.A9.addJob(function(){P.recentlyNavigated=!1},8,1E4)})};
SO5.prototype.setState=function(K){if(!_.S("mweb_player_skip_no_op_state_changes")||!CiJ(K,this.state))if(this.state=Object.assign({},this.state,K),!_.S("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)K=-1,_.S("player_controls_log_creation_killswitch")||NFk()||(K=(0,_.CG)()),_.Ac("pcu_s"),_.Ac("pcu_se"),_.Ac("pcu_rs"),this.renderFn(Bpt(this)),_.Ac("pcu_re"),isF(K),_.A9.addJob(function(){_.Ac("pcu_ap")},8)};
var Bpt=function(K){var X;var F=_.yP((X=K.playerControlsData)==null?void 0:X.playerApi);return Object.assign({},K.state,{setState:K.boundSetState,domMeasurements:{progressBarLineRect:K.progressBarLineRect},playerApi:F,appApi:K.context.appApi,playerContainer:K.context.playerContainer,playerControlContainer:K.context.playerControlContainer,uxConfig:K.context.uxConfig})},opk=function(K){K.listeners.forEach(function(X){K.eventListenerCleanupFunctions.push(X.register(function(){return Bpt(K)},function(){return K.getData()}))})},
LPF=function(K){K.eventListenerCleanupFunctions.forEach(function(X){X()});
K.eventListenerCleanupFunctions.length=0};
SO5.prototype.getData=function(){return this.playerControlsData};
var KH=new _.b("abuseReportFlowState");var vpG=new _.b("feedbackFormFlowState");var awv=new _.b("inputBoxViewModel");var tAs=new _.b("flowNextStepCommand");var $4o=new _.b("flowPrevStepCommand");var O88=new _.b("updateFlowCommand");_.VAv=new _.b("flowStepRenderer");_.mc1=new _.b("lengthValidationRule");var l4G=new _.b("regexValidationRule");var a4G=new _.b("selectedValidationRule");var gpV=new _.b("talkToRecsViewModel");var Ep8=new _.b("creatorGoalSetUpFlowDropdownItemViewModel");var b8J=new _.b("creatorGoalSetUpFlowDropdownViewModel");var YOW=new _.b("thumbnailBadgeViewModel");_.CkW=new _.b("radioButtonGroupViewModel");var kso=new _.b("panelFooterViewModel");var NpG=new _.b("ypcCancelRecurrenceCommand");var i8k=new _.b("cancellationFlowState");var rTG=new _.b("premiumPurchaseFlowState");var x4G=new _.b("surveyAnswerCardRenderer");var IwW=new _.b("showMoreButtonRenderer");var k8o;var K8V,X_v=function(){if(K8V!==void 0)return K8V;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;k8o===void 0&&(k8o=document.createElement("template"));var P=k8o;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return K8V=K};var Xu=function(){var K=_.G.apply(this,arguments)||this;K.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";K.goalDescription="";K.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";K.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";K.startButtonId="start-button";K.exampleButtonId="example-button";return K};
_.r(Xu,_.G);_.z=Xu.prototype;_.z.getGoalDropdownItems=function(){var K,X;return(X=_.T((K=this.data)==null?void 0:K.purchaseTargetDropdown,b8J))==null?void 0:X.dropdownItems};
_.z.getTimerDropdownItems=function(){var K,X;return(X=_.T((K=this.data)==null?void 0:K.timerDropdown,b8J))==null?void 0:X.dropdownItems};
_.z.getColorDropdownItems=function(){var K,X;return(X=_.T((K=this.data)==null?void 0:K.colorDropdown,b8J))==null?void 0:X.dropdownItems};
_.z.getDropdownItemText=function(K){var X;return(X=_.T(K,Ep8))==null?void 0:X.itemLabel};
_.z.getDropdownItemValue=function(K){K=_.T(K,Ep8);return(K==null?void 0:K.timeLimit)||(K==null?void 0:K.purchaseTarget)||(K==null?void 0:K.eligiblePurchaseType)};
_.z.updateFlowState=function(K){_.xr(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:K}])};
_.z.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.z.updateGoalValue=function(K){this.goal=K.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.z.onTextValueChanged=function(K){this.goalDescription=K.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.z.updateTimerValue=function(K){this.timer=K.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.z.updateTierValue=function(K){this.tier=K.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.z.getButtonViewModel=function(K){K=(K==null?void 0:K.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var X,F=_.T((X=this.data)==null?void 0:X.startGoalButton,_.nS);return Object.assign({},F,{state:K})};
_.Oi.Object.defineProperties(Xu,{template:{configurable:!0,enumerable:!0,get:function(){return X_v()}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Xu.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Xu.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],Xu.prototype,"goal",void 0);_.O([_.h(),_.g("design:type",Object)],Xu.prototype,"goalDescription",void 0);_.O([_.h(),_.g("design:type",Object)],Xu.prototype,"timer",void 0);_.O([_.h(),_.g("design:type",Object)],Xu.prototype,"tier",void 0);
_.O([_.h(),_.g("design:type",Object)],Xu.prototype,"startButtonId",void 0);_.O([_.h(),_.g("design:type",Object)],Xu.prototype,"exampleButtonId",void 0);Xu=_.O([_.Tb({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Xu);_.t(Xu,"yt-creator-goal-set-up-flow-view-model",function(){return X_v()},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var F8k;var PBv;var HJF;var Fu=function(){return _.G.apply(this,arguments)||this};
_.r(Fu,_.G);_.O([_.h(),_.g("design:type",Object)],Fu.prototype,"data",void 0);Fu=_.O([_.Tb({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],Fu);
_.t(Fu,"yt-survey-answer-card-renderer",function(){if(HJF===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;PBv===void 0&&(PBv=document.createElement("template"));var P=PBv;F.call(X,P.content.cloneNode(!0),K.content.firstChild);HJF=K}K=HJF;return K},{mode:2});var szv;var zjd;var P6=function(){return _.G.apply(this,arguments)||this};
_.r(P6,_.G);_.z=P6.prototype;_.z.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.z.selectedItemChanged=function(K){_.xr(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[K.feedbackToken||""]}])};
_.z.surveyAnswerCardRendererClicked=function(K){if(K.target&&_.T(K.model.item,x4G)){var X=K.target;K=_.T(K.model.item,x4G);K.onTapCommand?_.X0(X,[K.onTapCommand],X):this.data.onTapCommand&&_.X0(X,[this.data.onTapCommand],X);this.selectedItemChanged(K)}};
_.z.checkIsCancellationStyle=function(K){return K==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.z.updateSelectedItemFromBinding=function(K){this.selectedItem=K.detail.value};
P6.prototype.onSelectedItemChanged=P6.prototype.onSelectedItemChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],P6.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],P6.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],P6.prototype,"selectedItem",void 0);_.O([_.h({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.g("design:type",Boolean)],P6.prototype,"isCancellationStyle",void 0);
_.O([_.so("selectedItem"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],P6.prototype,"onSelectedItemChanged",null);P6=_.O([_.Tb({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],P6);
_.t(P6,"yt-survey-flow-step-renderer",function(){if(zjd===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;szv===void 0&&(szv=document.createElement("template"));var P=szv;F.call(X,P.content.cloneNode(!0),K.content.firstChild);zjd=K}K=zjd;return K},{mode:2});var H6=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return K};
_.r(H6,_.G);H6.prototype.handleSurveyFlowStepOptionChanged=function(K){this.ytdReduxBehavior.dispatch(_.iY({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:K}));_.xr(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:K}}])};
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],H6.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],H6.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],H6.prototype,"data",void 0);H6=_.O([_.v({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],H6);
_.t(H6,"ytd-survey-flow-step-renderer",function(){if(F8k!==void 0)return F8k;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return F8k=K},{mode:1});var xvk;xvk=_.Jf({avatarViewModel:_.BY,buttonViewModel:_.Af,subscribeButtonViewModel:_.S1,imageBannerViewModel:_.IUZ});_.fL8=_.f4(_.kpo);_.iy(_.kpo);var Dgs;var sS=function(){return _.G.apply(this,arguments)||this};
_.r(sS,_.G);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],sS.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],sS.prototype,"data",void 0);sS=_.O([_.v({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],sS);
_.t(sS,"ytd-channel-history-renderer",function(){if(Dgs!==void 0)return Dgs;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Dgs=K},{mode:1});var uAt;var z1=function(){return _.G.apply(this,arguments)||this};
_.r(z1,_.G);_.O([_.h(),_.g("design:type",Object)],z1.prototype,"data",void 0);z1=_.O([_.v({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],z1);
_.t(z1,"ytd-feature-enablement-info-renderer",function(){if(uAt!==void 0)return uAt;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return uAt=K},{mode:1});var qwt;var JH1;var fH=function(){var K=_.G.apply(this,arguments)||this;K.textBoxMaxLength=_.S("enable_tvod_campaign_code_integration")?15:12;return K};
_.r(fH,_.G);_.z=fH.prototype;_.z.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.z.onSubmit=function(){var K=this.data.serviceEndpoint,X=_.T(K,_.i6);X&&K&&(X.couponCode=this.userInput,_.i9().resolve(_.xU).resolveCommand(K,{form:{element:this.hostElement}}))};
_.z.validate=function(){var K=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=K&&!this.data.errorMessage;this.showErrorMessage=K&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.S("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.z.computeStyle=function(K){return K};
_.z.computeShowValidationBelowInput=function(K){return K!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.z.updateUserInputFromBinding=function(K){this.userInput=K.currentTarget.value};
_.z.updateShowErrorMessageFromBinding=function(K){this.showErrorMessage=K.detail.value};
_.Oi.Object.defineProperties(fH.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
fH.prototype.dataChanged=fH.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],fH.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],fH.prototype,"data",void 0);_.O([_.h(),_.g("design:type",String)],fH.prototype,"userInput",void 0);_.O([_.h(),_.g("design:type",Boolean)],fH.prototype,"disableApplyButton",void 0);_.O([_.h(),_.g("design:type",Boolean)],fH.prototype,"hideApplyButton",void 0);
_.O([_.h(),_.g("design:type",Boolean)],fH.prototype,"hideErrorMessage",void 0);_.O([_.h(),_.g("design:type",Boolean)],fH.prototype,"showTick",void 0);_.O([_.h(),_.g("design:type",Boolean)],fH.prototype,"showErrorMessage",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.g("design:type",String)],fH.prototype,"couponStyle",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.g("design:type",Boolean)],fH.prototype,"showValidationBelowInput",void 0);_.O([_.h(),_.g("design:type",Object)],fH.prototype,"textBoxMaxLength",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],fH.prototype,"dataChanged",null);
_.O([_.U("showTick","showErrorMessage","userInput"),_.g("design:type",String),_.g("design:paramtypes",[])],fH.prototype,"validationState",null);fH=_.O([_.v({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],fH);
_.t(fH,"ytd-ypc-coupon-renderer",function(){if(JH1!==void 0)return JH1;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return JH1=K},{mode:1});var DJ=function(){return _.G.apply(this,arguments)||this};
_.r(DJ,_.G);DJ.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"}}}};
DJ.prototype.computeStyle=function(K){return K};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],DJ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],DJ.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.g("design:type",String)],DJ.prototype,"buttonStyle",void 0);DJ=_.O([_.v({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],DJ);
_.t(DJ,"ytd-flow-bottom-bar-renderer",function(){if(qwt!==void 0)return qwt;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return qwt=K},{mode:1});var ZJo;var Ywo;var Qzd;var up=function(){return _.G.apply(this,arguments)||this};
_.r(up,_.G);up.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
up.prototype.focus=function(K){this.title&&_.OM(this.title,K)};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],up.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],up.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],up.prototype,"data",void 0);_.O([_.fa("#title"),_.g("design:type",HTMLElement)],up.prototype,"title",void 0);up=_.O([_.v({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],up);
_.t(up,"ytd-flow-top-bar-renderer",function(){if(Qzd!==void 0)return Qzd;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return Qzd=K},{mode:1});var MM1;var nLw;var cHG;var qJ=function(){return _.G.apply(this,arguments)||this};
_.r(qJ,_.G);qJ.prototype.freeTextValueChanged=function(){_.xr(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
qJ.prototype.updateFreeTextValueFromBinding=function(K){this.freeTextValue=K.detail.value};
_.Oi.Object.defineProperties(qJ.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var K,X,F=(X=(K=this.data)==null?void 0:K.responseMaxLength)!=null?X:500,P;return((P=this.freeTextValue)!=null?P:"").length>=F?"maxed-out":""}}});
qJ.prototype.freeTextValueChanged=qJ.prototype.freeTextValueChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],qJ.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],qJ.prototype,"data",void 0);_.O([_.h(),_.g("design:type",String)],qJ.prototype,"freeTextValue",void 0);_.O([_.fa("#user-input"),_.g("design:type",HTMLTextAreaElement)],qJ.prototype,"input",void 0);
_.O([_.U("freeTextValue"),_.g("design:type",Object),_.g("design:paramtypes",[])],qJ.prototype,"characterLimitClass",null);_.O([_.so("freeTextValue"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],qJ.prototype,"freeTextValueChanged",null);qJ=_.O([_.Tb({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],qJ);
_.t(qJ,"yt-free-text-input-flow-step-renderer",function(){if(cHG===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;nLw===void 0&&(nLw=document.createElement("template"));var P=nLw;F.call(X,P.content.cloneNode(!0),K.content.firstChild);cHG=K}K=cHG;return K},{mode:2});var J5=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return K};
_.r(J5,_.G);J5.prototype.handleFreeTextFlowStepInputChanged=function(K){_.xr(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:K}}])};
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],J5.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],J5.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],J5.prototype,"data",void 0);J5=_.O([_.v({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],J5);
_.t(J5,"ytd-free-text-input-flow-step-renderer",function(){if(MM1!==void 0)return MM1;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return MM1=K},{mode:1});var p_1;var B0G;var ZJ=function(){return _.G.apply(this,arguments)||this};
_.r(ZJ,_.G);_.O([_.h(),_.g("design:type",Object)],ZJ.prototype,"data",void 0);ZJ=_.O([_.v({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],ZJ);
_.t(ZJ,"ytd-metadata-line-renderer",function(){if(B0G!==void 0)return B0G;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return B0G=K},{mode:1});var Yn=function(){return _.G.apply(this,arguments)||this};
_.r(Yn,_.G);Yn.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Yn.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Yn.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Yn.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Yn.prototype,"isMasthead",void 0);Yn=_.O([_.v({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],Yn);
_.t(Yn,"ytd-media-product-renderer",function(){if(p_1!==void 0)return p_1;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return p_1=K},{mode:1});var Sw8;var Qv=function(){return _.G.apply(this,arguments)||this};
_.r(Qv,_.G);Qv.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
Qv.prototype.onBillboardImageLoaded=function(){_.iX(this.hostElement,"yt-refit")};
Qv.prototype.onBillboardImageLoaded=Qv.prototype.onBillboardImageLoaded;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Qv.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Qv.prototype,"data",void 0);_.O([_.fa("#billboardImage"),_.g("design:type",Object)],Qv.prototype,"billboardImage",void 0);_.O([_.Hc("yt-img-shadow-loaded"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Qv.prototype,"onBillboardImageLoaded",null);
Qv=_.O([_.v({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],Qv);
_.t(Qv,"ytd-billboard-masthead-renderer",function(){if(Sw8!==void 0)return Sw8;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Sw8=K},{mode:1});var oLs;var MJ=function(){var K=_.G.apply(this,arguments)||this;K.smallSize=!1;return K};
_.r(MJ,_.G);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],MJ.prototype,"ytComponentBehaviorType",void 0);_.O([_.h(),_.g("design:type",Object)],MJ.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],MJ.prototype,"smallSize",void 0);MJ=_.O([_.v({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],MJ);
_.t(MJ,"ytd-bullet-formatted-string",function(){if(oLs!==void 0)return oLs;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return oLs=K},{mode:1});var L85;var nH=function(){return _.G.apply(this,arguments)||this};
_.r(nH,_.G);nH.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],nH.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],nH.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],nH.prototype,"data",void 0);nH=_.O([_.v({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],nH);
_.t(nH,"ytd-offer-detail-renderer",function(){if(L85!==void 0)return L85;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return L85=K},{mode:1});var T0k;var c6=function(){return _.G.apply(this,arguments)||this};
_.r(c6,_.G);c6.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"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],c6.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],c6.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],c6.prototype,"data",void 0);c6=_.O([_.v({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],c6);
_.t(c6,"ytd-offer-detail-step-renderer",function(){if(T0k!==void 0)return T0k;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return T0k=K},{mode:1});var rHw;var pH=function(){var K=_.G.apply(this,arguments)||this;K.isInOfferModule=!1;return K};
_.r(pH,_.G);_.z=pH.prototype;_.z.computeHasEndpoint=function(){var K;return!((K=this.data)==null||!K.onClickCommand)};
_.z.dataChanged=function(){var K;if((K=this.data)==null?0:K.onClickCommand)this.hostElement.addEventListener("click",this.handleClickEvent),this.hostElement.addEventListener("keydown",this.onContentKeyDown),this.hostElement.addEventListener("keyup",this.onContentKeyUp),this.hostElement.setAttribute("tabindex","0"),this.hostElement.setAttribute("role","link")};
_.z.detached=function(){var K;if((K=this.data)==null?0:K.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.z.handleClickEvent=function(){var K;if((K=this.data)==null?0:K.onClickCommand){var X;this.componentBehavior.resolveCommand((X=this.data)==null?void 0:X.onClickCommand)}};
_.z.onContentKeyDown=function(K){K.key==="Enter"?this.handleClickEvent(K):K.key===" "&&K.preventDefault()};
_.z.onContentKeyUp=function(K){K.key===" "&&this.handleClickEvent(K)};
pH.prototype.dataChanged=pH.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],pH.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],pH.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],pH.prototype,"data",void 0);_.O([_.h({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],pH.prototype,"hasEndpoint",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],pH.prototype,"isInOfferModule",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],pH.prototype,"dataChanged",null);pH=_.O([_.v({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],pH);
_.t(pH,"ytd-channel-masthead-renderer",function(){if(rHw!==void 0)return rHw;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return rHw=K},{mode:1});var AHv;var B6=function(){var K=_.G.apply(this,arguments)||this;K.thumbnailObjectFit="CONTAIN";K.thumbnailObjectPosition="LEFT";K.isExpanded=!1;return K};
_.r(B6,_.G);_.z=B6.prototype;_.z.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.z.dataChanged=function(){this.resetStates()};
_.z.computeisTapOnOfferInfoContainerEnabled=function(){var K;return((K=this.data)==null?void 0:K.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.z.onExpandBtnClick=function(){var K,X=_.T((K=this.data)==null?void 0:K.showMoreButtonRenderer,IwW);X&&_.FT(_.uH(),X.trackingParams);this.isExpanded=!this.isExpanded};
_.z.onOfferInfoClick=function(K){this.isTapOnOfferInfoContainerEnabled&&(_.lC(_.lN(K)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.vO(_.lN(K)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.z.onBottomBarClick=function(){this.executeTapCommand()};
_.z.executeTapCommand=function(){var K,X=(K=this.data)==null?void 0:K.tapCommand;X&&this.ytComponentBehavior.resolveCommand(X)};
_.z.resetStates=function(){this.isExpanded=!1};
_.Oi.Object.defineProperties(B6.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var K=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),X,F,P;return((X=this.data)==null?void 0:X.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&K&&!!((F=this.data)==null?0:(P=F.benefits)==null?0:P.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return((X=_.T((K=this.data)==null?void 0:K.showMoreButtonRenderer,IwW))==null?void 0:X.showMoreButtonTitle)||((F=this.data)==null?void 0:F.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return((X=_.T((K=this.data)==null?void 0:K.showMoreButtonRenderer,IwW))==null?void 0:X.showLessButtonTitle)||((F=this.data)==null?void 0:F.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var K;return(K=this.showLessButtonTitle)!=null?K:""}var X;return(X=this.showMoreButtonTitle)!=null?X:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return((K=this.data)==null?void 0:K.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((X=this.data)==null?0:X.footerTitle)||((F=this.data)==null?0:F.footerSubtitle))}}});
B6.prototype.dataChanged=B6.prototype.dataChanged;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],B6.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],B6.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],B6.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",String)],B6.prototype,"thumbnailObjectFit",void 0);
_.O([_.h(),_.g("design:type",String)],B6.prototype,"thumbnailObjectPosition",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.g("design:type",Boolean)],B6.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.O([_.h(),_.g("design:type",Object)],B6.prototype,"isExpanded",void 0);_.O([_.h(),_.g("design:type",Object)],B6.prototype,"data",void 0);_.O([_.h({computed:"computeIcon_(data.footerIcon)"}),_.g("design:type",String)],B6.prototype,"icon",void 0);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],B6.prototype,"dataChanged",null);_.O([_.U("data.thumbnail"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],B6.prototype,"hasThumbnail",null);_.O([_.U("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],B6.prototype,"enableExpandButton",null);
_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],B6.prototype,"enableOfferContentIcon",null);_.O([_.U("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.g("design:type",Object),_.g("design:paramtypes",[])],B6.prototype,"showMoreButtonTitle",null);_.O([_.U("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.g("design:type",Object),_.g("design:paramtypes",[])],B6.prototype,"showLessButtonTitle",null);
_.O([_.U("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.g("design:type",String),_.g("design:paramtypes",[])],B6.prototype,"expandedBtnText",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],B6.prototype,"enableBottomBar",null);B6=_.O([_.v({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],B6);
_.t(B6,"ytd-offer-card-renderer",function(){if(AHv!==void 0)return AHv;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return AHv=K},{mode:1});var jzF;var Sl=function(){return _.G.apply(this,arguments)||this};
_.r(Sl,_.G);Sl.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"}}}};
Sl.prototype.onClick=function(K){if(!_.lC(K.composedPath()||[],this.hostElement,["A".toString()])){var X,F;if((K=(F=_.T((X=this.data)==null?void 0:X.actionButton,_.jg))==null?void 0:F.command)&&!this.ytComponentBehavior.resolveCommand(K)){var P;(P=_.uH())==null||P.clickCommand(K);_.i9().resolve(_.xU).resolveCommand(K,{form:{element:this.hostElement}})}}};
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Sl.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Sl.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Sl.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Sl.prototype,"data",void 0);Sl=_.O([_.v({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],Sl);
_.t(Sl,"ytd-offer-content-renderer",function(){if(jzF!==void 0)return jzF;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return jzF=K},{mode:1});var w_8;var op=function(){return _.G.apply(this,arguments)||this};
_.r(op,_.G);op.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.Oi.Object.defineProperties(op.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var K,X;return!((K=this.data)==null||!K.title)||!((X=this.data)==null||!X.description)}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],op.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],op.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],op.prototype,"data",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],op.prototype,"hasHeaderData",null);op=_.O([_.v({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],op);
_.t(op,"ytd-offer-section-renderer",function(){if(w_8!==void 0)return w_8;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return w_8=K},{mode:1});var yH1;var LH=function(){return _.G.apply(this,arguments)||this};
_.r(LH,_.G);
LH.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"}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],LH.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],LH.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],LH.prototype,"data",void 0);LH=_.O([_.v({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],LH);
_.t(LH,"ytd-offer-selection-step-renderer",function(){if(yH1!==void 0)return yH1;var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return yH1=K},{mode:1});var W81;var T1=function(){return _.G.apply(this,arguments)||this};
_.r(T1,_.G);T1.prototype.computeStyle=function(K){return K};
T1.prototype.computeImageWidth=function(K){return K==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.O([_.h({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.g("design:type",String)],T1.prototype,"containerStyle",void 0);_.O([_.h({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.g("design:type",String)],T1.prototype,"imageWidth",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],T1.prototype,"data",void 0);
T1=_.O([_.v({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],T1);
_.t(T1,"ytd-confirmation-masthead-renderer",function(){if(W81!==void 0)return W81;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return W81=K},{mode:1});var dgV;var rh=function(){return _.G.apply(this,arguments)||this};
_.r(rh,_.G);rh.prototype.computeStyle=function(K){return K};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],rh.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],rh.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.g("design:type",String)],rh.prototype,"containerStyle",void 0);rh=_.O([_.v({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],rh);
_.t(rh,"ytd-purchase-complete-detail-renderer",function(){if(dgV!==void 0)return dgV;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return dgV=K},{mode:1});var ejV;var A5=function(){var K=_.G.apply(this,arguments)||this;K.scriptsAppended=!1;return K};
_.r(A5,_.G);A5.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"}}}};
A5.prototype.onDataChanged=function(){var K=this.get("data.gtmId");K&&(_.nE(K,_.e8("GL","")),this.setupConversionTracking())};
A5.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var K=document.createElement("noscript");K.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(K);this.scriptsAppended=!0}};
A5.prototype.onDataChanged=A5.prototype.onDataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],A5.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],A5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],A5.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],A5.prototype,"scriptsAppended",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],A5.prototype,"onDataChanged",null);A5=_.O([_.v({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],A5);
_.t(A5,"ytd-purchase-complete-step-renderer",function(){if(ejV!==void 0)return ejV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return ejV=K},{mode:1});var Rjk;var jl=function(){var K=_.G.apply(this,arguments)||this;K.darkerDarkTheme=_.S("web_darker_dark_theme");return K};
_.r(jl,_.G);jl.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],jl.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],jl.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],jl.prototype,"darkerDarkTheme",void 0);jl=_.O([_.v({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],jl);
_.t(jl,"ytd-ypc-transaction-error-message-renderer",function(){if(Rjk!==void 0)return Rjk;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return Rjk=K},{mode:1});var Ug5;var hjt;var wh=function(){var K=_.G.apply(this,arguments)||this;K.handlePhoneVerificationSuccess=function(X){if(K.isValidPhoneVerificationCompletionMessageEvent(X)){var F;((F=K.data)==null?0:F.nextStepCommand)&&K.ytComponentBehavior.resolveCommand(K.data.nextStepCommand)}};
return K};
_.r(wh,_.G);wh.prototype.isValidPhoneVerificationCompletionMessageEvent=function(K){if(K.data!=="yt-phone-verification-complete")return!1;K=_.g2(K.origin);return K!==null&&K.includes("youtube.com")};
wh.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
wh.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],wh.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],wh.prototype,"data",void 0);wh=_.O([_.Tb({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],wh);
_.t(wh,"yt-feature-enablement-soft-entry-renderer",function(){if(hjt===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;Ug5===void 0&&(Ug5=document.createElement("template"));var P=Ug5;F.call(X,P.content.cloneNode(!0),K.content.firstChild);hjt=K}K=hjt;return K},{mode:1});var mg8;var G3s;var lL8;var vLv;var yv=function(){return _.G.apply(this,arguments)||this};
_.r(yv,_.G);_.O([_.h(),_.g("design:type",Object)],yv.prototype,"data",void 0);yv=_.O([_.Tb({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],yv);
_.t(yv,"yt-benefits-item-renderer",function(){if(vLv===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;lL8===void 0&&(lL8=document.createElement("template"));var P=lL8;F.call(X,P.content.cloneNode(!0),K.content.firstChild);vLv=K}K=vLv;return K},{mode:2});var aLv;var tM8;var W6=function(){return _.G.apply(this,arguments)||this};
_.r(W6,_.G);W6.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
W6.prototype.computeisWithoutPadding=function(){var K;return((K=this.data)==null?void 0:K.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],W6.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],W6.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.g("design:type",Boolean)],W6.prototype,"isWithoutPadding",void 0);W6=_.O([_.Tb({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],W6);
_.t(W6,"yt-benefits-section-renderer",function(){if(tM8===void 0){var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;aLv===void 0&&(aLv=document.createElement("template"));var P=aLv;F.call(X,P.content.cloneNode(!0),K.content.firstChild);tM8=K}K=tM8;return K},{mode:2});var dh=function(){return _.G.apply(this,arguments)||this};
_.r(dh,_.G);dh.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
dh.prototype.computeisUsingLargeWidth=function(){var K;return((K=this.data)==null?void 0:K.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],dh.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],dh.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.g("design:type",Boolean)],dh.prototype,"isUsingLargeWidth",void 0);dh=_.O([_.Tb({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],dh);
_.t(dh,"yt-benefits-flow-step-renderer",function(){if(G3s===void 0){var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;mg8===void 0&&(mg8=document.createElement("template"));var P=mg8;F.call(X,P.content.cloneNode(!0),K.content.firstChild);G3s=K}K=G3s;return K},{mode:2});var $gs;var OJ5;var el=function(){return _.G.apply(this,arguments)||this};
_.r(el,_.G);el.prototype.checkIsUsingLargeWidth=function(){var K;return((K=this.data)==null?void 0:K.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.O([_.h(),_.g("design:type",Object)],el.prototype,"data",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],el.prototype,"ytRendererBehavior",void 0);_.O([_.h({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.g("design:type",Boolean)],el.prototype,"isUsingLargeWidth",void 0);el=_.O([_.Tb({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],el);
_.t(el,"yt-confirmation-flow-step-renderer",function(){if(OJ5===void 0){var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;$gs===void 0&&($gs=document.createElement("template"));var P=$gs;F.call(X,P.content.cloneNode(!0),K.content.firstChild);OJ5=K}K=OJ5;return K},{mode:2});var VMW;var gLF;var Rp=function(){return _.G.apply(this,arguments)||this};
_.r(Rp,_.G);_.O([_.h(),_.g("design:type",Object)],Rp.prototype,"data",void 0);Rp=_.O([_.Tb({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],Rp);
_.t(Rp,"yt-info-flow-step-renderer",function(){if(gLF===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;VMW===void 0&&(VMW=document.createElement("template"));var P=VMW;F.call(X,P.content.cloneNode(!0),K.content.firstChild);gLF=K}K=gLF;return K},{mode:2});var EL8;var bJG;var US=function(){return _.G.apply(this,arguments)||this};
_.r(US,_.G);_.O([_.h(),_.g("design:type",Object)],US.prototype,"data",void 0);US=_.O([_.Tb({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],US);
_.t(US,"yt-info-list-flow-step-renderer",function(){if(bJG===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;EL8===void 0&&(EL8=document.createElement("template"));var P=EL8;F.call(X,P.content.cloneNode(!0),K.content.firstChild);bJG=K}K=bJG;return K},{mode:2});var CBv=_.$c(function(K){var X=K.data;return _.Q("styled-text-view-model",{class:_.HO("ytStyledTextViewModelHost",function(){return ZZ1(X().fontAttributes)},function(){return JTW(X().color)})},_.Q(_.Oy,{text:function(){return X().text},
ariaLabel:function(){var F,P,H;return(H=(F=X().accessibility)==null?void 0:(P=F.accessibilityData)==null?void 0:P.label)!=null?H:""}}))},"af");
CBv.idomCompat=!0;var N0v=_.$c(function(K){var X=function(){var H,f,u,J;return(J=(u=(H=K.alt)==null?void 0:H.call(K))!=null?u:(f=K.data().accessibilityData)==null?void 0:f.label)!=null?J:""},F=function(){return K.data().imageWidth},P=function(){return K.data().imageHeight};
return _.Q("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.Q(_.p,{cond:function(){var H=K.data();if(H){var f,u,J;var Z=((f=_.i9().resolve(_.Nu(_.m$)))==null?0:f())?(u=H.imageDark)!=null?u:H.imageLight:(J=H.imageLight)!=null?J:H.imageDark}else Z=void 0;return Z},
then:function(H){return _.Q(_.av,Object.assign({},K,{data:H,alt:X,targetWidth:F,targetHeight:P,preserveHeight:!0,preserveWidth:!0}))}}))},"bf");
N0v.idomCompat=!0;var h5=_.$c(function(K){var X=K.data;K=_.ag(function(){return X().slots},[]);
var F=_.ag(function(){return X().layoutProperties},{}),P=_.i9().resolve(_.lH);
return _.Q("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:zQv(F,P)},_.Q(_.cd,{each:K,keyBy:"INDEX"},function(H){return _.Q("div",{class:"ytContainerLayoutViewModelSlot",style:zQv(function(){return H().layoutProperties},P)},_.Q(_.Md,{data:function(){return H().contents}},{containerLayoutViewModel:h5,
badgeViewModel:_.EG,buttonViewModel:_.Af,styledTextViewModel:CBv,contentPreviewImageViewModel:function(f){return _.Q(_.bJ,{data:f.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(f){return _.Q(N0v,{data:f.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"cf");
h5.idomCompat=!0;var iJs=_.$c(function(K){var X=K.data;var F=K.stateFns;var P=function(){var M=X(),n=M.productId;return!(!M.clearGroupId&&!n)},H=function(){var M=X(),n=M.clearGroupId;
return(M=M.productId)?F().isProductSelected(M):n?F().getSelectedProductByGroupId(n)==null:!1},f=function(){var M=X(),n=M.clearGroupId;
if(M=M.productId)F().onProductSelected(M);else if(n)F().onClearGroupSelected(n)},u=function(){var M=X(),n=M.clearGroupId;
if(M=M.productId){var c;return"group:"+(((c=F().getProductById(M))==null?void 0:c.groupId)||"")}return n?"group:"+n:""},J=_.ag(function(){return X().header},[]),Z=_.ag(function(){return X().body},[]);
return _.Q("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.Q(_.p,{cond:function(){return J().length>0||P()},
then:function(){return _.Q("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.Q("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.Q(_.Md,{data:J},{containerLayoutViewModel:function(M){return _.Q("div",{class:"ytPdpCardSectionViewModelContentItem"},_.Q(h5,{data:M.data}))},
styledTextViewModel:function(M){return _.Q("div",{class:"ytPdpCardSectionViewModelContentItem"},_.Q(CBv,{data:M.data}))}})),_.Q(_.p,{cond:P,
then:function(){return _.Q("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.Q(_.LK,{checked:H,name:u,onChange:f}))}}))}}),_.Q(_.p,{cond:function(){return Z().length>0},
then:function(){return _.Q("div",null,_.Q(_.Md,{data:Z},{containerLayoutViewModel:function(M){return _.Q("div",{class:"ytPdpCardSectionViewModelContentItem"},_.Q(h5,{data:M.data}))}}))}}))},"df");
iJs.idomCompat=!0;var xgF=_.$c(function(K){var X=K.data;var F=K.stateFns;return _.Q("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.Q(_.p,{cond:function(){return X().banner},
then:function(P){return _.Q("div",{class:"ytPdpCardViewModelBanner"},_.Q(_.Oy,{text:P}))}}),_.Q(_.Md,{data:function(){return X().sections}},{pdpCardSectionViewModel:function(P){P=P.data;
var H={};return _.Q("div",{class:_.HO("ytPdpCardViewModelSectionContainer",(H.ytPdpCardViewModelShowDividers=function(){return X().showDividers},H))},_.Q(iJs,{data:P,
stateFns:F}))}}))},"ef");
xgF.idomCompat=!0;var ILo=_.$c(function(K){var X=K.data;var F=K.isOverlay;K={};return _.Q("pdp-masthead-view-model",{class:_.HO("ytPdpMastheadViewModelHost",(K.ytPdpMastheadViewModelIsOverlay=F,K))},_.Q(_.Md,{data:function(){return X().image}},{contentPreviewImageViewModel:_.bJ,
themedImageViewModel:function(P){return _.Q(N0v,{data:P.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.Q(_.p,{cond:function(){return X().title},
then:function(P){return _.Q("h1",{class:"ytPdpMastheadViewModelHeading"},_.Q(_.Oy,{text:P,isOverlay:F}))}}),_.Q(_.cd,{each:function(){var P;
return(P=X().finePrint)!=null?P:[]}},function(P){return _.Q("div",{class:"ytPdpMastheadViewModelFinePrint"},_.Q(_.Oy,{text:P,
isOverlay:F}))}))},"ff");
ILo.idomCompat=!0;var k31=_.$c(function(K){var X=K.data;var F=K.stateFns;return _.Q("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.Q(_.cd,{each:function(){var P=F().getSelectedPricingOptions().map(function(f){return f.pricingOptionId}),H=F().getSelectedProductByGroupId(X().groupId);
return H?H.pricingOptions.map(function(f){return{pricingOption:f,isSelected:P.includes(f.pricingOptionId)}}):(_.wc(Error("Dj`"+X().groupId)),[])},
keyBy:"INDEX"},function(P){return _.Q("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.Q("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.Q(_.Md,{data:function(){return P().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:h5})),_.Q("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.Q(_.LK,{checked:function(){return P().isSelected},
onClick:function(){F().onPricingOptionSelected(P().pricingOption.pricingOptionId);var H=P().pricingOption.onSelectPricingOption;if(H=_.w$(H)){var f;(f=_.i9().resolve(_.xU))==null||f.resolveCommand(H)}}})))}))},"gf");
k31.idomCompat=!0;var Kh5=_.$c(function(K){var X=K.data;var F=K.stateFns;return _.Q("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.Q(_.Md,{data:function(){var P,H;return(H=(P=F().getSelectedPricingOptions()[0])==null?void 0:P.primaryButton)!=null?H:X().emptyStateButton}},{buttonViewModel:_.Af}))},"hf");
Kh5.idomCompat=!0;var XMw=_.$c(function(K){var X=K.stateFns;return _.Q("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.Q(_.Md,{data:function(){return X().getSelectedPricingOptions().flatMap(function(F){return F.summaryLines}).filter(function(F){return!!F})}},{containerLayoutViewModel:function(F){return _.Q("div",{class:"ytPdpSummaryViewModelLineItem"},_.Q(h5,{data:F.data}))}}))},"jf");
XMw.idomCompat=!0;var Fho=_.$c(function(K){function X(R){var l=u();_.vc(_.Bp("pdpStateEntity",l,{key:l,selectedPricingOptions:R}))}
var F=K.data;var P=K.internalScrolling;var H=K.stateFnsForTesting;var f=_.ag(function(){return F().allProducts},[]),u=_.ag(function(){return F().pdpStateEntityKey},""),J=_.sy(Y2v,u),Z=_.Qs(function(){_.ws(!0);
var R;return(R=H==null?void 0:H())!=null?R:oEw(J,f,X)},void 0,"POBqwe"),M=_.ag(function(){return F().body},[]),n=_.ag(function(){return F().columnBreakHints},[]),c=function(){return F().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},B=function(){return c()||F().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},L=_.Qs(function(){var R=_.$a(F().background),l;
if(R==null?0:(l=R.sources)==null?0:l.length){var a=a===void 0?!0:a;R=_.qtn(void 0,R.sources,void 0,a,a?1E3:void 0,a?void 0:1E3)}else R=null;return R},void 0,"BkCmEd");
K=_.Je({"--pdp-view-model-background":function(){return L()?"url("+L()+")":void 0}});
var A={};P=_.HO("ytPdpViewModelHost",(A.ytPdpViewModelHasBackground=function(){return B()||!!L()},A.ytPdpViewModelHasDarkBackground=B,A.ytPdpViewModelHasScrim=c,A.ytPdpViewModelInternalScrolling=_.ag(P,!1),A));
var d=function(R){var l={};return _.HO("ytPdpViewModelItem",(l.ytPdpViewModelFullBleed=function(){return _.aNy(R())==="dividerViewModel"||_.aNy(R())==="sectionHeaderViewModel"},l.ytPdpViewModelNoVerticalPadding=function(){return _.aNy(R())==="sectionHeaderViewModel"},l))};
_.AV(function(){var R=F().onStartCommand;if(R&&(R=_.w$(R))){var l;(l=_.i9().resolve(_.xU))==null||l.resolveCommand(R)}});
return _.Q("pdp-view-model",{class:P,style:K},_.Q("div",{class:"ytPdpViewModelColumnContainer"},_.Q(_.cd,{each:function(){return Lqs(M(),n())},
keyBy:"INDEX"},function(R){return _.Q("div",{class:"ytPdpViewModelColumn"},_.Q(_.Md,{data:R},{containerLayoutViewModel:function(l,a){l=l.data;return _.Q("div",{class:d(function(){return R()[a()]})},_.Q(h5,{data:l}))},
dividerViewModel:function(l,a){l=l.data;return _.Q("div",{class:d(function(){return R()[a()]})},_.Q(_.soE,{data:l}))},
pdpCardViewModel:function(l,a){l=l.data;return _.Q("div",{class:d(function(){return R()[a()]})},_.Q(xgF,{data:l,
stateFns:Z}))},
pdpMastheadViewModel:function(l,a){l=l.data;return _.Q("div",{class:d(function(){return R()[a()]})},_.Q(ILo,{data:l,
isOverlay:B}))},
pdpPricingOptionSelectorViewModel:function(l,a){l=l.data;return _.Q("div",{class:d(function(){return R()[a()]})},_.Q(k31,{data:l,
stateFns:Z}))},
pdpPrimaryButtonViewModel:function(l,a){l=l.data;return _.Q("div",{class:d(function(){return R()[a()]})},_.Q(Kh5,{data:l,
stateFns:Z}))},
pdpSummaryViewModel:function(l,a){l=l.data;return _.Q("div",{class:d(function(){return R()[a()]})},_.Q(XMw,{data:l,
stateFns:Z}))},
sectionHeaderViewModel:function(l,a){l=l.data;return _.Q("div",{class:d(function(){return R()[a()]})},_.Q(_.XZ,{data:l}))}}))})))},"kf");
Fho.idomCompat=!0;_.EP(Fho,"pdp-view-model",{props:{data:_.vU,stateFnsForTesting:_.g$,internalScrolling:_.g$}});var P_w=_.$c(function(K){var X=K.data;var F=K.className;var P=_.sy(_.bf,function(){return X().flowStateEntityKey});
return _.Q("ytm-premium-purchase-button-renderer",{class:_.HO("yt-premium-purchase-button-renderer",F)},_.Q(_.Md,{data:function(){var H;return(H=_.T(P(),rTG))==null?void 0:H.primaryButtonOverride}},{buttonRenderer:function(H){return _.Q(_.mr,{data:H.data,
className:F})},
buttonViewModel:function(H){return _.Q(_.Af,{data:H.data,className:F})}}))},"lf");
P_w.idomCompat=!0;var Hvd=_.$c(function(K){var X=K.data;var F=function(){return TE5(X().style)},P=_.HO("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",F),H=_.HO("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",F);
return _.Q("yt-flow-bottom-bar-renderer",{class:_.HO("yt-flow-bottom-bar-renderer",K.className,F)},_.Q(_.Md,{data:function(){return X().secondaryButton}},{buttonRenderer:function(f){return _.Q(_.mr,{data:f.data,
className:H})},
buttonViewModel:function(f){return _.Q(_.Af,{data:f.data,className:H})},
premiumPurchaseButtonRenderer:function(f){return _.Q(P_w,{data:f.data,className:H})}}),_.Q(_.Md,{data:function(){return X().primaryButton}},{buttonRenderer:function(f){return _.Q(_.mr,{data:f.data,
className:P})},
buttonViewModel:function(f){return _.Q(_.Af,{data:f.data,className:P})},
premiumPurchaseButtonRenderer:function(f){return _.Q(P_w,{data:f.data,className:P})}}))},"mf");
Hvd.idomCompat=!0;_.EP(Hvd,"yt-flow-bottom-bar-renderer",{props:{data:_.vU,className:_.vU}});var sDw=_.$c(function(K){return _.Q("yt-offer-summary-renderer",{class:_.HO(K.className,"ytOfferSummaryRendererHost")},_.Q("div",{class:"ytOfferSummaryRendererTextContainer"},_.Q("div",{class:"ytOfferSummaryRendererEyebrowText"},_.Q(_.Oy,{text:function(){return K.data().eyebrowText}})),_.Q("div",{class:"ytOfferSummaryRendererTitle"},_.Q(_.Oy,{text:function(){return K.data().title}})),_.Q("div",{class:"ytOfferSummaryRendererSubtitle"},_.Q(_.Oy,{text:function(){return K.data().subtitle}})),_.Q("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.Q(_.cd,{each:function(){var X;
return(X=K.data().featureListData)!=null?X:[]}},function(X){var F;
return _.Q("div",{class:"ytOfferSummaryRendererFeatureList"},_.Q(_.ZF,{icon:(F=X.icon)==null?void 0:F.iconType,className:X.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.Q("div",{class:"ytOfferSummaryRendererFeatureListText"},_.Q(_.Oy,{text:X.text})))})),_.Q("div",{class:"ytOfferSummaryRendererDescription"},_.Q(_.Oy,{text:function(){return K.data().description}}))))},"nf");_.EP(_.$c(function(K){var X={};X=_.HO("ytOfferSummaryFlowStepRendererHost",(X.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=K.shouldDisableHeaderTopMargin,X));return _.Q("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:X},_.Q("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.Q("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.Q(_.Oy,{text:function(){return K.data().header}})),_.Q("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.Q(_.Oy,{text:function(){return K.data().subtitle}}))),_.Q("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.Q(_.Md,{data:function(){return K.data().offerSummary}},{offerSummaryRenderer:function(F){return _.Q(sDw,{data:F.data,
className:K.flowClassName})}})))},"of"),"yt-offer-summary-flow-step-renderer",{props:{data:_.g$,
flowClassName:_.g$,flowStateEntityKey:_.g$,shouldDisableHeaderTopMargin:_.g$}});var z_t=_.$c(function(K){var X=K.data;var F=K.className;var P=K.flowStateEntityKey;var H=K.selectionStepStyle;K=_.DF(function(Z){var M=X(),n=P==null?void 0:P();Z.target&&(Z.stopPropagation(),Z=n||"",n=_.bf(_.Gb().getState(),Z),M=Object.assign({},n,{premiumPurchaseFlowState:{selectedOptionId:M.optionId,primaryButtonOverride:M.primaryButtonOverride}}),_.Gb().dispatch(_.zl("flowStateEntity",Z,M)));return!1});
var f=function(){return(P==null?void 0:P())||""},u=_.sy(_.bf,f);
_.AV(function(){var Z=X(),M=f(),n=u();Z.defaultSelected&&M!==""&&Z.primaryButtonOverride&&ATF(Z.optionId||"",M,Z.primaryButtonOverride,n)});
var J={};return _.Q("ytm-option-item-renderer",{"on:click":K,class:_.HO(F,"ytm-option-item-renderer",(J["ytm-option-item-renderer--lp2-style"]=function(){return(H==null?void 0:H())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},J))},_.Q("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.Q("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var Z=X(),M=f(),n=u();n=_.T(n,rTG);return(n?(n==null?void 0:n.selectedOptionId)||"":Z.defaultSelected&&M!==""?(Z==null?void 0:Z.optionId)||"":"")===X().optionId},
name:("input"+_.L1(_.SK)).toString()})),_.Q("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.Q(_.p,{cond:function(){return X().eyebrowText},
then:function(){return _.Q("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.Q(_.Oy,{text:function(){return X().eyebrowText}}))}}),_.Q("div",{class:"ytm-option-item-renderer__option-item-title"},_.Q(_.Oy,{text:function(){return X().title}})),_.Q("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.Q(_.Oy,{text:function(){return X().subtitle}})),_.Q(_.p,{cond:function(){return X().featureListData},
then:function(){return _.Q("div",{class:"ytm-option-item-renderer__feature-list-data"},_.Q(_.cd,{each:function(){return X().featureListData||[]}},function(Z){var M;
return _.Q("div",{class:"ytm-option-item-renderer__feature-list"},_.Q(_.ZF,{icon:(M=Z.icon)==null?void 0:M.iconType,className:Z.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytm-option-item-renderer__feature-list-icon-green":"ytm-option-item-renderer__feature-list-icon-default"}),_.Q("div",{class:"ytm-option-item-renderer__feature-list-text"},_.Q(_.Oy,{text:Z.text})))}))}}),_.Q("div",{class:"ytm-option-item-renderer__option-item-description"},_.Q(_.Oy,{text:function(){return X().description}}))))},
"pf");var fKo=_.$c(function(K){var X=K.data;var F=K.flowClassName;var P=K.flowStateEntityKey;var H=K.selectionStepStyle;return _.Q("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.Q("div",{class:"yt-option-section-renderer__option-section-header-section"},_.Q("div",{class:"yt-option-section-renderer__option-section-header"},_.Q(_.Oy,{text:function(){return X().title}}),_.Q(_.Md,{data:function(){return X().titleBadge}},{badgeViewModel:function(f){return _.Q(_.EG,
{data:f.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.Q(_.p,{cond:function(){return X().subtitle},
then:function(){return _.Q("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.Q(_.Oy,{text:function(){return X().subtitle}}))}}),_.Q(_.p,{cond:function(){return X().featureListData},
then:function(f){return _.Q("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.Q(_.cd,{each:f},function(u){var J;return _.Q("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.Q(_.ZF,{icon:(J=u.icon)==null?void 0:J.iconType,className:u.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"yt-option-section-renderer__option-section-feature-item-icon-green":"yt-option-section-renderer__option-section-feature-item-icon-default"}),_.Q("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.Q(_.Oy,{text:u.text})))}))}}),_.Q(_.p,{cond:function(){return X().secondaryTitle},
then:function(){return _.Q("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.Q(_.Oy,{text:function(){return X().secondaryTitle}}))}}),_.Q(_.cd,{each:function(){return X().sectionDisclaimers||[]}},function(f){return _.Q("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.Q(_.Oy,{text:f}))})),_.Q(_.Md,{data:function(){return X().optionItems}},{optionItemRenderer:function(f){return _.Q("div",{class:"yt-option-section-renderer__option-item"},_.Q(z_t,{data:f.data,
className:F,flowStateEntityKey:P,selectionStepStyle:H}))}}),_.Q(_.p,{cond:function(){return X().offerText},
then:function(){return _.Q("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.Q(_.Oy,{text:function(){return X().offerText}}))}}))},"qf");
fKo.idomCompat=!0;var DsG=_.$c(function(K){var X=K.data;var F=K.flowClassName;var P=K.flowStateEntityKey;K=K.isDesktop;var H=function(){var M;return(M=X().flowStateEntityKey)!=null?M:P==null?void 0:P()},f=function(){return(H==null?void 0:H())||""},u=function(){return X().style},J=_.sy(_.bf,f);
_.AV(function(){var M=X(),n=f(),c=J();!_.T(c,rTG)&&M.noPreselect&&n!==""&&M.defaultButtonOverride&&ATF("default",n,M.defaultButtonOverride,c)});
var Z={};return _.Q("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.HO("ytm-option-selection-flow-step-renderer",(Z["ytm-option-selection-flow-step-renderer--desktop"]=K,Z["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return X().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},Z))},_.Q("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"},
_.Q("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.Q(_.Oy,{text:function(){return X().header}})),_.Q("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.Q(_.Oy,{text:function(){return X().subtitle}}))),_.Q(_.Md,{data:function(){return X().optionItems||[]}},{optionItemRenderer:function(M){return _.Q("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.Q(z_t,{data:M.data,
className:F,flowStateEntityKey:H,selectionStepStyle:u}))},
optionSectionRenderer:function(M){return _.Q("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.Q(fKo,{data:M.data,flowClassName:F,flowStateEntityKey:H,selectionStepStyle:u}))}}))},"rf");
DsG.idomCompat=!0;_.EP(DsG,"yt-option-selection-flow-step-renderer",{props:{data:_.vU,flowClassName:_.vU,flowStateEntityKey:_.vU,isDesktop:_.vU}});var jwG,wkt;_.mK=_.$c(function(K){var X=_.tA(K,{type:1,disablePadding:!1,disablePrimaryButton:!1}),F=X.data,P=X.type;K=X.disablePadding;var H=X.disablePrimaryButton,f=X.onClickPrimaryButton,u=function(){return F().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},J=function(){return{disabled:H(),
state:H()?"disabled":"active"}},Z=function(){return F().leadingLabel||F().trailingLabel};
X={};return _.Q("yt-panel-footer-view-model",{class:_.HO("yt-panel-footer-view-model-wiz",(X["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return F().shouldHideDivider},X["yt-panel-footer-view-model-wiz--disable-padding"]=K,X))},_.Q(_.p,{cond:Z,
then:function(){var M={},n={};return _.Q("div",{class:_.HO("yt-panel-footer-view-model-wiz__text-row",(M["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var c=F();return!(!c.leadingLabel&&!c.trailingLabel||!c.primaryButton&&!c.secondaryButton)},M))},_.Q(_.Oy,{text:function(){return F().leadingLabel},
className:_.HO((n["yt-panel-footer-view-model-wiz--text-padding"]=Z,n))}),_.Q(_.Oy,{text:function(){return F().trailingLabel}}))}}),_.Q(_.p,{cond:u,
then:function(){var M={};return _.Q("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.Q("div",{class:_.HO("yt-panel-footer-view-model-wiz__primary-button",(M["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return F().secondaryButton},M))},_.Q(_.Md,{data:function(){return F().primaryButton}},{buttonViewModel:function(n){return _.Q(_.Af,{data:n.data,
buttonOverrides:J,onClick:f})}})),_.Q(_.Md,{data:function(){return F().secondaryButton}},{buttonViewModel:_.Af}))}}),_.Q(_.p,{cond:function(){return!u()},
then:function(){var M={},n={},c={};return _.Q("div",{class:_.HO("yt-panel-footer-view-model-wiz__button-row",(M["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===P()},M))},_.Q("div",{class:_.HO("yt-panel-footer-view-model-wiz__button-row--left-button",(n["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===P()},n["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!F().secondaryButton||0===P()},n["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===P()},n))},_.Q(_.Md,{data:function(){return F().secondaryButton}},{buttonViewModel:_.Af})),_.Q("div",{class:_.HO("yt-panel-footer-view-model-wiz__primary-button",(c["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===P()||1===P()},c["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===P()},c))},_.Q(_.Md,{data:function(){return F().primaryButton}},{buttonViewModel:function(B){return _.Q(_.Af,{data:B.data,
buttonOverrides:J,onClick:f})}})))}}))},"sf");
_.mK.idomCompat=!0;_.unk=_.$c(function(K){K=_.tA(K,{disablePadding:!1});var X=K.data,F=K.disablePadding;K=_.eQG(function(){return X().formId});
var P=K.onSubmit,H=K.isValid,f=K.isSubmitting;return _.Q("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.Q(_.Md,{data:function(){return X().panelFooter}},{panelFooterViewModel:function(u){return _.Q(_.mK,{data:u.data,
onClickPrimaryButton:function(){P()},
disablePrimaryButton:function(){return!H()||f()},
disablePadding:F})}}))},"tf");_.EP(_.unk,"yt-form-footer-view-model",{props:{data:_.vU,disablePadding:_.vU}});_.EP(_.$c(function(K){return _.Q("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.Q("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.Q(_.p,{cond:function(){var X;return(X=K.data())==null?void 0:X.image},
then:function(X){return _.Q(_.av,{data:X,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.Q("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.Q(_.Oy,{text:function(){var X;
return(X=K.data())==null?void 0:X.title}})),_.Q("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.Q(_.Oy,{text:function(){var X;
return(X=K.data())==null?void 0:X.subtitle}})),_.Q("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.Q(_.Md,{data:function(){var X;
return(X=K.data())==null?void 0:X.viewTipsButton}},{buttonViewModel:_.Af}))))},"uf"),"yt-contributor-zero-state-view-model",{props:{data:_.vU}});var qgV=_.$c(function(K){var X=_.sy(RQk,_.ag(function(){var F;return(F=K.data())==null?void 0:F.noteFeedEntityKey},""));
return _.Q("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.Q("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.Q("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.Q(_.p,{cond:function(){var F,P;return(F=K.data())==null?void 0:(P=F.noteData)==null?void 0:P.isPinned},
then:function(){return _.Q(_.ZF,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.Q(_.Oy,{text:function(){var F,P;
return(F=K.data())==null?void 0:(P=F.noteData)==null?void 0:P.headerText}}),_.Q("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.Q(_.Oy,{text:function(){var F,P;
return(F=K.data())==null?void 0:(P=F.noteData)==null?void 0:P.delimiter}})),_.Q(_.Oy,{text:function(){var F,P;
return(F=X())==null?void 0:(P=F.contributorNote)==null?void 0:P.publishedTimeText}})),_.Q(_.Md,{data:function(){var F,P,H,f=(F=K.data())==null?void 0:F.noteData;
F=(P=X())==null?void 0:(H=P.contributorNote)==null?void 0:H.deleteAction;return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:f.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:f.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:f.deleteDialogTitle}]},dialogMessages:[{runs:[{text:f.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:f.deleteActionText}]},command:{performCommentActionEndpoint:{action:F}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:f.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(F){return _.Q(_.Af,{data:F.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.Q("div",{class:"ytNoteViewModelNoteContent"},_.Q(_.Oy,{text:function(){var F,P;
return(F=X())==null?void 0:(P=F.contributorNote)==null?void 0:P.text}})))},"vf");
qgV.idomCompat=!0;_.EP(qgV,"yt-note-view-model",{props:{data:_.vU}});var G1=_.$c(function(K){var X=_.tA(K,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),F=X.label,P=X.text,H=X.placeholder,f=X.hint;K=X.rows;var u=X.overflowStyle,J=X.outline,Z=X.disabled,M=X.disableNewLines,n=X.characterLimit,c=X.validation,B=X.onInput,L=_.t_();X=_.D(_.qB(function(){return P()}));
var A=X.next().value,d=X.next().value;X=_.D(_.u_(!1,void 0,"fXvinf"));var R=X.next().value,l=X.next().value,a=function(){l(!0)},E=function(){l(!1)};
_.AV(function(){var gw=L.value,a3=u(),dL=A();a3==="expand-vertically"&&dL&&Ucw(gw);L.value.addEventListener("focusin",a);L.value.addEventListener("focusout",E)});
_.AZ(function(){L.value.removeEventListener("focusin",a);L.value.removeEventListener("focusout",E)});
var V=function(){var gw;return(gw=c())==null?void 0:gw.validate(A())},x=function(){return n()&&!V()&&A().length>n().maxChars},N=function(){return!!V()||x()};
X=_.DF(function(gw){if(!gw.currentTarget)return!1;gw=gw.currentTarget;d(gw.value);u()==="expand-vertically"&&Ucw(gw);B==null||B(gw.value);return!0});
var Dl=_.DF(function(gw){M()&&gw.key==="Enter"&&gw.preventDefault();return!1}),Mq=_.DF(function(){L.value.focus()}),pO=function(){return H()||F()},y9={},Wy={},eP={};
return _.Q("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.Q("div",{class:_.HO("ytStandardsTextareaShapeTextareaContainer",(y9.ytStandardsTextareaShapeTextareaContainerOutline=J,y9.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=Z,y9.ytStandardsTextareaShapeTextareaContainerOutlineError=N,y9)),"on:click":Mq},_.Q("label",{class:_.HO("ytStandardsTextareaShapeLabel",(Wy.ytStandardsTextareaShapeLabelFocused=R,Wy.ytStandardsTextareaShapeLabelDisabled=Z,Wy.ytStandardsTextareaShapeLabelError=
function(){return N()&&!Z()},Wy.ytStandardsTextareaShapeLabelHidden=function(){return!R()&&!A()&&!!pO()},Wy))},F),_.Q("div",{class:_.HO("ytStandardsTextareaShapePlaceholder",(eP.ytStandardsTextareaShapePlaceholderVisible=function(){return!R()&&!A()},eP)),
"aria-hidden":"true"},pO),_.Q("textarea",{el:L,class:"ytStandardsTextareaShapeTextarea",rows:K,disabled:Z,placeholder:pO,"on:input":X,"on:keydown":Dl},A)),_.Q(_.p,{cond:function(){return f()&&!N()},
then:function(){var gw={};return _.Q("div",{class:_.HO("ytStandardsTextareaShapeHint",(gw.ytStandardsTextareaShapeHintDisabled=Z,gw))},_.Q("div",{class:"ytStandardsTextareaShapeHintHintMessage"},f))}}),_.Q(_.p,{cond:V,
then:function(){return _.Q(JZ1,{disabled:Z},_.Q("div",{class:"ytStandardsTextareaShapeErrorMessage"},V))}}),_.Q(_.p,{cond:n,
then:function(gw){return _.Q(_.p,{cond:x,then:function(){return _.Q(JZ1,{disabled:Z},_.Q("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return gw().errorMessage}),_.Q("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return A().length+"/"+gw().maxChars}))}})}}))},"wf");
G1.idomCompat={callbacks:{onInput:!0}};var JZ1=_.$c(function(K){var X={};return _.Q("div",{class:_.HO("ytStandardsTextareaShapeError",(X.ytStandardsTextareaShapeErrorDisabled=K.disabled,X)),role:"alert"},_.Q(_.ZF,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),K.children)},"xf");_.Zv8=_.$c(function(K){var X=K.data;return _.Q("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.Q(G1,{text:K.text,label:function(){var F;return(F=X().contentProperties)==null?void 0:F.labelText},
placeholder:function(){var F;return(F=X().contentProperties)==null?void 0:F.placeholderText},
hint:function(){var F;return(F=X().contentProperties)==null?void 0:F.hintText},
outline:function(){var F;return!((F=X().displayProperties)==null?0:F.hideBorder)},
overflowStyle:function(){var F;return((F=X().displayProperties)==null?0:F.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:K.disabled,disableNewLines:function(){var F;return(F=X().displayProperties)==null?void 0:F.disableNewLines},
onInput:K.onInput,characterLimit:K.characterLimit,validation:K.validation,rows:function(){var F;return(F=X().displayProperties)==null?void 0:F.rows}}))},"yf");_.YgG=_.$c(function(K){var X=K.data;return _.Q("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.Q(G1,{text:K.text,label:function(){var F;return(F=X().contentProperties)==null?void 0:F.labelText},
placeholder:function(){var F;return(F=X().contentProperties)==null?void 0:F.placeholderText},
hint:function(){var F;return(F=X().contentProperties)==null?void 0:F.hintText},
outline:function(){var F;return!((F=X().displayProperties)==null?0:F.hideBorder)},
overflowStyle:function(){var F;return((F=X().displayProperties)==null?0:F.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var F;return(F=X().displayProperties)==null?void 0:F.disableNewLines},
onInput:K.onInput,characterLimit:K.characterLimit,validation:K.validation,rows:function(){var F;return(F=X().displayProperties)==null?void 0:F.rows}}))},"zf");var QDv=_.$c(function(K){var X=_.D(_.qB(function(){var pO,y9;return((pO=K.data().structuredContextNoteFormSchema)==null?0:(y9=pO.initialValues)==null?0:y9.noteBody)?K.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),F=X.next().value,P=X.next().value;
X=_.D(_.qB(function(){K.data();return!1}));
var H=X.next().value,f=X.next().value;X=_.D(_.qB(function(){K.data();return!1}));
var u=X.next().value,J=X.next().value;X=_.D(_.qB(function(){var pO,y9;return((pO=K.data().structuredContextNoteFormSchema)==null?0:(y9=pO.initialValues)==null?0:y9.timestamp)?K.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var Z=X.next().value,M=X.next().value;X=_.D(_.qB(function(){K.data();return!1}));
var n=X.next().value,c=X.next().value;X=_.D(_.qB(function(){var pO,y9;return((pO=K.data().structuredContextNoteFormSchema)==null?0:(y9=pO.initialValues)==null?0:y9.sources)?[K.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var B=X.next().value,L=X.next().value;X=_.D(_.qB(function(){K.data();return!1}));
var A=X.next().value,d=X.next().value;X=_.D(_.qB(function(){return!1}));
var R=X.next().value,l=X.next().value;_.AV(function(){var pO;_.dct((pO=K.data().structuredContextNoteFormSchema)==null?void 0:pO.id,{isSubmitting:R,onSubmit:function(){l(!0);var y9=OZG(F(),Z(),B(),K.data()),Wy=_.i9().resolve(_.xU);y9&&Wy&&Wy.resolveCommand(y9,{commandController:{onSuccess:function(){l(!1)}}})},
isValid:function(){return H()&&!u()&&!n()&&!A()}})});
var a=function(pO){if(pO!==void 0&&(P(pO),!H()&&pO.length>0&&f(!0),H())){var y9=Gsk(K.data());if(y9){var Wy=y9.minLength;y9=y9.maxLength;Wy&&pO.length<Wy?J(!0):y9&&pO.length>y9?J(!0):J(!1)}}},E=function(pO){if(pO!==void 0){M(pO);
if(pO.length>0){var y9,Wy,eP,gw,a3=vE8((y9=K.data())==null?void 0:(Wy=y9.structuredContextNoteFormSchema)==null?void 0:(eP=Wy.fieldSchemas)==null?void 0:(gw=eP.timestamp)==null?void 0:gw.validationSchema);if(a3&&(y9=a3.regex)&&!(new RegExp(y9)).test(pO)){c(!0);return}}c(!1)}},V=function(pO){if(pO!==void 0){var y9=pO.split(/[ \n]/).map(function(Wy){return Wy.trim()});
L(y9);if(pO.length>0)for(pO=_.D(y9),y9=pO.next();!y9.done;y9=pO.next())if(!$cW(y9.value)){d(!0);return}d(!1)}},x=function(){return{validate:function(pO){if(H()){var y9=Gsk(K.data());
if(y9){var Wy=y9.minLength;y9=y9.translations;if(Wy&&pO.length<Wy)return y9==null?void 0:y9.minLengthErrorMessage}}}}},N=function(){var pO=Gsk(K.data()),y9=pO==null?void 0:pO.maxLength,Wy;
pO=pO==null?void 0:(Wy=pO.translations)==null?void 0:Wy.maxLengthErrorMessage;if(y9&&pO)return{maxChars:y9,errorMessage:pO}},Dl=function(){return{validate:function(pO){if(pO){var y9,Wy,eP,gw,a3=vE8((y9=K.data())==null?void 0:(Wy=y9.structuredContextNoteFormSchema)==null?void 0:(eP=Wy.fieldSchemas)==null?void 0:(gw=eP.timestamp)==null?void 0:gw.validationSchema);
if(a3&&(y9=a3.regex,a3=a3.translations,y9&&!(new RegExp(y9)).test(pO)))return a3==null?void 0:a3.regexErrorMessage}}}},Mq=function(){return{validate:function(pO){if(pO){var y9,Wy,eP,gw,a3=tOF((y9=K.data())==null?void 0:(Wy=y9.structuredContextNoteFormSchema)==null?void 0:(eP=Wy.fieldSchemas)==null?void 0:(gw=eP.sources)==null?void 0:gw.validationSchema);
if(a3&&(y9=a3.translations,y9==null?0:y9.selectedErrorMessage))for(pO=pO.split(/[ \n]/).map(function(dL){return dL.trim()}),pO=_.D(pO),Wy=pO.next();!Wy.done;Wy=pO.next())if(!$cW(Wy.value))return pO=void 0,(pO=y9)==null?void 0:pO.selectedErrorMessage}}}};
return _.Q("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.Q("div",{class:"ytStructuredContextNoteViewModelTextField"},_.Q(_.Md,{data:function(){var pO;return(pO=K.data())==null?void 0:pO.noteContents}},{textFormFieldViewModel:function(pO){return _.Q(_.YgG,{data:pO.data,
onInput:a,validation:x,characterLimit:N})},
textFieldViewModel:function(pO){return _.Q(_.Zv8,{data:pO.data,onInput:a,validation:x,characterLimit:N})}})),_.Q("div",{class:"ytStructuredContextNoteViewModelTextField"},_.Q(_.Md,{data:function(){var pO;
return(pO=K.data())==null?void 0:pO.noteTimestamp}},{textFormFieldViewModel:function(pO){return _.Q(_.YgG,{data:pO.data,
onInput:E,validation:Dl})},
textFieldViewModel:function(pO){return _.Q(_.Zv8,{data:pO.data,onInput:E,validation:Dl})}})),_.Q("div",{class:"ytStructuredContextNoteViewModelTextField"},_.Q(_.Md,{data:function(){var pO;
return(pO=K.data())==null?void 0:pO.noteSources}},{textFormFieldViewModel:function(pO){return _.Q(_.YgG,{data:pO.data,
onInput:V,validation:Mq})},
textFieldViewModel:function(pO){return _.Q(_.Zv8,{data:pO.data,onInput:V,validation:Mq})}})))},"Af");
QDv.idomCompat=!0;_.EP(QDv,"yt-structured-context-note-view-model",{props:{data:_.vU}});var MjF=_.$c(function(K){var X=_.D(_.qB(function(){var f;if((f=K.controlled)==null?0:f.call(K))return[];var u;return(((u=K.data())==null?void 0:u.chips)||[]).map(function(J){J=_.T(J,_.d4);if(J==null?0:J.selected)return VO1(J.chipValue)}).filter(function(J){return J!==void 0})})),F=X.next().value,P=X.next().value,H=function(f){var u=VO1(f.chipValue);
if(u!==void 0){var J;if((J=K.controlled)==null?0:J.call(K))return void K.controlled().onTap(u);f=F().includes(u)?[].concat(_.LZ(F().filter(function(M){return M!==u}))):[].concat(_.LZ(F()),[u]);
P(f);var Z;if((Z=K.uncontrolled)==null?0:Z.call(K))K.uncontrolled().onUpdate(f)}};
return _.Q("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.Q(_.cd,{each:function(){return K.data().chips||[]}},function(f){return _.Q("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.Q(_.PnQ,{data:function(){return _.T(f,_.d4)},
selected:function(){var u;if(u=_.T(f,_.d4)){var J=VO1(u.chipValue);if(J!==void 0){var Z;u=((Z=K.controlled)==null?0:Z.call(K))?K.controlled().selectedValues.includes(J):F().includes(J)}else u=void 0}else u=!1;return u},
callback:H}))}))},"Bf");var nMV=_.$c(function(K){var X=K.data;var F=function(){var J;return((J=X())==null?void 0:J.flowStateKey)||""},P=_.sy(_.bf,F),H=function(){var J;
return(J=_.T(P(),vpG))==null?void 0:J.chips},f=function(J){if(J!==void 0){var Z=H()||[];
Z=Z.find(function(M){return M===J})?Z.filter(function(M){return M!==J}):[].concat(_.LZ(Z),[J]);
Z=Object.assign({},P(),{feedbackFormFlowState:Object.assign({},_.T(P(),vpG),{chips:Z})});_.vc(_.zl("flowStateEntity",F(),Z))}},u=function(){var J;
return _.T((J=X())==null?void 0:J.inputBox,awv)};
K=_.Dn(function(J){var Z=u();Z=!(Z==null?0:Z.maxChars)||J.length<=Z.maxChars;J=Object.assign({},P(),{feedbackFormFlowState:Object.assign({},_.T(P(),vpG),{detail:J}),abuseReportFlowState:Object.assign({},_.T(P(),KH),{navigationEnabled:Z})});_.vc(_.zl("flowStateEntity",F(),J))},150);
return _.Q("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.Q("div",{class:"ytFeedbackFormViewModelChips"},_.Q(_.Md,{data:function(){var J;return(J=X())==null?void 0:J.chipSelection}},{chipSelectionFormFieldViewModel:function(J){return _.Q(MjF,{data:J.data,
controlled:function(){return{selectedValues:H()||[],onTap:f}}})}})),_.Q("div",{class:"ytFeedbackFormViewModelInputBox"},_.Q(G1,{text:function(){var J;
return(J=_.T(P(),vpG))==null?void 0:J.detail},
placeholder:function(){var J;return((J=u())==null?void 0:J.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var J=u();if(J&&J.maxChars)return{maxChars:J.maxChars,errorMessage:J.maxCharsExceededErrorMessage||""}},
onInput:K})),_.Q("div",{class:"ytFeedbackFormViewModelFooterText"},_.Q(_.Oy,{text:function(){return X().footerText}})))},"Cf");
nMV.idomCompat=!0;_.EP(nMV,"yt-feedback-form-view-model",{props:{data:_.vU}});var cZv=_.$c(function(K){var X=K.data;var F=function(){return X().flowStateKey||""},P=_.sy(ViJ,F),H=function(){return _.T(P(),KH)},f=function(){if(_.S("enable_gff_accessibility_fix")){var u=!0,J;
if((J=H())==null?0:J.navigationEnabled){var Z;_.e9((Z=H())==null?void 0:Z.navigationCommand);u=!1}J=Object.assign({},P(),{abuseReportFlowState:Object.assign({},H(),{isReportFormDirty:u})});_.vc(_.zl("flowStateEntity",F(),J))}else _.e9((u=H())==null?void 0:u.navigationCommand)};
return _.Q("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.Q("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.Q(_.Md,{data:function(){return X().cancelButton}},{buttonViewModel:function(u){return _.Q(_.Af,{data:u.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:f})}}),_.Q(_.Md,{data:function(){var u;
if(X().navButton){var J=Object;var Z=J.assign,M=_.T(X().navButton,_.nS),n=((u=H())==null?0:u.navigationEnabled)||_.S("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",c,B;u=_.T((c=H())==null?void 0:c.navigationCommand,_.j9);c=(B=_.T(u,_.mc))==null?void 0:B.url;J={buttonViewModel:Z.call(J,{},M,{state:n,iconName:c?"OPEN_IN_NEW":""})}}else J=void 0;return J}},{buttonViewModel:function(u){return _.Q(_.Af,{data:u.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:f})}})))},"Df");
cZv.idomCompat=!0;_.EP(cZv,"yt-report-form-bottom-bar-view-model",{props:{data:_.vU}});var pMW=_.$c(function(K){var X=K.nextStep;return _.Q("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.Q("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.Q(_.ZF,{icon:function(){return X().iconName||""}})),_.Q("div",null,_.Q(_.Oy,{text:function(){return X().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Ef"),Bst=_.$c(function(K){var X=K.data;
var F,P=(F=_.i9().resolve(_.Nu(_.m$)))==null?void 0:F(),H=_.sy(_.bf,function(){return X().flowStateKey||""});
return _.Q("yt-report-form-confirmation-page-view-model",{class:function(){var f;return((f=_.T(H(),KH))==null?void 0:f.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.Q("div",{class:function(){var f;
return((f=_.T(H(),KH))==null?void 0:f.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.Q(_.av,{data:function(){return P&&X().imageDark?X().imageDark:X().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.Q("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.Q("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return X().confirmationHeader}),_.Q("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.Q(_.Oy,{text:function(){return X().confirmationText}})),_.Q("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.Q(_.Oy,{text:function(){return X().lawEnforcementText}})),
_.Q("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return X().whatToExpectHeader}),_.Q(_.p,{cond:function(){return X().nextSteps},
then:function(f){return _.Q("div",null,_.Q(_.cd,{each:f},function(u){return _.Q(pMW,{nextStep:u})}))}}),_.Q(_.p,{cond:function(){return X().legalReportText},
then:function(f){return _.Q("div",null,_.Q(_.Oy,{text:f,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Ff");
Bst.idomCompat=!0;_.EP(Bst,"yt-report-form-confirmation-page-view-model",{props:{data:_.vU}});var Sg5=_.$c(function(K){var X=K.data;var F=function(){var f;return((f=_.T(X().inputBox,awv))==null?void 0:f.maxChars)||500},P=function(){return X().flowStateKey||""},H=_.sy(_.bf,P);
K=_.Dn(function(f){f=Object.assign({},H(),{flowFormState:{isValid:f.length<=F()},abuseReportFlowState:{userComments:f,navigationEnabled:!(f.length>F()),isReportFormDirty:!0}});_.Gb().dispatch(_.Bp("flowStateEntity",P(),f))},150);
_.AV(function(){var f=Object.assign({},H(),{flowFormState:{isValid:!0}});_.Gb().dispatch(_.Bp("flowStateEntity",P(),f))});
return _.Q("yt-report-form-details-page-view-model",{class:function(){var f;return((f=_.T(H(),KH))==null?void 0:f.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.Q("h1",{class:function(){var f;
return((f=_.T(H(),KH))==null?void 0:f.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return X().detailsPageHeader}),_.Q("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.Q(_.Oy,{text:function(){return X().bodyText}})),_.Q("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.Q(G1,{label:function(){var f;
return((f=_.T(X().inputBox,awv))==null?void 0:f.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var f;return{errorMessage:((f=_.T(X().inputBox,awv))==null?void 0:f.maxCharsExceededErrorMessage)||"",maxChars:F()}},
onInput:K})))},"Gf");
Sg5.idomCompat=!0;_.EP(Sg5,"yt-report-form-details-page-view-model",{props:{data:_.vU}});var oM8=_.$c(function(K){var X=K.data;var F=K.selectedKey;var P=K.onSelected;var H=K.groupName;var f=function(){return X().text},u=function(){return X().attributedText},J=function(){return X().subtext},Z=function(){return X().attributedSubtext},M=_.Q("div",{class:"ytRadioButtonItemViewModelLabel"},_.Q(_.p,{cond:f,
then:function(){return _.Q("div",null,f)}}),_.Q(_.p,{cond:u,
then:function(){return _.Q(_.Oy,{text:u})}}),_.Q(_.p,{cond:J,
then:function(){return _.Q("div",{class:"ytRadioButtonItemViewModelSubText"},J)}}),_.Q(_.p,{cond:Z,
then:function(){return _.Q("div",{class:"ytRadioButtonItemViewModelSubText"},_.Q(_.Oy,{text:Z}))}})),n=function(){if(u()){var B;
return(B=u())==null?void 0:B.content}return f()},c=function(){if(Z()){var B;
return(B=Z())==null?void 0:B.content}return J()};
K={};return _.Q("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.Q(_.LK,{name:H,checked:function(){return!(F==null||!F()||X().key!==(F==null?void 0:F()))},
onChange:function(B){P==null||P(B.target,X(),H==null?void 0:H())},
labelRenderable:function(){return M},
ariaLabel:function(){return c()?n()+", "+c():n()},
className:_.HO((K.ytRadioButtonItemViewModelSubTitle=function(){return!!X().subtext},K))}))},"Hf");_.Lht=_.$c(function(K){var X=K.data;var F=K.onSelected;var P=K.selectedKey;var H=K.groupName;return _.Q("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.Q("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.Q(_.Md,{data:function(){return X().radioButtons}},{radioButtonItemViewModel:function(f){return _.Q(oM8,{data:f.data,
onSelected:F,selectedKey:P,groupName:function(){return(H==null?void 0:H())||X().key}})}})))},"If");var Tst=_.$c(function(K){var X=K.data;var F=_.$3(),P=function(){return X().flowStateKey||""},H=_.sy(_.bf,P),f=function(){return _.T(H(),KH)};
_.rs(function(){var u,J;if(((u=f())==null?0:u.isReportFormDirty)&&((J=f())==null||!J.navigationEnabled)&&_.S("enable_gff_accessibility_fix")){var Z;if(((Z=f())==null?void 0:Z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var M;(M=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||M.scrollIntoView()}else{var n;(n=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||n.scrollIntoView()}}},"VvP2Ne");
return _.Q("yt-report-form-reason-select-page-view-model",{class:function(){var u;return((u=f())==null?void 0:u.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.Q("h1",{class:function(){var u;
return((u=f())==null?void 0:u.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return X().pageHeader}),_.Q("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.Q(_.Oy,{text:function(){return X().bodyText}})),_.Q("div",{class:function(){var u;
return((u=f())==null?void 0:u.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.Q(_.p,{cond:function(){var u,J;
return((u=f())==null?void 0:u.isReportFormDirty)&&!((J=f())==null?0:J.navigationEnabled)&&_.S("enable_gff_accessibility_fix")},
then:function(){return _.Q("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:F},_.Q(_.ZF,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.Q("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return X().emptyReasonSelectErrorMessage}))}}),_.Q(_.Lht,{data:function(){return _.T(X().radioButtonGroup,_.CkW)},
onSelected:function(u,J){u=Object.assign({},H(),{abuseReportFlowState:Object.assign({},f(),{reasonKey:J.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:J.command})});_.vc(_.zl("flowStateEntity",P(),u))},
selectedKey:function(){var u;return(u=f())==null?void 0:u.reasonKey},
groupName:"report-form-reason-select-page"})))},"Jf");
Tst.idomCompat=!0;_.EP(Tst,"yt-report-form-reason-select-page-view-model",{props:{data:_.vU}});var rZ8=_.$c(function(K){var X=K.data;var F,P=(F=_.i9().resolve(_.Nu(_.m$)))==null?void 0:F();return _.Q("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.Q("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.Q(_.av,{data:function(){return P&&X().imageDark?X().imageDark:X().image},
alt:""})),_.Q("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.Q("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return X().header}),_.Q(_.Oy,{text:function(){return X().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"Kf");
rZ8.idomCompat=!0;_.EP(rZ8,"yt-report-form-sign-in-page-view-model",{props:{data:_.vU}});_.EP(_.$c(function(K){var X=K.data;var F=function(){var M;return(M=X().textInputPlaceholder)==null?void 0:M.content},P=function(M){M=M.target.value.trim();
var n=X().onUpdateText;n&&_.e9(n,{form:{userQuery:M}});X().userQuery=M},H=_.Dn(function(M){P(M)},150),f=_.DF(function(M){H(M);
return!1}),u=_.DF(function(M){M.key==="Enter"&&(P(M),(M=X().onNextStepCommand)&&_.e9(M,{forceClickLogging:!0}));
return!1}),J=_.t_(),Z=function(){if(_.S("web_hide_explore_hub_until_user_navigates_back_to_home")){var M,n,c;
(c=(n=(M=J.value)==null?void 0:M.closest("ytd-flow-step-renderer"))==null?void 0:n.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||c.click()}};
return _.Q("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:J},_.Q("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.Q(_.Md,{data:function(){return X().topCornerButton}},{buttonViewModel:_.Af})),_.Q("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.Q("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.Q(_.Oy,{text:function(){return X().title}}),_.Q("sup",{class:"ytwTalkToRecsSuperScript"},"BETA")),_.Q("div",{class:"ytwTalkToRecsSubtitle"},_.Q(_.Oy,{text:function(){return X().subtitle}})),_.Q("div",{class:"ytwTalkToRecsChipsShelf"},_.Q(_.Md,{data:function(){return X().answersShelf}},{chipsShelfViewModel:function(M){return _.Q("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.Q(_.Z6O,{data:M.data,
callback:Z,enableSingleChipSelection:!0}))}})),_.Q(_.p,{cond:function(){return X().showOpenTextInput&&!_.S("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.Q("div",{class:"ytwTalkToRecsUserInputBox"},_.Q("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:F,value:function(){return X().userQuery},
"on:input":f,"on:keyup":u,maxlength:200}))}})))},"Lf"),"yt-talk-to-recs-view-model",{props:{data:_.vU}});var gEV={sources:[{clientResource:{imageName:"CHECK"}}]};_.AZF=_.$c(function(K){var X=_.t_();K=_.tA(K,{error:void 0});var F=K.data,P=K.error,H=K.onSelected;K=_.D(_.qB(function(){return CKk(F())}));
var f=K.next().value,u=K.next().value;I4v(F,function(c){u(c);var B,L,A=bZV((B=F().options)==null?void 0:(L=B[c])==null?void 0:L.value,F().type);H==null||H(A);X.value.focus()});
K=_.DF(function(){if(!F().disabled){var c=F(),B=f(),L=X.value;c.options&&(c=EEF(c.options,B,c.label),_.i9().resolve(_.pf).openSheet({viewModel:c},L))}});
var J=_.xwd(),Z=function(){return!!P()},M=function(){return!!F().disabled},n={};
n=_.HO("ytDropdownViewModelDropdownContainer",(n.ytDropdownViewModelDropdownContainerErrorBorder=Z,n.ytDropdownViewModelDropdownContainerDisabled=M,n));return _.Q("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.Q("div",{class:n,"on:click":K,el:X,role:"combobox",tabindex:0,"on:keydown":J,"aria-invalid":Z,"aria-disabled":M,"aria-describedby":function(){return Z()?"dropdown-view-model-error":void 0}},_.Q("div",{class:"ytDropdownViewModelText"},NE1(F,Z,f),iZW(F,f)),_.Q("div",{class:"ytDropdownViewModelChevronDown"},
_.Q(_.ZF,{icon:"CHEVRON_DOWN"}))),xcJ(F,P))},"Mf");_.EP(_.$c(function(K){var X=K.data;var F=function(H){var f=KPV(X());f.videoMetadata||(f.videoMetadata={});f.videoMetadata.sponsorshipsMetadata||(f.videoMetadata.sponsorshipsMetadata={});f.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(H)},P=function(H){var f=KPV(X());
f.scheduledRedirectMetadata||(f.scheduledRedirectMetadata={});f.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(H)};
return _.Q("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.Q("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.Q("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.Q(_.Oy,{text:function(){return X().title}}),_.Q(_.ZF,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.Q(_.Oy,{text:function(){return X().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.Q(_.Md,{data:function(){return X().tierChoices}},{dropdownViewModel:function(H){return _.Q("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.Q(_.AZF,{data:H.data,
onSelected:F}))}}),_.Q(_.Md,{data:function(){return X().startTimeChoices}},{dropdownViewModel:function(H){return _.Q("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.Q(_.AZF,{data:H.data,
onSelected:P}))}}),_.Q(_.Oy,{text:function(){return X().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.Q("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.Q(_.Md,{data:function(){return X().scheduleButton}},{panelFooterViewModel:_.mK})))},"Nf"),"ytfz-schedule-fanzone-view-model",{props:{data:_.vU}});_.EP(_.$c(function(K){var X=K.data;K=K.className===void 0?"":K.className;var F=_.sy(ViJ,function(){return X().flowStateEntityKey||""}),P={};
P=_.HO("ytFlowBottomBarViewModelFlowBottomBarButtons",(P.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return X().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||X().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},P));
var H={},f=_.HO("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",P,(H.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return X().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},H.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return X().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},H));
H={};var u=_.HO("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",P,(H.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return X().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},H.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return X().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},H));
P={};P=_.HO("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(P.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return X().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},P.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return X().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},P.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return X().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
P));
return _.Q("yt-flow-bottom-bar-view-model",{class:_.HO("ytFlowBottomBarViewModelHost",K)},_.Q(_.p,{cond:function(){var J;return(J=X())==null?void 0:J.textSection},
then:function(J){return _.Q("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.Q(_.Oy,{text:J}))}}),_.Q("div",{class:P},_.Q(_.Md,{data:function(){return X().secondaryButton}},{buttonViewModel:function(J){return _.Q(_.Af,{data:J.data,
className:u})}}),_.Q(_.Md,{data:function(){return X().primaryButton}},{buttonViewModel:function(J){return _.Q(_.Af,{data:J.data,
className:f,buttonOverrides:function(){var Z;return{disabled:!((Z=F())==null||!Z.primaryButtonDisabled)}}})}})))},"Of"),"yt-flow-bottom-bar-view-model",{props:{data:_.vU,
className:_.g$}});var jD5="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),lp=function(){var K=_.G.apply(this,arguments)||this;K.enableScrollingFix=!0;K.bottomBar=!1;K.hideBottomBar=!1;K.fitContent=!1;return K};
_.r(lp,_.G);_.z=lp.prototype;_.z.ready=function(){_.S("enable_pdp_icon_prefetch")&&_.lwF(_.i9().resolve(_.Pq),0,jD5)};
_.z.focus=function(K){this.topBar?_.OM(this.topBar,K):this.paperDialog.focus(K)};
_.z.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16827_scroller&&(this.JSC$16827_scroller.dialogElement=this.paperDialog,this.JSC$16827_scroller.attached&&typeof this.JSC$16827_scroller.attached==="function"&&this.JSC$16827_scroller.attached())};
_.z.onDataChanged=function(){var K;this.fitContent=!((K=this.data)==null||!K.fitContent);var X;this.bottomBar=!((X=this.data)==null||!X.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.z.onProgressChanged=function(){var K,X,F=((X=(K=this.data)==null?void 0:K.progress)!=null?X:0)*100;this.progressElement.style.width=F+"%"};
_.z.isProgressHidden=function(){var K;return!((K=this.data)==null?0:K.progress)};
_.z.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(K){return _.S("enable_wiz_next_lp2_msof")&&K&&!K.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.Oi.Object.defineProperties(lp.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var K;return _.S("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.T((K=this.data)==null?void 0:K.content,gpV)}}});
lp.prototype.onProgressChanged=lp.prototype.onProgressChanged;lp.prototype.onDataChanged=lp.prototype.onDataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],lp.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],lp.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],lp.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],lp.prototype,"enableScrollingFix",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],lp.prototype,"bottomBar",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],lp.prototype,"hideBottomBar",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],lp.prototype,"containsExploreHub",null);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],lp.prototype,"fitContent",void 0);_.O([_.fa("#progress"),_.g("design:type",HTMLElement)],lp.prototype,"progressElement",void 0);
_.O([_.fa("#scroller"),_.g("design:type",Object)],lp.prototype,"JSC$16827_scroller",void 0);_.O([_.fa("ytd-flow-top-bar-renderer"),_.g("design:type",HTMLElement)],lp.prototype,"topBar",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],lp.prototype,"onDataChanged",null);_.O([_.so("data.progress"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],lp.prototype,"onProgressChanged",null);
lp=_.O([_.v({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],lp);
_.t(lp,"ytd-flow-step-renderer",function(){if(Ywo!==void 0)return Ywo;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Ywo=K},{mode:1});var wMv=function(K){this.resolveCommand=K;this.steps={}},yZ8=function(K,X){X=_.D(X||[]);
for(var F=X.next();!F.done;F=X.next()){F=F.value;var P=Object.values(F)[0],H=void 0;if((H=P)==null?0:H.stepId)K.steps[P.stepId]=F}},e_V=function(K,X){var F,P,H,f,u;
return _.q(function(J){if((F=K.state)==null||!F.currentStepId)return J.return(void 0);P=WhF(K);if(!P)return J.return(dsG(K));if(H=_.T(P,_.VAv)){var Z;((Z=H.screenLoggingData)==null?0:Z.screenVeType)&&_.IZ(_.uH(),H.screenLoggingData.screenVeType);((f=H)==null?0:f.onStepStartCommand)&&K.resolveCommand((u=H)==null?void 0:u.onStepStartCommand,{})}if(H&&X){Z=H;var M,n,c,B;((M=X.flowLoggingData)==null?0:M.eventNamespace)&&((n=Z.flowEventData)==null?0:n.eventType)&&((c=Z.flowEventData)==null?0:c.eventMetadata)&&
((B=X.flowLoggingData)==null?0:B.flowType)&&(M=_.XN(X.flowLoggingData.eventNamespace,Z.flowEventData.eventType,Z.flowEventData.eventMetadata),_.FN(_.PI(),M,X.flowLoggingData.flowType));X.steps&&!X.steps.includes(P)&&X.steps.push(P)}return J.return(P)})};
wMv.prototype.back=function(){var K;(K=this.state)!=null&&K.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
wMv.prototype.handleUpdateFlowCommand=function(K){K.steps&&yZ8(this,K.steps);K.entityUpdateCommand&&this.resolveCommand(K.entityUpdateCommand,{});K.flowContinuationCommand&&(K=K.flowContinuationCommand)&&(this.getFlowContinuationCommand=K);this.awaitFlowContinuation&&(this.awaitFlowContinuation(WhF(this)),this.awaitFlowContinuation=void 0)};
wMv.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var dsG=function(K){return _.q(function(X){return K.getFlowContinuationCommand?X.return(new Promise(function(F){K.awaitFlowContinuation=F;K.getFlowContinuationCommand&&K.resolveCommand(K.getFlowContinuationCommand,{flow_state:K.state})})):X.return(Promise.resolve(void 0))})},WhF=function(K){var X;
if((X=K.state)!=null&&X.currentStepId)return K.steps[K.state.currentStepId]};var v6=function(){var K=_.G.apply(this,arguments)||this;K.flowState=new wMv(function(X,F){F=F===void 0?{}:F;_.Hn.instance.resolveCommand(X,{form:{form:F,element:K.hostElement}})});
K.initialState=!0;K.isLoading=!1;K.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};return K};
_.r(v6,_.G);_.z=v6.prototype;_.z.onPopupClosed=function(K){K&&this.hostElement!==K.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.z.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.z.focus=function(K){var X=this;_.dl(function(){var F=_.C$(X.hostElement).querySelector("ytd-flow-step-renderer");(F==null?0:F.topBar)?F.focus(K):X.topBar&&_.OM(X.topBar,K)},1)};
_.z.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.z.computeTopBarHidden=function(K){var X;return!((X=_.T(K,_.VAv))==null||!X.topBarOverride)};
_.z.dataChanged=function(){var K=this,X,F;return _.q(function(P){if(P.nextAddress==1){((X=K.data)==null?0:X.steps)&&yZ8(K.flowState,K.data.steps);if((F=K.data)==null?0:F.flowContinuationCommand){var H=K.flowState,f=K.data.flowContinuationCommand;f&&(H.getFlowContinuationCommand=f)}return _.Y(P,e_V(K.flowState,K.data),2)}K.currentFlowStep=P.yieldResult;_.JT(P)})};
_.z.flowChanged=function(){var K=this,X;return _.q(function(F){if(F.nextAddress==1){if(!K.flow)return F.return();K.flowState.state=K.flow;K.isLoading=!0;return _.Y(F,e_V(K.flowState,K.data),2)}X=F.yieldResult;if(!X||K.flow.isLoading)return F.return();K.currentFlowStep=X;K.initialState=!1;K.isLoading=!1;K.autofocusAndRefit();_.JT(F)})};
_.z.autofocusAndRefit=function(){var K=this,X=_.i9().resolve(_.Nu(_.Iu)),F=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),P=document.querySelector("yt-report-form-confirmation-page-view-model"),H=document.querySelector("yt-report-form-details-page-view-model"),f=document.querySelector("yt-report-form-reason-select-page-view-model"),u=document.querySelector("yt-contributor-zero-state-view-model"),
J=document.querySelector("yt-structured-context-note-view-model"),Z=document.querySelector("yt-note-view-model");(!F&&X&&X.isKeyBoardInUse()||P||!F&&H||!F&&f||u||J||Z)&&_.Vc(this.hostElement);_.tg(this,function(){_.iX(K.hostElement,"yt-refit")})};
_.z.handleUpdateFlowCommand=function(K){this.data&&(K=_.T(K,O88),K.targetId===this.data.targetId&&(K.flowContinuationCommand&&(this.data.flowContinuationCommand=K.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(K),this.autofocusAndRefit()))};
_.z.handleFlowNextStepCommand=function(K){this.data&&this.flow&&this.flow.key&&(K=_.T(K,tAs),K.targetId===this.data.targetId&&(K=K.stepId||"",this.ytdReduxBehavior.dispatch(_.Bp("flowStateEntity",this.flow.key,{currentStepId:K,stepIdStack:(this.flow.stepIdStack||[]).concat(K)}))))};
_.z.handleFlowPrevStepCommand=function(K){if(this.data&&this.flow&&this.flow.key&&(K=_.T(K,$4o),K.targetId===this.data.targetId)){var X=[].concat(_.LZ(this.flow.stepIdStack||[]));X.length>1?(X.pop(),this.ytdReduxBehavior.dispatch(_.Bp("flowStateEntity",this.flow.key,{currentStepId:X[X.length-1],stepIdStack:X}))):K.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(K.onFirstStepCommand)}};
_.z.handleYpcCancelRecurrenceCommand=function(K){if(this.data&&this.flow&&this.flow.key&&(K=_.T(K,NpG),K.targetId===this.data.targetId&&K.endpointCommand)){var X=_.T(this.flow,i8k);X&&_.T(K.endpointCommand,_.d2L)&&(_.T(K.endpointCommand,_.d2L).feedbackData=X.surveyFeedback);this.ytComponentBehavior.resolveCommand(K.endpointCommand)}};
_.z.handlePartialUpdateFlowStateEntity=function(K){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.Bp("flowStateEntity",this.flow.key,K,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
v6.prototype.flowChanged=v6.prototype.flowChanged;v6.prototype.dataChanged=v6.prototype.dataChanged;v6.prototype.onPopupClosed=v6.prototype.onPopupClosed;_.O([_.W(_.jn),_.g("design:type",Object)],v6.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],v6.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],v6.prototype,"ytComponentBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],v6.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],v6.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],v6.prototype,"initialState",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],v6.prototype,"isLoading",void 0);_.O([_.h(),_.g("design:type",Object)],v6.prototype,"data",void 0);
_.O([_.h(),_.g("design:type",Object)],v6.prototype,"currentFlowStep",void 0);_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],v6.prototype,"onPopupClosed",null);_.O([_.h({selectorArgs:["data.flowStateEntityKey"],selector:ViJ}),_.g("design:type",Object)],v6.prototype,"flow",void 0);_.O([_.fa("ytd-flow-top-bar-renderer"),_.g("design:type",HTMLElement)],v6.prototype,"topBar",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype",Promise)],v6.prototype,"dataChanged",null);_.O([_.JA("flow"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype",Promise)],v6.prototype,"flowChanged",null);v6=_.O([_.v({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],v6);
_.R_8=_.xc()(v6,"ytd-flow-root-renderer",function(){if(ZJo!==void 0)return ZJo;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return ZJo=K},{mode:_.Ig("kevlar_poly_si_batch_j025")?1:2});var Usv;var Iq=null;_.EP(_.$c(function(K){return _.Q("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.Q("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.Q(_.Oy,{text:function(){return K.data().text}}),_.Q("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Pf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.vU}});var h_W=_.$c(function(K){var X=K.playerControlsProps;var F=K.isShortsPage;return _.Q("yt-bigboard",null,_.Q(_.p,{cond:function(){return X().isDragging},
then:function(){return _.Q("div",{class:"ytBigboardStoryboardHost"},_.Q(_.B15,{progressBarProps:X,isShortsPage:F}))}}))},"Qf");
h_W.idomCompat=!0;_.ap={ACCOUNT_LABEL:kP("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:kP("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:kP("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:kP("AD_BADGE_HINT"),AD_BADGE_TEXT:kP("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:kP("ALL_CHANNELS_LABEL"),AMBIENT_MODE:kP("AMBIENT_MODE"),AMBIENT_MODE_OFF:kP("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:kP("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:kP("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:kP("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:kP("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:kP("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:kP("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:kP("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:kP("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:kP("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:kP("AUTOPLAY_UP_NEXT_IN"),BACK:kP("BACK"),CANCEL:kP("CANCEL"),CHANNEL_SWITCHER_LABEL:kP("CHANNEL_SWITCHER_LABEL"),CLOSE:kP("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:kP("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:kP("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:kP("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:kP("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:kP("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:kP("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:kP("COMMENT_MODAL_CONTENT"),CONFIRM_OK:kP("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:kP("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:kP("COPIED_TO_CLIPBOARD"),COPY:kP("COPY"),COPY_DEBUG_INFO:kP("COPY_DEBUG_INFO"),COPY_EMBED_CODE:kP("COPY_EMBED_CODE"),COPY_LINK_LABEL:kP("COPY_LINK_LABEL"),
COPY_VIDEO_URL:kP("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:kP("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:kP("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:kP("DELETE_FROM_DOWNLOADS"),DIALOG:kP("DIALOG"),DONE:kP("DONE"),DOWNLOAD:kP("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:kP("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:kP("FLAG_CONFIRM"),FLAG_CONTENT:kP("FLAG_CONTENT"),FLAG_LABEL:kP("FLAG_LABEL"),FLAG_TITLE:kP("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:kP("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:kP("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:kP("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:kP("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:kP("HIDE_SEARCH_FILTERS_LABEL"),HOME:kP("HOME","Home"),INVALID_RESPONSE_RECEIVED:kP("INVALID_RESPONSE_RECEIVED"),LIBRARY:kP("LIBRARY","Library"),LISTENING:kP("LISTENING"),LOADING:kP("LOADING"),LONG_PRESS_MIC_TO_SPEAK:kP("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:kP("LOOP"),MENU_DESKTOP:kP("MENU_DESKTOP"),MENU_EXIT:kP("MENU_EXIT"),
MENU_FEEDBACK:kP("MENU_FEEDBACK"),MENU_HELP:kP("MENU_HELP"),MENU_IMPRESSUM:kP("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:kP("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:kP("MENU_SETTINGS"),MENU_SIGN_IN:kP("MENU_SIGN_IN"),MENU_TITLE:kP("MENU_TITLE"),MENU_YOUR_DATA:kP("MENU_YOUR_DATA"),MORE_INFO:kP("MORE_INFO"),MORE_OPTIONS:kP("MORE_OPTIONS"),MUTE_VOLUME:kP("MUTE_VOLUME"),NEW_PLAYLIST:kP("NEW_PLAYLIST"),NEXT_VIDEO:kP("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:kP("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:kP("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:kP("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:kP("NOT_FOUND_TITLE"),NO_DOWNLOADS:kP("NO_DOWNLOADS"),NO_MIC_INPUT:kP("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:kP("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:kP("OOPS_MESSAGE"),OPEN_APP:kP("OPEN_APP"),OPEN_YOUTUBE:kP("OPEN_YOUTUBE"),PAUSE:kP("PAUSE"),PLAY:kP("PLAY"),PLAYER_CAPTION:kP("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:kP("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:kP("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:kP("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:kP("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:kP("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:kP("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:kP("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:kP("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:kP("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:kP("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:kP("PLAYER_MINIMIZE"),PLAYER_NEXT:kP("PLAYER_NEXT"),PLAYER_PAUSE:kP("PLAYER_PAUSE"),PLAYER_PLAY:kP("PLAYER_PLAY"),
PLAYER_PREVIOUS:kP("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:kP("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:kP("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:kP("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:kP("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:kP("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:kP("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:kP("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:kP("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:kP("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:kP("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:kP("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:kP("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:kP("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:kP("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:kP("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:kP("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:kP("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:kP("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:kP("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:kP("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:kP("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:kP("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:kP("PLAY_ALL"),PLEASE_FIX_ERRORS:kP("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:kP("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:kP("PREVIOUS_VIDEO"),PRIVACY_POLICY:kP("PRIVACY_POLICY"),RELOAD:kP("RELOAD"),REQUIRED_LABEL:kP("REQUIRED_LABEL"),SAVE_PLAYLIST:kP("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:kP("SCRUB_SLIDE_USER_EDU"),SEARCH:kP("SEARCH","Search"),
SEARCH_APPEND_LABEL:kP("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:kP("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:kP("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:kP("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:kP("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:kP("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:kP("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:kP("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:kP("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:kP("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:kP("SEEK_SLIDER"),SETTINGS_LABEL:kP("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:kP("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:kP("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:kP("SHOW_LESS"),SHOW_MORE:kP("SHOW_MORE"),SHOW_PLAYER_CONTROLS:kP("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:kP("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:kP("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:kP("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:kP("SIGN_IN_ON_WEB"),STABLE_VOLUME:kP("STABLE_VOLUME"),STABLE_VOLUME_OFF:kP("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:kP("STABLE_VOLUME_ON"),STATS_FOR_NERDS:kP("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:kP("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:kP("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:kP("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:kP("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:kP("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:kP("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:kP("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:kP("TIMESTAMP_SECONDS"),TOGGLE_OFF:kP("TOGGLE_OFF"),TOGGLE_ON:kP("TOGGLE_ON"),TRENDING:kP("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:kP("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:kP("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:kP("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:kP("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:kP("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:kP("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:kP("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:kP("VIDEO_LINK_LABEL")};var msF=_.$c(function(K){var X=K.playerApi;K=_.t_(function(P){_.d8(P,36843)});
var F=kP("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.Q("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.Q("button",{el:K,class:"ytPlayerControlsJumpForwardButtonButton",title:F,"aria-label":F,"on:click":_.DF(function(){_.ee(36843);X&&X().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.Q("span",null,_.Q(_.ZF,{icon:"FAST_FORWARD"}))))},"Rf");var Gvk=_.$c(function(K){var X=K.appApi;K=_.t_(function(P){_.d8(P,62946)});
var F=kP("OPEN_IN_MINIPLAYER");return _.Q("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.Q("button",{el:K,class:"ytMiniplayerButtonButton",title:F,"aria-label":F,"on:click":_.DF(function(){_.ee(62946);var P,H;(H=(P=X()).openInMiniplayer)==null||H.call(P);return!1})},_.Q(_.ZF,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Sf");var lK1=_.$c(function(K){var X=K.playerApi;K=_.t_(function(f){_.d8(f,142812)});
var F=_.D(_.u_(!1,void 0,"I3VCyb")),P=F.next().value,H=F.next().value;F=function(){return kP("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(P()?1:2)})};
return _.Q("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.Q("button",{el:K,class:"ytPlaybackSpeedButtonButton",title:F,"aria-label":F,"on:click":_.DF(function(){_.ee(142812);if(X){var f=X(),u=P();f.setPlaybackRate(u?1:2);H(!P())}return!1})},_.Q("span",null,_.Q(_.ZF,{icon:function(){return P()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Tf");var vMv=_.$c(function(K){var X=K.title;var F=K.ariaLabel;var P=K.icon;var H=K.command;var f=K.veType;K=_.t_(function(u){f&&_.d8(u,f())});
return _.Q("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.Q("button",{el:K,class:"ytdThumbnailOverlayButtonButton",title:X,"aria-label":F,"on:click":_.DF(function(){f&&_.ee(f());H&&_.i9().resolve(_.xU).resolveCommand(H())})},_.Q(_.ZF,{icon:P})))},"Uf");var Cr="";var aKk=_.$c(function(K){var X=K.playerControlsProps,F=K.onClickFn;K=_.Qs(function(){var f=X(),u=-1;f.captionsAvailable&&(u=f.captionsEnabled?1:0);return u},void 0,"WecR8e");
var P=_.Qs(function(){var f=X();return f.captionsAvailable?_.uY(f.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.uY("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),H=_.Qs(function(){var f=X();
f=f.captionsAvailable?f.captionsEnabled:void 0;return f},void 0,"Q17ly");
return _.Q("yt-closed-captions-toggle-button",null,_.Q(_.Zs1,{captionIconType:K,ariaLabel:P,ariaPressed:H,onClick:function(f){var u=X();if(u.captionsAvailable){var J=u.playerApi;if(J){var Z=u.playerApi;if(Z){var M=Cr;if(M){Z=Z.getOption("captions","track");var n;Cr=(n=Z?Z.displayName:null)!=null?n:M}else _.Wq(Z)?(M=_.h7d(Z),Cr=M.length?(n=git(M))?n.displayName:M[0].displayName:""):Cr=""}EiF(J);_.S("mweb_disable_set_state_captions_killswitch")&&u.setState({captionsEnabled:!u.captionsEnabled})}}var c,
B;(B=(c=u.appApi).showCaptionsToggleToast)==null||B.call(c,u);F==null||F(f)},
isOverlay:!0}))},"Vf");var tjk=_.$c(function(K){var X=K.data;return _.Q("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.Q(_.tf,{data:function(){return{type:16,text:_.JJl(X().label)}}}))},"Wf");var $ss=_.$c(function(K){var X=_.HO("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return K.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return K.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return K.size()==="small"?K.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
K.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.Q("animated-seek-arrows",{class:_.HO("ytPlayerControlsAnimatedSeekArrowsHost")},_.Q("span",{class:X}),_.Q("span",{class:X}),_.Q("span",{class:X}))},"Xf");
$ss.idomCompat=!0;var OvG=_.$c(function(){var K=_.uY("PLAYER_SECONDS",{seconds_placeholder:"30"}),X=_.D(_.u_(!1,void 0,"Yj8msb")),F=X.next().value,P=X.next().value,H=_.D(_.u_(!1,void 0,"r9Z50e"));X=H.next().value;var f=H.next().value;H={};var u=_.HO("jumpForwardOverlayOverlay",(H.jumpForwardOverlayOverlayHidden=X,H));_.AV(function(){var J=null,Z=null,M=function(){J!==null&&_.Bj().cancelJob(J);Z!==null&&_.Bj().cancelJob(Z);f(!0);P(!0);_.xO(_.Bj(),function(){f(!1)});
J=_.xO(_.Bj(),function(){f(!0);Z=_.xO(_.Bj(),function(){P(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",M);_.AZ(function(){window.removeEventListener("jump-forward-clicked",M)})});
return _.Q("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.Q(_.p,{cond:F,then:function(){return _.Q("div",{class:u},_.Q($ss,{direction:1,size:"large"}),_.Q("div",null,K))}}))},"Yf");var np5=_.ap.MUTE_VOLUME,MA8=_.ap.UNMUTE_VOLUME,Vjt=_.$c(function(K){var X=K.muteIconType;var F=K.onClick;var P=K.useOutlineIcon;K=_.t_(function(f){_.d8(f,28662)});
var H=function(){return cE1(X(),P==null?void 0:P()).ariaLabel};
return _.Q("ytm-mute-button",{class:"ytmMuteButtonHost"},_.Q("button",{el:K,class:"ytmMuteButtonButton",title:H,"aria-label":H,"on:click":_.DF(function(f){_.ee(28662);F==null||F(f);return!1})},_.Q("span",null,_.Q(_.ZF,{icon:function(){return cE1(X(),P==null?void 0:P()).iconName}}))))},"Zf");var gMW=_.$c(function(K){var X=K.volumeProps;var F=K.onClickFn;var P=K.useOutlineIcon;return _.Q("yt-mute-toggle-button",null,_.Q(Vjt,{muteIconType:function(){var H=X(),f=!_.S("mweb_treat_zero_volume_as_muted_killswitch")&&H.volume===0;return H.volumeMuted||f?0:1},
onClick:function(H){var f=X().playerApi;f&&(f.isMuted()?f.unMute():f.mute(!1));F==null||F(H)},
useOutlineIcon:function(){return!(P==null||!P())}}))},"$f");
gMW.idomCompat=!0;var EM8=_.$c(function(K){var X=K.data;var F=_.t_();return _.Q("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:F,"on:animationend":_.DF(function(){F.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.Q(_.ku,{command:function(){return X().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.Q(_.p,{cond:function(){var P;return(P=X().icon)==null?void 0:P.iconType},
then:function(){return _.Q("span",null,_.Q(_.ZF,{icon:function(){var P;return(P=X().icon)==null?void 0:P.iconType}}))}}),_.Q("div",{class:"ytmPaidContentOverlayText"},_.Q(_.Oy,{text:function(){return X().text}})),_.Q(_.p,{cond:function(){return X().navigationEndpoint},
then:function(){return _.Q(_.ZF,{icon:"CHEVRON_RIGHT"})}})))},"ag");
EM8.idomCompat=!0;var pfs=[].concat(_.LZ([{register:function(K){var X=yE5(K),F;(F=K().playerApi)==null||F.addEventListener("onVolumeChange",X);return function(){}}},
{register:function(K){var X=WPs(K);K=K().playerApi;K==null||K.addEventListener("captionschanged",X);K==null||K.addEventListener("captionssettingschanged",X);K==null||K.addEventListener("onCaptionsTrackListChanged",X);return function(){}}},
{register:function(K){if(!_.S("mweb_screenreader_accessible_player"))return function(){};
var X=d48(K),F=document.querySelector("video");F==null||F.addEventListener("touchend",X);return function(){F==null||F.removeEventListener("touchend",X)}}},
{register:function(K){if(!_.S("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var X=d48(K),F=document.querySelector("video");F==null||F.addEventListener("focus",X);return function(){F==null||F.removeEventListener("focus",X)}}}]),[{register:function(K){var X=rEv(K),F;
(F=K().playerApi)==null||F.addEventListener("onStateChange",X);return function(){}}},
{register:function(K){var X=AEo(K),F;(F=K().playerApi)==null||F.addEventListener("onPlaybackRateChange",X);return function(){}}},
{register:function(K){var X=jRF(K),F;(F=K().playerApi)==null||F.addEventListener("onVideoDataChange",X);return function(){}}},
{register:function(K){var X=wf5(K),F,P;(F=K())==null||(P=F.playerApi)==null||P.addEventListener("onVideoProgress",X);return function(){}}}]);var bvG=_.$c(function(K){var X=K.data;var F=function(){return _.uY("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+X().playbackRate})};
return _.Q(_.p,{cond:function(){return X().playbackRate&&X().playbackRate!==1},
then:function(){return _.Q("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.Q("div",{class:"ytPlaybackRateOverlayOverlay"},_.Q($ss,{direction:1,size:"small"}),_.Q("div",{class:"ytPlaybackRateOverlayLabel"},F)))}})},"bg");var C_d=_.$c(function(K){var X=K.data;return _.Q("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.Q(_.p,{cond:function(){var F,P=(F=X())==null?void 0:F.playerResponse,H;return P==null?void 0:(H=P.paidContentOverlay)==null?void 0:H.paidContentOverlayRenderer},
then:function(F){return _.Q(EM8,{data:F})}}))},"dg"),NsJ=_.$c(function(K){var X=K.props;
var F=K.data;var P=K.options;var H=function(){var M,n,c,B;return(M=F())==null?void 0:(n=M.playerResponse)==null?void 0:(c=n.playerConfig)==null?void 0:(B=c.inlinePlaybackConfig)==null?void 0:B.showAudioControls},f=function(){var M,n;
if(H()&&((M=P())==null?void 0:(n=M.additionalButton)==null?void 0:n.button)!==void 0){var c,B,L;M=(c=F())==null?void 0:(B=c.playerApi)==null?void 0:(L=B.getSize())==null?void 0:L.height;if(!(M===void 0||M<180)){var A,d;return(A=P())==null?void 0:(d=A.additionalButton)==null?void 0:d.button}}},u=function(){var M,n;
return(M=P())==null?void 0:(n=M.additionalButton)==null?void 0:n.thumbnailOverlayButtonRenderers},J=function(){var M,n;
return(M=P())==null?void 0:(n=M.additionalButton)==null?void 0:n.thumbnailOverlayButtonViewModels},Z=function(){var M=[_.Q(gMW,{volumeProps:X}),
_.Q(aKk,{playerControlsProps:X})];f()===1&&M.push(_.Q(msF,{playerApi:function(){return X().playerApi}}));
f()===2&&M.push(_.Q(Gvk,{appApi:function(){return X().appApi}}));
f()===3&&M.push(_.Q(lK1,{playerApi:function(){return X().playerApi}}));
var n=u();if(f()===4&&n){n=_.D(n);for(var c=n.next(),B={};!c.done;B={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$52:void 0,command$jscomp$570:void 0},c=n.next()){c=c.value;B.tooltip$jscomp$2=c.tooltip;var L=void 0,A=void 0;B.ariaLabel$jscomp$20=((L=c.accessibility)==null?void 0:(A=L.accessibilityData)==null?void 0:A.label)||B.tooltip$jscomp$2;L=void 0;B.icon$jscomp$52=(L=c.icon)==null?void 0:L.iconType;B.command$jscomp$570=c.command;B.tooltip$jscomp$2&&B.ariaLabel$jscomp$20&&B.icon$jscomp$52&&
M.push(_.Q(vMv,{title:function(d){return function(){return d.tooltip$jscomp$2}}(B),
ariaLabel:function(d){return function(){return d.ariaLabel$jscomp$20}}(B),
icon:function(d){return function(){return d.icon$jscomp$52}}(B),
command:function(d){return function(){return d.command$jscomp$570}}(B)}))}}n=J();
if(f()===4&&n)for(n=_.D(n),c=n.next(),B={};!c.done;B={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$53:void 0,command$jscomp$571:void 0},c=n.next())c=c.value,B.tooltip$jscomp$3=c.title,B.ariaLabel$jscomp$21=c.accessibilityText||B.tooltip$jscomp$3,B.icon$jscomp$53=c.iconName,B.command$jscomp$571=_.w$(c.onTap),B.tooltip$jscomp$3&&B.ariaLabel$jscomp$21&&B.icon$jscomp$53&&M.push(_.Q(vMv,{title:function(d){return function(){return d.tooltip$jscomp$3}}(B),
ariaLabel:function(d){return function(){return d.ariaLabel$jscomp$21}}(B),
icon:function(d){return function(){return d.icon$jscomp$53}}(B),
command:function(d){return function(){return d.command$jscomp$571}}(B)}));
return M};
return _.Q(_.p,{cond:H,then:function(){return _.Q("div",{class:"ytInlinePlayerControlsTopRightControls"},_.Q(_.cd,{each:Z},function(M){return _.Q("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.Q("div",{class:"ytInlinePlayerControlsButtonIcon"},M))}))}})},"eg"),IK5=_.$c(function(K){var X=K.props;
var F=K.data;var P=K.options;K={};K=_.HO("ytInlinePlayerControlsBottomRightControls",(K.ytInlinePlayerControlsBottomRightControlsHidden=function(){var H;return R9t(F(),P())&&((H=P())==null?void 0:H.insetProgressBar)&&(X().isHovering||X().isDragging)},K));
return _.Q("div",{class:K},_.Q(ivd,{data:F}),_.Q(_.p,{cond:function(){var H;return!((H=P())==null?0:H.hideTimeDisplay)},
then:function(){return _.Q(xs8,{props:X,data:F})}}))},"fg"),ivd=_.$c(function(K){var X=K.data;
return _.Q(_.Md,{data:function(){var F;return Z8d((F=X())==null?void 0:F.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:tjk})},"gg"),xs8=_.$c(function(K){var X=K.props;
var F=K.data;return _.Q(_.p,{cond:function(){return X().isLive},
then:function(){return _.Q(kv8,null)},
else:function(){return _.Q(Kzs,{props:X,data:F})}})},"hg"),Kzs=_.$c(function(K){var X=K.props;
var F=K.data;var P=_.Qs(function(){var H;return QR8((H=F())==null?void 0:H.thumbnailOverlays)},void 0,"kUmuA");
return _.Q("div",{class:_.HO("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.ap.PLAYER_TIME_ELAPSED+" "+_.pQ9(X().playedTime)}},_.Q(_.tf,{data:function(){var H=_.pQ9(X().videoDuration-X().playedTime);
return Object.assign({},{type:16,text:H},P())}}))},"ig"),kv8=_.$c(function(){return _.Q("div",{class:_.HO("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.Q(_.tf,{data:{type:17,
text:_.ap.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"jg"),Xd5=_.$c(function(K){var X=K.props;
var F=K.data;var P=K.options;return _.Q(_.Awk,{progressBarProps:X,config:function(){var H,f=_.T((H=F())==null?void 0:H.multiMarkersPlayerBar,_.FQE),u;H=((u=P())==null?0:u.insetProgressBar)?2:1;var J;u=(J=P())==null?void 0:J.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:H,chapterData:f,isInlinePlayback:!0,doSeekOnClick:u,playheadDotBehavior:u?1:0}}})},"kg");_.EP(_.$c(function(K){var X=K.data;var F=K.appApi;var P=K.options;var H=TpJ(X,e9t(F));K={};F={};return _.Q("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.Q("div",{class:_.HO("ytInlinePlayerControlsDarkenedOverlay",(K.ytInlinePlayerControlsDarkenedOverlayShow=function(){return H().isHovering},K))}),_.Q(OvG,null),_.Q(bvG,{data:H}),_.Q(C_d,{data:X}),_.Q(h_W,{playerControlsProps:H,
isShortsPage:!1}),_.Q("div",{class:_.HO((F.ytInlinePlayerControlsControlsHidden=function(){return H().isDragging},F))},_.Q(NsJ,{props:H,
data:X,options:P}),_.Q(IK5,{props:H,data:X,options:P})),_.Q(_.p,{cond:function(){return R9t(X(),P())},
then:function(){return _.Q(Xd5,{props:H,data:X,options:P})}}))},"cg"),"yt-inline-player-controls",{props:{data:_.vU,
appApi:_.g$,options:_.vU}});var t5=function(){var K=_.G.apply(this,arguments)||this;K.opts=null;K.playerControlsData=null;K.playerControlsAppApi={openInMiniplayer:function(){K.openInMiniplayer()}};
K.playerControlsOptions={};K.noAnimation=!1;K.playbackIntentTriggered=!1;K.positionData=null;K.hidden=!0;K.active=!1;K.playing=!1;K.videoPreviewDataIndex=0;K.JSC$16883_playerPromise=null;K.player=null;K.enableAudioControls=!1;K.hasBeenUnmuted=!1;K.captionsHaveBeenTurnedOff=!1;K.JSC$16883_playerEvents=new Map;K.videoPreviewFetchRequest=null;K.scheduledPreviewEndJobId=null;K.JSC$16883_preventProgressSaveTimer=null;K.watchEndpointStartTimeUpdaterInterval=null;K.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};K.windowOnBlurFn=function(){K.deactivate()};
return K};
_.r(t5,_.G);_.z=t5.prototype;
_.z.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.S("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.z.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16883_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16883_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16883_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16883_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.Pc(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.Pc(this,this.onScroll))};
_.z.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.Pc(this,this.onScroll))};
_.z.onPageTypeChange=function(){this.deactivate()};
_.z.onWindowResized=function(){this.deactivate()};
_.z.onCaptionsChanged=function(K){K=!!K.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!K);this.setCaptionSize()};
_.z.setCaptionSize=function(){var K;if(this.active&&!this.captionsHaveBeenTurnedOff&&((K=this.player)==null?0:K.getCaptionWindowContainerId())){var X;(X=this.player)==null||X.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.z.currentPageAllowed=function(){return!this.isWatchPage};
_.z.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var K=this.positionData,X=K.initialTopPosition,F=K.initialHorizontalPosition;_.XU(this.hostElement,{"--ytd-video-preview-translate-left":K.finalHorizontalPosition-F+"px","--ytd-video-preview-translate-top":K.finalTopPosition-X+"px","--ytd-video-preview-original-top-position":X+"px","--ytd-video-preview-original-horizontal-position":F+"px",
"--ytd-video-preview-initial-scale":"scale("+K.initialScale+")","--ytd-video-preview-width":K.videoPreviewWidth+"px","--ytd-video-preview-height":K.videoPreviewHeight+"px"});return!0};
_.z.handleOpenVideoPreviewAction=function(K){var X=this,F;return _.q(function(P){if(!X.currentPageAllowed())return P.return(0);X.opts=K;return(F=X.alignVideoPreviewForAnimation(K.thumbnail))?P.return(X.activate()):P.return(0)})};
_.z.onMouseLeave=function(K){this.shouldDeactivateOnMouseLeave(K)&&this.deactivate()};
_.z.onScroll=function(){var K,X;((K=this.opts)==null?0:K.isAutoplay)&&((X=this.opts)==null?0:X.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.z.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.A9.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.z.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.z.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",t5.JSC$16882_DEFAULT_CLICK_LOCATION_BEHAVIOR,t5.JSC$16882_CLICK_LOCATION_ID_MAP)};
_.z.shouldDeactivateOnMouseLeave=function(K){K=K.relatedTarget;if(!K)return!0;var X;return(X=this.opts)!=null&&X.mediaRenderer?!_.ND(this.opts.mediaRenderer).contains(K):!0};
_.z.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.z.onPlaybackStart=function(){var K=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$16883_preventProgressSaveTimer=
_.xO(_.A9,function(){K.resetPreventProgressSaveTimer()},1E4);
var X;if((X=this.opts)==null?0:X.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.xO(_.A9,function(){K.hasMultipleVideoPreviews()?K.startPlaybackForNextVideo():K.deactivate()},this.opts.videoPreviewDurationMs);
var F;this.player.setGlobalCrop(((F=this.opts)==null?0:F.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.z.getRoundedCornersSize=function(){var K;if((K=this.opts)==null?0:K.roundedCornersSize){var X;return(X=this.opts)==null?void 0:X.roundedCornersSize}var F;if((F=this.opts)==null?0:F.enableRounding){var P;if(((P=this.opts)==null?void 0:P.thumbnailSize)==="small")return 1;var H;if(((H=this.opts)==null?void 0:H.thumbnailSize)==="medium")return 2;var f;if(((f=this.opts)==null?void 0:f.thumbnailSize)==="large")return 3}return _.S("web_imp_inset_progress_bar")?3:0};
_.z.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.z.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.z.onMediaContainerClick=function(K){this.isShortcutClick(K)||(this.navigateToWatch(K),K.preventDefault(),K.stopPropagation())};
_.z.activate=function(){var K=this,X,F,P,H,f,u,J,Z,M;return _.q(function(n){switch(n.nextAddress){case 1:if(!K.currentPageAllowed())return n.return(0);F=(X=K.videoPreviewData)==null?void 0:X.inlinePlaybackEndpoint;P=_.dn.instance;if(!F||!P)return n.return(0);K.playbackIntentTriggered=!0;((H=K.opts)==null?0:H.mediaRenderer)&&((f=K.opts)==null||!f.isAutoplay)&&qOo(K.opts.mediaRenderer,function(){K.deactivate()});
_.tg(K,function(){K.revealPreviewUi()});
u={};_.S("enable_unknown_lact_fix_on_html5")&&(_.i9().resolve(_.BO),u.lact=_.xg());K.videoPreviewFetchRequest=H81(P,K.getInlinePlaybackRequestData(K.videoPreviewData),u);_.s2(n,2);return _.Y(n,K.videoPreviewFetchRequest,4);case 4:J=n.yieldResult;if(((Z=J)==null?void 0:(M=Z.playabilityStatus)==null?void 0:M.status)==="OK")return n.return(K.handlePlayerResponse(J));throw Error("Fj");case 2:_.qc(n),K.deactivate();case 3:return n.return(1)}})};
_.z.getInlinePlaybackRequestData=function(K){var X,F=_.S("web_imp_player_mute_params")?((X=this.opts)==null?void 0:X.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:K.inlinePlaybackEndpoint,startPlaybackInMutedState:F}};
_.z.handlePlayerResponse=function(K){var X=this,F,P,H,f,u,J,Z,M,n,c;return _.q(function(B){if(B.nextAddress==1){F=X.getInlinePlaybackVideoId();if(!(((P=K)==null?0:(H=P.videoDetails)==null?0:H.videoId)&&X.currentPageAllowed()&&X.playbackIntentTriggered&&X.opts&&F))return X.deactivate(),B.return(0);if(K.videoDetails.videoId!==F)return B.return(0);X.enableAudioControls=!!((f=K.playerConfig)==null?0:(u=f.inlinePlaybackConfig)==null?0:u.showAudioControls);K.trackingParams=X.getInlinePlaybackTrackingParams();
if(!X.inlinePlayer)return B.return(0);J={};if(M=_.T((Z=X.videoPreviewData)==null?void 0:Z.inlinePlaybackEndpoint,_.vg))J.watch_endpoint=M;if(X.videoPreviewData){var L,A=(L=_.T(X.videoPreviewData.inlinePlaybackEndpoint,_.vg))==null?void 0:L.startTimeSeconds;A!==void 0&&(K.playerConfig||(K.playerConfig={}),K.playerConfig.playbackStartConfig||(K.playerConfig.playbackStartConfig={}),K.playerConfig.playbackStartConfig.startPosition||(K.playerConfig.playbackStartConfig.startPosition={}),K.playerConfig.playbackStartConfig.startSeconds=
A,K.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(A*1E3))}X.inlinePlayer.loadVideoWithPlayerResponse(K,J);if(X.JSC$16883_playerPromise)return B.jumpTo(2);X.JSC$16883_playerPromise=X.inlinePlayer.getPlayerPromise();return _.Y(B,X.JSC$16883_playerPromise,3)}B.nextAddress!=2&&(n=B.yieldResult,n.setInlinePreview(!0),n.setSizeStyle(!1,!0),X.ytPlayerListenerBehavior.listenToPlayerEvents(n,X.JSC$16883_playerEvents),X.player=n,_.iX(X.hostElement,"player-api-ready"));((c=X.opts)==
null?0:c.showPlayerControls)&&X.videoPreviewData&&X.player&&(X.playerControlsData={playerResponse:K,isInlinePlayback:!0,thumbnailOverlays:X.videoPreviewData.thumbnailOverlays,playerApi:X.player},X.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!X.unroundCornersForPlayback,additionalButton:X.getAdditionalButtonType(X.videoPreviewData.thumbnailOverlays)});return B.return(2)})};
_.z.revealPreviewUi=function(){var K=this;this.playbackIntentTriggered&&_.myy(this,function(){K.hasThumbnailPositionChangedSinceTriggered()||(K.updateActiveState(!0),K.noAnimation=!1)})};
_.z.hasThumbnailPositionChangedSinceTriggered=function(){var K=this.positionData,X=this.getThumbnailPositionData();return(K==null?void 0:K.initialTopPosition)!==(X==null?void 0:X.initialTopPosition)||(K==null?void 0:K.initialHorizontalPosition)!==(X==null?void 0:X.initialHorizontalPosition)};
_.z.getThumbnailPositionData=function(){var K,X;if((X=this.opts)==null||!X.thumbnail)return null;X=this.opts.thumbnail;var F=((K=this.opts)==null?0:K.cropPlayerToFillThumbnailHorizontally)?!1:!0;var P=X.getBoundingClientRect();K=P.width;X=P.height;var H=P.top+window.scrollY;P=P.left+window.scrollX;var f=F?Math.ceil(K):K;F=F?Math.ceil(X):X;var u=K/f;K={initialScale:u,initialTopPosition:H-12*u,finalTopPosition:H-12-(F-X)/2,initialHorizontalPosition:P-(12+(f-K)/2),finalHorizontalPosition:P-12-(f-K)/
2,videoPreviewWidth:f,videoPreviewHeight:F};return K};
_.z.updateActiveState=function(K){this.active=K;this.ytdReduxBehavior.dispatch(_.iY({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:K}))};
_.z.stopPlayer=function(K){K=K.resetWatchEndpointStartTime===void 0?!1:K.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(K)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.A9.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.z.deactivate=function(K){K=K===void 0?{}:K;K=K.resetWatchEndpointStartTime===void 0?!1:K.resetWatchEndpointStartTime;Iq&&(Iq.disconnect(),Iq=null);this.stopPlayer({resetWatchEndpointStartTime:K});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.z.isValidThumbnailOverlayButton=function(K,X){K=K.thumbnailOverlayButtonRenderer;var F;return!!K&&!!K.tooltip&&!((F=K.icon)==null||!F.iconType)&&X.includes(K.icon.iconType)};
_.z.isValidThumbnailOverlayButtonViewModel=function(K,X){var F;K=_.T((F=K.thumbnailOverlayButtonViewModel)==null?void 0:F.overlayButton,_.nS);return!!K&&!!K.title&&!!K.iconName&&X.includes(K.iconName)};
_.z.getAdditionalButtonType=function(K){var X=this;if(_.S("web_imp_fastforward_button"))return{button:1};if(_.S("web_imp_miniplayer_button"))return{button:2};if(_.S("web_imp_playback_speed_button"))return{button:3};var F=["BOX_STACK_3"],P=(K||[]).filter(function(f){return X.isValidThumbnailOverlayButton(f,F)}).map(function(f){return f.thumbnailOverlayButtonRenderer});
if(P.length)return{button:4,thumbnailOverlayButtonRenderers:P};var H=["BOX_STACK_3"];K=(K||[]).filter(function(f){return X.isValidThumbnailOverlayButtonViewModel(f,H)}).map(function(f){return _.T(f.thumbnailOverlayButtonViewModel.overlayButton,_.nS)});
if(K.length)return{button:4,thumbnailOverlayButtonViewModels:K}};
_.z.allowCaptions=function(){var K;return!((K=this.opts)==null?0:K.forceCaptionsOff)};
_.z.allowUnmuting=function(){var K;return this.enableAudioControls&&!((K=this.opts)==null?0:K.forceMutedVolume)};
_.z.beginStartTimeUpdater=function(){var K=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.Hm(function(){K.updateWatchEndpointStartTime()},1E3)};
_.z.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.z.resetPreventProgressSaveTimer=function(){this.JSC$16883_preventProgressSaveTimer!==null&&(_.A9.cancelJob(this.JSC$16883_preventProgressSaveTimer),this.JSC$16883_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.z.updateWatchEndpointStartTime=function(K){var X=this.videoPreviewData;if(this.player&&X!=null&&X.inlinePlaybackEndpoint&&!this.JSC$16883_preventProgressSaveTimer){K=K?0:Math.floor(this.player.getCurrentTime());var F=_.T(X.navigationEndpoint,_.vg);F&&(F.startTimeSeconds=K);if(X=_.T(X.inlinePlaybackEndpoint,_.vg))X.startTimeSeconds=K}};
_.z.isShortcutClick=function(K){return!!K&&(K.ctrlKey||K.shiftKey||K.metaKey)};
_.z.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.z.openInMiniplayer=function(){var K=this,X,F;return _.q(function(P){if(P.nextAddress==1){F=(X=K.videoPreviewData)==null?void 0:X.navigationEndpoint;if(!F)return P.return();_.zC().lockupActivation=!0;return _.Y(P,_.C3L(_.i9().resolve(_.Wj),F),2)}_.zC().userActivation=!0;_.JT(P)})};
_.z.navigateToWatch=function(K){var X,F=(X=this.videoPreviewData)==null?void 0:X.navigationEndpoint;if(F){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(F,K,!0);else{if(_.S("web_thumbnail_to_watch_transition")){var P,H;(P=this.opts)==null||(H=P.onNavigateToWatchCallback)==null||H.call(P)}_.iX(this.hostElement,"yt-navigate",{endpoint:F})}this.deactivate()}};
_.z.getInlinePlaybackVideoId=function(){var K,X;return(X=_.T((K=this.videoPreviewData)==null?void 0:K.inlinePlaybackEndpoint,_.vg))==null?void 0:X.videoId};
_.z.getInlinePlaybackTrackingParams=function(){var K,X;return(K=this.videoPreviewData)==null?void 0:(X=K.inlinePlaybackEndpoint)==null?void 0:X.clickTrackingParams};
_.z.hasMultipleVideoPreviews=function(){var K;return!!(((K=this.opts)==null?0:K.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.z.startPlaybackForNextVideo=function(){var K;(K=this.opts)!=null&&K.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())};
_.Oi.Object.defineProperties(t5.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.opts)==null?0:K.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.opts)==null||!K.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 K;if(Array.isArray((K=this.opts)==null?void 0:K.videoPreviewData)){var X;return(X=this.opts)==null?void 0:X.videoPreviewData[this.videoPreviewDataIndex]}var F;return(F=this.opts)==null?void 0:F.videoPreviewData}}});
t5.prototype.onIsAdsVideoChange=t5.prototype.onIsAdsVideoChange;t5.prototype.onInlinePreviewIsEnabledChange=t5.prototype.onInlinePreviewIsEnabledChange;t5.prototype.optsChanged=t5.prototype.optsChanged;t5.prototype.onMouseLeave=t5.prototype.onMouseLeave;t5.JSC$16882_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);t5.JSC$16882_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"}];
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],t5.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],t5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.ld.YtPlayerListenerBehavior),_.g("design:type",_.vC)],t5.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],t5.prototype,"componentBehavior",void 0);
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],t5.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],t5.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.bd.YtSparklesClickLocationBehavior),_.g("design:type",Object)],t5.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],t5.prototype,"opts",void 0);_.O([_.h(),_.g("design:type",Object)],t5.prototype,"playerControlsData",void 0);
_.O([_.h(),_.g("design:type",Object)],t5.prototype,"playerControlsAppApi",void 0);_.O([_.h(),_.g("design:type",Object)],t5.prototype,"playerControlsOptions",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],t5.prototype,"noAnimation",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],t5.prototype,"hidden",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],t5.prototype,"active",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],t5.prototype,"playing",void 0);_.O([_.h({selector:_.YHq}),_.g("design:type",Boolean)],t5.prototype,"inlinePreviewIsEnabled",void 0);_.O([_.h(),_.g("design:type",String)],t5.prototype,"pagePath",void 0);_.O([_.h({selector:_.TS}),_.g("design:type",Boolean)],t5.prototype,"isWatchPage",void 0);_.O([_.U("videoPreviewData"),_.g("design:type",Object),_.g("design:paramtypes",[])],t5.prototype,"thumbnailData",null);
_.O([_.U("opts","active"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],t5.prototype,"hidePlayerControls",null);_.O([_.U("opts"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],t5.prototype,"isAdsVideo",null);_.O([_.U("opts"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],t5.prototype,"roundedCornersSmall",null);
_.O([_.U("opts"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],t5.prototype,"roundedCornersMedium",null);_.O([_.U("opts"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],t5.prototype,"roundedCornersLarge",null);_.O([_.U("opts"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],t5.prototype,"unroundCornersForPlayback",null);
_.O([_.U("opts","videoPreviewDataIndex"),_.g("design:type",Object),_.g("design:paramtypes",[])],t5.prototype,"videoPreviewData",null);_.O([_.h(),_.g("design:type",Object)],t5.prototype,"videoPreviewDataIndex",void 0);_.O([_.fa("#inline-player"),_.g("design:type",Object)],t5.prototype,"inlinePlayer",void 0);_.O([_.Hc("mouseleave"),_.g("design:type",Function),_.g("design:paramtypes",[MouseEvent]),_.g("design:returntype")],t5.prototype,"onMouseLeave",null);
_.O([_.JA("opts"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],t5.prototype,"optsChanged",null);_.O([_.JA("inlinePreviewIsEnabled"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],t5.prototype,"onInlinePreviewIsEnabledChange",null);_.O([_.so("isAdsVideo"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],t5.prototype,"onIsAdsVideoChange",null);
t5=_.O([_.v({is:"ytd-video-preview",disableElementRegistration:!0})],t5);
_.t(t5,"ytd-video-preview",function(){if(Usv!==void 0)return Usv;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Usv=K},{mode:2});
}catch(e){_._DumpException(e)}
try{
var VC5,gk8,Ekt;VC5=function(K){return _.S("kevlar_watch_cinematics_invisible")||K.fullscreen&&_.S("kevlar_watch_cinematics_invisible_in_fullscreen")||K.theater&&!K.fullscreen&&_.S("kevlar_watch_cinematics_invisible_in_theater")};
gk8=function(){var K=document.createElement("canvas"),X=K.getContext("2d");if(!X)throw Error("Ul");_.TM(K,{position:"absolute",width:"100%",height:"100%"});return{element:K,context:X}};
Ekt=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.S("kevlar_watch_cinematics_css_blur")};
_.bPv=function(K,X,F){return Math.abs(K-X)<=(F||1E-6)};
_.CAJ=function(K,X){return K==X?!0:K&&X?K.width==X.width&&K.height==X.height:!1};_.NW8=new _.b("notificationActionRenderer");var iPv=function(K){var X=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.K$;this.element.addEventListener("load",function(){X.loaded=!0;X.resolver.resolve(X.element)});
this.element.addEventListener("error",function(){X.failed=!0});
this.element.src=K};var xjG=function(K,X){this.image=K;this.frame=X};
xjG.prototype.drawToCanvas=function(K,X){var F=this.frame.width/this.frame.columns,P=this.frame.height/this.frame.rows,H=X.offsetX,f=X.offsetY;VC5(X)?(K.fillStyle=X.fullscreen?"#000":"#0f0f0f",K.fillRect(H,f,(X==null?void 0:X.width)||F,(X==null?void 0:X.height)||P)):K.drawImage(this.image,this.frame.column*F,this.frame.row*P,F,P,H,f,(X==null?void 0:X.width)||F,(X==null?void 0:X.height)||P)};
var Icw=function(K){this.color=K};
Icw.prototype.drawToCanvas=function(K,X){var F=X.offsetX,P=X.offsetY,H=X.width,f=X.height;K.fillStyle=VC5(X)?X.fullscreen?"#000":"#0f0f0f":this.color;K.fillRect(F,P,H,f)};var Kc=function(K,X){_.ES.call(this);this.playerApi=X;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.q4(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();kH1(this,K);KRs(this);this.update()};
_.r(Kc,_.ES);Kc.prototype.addEventListeners=function(){var K=this,X=function(){K.update()},F=function(H){K.paused||(H.type==="newdata"&&(K.mosaics.clear(),XZW(K),XI(K)),KRs(K),K.update())},P=function(){K.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",X);this.playerApi.addEventListener("onVideoDataChange",F);this.playerApi.addEventListener("onStateChange",P);this.addOnDisposeCallback(function(){K.playerApi.removeEventListener("onVideoProgress",X);K.playerApi.removeEventListener("onVideoDataChange",F);K.playerApi.removeEventListener("onStateChange",P)})};
var kH1=function(K,X){K.cinematicContainerRenderer!==X&&(K.cinematicContainerRenderer=X,XZW(K),XI(K),K.colorStoreUpdateJobId=_.A9.addLowPriorityJob(function(){var F;if((F=K.cinematicContainerRenderer.colorStore)!=null&&F.sampledColors){F=Infinity;for(var P=_.D(K.cinematicContainerRenderer.colorStore.sampledColors),H=P.next();!H.done;H=P.next()){H=H.value;var f=Number(H.key);f!==0&&f<F&&(F=f);f=_.wq(H.value);K.colorStore.set(H.key,f)}K.colorStoreTimeInterval=F}}))},XZW=function(K){K.colorStoreUpdateJobId&&
(_.A9.cancelJob(K.colorStoreUpdateJobId),K.colorStoreUpdateJobId=void 0);
K.colorStore.clear();K.currentStoryboardColor=void 0},FRo=function(K,X){var F;
return(F=K.getStoryboardFrame(X))==null?void 0:F.url};
Kc.prototype.onPlayerStateChange=function(){this.update()};
Kc.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var KRs=function(K){var X=K.getStoryboardFrame(0);X&&(X=new _.q4(X.width/X.columns,X.height/X.rows),_.CAJ(K.currentStoryboardSize,X)||(K.currentStoryboardSize=X,K.publish("STORYBOARD_SIZE_CHANGED",K.currentStoryboardSize)))},PgW=function(K,X){K.currentStoryboardIndex=X;
K.pendingStoryboardIndex=NaN;X=K.getStoryboardFrame(K.currentStoryboardIndex);K.currentStoryboard=new xjG(K.mosaics.get(X.url).element,X);K.publish("STORYBOARD_CHANGED",K.currentStoryboard);K.lastUpdateTime=(0,_.CG)()};
Kc.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var XI=function(K){K.currentStoryboardIndex=NaN;K.pendingStoryboardIndex=NaN;K.currentStoryboard&&(K.currentStoryboard=void 0,K.publish("STORYBOARD_CHANGED",void 0));K.lastUpdateTime=NaN};
Kc.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)XI(this);else{var K=this.playerApi.getPlayerState(1);if(K===-1||K===5||K===0)XI(this);else if(isNaN(this.lastUpdateTime)||!((0,_.CG)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(K=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){K=""+Math.round(K*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var X=this.colorStore.get(K);X?X!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=X,this.currentStoryboard=new Icw(X),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.CG)()):(_.yy(new _.nG("Could not find color for timestamp: "+K,this.cinematicContainerRenderer)),XI(this))}else XI(this);else H0w(this,K)}};
var H0w=function(K,X){var F=K.getStoryboardFrameIndex(X);if(F!==K.currentStoryboardIndex&&F!==K.pendingStoryboardIndex){X=FRo(K,F);var P=K.mosaics.get(X);P?P.loaded&&PgW(K,F):(K.pendingStoryboardIndex=F,F=new iPv(X),K.mosaics.set(X,F),F.resolver.promise.then(function(){if(!K.isDisposed()&&!K.paused&&!isNaN(K.pendingStoryboardIndex)){var H=FRo(K,K.pendingStoryboardIndex);if(H){var f;(f=K.mosaics.get(H))!=null&&f.loaded&&PgW(K,K.pendingStoryboardIndex)}else XI(K)}}))}};
Kc.prototype.getStoryboardFrameIndex=function(K){var X=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(K,X)};
Kc.prototype.getStoryboardFrame=function(K){var X=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,F,P;return((P=(F=this.playerApi).getStoryboardFrame)==null?void 0:P.call(F,K,X))||null};
Kc.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var P3=function(K,X,F,P){P=P===void 0?!1:P;_.LJ.call(this);this.cinematicContainerRenderer=X;this.playerApi=F;this.theater=this.fullscreen=!1;var H;this.ambientLightThemeEnabled=!P&&!!(X==null?0:(H=X.config)==null?0:H.enableInLightTheme);this.ambientFullscreenEnabled=P&&_.S("web_cinematic_fullscreen");this.container=document.createElement("div");K.appendChild(this.container);var f;if(_.S("web_cinematic_theater_mode")||_.S("web_cinematic_fullscreen")||(X==null?0:(f=X.config)==null?0:f.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);s_5(this);K=this.ambientV2Container||this.container;this.backCanvas=gk8();this.frontCanvas=gk8();K.appendChild(this.backCanvas.element);K.appendChild(this.frontCanvas.element);this.storyboardManager=new Kc(X,this.playerApi);_.JH(this,this.storyboardManager);this.addEventListeners();z$v(this)?fyk(this,100+FI(this)*3*2,100+FI(this)*3*2):D85(this);uV1(this,this.storyboardManager.currentStoryboard)};
_.r(P3,_.LJ);var s_5=function(K){K.ambientV2Container?qds(K):(_.TM(K.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+JXv(K)+", "+Z0V(K)+")"}),Ekt()&&_.TM(K.container,"filter","blur("+_.kU("cinematic_watch_css_filter_blur_strength",40)+"px)"))},qds=function(K){if(K.ambientV2Container){var X=K.playerApi.getVideoAspectRatio();
_.TM(K.container,{"aspect-ratio":""+X,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.TM(K.ambientV2Container,{"aspect-ratio":""+X,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+JXv(K)+", "+Z0V(K)+")"});Ekt()&&_.TM(K.ambientV2Container,"filter","blur("+_.kU("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
P3.prototype.setFullscreen=function(K,X){this.fullscreen=K;this.theater=!!X;s_5(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),K=this.storyboardManager.currentStoryboard,YdV(this),K&&Q_d(this,K)};
P3.prototype.addEventListeners=function(){var K=this,X=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(H){uV1(K,H)}),F=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){D85(K)});
this.addOnDisposeCallback(function(){K.storyboardManager.unsubscribeByKey(X);K.storyboardManager.unsubscribeByKey(F)});
if(this.ambientV2Container){var P=function(){qds(K)};
this.playerApi.addEventListener("onVideoDataChange",P);this.addOnDisposeCallback(function(){K.playerApi.removeEventListener("onVideoDataChange",P)})}};
var D85=function(K){if(!z$v(K)){var X=K.storyboardManager.currentStoryboardSize;isNaN(X.width)||isNaN(X.height)||fyk(K,Number(X.width)+FI(K)*3*2,Number(X.height)+FI(K)*3*2)}},fyk=function(K,X,F){K.backCanvas.element.width=X;
K.backCanvas.element.height=F;K.frontCanvas.element.width=X;K.frontCanvas.element.height=F},z$v=function(K){return K.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},uV1=function(K,X,F){F=F===void 0?!1:F;
var P=K.frontCanvas.element.getAnimations()[0];P?(P.pause(),K.backCanvas.context.globalAlpha=Number(getComputedStyle(K.frontCanvas.element).opacity),K.frontCanvas.element.style.opacity="0",P.finish()):K.backCanvas.context.globalAlpha=1;K.backCanvas.context.drawImage(K.frontCanvas.element,0,0,K.backCanvas.element.width,K.backCanvas.element.height);YdV(K);X&&Q_d(K,X);X=X?K.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.kU("cinematic_watch_fade_out_duration",500);P=_.kU("cinematic_watch_transition_frame_rate")/
1E3;var H={};P&&(H={easing:"steps("+Math.round(X*P)+")"});(F===void 0?0:F)||K.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:X,iterations:1},H));K.frontCanvas.element.style.opacity="1"},YdV=function(K){var X=K.ambientLightThemeEnabled,F=K.ambientLightThemeEnabled||K.ambientFullscreenEnabled&&!_.S("web_cinematic_fullscreen_v2");
K.frontCanvas.context.fillStyle=K.theater&&X||K.fullscreen&&F?"#000":"#0f0f0f";Ekt()||(K.frontCanvas.context.filter="blur(0)");K.frontCanvas.context.fillRect(0,0,K.frontCanvas.element.width,K.frontCanvas.element.height)},Q_d=function(K,X){Ekt()||(K.frontCanvas.context.filter="blur("+FI(K)+"px)");
K.frontCanvas.context.globalAlpha=_.kU("cinematic_watch_effect_opacity",.4);var F={offsetX:FI(K)*3,offsetY:FI(K)*3,theater:K.theater,fullscreen:K.fullscreen};z$v(K)&&(F.width=100,F.height=100);X.drawToCanvas(K.frontCanvas.context,F);K.frontCanvas.context.globalAlpha=1},FI=function(K){var X;
return(X=K.cinematicContainerRenderer.config.blurStrength)!=null?X:5},JXv=function(K){var X,F;
if((K.fullscreen||K.theater)&&((X=K.cinematicContainerRenderer.config)==null?0:(F=X.watchFullscreenConfig)==null?0:F.colorSourceWidthMultiplier))return K.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var P;return(P=K.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?P:K.cinematicContainerRenderer.config.colorSourceSizeMultiplier},Z0V=function(K){var X,F;
if((K.fullscreen||K.theater)&&((X=K.cinematicContainerRenderer.config)==null?0:(F=X.watchFullscreenConfig)==null?0:F.colorSourceHeightMultiplier))return K.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var P;return(P=K.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?P:K.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
P3.prototype.disposeInternal=function(){_.LJ.prototype.disposeInternal.call(this);this.container.remove()};
P3.prototype.clear=function(){uV1(this,void 0,!0)};
P3.prototype.pause=function(){this.storyboardManager.pause()};var Mxv;Mxv=_.fb(function(){var K,X,F=!((X=(K=document.createElement("canvas")).getContext)==null||!X.call(K,"2d")),P;K=!((P=CSS)==null||!P.supports("filter: blur(0)"));P=!!Element.prototype.animate&&!!Element.prototype.getAnimations;X=_.S("web_cinematic_fullscreen")||_.S("web_cinematic_theater_mode")||_.S("web_cinematic_light_theme")||!1;var H;return F&&K&&P&&(!X||!((H=CSS)==null||!H.supports("aspect-ratio: 1 / 1")))});
_.H3=function(K,X){_.ES.call(this);this.container=K;this.playerApi=X;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=n68(this);this.update()};
_.r(_.H3,_.ES);_.cXs=function(K){var X=document.documentElement.hasAttribute("dark");K.isDarkModeEnabled=X;K.update()};
_.pZV=function(K,X){K.settingEnabled=X;K.update()};
_.H3.prototype.setFullscreen=function(K,X){this.fullscreen=K;this.theater=!!X;this.update()};
_.Byw=function(K,X){K.cinematicContainerRenderer=X;K.cinematicContainerRenderer&&(K.cinematicsVe=_.cO(K.isShorts()?227858:159022),_.k2(_.uH(),K.cinematicsVe),K.loggingClientData={watchCinematicContainerData:{presentationStyle:K.cinematicContainerRenderer.presentationStyle}});K.update()};
_.H3.prototype.isShorts=function(){var K,X;return((K=this.cinematicContainerRenderer)==null?void 0:(X=K.config)==null?void 0:X.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.H3.prototype.isAllowed=function(){var K;if(K=Mxv()){var X,F,P;K=((F=this.cinematicContainerRenderer)==null?void 0:F.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((P=this.cinematicContainerRenderer)==null||!P.colorStore)||((X=this.cinematicContainerRenderer)==null?void 0:X.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(K)if(_.S("web_cinematics_pausing")){var H,f;K=this.isDarkModeEnabled||!!((H=this.cinematicContainerRenderer)==
null?0:(f=H.config)==null?0:f.enableInLightTheme)}else{var u,J;H=!!((u=this.cinematicContainerRenderer)==null?0:(J=u.config)==null?0:J.enableInLightTheme)&&(_.e8("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);K=this.isDarkModeEnabled||H}if(u=K){var Z,M;u=!((M=(Z=this.prefersReducedMotionQuery)==null?void 0:Z.matches)!=null&&M)}return u};
_.Sd1=function(K){(K=K.currentCinematicEffect)!=null&&(K=K.storyboardManager,K.paused=!1,KRs(K),K.update())};
_.H3.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var n68=function(K){if(!_.S("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var X=window.matchMedia("(prefers-reduced-motion: reduce)"),F=function(){K.update()};
X.addListener(F);K.addOnDisposeCallback(function(){X.removeListener(F)});
return X}};
_.H3.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var K=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new P3(this.container,K,this.playerApi,this.isDarkModeEnabled),_.JH(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var X=this.currentCinematicEffect;X.cinematicContainerRenderer!==
K&&(X.cinematicContainerRenderer=K,kH1(X.storyboardManager,K),s_5(X));K=_.ZO();_.YX(0,194,!0);K.save();K=_.AD();this.cinematicsVe&&K&&_.G6(K,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(K=_.AD(),this.cinematicsVe&&K&&_.lY(K,[this.cinematicsVe],!1,this.loggingClientData),_.ik(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.Oi.Object.defineProperties(_.H3.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var BWG;var S0V;_.pa({_template:function(){if(S0V!==void 0)return S0V;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=
K.content,F=X.insertBefore;BWG===void 0&&(BWG=document.createElement("template"));var P=BWG;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return S0V=K},
is:"tp-yt-iron-pages",behaviors:[_.SL,_.Uo],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var Qq8;_.Mek=function(){if(_.S("kevlar_home_skeleton")&&!Qq8){var K=document.querySelector("#home-page-skeleton");K&&(_.Ac("hgcr"),_.c_(K),Qq8=!0)}};
Qq8=!1;_.Lh=new _.b("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var Z_s,Yfw,Qeo,Mzw,nyV,cat,SfG,LwF,TvW,oy8,pBW,Bvt,jeW,wBW;_.Jaw=function(K,X,F){X=X===void 0?5:X;if(X!==0){var P=typeof K==="function"?K():document.querySelector(K);P?(F==null?0:F.enableSmartFocus)?_.Kz3(P):P.focus():setTimeout(function(){_.Jaw(K,X-1,F)},500)}};
Z_s=function(K){return _.IPd(_.xly(K&16777215))<.5};
Yfw=function(K,X,F){var P=F.minimumRowsOfVideosBetweenSections===void 0?1:F.minimumRowsOfVideosBetweenSections;return K<(F.minimumRowsOfVideosAtStart===void 0?2:F.minimumRowsOfVideosAtStart)||X!==null&&K-X<=P?!1:!0};
Qeo=function(K,X){var F=0,P=0;K=_.D(K);for(var H=K.next();!H.done;H=K.next()){var f=H.value;if(f.richItemRenderer)f.richItemRenderer.rowIndex=P,f.richItemRenderer.colIndex=F++,F===X&&(F=0,P++);else if(f.richGroupRenderer&&f.richGroupRenderer.numColumns!==void 0)f.richGroupRenderer.rowIndex=P,f.richGroupRenderer.colIndex=F,F+=f.richGroupRenderer.numColumns,F===X&&(F=0,P++);else if(f.richSectionRenderer){var u=H=void 0;if(f=_.T((H=f)==null?void 0:(u=H.richSectionRenderer)==null?void 0:u.content,_.Abt))f.rowIndex=
P++}}};
Mzw=function(K,X){var F=X.contentElement;X=X.rendererToTagNameMap;if(F&&X&&X.size!==0){for(var P=new Map,H=_.D(F.children),f=H.next();!f.done;f=H.next()){f=f.value;var u=f.tagName.toLowerCase(),J=P.get(u);J||(J=[],P.set(u,J));J.push(f)}if(P.size!==0)for(H=Math.min(K.length,F.children.length),f=new Map,u=0;u<H;u++){J=Object.keys(K[u])[0];J=X.get(J);if(!J)break;var Z=f.get(J);Z===void 0&&(Z=0,f.set(J,Z));var M=P.get(J);if(!M||Z>=M.length)break;f.set(J,Z+1);J=M[Z];Z=F.children[u];Z!==J&&(_.OKO=!0,_.VKw.set(J,
!0),F.insertBefore(J,Z),_.VKw.delete(J),_.OKO=!1)}}};
nyV=function(K,X,F,P,H,f,u){P=P===void 0?{}:P;if(!K||!K.length)return[];K=K.slice();var J=[],Z=[];H=null;for(var M=0,n=function(l){Z.sort(function(V,x){return x.skippedOnRow-V.skippedOnRow});
for(var a,E=(a=Z.shift())==null?void 0:a.content;E;)!E.richSectionRenderer&&l||J.push(E),a=void 0,E=(a=Z.shift())==null?void 0:a.content},c=[];K.length>0||Z.length>0;){for(var B=[],L=X;L>0;){var A=void 0,d=void 0,R=(d=Z[0]&&Z[0].skippedOnRow<M?(A=Z.shift())==null?void 0:A.content:void 0)!=null?d:K.shift();
if(!R)break;if(R.richItemRenderer)A=R.richItemRenderer.targetId,d=void 0,A&&((d=u)==null?0:d.has(A))&&c.push(u.get(A)),B.push(R),L--;else if(R.richGroupRenderer&&R.richGroupRenderer.numColumns!==void 0)R.richGroupRenderer.numColumns<=L?(B.push(R),L-=R.richGroupRenderer.numColumns):L===X&&R.richGroupRenderer.numColumns>X?(B.push({richGroupRenderer:Object.assign({},R.richGroupRenderer,{numColumns:X})}),L=0):Z.push({content:R,skippedOnRow:M});else if(R.richSectionRenderer)if(Yfw(M,H,P)&&L===X){J.push(R);
H=M;M++;continue}else Z.push({content:R,skippedOnRow:M});else if(R.continuationItemRenderer){n(!0);J.push(R);L=0;break}if(L===0)J.push.apply(J,_.LZ(B));else if(!F&&K.length===0){n(!1);J.push.apply(J,_.LZ(B));L=0;break}}M++;c=_.D(c);for(B=c.next();!B.done;B=c.next())J.push(B.value),M++;c=[]}Qeo(J,X);f&&Mzw(J,f);return J};
cat=function(K){return K.talkToRecs};
SfG=function(K,X){if(X){var F=_.aA().getState().entities.flowStateEntity,P=pBW(K),H=[X];P&&P!==X&&H.push(P);var f=!0,u;if(F&&K.flowStateEntityKey&&((u=F[K.flowStateEntityKey])==null?void 0:u.primaryButtonDisabled)!==void 0){var J;f=!((J=F[K.flowStateEntityKey])==null||!J.primaryButtonDisabled)}Bvt(K,P!=null?P:X,H,f)}};
LwF=function(K){return _.Dg(_.aA(),function(X){return X.entities.flowStateEntity},function(X,F){if(K.flowStateEntityKey){var P,H=X==null?void 0:(P=X[K.flowStateEntityKey])==null?void 0:P.currentStepId,f;
F=F==null?void 0:(f=F[K.flowStateEntityKey])==null?void 0:f.currentStepId;f=_.aA().getState().talkToRecs;if(H&&H!==F){var u;X=(X==null?void 0:(u=X[K.flowStateEntityKey])==null?void 0:u.stepIdStack)||Object.keys(f.stepStates);u=!oy8(f==null?void 0:f.stepStates[H]);Bvt(K,H,X,u)}}})};
TvW=function(K){return _.Dg(_.aA(),cat,function(X){var F=pBW(K);if(F){var P=Object.keys(X.stepStates);X=!oy8(X==null?void 0:X.stepStates[F]);Bvt(K,F,P,X)}})};
oy8=function(K){var X=Object.keys((K==null?void 0:K.selectionStates)||{}).reduce(function(f,u){return f||(K==null?void 0:K.selectionStates[u].isSelected)},!1),F,P,H=!!(K==null?0:(F=K.userQuery)==null?0:(P=F.userQuery)==null?0:P.trim());
return X||H};
pBW=function(K){if(K.flowStateEntityKey){var X,F,P=(X=_.aA().getState().entities.flowStateEntity)==null?void 0:(F=X[K.flowStateEntityKey])==null?void 0:F.currentStepId;if(P)return P}};
Bvt=function(K,X,F,P){_.aA().dispatch(_.zl("flowStateEntity",K.flowStateEntityKey,{currentStepId:X,stepIdStack:F,key:K.flowStateEntityKey,primaryButtonDisabled:P}))};
_.rak=function(K,X){return _.FF(K.entities,"youchatPendingResponseEntity",X)};
_.Aa5=function(K){return function(X){_.vc(_.zl("youchatPendingResponseEntity",K,{entityKey:K,isPendingResponse:X}))}};
jeW=function(K){K==null||K.addEventListener("DOMLoaded",function(){K.goToAndPlay(K.totalFrames-48,!0)})};var yaG;_.pa({_template:function(){if(yaG!==void 0)return yaG;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);
var X=K.content,F=X.insertBefore;wBW===void 0&&(wBW=document.createElement("template"));var P=wBW;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return yaG=K},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var Wwd=new _.b("talkToRecsFlowRenderer");var dQF=new _.b("flowRootRenderer");var eGW=new _.b("learningJourneyQuizViewModel");var RGk=new _.b("chipsShelfViewModel");var UQo=new _.b("responsiveContainerConfiguration");var hGV=new _.b("horizontalShelfViewModel");_.mQv=new _.b("engagementPanelSectionListRenderer");var GLt=new _.b("conversationResourceViewModel");var lNW=function(){this.horizontal=!1},vy8=function(K,X){K.horizontal=X};
lNW.prototype.position=function(K,X,F,P){P=P===void 0?1:P;K=this.delta(K)*P+X;P=Math.max(X,F);return K>=Math.min(X,F)&&K<=P?K:F};
lNW.prototype.axis=function(K){K=this.direction(K);return K==="up"||K==="down"?"Y":"X"};var DI=function(K,X,F){X=X===void 0?_.Yu():X;this.target=K;this.manager=X;this.touchAction=F;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
DI.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(_.LZ(this.events)));for(var K=_.D(this.events),X=K.next();!X.done;X=K.next())this.listen(X.value)}};
DI.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.LZ(this.events)));for(var K=_.D(this.events),X=K.next();!X.done;X=K.next())this.unlisten(X.value)}};
DI.prototype.listen=function(K){this.eventMap[K]&&this.target.addEventListener(K,this.eventMap[K])};
DI.prototype.unlisten=function(K){this.eventMap[K]&&this.target.removeEventListener(K,this.eventMap[K])};var ux=function(){lNW.apply(this,arguments)};
_.r(ux,lNW);ux.prototype.direction=function(K){var X=K.detail;K=X.deltaY;X=X.deltaX;return K&&!this.horizontal?K>0?"down":"up":X&&this.horizontal?X>0?"right":"left":"none"};
ux.prototype.distance=function(K){return Math.abs(this.delta(K))};
ux.prototype.delta=function(K){var X=this.direction(K),F=K.detail;K=F.deltaX;F=F.deltaY;return X==="up"||X==="down"?F||0:K||0};
ux.prototype.velocity=function(K){var X=this.direction(K),F=K.detail;K=F.velocityX;F=F.velocityY;return Math.abs(X==="up"||X==="down"?F||0:K||0)};_.qK=function(K,X,F,P,H,f){H=H===void 0?new ux:H;f=f===void 0?_.Yu():f;DI.call(this,X,f,P);var u=this;this.element=K;this.target=X;this.config=F;this.input=H;this.manager=f;this.events=["panstart","panmove","panend"];this.onPanStart=function(){u.config.draggingClass&&u.element.classList.add(u.config.draggingClass);u.config.startAction&&u.config.startAction()};
this.onPanMove=function(J){var Z=aNF(u,J);if(Z){u.move(J,Z);Z.fade&&u.fade(J,Z);var M=u.input.direction(J);Z.moveAction&&Z.moveAction(tzt(u,J,Z),M)}};
this.onPanEnd=function(J){var Z,M,n,c,B,L;return _.q(function(A){if(A.nextAddress==1){u.animationRequestId&&cancelAnimationFrame(u.animationRequestId);u.animationRequestId=void 0;Z=aNF(u,J);if(!Z)return A.return();M=Z;n=M.triggerAction;c=M.fade;B=M.disableFinish;L=M.translateBack;var d=u.input.velocity(J),R=u.input.distance(J),l=u.threshold(Z);return d>.3&&R>10||R>l?B?A.jumpTo(6):c?_.Y(A,$QW(u,J),6):_.Y(A,O_1(u,J,Z),6):L?_.Y(A,u.translateBack(J),3):A.jumpTo(3)}A.nextAddress!=3&&n&&n();u.config.draggingClass&&
u.element.classList.remove(u.config.draggingClass);u.reset();_.JT(A)})};
K=Object.keys(F.triggers);this.directions=new Set(K);vy8(this.input,this.directions.has("right")||this.directions.has("left"))};
_.r(_.qK,DI);_.qK.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var aNF=function(K,X){X=K.input.direction(X);return K.config.triggers[X]};
_.qK.prototype.move=function(K,X){var F=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var P=F.input.axis(K),H=F.input.position(K,F.config.startPosition,X.endPosition,X.moveRatio||1);F.element.style.transform="translate"+P+"("+H+"px)";F.animationRequestId=void 0}))};
var tzt=function(K,X,F){var P=F.moveRatio||1;F=Math.abs(K.config.startPosition-F.endPosition);return Math.min(K.input.distance(X)*P,F)/F};
_.qK.prototype.fade=function(K,X){var F=X.endOpacity;K=tzt(this,K,X);K>0&&(this.element.style.opacity=""+(((F||0)-1)*K+1))};
_.qK.prototype.threshold=function(K){return K.threshold?K.threshold:Math.abs(K.endPosition-this.config.startPosition)/3};
var O_1=function(K,X,F){var P,H,f,u,J,Z,M;return _.q(function(n){if(n.nextAddress==1)return P=K.input.delta(X)+K.config.startPosition,H=K.input.axis(X),f=F,u=f.endPosition,J=f.transitionEndPosition,M=(Z=J)!=null?Z:u,_.Y(n,K.element.animate([{transform:"translate"+H+"("+P+"px)"},{transform:"translate"+H+"("+M+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);K.element.style.transform="translate"+H+"("+M+"px)";_.JT(n)})};
_.qK.prototype.translateBack=function(K){var X=this,F,P;return _.q(function(H){if(H.nextAddress==1){if(!X.element.style.transform)return H.return();F=X.input.axis(K);P=X.config.startPosition;return _.Y(H,X.element.animate([{transform:X.element.style.transform},{transform:"translate"+F+"("+P+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}X.element.style.transform="translate"+F+"("+P+"px)";_.JT(H)})};
var $QW=function(K,X){var F,P,H,f;return _.q(function(u){if(u.nextAddress==1)return F=K.input.delta(X)+K.config.startPosition,P=K.input.axis(X),H=F+70,f=K.element.style.opacity===""?1:K.element.style.opacity,_.Y(u,K.element.animate([{transform:"translate"+P+"("+F+"px)",opacity:f},{transform:"translate"+P+"("+H+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);K.element.style.transform="translate"+P+"("+H+"px)";K.element.style.opacity="0";_.JT(u)})};var JC=function(){var K=_.ub.apply(this,arguments)||this;K._noAccessors=!0;K.scrollRate=3;K.autoScrollAnimationStart=0;K.autoScrollPaused=!1;K.autoScrollRafId=0;return K};
_.r(JC,_.ub);_.z=JC.prototype;_.z.created=function(){var K=this;this.boundAutoScrollHandler=function(X){K.autoScroll(X)}};
_.z.detached=function(){this.hostElement.removeEventListener("mouseout",_.Pc(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.Pc(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.Pc(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.z.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.Pc(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.Pc(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.Pc(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.Pc(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.Pc(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.Pc(this,this.endAutoScroll)),this.endAutoScroll())};
_.z.autoScroll=function(K){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=K);var X;if(X=!this.autoScrollPaused&&this.scrollTarget)X=this.scrollTarget,X=X.scrollHeight-X.scrollTop!==X.clientHeight;X&&(X=1E3/this.scrollRate,K-=this.autoScrollAnimationStart,K>X&&(this.scrollTarget.scrollTop+=Math.ceil(K/X),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.z.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.z.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
JC.prototype.autoScrollEnabledChanged=JC.prototype.autoScrollEnabledChanged;_.O([_.h(),_.g("design:type",Object)],JC.prototype,"scrollRate",void 0);_.O([_.h(),_.g("design:type",Object)],JC.prototype,"scrollTarget",void 0);_.O([_.h(),_.g("design:type",Boolean)],JC.prototype,"autoScrollEnabled",void 0);_.O([_.so("autoScrollEnabled"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],JC.prototype,"autoScrollEnabledChanged",null);JC=_.O([_.qY()],JC);_.Vzv=[JC.prototype];var gyd;var ZI=function(){var K=_.G.apply(this,arguments)||this;K.buttonUpdate=_.S("web_button_rework");K.dismissButtonOverrides=_.S("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;K.forceDarkTheme=!1;K.forceLightTheme=!1;K.dynamicTextHeight=94;K.hasOverflowButton=!1;K.isInfeedModernization=!1;return K};
_.r(ZI,_.G);_.z=ZI.prototype;_.z.computeUrlImg=function(K){if(K)return _.CB(K.thumbnails)};
_.z.getLogoHeight=function(K){return this.logoWithPadding(K)?"31":"24"};
_.z.getLogoClassName=function(K){return this.logoWithPadding(K)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.z.logoWithPadding=function(K){var X,F;return(K=(X=K.thumbnails)==null?void 0:(F=X[0])==null?void 0:F.height)&&K%31===0?!0:!1};
_.z.sendImpressionEndpoints=function(K){K.impressionEndpoints&&_.Kl(this.hostElement,K.impressionEndpoints)};
_.z.observeBasicPalette=function(){var K,X,F=(K=this.data)==null?void 0:(X=K.colorData)==null?void 0:X.basicColorPaletteData;F?_.Sd(this.hostElement,F):_.Sd(this.hostElement,{})};
_.z.observeDataChanged=function(){var K;this.dynamicTextHeight=((K=this.data)==null?0:K.supplementalText)?74:94;var X;this.hasSupplementalText=!((X=this.data)==null||!X.supplementalText);if(_.S("web_button_rework")){var F,P,H,f;K=(F=this.data)==null?void 0:(P=F.actionButton)==null?void 0:(H=P.buttonRenderer)==null?void 0:(f=H.colorData)==null?void 0:f.basicColorPaletteData;var u,J,Z;if(!((u=this.data)==null?0:(J=u.actionButton)==null?0:(Z=J.buttonRenderer)==null?0:Z.style)&&K){this.computeIsInfeedModernization(this.data)||
(K.borderColor=K.foregroundTitleColor);var M,n;this.set("data.actionButton.buttonRenderer",_.T8.unsafeClone((M=this.data)==null?void 0:(n=M.actionButton)==null?void 0:n.buttonRenderer))}}};
_.z.observeDataForCounterfactual=function(){if(_.S("kevlar_banner_cf_extra_logging")){var K;((K=this.data)==null?0:K.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.z.computeSupplementalStyle=function(){var K;if((K=this.data)!=null&&K.supplementalText){var X,F,P;if((X=this.data)==null?0:(F=X.colorData)==null?0:(P=F.basicColorPaletteData)==null?0:P.foregroundActivatedColor)return K=_.j0(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+K+"; --yt-endpoint-hover-color:"+K+"; --yt-endpoint-visited-color:"+K+"; --yt-formatted-string-bold-font-weight:700;"}};
_.z.computeForcedDarkTheme=function(){var K,X,F,P=(K=this.data)==null?void 0:(X=K.actionButton)==null?void 0:(F=X.buttonRenderer)==null?void 0:F.style,H,f,u;K=Z_s(((H=this.data)==null?void 0:(f=H.colorData)==null?void 0:(u=f.basicColorPaletteData)==null?void 0:u.backgroundColor)||0);return P&&K};
_.z.computeForcedLightTheme=function(){var K,X,F,P=(K=this.data)==null?void 0:(X=K.actionButton)==null?void 0:(F=X.buttonRenderer)==null?void 0:F.style,H,f,u;K=!Z_s(((H=this.data)==null?void 0:(f=H.colorData)==null?void 0:(u=f.basicColorPaletteData)==null?void 0:u.backgroundColor)||0);return P&&K};
_.z.computeHasOverflowButton=function(K){return!!K.overflowButton};
_.z.computeHasTitle=function(K){return!!K.title};
_.z.computeTitleMaxFontSize=function(K){return this.computeHasOverflowButton(K)?28:64};
_.z.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.z.computeIsInfeedModernization=function(){var K,X,F,P,H=(K=this.data)==null?void 0:(X=K.actionButton)==null?void 0:(F=X.buttonRenderer)==null?void 0:(P=F.colorData)==null?void 0:P.basicColorPaletteData;return(H==null?void 0:H.backgroundColor)===452984831||(H==null?void 0:H.backgroundColor)===218103808};
ZI.prototype.observeDataForCounterfactual=ZI.prototype.observeDataForCounterfactual;ZI.prototype.observeDataChanged=ZI.prototype.observeDataChanged;ZI.prototype.observeBasicPalette=ZI.prototype.observeBasicPalette;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ZI.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.yD),_.g("design:type",Object)],ZI.prototype,"ytdDismissibleItemBehavior",void 0);
_.O([_.W(_.RW.YtdGuideStateAwareBehavior),_.g("design:type",Object)],ZI.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],ZI.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],ZI.prototype,"buttonUpdate",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],ZI.prototype,"hasSupplementalText",void 0);_.O([_.h(),_.g("design:type",Object)],ZI.prototype,"dismissButtonOverrides",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.g("design:type",Boolean)],ZI.prototype,"hasTitle",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.g("design:type",Object)],ZI.prototype,"forceDarkTheme",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.g("design:type",Object)],ZI.prototype,"forceLightTheme",void 0);_.O([_.h(),_.g("design:type",Object)],ZI.prototype,"dynamicTextHeight",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.g("design:type",Object)],ZI.prototype,"hasOverflowButton",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.g("design:type",Object)],ZI.prototype,"isInfeedModernization",void 0);_.O([_.so("data.colorData.basicColorPaletteData"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ZI.prototype,"observeBasicPalette",null);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ZI.prototype,"observeDataChanged",null);_.O([_.so("data.isVisible"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ZI.prototype,"observeDataForCounterfactual",null);ZI=_.O([_.v({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],ZI);
_.t(ZI,"ytd-banner-promo-renderer",function(){if(gyd!==void 0)return gyd;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return gyd=K},{mode:1});var Ey5;var b_s;var C51;var Y7=function(){return _.G.apply(this,arguments)||this};
_.r(Y7,_.G);_.O([_.h(),_.g("design:type",Object)],Y7.prototype,"data",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Y7.prototype,"ytRendererBehavior",void 0);Y7=_.O([_.v({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],Y7);
_.t(Y7,"ytd-hashtag-grid-tile-renderer",function(){if(C51!==void 0)return C51;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return C51=K},{mode:1});var QJ=function(){return _.G.apply(this,arguments)||this};
_.r(QJ,_.G);QJ.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
QJ.prototype.updateRichGridTrendingHashtagsVisibility=function(){var K,X;if(((K=this.data)==null||!K.isExpanded)&&(X=this.data)!=null&&X.tiles){K=this.data.tiles.length;X=K>this.richGridItemsPerRow?this.richGridItemsPerRow+1:K;var F=Math.ceil(K/X);this.fullyVisibleRows=K%X===1&&F===2?1:Math.min(F,2);this.isShowMoreVisible=this.fullyVisibleRows<F}};
QJ.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
QJ.prototype.updateRichGridTrendingHashtagsVisibility=QJ.prototype.updateRichGridTrendingHashtagsVisibility;_.O([_.h(),_.g("design:type",Object)],QJ.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Number)],QJ.prototype,"fullyVisibleRows",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],QJ.prototype,"isShowMoreVisible",void 0);_.O([_.h({selector:_.oA,value:0}),_.g("design:type",Number)],QJ.prototype,"richGridItemsPerRow",void 0);
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],QJ.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],QJ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],QJ.prototype,"ytdReduxBehavior",void 0);_.O([_.so("data","richGridItemsPerRow"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],QJ.prototype,"updateRichGridTrendingHashtagsVisibility",null);
QJ=_.O([_.v({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],QJ);
_.t(QJ,"ytd-hashtag-grid-shelf-renderer",function(){if(b_s!==void 0)return b_s;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return b_s=K},{mode:1});var Nvd;var i_J;var MK=function(){var K=_.G.apply(this,arguments)||this;K.visibleVideos=[];K.hiddenVideos=[];K.modern=_.S("web_modern_buttons");K.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return K};
_.r(MK,_.G);_.z=MK.prototype;_.z.attached=function(){var K=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",K);this.onDarkModeToggledAction(K)};
_.z.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.header":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},visibleVideos:{id:"visible-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},
properties:{metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{metadataColor:"[[videoMetadataColor]]"}}}},hiddenVideos:{id:"hidden-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",
metadataColor:"[[videoMetadataColor]]"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.z.dataChanged=function(){var K=this;this.requestElementsPerRow();var X,F;this.currentColorPalette=this.isDarkTheme?(X=this.data)==null?void 0:X.darkColorData:(F=this.data)==null?void 0:F.lightColorData;var P;if((P=this.currentColorPalette)==null?0:P.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.tg(this,function(){K.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.z.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.z.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.z.computeIsFirstFeedItem=function(K){return K};
_.z.onDarkModeToggledAction=function(K){K!==this.isDarkTheme&&this.set("isDarkTheme",K);this.data&&(this.currentColorPalette=K?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.z.getCurrentLogo=function(K,X){if(K)return X?K.darkLogoImage:K.lightLogoImage};
_.z.computeTitleStyle=function(K){var X;if((X=this.data)!=null&&X.title&&K&&K.textPrimary!==void 0)return"color:"+_.j0(K.textPrimary)+";"};
_.z.computeSubtitleStyle=function(K){var X;if((X=this.data)!=null&&X.subtitle&&K&&K.textSecondary!==void 0)return"color:"+_.j0(K.textSecondary)+";"};
_.z.computeDismissIconStyle=function(K){if(this.data&&this.data.dismissButton&&K&&K.textPrimary!==void 0)return"--yt-button-color:"+_.j0(K.textPrimary)+";"};
_.z.computeOverflowButtonStyle=function(K){if(this.data&&this.data.overflowButton&&K&&K.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.j0(K.textPrimary)+";--yt-spec-icon-active-other:"+_.j0(K.textPrimary)+";"};
_.z.computeBackgroundStyle=function(K){if(K&&this.data){var X="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var F=_.CB((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);F&&(X+='background-image:url("'+F+'");')}K.backgroundColor!==void 0&&(X+="background-color:"+_.wq(K.backgroundColor)+";");return X}};
_.z.computeButton=function(){var K,X=Object.assign({},_.T((K=this.data)==null?void 0:K.showMoreButton,_.jg));if(this.modern&&X){X.style="STYLE_MONO_OUTLINE";var F;if(K=(F=this.currentColorPalette)==null?void 0:F.textPrimary)X.colorData={basicColorPaletteData:{foregroundTitleColor:K,borderColor:K}}}return X};
_.z.shouldShowBottomButton=function(K,X){return!(K==null?0:K.header)&&!(K==null||!K.primaryButton)&&X<3};
_.z.checkExpanded=function(K){this.isExpanded=K&&K.content?this.hiddenVideos.length===0:!0};
_.z.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.z.getLogoHeight=function(K){return this.logoWithPadding(K)?"26":"20"};
_.z.getLogoImageId=function(K){return this.logoWithPadding(K)?"logo-image-with-padding":"logo-image"};
_.z.computeHasSectionHeader=function(K){return!!K.header};
_.z.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var K;if((K=this.data.primaryButton)==null?0:K.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 X;((X=this.data.dismissButton)==null?0:X.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var F,P;((F=this.data)==null?0:(P=F.primaryButton)==null?0:P.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.z.setVisibleVideos=function(K){if(this.data&&this.data.content)if(this.data.content.length){var X=this.data.content.length;this.data.header?K?(this.visibleVideos=this.data.content.slice(0,Math.min(X,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(X,this.slimItemsPerRow),X)):(this.visibleVideos=this.data.content.slice(0,Math.min(X,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(X,this.elementsPerRow),X)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(X,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(X,this.elementsPerRow),X)):(this.visibleVideos=this.data.content.slice(0,Math.min(X,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(X,this.elementsPerRow-1),X))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.z.setHasMovieRenderer=function(){var K;if((K=this.data)!=null&&K.content){var X;this.hasMovieRenderer=!!_.T((X=this.data)==null?void 0:X.content[0],_.XVQ)}else this.hasMovieRenderer=!1};
_.z.requestElementsPerRow=function(){_.iX(this.hostElement,"yt-request-elements-per-row")};
_.z.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var K=_.D(this.hiddenMediaRenderers),X=K.next();!X.done;X=K.next())X.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(K=_.C$(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&K.focus()}};
_.z.updateTitleSpec=function(){var K;(K=this.data)!=null&&K.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.z.logoWithPadding=function(K){var X,F,P;return(K=(X=this.getCurrentLogo(K,this.isDarkTheme))==null?void 0:(F=X.thumbnails)==null?void 0:(P=F[0])==null?void 0:P.height)&&K%31===0?!0:!1};
_.z.onUpdateElementsPerRowAction=function(K,X,F){K&&this.elementsPerRow!==K&&(this.elementsPerRow=K);F&&this.slimItemsPerRow!==F&&(this.slimItemsPerRow=F)};
MK.prototype.slimItemsPerRowChanged=MK.prototype.slimItemsPerRowChanged;MK.prototype.elementsPerRowChanged=MK.prototype.elementsPerRowChanged;MK.prototype.dataChanged=MK.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],MK.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],MK.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.yD),_.g("design:type",Object)],MK.prototype,"ytdDismissibleItemBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],MK.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],MK.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],MK.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],MK.prototype,"currentColorPalette",void 0);_.O([_.h(),_.g("design:type",Array)],MK.prototype,"visibleVideos",void 0);_.O([_.h(),_.g("design:type",Array)],MK.prototype,"hiddenVideos",void 0);
_.O([_.h(),_.g("design:type",Object)],MK.prototype,"primaryButton",void 0);_.O([_.h({reflectToAttribute:!0,value:3}),_.g("design:type",Number)],MK.prototype,"elementsPerRow",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],MK.prototype,"isDarkTheme",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],MK.prototype,"isExpanded",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],MK.prototype,"largeTitle",void 0);
_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],MK.prototype,"hasMovieRenderer",void 0);_.O([_.h(),_.g("design:type",Number)],MK.prototype,"slimItemsPerRow",void 0);_.O([_.h(),_.g("design:type",Boolean)],MK.prototype,"showLightVideoMetadata",void 0);_.O([_.h(),_.g("design:type",Boolean)],MK.prototype,"showDarkVideoMetadata",void 0);_.O([_.h(),_.g("design:type",Number)],MK.prototype,"videoMetadataColor",void 0);
_.O([_.h({reflectToAttribute:!0,selector:_.SJ}),_.g("design:type",Boolean)],MK.prototype,"miniMode",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.g("design:type",Boolean)],MK.prototype,"isFirstFeedItem",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.g("design:type",Boolean)],MK.prototype,"hasSectionHeader",void 0);
_.O([_.h({reflectToAttribute:!0,value:!0}),_.g("design:type",Boolean)],MK.prototype,"roundedContainer",void 0);_.O([_.DA("#visible-video-container ytd-rich-grid-media"),_.g("design:type",Array)],MK.prototype,"visibleMediaRenderers",void 0);_.O([_.DA("#hidden-video-container ytd-rich-grid-media"),_.g("design:type",Array)],MK.prototype,"hiddenMediaRenderers",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],MK.prototype,"modern",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MK.prototype,"dataChanged",null);_.O([_.so("elementsPerRow"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MK.prototype,"elementsPerRowChanged",null);_.O([_.so("slimItemsPerRow"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MK.prototype,"slimItemsPerRowChanged",null);
MK=_.O([_.v({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],MK);
_.t(MK,"ytd-brand-video-shelf-renderer",function(){if(i_J!==void 0)return i_J;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return i_J=K},{mode:1});var xQV;var nh=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return K};
_.r(nh,_.G);_.z=nh.prototype;_.z.attached=function(){var K=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",K);this.onDarkModeToggledAction(K)};
_.z.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"}}}};
_.z.dataChanged=function(){this.requestElementsPerRow();var K,X;this.currentColorPalette=this.isDarkTheme?(K=this.data)==null?void 0:K.darkColorData:(X=this.data)==null?void 0:X.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.z.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.z.computeIsFirstFeedItem=function(K){return K};
_.z.onDarkModeToggledAction=function(K){K!==this.isDarkTheme&&this.set("isDarkTheme",K);this.data&&(this.currentColorPalette=K?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(K),this.updateButtonPalette())};
_.z.shouldShowThumbnailInMetadata=function(K){return K<=1};
_.z.computeVideoMetadataColor=function(){if(this.data){var K;if((K=this.currentColorPalette)==null?0:K.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.z.computeTitleStyle=function(K){var X;if((X=this.data)!=null&&X.title&&K&&K.textPrimary!==void 0)return"color:"+_.j0(K.textPrimary)+";"};
_.z.computeSubtitleStyle=function(K){var X;if((X=this.data)!=null&&X.subtitle&&K&&K.textSecondary!==void 0)return"color:"+_.j0(K.textSecondary)+";"};
_.z.computeOverflowButtonStyle=function(K){var X;if(this.data&&this.data.overflowButton&&(K==null?0:(X=K.dismissButtonColorData)==null?0:X.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.j0(K.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.j0(K.dismissButtonColorData.foregroundTitleColor)+";"};
_.z.computeBackgroundStyle=function(K){if(K&&this.data){var X="";K.backgroundColor!==void 0&&(X+="background-color:"+_.wq(K.backgroundColor)+";");return X}};
_.z.computeHasOverflowButton=function(K){return!!K.overflowButton};
_.z.updateButtonPalette=function(){if(this.data){var K;if((K=this.data.primaryButton)==null?0:K.buttonRenderer){var X;if((X=this.currentColorPalette)==null?0:X.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var F;((F=this.currentColorPalette)==null?0:F.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)})}}};
_.z.requestElementsPerRow=function(){_.iX(this.hostElement,"yt-request-elements-per-row")};
_.z.updateTitleSpec=function(){var K;(K=this.data)!=null&&K.titleLength&&(this.titleSize=this.elementsPerRow<=3?this.data.titleLength<=10?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL":this.data.titleLength<=13?"TITLE_SIZE_LARGE":this.data.titleLength<=30?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL")};
_.z.onUpdateElementsPerRowAction=function(K){K&&this.elementsPerRow!==K&&(this.elementsPerRow=K)};
nh.prototype.elementsPerRowChanged=nh.prototype.elementsPerRowChanged;nh.prototype.dataChanged=nh.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],nh.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],nh.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.yD),_.g("design:type",Object)],nh.prototype,"ytdDismissibleItemBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],nh.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],nh.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],nh.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],nh.prototype,"currentColorPalette",void 0);_.O([_.h(),_.g("design:type",Object)],nh.prototype,"primaryButton",void 0);
_.O([_.h({reflectToAttribute:!0,value:3}),_.g("design:type",Number)],nh.prototype,"elementsPerRow",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],nh.prototype,"isDarkTheme",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],nh.prototype,"titleSize",void 0);_.O([_.h(),_.g("design:type",Number)],nh.prototype,"videoMetadataColor",void 0);_.O([_.h({reflectToAttribute:!0,selector:_.SJ}),_.g("design:type",Boolean)],nh.prototype,"miniMode",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.g("design:type",Boolean)],nh.prototype,"isFirstFeedItem",void 0);_.O([_.h({reflectToAttribute:!0,value:!0}),_.g("design:type",Boolean)],nh.prototype,"roundedContainer",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.g("design:type",Boolean)],nh.prototype,"hasOverflowButton",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],nh.prototype,"dataChanged",null);_.O([_.so("elementsPerRow"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],nh.prototype,"elementsPerRowChanged",null);nh=_.O([_.v({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],nh);
_.t(nh,"ytd-brand-video-singleton-renderer",function(){if(xQV!==void 0)return xQV;var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return xQV=K},{mode:_.Ig("kevlar_poly_si_batch_j070")?1:2});var INv;var kLs=_.$c(function(K){var X=K.data;return _.Q(_.av,{data:function(){return X().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(X().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var F=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":F=88;break a;default:F=88}return F},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return X().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"oi"),Xq5=_.$c(function(K){var X=K.metadataRow;
var F=K.delimiter;return _.Q(_.cd,{each:function(){return X().textParts||[]},
keyBy:"INDEX"},function(P,H){return _.Q(_.ID,null,_.Q(_.Oy,{text:P,noWrap:!0,userInput:!0}),_.Q(KMV,{delimiter:F,max:function(){return X().textParts.length},
index:H}))})},"pi"),KMV=_.$c(function(K){var X=K.delimiter;
var F=K.max;var P=K.index;return _.Q(_.p,{cond:function(){return(X==null?void 0:X())&&F()-1>P()},
then:function(){return _.Q("span",null,X)}})},"qi"),FMV=_.$c(function(K){var X=K.data;
K={};return _.Q("yt-profile-page-header-information-view-model",{class:_.HO("profile-page-header-information-view-model-wiz",(K["profile-page-header-information-view-model-wiz--mobile"]=!1,K))},_.Q(_.p,{cond:function(){return X().onTap},
then:function(){return _.Q(_.ku,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.w$(X().onTap)}},_.Q(_.Md,{data:function(){return X().thumbnail}},{profilePageHeaderThumbnailViewModel:kLs}))},
else:function(){return _.Q("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.Q(_.Md,{data:function(){return X().thumbnail}},{profilePageHeaderThumbnailViewModel:kLs}))}}),_.Q("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.Q(_.p,{cond:function(){return X().onTap},
then:function(){return _.Q(_.Md,{data:function(){return X().title}},{profilePageHeaderTitleViewModel:function(F){var P=F.data;
return _.Q(_.ku,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.w$(P().onTap)}},_.Q(_.Oy,{text:function(){return P().title}}))}})},
else:function(){return _.Q(_.Md,{data:function(){return X().title}},{profilePageHeaderTitleViewModel:function(F){var P=F.data;
return _.Q(_.Oy,{text:function(){return P().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.Q(_.Md,{data:function(){return X().metadata}},{profilePageHeaderMetadataViewModel:function(F){var P=F.data;
return _.Q(_.p,{cond:function(){return P().metadataRows},
then:function(H){return _.Q("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.Q(_.cd,{each:H,keyBy:"INDEX"},function(f,u){return _.Q(_.ID,null,_.Q(Xq5,{metadataRow:f,delimiter:" \u2022 "}),_.Q(KMV,{delimiter:" \u2022 ",max:function(){return H().length},
index:u}))}))}})}})))},"ri");
FMV.idomCompat=!0;_.EP(FMV,"yt-profile-page-header-information-view-model",{props:{data:_.vU}});var cr=function(){return _.G.apply(this,arguments)||this};
_.r(cr,_.G);cr.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],cr.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],cr.prototype,"data",void 0);cr=_.O([_.v({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],cr);
_.t(cr,"ytd-effect-pivot-header-view-model",function(){if(INv!==void 0)return INv;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return INv=
K},{mode:1});var PMG;var ph=function(){return _.G.apply(this,arguments)||this};
_.r(ph,_.G);ph.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],ph.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],ph.prototype,"data",void 0);ph=_.O([_.v({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],ph);
_.t(ph,"ytd-source-pivot-header-renderer",function(){if(PMG!==void 0)return PMG;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return PMG=K},{mode:1});_.HrG=_.$c(function(K){var X=K.data;K=_.t_();_.m_(K,function(){return X().rendererContext});
var F=function(){var P;return _.hf((P=X())==null?void 0:P.rendererContext)};
return _.Q("content-list-item-view-model",{el:K,class:"ytContentListItemViewModelHost",role:function(){return F()?"listitem":void 0},
tabindex:function(){return F()?0:void 0}},_.Q("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.Q("div",{class:"ytContentListItemViewModelImageContainer"},_.Q(_.p,{cond:function(){return X().image},
then:function(P){return _.Q(_.av,{data:P,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.Q(_.Md,{data:function(){var P;
return(P=X())==null?void 0:P.avatar}},{avatarViewModel:_.BY})),_.Q("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.Q("div",{class:"ytContentListItemViewModelTitle"},_.Q(_.Oy,{text:function(){return X().title}})),_.Q("div",{class:"ytContentListItemViewModelMetadata"},_.Q(_.Md,{data:function(){return X().metadata}},{contentMetadataViewModel:function(P){return _.Q(_.HHE,{data:P.data,
layout:1})}})))),_.Q("div",{class:"ytContentListItemViewModelActionButton"},_.Q(_.Md,{data:function(){var P;
return(P=X())==null?void 0:P.actionButton}},{buttonViewModel:_.Af,
toggleButtonViewModel:_.pS})))},"si");_.EP(_.$c(function(K){var X={},F={},P={},H={};return _.Q("yt-card-view-model",{class:_.HO("ytCardViewModelHost",K.className,(X.ytCardViewModelOutline=function(){return K.data().cardStyle==="CARD_STYLE_OUTLINE"},X),(F.ytCardViewModelRaised=function(){return K.data().cardStyle==="CARD_STYLE_RAISED"||K.data().cardStyle==="CARD_STYLE_UNSPECIFIED"},F),(P.ytCardViewModelTonal=function(){return K.data().cardStyle==="CARD_STYLE_TONAL"},P),(H.ytCardViewModelInverted=function(){return K.data().cardStyle===
"CARD_STYLE_INVERSE"},H))},_.Q(_.Md,{data:function(){return K.data().background}},{cinematicContainerViewModel:function(f){return _.Q(_.gIC,{data:f.data})}}),_.Q("div",{class:"ytCardViewModelContentWrapper"},_.Q(_.Md,{data:function(){return K.data().content}},{contentListItemViewModel:function(f){return _.Q(_.HrG,{data:f.data})}})),_.Q(_.Md,{data:function(){return K.data().dismissAction}},{buttonViewModel:function(f){return _.Q(_.Af,{data:f.data})}}))},"ti"),"yt-card-view-model",{props:{data:_.vU,
className:_.vU}});_.EP(_.$c(function(K){var X=function(){return _.T(K.data().flowRoot,dQF)};
_.AV(function(){var F=X(),P=function(){},H=function(){};
if(F){var f,u,J,Z=((J=_.T((f=X())==null?void 0:(u=f.steps)==null?void 0:u[0],_.VAv))==null?void 0:J.stepId)||"";SfG(F,Z);P=LwF(F);H=TvW(F)}_.AZ(function(){var M=X();M&&_.aA().dispatch(_.zl("flowStateEntity",M.flowStateEntityKey));P();P=function(){};
H();H=function(){}})});
return _.Q("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.Q(_.DJZ,{contentId:function(){return K.data().contentId}},function(){return _.Q("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.Q(_.p,{cond:X,
then:function(F){return _.Q(_.R_8,{data:F})}}))}))},"ui"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.vU}});_.EP(_.$c(function(){return _.Q("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.Q("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.Q("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.Q(_.pdV,null)),_.Q(_.upC,{data:{rows:1},isExploreHub:!0}))},"vi"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.EP(_.$c(function(K){var X=K.data;var F=K.standardUnitMinWidth;K=_.t_();var P=_.D((0,_.Y0U)(X)),H=P.next().value,f=P.next().value,u=function(){var Z,M=(Z=H())==null?void 0:Z.contents;return M==null||M.length===0},J=function(){f(Object.assign({},H(),{contents:[]}))};
_.NF(K,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var Z=_.T(X().chipsShelf,RGk);if(Z!=null&&Z!=null&&Z.autoselectChipOnVisible){var M,n,c=_.T(Z==null?void 0:(M=Z.contents)==null?void 0:M[(n=Z.autoselectedChipIndex)!=null?n:0],_.d4);c&&c.tapCommand&&_.e9(c.tapCommand)}}});
return _.Q("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:K},_.Q(_.DJZ,{contentId:function(){return X().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.Q("div",null,_.Q("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.Q(_.Md,{data:function(){return X().header}},{sectionHeaderViewModel:function(Z){return _.Q(_.XZ,{data:Z.data,
disableHorizontalPadding:!0})}})),_.Q("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.Q(_.Md,{data:function(){return X().chipsShelf}},{chipsShelfViewModel:function(Z){return _.Q(_.Z6O,{data:Z.data,
callback:J,enableSingleChipSelection:!0})}})),_.Q("div",null,_.Q(_.p,{cond:u,
then:function(){return _.Q("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.Q(_.upC,{data:{rows:1},isExploreHub:!0}))}}),_.Q(_.Md,{data:function(){var Z;
return(Z=H())==null?void 0:Z.contents}},{richShelfRenderer:function(Z){return _.Q(_.ZgT,{data:Z.data,
isInnerShelf:!0,standardUnitMinWidth:F})}})))}))},"wi"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.vU,
standardUnitMinWidth:_.vU}});var Br=function(){return _.G.apply(this,arguments)||this};
_.r(Br,_.G);
Br.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",
alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
Br.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.O([_.W(_.jn),_.g("design:type",Object)],Br.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Br.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.eG),_.g("design:type",Object)],Br.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Br.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Br.prototype,"data",void 0);
_.O([_.h(),_.g("design:type",Number)],Br.prototype,"standardUnitMinWidth",void 0);Br=_.O([_.v({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],Br);
_.t(Br,"ytd-rich-section-renderer",function(){if(Nvd!==void 0)return Nvd;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return Nvd=K},{mode:_.Ig("kevlar_poly_si_batch_j029")?
1:2});_.EP(_.fL8,"yt-profile-identity-info-view-model",{props:{data:_.vU,hideDivider:_.vU}});_.EP(_.KCQ,"yt-page-header-view-model",{props:{data:_.vU,noPadding:_.vU,enableBanner:_.vU,cinematicContainerTopbarOffset:_.vU,allowCinematicContainerOverflow:_.vU,displayAsSidebar:_.vU,displayAsPanel:_.vU}});_.EP(_.$c(function(K){var X=K.data;var F=function(){var H;return(H=X().numColumns)!=null?H:2},P=function(){return F()>1?3:2};
K={};return _.Q("ytd-rich-grid-group",{class:_.HO("ytdRichGridGroupHost",(K.ytdRichGridGroupHostFirstColumn=function(){return X().colIndex===0},K)),
style:_.Je({"--ytd-rich-grid-group-num-columns":F,"--ytd-rich-grid-items-per-group":P})},_.Q("div",{class:"ytdRichGridGroupContents"},_.Q(_.Md,{data:function(){var H;return(H=X().contents)==null?void 0:H.slice(0,P())}},{richItemRenderer:function(H){return _.Q(_.qbC,{data:H.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"xi"),"ytd-rich-grid-group",{props:{data:_.vU}});var S2=function(){var K=_.G.apply(this,arguments)||this;K.resizeOnObserverInit=!1;K.isInlinePreviewDisabled=_.S("web_disable_inline_preview");K.disableStickyFilterBar=!1;K.transparentBackgroundChipsBar=!1;K.hideChipsBar=!1;K.isWatchDefaultLayout=!0;K.continuationShowButton=!1;K.rowReducedHorizontalMargin=!1;K.useCompactList=!1;K.manualDownloadsPresent=!1;K.smartDownloadsPresent=!1;K.shouldRenderDownloadsBanner=!1;K.hasOptedIntoSmartDownloads=!1;K.elementsPerRow=4;K.typographyBump=!1;K.showGnomeContents=
!1;K.showExploreHubContents=!1;K.slimItemsPerRow=1;K.pageLoadingFromNavigation=!1;K.loggingRefactor=_.S("kevlar_rich_grid_logging_fix");K.resizeObserver=null;K.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"};K.rendererToTagNameMap=
new Map(Object.entries(K.contentMapping()).map(function(X){var F=_.D(X);X=F.next().value;F=F.next().value;return[X,F.component]}));
K.insertedContent=new Map;return K};
_.r(S2,_.G);_.z=S2.prototype;_.z.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var K=_.D(_.C$(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),X=K.next();!X.done;X=K.next())X.value.useCompactList=this.useCompactList};
_.z.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var K=_.D(_.C$(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),X=K.next();!X.done;X=K.next())X=X.value,X.sizing=this.sizing,X.typographyBump=this.typographyBump};
_.z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.z.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",
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]]"}}}};
_.z.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]"}},chipBarViewModel:{component:"chip-bar-view-model",params:{className:"ytd-rich-grid-renderer chip-bar"}},pageHeaderViewModel:{component:"yt-page-header-view-model",params:{displayAsPanel:!0}},profileIdentityInfoViewModel:{component:"yt-profile-identity-info-view-model"}}},
bigYoodleData:{id:"big-yoodle",mapping:{brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",statementBannerRenderer:"ytd-statement-banner-renderer"},reuseComponents:!1},mastheadData:{id:"masthead-ad",mapping:{bannerPromoRenderer:"ytd-banner-promo-renderer",adSlotRenderer:"ytd-ad-slot-renderer"},reuseComponents:!1},shownItems:{id:"contents",mapping:this.contentMapping(),reuseComponents:!1}}};
_.z.attached=function(){document.addEventListener("yt-page-type-changed",_.Pc(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$19273_throttledOnResize=new _.VW(this.resizeObserved,_.kU("rich_grid_resize_delay_ms",50),this)};
_.z.detached=function(){var K;(K=this.resizeObserver)==null||K.disconnect();document.removeEventListener("yt-page-type-changed",_.Pc(this,this.onPageChange))};
_.z.insertRichSection=function(K){var X=K.richItemTargetId;K=K.richSectionRendererToInsert;X&&K&&(this.insertedContent.set(X,K),this.reflowContent())};
_.z.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.z.computeIsInlinePreviewEnabled=function(K,X,F){return _.S("web_disable_inline_preview")?!1:!F&&_.U4W({miniplayerIsActive:K,miniplayerPlaybackState:X})};
_.z.computeSizing=function(){var K=_.X2w(this.data);if(K||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return K?this.useCompactList?"COMPACT":K:this.miniMode?"COMPACT":_.S("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.z.updateItemMinAndMaxWidth=function(){var K=_.kU("rich_grid_max_item_width",500);K>0&&_.XU(this.hostElement,{"--ytd-rich-grid-item-max-width":K+"px"});var X;K=this.getRichItemMinWidth((X=this.hostElement)==null?void 0:X.clientWidth);K>0&&_.XU(this.hostElement,{"--ytd-rich-grid-item-min-width":K+"px"})};
_.z.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.z.resizeObserved=function(){_.IJ(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.z.navigateBackToHome=function(){_.S("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.S("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var K=_.i9().resolve(_.ax).isOnWatch(),X,F=((X=_.sm(location.pathname))==null?void 0:X.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(F)||K)&&this.gnomeContents&&_.S("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);K&&this.exploreHubContents&&_.S("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.aA().dispatch(_.iY({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.z.onPageChange=function(){var K=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.S("disable_chip_select_on_nav")||_.IJ(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.A9.addJob(function(){K.pageLoadingFromNavigation=!1;_.S("disable_chip_select_on_nav")&&_.S("h5_reset_cache_and_filter_before_update_masthead")&&K.resetCacheAndIsFilteredFeed();K.setMasthead();K.maybeSetBigYoodle();K.forceRefreshAndLog();K.terminateVideoPreview();_.S("web_hide_gnome_until_user_navigates_back_to_home")&&
(K.dataChanged(),_.tg(K,function(){if(K.showGnomeContents){var X=Array.from(_.C$(K.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(P){P=_.C$(P).querySelector("ytd-rich-shelf-renderer");return!!P&&P.isGnomeShelf()});
if(X){X=X.offsetTop-K.contentsElement.offsetTop;var F=_.i9().resolve(_.ax).getCurrentPage();F&&F.getPageScrollingElement().scrollTo({top:X,behavior:"smooth"})}}}));
_.S("web_hide_explore_hub_until_user_navigates_back_to_home")&&(K.dataChanged(),_.tg(K,function(){if(K.showExploreHubContents&&!_.S("web_explore_hub_no_scroll")){var X=Array.from(_.C$(K.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(P){return!!P.querySelector("ytd-talk-to-recs-flow-renderer")});
if(X){X=X.offsetTop-K.contentsElement.offsetTop;var F=_.i9().resolve(_.ax).getCurrentPage();F&&F.getPageScrollingElement().scrollTo({top:X,behavior:"smooth"})}}}))},8)):((_.S("web_hide_gnome_until_user_navigates_back_to_home")||_.S("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.z.dataChanged=function(){var K=this,X=_.kU("web_rich_grid_row_margin",0);X>0&&_.XU(this.hostElement,{"--ytd-rich-grid-row-margin":X+"px"});_.IJ(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.tg(this,function(){K.updateRichItemGridPositions();K.contentsElement&&_.XU(K.hostElement,{"--ytd-rich-grid-content-offset-top":K.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.z.initResizeObserver=function(){var K=this;if(window.ResizeObserver){var X;(X=this.resizeObserver)==null||X.disconnect();var F=!1;this.resizeObserver=new ResizeObserver(function(){if(F){var P;(P=K.resizeObserver)==null||P.disconnect();var H;(H=K.JSC$19273_throttledOnResize)==null||H.fire();requestAnimationFrame(function(){var u;(u=K.JSC$19273_throttledOnResize)==null||u.fire();K.initResizeObserver()})}else if(F=!0,K.resizeOnObserverInit){var f;
(f=K.JSC$19273_throttledOnResize)==null||f.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.z.contentLengthChanged=function(){if(_.S("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.IJ(this.hostElement,"ytd-rich-item-index-update-action")};
_.z.updateElementsPerRow=function(){_.IJ(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.iY({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.iY({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.z.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.z.onRichShelfRendererCollapse=function(K){if(this.shownItems){var X=K.detail;K=this.shownItems.findIndex(function(P){var H,f;return((f=_.T(P==null?void 0:(H=P.richSectionRenderer)==null?void 0:H.content,_.Abt))==null?void 0:f.trackingParams)===X});
var F=K+1;K<0||F>=this.contentsElement.children.length||!this.shownItems[F].richItemRenderer||this.contentsElement.children[F].scrollIntoView({behavior:"smooth",block:"start"})}};
_.z.onSoftReloadPage=function(){this.scrollUpToTop()};
_.z.handleRerenderDownloadsData=function(){_.S("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.z.handlePlaylistRemoveVideosAction=function(K){var X;if(((X=_.T(K,_.gAV))==null?0:X.setVideoIds)&&this.data&&this.data.contents){K=_.T(K,_.gAV).setVideoIds;for(X=this.data.contents.length-1;X>=0;){var F=_.T(this.data.contents[X],_.Sg);(F=F&&_.T(F.content,_.Ap))&&F.setVideoId&&K.includes(F.setVideoId)&&this.splice("data.contents",X,1);X--}this.updateIndices()}};
_.z.updateIndices=function(){if(this.data&&this.data.contents)for(var K=0;K<this.data.contents.length;K++)this.set("data.contents."+K+".richItemRenderer.index",_.GS(String(K+1)))};
_.z.hasTopRowInlinePlayableVideoWithEndorsement=function(K){var X;return!((X=K.slice(0,this.getItemsPerRow()))==null||!X.some(function(F){var P;F=_.T(F==null?void 0:(P=F.richItemRenderer)==null?void 0:P.content,_.y3);var H;return(F==null?void 0:F.inlinePlaybackEndpoint)&&(F==null?void 0:(H=F.thumbnailOverlays)==null?void 0:H.some(function(f){return f.thumbnailOverlayEndorsementRenderer}))}))};
_.z.refreshGridLayoutNew=function(K,X,F,P){var H=P.postsPerRow;var f=P.slimItemsPerRow;var u=P.gameCardsPerRow;P=P.miniGameCardsPerRow;var J;if((J=this.data)==null||!J.contents||!this.containerWidth)return!1;var Z;if((Z=this.data.responsiveContainerConfiguration)==null?0:Z.responsiveSize){var M=_.GF3(this.data.responsiveContainerConfiguration,this.containerWidth),n;J=_.ak(Object.assign({},M,{standardUnitMinWidth:(n=this.data)==null?void 0:n.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&M.isCompactList)}else J=_.ak({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(M=this.data)==null?void 0:M.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=J.typographyBump;n=!1;if(K||this.elementsPerRow!==J.numItems||this.postsPerRow!==H||this.slimItemsPerRow!==f||this.gameCardsPerRow!==
u||this.miniGameCardsPerRow!==P||this.gutter!==J.gutter)n=this.elementsPerRow!==J.numItems,this.elementsPerRow=J.numItems,this.postsPerRow=H,this.slimItemsPerRow=f,this.gameCardsPerRow=u,this.miniGameCardsPerRow=P,this.gutter=J.gutter,this.itemWidth=J.itemWidth,this.reflowContent(X),_.XU(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":J.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(F);this.ytdReduxBehavior.dispatch(_.iY({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:J.maxContainerWidth}));return n};
_.z.refreshGridLayout=function(K,X){var F,P=(F=this.hostElement)==null?void 0:F.clientWidth;this.containerWidth=this.adjustRichGridWidth(P,!0);var H;if((H=this.data)==null||!H.contents||!this.containerWidth)return K&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.S("rg_pending_reflow_ks")&&(K=!0,this.pendingForceReflow=!1);F=this.getRichItemMinWidth(P);var f=this.isShortsPanel?146:194,u=this.getMiniGameCardMinWidth(),J=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
P=F=this.calcElementsPerRow(F,J);(H=F<=3&&this.miniModeAllowed())&&(F=this.calcElementsPerRow(240,4));var Z=this.calcMaxSlimElementsPerRow(F,J,this.isDefaultGrid);J=this.calcElementsPerRow(f,Z);var M=this.calcElementsPerRow(this.isCompactGrid?f:154,Z);f=this.calcElementsPerRow(this.isCompactGrid?f:u,Z);u=!1;if(this.sizing)return this.refreshGridLayoutNew(K,X,H,{postsPerRow:P,slimItemsPerRow:J,gameCardsPerRow:M,miniGameCardsPerRow:f});if(K||this.elementsPerRow!==F||this.postsPerRow!==P||this.slimItemsPerRow!==
J||this.gameCardsPerRow!==M||this.miniGameCardsPerRow!==f)u=this.elementsPerRow!==F,this.elementsPerRow=F,this.postsPerRow=P,this.slimItemsPerRow=J,this.gameCardsPerRow=M,this.miniGameCardsPerRow=f,this.reflowContent(X),this.updateElementsPerRow(),_.XU(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)&&_.XU(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(H);_.IJ(this.hostElement,"yt-rich-grid-layout-refreshed");return u};
_.z.getRichItemMinWidth=function(K){var X=_.kU("rich_grid_min_item_width",310);if(!_.S("kevlar_disable_min_width_override")){var F,P;X=(P=(F=this.data)==null?void 0:F.minItemWidth)!=null?P:X}return X+_.Cpy(K)};
_.z.calcMaxSlimElementsPerRow=function(K,X,F){return(F===void 0?0:F)?K===1?2:K%2===0?_.S("web_shorts_2_by_3_reduce_items_per_row")&&K>=4?K/2*3-1:K/2*3:_.S("web_shorts_2_by_3_reduce_items_per_row")&&K>=3?K+1:K+2:X*2};
_.z.adjustRichGridWidth=function(K,X){var F=_.S("disable_rich_grid_guide_compensation");if(!this.isWatch&&!F){F=_.i9().resolve(_.Nu(_.en));var P=F==null?void 0:F.guideElement;if(!(!F||F.getData()||P!=null&&P.opened||F.getMiniGuideVisible()))if(F.canFitPersistentGuide(K)&&F.getGuideExpandsAutomatically()){var H,f,u=Number((H=window.getComputedStyle(this.hostElement))==null?void 0:(f=H.getPropertyValue("--app-drawer-width"))==null?void 0:f.replace("px",""));K-=u||0}else if(F.canFitMiniGuide(K)){var J;
H=Number((u=window.getComputedStyle(this.hostElement))==null?void 0:(J=u.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:J.replace("px",""));K-=H||0}}K>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(K-=X?32:48));return K};
_.z.calcElementsPerRow=function(K,X){var F=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),P=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((F+P)/(K+P))||1,X)};
_.z.reflowContent=function(K){var X=this;if(!this.isReflowing){this.isReflowing=!0;var F,P,H=!!((F=this.data)==null?0:(P=F.contents)==null?0:P.some(function(L){return _.T(L,_.xR)}));
F=this.getItemsPerRow();var f;P=(f=this.data)==null?void 0:f.reflowOptions;K&&(_.Ac("rgr_s"),_.tg(this,function(){_.Ac("rgr_nrf")}));
K={};(f=_.C$(this.hostElement).querySelector("#contents"))&&(K={contentElement:f,rendererToTagNameMap:this.rendererToTagNameMap});f=(f=this.data.contents)?f.slice():[];var u=(_.S("web_hide_gnome_behind_feed_filter_chip")||_.S("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,J=_.S("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,Z=-1,M=-1;if(this.isHomePage&&J){for(J=0;J<f.length;J++){var n=void 0,c=void 0;_.T((n=f[J])==null?void 0:
(c=n.richSectionRenderer)==null?void 0:c.content,Wwd)&&(M=J)}M>-1&&(this.exploreHubContents=f.splice(M,1))}if(this.isHomePage&&u){for(M=0;M<f.length;M++)c=n=void 0,(J=_.T((n=f[M])==null?void 0:(c=n.richSectionRenderer)==null?void 0:c.content,_.Abt))&&u&&(c=n=void 0,J=_.T((n=J)==null?void 0:(c=n.contents)==null?void 0:c[0],_.Sg),n=void 0,_.T((n=J)==null?void 0:n.content,_.wzL)&&(Z=M));Z>-1&&(this.gnomeContents=f.splice(Z,1))}var B=nyV(f,F,H,P,this.getRichGridStyle(),K,this.insertedContent);H=function(){X.shownItems=
B;X.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(B),_.tg(this,H)):H()}};
_.z.getFirstRowItems=function(K){for(var X=[],F=0;F<K.length;F++){var P=void 0,H=void 0,f=void 0,u=void 0,J=void 0,Z=void 0;if(((P=K[F])==null?void 0:(H=P.richItemRenderer)==null?void 0:H.rowIndex)===0||((f=K[F])==null?void 0:(u=f.richGroupRenderer)==null?void 0:u.rowIndex)===0||((J=K[F])==null?void 0:(Z=J.richSectionRenderer)==null?void 0:Z.rowIndex)===0)X.push(K[F]);else break}return X};
_.z.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.z.handleChipCloudChipSelectAction=function(K,X){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.S("web_hide_gnome_behind_feed_filter_chip")&&(X?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.z.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.S("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.z.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.S("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.z.terminateVideoPreview=function(){_.IJ(this.hostElement,"yt-terminate-video-preview-action")};
_.z.updateRichItemGridPositions=function(){var K={gridData:{gridColumnCount:this.elementsPerRow}},X;if((X=this.data)==null?0:X.trackingParams)this.loggingRefactor?_.uH().stateChanged(this.data.trackingParams,K):(X=_.AD())&&_.tc(X,_.QB(this.data.trackingParams),K);_.IJ(this.hostElement,"ytd-rich-item-index-update-action")};
_.z.miniModeAllowed=function(){return _.S("disable_channels_mini_mode")?!1:this.isChannelPage};
_.z.getMiniGameCardMinWidth=function(){return 154};
_.z.updateMiniMode=function(K){this.miniMode=this.miniModeAllowed()&&K;this.ytdReduxBehavior.dispatch(_.iY({type:"SET_RICH_GRID_MINI_MODE",payload:K}))};
_.z.isCurrentPage=function(){return location.pathname===this.pagePath};
_.z.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var K=_.i9().resolve(_.ax).getCurrentPage();K&&K.setScrollTop(0)}};
_.z.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.z.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.z.maybeSetBigYoodle=function(){var K,X=(K=this.data)==null?void 0:K.bigYoodle;this.bigYoodleData!==X&&(this.bigYoodleData=X)};
_.z.setMasthead=function(){var K;((K=this.data)==null?0:K.masthead)?this.mastheadData=this.data.masthead:_.S("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.z.getRichGridStyle=function(){var K,X;return(X=(K=this.data)==null?void 0:K.style)!=null?X:"RICH_GRID_STYLE_UNKNOWN"};
_.z.onIsShortsGridChange=function(){var K=this.ytdReduxBehavior,X=K.dispatch,F=this.getRichGridStyle();X.call(K,_.iY({type:"SET_RICH_GRID_STYLE",payload:F}))};
_.Oi.Object.defineProperties(S2.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var K;return(((K=this.data)==null?void 0:K.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var K;return(((K=this.data)==null?void 0:K.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var K=_.i9().resolve(_.ax).getCurrentPage(),X,F,P;return(((X=this.data)==null?void 0:X.targetId)==="browse-feedFEsfv_audio_pivot"||_.S("web_enable_channel_pivot_panel")&&((F=this.data)==null?void 0:F.targetId)==="browse-feedFEsfv_channel_pivot"||_.S("web_enable_effect_pivot_panel")&&((P=this.data)==null?void 0:P.targetId)==="browse-feedFEsfv_effect_pivot")&&(K==null?void 0:K.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.S("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 K;return!((K=this.data)==null?0:K.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var K;return((K=_.i9().resolve(_.ax).getCurrentPage())==null?void 0:K.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var K;return((K=_.i9().resolve(_.ax).getCurrentPage())==null?void 0:K.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var K;return this.hideChipsBar||(((K=this.data)==null?void 0:K.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.S("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var K;return(((K=this.data)==null?void 0:K.targetId)||"")==="watch-next-feed"&&!_.S("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return((K=this.data)==null?0:K.enableContentSpecificAspectRatio)||((X=this.data)==null?0:(F=X.responsiveContainerConfiguration)==null?0:F.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.kU("web_continuation_handler_margin",0):0}}});
S2.prototype.onIsShortsGridChange=S2.prototype.onIsShortsGridChange;S2.prototype.onReloadContinuationFinish=S2.prototype.onReloadContinuationFinish;S2.prototype.reflowContent=S2.prototype.reflowContent;S2.prototype.handleRerenderDownloadsData=S2.prototype.handleRerenderDownloadsData;S2.prototype.onRichShelfRendererCollapse=S2.prototype.onRichShelfRendererCollapse;S2.prototype.onRequestElementsPerRow=S2.prototype.onRequestElementsPerRow;S2.prototype.contentLengthChanged=S2.prototype.contentLengthChanged;
S2.prototype.dataChanged=S2.prototype.dataChanged;S2.prototype.onSizingChange=S2.prototype.onSizingChange;S2.prototype.onUseCompactListChange=S2.prototype.onUseCompactListChange;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],S2.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],S2.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.SL),_.g("design:type",Object)],S2.prototype,"ironResizableBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],S2.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.eG),_.g("design:type",Object)],S2.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],S2.prototype,"componentBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],S2.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],S2.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0,selector:_.SJ}),_.g("design:type",Boolean)],S2.prototype,"miniMode",void 0);_.O([_.h({value:[]}),_.g("design:type",Array)],S2.prototype,"shownItems",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],S2.prototype,"isReflowing",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],S2.prototype,"isFilteredFeed",void 0);_.O([_.h({selector:_.u5O}),_.g("design:type",Boolean)],S2.prototype,"guideIsExpanded",void 0);
_.O([_.h({selectorArgs:["entitySelectorType"],selector:function(K,X){if(_.S("kevlar_modern_downloads_page")&&X&&X!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(X){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var F=K.entities;X=_.cv(F);var P=_.pI(F),H=_.wH3(K),f=_.jZ9(K);K=_.ypn(K);var u=_.XHl(F),J=_.ZH(X);F=_.Bv(F);return _.WVw(X,P,u,H,f,J,F,K);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return X=_.cv(K.entities),_.eYq(X);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return X=
_.xf4(K.entities),_.RYl(X);default:_.yy(new _.nG("Error: entitySelectorType defined but not matched in selector.",K,X))}}}),
_.g("design:type",Object)],S2.prototype,"entityDrivenRichGridData",void 0);_.O([_.h(),_.g("design:type",Object)],S2.prototype,"resizeOnObserverInit",void 0);_.O([_.h(),_.g("design:type",Object)],S2.prototype,"bigYoodleData",void 0);_.O([_.h(),_.g("design:type",Object)],S2.prototype,"mastheadData",void 0);_.O([_.h(),_.g("design:type",Boolean)],S2.prototype,"isInlinePreviewDisabled",void 0);_.O([_.h(),_.g("design:type",Object)],S2.prototype,"disableStickyFilterBar",void 0);
_.O([_.h(),_.g("design:type",Object)],S2.prototype,"transparentBackgroundChipsBar",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],S2.prototype,"hideChipsBar",void 0);_.O([_.h(),_.g("design:type",Object)],S2.prototype,"isWatchDefaultLayout",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],S2.prototype,"continuationShowButton",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],S2.prototype,"rowReducedHorizontalMargin",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],S2.prototype,"useCompactList",void 0);_.O([_.h({selector:function(K){return _.pI(K.entities).length>0}}),
_.g("design:type",Object)],S2.prototype,"manualDownloadsPresent",void 0);_.O([_.h({selector:function(K){return _.cv(K.entities).length>0}}),
_.g("design:type",Object)],S2.prototype,"smartDownloadsPresent",void 0);_.O([_.h({selector:_.jZ9}),_.g("design:type",Object)],S2.prototype,"shouldRenderDownloadsBanner",void 0);_.O([_.h({selector:_.wH3}),_.g("design:type",Object)],S2.prototype,"hasOptedIntoSmartDownloads",void 0);_.O([_.so("useCompactList"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],S2.prototype,"onUseCompactListChange",null);
_.O([_.so("sizing","typographyBump"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],S2.prototype,"onSizingChange",null);_.O([_.h({selector:_.QZP}),_.g("design:type",Number)],S2.prototype,"miniplayerPlaybackState",void 0);_.O([_.h({selector:_.LI}),_.g("design:type",Boolean)],S2.prototype,"miniplayerIsActive",void 0);
_.O([_.h({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.g("design:type",Boolean)],S2.prototype,"isInlinePreviewEnabled",void 0);_.O([_.h({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.g("design:type",String)],S2.prototype,"sizing",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],S2.prototype,"elementsPerRow",void 0);
_.O([_.h(),_.g("design:type",Object)],S2.prototype,"typographyBump",void 0);_.O([_.h(),_.g("design:type",Number)],S2.prototype,"itemWidth",void 0);_.O([_.fa("#header"),_.g("design:type",HTMLElement)],S2.prototype,"headerElement",void 0);_.O([_.fa("#contents"),_.g("design:type",HTMLElement)],S2.prototype,"contentsElement",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],S2.prototype,"dataChanged",null);
_.O([_.JA("data.contents.length"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],S2.prototype,"contentLengthChanged",null);_.O([_.Hc("yt-request-elements-per-row"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],S2.prototype,"onRequestElementsPerRow",null);
_.O([_.Hc("yt-rich-shelf-renderer-collapse"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],S2.prototype,"onRichShelfRendererCollapse",null);_.O([_.JA("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],S2.prototype,"handleRerenderDownloadsData",null);
_.O([_.U("data"),_.g("design:type",String),_.g("design:paramtypes",[])],S2.prototype,"entitySelectorType",null);_.O([_.h({reflectToAttribute:!0}),_.U("data.targetId"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],S2.prototype,"isSub",null);_.O([_.h({reflectToAttribute:!0}),_.U("data.targetId"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],S2.prototype,"isWatch",null);
_.O([_.h({reflectToAttribute:!0}),_.U("data.targetId"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],S2.prototype,"isShortsPanel",null);_.O([_.h({reflectToAttribute:!0}),_.U("isWatch"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],S2.prototype,"reducedTopMargin",null);_.O([_.h({reflectToAttribute:!0}),_.U("data","isWatch","isWatchDefaultLayout"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],S2.prototype,"noTopMargin",null);
_.O([_.h({reflectToAttribute:!0}),_.U("isInlinePreviewEnabled","shownItems"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],S2.prototype,"topRowEndorsement",null);_.O([_.U("data.header"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],S2.prototype,"hideHeader",null);_.O([_.Hc("yt-rich-grid-reflow"),_.g("design:type",Function),_.g("design:paramtypes",[Boolean]),_.g("design:returntype")],S2.prototype,"reflowContent",null);
_.O([_.Hc("yt-reload-continuation-finish"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],S2.prototype,"onReloadContinuationFinish",null);_.O([_.U("data"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],S2.prototype,"isSlimGrid",null);_.O([_.U("data"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],S2.prototype,"isShortsGrid",null);
_.O([_.U("data","isSlimGrid","isShortsGrid"),_.h(),_.g("design:type",Boolean),_.g("design:paramtypes",[])],S2.prototype,"noRichItemGutterMargins",null);_.O([_.U("data"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],S2.prototype,"isShortsGridSlim",null);_.O([_.U("data"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],S2.prototype,"isCompactGrid",null);
_.O([_.U("data"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],S2.prototype,"isDefaultGrid",null);_.O([_.U("data.targetId"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],S2.prototype,"hideChipsBarOnHome",null);_.O([_.U("data.targetId"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],S2.prototype,"hideChipsBarOnWatch",null);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],S2.prototype,"onIsShortsGridChange",null);_.O([_.U("data.enableContentSpecificAspectRatio"),_.h(),_.g("design:type",Boolean),_.g("design:paramtypes",[])],S2.prototype,"force16By9ThumbnailAspectRatio",null);_.O([_.U("data"),_.g("design:type",Number),_.g("design:paramtypes",[])],S2.prototype,"continuationTriggerOffset",null);S2=_.O([_.v({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],S2);
_.t(S2,"ytd-rich-grid-renderer",function(){if(Ey5!==void 0)return Ey5;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return Ey5=K},{mode:2});var sqk=_.$c(function(K){var X=K.thumbsUp,F=K.thumbsDown,P=K.rightAlignThumbs;K=_.D(_.u_(!1,void 0,"FjNDrf"));var H=K.next().value,f=K.next().value;K=_.D(_.u_(!1,void 0,"Tphjfb"));var u=K.next().value,J=K.next().value;K={};return _.Q("div",{class:_.HO("ytwThumbsUpDownThumbs",(K.ytwThumbsUpDownRightAlign=function(){return P==null?void 0:P()},K))},_.Q(_.pS,{data:X,
onToggle:function(Z){f(Z);u()&&J(!1)},
buttonShapeOverrides:function(){return{toggled:H()}}}),_.Q(_.pS,{data:F,
onToggle:function(Z){J(Z);H()&&f(!1)},
buttonShapeOverrides:function(){return{toggled:u()}}}))},"yi");
sqk.idomCompat=!0;var fCV=_.$c(function(K){var X=function(){return K.data().pendingStateEntityKey||""},F=_.sy(_.rak,X),P=function(){var H;
if(!(H=K.disabled())){var f;H=!((f=F())==null||!f.isPendingResponse)}return H};
return _.Q("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.Q(_.cd,{each:function(){return K.data().chipData||[]},
keyBy:"REFERENCE"},function(H){return _.Q(zok,{data:H,disabled:P,pendingStateKey:X,onError:K.onError})}))},"zi"),zok=_.$c(function(K){var X=_.t_(),F=_.D(_.u_(!0,void 0,"HBREAe")),P=F.next().value,H=F.next().value,f=function(){return K.data().text.content},u=_.DF(function(J){var Z,M,n,c,B,L,A,d;
return _.q(function(R){switch(R.nextAddress){case 1:J.stopPropagation();if(K.disabled())return R.return();M=String(Math.floor(((Z=_.Ix())==null?void 0:Z.getCurrentTime())||0)*1E3);n="youchat-"+Date.now();c=function(){_.yB(K.data().onClick||{});var l={continuationCommand:{token:K.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},a={inputComposerFormData:{clientMessageId:n,playerOffsetMs:M}};return new Promise(function(E,V){_.yB(l,{form:{formData:a},commandController:{onSuccess:function(x,
N){E(N)},
onServerError:function(x,N){V(N.error)}}})})};
B=_.Aa5(K.pendingStateKey());B(!0);_.Jaw("#youchat-input, ytd-engagement-panel-section-list-renderer #footer yt-chat-input-view-model textarea, ytm-engagement-panel-section-list-renderer .engagement-panel-section-list-footer-wrapper yt-chat-input-view-model button");H(!1);_.s2(R,2);return _.Y(R,c(),4);case 4:_.Gy(R,3);break;case 2:L=_.qc(R),(d=(A=K).onError)==null||d.call(A,L);case 3:B(!1),_.JT(R)}})});
return _.Q(_.p,{cond:P,then:function(){return _.Q("div",{class:"ytwYouChatChipsDataChipWrapper"},_.Q("button",{el:X,class:"ytwYouChatChipsDataChip","data-disabled":K.disabled,"on:click":u,tabindex:0},f))}})},"Ai");var Dwk=_.$c(function(K){var X=K.data;return _.Q("yt-conversation-resource-view-model",{class:_.HO("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.Q(_.Md,{data:function(){var F,P;return((F=X().conversationResourceData)==null?void 0:(P=F.learningGuideData)==null?void 0:P.sections)||[]}},{expandableMetadataViewModel:function(F){return _.Q(_.liN,{data:F.data})}}))},"Bi");
Dwk.idomCompat=!0;var u3W=_.$c(function(K){var X=function(){var V;return(V=K.data().text)==null?void 0:V.content},F=function(){var V,x;
return(V=K.data().webData)==null?void 0:(x=V.textResult)==null?void 0:x.content},P=_.i9().resolve(_.lH),H=_.kf(),f=function(){return K.data().chatResponseStyle},u=function(){return!K.data().transparentBackground},J=function(){return K.data().rightAlignThumbs},Z=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:K.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},M=function(){var V;
return K.data().webData||((V=K.data().text)==null?void 0:V.content)||K.data().videoResultsData||K.data().conversationResourceViewModel||K.data().quiz},n=function(){var V;
return(V=K.data().videoResultsData)==null?void 0:V.videoShelf},c=function(){var V;
return _.T(((V=K.data().videoResultsData)==null?void 0:V.videoShelf)||{},hGV)},B=function(){var V;
return(V=K.data().webData)==null?void 0:V.sourcesShelf},L=function(){var V;
return _.T(((V=K.data().webData)==null?void 0:V.sourcesShelf)||{},hGV)},A=function(){return _.T(K.data().conversationResourceViewModel||{},GLt)},d=function(){return _.T(K.data().quiz||{},eGW)},R=function(){return f()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||f()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:K.data().thumbsDownViewModel&&K.data().thumbsUpViewModel},l=function(){return _.T(K.data().thumbsUpViewModel,_.cp)},a=function(){return _.T(K.data().thumbsDownViewModel,_.cp)};
_.Tr(function(){requestAnimationFrame(function(){var V;(V=K.shouldAnimateIcon)!=null&&V.call(K)&&jeW(H.lottieEl)})});
var E={};return _.Q("you-chat-item-view-model",{class:_.HO("ytwYouChatItemViewModelYouChatItemViewModel",(E.ytwYouChatItemViewModelHostNoPadding=function(){return!1},E)),
"data-target-id":function(){return K.data().id||""}},_.Q(_.p,{cond:function(){return K.data().removeIcon?!1:M()},
then:function(){var V={};return _.Q("div",{"aria-hidden":"true"},_.Q(_.se,{className:_.HO("ytwYouChatItemViewModelIcon",(V.ytwYouChatItemViewModelRtl=P==="rtl",V.ytwYouChatItemViewModelHidden=function(){return!(K.data().hideIcon||f()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||f()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:M())},V)),
animationName:"YOUCHAT_ICON",data:Z,animationRef:H}))}}),_.Q(_.p,{cond:M,
then:function(){var V={};return _.Q("div",{class:_.HO("ytwYouChatItemViewModelHost",(V.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return f()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},V.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return f()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},V.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return f()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},V.ytwYouChatItemViewModelGradientBackground=u,V)),
role:"alert"},_.Q(_.p,{cond:X,then:function(x){return _.Q(_.wT,{text:x})}}),_.Q(_.p,{cond:F,
then:function(x){return _.Q(_.wT,{text:x})}}),_.Q(_.p,{cond:n,
then:function(){return _.Q("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.Q(_.Au,{data:c,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.Q(_.p,{cond:B,
then:function(){return _.Q("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.Q(_.Au,{data:L,hasPeek:!0,disableArrows:!1}))}}),_.Q(_.p,{cond:A,
then:function(){return _.Q(Dwk,{data:A})}}),_.Q(_.p,{cond:d,
then:function(){return _.Q(_.mPC,{data:d})}}),_.Q(_.p,{cond:R,
then:function(){return _.Q(sqk,{thumbsUp:l,thumbsDown:a,rightAlignThumbs:J})}}))}}),_.Q(_.p,{cond:function(){return K.data().chipsData},
then:function(V){return _.Q(fCV,{data:V,disabled:K.pending,onError:K.onError})}}))},"Ci");
u3W.idomCompat={callbacks:{onError:!0,onSend:!0}};var qR1=_.$c(function(K){var X=function(){return K.data().choiceSelectedText};
return _.Q("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.Q(_.p,{cond:X,then:function(){return _.Q("div",{class:"ytYouChatUserTurnChoiceSelected"},_.Q(_.Oy,{text:X}))}}),_.Q("div",{class:"ytYouChatUserTurnUserMessage"},function(){return K.data().text}))},"Di");var JdJ=_.$c(function(K){var X=_.D((0,_.nkL)(K.data)).next().value;return _.Q("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return K.data().targetId||""}},_.Q(_.Md,{data:function(){return K.data().header}},{chipBarViewModel:_.H6W}),_.Q(_.Md,{data:function(){return X().contents}},{accordionViewModel:_.vIE,
alertBannerViewModel:_.JOZ,chatLoadingViewModel:_.B2G,chatUserTurnViewModel:qR1,learningJourneyLoaderViewModel:_.hxZ,lockupViewModel:function(F){return _.Q(_.iJ,{data:F.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:K.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(F){return _.Q(u3W,{data:F.data,pending:!1})}}))},"Ei");_.EP(_.$c(function(K){var X=_.D((0,_.nkL)(K.data)).next().value,F=_.t_(),P=_.D(_.u_(void 0,void 0,"rQpPgc")),H=P.next().value,f=P.next().value,u=function(){var J;return _.T((J=K.data().sectionListLayoutConfiguration)==null?void 0:J.layoutConfiguration,UQo)};
_.AV(function(){var J,Z=(J=F.value)==null?void 0:J.clientWidth;if(u()){J=u();var M=J.responsiveSize;Z=Z<528?"CONTAINER_SIZE_NARROW":Z<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var n=_.D(J.responsiveMap||[]);for(var c=n.next();!c.done;c=n.next())if(c=c.value,c.containerSize===Z){n=c.containerType;break b}n=void 0}if(n&&M){b:{if(n==="CONTAINER_TYPE_VERTICAL_LIST")if(M==="RESPONSIVE_SIZE_STANDARD"){if(Z!=="CONTAINER_SIZE_NARROW"){c="50%";break b}}else{c=Z==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}c=void 0}J={responsiveSize:M,containerSize:Z,containerType:n,force16By9ThumbnailAspectRatio:!J.enableContentSpecificAspectRatio,contentPreviewWidth:c,fullbleed:(n==="CONTAINER_TYPE_VERTICAL_LIST"||n==="CONTAINER_TYPE_GRID")&&Z==="CONTAINER_SIZE_NARROW"&&!1}}else J=void 0}else J=void 0;f(J)});
return _.Q("yt-section-list-renderer",{class:_.HO("ytSectionListRendererHost",K.className),el:F,"data-target-id":function(){return K.data().targetId||""}},_.Q(_.Md,{data:function(){return X().contents}},{itemSectionRenderer:function(J){return _.Q(JdJ,{data:J.data,
containerLayoutConfig:H})}}))},"Fi"),"yt-section-list-renderer",{props:{data:_.vU,
className:_.g$}});var Zrv;var YRV;var oN=function(){return _.G.apply(this,arguments)||this};
_.r(oN,_.G);_.O([_.h(),_.g("design:type",Object)],oN.prototype,"data",void 0);oN=_.O([_.Tb({is:"yt-alert-renderer",disableElementRegistration:!0})],oN);
_.t(oN,"yt-alert-renderer",function(){if(YRV===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;Zrv===void 0&&(Zrv=document.createElement("template"));var P=Zrv;F.call(X,P.content.cloneNode(!0),K.content.firstChild);YRV=K}K=YRV;return K},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.$Rw=function(K,X){var F,P;X=X===void 0?{}:X;var H,f,u,J,Z,M,n,c,B,L,A,d;return _.q(function(R){switch(R.nextAddress){case 1:H=X;f=H.shouldWrap===void 0?!0:H.shouldWrap;u=H.skipTransitionTimeoutMs===void 0?300:H.skipTransitionTimeoutMs;J=H.beforeTransition;Z=H.afterTransition;if(!f||!document.startViewTransition||document.visibilityState==="hidden")return R.return(K());F=window.innerWidth;P=window.innerHeight;M=!1;(n=J)==null||n();_.s2(R,2);c=document.startViewTransition(K);B=setTimeout(function(){c.skipTransition();
M=!0},u);
return _.Y(R,c.ready,4);case 4:return clearTimeout(B),_.Y(R,c.finished,5);case 5:clearTimeout(B);(L=Z)==null||L();_.Gy(R,0);break;case 2:A=_.qc(R),(d=Z)==null||d(),A&&!M&&document.visibilityState!=="hidden"&&F===window.innerWidth&&P===window.innerHeight&&_.jF(A),_.JT(R)}})};
_.Lr=function(){for(var K=Array(36),X=0,F,P=0;P<36;P++)P==8||P==13||P==18||P==23?K[P]="-":P==14?K[P]="4":(X<=2&&(X=33554432+Math.random()*16777216|0),F=X&15,X>>=4,K[P]=_.OaW[P==19?F&3|8:F]);return K.join("")};/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var OxJ=_.lr(['<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>']),
Vyk=_.dzt(OxJ);Vyk.setAttribute("style","display: none;");document.head.appendChild(Vyk.content);_.TA=_.Lzq(function(K){var X=_.nJ("DIV");K&&(X.className=K);X.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";K=_.nJ("DIV");_.tPU(K,"200px","200px");X.appendChild(K);document.body.appendChild(X);K=X.offsetWidth-X.clientWidth;_.c_(X);return K});var g8k;var E8J;var r8=function(){var K=_.G.apply(this,arguments)||this;K.icon=null;return K};
_.r(r8,_.G);r8.prototype.dismiss=function(){_.iX(this.hostElement,"yt-live-chat-error-message-dismiss")};
r8.prototype.computeIcon=function(K){return K&&K.iconType?"yt-icons:"+K.iconType.toLowerCase():"yt-icons:close"};
_.O([_.h(),_.g("design:type",Object)],r8.prototype,"data",void 0);_.O([_.h({computed:"computeIcon(data.icon)"}),_.g("design:type",Object)],r8.prototype,"icon",void 0);r8=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],r8);
_.t(r8,"yt-live-chat-error-message-renderer",function(){if(E8J===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;g8k===void 0&&(g8k=document.createElement("template"));var P=g8k;F.call(X,P.content.cloneNode(!0),K.content.firstChild);E8J=K}K=E8J;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var Skt,oKo,LV8,TaW,WV1,dpG,eYo,RYV,UpF,jo,hYF,mpG,w7,GFs,ltJ,vKJ,att,trs,$pW,Oeo,Vrv,gKt,EKs,be1,CE8,NaJ,ieo,xpV,Ito,kFV,Kpw,Xtk,yR,Fp8,Po8,Hov,fx8,D7o,uh8,qC1,J$k,Zo8,sH8,zJJ,QH8,Mfo,nTV,c$t,pt5,YCV,SCk;Skt=function(K,X){return _.FF(K.entities,"timedMarkersListSyncEntity",X)};
oKo=function(K,X){return _.FF(K.entities,"liveReactionsDataEntity",X)};
LV8=function(K,X){K=_.FF(K.entities,"booleanEntity",X);return!(!K||!K.value)};
TaW=function(K,X){var F=_.AD();F&&K&&_.Us(F,_.QB(K),X)};
_.rJJ=function(){_.S("web_watch_log_theater_mode")&&_.GA4("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.AJw=function(K,X,F){if(!K.includes("START_TIME_PLACEHOLDER")||!K.includes("END_TIME_PLACEHOLDER"))return K;var P=new Date(0),H=new Date(0);P.setUTCMilliseconds(X);H.setUTCMilliseconds(F);return K.replace("START_TIME_PLACEHOLDER",_.RA(P,7)).replace("END_TIME_PLACEHOLDER",_.RA(H,7))};
_.jlt=function(K){return K.watch.isWatchActive};
_.wwv=function(K){return _.wV(K)||_.yW(K)||_.tey(K)};
_.yJv=function(K){return!_.wwv(K)};
_.AG=function(K){return K.watch.watchScrollTop};
WV1=function(K){return K.watch.isLiveChatCollapsed};
dpG=function(K){return K.watch.openEngagementPanels};
eYo=function(K,X){return _.FF(K.entities,"booleanEntity",X)};
RYV=function(){return function(K){_.vc(_.zl("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:K}))}};
UpF=function(K){switch(K){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}};
jo=function(K,X,F){var P=_.w$(F);K&&X&&P&&K.getPlayerPromise().then(function(H){_.Q1l(P)&&_.A_();(new _.Z5(H)).executeCommand(P,X);_.S("continue_playback_on_desktop_companion_click")||H.pauseVideo()})};
hYF=function(K){var X=_.$f(),F;if(F=_.mz("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var P;F=(P=F())==null?void 0:P.layoutId}else F=null;jo(X,F,K)};
mpG=function(K){var X=_.$f(),F;if(F=_.mz("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var P;F=(P=F())==null?void 0:P.layoutId}else F=null;jo(X,F,K)};
w7=function(K,X){var F=K<0?"-":"";K=Math.abs(K);var P=Math.floor(K/3600),H=Math.floor(K)%3600,f=Math.floor(H/60);H=Math.floor(H)%60;var u="";(X===void 0?0:X)&&(u="."+Math.round((K-Math.floor(K))*10));return P>0?F+P+":"+(f<10?"0"+f:""+f)+":"+(H<10?"0"+H:""+H)+u:F+f+":"+(H<10?"0"+H:""+H)+u};
GFs=function(K){var X=K.match(/[^0-9:\.]/g);if(X&&X.length>0)return null;K=K.split(":");if(K.length===0||K.length>3)return null;X=1;for(var F=0;K.length>0;){var P=K.pop();if(P===void 0)break;var H=Number(P);if(P===""||isNaN(H))return null;F+=H*X;X*=60}return F};
ltJ=function(K,X,F,P){K=Math.max(F,K);X=Math.min(X,P-F);K+X>P?(F=P,K=F-X):F=K+X;return{start:K,end:F}};
vKJ=function(K,X,F,P,H,f){K<F?K=F:K+H>P&&(K=P-H);X>P&&(X=P);X=Math.min(K+f,Math.max(K+H,X));return{start:K,end:X}};
att=function(K,X,F,P,H,f){X>P?X=P:X-H<F&&(X=F+H);K<F&&(K=F);K=Math.min(X-H,Math.max(X-f,K));return{start:K,end:X}};
trs=function(K){return _.S("web_transcript_cue_id_killswitch")?String(K):"ytd-transcript-renderer_"+K};
$pW=function(K){return _.S("web_transcript_cue_id_killswitch")?!0:K.startsWith("ytd-transcript-renderer")};
Oeo=function(K){var X=_.$f(),F;if(F=_.mz("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var P;F=(P=F())==null?void 0:P.layoutId}else F=null;jo(X,F,K)};
Vrv=function(K){K.style.height="auto";K.style.height=Math.min(K.scrollHeight||20,80)+"px"};
gKt=function(K,X){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:X}}],insertByPositionInSection:{sectionTargetId:K,position:"INSERTION_POSITION_LAST"}}}]}}}};
EKs=function(K){var X=_.$f(),F;F=(F=_.mz("yt.www.ads.eventcache.getLastCompanionData"))?(F=F())&&F.layoutId:null;jo(X,F,K)};
be1=function(K){var X=_.$f(),F;F=(F=_.mz("yt.www.ads.eventcache.getLastCompanionData"))?(F=F())&&F.layoutId:null;jo(X,F,K)};
CE8=function(K,X){X=X===void 0?!1:X;if(K.simpleText)K=[{text:K.simpleText}];else{var F;K=((F=K.runs)!=null?F:[]).map(function(P){return Object.assign({},P)})}if(X)for(X=_.D(K),F=X.next();!F.done;F=X.next())F.value.bold=!0;
return K};
NaJ=function(K){var X=K.startEndTimeTemplate,F=K.startTimeUtcMillis;K=K.endTimeUtcMillis;if(X&&F&&K)return _.GS(_.AJw(_.lj(X),Number(F),Number(K)))};
ieo=function(K,X){var F,P,H=K==null?void 0:(F=K.viewCount)==null?void 0:(P=F.videoViewCountRenderer)==null?void 0:P.shortViewCount;if(!X&&H)return H;var f,u;return K==null?void 0:(f=K.viewCount)==null?void 0:(u=f.videoViewCountRenderer)==null?void 0:u.viewCount};
xpV=function(K,X){var F=K==null?void 0:K.relativeDateText;return!X&&F?[F,!0]:[K==null?void 0:K.dateText,!1]};
Ito=function(K,X,F,P,H){P=P===void 0?!0:P;H=H===void 0?"":H;var f=ieo(K,X),u=_.D(xpV(K,X)),J=u.next().value;u=u.next().value;X=X?K==null?void 0:K.sponsorsOnlyFirstTimeLongText:K==null?void 0:K.sponsorsOnlyFirstTimeShortText;var Z=[];F&&f&&Z.push(f);!F&&u||!J||Z.push(J);K=[].concat(_.LZ(Z),[X,K==null?void 0:K.stationName,K==null?void 0:K.rating,K?NaJ(K):void 0,K==null?void 0:K.upNextProgramText,K==null?void 0:K.superTitleLink]).filter(function(M){return!!M});
F={runs:[]};for(f=0;f<K.length;f++)F.runs.push.apply(F.runs,_.LZ(CE8(K[f],P))),f<K.length-1&&F.runs.push({text:" "+H+" ",bold:P});return F};
kFV=function(K){if(K)return{runs:[{text:K,bold:!0}]}};
Kpw=function(K){var X,F,P,H;if(K=K==null?void 0:(X=K.contents)==null?void 0:(F=X.twoColumnWatchNextResults)==null?void 0:(P=F.results)==null?void 0:(H=P.results)==null?void 0:H.contents){var f,u;return(u=(f=K.find(function(J){return!!J.videoPrimaryInfoRenderer}))==null?void 0:f.videoPrimaryInfoRenderer)==null?void 0:u.updatedMetadataEndpoint}};
Xtk=function(K,X){var F;return(F=K.sourceConfigs)==null?void 0:F.find(function(P){return P.videoId===X})};
yR=function(K){return K==="End of video"||K==="End of playlist"};
Fp8=function(K){var X,F,P,H;return(X=K.getWatchNextResponse())==null?void 0:(F=X.contents)==null?void 0:(P=F.twoColumnWatchNextResults)==null?void 0:(H=P.playlist)==null?void 0:H.playlist};
Po8=function(K){var X,F,P,H,f,u;return(X=Fp8(K))==null?void 0:(F=X.playlistButtons)==null?void 0:(P=F.menuRenderer)==null?void 0:(H=P.topLevelButtons)==null?void 0:(f=H[0])==null?void 0:(u=f.playlistLoopButtonRenderer)==null?void 0:u.playlistLoopStateEntityKey};
Hov=function(K){var X=_.i9().resolve(_.AW),F;return(X=(F=_.T(X.getAutoplayEndpoint(),_.vg))==null?void 0:F.playlistId)&&X===K};
fx8=function(K,X,F,P,H){function f(){_.A9.cancelJob(W3);var u=sH8(X,F/K.getPlaybackRate()),J=u.hours,Z=u.minutes;u=(u.seconds*1E3||6E4)/K.getPlaybackRate();K.setVideoTimeLeft(zJJ(J,Z));P&&K.getPlayerState()!==0&&K.setSleepTimerTimeLeft(zJJ(J,Z,!0));(J>0||Z>0)&&!H&&(W3=_.u6(_.A9,f,u))}
_.A9.cancelJob(W3);W3=_.u6(_.A9,f)};
D7o=function(K,X,F){function P(){_.A9.cancelJob(d7);var H=sH8(X,F),f=H.hours;H=H.minutes;var u=6E4/K.getPlaybackRate();if(f>0||H>0)K.setSleepTimerTimeLeft(zJJ(f,H,!0)),d7=_.u6(_.A9,P,u)}
_.A9.cancelJob(d7);d7=_.u6(_.A9,P)};
uh8=function(K,X){var F=K.getVolume()/(X/500),P=function(H){_.A9.cancelJob(eo);var f=Math.floor(H-F);K.setVolume(f,!1);f>0&&(eo=_.u6(_.A9,function(){P(f)},500))};
_.A9.cancelJob(eo);eo=_.u6(_.A9,function(){P(K.getVolume())})};
qC1=function(K,X){_.A9.cancelJob(eo);X&&K.syncVolume()};
J$k=function(){var K={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.uY("SLEEP_TIMER_DISRUPTED")}}}}};_.i9().resolve(_.xU).resolveCommand(K)};
Zo8=function(K){return(K.getDuration()-K.getProgressState().current)*1E3};
sH8=function(K,X){K=K+X-(0,_.CG)();if(K<=0)return{hours:0,minutes:0,seconds:0};var F=new YCV(0,0,0,0,0,0,K);K=F.getHours();X=F.getMinutes();F=F.getSeconds();F!==0&&X++;X!==0&&X%60===0&&(K++,X=0);return{hours:K,minutes:X,seconds:F}};
zJJ=function(K,X,F){return K>0&&X>0?F?_.uY("TIME_LEFT_HOURS_MINUTES",{hours:K.toString(),minutes:X.toString()}):_.uY("TIME_HOURS_MINUTES",{hours:K.toString(),minutes:X.toString()}):K>0?F?_.qm("TIME_LEFT_HOURS",K):_.qm("TIME_HOURS",K):F?_.uY("TIME_LEFT_MINUTES",{minutes:X.toString()}):_.uY("TIME_MINUTES",{minutes:X.toString()})};
QH8=function(K,X){if(K.timelyActions)return K.timelyActions.find(function(F){var P;return((P=_.T(F,R4))==null?void 0:P.cueRangeId)===X})};
Mfo=function(K){var X=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.xv(K);K.keyMap_.forEach(function(F,P){_.Ol(X,P)||this.remove(P)},K)};
nTV=function(K,X){K.reloadContinuationItemsCommandMatcher=X};
_.U9=function(K,X){K.insertBefore(X,K.childNodes[0]||null)};
c$t=function(K){if(K>=48&&K<=57||K>=96&&K<=106||K>=65&&K<=90||_.Ii&&K==0)return!0;switch(K){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 _.xA;default:return!1}};
pt5=function(K){if(K.altKey&&!K.ctrlKey||K.metaKey||K.keyCode>=112&&K.keyCode<=123)return!1;if(c$t(K.keyCode))return!0;switch(K.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!_.xA;default:return K.keyCode<166||K.keyCode>183}};
YCV=function(K,X,F,P,H,f,u){this.date=typeof K==="number"?new Date(K,X||0,F||1,P||0,H||0,f||0,u||0):new Date(K&&K.getTime?K.getTime():_.E$())};
_.br(YCV,_.Y4);_.z=YCV.prototype;_.z.getHours=function(){return this.date.getHours()};
_.z.getMinutes=function(){return this.date.getMinutes()};
_.z.getSeconds=function(){return this.date.getSeconds()};
_.z.getMilliseconds=function(){return this.date.getMilliseconds()};
_.z.getUTCDay=function(){return this.date.getUTCDay()};
_.z.getUTCHours=function(){return this.date.getUTCHours()};
_.z.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.z.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.z.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.z.setHours=function(K){this.date.setHours(K)};
_.z.setMinutes=function(K){this.date.setMinutes(K)};
_.z.setSeconds=function(K){this.date.setSeconds(K)};
_.z.setMilliseconds=function(K){this.date.setMilliseconds(K)};
_.z.setUTCHours=function(K){this.date.setUTCHours(K)};
_.z.setUTCMinutes=function(K){this.date.setUTCMinutes(K)};
_.z.setUTCSeconds=function(K){this.date.setUTCSeconds(K)};
_.z.setUTCMilliseconds=function(K){this.date.setUTCMilliseconds(K)};
_.z.add=function(K){_.Y4.prototype.add.call(this,K);K.hours&&this.setUTCHours(this.date.getUTCHours()+K.hours);K.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+K.minutes);K.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+K.seconds)};
_.z.JSC$9236_toIsoString=function(K){var X=_.Y4.prototype.JSC$9236_toIsoString.call(this,K);return K?X+"T"+_.gd(this.getHours(),2)+":"+_.gd(this.getMinutes(),2)+":"+_.gd(this.getSeconds(),2):X+"T"+_.gd(this.getHours(),2)+_.gd(this.getMinutes(),2)+_.gd(this.getSeconds(),2)};
_.z.equals=function(K){return this.getTime()==K.getTime()};
_.z.toString=function(){return this.JSC$9236_toIsoString()};
_.z.clone=function(){var K=new YCV(this.date);K.firstDayOfWeek_=this.firstDayOfWeek_;K.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return K};
_.BO1=function(K){return _.iY({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:K}})};
SCk=new _.b("imageTileRenderer");var oTG=new _.b("adGridCardCollectionViewModel");var LpG=new _.b("carouselTitleViewModel");var TOV=new _.b("ctaCarouselItemViewModel");var r$W=new _.b("textFieldViewModel");_.A$o=new _.b("engagementPanelHeaderShowNavigationButtonCommand");var jHw=new _.b("hideEngagementPanelScrimAction");var wtJ=new _.b("setActivePanelItemAction");var y$G=new _.b("showEngagementPanelScrimAction");var WpW=new _.b("updateEngagementPanelAction");var d7W=new _.b("updateSearchInVideoResultsAction");var eJ8=new _.b("transcriptCueGroupRenderer");var RJs=new _.b("transcriptCueRenderer");var U7v=new _.b("transcriptFooterRenderer");var hJt=new _.b("engagementPanelAdSubtitleRenderer");var m7s=new _.b("videoDescriptionFantasySectionViewModel");var Gq8=new _.b("deleteClipEngagementPanelCommand");var lxG=new _.b("loopCommand");var vTF=new _.b("changeCreatorEndscreenVisibilityCommand");var axG=new _.b("liveChatCallForQuestionsRenderer");var tfo=new _.b("updateTimedMarkersSyncObserverCommand");var R4=new _.b("timelyActionViewModel");var $7o=new _.b("timelyActionsOverlayViewModel");var Oos=new _.b("repeatChapterCommand");var Vfw=new _.b("watchPlayerOverflowMenuCommand");var gTs=new _.b("compositeVideoOverlayRenderer");var ETG=new _.b("sortFilterSubMenuRenderer");var bo8=new _.b("switchListItemViewModel");var Cow=new _.b("inputComposerViewModel");var NO5=new _.b("transcriptEditSegmentCommand");var io8=new _.b("transcriptUpdateSegmentTextCommand");var x7t=new _.b("transcriptSearchBoxRenderer");var Ix5=new _.b("transcriptSegmentListRenderer");var kq8=new _.b("transcriptSegmentRenderer");_.KZV=new _.b("updateDateTextAction");var XPw=new _.b("updateTitleAction");var FZd=new _.b("updateViewershipAction");var P3d=new _.b("carouselLockupRenderer");var HgF=new _.b("expandableVideoDescriptionBodyRenderer");var s$5=new _.b("videoDescriptionYouchatSectionViewModel");_.hG=_.kU("kevlar_watch_page_horizontal_margin",24);_.zKJ=_.kU("kevlar_watch_page_columns_top_padding",24);_.f8s=426+_.hG*2;_.me=_.kU("kevlar_watch_two_column_width_threshold",1E3);_.DC8=_.hG*2;_.uR1=_.kU("kevlar_watch_secondary_width",402);_.qbs=_.kU("kevlar_watch_max_player_width",1280);_.JS1=_.kU("kevlar_watch_flexy_metadata_height",136);_.Zg8=_.DC8+310+_.hG;_.Yb5=_.DC8+360+_.hG;var Q$5={PAUSE_CHAT:18};var Mss;var nev;var Gd=function(){return _.G.apply(this,arguments)||this};
_.r(Gd,_.G);Gd.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
Gd.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var K=_.T(this.data.button,_.nS);K&&(K.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.Oi.Object.defineProperties(Gd,{template:{configurable:!0,enumerable:!0,get:function(){if(nev===void 0){var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;Mss===void 0&&(Mss=document.createElement("template"));var P=Mss;F.call(X,P.content.cloneNode(!0),K.content.firstChild);nev=K}K=nev;return K}}});
_.O([_.W(_.yj),_.g("design:type",Object)],Gd.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Gd.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h({selectorArgs:["data.enabledEntityKey"],selector:LV8,observer:"onEnabledChange"}),_.g("design:type",Boolean)],Gd.prototype,"enabled",void 0);_.O([_.h(),_.g("design:type",Object)],Gd.prototype,"data",void 0);Gd=_.O([_.Tb({is:"yt-disableable-button-view-model",noInjection:!0})],Gd);var cS5;var pPG;var Bf5=["transVert01","transVert02","transVert03"],Sbd="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),lF=function(){var K=_.G.apply(this,arguments)||this;K.emojiManager=_.yU;K.isDarkTheme=document.documentElement.hasAttribute("dark");K.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};K.reactionBuckets=[];K.noEmojiIdentifier="NO_EMOJI";return K};
_.r(lF,_.G);_.z=lF.prototype;_.z.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.z.desktopFountainEmojiSizePxChanged=function(){_.XU(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.z.createUserReactionAnimation=function(K){this.createEmojiAnimation(K,!0)};
_.z.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var K;((K=this.data)==null?0:K.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.zl("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.LZ(this.emojiContainer.children)).forEach(function(X){X.remove()})};
_.z.detached=function(){this.cleanupFountain()};
_.z.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var K;this.reactionBuckets=_.T8.unsafeClone((K=this.emojiFountainData)==null?void 0:K.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.z.processEmojiBucket=function(K){var X=this;if(this.reactionBuckets&&!(K>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var F=this.reactionBuckets[K];this.generateEmojiAnimations(F);if(K<this.reactionBuckets.length-1){var P;if(F==null?0:(P=F.duration)==null?0:P.seconds)this.emojiBucketTimerId=setTimeout(function(){X.processEmojiBucket(K+1)},Number(F.duration.seconds)*1E3)}}};
_.z.generateEmojiAnimations=function(K){var X=this,F=this.getRandomEmojiIdFromBucketWithOverride(K);if(F&&F!==this.noEmojiIdentifier){var P=0;K.targetEps?(P=this.linearInterpolateBounded(1,20,100,12,K.emojiSizeIndex||0),this.createEmojiAnimation(F,!1,K.emojiAnimationMs,P),P=this.getEmojiDelayMsFromTargetEps(K.targetEps)):(this.createEmojiAnimation(F),P=this.getEmojiDelayMsFromDistribution(K.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){X.generateEmojiAnimations(K)},P)}};
_.z.getRandomEmojiIdFromBucketWithOverride=function(K){if(!(K&&K.reactionsData&&K.reactionsData.length&&K.totalReactions))return this.noEmojiIdentifier;for(var X=K.totalReactions,F=1,P=_.D(K.reactionsData),H=P.next();!H.done;H=P.next())H=H.value,(H.reactionWeightOverride||H.reactionWeightOverride===0)&&H.reactionCount&&(X-=H.reactionCount,F-=H.reactionWeightOverride);P=!0;F<0&&(P=!1,X=K.totalReactions,F=1);if(P&&F>0&&X===0)if(F===1){H=0;for(var f=_.D(K.reactionsData),u=f.next();!u.done;u=f.next())u=
u.value,u.reactionCount&&u.reactionCount>0&&H++;H=1/H;f=_.D(K.reactionsData);for(u=f.next();!u.done;u=f.next())u.value.reactionWeightOverride=H}else for(H=1/(1-F),f=_.D(K.reactionsData),u=f.next();!u.done;u=f.next())u=u.value,u.reactionWeightOverride&&(u.reactionWeightOverride*=H);H=Math.random();f=0;u=_.D(K.reactionsData);for(var J=u.next();!J.done;J=u.next())if(J=J.value,J.reactionCount&&(f=(J.reactionWeightOverride||J.reactionWeightOverride===0)&&P?f+J.reactionWeightOverride:f+F*J.reactionCount/
X,f>H&&(J.reactionCount--,K.totalReactions--,J=this.reactionItemToEmojiString(J),J!==this.noEmojiIdentifier)))return J;return this.noEmojiIdentifier};
_.z.reactionItemToEmojiString=function(K){if(K.unicodeEmojiId)return K.unicodeEmojiId;if(K.emoteId)return K.emoteId;if(K.videoReactionType)switch(K.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.z.createEmojiAnimation=function(K,X,F,P){X=X===void 0?!1:X;this.lastEmojiRequestedForTesting=K;var H=K.startsWith("yt-icons:"),f=_.jY(this.emojiManager,K);if(f||H){var u=document.createElement("emoji");u.classList.add("yt-emoji-fountain-view-model");u.classList.add(Bf5[Math.floor(Math.random()*Bf5.length)]);var J=document.createElement("div");J.classList.add("yt-emoji-fountain-view-model");J.classList.add("horizontal-container");J.classList.add(Sbd[Math.floor(Math.random()*Sbd.length)]);X?(F=document.createElement("div"),
F.classList.add("user-reaction-bubble"),F.classList.add("yt-emoji-fountain-view-model"),J.appendChild(F)):(F&&(u.style.animationDuration=F+"ms",J.style.animationDuration=F+"ms"),P&&(u.style.width=P+"px",u.style.height=P+"px"));H?(H=document.createElement("yt-icon"),H.polymerController.icon=K,P&&(H.style.width=P+"px",H.style.height=P+"px"),K=H):K=this.emojiManager.createEmoji(f,!1);K.classList.add("yt-emoji-fountain-view-model");J.appendChild(K);u.appendChild(J);this.emojiContainer.appendChild(u);
u.addEventListener("animationend",function(){u.remove()});
var Z,M;if((Z=this.data)==null?0:(M=Z.loggingDirectives)==null?0:M.trackingParams)X=X?_.cO(183501):_.cO(183500),TaW(this.data.loggingDirectives.trackingParams,X),_.LOP(X);setTimeout(function(){u&&u.remove()},2E3)}};
_.z.getEmojiDelayMsFromDistribution=function(K){return Math.random()*(K||1)*1E3};
_.z.getEmojiDelayMsFromTargetEps=function(K){return Math.random()*2*(1/K)*1E3};
_.z.linearInterpolateBounded=function(K,X,F,P,H){H=Math.min(Math.max(H,K),F);return(X*(F-H)+P*(H-K))/(F-K)};
lF.prototype.onEmojiFountainDataEntityUpdate=lF.prototype.onEmojiFountainDataEntityUpdate;lF.prototype.desktopFountainEmojiSizePxChanged=lF.prototype.desktopFountainEmojiSizePxChanged;lF.prototype.isActiveChanged=lF.prototype.isActiveChanged;_.O([_.h(),_.g("design:type",_.A1)],lF.prototype,"emojiManager",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],lF.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.yj),_.g("design:type",Object)],lF.prototype,"ytLiveChatReduxBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],lF.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],lF.prototype,"data",void 0);_.O([_.h({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(K,X){return _.FF(K.entities,"emojiFountainDataEntity",X)}}),
_.g("design:type",Object)],lF.prototype,"emojiFountainData",void 0);_.O([_.h(),_.g("design:type",Boolean)],lF.prototype,"isActive",void 0);_.O([_.so("isActive"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],lF.prototype,"isActiveChanged",null);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],lF.prototype,"isDarkTheme",void 0);_.O([_.h(),_.g("design:type",String)],lF.prototype,"lastEmojiRequestedForTesting",void 0);
_.O([_.h({value:function(){return _.kU("desktop_fountain_emoji_size_px",20)}}),
_.g("design:type",Number)],lF.prototype,"desktopFountainEmojiSizePx",void 0);_.O([_.so("desktopFountainEmojiSizePx"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],lF.prototype,"desktopFountainEmojiSizePxChanged",null);_.O([_.fa("#emoji-container"),_.g("design:type",HTMLElement)],lF.prototype,"emojiContainer",void 0);
_.O([_.so("emojiFountainData"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],lF.prototype,"onEmojiFountainDataEntityUpdate",null);lF=_.O([_.Tb({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],lF);
_.t(lF,"yt-emoji-fountain-view-model",function(){if(pPG===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;cS5===void 0&&(cS5=document.createElement("template"));var P=cS5;F.call(X,P.content.cloneNode(!0),K.content.firstChild);pPG=K}K=pPG;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var oet;var LZJ;var v3=function(){return _.G.apply(this,arguments)||this};
_.r(v3,_.G);v3.prototype.onChoiceChanged=function(){this.data&&_.XU(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
v3.prototype.onChoiceChanged=v3.prototype.onChoiceChanged;_.O([_.h(),_.g("design:type",Object)],v3.prototype,"data",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],v3.prototype,"onChoiceChanged",null);v3=_.O([_.v({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],v3);
_.t(v3,"yt-live-chat-banner-poll-choice",function(){if(LZJ===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;oet===void 0&&(oet=document.createElement("template"));var P=oet;F.call(X,P.content.cloneNode(!0),K.content.firstChild);LZJ=K}K=LZJ;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Tfs;var rS8;var a4=function(){var K=_.G.apply(this,arguments)||this;K.modern=_.S("web_button_rework_with_live");K.small=!1;return K};
_.r(a4,_.G);a4.prototype.computeIsSmall=function(){var K;return((K=this.buttonOverrides)==null?void 0:K.size)==="S"};
a4.prototype.computeId=function(){return this.data&&this.data.targetId};
_.O([_.W(_.WU.YtLiveChatTooltipTargetingBehavior),_.g("design:type",Object)],a4.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.O([_.h({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.g("design:type",String)],a4.prototype,"id",void 0);_.O([_.h(),_.g("design:type",Object)],a4.prototype,"buttonOverrides",void 0);_.O([_.h(),_.g("design:type",Object)],a4.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],a4.prototype,"modern",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.g("design:type",Object)],a4.prototype,"small",void 0);a4=_.O([_.v({disableElementRegistration:!0,is:"yt-live-chat-button"})],a4);
_.t(a4,"yt-live-chat-button",function(){if(rS8===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;Tfs===void 0&&(Tfs=document.createElement("template"));var P=Tfs;F.call(X,P.content.cloneNode(!0),K.content.firstChild);rS8=K}K=rS8;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var ASW;var j$W;var tG=function(){var K=_.G.apply(this,arguments)||this;K.inCollapsedBanner=!1;K.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};K.questionButtonOverrides={style:"mono",type:"filled"};return K};
_.r(tG,_.G);_.z=tG.prototype;_.z.configureRendererStamper=function(){return{"data.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"},properties:{overrides:"[[buttonOverrides]]"}}}},"data.askQuestionButton":{id:"ask-question",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"ask-question-button"},properties:{overrides:"[[questionButtonOverrides]]"}}}}}};
_.z.onContextMenuButtonClick=function(K){this.ytLiveChatItemBehavior.showContextMenu(K)};
_.z.onYtRendererstamperFinished=function(){this.menuButton=_.C$(this.hostElement).querySelector("#menu-button")};
_.z.dataChanged=function(){var K,X;if((X=_.T((K=this.data)==null?void 0:K.overflowMenuButton,_.jg))==null?0:X.command)this.data.contextMenuEndpoint=_.T(this.data.overflowMenuButton,_.jg).command};
_.z.onButtonClick=function(){var K,X=_.T((K=this.data)==null?void 0:K.askQuestionButton,_.jg);if(X){if(X.trackingParams&&(K=_.QB(X.trackingParams))){var F=_.AD();F&&_.vW(F,K)}_.iX(this.hostElement,"innertube-command",X.command)}};
tG.prototype.onYtRendererstamperFinished=tG.prototype.onYtRendererstamperFinished;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],tG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.yj),_.g("design:type",Object)],tG.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.W(_.W9.YtLiveChatItemBehavior),_.g("design:type",_.dA)],tG.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.h({observer:"dataChanged"}),_.g("design:type",Object)],tG.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],tG.prototype,"inCollapsedBanner",void 0);_.O([_.h(),_.g("design:type",Object)],tG.prototype,"buttonOverrides",void 0);_.O([_.h(),_.g("design:type",Object)],tG.prototype,"questionButtonOverrides",void 0);_.O([_.Hc("yt-rendererstamper-finished"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],tG.prototype,"onYtRendererstamperFinished",null);
tG=_.O([_.v({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],tG);
_.t(tG,"yt-live-chat-call-for-questions-renderer",function(){if(j$W===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;ASW===void 0&&(ASW=document.createElement("template"));var P=ASW;F.call(X,P.content.cloneNode(!0),K.content.firstChild);j$W=K}K=j$W;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var wPd={};wPd.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 K=this;window.requestAnimationFrame(function(){K.restoreFocusNode_||(K.restoreFocusNode_=document.activeElement);var X=_.KWU(K.hostElement);X.length&&X[X.length-1].focus()})},
isAttachedChanged_:function(K,X){K?this.focusChild_():X&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(K){this.hidden||_.lN(K).indexOf(this.hostElement)!==-1||(K.stopPropagation(),this.focusChild_())}};var yS8;var WZ8;var $V=function(){return _.G.apply(this,arguments)||this};
_.r($V,_.G);$V.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
$V.prototype.onClick=function(K){K.target!==this.confirmButton&&K.target!==this.cancelButton&&(this.hidden=!0)};
_.O([_.fa("#confirm_button"),_.g("design:type",Object)],$V.prototype,"confirmButton",void 0);_.O([_.fa("#cancel_button"),_.g("design:type",Object)],$V.prototype,"cancelButton",void 0);_.O([_.h(),_.g("design:type",dCs)],$V.prototype,"data",void 0);_.O([_.h({value:!0,reflectToAttribute:!0}),_.g("design:type",Boolean)],$V.prototype,"hidden",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],$V.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.W(wPd.YtLiveChatDialogBehavior),_.g("design:type",Object)],$V.prototype,"ytLiveChatDialogBehavior",void 0);$V=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],$V);
var dCs=_.t($V,"yt-live-chat-dialog-renderer",function(){if(WZ8===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;yS8===void 0&&(yS8=document.createElement("template"));var P=yS8;F.call(X,P.content.cloneNode(!0),K.content.firstChild);WZ8=K}K=WZ8;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var eK8;var RKV,UCt=function(){if(RKV!==void 0)return RKV;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;eK8===void 0&&(eK8=document.createElement("template"));var P=eK8;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return RKV=K};var hK1;var mCo;var O9=function(){var K=_.G.apply(this,arguments)||this;K.tooltip=null;K.data=null;K.id="";K.active=!1;K.icon="";K.disabled=!1;K.showTooltip=!1;K.useToggledActiveState=!0;K.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return K};
_.r(O9,_.G);_.z=O9.prototype;
_.z.dataChanged=function(){var K;((K=this.data)==null?0:K.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,_.Ka)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var X;if((X=this.data)==null?0:X.disabled)this.disabled=!0};
_.z.computeId=function(K){return K};
_.z.computeIcon=function(K,X){if(!K)return"";if(this.useToggledActiveState)return"yt-icons:"+K.toLowerCase();var F,P;return X&&((F=this.data)==null?0:(P=F.toggledIcon)==null?0:P.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+K.toLowerCase()};
_.z.logPDGEntryPoint=function(){_.iE3(_.XN("FLOW_EVENT_NAMESPACE_PDG_BUY_FLOW",1,{pdgBuyFlowContext:{entryPointClickedContext:{sharedPdgBuyFlowEntryPoint:"SHARED_PDG_BUY_FLOW_ENTRY_POINT_LIVE_CHAT_MONEY_BUTTON"}}}),"FLOW_TYPE_PDG_BUY_FLOW")};
_.z.immediatelyShowTooltip=function(){var K=_.C$(this.hostElement).querySelector("#tooltip");K.animationDelay=0;K.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};K.show()};
_.z.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.z.onClick=function(K){var X;((X=this.data)==null?0:X.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(),K.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.iX(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.z.computeShowTooltip=function(K,X){return!!(K&&K.tooltip&&X)};
_.z.maybeUpdateTooltipText=function(){var K=this,X;if((X=this.data)==null?0:X.tooltip){var F=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.Ka)(K.tooltip).textContent=F},250)}};
_.z.handleLiveChatActions=function(K){var X=this;K.length&&(this.id!=="creator"&&this.id!=="product-picker"||K.forEach(function(F){(F=X.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",F))&&F.durationSec===F.fullDurationSec&&X.startBubble(X.colorFromDecimal(F.startBackgroundColor))}))};
_.z.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.z.startBubble=function(K){_.XU(this.hostElement,{"--yt-live-chat-monetization-button-glow":K});this.hostElement.setAttribute("bubble","")};
_.z.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.z.colorFromDecimal=function(K){typeof K==="string"&&(K=Number(K));return"rgba("+[K>>16&255,K>>8&255,K&255,(K>>24&255)/255].join()+")"};
O9.prototype.onAnimationEnd=O9.prototype.onAnimationEnd;O9.prototype.disabledChanged=O9.prototype.disabledChanged;O9.prototype.dataChanged=O9.prototype.dataChanged;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],O9.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],O9.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.WU.YtLiveChatTooltipTargetingBehavior),_.g("design:type",Object)],O9.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],O9.prototype,"data",void 0);_.O([_.h({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.g("design:type",Object)],O9.prototype,"id",void 0);_.O([_.h({notify:!0,reflectToAttribute:!0}),_.g("design:type",Object)],O9.prototype,"active",void 0);
_.O([_.h({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.g("design:type",Object)],O9.prototype,"icon",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],O9.prototype,"disabled",void 0);_.O([_.h({computed:"computeShowTooltip(data, disabled)"}),_.g("design:type",Object)],O9.prototype,"showTooltip",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],O9.prototype,"useToggledActiveState",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],O9.prototype,"dataChanged",null);_.O([_.so("disabled"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],O9.prototype,"disabledChanged",null);_.O([_.Hc("animationend"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],O9.prototype,"onAnimationEnd",null);
O9=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],O9);
_.t(O9,"yt-live-chat-icon-toggle-button-renderer",function(){if(mCo===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;hK1===void 0&&(hK1=document.createElement("template"));var P=hK1;F.call(X,P.content.cloneNode(!0),K.content.firstChild);mCo=K}K=mCo;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var GuF;var l8t;var VR=function(){return _.G.apply(this,arguments)||this};
_.r(VR,_.G);VR.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.O([_.h(),_.g("design:type",Object)],VR.prototype,"data",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],VR.prototype,"ytRendererstamperBehavior",void 0);VR=_.O([_.v({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],VR);
_.t(VR,"yt-live-chat-message-input-prompt-header-renderer",function(){if(l8t===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;GuF===void 0&&(GuF=document.createElement("template"));var P=GuF;F.call(X,P.content.cloneNode(!0),K.content.firstChild);l8t=K}K=l8t;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var veo;var a85;var ts8;var $Cw;var Og5;var Vss;var g7=function(){return _.G.apply(this,arguments)||this};
_.r(g7,_.G);_.O([_.h(),_.g("design:type",Object)],g7.prototype,"data",void 0);g7=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],g7);
_.t(g7,"yt-live-chat-message-subtext-renderer",function(){if(Vss===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;Og5===void 0&&(Og5=document.createElement("template"));var P=Og5;F.call(X,P.content.cloneNode(!0),K.content.firstChild);Vss=K}K=Vss;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var E9=function(){var K=_.G.apply(this,arguments)||this;K.subtextOnBottom=!1;K.buttonOverrides={style:"mono",type:"tonal"};return K};
_.r(E9,_.G);E9.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"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],E9.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],E9.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],E9.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],E9.prototype,"subtextOnBottom",void 0);_.O([_.h(),_.g("design:type",Object)],E9.prototype,"buttonOverrides",void 0);
E9=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],E9);
_.t(E9,"yt-live-chat-message-renderer",function(){if($Cw===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;ts8===void 0&&(ts8=document.createElement("template"));var P=ts8;F.call(X,P.content.cloneNode(!0),K.content.firstChild);$Cw=K}K=$Cw;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var ge8;var Eew;var bF=function(){var K=_.G.apply(this,arguments)||this;K.isRemovable=!1;K.hasPrefilledText=!1;K.isInputDirty=!1;K.overCharacterLimit=!1;K.underCharacterLimit=!1;K.showErrorMessage=!1;return K};
_.r(bF,_.G);_.z=bF.prototype;_.z.computeId=function(){return this.data.id};
_.z.computeInputData=function(){return this.data.inputData};
_.z.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.z.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.z.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.z.getLiveChatRichMessageInput=function(){return _.C$(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.z.clearInput=function(){_.C$(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.z.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.z.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.z.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.z.handleTextInputCharCountChanged=function(K){K=K.detail&&K.detail.characterCount;K!==void 0&&(this.characterCount=K,K!==0&&(this.isInputDirty=!0))};
_.z.onInputFocusOut=function(){this.isInputDirty=!0};
_.z.onClickCloseButton=function(){_.iX(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
bF.prototype.handleTextInputCharCountChanged=bF.prototype.handleTextInputCharCountChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],bF.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],bF.prototype,"data",void 0);_.O([_.h({computed:"computeId(data.id)"}),_.g("design:type",String)],bF.prototype,"id",void 0);_.O([_.h({computed:"computeInputData(data.inputData)"}),_.g("design:type",Object)],bF.prototype,"inputData",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.g("design:type",Object)],bF.prototype,"isRemovable",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.g("design:type",Object)],bF.prototype,"hasPrefilledText",void 0);_.O([_.h({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.g("design:type",Number)],bF.prototype,"charactersRemaining",void 0);
_.O([_.h(),_.g("design:type",Number)],bF.prototype,"characterCount",void 0);_.O([_.h(),_.g("design:type",Object)],bF.prototype,"isInputDirty",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.g("design:type",Object)],bF.prototype,"overCharacterLimit",void 0);_.O([_.h({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.g("design:type",Object)],bF.prototype,"underCharacterLimit",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.g("design:type",Object)],bF.prototype,"showErrorMessage",void 0);_.O([_.Hc("yt-live-chat-text-input-field-renderer-character-count-changed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],bF.prototype,"handleTextInputCharCountChanged",null);
bF=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],bF);
_.t(bF,"yt-live-chat-poll-editor-input",function(){if(Eew===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;ge8===void 0&&(ge8=document.createElement("template"));var P=ge8;F.call(X,P.content.cloneNode(!0),K.content.firstChild);Eew=K}K=Eew;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var bgo;var C31;var Nfw={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},Cc=function(){var K=_.G.apply(this,arguments)||this;K.modern=_.S("web_button_rework_with_live");K.closeButtonOverrides={iconPosition:"icon-only"};K.startButtonOverrides={style:"mono",type:"filled"};K.addOptionButtonOverrides={style:"mono",type:"text"};return K};
_.r(Cc,_.G);_.z=Cc.prototype;
_.z.configureRendererStamper=function(){return{"data.pollEditorInfo.addOptionButton":{id:"add-option-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[addOptionButtonOverrides]]"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[startButtonOverrides]]"}}}},pollQuestionData:{id:"poll-question",
mapping:{liveChatTextInputFieldRenderer:{component:"yt-live-chat-text-input-field-renderer",attributes:{id:"poll-question-input","is-valid-with-no-input-text":!0}}}},pollOptionsData:{id:"poll-options",mapping:{liveChatPollOptionInput:{component:"yt-live-chat-poll-editor-input"}}}}};
_.z.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var K;_.T((K=this.data)==null?void 0:K.startButton,_.jg)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.z.computeId=function(){return this.data&&this.data.id||""};
_.z.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.z.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.z.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.z.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.z.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var K=0;K<this.pollEditorInfoWithDefaults.minPollOptions;K++)this.addPollOptionData()};
_.z.getIsValidPoll=function(){var K=this;if(!this.pollEditorInfoWithDefaults)return!1;var X=this.pollEditorInfoWithDefaults,F=X.minPollOptionChars,P=X.maxPollOptionChars,H=X.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>X.maxPollQuestionChars)return!1;X=_.C$(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(X).every(function(f,u){f=f.characterCount;!f&&H[u]&&(f=K.ytRendererBehavior.getSimpleString(H[u]).length);return f!==void 0&&f>=F&&f<=P})};
_.z.isValidPollChanged=function(){var K;_.T((K=this.data)==null?void 0:K.startButton,_.jg)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.z.addPollOptionData=function(){var K=this.pollEditorInfoWithDefaults,X=K.maxPollOptionChars,F=K.optionPlaceholderText,P=K.customOptionPlaceholderText,H=K.pollOptionData;this.currentNumPollOptions>=K.maxPollOptions||(K={liveChatPollOptionInput:{inputData:{placeholder:P[this.currentNumPollOptions]||F,maxCharacterLimit:X},maxCharacterLimit:X,minCharacterLimit:K.minPollOptionChars,hasPrefilledText:!!P[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=K.minPollOptions}},H.charCountErrorText&&
(K.liveChatPollOptionInput.charCountErrorText=H.charCountErrorText),H.charsRemainingAltLabel&&(K.liveChatPollOptionInput.charsRemainingAltLabel=H.charsRemainingAltLabel),H.removeOptionAltText&&(K.liveChatPollOptionInput.removeOptionAltText=H.removeOptionAltText),this.push("pollOptionsData",K),H=Array.from(_.C$(_.C$(this.hostElement).querySelector("#poll-options")).children),H.forEach(function(f,u){f.polymerController.set("data.id",u)}),_.C$(H[H.length-1]).querySelector("#input").focus())};
_.z.getPollOptionInputValues=function(){var K=this,X=[],F=_.C$(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),P=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(F).forEach(function(H,f){var u=null;H=H.getLiveChatRichMessageInput();var J;(H==null?0:(J=H.textSegments)==null?0:J.length)?u=_.wn(H):P[f]&&(u=K.formattedStringToLiveChatRichMessageInput(P[f]));X.push(u)});
return X};
_.z.requestCreateAndStartPoll=function(K){var X=this.getPollOptionInputValues();if(!X.some(function(P){return!P})){X={optionText:X};
var F=_.C$(_.C$(this.hostElement).querySelector("#poll-question")).firstChild;F&&F.liveChatRichMessageInput&&(X.questionText=_.wn(F.liveChatRichMessageInput));_.Kl(this.hostElement,[K,X])}};
_.z.selectedChanged=function(){if(this.selected){var K=_.C$(_.C$(this.hostElement).querySelector("#start-button")).firstElementChild;if(K){var X;(X=_.C$(K).querySelector("#button")||_.ND(K).querySelector("button"))==null||X.focus()}}};
_.z.handleTextInputChanged=function(K){var X;((X=K.target)==null?void 0:X.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=K.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.z.handleStartButtonAction=function(K){K.detail.actionName==="yt-service-request"&&(K.stopPropagation(),(K=K.detail.args[1])&&this.requestCreateAndStartPoll(K))};
_.z.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.z.handleServiceRequestCompleted=function(K){this.createPollRequestInFlight=!1;(K=K.detail&&K.detail.data)&&K.success&&(_.iX(this.hostElement,"picker-cancelled"),_.xr(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.z.onCloseClick=function(){_.iX(this.hostElement,"picker-cancelled");_.xr(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.z.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.z.handlePollEditorInputClosed=function(K){var X=this.pollOptionsData.findIndex(function(F){return F.liveChatPollOptionInput.id===K.detail.id});
this.splice("pollOptionsData",X,1);this.isValidPoll=this.getIsValidPoll()};
_.z.onPickerCancelled=function(){this.reset()};
_.z.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var K=_.C$(_.C$(this.hostElement).querySelector("#poll-question")).firstChild;K&&K.setLiveChatRichMessageInput(null);if(K=_.C$(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){K=_.D(Array.from(K));for(var X=K.next();!X.done;X=K.next())X.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.z.formattedStringToLiveChatRichMessageInput=function(K){return K.simpleText?{text_segments:[K.simpleText]}:{text_segments:K.runs}};
_.Oi.Object.defineProperties(Cc.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(Nfw,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
Cc.prototype.onPickerCancelled=Cc.prototype.onPickerCancelled;Cc.prototype.handlePollEditorInputClosed=Cc.prototype.handlePollEditorInputClosed;Cc.prototype.handleServiceRequestCompleted=Cc.prototype.handleServiceRequestCompleted;Cc.prototype.handleServiceRequestSent=Cc.prototype.handleServiceRequestSent;Cc.prototype.handleTextInputChanged=Cc.prototype.handleTextInputChanged;Cc.prototype.selectedChanged=Cc.prototype.selectedChanged;Cc.prototype.isValidPollChanged=Cc.prototype.isValidPollChanged;
Cc.prototype.shouldInitializePollChanged=Cc.prototype.shouldInitializePollChanged;Cc.prototype.dataChanged=Cc.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Cc.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Cc.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Cc.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Cc.prototype,"modern",void 0);
_.O([_.h(),_.g("design:type",Object)],Cc.prototype,"closeButtonOverrides",void 0);_.O([_.h(),_.g("design:type",Object)],Cc.prototype,"startButtonOverrides",void 0);_.O([_.h(),_.g("design:type",Object)],Cc.prototype,"addOptionButtonOverrides",void 0);_.O([_.h({computed:"computeId(data.id)",reflectToAttribute:!0}),_.g("design:type",String)],Cc.prototype,"id",void 0);_.O([_.h({value:function(){return[]}}),
_.g("design:type",Array)],Cc.prototype,"pollOptionsData",void 0);_.O([_.U("pollEditorInfoWithDefaults"),_.g("design:type",Object),_.g("design:paramtypes",[])],Cc.prototype,"pollQuestionData",null);_.O([_.h({value:0}),_.g("design:type",Number)],Cc.prototype,"pollQuestionCharacterCount",void 0);_.O([_.U("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.g("design:type",Object),_.g("design:paramtypes",[])],Cc.prototype,"pollQuestionCharactersRemaining",null);
_.O([_.h({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.g("design:type",Boolean)],Cc.prototype,"overQuestionCharacterLimit",void 0);_.O([_.U("data.pollEditorInfo"),_.g("design:type",Object),_.g("design:paramtypes",[])],Cc.prototype,"pollEditorInfoWithDefaults",null);_.O([_.h({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.g("design:type",Number)],Cc.prototype,"currentNumPollOptions",void 0);
_.O([_.h({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.g("design:type",Boolean)],Cc.prototype,"hasMaxNumPollOptions",void 0);_.O([_.U("pollEditorInfoWithDefaults","pollOptionsData"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Cc.prototype,"shouldInitializePoll",null);_.O([_.h(),_.g("design:type",Object)],Cc.prototype,"isValidPoll",void 0);
_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],Cc.prototype,"createPollRequestInFlight",void 0);_.O([_.h(),_.g("design:type",Object)],Cc.prototype,"selected",void 0);_.O([_.h({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.g("design:type",Boolean)],Cc.prototype,"showQuestionErrorMessage",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Cc.prototype,"dataChanged",null);_.O([_.so("shouldInitializePoll"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Cc.prototype,"shouldInitializePollChanged",null);_.O([_.so("isValidPoll"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Cc.prototype,"isValidPollChanged",null);
_.O([_.so("selected"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Cc.prototype,"selectedChanged",null);_.O([_.Hc("yt-live-chat-text-input-field-renderer-character-count-changed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Cc.prototype,"handleTextInputChanged",null);
_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Cc.prototype,"handleServiceRequestSent",null);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Cc.prototype,"handleServiceRequestCompleted",null);
_.O([_.Hc("yt-live-chat-poll-editor-input-closed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Cc.prototype,"handlePollEditorInputClosed",null);_.O([_.Hc("picker-cancelled"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Cc.prototype,"onPickerCancelled",null);Cc=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],Cc);
_.t(Cc,"yt-live-chat-poll-editor-panel-renderer",function(){if(C31===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;bgo===void 0&&(bgo=document.createElement("template"));var P=bgo;F.call(X,P.content.cloneNode(!0),K.content.firstChild);C31=K}K=C31;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var igt;var xCW;var NH=function(){return _.G.apply(this,arguments)||this};
_.r(NH,_.G);NH.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
NH.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Oi.Object.defineProperties(NH.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var K,X;return(K=this.data)==null?void 0:(X=K.title)==null?void 0:X.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var K;return _.w$((K=this.data)==null?void 0:K.onTapCommand)}}});
_.O([_.W(_.DP.YtEndpointBehavior),_.g("design:type",Object)],NH.prototype,"ytEndpointBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],NH.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],NH.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],NH.prototype,"itemId",null);
_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],NH.prototype,"hasPromotion",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],NH.prototype,"innertubeCommand",null);NH=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],NH);
_.t(NH,"yt-live-chat-product-picker-panel-item-view-model",function(){if(xCW===void 0){var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;igt===void 0&&(igt=document.createElement("template"));var P=igt;F.call(X,P.content.cloneNode(!0),K.content.firstChild);xCW=K}K=xCW;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var I8G;var kuW;var iF=function(){var K=_.G.apply(this,arguments)||this;K.id="product-picker";K.selected=!1;K.closeButtonId="close-button";K.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return K};
_.r(iF,_.G);_.z=iF.prototype;_.z.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.z.observeSelected=function(){this.selected&&this.hostElement.focus();var K=_.C$(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");K.length&&K[0].focus()};
_.z.onCloseBuyFlow=function(){_.iX(this.hostElement,"picker-cancelled")};
_.z.onCloseClick=function(){_.iX(this.hostElement,"picker-cancelled");var K;((K=this.data)==null?0:K.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.T(this.data.closeButton,_.nS))};
_.z.onCloseEngageWithAudienceEditorPanels=function(){_.iX(this.hostElement,"picker-cancelled")};
iF.prototype.observeSelected=iF.prototype.observeSelected;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],iF.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],iF.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],iF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],iF.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],iF.prototype,"id",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],iF.prototype,"selected",void 0);_.O([_.h(),_.g("design:type",Object)],iF.prototype,"closeButtonId",void 0);_.O([_.so("selected"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],iF.prototype,"observeSelected",null);
iF=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],iF);
_.t(iF,"yt-live-chat-product-picker-panel-view-model",function(){if(kuW===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;I8G===void 0&&(I8G=document.createElement("template"));var P=I8G;F.call(X,P.content.cloneNode(!0),K.content.firstChild);kuW=K}K=kuW;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var KUs;var XeG;var xV=function(){var K=_.G.apply(this,arguments)||this;K.iconId="";K.icon="";K.disabled=!1;K.systemIcons=_.S("kevlar_system_icons");return K};
_.r(xV,_.G);_.z=xV.prototype;_.z.attached=function(){_.S("live_chat_compute_product_button_aria_label")||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1"))};
_.z.computeIconId=function(K){return K&&K.icon&&K.icon.iconType?K.icon.iconType.toLowerCase():""};
_.z.computeIcon=function(K){return K&&K.icon&&K.icon.iconType?(K=K.icon.iconType.toLowerCase(),(K.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+K):""};
_.z.computeDisabled=function(K){return!!K};
_.z.computeCommand=function(K,X){return X?void 0:K};
_.z.computeTooltip=function(K,X){return X&&K?K:""};
_.z.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Oi.Object.defineProperties(xV.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){if(!_.S("live_chat_compute_product_button_aria_label"))return"";var K,X,F;if((K=this.data)==null?0:(X=K.text)==null?0:(F=X.runs)==null?0:F.length)return this.data.text.runs[0].text||"";var P,H;return((P=this.data)==null?0:(H=P.text)==null?0:H.simpleText)?this.data.text.simpleText:""}}});
_.O([_.W(_.DP.YtEndpointBehavior),_.g("design:type",Object)],xV.prototype,"ytEndpointBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],xV.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],xV.prototype,"data",void 0);_.O([_.h({computed:"computeIconId(data)",reflectToAttribute:!0}),_.g("design:type",Object)],xV.prototype,"iconId",void 0);
_.O([_.h({computed:"computeIcon(data)",reflectToAttribute:!0}),_.g("design:type",Object)],xV.prototype,"icon",void 0);_.O([_.h({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.g("design:type",Object)],xV.prototype,"disabled",void 0);_.O([_.h({computed:"computeCommand(data.command, disabled)"}),_.g("design:type",Object)],xV.prototype,"command",void 0);_.O([_.h({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.g("design:type",String)],xV.prototype,"tooltip",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],xV.prototype,"systemIcons",void 0);_.O([_.U("data.text"),_.h(),_.g("design:type",String),_.g("design:paramtypes",[])],xV.prototype,"ariaLabel",null);xV=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],xV);
_.t(xV,"yt-live-chat-product-button-renderer",function(){if(XeG===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;KUs===void 0&&(KUs=document.createElement("template"));var P=KUs;F.call(X,P.content.cloneNode(!0),K.content.firstChild);XeG=K}K=XeG;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var FUG;var PGW;var I4=function(){var K=_.G.apply(this,arguments)||this;K.selected=!1;K.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 K};
_.r(I4,_.G);_.z=I4.prototype;_.z.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}}}};
_.z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.z.computeId=function(K){return K.id||""};
_.z.onCloseClick=function(){_.iX(this.hostElement,"picker-cancelled")};
_.z.observeSelected=function(){this.selected&&this.hostElement.focus();var K=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");K.length&&K[0].focus()};
_.z.onCloseBuyFlow=function(){_.iX(this.hostElement,"picker-cancelled")};
_.z.onCloseEngageWithAudienceEditorPanels=function(){_.iX(this.hostElement,"picker-cancelled")};
I4.prototype.observeSelected=I4.prototype.observeSelected;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],I4.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],I4.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],I4.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],I4.prototype,"data",void 0);
_.O([_.h({computed:"computeId(data)",reflectToAttribute:!0}),_.g("design:type",String)],I4.prototype,"id",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],I4.prototype,"selected",void 0);_.O([_.so("selected"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],I4.prototype,"observeSelected",null);I4=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],I4);
_.t(I4,"yt-live-chat-product-picker-renderer",function(){if(PGW===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;FUG===void 0&&(FUG=document.createElement("template"));var P=FUG;F.call(X,P.content.cloneNode(!0),K.content.firstChild);PGW=K}K=PGW;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var HdW;var sTJ;var z7k;var fzs;var kV=function(){return _.G.apply(this,arguments)||this};
_.r(kV,_.G);kV.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()};
kV.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
kV.prototype.created=function(){this.ids={background:_.Lr(),maskOne:_.Lr(),maskTwo:_.Lr(),gradient:_.Lr(),largeBackground:_.Lr(),largeGradientOne:_.Lr(),largeGradientTwo:_.Lr(),largeGradientPath:_.Lr()}};
kV.prototype.maybeLoadAnimationBackground=kV.prototype.maybeLoadAnimationBackground;_.O([_.h({value:!1}),_.g("design:type",Boolean)],kV.prototype,"useLargeBackground",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],kV.prototype,"useAnimationBackground",void 0);_.O([_.h({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.g("design:type",Boolean)],kV.prototype,"useRegularBackground",void 0);
_.O([_.h(),_.g("design:type",Object)],kV.prototype,"ids",void 0);_.O([_.h(),_.g("design:type",Object)],kV.prototype,"lottieAnimation",void 0);_.O([_.fa("#animation-background"),_.g("design:type",HTMLDivElement)],kV.prototype,"animationBackground",void 0);_.O([_.so("useAnimationBackground"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],kV.prototype,"maybeLoadAnimationBackground",null);
kV=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],kV);
_.t(kV,"yt-live-interactivity-component-background",function(){if(fzs===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;z7k===void 0&&(z7k=document.createElement("template"));var P=z7k;F.call(X,P.content.cloneNode(!0),K.content.firstChild);fzs=K}K=fzs;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var KV=function(){var K=_.G.apply(this,arguments)||this;K.characterCount=0;K.showInputErrorMessage=!1;K.startQnaRequestInFlight=!1;K.modern=_.S("web_button_rework_with_live");K.buttonOverrides={style:"mono",type:"filled"};K.closeButtonOverrides={iconPosition:"icon-only"};K.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return K};
_.r(KV,_.G);_.z=KV.prototype;
_.z.configureRendererStamper=function(){return{"data.creatorCallForQuestions.liveChatCreatorCallForQuestionsRenderer.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.z.onCharacterCountChanged=function(K){var X,F,P,H,f=(F=_.T(this==null?void 0:(X=this.data)==null?void 0:X.creatorCallForQuestions,axG))==null?void 0:(P=F.inputField)==null?void 0:(H=P.liveChatTextInputFieldRenderer)==null?void 0:H.maxCharacterLimit,u,J;f!=null&&(K==null?void 0:(u=K.detail)==null?void 0:u.characterCount)!=null&&_.T(this==null?void 0:(J=this.data)==null?void 0:J.startButton,_.jg)&&(X=K.detail.characterCount>f,this.set("data.startButton.buttonRenderer.isDisabled",K.detail.characterCount===
0||X),this.showInputErrorMessage=X)};
_.z.onCloseClick=function(){_.iX(this.hostElement,"picker-cancelled");_.xr(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.z.onPickerCancelled=function(){var K=_.C$(this.hostElement).querySelector("#qna-creator-text-input-field");K&&K.setLiveChatRichMessageInput(null)};
_.z.handleOpenQnaStartPanel=function(){var K=_.C$(this.hostElement).querySelector("#qna-creator-text-input-field");K&&K.focus()};
_.z.handleStartButtonAction=function(K){var X=this;if(K.detail.actionName==="yt-service-request"&&(K.stopPropagation(),K=K.detail.args[1])){var F=_.C$(this.hostElement).querySelector("#qna-creator-text-input-field"),P;(F==null?0:(P=F.liveChatRichMessageInput)==null?0:P.textSegments)&&F.liveChatRichMessageInput.textSegments.length!==0&&(P={rich_message:_.wn(F.liveChatRichMessageInput)},_.Kl(this.hostElement,[K,P]).then(function(){_.iX(X.hostElement,"picker-cancelled")}))}};
_.z.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.z.handleServiceRequestCompleted=function(K){var X;K=K==null?void 0:(X=K.detail)==null?void 0:X.data;(K==null?0:K.actions)&&K.actions.length>0?this.startQnaRequestInFlight=!1:_.xr(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.z.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
KV.prototype.handleServiceRequestError=KV.prototype.handleServiceRequestError;KV.prototype.handleServiceRequestCompleted=KV.prototype.handleServiceRequestCompleted;KV.prototype.handleServiceRequestSent=KV.prototype.handleServiceRequestSent;KV.prototype.onPickerCancelled=KV.prototype.onPickerCancelled;KV.prototype.onCharacterCountChanged=KV.prototype.onCharacterCountChanged;_.O([_.h(),_.g("design:type",Object)],KV.prototype,"characterCount",void 0);
_.O([_.h(),_.g("design:type",Object)],KV.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],KV.prototype,"showInputErrorMessage",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],KV.prototype,"startQnaRequestInFlight",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],KV.prototype,"modern",void 0);_.O([_.h(),_.g("design:type",Object)],KV.prototype,"buttonOverrides",void 0);
_.O([_.h(),_.g("design:type",Object)],KV.prototype,"closeButtonOverrides",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],KV.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.yj),_.g("design:type",Object)],KV.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.W(_.W9.YtLiveChatItemBehavior),_.g("design:type",_.dA)],KV.prototype,"ytLiveChatItemBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],KV.prototype,"ytActionHandlerBehavior",void 0);_.O([_.Hc("yt-live-chat-text-input-field-renderer-character-count-changed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],KV.prototype,"onCharacterCountChanged",null);_.O([_.Hc("picker-cancelled"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],KV.prototype,"onPickerCancelled",null);
_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],KV.prototype,"handleServiceRequestSent",null);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],KV.prototype,"handleServiceRequestCompleted",null);
_.O([_.Hc("yt-service-request-error"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],KV.prototype,"handleServiceRequestError",null);KV=_.O([_.v({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],KV);
_.t(KV,"yt-live-chat-qna-start-panel-renderer",function(){if(sTJ===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;HdW===void 0&&(HdW=document.createElement("template"));var P=HdW;F.call(X,P.content.cloneNode(!0),K.content.firstChild);sTJ=K}K=sTJ;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var DWJ;var uyo;var X9=function(){return _.G.apply(this,arguments)||this};
_.r(X9,_.G);X9.prototype.dismiss=function(){_.iX(this.hostElement,"yt-live-chat-error-message-dismiss")};
X9.prototype.edit=function(){_.iX(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.O([_.h(),_.g("design:type",Object)],X9.prototype,"data",void 0);X9=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],X9);
_.t(X9,"yt-live-chat-text-actions-error-message-renderer",function(){if(uyo===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;DWJ===void 0&&(DWJ=document.createElement("template"));var P=DWJ;F.call(X,P.content.cloneNode(!0),K.content.firstChild);uyo=K}K=uyo;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var qFo;var J3w;var Zd1;var YFk;var F9=function(){var K=_.G.apply(this,arguments)||this;K.isDarkTheme=document.documentElement.hasAttribute("dark");K.newnessDotEligible=!1;return K};
_.r(F9,_.G);F9.prototype.sendReaction=function(){var K,X,F=((K=this.data)==null?void 0:K.emojiId)||((X=this.data)==null?void 0:X.emoteId),P;F&&((P=this.data)==null?0:P.shouldTriggerAnimation)&&_.xr(this.hostElement,"yt-create-user-reaction-animation",[F]);var H;(K=_.w$((H=this.data)==null?void 0:H.onTap))&&_.sP(K,this.hostElement);this.showNewnessDot&&_.xr(this.hostElement,"yt-hide-newness-dot")};
F9.prototype.onClick=function(K){(!K||K.clientX||K.clientY)&&this.sendReaction()};
F9.prototype.onKeyDown=function(K){K.key!=="Enter"&&K.key!==" "||K.repeat||this.sendReaction()};
_.Oi.Object.defineProperties(F9.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var K,X;return!!(((K=this.data)==null?0:K.emojiId)||((X=this.data)==null?0:X.emoteId))}}});
_.O([_.h(),_.g("design:type",Object)],F9.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],F9.prototype,"isDarkTheme",void 0);_.O([_.h(),_.g("design:type",Object)],F9.prototype,"newnessDotEligible",void 0);_.O([_.U("data.maybeShowNewnessDot"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],F9.prototype,"showNewnessDot",null);_.O([_.U("data.emojiId","data.emoteId"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],F9.prototype,"useYtImage",null);
F9=_.O([_.Tb({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],F9);
_.t(F9,"yt-reaction-control-panel-button-view-model",function(){if(YFk===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;Zd1===void 0&&(Zd1=document.createElement("template"));var P=Zd1;F.call(X,P.content.cloneNode(!0),K.content.firstChild);YFk=K}K=YFk;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var QT8;var Mw8;var P1=function(){var K=_.G.apply(this,arguments)||this;K.reactionControlPanelExpanded=!1;K.isDarkTheme=document.documentElement.hasAttribute("dark");K.newnessDotEligible=!1;return K};
_.r(P1,_.G);_.z=P1.prototype;_.z.expandedButtonsChanged=function(){var K,X;_.XU(this.hostElement,{"--expanded-buttons-height":((X=(K=this.expandedButtonsData)==null?void 0:K.length)!=null?X:0)*36+"px"})};
_.z.configureRendererStamper=function(){return{expandedButtonsData:{id:"expanded-buttons",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0},"data.collapsedButton":{id:"collapsed-button",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.z.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.z.onMouseLeave=function(){var K=this;this.collapseTimer=setTimeout(function(){K.reactionControlPanelExpanded=!1},500)};
_.z.onFocusIn=function(){this.onMouseEnter()};
_.z.onFocusOut=function(){this.onMouseLeave()};
_.z.onCollapsedButtonFocusIn=function(){var K=this;setTimeout(function(){var X;(X=K.expandedButtons.querySelector("button"))==null||X.focus()},100)};
_.z.onCollapsedButtonFocusOut=function(K){K.stopPropagation()};
_.Oi.Object.defineProperties(P1.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var K,X;return _.T8.unsafeClone((K=this.liveReactionsData)==null?void 0:K.emojiButtonData)||((X=this.data)==null?void 0:X.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var K;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((K=this.data)==null||!K.maybeShowNewnessDot)}}});
P1.prototype.expandedButtonsChanged=P1.prototype.expandedButtonsChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],P1.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],P1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.yj),_.g("design:type",Object)],P1.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],P1.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],P1.prototype,"reactionControlPanelExpanded",void 0);_.O([_.h({selectorArgs:["data.liveReactionsDataEntityKey"],selector:oKo}),_.g("design:type",Object)],P1.prototype,"liveReactionsData",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],P1.prototype,"isDarkTheme",void 0);_.O([_.h(),_.g("design:type",Object)],P1.prototype,"newnessDotEligible",void 0);
_.O([_.U("liveReactionsData","data.expandedButtons"),_.g("design:type",Object),_.g("design:paramtypes",[])],P1.prototype,"expandedButtonsData",null);_.O([_.U("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.h({reflectToAttribute:!0}),_.g("design:type",Object),_.g("design:paramtypes",[])],P1.prototype,"showNewnessDot",null);_.O([_.fa("#expanded-buttons"),_.g("design:type",HTMLElement)],P1.prototype,"expandedButtons",void 0);
_.O([_.so("expandedButtonsData"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],P1.prototype,"expandedButtonsChanged",null);P1=_.O([_.Tb({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],P1);
_.t(P1,"yt-reaction-control-panel-view-model",function(){if(Mw8===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;QT8===void 0&&(QT8=document.createElement("template"));var P=QT8;F.call(X,P.content.cloneNode(!0),K.content.firstChild);Mw8=K}K=Mw8;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var H1=new _.dG("yt-live-chat"),nDG=Date.parse("2024-7-24"),su=function(){var K=_.G.apply(this,arguments)||this;K.emojiManager=_.yU;K.newnessDotEligible=!1;K.newnessDotImpressionCounted=!1;K.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return K};
_.r(su,_.G);_.z=su.prototype;_.z.emojiCustomizationEnabledChanged=function(){var K;((K=this.data)==null?0:K.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((K=H1.getCreationTime("emoji-customization-count"))&&K<nDG&&H1.set("emoji-customization-count","0"),K=Number(H1.get("emoji-customization-count"))||0,K<3&&(this.newnessDotEligible=!0,H1.set("emoji-customization-count",(K+1).toString())),this.newnessDotImpressionCounted=!0)};
_.z.hideNewnessDot=function(){this.newnessDotEligible=!1;H1.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.z.handleReactionsMute=function(K){var X=_.AD(),F=_.cO(206221),P={checkboxData:{state:K?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};X&&_.vW(X,F,P);this.reactionsMuted=K};
_.z.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.z.configureRendererStamper=function(){return{"data.emojiFountain":{id:"emoji-fountain",mapping:{emojiFountainViewModel:{component:"yt-emoji-fountain-view-model",properties:{emojiManager:"[[emojiManager]]",isActive:"[[liveReactionsEnabled]]"}}},reuseComponents:!0},"data.reactionControlPanel":{id:"reaction-control-panel",mapping:{reactionControlPanelViewModel:{component:"yt-reaction-control-panel-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.Oi.Object.defineProperties(su.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var K;return(!((K=this.liveReactionsData)==null||!K.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
su.prototype.liveReactionsSettingChanged=su.prototype.liveReactionsSettingChanged;su.prototype.emojiCustomizationEnabledChanged=su.prototype.emojiCustomizationEnabledChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],su.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],su.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.yj),_.g("design:type",Object)],su.prototype,"ytLiveChatReduxBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],su.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],su.prototype,"data",void 0);_.O([_.h(),_.g("design:type",_.A1)],su.prototype,"emojiManager",void 0);_.O([_.h(),_.g("design:type",Object)],su.prototype,"newnessDotEligible",void 0);_.O([_.h(),_.g("design:type",Object)],su.prototype,"newnessDotImpressionCounted",void 0);
_.O([_.h({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:LV8}),_.g("design:type",Boolean)],su.prototype,"liveReactionsSetting",void 0);_.O([_.h({selectorArgs:["data.liveReactionsDataEntityKey"],selector:oKo}),_.g("design:type",Object)],su.prototype,"liveReactionsData",void 0);_.O([_.h({value:function(){var K=_.S("enable_lwe_web_mute"),X=H1.get("allow-reactions");return X===void 0?!1:!X&&K}}),
_.g("design:type",Boolean)],su.prototype,"reactionsMuted",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],su.prototype,"liveReactionsEnabled",null);_.O([_.so("data.emojiCustomizationEnabled"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],su.prototype,"emojiCustomizationEnabledChanged",null);
_.O([_.so("liveReactionsEnabled"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],su.prototype,"liveReactionsSettingChanged",null);su=_.O([_.Tb({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],su);
_.t(su,"yt-reaction-control-panel-overlay-view-model",function(){if(J3w===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;qFo===void 0&&(qFo=document.createElement("template"));var P=qFo;F.call(X,P.content.cloneNode(!0),K.content.firstChild);J3w=K}K=J3w;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var c38={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(K){var X=this.$.pickers.selected;if(X){_.C$(this.hostElement).removeAttribute(X+"-open");var F="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(F="#picker-buttons",X==="emoji"&&_.C$(this.hostElement).querySelector("#emoji-picker-button")&&(F="#emoji-picker-button"));if(F=_.C$(this.hostElement).querySelector(F).querySelector("#"+X))F.active=!1}F=K;X==K&&(F=null);X!=
K&&_.C$(this.hostElement).setAttribute(K+"-open","");this.$.pickers.selected=F;_.xr(this.hostElement,"yt-live-chat-picker-changed",[F])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var z$=function(){var K=_.G.apply(this,arguments)||this;K.numSentMessages=0;K.timeoutDurationMs=0;K.timeoutMs=0;K.lastTimeoutTimeMs=0;K.pendingMessageId="";K.hasFiredInitialFocusActions=!1;K.isBeforeFocusEnabled=!0;K.id="";K.characterCount=0;K.maxCharacterLimit=0;K.remainingCharacterCount=0;K.inputExpanded=!1;K.buttonOverrides={iconPosition:"icon-only"};K.inReplyPanel=!1;K.countdownRatio=0;K.isTooltipVisible=!1;K.tooltipTimeout=1E4;K.systemIcons=_.S("kevlar_system_icons");K.tallerEmojiPicker=_.S("live_chat_taller_emoji_picker");
K.blockSendMessageWithCountdown=!_.S("live_chat_enable_send_button_in_slow_mode");K.sendReplyMessageInFlight=!1;K.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"};K.onResize=function(){K.maybeToggleCharacterCount()};
return K};
_.r(z$,_.G);_.z=z$.prototype;
_.z.configureRendererStamper=function(){return{"data.sendButton":{id:"send-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.pickers":{id:"pickers",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{disableIncrementalLoading:"[[disableEmojiPickerIncrementalLoading]]"}},liveChatProductPickerRenderer:"yt-live-chat-product-picker-renderer",liveChatProductPickerPanelViewModel:"yt-live-chat-product-picker-panel-view-model",liveChatPollEditorPanelRenderer:"yt-live-chat-poll-editor-panel-renderer",
liveChatQnaStartPanelRenderer:"yt-live-chat-qna-start-panel-renderer"}},"data.emojiPickerButton":{id:"emoji-picker-button",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0}}}},"data.pickerButtons":{id:"picker-buttons",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",
properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0},properties:{overrides:"[[buttonOverrides]]"}},reactionControlPanelOverlayViewModel:{component:"yt-reaction-control-panel-overlay-view-model"}}},"data.interactionMessage":{id:"interaction-message",mapping:{messageRenderer:{component:"yt-live-chat-message-renderer",params:{subtextOnBottom:!0}}}},errorMessage:{id:"error-message",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer",
liveChatTextActionsErrorMessageRenderer:"yt-live-chat-text-actions-error-message-renderer"}}}};
_.z.attached=function(){window.addEventListener("resize",this.onResize)};
_.z.detached=function(){window.removeEventListener("resize",this.onResize)};
_.z.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.z.sendMessage=function(){var K=this,X,F,P,H;return _.q(function(f){if(K.sendDisabled)return f.return();K.isTooltipVisible&&_.xr(K.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(K.data.sendButton&&K.data.sendButton.buttonRenderer){K.input.completeEmojis();X=K.data.sendButton.buttonRenderer.serviceEndpoint;if(!X)return f.return();P=((F=_.T(X,_.ibU))==null?void 0:F.clientIdPrefix)||"";H={client_message_id:P+String(K.numSentMessages++),rich_message:_.wn(K.input.liveChatRichMessageInput)};
K.pendingMessageId=H.client_message_id;K.inReplyPanel&&(K.sendReplyMessageInFlight=!0);_.Kl(K.hostElement,[X,H]);K.input.setLiveChatRichMessageInput(null)}_.JT(f)})};
_.z.handleSendButtonAction=function(K){K.detail.actionName==="yt-service-request"&&(K.stopPropagation(),this.sendMessage())};
_.z.onSendCompleted=function(K,X){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(K=this.get("timeoutDurationUsec",X.data))&&this.handleTimeout(Number(K)/1E3);this.errorMessage=this.get("errorMessage",X.data);this.pendingMessageId=""};
_.z.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.xr(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.z.handlePickerButtonToggle=function(K){K=K.detail.targetId;this.ytPickerBehavior.togglePicker_(K);if(K==="emoji")this.input.focus();else if(K==="qna-start-panel"){var X,F;(X=_.C$(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(F=X.querySelector("#qna-creator-text-input-field"))==null||F.focus()}};
_.z.onComponentReplaced=function(K){var X,F;K.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((X=K.replacement.liveChatMessageInputRenderer)==null?0:(F=X.headerRenderer)==null?0:F.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.z.onEmojiSelect=function(K){this.input.focus();this.input.insertEmoji(K.detail)};
_.z.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.z.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.xr(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.xr(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.z.onOpenPopupAction=function(K,X){var F=this;X===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.xr(F.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.z.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.z.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.z.focusChanged=function(){this.maybeToggleCharacterCount()};
_.z.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var K=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",K>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.z.computeId=function(){return this.data&&this.data.targetId||""};
_.z.computeSendDisabled=function(K,X,F,P){K=!!(this.blockSendMessageWithCountdown&&F||!K||X&&K>X||P);(X=_.C$(this.hostElement).querySelector("#send-button"))&&X.children.length&&(X.children[0].disabled=K);return K};
_.z.handleTimeout=function(K){this.timeoutDurationMs=this.timeoutMs=K;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.z.updateTimeout=function(K){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(K-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=K,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.z.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.z.onErrorMessageEdit=function(K){this.input.setLiveChatRichMessageInput(K.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.z.errorMessageChanged=function(){var K=this;_.dl(function(){_.xr(K.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.z.computeAuthorNameColor=function(K){var X;if(_.S("live_chat_author_name_color_usernames")&&(K==null?0:(X=K.authorName)==null?0:X.simpleText))return _.ZFO(_.Y43(K.authorName.simpleText));if(_.S("live_chat_seed_color_usernames")&&(K==null?0:K.authorSeedColorArgb))return _.ZFO(_.KB(K.authorSeedColorArgb));if(_.S("live_chat_colored_usernames"))return"#cc0000";var F;return _.S("live_chat_simple_color_usernames")&&(K==null?0:(F=K.authorName)==null?0:F.simpleText)&&(K==null?0:K.authorUsernameColorLight)&&
(K==null?0:K.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.KB(K.authorUsernameColorDark):_.KB(K.authorUsernameColorLight):""};
_.z.onIsTooltipVisibleChanged=function(){var K=_.C$(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){K.hidden=!1;K.setAttribute("role","alert")},0):(K.hidden=!0,K.removeAttribute("role"))};
_.z.onFocusedChanged=function(K){this.inputFocused=K.detail.value};
_.Oi.Object.defineProperties(z$.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 K;return!((K=this.data)==null||!K.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.data)==null?void 0:(X=K.pickers)==null?void 0:X.find(function(F){return F.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var K=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return K?this.ytRendererBehavior.getSimpleString(K):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
z$.prototype.onIsTooltipVisibleChanged=z$.prototype.onIsTooltipVisibleChanged;z$.prototype.errorMessageChanged=z$.prototype.errorMessageChanged;z$.prototype.onErrorMessageEdit=z$.prototype.onErrorMessageEdit;z$.prototype.onErrorMessageDismiss=z$.prototype.onErrorMessageDismiss;z$.prototype.focusChanged=z$.prototype.focusChanged;z$.prototype.characterCountChanged=z$.prototype.characterCountChanged;z$.prototype.onEmojiSelect=z$.prototype.onEmojiSelect;z$.prototype.handlePickerButtonToggle=z$.prototype.handlePickerButtonToggle;
z$.prototype.onSendError=z$.prototype.onSendError;z$.prototype.onSendCompleted=z$.prototype.onSendCompleted;z$.prototype.sendMessage=z$.prototype.sendMessage;z$.prototype.dataChanged=z$.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],z$.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],z$.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.W(c38.YtPickerBehavior),_.g("design:type",Object)],z$.prototype,"ytPickerBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],z$.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.WU.YtLiveChatTooltipTargetingBehavior),_.g("design:type",Object)],z$.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],z$.prototype,"hasFiredInitialFocusActions",void 0);
_.O([_.h(),_.g("design:type",Object)],z$.prototype,"isBeforeFocusEnabled",void 0);_.O([_.h(),_.g("design:type",Object)],z$.prototype,"data",void 0);_.O([_.h({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.g("design:type",Object)],z$.prototype,"id",void 0);_.O([_.h(),_.g("design:type",Object)],z$.prototype,"characterCount",void 0);_.O([_.h(),_.g("design:type",Object)],z$.prototype,"maxCharacterLimit",void 0);
_.O([_.h(),_.g("design:type",Object)],z$.prototype,"remainingCharacterCount",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],z$.prototype,"inputExpanded",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],z$.prototype,"inputFocused",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],z$.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.O([_.h(),_.g("design:type",_.UT)],z$.prototype,"participantsManager",void 0);
_.O([_.h(),_.g("design:type",Object)],z$.prototype,"buttonOverrides",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],z$.prototype,"inReplyPanel",void 0);_.O([_.U("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],z$.prototype,"sendDisabled",null);_.O([_.h(),_.g("design:type",Object)],z$.prototype,"countdownRatio",void 0);
_.O([_.U("countdownRatio"),_.g("design:type",Number),_.g("design:paramtypes",[])],z$.prototype,"countdownStrokeDashOffset",null);_.O([_.U("countdownRatio"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],z$.prototype,"countdownActive",null);_.O([_.U("data.interactionMessage"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],z$.prototype,"hasInteractionMessage",null);
_.O([_.U("data.emojiPickerButton"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],z$.prototype,"hasEmojiPickerButton",null);_.O([_.U("data, characterCount"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],z$.prototype,"showAvatar",null);_.O([_.U("data.pickers"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],z$.prototype,"hasProductPickerPanelViewModel",null);
_.O([_.h(),_.g("design:type",Object)],z$.prototype,"errorMessage",void 0);_.O([_.h(),_.g("design:type",Object)],z$.prototype,"genericErrorMessage",void 0);_.O([_.h(),_.g("design:type",Object)],z$.prototype,"isTooltipVisible",void 0);_.O([_.h(),_.g("design:type",Object)],z$.prototype,"tooltipTimeout",void 0);_.O([_.U("data.onInitialFocusCommand"),_.g("design:type",String),_.g("design:paramtypes",[])],z$.prototype,"tooltipMessage",null);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],z$.prototype,"systemIcons",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],z$.prototype,"tallerEmojiPicker",void 0);_.O([_.U("data"),_.g("design:type",String),_.g("design:paramtypes",[])],z$.prototype,"authorNameColor",null);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],z$.prototype,"blockSendMessageWithCountdown",void 0);_.O([_.h(),_.g("design:type",Object)],z$.prototype,"sendReplyMessageInFlight",void 0);
_.O([_.fa("#input"),_.g("design:type",_.ruV)],z$.prototype,"input",void 0);_.O([_.fa("#count"),_.g("design:type",HTMLElement)],z$.prototype,"count",void 0);_.O([_.fa("#input-container"),_.g("design:type",HTMLElement)],z$.prototype,"inputContainer",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],z$.prototype,"dataChanged",null);
_.O([_.Hc("yt-live-chat-send-message"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype",Promise)],z$.prototype,"sendMessage",null);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[Event,_.G9]),_.g("design:returntype")],z$.prototype,"onSendCompleted",null);_.O([_.Hc("yt-service-request-error"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],z$.prototype,"onSendError",null);
_.O([_.Hc("yt-live-chat-icon-toggle-button-renderer-toggle"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],z$.prototype,"handlePickerButtonToggle",null);_.O([_.Hc("yt-emoji-select"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],z$.prototype,"onEmojiSelect",null);
_.O([_.so("characterCount"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],z$.prototype,"characterCountChanged",null);_.O([_.so("inputFocused"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],z$.prototype,"focusChanged",null);_.O([_.Hc("yt-live-chat-error-message-dismiss"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],z$.prototype,"onErrorMessageDismiss",null);
_.O([_.Hc("yt-live-chat-error-message-edit"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],z$.prototype,"onErrorMessageEdit",null);_.O([_.so("errorMessage"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],z$.prototype,"errorMessageChanged",null);_.O([_.so("isTooltipVisible"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],z$.prototype,"onIsTooltipVisibleChanged",null);
z$=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],z$);
_.t(z$,"yt-live-chat-message-input-renderer",function(){if(a85===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;veo===void 0&&(veo=document.createElement("template"));var P=veo;F.call(X,P.content.cloneNode(!0),K.content.firstChild);a85=K}K=a85;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var pek;var BmG;var fV=function(){var K=_.G.apply(this,arguments)||this;K.systemIcons=_.S("kevlar_system_icons");K.firedOnClickCommand=!1;K.inReplyPanel=!1;return K};
_.r(fV,_.G);
fV.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"}}}};
fV.prototype.onButtonToggle=function(K){K.target.disabled||this.ytPickerBehavior.togglePicker_(K.detail.targetId)};
fV.prototype.onClick=function(){var K=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.xr(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return K.firedOnClickCommand=!1},5E3))};
_.Oi.Object.defineProperties(fV.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.data)==null?void 0:(X=K.panels)==null?void 0:X.find(function(F){return F.liveChatProductPickerPanelViewModel}))!==void 0}}});
fV.prototype.onButtonToggle=fV.prototype.onButtonToggle;_.O([_.W(c38.YtPickerBehavior),_.g("design:type",Object)],fV.prototype,"ytPickerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],fV.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],fV.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],fV.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],fV.prototype,"systemIcons",void 0);_.O([_.h({reflectToAttribute:!1}),_.g("design:type",Object)],fV.prototype,"firedOnClickCommand",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],fV.prototype,"inReplyPanel",void 0);_.O([_.U("data.pickers"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],fV.prototype,"hasProductPickerPanelViewModel",null);
_.O([_.Hc("yt-live-chat-icon-toggle-button-renderer-toggle"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],fV.prototype,"onButtonToggle",null);fV=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],fV);
_.t(fV,"yt-live-chat-restricted-participation-renderer",function(){if(BmG===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;pek===void 0&&(pek=document.createElement("template"));var P=pek;F.call(X,P.content.cloneNode(!0),K.content.firstChild);BmG=K}K=BmG;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var D2=function(){var K=_.G.apply(this,arguments)||this;K.genericErrorMessage=_.GS("Error, try again.");K.inReplyPanel=!1;K.hideBorder=!1;return K};
_.r(D2,_.G);D2.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}}}}}};
_.Oi.Object.defineProperties(D2,{template:{configurable:!0,enumerable:!0,get:function(){return UCt()}}});
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],D2.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],D2.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],D2.prototype,"genericErrorMessage",void 0);_.O([_.h(),_.g("design:type",Object)],D2.prototype,"inReplyPanel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],D2.prototype,"hideBorder",void 0);
D2=_.O([_.Tb({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],D2);_.t(D2,"yt-live-chat-engagement-panel-input-renderer",function(){return UCt()},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var SFd,oDJ;SFd=_.cO(115994);oDJ=_.cO(115993);_.u2=function(K,X,F){var P=this;var H=F.dragDownAction;this.layer=0;this.JSC$19921_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return P.dragDownAction()}}}};
this.JSC$19921_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return P.dragDownAction()}}}};
this.fullscreen=!1;var f=_.uH();_.Kp(f,SFd,this.layer);_.Kp(f,oDJ,this.layer);this.dragDownAction=function(){H();_.WO(f,{visualElement:P.fullscreen?SFd:oDJ})};
this.gesture=new _.qK(K,X,this.JSC$19921_watchConfig,"pandown");this.attach()};
_.u2.prototype.attach=function(){this.gesture.attach()};
_.u2.prototype.detach=function(){this.gesture.detach()};
_.u2.prototype.update=function(K){this.fullscreen=K;this.gesture.config=K?this.JSC$19921_watchFullScreenConfig:this.JSC$19921_watchConfig};var LU1={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(K){if(K&&K.length==1&&Array.isArray(K[0].loggingUrls)){K=_.T8.unsafeClone(K[0]);var X=this.macros||{},F=this.getAdModuleClient_();if(!F)return _.F0();K.loggingUrls.forEach(function(P){if(P.baseUrl){var H=P.baseUrl;var f=X;f=f===void 0?{}:f;H=F.getOptions().includes("replaceUrlMacros")?_.hBt(F,"replaceUrlMacros",{url:H,additionalMapping:f}):H;P.baseUrl=H}},this);
K=[K]}return _.Kl(this.hostElement,K)},
getAdModuleClient_:function(){var K=_.$f(this);return K?(K=K.getPlayer())?new _.Z5(K):null:null}}]};var Tm1;var q3=function(){var K=_.G.apply(this,arguments)||this;K.isCollapsed=!1;K.modernPanels=_.S("kevlar_watch_modern_panels");K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return K};
_.r(q3,_.G);_.z=q3.prototype;_.z.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.z.onDonateTap=function(){var K=this.get("data.donateButton.buttonRenderer.command");if(K){var X=_.AD(),F=this.get("data.donateButton.buttonRenderer.trackingParams");X&&F&&_.vW(X,_.QB(F));this.ytOpenPopupBehavior.openPopup(K)}};
_.z.onShowMore=function(){this.isCollapsed=!1;var K=_.AD(),X=this.get("data.expandButton.buttonRenderer.trackingParams");K&&X&&_.vW(K,_.QB(X))};
_.z.onShowLess=function(){this.isCollapsed=!0};
_.z.dataChanged=function(){_.XU(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.z.onDarkModeToggledAction=function(K){this.isDarkTheme=K};
_.z.handleUpdate=function(K){if(K=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",K))this.set("data.startLabel",K.startLabel),this.set("data.endLabel",K.endLabel),this.set("data.progress",K.progress),this.set("data.amountRaisedLabel",K.amountRaisedLabel),this.dataChanged()};
_.z.handleOpenPopupAction=function(K){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",K)&&_.xr(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.z.computeHeaderBackgroundUrl=function(K,X){if(K)return X?K.headerBackgroundDarkUrl:K.headerBackgroundUrl};
_.z.isProgressBarVisible=function(K){return!(!K||K.progress===void 0)};
_.z.headerBackgroundClass=function(){return _.e8("HTML_DIR")==="rtl"?"flip":""};
q3.prototype.dataChanged=q3.prototype.dataChanged;_.O([_.W(_.sT.YtOpenPopupBehavior),_.g("design:type",Object)],q3.prototype,"ytOpenPopupBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],q3.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],q3.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],q3.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],q3.prototype,"isCollapsed",void 0);_.O([_.h({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.g("design:type",String)],q3.prototype,"headerBackgroundUrl",void 0);_.O([_.h(),_.g("design:type",Boolean)],q3.prototype,"isDarkTheme",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],q3.prototype,"modernPanels",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],q3.prototype,"dataChanged",null);q3=_.O([_.v({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],q3);
_.t(q3,"ytd-donation-shelf-renderer",function(){if(Tm1!==void 0)return Tm1;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Tm1=K},{mode:1});var r3F;var JQ=function(){return _.G.apply(this,arguments)||this};
_.r(JQ,_.G);_.O([_.h(),_.g("design:type",Object)],JQ.prototype,"data",void 0);JQ=_.O([_.v({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],JQ);
_.t(JQ,"ytd-donation-unavailable-renderer",function(){if(r3F!==void 0)return r3F;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return r3F=K},{mode:1});var A3G;var Z2=function(){return _.G.apply(this,arguments)||this};
_.r(Z2,_.G);Z2.prototype.computeIconType=function(K){return K?"yt-icons:"+K.toLowerCase():null};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Z2.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Z2.prototype,"data",void 0);Z2=_.O([_.v({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],Z2);
_.t(Z2,"ytd-limited-state-message-renderer",function(){if(A3G!==void 0)return A3G;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return A3G=K},{mode:1});var jTv;var Ym=function(){return _.G.apply(this,arguments)||this};
_.r(Ym,_.G);Ym.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
Ym.prototype.onTap=function(K){var X=this.data&&this.data.endpoint;X&&!_.lC(_.lN(K),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.iX(this.hostElement,"yt-navigate",{endpoint:X})};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Ym.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Ym.prototype,"data",void 0);Ym=_.O([_.v({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],Ym);
_.t(Ym,"ytd-autotagging-metadata-renderer",function(){if(jTv!==void 0)return jTv;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return jTv=K},{mode:1});var wek;var Qo=function(){return _.G.apply(this,arguments)||this};
_.r(Qo,_.G);Qo.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Qo.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Qo.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Qo.prototype,"data",void 0);Qo=_.O([_.v({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],Qo);
_.t(Qo,"ytd-autotagging-metadata-row-renderer",function(){if(wek!==void 0)return wek;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return wek=K},{mode:1});var y31;var WUF;var M3=function(){var K=_.G.apply(this,arguments)||this;K.engagementPanelContent=!1;return K};
_.r(M3,_.G);M3.prototype.computeHasDividerLine=function(K,X){return K&&!X};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],M3.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],M3.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.g("design:type",Boolean)],M3.prototype,"hasDividerLine",void 0);_.O([_.h(),_.g("design:type",Object)],M3.prototype,"engagementPanelContent",void 0);
M3=_.O([_.v({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],M3);
_.t(M3,"ytd-metadata-row-header-renderer",function(){if(WUF!==void 0)return WUF;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return WUF=K},{mode:1});var dW8;var nV=function(){return _.G.apply(this,arguments)||this};
_.r(nV,_.G);nV.prototype.computeHasDividerLine=function(K){return K};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],nV.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],nV.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.g("design:type",Boolean)],nV.prototype,"hasDividerLine",void 0);nV=_.O([_.v({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],nV);
_.t(nV,"ytd-metadata-row-renderer",function(){if(dW8!==void 0)return dW8;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return dW8=K},{mode:1});var e7J;var c1=function(){return _.G.apply(this,arguments)||this};
_.r(c1,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],c1.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],c1.prototype,"data",void 0);c1=_.O([_.v({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],c1);
_.t(c1,"ytd-metadata-with-image-row-renderer",function(){if(e7J!==void 0)return e7J;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return e7J=K},{mode:1});var R7k;var pV=function(){var K=_.G.apply(this,arguments)||this;K.rounded=!0;K.fixie=!1;K.fullWidth=!1;return K};
_.r(pV,_.G);_.z=pV.prototype;_.z.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z.onDataChanged=function(){var K=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(X){K.onEndpointLinkKeyPress(X)}))};
_.z.onEndpointLinkKeyPress=function(K){K.target===this.endpointLink&&K.keyCode===13&&_.iX(this.hostElement,"click")};
_.z.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var K;if((K=this.data)==null?0:K.endpoint)_.X0(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.z.onYtNavigate=function(K){this.endpointHref||(K.stopPropagation(),K.preventDefault())};
_.z.onInformationButtonContainerClick=function(K){K.target.id!=="information-button-container"&&(K.stopPropagation(),K.preventDefault())};
_.z.computeStyle=function(K){return K};
_.z.computeIsThumbnailStyle=function(K){return K==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.z.computeThumbnailWidth=function(K){switch(K){case "RICH_METADATA_RENDERER_STYLE_THUMBNAIL":return 178;case "RICH_METADATA_RENDERER_STYLE_BOX_ART":return 72;case "RICH_METADATA_RENDERER_STYLE_TOPIC":return 96;case "RICH_METADATA_RENDERER_STYLE_SQUARE":return 100;default:return 68}};
_.z.computeThumbnailObjectFit=function(K){switch(K){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.Oi.Object.defineProperties(pV.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?0:K.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
pV.prototype.onYtNavigate=pV.prototype.onYtNavigate;pV.prototype.onClick=pV.prototype.onClick;pV.prototype.onDataChanged=pV.prototype.onDataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],pV.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],pV.prototype,"componentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],pV.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],pV.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.g("design:type",String)],pV.prototype,"componentStyle",void 0);_.O([_.h({computed:"computeIsThumbnailStyle(data.style)"}),_.g("design:type",Boolean)],pV.prototype,"isThumbnailStyle",void 0);_.O([_.h({computed:"computeThumbnailObjectFit(data.style)"}),_.g("design:type",String)],pV.prototype,"thumbnailObjectFit",void 0);
_.O([_.h({computed:"computeThumbnailWidth(data.style)"}),_.g("design:type",Number)],pV.prototype,"thumbnailWidth",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],pV.prototype,"rounded",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],pV.prototype,"fixie",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],pV.prototype,"fullWidth",void 0);_.O([_.fa("#endpoint-link"),_.g("design:type",HTMLAnchorElement)],pV.prototype,"endpointLink",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],pV.prototype,"onDataChanged",null);_.O([_.U("data.endpoint"),_.g("design:type",Object),_.g("design:paramtypes",[])],pV.prototype,"endpointHref",null);_.O([_.Hc("click"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],pV.prototype,"onClick",null);
_.O([_.Hc("yt-navigate"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],pV.prototype,"onYtNavigate",null);pV=_.O([_.v({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],pV);
_.t(pV,"ytd-rich-metadata-renderer",function(){if(R7k!==void 0)return R7k;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return R7k=K},{mode:_.Ig("kevlar_poly_si_batch_j075")?1:2});var UW8;var B1=function(){var K=_.G.apply(this,arguments)||this;K.fixie=!1;K.fullWidth=!1;return K};
_.r(B1,_.G);B1.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
B1.prototype.computeHasDividerLine=function(K){return K};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],B1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],B1.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.g("design:type",Boolean)],B1.prototype,"hasDividerLine",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],B1.prototype,"fixie",void 0);_.O([_.h(),_.g("design:type",Object)],B1.prototype,"fullWidth",void 0);
B1=_.O([_.v({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],B1);
_.t(B1,"ytd-rich-metadata-row-renderer",function(){if(UW8!==void 0)return UW8;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return UW8=K},{mode:1});var Sb=function(){var K=_.G.apply(this,arguments)||this;K.engagementPanelContent=!1;K.fixie=!1;K.fullWidth=!1;return K};
_.r(Sb,_.G);
Sb.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"}}}};
Sb.prototype.computeCollapsibleItems=function(K,X,F){return K===void 0||X===void 0||F===void 0||F?[]:K.slice(X)};
Sb.prototype.computeAlwaysShownItems=function(K,X){return K&&K.length?K.slice(0,X):[]};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Sb.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Sb.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Sb.prototype,"data",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],Sb.prototype,"collapsed",void 0);
_.O([_.h({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.g("design:type",Array)],Sb.prototype,"alwaysShownItems",void 0);_.O([_.h({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.g("design:type",Array)],Sb.prototype,"collapsibleItems",void 0);_.O([_.h(),_.g("design:type",Object)],Sb.prototype,"engagementPanelContent",void 0);_.O([_.h(),_.g("design:type",Object)],Sb.prototype,"fixie",void 0);
_.O([_.h(),_.g("design:type",Object)],Sb.prototype,"fullWidth",void 0);Sb=_.O([_.v({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],Sb);
_.t(Sb,"ytd-metadata-row-container-renderer",function(){if(y31!==void 0)return y31;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return y31=K},{mode:1});var h75;var oh=function(){var K=_.G.apply(this,arguments)||this;K.currentPageUrl="";K.baseUrl="";K.isHiddenByUser=null;K.hidden=!1;K.showAboveScrim=!1;K.watchNextGrid=_.S("kevlar_watch_grid");K.modernButtons=_.S("web_modern_buttons");K.roundedContainer=!0;K.noBorder=!1;K.roundBackground=!_.S("live_chat_round_background_killswitch");K.overflowHideChat=_.S("live_chat_overflow_hide_chat");K.forceDarkTheme=!1;K.theaterWatchWhile=!1;K.isListeningForPlayerProgress=!1;K.JSC$19957_playerEvents=new Map;K.isFrameReady=
!1;K.player=null;K.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 K};
_.r(oh,_.G);_.z=oh.prototype;_.z.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.IJ(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.z.created=function(){var K=this;this.handleIframeEventListener=function(X){K.handleIframeEvent(X)};
this.handleKeyboardEventListener=function(X){K.handleKeyboardEvent(X)};
this.JSC$19957_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19957_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19957_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19957_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19957_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.z.attached=function(){window.addEventListener("message",this.handleIframeEventListener);window.addEventListener("keydown",this.handleKeyboardEventListener);window.addEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl=window.location.href;this.setupPlayerProgressRelay();this.collapsedChanged()};
_.z.detached=function(){window.removeEventListener("message",this.handleIframeEventListener);window.removeEventListener("keydown",this.handleKeyboardEventListener);window.removeEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl="";this.isListeningForPlayerProgress=!1;this.setPlayer(null);this.isFrameReady=!1};
_.z.computeBaseUrl=function(K){var X="/live_chat";this.isChatReplay()&&(X="/live_chat_replay");return _.EQ(_.gY(_.Vt(_.az(K),X),null),"").toString()};
_.z.dataChanged=function(){_.S("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.z.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var K=this.url;if(this.isChatReplay()&&this.player){var X=Math.floor(this.player.getProgressState().current*1E3);K=_.$L(_.az(K),"playerOffsetMs",X.toString()).toString()}X=this.chatframe;try{var F=K==="about:blank"?_.VbP:_.ps(K),P=X.contentDocument.location,H=_.rF(F);H!==void 0&&P.replace(H)}catch(f){X.src=K}}};
_.z.collapsedChanged=function(){_.iX(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.z.handleIframeEvent=function(K){if(K&&this.baseUrl.startsWith(K.origin)&&K.source===this.chatframe.contentWindow&&_.XL(K.data))if(K.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(K);else if(K.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(K.data["yt-show-feedback-dialog"]){var X=_.i9().resolve(_.Nu(_.T6Q));if(X){var F=K.ports,P;F&&F.length&&(P=function(){F[0].postMessage({})});
K=K.data["yt-show-feedback-dialog"];X.showFeedbackDialog(K.customProductData,K.feedbackContent,P,K.bucket)}}else if(K.data["yt-show-survey"])_.iX(this.hostElement,"yt-show-survey",K.data["yt-show-survey"]);else if(K.data["yt-purchase-membership"])_.i9().resolve(_.xU).resolveCommand(K.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(K.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(K.data["yt-tunnel-out-live-service-request"]);else if(K.data["yt-user-activity"])_.iU();
else if(K.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(K.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(K.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(K.data["yt-open-popup"]);else if(K.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(K.data["yt-log-flow-logging-event-command"]);else if(K.data["yt-hide-live-chat"])this.onShowHideChat();else K.data["yt-report-moderation-state-log"]&&
this.player&&(X={cpn:this.player.getVideoData().cpn},_.LL("liveChatBeingModerated",X))};
_.z.attachLiveChatResponseVeTrackingParams=function(K){K=_.QB(K);var X=_.AD(),F=_.mz("liveChatRenderer.trackingParams",this.data);X&&F&&_.Us(X,_.QB(F),K)};
_.z.handleBuyflowMessages=function(K){var X=K.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,F=K.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,P=K.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.NmO(_.In(_.Gw),X.replace(/-/g,"+").replace(/_/g,"/"),function(H){K.ports[0].postMessage({success:!0,buyFlowResponse:H})},void 0,function(H){K.ports[0].postMessage({success:!1,
error:H&&H.message||"Buyflow rejected without error."})},_.ZO().get("hl"),void 0,function(){K.ports[0].postMessage({closed:!0})},F,P)};
_.z.setupPlayerProgressRelay=function(){var K=this;if(!this.isListeningForPlayerProgress){var X=_.Oe();X!=null&&X.getPlayerPromise&&(X.getPlayerPromise().then(function(F){K.playerApiReady(F)}),this.isListeningForPlayerProgress=!0)}};
_.z.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.z.playerApiReady=function(K){this.setPlayer(K)};
_.z.playerProgressHandler=function(){if(this.player){var K=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":K.current})}};
_.z.playerAdStartHandler=function(K){this.postToContentWindow({"yt-player-ad-start":K})};
_.z.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.z.playerStateChangeHandler=function(K){this.postToContentWindow({"yt-player-state-change":K})};
_.z.setPlayer=function(K){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19957_playerEvents);K&&(this.player=K,this.ytPlayerListenerBehavior.listenToPlayerEvents(K,this.JSC$19957_playerEvents),_.iX(this.hostElement,"player-api-ready"))};
_.z.liveChatPageUrl=function(K,X,F,P){return!F||X?"about:blank":F.liveChatRenderer?(X=_.az(this.currentPageUrl).JSC$8042_queryData_,Mfo(X),K=_.az(K),X.add("continuation",F.liveChatRenderer.continuations[0].reloadContinuationData.continuation),F=_.n$()==="USER_INTERFACE_THEME_DARK",(P||F)&&X.add("dark_theme","true"),_.gY(K,X),P=_.az(K.toString()),F=P.JSC$8042_queryData_,"SESSION_INDEX"in _.Wd&&(F.add("authuser",_.e8("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.Wd&&F.add("pageId",_.e8("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.Wd&&F.add("sdc",_.e8("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),P.toString()):""};
_.z.isCollapsed=function(K,X){return X!==null?X:this.isChatReplay()||K&&K.conversationBarRenderer&&K.conversationBarRenderer.availabilityMessage?!0:K?K.liveChatRenderer?K.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.S("live_chat_hide_premiere_replay_message")||K.conversationBarRenderer&&K.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.z.isHidden=function(K,X,F){var P=X&&X.conversationBarRenderer&&X.conversationBarRenderer.availabilityMessage,H=X&&X.liveChatRenderer&&X.liveChatRenderer.showHideButton,f=X&&X.liveChatRenderer&&X.liveChatRenderer.showButton;return F&&K&&!P&&!f||!F&&K&&!P&&!H?!0:X&&X.liveChatRenderer&&X.liveChatRenderer.initialDisplayState?X.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.z.computeButtonOverride=function(K,X){if(K&&X)return{type:"outline"}};
_.z.setCollapsedState=function(K){_.T(K,_.m_t)&&(this.isHiddenByUser=!!_.T(K,_.m_t).collapsed,!this.isHiddenByUser&&_.S("enable_teaser_framework_web_client")&&_.xr(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.z.forwardReduxActionToIframe=function(K){this.postToContentWindow({"yt-live-chat-forward-redux-action":K})};
_.z.onLoopRangeChange=function(K){this.showAboveScrim=!(K==null||!K.postId)};
_.z.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.z.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.z.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.z.sendDarkThemePostMessage=function(K){this.postToContentWindow({"yt-live-chat-set-dark-theme":K})};
_.z.onLiveChatBuyFlowCallback=function(K){this.postToContentWindow({"yt-live-chat-buy-flow-callback":K})};
_.z.handleKeyboardEvent=function(K){(0,_.T8.containsValue)(Q$5,K.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:K.type,keyCode:K.keyCode}})};
_.z.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.z.postToContentWindow=function(K){if(this.isFrameReady)try{var X=window.location.protocol+"//"+window.location.host,F;(F=this.chatframe)!=null&&F.contentWindow?this.chatframe.contentWindow.postMessage(K,X):_.yy(new _.nG("Tried posting a message to an iframe with no content window",K))}catch(P){_.jF(P)}};
_.z.shouldHideChatFrame=function(K){return K&&_.S("hide_live_chat_button_when_collapsed")};
_.Oi.Object.defineProperties(oh.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.S("live_chat_overflow_hide_chat")||_.S("web_watch_chat_hide_button_killswitch"))return _.S("live_chat_overflow_hide_chat");var K,X,F,P;return!!((K=this.data)==null?0:(X=K.liveChatRenderer)==null?0:(F=X.header)==null?0:(P=F.liveChatHeaderRenderer)==null?0:P.collapseButton)}}});
oh.prototype.collapsedChanged=oh.prototype.collapsedChanged;oh.prototype.urlChanged=oh.prototype.urlChanged;oh.prototype.dataChanged=oh.prototype.dataChanged;oh.prototype.onShowHideChat=oh.prototype.onShowHideChat;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],oh.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],oh.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],oh.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.ld.YtPlayerListenerBehavior),_.g("design:type",_.vC)],oh.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.W(_.sT.YtOpenPopupBehavior),_.g("design:type",Object)],oh.prototype,"ytOpenPopupBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],oh.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],oh.prototype,"currentPageUrl",void 0);
_.O([_.h({computed:"computeBaseUrl(currentPageUrl,data)"}),_.g("design:type",Object)],oh.prototype,"baseUrl",void 0);_.O([_.h({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.g("design:type",String)],oh.prototype,"url",void 0);_.O([_.h(),_.g("design:type",Object)],oh.prototype,"isHiddenByUser",void 0);_.O([_.h({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.g("design:type",Object)],oh.prototype,"hidden",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.g("design:type",Boolean)],oh.prototype,"collapsed",void 0);_.O([_.h({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.g("design:type",Boolean)],oh.prototype,"hideChatFrame",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],oh.prototype,"showAboveScrim",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],oh.prototype,"watchNextGrid",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],oh.prototype,"modernButtons",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],oh.prototype,"roundedContainer",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],oh.prototype,"noBorder",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],oh.prototype,"roundBackground",void 0);
_.O([_.h({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.g("design:type",Object)],oh.prototype,"toggleButtonOverride",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],oh.prototype,"overflowHideChat",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],oh.prototype,"forceDarkTheme",void 0);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],oh.prototype,"enableShowWithoutHideChatButton",null);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],oh.prototype,"theaterWatchWhile",void 0);_.O([_.fa("#chatframe"),_.g("design:type",HTMLIFrameElement)],oh.prototype,"chatframe",void 0);_.O([_.Hc("yt-toggle-button"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],oh.prototype,"onShowHideChat",null);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],oh.prototype,"dataChanged",null);
_.O([_.so("url"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],oh.prototype,"urlChanged",null);_.O([_.so("collapsed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],oh.prototype,"collapsedChanged",null);oh=_.O([_.v({is:"ytd-live-chat-frame",disableElementRegistration:!0})],oh);
_.t(oh,"ytd-live-chat-frame",function(){if(h75!==void 0)return h75;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return h75=K},{mode:1});var mWG;var LV=function(){var K=_.G.apply(this,arguments)||this;K.modern=_.S("web_modern_buttons");K.buttonOverrides={style:"call-to-action",type:"filled"};return K};
_.r(LV,_.G);LV.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=_.j0(this.data.backgroundColor)))};
LV.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var K=this.getFormattedStringLoggingDirectives(this.data.headline);K&&this.rendererBehavior.logExplicitClick(K)}};
LV.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var K=this.getFormattedStringLoggingDirectives(this.data.description);K&&this.rendererBehavior.logExplicitClick(K)}};
LV.prototype.getFormattedStringLoggingDirectives=function(K){return K&&K.runs&&K.runs.length>0&&K.runs[0]&&K.runs[0].loggingDirectives?K.runs[0].loggingDirectives:null};
LV.prototype.dataChanged=LV.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],LV.prototype,"rendererBehavior",void 0);_.O([_.W(LU1.YtMacroReplacementBehavior),_.g("design:type",Object)],LV.prototype,"macroReplacementBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],LV.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],LV.prototype,"navigationEndpoint",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],LV.prototype,"enableColors",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],LV.prototype,"modern",void 0);_.O([_.h(),_.g("design:type",Object)],LV.prototype,"buttonOverrides",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],LV.prototype,"dataChanged",null);LV=_.O([_.v({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],LV);
_.t(LV,"ytd-action-basic-immersive-content-renderer",function(){if(mWG!==void 0)return mWG;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return mWG=K},{mode:1});var G0G;var lzJ;var T$=function(){return _.G.apply(this,arguments)||this};
_.r(T$,_.G);T$.prototype.dataChanged=function(){var K;((K=this.data)==null?void 0:K.backgroundColor)!==void 0&&_.XU(this.hostElement,{"--bgu-color":_.j0(this.data.backgroundColor)})};
T$.prototype.onImageTileClick=function(){var K;((K=this.data)==null?0:K.navigationEndpoint)&&_.iX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var X;((X=this.data)==null?0:X.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.Oi.Object.defineProperties(T$.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var K;if(((K=this.data)==null?void 0:K.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 K;return((K=this.data)==null?void 0:K.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var K,X,F;if(((K=this.data)==null?void 0:(X=K.detailsLine)==null?void 0:X.texts)!=null&&((F=this.data)==null?void 0:F.detailsLine.texts.length)>0){var P;return(P=this.data)==null?void 0:P.detailsLine.texts.map(function(H){return H.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var K,X,F;if(((K=this.data)==null?void 0:(X=K.optionalDetailsLine)==null?void 0:X.texts)!=null&&((F=this.data)==null?void 0:F.optionalDetailsLine.texts.length)>0){var P;return(P=this.data)==null?void 0:P.optionalDetailsLine.texts.map(function(H){return H.text}).join("")}return null}}});
T$.prototype.dataChanged=T$.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],T$.prototype,"rendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],T$.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],T$.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("data.backgroundColor"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],T$.prototype,"hasBackgroundColor",null);
_.O([_.U("data.objectFit"),_.g("design:type",Object),_.g("design:paramtypes",[])],T$.prototype,"getObjectFit",null);_.O([_.h({reflectToAttribute:!0}),_.U("data.tileRenderingStyle"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],T$.prototype,"hasTileMetadata",null);_.O([_.U("data.detailsLine"),_.g("design:type",Object),_.g("design:paramtypes",[])],T$.prototype,"getSecondaryDetails",null);
_.O([_.U("data.optionalDetailsLine"),_.g("design:type",Object),_.g("design:paramtypes",[])],T$.prototype,"getOptionalDetails",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],T$.prototype,"dataChanged",null);T$=_.O([_.v({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],T$);
_.t(T$,"ytd-image-tile-renderer",function(){if(lzJ!==void 0)return lzJ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return lzJ=K},{mode:1});var vDd;var r3=function(){return _.G.apply(this,arguments)||this};
_.r(r3,_.G);r3.prototype.getOpenLinkIcon=function(){return _.S("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
r3.prototype.onSitelinkTap=function(){_.iX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.S("kevlar_command_handler_migration_killswitch"))_.X0(this.hostElement,this.data.clickCommands,this.hostElement);else for(var K=_.D(this.data.clickCommands),X=K.next();!X.done;X=K.next())this.ytComponentBehavior.resolveCommand(X.value)};
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],r3.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],r3.prototype,"rendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],r3.prototype,"data",void 0);r3=_.O([_.v({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],r3);
_.t(r3,"ytd-sitelink-renderer",function(){if(vDd!==void 0)return vDd;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return vDd=K},{mode:1});var AQ=function(){var K=_.G.apply(this,arguments)||this;K.paddingFix=_.S("enable_ads_web_ep_buenos_aires_and_padding_fix");return K};
_.r(AQ,_.G);AQ.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"}}}};
AQ.prototype.dataChanged=function(){var K=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(X){X.clickTrackingParams&&delete X.clickTrackingParams;K.ytMacroReplacementBehavior.sendServiceRequestAction([X])})};
AQ.prototype.shouldHideFooter=function(K){return!(K&&_.S("use_ads_engagement_panel_desktop_footer_cta"))};
_.Oi.Object.defineProperties(AQ.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.data)==null?void 0:K.imageTileRenderers)===void 0||((X=this.data)==null?void 0:X.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(F){var P;return(P=_.T(F,SCk))==null?void 0:P.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.data)==null?void 0:K.imageTileRenderers)===void 0||((X=this.data)==null?void 0:X.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(F){var P;return((P=_.T(F,SCk))==null?void 0:P.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
AQ.prototype.dataChanged=AQ.prototype.dataChanged;_.O([_.W(LU1.YtMacroReplacementBehavior),_.g("design:type",Object)],AQ.prototype,"ytMacroReplacementBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],AQ.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],AQ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],AQ.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],AQ.prototype,"paddingFix",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("data.imageTileRenderers"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],AQ.prototype,"removeBorderFromImageTiles",null);_.O([_.h({reflectToAttribute:!0}),_.U("data.imageTileRenderers"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],AQ.prototype,"useFooteredMetadataRenderingStyle",null);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],AQ.prototype,"dataChanged",null);AQ=_.O([_.v({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],AQ);
_.t(AQ,"ytd-action-engagement-panel-content-renderer",function(){if(G0G!==void 0)return G0G;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return G0G=K},{mode:1});var azs;var tw8=_.$c(function(K){var X=K.data;var F=K.customCommandResolver;K=_.t_();_.vp(K,function(){return X().interaction},F);
_.NF(K,{visibilityCallback:function(P){var H,f=(H=X().interaction)==null?void 0:H.onFirstVisible;P&&f&&_.e9(f)},
showOption:_.OG});return _.Q("ad-grid-card-image-full-metadata-view-model",{class:function(){var P;return((P=X().interaction)==null?0:P.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:K,"aria-label":function(){var P,H;return(P=X().interaction)==null?void 0:(H=P.accessibility)==null?void 0:H.label}},_.Q("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.Q(_.Md,{data:function(){return X().adImage}},{adImageViewModel:function(P){return _.Q(_.Ps,{data:P.data,
customCommandResolver:F})}})),_.Q("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.Q(_.p,{cond:function(){return X().headline},
then:function(P){return _.Q(_.Oy,{text:P,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.Q(_.p,{cond:function(){return X().detailsLine},
then:function(P){return _.Q("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.Q(_.Md,{data:P},{adDetailsLineViewModel:function(H){return _.Q(_.N1,{data:H.data,customCommandResolver:F,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.Q(_.p,{cond:function(){return X().secondaryDetailsLine},
then:function(P){return _.Q("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.Q(_.Md,{data:P},{adDetailsLineViewModel:function(H){return _.Q(_.N1,{data:H.data,customCommandResolver:F,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Ni");var $Wd=_.$c(function(K){var X=K.data;var F=K.customCommandResolver;K=_.t_();_.vp(K,function(){return X().interaction},F);
_.NF(K,{visibilityCallback:function(P){var H,f=(H=X().interaction)==null?void 0:H.onFirstVisible;P&&f&&_.e9(f)},
showOption:_.OG});return _.Q("ad-grid-card-image-view-model",{class:function(){var P;return((P=X().interaction)==null?0:P.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:K,"aria-label":function(){var P,H;return(P=X().interaction)==null?void 0:(H=P.accessibility)==null?void 0:H.label}},_.Q(_.Md,{data:function(){return X().adImage}},{adImageViewModel:function(P){return _.Q(_.Ps,{data:P.data,
customCommandResolver:F})}}),_.Q("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.Q(_.Md,{data:function(){return X().adCardBadge}},{adCardBadgeViewModel:_.Pgu})))},"Oi");var Odd=_.$c(function(K){var X=K.data;var F=K.customCommandResolver;K=_.t_();_.vp(K,function(){return X().interaction},F);
_.NF(K,{visibilityCallback:function(P){var H,f=(H=X().interaction)==null?void 0:H.onFirstVisible;P&&f&&_.e9(f)},
showOption:_.OG});return _.Q("ad-grid-card-text-view-model",{class:function(){var P;return((P=X().interaction)==null?0:P.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:K,"aria-label":function(){var P,H;return(P=X().interaction)==null?void 0:(H=P.accessibility)==null?void 0:H.label}},_.Q("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.Q(_.p,{cond:function(){return X().title},
then:function(P){return _.Q(_.Oy,{text:P,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.Q("div",{class:function(){return _.S("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.Q(_.cd,{each:function(){var P;
return((P=X())==null?void 0:P.descriptions)||[]},
keyBy:"INDEX"},function(P){return _.Q(_.Oy,{text:P,className:function(){return _.S("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.Q("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.Q(_.Md,{data:function(){return X().moreInfoButton}},{adButtonViewModel:function(P){return _.Q(_.gJ,{data:P.data,
customCommandResolver:F})}})))},"Pi");var Vw8=_.$c(function(K){var X=K.data;var F=K.customCommandResolver;var P=K.adGridCardCollectionStyle;K=_.t_();_.NF(K,{visibilityCallback:function(H){var f,u=(f=X().interaction)==null?void 0:f.onFirstVisible;H&&u&&_.e9(u)},
showOption:_.OG});return _.Q("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:K,style:function(){return"grid-template-columns: repeat("+UpF(P?P():X().style)+", minmax(0, 1fr));"}},_.Q(_.Md,{data:function(){var H;
return(H=X())==null?void 0:H.gridCards}},{adGridCardImageViewModel:function(H){return _.Q($Wd,{data:H.data,
customCommandResolver:F})},
adGridCardImageFullMetadataViewModel:function(H){return _.Q(tw8,{data:H.data,customCommandResolver:F})},
adGridCardTextViewModel:function(H){return _.Q(Odd,{data:H.data,customCommandResolver:F})}}))},"Qi");_.EP(_.$c(function(K){var X=K.data;K=_.t_();_.vp(K,function(){return X().interaction},hYF);
_.NF(K,{visibilityCallback:function(F){var P,H=(P=X().interaction)==null?void 0:P.onFirstVisible;F&&H&&_.e9(H)},
showOption:_.OG});return _.Q("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:K},_.Q("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.Q(_.p,{cond:_.wtn("(min-width: "+((0,_.TA)()+_.me)+"px)"),then:function(){return _.Q(_.Md,{data:function(){return X().adGridCardCollection}},{adGridCardCollectionViewModel:function(F){return _.Q(Vw8,{data:F.data,
customCommandResolver:hYF})}})},
else:function(){return _.Q(_.Md,{data:function(){return X().adGridCardCollection}},{adGridCardCollectionViewModel:function(F){return _.Q(Vw8,{data:F.data,
customCommandResolver:hYF,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.Q("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.Q(_.Md,{data:function(){return X().adButton}},{adButtonViewModel:function(F){return _.Q(_.gJ,{data:F.data,
customCommandResolver:hYF})}})))},"Ri"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.vU}});_.EP(_.$c(function(K){var X=K.data;K=_.t_();_.vp(K,function(){return X().interaction},mpG);
_.NF(K,{visibilityCallback:function(F){var P,H=(P=X().interaction)==null?void 0:P.onFirstVisible;F&&H&&_.e9(H)},
showOption:_.OG});return _.Q("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:K},_.Q("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.Q(_.Md,{data:function(){if(_.wtn("(min-width: "+((0,_.TA)()+_.me)+"px)")())var F=X().adGridCardCollection;else{F=Object.assign({},_.T(X().adGridCardCollection,oTG));var P;F.gridCards!==void 0&&((P=F.gridCards)==null?void 0:P.length)>1?F.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":F.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";F={adGridCardCollectionViewModel:F}}return F}},{adGridCardCollectionViewModel:function(F){return _.Q(Vw8,{data:F.data,
customCommandResolver:mpG})}})),_.Q("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.Q(_.Md,{data:function(){return X().adButton}},{adButtonViewModel:function(F){return _.Q(_.gJ,{data:F.data,
customCommandResolver:mpG})}})))},"Si"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.vU}});var jb=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return K};
_.r(jb,_.G);_.z=jb.prototype;_.z.configureRendererStamper=function(){return{"data.contentRenderer":{id:"content",mapping:{actionEngagementPanelContentRenderer:"ytd-action-engagement-panel-content-renderer",basicImmersiveEngagementPanelContentRenderer:"ytd-action-basic-immersive-content-renderer",panelTextIconImageTilesButtonLayoutContentViewModel:"panel-text-icon-image-tiles-button-layout-content-view-model",panelTextIconTextGridCardsSubLayoutContentViewModel:"panel-text-icon-text-grid-cards-sub-layout-content-view-model"}}}};
_.z.attached=function(){this.getDataFromPlayerAndRender()};
_.z.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.z.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.z.getDataFromPlayerAndRender=function(){var K=this,X=_.$f(this.hostElement);X&&X.getPlayerPromise().then(function(F){K.getCachedDataAndListen(F)})};
_.z.getCachedDataAndListen=function(K){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(K,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(K,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=K)};
_.z.resolveCachedActions=function(){var K=_.mz("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(K=K&&K())&&!_.T8.isEmpty(K)&&this.sendUpdateEngagementPanelAction(K);(K=(K=_.mz("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&K())&&!_.T8.isEmpty(K)&&this.sendChangeEngagementPanelVisibilityAction(K);(K=(K=_.mz("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&K())&&!_.T8.isEmpty(K)&&this.sendScrollToEngagementPanelCommand(K)};
_.z.sendUpdateEngagementPanelAction=function(K){var X;_.xr(this.hostElement,"yt-update-engagement-panel-action",[(X=_.T8.get(K,"action"))!=null?X:K])};
_.z.sendChangeEngagementPanelVisibilityAction=function(K){_.xr(this.hostElement,"yt-change-engagement-panel-visibility-action",[K])};
_.z.sendScrollToEngagementPanelCommand=function(K){_.xr(this.hostElement,"yt-scroll-to-engagement-panel-command",[K])};
_.z.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.S("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.yy(Error("dm"))};
jb.prototype.dataChanged=jb.prototype.dataChanged;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],jb.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],jb.prototype,"componentBehavior",void 0);_.O([_.W(_.ld.YtPlayerListenerBehavior),_.g("design:type",_.vC)],jb.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],jb.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],jb.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],jb.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],jb.prototype,"player",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],jb.prototype,"dataChanged",null);jb=_.O([_.v({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],jb);
_.t(jb,"ytd-ads-engagement-panel-content-renderer",function(){if(azs!==void 0)return azs;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);
return azs=K},{mode:1});var gDW;var w3=function(){var K=_.G.apply(this,arguments)||this;K.player=null;K.JSC$19994_playerEvents=new Map;K.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return K};
_.r(w3,_.G);_.z=w3.prototype;_.z.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer",commentActionButtonsRenderer:{component:"ytd-comment-action-buttons-renderer",properties:{voteCount:"[[voteCount]]"}}}}}};
_.z.created=function(){this.player=null;this.JSC$19994_playerEvents=new Map;this.JSC$19994_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19994_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19994_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19994_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.z.attached=function(){var K=this,X=_.$f();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));X&&X.getPlayerPromise().then(function(F){K.setPlayer(F);K.set("isPageLoad",!1)})};
_.z.setPlayer=function(K){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19994_playerEvents);this.set("player",K);K&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(K,this.JSC$19994_playerEvents),K.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.z.onLoopRangeChange=function(K){var X=_.i9().resolve(_.Nu(_.ax));if((!X||X.isOnWatch())&&this.hostElement.clientHeight){var F;!K&&((F=this.data)==null?0:F.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.z.onVideoProgress=function(K){var X,F,P=((X=this.player)==null?void 0:(F=X.getPresentingPlayerType)==null?void 0:F.call(X))===2;this.isAdPlaying!==P&&this.set("isAdPlaying",P);var H;if(!P&&(H=this.player)!=null&&H.getLoopRange()){F=this.player.getLoopRange();X=F.startTimeMs;F=F.endTimeMs;P=this.player.getProgressState(1).seekableStart;var f;X<P*1E3&&((f=this.data)==null?0:f.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
K=F<K*1E3;var u;((u=this.player)==null?0:u.getLoopRange())&&K&&this.player.seekTo(X/1E3)}};
_.z.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.z.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.z.onYtDeleteClipEngagementPanelCommand=function(K){_.T(K,Gq8).command&&this.ytComponentBehavior.resolveCommand(_.T(K,Gq8).command)};
_.Oi.Object.defineProperties(w3.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.voteCount)||_.GS("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],w3.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],w3.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],w3.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],w3.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.ld.YtPlayerListenerBehavior),_.g("design:type",_.vC)],w3.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],w3.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],w3.prototype,"isAdPlaying",void 0);_.O([_.h({reflectToAttribute:!0,value:!0}),_.g("design:type",Boolean)],w3.prototype,"isPageLoad",void 0);_.O([_.h({reflectToAttribute:!0,value:!0}),_.g("design:type",Boolean)],w3.prototype,"isDarkTheme",void 0);
_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],w3.prototype,"voteCount",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],w3.prototype,"channelEndpoint",null);_.O([_.U("channelEndpoint"),_.g("design:type",Object),_.g("design:paramtypes",[])],w3.prototype,"channelHref",null);w3=_.O([_.v({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],w3);
_.t(w3,"ytd-clip-attribution-renderer",function(){if(gDW!==void 0)return gDW;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return gDW=K},{mode:1});var EDG;var yo=function(){var K=_.G.apply(this,arguments)||this;K.player=null;K.JSC$19999_playerEvents=new Map;return K};
_.r(yo,_.G);_.z=yo.prototype;_.z.created=function(){this.player=null;this.JSC$19999_playerEvents=new Map;this.JSC$19999_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19999_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19999_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.z.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.z.attached=function(){var K=this,X=_.$f();X&&X.getPlayerPromise().then(function(F){K.setPlayer(F);K.set("isPageLoad",!1)})};
_.z.setPlayer=function(K){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19999_playerEvents);this.set("player",K);if(K){this.ytPlayerListenerBehavior.listenToPlayerEvents(K,this.JSC$19999_playerEvents);var X;(K==null?void 0:(X=K.getPresentingPlayerType)==null?void 0:X.call(K))===2&&this.playerAdStartHandler()}};
_.z.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.z.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.z.onVideoProgress=function(){var K,X,F=((K=this.player)==null?void 0:(X=K.getPresentingPlayerType)==null?void 0:X.call(K))===2;this.isAdPlaying!==F&&this.set("isAdPlaying",F)};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],yo.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],yo.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.ld.YtPlayerListenerBehavior),_.g("design:type",_.vC)],yo.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],yo.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],yo.prototype,"isAdPlaying",void 0);
_.O([_.h({reflectToAttribute:!0,value:!0}),_.g("design:type",Boolean)],yo.prototype,"isPageLoad",void 0);yo=_.O([_.v({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],yo);
_.t(yo,"ytd-clip-section-footer-renderer",function(){if(EDG!==void 0)return EDG;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return EDG=K},{mode:1});var bdG;var CGJ;var W1=function(){return _.G.apply(this,arguments)||this};
_.r(W1,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],W1.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],W1.prototype,"data",void 0);W1=_.O([_.v({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],W1);
_.t(W1,"ytd-clip-ad-state-renderer",function(){if(CGJ!==void 0)return CGJ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return CGJ=K},{mode:1});var Nmt;var d3=function(){var K=_.G.apply(this,arguments)||this;K.value="";K.valid=!1;K.userChangedValue=!1;K.disabled=!1;K.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return K};
_.r(d3,_.G);_.z=d3.prototype;_.z.detached=function(){this.userChangedValue=!1};
_.z.handleKeyDown=function(K){if(_.xA)var X=13;else _.Xll&&_.Ii?X=13:X=13;K.keyCode===X&&K.preventDefault()};
_.z.handleInput=function(){var K=_.C$(this.hostElement).querySelector("#title");if(K){var X=(K.value||"").replace(/\r|\n/g," ");this.set("value",X);K.value=X;this.valid=K.validate();this.userChangedValue=!0}};
_.z.handleBlur=function(){this.valid=_.C$(this.hostElement).querySelector("#title").validate()};
_.z.onValueChanged=function(){_.iX(this.hostElement,"title-changed",{title:this.value})};
_.z.onValidChanged=function(){_.iX(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.z.setInput=function(K,X){var F=_.C$(this.hostElement).querySelector("#title");F&&(F.value=K,this.handleInput(),X&&(F.invalid=!1,this.valid=!0))};
_.z.onClipCreationDisable=function(){this.set("disabled",!0)};
_.z.onClipCreationEnable=function(){this.set("disabled",!1)};
_.z.onClipCreationVisibilityChange=function(K){var X=this;K.visible?requestAnimationFrame(function(){var F;((F=_.C$(X.hostElement).querySelector("#title"))==null?void 0:F.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
d3.prototype.onValidChanged=d3.prototype.onValidChanged;d3.prototype.onValueChanged=d3.prototype.onValueChanged;d3.prototype.handleBlur=d3.prototype.handleBlur;d3.prototype.handleInput=d3.prototype.handleInput;d3.prototype.handleKeyDown=d3.prototype.handleKeyDown;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],d3.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],d3.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],d3.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],d3.prototype,"value",void 0);_.O([_.h(),_.g("design:type",Object)],d3.prototype,"valid",void 0);_.O([_.h(),_.g("design:type",Object)],d3.prototype,"userChangedValue",void 0);_.O([_.h(),_.g("design:type",Object)],d3.prototype,"disabled",void 0);_.O([_.Hc("keydown"),_.g("design:type",Function),_.g("design:paramtypes",[KeyboardEvent]),_.g("design:returntype")],d3.prototype,"handleKeyDown",null);
_.O([_.Hc("input"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],d3.prototype,"handleInput",null);_.O([_.Hc("blur"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],d3.prototype,"handleBlur",null);_.O([_.so("value"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],d3.prototype,"onValueChanged",null);
_.O([_.so("valid"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],d3.prototype,"onValidChanged",null);d3=_.O([_.v({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],d3);
_.t(d3,"ytd-clip-creation-text-input-renderer",function(){if(Nmt!==void 0)return Nmt;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Nmt=K},{mode:1});var idt;var xWo;var IzJ;var k0G;var KuG;var eb=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};K.pendingStoryboardImages_={};K.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];K.tickLabelInterval=30;K.mediumTickInterval=5;K.largeTickInterval=15;K.aboveRulerHeight=32;K.rulerHeight=50;K.smallTickHeight=4;K.mediumTickHeight=8;K.largeTickHeight=16;K.mediaListeners_=
{};return K};
_.r(eb,_.G);_.z=eb.prototype;_.z.attached=function(){var K=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(X){X=_.D(["screen and (min-resolution: "+X+")","screen and (max-resolution: "+X+")"]);for(var F=X.next();!F.done;F=X.next()){F=F.value;var P=window.matchMedia(F);P&&(K.mediaListeners_[F]=K.updatePixelRatio_.bind(K),P.addEventListener?P.addEventListener("change",K.mediaListeners_[F]):P.addListener?P.addListener(K.mediaListeners_[F]):delete K.mediaListeners_[F])}})};
_.z.detached=function(){this.setPlayer(null);for(var K=_.D(Object.keys(this.mediaListeners_)),X=K.next();!X.done;X=K.next()){var F=X.value;X=this.mediaListeners_[F];(F=window.matchMedia(F))&&(F.removeEventListener?F.removeEventListener("change",X):F.removeListener&&F.removeListener(X))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.z.onVisibilityChangedAction_=function(K){var X=this;K.visible&&!this.player_&&(K=_.$f())&&K.getPlayerPromise().then(function(F){X.setPlayer(F)})};
_.z.setPlayer=function(K){K&&this.set("player_",K)};
_.z.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.z.setUpCanvas_=function(){var K=this.rulerWidth,X=this.devicePixelRatio_,F=this.visible;this.set("canvasReady_",!1);if(F&&X!==0){F=this.aboveRulerHeight+this.rulerHeight;var P=_.C$(this.hostElement).querySelector("#ticks");P.width=K*X;P.height=F*X;P.style.width=K+"px";P.style.height=F+"px";P.getContext("2d").scale(X,X);this.set("canvasReady_",!0)}};
_.z.drawRuler_=function(K,X,F,P,H,f,u,J,Z,M,n,c){K&&F&&X&&(K=_.C$(this.hostElement).querySelector("#ticks"),X=K.getContext("2d"),X.clearRect(0,0,K.width,K.height),X.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),X.lineWidth=2,X.beginPath(),X.moveTo(0,this.aboveRulerHeight),X.lineTo(K.width,this.aboveRulerHeight),X.moveTo(0,K.height),X.lineTo(K.width,K.height),X.stroke(),this.drawRulerTicks_(K,f,H,P),this.drawStoryboardImages_(K,F,f,H,P),X.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
X.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(u-f,P,!1),this.rulerHeight),F=this.timeToPixels_(J-f,P,!1),X.fillRect(F,this.aboveRulerHeight,K.width-F,this.rulerHeight),this.drawSpeedLines_(K,f,c))};
_.z.drawRulerTicks_=function(K,X,F,P){var H=K.getContext("2d");H.save();H.lineWidth=1;for(var f=Math.floor(Math.max(0,X-this.tickLabelInterval));f<X+F;f++){H.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var u=(f-X)*P;H.beginPath();H.moveTo(u,K.height);var J=this.smallTickHeight;f%this.largeTickInterval===0?J=this.largeTickHeight:f%this.mediumTickInterval===0&&(J=this.mediumTickHeight);H.lineTo(u,K.height-J);H.stroke();f%this.tickLabelInterval===0&&(H.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),H.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),H.fillText(w7(f),u+4,12),H.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),H.moveTo(u,0),H.lineTo(u,this.aboveRulerHeight),H.stroke())}H.restore()};
_.z.percentToHex_=function(K){K=Math.round(K*255).toString(16);K.length<2&&(K="0"+K);return K};
_.z.drawSpeedLines_=function(K,X,F){var P=K.getContext("2d");P.save();var H=Math.min(25,Math.abs(F)-15)/25,f=K.width*.3*H,u=K.width*-.3,J=K.width*1.3,Z=this.aboveRulerHeight;K=K.height;var M=Math.round(4*H),n=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");n.length<7&&(n="#"+n.substring(1,4).repeat(2));var c=this.percentToHex_(.5+H/2);c=n+c;n+="00";if(H>0)for(H=0;H<M;H++){var B=u+Math.random()*(J-u),L=Z+Math.random()*(K-Z),A=f+X%f,d=P.createLinearGradient(B,L,B+A,L);
F<0?(d.addColorStop(0,c),d.addColorStop(.4,c),d.addColorStop(.9,n)):(d.addColorStop(.1,n),d.addColorStop(.6,c),d.addColorStop(1,c));P.strokeStyle=d;P.lineWidth=1;P.beginPath();P.moveTo(B,L);P.lineTo(B+A,L);P.stroke()}P.restore()};
_.z.getStoryboardForTime_=function(K,X,F){F===void 0&&(F=X.getNumberOfStoryboardLevels()-1);K=X.getStoryboardFrameIndex(K,F);return X.getStoryboardFrame(K,F)};
_.z.drawStoryboardImages_=function(K,X,F,P,H){if(!this.disabled){K=K.getContext("2d");var f=this.getStoryboardForTime_(0,X);if(f){var u=f.width/f.columns;f=f.height/f.rows;var J=u/f,Z=this.rulerHeight*J;Z=this.tickLabelInterval*(J<this.tickLabelInterval*H/this.rulerHeight?1/Math.floor(this.tickLabelInterval*H/Z):Math.round(Z/(this.tickLabelInterval*H)));var M=Z*H,n=this.rulerHeight,c=M/this.rulerHeight,B=Math.floor(Math.max(0,F-Z));for(B-=B%Z;B<F+P;B+=Z){var L=this.getStoryboardForTime_(B,X),A=this.getPreloadedStoryboard_(L.url);
if(A){var d=(B-F)*H,R=this.aboveRulerHeight,l=L.column*u,a=L.row*f;if(J<c){var E=n/(M/J);L=u;E*=f;a+=(f-E)/2}else L=M/(n*J)*u,E=f,l+=(u-L)/2;K.drawImage(A,l,a,L,E,d,R,M,n)}else this.fetchStoryboardImage_(L)}}}};
_.z.getPreloadedStoryboard_=function(K){return this.storyboardImages_.find(function(X){if(X.src==K)return!0;var F=X.src.indexOf(K);return F!=-1&&F==X.src.length-K.length})};
_.z.fetchStoryboardImage_=function(K){var X=this,F=this.getPreloadedStoryboard_(K.url),P=this.pendingStoryboardImages_[K.url];F||P!==void 0||(F=new Promise(function(H){var f=new Image(K.width,K.height);f.src=K.url;f.onload=function(){H(f)};
f.onerror=function(){H(null)}}),this.pendingStoryboardImages_[K.url]=F,F.then(function(H){H&&X.push("storyboardImages_",H);
return H}).finally(function(){delete X.pendingStoryboardImages_[K.url]}))};
_.z.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.z.timeToPixels_=function(K,X,F){K*=X;return F===void 0||F?K+"px":K};
_.z.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
eb.prototype.drawRuler_=eb.prototype.drawRuler_;eb.prototype.setUpCanvas_=eb.prototype.setUpCanvas_;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],eb.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],eb.prototype,"ytRendererBehavior",void 0);_.O([_.h({value:0}),_.g("design:type",Number)],eb.prototype,"start",void 0);_.O([_.h({value:30}),_.g("design:type",Number)],eb.prototype,"end",void 0);
_.O([_.h({value:!1}),_.g("design:type",Boolean)],eb.prototype,"visible",void 0);_.O([_.h(),_.g("design:type",Object)],eb.prototype,"player_",void 0);_.O([_.h(),_.g("design:type",Number)],eb.prototype,"tickSpacing",void 0);_.O([_.h(),_.g("design:type",Number)],eb.prototype,"windowSizeSec",void 0);_.O([_.h({value:0}),_.g("design:type",Number)],eb.prototype,"rulerWidth",void 0);_.O([_.h({value:0}),_.g("design:type",Number)],eb.prototype,"rulerShift",void 0);
_.O([_.h({value:!1}),_.g("design:type",Boolean)],eb.prototype,"canvasReady_",void 0);_.O([_.h({value:function(){return[]}}),
_.g("design:type",Array)],eb.prototype,"storyboardImages_",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],eb.prototype,"disabled",void 0);_.O([_.h({value:0}),_.g("design:type",Number)],eb.prototype,"forceRender_",void 0);_.O([_.h({value:1}),_.g("design:type",Number)],eb.prototype,"devicePixelRatio_",void 0);_.O([_.h({value:0}),_.g("design:type",Number)],eb.prototype,"windowSpeed",void 0);
_.O([_.so("visible","devicePixelRatio_","rulerWidth"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],eb.prototype,"setUpCanvas_",null);
_.O([_.so("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.g("design:type",Function),_.g("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.g("design:returntype")],eb.prototype,"drawRuler_",null);eb=_.O([_.Tb({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],eb);
_.t(eb,"yt-clip-creation-scrubber-canvas",function(){if(KuG===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);KuG=K}K=KuG;return K},
{mode:2});var XK5;var Fu8;var Rh=function(){var K=_.G.apply(this,arguments)||this;K.start=0;K.end=30;K.visible=!1;K.draggingLeft_=!1;K.draggingRight_=!1;K.draggingRuler_=!1;K.draggingWindow_=!1;K.seekableStart=0;K.seekableEnd=0;K.rulerWidth_=0;K.rulerShift_=0;K.windowSlideSpeed=0;K.disabled=!1;K.initialized=!1;K.durationAccessibilityLabel="";K.activeLoopRange_=!1;K.rulerDragMouseStart_=0;K.rulerDragRulerStart_=0;K.rulerDragStartTime_=0;K.rulerDragEndTime_=0;K.dragMouseLastX_=0;K.scrollInterval_=null;K.scrubberVe_=null;K.boundHandlers_=
{};K.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return K};
_.r(Rh,_.G);_.z=Rh.prototype;
_.z.created=function(){var K=this;this.JSC$20012_playerEvents=new Map;this.JSC$20012_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$20012_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$20012_playerEvents.set("onStateChange",this.onStateChange_);var X={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(X).forEach(function(F){K.boundHandlers_[F]=X[F].bind(K)})};
_.z.attached=function(){this.activeLoopRange_=!1;_.C$(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.C$(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.cO(156731)};
_.z.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.C$(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.C$(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.z.onVisibilityChangedAction_=function(K){var X=this;K.visible&&!this.player_&&(K=_.$f())&&K.getPlayerPromise().then(function(F){X.setPlayer(F)})};
_.z.setPlayer=function(K){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20012_playerEvents);K&&(this.set("player_",K),this.ytPlayerListenerBehavior.listenToPlayerEvents(K,this.JSC$20012_playerEvents))};
_.z.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.z.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.z.beginHandleDrag_=function(K){this.disabled||(K.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=K.clientX,K.target===_.C$(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():K.target===_.C$(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.z.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.z.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.z.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.z.beginRulerDrag_=function(K){this.disabled||(K.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=K.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.z.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.z.beginWindowScroll_=function(){var K=this;this.scrollInterval_=setInterval(function(){var X=K.windowSlideSpeed;if(X=_.bPv(K.start,K.boundedRulerStartLimit_())?X-.1:_.bPv(K.end,K.boundedRulerEndLimit_())?X+.1:0){var F=K.capRulerOffset_(K.rulerShift_+X);F==K.rulerShift_?X=0:(K.set("rulerShift_",F),_.iX(K.hostElement,"set-fixed-length-range",{start:K.start+X,duration:K.end-K.start}))}K.set("windowSlideSpeed",X)},33)};
_.z.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.z.endDrag_=function(){this.logClick();var K=void 0;this.draggingRight_?K=this.end-1:this.draggingLeft_&&(K=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,K);this.removeMouseEventHandlers_();this.rulerShift_+this.windowSizeSec_<this.end+this.pixelsToTime_(16)&&this.set("rulerShift_",this.end-this.windowSizeSec_+this.pixelsToTime_(16));
this.rulerShift_>this.start-this.pixelsToTime_(16)&&this.set("rulerShift_",this.start-this.pixelsToTime_(16))};
_.z.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.z.updateRulerSize_=function(){this.set("rulerWidth_",_.C$(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.z.handleMouseDrag_=function(K){K.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(K):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(K):this.draggingWindow_&&this.handleWindowDrag_(K))};
_.z.handleRulerDrag_=function(K){K=this.pixelsToTime_(K.clientX-this.rulerDragMouseStart_);K=this.capRulerOffset_(this.rulerDragRulerStart_-K);this.set("rulerShift_",K);var X=this.rulerDragStartTime_-(this.rulerDragRulerStart_-K);_.iX(this.hostElement,"set-fixed-length-range",{start:X,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-K)-X})};
_.z.handleWindowDrag_=function(K){var X=K.clientX-this.dragMouseLastX_;this.dragMouseLastX_=K.clientX;K=this.pixelsToTime_(X);_.iX(this.hostElement,"set-fixed-length-range",{start:this.start+K,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.z.capRulerOffset_=function(K){var X=this.seekableStart-this.pixelsToTime_(16),F=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(X,K),F)};
_.z.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.z.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.z.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.z.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.z.handleWindowHandleDrag_=function(K){var X=K.clientX-this.dragMouseLastX_;this.dragMouseLastX_=K.clientX;K=this.pixelsToTime_(X);if(this.draggingLeft_){var F=this.start+K;var P=this.end}else this.draggingRight_&&(F=this.start,P=this.end+K);_.iX(this.hostElement,"set-range",{start:F,end:P,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.z.onVideoProgress_=function(K){this.disabled||(K=this.timeToPixels_(K-this.rulerShift_,this.tickSpacing_),_.C$(this.hostElement).querySelector("#playhead").style.transform="translateX("+K+")")};
_.z.onClipCreationDisable_=function(){this.endDrag_()};
_.z.timeToPixels_=function(K,X,F){K*=X;return F===void 0||F?K+"px":K};
_.z.pixelsToTime_=function(K){return K/this.tickSpacing_};
_.z.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.z.centerRuler_=function(K,X,F){this.set("rulerShift_",this.capRulerOffset_(K+(X-K)/2-F/2))};
_.z.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.z.updateLoopRange_=function(K,X,F,P,H,f,u){K&&(X&&P&&!F?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(K.pauseVideo(),K.seekTo(H,!1,void 0,void 0,50)):this.draggingRight_?(K.pauseVideo(),K.seekTo(f-.1,!1,void 0,void 0,50)):(u!==void 0?K.seekTo(u,!0,void 0,void 0,50):(X=K.getCurrentTime(),X<H||X>f?K.seekTo(H,!0,void 0,void 0,50):K.seekTo(X,!0,void 0,void 0,50)),K.playVideo()),K.setLoopRange({startTimeMs:H*1E3,endTimeMs:f*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(K.getCurrentTime())):
this.activeLoopRange_&&(K.setLoopRange(null),this.activeLoopRange_=!1))};
_.z.updateHandles_=function(){_.C$(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.C$(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.z.updateRuler_=function(){var K=this.end,X=this.start,F=this.draggableStartLimit_(),P=this.draggableEndLimit_();(X<F-.001||K>P+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.z.computeDurationLabel_=function(K,X){return K?K.replace("$clip_length",parseFloat(X).toFixed(1)):""};
_.z.computeDuration_=function(K,X){return this.isValidTime_(K)&&this.isValidTime_(X)&&K<X?X-K:0};
_.z.isValidTime_=function(K){return isNaN(parseFloat(K))||K<0?!1:this.player_?K>=this.seekableStart&&K<=this.seekableEnd:!0};
_.z.computeWindowSizeSec_=function(K,X,F){return Math.min((K||12E4)/1E3,F-X)};
_.z.computeTickSpacing_=function(K,X){return X?X/K:1};
_.z.onDragStateChanged_=function(){_.iX(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.z.centerRangeOnTime_=function(K){var X=this.duration;K=ltJ(K-X/2,X,this.seekableStart,this.seekableEnd);_.iX(this.hostElement,"set-fixed-length-range",{start:K.start,duration:K.end-K.start})};
_.z.nearlyLessThan_=function(K,X,F){return K+(F===void 0?1E-6:F)<X};
_.z.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var K=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(K,this.start)||this.nearlyLessThan_(this.end,K))&&this.centerRangeOnTime_(K)}};
_.z.onStateChange_=function(K){this.visible&&!this.disabled&&K==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.z.computeDragState_=function(K,X,F,P){return K?"left":X?"right":F?"ruler":P?"window":"none"};
_.z.logClick=function(){var K=_.AD(),X=_.r_();K&&X&&this.scrubberVe_&&(_.S("combine_ve_grafts")?_.k2(_.uH(),this.scrubberVe_,X):_.Us(K,X,this.scrubberVe_),_.vW(K,this.scrubberVe_))};
Rh.prototype.onDragStateChanged_=Rh.prototype.onDragStateChanged_;Rh.prototype.updateRuler_=Rh.prototype.updateRuler_;Rh.prototype.updateHandles_=Rh.prototype.updateHandles_;Rh.prototype.onUpdateLoopRange=Rh.prototype.onUpdateLoopRange;Rh.prototype.onInitializedChanged_=Rh.prototype.onInitializedChanged_;Rh.prototype.onVisibleChanged_=Rh.prototype.onVisibleChanged_;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Rh.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.W(_.ld.YtPlayerListenerBehavior),_.g("design:type",Object)],Rh.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Rh.prototype,"start",void 0);_.O([_.h(),_.g("design:type",Object)],Rh.prototype,"end",void 0);_.O([_.h({computed:"computeDuration_(start, end)"}),_.g("design:type",Number)],Rh.prototype,"duration",void 0);
_.O([_.h(),_.g("design:type",String)],Rh.prototype,"lengthTemplate",void 0);_.O([_.h({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.g("design:type",String)],Rh.prototype,"durationLabel",void 0);_.O([_.h(),_.g("design:type",Object)],Rh.prototype,"visible",void 0);_.O([_.h(),_.g("design:type",Object)],Rh.prototype,"player_",void 0);_.O([_.h(),_.g("design:type",Object)],Rh.prototype,"draggingLeft_",void 0);_.O([_.h(),_.g("design:type",Object)],Rh.prototype,"draggingRight_",void 0);
_.O([_.h(),_.g("design:type",Object)],Rh.prototype,"draggingRuler_",void 0);_.O([_.h({value:!1}),_.g("design:type",Object)],Rh.prototype,"draggingWindow_",void 0);_.O([_.h({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.g("design:type",Number)],Rh.prototype,"tickSpacing_",void 0);_.O([_.h(),_.g("design:type",Object)],Rh.prototype,"seekableStart",void 0);_.O([_.h(),_.g("design:type",Object)],Rh.prototype,"seekableEnd",void 0);
_.O([_.h(),_.g("design:type",Number)],Rh.prototype,"windowSizeMs",void 0);_.O([_.h({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.g("design:type",Number)],Rh.prototype,"windowSizeSec_",void 0);_.O([_.h(),_.g("design:type",Object)],Rh.prototype,"rulerWidth_",void 0);_.O([_.h(),_.g("design:type",Object)],Rh.prototype,"rulerShift_",void 0);_.O([_.h(),_.g("design:type",Object)],Rh.prototype,"windowSlideSpeed",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Rh.prototype,"disabled",void 0);_.O([_.h(),_.g("design:type",Object)],Rh.prototype,"initialized",void 0);_.O([_.h(),_.g("design:type",Object)],Rh.prototype,"durationAccessibilityLabel",void 0);_.O([_.h({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.g("design:type",String)],Rh.prototype,"dragState",void 0);
_.O([_.so("visible"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Rh.prototype,"onVisibleChanged_",null);_.O([_.so("initialized"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Rh.prototype,"onInitializedChanged_",null);_.O([_.so("player_","visible","disabled","initialized","start","end"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Rh.prototype,"onUpdateLoopRange",null);
_.O([_.so("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Rh.prototype,"updateHandles_",null);_.O([_.so("start","end"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Rh.prototype,"updateRuler_",null);
_.O([_.so("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Rh.prototype,"onDragStateChanged_",null);Rh=_.O([_.Tb({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],Rh);
_.t(Rh,"yt-clip-creation-scrubber-view",function(){if(Fu8===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;XK5===void 0&&(XK5=document.createElement("template"));var P=XK5;F.call(X,P.content.cloneNode(!0),K.content.firstChild);Fu8=K}K=Fu8;return K},{mode:2});var Uu=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};K.startHighlightTimeout=0;K.endHighlightTimeout=0;return K};
_.r(Uu,_.G);_.z=Uu.prototype;_.z.attached=function(){var K=this;this.startInput.addEventListener("input",function(X){return K.handleStartInput_(X)});
this.endInput.addEventListener("input",function(X){return K.handleEndInput_(X)});
this.startInput.addEventListener("focusout",function(X){return K.handleStartBlur_(X)});
this.endInput.addEventListener("focusout",function(X){return K.handleEndBlur_(X)})};
_.z.setPlayer=function(K){this.set("player_",K)};
_.z.onSetFixedLengthRange_=function(K){var X=K.detail;K=X.start;var F=X.duration,P=X.startLimit;X=X.endLimit;P||(P=this.seekableStart_);X||(X=this.seekableEnd_);K=ltJ(K,F,P,X);this.start=K.start;this.end=K.end};
_.z.onSetRange_=function(K){var X=K.detail;K=X.start;var F=X.end,P=X.startLimit;X=X.endLimit;P||(P=this.seekableStart_);X||(X=this.seekableEnd_);if(K=vKJ(K,F,P,X,this.minLengthSec,this.maxLengthSec))this.start=K.start,this.end=K.end};
_.z.updateInputs_=function(){var K=this.end,X=this.start;this.startInput.focused||(this.startInput.value=w7(X,!0));this.endInput.focused||(this.endInput.value=w7(K,!0))};
_.z.handleStartInput_=function(K){K=GFs(K.target.value);if(K===null)this.set("startValid",!1);else{var X=this.end,F=vKJ(K,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);F?(this.set("endWillUpdate",F.end!==X),this.set("startValid",F.start===K)):this.set("startValid",!1)}};
_.z.handleEndInput_=function(K){K=GFs(K.target.value);if(K===null)this.set("endValid",!1);else{var X=this.start,F=att(this.start,K,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);F?(this.set("startWillUpdate",F.start!==X),this.set("endValid",F.end===K)):this.set("endValid",!1)}};
_.z.handleStartBlur_=function(K){K=GFs(K.target.value);K===null?this.startInput.value=w7(this.start,!0):this.forceUpdateInputs_(vKJ(K,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.z.handleEndBlur_=function(K){K=GFs(K.target.value);K===null?this.endInput.value=w7(this.end,!0):this.forceUpdateInputs_(att(this.start,K,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.z.forceUpdateInputs_=function(K){K&&(this.start=K.start,this.end=K.end);this.startInput.value=w7(this.start,!0);this.endInput.value=w7(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.z.initializeClipRange_=function(){var K=this.seekableEnd_,X=this.seekableStart_,F=this.visible_,P=this.player_;if(!P||!F||X===null||!K)this.set("initialized",!1);else if(!this.initialized){var H=P.getCurrentTime(),f=this.getDefaultLengthSec_();F=P.getVideoData();var u=P.getPlayerState()==1,J=F.isLive;f=Math.min(f,K-X);H=Math.max(0,H);K=J?att(H-f,H,X,K,this.minLengthSec,this.maxLengthSec):u?ltJ(H-f/2,f,X,K):ltJ(H,f,X,K);this.start=K.start;this.end=K.end;this.set("initialized",!0);F.isLive&&P.seekTo(K.start);
this.startInput.value=w7(this.start,!0);this.endInput.value=w7(this.end,!0)}};
_.z.onStartChanged_=function(){var K=this;_.iX(this.hostElement,"start-changed",{start:this.start});var X;isNaN((X=this.oldStart)!=null?X:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){K.set("highlightStart",!1);K.startHighlightTimeout=0;K.oldStart=K.start},3E3))};
_.z.onEndChanged_=function(){var K=this;_.iX(this.hostElement,"end-changed",{end:this.end});var X;isNaN((X=this.oldEnd)!=null?X:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){K.set("highlightEnd",!1);K.endHighlightTimeout=0;K.oldEnd=K.end},3E3))};
_.z.onVisibilityChangedAction_=function(K){var X=this;this.set("visible_",K.visible);this.visible_&&!this.player_&&(K=_.$f())&&K.getPlayerPromise().then(function(F){X.setPlayer(F)})};
_.z.computeMinLengthSec_=function(K){return K/1E3||5};
_.z.computeMaxLengthSec_=function(K){return K/1E3||60};
_.z.computeDefaultLengthSec_=function(K){return K/1E3};
_.z.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.z.computeSeekableStart_=function(K,X){return K&&X?K.getProgressState(1).seekableStart:0};
_.z.computeSeekableEnd_=function(K,X){return K&&X?K.getProgressState(1).seekableEnd:0};
_.z.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.z.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.z.onDragState_=function(K){this.set("highlightStart",K.detail.startChanging);this.set("highlightEnd",K.detail.endChanging)};
Uu.prototype.onDragState_=Uu.prototype.onDragState_;Uu.prototype.onEndChanged_=Uu.prototype.onEndChanged_;Uu.prototype.onStartChanged_=Uu.prototype.onStartChanged_;Uu.prototype.initializeClipRange_=Uu.prototype.initializeClipRange_;Uu.prototype.updateInputs_=Uu.prototype.updateInputs_;Uu.prototype.onSetRange_=Uu.prototype.onSetRange_;Uu.prototype.onSetFixedLengthRange_=Uu.prototype.onSetFixedLengthRange_;
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Uu.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Uu.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Uu.prototype,"data",void 0);_.O([_.h({value:0}),_.g("design:type",Number)],Uu.prototype,"start",void 0);_.O([_.h({value:!0}),_.g("design:type",Boolean)],Uu.prototype,"startValid",void 0);
_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],Uu.prototype,"startWillUpdate",void 0);_.O([_.h({value:30}),_.g("design:type",Number)],Uu.prototype,"end",void 0);_.O([_.h({value:!0}),_.g("design:type",Boolean)],Uu.prototype,"endValid",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],Uu.prototype,"endWillUpdate",void 0);_.O([_.h({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.g("design:type",Number)],Uu.prototype,"minLengthSec",void 0);
_.O([_.h({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.g("design:type",Number)],Uu.prototype,"maxLengthSec",void 0);_.O([_.h({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.g("design:type",Number)],Uu.prototype,"defaultLengthSec",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],Uu.prototype,"visible_",void 0);_.O([_.h(),_.g("design:type",Object)],Uu.prototype,"player_",void 0);
_.O([_.h({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.g("design:type",Number)],Uu.prototype,"seekableStart_",void 0);_.O([_.h({computed:"computeSeekableEnd_(player_, visible_)"}),_.g("design:type",Number)],Uu.prototype,"seekableEnd_",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],Uu.prototype,"initialized",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],Uu.prototype,"disabled",void 0);
_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],Uu.prototype,"highlightStart",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],Uu.prototype,"highlightEnd",void 0);_.O([_.fa("#start"),_.g("design:type",HTMLInputElement)],Uu.prototype,"startInput",void 0);_.O([_.fa("#end"),_.g("design:type",HTMLInputElement)],Uu.prototype,"endInput",void 0);
_.O([_.Hc("set-fixed-length-range"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Uu.prototype,"onSetFixedLengthRange_",null);_.O([_.Hc("set-range"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Uu.prototype,"onSetRange_",null);_.O([_.so("start","end"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Uu.prototype,"updateInputs_",null);
_.O([_.so("player_","visible_","seekableStart_","seekableEnd_"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Uu.prototype,"initializeClipRange_",null);_.O([_.so("start"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Uu.prototype,"onStartChanged_",null);_.O([_.so("end"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Uu.prototype,"onEndChanged_",null);
_.O([_.Hc("clips-drag-state"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Uu.prototype,"onDragState_",null);Uu=_.O([_.Tb({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],Uu);
_.t(Uu,"yt-clip-creation-scrubber-renderer",function(){if(k0G===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;IzJ===void 0&&(IzJ=document.createElement("template"));var P=IzJ;F.call(X,P.content.cloneNode(!0),K.content.firstChild);k0G=K}K=k0G;return K},{mode:2});var hQ=function(){var K=_.G.apply(this,arguments)||this;K.player_=null;K.JSC$20026_playerEvents=new Map;K.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return K};
_.r(hQ,_.G);_.z=hQ.prototype;_.z.configureRendererStamper=function(){return{submitButton_:{id:"share",mapping:{buttonRenderer:"yt-button-renderer"}},cancelButton_:{id:"cancel",mapping:{buttonRenderer:"yt-button-renderer"}},"data.titleInput":{id:"title-input",mapping:{clipCreationTextInputRenderer:"ytd-clip-creation-text-input-renderer"}},"data.scrubber":{id:"scrubber",mapping:{clipCreationScrubberRenderer:"yt-clip-creation-scrubber-renderer"}},"data.adStateOverlay":{id:"ad-state",mapping:{clipAdStateRenderer:"ytd-clip-ad-state-renderer"}}}};
_.z.created=function(){this.JSC$20026_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20026_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20026_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20026_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.z.detached=function(){this.setPlayer(null)};
_.z.onVisibilityChangedAction_=function(K){var X=this,F;if((F=this.data)==null?0:F.externalVideoId){var P;this.videoId=(P=this.data)==null?void 0:P.externalVideoId}this.getPlayer().then(function(H){if(K.visible)X.returnTime=H.getCurrentTime(),X.isAtLiveHead=H.getProgressState().isAtLiveHead;else{var f=X.returnTime;X.isAtLiveHead&&(f=Number.POSITIVE_INFINITY);H.seekTo(f,void 0,void 0,void 0,51)}})};
_.z.getPlayer=function(){var K=this;if(!this.player_){var X=_.$f();if(X)return X.getPlayerPromise().then(function(F){K.setPlayer(F);return F})}return Promise.resolve(this.player_)};
_.z.setPlayer=function(K){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20026_playerEvents);if(K){this.player_=K;var X;((X=this.data)==null?0:X.externalVideoId)||this.set("videoId",K.getVideoData().video_id||"");var F;(K==null?void 0:(F=K.getPresentingPlayerType)==null?void 0:F.call(K))===2&&(this.set("isAdPlaying",!0),_.xr(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(K,this.JSC$20026_playerEvents)}};
_.z.ready=function(){_.C$(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.z.onTitleChanged_=function(K){this.set("titleValue",K.detail.title)};
_.z.onStartChanged_=function(K){this.set("start",K.detail.start)};
_.z.onEndChanged_=function(K){this.set("end",K.detail.end)};
_.z.onTitleValidChanged_=function(K){this.set("titleValid",K.detail.valid)};
_.z.onStartValidChanged_=function(K){this.set("startValid",K.detail.valid)};
_.z.onEndValidChanged_=function(K){this.set("endValid",K.detail.valid)};
_.z.onVideoDataChange_=function(){var K;if((K=this.data)==null||!K.externalVideoId){var X;this.set("videoId",((X=this.player_)==null?void 0:X.getVideoData().video_id)||"")}};
_.z.computeFormValid_=function(K,X,F,P){return!!(K&&X&&F&&P)};
_.z.computeCancelButton_=function(K,X,F){return K&&_.T(K,_.jg)?{buttonRenderer:Object.assign({},_.T(K,_.jg),{isDisabled:X||F})}:null};
_.z.computeSubmitButton_=function(K,X,F){return K&&_.T(K,_.jg)?{buttonRenderer:Object.assign({},_.T(K,_.jg),{command:void 0,isDisabled:!this.formValid||X||F})}:null};
_.z.computeSubmitCommand_=function(K){return K||null};
_.z.onSubmit_=function(K){var X=this;K.stopPropagation();K.preventDefault();this.submitCommand_&&(K={},K.comment_text=this.titleValue,K.clip_external_video_id=this.videoId,K.clip_offset_ms=parseInt(this.start*1E3,10),K.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.Kl(this.hostElement,[this.submitCommand_,K]).then(function(){X.set("isLoading_",!1)},function(){X.set("isLoading_",!1)}))};
_.z.playerAdStartHandler_=function(){_.xr(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.z.playerAdEndHandler_=function(){_.xr(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.z.onVideoProgress_=function(){var K=this;this.getPlayer().then(function(X){var F,P=(X==null?void 0:(F=X.getPresentingPlayerType)==null?void 0:F.call(X))===2;K.isAdPlaying!==P&&(P?K.playerAdStartHandler_():K.playerAdEndHandler_())})};
hQ.prototype.onEndValidChanged_=hQ.prototype.onEndValidChanged_;hQ.prototype.onStartValidChanged_=hQ.prototype.onStartValidChanged_;hQ.prototype.onTitleValidChanged_=hQ.prototype.onTitleValidChanged_;hQ.prototype.onEndChanged_=hQ.prototype.onEndChanged_;hQ.prototype.onStartChanged_=hQ.prototype.onStartChanged_;hQ.prototype.onTitleChanged_=hQ.prototype.onTitleChanged_;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],hQ.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.W(_.ld.YtPlayerListenerBehavior),_.g("design:type",Object)],hQ.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],hQ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],hQ.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],hQ.prototype,"data",void 0);_.O([_.h({value:""}),_.g("design:type",String)],hQ.prototype,"titleValue",void 0);
_.O([_.h({value:!1}),_.g("design:type",Boolean)],hQ.prototype,"titleValid",void 0);_.O([_.h({value:0}),_.g("design:type",Number)],hQ.prototype,"start",void 0);_.O([_.h({value:!0}),_.g("design:type",Boolean)],hQ.prototype,"startValid",void 0);_.O([_.h({value:0}),_.g("design:type",Number)],hQ.prototype,"end",void 0);_.O([_.h({value:!0}),_.g("design:type",Boolean)],hQ.prototype,"endValid",void 0);_.O([_.h({value:""}),_.g("design:type",String)],hQ.prototype,"videoId",void 0);
_.O([_.h({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.g("design:type",Boolean)],hQ.prototype,"formValid",void 0);_.O([_.h({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.g("design:type",Object)],hQ.prototype,"submitButton_",void 0);_.O([_.h({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.g("design:type",Object)],hQ.prototype,"submitCommand_",void 0);
_.O([_.h({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.g("design:type",Object)],hQ.prototype,"cancelButton_",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],hQ.prototype,"isLoading_",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],hQ.prototype,"isAdPlaying",void 0);_.O([_.h({value:0}),_.g("design:type",Number)],hQ.prototype,"returnTime",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],hQ.prototype,"isAtLiveHead",void 0);
_.O([_.Hc("title-changed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],hQ.prototype,"onTitleChanged_",null);_.O([_.Hc("start-changed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],hQ.prototype,"onStartChanged_",null);_.O([_.Hc("end-changed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],hQ.prototype,"onEndChanged_",null);
_.O([_.Hc("title-valid-changed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],hQ.prototype,"onTitleValidChanged_",null);_.O([_.Hc("start-valid-changed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],hQ.prototype,"onStartValidChanged_",null);_.O([_.Hc("end-valid-changed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],hQ.prototype,"onEndValidChanged_",null);
hQ=_.O([_.Tb({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],hQ);
_.t(hQ,"yt-clip-creation-renderer",function(){if(xWo===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;idt===void 0&&(idt=document.createElement("template"));var P=idt;F.call(X,P.content.cloneNode(!0),K.content.firstChild);xWo=K}K=xWo;return K},{mode:2});var mG=function(){return _.G.apply(this,arguments)||this};
_.r(mG,_.G);mG.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"}}}};
mG.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(K){return K.hasOwnProperty("clipCreationRenderer")})&&_.xr(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
mG.prototype.onPanelContentVisibleChanged=mG.prototype.onPanelContentVisibleChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],mG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],mG.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.Ux.YtVisibilityBehavior),_.g("design:type",Object)],mG.prototype,"ytVisibilityBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],mG.prototype,"ytdReduxBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],mG.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],mG.prototype,"panelContentVisible",void 0);_.O([_.so("panelContentVisible"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],mG.prototype,"onPanelContentVisibleChanged",null);mG=_.O([_.v({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],mG);
_.t(mG,"ytd-clip-section-renderer",function(){if(bdG!==void 0)return bdG;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return bdG=K},{mode:1});var Pnd;var G$=function(){return _.G.apply(this,arguments)||this};
_.r(G$,_.G);_.z=G$.prototype;
_.z.onKeyDown=function(K){if(this.snippetElements.length!==0&&(K=K.keyCode,K===38||K===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);K===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.rH(this.highlightedIndex,-1,this.snippetElements.length);K=this.snippetElements.length;var X=this.highlightedIndex%K;this.highlightedIndex=X*K<0?X+K:X;K=this.snippetElements[this.highlightedIndex];this.highlightSnippet(K);this.ensureVisible(K)}};
_.z.onKeyUp=function(K){var X=this;pt5(K)&&(K.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.A9.cancelJob(this.inputTimerId),this.inputTimerId=_.A9.addLowPriorityJob(function(){X.typedValue&&(X.fetchSnippets(X.typedValue),X.logInputGesture(X.data))},1E3))};
_.z.onClick=function(K){(K=_.GnZ(K.target,null,"snippet-item"))&&this.selectSnippet(K)};
_.z.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.z.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.z.ready=function(){var K=this;this.inputElement.addEventListener("focus",function(){K.snippetsWrapper.style.removeProperty("display")})};
_.z.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.z.getSourceTimelines=function(){if(!this.data)return[];var K=[];if(this.data.searchInVideoSources)for(var X=_.D(this.data.searchInVideoSources),F=X.next();!F.done;F=X.next())F=F.value,F==="SEARCH_IN_VIDEO_SOURCE_ASR"?K.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):F==="SEARCH_IN_VIDEO_SOURCE_OCR"&&K.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return K};
_.z.fetchSnippets=function(K){var X=_.xr(this.hostElement,"yt-get-current-video-id-action")[0],F=this.getSourceTimelines();K={getSearchInVideoCommand:{externalVideoId:X,query:K!=null?K:"",sourceTimelines:F},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.i9().resolve(_.xU).resolveCommand(K,{form:{element:this.hostElement}})};
_.z.filterSnippets=function(K,X){var F=this;if(X){this.filteredSnippets=(0,_.T8.unsafeClone)(K);var P=RegExp(_.OM9(X),"i");this.filteredSnippets=this.filteredSnippets.filter(function(u){return P.test(F.ytRendererBehavior.getSimpleString(u.snippet))});
K=_.D(this.filteredSnippets);for(var H=K.next();!H.done;H=K.next()){H=H.value;var f=this.ytRendererBehavior.getSimpleString(H.snippet);H.snippet={runs:[{text:f.substring(0,f.toLowerCase().indexOf(X))},{text:f.substring(f.toLowerCase().indexOf(X),f.toLowerCase().indexOf(X)+X.length),bold:!0},{text:f.substring(f.toLowerCase().indexOf(X)+X.length,f.length)}]}}}else this.filteredSnippets=K};
_.z.onUpdateSearchInVideoResults=function(K){if(!(this.snippets.length>0)){var X,F,P;if((P=(X=_.T(K,d7W))==null?void 0:(F=X.results)==null?void 0:F.length)!=null&&P){var H;this.filteredSnippets=this.snippets=((H=_.T(K,d7W))==null?void 0:H.results).map(function(f){var u,J,Z;return{startMs:f==null?void 0:(u=f.searchInVideoResultRenderer)==null?void 0:u.startMs,startTimeText:f==null?void 0:(J=f.searchInVideoResultRenderer)==null?void 0:J.startTimeText,snippet:f==null?void 0:(Z=f.searchInVideoResultRenderer)==
null?void 0:Z.snippet}})}}};
_.z.updateSnippetElements=function(){this.snippetElements=Array.from(this.snippetsWrapper.getElementsByClassName("snippet-item"));this.highlightedIndex>=0&&this.highlightedIndex<this.snippetElements.length&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);this.highlightedIndex=-1;this.snippetsWrapper.scrollTop=0};
_.z.highlightSnippet=function(K){K.classList.add("highlighted")};
_.z.removeSnippetHighlight=function(K){K.classList.remove("highlighted")};
_.z.selectSnippet=function(K){this.typedValue=String(K.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(K);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.z.ensureVisible=function(K){var X=this.snippetsWrapper.scrollTop,F=X+this.snippetsWrapper.clientHeight,P=K.offsetTop-this.snippetsWrapper.offsetTop;K=P+K.clientHeight;P<X?this.snippetsWrapper.scrollTop-=X-P:K>F&&(this.snippetsWrapper.scrollTop+=K-F)};
_.z.seekPlayer=function(K){var X,F;return _.q(function(P){if(P.nextAddress==1){if(!K)return P.jumpTo(0);X=Number(K.dataset.startOffset);return _.Y(P,_.Oe().getPlayerPromise(),3)}F=P.yieldResult;F.seekTo(X/1E3,!0);F.wakeUpControls();_.JT(P)})};
_.z.logInputGesture=function(K){var X=_.AD();X&&(K==null?0:K.trackingParams)&&_.a7(X,_.QB(K.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.z.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R9("typed-value-changed",this.typedValue))};
_.z.updateTypedValueFromBinding=function(K){this.typedValue=K.currentTarget.value};
G$.prototype.typedValueChangedForBinding=G$.prototype.typedValueChangedForBinding;G$.prototype.dataChanged=G$.prototype.dataChanged;G$.prototype.panelContentVisibleChanged=G$.prototype.panelContentVisibleChanged;G$.prototype.onClick=G$.prototype.onClick;G$.prototype.onKeyUp=G$.prototype.onKeyUp;G$.prototype.onKeyDown=G$.prototype.onKeyDown;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],G$.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],G$.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],G$.prototype,"data",void 0);_.O([_.h({value:[]}),_.g("design:type",Array)],G$.prototype,"snippets",void 0);_.O([_.h({value:[]}),_.g("design:type",Array)],G$.prototype,"filteredSnippets",void 0);_.O([_.h({value:[]}),_.g("design:type",Array)],G$.prototype,"snippetElements",void 0);
_.O([_.fa("#siv-input"),_.g("design:type",HTMLElement)],G$.prototype,"inputElement",void 0);_.O([_.fa("#siv-snippets-wrapper"),_.g("design:type",HTMLElement)],G$.prototype,"snippetsWrapper",void 0);_.O([_.h(),_.g("design:type",String)],G$.prototype,"typedValue",void 0);_.O([_.h({value:-1}),_.g("design:type",Number)],G$.prototype,"highlightedIndex",void 0);_.O([_.Hc("keydown"),_.g("design:type",Function),_.g("design:paramtypes",[_.sQ]),_.g("design:returntype")],G$.prototype,"onKeyDown",null);
_.O([_.Hc("keyup"),_.g("design:type",Function),_.g("design:paramtypes",[_.sQ]),_.g("design:returntype")],G$.prototype,"onKeyUp",null);_.O([_.Hc("click"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],G$.prototype,"onClick",null);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],G$.prototype,"panelContentVisible",void 0);
_.O([_.so("panelContentVisible"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],G$.prototype,"panelContentVisibleChanged",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],G$.prototype,"dataChanged",null);_.O([_.so("typedValue"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],G$.prototype,"typedValueChangedForBinding",null);
G$=_.O([_.v({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],G$);
_.t(G$,"ytd-search-in-video-renderer",function(){if(Pnd!==void 0)return Pnd;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Pnd=K},{mode:1});var H6t;var l2=function(){return _.G.apply(this,arguments)||this};
_.r(l2,_.G);l2.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
l2.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]]"}}}}}};
l2.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var K,X,F,P,H=(X=_.T((K=this.data)==null?void 0:K.onClickCommand,_.Z6))==null?void 0:(F=X.item)==null?void 0:(P=F.notificationTextRenderer)==null?void 0:P.successResponseText;H&&_.CAn(this.hostElement,H)}};
_.Oi.Object.defineProperties(l2.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var K,X,F,P;return this.isProductPlaceholder&&((K=this.data)==null?void 0:(X=K.hiddenProductOptions)==null?void 0:X.showDropCountdown)&&!!((F=this.data)==null?0:(P=F.hiddenProductOptions)==null?0:P.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var K;return!this.isProductPlaceholder&&!((K=this.data)==null?0:K.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var K,X;return!((K=this.data)==null?0:K.priceReplacementText)&&!((X=this.data)==null||!X.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],l2.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],l2.prototype,"componentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],l2.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],l2.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.U("isProductPlaceholder"),_.g("design:type",Object),_.g("design:paramtypes",[])],l2.prototype,"useCenterLayoutContainer",null);_.O([_.h({computed:"computeButtonOverride(data)"}),_.g("design:type",Object)],l2.prototype,"buttonOverride",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],l2.prototype,"isProductPlaceholder",null);
_.O([_.U("isProductPlaceholder"),_.g("design:type",Object),_.g("design:paramtypes",[])],l2.prototype,"showDropCountdown",null);_.O([_.U("isProductPlaceholder","data"),_.g("design:type",Object),_.g("design:paramtypes",[])],l2.prototype,"showBrandName",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],l2.prototype,"showPriceReplacementText",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],l2.prototype,"showPrice",null);
_.O([_.U("isProductPlaceholder"),_.g("design:type",Object),_.g("design:paramtypes",[])],l2.prototype,"showMetadata",null);l2=_.O([_.v({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],l2);
_.t(l2,"ytd-product-list-item-renderer",function(){if(H6t!==void 0)return H6t;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return H6t=K},{mode:1});var soJ;var v1=function(){return _.G.apply(this,arguments)||this};
_.r(v1,_.G);v1.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
v1.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
v1.prototype.panelContentVisibleChanged=function(){var K=this,X;return _.q(function(F){if(F.nextAddress==1)return K.playerApi?F.jumpTo(2):_.Y(F,_.Oe().getPlayerPromise(),3);F.nextAddress!=2&&(K.playerApi=F.yieldResult);(X=K.playerApi)==null||X.productsInVideoVisibilityUpdated(!!K.panelContentVisible);_.JT(F)})};
v1.prototype.panelContentVisibleChanged=v1.prototype.panelContentVisibleChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],v1.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],v1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],v1.prototype,"panelContentVisible",void 0);_.O([_.h(),_.g("design:type",Object)],v1.prototype,"data",void 0);
_.O([_.so("panelContentVisible"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype",Promise)],v1.prototype,"panelContentVisibleChanged",null);v1=_.O([_.v({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],v1);
_.t(v1,"ytd-product-list-renderer",function(){if(soJ!==void 0)return soJ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return soJ=K},{mode:1});var zxv;var ah=function(){var K=_.G.apply(this,arguments)||this;K.hideTimestamps=!!_.KE("hide-transcript-timestamps");K.currentCueIndex=-1;K.flatCues=[];K.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};K.TEST_ONLY={getFlatCues:function(){return K.flatCues}};
return K};
_.r(ah,_.G);_.z=ah.prototype;_.z.hideTimestampsChanged=function(){_.kl("hide-transcript-timestamps",this.hideTimestamps)};
_.z.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.z.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.z.dataChanged=function(){var K;if((K=this.data)!=null&&K.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;K=_.D(this.data.cueGroups);for(var X=K.next();!X.done;X=K.next()){X=_.D(_.T(X.value,eJ8).cues);for(var F=X.next();!F.done;F=X.next())this.flatCues.push(Number(_.T(F.value,RJs).startOffsetMs))}}};
_.z.onYtPlayerTimeChanged=function(K){if(!(K<0)){for(var X=this.currentCueIndex,F=X;;){var P=F>=0?this.flatCues[F]/1E3:-1;if(K+.5<P)--F;else if(P=F+1<this.flatCues.length?this.flatCues[F+1]/1E3:Infinity,K+.5>P)F+=1;else break}F!==X&&(X>=0&&((K=this.getCueElement(X))&&K.classList.remove("active"),(X=this.getCueGroupElement(X))&&X.classList.remove("active")),(X=this.getCueElement(F))&&X.classList.add("active"),(X=this.getCueGroupElement(F))&&X.classList.add("active"),this.currentCueIndex=F,this.isHovered||
this.scrollElementToTop(F))}};
_.z.scrollElementToTop=function(K){K=this.getCueElement(K>=3?K-3:0);this.hostElement.scrollTop=Math.min(K.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.z.getCueElement=function(K){return _.C$(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[K]+'"]')};
_.z.getCueGroupElement=function(K){return(K=this.getCueElement(K))&&K.parentElement?K.parentElement.parentElement:null};
_.z.onTap=function(K){var X=_.vI(K);K.target.classList.contains("cue")&&this.seekCueElement(X)};
_.z.onKeyPress=function(K){K.keyCode==13&&(K=_.GnZ(K.target,null,"cue"))&&this.seekCueElement(K)};
_.z.seekCueElement=function(K){K=Number(K.getAttribute("start-offset"));_.xr(this.hostElement,"yt-transcript-player-seek",[K/1E3])};
_.z.onMouseEnter=function(){this.isHovered=!0};
_.z.onMouseLeave=function(){this.isHovered=!1};
ah.prototype.onMouseLeave=ah.prototype.onMouseLeave;ah.prototype.onMouseEnter=ah.prototype.onMouseEnter;ah.prototype.onKeyPress=ah.prototype.onKeyPress;ah.prototype.onTap=ah.prototype.onTap;ah.prototype.dataChanged=ah.prototype.dataChanged;ah.prototype.hideTimestampsChanged=ah.prototype.hideTimestampsChanged;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],ah.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ah.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],ah.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],ah.prototype,"hideTimestamps",void 0);_.O([_.h(),_.g("design:type",Boolean)],ah.prototype,"isHovered",void 0);_.O([_.so("hideTimestamps"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ah.prototype,"hideTimestampsChanged",null);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ah.prototype,"dataChanged",null);_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],ah.prototype,"onTap",null);_.O([_.Hc("keypress"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],ah.prototype,"onKeyPress",null);
_.O([_.Hc("mouseenter"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ah.prototype,"onMouseEnter",null);_.O([_.Hc("mouseleave"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ah.prototype,"onMouseLeave",null);ah=_.O([_.v({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],ah);
_.t(ah,"ytd-transcript-body-renderer",function(){if(zxv!==void 0)return zxv;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return zxv=K},{mode:1});var fUJ;var tQ=function(){var K=_.G.apply(this,arguments)||this;K.darkerPanels=_.S("web_watch_darker_panels");return K};
_.r(tQ,_.G);tQ.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],tQ.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],tQ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],tQ.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],tQ.prototype,"darkerPanels",void 0);tQ=_.O([_.v({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],tQ);
_.t(tQ,"ytd-transcript-footer-renderer",function(){if(fUJ!==void 0)return fUJ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return fUJ=K},{mode:1});var DPd;var u2F;var $m=function(){var K=_.G.apply(this,arguments)||this;K.systemIcons=_.S("kevlar_system_icons");K.showClearButton=!1;return K};
_.r($m,_.G);_.z=$m.prototype;_.z.handleInput=function(K){var X=this;K.target.value.length?_.eu(this,"ytdTranscriptSearchBoxSearch",function(){X.emitSearchEvent(K)},500):(_.oFy(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=K.target.value.length>0};
_.z.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.z.handleClick=function(){var K,X=(K=this.data)==null?void 0:K.trackingParams;X&&_.FT(_.uH(),X)};
_.z.handleClear=function(){_.oFy(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var K,X,F=(X=_.T((K=this.data)==null?void 0:K.clearButton,_.jg))==null?void 0:X.trackingParams;F&&_.FT(_.uH(),F);this.clear()};
_.z.emitSearchEvent=function(K){_.iX(this.hostElement,"yt-transcript-search-box-search",{query:K.target.value});var X,F;(K=(F=_.T((X=this.data)==null?void 0:X.searchButton,_.jg))==null?void 0:F.trackingParams)&&_.FT(_.uH(),K)};
_.z.emitClearEvent=function(){_.iX(this.hostElement,"yt-transcript-search-box-clear")};
_.Oi.Object.defineProperties($m.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.C$(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],$m.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],$m.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],$m.prototype,"systemIcons",void 0);$m=_.O([_.v({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],$m);
_.t($m,"ytd-transcript-search-box-renderer",function(){if(u2F!==void 0)return u2F;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return u2F=K},{mode:1});var qqF;var JOV;var Ou=function(){return _.G.apply(this,arguments)||this};
_.r(Ou,_.G);Ou.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var K,X;this.sectionHeaderAriaLabel=(K=this.data)==null?void 0:(X=K.accessibility)==null?void 0:X.accessibilityData.label}};
Ou.prototype.fireSelectedEvent=function(K){_.iX(this.hostElement,"ytd-transcript-section-header",{startMs:K})};
Ou.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
Ou.prototype.handleKeyPress=function(K){this.data&&K.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.Oi.Object.defineProperties(Ou.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var K,X;return(X=(K=this.data)==null?void 0:K.enableTappableTranscriptHeader)!=null?X:!1}}});
Ou.prototype.dataChanged=Ou.prototype.dataChanged;_.O([_.h(),_.g("design:type",Object)],Ou.prototype,"data",void 0);_.O([_.h(),_.g("design:type",String)],Ou.prototype,"sectionHeaderAriaLabel",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],Ou.prototype,"enableTappableTranscriptHeader",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ou.prototype,"dataChanged",null);
Ou=_.O([_.v({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],Ou);
_.t(Ou,"ytd-transcript-section-header-renderer",function(){if(JOV!==void 0)return JOV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return JOV=K},{mode:1});var Z6G;var YqG;var Vo=function(){var K=_.G.apply(this,arguments)||this;K.isEditMode=!1;K.touchCaptionsEnabled=!1;K.deleteCaptionCorrectionPopupCommand=null;K.voteCaptionCorrectionPopupCommand=null;K.roundedContainer=!0;K.mouseOver=!1;K.textChanged=!1;K.messages={suggest_correction:_.uY("suggest_correction",void 0,"Edit caption"),suggested_caption:_.uY("suggested_caption",void 0,"Suggested caption"),submit_correction:_.uY("submit_correction",void 0,"Submit for review"),cancel_correction:_.uY("cancel_correction",
void 0,"Cancel"),replay_segment:_.uY("replay_segment",void 0,"Re-play segment"),delete_correction:_.uY("delete_correction",void 0,"Delete correction")};K.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return K};
_.r(Vo,_.G);_.z=Vo.prototype;_.z.dataChanged=function(){this.isEditMode=!1;this.editedText=this.data?this.data.userCorrection:void 0;this.data&&this.data.deleteCaptionCorrectionPopupCommand&&(this.deleteCaptionCorrectionPopupCommand=this.data.deleteCaptionCorrectionPopupCommand);this.data&&this.data.voteCaptionCorrectionPopupCommand&&(this.voteCaptionCorrectionPopupCommand=this.data.voteCaptionCorrectionPopupCommand);this.data&&this.data.accessibility&&(this.segmentAriaLabel=this.data.accessibility.accessibilityData.label)};
_.z.handleDelete=function(K){if(this.deleteCaptionCorrectionPopupCommand){var X=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);X&&this.ytdOpenPopupBehavior.openPopup(X);K.stopPropagation()}};
_.z.handleSubmit=function(K){if(this.data&&this.data.submitCaptionCorrectionCommand&&(K.stopPropagation(),this.textChanged)){var X;K=(X=_.T(this.data.submitCaptionCorrectionCommand,_.C4Z))==null?void 0:X.params;X=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:K,correctionText:String(this.ironTextAreaElement.value),originalText:_.lj(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(X);this.isEditMode=!1}};
_.z.handleUpdateSegmentText=function(K){(K=_.T(K,io8))&&K.targetId&&this.data&&K.targetId===this.data.targetId&&(K.userCorrection&&(this.editedText=K.userCorrection),K.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.lj(this.data.snippet)),K.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=K.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=K.voteCaptionCorrectionPopupCommand?
K.voteCaptionCorrectionPopupCommand:null,K.accessibility&&(this.segmentAriaLabel=K.accessibility.accessibilityData.label))};
_.z.handleCancel=function(K){this.isEditMode=!1;K.stopPropagation();this.logClientVe(159409)};
_.z.handleEditSegmentCommand=function(K){(K=_.T(K,NO5))&&K.targetId&&this.data&&K.targetId===this.data.targetId&&this.handleEdit()};
_.z.handleEditButtonClick=function(K){this.data&&(this.handleEdit(),K.stopPropagation())};
_.z.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var K;(K=this.ironTextAreaElement.textarea)==null||K.focus();this.logClientVe(159407)}};
_.z.handleMouseEnter=function(){this.mouseOver=!0};
_.z.handleMouseLeave=function(){this.mouseOver=!1};
_.z.handleReplay=function(K){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),K.stopPropagation(),this.logClientVe(159408))};
_.z.handleClick=function(){this.data&&(this.voteCaptionCorrectionPopupCommand?(this.ytComponentBehavior.resolveCommand(this.voteCaptionCorrectionPopupCommand),this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs))):(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()))};
_.z.handleKeypress=function(K){this.data&&(this.isEditMode?K.stopPropagation():this.isEnterPress(K)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(K)&&this.logClientVe(138758))};
_.z.handleTextboxClick=function(K){K.stopPropagation()};
_.z.handleTextboxKeydown=function(K){this.isControlEnterPress(K)?this.handleSubmit(K):K.key==="Escape"&&this.handleCancel(K)};
_.z.handleTextboxKeyup=function(){this.textChanged=_.lj(this.latestText)!==String(this.ironTextAreaElement.value)};
_.z.fireSelectedEvent=function(K){_.iX(this.hostElement,"yt-transcript-segment-selected",{startMs:K})};
_.z.fireReplayEvent=function(K,X){_.iX(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(K-100,0),endMs:X})};
_.z.fireEditEvent=function(K,X){_.iX(this.hostElement,"yt-transcript-segment-edit",{startMs:K,endMs:X})};
_.z.isEnterPress=function(K){return K.key==="Enter"||K.code==="Enter"||K.code==="NumpadEnter"||K.keyCode===13?!0:!1};
_.z.isControlEnterPress=function(K){var X=K.key==="Enter"||K.code==="Enter"||K.code==="NumpadEnter"||K.keyCode===13;return(K.ctrlKey||K.metaKey)&&X};
_.z.isCopyPress=function(K){var X=K.ctrlKey;return K.key==="c"&&X};
_.z.logClick=function(){var K,X=(K=this.data)==null?void 0:K.trackingParams;X&&_.FT(_.uH(),X)};
_.z.logClientVe=function(K){_.XT(_.uH(),_.cO(K))};
_.Oi.Object.defineProperties(Vo.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}}});
Vo.prototype.handleMouseLeave=Vo.prototype.handleMouseLeave;Vo.prototype.handleMouseEnter=Vo.prototype.handleMouseEnter;Vo.prototype.dataChanged=Vo.prototype.dataChanged;_.O([_.W(_.NT.YtActionHandlerBehavior),_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Vo.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.v9),_.g("design:type",Object)],Vo.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Vo.prototype,"ytRendererBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],Vo.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Vo.prototype,"isEditMode",void 0);_.O([_.h(),_.g("design:type",Object)],Vo.prototype,"touchCaptionsEnabled",void 0);_.O([_.h(),_.g("design:type",Object)],Vo.prototype,"editedText",void 0);_.O([_.h(),_.g("design:type",Object)],Vo.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.O([_.h(),_.g("design:type",Object)],Vo.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.O([_.h(),_.g("design:type",String)],Vo.prototype,"segmentAriaLabel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Vo.prototype,"roundedContainer",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Vo.prototype,"mouseOver",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Vo.prototype,"textChanged",void 0);_.O([_.h(),_.g("design:type",Object)],Vo.prototype,"messages",void 0);
_.O([_.fa("#suggestion"),_.g("design:type",Object)],Vo.prototype,"ironTextAreaElement",void 0);_.O([_.U("data","editedText"),_.g("design:type",Object),_.g("design:paramtypes",[])],Vo.prototype,"latestText",null);_.O([_.U("touchCaptionsEnabled","isEditMode"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Vo.prototype,"enableEditButton",null);
_.O([_.U("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Vo.prototype,"enableUndoButton",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Vo.prototype,"dataChanged",null);_.O([_.Hc("mouseenter"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Vo.prototype,"handleMouseEnter",null);
_.O([_.Hc("mouseleave"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Vo.prototype,"handleMouseLeave",null);Vo=_.O([_.v({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],Vo);
_.t(Vo,"ytd-transcript-segment-renderer",function(){if(YqG!==void 0)return YqG;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return YqG=K},{mode:1});var g3=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};K.isError=!1;K.darkerPanels=_.S("web_watch_darker_panels");K.useParentMaxHeight=_.S("web_watch_transscript_use_parent_max_height");K.segmentOffsets=[];K.segmentIndex=-1;return K};
_.r(g3,_.G);_.z=g3.prototype;_.z.configureRendererStamper=function(){return{segments:{id:"segments-container",mapping:{transcriptSegmentRenderer:{component:"ytd-transcript-segment-renderer",properties:{touchCaptionsEnabled:"[[data.touchCaptionsEnabled]]"}},transcriptSectionHeaderRenderer:{component:"ytd-transcript-section-header-renderer"}}}}};
_.z.segmentsChanged=function(){this.updateOffsets()};
_.z.onYtPlayerTimeChanged=function(K){for(var X=this.segmentIndex,F=X;;){if(F>=0){var P=this.segmentOffsets[F].start;var H=this.segmentOffsets[F].isAutoScrollable}else P=-1,H=!0;var f=K+.5;if(!H){P=F+1<this.segmentOffsets.length?this.segmentOffsets[F+1].start:Infinity;if(f>=P){F+=1;continue}F=-1;break}if(f<P)P=F-1>=0&&this.segmentOffsets[F-1].isAutoScrollable,H=F===0||P?1:2,F-=H;else if(H=F+1<this.segmentOffsets.length&&this.segmentOffsets[F+1].isAutoScrollable?1:2,P=F+H<this.segmentOffsets.length?
this.segmentOffsets[F+H].start:Infinity,f>P)F+=H;else{if(F<0)break;F<this.segmentOffsets.length&&f>this.segmentOffsets[F].end&&(F=-1);break}}if(X!==F){if(X>=0){var u;(u=this.getSegmentElement(X))==null||u.classList.remove("active")}this.segmentIndex=F;if(!(F<0)){var J;(J=this.getSegmentElement(F))==null||J.classList.add("active");this.isHovered||this.scrollElementToTop(F)}}};
_.z.handleSegmentEdit=function(K){K.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=K.target,_.xr(this.hostElement,"yt-transcript-player-edit",[K.detail.startMs/1E3,K.detail.endMs/1E3]))};
_.z.handleSegmentSelected=function(K){_.xr(this.hostElement,"yt-transcript-player-seek",[K.detail.startMs/1E3])};
_.z.handleSegmentReplay=function(K){_.xr(this.hostElement,"yt-transcript-player-replay",[K.detail.startMs/1E3,K.detail.endMs/1E3])};
_.z.handleSectionHeaderSelected=function(K){_.xr(this.hostElement,"yt-transcript-player-seek",[K.detail.startMs/1E3])};
_.z.onMouseEnter=function(){this.isHovered=!0};
_.z.onMouseLeave=function(){this.isHovered=!1};
_.z.onRetryButtonClick=function(){_.iX(this.hostElement,"transcript-retry-button-click")};
_.z.getSegmentElement=function(K){return _.C$(this.hostElement).querySelector(":nth-child("+(K+1)+")")};
_.z.scrollElementToTop=function(K){K=this.getSegmentElement(K>=2?K-2:0);this.hostElement.scrollTop=Math.min(K.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.z.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(K){var X,F=(X=K.transcriptSegmentRenderer)!=null?X:K.transcriptSectionHeaderRenderer;return{start:Number(F.startMs)/1E3,end:Number(F.endMs)/1E3,isAutoScrollable:K.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.z.clearHighlightedSegments=function(){var K=_.C$(this.hostElement);K=_.D(K.querySelectorAll("ytd-transcript-segment-renderer"));for(var X=K.next();!X.done;X=K.next())X.value.classList.remove("active")};
_.Oi.Object.defineProperties(g3.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.data)==null?void 0:K.searchResultSegments)||((X=this.data)==null?void 0:X.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
g3.prototype.onMouseLeave=g3.prototype.onMouseLeave;g3.prototype.onMouseEnter=g3.prototype.onMouseEnter;g3.prototype.handleSectionHeaderSelected=g3.prototype.handleSectionHeaderSelected;g3.prototype.handleSegmentReplay=g3.prototype.handleSegmentReplay;g3.prototype.handleSegmentSelected=g3.prototype.handleSegmentSelected;g3.prototype.handleSegmentEdit=g3.prototype.handleSegmentEdit;g3.prototype.segmentsChanged=g3.prototype.segmentsChanged;
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],g3.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],g3.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],g3.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],g3.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],g3.prototype,"isError",void 0);
_.O([_.h(),_.g("design:type",Object)],g3.prototype,"noResultLabel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],g3.prototype,"darkerPanels",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],g3.prototype,"useParentMaxHeight",void 0);_.O([_.U("data"),_.g("design:type",Array),_.g("design:paramtypes",[])],g3.prototype,"segments",null);
_.O([_.U("segments","noResultLabel"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],g3.prototype,"displayNoResults",null);_.O([_.so("segments"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],g3.prototype,"segmentsChanged",null);_.O([_.Hc("yt-transcript-segment-edit"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],g3.prototype,"handleSegmentEdit",null);
_.O([_.Hc("yt-transcript-segment-selected"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],g3.prototype,"handleSegmentSelected",null);_.O([_.Hc("yt-transcript-segment-replay"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],g3.prototype,"handleSegmentReplay",null);
_.O([_.Hc("ytd-transcript-section-header"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],g3.prototype,"handleSectionHeaderSelected",null);_.O([_.Hc("mouseenter"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],g3.prototype,"onMouseEnter",null);_.O([_.Hc("mouseleave"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],g3.prototype,"onMouseLeave",null);
g3=_.O([_.v({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],g3);
_.t(g3,"ytd-transcript-segment-list-renderer",function(){if(Z6G!==void 0)return Z6G;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Z6G=K},{mode:1});var Eu=function(){var K=_.G.apply(this,arguments)||this;K.hideTimestamps=!!_.KE("hide-transcript-timestamps");K.isLoadingTranscripts=!1;K.darkerPanels=_.S("web_watch_darker_panels");K.isError=!1;K.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return K};
_.r(Eu,_.G);_.z=Eu.prototype;_.z.headerChanged=function(){var K,X;this.baseGetTranscriptsCommand=(X=_.T((K=this.data)==null?void 0:K.header,x7t))==null?void 0:X.onTextChangeCommand};
_.z.bodyChanged=function(){var K=this.getBodyRenderer();K&&(K.initialSegments&&(this.initialTranscriptsRenderer=K),K.noResultLabel&&(this.noResultLabel=K.noResultLabel),K.retryLabel&&(this.retryLabel=K.retryLabel))};
_.z.detached=function(){this.clearSearchBoxText()};
_.z.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.z.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{transcriptSearchBoxRenderer:"ytd-transcript-search-box-renderer"}},"data.body":{id:"body",mapping:{transcriptSegmentListRenderer:{component:"ytd-transcript-segment-list-renderer",properties:{noResultLabel:"[[noResultLabel]]"}}}},"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}}}};
_.z.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.z.fireSearch=function(K){var X=this;if(K){var F=K.detail.query;if(this.baseGetTranscriptsCommand){var P;K=(P=_.T(this.baseGetTranscriptsCommand,_.RtL))==null?void 0:P.params;var H;P=_.T((H=this.data)==null?void 0:H.footer,U7v);var f;if((H=(f=_.T(P==null?void 0:P.languageMenu,ETG))==null?void 0:f.subMenuItems)&&H.length>0&&(f=H.find(function(Z){return Z.selected}))){var u,J;
K=(u=f.continuation)==null?void 0:(J=u.reloadContinuationData)==null?void 0:J.continuation}u=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:K,searchQuery:F}});this.ytComponentBehavior.resolveCommand(u,{commandController:{onServerError:function(){X.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});nTV(this.ytContinuationHandlerBehavior,function(){return F===X.getCurrentSearchBoxText()})}}};
_.z.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.z.onRetryButtonClick=function(){this.isError=!1;var K={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:K}))};
_.z.hideTimestampsChanged=function(){_.kl("hide-transcript-timestamps",this.hideTimestamps)};
_.z.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.z.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.z.handleSignalActionCopyTranscript=function(){var K=this,X=this.getBodyRenderer();X&&(X=((X==null?void 0:X.searchResultSegments)||(X==null?void 0:X.initialSegments)||[]).map(function(F){return _.T(F,kq8)}).filter(function(F){return!!F}).map(function(F){return{snippet:F.snippet||{runs:[{text:""}]},
startTimeText:F.startTimeText||{simpleText:""}}}).map(function(F){var P=(F.snippet.runs||[]).reduce(function(H,f){return H+f.text},"");
return K.hideTimestamps?P:F.startTimeText.simpleText+" "+P}).join("\n"),this.copyToClipboard(X))};
_.z.copyToClipboard=function(K){navigator.clipboard&&navigator.clipboard.writeText(K)};
_.z.getCurrentSearchBoxText=function(){var K;return(K=this.searchBox)==null?void 0:K.value};
_.z.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.z.getBodyRenderer=function(){var K;return _.T((K=this.data)==null?void 0:K.body,Ix5)};
_.z.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.Oi.Object.defineProperties(Eu.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.C$(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
Eu.prototype.hideTimestampsChanged=Eu.prototype.hideTimestampsChanged;Eu.prototype.searchCleared=Eu.prototype.searchCleared;Eu.prototype.fireSearch=Eu.prototype.fireSearch;Eu.prototype.onReloadContinuationFinish=Eu.prototype.onReloadContinuationFinish;Eu.prototype.bodyChanged=Eu.prototype.bodyChanged;Eu.prototype.headerChanged=Eu.prototype.headerChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Eu.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Eu.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Eu.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.eG),_.g("design:type",Object)],Eu.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Eu.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Eu.prototype,"hideTimestamps",void 0);
_.O([_.h(),_.g("design:type",Object)],Eu.prototype,"isLoadingTranscripts",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Eu.prototype,"darkerPanels",void 0);_.O([_.h(),_.g("design:type",Object)],Eu.prototype,"isError",void 0);_.O([_.so("data.header"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Eu.prototype,"headerChanged",null);
_.O([_.JA("data.body"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Eu.prototype,"bodyChanged",null);_.O([_.Hc("yt-reload-continuation-finish"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Eu.prototype,"onReloadContinuationFinish",null);_.O([_.Hc("yt-transcript-search-box-search"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],Eu.prototype,"fireSearch",null);
_.O([_.Hc("yt-transcript-search-box-clear"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Eu.prototype,"searchCleared",null);_.O([_.so("hideTimestamps"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Eu.prototype,"hideTimestampsChanged",null);Eu=_.O([_.v({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],Eu);
_.t(Eu,"ytd-transcript-search-panel-renderer",function(){if(qqF!==void 0)return qqF;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return qqF=K},{mode:1});var b2=function(){var K=_.G.apply(this,arguments)||this;K.player=null;K.playerPollJobId=0;return K};
_.r(b2,_.G);_.z=b2.prototype;_.z.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.z.onLoadReloadContinuation=function(K){_.S("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:K.target.data.continuation}}):(K={clickTrackingParams:K.target.data.clickTrackingParams,getTranscriptEndpoint:{params:K.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.i9().resolve(_.xU).resolveCommand(K,{form:{element:this.hostElement}}))};
_.z.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}},"data.body":{id:"body",mapping:{transcriptBodyRenderer:"ytd-transcript-body-renderer"}},"data.content":{id:"content",mapping:{transcriptSearchPanelRenderer:"ytd-transcript-search-panel-renderer"}}}};
_.z.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.z.attached=function(){this.updatePlayerListening()};
_.z.detached=function(){this.updatePlayerListening()};
_.z.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.z.startPlayerListening=function(){var K=this,X;return _.q(function(F){if(F.nextAddress==1)return(X=_.$f())?_.Y(F,X.getPlayerPromise(),2):F.return();K.player=F.yieldResult;K.playerPollJobId=_.A9.addLowPriorityJob(function(){K.getPlayerVideoProgress()},1E3);
K.player.addEventListener("onCueRangeEnter",function(P){K.onCueRangeEnter(P)});
K.player.addEventListener("onCueRangeExit",function(P){K.onCueRangeExit(P)});
K.player.addEventListener("onStateChange",function(P){K.onPlayerStateChange(P)});
K.player.addEventListener("SEEK_TO",function(P){K.onPlayerSeek(P)});
_.JT(F)})};
_.z.getPlayerVideoProgress=function(){var K=this;_.A9.cancelJob(this.playerPollJobId);if(this.player){var X=this.player.getCurrentTime();_.xr(this.hostElement,"yt-player-time-changed",[X])}this.playerPollJobId=_.A9.addLowPriorityJob(function(){K.getPlayerVideoProgress()},1E3)};
_.z.stopPlayerListening=function(){this.player=null;_.A9.cancelJob(this.playerPollJobId)};
_.z.onPlayerStateChange=function(K){K===2&&this.removePendingCue()};
_.z.onPlayerSeek=function(K){var X;if(X=this.pendingReplayCueId)X=this.pendingReplayCueId,X=K===(_.S("web_transcript_cue_id_killswitch")?Number(X):Number(X.split("_")[1]));X||this.removePendingCue()};
_.z.onCueRangeEnter=function(K){$pW(K)&&(this.pendingReplayCueId=K)};
_.z.onCueRangeExit=function(K){$pW(K)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.z.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.z.onYtTranscriptPlayerSeek=function(K){this.player&&this.player.seekTo(K,!0)};
_.z.onYtTranscriptPlayerReplay=function(K,X){this.player&&(this.player.addCueRange(trs(K),K,X),this.player.seekTo(K,!0),this.player.playVideo())};
_.z.onYtTranscriptPlayerEdit=function(K,X){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(trs(K),K,X),this.player.seekTo(K,!0))};
b2.prototype.onLoadReloadContinuation=b2.prototype.onLoadReloadContinuation;b2.prototype.panelContentVisibleChanged=b2.prototype.panelContentVisibleChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],b2.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],b2.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],b2.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],b2.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],b2.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],b2.prototype,"panelContentVisible",void 0);_.O([_.so("panelContentVisible"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],b2.prototype,"panelContentVisibleChanged",null);
_.O([_.Hc("yt-load-reload-continuation"),_.g("design:type",Function),_.g("design:paramtypes",[Object]),_.g("design:returntype")],b2.prototype,"onLoadReloadContinuation",null);b2=_.O([_.v({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],b2);
_.t(b2,"ytd-transcript-renderer",function(){if(DPd!==void 0)return DPd;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return DPd=K},{mode:1});var Qo8;var MBV;var CV=function(){return _.G.apply(this,arguments)||this};
_.r(CV,_.G);CV.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.iX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.X0(this.hostElement,[this.data.clickCommand],this.hostElement))};
CV.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.TA)()+_.me)+"px)"};
CV.prototype.updateShouldHideFromBinding=function(K){this.shouldHide=K.detail.value};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],CV.prototype,"rendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],CV.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Boolean)],CV.prototype,"shouldHide",void 0);CV=_.O([_.v({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],CV);
_.t(CV,"ytd-ad-engagement-panel-banner-renderer",function(){if(MBV!==void 0)return MBV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return MBV=K},{mode:_.Ig("kevlar_poly_si_batch_j070")?1:2});var nIk;var N3=function(){var K=_.G.apply(this,arguments)||this;K.modernPanels=_.S("kevlar_watch_modern_panels");K.buttonUpdate=_.S("web_modern_buttons");K.adsSemanticText=_.S("enable_ads_web_ep_buenos_aires_and_padding_fix");return K};
_.r(N3,_.G);N3.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.O([_.h(),_.g("design:type",Object)],N3.prototype,"data",void 0);_.O([_.h({computed:"computeHideDefaultAdBadge(data)"}),_.g("design:type",Boolean)],N3.prototype,"hideDefaultAdBadge",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],N3.prototype,"modernPanels",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],N3.prototype,"buttonUpdate",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],N3.prototype,"adsSemanticText",void 0);
N3=_.O([_.v({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],N3);
_.t(N3,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(nIk!==void 0)return nIk;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return nIk=K},{mode:1});var cOV;var i2=function(){var K=_.G.apply(this,arguments)||this;K.darkerPanels=_.S("web_watch_darker_panels");K.enableSqueezebackPanels=_.S("web_shorts_enable_squeezeback_panels");K.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");K.modernPanels=_.S("kevlar_watch_modern_panels");K.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return K};
_.r(i2,_.G);_.z=i2.prototype;_.z.computeAdsInfoButton=function(){if(_.S("web_modern_buttons")){var K,X;return(X=_.T((K=this.data)==null?void 0:K.subtitleComplex,hJt))==null?void 0:X.adInfoRenderer}};
_.z.configureRendererStamper=function(){return{"data.visibilityButton":{id:"visibility-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer",sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.subtitleComplex":{id:"subtitle-complex",mapping:{engagementPanelAdSubtitleRenderer:"ytd-engagement-panel-ad-subtitle-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
adsInfoButton:{id:"ads-info-button",mapping:{adHoverTextButtonRenderer:{component:"ytd-ad-hover-text-button-renderer",params:{modernUpdate:!0}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.banner":{id:"banner",mapping:{adEngagementPanelBannerRenderer:"ytd-ad-engagement-panel-banner-renderer"}},"data.navigationButton":{id:"navigation-button",mapping:{buttonRenderer:"ytd-button-renderer"},reuseComponents:!1},"data.subheader":{id:"subheader",
mapping:{chipBarViewModel:{component:"chip-bar-view-model",params:{disableDeselection:!0}}}}}};
_.z.collapsedChanged=function(){var K;(K=this.data)!=null&&K.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.S("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.z.focus=function(K){this.titleElement&&_.OM(this.titleElement,K)};
_.z.computeTitleAriaLabel=function(K){var X=[];if(K.title){var F,P;X.push(this.ytRendererBehavior.getSimpleString(K.title)||((F=K.title.accessibility)==null?void 0:(P=F.accessibilityData)==null?void 0:P.label))}K.contextualInfo&&X.push(this.ytRendererBehavior.getSimpleString(K.contextualInfo));return X.join(" ")};
_.z.onHeaderClick=function(K){this.shouldTriggerHeaderClick(K)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.iX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.X0(this.hostElement,[this.data.onClickCommand],this.hostElement)):(K=this.getVisibilityToggleButton())&&K.click())};
_.z.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var K=_.T(this.data.visibilityButton,_.jg)||_.T(this.data.visibilityButton,_.w4);K&&this.ytRendererBehavior.logExplicitClick(K)}};
_.z.getVisibilityToggleButton=function(){var K=_.C$(this.hostElement).querySelector("#visibility-button").firstElementChild;return(K==null?void 0:K.is)==="ytd-toggle-button-renderer"?K:null};
_.z.shouldTriggerHeaderClick=function(K){return!_.lC(_.lN(K),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.z.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(K){K=_.T(K,_.A$o);this.targetId&&(K==null?void 0:K.targetId)===this.targetId&&(K=K.navigationButton)&&this.set("data.navigationButton",K)};
_.Oi.Object.defineProperties(i2.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var K;return!!(((K=this.entity)==null?0:K.isActionButtonHidden)||this.hideActionButton)}}});
i2.prototype.collapsedChanged=i2.prototype.collapsedChanged;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],i2.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],i2.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],i2.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],i2.prototype,"ytdReduxBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],i2.prototype,"data",void 0);_.O([_.h(),_.g("design:type",String)],i2.prototype,"targetId",void 0);_.O([_.h(),_.g("design:type",Boolean)],i2.prototype,"collapsed",void 0);_.O([_.h(),_.g("design:type",Boolean)],i2.prototype,"hideActionButton",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],i2.prototype,"shortsPanel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],i2.prototype,"liveChatEngagementPanel",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],i2.prototype,"darkerPanels",void 0);_.O([_.fa("#title"),_.g("design:type",HTMLElement)],i2.prototype,"titleElement",void 0);_.O([_.h({computed:"computeAdsInfoButton(data)"}),_.g("design:type",Object)],i2.prototype,"adsInfoButton",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],i2.prototype,"enableSqueezebackPanels",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],i2.prototype,"enableAnchoredPanel",void 0);_.O([_.h({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(K,X){return _.FF(K.entities,"engagementPanelTitleHeaderEntity",X)}}),
_.g("design:type",Object)],i2.prototype,"entity",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],i2.prototype,"modernPanels",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("targetId"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],i2.prototype,"adsSemanticText",null);_.O([_.JA("collapsed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],i2.prototype,"collapsedChanged",null);
_.O([_.U("entity","hideActionButton"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],i2.prototype,"isActionButtonHidden",null);i2=_.O([_.v({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],i2);
_.t(i2,"ytd-engagement-panel-title-header-renderer",function(){if(cOV!==void 0)return cOV;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" on-click="onHeaderClick" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return cOV=K},{mode:1});var pK1;var xm=function(){return _.G.apply(this,arguments)||this};
_.r(xm,_.G);xm.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],xm.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],xm.prototype,"data",void 0);xm=_.O([_.v({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],xm);
_.t(xm,"ytd-macro-markers-info-item-renderer",function(){if(pK1!==void 0)return pK1;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return pK1=K},{mode:1});var Bi1;var Lud=function(K,X,F,P,H,f){_.LJ.call(this);var u=this;this.JSC$20128_containerElement=K;this.hostElement=X;this.supportedSyncItems=F;this.syncEntityKey=P;this.options=H;this.renderLazyListItems=f;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;Sq8(this);oIW(this);this.JSC$20128_scrollAnimation=new _.WX(function(J){K.scrollTop=J});
_.JH(this,this.JSC$20128_scrollAnimation);this.addOnDisposeCallback(function(){u.exitBrowsingMode(!1);u.activeItem&&u.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.r(Lud,_.LJ);var Sq8=function(K){var X=_.Dg(_.i9().resolve(_.jE),function(F){return F.entities.markersEngagementPanelSyncEntity||{}},function(F,P){var H;
F[K.syncEntityKey]!==P[K.syncEntityKey]&&((H=F[K.syncEntityKey])==null?void 0:H.activeItemIndex)!==void 0&&K.updatePanelActiveItem(F[K.syncEntityKey].activeItemIndex)});
K.unsubscribeFromTimedMarkersListSyncEntity=X;K.addOnDisposeCallback(X);Ti5(K)},Ti5=function(K){var X=_.i9().resolve(_.jE);
X=_.BxP(X.getState(),K.syncEntityKey);(X==null?void 0:X.activeItemIndex)!==void 0&&(X=K.getItemByIndex(X.activeItemIndex))&&K.setActiveItem(X)},oIW=function(K){var X=new _.VW(K.onScroll,50,K);
_.JH(K,X);var F=function(){X.fire()};
K.JSC$20128_containerElement.addEventListener("scroll",F);K.addOnDisposeCallback(function(){K.JSC$20128_containerElement.removeEventListener("scroll",F)})};
_.z=Lud.prototype;
_.z.updatePanelActiveItem=function(K){var X=this.getItemByIndex(K);if(X){if(this.setActiveItem(X),this.contentVisible)if(this.browsingMode){var F;((F=this.options)==null?void 0:F.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(K=rO8(this),X.offsetTop<this.JSC$20128_containerElement.clientHeight+this.JSC$20128_containerElement.scrollTop&&K&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));AO8(this)}else this.scrollToItem(X)}else _.yy(new _.nG("Could not find "+this.supportedSyncItems+
" sync child to set active.",K,this.JSC$20128_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.z.getItemByIndex=function(K){var X;(X=this.renderLazyListItems)==null||X.call(this,K);X=this.JSC$20128_containerElement.querySelectorAll(this.supportedSyncItems);if(X.length>K)return X[K]};
_.z.setActiveItem=function(K){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));K.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=K};
_.z.scrollToItem=function(K){K=this.getScrollPositionForItem(K);this.JSC$20128_containerElement.scrollTop!==K&&this.JSC$20128_scrollAnimation.start(this.JSC$20128_containerElement.scrollTop,K,300)};
_.z.getScrollPositionForItem=function(K){if(this.JSC$20128_containerElement.querySelectorAll(this.supportedSyncItems)[0]===K)return 0;var X,F=((X=this.options)==null?0:X.percentOffset)?this.JSC$20128_containerElement.clientHeight*this.options.percentOffset:0;K=_.dp(K).y+this.JSC$20128_containerElement.scrollTop-(_.dp(this.JSC$20128_containerElement).y+F);return Math.max(0,Math.min(K,this.JSC$20128_containerElement.scrollHeight-this.JSC$20128_containerElement.offsetHeight))};
_.z.onScroll=function(){this.activeItemBelowSyncPosition=rO8(this);if(this.activeItem&&!this.JSC$20128_scrollAnimation.isAnimating()&&Math.abs(this.JSC$20128_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var K;switch((K=this.options)==null?void 0:K.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!jow(this));AO8(this);break;default:this.enterBrowsingMode(!0)}}};
_.z.enterBrowsingMode=function(K){var X=this,F,P;return _.q(function(H){if(H.nextAddress==1){if(X.browsingMode)return H.return();X.browsingMode=!0;K&&X.hostElement.classList.add("browsing-mode");X.playerExitBrowsingModeListener=function(){X.exitBrowsingMode(!1)};
return _.Y(H,_.xf(),2)}F=H.yieldResult;(P=F)==null||P.addEventListener("SEEK_TO",X.playerExitBrowsingModeListener);_.JT(H)})};
_.z.exitBrowsingMode=function(K){K=K===void 0?!0:K;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),K&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.z.removePlayerSeekListener=function(){var K=this,X,F;return _.q(function(P){if(P.nextAddress==1)return K.playerExitBrowsingModeListener?_.Y(P,_.xf(),3):P.jumpTo(0);X=P.yieldResult;(F=X)==null||F.removeEventListener("SEEK_TO",K.playerExitBrowsingModeListener);K.playerExitBrowsingModeListener=void 0;_.JT(P)})};
var AO8=function(K){var X;((X=K.options)==null?void 0:X.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(jow(K)?K.hostElement.classList.remove("browsing-mode"):K.activeItem&&K.hostElement.classList.add("browsing-mode"))},rO8=function(K){if(!K.activeItem)return!1;
var X,F=((X=K.options)==null?0:X.percentOffset)?K.JSC$20128_containerElement.clientHeight*K.options.percentOffset:0;return K.activeItem.offsetTop>=K.JSC$20128_containerElement.scrollTop+F},jow=function(K){if(!K.activeItem)return!1;
var X=K.activeItem.offsetTop+14<=K.JSC$20128_containerElement.scrollTop+K.JSC$20128_containerElement.clientHeight;return K.activeItem.offsetTop+K.activeItem.clientHeight-14>=K.JSC$20128_containerElement.scrollTop&&X};
Lud.prototype.panelContentVisibleChanged=function(K){(this.contentVisible=K)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var wKG=function(K,X){K.syncEntityKey=X;var F;(F=K.unsubscribeFromTimedMarkersListSyncEntity)==null||F.call(K);Sq8(K)},yOF=function(K,X){K.options=X};var Ih=function(){var K=_.G.apply(this,arguments)||this;K.browsingMode=!1;K.modern=_.S("web_button_rework");K.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return K};
_.r(Ih,_.G);_.z=Ih.prototype;_.z.activeItemChanged=function(){if(!_.S("synced_panel_scrolling_controller")){var K;((K=this.syncEntity)==null?void 0:K.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.z.created=function(){var K=this;_.S("synced_panel_scrolling_controller")||(this.JSC$20132_scrollAnimation=new _.WX(function(X){K.contents.scrollTop=X}),this.boundExitBrowsingMode=function(){K.exitBrowsingMode(!1)})};
_.z.detached=function(){if(_.S("synced_panel_scrolling_controller")){var K;(K=this.scrollController)==null||K.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.z.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"},params:{seekWithAnimationOnClick:!0}},macroMarkersInfoItemRenderer:"ytd-macro-markers-info-item-renderer",itemSectionRenderer:"ytd-item-section-renderer"}}}};
_.z.dataChanged=function(){var K=this;_.S("synced_panel_scrolling_controller")?_.tg(this,function(){if(K.scrollController){var X;(X=K.scrollController)==null||X.exitBrowsingMode(!1);var F,P,H;(P=K.scrollController)==null||wKG(P,(H=(F=K.data)==null?void 0:F.syncModelEntityKey)!=null?H:"default-macro-markers-list-renderer-entity-key");var f,u,J;(J=K.scrollController)==null||yOF(J,{percentOffset:(f=K.data)==null?void 0:f.selectedItemAlignmentPercentOffset,floatingPillType:(u=K.data)==null?void 0:u.floatingPillType})}else{var Z,
M,n,c;K.scrollController=new Lud(K.contents,K.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(c=(Z=K.data)==null?void 0:Z.syncModelEntityKey)!=null?c:"default-macro-markers-list-renderer-entity-key",{percentOffset:(M=K.data)==null?void 0:M.selectedItemAlignmentPercentOffset,floatingPillType:(n=K.data)==null?void 0:n.floatingPillType},function(B){K.renderLazyListItems(B)})}K.scrollController.panelContentVisibleChanged(!!K.panelContentVisible)}):this.exitBrowsingMode()};
_.z.computeButtonShape=function(){var K=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){K.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.z.computeSyncEnabled=function(K){return!(K==null||!K.syncButtonLabel)};
_.z.renderLazyListItems=function(K){for(var X=this.contents.children,F=0,P=0;P<X.length;P++){var H=void 0;(H=X[P].ytLazyListBehavior)==null||H.fillRemainingListItems();var f=void 0,u=void 0;H=_.T((f=this.data)==null?void 0:(u=f.contents)==null?void 0:u[P],_.hLN);u=f=void 0;if((f=H)==null?0:(u=f.contents)==null?0:u.length)F+=H.contents.length;if(F>=K)break}};
_.z.getItemByIndex=function(K){this.renderLazyListItems(K);var X=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(X.length>K)return X[K]};
_.z.setActiveItem=function(K){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);K.active!==void 0&&(K.active=!0);this.currentActiveItem=K};
_.z.handleSetActivePanelItemAction=function(K){if((K=_.T(K,wtJ))&&this.panelTargetId===K.panelTargetId){K=K.itemIndex;if(_.S("synced_panel_scrolling_controller")){var X,F;var P=(F=(X=this.data)==null?void 0:X.syncModelEntityKey)!=null?F:"default-macro-markers-list-renderer-entity-key"}else{var H;P=(H=this.data)==null?void 0:H.syncModelEntityKey}if(P){var f;((f=this.syncEntity)==null?void 0:f.activeItemIndex)!==K&&this.ytdReduxBehavior.dispatch(_.zl("markersEngagementPanelSyncEntity",P,{key:P,activeItemIndex:K}))}else this.updatePanelActiveItem(K)}};
_.z.updatePanelActiveItem=function(K){var X=this.getItemByIndex(K);X?(this.setActiveItem(X),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(X)):_.yy(new _.nG("Could not find ytd-macro-markers-list-renderer sync child to set active.",K,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.z.scrollToItem=function(K){K=this.getScrollPositionForItem(K);this.contents.scrollTop!==K&&this.JSC$20132_scrollAnimation.start(this.contents.scrollTop,K,300)};
_.z.getScrollPositionForItem=function(K){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===K)return 0;K=_.dp(K).y+this.contents.scrollTop-_.dp(this.contents).y-this.getStickyHeaderHeight(K);return Math.min(K,this.contents.scrollHeight-this.contents.offsetHeight)};
_.z.getStickyHeaderHeight=function(K){if(K.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var X,F,P;return(P=(X=K.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(F=X.header)==null?void 0:F.offsetHeight)!=null?P:0}return 0};
_.z.onScroll=function(){_.S("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$20132_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.z.enterBrowsingMode=function(){var K=this;return _.q(function(X){if(X.nextAddress==1){if(K.browsingMode)return X.return();K.browsingMode=!0;return _.Y(X,_.Oe().getPlayerPromise(),2)}K.player=X.yieldResult;K.player.addEventListener("SEEK_TO",K.boundExitBrowsingMode);_.JT(X)})};
_.z.exitBrowsingMode=function(K){this.browsingMode&&(this.browsingMode=!1,(K===void 0||K)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.z.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.z.onSyncClick=function(){if(_.S("synced_panel_scrolling_controller")){var K;(K=this.scrollController)==null||K.exitBrowsingMode()}else this.exitBrowsingMode()};
_.z.panelContentVisibleChanged=function(){if(_.S("synced_panel_scrolling_controller")){var K;(K=this.scrollController)==null||K.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
Ih.prototype.panelContentVisibleChanged=Ih.prototype.panelContentVisibleChanged;Ih.prototype.dataChanged=Ih.prototype.dataChanged;Ih.prototype.activeItemChanged=Ih.prototype.activeItemChanged;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Ih.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Ih.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Ih.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],Ih.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Ih.prototype,"data",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],Ih.prototype,"useCustomColors",void 0);_.O([_.h({computed:"computeSyncEnabled(data)"}),_.g("design:type",Boolean)],Ih.prototype,"syncEnabled",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],Ih.prototype,"panelTargetId",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Ih.prototype,"panelContentVisible",void 0);_.O([_.fa("#contents"),_.g("design:type",HTMLElement)],Ih.prototype,"contents",void 0);_.O([_.fa("#sync-container"),_.g("design:type",HTMLElement)],Ih.prototype,"syncContainer",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Ih.prototype,"browsingMode",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Ih.prototype,"modern",void 0);_.O([_.h({selectorArgs:["data.syncModelEntityKey"],selector:_.BxP}),_.g("design:type",Object)],Ih.prototype,"syncEntity",void 0);_.O([_.so("syncEntity.activeItemIndex"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ih.prototype,"activeItemChanged",null);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ih.prototype,"dataChanged",null);_.O([_.so("panelContentVisible"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ih.prototype,"panelContentVisibleChanged",null);Ih=_.O([_.v({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Ih);
_.t(Ih,"ytd-macro-markers-list-renderer",function(){if(Bi1!==void 0)return Bi1;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <tp-yt-paper-button id="sync-button" disable-upgrade="[[modern]]" hidden="[[modern]]" on-click="onSyncClick" class="style-scope ytd-macro-markers-list-renderer">\n    [[getSimpleString(data.syncButtonLabel)]]\n  </tp-yt-paper-button>\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return Bi1=K},{mode:1});var WuF;var km=function(){return _.G.apply(this,arguments)||this};
_.r(km,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],km.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],km.prototype,"data",void 0);km=_.O([_.v({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],km);
_.t(km,"ytd-error-corrections-section-item-renderer",function(){if(WuF!==void 0)return WuF;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return WuF=K},{mode:1});var dPW;var K2=function(){return _.G.apply(this,arguments)||this};
_.r(K2,_.G);K2.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],K2.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],K2.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],K2.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],K2.prototype,"data",void 0);K2=_.O([_.v({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],K2);
_.t(K2,"ytd-error-corrections-section-renderer",function(){if(dPW!==void 0)return dPW;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return dPW=K},{mode:1});var exW;var X4=function(){return _.G.apply(this,arguments)||this};
_.r(X4,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],X4.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],X4.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],X4.prototype,"data",void 0);X4=_.O([_.v({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],X4);
_.t(X4,"ytd-topic-link-renderer",function(){if(exW!==void 0)return exW;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return exW=K},{mode:1});var RxG;var F4=function(){var K=_.G.apply(this,arguments)||this;K.modern=_.S("kevlar_modern_sd_v2");K.modernLockupV2=_.S("modernize_structured_description_playlist_lockups_v2");K.modernTypography=_.S("web_modern_typography");return K};
_.r(F4,_.G);F4.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"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],F4.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],F4.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],F4.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],F4.prototype,"modern",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],F4.prototype,"modernLockupV2",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],F4.prototype,"modernTypography",void 0);F4=_.O([_.v({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],F4);
_.t(F4,"ytd-video-description-course-section-renderer",function(){if(RxG!==void 0)return RxG;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return RxG=K},{mode:1});var UPF;var P4=function(){var K=_.G.apply(this,arguments)||this;K.modern=_.S("kevlar_modern_sd_v2");K.modernTypography=_.S("web_modern_typography");return K};
_.r(P4,_.G);P4.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"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],P4.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],P4.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],P4.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],P4.prototype,"modern",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],P4.prototype,"modernTypography",void 0);
P4=_.O([_.v({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],P4);
_.t(P4,"ytd-video-description-files-section-renderer",function(){if(UPF!==void 0)return UPF;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return UPF=K},{mode:1});var hxV;var H4=function(){return _.G.apply(this,arguments)||this};
_.r(H4,_.G);H4.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"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],H4.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],H4.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],H4.prototype,"data",void 0);H4=_.O([_.v({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],H4);
_.t(H4,"ytd-video-description-gaming-section-renderer",function(){if(hxV!==void 0)return hxV;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return hxV=K},{mode:1});var mP5;var sJ=function(){var K=_.G.apply(this,arguments)||this;K.isExpanded=!1;return K};
_.r(sJ,_.G);sJ.prototype.computeHasDefaultMetadataEndpoint=function(K){var X;K=K==null?void 0:(X=K.defaultMetadata)==null?void 0:X.runs;return!(!K||K.length!==1||!K[0].navigationEndpoint)};
sJ.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.Oi.Object.defineProperties(sJ.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],sJ.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],sJ.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],sJ.prototype,"isExpanded",void 0);_.O([_.h({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],sJ.prototype,"hasDefaultMetadataEndpoint",void 0);
_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],sJ.prototype,"isExpandable",null);_.O([_.U("data","isExpandable","isExpanded"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],sJ.prototype,"showExpandedMetadata",null);sJ=_.O([_.v({is:"ytd-info-row-renderer",disableElementRegistration:!0})],sJ);
_.t(sJ,"ytd-info-row-renderer",function(){if(mP5!==void 0)return mP5;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return mP5=K},{mode:1});var GN8;var zf=function(){var K=_.G.apply(this,arguments)||this;K.currentIndex=0;K.supportComponentResize=!0;K.modern=_.S("kevlar_modern_sd_v2");K.JSC$20158_lastScrollContainerWidth=NaN;return K};
_.r(zf,_.G);_.z=zf.prototype;
_.z.configureRendererStamper=function(){return{videoLockups:{id:"items",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",params:{forceOneLineTitle:!0,musicMetadataVideoLockup:!0,hideThumbnail:!0}}},reuseComponents:!1},infoRows:{id:"info-rows",mapping:{infoRowRenderer:"ytd-info-row-renderer"}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.z.getItemsPath=function(){return"videoLockups"};
_.z.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.z.onIronResize=function(){this.updateVideoLockupStyles()};
_.z.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.z.updateVideoLockupStyles=function(){var K;this.JSC$20158_scrollContainer!==void 0&&(K=this.videoLockups)!=null&&K.length&&(K=this.JSC$20158_scrollContainer.clientWidth,K!==this.JSC$20158_lastScrollContainerWidth&&(this.JSC$20158_lastScrollContainerWidth=K,_.XU(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(K*.8,415)+"px"}),_.iX(this.hostElement,"iron-resize")))};
_.Oi.Object.defineProperties(zf.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var K=[],X;if((X=this.data)==null||!X.carouselLockups)return K;X=_.D(this.data.carouselLockups);for(var F=X.next();!F.done;F=X.next()){F=F.value;var P=void 0;((P=_.T(F,P3d))==null?0:P.videoLockup)&&K.push(_.T(F,P3d).videoLockup)}return K}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.videoLockups)==null||!K.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var K=[],X;if((X=this.data)==null||!X.carouselLockups)return K;var F;return(F=_.T(this.data.carouselLockups[this.scrollCount],P3d))==null?void 0:F.infoRows}}});
zf.prototype.dataChanged=zf.prototype.dataChanged;zf.prototype.onIronResize=zf.prototype.onIronResize;zf.prototype.hiddenChanged=zf.prototype.hiddenChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],zf.prototype,"componentBehavior",void 0);_.O([_.W(_.Nh.YtdHorizontalListBehavior),_.g("design:type",Object)],zf.prototype,"ytdHorizontalListBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],zf.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],zf.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],zf.prototype,"inlineStructuredDescription",void 0);_.O([_.h({value:2}),_.g("design:type",Number)],zf.prototype,"initialCount",void 0);_.O([_.h(),_.g("design:type",Object)],zf.prototype,"currentIndex",void 0);
_.O([_.h(),_.g("design:type",Number)],zf.prototype,"scrollCount",void 0);_.O([_.h(),_.g("design:type",Object)],zf.prototype,"supportComponentResize",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],zf.prototype,"contentHidden",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],zf.prototype,"modern",void 0);_.O([_.fa("#scroll-container"),_.g("design:type",HTMLDivElement)],zf.prototype,"JSC$20158_scrollContainer",void 0);
_.O([_.so("contentHidden"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],zf.prototype,"hiddenChanged",null);_.O([_.U("data"),_.g("design:type",Array),_.g("design:paramtypes",[])],zf.prototype,"videoLockups",null);_.O([_.U("videoLockups"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],zf.prototype,"hasVideoLockups",null);
_.O([_.Hc("iron-resize"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],zf.prototype,"onIronResize",null);_.O([_.U("data","scrollCount"),_.g("design:type",Object),_.g("design:paramtypes",[])],zf.prototype,"infoRows",null);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],zf.prototype,"dataChanged",null);zf=_.O([_.v({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],zf);
_.t(zf,"ytd-video-description-music-section-renderer",function(){if(GN8!==void 0)return GN8;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return GN8=K},{mode:_.Ig("kevlar_poly_si_batch_j081")?1:2});var lU1;var f2=function(){var K=_.G.apply(this,arguments)||this;K.modern=_.S("kevlar_modern_sd_v2");K.modernTypography=_.S("web_modern_typography");return K};
_.r(f2,_.G);f2.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],f2.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],f2.prototype,"ytRendererBehavior",void 0);_.O([_.h({}),_.g("design:type",Object)],f2.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],f2.prototype,"modern",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],f2.prototype,"modernTypography",void 0);
f2=_.O([_.v({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],f2);
_.t(f2,"ytd-video-description-transcript-section-renderer",function(){if(lU1!==void 0)return lU1;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return lU1=K},{mode:1});var vIJ;_.EP(_.$c(function(K){var X=_.sy(_.T8P,function(){return K.data().firstProviderLinkStatusEntityKey}),F=_.sy(_.T8P,function(){return K.data().secondProviderLinkStatusEntityKey}),P=function(){var H,f;
return((H=X())==null?void 0:H.linked)||((f=F())==null?void 0:f.linked)};
return _.Q("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.Q(_.Oy,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return K.data().sectionTitle}}),_.Q(_.Oy,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return P()?K.data().connectedMessage:K.data().notConnectedMessage}}),_.Q(_.p,{cond:P,
then:function(){return _.Q(_.Md,{data:function(){return K.data().connectedButton}},{buttonViewModel:function(H){return _.Q(_.Af,{data:H.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.Q(_.p,{cond:function(){return!P()},
then:function(){return _.Q(_.Md,{data:function(){return K.data().notConnectedButton}},{buttonViewModel:function(H){return _.Q(_.Af,{data:H.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Ti"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.vU}});_.EP(_.$c(function(K){var X=K.data;return _.Q("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.Q("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.Q(_.Oy,{text:function(){return X().sectionTitle}})),_.Q("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.Q(_.Oy,{text:function(){return X().bodyHeader}})),_.Q("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.Q(_.Oy,{text:function(){return X().bodyText}})),_.Q(_.p,
{cond:function(){return X().attributionText},
then:function(){return _.Q("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.Q(_.Oy,{text:function(){return X().attributionText}}))}}))},"Ui"),"how-this-was-made-section-view-model",{props:{data:_.vU}});_.EP(_.$c(function(K){return _.Q("yt-video-description-youchat-section-view-model",{class:_.HO("ytVideoDescriptionYouchatSectionViewModelHost")},_.Q("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.Q(_.Oy,{text:function(){return K.data().sectionTitle}})),_.Q("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.Q(_.Oy,{text:function(){return K.data().subHeaderText}})),_.Q("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.Q(_.Af,{data:function(){return _.T(K.data().primaryButton,
_.nS)}})))},"Vi"),"yt-video-description-youchat-section-view-model",{props:{data:_.vU}});var Di=function(){var K=_.G.apply(this,arguments)||this;K.modern=_.S("kevlar_modern_sd_v2");K.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return K};
_.r(Di,_.G);_.z=Di.prototype;
_.z.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{videoDescriptionHeaderRenderer:{component:"ytd-video-description-header-renderer",properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[watchWhileSdp]]",engagementPanel:"[[engagementPanel]]"}},expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{panelContentVisible:"[[panelContentVisible]]",hasDescriptionOnly:"[[hasDescriptionOnly]]",engagementPanel:"[[engagementPanel]]",
shortsPanel:"[[shortsPanel]]"}},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{engagementPanelContent:!0}},merchandiseShelfRenderer:"ytd-merch-shelf-renderer",videoDescriptionCourseSectionRenderer:"ytd-video-description-course-section-renderer",videoDescriptionFilesSectionRenderer:"ytd-video-description-files-section-renderer",
videoDescriptionTranscriptSectionRenderer:"ytd-video-description-transcript-section-renderer",videoDescriptionFantasySectionViewModel:"ytw-video-description-fantasy-section-view-model",videoDescriptionGamingSectionRenderer:"ytd-video-description-gaming-section-renderer",videoDescriptionInfocardsSectionRenderer:{component:"ytd-video-description-infocards-section-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoDescriptionMusicSectionRenderer:{component:"ytd-video-description-music-section-renderer",
properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},errorCorrectionsSectionRenderer:"ytd-error-corrections-section-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},shelfRenderer:"ytd-shelf-renderer",courseProgressViewModel:"yt-course-progress-view-model",howThisWasMadeSectionViewModel:"how-this-was-made-section-view-model",videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoDescriptionYouchatSectionViewModel:"yt-video-description-youchat-section-view-model"}},
videoSummary:{id:"video-summary",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},merchShelf:{id:"merch-shelf",mapping:{merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",params:{watchMetadataRefresh:!0,inStructuredDescription:!0}}}}}};
_.z.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.z.dataChanged=function(){var K,X;this.hasDescriptionOnly=!(((K=this.data)==null?void 0:(X=K.items)==null?void 0:X.length)!==1||!_.T(this.data.items[0],HgF))};
_.z.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.z.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.z.autoFocusDescription=function(){var K;((K=_.i9().resolve(_.Nu(_.Iu)))==null?0:K.isKeyBoardInUse())&&this.description&&_.Vc(this.description)};
_.z.resize=function(){if(_.S("kevlar_disable_sd_resize"))this.JSC$20166_cardList&&_.iX(this.JSC$20166_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.iX(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.iX(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.z.scrollToSection=function(K){if(K=this.getSectionElement(K))_.xr(this.hostElement,"yt-scroll-to-watch-element",[K]),K.focus()};
_.z.getSectionElement=function(K){switch(K){case "infocards-item-section":var X;return(X=this.infocardsSection)!=null?X:null;case "transcript-item-section":var F;return(F=this.transcriptSection)!=null?F:null;case "how-this-was-made-section-item-section":var P;return(P=this.howThisWasMadeSection)!=null?P:null;case "files-item-section":var H;return(H=this.filesSection)!=null?H:null;default:return null}};
_.z.handleSetActiveItemAction=function(K){var X=_.T(K,wtJ),F=X&&(X==null?void 0:X.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20166_cardList;if(X&&F){K=this.currentActiveChapter;var P=this.currentActiveProblem;X=F==null?void 0:F.getItemByIndex(X.itemIndex);var H=F=!0;X&&(X.active=!0,X.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(F=K!==X,H=!1,this.currentActiveChapter=X):(X==null?void 0:X.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(F=!1,H=P!==X,this.currentActiveProblem=X));K&&F&&(K.active=!1);P&&H&&(P.active=!1)}};
_.Oi.Object.defineProperties(Di.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.S("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
Di.prototype.onYtExpanderMoreTapped=Di.prototype.onYtExpanderMoreTapped;Di.prototype.onHiddenChanged=Di.prototype.onHiddenChanged;Di.prototype.dataChanged=Di.prototype.dataChanged;Di.prototype.panelContentVisibleChanged=Di.prototype.panelContentVisibleChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Di.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Di.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Di.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.SL),_.g("design:type",Object)],Di.prototype,"ironResizableBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Di.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Boolean)],Di.prototype,"panelContentVisible",void 0);_.O([_.h(),_.g("design:type",Boolean)],Di.prototype,"hasDescriptionOnly",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Di.prototype,"inlineStructuredDescription",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Di.prototype,"hidden",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Di.prototype,"shortsPanel",void 0);_.O([_.h(),_.g("design:type",Object)],Di.prototype,"videoSummary",void 0);_.O([_.h(),_.g("design:type",Object)],Di.prototype,"merchShelf",void 0);
_.O([_.U("videoSummary"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Di.prototype,"showVideoSummary",null);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Di.prototype,"modern",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Di.prototype,"engagementPanel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Di.prototype,"watchWhileSdp",void 0);
_.O([_.fa("ytd-expandable-video-description-body-renderer"),_.g("design:type",Object)],Di.prototype,"description",void 0);_.O([_.fa("ytd-horizontal-card-list-renderer"),_.g("design:type",Object)],Di.prototype,"JSC$20166_cardList",void 0);_.O([_.fa("ytd-horizontal-card-list-renderer[center-items]"),_.g("design:type",Object)],Di.prototype,"problemWalkthroughCardList",void 0);_.O([_.fa("ytd-shelf-renderer"),_.g("design:type",Object)],Di.prototype,"shelfSection",void 0);
_.O([_.fa("ytd-video-description-music-section-renderer"),_.g("design:type",Object)],Di.prototype,"musicMetadataSection",void 0);_.O([_.fa("ytd-video-description-infocards-section-renderer"),_.g("design:type",Object)],Di.prototype,"infocardsSection",void 0);_.O([_.fa("ytd-video-description-transcript-section-renderer"),_.g("design:type",Object)],Di.prototype,"transcriptSection",void 0);
_.O([_.fa("how-this-was-made-section-view-model"),_.g("design:type",Object)],Di.prototype,"howThisWasMadeSection",void 0);_.O([_.fa("ytd-video-description-files-section-renderer"),_.g("design:type",Object)],Di.prototype,"filesSection",void 0);_.O([_.so("panelContentVisible"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Di.prototype,"panelContentVisibleChanged",null);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Di.prototype,"dataChanged",null);_.O([_.so("hidden"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Di.prototype,"onHiddenChanged",null);_.O([_.Hc("yt-expander-more-tapped"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Di.prototype,"onYtExpanderMoreTapped",null);
Di=_.O([_.v({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],Di);
_.t(Di,"ytd-structured-description-content-renderer",function(){if(vIJ!==void 0)return vIJ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return vIJ=K},{mode:2});var aU8;var tB1;var uV=function(){return _.G.apply(this,arguments)||this};
_.r(uV,_.G);uV.prototype.computeAriaLabel=function(K){var X,F;return(K==null?void 0:(X=K.accessibility)==null?void 0:(F=X.accessibilityData)==null?void 0:F.label)||_.uY("LOADING",void 0,"Loading")};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],uV.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],uV.prototype,"data",void 0);_.O([_.h({computed:"computeAriaLabel(data)"}),_.g("design:type",String)],uV.prototype,"ariaLabel",void 0);uV=_.O([_.Tb({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],uV);
_.t(uV,"yt-content-loading-renderer",function(){if(tB1===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;aU8===void 0&&(aU8=document.createElement("template"));var P=aU8;F.call(X,P.content.cloneNode(!0),K.content.firstChild);tB1=K}K=tB1;return K},{mode:_.Ig("kevlar_poly_si_batch_j043")?1:2});_.EP(_.$c(function(K){var X=_.D(_.u_(!1,void 0,"WbYeXc")),F=X.next().value,P=X.next().value;X=_.D(_.u_(!1,void 0,"msXkzc"));var H=X.next().value,f=X.next().value;_.AV(function(){var Z=_.T(K.data().collaboratePlaylistCollaborationSetting,bo8);Z&&P(Z.switchedOnByDefault);var M=_.T(K.data().allowNewCollaboratorsPlaylistCollaborationSetting,bo8);M&&f(M.switchedOnByDefault);if(!Z&&!M||!Z&&K.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")P(!0),f(!0)});
var u=function(Z){P(Z);f(Z);var M=K.data().playlistCollaborationEntityKey||"";var n=_.Gb().getState();(n=_.FF(n.entities,"playlistCollaborationEntity",M))&&(n==null?void 0:n.isCollaborative)===Z||_.Gb().dispatch(_.zl("playlistCollaborationEntity",M,Object.assign({},n,{isCollaborative:Z})))},J=function(Z){f(Z)};
return _.Q("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.Q("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.Q(_.Md,{data:function(){return K.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(Z){return _.Q(_.oIu,{data:Z.data,
onSwitch:u})}})),_.Q(_.p,{cond:F,
then:function(){return _.Q("div",null,_.Q("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.Q(_.Md,{data:function(){return K.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(Z){return _.Q(_.oIu,{data:Z.data,
onSwitch:J,overrideDisabled:!1})}})),_.Q(_.p,{cond:H,
then:function(){return _.Q("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.Q(_.Md,{data:function(){return K.data().copyLinkButton}},{buttonViewModel:_.Af}))}}),_.Q("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.Q(_.Md,{data:function(){return K.data().playlistCollaborators}},{contentListItemViewModel:_.HrG})))}}))},"Wi"),"playlist-collaboration-view-model",{props:{data:_.vU}});var $P1=_.$c(function(K){var X=K.data;var F=K.customCommandResolver;return _.Q(_.ID,null,_.Q("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.Q(_.Md,{data:function(){return X().adAvatar}},{adAvatarViewModel:function(P){return _.Q(_.uuE,{data:P.data,
customCommandResolver:F})}})),_.Q("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.Q(_.p,{cond:function(){return X().headline},
then:function(P){return _.Q(_.Oy,{text:P,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.Q("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.Q(_.Md,{data:function(){return X().adBadge}},{adBadgeViewModel:function(P){return _.Q(_.C5,{data:P.data,
hasDot:function(){return X().primaryDetailsLine!==void 0},
customCommandResolver:F,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.Q(_.Md,{data:function(){return X().primaryDetailsLine}},{adDetailsLineViewModel:function(P){return _.Q(_.N1,{data:P.data,
customCommandResolver:F,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Xi"),O6W=_.$c(function(K){var X=K.data;
var F=K.customCommandResolver;K=_.t_();_.vp(K,function(){return X().interaction},F);
_.NF(K,{visibilityCallback:function(P){var H,f=(H=X().interaction)==null?void 0:H.onFirstVisible;P&&f&&_.e9(f)},
showOption:_.OG});return _.Q("ad-avatar-lockup-view-model",{class:function(){var P;return((P=X().interaction)==null?0:P.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:K,"aria-label":function(){var P,H;return(P=X().interaction)==null?void 0:(H=P.accessibility)==null?void 0:H.label}},_.Q(_.S8,null,_.Q(_.p9,{when:function(){return X().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.Q($P1,{data:X,
customCommandResolver:F})}),_.Q(_.Bd,null,function(){return null})))},"Yi");_.EP(_.$c(function(K){var X=K.data;var F=K.panelContentVisibility;K=_.t_();_.vp(K,function(){return X().interaction},Oeo);
_.NF(K,{visibilityCallback:function(H){var f,u=(f=X().interaction)==null?void 0:f.onFirstVisible;H&&u&&_.e9(u)},
showOption:_.OG});_.ys(function(){var H,f;if(f=_.mz("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var u;f=(u=f())==null?void 0:u.onLayoutVisibleCallback}else f=null;(H=f)==null||H()});
var P=function(){return F()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.Q("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:K},_.Q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.Q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.Q(_.p,{cond:_.wtn("(min-width: "+((0,_.TA)()+_.me)+"px) or (max-width: 600px)"),then:function(){return _.Q(_.Md,{data:function(){return X().adImage}},{adImageViewModel:function(H){return _.Q(_.Ps,{data:H.data,
targetHeight:80,customCommandResolver:Oeo})}})}})),_.Q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.Q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.Q(_.Md,{data:function(){return X().adAvatarLockup}},{adAvatarLockupViewModel:function(H){return _.Q(O6W,{data:H.data,
customCommandResolver:Oeo})}})),_.Q(_.p,{cond:P,
then:function(){return _.Q(_.Md,{data:function(){return X().adButton}},{adButtonViewModel:function(H){return _.Q(_.gJ,{data:H.data,
customCommandResolver:Oeo})}})},
else:function(){return _.Q(_.Md,{data:function(){return X().menu}},{buttonViewModel:_.Af})}}),_.Q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.Q(_.Md,{data:function(){var H=_.T(X().toggleButton,_.cp);
return{toggleButtonViewModel:Object.assign({},H,{isTogglingDisabled:!0,isToggled:P()})}}},{toggleButtonViewModel:_.pS})))))},"Zi"),"panel-ad-header-image-lockup-view-model",{props:{data:_.vU,
panelContentVisibility:_.vU}});_.EP(_.$c(function(K){var X=function(){return _.T(K.data().inputComposerViewModel,Cow)},F=function(){var A;
return((A=X())==null?void 0:A.youchatPendingResponseEntityKey)||""},P=_.sy(_.rak,F),H=function(){var A;
return!((A=P())==null||!A.isPendingResponse)},f=_.D(_.u_(!0,void 0,"DR0q1d")),u=f.next().value,J=f.next().value,Z=function(){return X().sectionTargetId||"youchat_messages_section"};
f=_.$3();var M=_.t_(),n=_.sy(eYo,"chat_input_view_model_state"),c=RYV(),B=function(){var A;return!((A=n())==null||!A.value)};
_.AV(function(){var A;!B()&&((A=X())==null?0:A.welcomeFeatureContinuation)&&(A={continuationCommand:{token:X().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},_.yB(A),c(!0));var d=Z(),R;(R=_.i9().resolve(_.Nu(_.Jk)))==null||R.addEventListener("yt-navigate-start",function(){_.Zb.remove(d);c(!1)},{once:!0})});
var L=function(){var A,d,R,l,a,E,V,x,N;return _.q(function(Dl){A=M.value.value;M.value.value="";Vrv(M.value);d=gKt(Z(),A);_.yB(d);R=_.Aa5(F());_.e9(((l=X())==null?void 0:l.onSubmitCommand)||{});R(!0);E=String(Math.floor(((a=_.Ix())==null?void 0:a.getCurrentTime())||0)*1E3);x={continuationCommand:{token:(V=X())==null?void 0:V.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};N={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:A,playerOffsetMs:E}};_.yB(x,{form:{formData:N},
commandController:{onSuccess:function(){R(!1)},
onServerError:function(){var Mq=Z();_.yB({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:Mq}}]}}});R(!1)}}});
_.JT(Dl)})};
return _.Q("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:f},_.Q("div",{class:"chatInputViewModelChatInputWrapper"},_.Q("form",{class:"chatInputViewModelChatInputForm"},_.Q("textarea",{class:"chatInputViewModelChatInput",el:M,"on:keydown":_.DF(function(A){var d=H()||!1;Vrv(M.value);d||A.key!=="Enter"||A.shiftKey||(A.preventDefault(),L());return!1}),
"on:keyup":_.DF(function(){J(M.value.value.length===0);return!1}),
placeholder:function(){var A,d;var R=_.T((d=X())==null?void 0:d.inputFormField,r$W);return R==null?void 0:(A=R.contentProperties)==null?void 0:A.placeholderText},
rows:1}),_.Q(_.Af,{data:function(){return _.T(K.data().sendButton,_.nS)},
onClick:function(A){A.preventDefault();L();J(M.value.value.length===0)},
buttonOverrides:function(){return{disabled:u()||H()}}})),_.Q(_.Oy,{className:"chatInputViewModelChatDisclaimer",
text:function(){var A;return(A=_.T(K.data().disclaimer,_.mOW))==null?void 0:A.text}})))},"$i"),"yt-chat-input-view-model",{props:{data:_.vU}});var VBG=["engagement-panel-clip-create","engagement-panel-clip-view"],gI5=0,qt=function(){var K=_.G.apply(this,arguments)||this;var X;K.headerData=(X=K.data)==null?void 0:X.header;K.darkerPanels=_.S("web_watch_darker_panels");K.matchContentTheme=_.S("web_watch_panel_content_match_theme");K.disableAutoFill=!1;K.isFullscreen=!1;K.isTheaterMode=!1;K.modernPanels=_.S("kevlar_watch_modern_panels");K.liveChatReplyPanel=!1;K.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");K.disableBackdropFilter=
_.S("web_disable_backdrop_filter");K.trackEngagementPanelVisibility=_.S("web_watch_track_engagement_panel_visibility");K.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 K};
_.r(qt,_.G);_.z=qt.prototype;
_.z.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(K){var X;
return(K==null?void 0:(X=K.webComponentHint)==null?void 0:X.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.z.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var K;if((K=this.hostElement.parentElement)==null?0:K.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.z.detached=function(){this.updateTheaterDisablement()};
_.z.showPanel=function(){var K=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.A9.addJob(function(){K.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.z.maybeScrollToItemSection=function(K){var X=this,F,P=K==null?void 0:(F=K.sectionListEngagementPanelExtras)==null?void 0:F.scrollToItemSectionIdentifier;P&&_.A9.addJob(function(){var H;(H=X.sectionListRendererElement)==null||H.scrollToItemSection(P)},8)};
_.z.hidePanel=function(){var K=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.A9.addJob(function(){K.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.z.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.z.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.z.updatePanel=function(K,X,F,P){var H=this;if((K=K==null?void 0:K.engagementPanelSectionListRenderer)||P){if(K){P=K.header;var f=K.content,u=K.footer;(K=K.targetId)&&this.set("data.targetId",K);P&&this.set("data.header",P);f&&this.set("data.content",f);u&&this.set("data.footer",u)}else P&&(K=P.content,f=P.secondaryHeaderContent,(P=P.targetId)&&this.set("data.targetId",P),K&&this.set("data.content",K),f&&(this.secondaryHeaderData=f));this.updateChildVisibilityProperties();if(X){var J;_.S("kevlar_update_panel_focus_scroll_killswitch")||
(J={preventScroll:!0});this.focus(J)}_.tg(this,function(){_.iX(H.hostElement,"yt-refit");H.maybeScrollToItemSection(F)})}};
_.z.computeHeaderData=function(){var K,X=(0,_.T8.unsafeClone)((K=this.data)==null?void 0:K.header);if(X){K=new _.b(Object.keys(X)[0]);var F=_.T(X,K),P=_.T(this.secondaryHeaderData,K);P&&_.LB(X,K,Object.assign({},P,F))}return X};
_.z.getReloadContinuation=function(){var K,X,F,P=_.D(((K=this.data)==null?void 0:(X=K.content)==null?void 0:(F=X.sectionListRenderer)==null?void 0:F.continuations)||[]);for(K=P.next();!K.done;K=P.next())if(K=K.value,K.reloadContinuationData)return K.reloadContinuationData.continuation};
_.z.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var K;((K=this.data)==null?0:K.targetId)&&(K=this.contentElement.firstElementChild)&&K.setAttribute("panel-target-id",this.data.targetId)};
_.z.forwardPopupClosedToFlowRootRenderer=function(){var K=_.C$(this.hostElement).querySelector("ytd-flow-root-renderer");if(K)K.onPopupClosed()};
_.z.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var K=_.S("web_watch_imax_theater_mode")&&this.isTheaterMode;K=_.S("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||K;if(_.S("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||K){var X;this.visibility=
(X=this.data)==null?void 0:X.visibility;var F;this.trackEngagementPanelVisibility&&((F=this.data)==null?void 0:F.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var P,H,f,u;this.contentEmpty=!!(((P=this.data)==null?0:(H=P.content)==null?0:H.structuredDescriptionContentRenderer)&&Object.keys((f=this.data)==null?void 0:(u=f.content)==null?void 0:u.structuredDescriptionContentRenderer).length===0);(X=_.i9().resolve(_.cR))&&X.registerPanel(this.getIdentifier(),
this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.z.isTheaterModeChanged=function(){_.S("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.z.isFullscreenChanged=function(){_.S("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.z.focus=function(K){if(this.header)this.header.focus(K);else{var X;(X=_.C$(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||X.focus(K)}};
_.z.visibilityChanged=function(){if(!_.S("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var K=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",X=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",F=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",P=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",H=P||!this.lastVisibility,f,u,J=(f=this.data)==null?void 0:(u=f.identifier)==null?void 0:u.tag,
Z;if(((Z=this.data)==null?0:Z.onShowCommands)&&K&&H)_.X0(this.hostElement,this.data.onShowCommands,this.hostElement),J&&_.aA().dispatch(_.iY({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:J}}));else{var M;((M=this.data)==null?0:M.onHideCommands)&&X&&F&&(_.X0(this.hostElement,this.data.onHideCommands,this.hostElement),J&&_.aA().dispatch(_.iY({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:J}})))}K&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*gI5++));_.S("kevlar_watch_focus_on_engagement_panels")&&
K&&P&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.z.notifyVisibilityChanged=function(K){var X;_.IJ(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,K,(X=this.data)==null?void 0:X.targetId])};
_.z.updateTheaterDisablement=function(){if(!_.S("kevlar_watch_theater_disablement_killswitch")){var K=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&VBG.includes(K)&&!_.S("watch_next_grid_ignore_disallowed_panels")){var X=_.wV(_.aA().getState()),F=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";K!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():F?(this.originalTheaterState===void 0&&(this.originalTheaterState=X,this.theaterDisablementPanelIdentifier=
K),X&&_.xr(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.z.clearTheaterDisablement=function(){_.xr(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.z.updateChildVisibilityProperties=function(){this.hostElement||_.S("kevlar_panel_property_init_killswitch")||this._enableProperties();var K=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=K);var X,F=(X=this.headerElement)==null?void 0:X.firstElementChild;if(F&&!this.adHeaderImageLockupViewModel){X=K==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";F.collapsed=X;F=_.C$(F).querySelector("#visibility-button");if(!F)return;(F=F.firstElementChild)&&
F.polymerController.is==="ytd-toggle-button-renderer"&&F.polymerController.data.isToggled!==X&&F.polymerController.set("data.isToggled",X)}var P;if(X=(P=this.contentElement)==null?void 0:P.firstElementChild)if(K&&K!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")X.removeAttribute("panel-content-visible");else{X.setAttribute("panel-content-visible","");var H;(H=X.markDirty)==null||H.call(X)}};
_.z.onYtChangeEngagementPanelVisibilityAction=function(K){var X=this,F,P=(F=this.data)==null?void 0:F.targetId,H,f,u;F=((H=this.data)==null?void 0:(f=H.identifier)==null?void 0:f.tag)||((u=this.data)==null?void 0:u.panelIdentifier);var J=_.T(K,_.$LC),Z;K=P&&(J==null?void 0:J.targetId)===P||F&&(J==null?void 0:(Z=J.panelIdentifier)==null?void 0:Z.tag)===F;this.dialog&&K&&(J==null?void 0:J.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(P==="engagement-panel-comments-section"?_.xr(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.xr(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",F]));!_.S("kevlar_use_engagement_panel_management_component")&&K&&(P=J.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!P?_.A9.addJob(function(){X.visibility=J.visibility},2,this.hideDelayMs):this.visibility=J.visibility,J.visibility&&this.notifyVisibilityChanged(J.visibility))};
_.z.onYtScrollToEngagementPanelCommand=function(K){var X,F=(X=this.data)==null?void 0:X.targetId,P,H,f;X=((P=this.data)==null?void 0:(H=P.identifier)==null?void 0:H.tag)||((f=this.data)==null?void 0:f.panelIdentifier);K=_.T(K,_.ktU);var u;(F&&(K==null?void 0:K.targetId)===F||X&&(K==null?void 0:(u=K.panelIdentifier)==null?void 0:u.tag)===X)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.xr(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.z.attachVEs=function(K){var X,F;(K==null?0:(X=K.content)==null?0:(F=X.productListRenderer)==null?0:F.trackingParams)&&_.uH().graftServerVe(K.content.productListRenderer.trackingParams);var P,H;(K==null?0:(P=K.content)==null?0:(H=P.transcriptRenderer)==null?0:H.trackingParams)&&_.uH().graftServerVe(K.content.transcriptRenderer.trackingParams)};
_.z.onYtUpdateEngagementPanelAction=function(K){var X,F=(X=this.data)==null?void 0:X.targetId;K=_.T(K,WpW);F&&(K==null?void 0:K.targetId)===F&&(this.updatePanel({engagementPanelSectionListRenderer:{header:K==null?void 0:K.header,content:K==null?void 0:K.content}},!1),this.attachVEs(K))};
_.z.onYtShowEngagementPanelScrimAction=function(K){var X,F=(X=this.data)==null?void 0:X.targetId;K=_.T(K,y$G);F&&(K==null?void 0:K.engagementPanelTargetId)===F&&(this.scrimmed=!0)};
_.z.onYtHideEngagementPanelScrimAction=function(K){var X,F=(X=this.data)==null?void 0:X.targetId;K=_.T(K,jHw);F&&(K==null?void 0:K.engagementPanelTargetId)===F&&(this.scrimmed=!1)};
_.z.getIdentifier=function(){var K,X,F;return((K=this.data)==null?void 0:K.panelIdentifier)||((X=this.data)==null?void 0:(F=X.identifier)==null?void 0:F.tag)};
_.z.getSurface=function(){var K,X;return(K=this.data)==null?void 0:(X=K.identifier)==null?void 0:X.surface};
_.Oi.Object.defineProperties(qt.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var K=this.getIdentifier();return K==="engagement-panel-youchat"||K==="PAyouchat"}}});
qt.prototype.visibilityChanged=qt.prototype.visibilityChanged;qt.prototype.isFullscreenChanged=qt.prototype.isFullscreenChanged;qt.prototype.isTheaterModeChanged=qt.prototype.isTheaterModeChanged;qt.prototype.dataChanged=qt.prototype.dataChanged;qt.prototype.forwardPopupClosedToFlowRootRenderer=qt.prototype.forwardPopupClosedToFlowRootRenderer;qt.prototype.onYtRendererstamperFinished=qt.prototype.onYtRendererstamperFinished;
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],qt.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],qt.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],qt.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],qt.prototype,"ytEventForwardingBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],qt.prototype,"data",void 0);
_.O([_.h({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.g("design:type",Object)],qt.prototype,"headerData",void 0);_.O([_.h(),_.g("design:type",Object)],qt.prototype,"secondaryHeaderData",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],qt.prototype,"visibility",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],qt.prototype,"contentEmpty",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],qt.prototype,"scrimmed",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],qt.prototype,"dialog",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],qt.prototype,"dropdown",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],qt.prototype,"darkerPanels",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],qt.prototype,"matchContentTheme",void 0);_.O([_.h(),_.g("design:type",Object)],qt.prototype,"disableAutoFill",void 0);
_.O([_.h({reflectToAttribute:!0,value:_.S("optimal_reading_width_comments_ep")}),_.g("design:type",Boolean)],qt.prototype,"optimalReadingWidthComments",void 0);_.O([_.h(),_.g("design:type",Number)],qt.prototype,"hideDelayMs",void 0);_.O([_.h({selector:_.yW,reflectToAttribute:!0}),_.g("design:type",Object)],qt.prototype,"isFullscreen",void 0);_.O([_.h({selector:_.wV,reflectToAttribute:!0}),_.g("design:type",Object)],qt.prototype,"isTheaterMode",void 0);
_.O([_.h(),_.g("design:type",Number)],qt.prototype,"showDelayMs",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("data.targetId"),_.g("design:type",Object),_.g("design:paramtypes",[])],qt.prototype,"targetId",null);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],qt.prototype,"webSize",null);_.O([_.h(),_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],qt.prototype,"hideFooterBorder",null);
_.O([_.h(),_.g("design:type",Object)],qt.prototype,"isWatch",void 0);_.O([_.h(),_.g("design:type",Object)],qt.prototype,"originalTheaterState",void 0);_.O([_.h(),_.g("design:type",Object)],qt.prototype,"theaterDisablementPanelIdentifier",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],qt.prototype,"modernPanels",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],qt.prototype,"isWatchWhilePanel",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],qt.prototype,"shortsPanel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],qt.prototype,"liveChatEngagementPanel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],qt.prototype,"liveChatReplyPanel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],qt.prototype,"enableAnchoredPanel",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],qt.prototype,"disableBackdropFilter",void 0);_.O([_.h(),_.g("design:type",Object)],qt.prototype,"trackEngagementPanelVisibility",void 0);_.O([_.fa("#header"),_.g("design:type",HTMLElement)],qt.prototype,"headerElement",void 0);_.O([_.fa("#header > *"),_.g("design:type",HTMLElement)],qt.prototype,"header",void 0);_.O([_.fa("ytd-section-list-renderer"),_.g("design:type",Object)],qt.prototype,"sectionListRendererElement",void 0);
_.O([_.fa("panel-ad-header-image-lockup-view-model"),_.g("design:type",HTMLElement)],qt.prototype,"adHeaderImageLockupViewModel",void 0);_.O([_.fa("#content"),_.g("design:type",HTMLElement)],qt.prototype,"contentElement",void 0);_.O([_.Hc("yt-rendererstamper-finished"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],qt.prototype,"onYtRendererstamperFinished",null);
_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],qt.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.O([_.JA("data","isFullscreen","isTheaterMode"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],qt.prototype,"dataChanged",null);_.O([_.so("isTheaterMode"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],qt.prototype,"isTheaterModeChanged",null);
_.O([_.so("isFullscreen"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],qt.prototype,"isFullscreenChanged",null);_.O([_.so("visibility"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],qt.prototype,"visibilityChanged",null);qt=_.O([_.v({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],qt);
_.t(qt,"ytd-engagement-panel-section-list-renderer",function(){if(Qo8!==void 0)return Qo8;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return Qo8=K},{mode:_.Ig("kevlar_poly_si_batch_j028")?1:2});var EIV;var Ji=function(){var K=_.G.apply(this,arguments)||this;K.lastRenderedPanelIds=new Set;K.visiblePanels=[];K.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return K};
_.r(Ji,_.G);_.z=Ji.prototype;_.z.dataChanged=function(){if(this.data){for(var K=[],X=_.D(this.data),F=X.next();!F.done;F=X.next()){F=F.value;var P=void 0,H=void 0,f=(P=F)==null?void 0:(H=P.engagementPanelSectionListRenderer)==null?void 0:H.visibility;H=P=void 0;((P=F)==null?0:(H=P.engagementPanelSectionListRenderer)==null?0:H.targetId)&&f!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&K.push(F)}this.visiblePanels=K}else this.visiblePanels=[]};
_.z.configureRendererStamper=function(){return{visiblePanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0},properties:{hideDelayMs:"[[hideDelayMs]]",isWatchWhilePanel:"[[isWatchWhilePanel]]"}}},reuseComponents:!1}}};
_.z.withoutVisiblePanelById=function(K){return this.visiblePanels.filter(function(X){var F;return((F=X.engagementPanelSectionListRenderer)==null?void 0:F.targetId)!==K})};
_.z.onYtChangeEngagementPanelVisibilityAction=function(K){var X=this,F=_.T(K,_.$LC);if(this.data&&(F==null?0:F.targetId)&&(F==null?0:F.visibility)){var P,H=(P=this.data.find(function(u){var J;return((J=u.engagementPanelSectionListRenderer)==null?void 0:J.targetId)===F.targetId}))==null?void 0:P.engagementPanelSectionListRenderer;
if(H){var f=this.withoutVisiblePanelById(F.targetId);F.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(K=this.data.find(function(u){var J;return((J=u.engagementPanelSectionListRenderer)==null?void 0:J.targetId)===F.targetId}))&&(f=[K].concat(_.LZ(f)));
this.hideDelayMs&&F.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&f.length===0?_.A9.addJob(function(){H.visibility=F.visibility;X.visiblePanels=f},10,this.hideDelayMs):(H.visibility=F.visibility,this.visiblePanels=f);
_.IJ(this.hostElement,"yt-engagement-panels-visible-changed",[f])}}};
_.z.onRendererstamperFinished=function(){var K=new Set(this.visiblePanels.map(function(X){var F;return(F=X.engagementPanelSectionListRenderer)==null?void 0:F.targetId}));
this.handlePanelVisibilityChange(K,this.lastRenderedPanelIds);this.lastRenderedPanelIds=K};
_.z.handlePanelVisibilityChange=function(K,X){K=K===void 0?new Set:K;X=X===void 0?new Set:X;if(this.data)for(var F=_.D(this.data),P=F.next();!P.done;P=F.next()){P=P.value;var H=void 0,f=void 0,u=(H=P)==null?void 0:(f=H.engagementPanelSectionListRenderer)==null?void 0:f.targetId;if(u&&(H=X.has(u),f=K.has(u),u=void 0,!H&&f?(f=H=void 0,u=(H=P)==null?void 0:(f=H.engagementPanelSectionListRenderer)==null?void 0:f.onShowCommands):H&&!f&&(f=H=void 0,u=(H=P)==null?void 0:(f=H.engagementPanelSectionListRenderer)==
null?void 0:f.onHideCommands),u))for(P=_.D(u),u=P.next();!u.done;u=P.next())this.ytComponentBehavior.resolveCommand(u.value)}};
Ji.prototype.onRendererstamperFinished=Ji.prototype.onRendererstamperFinished;Ji.prototype.dataChanged=Ji.prototype.dataChanged;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Ji.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Ji.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Ji.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Ji.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Ji.prototype,"lastRenderedPanelIds",void 0);_.O([_.h(),_.g("design:type",Number)],Ji.prototype,"hideDelayMs",void 0);_.O([_.h(),_.g("design:type",Array)],Ji.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Array)],Ji.prototype,"visiblePanels",void 0);_.O([_.h(),_.g("design:type",Boolean)],Ji.prototype,"isWatchWhilePanel",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ji.prototype,"dataChanged",null);_.O([_.Hc("yt-rendererstamper-finished"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ji.prototype,"onRendererstamperFinished",null);Ji=_.O([_.v({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],Ji);
_.t(Ji,"ytd-watch-engagement-panels",function(){if(EIV!==void 0)return EIV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return EIV=K},{mode:1});var b6F;var Zi=function(){return _.G.apply(this,arguments)||this};
_.r(Zi,_.G);Zi.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.v$(_.C$(this.hostElement).querySelector("#text"),_.xty(_.K4t,this.data.companionLegalText))};
Zi.prototype.computeAutoScrollEnabled=function(K,X){return K&&!X};
Zi.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
Zi.prototype.onToggleTap=function(){this.expanded=!this.expanded};
Zi.prototype.expandedChanged=Zi.prototype.expandedChanged;Zi.prototype.dataChanged=Zi.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Zi.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.Vzv),_.g("design:type",Object)],Zi.prototype,"ytdAutoScrollBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Zi.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],Zi.prototype,"expanded",void 0);
_.O([_.h({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.g("design:type",Boolean)],Zi.prototype,"autoScrollEnabled",void 0);_.O([_.h(),_.g("design:type",String)],Zi.prototype,"expanderIcon",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Zi.prototype,"dataChanged",null);
_.O([_.so("expanded"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Zi.prototype,"expandedChanged",null);Zi=_.O([_.v({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],Zi);
_.t(Zi,"ytd-companion-legal-text-renderer",function(){if(b6F!==void 0)return b6F;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return b6F=K},{mode:1});var Cno;var YZ=function(){var K=_.G.apply(this,arguments)||this;K.buttonUpdate=_.S("web_modern_buttons");K.kevlarWatchGrid=_.S("kevlar_watch_grid");K.centerAlignDescription=_.S("action_companion_center_align_description");K.truncateDomain=_.S("action_companion_truncate_domain");return K};
_.r(YZ,_.G);_.z=YZ.prototype;_.z.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.z.getOnLayoutVisibleCallback=function(){var K=_.mz("yt.www.ads.eventcache.getLastCompanionData");return K?(K=K())&&K.onLayoutVisibleCallback:null};
_.z.getLayoutId=function(){var K=_.mz("yt.www.ads.eventcache.getLastCompanionData");return K?(K=K())&&K.layoutId:null};
_.z.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",YZ.JSC$20213_DEFAULT_AD_BADGE_RENDERER);var K=this.getOnLayoutVisibleCallback();K&&K()}};
_.z.getButtonRenderer=function(K){return K.actionButton&&_.T(K.actionButton,_.jg)?(delete _.T(K.actionButton,_.jg).navigationEndpoint,_.T(K.actionButton,_.jg)):{}};
_.z.onClick=function(K){var X=this;if((!_.S("web_modern_buttons")||!_.lC(_.lN(K),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){K=_.$f();var F=this.getLayoutId();K&&F&&_.S("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?K.getPlayerPromise().then(function(P){(new _.Z5(P)).executeCommand(X.data.navigationEndpoint,F)}):_.S("kevlar_companion_resolve_command_killswitch")?_.iX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.xr(this.hostElement,"yt-companion-ad-clicked",["action-companion",F])}};
_.Oi.Object.defineProperties(YZ.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return((K=this.data)==null?0:(X=K.detailsLine)==null?0:(F=X.adRating)==null?0:F.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 K,X,F,P;return((K=this.data)==null?0:(X=K.detailsLine)==null?0:(F=X.adRating)==null?0:(P=F.ratingIcon)==null?0:P.iconType)?_.Fl(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var K,X,F,P;return((K=this.data)==null?0:(X=K.detailsLine)==null?0:(F=X.texts)==null?0:(P=F[0])==null?0:P.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 K,X;return((K=this.data)==null?0:(X=K.description)==null?0:X.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var K=_.mz("yt.www.ads.eventcache.getLastCompanionData");return K?(K=K())&&K.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var K=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return K?K.indexOf("/default_banner")!==-1:!0}}});
YZ.prototype.onClick=YZ.prototype.onClick;YZ.prototype.dataChanged=YZ.prototype.dataChanged;YZ.JSC$20213_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.uY("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],YZ.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],YZ.prototype,"rendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],YZ.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],YZ.prototype,"buttonUpdate",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],YZ.prototype,"kevlarWatchGrid",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],YZ.prototype,"centerAlignDescription",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],YZ.prototype,"truncateDomain",void 0);
_.O([_.h({computed:"computeButtonOverride(buttonUpdate)"}),_.g("design:type",Object)],YZ.prototype,"buttonOverride",void 0);_.O([_.U("data.detailsLine.adRating.ratingText"),_.g("design:type",Object),_.g("design:paramtypes",[])],YZ.prototype,"getRating",null);_.O([_.U("getRating"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],YZ.prototype,"computeRatingHidden",null);
_.O([_.U("data.detailsLine.adRating.ratingIcon.iconType"),_.g("design:type",Object),_.g("design:paramtypes",[])],YZ.prototype,"iconType",null);_.O([_.U("data.detailsLine.texts.0.text"),_.g("design:type",Object),_.g("design:paramtypes",[])],YZ.prototype,"getDetailsLine",null);_.O([_.U("getDetailsLine"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],YZ.prototype,"computeDetailsLineHidden",null);
_.O([_.U("data.description.text"),_.g("design:type",Object),_.g("design:paramtypes",[])],YZ.prototype,"getDescriptionText",null);_.O([_.U("getDescriptionText"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],YZ.prototype,"computeDescriptionTextHidden",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],YZ.prototype,"interactionLoggingClientData",null);
_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],YZ.prototype,"hideBanner",null);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],YZ.prototype,"dataChanged",null);_.O([_.Hc("click"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],YZ.prototype,"onClick",null);YZ=_.O([_.v({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],YZ);
_.t(YZ,"ytd-action-companion-ad-renderer",function(){if(Cno!==void 0)return Cno;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return Cno=K},{mode:_.Ig("kevlar_poly_si_batch_j067")?1:2});var Niv;var i68;var Qp=function(){var K=_.G.apply(this,arguments)||this;K.buttonUpdate=_.S("web_modern_buttons");K.hideLegacyBanner=_.S("enable_dsa_one_click_ata_translators_infeed_elements");K.adInfoButtonStyle="mono";K.adInfoButtonType="text";K.noDotAdBadge=!0;return K};
_.r(Qp,_.G);_.z=Qp.prototype;_.z.getOnLayoutVisibleCallback=function(){var K=_.mz("yt.www.ads.eventcache.getLastCompanionData");return K?(K=K())&&K.onLayoutVisibleCallback:null};
_.z.getLayoutId=function(){var K=_.mz("yt.www.ads.eventcache.getLastCompanionData");return K?(K=K())&&K.layoutId:null};
_.z.dataChanged=function(){if(this.data){if(this.data.image&&this.data.image.thumbnail&&this.data.image.thumbnail.thumbnails&&this.data.image.thumbnail.thumbnails.length){var K=this.data.image.thumbnail.thumbnails[0];this.imageSrc=K.url?_.ps(K.url):void 0;this.imageWidth=K.width||0;this.imageHeight=K.height||0}this.data.clickthroughEndpoint&&_.T(this.data.clickthroughEndpoint,_.mc)&&(K=_.T(this.data.clickthroughEndpoint,_.mc).url,_.S("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
K||"":K?(K=_.ps(K),this.clickThroughUrl=_.Qz(K)):this.clickThroughUrl=void 0);(K=this.getOnLayoutVisibleCallback())&&K()}};
_.z.onClick=function(K){_.lC(_.lN(K),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(K)};
_.z.handleClick=function(){var K=this;this.data&&this.data.clickthroughEndpoint&&(_.iX(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(X){K.macroReplacementBehavior.sendServiceRequestAction([X])}),_.xr(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.z.onLoad=function(){_.IJ(this.hostElement,"yt-refit-popups-action")};
_.Oi.Object.defineProperties(Qp.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var K=_.mz("yt.www.ads.eventcache.getLastCompanionData");return K?(K=K())&&K.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var K=_.mz("yt.www.ads.eventcache.getLastCompanionData");return K?(K=K())&&K.interactionLoggingClientData:null}}});
Qp.prototype.onLoad=Qp.prototype.onLoad;Qp.prototype.onClick=Qp.prototype.onClick;Qp.prototype.dataChanged=Qp.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Qp.prototype,"rendererBehavior",void 0);_.O([_.W(LU1.YtMacroReplacementBehavior),_.g("design:type",Object)],Qp.prototype,"macroReplacementBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Qp.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Qp.prototype,"buttonUpdate",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Qp.prototype,"hideLegacyBanner",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Qp.prototype,"adInfoButtonStyle",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Qp.prototype,"adInfoButtonType",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],Qp.prototype,"macros",null);
_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],Qp.prototype,"interactionLoggingClientData",null);_.O([_.h(),_.g("design:type",String)],Qp.prototype,"clickThroughUrl",void 0);_.O([_.h(),_.g("design:type",_.Jo)],Qp.prototype,"imageSrc",void 0);_.O([_.h(),_.g("design:type",Number)],Qp.prototype,"imageWidth",void 0);_.O([_.h(),_.g("design:type",Number)],Qp.prototype,"imageHeight",void 0);_.O([_.h(),_.g("design:type",Object)],Qp.prototype,"noDotAdBadge",void 0);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Qp.prototype,"dataChanged",null);_.O([_.Hc("click"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],Qp.prototype,"onClick",null);_.O([_.Hc("load"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Qp.prototype,"onLoad",null);Qp=_.O([_.v({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],Qp);
_.t(Qp,"ytd-image-companion-renderer",function(){if(i68!==void 0)return i68;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return i68=K},{mode:_.Ig("kevlar_poly_si_batch_j067")?1:2});var xP5;var Mt=function(){return _.G.apply(this,arguments)||this};
_.r(Mt,_.G);_.z=Mt.prototype;_.z.dataChanged=function(){this.set("data.adBadge",Mt.JSC$20222_DEFAULT_AD_BADGE_RENDERER);if(this.data){var K=this.getOnLayoutVisibleCallback();K&&K()}};
_.z.getOnLayoutVisibleCallback=function(){var K=_.mz("yt.www.ads.eventcache.getLastCompanionData");return K?(K=K())&&K.onLayoutVisibleCallback:null};
_.z.getLayoutId=function(){var K=_.mz("yt.www.ads.eventcache.getLastCompanionData");return K?(K=K())&&K.layoutId:null};
_.z.onCompanionClicked=function(K){this.data&&(K.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.xr(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.z.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var K=_.$f(),X=this.getLayoutId(),F=this.data.clickToAdvSiteEndpoint;K&&X&&_.S("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?K.getPlayerPromise().then(function(P){(new _.Z5(P)).executeCommand(F,X)}):_.iX(this.hostElement,"yt-navigate",{endpoint:F})}};
_.z.sendTrackingPings=function(K){if(K&&K.length!==0&&K[0].loggingUrls&&(K=K[0].loggingUrls.map(this.getBaseUrl)))for(var X=0;X<K.length;X++)_.m3(K[X])};
_.z.getBaseUrl=function(K){return K.baseUrl||""};
_.Oi.Object.defineProperties(Mt.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var K=_.mz("yt.www.ads.eventcache.getLastCompanionData");return K?(K=K())&&K.interactionLoggingClientData:null}}});
Mt.prototype.onCompanionClicked=Mt.prototype.onCompanionClicked;Mt.prototype.dataChanged=Mt.prototype.dataChanged;Mt.JSC$20222_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.uY("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Mt.prototype,"data",void 0);_.O([_.fa("#title"),_.g("design:type",HTMLElement)],Mt.prototype,"shopTitle",void 0);
_.O([_.JA("data.impressionEndpoints"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Mt.prototype,"dataChanged",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],Mt.prototype,"interactionLoggingClientData",null);_.O([_.Hc("yt-navigate"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],Mt.prototype,"onCompanionClicked",null);
Mt=_.O([_.v({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],Mt);
_.t(Mt,"ytd-shopping-companion-renderer",function(){if(xP5!==void 0)return xP5;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return xP5=K},{mode:1});_.EP(_.$c(function(K){var X=K.data;var F=_.t_();_.vp(F,function(){return X().interaction},EKs);
_.NF(F,{visibilityCallback:function(P){var H,f=(H=X().interaction)==null?void 0:H.onFirstVisible;P&&f&&_.e9(f)},
showOption:_.OG});_.ys(function(){var P,H;H=(H=_.mz("yt.www.ads.eventcache.getLastCompanionData"))?(H=H())&&H.onLayoutVisibleCallback:null;(P=H)==null||P()});
return _.Q("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.DF(function(){_.IJ(F.value,"yt-refit-popups-action")}),
el:F,"aria-label":function(){var P,H;return(P=X().interaction)==null?void 0:(H=P.accessibility)==null?void 0:H.label}},_.Q("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.Q(_.Md,{data:function(){return X().adImage}},{adImageViewModel:function(P){return _.Q(_.Ps,{data:P.data,
targetHeight:80,customCommandResolver:EKs})}})),_.Q("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.Q("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.Q(_.Md,{data:function(){return X().adBadge}},{adBadgeViewModel:function(P){return _.Q(_.C5,{data:P.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.Q("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.Q(_.Md,{data:function(){return X().menu}},{buttonViewModel:_.Af}))))},"aj"),"banner-image-layout-view-model",{props:{data:_.vU}});_.EP(_.$c(function(K){var X=K.data;K=_.t_();_.vp(K,function(){return X().interaction},be1);
_.NF(K,{visibilityCallback:function(F){var P,H=(P=X().interaction)==null?void 0:P.onFirstVisible;F&&H&&_.e9(H)},
showOption:_.OG});_.ys(function(){var F,P;P=(P=_.mz("yt.www.ads.eventcache.getLastCompanionData"))?(P=P())&&P.onLayoutVisibleCallback:null;(F=P)==null||F()});
return _.Q("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:K},_.Q("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.Q(_.Md,{data:function(){return X().adImage}},{adImageViewModel:function(F){return _.Q(_.Ps,{data:F.data,
targetHeight:80,customCommandResolver:be1})}})),_.Q("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.Q("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.Q(_.Md,{data:function(){return X().adAvatarLockup}},{adAvatarLockupViewModel:function(F){return _.Q(O6W,{data:F.data,
customCommandResolver:be1})}})),_.Q(_.Md,{data:function(){return X().adButton}},{adButtonViewModel:function(F){return _.Q(_.gJ,{data:F.data,
customCommandResolver:be1})}}),_.Q("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.Q(_.Md,{data:function(){return X().menu}},{buttonViewModel:_.Af}))))},"bj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.vU}});var IUV={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"},n2=function(){var K=_.G.apply(this,arguments)||this;K.updateCompanionDataJobId=0;K.contentVideoId=null;K.player=null;K.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return K};
_.r(n2,_.G);_.z=n2.prototype;_.z.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:IUV}}};
_.z.attached=function(){var K=this,X=_.$f();X&&X.getPlayerPromise().then(function(F){K.getCachedDataAndListen(F)})};
_.z.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.z.updateRendererStamper=function(){var K={};if(this.data)for(var X in IUV)if(this.data[X]){K[X]=this.data[X];break}if(this.oneofRenderer!=void 0||Object.keys(K).length)this.oneofRenderer=K};
_.z.getCachedDataAndListen=function(K){var X=this.retrieveCachedCompanionData();X&&Object.keys(X).length&&this.receiveCompanionData(X);this.ytPlayerListenerBehavior.listenToPlayerEvent(K,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=K};
_.z.retrieveCachedCompanionData=function(){return _.FP.yt&&_.FP.yt.www&&_.FP.yt.www.ads&&_.FP.yt.www.ads.eventcache&&_.FP.yt.www.ads.eventcache.getLastCompanionData?_.FP.yt.www.ads.eventcache.getLastCompanionData():null};
_.z.receiveCompanionData=function(K){K&&Object.keys(K).length?(this.contentVideoId=K.contentVideoId,this.setCompanionData(K)):this.setCompanionData(K)};
_.z.setCompanionData=function(K){this.cancelPendingCompanionAdJobs();if(K){this.updateCompanionDataJobId=0;for(var X in IUV)IUV.hasOwnProperty(X)&&(this.data[X]=void 0);K.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",K.shoppingCompanionCarouselRenderer):K.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",K.imageCompanionAdRenderer):K.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",K.actionCompanionAdRenderer),_.IJ(this.hostElement,
"yt-hide-unlimited-offer-module"),_.IJ(this.hostElement,"yt-hide-tvfilm-offer-module")):K.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",K.bannerImageLayoutViewModel):K.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",K.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.z.dataChanged=function(){var K=this,X=_.$f();X?X.getPlayerPromise().then(function(F){K.contentVideoId&&F.getVideoUrl().includes("v="+K.contentVideoId)||(K.cancelPendingCompanionAdJobs(),K.updateRendererStamper())}):_.Gr(Error("em"))};
_.z.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.A9.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.z.handleCompanionAdClicked=function(K,X){this.player.onAdUxClicked(K,X);this.player.pauseVideo()};
n2.prototype.dataChanged=n2.prototype.dataChanged;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],n2.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],n2.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],n2.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],n2.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.W(_.ld.YtPlayerListenerBehavior),_.g("design:type",_.vC)],n2.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],n2.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],n2.prototype,"oneofRenderer",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],n2.prototype,"dataChanged",null);n2=_.O([_.v({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],n2);
_.t(n2,"ytd-companion-slot-renderer",function(){if(Niv!==void 0)return Niv;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return Niv=K},{mode:_.Ig("kevlar_poly_si_batch_j067")?
1:2});var kNG;var c4=function(){return _.G.apply(this,arguments)||this};
_.r(c4,_.G);c4.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
c4.prototype.dataChanged=c4.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],c4.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],c4.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],c4.prototype,"companionSlotData",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],c4.prototype,"dataChanged",null);
c4=_.O([_.v({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],c4);
_.t(c4,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(kNG!==void 0)return kNG;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return kNG=K},{mode:1});var KCd;var p2=function(){var K=_.G.apply(this,arguments)||this;K.skinnyMode=!1;K.COMPACT_EVENT_COUNT=4;K.onShelfToggleButtonTap=function(){K.logTap(K.data);K.showingMore=!K.showingMore};
K.onShelfToggleButtonFocus=function(){K.showingMore||(K.logTap(K.data),K.showingMore=!0,_.tg(K,function(){var X=K.COMPACT_EVENT_COUNT-1,F;(F=_.C$(K.hostElement).querySelector("#event-"+X))==null||F.focus()}))};
return K};
_.r(p2,_.G);_.z=p2.prototype;_.z.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.z.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.z.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.Pc(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.Pc(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.Pc(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.Pc(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.Pc(this.infoTooltip,this.infoTooltip.hide))};
_.z.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.Pc(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.Pc(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.Pc(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.Pc(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.Pc(this.infoTooltip,this.infoTooltip.hide))};
_.z.dataChanged=function(){this.firstEvent=this.get("data.events.0.ticketEventRenderer");this.data&&this.data.events&&(this.canShowMore=this.data.events.length>this.COMPACT_EVENT_COUNT,this.separator.style.visibility=this.data.events.length>1?"visible":"hidden");this.showingMore=!1;this.showingMoreChanged(!1)};
_.z.onShowingMoreChanged=function(){var K;this.showingMoreChanged((K=this.showingMore)!=null?K:!1)};
_.z.showingMoreChanged=function(K){var X=this.get("data.events")||[];this.set("restEvents",X.slice(1,K?X.length:this.COMPACT_EVENT_COUNT).map(function(F){return F.ticketEventRenderer}));
X.slice(0,K?X.length:this.COMPACT_EVENT_COUNT).forEach(function(F){var P=_.AD();F=F.ticketEventRenderer.trackingParams;_.r_()&&P&&F&&(F=_.QB(F),P&&_.mb(P,F))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.z.computeAriaLabel=function(K){return K.subtitle1+", "+K.subtitle2};
_.z.logTap=function(K){_.r_()&&this.ytRendererBehavior.logExplicitClick(K)};
_.z.isKeyboardAction=function(K){return this.get("detail.x",K)===0&&this.get("detail.y",K)===0};
_.z.onFirstEventTap=function(K){K.target&&this.handleTap(K.target,this.firstEvent,this.isKeyboardAction(K))};
_.z.onTicketLinkTap=function(K){K.target&&this.handleTap(K.target,K.model.item,this.isKeyboardAction(K))};
_.z.handleTap=function(K,X,F){if(X.buttonCommand)if(X.hasMultipleOffers)Object.assign(_.T(X.buttonCommand,_.pz),{properties:{source:F?"keyboard":"tap"}}),this.logTap(X),this.popupPositionTarget=K,_.X0(this.hostElement,[X.buttonCommand],this.hostElement);else{var P;if((P=_.T(X.buttonCommand,_.mc))==null?0:P.url)this.logTap(X),_.ei(window,_.T(X.buttonCommand,_.mc).url)}};
p2.prototype.onShowingMoreChanged=p2.prototype.onShowingMoreChanged;p2.prototype.dataChanged=p2.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],p2.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],p2.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],p2.prototype,"firstEvent",void 0);_.O([_.h(),_.g("design:type",Object)],p2.prototype,"restEvents",void 0);_.O([_.h(),_.g("design:type",String)],p2.prototype,"imageUrl",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],p2.prototype,"showingMore",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],p2.prototype,"canShowMore",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],p2.prototype,"skinnyMode",void 0);_.O([_.h(),_.g("design:type",HTMLElement)],p2.prototype,"popupPositionTarget",void 0);_.O([_.fa("#banner-info-tooltip"),_.g("design:type",Object)],p2.prototype,"infoTooltip",void 0);
_.O([_.fa("#info-container"),_.g("design:type",HTMLElement)],p2.prototype,"infoContainer",void 0);_.O([_.fa("#shelf-toggler"),_.g("design:type",HTMLElement)],p2.prototype,"shelfToggleButton",void 0);_.O([_.fa("#separator"),_.g("design:type",HTMLDivElement)],p2.prototype,"separator",void 0);_.O([_.h(),_.g("design:type",String)],p2.prototype,"shelfTogglerLabelText",void 0);_.O([_.h(),_.g("design:type",String)],p2.prototype,"shelfTogglerIcon",void 0);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],p2.prototype,"dataChanged",null);_.O([_.JA("showingMore"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],p2.prototype,"onShowingMoreChanged",null);p2=_.O([_.v({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],p2);
_.t(p2,"ytd-ticket-shelf-renderer",function(){if(KCd!==void 0)return KCd;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return KCd=K},{mode:1});var X7v;var FCo;var B4=function(){return _.G.apply(this,arguments)||this};
_.r(B4,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],B4.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],B4.prototype,"data",void 0);B4=_.O([_.v({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],B4);
_.t(B4,"ytd-comments-entry-point-message-renderer",function(){if(FCo!==void 0)return FCo;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return FCo=K},{mode:1});var P7V;var SD=function(){return _.G.apply(this,arguments)||this};
_.r(SD,_.G);_.Oi.Object.defineProperties(SD.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.teaserAvatar)}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],SD.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],SD.prototype,"data",void 0);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],SD.prototype,"hasAvatar",null);SD=_.O([_.v({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],SD);
_.t(SD,"ytd-comments-entry-point-teaser-renderer",function(){if(P7V!==void 0)return P7V;var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return P7V=K},{mode:1});var Hq8;var oS=function(){return _.G.apply(this,arguments)||this};
_.r(oS,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],oS.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],oS.prototype,"data",void 0);oS=_.O([_.v({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],oS);
_.t(oS,"ytd-comments-simplebox-renderer",function(){if(Hq8!==void 0)return Hq8;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Hq8=K},{mode:1});var L2=function(){var K=_.G.apply(this,arguments)||this;K.fullHeight=!_.S("comment_teaser_full_height_kill_switch")&&_.S("kevlar_watch_grid");return K};
_.r(L2,_.G);L2.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"}}}};
L2.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
L2.prototype.onTap=function(){var K=this.tapCommand;K&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(K))};
L2.prototype.onKeyUp=function(K){if(K.keyCode===13)this.onTap()};
_.Oi.Object.defineProperties(L2.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)==null?0:K.onTap)return this.data.onTap;var X,F;if(((X=this.data)==null?0:X.teaserContent)||((F=this.data)==null?0:F.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)!=null&&K.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
L2.prototype.onKeyUp=L2.prototype.onKeyUp;L2.prototype.onTap=L2.prototype.onTap;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],L2.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],L2.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],L2.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],L2.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],L2.prototype,"fullHeight",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],L2.prototype,"tapCommand",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],L2.prototype,"simpleboxPlaceholder",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],L2.prototype,"hasSimpleboxPlaceholder",null);
_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],L2.prototype,"simpleboxAvatar",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],L2.prototype,"teaserContent",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],L2.prototype,"hasTeaserContent",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],L2.prototype,"teaserAvatar",null);
_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],L2.prototype,"hasTeaserAvatar",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],L2.prototype,"messageText",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],L2.prototype,"contentRenderer",null);_.O([_.U("data"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],L2.prototype,"hasContents",null);
_.O([_.U("data"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],L2.prototype,"hasContentRenderer",null);_.O([_.Hc("click"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],L2.prototype,"onTap",null);_.O([_.Hc("keypress"),_.g("design:type",Function),_.g("design:paramtypes",[_.sQ]),_.g("design:returntype")],L2.prototype,"onKeyUp",null);L2=_.O([_.v({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],L2);
_.t(L2,"ytd-comments-entry-point-header-renderer",function(){if(X7v!==void 0)return X7v;var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return X7v=K},{mode:1});var s65;_.S("web_enable_sink_animated_rolling_character_and_number")?_.EP(_.RSC,"yt-animated-rolling-number",{props:{numberText:_.vU,numberValue:_.vU,heightPx:_.vU,fontSizeMultiplier:_.vU,shouldAnimate:_.vU,forceRollUp:_.vU}}):_.K4(_.u64,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var zuW=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),fSd={numberText:"",heightPx:2*zuW,shouldAnimate:!1},Tf=function(){var K=_.G.apply(this,arguments)||this;K.usingAnimatedComponents=!0;K.wasDetailed=!1;K.JSC$20259_browserSupportsAnimation=_.S("web_supports_animations_api");K.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};K.detailed=!1;K.shouldAnimate=!1;K.viewCountProps=fSd;K.dateTextProps=
fSd;K.metadataBadgesInDescription=_.S("web_metadata_badges_in_description");return K};
_.r(Tf,_.G);_.z=Tf.prototype;_.z.resetAnimationState=function(){this.shouldAnimate=!1};
_.z.updateDynamicMetadata=function(){if(this.JSC$20259_browserSupportsAnimation){if(!this.detailed){var K,X,F,P;var H=(K=this.videoPrimaryInfoRenderer)==null?void 0:(X=K.viewCount)==null?void 0:(F=X.videoViewCountRenderer)==null?void 0:(P=F.extraShortViewCount)==null?void 0:P.simpleText;var f,u,J,Z;var M=(f=this.videoPrimaryInfoRenderer)==null?void 0:(u=f.viewCount)==null?void 0:(J=u.videoViewCountRenderer)==null?void 0:(Z=J.shortViewCount)==null?void 0:Z.simpleText}if(!M){var n,c,B,L;H=(n=this.videoPrimaryInfoRenderer)==
null?void 0:(c=n.viewCount)==null?void 0:(B=c.videoViewCountRenderer)==null?void 0:(L=B.unlabeledViewCountValue)==null?void 0:L.simpleText;var A,d,R,l;M=(A=this.videoPrimaryInfoRenderer)==null?void 0:(d=A.viewCount)==null?void 0:(R=d.videoViewCountRenderer)==null?void 0:(l=R.viewCount)==null?void 0:l.simpleText}var a,E,V;K=Number((a=this.videoPrimaryInfoRenderer)==null?void 0:(E=a.viewCount)==null?void 0:(V=E.videoViewCountRenderer)==null?void 0:V.originalViewCount);var x,N;a=(x=this.videoPrimaryInfoRenderer)==
null?void 0:(N=x.relativeDateText)==null?void 0:N.simpleText;var Dl;x=!((Dl=this.videoPrimaryInfoRenderer)==null||!Dl.relativeDateText);if(H&&M&&K&&(a||!x)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;Dl=M.split(new RegExp("("+H+")"));H=kFV(Dl[0]);var Mq;M={numberText:(Mq=Dl[1])!=null?Mq:"",numberValue:K,heightPx:2*zuW,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var pO;Mq=((pO=Dl[2])!=null?pO:"")+"  ";this.setViewCount(M,H,kFV(Mq));
if(!this.detailed&&x){H=a.split(/(\d+)/);pO=kFV(H[0]);var y9;Mq={numberText:(y9=H[1])!=null?y9:"",heightPx:2*zuW,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var Wy;y9=((Wy=H[2])!=null?Wy:"")+"  ";this.setDateText(Mq,pO,kFV(y9))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.z.setViewCount=function(K,X,F){_.lj(X)!==_.lj(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=X);this.viewCountProps.numberText!==(K==null?void 0:K.numberText)&&(this.viewCountProps=K||fSd);_.lj(F)!==_.lj(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=F)};
_.z.setDateText=function(K,X,F){_.lj(X)!==_.lj(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=X);this.dateTextProps.numberText!==(K==null?void 0:K.numberText)&&(this.dateTextProps=K||fSd);_.lj(F)!==_.lj(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=F)};
_.z.onYtUpdateViewershipAction=function(K){this.videoPrimaryInfoRenderer&&(_.T(K,FZd).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.T(K,FZd).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.T(K,FZd).viewCount)))};
_.z.onYtUpdateDateTextAction=function(K){if(this.videoPrimaryInfoRenderer){K=_.T(K,_.KZV).dateText;this.shouldAnimate=!0;var X;((X=this.videoPrimaryInfoRenderer)==null?0:X.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",K):this.set("videoPrimaryInfoRenderer.dateText",K)}};
_.Oi.Object.defineProperties(Tf.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return Ito(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.lj(Ito(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.lj(this.viewCountPreNumberText),this.viewCountProps.numberText,_.lj(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.lj(this.dateTextPreNumberText),this.dateTextProps.numberText,_.lj(this.dateTextPostNumberText)].join("")}}});
Tf.prototype.updateDynamicMetadata=Tf.prototype.updateDynamicMetadata;Tf.prototype.resetAnimationState=Tf.prototype.resetAnimationState;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Tf.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Tf.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Tf.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Tf.prototype,"videoPrimaryInfoRenderer",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Tf.prototype,"detailed",void 0);_.O([_.h(),_.g("design:type",Object)],Tf.prototype,"shouldAnimate",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Tf.prototype,"viewCountPreNumberText",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Tf.prototype,"viewCountProps",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Tf.prototype,"viewCountPostNumberText",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Tf.prototype,"dateTextPreNumberText",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Tf.prototype,"dateTextProps",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Tf.prototype,"dateTextPostNumberText",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Tf.prototype,"metadataBadgesInDescription",void 0);_.O([_.U("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.g("design:type",Object),_.g("design:paramtypes",[])],Tf.prototype,"infoText",null);
_.O([_.U("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.g("design:type",String),_.g("design:paramtypes",[])],Tf.prototype,"descriptionInfoTooltipText",null);_.O([_.U("detailed"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Tf.prototype,"showDescriptionInfoTooltip",null);
_.O([_.U("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.g("design:type",String),_.g("design:paramtypes",[])],Tf.prototype,"animatedViewCountAccessibilityLabel",null);_.O([_.U("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.g("design:type",String),_.g("design:paramtypes",[])],Tf.prototype,"animatedDateTextAccessibilityLabel",null);
_.O([_.so("videoPrimaryInfoRenderer"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Tf.prototype,"resetAnimationState",null);_.O([_.so("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Tf.prototype,"updateDynamicMetadata",null);Tf=_.O([_.v({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Tf);
_.t(Tf,"ytd-watch-info-text",function(){if(s65!==void 0)return s65;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return s65=K},{mode:1});var DId;var u_t=_.$c(function(K){var X=K.data;var F=K.setTapCommand;_.rs(function(){var P=_.w$(X().onTap);F(P)},"X4onJd");
return _.Q("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.Q(_.Md,{data:function(){return X().avatar}},{avatarViewModel:_.BY}),_.Q("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.Q("span",null,function(){return X().simpleboxText})))},"cj");var q3F=_.$c(function(K){return _.Q("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.Q(_.p,{cond:function(){return _.T(K.data().avatar,_.Gl)},
then:function(X){return _.Q(_.BY,{data:X,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.Q("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.Q(_.Oy,{text:function(){return K.data().teaserText}})))},"dj");var Jzs=_.$c(function(K){var X=K.data;var F=K.setTapCommand;_.rs(function(){var P=_.w$(X().onTap);F(P)},"PmAol");
return _.Q("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.Q(_.Md,{data:function(){return X().teasers}},{commentsEntryPointTeaserViewModel:q3F}))},"ej");var Zqv=_.$c(function(K){var X=K.data;var F=K.setTapCommand;_.rs(function(){var P=_.w$(X().onTap);F(P)},"Nh3Hjd");
return _.Q("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.Q(_.Oy,{text:function(){return X().messageText}}))},"fj");var Y3s=_.$c(function(K){var X=K.data;var F=K.setTapCommand;var P=K.isDisabled;_.rs(function(){var H=(P==null?0:P())?void 0:_.w$(X().onTap);F(H)},"omeiWe");
return _.Q("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.Q(_.ZF,{icon:function(){return X().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.Q(_.p,{cond:function(){return X().image},
then:function(H){return _.Q(_.av,{data:H,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.Q(_.Oy,{text:function(){return X().text},
className:function(){return X().image||X().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.Q(_.Md,{data:function(){return X().button}},{buttonViewModel:function(H){return _.Q(_.Af,{data:H.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:P==null?void 0:P()}}})}}))},"gj");var Q6v=_.$c(function(K){var X=K.data;var F=K.itemIndex;var P=K.selectedIndex;var H=K.indexUpdatedCallback;var f=K.observer;K=K.title;var u=_.t_(function(c){_.S("web_metadata_carousel_elref_bugfix")&&f&&f().observe(c)}),J=function(c){F()===P()&&H(c)},Z=_.rn(WV1),M=_.rn(dpG),n=function(){var c,B,L;
return((c=X())==null?void 0:c.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!Z()||((B=X())==null?void 0:B.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&M().includes("PAposts_by_host")||((L=X())==null?void 0:L.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&M().includes("PAyouchat")};
_.AV(function(){_.S("web_metadata_carousel_elref_bugfix")||f&&f().observe(u.value)});
return _.Q("yt-carousel-item-view-model",{el:u,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":K},_.Q(_.Md,{data:function(){var c,B;return(B=(c=_.T(X().carouselItem,TOV))==null?void 0:c.textCarousel)!=null?B:X().carouselItem}},{textCarouselItemViewModel:function(c){return _.Q(Y3s,{data:c.data,
setTapCommand:J,isDisabled:n})},
commentTeaserCarouselItemViewModel:function(c){return _.Q(Jzs,{data:c.data,setTapCommand:J})},
commentInputBoxCarouselItemViewModel:function(c){return _.Q(u_t,{data:c.data,setTapCommand:J})},
commentsEntryPointMessageViewModel:function(c){return _.Q(Zqv,{data:c.data,setTapCommand:J})}}))},"hj");var Mcs=_.$c(function(K){var X=K.numDots;var F=K.activeIndex;return _.Q("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.Q(_.cd,{each:function(){return Array.from({length:X()})},
keyBy:"INDEX"},function(P,H){return _.Q("div",{class:function(){var f={};return _.z9("ytCarouselDotsShapeDot",(f.ytCarouselDotsShapeDotActive=H===F(),f))}})}))},"ij");var nHW=_.$c(function(K){var X=K.data;var F=K.handleCarouselNavigation;var P=K.numItems;var H=K.selectedIndex;var f=function(){return{disabled:H()===0}},u=function(){return{disabled:H()===P()-1}};
return _.Q("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.Q("div",null,_.Q("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return X().title}),_.Q(_.p,{cond:function(){return X().subtitle},
then:function(J){return _.Q("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return X().subtitleAccessibilityText}},J)}})),_.Q(_.p,{cond:function(){return P()>1},
then:function(){return _.Q("div",{class:"ytCarouselTitleViewModelNavigation"},_.Q(Mcs,{numDots:P,activeIndex:H}),_.Q(_.p,{cond:function(){return X().previousButton},
then:function(J){return _.Q(_.Md,{data:J},{buttonViewModel:function(Z){return _.Q(_.Af,{data:Z.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return F(-1)},
buttonOverrides:f})}})}}),_.Q(_.p,{cond:function(){return X().nextButton},
then:function(J){return _.Q(_.Md,{data:J},{buttonViewModel:function(Z){return _.Q(_.Af,{data:Z.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return F(1)},
buttonOverrides:u})}})}}))}}))},"jj");_.EP(_.$c(function(K){var X=K.data;var F,P=_.t_(),H=_.t_(function(x){if(_.S("web_metadata_carousel_elref_bugfix")){var N=function(){var Dl=x.offsetWidth*d(),Mq=24*(d()-1);B(Dl+Mq)};
N();window.ResizeObserver&&(F=new ResizeObserver(N),F.observe(x))}}),f=_.e8("HTML_DIR")==="rtl",u=!1,J=0,Z=0;
K=_.D(_.u_(0,void 0,"f4aYxe"));var M=K.next().value,n=K.next().value;K=_.D(_.u_(0,void 0,"kU9O9"));var c=K.next().value,B=K.next().value;K=_.D(_.u_(!1,void 0,"GqphDd"));var L=K.next().value,A=K.next().value,d=function(){var x,N,Dl;return(Dl=(x=X())==null?void 0:(N=x.carouselTitles)==null?void 0:N.length)!=null?Dl:0},R=function(){H.value&&H.value.scrollLeft!==J&&n((f?H.value.scrollLeft<J:H.value.scrollLeft>J)?Math.min(M()+1,d()-1):Math.max(M()-1,0))},l;
window.IntersectionObserver&&(l=new IntersectionObserver(function(x){x=_.D(x);for(var N=x.next();!N.done;N=x.next())if(N.value.isIntersecting){if(u){u=!1;break}R()}else n(Z)},{threshold:.2}));
_.rs(function(){if(H.value){var x=(f?-1:1)*(c()/d()+12)*(L()&&l?Z:M());typeof H.value.scrollTo==="function"?H.value.scrollTo({left:x,behavior:"smooth"}):H.value.scrollLeft=x;J=x;Z=L()&&l?Z:M()}},"ZP1VMb");
var a,E=function(x){a=x};
_.AV(function(){if(!_.S("web_metadata_carousel_elref_bugfix")){var x=function(){var Dl=H.value.offsetWidth*d(),Mq=24*(d()-1);B(Dl+Mq)};
x();if(window.ResizeObserver){var N=new ResizeObserver(x);N.observe(H.value);_.AZ(function(){N.disconnect();l&&l.disconnect()})}}});
_.AZ(function(){if(_.S("web_metadata_carousel_elref_bugfix")){var x;(x=F)==null||x.disconnect();var N;(N=l)==null||N.disconnect()}});
var V=function(x){x=M()+x;x>=0&&x<d()&&(u=!0,n(x))};
return _.Q("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:P,"on:click":_.DF(function(x){if(_.Rk(_.e6(x),P.value,["BUTTON".toString()])||!a)return!1;_.i9().resolve(_.xU).resolveCommand(a,{forceClickLogging:!0});return!1}),
"on:touchstart":_.DF(function(){A(!0);return!1}),
"on:touchend":_.DF(function(){l||R();A(!1);return!1}),
hidden:function(){var x,N;return!((x=X())==null?0:(N=x.carouselItems)==null?0:N.length)}},_.Q("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.Q(_.p,{cond:function(){return X().carouselTitles},
then:function(x){return _.Q(_.Md,{data:function(){return x()[L()&&l?Z:M()]}},{carouselTitleViewModel:function(N){return _.Q(nHW,{data:N.data,
handleCarouselNavigation:V,numItems:d,selectedIndex:M})}})}})),_.Q("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:H},_.Q("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+c()+"px;"}},_.Q(_.p,{cond:function(){return X().carouselItems},
then:function(x){return _.Q(_.cd,{each:x},function(N,Dl){return _.Q(_.Md,{data:function(){return N}},{carouselItemViewModel:function(Mq){return _.Q(Q6v,{data:Mq.data,
itemIndex:Dl,selectedIndex:M,indexUpdatedCallback:E,observer:l,title:function(){a:{var pO=Dl();var y9,Wy=(y9=X())==null?void 0:y9.carouselTitles;if(Wy&&(pO=Wy[pO])){var eP;pO=(eP=_.T(pO,LpG))==null?void 0:eP.title;break a}pO=void 0}return pO}})}})})}}))))},"kj"),"yt-video-metadata-carousel-view-model",{props:{data:_.vU}});var czW=_.S("web_action_buttons_update_owner_width")?32:12,r5=function(){var K=_.G.apply(this,arguments)||this;K.metadataBadgesInDescription=_.S("web_metadata_badges_in_description");K.descriptionCollapsed=!0;K.useFadedScrimDescription=_.S("kevlar_enable_faded_scrim_on_description");K.skinnyMode=!1;K.playlist=!1;K.isDark=document.documentElement.hasAttribute("dark");K.disableVideoOwnerOnTap=_.S("swatchie_video_owner_on_tap_ks");K.swatcherooDelayLoad=_.S("swatcheroo_enable_ghost_cards");K.primaryMenuWidth=
0;K.videoId="";K.titleHeadlineXs=_.S("web_watch_typography_title_headline_xs");K.titleHeadlineS=_.S("web_watch_typography_title_headline_s");K.titleHeadlineM=_.S("web_watch_typography_title_headline_m");K.titleHashtagBlackLinkified=_.S("web_title_hashtag_black_linkified");K.titleHashtagGreyLinkified=_.S("web_title_hashtag_grey_linkified");K.actionButtonsUpdateOwnerWidth=_.S("web_action_buttons_update_owner_width");K.shouldForceIconOnly=!1;K.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};K.isFullscreen=!1;K.isTheaterMode=!1;return K};
_.r(r5,_.G);_.z=r5.prototype;_.z.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.z.updateOwnerAndDescriptionPosition=function(){_.S("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.U9(this.bottomRowElement,this.ownerElement)):(_.U9(this.bottomRowElement,this.descriptionElement),_.U9(this.topRowElement,this.ownerElement)))};
_.z.titleOnTap=function(K){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.lC(_.lN(K)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var X;((X=window.getSelection())==null?0:X.toString().length)||this.handleExpandDescriptionCommands()}};
_.z.videoOwnerOnTap=function(K){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.lC(_.lN(K)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.z.detached=function(){var K=this,X;return _.q(function(F){(X=K.resizeObserver)==null||X.disconnect();_.JT(F)})};
_.z.maybeAttachResizeObserver=function(){var K=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.VW(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){K.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.z.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var K=this.hostElement.clientWidth,X=Math.max(this.largerItemWrap?400:350,K/2-czW);if(_.S("web_action_buttons_update_owner_width")){var F;X=(((F=document.getElementById("owner"))==null?void 0:F.clientWidth)||0)+czW}this.actionsOnSeparateLine=this.primaryMenuWidth>K-X?!0:!1}};
_.z.stripAttributedDescription=function(K){return{content:K.content.replace(/[\r\n]{2,}/g,"\n")}};
_.z.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.S("web_modern_buttons"),forceIconButton:!_.S("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:_.S("web_action_buttons_minimize_subscribe")},properties:{forceIconOnly:"[[shouldForceIconOnly]]"}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},commentsEntryPointHeaderRenderer:{id:"comment-teaser",mapping:{commentsEntryPointHeaderRenderer:"ytd-comments-entry-point-header-renderer"}},videoMetadataCarousel:{id:"teaser-carousel",mapping:{videoMetadataCarouselViewModel:"yt-video-metadata-carousel-view-model"}},
infoPanelBelowMetadata:{id:"middle-row",mapping:{infoPanelContentRenderer:"ytd-info-panel-content-renderer"}}}};
_.z.videoPrimaryInfoRendererChanged=function(){var K;if((K=this.videoPrimaryInfoRenderer)==null?0:K.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.z.videoSecondaryInfoRendererChanged=function(){var K,X;(X=(K=this.descriptionInlineExpander).collapse)==null||X.call(K);this.descriptionExpandClientVe=_.cO(110509);this.descriptionCollapseClientVe=_.cO(110510);K=_.AD();X=_.r_();K&&X&&(_.S("combine_ve_grafts")?(_.k2(_.uH(),this.descriptionExpandClientVe,X),_.k2(_.uH(),this.descriptionCollapseClientVe,X)):_.hc(K,X,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.z.structuredDescriptionContentRendererChanged=function(){_.S("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.z.updateTopLevelIconsOnly=function(){var K=this;_.S("top_level_update_killswitch")||this.menu&&_.A9.addLowPriorityJob(function(){K.menu.topLevelIconsOnly=K.skinnyMode},_.kU("swathceroo_delay_flexible_menu_update",100))};
_.z.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.S("web_action_buttons_minimize_subscribe")};
_.z.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.z.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.z.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.z.onYtTextInlineExpanderExpandedChanged=function(){if(!_.S("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var K,X;(X=(K=this.structuredDescriptionContentRendererElement).resize)==null||X.call(K)}};
_.z.onRenderStamperFinished=function(K){(K==null?void 0:K.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.z.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.z.onYtExpanderLessTapped=function(){var K,X=(K=this.videoSecondaryInfoRenderer)==null?void 0:K.showLessCommand;X&&this.ytComponentBehavior.resolveCommand(X)};
_.z.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.z.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.z.onDescriptionClick=function(K){if(!_.lC(_.lN(K)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var X;((X=window.getSelection())==null?0:X.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.S("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.z.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.z.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.z.logCollapseClick=function(){var K=_.AD();K&&this.descriptionCollapseClientVe&&_.vW(K,this.descriptionCollapseClientVe)};
_.z.logExpandClick=function(){var K=_.AD();K&&this.descriptionExpandClientVe&&_.vW(K,this.descriptionExpandClientVe)};
_.z.collapseDescription=function(){this.descriptionCollapsed=!0};
_.z.scrollToTopOfContainer=function(){_.xr(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.z.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.z.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.z.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.z.resize=function(){if(this.descriptionInlineExpander){var K,X;(X=(K=this.descriptionInlineExpander).resize)==null||X.call(K)}else _.yy(new _.nG("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var F;(F=this.menu)==null||F.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.S("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.z.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var K,X,F,P,H=_.S("web_action_buttons_update_owner_width")?(F=(K=_.C$(this.menu).querySelector("#button-shape"))==null?void 0:K.clientWidth)!=null?F:0:(P=(X=_.C$(this.menu).querySelector("#button"))==null?void 0:X.clientWidth)!=null?P:0,f,u;K=((u=(f=_.C$(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:f.clientWidth)!=null?u:0)+8+H;var J,Z;H=(Z=(J=_.C$(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:J.children.length)!=null?Z:2;K<=8*H||(this.primaryMenuWidth=K)}};
_.z.onYtUpdateTitleAction=function(K){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.T(K,XPw).title)};
_.z.onYtUpdateDescriptionAction=function(K){if(K=_.T(K,_.keu)){var X,F=!((X=this.videoSecondaryInfoRenderer)==null||!X.attributedDescription);K.isEmpty||!K.description&&!K.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):K.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",K.attributedDescription):K.description&&(F?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.TD(K.description)):this.set("videoSecondaryInfoRenderer.description",K.description))}};
_.z.onYtDarkModeToggledAction=function(K){this.isDark=K};
_.z.registerPanel=function(){if(!_.S("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var K=_.S("web_watch_imax_theater_mode")&&this.isTheaterMode;K=_.S("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||K;var X=_.i9().resolve(_.cR);X&&!K&&X.registerPanel("engagement-panel-structured-description",this)}};
_.z.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.z.showPanel=function(K){this.expandDescription();var X=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;X.resize();var F,P=K==null?void 0:(F=K.sectionListEngagementPanelExtras)==null?void 0:F.scrollToItemSectionIdentifier;P?_.A9.addJob(function(){X==null||X.scrollToSection(P)},8):this.scrollToTopOfContainer()};
_.z.isVisible=function(){return!this.descriptionCollapsed};
_.z.getReloadContinuation=function(){};
_.z.hidePanel=function(){};
_.z.updatePanel=function(){};
_.Oi.Object.defineProperties(r5.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.structuredDescriptionContentRenderer)!=null&&K.items){var X;K=_.D((X=this.structuredDescriptionContentRenderer)==null?void 0:X.items);for(X=K.next();!X.done;X=K.next())if(X=_.T(X.value,_.k4C))return X}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.videoPrimaryInfoRenderer)==null?0:K.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return!!((K=this.videoSecondaryInfoRenderer)==null?0:(X=K.owner)==null?0:(F=X.videoOwnerRenderer)==null?0:F.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.S("swatchie_sd_new_line_strip_ks")){var K,X;if((K=this.videoSecondaryInfoRenderer)==null?0:(X=K.attributedDescription)==null?0:X.content){var F,P;return(P=this.stripAttributedDescription((F=this.videoSecondaryInfoRenderer)==null?void 0:F.attributedDescription))!=null?P:{runs:[]}}}var H,f,u,J;return(J=(u=(H=this.videoSecondaryInfoRenderer)==null?void 0:H.description)!=null?u:(f=this.videoSecondaryInfoRenderer)==null?
void 0:f.attributedDescription)!=null?J:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var K,X;return(X=(K=this.videoSecondaryInfoRenderer)==null?void 0:K.headerRuns)!=null?X:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.commentsEntryPointHeaderRenderer)==null||!K.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.videoMetadataCarousel)==null||!K.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.kU("swatchie_desc_lines",3):this.hasTeaserCarousel?_.kU("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var K,X,F=Object.assign({},(K=this.videoSecondaryInfoRenderer)==null?void 0:(X=K.metadataRowContainer)==null?void 0:X.metadataRowContainerRenderer);if(F&&F.rows&&F.collapsedItemCount!==void 0&&!(F.rows.length<=F.collapsedItemCount))return F.rows=F.rows.slice(F.collapsedItemCount),F.collapsedItemCount=0,F}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var K,X,F=Object.assign({},(K=this.videoSecondaryInfoRenderer)==null?void 0:(X=K.metadataRowContainer)==null?void 0:X.metadataRowContainerRenderer);if(F&&F.rows&&F.collapsedItemCount!==void 0)return F.rows=F.rows.slice(0,F.collapsedItemCount),F.collapsedItemCount=F.rows.length,F}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var K,X;return!!((K=this.structuredDescriptionContentRenderer)==null?0:(X=K.items)==null?0:X.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var K;return(K=this.videoSecondaryInfoRenderer)==null?void 0:K.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return((K=this.videoSecondaryInfoRenderer)==null?0:(X=K.owner)==null?0:(F=X.videoOwnerRenderer)==null?0:F.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var K,X,F,P;return!!((K=this.videoPrimaryInfoRenderer)==null?0:(X=K.videoActions)==null?0:(F=X.menuRenderer)==null?0:(P=F.flexibleItems)==null?0:P.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.GD(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.GD(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var K=this;if(_.S("web_title_hashtag_grey_delinkified")){var X,F=_.T8.unsafeClone((X=this.videoPrimaryInfoRenderer)==null?void 0:X.title);(X=F==null?void 0:F.runs)&&X.forEach(function(P){if(P==null?0:P.navigationEndpoint)P.textColor=4284506208,K.isDark&&(P.textColor=4289374890)});
return F}return(F=this.videoPrimaryInfoRenderer)==null?void 0:F.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.S("web_title_hashtag_black_delinkified")||_.S("web_title_hashtag_grey_delinkified")}}});
r5.prototype.resetDescriptionState=r5.prototype.resetDescriptionState;r5.prototype.registerPanel=r5.prototype.registerPanel;r5.prototype.onYtExpanderLessTapped=r5.prototype.onYtExpanderLessTapped;r5.prototype.onYtExpanderMoreTapped=r5.prototype.onYtExpanderMoreTapped;r5.prototype.onRenderStamperFinished=r5.prototype.onRenderStamperFinished;r5.prototype.onYtTextInlineExpanderExpandedChanged=r5.prototype.onYtTextInlineExpanderExpandedChanged;r5.prototype.onYtTextInlineExpanderCollapseClicked=r5.prototype.onYtTextInlineExpanderCollapseClicked;
r5.prototype.onYtTextInlineExpanderExpandClicked=r5.prototype.onYtTextInlineExpanderExpandClicked;r5.prototype.moveActionsElement=r5.prototype.moveActionsElement;r5.prototype.updateShouldForceIconOnly=r5.prototype.updateShouldForceIconOnly;r5.prototype.updateTopLevelIconsOnly=r5.prototype.updateTopLevelIconsOnly;r5.prototype.structuredDescriptionContentRendererChanged=r5.prototype.structuredDescriptionContentRendererChanged;r5.prototype.videoSecondaryInfoRendererChanged=r5.prototype.videoSecondaryInfoRendererChanged;
r5.prototype.videoPrimaryInfoRendererChanged=r5.prototype.videoPrimaryInfoRendererChanged;r5.prototype.maybeUpdateActionsOnSeparateLine=r5.prototype.maybeUpdateActionsOnSeparateLine;r5.prototype.updateOwnerAndDescriptionPosition=r5.prototype.updateOwnerAndDescriptionPosition;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],r5.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],r5.prototype,"ytComponentBehavior",void 0);
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],r5.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],r5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],r5.prototype,"ytdReduxBehavior",void 0);_.O([_.fa("#above-the-fold"),_.g("design:type",HTMLElement)],r5.prototype,"aboveTheFoldContainer",void 0);_.O([_.fa("#menu ytd-menu-renderer"),_.g("design:type",Object)],r5.prototype,"menu",void 0);
_.O([_.fa("#description-inline-expander"),_.g("design:type",Object)],r5.prototype,"descriptionInlineExpander",void 0);_.O([_.fa("#faded-structured-description"),_.g("design:type",Object)],r5.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.O([_.fa("#structured-description"),_.g("design:type",Object)],r5.prototype,"structuredDescriptionContentRendererElement",void 0);_.O([_.fa("#title"),_.g("design:type",HTMLElement)],r5.prototype,"titleElement",void 0);
_.O([_.fa("#description"),_.g("design:type",HTMLElement)],r5.prototype,"descriptionElement",void 0);_.O([_.fa("#description-interaction"),_.g("design:type",Object)],r5.prototype,"descriptionInteraction",void 0);_.O([_.fa("#owner"),_.g("design:type",HTMLElement)],r5.prototype,"ownerElement",void 0);_.O([_.fa("#top-row"),_.g("design:type",HTMLElement)],r5.prototype,"topRowElement",void 0);_.O([_.fa("#bottom-row"),_.g("design:type",HTMLElement)],r5.prototype,"bottomRowElement",void 0);
_.O([_.fa("#actions"),_.g("design:type",HTMLElement)],r5.prototype,"actionsElement",void 0);_.O([_.fa("#bottom-actions"),_.g("design:type",HTMLElement)],r5.prototype,"bottomActionsElement",void 0);_.O([_.fa("#ytd-watch-info-text"),_.g("design:type",Object)],r5.prototype,"watchInfoTextElement",void 0);_.O([_.h(),_.g("design:type",Object)],r5.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],r5.prototype,"videoPrimaryInfoRenderer",void 0);
_.O([_.h(),_.g("design:type",Object)],r5.prototype,"videoSecondaryInfoRenderer",void 0);_.O([_.h(),_.g("design:type",Object)],r5.prototype,"commentsEntryPointHeaderRenderer",void 0);_.O([_.h(),_.g("design:type",Object)],r5.prototype,"videoMetadataCarousel",void 0);_.O([_.h(),_.g("design:type",Object)],r5.prototype,"structuredDescriptionContentRenderer",void 0);_.O([_.h(),_.g("design:type",Object)],r5.prototype,"videoSummary",void 0);
_.O([_.h(),_.g("design:type",Object)],r5.prototype,"merchShelf",void 0);_.O([_.h(),_.g("design:type",Object)],r5.prototype,"infoPanelBelowMetadata",void 0);_.O([_.U("structuredDescriptionContentRenderer"),_.g("design:type",Object),_.g("design:paramtypes",[])],r5.prototype,"productShelf",null);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],r5.prototype,"metadataBadgesInDescription",void 0);
_.O([_.U("videoPrimaryInfoRenderer"),_.g("design:type",Object),_.g("design:paramtypes",[])],r5.prototype,"shouldHideBadges",null);_.O([_.U("productShelf","descriptionCollapsed"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],r5.prototype,"shouldShowProductShelf",null);_.O([_.h(),_.g("design:type",Boolean)],r5.prototype,"isWatchFlexy",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],r5.prototype,"descriptionCollapsed",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],r5.prototype,"useFadedScrimDescription",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],r5.prototype,"skinnyMode",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("videoSecondaryInfoRenderer"),_.g("design:type",Object),_.g("design:paramtypes",[])],r5.prototype,"largerItemWrap",null);_.O([_.h(),_.g("design:type",Object)],r5.prototype,"playlist",void 0);_.O([_.h(),_.g("design:type",Object)],r5.prototype,"clarifyBox",void 0);
_.O([_.h(),_.g("design:type",Object)],r5.prototype,"playerAds",void 0);_.O([_.h(),_.g("design:type",Boolean)],r5.prototype,"isDark",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],r5.prototype,"actionsOnSeparateLine",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],r5.prototype,"disableVideoOwnerOnTap",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],r5.prototype,"swatcherooDelayLoad",void 0);
_.O([_.h(),_.g("design:type",Boolean)],r5.prototype,"suppressTopLevelMetadataRows",void 0);_.O([_.h(),_.g("design:type",Object)],r5.prototype,"primaryMenuWidth",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],r5.prototype,"videoId",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],r5.prototype,"titleHeadlineXs",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],r5.prototype,"titleHeadlineS",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],r5.prototype,"titleHeadlineM",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],r5.prototype,"titleHashtagBlackLinkified",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],r5.prototype,"titleHashtagGreyLinkified",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],r5.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.O([_.h(),_.g("design:type",Object)],r5.prototype,"shouldForceIconOnly",void 0);_.O([_.JA("skinnyMode"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],r5.prototype,"updateOwnerAndDescriptionPosition",null);_.O([_.JA("skinnyMode"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],r5.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.O([_.U("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.g("design:type",Object),_.g("design:paramtypes",[])],r5.prototype,"descriptionText",null);_.O([_.U("videoSecondaryInfoRenderer.headerRuns"),_.g("design:type",Array),_.g("design:paramtypes",[])],r5.prototype,"headerRuns",null);_.O([_.h({value:!1}),_.U("commentsEntryPointHeaderRenderer"),_.g("design:type",Object),_.g("design:paramtypes",[])],r5.prototype,"hasTeaser",null);
_.O([_.h({value:!1,reflectToAttribute:!0}),_.U("videoMetadataCarousel"),_.g("design:type",Object),_.g("design:paramtypes",[])],r5.prototype,"hasTeaserCarousel",null);_.O([_.h({value:3}),_.U("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.g("design:type",Object),_.g("design:paramtypes",[])],r5.prototype,"descriptionMaxLines",null);_.O([_.U("videoSecondaryInfoRenderer.metadataRowContainer"),_.g("design:type",Object),_.g("design:paramtypes",[])],r5.prototype,"collapsibleMetadataRows",null);
_.O([_.U("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.g("design:type",Object),_.g("design:paramtypes",[])],r5.prototype,"alwaysVisibleMetadataRows",null);_.O([_.U("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],r5.prototype,"hasInlineStructuredDescription",null);
_.O([_.U("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],r5.prototype,"showInlineStructuredDescription",null);_.O([_.U("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.g("design:type",Object),_.g("design:paramtypes",[])],r5.prototype,"descriptionExpandCommand",null);
_.O([_.U("videoSecondaryInfoRenderer.owner"),_.g("design:type",Object),_.g("design:paramtypes",[])],r5.prototype,"videoOwnerCommand",null);_.O([_.h({reflectToAttribute:!0}),_.U("videoPrimaryInfoRenderer.videoActions"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],r5.prototype,"flexMenuEnabled",null);_.O([_.h({selector:_.yW,reflectToAttribute:!0}),_.g("design:type",Object)],r5.prototype,"isFullscreen",void 0);
_.O([_.h({selector:_.wV,reflectToAttribute:!0}),_.g("design:type",Object)],r5.prototype,"isTheaterMode",void 0);_.O([_.U("descriptionText","useFadedScrimDescription"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],r5.prototype,"showAttributedStringDescription",null);_.O([_.U("descriptionText","useFadedScrimDescription"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],r5.prototype,"showFormattedStringDescription",null);
_.O([_.U("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],r5.prototype,"showFadedStructuredDescription",null);_.O([_.JA("videoPrimaryInfoRenderer"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],r5.prototype,"videoPrimaryInfoRendererChanged",null);_.O([_.U("videoPrimaryInfoRenderer.title"),_.g("design:type",Object),_.g("design:paramtypes",[])],r5.prototype,"videoTitle",null);
_.O([_.U("videoPrimaryInfoRenderer"),_.g("design:type",Object),_.g("design:paramtypes",[])],r5.prototype,"noEndpoints",null);_.O([_.JA("videoSecondaryInfoRenderer"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],r5.prototype,"videoSecondaryInfoRendererChanged",null);
_.O([_.so("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],r5.prototype,"structuredDescriptionContentRendererChanged",null);_.O([_.so("skinnyMode"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],r5.prototype,"updateTopLevelIconsOnly",null);
_.O([_.so("skinnyMode"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],r5.prototype,"updateShouldForceIconOnly",null);_.O([_.so("skinnyMode"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],r5.prototype,"moveActionsElement",null);_.O([_.Hc("yt-text-inline-expander-expand-clicked"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],r5.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.O([_.Hc("yt-text-inline-expander-collapse-clicked"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],r5.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.O([_.Hc("yt-text-inline-expander-expanded-changed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],r5.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.O([_.Hc("yt-rendererstamper-finished"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],r5.prototype,"onRenderStamperFinished",null);_.O([_.Hc("yt-expander-more-tapped"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],r5.prototype,"onYtExpanderMoreTapped",null);_.O([_.Hc("yt-expander-less-tapped"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],r5.prototype,"onYtExpanderLessTapped",null);
_.O([_.so("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],r5.prototype,"registerPanel",null);_.O([_.so("videoSecondaryInfoRenderer"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],r5.prototype,"resetDescriptionState",null);r5=_.O([_.v({disableElementRegistration:!0,is:"ytd-watch-metadata"})],r5);
_.t(r5,"ytd-watch-metadata",function(){if(DId!==void 0)return DId;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRenderer]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return DId=K},{mode:2});_.Azv=function(K){_.LJ.call(this);this.JSC$20281_watchApi=K;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;p75(this);Bev(this);S3d(this);oHF(this);LCV(this);TeJ(this);rzV(this)};
_.r(_.Azv,_.LJ);var S3d=function(K){var X=function(){_.S("kevlar_is_pupi_enabled")||Ai(K)};
K.JSC$20281_watchApi.getRoot().addEventListener("yt-player-updated",X);K.addOnDisposeCallback(function(){K.JSC$20281_watchApi.getRoot().removeEventListener("yt-player-updated",X)})},LCV=function(K){if(_.S("kevlar_endscreen_auto_theater_mode")){var X=K.JSC$20281_watchApi.subscribeToActiveChanged(function(){j6W(K)},!1);
K.addOnDisposeCallback(X)}},p75=function(K){var X,F,P,H,f;
_.q(function(u){if(u.nextAddress==1)return _.Y(u,K.JSC$20281_watchApi.playerApi,2);X=u.yieldResult;F=function(J){J=!!J;jD(K)&&(J=J?2:1,_.$2.getInstance().setState(J,!0,!1))};
P=function(J){J&&_.yJv(_.aA().getState())&&(_.xr(K.JSC$20281_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),K.temporaryTheaterMode=!0)};
H=function(J){_.S("kevlar_player_update_autonav_on_new_data")&&J.type==="newdata"&&(_.S("kevlar_is_pupi_enabled")||Ai(K))};
f=function(J){K.onPlayerStateChange(J)};
_.S("kevlar_endscreen_auto_theater_mode")&&X.addEventListener("onAutonavCancelled",P);X.addEventListener("onAutonavChangeRequest",F);X.addEventListener("onVideoDataChange",H);X.addEventListener("onStateChange",f);K.addOnDisposeCallback(function(){X.removeEventListener("onAutonavChangeRequest",F);X.removeEventListener("onVideoDataChange",H);X.removeEventListener("onStateChange",f);_.S("kevlar_endscreen_auto_theater_mode")&&X.removeEventListener("onAutonavCancelled",P)});
_.JT(u)})},Bev=function(K){K.JSC$20281_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){K.autonavCancelledBySignal=!0;
_.S("kevlar_is_pupi_enabled")||Ai(K)});
K.JSC$20281_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(X,F,P){F&&Ai(K,P)});
K.JSC$20281_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){jD(K)&&_.$2.getInstance().setState(2,!0,!0)});
K.JSC$20281_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){jD(K)&&_.$2.getInstance().setState(1,!0,!0)});
K.addOnDisposeCallback(function(){K.JSC$20281_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");K.JSC$20281_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");K.JSC$20281_watchApi.unregisterActionHandler("yt-enable-autoplay-command");K.JSC$20281_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},oHF=function(K){var X=K.JSC$20281_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){rzV(K)}),F=K.JSC$20281_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){TeJ(K)});
K.addOnDisposeCallback(function(){K.JSC$20281_watchApi.unsubscribeByKey(X);K.JSC$20281_watchApi.unsubscribeByKey(F)})},rzV=function(K){K.autonavCancelledBySignal=!1;
_.S("kevlar_is_pupi_enabled")||Ai(K)},TeJ=function(K){var X=K.JSC$20281_watchApi.getWatchNextResponse(),F,P;
var H=(X=(P=_.T(X==null?void 0:(H=X.playerOverlays)==null?void 0:(F=H.playerOverlayRenderer)==null?void 0:F.autonavToggle,_.XHZ))==null?void 0:P.enabled)?2:1;_.S("kevlar_is_pupi_enabled")?_.$2.getInstance().setState(H,!1,!1):Ai(K);_.S("web_persist_server_autonav_state_on_client")&&typeof X==="boolean"&&_.L9T(H===2)},jD=function(K){if(K.autonavCancelledBySignal)return!1;
var X,F,P,H;return!!((X=K.JSC$20281_watchApi.getWatchNextResponse())==null?0:(F=X.contents)==null?0:(P=F.twoColumnWatchNextResults)==null?0:(H=P.autoplay)==null?0:H.autoplay)};
_.Azv.prototype.onPlayerStateChange=function(K){if(K===0){K=!_.$2.getInstance().isAutoplaySetExplicitly();var X=this.JSC$20281_watchApi.getWatchNextResponse(),F,P,H,f;X=_.T(X==null?void 0:(F=X.contents)==null?void 0:(P=F.twoColumnWatchNextResults)==null?void 0:(H=P.autoplay)==null?void 0:(f=H.autoplay)==null?void 0:f.autoplayExplicitChoiceDialogRenderer,_.AKL);jD(this)&&K&&X&&_.Hn.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:X},popupType:"DIALOG"}})}else j6W(this)};
var j6W=function(K){K.temporaryTheaterMode&&(K.temporaryTheaterMode=!1,_.xr(K.JSC$20281_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},Ai=function(K,X){X=X===void 0?!1:X;
var F;_.q(function(P){if(P.nextAddress==1)return _.Y(P,K.JSC$20281_watchApi.playerApi,2);F=P.yieldResult;jD(K)?F.setAutonavState(_.$2.getInstance().getState(),X):F.setAutonavState(1,X);_.JT(P)})};var w71={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"};_.WCd=function(K){_.LJ.call(this);var X=this;this.JSC$20286_watchApi=K;var F=this.JSC$20286_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){yzJ(X)});
this.addOnDisposeCallback(function(){X.JSC$20286_watchApi.unsubscribeByKey(F)});
yzJ(this)};
_.r(_.WCd,_.LJ);var yzJ=function(K){var X=K.JSC$20286_watchApi.getPlayerResponse(),F=K.JSC$20286_watchApi.getWatchNextResponse();if(!_.EIl(X==null?void 0:X.playabilityStatus,F==null?void 0:F.playerOverlays)){var P;var H=X==null?void 0:(P=X.playabilityStatus)==null?void 0:P.errorScreen}K.JSC$20286_watchApi.provideRenderingData("ERROR_SCREEN",H)};var dIW=_.$c(function(K){var X=K.data;var F=_.rn(_.yW);K={};return _.Q("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost","on:click":_.DF(function(){var P=X().onTap;P&&_.i9().resolve(_.xU).resolveCommand(P)}),
role:"button"},_.Q("div",{class:_.HO("ytPlayerOverlayVideoDetailsRendererTitle",(K.ytPlayerOverlayVideoDetailsRendererTitleCompact=function(){return!F()},K))},_.Q(_.Oy,{text:function(){return X().title}})),_.Q("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.Q(_.Oy,{text:function(){return X().subtitle}})))},"lj");var w5={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER"},eu5=_.$c(function(K){var X=K.data;var F=_.rn(_.yW);return _.Q("yt-player-quick-action-buttons",{class:_.HO("ytPlayerQuickActionButtonsHost")},_.Q(_.cd,{each:function(){var P=X(),H=F();P=JSON.parse(JSON.stringify(P));for(var f=_.S("web_watch_action_bar_resize_buttons"),u=_.S("delhi_modern_web_player_icons")&&!_.S("enable_web_delhi_icons"),J=_.D(P),Z=J.next();!Z.done;Z=J.next()){var M=
Z.value,n=void 0;Z=_.T((n=_.T(M,_.S6))==null?void 0:n.toggleButtonViewModel,_.cp);var c=void 0;n=_.T((c=_.T(M,_.ok))==null?void 0:c.toggleButtonViewModel,_.cp);M=_.T(M,_.nS);Z?(n=_.T(Z.defaultButtonViewModel,_.nS),Z=_.T(Z.toggledButtonViewModel,_.nS),n&&(u&&n.iconName&&(n.iconName=w5[n.iconName]),!H&&f&&(n.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT")),Z&&(u&&Z.iconName&&(Z.iconName=w5[Z.iconName]),!H&&f&&(Z.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))):n?(Z=_.T(n.defaultButtonViewModel,_.nS),n=_.T(n.toggledButtonViewModel,
_.nS),Z&&(u&&Z.iconName&&(Z.iconName=w5[Z.iconName]),!H&&f&&(Z.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT")),n&&(u&&n.iconName&&(n.iconName=w5[n.iconName]),!H&&f&&(n.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))):M&&(u&&M.iconName&&(M.iconName=w5[M.iconName]),!H&&f&&(M.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))}return P}},function(P){return _.Q(_.Md,{data:function(){return P}},{buttonViewModel:_.Af,
likeButtonViewModel:function(H){return _.Q(_.rr,{data:H.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.TZ})}))},"mj");_.UIF=function(K){_.LJ.call(this);var X=this;this.JSC$20290_watchApi=K;K=_.D(_.u_({},void 0,"ufFdVc"));this.quickActionsViewModel=K.next().value;this.setQuickActionsViewModel=K.next().value;K=_.D(_.u_({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=K.next().value;this.setPlayerOverlayVideoDetailsRenderer=K.next().value;var F=this.JSC$20290_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Rut(X)});
this.addOnDisposeCallback(function(){X.JSC$20290_watchApi.unsubscribeByKey(F)});
Rut(this)};
_.r(_.UIF,_.LJ);
var Rut=function(K){var X,F,P,H,f,u,J,Z,M,n,c,B,L,A;_.q(function(d){if(d.nextAddress==1)return _.Y(d,K.JSC$20290_watchApi.playerApi,2);X=d.yieldResult;F=K.JSC$20290_watchApi.getWatchNextResponse();f=(P=F)==null?void 0:(H=P.playerOverlays)==null?void 0:H.playerOverlayRenderer;J=_.T((u=f)==null?void 0:u.fullscreenQuickActionsBar,_.zLN);(M=(Z=K).setQuickActionsViewModel)==null||M.call(Z,J||{});J&&huV(K,X);B=(n=f)==null?void 0:(c=n.videoDetails)==null?void 0:c.playerOverlayVideoDetailsRenderer;(A=(L=
K).setPlayerOverlayVideoDetailsRenderer)==null||A.call(L,B||{});B&&mIJ(K,X);_.JT(d)})},huV=function(K,X){if(!K.quickActionButtonsContainer){K.quickActionButtonsContainer=document.createElement("div");
X.setFullscreenQuickActions(K.quickActionButtonsContainer);var F=function(){return K.quickActionsViewModel().quickActionButtons||[]},P=_.L9(K.quickActionButtonsContainer,function(){return _.Q(eu5,{data:F})});
K.addOnDisposeCallback(function(){X.setFullscreenQuickActions(void 0);P()})}},mIJ=function(K,X){if(!K.playerOverlayVideoDetailsRendererContainer){K.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
X.setPlayerOverlayVideoDetailsRenderer(K.playerOverlayVideoDetailsRendererContainer);var F=_.L9(K.playerOverlayVideoDetailsRendererContainer,function(){return _.Q(dIW,{data:K.playerOverlayVideoDetailsRenderer})});
K.addOnDisposeCallback(function(){X.setPlayerOverlayVideoDetailsRenderer(void 0);F()})}};_.yp=function(K){_.LJ.call(this);var X=this;this.JSC$20295_watchApi=K;this.JSC$20295_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;K=_.Dg(_.aA(),_.yW,function(F){X.onFullscreenChanged(F)});
this.addOnDisposeCallback(K);K=_.Dg(_.aA(),_.AG,function(F){X.onWatchScroll(F)});
this.addOnDisposeCallback(K);_.S("kevlar_watch_while_v2")&&(K=_.Dg(_.aA(),_.LI,function(F){Gcs(X,F)}),this.addOnDisposeCallback(K));
lSw(this);vHJ(this);aS8();this.onWatchScroll(_.AG(_.aA().getState()));_.RU("START_IN_FULL_WINDOW_MODE")&&this.JSC$20295_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.r(_.yp,_.LJ);var lSw=function(K){K.JSC$20295_watchApi.registerActionHandler("yt-fullscreen-change-action",function(X){var F=K.JSC$20295_watchApi.isActive();X&&!F||_.aA().dispatch(_.iY({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!X}}))});
K.addOnDisposeCallback(function(){K.JSC$20295_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},vHJ=function(K){var X,F;
_.q(function(P){if(P.nextAddress==1)return _.Y(P,K.JSC$20295_watchApi.playerApi,2);X=P.yieldResult;F=function(){K.onFullerscreenEduClicked()};
X.addEventListener("onFullerscreenEduClicked",F);K.addOnDisposeCallback(function(){X.removeEventListener("onFullerscreenEduClicked",F)});
_.JT(P)})};
_.yp.prototype.onFullscreenChanged=function(K){var X=this,F;return _.q(function(P){if(P.nextAddress==1)return X.isFullscreen=!!_.Ec(),_.Y(P,X.JSC$20295_watchApi.playerApi,2);F=P.yieldResult;X.JSC$20295_miniplayerActive||F.setFauxFullscreen(X.isFullscreen);if(K&&(X.JSC$20295_watchApi.focusOnPlayer(),!X.fullerscreenEduButtonShownThisPlayback)){X.fullerscreenEduButtonShownThisPlayback=!0;var H=_.KE("yt-fullerscreen-edu-button-shown-count")||0;_.kl("yt-fullerscreen-edu-button-shown-count",H+1,31536E3);
X.updateFullerscreenEduButtonSubtleModeState()}_.JT(P)})};
var Gcs=function(K,X){var F;_.q(function(P){if(P.nextAddress==1)return K.JSC$20295_miniplayerActive=X,_.Y(P,K.JSC$20295_watchApi.playerApi,2);F=P.yieldResult;F.setFauxFullscreen(!K.JSC$20295_miniplayerActive&&K.isFullscreen);_.JT(P)})};
_.yp.prototype.onWatchScroll=function(K){var X=this,F,P;return _.q(function(H){if(H.nextAddress==1)return _.S("external_fullscreen_with_edu")?_.Y(H,X.JSC$20295_watchApi.playerApi,2):H.return();F=H.yieldResult;P=K<=0;X.shouldShowFullerscreenEdu!==P&&(X.shouldShowFullerscreenEdu=P,F.updateFullerscreenEduButtonVisibility(!X.shouldShowFullerscreenEdu));_.JT(H)})};
_.yp.prototype.onFullerscreenEduClicked=function(){this.JSC$20295_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var K=_.KE("yt-fullerscreen-edu-button-click-count")||0;_.kl("yt-fullerscreen-edu-button-click-count",K+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.yp.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var K=this,X,F,P,H,f,u;return _.q(function(J){if(J.nextAddress==1)return X=_.KE("yt-fullerscreen-edu-button-click-count")||0,F=_.KE("yt-fullerscreen-edu-button-shown-count")||0,P=_.kU("external_fullscreen_button_click_threshold"),H=_.kU("external_fullscreen_button_shown_threshold"),f=X>=P||F>=H,_.Y(J,K.JSC$20295_watchApi.playerApi,2);u=J.yieldResult;u.updateFullerscreenEduButtonSubtleModeState(f);_.JT(J)})};
_.yp.prototype.disposeInternal=function(){_.LJ.prototype.disposeInternal.call(this);var K=_.Ec();_.S("kevlar_exit_fullscreen_leaving_watch")&&K&&_.bX(K)};
var aS8=function(){if(_.S("web_watch_add_viewport_meta_tag")){var K=document.querySelector("meta[name=viewport]"),X=document.head;X&&!K&&(K=document.createElement("meta"),K.name="viewport",K.content="width=device-width, initial-scale=1.0, viewport-fit=cover",X.appendChild(K))}};_.W4=function(K){_.LJ.call(this);var X=this;this.JSC$20299_watchApi=K;this.jobId=0;this.pendingRequestId=void 0;var F=this.JSC$20299_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){tcw(X)});
this.addOnDisposeCallback(function(){X.JSC$20299_watchApi.unsubscribeByKey(F)});
tcw(this)};
_.r(_.W4,_.LJ);var $I8=function(K){_.A9.cancelJob(K.jobId);K.pendingRequestId=void 0},tcw=function(K){$I8(K);
var X=Kpw(K.JSC$20299_watchApi.getWatchNextResponse());if(X){var F=250,P,H=(P=_.T(X,_.Dft))==null?void 0:P.initialDelayMs;_.S("web_watch_updated_metadata_server_initial_delay")&&H&&(F=H);K.jobId=_.A9.addLowPriorityJob(function(){return K.fetchUpdatedMetadata(X)},F)}};
_.W4.prototype.fetchUpdatedMetadata=function(K,X){var F=this,P,H,f,u,J,Z,M,n,c,B,L,A,d,R,l;return _.q(function(a){switch(a.nextAddress){case 1:X&&(P={continuation:X});if(!_.S("web_get_updated_metadata_fantasy_panel_continuation_params")){a.jumpTo(2);break}H=_.i9().resolve(_.cR);f="PAsports_fantasy";return _.Y(a,H.isVisible(f,!0),3);case 3:a.yieldResult&&(M=(J=(u=H).getUpdatePanelContinuationData)==null?void 0:(Z=J.call(u,f))==null?void 0:Z.updatePanelContinuationRequest)&&(P||(P={}),P.clientParams=
{panelContinuationParams:{panelContinuation:M}});case 2:n=_.i9().resolve(_.L$);if(!n)return _.jF(Error("fm")),a.return();c={};F.pendingRequestId=c;return _.Y(a,_.Rx(n,K,P),4);case 4:B=a.yieldResult;if(c!==F.pendingRequestId)return a.return();d=(L=B)==null?void 0:(A=L.continuation)==null?void 0:A.timedContinuationData;((R=d)==null?0:R.continuation)&&((l=d)==null?0:l.timeoutMs)&&(F.jobId=_.A9.addLowPriorityJob(function(){return F.fetchUpdatedMetadata(K,d.continuation)},d.timeoutMs));
_.JT(a)}})};
_.W4.prototype.disposeInternal=function(){_.LJ.prototype.disposeInternal.call(this);$I8(this)};var OqW=_.$c(function(K){var X=_.DF(function(){var P=K.data().videoId;if(K.active())P=_.Es(P),_.i9().resolve(_.xU).resolveCommand(P);else{var H=K.playerApi(),f=H.getAvailableAudioTracks(),u,J,Z=(u=K.sourceVideoConfig().audioTracks)==null?void 0:(J=u.find(function(M){return M.isDefaultForSource}))==null?void 0:J.id;
if(f=f.find(function(M){return M.getLanguageInfo().getId()===Z}))H.setAudioTrack(f,!0),H.setCompositeParam({activeVideoId:P}),K.setActiveSourceId(P)}}),F={};
return _.Q("ytw-composite-source-video-overlay",{class:_.HO("ytwCompositeSourceVideoOverlayHost",(F.ytwCompositeSourceVideoOverlayActive=K.active,F.ytwCompositeSourceVideoOverlayInteracting=K.interacting,F)),style:_.Je({left:function(){var P;return((P=K.data().topLeftCornerX)!=null?P:0)*100+"%"},
top:function(){var P;return((P=K.data().topLeftCornerY)!=null?P:0)*100+"%"},
width:function(){var P;return((P=K.data().width)!=null?P:0)*100+"%"},
height:function(){var P;return((P=K.data().height)!=null?P:0)*100+"%"}}),
"on:click":X},_.Q("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"nj");var Vcd=_.$c(function(K){var X=_.D(_.qB(function(){var u,J=(u=K.data().sources)==null?void 0:u.find(function(Z){return Z.isActive});
if(J)return J.videoId})),F=X.next().value,P=X.next().value;
X=_.D(_.u_(!1,void 0,"WI4BUb"));var H=X.next().value,f=X.next().value;return _.Q("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.DF(function(){f(!0)}),
"on:mouseout":_.DF(function(){f(!1)})},_.Q(_.p,{cond:function(){return K.data().sources},
then:function(u){return _.Q(_.cd,{each:u},function(J){return _.Q(OqW,{data:J,active:function(){return J.videoId===F()},
setActiveSourceId:P,interacting:H,playerApi:K.playerApi,sourceVideoConfig:function(){return Xtk(K.compositeVideoConfig(),J.videoId)}})})}}))},"oj");_.bqk=function(K){_.LJ.call(this);this.JSC$20315_watchApi=K;K=_.D(_.u_({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=K.next().value;this.setCompositeVideoOverlayRenderer=K.next().value;K=_.D(_.u_({},void 0,"U5hcq"));this.compositeVideoConfig=K.next().value;this.setCompositeVideoConfig=K.next().value;gHt(this);EH8(this)};
_.r(_.bqk,_.LJ);var gHt=function(K){var X=K.JSC$20315_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){EH8(K)});
K.addOnDisposeCallback(function(){K.JSC$20315_watchApi.unsubscribeByKey(X)})},C78=function(K){var X;
return _.q(function(F){if(F.nextAddress==1)return _.Y(F,K.JSC$20315_watchApi.playerApi,2);X=F.yieldResult;X.setCompositeVideoOverlayRendererComponent(K.container);_.JT(F)})},Ne5=function(K){var X;
return _.q(function(F){if(F.nextAddress==1)return _.Y(F,K.JSC$20315_watchApi.playerApi,2);X=F.yieldResult;X.setCompositeVideoOverlayRendererComponent(void 0);_.JT(F)})},iqt=function(K){var X,F;
return _.q(function(P){if(P.nextAddress==1)return _.Y(P,K.JSC$20315_watchApi.playerApi,2);X=P.yieldResult;K.container=document.createElement("div");F=_.L9(K.container,function(){return _.Q(Vcd,{data:K.compositeVideoOverlayRenderer,compositeVideoConfig:K.compositeVideoConfig,playerApi:X})});
K.addOnDisposeCallback(F);_.JT(P)})},EH8=function(K){var X,F,P,H,f,u,J,Z;
_.q(function(M){return M.nextAddress==1?(X=K.JSC$20315_watchApi.getPlayerResponse(),f=_.T((F=X)==null?void 0:(P=F.overlay)==null?void 0:(H=P.playerControlsOverlayRenderer)==null?void 0:H.compositeVideoOverlay,gTs),Z=(u=X)==null?void 0:(J=u.playerConfig)==null?void 0:J.compositeVideoConfig,f&&K.setCompositeVideoOverlayRenderer(f),Z&&K.setCompositeVideoConfig(Z),f&&Z?K.container?M.jumpTo(6):_.Y(M,iqt(K),6):xIF(K)?_.Y(M,Ne5(K),0):M.jumpTo(0)):xIF(K)?M.jumpTo(0):_.Y(M,C78(K),0)})},xIF=function(K){var X;
return!((X=K.container)==null||!X.parentElement)};
_.bqk.prototype.disposeInternal=function(){xIF(this)&&Ne5(this);_.LJ.prototype.disposeInternal.call(this)};_.F1V=function(K){_.LJ.call(this);var X=this;this.JSC$20321_watchApi=K;var F=this.JSC$20321_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var P=X.JSC$20321_watchApi.getPlayerResponse();if(P){var H,f;if(P=_.T((H=P.endscreen)==null?void 0:(f=H.endscreenRenderer)==null?void 0:f.hideButton,_.cp)){var u;(u=X.setEndscreenHideButton)==null||u.call(X,P);IS5(X)}}});
this.addOnDisposeCallback(function(){X.JSC$20321_watchApi.unsubscribeByKey(F)});
K=_.D(_.u_({},void 0,"PPHRb"));this.endscreenHideButton=K.next().value;this.setEndscreenHideButton=K.next().value;kc8(this);K1k(this);XQW(this)};
_.r(_.F1V,_.LJ);var IS5=function(K){var X,F;_.q(function(P){if(P.nextAddress==1)return K.creatorEndscreenHideButtonContainer?P.return():_.Y(P,K.JSC$20321_watchApi.playerApi,2);X=P.yieldResult;K.creatorEndscreenHideButtonContainer=document.createElement("div");_.Ow(K.creatorEndscreenHideButtonContainer,!1);X.setCreatorEndscreenHideButton(K.creatorEndscreenHideButtonContainer);F=_.L9(K.creatorEndscreenHideButtonContainer,function(){return _.Q(_.pS,{data:K.endscreenHideButton,useOutlinedIcon:!0})});
K.addOnDisposeCallback(function(){F();X.setCreatorEndscreenHideButton(void 0)});
_.JT(P)})},kc8=function(K){var X,F;
_.q(function(P){if(P.nextAddress==1)return _.Y(P,K.JSC$20321_watchApi.playerApi,2);X=P.yieldResult;F=function(){K.creatorEndscreenHideButtonContainer&&_.Ow(K.creatorEndscreenHideButtonContainer,!0)};
X.addEventListener("endscreenelementshown",F);K.addOnDisposeCallback(function(){X.removeEventListener("endscreenelementshown",F)});
_.JT(P)})},K1k=function(K){var X=function(){K.creatorEndscreenHideButtonContainer&&_.Ow(K.creatorEndscreenHideButtonContainer,!1)},F=K.JSC$20321_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",X),P=K.JSC$20321_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",X);
K.addOnDisposeCallback(function(){K.JSC$20321_watchApi.unsubscribeByKey(F);K.JSC$20321_watchApi.unsubscribeByKey(P)})},XQW=function(K){K.JSC$20321_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(X){var F=_.T(X,vTF);
K.JSC$20321_watchApi.playerApi.then(function(P){P==null||P.setCreatorEndscreenVisibility(!!F.hide)})});
K.addOnDisposeCallback(function(){K.JSC$20321_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.Hmv=function(K){_.LJ.call(this);this.JSC$20327_watchApi=K;PPd(this)};
_.r(_.Hmv,_.LJ);var PPd=function(K){var X,F;_.q(function(P){if(P.nextAddress==1)return _.Y(P,K.JSC$20327_watchApi.playerApi,2);X=P.yieldResult;F=function(H){_.aA().dispatch(_.iY({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:H}}))};
X.addEventListener("onRetroModeChanged",F);K.addOnDisposeCallback(function(){X.removeEventListener("onRetroModeChanged",F)});
_.JT(P)})};var d7=0,W3=0,eo=0;var sF8;sF8=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.d5=function(K){_.LJ.call(this);this.JSC$20340_watchApi=K;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;zsd(this)};
_.r(_.d5,_.LJ);
var zsd=function(K){var X,F,P;_.q(function(H){if(H.nextAddress==1)return _.Y(H,K.JSC$20340_watchApi.playerApi,2);X=H.yieldResult;if(K.isDisposed())return H.return();K.sessionStorage=_.ll1("yt-sleep-timer");K.sessionStorage||_.yy(new _.nG("SessionStorage for Sleep Timer is undefined."));((F=K.sessionStorage)==null?void 0:F.get("yt-sleep-timer"))==="true"&&(J$k(),(P=K.sessionStorage)==null||P.remove("yt-sleep-timer"),X.syncVolume());f3V(K,X);DNd(K,X);udF(K,X);_.JT(H)})},f3V=function(K,X){var F=function(M){K.onSleepTimerSettingsChanged(M,
X)},P=function(M){K.onPlayerStateChange(M,X)},H=function(){K.onLoopChange(X)},f=function(){K.onCloseMiniplayer(X)},u=function(){fx8(X,(0,_.CG)(),Zo8(X),K.selectedOption==="End of video",X.getPlayerState()!==1)},J=function(){K.onSeekComplete(X)},Z=function(){_.A9.cancelJob(W3);
var M=X.getCurrentTime()>=X.getDuration(),n=K.selectedOption==="End of video"||K.selectedOption==="End of playlist"&&!Hov(K.playlistId);M&&n&&q8s(K,X)};
X.addEventListener("onSleepTimerSettingsChanged",F);X.addEventListener("onLoopChange",H);X.addEventListener("onLoopRangeChange",H);X.addEventListener("onStateChange",P);X.addEventListener("onCloseMiniplayer",f);X.addEventListener("onSleepTimerFeatureAvailable",u);X.addEventListener("SEEK_COMPLETE",J);X.addEventListener("onAdStart",Z);K.addOnDisposeCallback(function(){X.removeEventListener("onSleepTimerSettingsChanged",F);X.removeEventListener("onLoopChange",H);X.removeEventListener("onLoopRangeChange",
H);X.removeEventListener("onStateChange",P);X.removeEventListener("onCloseMiniplayer",f);X.removeEventListener("onSleepTimerFeatureAvailable",u);X.removeEventListener("SEEK_COMPLETE",J);X.removeEventListener("onAdStart",Z)})},DNd=function(K,X){var F=K.JSC$20340_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var P=X.getVideoData().video_id,H,f=(H=Fp8(K.JSC$20340_watchApi))==null?void 0:H.playlistId;
K.pauseAutonavPlayback&&(X.pauseVideo(),X.syncVolume(),K.pauseAutonavPlayback=!1);if(K.selectedOption==="End of video"&&P!==K.videoId)eD(K,X);else{if(K.selectedOption==="End of playlist"){H=Hov(K.playlistId);if(f!==K.playlistId){eD(K,X);break a}H?H&&Jyo(K,X):Zm8(K,X)}K.videoId=P;K.playlistId=f}}});
K.addOnDisposeCallback(function(){K.JSC$20340_watchApi.unsubscribeByKey(F)})},udF=function(K,X){var F=_.i9().resolve(_.jE),P=_.Dg(F,_.JpP,function(f){f&&K.selectedOption!=="Off"&&eD(K,X)}),H=K.JSC$20340_watchApi.subscribeToActiveChanged(function(f){var u,J;
return _.q(function(Z){if(Z.nextAddress==1)return _.Y(Z,_.zC().navigationFinishPromise,2);u=!_.MYT();J=_.i9().resolve(_.Wj).isMiniplayerActive();f||!yR(K.selectedOption)||J||u||eD(K,X);_.JT(Z)})},!1);
F=_.Dg(F,function(f){return f.entities.playlistLoopStateEntity||{}},function(f){f=f===void 0?{}:f;
var u=Po8(K.JSC$20340_watchApi);if(u){var J;((J=f[u])==null?void 0:J.state)==="PLAYLIST_LOOP_STATE_ALL"&&yR(K.selectedOption)&&eD(K,X)}});
K.addOnDisposeCallback(P);K.addOnDisposeCallback(F);K.addOnDisposeCallback(H)};
_.d5.prototype.onSleepTimerSettingsChanged=function(K,X){switch(K){case "Off":this.selectedOption!=="Off"&&eD(this,X);break;case "End of video":case "End of playlist":Y85(this,K,X);break;default:Y85(this,K,X,sF8.get(K))}};
_.d5.prototype.onLoopChange=function(K){(K.getLoopVideo()||K.getLoopRange())&&yR(this.selectedOption)&&eD(this,K)};
_.d5.prototype.onCloseMiniplayer=function(K){yR(this.selectedOption)&&eD(this,K)};
var Y85=function(K,X,F,P){QFV(K,F);K.selectedOption=X;K.videoId=F.getVideoData().video_id;K.playlistId="";var H;(H=K.sessionStorage)==null||H.set("yt-sleep-timer","true");K.adjustmentsCount++;fx8(F,(0,_.CG)(),Zo8(F),K.selectedOption==="End of video");if(K.selectedOption==="End of video")Zm8(K,F),M$F(K,F);else if(K.selectedOption==="End of playlist"){M$F(K,F);var f,u;K.playlistId=(u=(f=Fp8(K.JSC$20340_watchApi))==null?void 0:f.playlistId)!=null?u:"";Hov(K.playlistId)||Zm8(K,F)}else P&&(K.presetFadeSchedulerId=
_.u6(_.A9,function(){uh8(F,15E3)},P-15E3),K.presetPauseSchedulerId=_.u6(_.A9,function(){q8s(K,F)},P),D7o(F,(0,_.CG)(),P))},q8s=function(K,X){if(K.JSC$20340_watchApi.isActive()){var F={dismissDialogEndpoint:{}};
var P={commandExecutorCommand:{commands:[F,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};F={buttonViewModel:{title:_.uY("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:F}}};P={buttonViewModel:{title:_.uY("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:P}}};var H={dialogHeaderViewModel:{headline:{content:_.uY("SLEEP_TIMER_ENDED_TITLE")}}},
f={basicContentViewModel:{paragraphs:[{text:{content:_.uY("SLEEP_TIMER_ENDED_TEXT")}}]}};F={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:H,content:f,footer:{panelFooterViewModel:{primaryButton:F,secondaryButton:P,shouldHideDivider:!0}}}}}}};_.i9().resolve(_.xU).resolveCommand(F,{form:{element:K}})}else J$k();nt5(K,!1);cyF(K,X);X.pauseVideo();_.$2.getInstance().getState()===2&&X.getPlayerState()===5&&(K.pauseAutonavPlayback=!0)},eD=function(K,X){nt5(K,!0);
cyF(K,X);J$k()},cyF=function(K,X){QFV(K,X);
K.selectedOption="Off";K.videoId="";K.playlistId="";K.adjustmentsCount=0;var F;(F=K.sessionStorage)==null||F.remove("yt-sleep-timer");_.A9.cancelJob(d7);X.resetSleepTimerMenuSettings()},nt5=function(K,X){X={timer_length_adjustment_times_during_session:K.adjustmentsCount-1,
is_session_cancelled:X};switch(K.selectedOption){case "Off":X.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":X.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":X.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:X.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",X.option_duration_in_minutes=sF8.get(K.selectedOption)/6E4}_.LL("sleepTimerSessionFinishEvent",X)};
_.d5.prototype.onPlayerStateChange=function(K,X){K===1?fx8(X,(0,_.CG)(),Zo8(X),this.selectedOption==="End of video"):K===0?(_.A9.cancelJob(W3),X.setVideoTimeLeft(zJJ(0,0))):K===2&&_.A9.cancelJob(W3);this.selectedOption==="End of video"?K===0?q8s(this,X):K===2&&qC1(X):this.selectedOption!=="End of playlist"||Hov(this.playlistId)||(K===0?q8s(this,X):K===2&&qC1(X))};
_.d5.prototype.onSeekComplete=function(K){K.getPlayerState()===2&&fx8(K,(0,_.CG)(),Zo8(K),this.selectedOption==="End of video",!0)};
_.d5.prototype.onCueRangeEnter=function(K,X){K==="sleep-timer-fade-audio"&&uh8(X,(X.getDuration()-X.getProgressState().current)*1E3)};
_.d5.prototype.onCueRangeExit=function(K,X){K==="sleep-timer-fade-audio"&&X.getPlayerState()!==0&&qC1(X,!0)};
var Zm8=function(K,X){X.addCueRange("sleep-timer-fade-audio",X.getDuration()-15,X.getDuration());X.addEventListener("onCueRangeEnter",function(F){K.onCueRangeEnter(F,X)});
X.addEventListener("onCueRangeExit",function(F){K.onCueRangeExit(F,X)})},Jyo=function(K,X){X.removeCueRange("sleep-timer-fade-audio");
X.removeEventListener("onCueRangeEnter",function(F){K.onCueRangeEnter(F,X)});
X.removeEventListener("onCueRangeExit",function(F){K.onCueRangeExit(F,X)})},QFV=function(K,X){yR(K.selectedOption)?Jyo(K,X):(_.A9.cancelJob(K.presetPauseSchedulerId),_.A9.cancelJob(K.presetFadeSchedulerId),K.presetPauseSchedulerId=0,K.presetFadeSchedulerId=0);
qC1(X,!0)},M$F=function(K,X){X.setLoop(!1);
X.setLoopVideo(!1);X.setLoopRange(null);(K=Po8(K.JSC$20340_watchApi))&&_.i9().resolve(_.jE).dispatch(_.zl("playlistLoopStateEntity",K,{key:K,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.ott=function(K){_.LJ.call(this);this.JSC$20343_watchApi=K;pQG(this);Bto(this);S8o(this);K=K.getRoot();if(K.is==="ytd-watch-flexy"||K.is==="ytd-watch-grid")K.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.rJJ();_.S("web_watch_log_theater_mode_cookie_state")&&_.Jv.get("wide","0")==="1"&&_.GA4("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.r(_.ott,_.LJ);var pQG=function(K){var X,F;_.q(function(P){if(P.nextAddress==1)return _.Y(P,K.JSC$20343_watchApi.playerApi,2);X=P.yieldResult;F=function(H){L1J(K,!!H)};
X.addEventListener("SIZE_CLICKED",F);K.addOnDisposeCallback(function(){X.removeEventListener("SIZE_CLICKED",F)});
_.JT(P)})},Bto=function(K){K.JSC$20343_watchApi.registerActionHandler("yt-toggle-theater-mode",function(X,F){L1J(K,X,F===void 0?!0:F)});
K.addOnDisposeCallback(function(){K.JSC$20343_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.ott.prototype.getState=function(){return _.wV(_.aA().getState())};
var L1J=function(K,X,F){F=F===void 0?!0:F;var P,H,f,u=_.S("enable_player_resize_transition")&&!!K.JSC$20343_watchApi.getWatchNextResponse()&&!((P=K.JSC$20343_watchApi.getWatchNextResponse())==null?0:(H=P.contents)==null?0:(f=H.twoColumnWatchNextResults)==null?0:f.conversationBar);_.$Rw(function(){_.aA().dispatch(_.iY({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:X}}));_.S("theater_mode_scroll_to_top_killswitch")||K.JSC$20343_watchApi.scrollWatchTo(0,!1);_.Ec()&&_.S("external_fullscreen")&&_.bX(document.documentElement);
S8o(K);F&&_.Zr("wide",X?"1":"0",-1);_.xr(K.JSC$20343_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);K.JSC$20343_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:X});X&&_.rJJ()},{shouldWrap:u})},S8o=function(K){var X;
_.q(function(F){if(F.nextAddress==1)return _.Y(F,K.JSC$20343_watchApi.playerApi,2);X=F.yieldResult;X.setSizeStyle(!0,K.getState());_.JT(F)})};var AyF=function(K){_.LJ.call(this);var X=this;this.playerApi=K;this.timeToPanelSyncKeyMap={};var F;if(K==null?0:(F=K.isReady)==null?0:F.call(K)){F=_.Dg(_.i9().resolve(_.jE),function(H){return H.entities.timedMarkersListSyncEntity||{}},function(H,f){H=H===void 0?{}:H;
f=f===void 0?{}:f;for(var u=_.D(Object.keys(f)),J=u.next();!J.done;J=u.next())J=J.value,H[J]!==f[J]&&Ttw(X,f[J]);f=_.D(Object.keys(H));for(u=f.next();!u.done;u=f.next())u=u.value,J=H[u],X.timeToPanelSyncKeyMap[u]&&rys(X,J)});
this.addOnDisposeCallback(F);var P=function(H){X.onCueRangeEnter(H)};
K.addEventListener("onCueRangeEnter",P);this.addOnDisposeCallback(function(){var H;(H=K.removeEventListener)==null||H.call(K,"onCueRangeEnter",P)})}};
_.r(AyF,_.LJ);
var rys=function(K,X){var F,P;if((F=K.playerApi)==null?0:(P=F.isReady)==null?0:P.call(F)){var H;if((F=X==null?void 0:(H=X.timedListData)==null?void 0:H.sections)&&X!=null&&X.key)for(H=_.D(F),F=H.next();!F.done;F=H.next())if(F=F.value,F.timedSyncDataList&&F.sectionId)for(P=0;P<F.timedSyncDataList.length;P++){var f=F.timedSyncDataList[P];f.syncItemId&&K.playerApi.addCueRange(F.sectionId+"_"+X.key+"_"+f.syncItemId,Number(f.videoTimeMs)/1E3,P===F.timedSyncDataList.length-1?0x8000000000000:Number(F.timedSyncDataList[P+
1].videoTimeMs)/1E3)}}},Ttw=function(K,X){var F,P;
if((F=K.playerApi)==null?0:(P=F.isReady)==null?0:P.call(F)){var H;if((F=X==null?void 0:(H=X.timedListData)==null?void 0:H.sections)&&X!=null&&X.key)for(H=_.D(F),F=H.next();!F.done;F=H.next())if(F=F.value,F.timedSyncDataList&&F.sectionId){P=_.D(F.timedSyncDataList);for(var f=P.next();!f.done;f=P.next())f=f.value,f.syncItemId&&K.playerApi.removeCueRange(F.sectionId+"_"+X.key+"_"+f.syncItemId)}}};
AyF.prototype.onCueRangeEnter=function(K){for(var X=_.D(Object.keys(this.timeToPanelSyncKeyMap)),F=X.next();!F.done;F=X.next()){F=F.value;var P=_.D(K.split("_"+F+"_")),H=P.next().value;P=P.next().value;if(H&&P){K=_.i9().resolve(_.jE);X=this.timeToPanelSyncKeyMap[F];var f=_.BxP(K.getState(),X);F=jF8(F,H,P);if(F===-1)break;F={activeSyncId:P,activeItemIndex:F,activeSectionInfo:{sectionIdentifier:H}};f?K.dispatch(_.Bp("markersEngagementPanelSyncEntity",X,F)):K.dispatch(_.zl("markersEngagementPanelSyncEntity",
X,Object.assign({},{key:X},F)));break}}};
var jF8=function(K,X,F){var P=_.i9().resolve(_.jE),H,f;K=(H=Skt(P.getState(),K))==null?void 0:(f=H.timedListData)==null?void 0:f.sections;if(!K)return-1;H=0;f=_.D(K);for(K=f.next();!K.done;K=f.next()){K=K.value;P=K.timedSyncDataList||[];if(K.sectionId===X)return X=P.findIndex(function(u){return u.syncItemId===F}),X===-1?X:H+X;
H+=P.length}return-1};_.W1w=function(K){_.LJ.call(this);var X=this;this.JSC$20355_watchApi=K;this.unresolvedCommands=[];this.JSC$20355_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(F){wQ1(X,F)});
this.addOnDisposeCallback(function(){X.JSC$20355_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
yyW(this)};
_.r(_.W1w,_.LJ);var yyW=function(K){var X;_.q(function(F){if(F.nextAddress==1)return _.Y(F,K.JSC$20355_watchApi.playerApi,2);X=F.yieldResult;if(K.isDisposed())return F.return();K.timedSyncObserver=new AyF(X);K.unresolvedCommands.length&&(K.unresolvedCommands.forEach(function(P){return wQ1(K,P)}),K.unresolvedCommands=[]);
_.JH(K,K.timedSyncObserver);_.JT(F)})},wQ1=function(K,X){if(K.timedSyncObserver){var F=_.T(X,tfo);
if(F&&F.timedSyncEntityKey&&F.panelSyncEntityKey){K=K.timedSyncObserver;X=F.timedSyncEntityKey;var P=F.panelSyncEntityKey;F=!!F.isEnabled;F=F===void 0?!0:F;var H=_.i9().resolve(_.jE);H=Skt(H.getState(),X);F?K.timeToPanelSyncKeyMap[X]||(K.timeToPanelSyncKeyMap[X]=P,rys(K,H)):(delete K.timeToPanelSyncKeyMap[X],Ttw(K,H))}}else K.unresolvedCommands.push(X)};var dN8=_.$c(function(K){var X=K.data,F=K.maybeLogSmartSkipClientData,P=_.t_();_.m_(P,function(){return X().rendererContext},{onTap:function(n,c){c({disableClickTracking:!0})}});
var H=null,f=null,u=_.S("web_enable_auto_focus_for_timely_action_button"),J=function(){H=document.activeElement},Z=function(){X().smartSkipMetadata&&(H=document.activeElement,_.Jaw(function(){return f}))},M=function(n){if(X().smartSkipMetadata&&(!n||n.key!=="Enter")){H&&H.isConnected&&(_.Jaw(function(){return H}),H=null);
var c;(c=f)==null||c.blur()}};
K=_.DF(function(){F==null||F(!0,X());return!1});
_.NF(P,{visibilityCallback:function(n){if(u)n?f&&X().smartSkipMetadata&&(Z(),document.addEventListener("focusin",J)):(document.removeEventListener("focusin",J),M());else if(n&&_.S("web_ephemeral_actions")){n=_.Uy(X().rendererContext);var c=Number(X().maxVisibleDurationMilliseconds),B,L=(B=_.T(X().rendererContext,_.Jp))==null?void 0:B.label;n&&c&&L&&(B={label:L,command:n,durationMs:c},_.i9().resolve(_.sR).enqueue(B))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.Tr(function(){if(u){var n;if((f=(n=P.value)==null?void 0:n.querySelector("button"))&&X().smartSkipMetadata){var c;(c=P.value)==null||c.addEventListener("keydown",M)}}});
_.AZ(function(){u&&(f&&X().smartSkipMetadata&&f.removeEventListener("keydown",M),document.removeEventListener("focusin",J),M())});
return _.Q("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:P,"on:click":K},_.Q(_.Md,{data:function(){return X().content}},{buttonViewModel:_.Af}))},"pj");var esG=_.$c(function(K){var X=K.data,F=K.playerApi,P=_.i9().resolve(_.OcE);K=_.D(_.qB(function(){X()}));
var H=K.next().value,f=K.next().value,u=function(){return QH8(X(),H())},J=function(M,n){var c,B,L=(c=_.T(n==null?void 0:n.rendererContext,_.q0))==null?void 0:(B=c.loggingDirectives)==null?void 0:B.trackingParams;
if((n=n==null?void 0:n.smartSkipMetadata)&&n.loggingData&&(B=n.loggingData,n=B.algorithmId,c=B.startMilliseconds,B=B.endMilliseconds,n&&c!==void 0&&B!==void 0)){var A,d;M={smartSkipData:Object.assign({},{versionName:n,startMediaTimeMs:c,endMediaTimeMs:B},M&&{userInteractionMediaTimeMs:(Math.floor(((A=_.$f())==null?void 0:(d=A.getPlayer())==null?void 0:d.getCurrentTime())||0)*1E3).toString()})};A=_.AD();var R;L&&(R=_.QB(L));A&&R&&_.tc(A,R,M)}},Z=function(M,n){var c=QH8(X(),M);
if(c){var B=_.T(c,R4),L;if(L=n)L=F(),c=_.T(c,R4),L=c!=null&&c.smartSkipMetadata?!(L==null?0:L.isSameMarkerTypeVisible((c==null?void 0:c.smartSkipMetadata.markerKey)||"")):!0;if(L){var A,d;(B==null?0:(A=B.smartSkipMetadata)==null?0:(d=A.loggingData)==null?0:d.isCounterfactual)||(J(!1,B),f(M))}else n||H()!==M||f(void 0)}};
_.rs(function(){var M=X().timelyActions;if(M){M=_.D(M);for(var n=M.next();!n.done;n=M.next()){n=_.T(n.value,R4);var c=void 0;(c=n)!=null&&c.cueRangeId&&P.timelyActionsMap.set(n.cueRangeId,Z)}_.AZ(function(){P.timelyActionsMap.clear()})}},"Z1Qwtc");
return _.Q("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.Q(_.Md,{data:u},{timelyActionViewModel:function(M){return _.Q(dN8,{data:M.data,maybeLogSmartSkipClientData:function(){J(!0,_.T(u(),R4))}})}}))},"qj");_.UN8=function(K){_.LJ.call(this);this.JSC$20367_watchApi=K;K=_.D(_.u_({},void 0,"pLDp2"));this.timelyActionsOverlay=K.next().value;this.setTimelyActionsOverlay=K.next().value;RsW(this)};
_.r(_.UN8,_.LJ);var RsW=function(K){var X,F,P,H;_.q(function(f){if(f.nextAddress==1)return hsV(K),mN1(K),K.timelyActionsContainer=document.createElement("div"),_.Y(f,K.JSC$20367_watchApi.playerApi,2);X=f.yieldResult;(P=(F=X).insertTimelyActionUi)==null||P.call(F,K.timelyActionsContainer);H=_.L9(K.timelyActionsContainer,function(){return _.Q(esG,{data:K.timelyActionsOverlay,playerApi:X})});
K.addOnDisposeCallback(H);_.JT(f)})},mN1=function(K){var X=K.JSC$20367_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){hsV(K)});
K.addOnDisposeCallback(function(){K.JSC$20367_watchApi.unsubscribeByKey(X)})},hsV=function(K){var X=K.JSC$20367_watchApi.getWatchNextResponse();
if(X){var F,P;if(X=_.T((F=X.playerOverlays)==null?void 0:(P=F.playerOverlayRenderer)==null?void 0:P.timelyActionsOverlayViewModel,$7o)){var H;(H=K.setTimelyActionsOverlay)==null||H.call(K,X)}}};_.l35=function(K){_.LJ.call(this);this.JSC$20371_watchApi=K;GRs(this)};
_.r(_.l35,_.LJ);var GRs=function(K){var X,F;_.q(function(P){if(P.nextAddress==1)return _.Y(P,K.JSC$20371_watchApi.playerApi,2);X=P.yieldResult;F=function(H){_.Hn.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.T(H,_.NW8)},popupType:"TOAST"}})};
X.addEventListener("onYtShowToast",F);K.addOnDisposeCallback(function(){X.removeEventListener("onYtShowToast",F)});
_.JT(P)})};var vts,$NG,a3V,t$J,EtG,V$G,gtG,CPV,Nt8;vts=!1;_.Om5=function(K){_.LJ.call(this);this.JSC$20374_watchApi=K;this.fullscreen=this.theater=!1;a3V(this);t$J(this);$NG(this)};
_.r(_.Om5,_.LJ);$NG=function(K){var X,F,P;_.q(function(H){if(H.nextAddress==1)return _.Y(H,K.JSC$20374_watchApi.playerApi,2);X=H.yieldResult;if(K.isDisposed())return H.return();F=K.JSC$20374_watchApi.getElement("CINEMATICS");if(!F)return H.return();K.JSC$20374_cinematicController=new _.H3(F,X);_.JH(K,K.JSC$20374_cinematicController);_.cXs(K.JSC$20374_cinematicController);V$G(K,_.ui9());P=K.JSC$20374_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(f){gtG(K,f)});
K.addOnDisposeCallback(function(){K.JSC$20374_watchApi.unsubscribeByKey(P)});
EtG(K);gtG(K,K.JSC$20374_cinematicController.isAllowed());_.bm8(K,K.fullscreen,K.theater);CPV(K);_.JT(H)})};
a3V=function(K){var X=K.JSC$20374_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){EtG(K)});
K.addOnDisposeCallback(function(){K.JSC$20374_watchApi.unsubscribeByKey(X)})};
t$J=function(K){var X,F;_.q(function(P){if(P.nextAddress==1)return _.Y(P,K.JSC$20374_watchApi.playerApi,2);X=P.yieldResult;F=function(H){V$G(K,H)};
X.addEventListener("cinematicSettingsToggleChange",F);K.addOnDisposeCallback(function(){X.removeEventListener("cinematicSettingsToggleChange",F)});
_.JT(P)})};
EtG=function(K){var X=K.JSC$20374_watchApi.getWatchNextResponse(),F;X=_.T(X==null?void 0:(F=X.pageVisualEffects)==null?void 0:F[0],_.Lh);var P;(P=K.JSC$20374_cinematicController)==null||_.Byw(P,X)};
V$G=function(K,X){var F;(F=K.JSC$20374_cinematicController)==null||_.pZV(F,X);Nt8(K)};
gtG=function(K,X){var F;_.q(function(P){if(P.nextAddress==1)return _.S("kevlar_watch_cinematics_invisible")&&(X=!1),_.Y(P,K.JSC$20374_watchApi.playerApi,2);F=P.yieldResult;F.updateCinematicSettings(X);Nt8(K);_.JT(P)})};
CPV=function(K){var X=_.ZO();if(_.S("kevlar_measure_ambient_mode_idle")&&!X.getFlag(192)&&!vts){vts=!0;var F=_.cu(_.A9,function(){_.i9().resolve(_.mq5).start(1E4)},5E3);
K.addOnDisposeCallback(function(){_.A9.cancelJob(F);_.i9().resolve(_.mq5).stop()})}};
_.bm8=function(K,X,F){K.fullscreen=X;K.theater=F;var P;(P=K.JSC$20374_cinematicController)==null||P.setFullscreen(K.fullscreen,K.theater);if(_.S("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(K.theater||K.fullscreen){var H;(H=K.JSC$20374_cinematicController)==null||_.Sd1(H)}else if((K=K.JSC$20374_cinematicController)!=null){var f;(f=K.currentCinematicEffect)==null||f.pause()}};
Nt8=function(K){if(_.S("web_cinematic_theater_mode")||_.S("web_cinematic_fullscreen")){var X;K.JSC$20374_watchApi.getRoot().toggleCinematicsActive(!((X=K.JSC$20374_cinematicController)==null||!X.isEnabled()))}};_.kRv=function(K){_.LJ.call(this);var X=this;this.JSC$20377_watchApi=K;this.commentsReady=!1;this.setCommentsJobId=0;K=_.Dg(_.aA(),_.AG,function(){im1(X)});
this.addOnDisposeCallback(K);var F=this.JSC$20377_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){xNt(X)}),P=this.JSC$20377_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){xNt(X)});
this.addOnDisposeCallback(function(){X.JSC$20377_watchApi.unsubscribeByKey(F);X.JSC$20377_watchApi.unsubscribeByKey(P)});
var H=function(){_.S("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&I31(X,"false")};
this.JSC$20377_watchApi.getRoot().addEventListener("yt-page-data-will-update",H);this.addOnDisposeCallback(function(){X.JSC$20377_watchApi.getRoot().removeEventListener("yt-page-data-will-update",H)});
xNt(this)};
_.r(_.kRv,_.LJ);var xNt=function(K){K.commentsReady=!1;_.A9.cancelJob(K.setCommentsJobId);K.setCommentsJobId=_.cu(_.A9,function(){im1(K)},1E3)},im1=function(K){if(!K.commentsReady){_.Ac("cmi");
_.A9.cancelJob(K.setCommentsJobId);var X,F,P,H,f=(X=K.JSC$20377_watchApi.getWatchNextResponse())==null?void 0:(F=X.contents)==null?void 0:(P=F.twoColumnWatchNextResults)==null?void 0:(H=P.results)==null?void 0:H.results.contents;X=void 0;if(f&&f.length)for(f=_.D(f),F=f.next();!F.done;F=f.next())if(F=F.value,H=P=void 0,((P=F)==null?void 0:(H=P.itemSectionRenderer)==null?void 0:H.sectionIdentifier)==="comment-item-section"){_.S("web_watch_provide_undefined_comments")?X=F.itemSectionRenderer:K.JSC$20377_watchApi.provideRenderingData("COMMENTS",
F.itemSectionRenderer);I31(K,"true");break}_.S("web_watch_provide_undefined_comments")&&K.JSC$20377_watchApi.provideRenderingData("COMMENTS",X);K.commentsReady=!0;K.JSC$20377_watchApi.dispatchEvent("yt-watch-comments-ready")}},I31=function(K,X){var F;
(F=K.JSC$20377_watchApi.getElement("COMMENTS"))==null||F.setAttribute("canScheduleJobs",X)};_.mA=function(K){_.LJ.call(this);var X=this;this.JSC$20380_watchApi=K;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.S("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.S("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.S("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.kU("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)Knt(this);
else{var F=this.JSC$20380_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){RS(X);UJ(X)}),P=this.JSC$20380_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){hi(X);
UJ(X)});
this.JSC$20380_watchApi.getRoot().is==="ytd-watch-grid"&&_.S("swatcheroo_pbs_load_grid")&&(Xrs(this),FnF(this));this.addOnDisposeCallback(function(){X.JSC$20380_watchApi.unsubscribeByKey(F);X.JSC$20380_watchApi.unsubscribeByKey(P);_.A9.cancelJob(X.provideRichGridJobId)});
RS(this);hi(this)}};
_.r(_.mA,_.LJ);var Knt=function(K){var X=K.JSC$20380_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){K.providePlayerJobId=_.QW(_.A9,function(){RS(K);UJ(K)},K.provideAllDataDelayMs)}),F=K.JSC$20380_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){K.provideWatchNextJobId=_.QW(_.A9,function(){hi(K);
UJ(K)},K.provideAllDataDelayMs)}),P=K.JSC$20380_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){K.provideWatchNextJobId=_.QW(_.A9,function(){hi(K);
UJ(K)},K.provideAllDataDelayMs)});
K.JSC$20380_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.cu(_.A9,function(){RS(K);hi(K);UJ(K)},100)});
K.JSC$20380_watchApi.addPageDisposeJob(function(){_.A9.cancelJob(K.provideWatchNextJobId);_.A9.cancelJob(K.providePlayerJobId)});
K.addOnDisposeCallback(function(){K.JSC$20380_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");K.JSC$20380_watchApi.unsubscribeByKey(X);K.JSC$20380_watchApi.unsubscribeByKey(F);K.JSC$20380_watchApi.unsubscribeByKey(P);_.A9.cancelJob(K.providePlayerJobId);_.A9.cancelJob(K.provideWatchNextJobId)});
RS(K);hi(K)},RS=function(K){var X=K.JSC$20380_watchApi.getPlayerResponse(),F,P,H=(P=X==null?void 0:(F=X.playabilityStatus)==null?void 0:F.messageRenderers)!=null?P:[],f,u;
X=(u=X==null?void 0:(f=X.playabilityStatus)==null?void 0:f.messages)!=null?u:[];f=_.D(X);for(u=f.next();!u.done;u=f.next())H.push({alertRenderer:{text:_.GS(u.value),type:"WARNING"}});K.JSC$20380_watchApi.provideRenderingData("ALERTS",H)},hi=function(K){var X=[],F,P,H,f=K.JSC$20380_watchApi.getWatchNextResponse(),u,J,Z,M,n=f==null?void 0:(u=f.contents)==null?void 0:(J=u.twoColumnWatchNextResults)==null?void 0:(Z=J.results)==null?void 0:(M=Z.results)==null?void 0:M.contents;
if(n)for(u=_.D(n),J=u.next();!J.done;J=u.next())if(J=J.value,J.videoPrimaryInfoRenderer)var c=J;else if(J.videoSecondaryInfoRenderer){var B=J;M=Z=void 0;J=Object.assign({},(Z=J.videoSecondaryInfoRenderer)==null?void 0:(M=Z.metadataRowContainer)==null?void 0:M.metadataRowContainerRenderer);if(J.rows&&J.collapsedItemCount!==void 0){J.rows=J.rows.slice(0,J.collapsedItemCount).filter(function(NV){return!!NV.richMetadataRowRenderer});
J.collapsedItemCount=J.rows.length;var L={metadataRowContainerRenderer:J}}}else if(J.merchandiseShelfRenderer)var A=J;else if(J.ticketShelfRenderer)var d=J;else if(J.expandableMetadataRenderer)var R=J;else if(J.itemSectionRenderer)if(Z=J.itemSectionRenderer.contents,M=void 0,K.directlyProvideComments&&((M=J.itemSectionRenderer)==null?void 0:M.sectionIdentifier)==="comment-item-section")_.Ac("cmi"),K.JSC$20380_watchApi.provideRenderingData("COMMENTS",J.itemSectionRenderer);else if(Z)for(J=_.D(Z),Z=
J.next();!Z.done;Z=J.next())if(Z=Z.value,Z.commentsEntryPointHeaderRenderer)var l=Z;else if(Z.clarificationRenderer||Z.infoPanelContainerRenderer||Z.infoPanelContentRenderer||Z.emergencyOneboxRenderer){X.push(Z);var a=a||!!B}else Z.limitedStateMessageRenderer?P=Z:Z.videoMetadataCarouselViewModel&&(H=Z);if(_.S("web_watch_merch_in_sd_when_ticket_shelf_present")&&A&&d){var E=A;A=void 0}if(K.provideWatchNextSecondaryResults){var V,x,N;K.JSC$20380_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
f==null?void 0:(V=f.contents)==null?void 0:(x=V.twoColumnWatchNextResults)==null?void 0:(N=x.secondaryResults)==null?void 0:N.secondaryResults)}if(K.JSC$20380_watchApi.getRoot().is==="ytd-watch-grid"){var Dl,Mq;K.JSC$20380_watchApi.provideRenderingData("LIVE_CHAT",f==null?void 0:(Dl=f.contents)==null?void 0:(Mq=Dl.twoColumnWatchNextResults)==null?void 0:Mq.conversationBar)}var pO,y9,Wy,eP;(V=f==null?void 0:(pO=f.contents)==null?void 0:(y9=pO.twoColumnWatchNextResults)==null?void 0:(Wy=y9.secondaryResults)==
null?void 0:(eP=Wy.secondaryResults)==null?void 0:eP.offerModule)&&(V.donationShelfRenderer||V.donationUnavailableRenderer)&&K.JSC$20380_watchApi.getRoot().is!=="ytd-watch-grid"&&(F=V);pO=K.JSC$20380_watchApi.getPlayerResponse();if(!pO||!_.EIl(pO.playabilityStatus,f==null?void 0:f.playerOverlays)){var gw;if(f==null?0:(gw=f.contents)==null?0:gw.singleColumnWatchNextResults){var a3,dL;var nt=f==null?void 0:(a3=f.contents.singleColumnWatchNextResults.results)==null?void 0:(dL=a3.results)==null?void 0:
dL.contents}else{var ht,YC,uu,X8;gw=!!(n==null?0:(ht=n[0])==null?0:(YC=ht.itemSectionRenderer)==null?0:(uu=YC.contents)==null?0:(X8=uu[0])==null?0:X8.backgroundPromoRenderer);var qV,J0;ht=!!(f==null?0:(qV=f.contents)==null?0:(J0=qV.twoColumnWatchNextResults)==null?0:J0.secondaryResults);gw&&!ht&&(nt=n)}}n=X[0];qV=X[1];a&&X.length===1&&(qV=n,n=void 0);K.JSC$20380_watchApi.provideRenderingData("PRIMARY_INFO",c);K.JSC$20380_watchApi.provideRenderingData("SECONDARY_INFO",B);K.JSC$20380_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
l);K.JSC$20380_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",H);K.JSC$20380_watchApi.provideRenderingData("CLARIFICATION",n);K.JSC$20380_watchApi.provideRenderingData("RICH_METADATA",L);K.JSC$20380_watchApi.provideRenderingData("MERCH_SHELF",A);_.S("web_watch_merch_in_sd_when_ticket_shelf_present")&&K.JSC$20380_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",E);K.JSC$20380_watchApi.provideRenderingData("TICKET_SHELF",d);K.JSC$20380_watchApi.provideRenderingData("LIMITED_STATE",P);K.JSC$20380_watchApi.getRoot().is!==
"ytd-watch-grid"&&K.JSC$20380_watchApi.provideRenderingData("DONATION_SHELF",F);K.JSC$20380_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",nt);K.JSC$20380_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",qV);K.JSC$20380_watchApi.provideRenderingData("EXPANDABLE_METADATA",R);if(K.swatcherooProvideAllDataOnScheduledJob){var yd,uT,SU,RC,tw,TE;c=f==null?void 0:(yd=f.contents)==null?void 0:(uT=yd.twoColumnWatchNextResults)==null?void 0:(SU=uT.secondaryResults)==null?void 0:(RC=SU.secondaryResults)==
null?void 0:(tw=RC.results)==null?void 0:(TE=tw[0])==null?void 0:TE.richGridRenderer;K.JSC$20380_watchApi.provideRenderingData("RICH_GRID_RENDERER",c)}};
_.mA.prototype.hasCompanionAds=function(K){var X,F;return(F=K==null?void 0:(X=K.adPlacements)==null?void 0:X.some(function(P){var H,f,u,J;return(P==null?void 0:(H=P.adPlacementRenderer)==null?void 0:(f=H.renderer)==null?void 0:f.actionCompanionAdRenderer)||(P==null?void 0:(u=P.adPlacementRenderer)==null?void 0:(J=u.renderer)==null?void 0:J.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?F:!1};
var UJ=function(K){if(!_.S("swaterdoo_ps_wn_handle_ks")){K.swatcherooProvideAllDataOnScheduledJob||FnF(K,3E3);var X=K.JSC$20380_watchApi.getPlayerResponse(),F,P,H,f,u,J=(F=K.JSC$20380_watchApi.getWatchNextResponse())==null?void 0:(P=F.contents)==null?void 0:(H=P.twoColumnWatchNextResults)==null?void 0:(f=H.secondaryResults)==null?void 0:(u=f.secondaryResults)==null?void 0:u.offerModule;X=K.hasCompanionAds(X);var Z,M;F=(J==null?void 0:(Z=J.tvfilmOfferModuleRenderer)==null?void 0:Z.clientShouldSuppressIfCompanionAdDisplayed)||
(J==null?void 0:(M=J.unlimitedOfferModuleRenderer)==null?void 0:M.suppressIfCompanionAds);Z=X&&F;K.JSC$20380_watchApi.getRoot().is==="ytd-watch-grid"&&K.JSC$20380_watchApi.provideRenderingData("OFFER_MODULE",Z?void 0:J)}},FnF=function(K,X){_.S("swatcheroo_pbs_load_grid")&&(K.provideRichGridJobId&&_.A9.cancelJob(K.provideRichGridJobId),K.provideRichGridJobId=_.QW(_.A9,function(){K.provideRichGridJobId=0;
var F,P,H,f,u,J,Z,M=(F=K.JSC$20380_watchApi.getWatchNextResponse())==null?void 0:(P=F.contents)==null?void 0:(H=P.twoColumnWatchNextResults)==null?void 0:(f=H.secondaryResults)==null?void 0:(u=f.secondaryResults)==null?void 0:(J=u.results)==null?void 0:(Z=J[0])==null?void 0:Z.richGridRenderer;M&&K.JSC$20380_watchApi.provideRenderingData("RICH_GRID_RENDERER",M)},X))},Xrs=function(K){var X,F;
_.q(function(P){if(P.nextAddress==1)return _.Y(P,K.JSC$20380_watchApi.playerApi,2);X=P.yieldResult;F=function(){K.onPlaybackStart()};
X.addEventListener("onPlaybackStartExternal",F);K.addOnDisposeCallback(function(){X.removeEventListener("onPlaybackStartExternal",F)});
_.JT(P)})};
_.mA.prototype.onPlaybackStart=function(){FnF(this)};_.HhV=function(K){_.LJ.call(this);var X=this;this.JSC$20390_watchApi=K;K.playerApi.then(function(F){X.player=F});
this.gestures=new _.u2(this.JSC$20390_watchApi.getRoot(),K.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.jlt(_.aA().getState())&&_.AG(_.aA().getState())<=0)if(_.yW(_.aA().getState())){var F;(F=X.player)==null||F.toggleFullscreen()}else _.xr(X.JSC$20390_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
Pxv(this)};
_.r(_.HhV,_.LJ);var Pxv=function(K){var X=_.Dg(_.aA(),_.yW,function(F){K.onFullscreenChanged(F)});
K.addOnDisposeCallback(X);X=_.Dg(_.aA(),_.AG,function(F){K.gestures&&(F>0?K.gestures.detach():K.gestures.attach())});
K.addOnDisposeCallback(X)};
_.HhV.prototype.onFullscreenChanged=function(K){this.gestures&&this.gestures.update(K)};_.zzw=function(K){_.LJ.call(this);var X=this;this.JSC$20393_watchApi=K;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(K.subscribeToActiveChanged(function(F){X.onActiveChanged(F)}));
sNF(this)};
_.r(_.zzw,_.LJ);var fIt=function(K){if(_.S("swatcheroo_page_dispose_all_watch_data"))K.pageDisposalDataTypes=Object.values(w71).filter(function(F){return F!=="PLAYLIST"});
else if(_.S("swatcheroo_page_dispose_rich_grid")){var X;(X=K.pageDisposalDataTypes)==null||X.push("RICH_GRID_RENDERER")}},sNF=function(K){_.S("swatcheroo_enable_ghost_cards")&&(fIt(K),K.JSC$20393_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.A9.cancelJob(K.clearDataJobId);
K.clearDataJobId=0}),K.runPageDisposeJob=function(){var X=_.i9().resolve(_.ax).getDestinationPageType()==="watch";
K.clearDataJobId=_.QW(_.A9,K.runClearDataJob,X?0:_.kU("web_watch_delay_page_dispose_ms",1E4))},K.runClearDataJob=function(){DKG(K)},K.runOnYtNavigateAwayFinish=function(){K.clearDataJobId&&(_.A9.cancelJob(K.clearDataJobId),K.clearDataJobId=0,DKG(K))},document.addEventListener("yt-navigate-finish",K.runOnYtNavigateAwayFinish),K.JSC$20393_watchApi.addPageDisposeJob(K.runPageDisposeJob),K.addOnDisposeCallback(function(){K.JSC$20393_watchApi.removePageDisposeJob(K.runPageDisposeJob);
K.JSC$20393_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",K.runOnYtNavigateAwayFinish)}))},DKG=function(K){K.pageDisposalDataTypes.forEach(function(X){K.JSC$20393_watchApi.provideRenderingData(X,void 0)});
K.clearDataJobId=0};
_.zzw.prototype.onActiveChanged=function(K){K&&((K=document.querySelector("#watch-page-skeleton"))&&_.c_(K),uQ8(this),document.body.removeAttribute("no-y-overflow"),_.RU("IS_SHELL_LOAD")&&_.Mek())};
var uQ8=function(K){_.q(function(X){if(X.nextAddress==1)return _.Y(X,K.JSC$20393_watchApi.playerApi,2);_.GX();_.JT(X)})};var qnw;qnw=_.S("kevlar_watch_while_counterfactual")?0:.25;_.Gf=function(K){_.LJ.call(this);this.JSC$20396_watchApi=K;this.JSC$20396_watchWhileEnabled=_.S("kevlar_watch_while_v2");this.pipEnabled=_.S("web_enable_pip_on_miniplayer");JC8(this);Zht(this);Yn8(this)};
_.r(_.Gf,_.LJ);var JC8=function(K){K.JSC$20396_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){QNs(K)});
K.addOnDisposeCallback(function(){K.JSC$20396_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},Zht=function(K){var X,F;
_.q(function(P){if(P.nextAddress==1)return _.Y(P,K.JSC$20396_watchApi.playerApi,2);X=P.yieldResult;F=function(){QNs(K)};
X.addEventListener("onCollapseMiniplayer",F);K.addOnDisposeCallback(function(){X.removeEventListener("onCollapseMiniplayer",F)});
_.JT(P)})},Yn8=function(K){var X=K.JSC$20396_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&X&&K.JSC$20396_watchWhileEnabled&&(K.playerIntersectionObserver=new IntersectionObserver(function(F){K.handleIntersect(F)},{threshold:[qnw]}),K.playerIntersectionObserver.observe(X),K.addOnDisposeCallback(function(){var F;
(F=K.playerIntersectionObserver)==null||F.disconnect()}))},QNs=function(K){var X,F,P;
_.q(function(H){if(H.nextAddress==1){X=_.i9().resolve(_.ax);F=X.data;P=_.tcM(F.response,F.playerResponse);_.zC().miniplayerButtonActivation=!0;if(K.pipEnabled)return _.zC().watchPipActivation=!0,H.jumpTo(2);_.i9().resolve(_.Wj).collapse();return _.Y(H,_.zC().navigationFinishPromise,2)}if(H.nextAddress!=4)return _.zC().currentEndpoint=P.watchEndpoint||null,_.Y(H,_.i9().resolve(_.Wj).activate(K.JSC$20396_watchApi.getElement("PLAYER"),P,F),4);_.zC().userActivation=!0;_.JT(H)})};
_.Gf.prototype.handleIntersect=function(K){M2v(this,K[K.length-1])};
var M2v=function(K,X){K.watchWhileJobId&&_.A9.cancelJob(K.watchWhileJobId);K.watchWhileJobId=_.A9.addLowPriorityJob(function(){var F,P;return _.q(function(H){if(H.nextAddress==1)return K.watchWhileJobId=void 0,F=_.i9().resolve(_.Wj),X.intersectionRatio>qnw?F.isMiniplayerActive()?_.Y(H,F.deactivate(),0):H.jumpTo(0):(P=!F.isMiniplayerActive())?_.Y(H,n7v(K),5):H.jumpTo(4);H.nextAddress!=4&&(P=H.yieldResult);if(!P)return H.jumpTo(0);_.zC().watchWhileActivation=!0;return _.Y(H,cCv(K),0)})},100)},n7v=function(K){return _.q(function(X){return X.nextAddress==
1?_.S("kevlar_watch_while_paused")?X.return(!0):_.Y(X,K.isPlayerPlaying(),2):X.return(X.yieldResult)})};
_.Gf.prototype.isPlayerPlaying=function(){var K=this,X;return _.q(function(F){if(F.nextAddress==1)return _.Y(F,K.JSC$20396_watchApi.playerApi,2);X=F.yieldResult;return F.return(X.getPlayerStateObject().isPlaying)})};
var cCv=function(K){var X,F;return _.q(function(P){X=_.i9().resolve(_.ax).data;F=_.tcM(X.response,X.playerResponse);_.zC().currentEndpoint=F.watchEndpoint||null;return _.Y(P,_.i9().resolve(_.Wj).activate(K.JSC$20396_watchApi.getElement("PLAYER"),F,X),0)})};_.SnG=function(K){_.LJ.call(this);this.JSC$20400_watchApi=K;prk(this);BU1(this)};
_.r(_.SnG,_.LJ);var BU1=function(K){var X,F;_.q(function(P){if(P.nextAddress==1)return _.Y(P,K.JSC$20400_watchApi.playerApi,2);X=P.yieldResult;F=function(H){var f;H.sessionData&&H.sessionData.itct&&(f=H.sessionData.itct);var u=H.watchEndpoint;if(u&&H.sessionData&&H.sessionData.autonav)u=_.Ws4(u,f);else{var J;u=_.Es(H.videoId,(J=H.listId)!=null?J:void 0,f)}f={endpoint:u};H.sessionData&&(f.tempData=H.sessionData);K.JSC$20400_watchApi.dispatchEvent("yt-navigate",f)};
X.addEventListener("onPlayVideo",F);K.addOnDisposeCallback(function(){X.removeEventListener("onPlayVideo",F)});
_.JT(P)})},prk=function(K){var X=function(F){K.onYtNavigate(F)};
K.JSC$20400_watchApi.getRoot().addEventListener("yt-navigate",X);K.addOnDisposeCallback(function(){K.JSC$20400_watchApi.getRoot().removeEventListener("yt-navigate",X)})};
_.SnG.prototype.onYtNavigate=function(K){var X=this,F,P,H,f,u,J,Z,M,n;return _.q(function(c){if(c.nextAddress==1){if(!((F=K.detail)==null?0:(P=F.endpoint)==null?0:P.watchEndpoint))return c.return();H=K.detail.endpoint.watchEndpoint;f=X.JSC$20400_watchApi.getWatchNextResponse();J=_.T((u=f)==null?void 0:u.currentVideoEndpoint,_.vg);if(!J)return c.return();if(H.videoId!==J.videoId||H.playlistId&&H.playlistId!==J.playlistId||typeof H.startTimeSeconds!=="number")return c.jumpTo(0);K.stopPropagation();
(Z=_.S("kevlar_watch_while_v2")&&!_.S("kevlar_watch_while_counterfactual"))&&_.i9().resolve(_.Wj).isMiniplayerActive()||X.JSC$20400_watchApi.scrollWatchTo(0,!0);return _.Y(c,X.JSC$20400_watchApi.playerApi,3)}M=c.yieldResult;n=H.startTimeSeconds;M.seekTo(n,void 0,void 0,void 0,84);M.wakeUpControls();n<M.getDuration()&&M.playVideo();_.JT(c)})};_.Lno=function(K){_.LJ.call(this);var X=this;this.JSC$20403_watchApi=K;var F=this.JSC$20403_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){o78(X)});
this.addOnDisposeCallback(function(){X.JSC$20403_watchApi.unsubscribeByKey(F)});
o78(this)};
_.r(_.Lno,_.LJ);var o78=function(K){var X=K.JSC$20403_watchApi.getWatchNextResponse();if(X){var F,P=[].concat(_.LZ((F=X==null?void 0:X.engagementPanels)!=null?F:[]));P.unshift.apply(P,_.LZ(TUk(X)));K.JSC$20403_watchApi.provideRenderingData("ENGAGEMENT_PANELS",P)}},rCv=function(K){var X,F,P,H=(X=K.engagementPanels)==null?void 0:(F=X.find(function(L){var A;
return((A=L.engagementPanelSectionListRenderer)==null?void 0:A.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(P=F.engagementPanelSectionListRenderer.content)==null?void 0:P.structuredDescriptionContentRenderer,f;
if(_.T(H==null?void 0:(f=H.items)==null?void 0:f.find(function(L){return!!_.T(L,s$5)}),s$5))return!0;
var u,J,Z,M;if(K=(((u=K.contents)==null?void 0:(J=u.twoColumnWatchNextResults)==null?void 0:(Z=J.results)==null?void 0:(M=Z.results)==null?void 0:M.contents)||[]).find(function(L){return L.videoPrimaryInfoRenderer})){var n,c,B;
return(((n=K.videoPrimaryInfoRenderer)==null?void 0:(c=n.videoActions)==null?void 0:(B=c.menuRenderer)==null?void 0:B.flexibleItems)||[]).some(function(L){L=_.T(L,_.wTu);if(!L)return!1;var A,d;L=(A=L.topLevelButton)==null?void 0:(d=A.buttonViewModel)==null?void 0:d.onTap;if(!L)return!1;A=_.w$(L);if(!A)return!1;var R;return((R=_.T(A,_.Lk))==null?void 0:R.panelIdentifier)==="PAyouchat"})}return!1},TUk=function(K){var X=[];
if(!_.S("web_watch_inject_placeholder_fantasy_panel_killswitch")){var F,P,H,f=(F=K.engagementPanels)==null?void 0:(P=F.find(function(J){var Z;return((Z=J.engagementPanelSectionListRenderer)==null?void 0:Z.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(H=P.engagementPanelSectionListRenderer.content)==null?void 0:H.structuredDescriptionContentRenderer,u;
_.T(f==null?void 0:(u=f.items)==null?void 0:u.find(function(J){return!!_.T(J,m7s)}),m7s)&&(F=_.R7P("PAsports_fantasy"),F.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",X.push(F))}rCv(K)&&(K=_.R7P("PAyouchat"),K.engagementPanelSectionListRenderer.targetId="PAyouchat",K.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",X.push(K));
return X};_.jNG=function(K){_.LJ.call(this);this.JSC$20406_watchApi=K;ACk(this)};
_.r(_.jNG,_.LJ);var ACk=function(K){K.JSC$20406_watchApi.registerActionHandler("yt-loop-command",function(X){wrv(K,X)});
K.JSC$20406_watchApi.registerActionHandler("yt-repeat-chapter-command",function(X){yC8(K,X)});
K.addOnDisposeCallback(function(){K.JSC$20406_watchApi.unregisterActionHandler("yt-loop-command");K.JSC$20406_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},wrv=function(K,X){var F;
_.q(function(P){if(P.nextAddress==1)return _.Y(P,K.JSC$20406_watchApi.playerApi,2);F=P.yieldResult;_.T(X,lxG).loop?(F.setLoopRange({startTimeMs:Number(_.T(X,lxG).startTimeMs),endTimeMs:Number(_.T(X,lxG).endTimeMs),postId:_.T(X,lxG).postId,type:"clips"}),F.playVideo()):F.setLoopRange(null);_.JT(P)})},yC8=function(K,X){var F,P;
_.q(function(H){if(H.nextAddress==1)return _.Y(H,K.JSC$20406_watchApi.playerApi,2);F=H.yieldResult;P=_.T(X,Oos).repeat;P==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(F.setLoopRange({startTimeMs:Number(_.T(X,Oos).startTimeMs),endTimeMs:Number(_.T(X,Oos).endTimeMs),type:"repeatChapter"}),F.playVideo()):P==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&F.setLoopRange(null);_.JT(H)})};_.dKJ=function(K){_.LJ.call(this);this.JSC$20411_watchApi=K;WnV(this)};
_.r(_.dKJ,_.LJ);var WnV=function(K){K.JSC$20411_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(X){ezV(K,X)});
K.addOnDisposeCallback(function(){K.JSC$20411_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},ezV=function(K,X){var F,P,H,f,u,J,Z,M,n,c,B;
_.q(function(L){if(L.nextAddress==1)return _.Y(L,K.JSC$20411_watchApi.playerApi,2);F=L.yieldResult;if(f=(H=(P=_.T(X,Vfw))==null?void 0:P.highlightedMenuItemKey)!=null?H:"")(J=(u=F).highlightSettingsMenuItem)==null||J.call(u,f);if(n=(M=(Z=_.T(X,Vfw))==null?void 0:Z.openMenuItemKey)!=null?M:"")(B=(c=F).openSettingsMenuItem)==null||B.call(c,n);_.JT(L)})};var RzV=_.XF("/youtube/app/watch/player_state","playerStateEntity");_.hzG=function(K){_.LJ.call(this);this.JSC$20414_watchApi=K;UKW(this)};
_.r(_.hzG,_.LJ);var mK8=function(K){switch(K){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"}},UKW=function(K){var X,F;
_.q(function(P){if(P.nextAddress==1)return _.Y(P,K.JSC$20414_watchApi.playerApi,2);X=P.yieldResult;F=function(H){K.onPlayerStateChange(H)};
X.addEventListener("onStateChange",F);K.addOnDisposeCallback(function(){X.removeEventListener("onStateChange",F)});
_.JT(P)})};
_.hzG.prototype.onPlayerStateChange=function(K){var X=this,F,P;return _.q(function(H){if(H.nextAddress==1)return _.Y(H,X.JSC$20414_watchApi.playerApi,2);F=H.yieldResult;P=F.getVideoData().video_id;_.Gb().dispatch(_.zl("playerStateEntity",RzV,{key:RzV,playerState:mK8(K),videoId:P}));_.JT(H)})};_.lIJ=function(K){_.LJ.call(this);var X=this;this.JSC$20418_watchApi=K;this.enableExternalPlaylistPanelInPlayer=_.S("delhi_web_player_use_external_playlist_panel");_.i9().resolve(_.AW).setPlayer(this.JSC$20418_watchApi.getElement("PLAYER"));K=this.JSC$20418_watchApi.subscribeToActiveChanged(function(F){X.onActiveChanged(F)});
this.addOnDisposeCallback(K);Gho(this)};
_.r(_.lIJ,_.LJ);var Gho=function(K){var X,F;_.q(function(P){if(P.nextAddress==1)return K.enableExternalPlaylistPanelInPlayer?_.Y(P,K.JSC$20418_watchApi.playerApi,2):P.return();X=P.yieldResult;F=function(){if(K.playlistPanelElement)K.playlistPanelElement.onToggleExpanded()};
X.addEventListener("onToggleExternalPlaylistPanel",F);K.addOnDisposeCallback(function(){X.removeEventListener("onToggleExternalPlaylistPanel",F)});
_.JT(P)})};
_.lIJ.prototype.onActiveChanged=function(K){var X=this,F=_.i9().resolve(_.AW),P=function(){v7k(X)};
K?(this.playlistPanelElement=this.JSC$20418_watchApi.getElement("PLAYLIST_PANEL"))?(F.setPlaylistComponent(this.playlistPanelElement),F.addEventListener("yt-playlist-data-updated",P),this.addOnDisposeCallback(function(){F.removeEventListener("yt-playlist-data-updated",P)}),v7k(this)):_.Gr(Error("gm")):(F.removeEventListener("yt-playlist-data-updated",P),F.cancelVideoSkip())};
var v7k=function(K){var X=_.i9().resolve(_.AW);K.JSC$20418_watchApi.provideRenderingData("PLAYLIST",X.getPlaylistData())};_.lV=function(K){_.LJ.call(this);var X=this;this.JSC$20421_watchApi=K;this.onPageScroll=function(){X.scrollThrottle.fire();X.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.VW(this.onThrottledScroll,200,this);_.JH(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.VW(this.onMastheadThrottledScroll,50,this);_.JH(this,this.mastheadScrollThrottle);this.animation=new _.WX(function(F){X.JSC$20421_watchApi.getRoot().setScrollTop(F)});
K=_.Dg(_.aA(),_.yW,function(){X.onFullscreenChanged()});
this.addOnDisposeCallback(K);aIF(this);t28(this);this.onThrottledScroll()};
_.r(_.lV,_.LJ);
_.lV.prototype.onFullscreenChanged=function(){var K=this,X=this.JSC$20421_watchApi.getRoot();!this.pageScrollElement&&X.pageScrollElement?(this.pageScrollElement=X.pageScrollElement,X.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){K.pageScrollElement&&K.pageScrollElement.removeEventListener("scroll",K.onPageScroll)})):this.pageScrollElement&&!X.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var aIF=function(K){window.addEventListener("scroll",K.onPageScroll);K.addOnDisposeCallback(function(){window.removeEventListener("scroll",K.onPageScroll)})},t28=function(K){K.JSC$20421_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(X){a:{var F;
if(F=K.JSC$20421_watchApi.getRoot().contains(X)&&!K.animation.isAnimating()){F=X.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var P,H,f=(X==null?void 0:(P=X.parentElement)==null?void 0:(H=P.parentElement)==null?void 0:H.id)==="fixed-secondary";F=!(F&&f)}if(F){if(_.S("kevlar_watch_scroll_manager_absolute_offset_killswitch"))P=X.offsetTop;else for(P=0,H=X;H!==null;)P+=H.offsetTop,P-=H.scrollTop,H=H.offsetParent;H=P;P=H-24;X=H+X.offsetHeight+24;H=K.JSC$20421_watchApi.getRoot().getPageScrollingElement();
F=K.JSC$20421_watchApi.getRoot().getScrollTop();f=F+H.clientHeight-56;if(P<F+56)X=P-56;else if(X>f)X-=H.clientHeight;else break a;K.scrollWatchTo(Math.max(0,X),!0)}}});
K.addOnDisposeCallback(function(){K.JSC$20421_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.lV.prototype.onThrottledScroll=function(){var K=_.aA(),X=K.dispatch,F=this.JSC$20421_watchApi.getRoot().getScrollTop();X.call(K,_.iY({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:F}}))};
_.lV.prototype.onMastheadThrottledScroll=function(){this.JSC$20421_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20421_watchApi.getRoot().getScrollTop())};
_.lV.prototype.scrollWatchTo=function(K,X){(X===void 0?0:X)?this.animation.start(this.JSC$20421_watchApi.getRoot().getScrollTop(),Math.max(0,K),500):this.JSC$20421_watchApi.getRoot().setScrollTop(K)};_.V2W=function(K){_.LJ.call(this);var X=this;this.JSC$20424_watchApi=K;var F=this.JSC$20424_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){$K5(X)}),P=this.JSC$20424_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Oh1(X)});
this.addOnDisposeCallback(function(){X.JSC$20424_watchApi.unsubscribeByKey(F);X.JSC$20424_watchApi.unsubscribeByKey(P)});
$K5(this);Oh1(this)};
_.r(_.V2W,_.LJ);
var $K5=function(K){var X,F,P,H=(P=(X=K.JSC$20424_watchApi.getPlayerResponse())==null?void 0:(F=X.videoDetails)==null?void 0:F.title)!=null?P:"";K.JSC$20424_watchApi.dispatchEvent("yt-update-title",H)},Oh1=function(K){var X,F,P,H,f,u,J,Z=(J=((u=(X=K.JSC$20424_watchApi.getWatchNextResponse())==null?void 0:(F=X.contents)==null?void 0:(P=F.twoColumnWatchNextResults)==null?void 0:(H=P.results)==null?void 0:(f=H.results)==null?void 0:f.contents)!=null?u:[]).find(function(M){return!!M.videoPrimaryInfoRenderer}))==null?
void 0:J.videoPrimaryInfoRenderer;
(X=_.lj(Z==null?void 0:Z.title))&&K.JSC$20424_watchApi.dispatchEvent("yt-update-title",X)};_.E7s=function(K){_.LJ.call(this);this.JSC$20427_watchApi=K;g7W(this)};
_.r(_.E7s,_.LJ);var g7W=function(K){var X,F;_.q(function(P){if(P.nextAddress==1)return _.Y(P,K.JSC$20427_watchApi.playerApi,2);X=P.yieldResult;F=function(){K.onYpcContentRequest()};
X.addEventListener("onYpcContentRequest",F);K.addOnDisposeCallback(function(){X.removeEventListener("onYpcContentRequest",F)});
_.JT(P)})};
_.E7s.prototype.onYpcContentRequest=function(){var K,X,F,P,H,f=(K=this.JSC$20427_watchApi.getWatchNextResponse())==null?void 0:(X=K.contents)==null?void 0:(F=X.twoColumnWatchNextResults)==null?void 0:(P=F.secondaryResults)==null?void 0:(H=P.secondaryResults)==null?void 0:H.offerModule,u,J,Z,M;K=(M=(Z=(J=(u=f==null?void 0:f.episodeOfferModuleRenderer)!=null?u:f==null?void 0:f.movieOfferModuleRenderer)!=null?J:f==null?void 0:f.unlimitedOfferModuleRenderer)!=null?Z:f==null?void 0:f.liveOfferModuleRenderer)!=
null?M:f==null?void 0:f.tvfilmOfferModuleRenderer;var n,c,B;f=(B=f==null?void 0:(n=f.tvfilmOfferModuleRenderer)==null?void 0:(c=n.actionButtons)==null?void 0:c.length)!=null?B:0;c=Math.max(f-1,0);var L,A,d;n=(d=K==null?void 0:(L=K.offerButton)==null?void 0:L.buttonRenderer)!=null?d:K==null?void 0:(A=K.actionButtons)==null?void 0:A[c].buttonRenderer;var R,l;(L=(l=(R=n==null?void 0:n.navigationEndpoint)!=null?R:n==null?void 0:n.serviceEndpoint)!=null?l:n==null?void 0:n.command)&&_.Hn.instance.resolveCommand(L)};
}catch(e){_._DumpException(e)}
try{
var Du8,sUv,P9k;_.H9s=function(){var K=_.T8.clone(Fz1),X;return(new _.fL(function(F,P){K.onSuccess=function(H){_.lpd(H)?F(new P9k(H)):P(new _.$n("Request failed, status="+_.F$(H),"net.badstatus",H))};
K.onError=function(H){P(new _.$n("Unknown request error","net.unknown",H))};
K.onTimeout=function(H){P(new _.$n("Request timed out","net.timeout",H))};
X=_.fG("//googleads.g.doubleclick.net/pagead/id",K)})).thenCatch(function(F){if(F instanceof _.UD){var P;
(P=X)==null||P.abort()}return _.pB(F)})};
_.zDF=function(K){a:{var X="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(X="EMBEDDED_PLAYER_MODE_PFL");var F=K.raw_embedded_player_response;if(!F&&(K=K.embedded_player_response))try{F=JSON.parse(K)}catch(H){break a}if(F)b:for(var P in sUv)if(sUv[P]==F.embeddedPlayerMode){X=sUv[P];break b}}return X==="EMBEDDED_PLAYER_MODE_PFL"};
_.fqV=function(){if(_.S("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("lf");if(!_.PRn())return Error("mf");var K=_.e8("PLAYER_VARS",{});if(_.T8.get(K,"privembed",!1)=="1")return Error("nf");if(_.zDF(K))return Error("of")};
Du8=function(K){switch(K){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:_.zJ(K,"unknown result type")}};
_.uoF=function(K,X,F){X=_.CZP[X];F={detected:K===0,source:X.wEX,detectionResult:Du8(K),contentCpn:F};_.LL("biscottiBasedDetection",F);_.fYL.increment(X.wEX,K);X.em6!==void 0&&_.d2("CATSTAT",_.EuO(K,X))};
_.OS=function(K,X){var F={};F.key=K;F.value=X;return _.w99().then(function(P){return new Promise(function(H,f){try{var u=P.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(F);u.onsuccess=function(){H()};
u.onerror=function(){f()}}catch(J){f(J)}})})};
_.JVV=function(){var K=_.kU("user_engagement_experiments_rate_limit_ms"),X=qNF.get("last-user-engagement-exp-trigger-timestamp");return!X||(0,_.CG)()>=X+K?(qNF.set("last-user-engagement-exp-trigger-timestamp",(0,_.CG)()),!0):!1};
_.Vv=function(K,X,F,P,H){X=X===void 0?null:X;F=F===void 0?null:F;P=P===void 0?null:P;H=H===void 0?null:H;K={youThereEventType:K};F&&(K.lactThresholdMs=F.lactThresholdMs,K.mediaPosSec=F.promptDelaySec,K.lactServerRequestMs=F.lactServerRequestMs,K.triggerReason=F.triggerReason);H!=null&&(K.renderingMediaPosSec=Math.round(H));X||(X=_.AD());X&&(K.clientScreenNonce=X);P&&(K.clientPlaybackNonce=P);_.LL("youThere",K)};
sUv={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"};P9k=function(K){this.xhr=K};
_.$n=function(K,X,F){_.KO.call(this,K+", errorCode="+X);this.errorCode=X;this.xhr=F;this.name="PromiseAjaxError"};
_.r(_.$n,_.KO);var Fz1={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var qNF=new _.dG("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.$vd=function(K){return _.iY({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:K})};
}catch(e){_._DumpException(e)}
try{
var $Z,PlJ,smW,zCV,f7W,DGv,q5d,plo,B68,S55,uGJ,Hn1,Qm8,Y5F,T6d;_.Fxd=function(){var K=window.location.hash;K.charAt(0)==="#"&&(K=K.charAt(1)==="!"?K.substring(2):K.substring(1));return _.aU(K)};
$Z=function(K,X,F){var P;return _.q(function(H){if(H.nextAddress==1)return _.Y(H,X(),2);P=H.yieldResult;F(P,K);_.JT(H)})};
PlJ=function(){return _.q(function(K){return K.nextAddress==1?_.Y(K,(_.fqV()!==void 0?_.pB(Error("pf")):_.H9s()).then(function(){return 1},function(X){if(X.message==="Biscotti id is disabled")return 3;
_.yy("Failed fetching bid");return 0}),2):K.return(K.yieldResult)})};
smW=function(){var K=_.V4("cGxheWVyIzEyZHN1em8xZ2lxaHl0LWhhdmVuLWVtYmVkLQ=="),X=_.V4("aWZyYW1lI2NtMXM4MHJ4eWQ0Mw==");return document.querySelector(X+Hn1+K)?0:1};
zCV=function(){return _.RA4(_.UL)};
f7W=function(){return _.UTl()===0?0:_.hAq()};
DGv=function(){return _.a9w(_.XU4([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
q5d=function(){return _.rk9(uGJ)};
_.J8G=function(K){_.q(function(X){switch(X.nextAddress){case 1:return _.Y(X,$Z("b.f_",PlJ,K),2);case 2:return _.Y(X,$Z("j.s_",_.LiP,K),3);case 3:return _.Y(X,$Z("r.s_",_.Bkl,K),4);case 4:return _.Y(X,$Z("e.h_",q5d,K),5);case 5:if(!_.S("ab_det_sc_inj")){X.jumpTo(6);break}return _.Y(X,$Z("s.i_",_.dTT,K),6);case 6:if(_.S("ab_deg_unex_thr")){X.jumpTo(8);break}return _.Y(X,$Z("a.o_",_.ykw,K),8);case 8:if(_.S("ks_get_o_pp")){X.jumpTo(10);break}return _.Y(X,$Z("g.o_",_.wUy,K),10);case 10:if(_.S("ks_det_gpbl")){X.jumpTo(12);
break}return _.Y(X,$Z("p.i_",_.ju4,K),12);case 12:return _.Y(X,$Z("f.i_",_.DTd,K),14);case 14:return _.Y(X,$Z("a.b_",_.ck9,K),15);case 15:return _.Y(X,$Z("p.m_",_.Jk3,K),16);case 16:if(!_.S("ab_det_el_h_v2")){X.jumpTo(17);break}return _.Y(X,$Z("n.h_",DGv,K),17);case 17:return _.Y(X,$Z("o.p_",zCV,K),19);case 19:return _.Y(X,$Z("e.i_",smW,K),20);case 20:if(_.S("ab_det_apm"))return _.Y(X,$Z("o.a_",f7W,K),0);X.jumpTo(0)}})};
_.Zno=function(K,X){K={videoId:K};X&&(K.playlistId=X);return K};
_.MV8=function(){if(_.PRn()){var K=_.e8("PLAYER_VARS",{});if(_.T8.get(K,"privembed",!1)!="1"&&!_.zDF(K)){var X=function(){Y5F=!0;"google_ad_status"in window?_.d2("DCLKSTAT",1):_.d2("DCLKSTAT",2)};
try{_.e4("//static.doubleclick.net/instream/ad_status.js",X)}catch(F){}Qm8.push(_.A9.addLowPriorityJob(function(){if(!(Y5F||"google_ad_status"in window)){try{_.NYd("//static.doubleclick.net/instream/ad_status.js",X)}catch(F){}Y5F=!0;_.d2("DCLKSTAT",3)}},5E3))}}};
_.OJ=function(K,X,F){F=F===void 0?!1:F;var P=Math.max(K.width,_.f8s);if(_.S("kevlar_watch_feed_big_thumbs")&&K.width>=1550-_.TA()&&K.height>=800)P-=_.Yb5;else if(K.width>=_.me){var H=_.DC8+_.uR1+_.hG;_.S("kevlar_watch_feed_big_thumbs")&&(H=_.Zg8);P-=H}else P-=_.DC8;P=Math.min(P,_.qbs);H=240;F&&(H=380);X<.5624||(!_.S("kevlar_watch_flexy_disable_small_window_sizing")&&(K.height<630&&K.width>=657||K.height>=630&&K.width>=_.me&&K.width<1327)?H=360:!_.S("kevlar_watch_flexy_disable_large_window_sizing")&&
K.height>=630&&K.width>=1327&&(H=480));var f=Math.min(P*X,K.height-(56+_.zKJ+_.JS1));f=Math.max(f,H);X<1?P=f/X:K.width>=_.me&&(P=_.OJ(K,.5625,F).width);return new _.q4(Math.round(P),Math.round(f))};
_.nBs=function(K){var X=0;K.indexOf("h")!=-1&&(K=K.split("h"),X=K[0]*60*60,K=K[1]);K.indexOf("m")!=-1&&(K=K.split("m"),X=K[0]*60+X,K=K[1]);K.indexOf("s")!=-1?(K=K.split("s"),X=K[0]*1+X):X=K*1+X;return X};
_.c8v=function(){_.kU("service_worker_push_logged_out_prompt_watches")!=-1&&_.bM("WatchCount").then(function(K){K>=100||_.OS("WatchCount",K+1)})};
plo=function(K){var X=K.externalVideoId||"";return X?K.isShortsEligible?"https://www.youtube.com/shorts/"+X:"https://www.youtube.com/watch?v="+X:""};
B68=function(K){var X=[];K.viewCount&&X.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:K.viewCount});K.likeCount&&X.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:K.likeCount});return X};
S55=function(K){var X,F,P={"@context":"https://schema.org","@type":"VideoObject",description:_.lj(K.description),duration:"PT"+(K.lengthSeconds||"0")+"S",embedUrl:K.embed?K.embed.iframeUrl:"",name:_.lj(K.title),thumbnailUrl:((X=K.thumbnail)==null?void 0:(F=X.thumbnails)==null?void 0:F.map(function(n){return n&&n.url||""}))||[],
uploadDate:K.publishDate};_.S("mweb_video_schema_id_killswitch")||(P["@id"]=plo(K));X=B68(K);X.length&&(P.interactionStatistic=X);K.category&&(P.genre=K.category);K.ownerChannelName&&(P.author=K.ownerChannelName);K.liveBroadcastDetails&&(P.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:K.liveBroadcastDetails.startTimestamp,endDate:K.liveBroadcastDetails.endTimestamp}]);if(K.learningResource){K=K.learningResource;P["@type"]=["VideoObject","LearningResource"];var H;if((H=K.learningResourceType)==
null?0:H.length)P.learningResourceType=K.learningResourceType[0];var f;if((f=K.educationalAlignment)==null?0:f.length)P.educationalAlignment={"@type":"AlignmentObject",targetName:K.educationalAlignment[0]};var u;if((u=K.educationalLevel)==null?0:u.length){H=K.educationalLevel[0];var J;if((J=K.educationalLevelCountry)==null?0:J.length)H+=" ("+K.educationalLevelCountry+")";P.educationalLevel=H}var Z,M;if(((Z=K.learningResourceType)==null?0:Z.length)&&K.learningResourceType[0]==="Problem walkthrough"&&
((M=K.problemDescriptions)==null?0:M.length))for(P.hasPart=[],J=_.D(K.problemDescriptions),Z=J.next();!Z.done;Z=J.next())H=Z.value,Z=H.problemDescriptionText,M=H.startOffset,H=H.url,Z&&M!==void 0&&H&&P.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:Z,text:Z,startOffset:M,url:H})}return P};
_.oB1=function(K){return _.iY({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:K}})};
uGJ=[[["cmltYXJ5IzU3eXA1ejNocXpwZHA=",null,null],[null,["bmRlcmVyI3RibmoyN2N5b2FtOXl0ZC10d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJl","LXNjb3BlI2U4d2Vuc21wMzl3MHN0eWxl"],null],["ZWFkLWFkI2Y0d2x0azR6dWh0cW1hc3Ro",["bmRlcmVyIzg4Z2t2NnJjN3c1cXl0ZC1yaWNoLWdyaWQtcmU="],null],[null,["bmRlcmVyI3c4ZG96cWx1NzdxZ3l0ZC1yaWNoLWdyaWQtcmU=","LXNjb3BlIzY2bmRzOWd1NTR0Y3N0eWxl"],null],[null,["bmRlcmVyI2ZyYjZkMGZsOWRtOHl0ZC1iYW5uZXItcHJvbW8tcmU=","LXNjb3BlI3Q4eHU2Ymx1eGN2ZHN0eWxl"],null],[null,["bmRlcmVyI3Q0YTJieXJ6bnhlYnl0ZC1hZC1zbG90LXJl"],
null]],[["ZXItYWRzIzFoM3ZsdWl1ejl4d3BsYXk=",null,null]]];Hn1="#";Qm8=[];Y5F=!1;_.Lxo=["engagement-panel-ads"];T6d=new _.b("updateSentimentBarStateCommand");_.r8t=new _.b("showSurveyCommand");_.Vp=new _.b("changeMarkersVisibilityCommand");var jm8,wl8,eCk,dGt,Wx8,g5;_.A8k=function(K,X){this.playerProvider_=K;this.actionSenderElement_=X;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.A8k.prototype.reset=function(){jm8(this);this.isUserPredictedAbsent_=!1};
jm8=function(K,X){!K.youThereData_||K.showWarningJob_||X!==void 0&&X||(_.Vv("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.AD(),K.youThereData_,K.clientPlaybackNonce_),_.A_());_.A9.cancelJob(K.showWarningJob_);K.showWarningJob_=0;_.A9.cancelJob(K.showBlockingWarningJob_);K.showBlockingWarningJob_=0;_.A9.cancelJob(K.pausePlaybackJob_);K.pausePlaybackJob_=0;K.youThereData_=null;K.clientPlaybackNonce_=void 0;K.inYouThereFlow_=!1};
_.y8V=function(K,X){var F,P,H;_.q(function(f){if(f.nextAddress==1)return K.reset(),_.Y(f,K.playerProvider_().getPlayerPromise(),2);F=f.yieldResult;K.clientPlaybackNonce_=F.getVideoData().cpn;K.youThereData_=X.configData.youThereData;if(!K.youThereData_)return f.return();if(K.youThereData_.triggerReason&&K.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.JVV())return _.Vv("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.AD(),K.youThereData_,K.clientPlaybackNonce_),f.return();P=K.youThereData_.promptDelaySec;
H=F.getCurrentTime();K.showWarningJob_=_.A9.addLowPriorityJob(function(){return _.q(function(u){K.showWarningJob_=0;return _.Y(u,wl8(K),0)})},Math.max(P-H,0)*1E3);
_.JT(f)})};
wl8=function(K){var X,F,P,H,f,u;return _.q(function(J){if(J.nextAddress==1)return _.Y(J,K.playerProvider_().getPlayerPromise(),2);if(J.nextAddress!=3)return X=J.yieldResult,F=X.getCurrentTime(),_.Y(J,Wx8(K),3);P=J.yieldResult;if(!P||!K.youThereData_)return J.return();if(_.S("check_user_lact_at_prompt_shown_time_on_web")&&(H=parseInt(K.youThereData_.lactThresholdMs,10),_.xg()<H))return _.Vv("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.AD(),K.youThereData_,K.clientPlaybackNonce_),J.return();if(K.youThereData_.playbackPauseDelayMs<=
0)return dGt(K),J.return();!_.S("external_fullscreen")&&(f=_.Ec())&&(K.ignoreFullscreenExitUserActivity_=!0,_.A9.addLowPriorityJob(function(){K.ignoreFullscreenExitUserActivity_=!1},2E3),_.bX(f));
K.youThereData_.showToastWarningPrompt&&(g5(K,K.youThereData_.showWarningActions),K.inYouThereFlow_=!0,_.Vv("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.AD(),K.youThereData_,K.clientPlaybackNonce_,F),_.Vv("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.AD(),K.youThereData_,K.clientPlaybackNonce_,F));u=0;K.youThereData_.blockingPromptDelayMs&&(u=K.youThereData_.blockingPromptDelayMs);K.showBlockingWarningJob_=_.A9.addLowPriorityJob(function(){return _.q(function(Z){K.showBlockingWarningJob_=0;return _.Y(Z,
eCk(K),0)})},u);
_.JT(J)})};
eCk=function(K){var X,F,P;return _.q(function(H){if(H.nextAddress==1)return _.Y(H,Wx8(K),2);X=H.yieldResult;if(!K.youThereData_)return H.return();X&&(K.youThereData_.showBlockingWarningAction&&(_.Vv("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.AD(),K.youThereData_,K.clientPlaybackNonce_),(F=_.T(K.youThereData_.showBlockingWarningAction,_.PW))?g5(K,F.commands):g5(K,[K.youThereData_.showBlockingWarningAction]),K.inYouThereFlow_=!0),P=K.youThereData_.playbackPauseDelayMs,K.pausePlaybackJob_=
_.A9.addLowPriorityJob(function(){return _.q(function(f){K.pausePlaybackJob_=0;return _.Y(f,dGt(K),0)})},P));
_.JT(H)})};
dGt=function(K){var X;return _.q(function(F){if(F.nextAddress==1)return _.Y(F,Wx8(K),2);X=F.yieldResult;if(!K.youThereData_)return F.return();X&&(_.Vv("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.AD(),K.youThereData_,K.clientPlaybackNonce_),g5(K,K.youThereData_.showPausedActions),K.inYouThereFlow_=!0);_.JT(F)})};
_.A8k.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var K=_.T(this.youThereData_.userActiveDuringFlowAction,_.PW);K?g5(this,K.commands):g5(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.Vv("YOU_THERE_EVENT_TYPE_LACT_RESET",_.AD(),this.youThereData_,this.clientPlaybackNonce_),_.A_());jm8(this,!0)}_.RCk(this,!1)};
_.UGs=function(K){_.Vv("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.AD(),K.youThereData_,K.clientPlaybackNonce_)};
Wx8=function(K){var X,F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,K.playerProvider_().getPlayerPromise(),2);X=P.yieldResult;F=X.getPlayerState();return P.return(F==-1||F==1||F==3)})};
_.RCk=function(K,X){var F;_.q(function(P){if(P.nextAddress==1){if(K.isUserPredictedAbsent_==X)return P.jumpTo(0);K.isUserPredictedAbsent_=X;return _.Y(P,K.playerProvider_().getPlayerPromise(),3)}F=P.yieldResult;F.setUserEngagement(X);X&&_.Vv("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.AD(),K.youThereData_,K.clientPlaybackNonce_);_.JT(P)})};
g5=function(K,X){if(_.S("handle_service_request_actions")||_.S("kevlar_youthere_service_endpoint_actions_killswitch"))_.X0(K.actionSenderElement_,X,K.actionSenderElement_);else{X=_.D(X);for(var F=X.next();!F.done;F=X.next())F=F.value,F.commandMetadata&&F.commandMetadata.webCommandMetadata&&F.commandMetadata.webCommandMetadata.sendPost?_.Kl(K.actionSenderElement_,[F]):_.X0(K.actionSenderElement_,[F],K.actionSenderElement_)}};var hCW;var mGF;var EJ=function(){var K=_.G.apply(this,arguments)||this;K.systemIcons=_.S("kevlar_system_icons");K.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return K};
_.r(EJ,_.G);EJ.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var K=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(K=this.data.percentIfLiked||0,this.activated=!0):(K=this.data.percentIfIndifferent||0,this.activated=!1);_.C$(this.hostElement).querySelector("#like-bar").style.width=K+"%"}};
EJ.prototype.handleUpdateSentimentBarStateCommand=function(K){this.data&&this.set("data.likeStatus",_.T(K,T6d).likeStatus)};
EJ.prototype.observeLikeStatus=EJ.prototype.observeLikeStatus;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],EJ.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],EJ.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],EJ.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],EJ.prototype,"activated",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],EJ.prototype,"systemIcons",void 0);_.O([_.so("data.likeStatus"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],EJ.prototype,"observeLikeStatus",null);EJ=_.O([_.v({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],EJ);
_.t(EJ,"ytd-sentiment-bar-renderer",function(){if(mGF!==void 0)return mGF;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return mGF=K},{mode:1});var Gjd;var bV=function(){var K=_.G.apply(this,arguments)||this;K.small=!0;return K};
_.r(bV,_.G);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],bV.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],bV.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],bV.prototype,"small",void 0);bV=_.O([_.v({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],bV);
_.t(bV,"ytd-video-view-count-renderer",function(){if(Gjd!==void 0)return Gjd;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Gjd=K},{mode:_.Ig("kevlar_poly_si_batch_j080")?1:2});var C2=function(){var K=_.G.apply(this,arguments)||this;K.infoFormattedStrings=[];K.wrapVideoActions=_.S("kevar_watch_wrap_video_actions");K.hideSentimentBar=_.S("kevlar_watch_hide_sentiment_bar");K.actionMap={};return K};
_.r(C2,_.G);_.z=C2.prototype;_.z.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.S("web_modern_buttons"),forceIconButton:!_.S("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.z.dataChanged=function(){_.S("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.z.computeInfoFormattedStrings=function(K){if(!K)return[];var X=[];K.dateText&&X.push(K.dateText);K.stationName&&X.push(K.stationName);K.rating&&X.push(K.rating);K.startEndTimeTemplate&&K.startTimeUtcMillis&&K.endTimeUtcMillis&&X.push(_.GS(_.AJw(_.lj(K.startEndTimeTemplate),Number(K.startTimeUtcMillis),Number(K.endTimeUtcMillis))));K.upNextProgramText&&X.push(K.upNextProgramText);return X};
_.z.scheduleInitialUpdatedMetadataRequest=function(){var K,X=(K=this.data)==null?void 0:K.updatedMetadataEndpoint;if(X){var F;K=Number((F=_.T(X,_.Dft))==null?void 0:F.initialDelayMs);F=isNaN(K)?250:K;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),F)}};
_.z.setSentimentBarWidth=function(){var K=this;_.tg(this,function(){var X=_.C$(K.hostElement).querySelector("ytd-menu-renderer");if(X){X=X.topLevelButtons;for(var F=0,P=0;P<X.length;P++){var H=X[P],f=K.get("toggleButtonSupportedData.toggleButtonIdData.id",H.data);if(f==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||f==="TOGGLE_BUTTON_ID_TYPE_LIKE")F+=H.clientWidth+8;else break}F&&(K.sentiment.style.width=F-8+" px")}})};
_.z.fetchUpdatedMetadata=function(K){var X;K&&(X={continuation:K});var F;(K=(F=this.data)==null?void 0:F.updatedMetadataEndpoint)&&_.i9().resolve(_.xU).resolveCommand(K,{form:Object.assign({},X,{element:this.hostElement})})};
_.z.onYtServiceRequestSent=function(K,X){X.endpoint&&_.T(X.endpoint,_.Rn)&&(this.hasUpdateSentimentBarStateCommands()&&!_.S("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.T(X.endpoint,_.Rn).status),this.setSentimentBarWidth())};
_.z.hasUpdateSentimentBarStateCommands=function(){var K,X,F,P,H=(P=(K=this.data)==null?void 0:(X=K.videoActions)==null?void 0:(F=X.menuRenderer)==null?void 0:F.topLevelButtons)!=null?P:[];K=_.D(H);for(X=K.next();!X.done;X=K.next()){X=X.value;H=P=F=void 0;var f=(F=X.toggleButtonRenderer)==null?void 0:(P=F.toggleButtonSupportedData)==null?void 0:(H=P.toggleButtonIdData)==null?void 0:H.id;if(f==="TOGGLE_BUTTON_ID_TYPE_LIKE"||f==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){P=F=void 0;X=(P=_.T((F=X.toggleButtonRenderer)==
null?void 0:F.defaultServiceEndpoint,_.PW))==null?void 0:P.commands;if(!X)break;X=_.D(X);for(F=X.next();!F.done;F=X.next())if(_.T(F.value,T6d))return!0}}return!1};
_.z.onYtServiceRequestCompleted=function(K,X){var F;(K=(F=X.data)==null?void 0:F.loggingDirectives)&&_.SRO(_.uH(),K);this.get("continuation.timedContinuationData",X.data)&&this.data&&this.data.updatedMetadataEndpoint&&(X=X.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,X.continuation),X.timeoutMs))};
_.z.computeHasDateText=function(K){return!!K&&!!K.dateText};
_.Oi.Object.defineProperties(C2.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var K,X,F,P;return!((P=(K=this.data)==null?void 0:(X=K.videoActions)==null?void 0:(F=X.menuRenderer)==null?void 0:F.flexibleItems)==null||!P.length)}}});
C2.prototype.onYtServiceRequestCompleted=C2.prototype.onYtServiceRequestCompleted;C2.prototype.onYtServiceRequestSent=C2.prototype.onYtServiceRequestSent;C2.prototype.dataChanged=C2.prototype.dataChanged;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],C2.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],C2.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],C2.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.Vj.YtTaskEmitterBehavior),_.g("design:type",Object)],C2.prototype,"ytTaskEmitterBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],C2.prototype,"data",void 0);_.O([_.h({computed:"computeInfoFormattedStrings(data)"}),_.g("design:type",Array)],C2.prototype,"infoFormattedStrings",void 0);
_.O([_.h({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],C2.prototype,"hasDateText",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],C2.prototype,"wrapVideoActions",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],C2.prototype,"hideSentimentBar",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],C2.prototype,"flexMenuEnabled",null);
_.O([_.fa("#sentiment"),_.g("design:type",Object)],C2.prototype,"sentiment",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],C2.prototype,"dataChanged",null);_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.yk]),_.g("design:returntype")],C2.prototype,"onYtServiceRequestSent",null);
_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.G9]),_.g("design:returntype")],C2.prototype,"onYtServiceRequestCompleted",null);
_.t(C2,"ytd-video-primary-info-renderer",function(){if(hCW===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);hCW=K}K=hCW;return K},{mode:1});var l71;var Nt=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return K};
_.r(Nt,_.G);_.z=Nt.prototype;_.z.configureRendererStamper=function(){return{subscribeButtonData:{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",params:{withCount:!0}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.z.dataChanged=function(){var K;this.descriptionToggled=!((K=this.data)==null||!K.defaultExpanded);var X;this.collapsed=this.descriptionAlwaysCollapsed||!((X=this.data)==null?0:X.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.cO(110509);this.showLessClientVe=_.cO(110510);K=_.AD();X=_.r_();K&&X&&_.hc(K,X,[this.showMoreClientVe,this.showLessClientVe])};
_.z.onYtExpanderMoreTapped=function(){var K,X=(K=this.data)==null?void 0:K.showMoreCommand;X&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(X);(K=_.AD())&&this.showMoreClientVe&&_.vW(K,this.showMoreClientVe)};
_.z.onYtExpanderLessTapped=function(){var K=_.AD();K&&this.showLessClientVe&&_.vW(K,this.showLessClientVe);var X;(K=(X=this.data)==null?void 0:X.showLessCommand)&&this.componentBehavior.resolveCommand(K)};
_.z.handleUpdateDateTextAction=function(K){this.data&&this.data.dateText&&this.set("data.dateText",_.T(K,_.KZV).dateText)};
_.z.handleUpdateDescriptionAction=function(K){if(K=_.T(K,_.keu))K.isEmpty||!K.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.TD(K.description)):this.set("data.description",K.description)};
_.z.onYtChangeEngagementPanelVisibilityAction=function(K){if(_.S("web_structured_description_show_more")||_.S("web_engagement_panel_open_description")){var X,F=(X=_.T(K,_.$LC))==null?void 0:X.targetId,P;K=((P=_.T(K,_.$LC))==null?void 0:P.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";F==="engagement-panel-structured-description"&&K&&(this.descriptionToggled=!0)}};
_.z.updateCollapsedFromBinding=function(K){this.collapsed=K.detail.value};
_.z.updateDescriptionToggledFromBinding=function(K){this.descriptionToggled=K.detail.value};
_.z.updateCanCollapseFromBinding=function(K){this.canCollapse=K.detail.value};
_.Oi.Object.defineProperties(Nt.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var K,X,F=(K=this.data)==null?void 0:(X=K.metadataRowContainer)==null?void 0:X.metadataRowContainerRenderer;return!!F&&!!F.rows&&F.rows.length>F.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.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}}});
Nt.prototype.onYtExpanderLessTapped=Nt.prototype.onYtExpanderLessTapped;Nt.prototype.onYtExpanderMoreTapped=Nt.prototype.onYtExpanderMoreTapped;Nt.prototype.dataChanged=Nt.prototype.dataChanged;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Nt.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Nt.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Nt.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Nt.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Boolean)],Nt.prototype,"collapsed",void 0);_.O([_.h(),_.g("design:type",Boolean)],Nt.prototype,"descriptionToggled",void 0);
_.O([_.h(),_.g("design:type",Boolean)],Nt.prototype,"canCollapse",void 0);_.O([_.h(),_.g("design:type",Object)],Nt.prototype,"subscribeButtonData",void 0);_.O([_.h(),_.g("design:type",Number)],Nt.prototype,"descriptionCollapsedHeight",void 0);_.O([_.h(),_.g("design:type",Object)],Nt.prototype,"structuredDescriptionContentRenderer",void 0);_.O([_.h({value:function(){return _.S("web_watch_description_always_collapsed")}}),
_.g("design:type",Boolean)],Nt.prototype,"descriptionAlwaysCollapsed",void 0);_.O([_.fa("#description"),_.g("design:type",HTMLDivElement)],Nt.prototype,"description",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Nt.prototype,"dataChanged",null);_.O([_.Hc("yt-expander-more-tapped"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Nt.prototype,"onYtExpanderMoreTapped",null);
_.O([_.Hc("yt-expander-less-tapped"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Nt.prototype,"onYtExpanderLessTapped",null);_.O([_.U("data.metadataRowContainer"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Nt.prototype,"metadataCollapsible",null);_.O([_.U("data","structuredDescriptionContentRenderer"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Nt.prototype,"hasInlineStructuredDescription",null);
_.O([_.U("data.attributedDescription"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Nt.prototype,"hasAttributedDescription",null);_.O([_.U("hasInlineStructuredDescription","collapsed"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Nt.prototype,"loadStructuredDescription",null);_.O([_.U("data","structuredDescriptionContentRenderer","collapsed"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Nt.prototype,"showInlineStructuredDescription",null);
_.O([_.U("data","hasInlineStructuredDescription","metadataCollapsible"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Nt.prototype,"descriptionAlwaysCollapsible",null);
_.t(Nt,"ytd-video-secondary-info-renderer",function(){if(l71===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);l71=K}K=l71;return K},{mode:2});var vB5;var iV=function(){return _.G.apply(this,arguments)||this};
_.r(iV,_.G);iV.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:_.S("web_modern_buttons"),forceIconButton:!_.S("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
iV.prototype.activate=function(K){K.appendTo(this.player);K.getPlayerPromise().then(function(X){X.setMinimized(!0)});
this.active=!0};
iV.prototype.deactivate=function(){var K=this.player.firstElementChild;K.getPlayerPromise().then(function(X){X.setMinimized(!1)});
this.active=!1;return K};
iV.prototype.onScrollUpTap=function(){var K=_.i9().resolve(_.ax).getCurrentPage();K&&K.setScrollTop(0)};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],iV.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],iV.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],iV.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],iV.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],iV.prototype,"active",void 0);
_.O([_.h({reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.g("design:type",Boolean)],iV.prototype,"darkLaunch",void 0);_.O([_.fa("#player"),_.g("design:type",HTMLDivElement)],iV.prototype,"player",void 0);iV=_.O([_.v({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],iV);
_.t(iV,"ytd-miniplayer-bar-renderer",function(){if(vB5!==void 0)return vB5;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return vB5=K},{mode:1});_.EP(_.$c(function(K){var X=_.t_();_.rs(function(){var F;if(F=JSON)F=S55(K.data()),F=_.ho(JSON.stringify(F).replace(/</g,"\\u003C"));var P=K.data(),H=_.lj(P.title).trim().length===0,f=!P.publishDate||P.publishDate.trim().length===0,u,J,Z,M,n=!((u=P.thumbnail)==null?0:(J=u.thumbnails)==null?0:J.length)||!((Z=P.thumbnail)==null?0:Z.thumbnails[0].url)||((M=P.thumbnail)==null?void 0:M.thumbnails[0].url.trim().length)===0;X.value&&F&&!(H||f||n)&&_.Gp(X.value,F)},"I9AhLd");
return _.Q("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.Q("script",{el:X,type:"application/ld+json"}))},"rj"),"player-microformat-renderer",{props:{data:_.g$}});
}catch(e){_._DumpException(e)}
try{
var khv;_.bhd=function(K){return K.watch.watchWindowSize};
_.Cx8=function(K){return _.iY({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:K}})};
khv=function(K){_.LJ.call(this);var X=this;this.JSC$20431_watchApi=K;K=_.Dg(_.aA(),_.tey,function(){NUk(X)});
this.addOnDisposeCallback(K);K=_.Dg(_.aA(),_.bhd,function(){NUk(X)});
this.addOnDisposeCallback(K);ihs(this);xKd(this);IIJ()};
_.r(khv,_.LJ);var ihs=function(K){var X=function(P){_.aA().dispatch(_.BO1(P.matches))},F=window.matchMedia("(max-width: "+(999+_.TA())+"px)");
F.addListener(X);K.addOnDisposeCallback(function(){F.removeListener(X)});
X(F)},xKd=function(K){K.JSC$20431_watchApi.registerActionHandler("yt-window-resized",function(){IIJ()});
K.addOnDisposeCallback(function(){K.JSC$20431_watchApi.unregisterActionHandler("yt-window-resized")})},IIJ=function(){var K=_.qD();
_.aA().dispatch(_.iY({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:K.width,height:K.height}}}))},NUk=function(K){var X;
_.q(function(F){if(F.nextAddress==1)return _.Y(F,K.JSC$20431_watchApi.playerApi,2);X=F.yieldResult;X.setSize(NaN,NaN);_.JT(F)})};_.v4=function(K){_.ES.call(this);var X=this;this.rootElement=K;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return X.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(F){X.initOrDisposeActiveModules(F)}));
this.onAttached()};
_.r(_.v4,_.ES);_.z=_.v4.prototype;_.z.getRoot=function(){return this.rootElement};
_.z.getElement=function(K){return this.rootElement.getElement(K)};
_.z.setPlayerResponse=function(K){this.playerResponse=K;this.publish("PLAYER_RESPONSE_UPDATED",K)};
_.z.getPlayerResponse=function(){return this.playerResponse};
_.z.setWatchNextResponse=function(K){this.watchNextResponse===K?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=K,this.publish("WATCH_NEXT_RESPONSE_UPDATED",K))};
_.z.getWatchNextResponse=function(){return this.watchNextResponse};
_.z.registerActionHandler=function(K,X){var F=this;if(_.S("web_watch_controller_reg_multiple_handlers_killswitch")){var P={};_.ly(_.GT.getInstance(),(P[K]=X,P),this.getRoot())}else this.actionHandlers.has(K)||(this.actionHandlers.set(K,[]),P={},_.ly(_.GT.getInstance(),(P[K]=function(){var H=_.Ls.apply(0,arguments);return(F.actionHandlers.get(K)||[]).map(function(f){return f.apply(null,_.LZ(H))})},P),this.getRoot())),this.actionHandlers.get(K).push(X)};
_.z.unregisterActionHandler=function(K){if(_.S("web_watch_controller_reg_multiple_handlers_killswitch")){var X={};_.vu(_.GT.getInstance(),(X[K]=!0,X),this.getRoot())}else(X=this.actionHandlers.get(K))?(X.pop(),X.length===0&&(X={},_.vu(_.GT.getInstance(),(X[K]=!0,X),this.getRoot()),this.actionHandlers.delete(K))):_.yy(new _.nG("Attempted to unregister an action handler which is not registered.",K))};
_.z.addPageDisposeJob=function(K){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.El(this.rootElement.pageDisposeJobs,K)};
_.z.removePageDisposeJob=function(K){this.rootElement.pageDisposeJobs&&_.CO(this.rootElement.pageDisposeJobs,K)};
_.z.dispatchEvent=function(K,X){_.iX(this.rootElement,K,X)};
_.z.provideRenderingData=function(K,X){this.rootElement.provideRenderingData(K,X)};
_.z.scrollWatchTo=function(K,X){var F;(F=this.watchScrollManager)==null||F.scrollWatchTo(K,X)};
_.z.focusOnPlayer=function(){var K=this.getElement("PLAYER");_.tg(K,function(){if(K&&K.firstElementChild){var X=K.querySelector(".html5-video-player");X&&(_.gK(_.i9().resolve(_.BO)),X.focus())}else _.yy(Error("hm"))})};
_.z.updateCinematicFullscreenConfig=function(){var K=!!this.rootElement.theater,X=!!this.rootElement.fullscreen,F;(F=this.watchCinematicManager)==null||_.bm8(F,X,K)};
_.z.subscribeToActiveChanged=function(K,X){X=X===void 0?!0:X;var F=_.Dg(_.aA(),_.jlt,function(P){K(P)});
X&&K(_.jlt(_.aA().getState()));return F};
_.z.isActive=function(){return _.jlt(_.aA().getState())};
_.z.onAttached=function(){var K=_.S("external_fullscreen");_.S("use_unified_flag_accessor")&&(K=_.i9().resolve(_.cMd).retriever.getFlag(_.LqC));(K||_.RU("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var Kxk=function(K){return K.getRoot().is==="ytd-watch-flexy"||K.getRoot().is==="ytd-watch-grid"},aS=function(K){return K.getRoot().is==="ytd-watch-fixie"};
_.v4.prototype.initPersistentModules=function(){if(aS(this)||Kxk(this)&&_.S("kevlar_watch_flexy_theater_manager")){var K=new _.ott(this);_.JH(this,K)}K=new _.zzw(this);_.JH(this,K);K=new _.yp(this);_.JH(this,K);K=new _.mA(this);_.JH(this,K);K=new _.hzG(this);_.JH(this,K);K=new _.d5(this);_.JH(this,K);if(aS(this)||Kxk(this)&&_.S("kevlar_watch_flexy_playlist_manager"))K=new _.lIJ(this),_.JH(this,K)};
_.v4.prototype.initOrDisposeActiveModules=function(K){K?(this.watchScrollManager=new _.lV(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.SnG(this)),this.activeModules.push(new _.Azv(this)),aS(this)&&this.activeModules.push(new khv(this)),this.activeModules.push(new _.V2W(this)),this.activeModules.push(new _.Gf(this)),(aS(this)||_.S("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.WCd(this)),this.activeModules.push(new _.jNG(this)),
(aS(this)||_.S("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.E7s(this)),(aS(this)||_.S("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.l35(this)),_.S("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.Om5(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.S("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.dKJ(this)),_.S("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.HhV(this)),
K=_.S("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.S("kevlar_watch_flexy_comments_manager")&&!K&&this.activeModules.push(new _.kRv(this)),_.S("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.W4(this)),this.activeModules.push(new _.W1w(this)),this.activeModules.push(new _.Lno(this)),_.S("web_enable_timely_actions")&&this.activeModules.push(new _.UN8(this)),_.S("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.F1V(this)),
_.S("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.bqk(this)),_.S("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.UIF(this)),_.S("web_player_rtr_ctrls")&&this.activeModules.push(new _.Hmv(this))):(_.xp(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.v4.prototype.disposeInternal=function(){_.ES.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Oi.Object.defineProperties(_.v4.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var cdW,rU,pqt,B8o,oPG,LMV,SRt,T88;cdW=function(){var K=_.Qi();K.info||(K.info={});return K.info};
rU=function(K){return Math.round(_.nl()+K)};
pqt=function(){var K;if(_.S("csi_use_performance_navigation_timing")){var X,F,P,H=_.Mm==null?void 0:(K=_.Mm.getEntriesByType)==null?void 0:(X=K.call(_.Mm,"navigation"))==null?void 0:(F=X[0])==null?void 0:(P=F.toJSON)==null?void 0:P.call(F);H?(H.requestStart=rU(H.requestStart),H.responseEnd=rU(H.responseEnd),H.redirectStart=rU(H.redirectStart),H.redirectEnd=rU(H.redirectEnd),H.domainLookupEnd=rU(H.domainLookupEnd),H.connectStart=rU(H.connectStart),H.connectEnd=rU(H.connectEnd),H.responseStart=rU(H.responseStart),
H.secureConnectionStart=rU(H.secureConnectionStart),H.domainLookupStart=rU(H.domainLookupStart),H.isPerformanceNavigationTiming=!0,K=H):K=_.Mm.timing}else K=_.S("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.Mm.timing)):_.Mm.timing;return K};
B8o=function(){if(_.Mm.getEntriesByType){var K=_.Mm.getEntriesByType("paint");if(K=_.lT(K,function(F){return F.name==="first-paint"}))return rU(K.startTime)}var X;
_.S("csi_use_performance_navigation_timing")?X=_.Mm.getEntriesByType("first-paint")[0].startTime:X=_.Mm.timing.msFirstPaint;return X?Math.max(0,X):0};
oPG=function(){var K=window.location.protocol,X=_.Mm.getEntriesByType("resource");X=_.Ck(X,function(F){return F.name.indexOf(K+"//fonts.gstatic.com/s/")===0});
(X=SRt(X,function(F,P){return P.duration>F.duration?P:F}))&&X.startTime>0&&X.responseEnd>0&&(_.cW("wffs",rU(X.startTime)),_.cW("wffe",rU(X.responseEnd)))};
LMV=function(K,X){K=document.querySelector(K);if(!K)return!1;var F="",P=K.nodeName;P==="SCRIPT"?(F=K.src,F||(F=K.getAttribute("data-timing-href"))&&(F=window.location.protocol+F)):P==="LINK"&&(F=K.href);_.Rf(document)&&K.setAttribute("nonce",_.Rf(document));return F?(K=_.Mm.getEntriesByName(F))&&K[0]&&(K=K[0],F=_.nl(),_.cW("rsf_"+X,F+Math.round(K.fetchStart)),_.cW("rse_"+X,F+Math.round(K.responseEnd)),K.transferSize!==void 0&&K.transferSize===0)?!0:!1:!1};
_.AC=function(K,X){_.hV(function(){_.UEl("").info.actionType=K;X&&_.d2("TIMING_AFT_KEYS",X);_.d2("TIMING_ACTION",K);var F=_.i1M(_.e8("TIMING_INFO",{}));Object.keys(F).length>0&&_.pl(F);F={isNavigation:!0,actionType:_.GVq(_.e8("TIMING_ACTION"))};var P=_.e8("PREVIOUS_ACTION");P&&(F.previousAction=_.GVq(P));if(P=_.e8("CLIENT_PROTOCOL"))F.httpProtocol=P;if(P=_.e8("CLIENT_TRANSPORT"))F.transportProtocol=P;(P=_.AD())&&P!=="UNDEFINED_CSN"&&(F.clientScreenNonce=P);P=_.NRl();if(P===1||P===-1)F.isVisible=!0;
P=_.j5q().loadType==="cold";var H=cdW();P||(P=H.yt_lt==="cold");if(P){F.loadType="cold";P=cdW();H=pqt();var f=_.nl(),u=_.e8("CSI_START_TIMESTAMP_MILLIS",0);u>0&&!_.S("embeds_web_enable_csi_start_override_killswitch")&&(f=u);f&&(_.cW("srt",H.responseStart),P.prerender!==1&&_.$EO(f));P=B8o();P>0&&_.cW("fpt",P);P=pqt();P.isPerformanceNavigationTiming&&_.pl({performanceNavigationTiming:!0},void 0);_.cW("nreqs",P.requestStart,void 0);_.cW("nress",P.responseStart,void 0);_.cW("nrese",P.responseEnd,void 0);
P.redirectEnd-P.redirectStart>0&&(_.cW("nrs",P.redirectStart,void 0),_.cW("nre",P.redirectEnd,void 0));P.domainLookupEnd-P.domainLookupStart>0&&(_.cW("ndnss",P.domainLookupStart,void 0),_.cW("ndnse",P.domainLookupEnd,void 0));P.connectEnd-P.connectStart>0&&(_.cW("ntcps",P.connectStart,void 0),_.cW("ntcpe",P.connectEnd,void 0));P.secureConnectionStart>=_.nl()&&P.connectEnd-P.secureConnectionStart>0&&(_.cW("nstcps",P.secureConnectionStart,void 0),_.cW("ntcpe",P.connectEnd,void 0));_.Mm&&"getEntriesByType"in
_.Mm&&oPG();P=[];if(document.querySelector&&_.Mm&&_.Mm.getEntriesByName)for(var J in T88)T88.hasOwnProperty(J)&&(H=T88[J],LMV(J,H)&&P.push(H));if(P.length>0)for(F.resourceInfo=[],J=_.D(P),P=J.next();!P.done;P=J.next())F.resourceInfo.push({resourceCache:P.value})}_.pl(F);F=_.ymq();F.preLoggedGelInfos||(F.preLoggedGelInfos=[]);J=F.preLoggedGelInfos;F=_.W9y();P=void 0;for(H=0;H<J.length;H++)if(f=J[H],f.loadType){P=f.loadType;break}if(_.j5q().loadType==="cold"&&(F.loadType==="cold"||P==="cold")){P=_.wVy();
H=_.ymq();H=H.gelTicks?H.gelTicks:H.gelTicks={};for(var Z in P)if(!(Z in H))if(typeof P[Z]==="number")_.cW(Z,_.o7(Z));else if(_.S("log_repeated_ytcsi_ticks"))for(f=_.D(P[Z]),u=f.next();!u.done;u=f.next())u=u.value,_.cW(Z.slice(1),u);Z={};P=!1;J=_.D(J);for(H=J.next();!H.done;H=J.next())P=H.value,_.W6O(F,P),_.W6O(Z,P),P=!0;P&&_.pl(Z)}_.IBq(!0);Z=_.e8("TIMING_ACTION");_.mz("ytglobal.timingready_")&&Z&&_.DOq()&&_.xEl()&&_.b1n()})()};
SRt=function(K,X){return Array.prototype.reduce.call(K,X,{duration:0})};
T88={'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 rd1={};rd1.YtVisibilityRootBehavior=[_.KLN.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.ik(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.e8("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var K=_.e8("INNERTUBE_CLIENT_NAME")!=="WEB";_.S("kevlar_use_vimio_behavior")&&K&&_.kPL()}}];_.j2={};_.j2.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(K){K.detail.contextProvider=this;K.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
rd1.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.Ue();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(K){var X=this;this.pageCount+=1;_.S("kevlar_use_vimio_behavior")&&(_.e8("INNERTUBE_CLIENT_NAME")==="WEB"?_.A9.addJob(function(){X.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(K)},
loadPage_:function(K){this.data=K},
ytPageBehaviorActiveObserver_:function(K){var X=this;_.S("kevlar_use_vimio_behavior")&&(K?_.e8("INNERTUBE_CLIENT_NAME")==="WEB"?_.A9.addJob(function(){X.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(K){if(!this.setScrollTopJobId_){var X=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){X.setScrollTopJobId_=0;var F=_.i9().resolve(_.Nu(_.BO));F&&_.gK(F);this.getPageScrollingElement().scrollTop=K}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.Yo(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var nPk;var Th=function(){var K=_.G.apply(this,arguments)||this;K.playerListenerConfig=null;K.actionMap={"yt-show-watch-page-survey":"openSurvey"};return K};
_.r(Th,_.G);_.z=Th.prototype;_.z.dataChanged=function(){var K=this,X=_.$f();X&&X.getPlayerPromise().then(function(P){K.maybeRemovePlayerListeners(P)});
var F=this.data&&this.data.survey;F&&((F=(F=F.singleOptionSurveyRenderer||F.checkboxSurveyRenderer||F.multiStageSurveyRenderer)&&F.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(X,F):this.openSurvey())};
_.z.triggerWatchPageSurvey=function(K,X){var F=this,P,H,f,u,J,Z,M,n,c;return _.q(function(B){if(B.nextAddress==1)return K?_.Y(B,K.getPlayerPromise(),2):B.return();F.player=B.yieldResult;if(!F.player)return B.return();P={};H=_.D(X);for(f=H.next();!f.done;f=H.next())u=f.value,J=_.D(F.createEventListenerPair(u)),Z=J.next().value,M=J.next().value,n=Z,c=M,n&&c&&(P[n]=c,F.ytPlayerListenerBehavior.listenToPlayerEvent(F.player,n,c));F.playerListenerConfig=P;_.JT(B)})};
_.z.createEventListenerPair=function(K){var X=K.playbackEventTrigger;return X?this.handlePlaybackTrigger(X):(K=K.watchTimeTrigger)?this.handleWatchTimeTrigger(K):[void 0,void 0]};
_.z.handleWatchTimeTrigger=function(K){var X=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var F=K.videoWatchFraction,P=K.watchTimeSec;return P&&F?["onVideoProgress",function(){X.player&&X.isWatchTimeConditionMet(X.player,F,P)&&X.showSurvey()}]:[void 0,
void 0]};
_.z.isWatchTimeConditionMet=function(K,X,F){var P=K.getProgressState(),H=P.current-this.lastKnownPlaybackPosition;H<5&&(this.accumulatedMediaTime+=H);this.lastKnownPlaybackPosition=P.current;P=Math.round(this.accumulatedMediaTime/P.duration*1E3)/1E3;return K.getPresentingPlayerType&&K.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>F||P>X)};
_.z.handlePlaybackTrigger=function(K){var X=this;K=K.playbackEvent;if(K==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var F="onStateChange";var P=function(H){H===0&&X.showSurvey()}}else K==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(F="onVideoProgress",P=function(H){X.player&&X.player.getPresentingPlayerType&&X.player.getPresentingPlayerType()===1&&H&&X.showSurvey()}):K==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(F="onAdEnd",P=this.showSurvey);
return[F,P]};
_.z.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.z.openSurvey=function(){var K=this,X=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.$vd(!!X));_.A9.addJob(function(){K.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:X}})},0,0)};
_.z.maybeRemovePlayerListeners=function(K){if(this.playerListenerConfig){for(var X=_.D(Object.keys(this.playerListenerConfig)),F=X.next();!F.done;F=X.next())F=F.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(K,F,this.playerListenerConfig[F]);this.playerListenerConfig=null}};
Th.prototype.dataChanged=Th.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Th.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.v9),_.g("design:type",Object)],Th.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.W(_.ld.YtPlayerListenerBehavior),_.g("design:type",_.vC)],Th.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Th.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.W(_.jn),_.g("design:type",Object)],Th.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Th.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],Th.prototype,"playerListenerConfig",void 0);_.O([_.h({value:0}),_.g("design:type",Number)],Th.prototype,"lastKnownPlaybackPosition",void 0);_.O([_.h({value:0}),_.g("design:type",Number)],Th.prototype,"accumulatedMediaTime",void 0);_.O([_.h(),_.g("design:type",Object)],Th.prototype,"player",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Th.prototype,"dataChanged",null);Th=_.O([_.v({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],Th);
_.t(Th,"ytd-survey-trigger-renderer",function(){if(nPk!==void 0)return nPk;var K=document.createElement("template");_.w(K,"\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");K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return nPk=K},{mode:1});
}catch(e){_._DumpException(e)}
try{
var DpJ=new _.b("promotedSparklesWebRenderer");var ubw=new _.b("relatedChipCommand");var qk1;var JJd;var nc=function(){return _.G.apply(this,arguments)||this};
_.r(nc,_.G);nc.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],nc.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],nc.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],nc.prototype,"data",void 0);nc=_.O([_.v({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],nc);
_.t(nc,"ytd-compact-tvfilm-entry-point-renderer",function(){if(JJd!==void 0)return JJd;var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return JJd=K},{mode:1});var ZeV;var Ykv;var QlV;var c3=function(){return _.G.apply(this,arguments)||this};
_.r(c3,_.G);c3.prototype.ready=function(){this.initializeDefs()};
c3.prototype.initializeDefs=function(){var K=this.meta.byKey("yt-icons"),X=_.C$(K).querySelector("#star"),F=_.C$(K).querySelector("#star_half");K=_.C$(K).querySelector("#star_border");X&&this.defs.appendChild(X.cloneNode(!0));F&&this.defs.appendChild(F.cloneNode(!0));K&&this.defs.appendChild(K.cloneNode(!0))};
c3.prototype.percentChanged=function(){for(var K=this.rating;K.firstChild;)K.removeChild(K.firstChild);var X=Math.round(this.percent/10);K=Math.floor(X/2);X%=2;var F=5-K-X;this.appendStars("star",K,0);this.appendStars("star_half",X,K);this.appendStars("star_border",F,K+X)};
c3.prototype.appendStars=function(K,X,F){for(var P=0;P<X;P++){var H=(18+this.spacing)*(P+F),f=document.createElementNS("http://www.w3.org/2000/svg","use");_.Osw(f,"#"+K);f.setAttribute("x",""+H);f.setAttribute("y","0");this.rating.appendChild(f)}};
c3.prototype.percentChanged=c3.prototype.percentChanged;_.O([_.fa("#defs"),_.g("design:type",HTMLElement)],c3.prototype,"defs",void 0);_.O([_.fa("#rating"),_.g("design:type",HTMLElement)],c3.prototype,"rating",void 0);_.O([_.h(),_.g("design:type",Number)],c3.prototype,"percent",void 0);_.O([_.h({value:6}),_.g("design:type",Number)],c3.prototype,"spacing",void 0);_.O([_.h({value:_.Zo.create("iron-meta",{type:"iconset"})}),_.g("design:type",_.nT)],c3.prototype,"meta",void 0);
_.O([_.so("percent"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],c3.prototype,"percentChanged",null);c3=_.O([_.v({disableElementRegistration:!0,is:"ytd-ratings"})],c3);
_.t(c3,"ytd-ratings",function(){if(QlV!==void 0)return QlV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return QlV=K},{mode:1});var pc=function(){return _.G.apply(this,arguments)||this};
_.r(pc,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],pc.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],pc.prototype,"data",void 0);pc=_.O([_.v({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],pc);
_.t(pc,"ytd-offer-review-renderer",function(){if(Ykv!==void 0)return Ykv;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Ykv=K},{mode:1});var B3=function(){var K=_.G.apply(this,arguments)||this;K.badges=[{textBadge:{label:_.GS("CC")}}];return K};
_.r(B3,_.G);_.z=B3.prototype;_.z.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.z.dataChanged=function(){var K=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(K&&K.commandMetadata&&_.T(K.commandMetadata,_.BH)&&_.T(K.commandMetadata,_.BH).fireAutomatically)_.i9().resolve(_.xU).resolveCommand(K,{form:{element:this.hostElement}});else{var X;K&&((X=_.T(K,_.BH))==null?0:X.fireAutomatically)&&_.i9().resolve(_.xU).resolveCommand(K,{form:{element:this.hostElement}})}};
_.z.isEmptyContent=function(K){return this.isStorefrontEntryPointEmpty(K)&&this.shouldHideOfferModule(K)};
_.z.isStorefrontEntryPointEmpty=function(K){return!K||!K.storefrontEntryPoint};
_.z.shouldHideOfferModule=function(K){return!!K.hideVideoDetails};
_.z.isOfferModuleNavigationInactive=function(K){return!K.navigationEndpoint&&!K.serviceEndpoint};
_.z.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.i9().resolve(_.xU).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
B3.prototype.dataChanged=B3.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],B3.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],B3.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],B3.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.g("design:type",Boolean)],B3.prototype,"hidden",void 0);
_.O([_.h(),_.g("design:type",Object)],B3.prototype,"badges",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],B3.prototype,"dataChanged",null);B3=_.O([_.v({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],B3);
_.t(B3,"ytd-movie-offer-module-renderer",function(){if(ZeV!==void 0)return ZeV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return ZeV=K},{mode:1});var Mro;var So=function(){return _.G.apply(this,arguments)||this};
_.r(So,_.G);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],So.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],So.prototype,"data",void 0);So=_.O([_.v({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],So);
_.t(So,"ytd-media-masthead-renderer",function(){if(Mro!==void 0)return Mro;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Mro=K},{mode:1});var nKo;_.EP(_.Nit,"course-metadata-view-model",{props:{data:_.g$,isOverlay:_.g$}});var o4=function(){var K=_.G.apply(this,arguments)||this;K.isMetadataVisible=!1;K.modernPanels=_.S("kevlar_watch_modern_panels");K.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return K};
_.r(o4,_.G);_.z=o4.prototype;
_.z.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.expandMetadataButton":{id:"expand-metadata-button",mapping:{toggleButtonViewModel:{component:"yt-toggle-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.masthead":{id:"masthead",mapping:{mediaMastheadRenderer:{component:"ytd-media-masthead-renderer"},channelMastheadRenderer:{component:"ytd-channel-masthead-renderer",params:{isInOfferModule:!0}}}},
"data.expandedMetadata":{id:"expanded-metadata",mapping:{courseMetadataViewModel:{component:"course-metadata-view-model"}}}}};
_.z.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.z.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.z.expanderChanged=function(){var K;if((K=this.data)==null?0:K.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.z.isExpandButtonToggled=function(){var K,X;return(X=_.T((K=this.data)==null?void 0:K.expandMetadataButton,_.cp))==null?void 0:X.isToggled};
_.z.onVisibilityButtonClick=function(){var K;if((K=this.data)==null?0:K.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.z.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
o4.prototype.expanderChanged=o4.prototype.expanderChanged;o4.prototype.dataChanged=o4.prototype.dataChanged;o4.prototype.descriptionChanged=o4.prototype.descriptionChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],o4.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],o4.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W([_.NT.YtActionHandlerBehavior]),_.g("design:type",Object)],o4.prototype,"actionHandlerBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],o4.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],o4.prototype,"isMetadataVisible",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],o4.prototype,"modernPanels",void 0);_.O([_.fa("#expander"),_.g("design:type",Object)],o4.prototype,"expander",void 0);_.O([_.so("data.description"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],o4.prototype,"descriptionChanged",null);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],o4.prototype,"dataChanged",null);_.O([_.so("isMetadataVisible"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],o4.prototype,"expanderChanged",null);o4=_.O([_.v({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],o4);
_.t(o4,"ytd-tvfilm-offer-module-renderer",function(){if(nKo!==void 0)return nKo;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return nKo=K},{mode:2});var cJF;var Lc=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return K};
_.r(Lc,_.G);Lc.prototype.dataChanged=function(){this.hostElement.hidden=!1};
Lc.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
Lc.prototype.onThumbnailTap=function(K){this.data&&this.data.serviceEndpoint&&(_.i9().resolve(_.xU).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),K.stopPropagation())};
Lc.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
Lc.prototype.dataChanged=Lc.prototype.dataChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Lc.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Lc.prototype,"rendererBehaviors",void 0);_.O([_.W([_.NT.YtActionHandlerBehavior]),_.g("design:type",Object)],Lc.prototype,"actionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Lc.prototype,"data",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Lc.prototype,"dataChanged",null);Lc=_.O([_.v({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],Lc);
_.t(Lc,"ytd-unlimited-offer-module-renderer",function(){if(cJF!==void 0)return cJF;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return cJF=K},{mode:1});var pws;var Bao;var Td=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return K};
_.r(Td,_.G);Td.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
Td.prototype.handleRelatedChipCommand=function(K){K=_.T(K,ubw);var X=K.contents;X?_.IJ(this.hostElement,"yt-item-section-replace-action",[X,K.targetSectionIdentifier]):_.IJ(this.hostElement,"yt-item-section-continuation-action",[K.continuationData,K.targetSectionIdentifier])};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Td.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Td.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Td.prototype,"actionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Td.prototype,"data",void 0);Td=_.O([_.Tb({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],Td);
_.t(Td,"yt-related-chip-cloud-renderer",function(){if(Bao===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;pws===void 0&&(pws=document.createElement("template"));var P=pws;F.call(X,P.content.cloneNode(!0),K.content.firstChild);Bao=K}K=Bao;return K},{mode:2});var r7=function(){var K=_.G.apply(this,arguments)||this;K.isTwoColumns=!0;K.hideOfferModules=!1;K.watchFeedBigThumbs=_.S("kevlar_watch_feed_big_thumbs");K.watchNextGridHideChips=_.S("kevlar_watch_grid_hide_chips");K.eligibleToSwitchToGrid=_.S("web_watch_eligible_to_switch_to_grid");K.disableShortsShelfHeightOverride=_.S("web_shorts_wn_shelf_ratio_tuning");K.isWatchNextGrid=!1;K.reuseComponents=!_.S("kevlar_watch_grid");K.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return K};
_.r(r7,_.G);_.z=r7.prototype;
_.z.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.S("web_watch_grid_resize_on_observer_init_killswitch")}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[showButton]]"}}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}},renderPriority:0}}};
_.z.getItemsPath=function(){return"data.results"};
_.z.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.z.created=function(){this.ytLazyListBehavior.initialCount=1};
_.z.ready=function(){_.XU(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-10-percent-layer)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.z.resultsChanged=function(){if(this.data&&this.data.results){for(var K=this.data.results,X=null,F=null,P=0;P<K.length;P++)K[P].relatedChipCloudRenderer?X=K[P].relatedChipCloudRenderer:K[P].itemSectionRenderer&&(F=K[P].itemSectionRenderer);if(X&&F)for(this.set("data.continuations",[]),K=_.T(X.content,_.dOO).chips,X=0;X<K.length;X++)if(P=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",K[X]),P.loadCached||!P.contents){P.contents=F.contents;break}}};
_.z.dataChanged=function(){var K=this,X;if((X=this.data)!=null&&X.results&&this.hasAllowedInstreamAd(this.playerData)){if(X=this.data.results.filter(function(J){return!!J.promotedSparklesWebRenderer})){for(var F=0;F<X.length;F++){var P=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",X[F]);
if(P)for(var H=0;H<P.length;H++)P[H]&&P[H].baseUrl&&_.m3(P[H].baseUrl)}this.set("data.results",this.data.results.filter(function(J){return!J.promotedSparklesWebRenderer}))}if(X=this.data.results.filter(function(J){return!!K.getSparklesAd(J)})){X=_.D(X);
for(H=X.next();!H.done;H=X.next())if(P=F=void 0,H=(F=this.getSparklesAd(H.value))==null?void 0:(P=F.errorCommand)==null?void 0:P.loggingUrls)for(F=_.D(H),P=F.next();!P.done;P=F.next())(P=P.value)&&P.baseUrl&&_.m3(P.baseUrl);var f,u;this.set("data.results",(f=this.data)==null?void 0:(u=f.results)==null?void 0:u.filter(function(J){return!J.adSlotRenderer}))}}};
_.z.getSparklesAd=function(K){var X,F;K=_.T((X=K.adSlotRenderer)==null?void 0:(F=X.fulfillmentContent)==null?void 0:F.fulfilledLayout,_.ijC);return _.T(K==null?void 0:K.renderingContent,DpJ)};
_.z.hasAllowedInstreamAd=function(K){K=this.get("adPlacements",K)||[];for(var X=0;X<K.length;X++){var F=this.get("adPlacementRenderer.config.adPlacementConfig",K[X]);if(F&&F.suppressDisplayAd)return!0}return!1};
_.z.computeHideUnlimitedOfferModule=function(K,X){return K&&K.offerModule&&X&&K.offerModule.unlimitedOfferModuleRenderer&&K.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(X)?!0:!1};
_.z.hideUnlimitedOfferModuleChanged=function(){var K=_.C$(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");K&&(K.hidden=this.hideUnlimitedOfferModule)};
_.z.updateLockupContainerTypes=function(K){if(this.eligibleToSwitchToGrid){var X;(X=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||X.forEach(function(F){F.containerType=K})}};
_.z.computeHideTvfilmOfferModule=function(K,X){var F,P;return!!((K==null?0:(F=K.offerModule)==null?0:(P=F.tvfilmOfferModuleRenderer)==null?0:P.clientShouldSuppressIfCompanionAdDisplayed)&&X&&this.hasCompanionAds(X))};
_.z.hideTvfilmOfferModuleChanged=function(){var K=_.C$(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");K&&(K.hidden=this.hideTvfilmOfferModule)};
_.z.hasCompanionAds=function(K){K=this.get("adPlacements",K)||[];for(var X=0;X<K.length;X++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",K[X]))return!0;var F=void 0,P=void 0,H=void 0;if(!_.S("web_watch_top_banner_companion_check_killswitch")&&((F=K[X])==null?0:(P=F.adPlacementRenderer)==null?0:(H=P.renderer)==null?0:H.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.z.hasSuppressedResults=function(K){return K==null?!0:K.filter(function(X){return!X.continuationItemRenderer&&!X.compactPromotedVideoRenderer&&!X.promotedSparklesWebRenderer}).length===0};
_.z.computeShowButton=function(K,X){return this.isWatchNextGrid?K:K||this.hasSuppressedResults(X)};
_.z.showButtonChanged=function(){if(this.isWatchNextGrid){var K=_.C$(this.hostElement).querySelector("ytd-rich-grid-renderer");K&&this.showButton!==null&&(K.continuationShowButton=this.showButton)}else{K=_.C$(this.hostElement).querySelector("yt-next-continuation");var X=_.C$(this.hostElement).querySelector("ytd-continuation-item-renderer"),F=_.C$(this.hostElement).querySelector("ytd-item-section-renderer");K&&(K.showButton=this.showButton);X&&(X.showButton=this.showButton);F&&(F.continuationShowButton=
this.showButton)}};
_.z.continuationTap=function(K){var X;if(((X=this.data)==null?void 0:X.continuations)!=null&&K.target.tagName==="TP-YT-PAPER-BUTTON")for(K=this.data.continuations,X=0;X<K.length;X++)K[X].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(K[X].nextContinuationData||{})};
_.z.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R9("shown-items-changed",this.shownItems))};
_.Oi.Object.defineProperties(r7.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.shownItems)==null||!K.some(function(X){return!!X.lockupViewModel||X.compactVideoRenderer}))}}});
r7.prototype.shownItemsChangedForBinding=r7.prototype.shownItemsChangedForBinding;r7.prototype.showButtonChanged=r7.prototype.showButtonChanged;r7.prototype.hideTvfilmOfferModuleChanged=r7.prototype.hideTvfilmOfferModuleChanged;r7.prototype.updateLockupContainerTypes=r7.prototype.updateLockupContainerTypes;r7.prototype.hideUnlimitedOfferModuleChanged=r7.prototype.hideUnlimitedOfferModuleChanged;r7.prototype.dataChanged=r7.prototype.dataChanged;r7.prototype.resultsChanged=r7.prototype.resultsChanged;
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],r7.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],r7.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.CA.YtLazyListBehavior),_.g("design:type",Object)],r7.prototype,"ytLazyListBehavior",void 0);_.O([_.W(_.RQ.YtNextContinuationBehavior),_.g("design:type",Object)],r7.prototype,"ytNextContinuationBehavior",void 0);
_.O([_.W(_.eG),_.g("design:type",Object)],r7.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],r7.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],r7.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],r7.prototype,"playerData",void 0);_.O([_.h({value:!0}),_.g("design:type",Boolean)],r7.prototype,"autoFill",void 0);_.O([_.h({value:60}),_.g("design:type",Number)],r7.prototype,"targetFramerate",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],r7.prototype,"isTwoColumns",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],r7.prototype,"hideOfferModules",void 0);_.O([_.h(),_.g("design:type",Object)],r7.prototype,"shownItems",void 0);_.O([_.h({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.g("design:type",Boolean)],r7.prototype,"hideUnlimitedOfferModule",void 0);
_.O([_.h({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.g("design:type",Boolean)],r7.prototype,"hideTvfilmOfferModule",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],r7.prototype,"watchFeedBigThumbs",void 0);_.O([_.h(),_.g("design:type",Object)],r7.prototype,"watchNextGridHideChips",void 0);_.O([_.h(),_.g("design:type",Object)],r7.prototype,"eligibleToSwitchToGrid",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],r7.prototype,"disableShortsShelfHeightOverride",void 0);_.O([_.h({selector:_.Wp,reflectToAttribute:!0}),_.g("design:type",Object)],r7.prototype,"isGridViewEnabled",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],r7.prototype,"showMoreButton",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],r7.prototype,"isWatchNextGrid",void 0);
_.O([_.h({computed:"computeShowButton(showMoreButton, data.results)"}),_.g("design:type",Boolean)],r7.prototype,"showButton",void 0);_.O([_.JA("data.results.*"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],r7.prototype,"resultsChanged",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],r7.prototype,"dataChanged",null);
_.O([_.so("hideUnlimitedOfferModule"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],r7.prototype,"hideUnlimitedOfferModuleChanged",null);_.O([_.U("isGridViewEnabled","containsLockups","data"),_.h({reflectToAttribute:!0}),_.g("design:type",Number),_.g("design:paramtypes",[])],r7.prototype,"lockupContainerType",null);
_.O([_.so("lockupContainerType","data"),_.g("design:type",Function),_.g("design:paramtypes",[Number]),_.g("design:returntype")],r7.prototype,"updateLockupContainerTypes",null);_.O([_.so("hideTvfilmOfferModule"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],r7.prototype,"hideTvfilmOfferModuleChanged",null);_.O([_.so("showButton"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],r7.prototype,"showButtonChanged",null);
_.O([_.so("shownItems"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],r7.prototype,"shownItemsChangedForBinding",null);_.O([_.U("shownItems"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],r7.prototype,"containsLockups",null);
_.t(r7,"ytd-watch-next-secondary-results-renderer",function(){if(qk1===void 0){var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);qk1=K}K=qk1;return K},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.a7t={};
_.a7t.YtdWatchBehavior=[_.k.YtRendererBehavior,_.ld.YtPlayerListenerBehavior,_.CE.YtRendererstamperBehavior,_.NT.YtActionHandlerBehavior,_.j2.YtPageBehavior,_.DP.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},
conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,
value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.RU("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.S("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,value:function(){return _.S("full_bleed_single_column_default_player")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.RU("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.S("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 _.kU("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.kU("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.S("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.S("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.S("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isTwoColumns_)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.S("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.S("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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 _.S("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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 _.S("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var K={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:_.je(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.je(["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"||_.S("swa_prov_panels_ks")?K.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(K.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},K.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return K},
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 K=this;this.watchController=void 0;this.pageDisposeJobs=[function(){K.showMetadataPlaceholder_()},
function(){_.S("web_watch_dont_clear_comments")||K.clearComments_()},
function(){K.clearPlayerAds_()},
function(){K.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.S("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.S("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.A8k(function(){return _.te(K)},this.hostElement);
this.pageDisposeJobs.push(function(){K.youThereManager_.reset()});
_.S("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){K.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.Ir;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;_.S("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));_.S("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Pc(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(K){K&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:K}),K.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(K){_.S("kevlar_watch_flexy_theater_manager")&&(this.theater=K,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(K){!_.S("kevlar_watch_while_v2")&&!_.S("web_watch_pip")||K||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(K){this.active!==void 0&&(this.fullscreen=K,_.S("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(K){this.active!==void 0&&(_.iX(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.S("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(K>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(K){this.initCsi_();this.updatePageData_(K)},
updatePageData_:function(K){var X=this;if(K)if(this.data===K){this.onPageLoadWithSameData_();var F;(F=this.watchController)==null||F.setWatchNextResponse(this.data)}else this.data=K;this.playlist&&_.T6({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Ac("nw");this.loading=!1;_.cu(_.A9,function(){X.initDclkstatus_();var P,H=((P=X.player)==null?void 0:P.getVideoData().cpn)||"";_.J8G(function(f,u){_.uoF(f,u,H)})})},
onPageLoadWithSameData_:function(){_.S("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 K=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!K);this.set("loadingData.playlistLoading",K&&K!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),K=this.watchNextSkeletonEl_.firstElementChild;K;)K.classList.remove("hidden"),K=K.nextElementSibling;if(_.S("kevlar_watch_frame0_loading_state")){var X,F,P;K=(X=this.loadingData)==null?void 0:(F=X.endpoint)==null?void 0:(P=F.watchEndpoint)==null?void 0:P.videoId;var H;K&&(H="https://i.ytimg.com/vi/"+K+"/frame0.jpg");_.C$(this.hostElement).querySelector("#player").style.backgroundImage=H?"url("+H+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var K=_.C$(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&K&&(K.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var X,F;(F=(X=this.watchMetadata).updateSentimentBarWidth)==
null||F.call(X);var P,H;(H=(P=this.watchMetadata).resize)==null||H.call(P)}_.S("kevlar_watch_frame0_loading_state")&&(_.C$(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(K){var X=_.C$(this.hostElement).querySelector(K);X?_.Cy(X,!1):_.yy(new _.nG("Overscroll monitor not found for component: ",K))},
removeSplitScrollMouseTrap:function(K){var X=_.C$(this.hostElement).querySelector(K);X?_.N$(X):_.yy(new _.nG("Disposal component for  overscroll monitoring not found: ",K))},
onLoadingChanged_:function(K){K?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(K){var X=this;K?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.A9.addLowPriorityJob(function(){X.onWindowResized_(_.qD(!0))})},
updateTheaterModeState_:function(K){if(!_.S("kevlar_watch_flexy_theater_manager")){K=K||this.fullWindowMode_;if(this.theater!==void 0||K)this.theater=K;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();K&&_.rJJ()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var K=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.S("external_fullscreen")&&this.fullscreen&&(K=!0);K=K?_.C$(this.hostElement).querySelector("#player-full-bleed-container"):_.C$(this.hostElement).querySelector("#player-container-inner");var X=this.getPlayerContainer(),F=_.S("kevlar_watch_while_v2")||_.S("web_watch_pip");X.parentElement!==K&&(F&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.te(this).appendTo(K,
X),K.appendChild(_.C$(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var K=this;return _.q(function(X){if(X.nextAddress==1)return _.Y(X,_.i9().resolve(_.Wj).deactivate(),2);K.updatePlayerLocation();_.JT(X)})},
updateCinematicsLocation:function(){var K=this.getElement("CINEMATICS");if(K){var X=this.getCinematicsLocationContainer();K.parentElement!==X&&X.appendChild(K);var F;(F=this.watchController)==null||F.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.C$(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.C$(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(K,X){var F=document.documentElement.hasAttribute("dark"),P=F&&_.S("web_cinematic_theater_mode"),H=F&&_.S("web_cinematic_fullscreen");F=!F&&this.cinematicLightTheme;return K&&P||X&&H||(X||K)&&F},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var K=this,X;(X=this.watchController)==null||X.setWatchNextResponse(this.data);_.S("kevlar_watch_flexy_comments_manager")||this.initComments_();_.S("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.i9().resolve(_.AW).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,_.S("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.A9.addLowPriorityJob(function(){_.IJ(K.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.S("web_watch_start_chat_in_theater_mode")){var F,P,H;if((F=this.data)==null?0:(P=F.contents)==null?0:(H=P.twoColumnWatchNextResults)==null?0:H.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var f,u;((f=this.data)==null?0:(u=f.contents)==null?0:u.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(K){var X;(X=this.watchController)==null||X.setPlayerResponse(this.playerData);K&&K.playabilityStatus&&(X=this.isVideoPlayable_(K.playabilityStatus,this.getPlayerOverlays_(this.data)),K=this.isLiveStreamOffline_(K.playabilityStatus),X&&!K||_.tg(this,function(){_.Ac("pbu")}));
this.setPlayerAds_();_.IJ(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(K,X){if((_.S("kevlar_watch_while_v2")||_.S("web_watch_pip"))&&this.playerData&&X)return this.playerData.videoDetails},
watchPageActiveChanged_:function(K){_.aA().dispatch(_.Cx8(this.active));K?this.activate_():this.deactivate_()},
attached:function(){var K=this;this.watchController=new _.v4(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);_.S("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var X=_.te(this);_.S("kevlar_disable_prepare_player")||
X.preparePlayer();_.S("kevlar_watch_flexy_playlist_manager")||_.i9().resolve(_.AW).setPlayer(X);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();X={"--ytd-watch-flexy-scrollbar-width":_.TA()+"px"};this.is==="ytd-watch-grid"&&(X["--ytd-watch-flexy-sidebar-width"]=_.uR1+"px",X["--ytd-watch-grid-horizontal-page-margins"]=_.hG+"px",X["--ytd-watch-grid-columns-top-margins"]=_.zKJ+"px",X["--ytd-watch-grid-min-player-height-medium"]="360px");!_.kU("kv_pl_mx_sz_ks")&&
_.kU("kevlar_watch_max_player_width")&&(X["--ytd-watch-flexy-max-player-width-wide-screen"]=_.qbs+"px");_.kU("kevlar_watch_flexy_metadata_height")&&(X["--ytd-watch-flexy-space-below-player"]=_.JS1+"px");this.safeUpdateStyles(X);_.S("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.u2(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return K.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.C$(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var K=_.TA(),X=_.me+K,F=X;this.fixedPanels&&(X+=_.uR1);var P=657+K;K=1327+K;_.C$(this.hostElement).querySelector("#two-column-query").query="(min-width: "+X+"px)";_.C$(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(P+"px), (min-height: 630px) and (min-width: ")+(X+"px) and (max-width: ")+(K+"px)");_.C$(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(K+"px)");
_.C$(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+F+"px)"},
calculateCurrentPlayerSize_:function(){var K=_.C$(this.hostElement).querySelector("#miniplayer-bar").firstChild,X=this.squeezeback&&!_.S("web_watch_squeezeback_player_size_killswitch");return K&&K.active||this.theater||_.S("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||X||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.q4(NaN,NaN):_.OJ(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.OJ(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.ik(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var K=this;this.onWindowResized_(_.qD());_.S("browse_skeleton_removal_on_watch_killswitch")||_.RU("IS_SHELL_LOAD")&&_.Mek();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var X=_.te(this);X.addEventListener("yt-player-updated",_.Pc(this,this.onPlayerUpdated_));X.getPlayerPromise().then(function(F){K.playerApiReady_(F)});
_.S("kevlar_watch_flexy_playlist_manager")||(X=_.i9().resolve(_.AW),_.S("kevlar_watch_observe_playlist_navigations_killswitch")&&X.addEventListener("yt-navigate",_.Pc(this,this.onYtNavigate_)),X.setPlaylistComponent(_.C$(this.hostElement).querySelector("#playlist")),X.addEventListener("yt-playlist-data-updated",_.Pc(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.A9.addLowPriorityJob(function(){_.iX(K.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.te(this).removeEventListener("yt-player-updated",_.Pc(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.S("kevlar_watch_flexy_playlist_manager")){var K=_.i9().resolve(_.AW);_.S("kevlar_watch_observe_playlist_navigations_killswitch")&&K.removeEventListener("yt-navigate",_.Pc(this,this.onYtNavigate_));
K.cancelVideoSkip();K.removeEventListener("yt-playlist-data-updated",_.Pc(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.iX(this.hostElement,"yt-autonav-pause-player",!1);K=_.Ec();_.S("kevlar_exit_fullscreen_leaving_watch")&&K&&_.bX(K)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(K){this.player&&this.player.updateVideoData({rvs:K.rvs})},
getPageContents:function(K){return K&&K.contents&&K.contents.twoColumnWatchNextResults&&K.contents.twoColumnWatchNextResults.results&&K.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(K){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",K)},
onRetrieveLocation_:function(K,X){X.hasComments?X.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):X.locationRetrieved("/related_ajax",void 0);K.stopPropagation()},
onSubscriptionChanged_:function(K,X){this.player&&(X?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.AC("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.C$(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.C$(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(K){this.player=K;this.setPlayerState(K.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.S("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.S("kevlar_unified_player")||_.S("kevlar_player_new_bootstrap_adoption"))&&_.GX()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(K,X){X=X===void 0?!0:X;_.Ec()&&_.S("external_fullscreen")&&_.bX(document.documentElement);this.theaterRequested_=K;X&&_.Zr("wide",K?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.xr(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.iX(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(K){_.Wu(K,typeof this.player),this.player&&_.Wu(K,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var K;((K=this.player)==null?0:K.isFullscreen())?this.player.toggleFullscreen():_.xr(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(K,X){return this.loading?X:!!Object.keys(K).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(K){if(K){K=_.D(K);for(var X=K.next();!X.done;X=K.next())X=X.value,X.youThereRenderer&&_.y8V(this.youThereManager_,X.youThereRenderer)}},
setPlaylistData_:function(K){return K||{}},
userEngagementConfigDataChanged_:function(K){if(K)if(K.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var X=this.youThereManager_;_.xg()<K.lowEngagementThresholdMs||_.RCk(X,!0)}else K.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.xr(this.hostElement,"yt-autonav-pause-user-engagement",[K])},
isPlayerUnavailable_:function(K,X,F){return!!K&&!this.isVideoPlayable_(K,F)&&!X},
getPlayerOverlays_:function(K){return(K==null?void 0:K.playerOverlays)||null},
isVideoPlayable_:function(K,X){if(!K)return!1;var F=K.status==="OK"||K.status==="LIVE_STREAM_OFFLINE",P=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",K)||this.get("errorScreen.ypcTrailerRenderer",K);K=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",K);var H;X=X==null?void 0:(H=X.playerOverlayRenderer)==null?void 0:H.gatedActionsOverlayRenderer;return!!F||!!P||!!K||!!X},
hasWatchNextResponseErrorRenderer:function(K){var X=this.getPageContents(K),F,P,H,f,u;return!(K==null?0:(F=K.contents)==null?0:(P=F.twoColumnWatchNextResults)==null?0:P.secondaryResults)&&!!((H=X[0])==null?0:(f=H.itemSectionRenderer)==null?0:(u=f.contents[0])==null?0:u.backgroundPromoRenderer)},
isLiveStreamOffline_:function(K){return K?K.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(K,X,F){var P=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",X),H=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];H=_.S("web_no_skip_video_on_verification_checks")?(K==null?void 0:K.status)&&H.includes(K.status):K&&K.status==="AGE_CHECK_REQUIRED";var f=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",K);f==void 0&&(f=!0);!F||this.isVideoPlayable_(K,this.getPlayerOverlays_(X))||
P||H||!f||_.i9().resolve(_.AW).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.c8v()},
onPlayerFeedbackStartRequest_:function(K){_.xr(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:K}])},
onPlayerFeedbackArticleRequest_:function(K){_.xr(this.hostElement,"yt-help-dialog-requested",[K])},
onPlayerYpcContentRequest_:function(){var K,X,F,P,H,f,u,J,Z=((K=this.data)==null?NaN:(X=K.contents)==null?NaN:(F=X.twoColumnWatchNextResults)==null?NaN:(P=F.secondaryResults)==null?NaN:(H=P.secondaryResults)==null?NaN:(f=H.offerModule)==null?NaN:(u=f.tvfilmOfferModuleRenderer)==null?NaN:(J=u.actionButtons)==null?NaN:J.length)-1;K=[".offerButton.buttonRenderer.",".actionButtons."+(Z>=0?Z:0)+".buttonRenderer."];X=_.D(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(F=X.next();!F.done;F=X.next())for(F=F.value,P=_.D(K),H=P.next();!H.done;H=P.next())if(H="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+F+H.value,H=this.get(H+"navigationEndpoint",this.data)||this.get(H+"serviceEndpoint",this.data)||this.get(H+"command",this.data)){_.sP(H,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(K){_.iX(this.hostElement,"yt-autonav-pause-player",K)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(K){K()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(K){switch(K){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(K){switch(K){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.iX(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(K)},
setPlayerState:function(K){_.aA().dispatch(_.Y6C(K))},
onPlayerSubscribe_:function(K){_.xr(this.hostElement,"yt-player-subscribe",[K])},
onPlayerUnsubscribe_:function(K){_.xr(this.hostElement,"yt-player-unsubscribe",[K])},
onPlayerAdYtShowToast_:function(K){_.xr(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:K.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(K){if(K)return K},
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(K){return!_.S("web_watch_move_summary_to_sd")&&!!K},
computeWatchMetadataRefresh:function(){return _.S("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.S("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var K,X,F,P;this.watchNextSecondaryResults=(K=this.data)==null?void 0:(X=K.contents)==null?void 0:(F=X.twoColumnWatchNextResults)==null?void 0:(P=F.secondaryResults)==null?void 0:P.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.S("swatcheroo_pbs_load_grid")&&!_.S("swatcheroo_provide_all_data_on_scheduled_job")){_.A9.cancelJob(this.setRichGridJobId_);var K,X,F,P,H,f,u;this.setRichGridRendererData((K=this.data)==null?void 0:(X=K.contents)==null?void 0:(F=X.twoColumnWatchNextResults)==null?void 0:(P=F.secondaryResults)==null?void 0:(H=P.secondaryResults)==null?void 0:(f=H.results)==null?void 0:(u=f[0])==null?
void 0:u.richGridRenderer)}},
setRichGridRendererData:function(K){this.richGridRendererData=K},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var K,X=(K=this.data)==null?void 0:K.engagementPanels;if(X==null?0:X.length){K=null;X=_.D(X);for(var F=X.next();!F.done;F=X.next()){F=F.value;var P=void 0;if(((P=F.engagementPanelSectionListRenderer)==null?void 0:P.targetId)==="engagement-panel-structured-description"){K=F;break}}var H,f,u;K=(H=K)==null?void 0:(f=H.engagementPanelSectionListRenderer)==null?void 0:(u=f.content)==null?void 0:u.structuredDescriptionContentRenderer;if(K==null?0:K.items){H=
[];f=_.D(K.items);for(u=f.next();!u.done;u=f.next()){u=u.value;if(!_.S("sd_horizontal_list_show_nav_killswitch")){var J=P=F=X=K=void 0,Z=void 0,M=(K=u.horizontalCardListRenderer)==null?void 0:(X=K.header)==null?void 0:(F=X.richListHeaderRenderer)==null?void 0:(P=F.navigationButton)==null?void 0:(J=P.buttonRenderer)==null?void 0:(Z=J.command)==null?void 0:Z.commandExecutorCommand;M&&M.commands&&(M.commands=M.commands.filter(function(n){return!_.T(n,_.A$o)}))}u.expandableVideoDescriptionBodyRenderer||
u.videoDescriptionHeaderRenderer||H.push(u)}return{items:H}}}},
constructWarning_:function(K){return{text:_.GS(K),type:"WARNING"}},
isPlaShelfEnabled_:function(K){if((this.get("adPlacements",K)||[]).length)return!0;K=this.get("playerAds",K)||[];return!(!K.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",K[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var K=this;_.iX(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var X=this.getScrollTop()>0;this.gestures_&&(X?this.gestures_.detach():this.gestures_.attach());X!==this.showFullerscreenEdu_&&_.S("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=X,_.te(this).getPlayerPromise().then(function(F){F.updateFullerscreenEduButtonVisibility(K.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.iX(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var K=this;this.commentsReady=!1;_.A9.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.cu(_.A9,function(){K.setComments_()},1E3)},
setComments_:function(){if(!_.S("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Ac("cmi");_.A9.cancelJob(this.setCommentsJobId_);var K=this.getPageContents(this.data);if(K&&K.length){K=_.D(K);for(var X=K.next();!X.done;X=K.next())if(X=X.value,this.get("itemSectionRenderer.sectionIdentifier",X)==="comment-item-section"){this.comments=X.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.iX(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.S("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.S("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Ac("cmc")},
doRemoveComments_:function(){this.comments={};_.S("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.A9.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.A9.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(K,X){var F=_.T(X.endpoint,_.vg);F&&(!(X=this.get("data.currentVideoEndpoint.watchEndpoint"))||F.videoId!==X.videoId||F.playlistId&&F.playlistId!==X.playlistId||F.index!==void 0&&F.index!==X.index||typeof F.startTimeSeconds!=="number"||(K.stopPropagation(),this.setScrollTop(0),_.te(this).getPlayerPromise().then(function(P){var H=F.startTimeSeconds;P.seekTo(H);P.wakeUpControls();H<P.getDuration()&&P.playVideo()})))},
updatePlayerStartTime_:function(){var K=_.Fxd();"t"in K&&(K=_.nBs(K.t),this.player.seekTo(K,!0))},
updateTitleFromWatchNext:function(K){K=this.getPageContents(K);var X,F;(K=_.lj(K==null?void 0:(X=K[0])==null?void 0:(F=X.videoPrimaryInfoRenderer)==null?void 0:F.title))&&_.iX(this.hostElement,"yt-update-title",K)},
updateTitle_:function(K){K=this.get("videoDetails.title",K)||"";_.iX(this.hostElement,"yt-update-title",K)},
syncWithRemoteVideo_:function(K,X,F){if(this.active&&this.player){var P=this.player.getVideoData();if(P.video_id===F&&(F=P.list,_.S("polymer_enable_mdx_queue")&&F&&F.startsWith("RQ")&&(F=void 0),P.video_id!==K||F!=X)){var H;_.S("kevlar_player_watch_endpoint_navigation")?H=_.Ws4(_.Zno(K,X)):H=this.buildWatchEndpoint_(K,X);_.iX(this.hostElement,"yt-navigate",{endpoint:H,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(K,X,F){return _.Es(K,X,F)},
initDclkstatus_:function(){_.MV8()},
attachWatchPageSkeleton_:function(){var K=document.querySelector("#watch-page-skeleton");if(K){var X=K.querySelector("#primary-info"),F=K.querySelector("#secondary-info"),P=K.querySelector("#related");X&&_.C$(this.hostElement).querySelector("#info-skeleton").appendChild(X);F&&_.C$(this.hostElement).querySelector("#meta-skeleton").appendChild(F);P&&(_.C$(this.hostElement).querySelector("#related-skeleton").appendChild(P),this.watchNextSkeletonEl_=P);_.c_(K)}},
handlePlayerUpdated_:function(){_.te(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(K,X){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof X!=="undefined"){var F=this.watchNextSkeletonEl_.children,P=K&&K.indexSplices.length?K.indexSplices[0].index:0;K=Math.min(this.watchNextShownItems.length,F.length);X||(P=0,K=F.length);for(X=P;X<K;X++)F[X].classList.add("hidden")}},
onPlayerFullscreenChange_:function(K){_.S("external_fullscreen")||_.xr(this.hostElement,"yt-player-fullscreen",[K.fullscreen])},
onFullscreenChange_:function(K){this.fullscreen=K;this.gestures_&&this.gestures_.update(this.fullscreen);var X=_.te(this);X.getPlayerPromise().then(function(F){F.setFauxFullscreen(!!_.Ec())});
this.updateFullBleedElementLocations();K&&(X.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(K,X){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!X},
computeIsDonationShelfCollapsed_:function(K){return K},
computeShouldShowMerchShelf:function(K,X){return X&&!!K},
computeResponseHasComments:function(K){var X,F,P,H,f;return!!(K==null?0:(X=K.contents)==null?0:(F=X.twoColumnWatchNextResults)==null?0:(P=F.results)==null?0:(H=P.results)==null?0:(f=H.contents)==null?0:f.some(function(u){var J;return(u==null?void 0:(J=u.itemSectionRenderer)==null?void 0:J.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(K,X,F,P){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&P?!1:!!K&&!!Object.keys(K).length&&!X},
identity:_.vy,onWindowResized_:function(K){this.windowSize_=K;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(K){var X=this;K&&K.type!=="dataloaded"&&K.type!=="dataupdated"||_.te(this).getPlayerPromise().then(function(F){var P=F.getPlayerState();P!==5&&P!==0&&(F=1/F.getVideoAspectRatio(),X.videoHeightToWidthRatio_!==F&&(X.videoHeightToWidthRatio_=F))})},
schedulePlayerSizeUpdate_:function(K){var X=this,F=_.S("kevlar_watch_while_v2")||_.S("web_watch_pip"),P=function(){if(X.watchMetadata){var H,f;(f=(H=X.watchMetadata).resize)==null||f.call(H)}_.te(X).getPlayerPromise().then(function(u){if(_.S("kevlar_set_internal_player_size")){if(!F||!X.isMiniplayerActive()){var J=X.calculateCurrentPlayerSize_();u.setInternalSize(J.width,J.height)}}else u.setSize(NaN,NaN);_.S("kevlar_watch_while")&&X.updateWatchWhileScrollThreshold_()})};
K?P():_.QW(_.A9,P)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(K){this.set("data.survey",K.detail)},
onYtShowSurveyCommand_:function(K){this.set("data.survey",_.T(K,_.r8t).survey)},
onDownloadedVideoDeleted:function(K){var X=this,F,P;return _.q(function(H){if(H.nextAddress==1){if(!X.active||(F=X.playerData)==null||!F.offlineState||X.videoId!==K)return H.return();(P=X.player)==null||P.stopVideo();_.zC().navigatingAwayFromWatchDeletedVideo=!0;_.sP(_.Baq,X.hostElement);return _.Y(H,_.zC().navigationFinishPromise,2)}_.zC().navigatingAwayFromWatchDeletedVideo=!1;_.JT(H)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var K;this.theater?K=_.rH(.5625*this.windowSize_.width,480,this.windowSize_.height-185):K=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==K&&(this.watchWhileScrollThreshold_=K,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var K=_.C$(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&K){var X=this.windowSize_.height>=624,F=this.active?this.getScrollTop():0;!K.active&&X&&F>=this.watchWhileScrollThreshold_?(K.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):K.active&&(!X||F<this.watchWhileScrollThreshold_&&!_.Ec())&&(K.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var K=_.C$(this.hostElement).querySelector("#secondary-inner");if(K){var X=_.C$(this.hostElement).querySelector("#below"),F=_.C$(this.hostElement).querySelector("#secondary"),P=_.C$(this.hostElement).querySelector("#comments");P&&F&&X&&(this.defaultTwoColumnLayout?(K.appendChild(P),F.appendChild(K)):(X.appendChild(P),_.U9(X,K)))}}},
isTwoColumnsChanged_:function(K,X){if(K!==!0||X!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(K=_.C$(this.hostElement).querySelector("#secondary-inner"))){X=_.C$(this.hostElement).querySelector("#below");var F=_.C$(this.hostElement).querySelector("#secondary"),P=_.C$(this.hostElement).querySelector("#comments");P&&F&&X&&(this.isTwoColumns_?(K.appendChild(P),F.appendChild(K)):(X.appendChild(P),
_.U9(X,K)))}}else{K=!_.S("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);X=_.C$(this.hostElement).querySelector("#panels");var H=_.C$(this.hostElement).querySelector("#alerts");F=_.C$(this.hostElement).querySelector("#playlist");P=_.C$(this.hostElement).querySelector("#related");var f=_.C$(this.hostElement).querySelector("#donation-shelf"),u=_.C$(this.hostElement).querySelector("#comments");this.isTwoColumns_?(H=_.C$(this.hostElement).querySelector("#secondary-inner"),
K&&(H.appendChild(X),H.appendChild(F)),H.appendChild(f),H.appendChild(P)):(K&&(_.pb(X,H),_.pb(F,H)),_.pb(f,H),u&&_.pb(P,u));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.S("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.S("web_watch_enable_fs_squeezeback_panels")&&_.S("web_watch_theater_chat")){var K=_.C$(this.hostElement).querySelector("#chat-container"),X=this.theater&&!this.fullscreen||_.S("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&X?(X=_.C$(this.hostElement).querySelector("#columns"),(K==null?void 0:K.parentElement)!==X&&X.append(K),this.fixedPanels=!0):(this.fixedPanels=
!1,X=_.C$(this.hostElement).querySelector("#playlist"),K&&X?_.Bz(K,X):_.yy(new _.nG("Missing element when updating chat location",{"chatContainer defined":!!K,"playlist defined":!!X})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(K,X){return _.S("sw_metadata_vis_toggle_ks")?!0:!!K||!!X},
computeForceDarkPanelTheme:function(K){return _.S("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&K:!1},
safeUpdateStyles:function(K){try{_.XU(this.hostElement,K)}catch(X){_.yy(X)}},
videoHeightToWidthRatioChanged_:function(K,X){X&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(K){this.videoHeightToWidthRatio_=1/K},
computeIsVerticalVideo_:function(K){return K>=1},
computeIsFourThreeToSixteenNineVideo_:function(K){return K<=.7501&&K>=.5624},
computeIsExtraWideVideo_:function(K){return K<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.te(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.te(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.UGs(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(K){var X=_.KE(K)||0;_.kl(K,X+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var K=_.KE("yt-fullerscreen-edu-button-click-count")||0,X=_.KE("yt-fullerscreen-edu-button-shown-count")||0,F=_.kU("external_fullscreen_button_shown_threshold"),P=K>=_.kU("external_fullscreen_button_click_threshold")||X>=F;_.te(this).getPlayerPromise().then(function(H){H.updateFullerscreenEduButtonSubtleModeState(P)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(K,X){return X},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.i9().resolve(_.AW).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var K=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.A9.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.A9.addLowPriorityJob(function(){K.fullHeightPanelPositionUpdateJobId=0;var X=_.C$(K.hostElement).querySelector("#secondary"),F=_.C$(K.hostElement).querySelector("#fixed-secondary");X=X.getBoundingClientRect();var P=X.width;K.swatcherooSqueezeback&&
(P+=_.hG);if(K.swatcherooSqueezeback){var H=_.C$(K.hostElement).querySelector("#squeezeback-constraining-container");H.style.width=P+"px";H.style.flex="0 0 "+P+"px"}F.style.width=P+"px";F.style.left=X.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var K=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.A9.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.A9.addLowPriorityJob(function(){K.panelMaxHeightUpdateJob_=0;var X;!K.isTwoColumns_||K.theater||K.fullscreen?X=460:X=K.calculateNormalPlayerSize_().height;var F=X+"px";_.S("live_chat_taller_height")&&!K.theater&&(F="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.S("live_chat_medium_height")&&!K.theater&&(F="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.S("live_chat_scaled_height")&&!K.theater&&(F="calc(100vh - var(--ytd-toolbar-height) - 238px)");K.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":X+"px","--ytd-watch-flexy-chat-max-height":F,"--ytd-watch-flexy-structured-description-max-height":X+"px","--ytd-watch-flexy-comments-panel-max-height":X+"px","--ytd-comments-engagement-panel-content-height":X+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(K){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",K)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.X0(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(K){var X=_.C$(this.hostElement).querySelector("#engagement-panel-scrim");K?X.addEventListener("tap",_.Pc(this,this.onEngagementPanelScrimClick_)):X.removeEventListener("tap",_.Pc(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(K){if(this.hostElement.contains(K)&&!this.scrollToAnimation_.isAnimating()){var X=K.offsetTop-24;K=K.offsetTop+K.offsetHeight+24;var F=this.getPageScrollingElement(),P=this.getScrollTop(),H=P+F.clientHeight-56;if(X<P+56)X-=56;else if(K>H)X=K-F.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,X),500)}},
onYtSignalActionScrollToComments:function(){var K=this.hostElement.querySelector("#comments");if(K&&!this.scrollToAnimation_.isAnimating()){K=K.offsetTop-56-24;if(_.S("kevlar_comment_teaser_scroll_to_midpoint")&&(K-=_.JE().height/3,K<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,K),500)}},
onYtEngagementPanelVisibleChanged:function(K,X,F){if(this.active&&this.trackEngagementPanelVisibility&&!_.Lxo.includes(F)){if(X==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback)if(this.onSetPlaylistCollapsed(!0),_.IJ(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]),_.S("kevlar_single_panel_fullscreen")){var P=_.i9().resolve(_.cR);this.visiblePanelIdentifiers_.forEach(function(H){H!==F&&P.hidePanel(H)})}this.visiblePanelIdentifiers_.add(F)}X!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&X!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(F);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(K){return K?"":"watch-active-metadata"},
computeNewMetadataClass:function(K){return K?"watch-active-metadata":""},
computeFullBleedPlayer:function(K,X,F){return K||X||this.enableFullBleedSingleColumnDefaultPlayer&&!F},
computeDefaultLayout:function(K){return!K},
computeDefaultTwoColumnLayout:function(K,X){return!K&&X},
updatePanelsLocation:function(){if(_.S("web_watch_enable_fs_squeezeback_panels")){var K=_.C$(this.hostElement).querySelector("#below"),X=_.C$(this.hostElement).querySelector("#panels"),F=_.C$(this.hostElement).querySelector("#playlist"),P=_.C$(this.hostElement).querySelector("#chat-container"),H=_.C$(this.hostElement).querySelector("#panels-full-bleed-container"),f=_.C$(this.hostElement).querySelector("#secondary-inner"),u=this.fullscreen||this.theater&&this.iMaxTheaterMode,J=this.theater&&!this.iMaxTheaterMode&&
this.liveChatPresentAndExpanded;this.fixedPanels=!1;u?(H.appendChild(X),H.appendChild(P),H.appendChild(F)):this.isTwoColumns_?(J?(K=_.C$(this.hostElement).querySelector("#columns"),(P==null?void 0:P.parentElement)!==K&&K.append(P),this.fixedPanels=!0):_.U9(f,P),_.U9(f,X),_.U9(f,F)):(K.appendChild(X),K.appendChild(P),K.appendChild(F))}},
swatcherooUpdatePanelsLocation:function(K,X,F,P,H,f){if(this.is==="ytd-watch-grid"){X=K&&!X;this.swatcherooSplitScroll&&(X?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));F=_.C$(this.hostElement).querySelector("#panels");var u=_.C$(this.hostElement).querySelector("#playlist"),J=_.C$(this.hostElement).querySelector("#fixed-secondary"),Z=_.C$(this.hostElement).querySelector("#fixed-below"),
M=_.C$(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),n=_.C$(this.hostElement).querySelector("#chat-container");f&&(K?J.appendChild(F):Z.appendChild(F));H?K?J.appendChild(n):Z.appendChild(n):_.Bz(n,M);P?K?J.appendChild(u):Z.appendChild(u):_.Bz(u,M);this.swatcherooSplitScroll&&(K=_.C$(this.hostElement).querySelector("#secondary"),P=_.C$(this.hostElement).querySelector("#columns"),H=_.C$(this.hostElement).querySelector("#fixed-columns-secondary"),X?
H.appendChild(K):P.appendChild(K))}},
computeMetadataSkinnyMode:function(K,X,F){return this.is!=="ytd-watch-grid"?!1:K?F:X},
computeWatchWhilePanelsActive:function(K,X){return K||X},
computeNoBorderOnChat:function(K){return _.S("web_watch_theater_chat_no_border")&&K},
computeLiveChatPresentAndExpanded:function(K,X){return K&&!X},
computePanelExpanded:function(K,X,F){return K||X||F},
computeSqueezeback:function(K,X,F,P){if(_.S("web_watch_enable_fs_squeezeback_panels")){var H=this.iMaxTheaterMode&&this.theater;return(K||X||F)&&(P||H)}},
computeSwatcherooSqueezeback:function(K,X,F){return this.is!=="ytd-watch-grid"||_.S("ww_squeezeback_killswitch")?!1:K&&X&&F},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(K){_.te(this).getPlayerPromise().then(function(X){var F;(F=X.changeMarkerVisibility)==null||F.call(X,_.T(K,_.Vp).isVisible||!1,_.T(K,_.Vp).entityKeys||[],_.T(K,_.Vp).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(K){this.liveChatCollapsed=K.detail;_.aA().dispatch(_.oB1(K.detail))},
onSetPlaylistCollapsed:function(K){_.S("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!K)},
provideRenderingData:function(K,X){switch(K){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=X;break;case "PRIMARY_INFO":_.S("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=X);this.videoPrimaryInfoRendererValue=X==null?void 0:X.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.S("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=X);this.videoSecondaryInfoRendererValue=X==null?void 0:X.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
X;break;case "CLARIFICATION":this.clarifyBoxValue=X;break;case "LIVE_CHAT":this.conversationBar=X;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=X;break;case "PLAYLIST":this.externalPlaylistData_=X!=null?X:{};break;case "MERCH_SHELF":this.merchShelfValue=X==null?void 0:X.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=X;break;case "TICKET_SHELF":this.ticket=X;break;case "OFFER_MODULE":this.offerModule=X;break;case "LIMITED_STATE":this.limitedStateValue=
X;break;case "DONATION_SHELF":this.donation=X;break;case "ALERTS":this.alertsValue=X;break;case "COMMENTS":this.comments=X;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=X;break;case "ENGAGEMENT_PANELS":this.engagementPanels=X;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=X;break;case "RICH_GRID_RENDERER":this.richGridRendererData=X;break;case "EXPANDABLE_METADATA":this.expandableMetadata=X;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
X}},
toggleCinematicsActive:function(K){this.cinematicsActive=K},
isMiniplayerActive:function(){return _.i9().resolve(_.Wj).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var QUF;_.Z9v=function(K){return K.shorts.isShortsActive};
_.YNF=function(K){if(!(0,_.y8l)(K))throw Error("H``"+String(K));};
_.M8V=function(K){return K.findIndex(function(X){return QUF.indexOf(X.tagName)>-1})>-1};
_.nUV=function(K){return _.iY({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:K}})};
_.cV1=function(){var K=_.i9().resolve(_.fE);_.t04(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(K.isFullscreenEnabled()?_.bX(document.documentElement):_.JmT(document.documentElement))};
QUF=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.bp=new Map;_.bp.set(32,59972);_.bp.set(27,50765);_.bp.set(70,60102);_.bp.set(76,60221);_.bp.set(77,60222);_.bp.set(74,60223);_.bp.set(84,60224);_.bp.set(38,61941);_.bp.set(40,61942);_.bp.set(73,62521);_.bp.set(67,62522);_.bp.set(80,63390);_.bp.set(78,63397);_.bp.set(75,59972);_.bp.set(188,63385);_.bp.set(190,63384);_.bp.set(36,63387);
_.bp.set(35,63386);_.bp.set(37,63388);_.bp.set(39,63389);_.bp.set(79,63423);_.bp.set(87,63424);_.bp.set(107,63426);_.bp.set(109,63425);_.bp.set(65,63428);_.bp.set(83,63430);_.bp.set(68,63429);_.bp.set(221,63431);_.bp.set(219,63432);_.bp.set(97,63439);_.bp.set(98,63440);_.bp.set(99,63441);_.bp.set(100,63442);_.bp.set(101,63443);_.bp.set(102,63444);_.bp.set(103,63445);_.bp.set(104,63446);_.bp.set(105,63447);_.CH=new Map;_.CH.set(80,63390);_.CH.set(78,63397);_.CH.set(188,63400);_.CH.set(190,63401);
_.CH.set(191,60765);_.CH.set(13,247917);_.NJ=new Map;_.ip=new Map;
}catch(e){_._DumpException(e)}
try{
var coF,SvF,oiW,Lks;_.Yvt=function(K){return K.ui.guideIsVisibleButNotPersistent};
_.Qfd=function(K){return K.ui.tabGesturesIsActive};
_.Mio=function(){var K=_.KG("service_worker_scope");try{return navigator.serviceWorker.getRegistration(K)}catch(X){return Promise.reject(X)}};
_.nit=function(K){return!(!K||!K.pushManager)};
coF=function(){return _.Mio().then(_.nit).catch(function(){return!1})};
_.p$k=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?coF():Promise.resolve(!1)};
_.BFt=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
SvF=function(){var K,X,F;return _.q(function(P){switch(P.nextAddress){case 1:return _.Y(P,_.MA.getInstance(),2);case 2:K=P.yieldResult;if(!K){X=void 0;P.jumpTo(3);break}return _.Y(P,K.get("lmqf"),4);case 4:X=P.yieldResult;case 3:switch((F=X)||(F="SD"),F){case "HD":return P.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return P.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return P.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return P.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return P.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
oiW=function(K){var X,F,P;return _.q(function(H){if(H.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.S("disable_av1_setting")){var f=window.localStorage["yt-player-av1-pref"];f=f==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":f==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else f="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(X=K===f)return H.jumpTo(2);P=F=K;return _.Y(H,SvF(),3)}H.nextAddress!=2&&(X=P===H.yieldResult);return H.return(X)})};var TF1;var ro1=_.Q5.IronButtonState,Aot=(0,_.JL)(HTMLElement);
_.pa({_template:function(){if(TF1!==void 0)return TF1;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;Lks===void 0&&(Lks=document.createElement("template"));var P=Lks;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return TF1=K},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[ro1,_.Z_,_.Mf,_.pT],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(K){var X=(0,_.Jg)(this);X.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:K});X.shadowRoot.appendChild(K);return Aot.prototype._attachDom.call(this,K)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var K=this.contentElement;K&&K.selectedItem&&this._setSelectedItem(K.selectedItem)},
get contentElement(){for(var K=_.cg(this.$.content).getDistributedNodes(),X=0,F=K.length;X<F;X++)if(K[X].nodeType===Node.ELEMENT_NODE)return K[X]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(K){this._setSelectedItem(K.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(K){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K)===this&&this.open()},
_selectedItemChanged:function(K){var X="";K?X=K.label||K.getAttribute("label")||K.textContent.trim():X="";this.value=X;this._setSelectedItemLabel(X)},
_computeMenuVerticalOffset:function(K,X){return X?X:K?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var K=this.opened?"true":"false",X=this.contentElement;X&&X.setAttribute("aria-expanded",K)}});_.GA=new _.b("navigateAction");var jfV=new _.b("formRenderer");var lM=function(){var K=_.ub.apply(this,arguments)||this;K.showInput=!1;return K};
_.r(lM,_.ub);_.z=lM.prototype;_.z.detached=function(){this.showInput&&window.removeEventListener("click",_.Pc(this,this.closeOnOutsideClick_))};
_.z.stopPropagation_=function(K){this.showInput&&K.stopPropagation()};
_.z.closeOnOutsideClick_=function(K){this.closeOnOutsideClickCondition(K)&&(this.showInput=!1,window.removeEventListener("click",_.Pc(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.z.closeOnOutsideClickCondition=function(){return!0};
_.z.closeOnOutsideClickHandler=function(){};
_.z.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.Pc(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.z.openOnClickHandler=function(){};
_.z.showInputChanged=function(){};
_.z.setShowInput=function(K){this.showInput=K};
lM.prototype.setShowInput=lM.prototype.setShowInput;lM.prototype.showInputChanged=lM.prototype.showInputChanged;lM.prototype.openOnClickHandler=lM.prototype.openOnClickHandler;lM.prototype.openOnClick_=lM.prototype.openOnClick_;lM.prototype.closeOnOutsideClickHandler=lM.prototype.closeOnOutsideClickHandler;lM.prototype.closeOnOutsideClickCondition=lM.prototype.closeOnOutsideClickCondition;lM.prototype.closeOnOutsideClick_=lM.prototype.closeOnOutsideClick_;lM.prototype.stopPropagation_=lM.prototype.stopPropagation_;
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],lM.prototype,"showInput",void 0);_.O([_.Hc("click"),_.Hc("keydown"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],lM.prototype,"stopPropagation_",null);_.O([_.so("showInput"),_.g("design:type",Function),_.g("design:paramtypes",[Boolean]),_.g("design:returntype")],lM.prototype,"showInputChanged",null);lM=_.O([_.qY()],lM);_.w$J=[lM.prototype];var yot;var Wkt;var vq=function(){return _.G.apply(this,arguments)||this};
_.r(vq,_.G);_.z=vq.prototype;_.z.computePreselectedOption=function(K,X){return X===this.itemSelected_?K:void 0};
_.z.dataChanged_=function(){var K=this;this.preselectedSubreason=this.itemSelected_=-1;var X;(X=this.data)!=null&&X.key&&_.tg(this,function(){var F,P=Number((F=K.data)==null?void 0:F.key);!Number.isNaN(P)&&(K.itemSelected_=P,F=(F=(K.data.items||[])[P])&&F.optionSelectableItemRenderer&&F.optionSelectableItemRenderer.preselectedIndex)&&(K.preselectedSubreason=F)})};
_.z.isSubReasonHidden_=function(K,X){return K!=X};
_.z.onTopItemSelected_=function(K,X){for(var F=_.C$(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),P=0,H=F.length;P<H;P++)F[P].select(0);_.xr(this.hostElement,"yt-report-form-update",[X.item.value]);K.stopPropagation()};
_.z.onItemSelected_=function(K,X){_.xr(this.hostElement,"yt-report-form-update",[X.item.value]);K.stopPropagation()};
_.z.getItem_=function(K){return K.serviceItem?K.serviceItem:K.navigationItem?K.navigationItem:K.optionSelectableItemRenderer?K.optionSelectableItemRenderer:null};
_.z.computeText_=function(K){return(K=this.getItem_(K))?this.ytRendererBehavior.getSimpleString(K.text):null};
_.z.validate=function(){return this.itemSelected_!==-1};
_.z.computeAriaLabel_=function(K){var X=_.lj(K.text);(K=K.accessibility&&K.accessibility.accessibilityData&&K.accessibility.accessibilityData.label)&&(X+=". "+K);return X};
_.z.computeItemSelected_=function(K){return K};
_.z.preventSelection_=function(K){K.stopPropagation();this.tooltipTapped=!0};
_.z.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.z.updateItemSelectedFromBinding=function(K){this.itemSelected_=K.detail.value};
_.z.save=function(){var K;this.validate()&&(K=this.data)!=null&&K.items&&(K=this.data.items[this.itemSelected_],K!=null&&K.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(K.optionSelectableItemRenderer.submitEndpoint)||_.Kl(this.hostElement,[K.optionSelectableItemRenderer.submitEndpoint])))};
vq.prototype.onPaperRippleTransitionEnd_=vq.prototype.onPaperRippleTransitionEnd_;vq.prototype.dataChanged_=vq.prototype.dataChanged_;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],vq.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],vq.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],vq.prototype,"data",void 0);_.O([_.h({value:-1}),_.g("design:type",Number)],vq.prototype,"itemSelected_",void 0);
_.O([_.h({computed:"computeItemSelected_(itemSelected_)"}),_.g("design:type",Number)],vq.prototype,"value",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],vq.prototype,"restoreFocusOnClose",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],vq.prototype,"tooltipTapped",void 0);_.O([_.h({value:-1}),_.g("design:type",Number)],vq.prototype,"preselectedSubreason",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],vq.prototype,"dataChanged_",null);_.O([_.Hc("transitionend"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],vq.prototype,"onPaperRippleTransitionEnd_",null);vq=_.O([_.Tb({is:"yt-options-renderer",disableElementRegistration:!0})],vq);
_.t(vq,"yt-options-renderer",function(){if(Wkt===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;yot===void 0&&(yot=document.createElement("template"));var P=yot;F.call(X,P.content.cloneNode(!0),K.content.firstChild);Wkt=K}K=Wkt;return K},{mode:2});var dvo;var edv;var RdJ;var Uv5;var hdd;var mvG;var aq=function(){return _.G.apply(this,arguments)||this};
_.r(aq,_.G);aq.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
aq.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
aq.prototype.onTap=function(K){if(this.hostElement.classList.contains("selected")||_.kr(this.hostElement,"yt-share-panel-can-select-contact-action"))K&&K.detail&&(K.detail.x||K.detail.y)&&_.C$(this.hostElement).querySelector("#target").blur(),(K=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),K={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:K?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.xr(this.hostElement,"yt-share-panel-select-contact-action",[K])};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],aq.prototype,"ytRendererBehavior",void 0);_.O([_.h({observer:"onDataChanged"}),_.g("design:type",Object)],aq.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.g("design:type",String)],aq.prototype,"componentTitle",void 0);_.O([_.fa("#thumbnail"),_.g("design:type",Object)],aq.prototype,"thumbnail",void 0);aq=_.O([_.Tb({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],aq);
_.t(aq,"yt-enrolled-contact-renderer",function(){if(mvG===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;hdd===void 0&&(hdd=document.createElement("template"));var P=hdd;F.call(X,P.content.cloneNode(!0),K.content.firstChild);mvG=K}K=mvG;return K},{mode:2});var GpJ;var lX1;var td=function(){return _.G.apply(this,arguments)||this};
_.r(td,_.G);td.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
td.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
td.prototype.onTap=function(K){if(this.hostElement.classList.contains("selected")||_.kr(this.hostElement,"yt-share-panel-can-select-contact-action"))K&&K.detail&&(K.detail.x||K.detail.y)&&_.C$(this.hostElement).querySelector("#target").blur(),(K=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),K={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:K?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.xr(this.hostElement,"yt-share-panel-select-contact-action",[K])};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],td.prototype,"ytRendererBehavior",void 0);_.O([_.h({observer:"onDataChanged"}),_.g("design:type",Object)],td.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.g("design:type",String)],td.prototype,"componentTitle",void 0);_.O([_.fa("#thumbnail"),_.g("design:type",Object)],td.prototype,"thumbnail",void 0);td=_.O([_.Tb({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],td);
_.t(td,"yt-suggested-contact-renderer",function(){if(lX1===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;GpJ===void 0&&(GpJ=document.createElement("template"));var P=GpJ;F.call(X,P.content.cloneNode(!0),K.content.firstChild);lX1=K}K=lX1;return K},{mode:2});var $P=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-share-panel-reset-action":"onReset"};return K};
_.r($P,_.G);$P.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"}}}}}};
$P.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.xr(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
$P.prototype.onReset=function(){for(var K=_.C$(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),X=K.length-1;X>=0;X--)K[X].classList.toggle("selected")};
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],$P.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],$P.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],$P.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h({observer:"onDataChanged"}),_.g("design:type",Object)],$P.prototype,"data",void 0);
$P=_.O([_.Tb({is:"yt-contact-section-renderer",disableElementRegistration:!0})],$P);
_.t($P,"yt-contact-section-renderer",function(){if(Uv5===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;RdJ===void 0&&(RdJ=document.createElement("template"));var P=RdJ;F.call(X,P.content.cloneNode(!0),K.content.firstChild);Uv5=K}K=Uv5;return K},{mode:2});var OR=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return K};
_.r(OR,_.G);_.z=OR.prototype;_.z.configureRendererStamper=function(){return{"data.fields":{id:"fields",mapping:{textInputFormFieldRenderer:{component:"yt-text-input-form-field-renderer",params:{required:!0},properties:{hideLabel:"[[data.hideLabels]]"}},toggleFormFieldRenderer:{component:"yt-toggle-form-field-renderer"},optionsRenderer:"yt-options-renderer",contactSectionRenderer:"yt-contact-section-renderer"}}}};
_.z.onYtRefreshFormCommand=function(K){var X;(K=_.T((X=_.T(K,_.xLW))==null?void 0:X.formRenderer,jfV))&&this.set("data",K)};
_.z.reset=function(){var K=_.C$(this.hostElement).querySelector("#fields").children;K=_.D(K);for(var X=K.next();!X.done;X=K.next())X=X.value,X.reset&&X.reset()};
_.z.getForm=function(){var K={},X=_.C$(this.hostElement).querySelector("#fields").children;X=_.D(X);for(var F=X.next();!F.done;F=X.next()){F=F.value;if(!F.validate())return null;K[F.data.key]=F.value}return K};
_.z.submitFormFields=function(){if(this.fields)for(var K=_.D(this.fields),X=K.next();!X.done;X=K.next())X=X.value,X.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?X.save():X.nodeName==="YT-OPTIONS-RENDERER"&&X.save()};
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],OR.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],OR.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],OR.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],OR.prototype,"data",void 0);_.O([_.DA("#fields > *"),_.g("design:type",Array)],OR.prototype,"fields",void 0);
OR=_.O([_.Tb({is:"yt-form-renderer",disableElementRegistration:!0})],OR);
_.t(OR,"yt-form-renderer",function(){if(edv===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;dvo===void 0&&(dvo=document.createElement("template"));var P=dvo;F.call(X,P.content.cloneNode(!0),K.content.firstChild);edv=K}K=edv;return K},{mode:2});var vi1;var Vr=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return K};
_.r(Vr,_.G);Vr.prototype.onCheckboxChange=function(K){this.data&&(K=(this.checked=_.vI(K).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.i9().resolve(_.xU).resolveCommand(K,{form:{element:this.hostElement}})};
Vr.prototype.handleUpdateCheckboxCommand=function(K){(K=_.T(K,_.YXT))&&this.data&&this.data.id===K.id&&(this.set("data.disabled",K.disabled),this.set("data.title",K.title))};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Vr.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Vr.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Vr.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Boolean)],Vr.prototype,"checked",void 0);Vr=_.O([_.v({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Vr);
_.t(Vr,"ytd-settings-checkbox-renderer",function(){if(vi1!==void 0)return vi1;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return vi1=K},{mode:1});var aXs;var g8=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return K};
_.r(g8,_.G);g8.prototype.dataChanged=function(){var K=this,X;return _.q(function(F){if(F.nextAddress==1)return K.radio.removeAttribute("checked"),!K.data||!K.data.id||K.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.BFt()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(X=K.data&&K.data.id)?_.Y(F,oiW(K.data.id),4):F.jumpTo(3):(K.set("data.hidden",!0),F.jumpTo(0));F.nextAddress!=3&&(X=F.yieldResult);X&&_.xr(K.hostElement,"yt-select-settings-radio-option",[K.data.id]);_.JT(F)})};
g8.prototype.onButtonChanged=function(K){_.vI(K).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.i9().resolve(_.xU).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.xr(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
g8.prototype.onSelectOption=function(K){this.data&&this.data.id&&(this.data.id===K?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
g8.prototype.dataChanged=g8.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],g8.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],g8.prototype,"ytActionHandlerBehavior",void 0);_.O([_.fa("#radio"),_.g("design:type",Object)],g8.prototype,"radio",void 0);_.O([_.h(),_.g("design:type",Object)],g8.prototype,"data",void 0);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype",Promise)],g8.prototype,"dataChanged",null);g8=_.O([_.v({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],g8);
_.t(g8,"ytd-settings-radio-option-renderer",function(){if(aXs!==void 0)return aXs;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return aXs=K},{mode:1});var tiv;var ER=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return K};
_.r(ER,_.G);
ER.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"}}}};
ER.prototype.handleUpdateTextCommand=function(K){(K=_.T(K,_.QcE))&&this.data&&this.data.id===K.id&&this.set("data",K)};
ER.prototype.handleUpdateConnectedAppRendererCommand=function(K){if(_.T(K,_.cbN)&&this.data){var X,F;if(K=(X=_.T(K,_.cbN))==null?void 0:(F=X.newConnectedAppRenderer)==null?void 0:F.connectedAppRenderer)this.data=K}};
ER.prototype.computeConnectedAppStyle=function(K){return K.style?K.style.toLowerCase().replace(/_/g,"-"):""};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],ER.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],ER.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ER.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],ER.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.g("design:type",String)],ER.prototype,"connectedAppStyle",void 0);ER=_.O([_.v({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],ER);
_.t(ER,"ytd-connected-app-renderer",function(){if(tiv!==void 0)return tiv;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return tiv=K},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.W_("iuT5Oc");

_.d0();
}catch(e){_._DumpException(e)}
try{
_.W_("L3n37");
var bn5=function(K){return K.watch.isLearningJourneyActive},Cld=_.cO(115994),N6V=_.cO(115993),inV=function(K,X,F){var P=this;
var H=F.dragDownAction;this.layer=0;this.JSC$20494_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return P.dragDownAction()}}}};
this.JSC$20494_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return P.dragDownAction()}}}};
this.fullscreen=!1;var f=_.uH();_.Kp(f,Cld,this.layer);_.Kp(f,N6V,this.layer);this.dragDownAction=function(){H();_.WO(f,{visualElement:P.fullscreen?Cld:N6V})};
this.gesture=new _.qK(K,X,this.JSC$20494_watchConfig,"pandown");this.attach()};
inV.prototype.attach=function(){this.gesture.attach()};
inV.prototype.detach=function(){this.gesture.detach()};
inV.prototype.update=function(K){this.fullscreen=K;this.gesture.config=K?this.JSC$20494_watchFullScreenConfig:this.JSC$20494_watchConfig};var xGG=function(K){_.ES.call(this);var X=this;this.rootElement=K;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return X.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(F){X.initOrDisposeActiveModules(F)}));
this.onAttached()};
_.r(xGG,_.ES);_.z=xGG.prototype;_.z.getRoot=function(){return this.rootElement};
_.z.getElement=function(K){return this.rootElement.getElement(K)};
_.z.setPlayerResponse=function(K){this.playerResponse=K;this.publish("PLAYER_RESPONSE_UPDATED",K)};
_.z.getPlayerResponse=function(){return this.playerResponse};
_.z.setWatchNextResponse=function(K){this.watchNextResponse===K?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=K,this.publish("WATCH_NEXT_RESPONSE_UPDATED",K))};
_.z.getWatchNextResponse=function(){return this.watchNextResponse};
_.z.registerActionHandler=function(K,X){var F=this;if(_.S("web_watch_controller_reg_multiple_handlers_killswitch")){var P={};_.ly(_.GT.getInstance(),(P[K]=X,P),this.getRoot())}else this.actionHandlers.has(K)||(this.actionHandlers.set(K,[]),P={},_.ly(_.GT.getInstance(),(P[K]=function(){var H=_.Ls.apply(0,arguments);return(F.actionHandlers.get(K)||[]).map(function(f){return f.apply(null,_.LZ(H))})},P),this.getRoot())),this.actionHandlers.get(K).push(X)};
_.z.unregisterActionHandler=function(K){if(_.S("web_watch_controller_reg_multiple_handlers_killswitch")){var X={};_.vu(_.GT.getInstance(),(X[K]=!0,X),this.getRoot())}else(X=this.actionHandlers.get(K))?(X.pop(),X.length===0&&(X={},_.vu(_.GT.getInstance(),(X[K]=!0,X),this.getRoot()),this.actionHandlers.delete(K))):_.yy(new _.nG("Attempted to unregister an action handler which is not registered.",K))};
_.z.addPageDisposeJob=function(K){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.El(this.rootElement.pageDisposeJobs,K)};
_.z.removePageDisposeJob=function(K){this.rootElement.pageDisposeJobs&&_.CO(this.rootElement.pageDisposeJobs,K)};
_.z.dispatchEvent=function(K,X){_.iX(this.rootElement,K,X)};
_.z.provideRenderingData=function(K,X){this.rootElement.provideRenderingData(K,X)};
_.z.scrollWatchTo=function(K,X){var F;(F=this.watchScrollManager)==null||F.scrollWatchTo(K,X)};
_.z.focusOnPlayer=function(){var K=this.getElement("PLAYER");_.tg(K,function(){if(K&&K.firstElementChild){var X=K.querySelector(".html5-video-player");X&&(_.gK(_.i9().resolve(_.BO)),X.focus())}else _.yy(Error("hm"))})};
_.z.updateCinematicFullscreenConfig=function(){var K=!!this.rootElement.theater,X=!!this.rootElement.fullscreen,F;(F=this.watchCinematicManager)==null||_.bm8(F,X,K)};
_.z.subscribeToActiveChanged=function(K,X){X=X===void 0?!0:X;var F=_.Dg(_.aA(),bn5,function(P){K(P)});
X&&K(bn5(_.aA().getState()));return F};
_.z.isActive=function(){return bn5(_.aA().getState())};
_.z.onAttached=function(){var K=_.S("external_fullscreen");_.S("use_unified_flag_accessor")&&(K=_.i9().resolve(_.cMd).retriever.getFlag(_.LqC));(K||_.RU("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.z.initPersistentModules=function(){if(_.S("kevlar_watch_flexy_theater_manager")){var K=new _.ott(this);_.JH(this,K)}K=new _.zzw(this);_.JH(this,K);K=new _.yp(this);_.JH(this,K);K=new _.mA(this);_.JH(this,K);K=new _.hzG(this);_.JH(this,K);K=new _.d5(this);_.JH(this,K);_.S("kevlar_watch_flexy_playlist_manager")&&(K=new _.lIJ(this),_.JH(this,K))};
_.z.initOrDisposeActiveModules=function(K){K?(this.watchScrollManager=new _.lV(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.SnG(this)),this.activeModules.push(new _.Azv(this)),this.activeModules.push(new _.V2W(this)),this.activeModules.push(new _.Gf(this)),_.S("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.WCd(this)),this.activeModules.push(new _.jNG(this)),_.S("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.E7s(this)),
_.S("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.l35(this)),_.S("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.Om5(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.S("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.dKJ(this)),_.S("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.HhV(this)),K=_.S("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.S("kevlar_watch_flexy_comments_manager")&&!K&&this.activeModules.push(new _.kRv(this)),_.S("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.W4(this)),this.activeModules.push(new _.W1w(this)),this.activeModules.push(new _.Lno(this)),_.S("web_enable_timely_actions")&&this.activeModules.push(new _.UN8(this)),_.S("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.F1V(this)),_.S("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.bqk(this)),
_.S("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.UIF(this)),_.S("web_player_rtr_ctrls")&&this.activeModules.push(new _.Hmv(this))):(_.xp(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.z.disposeInternal=function(){_.ES.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Oi.Object.defineProperties(xGG.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var I75={},kj8=["learning-journey-engagement-panel","PAlearning_chat"];
I75.YtdLearningJourneyWatchBehavior=[_.k.YtRendererBehavior,_.ld.YtPlayerListenerBehavior,_.CE.YtRendererstamperBehavior,_.NT.YtActionHandlerBehavior,_.j2.YtPageBehavior,_.DP.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 _.RU("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.S("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 _.RU("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 _.S("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.S("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 _.kU("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.kU("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.S("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.S("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("web_watch_rounded_player_large")||_.S("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 _.S("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.S("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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 _.S("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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 _.S("web_thumbnail_to_watch_transition")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);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:_.je(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.je(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var K=this;this.watchController=void 0;this.pageDisposeJobs=[function(){K.showMetadataPlaceholder_()},
function(){_.S("web_watch_dont_clear_comments")||K.clearComments_()},
function(){K.clearPlayerAds_()},
function(){K.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.S("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.S("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.A8k(function(){return _.te(K)},this.hostElement);
this.pageDisposeJobs.push(function(){K.youThereManager_.reset()});
_.S("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){K.resetFullerscreenEduButtonForNewPlayback_()}));
_.S("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.Ir;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;_.S("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.S("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));_.S("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Pc(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(K){K&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:K}),K.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(K){_.S("kevlar_watch_flexy_theater_manager")&&(this.theater=K,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.S("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(K){!_.S("kevlar_watch_while_v2")&&!_.S("web_watch_pip")||K||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(K){this.active!==void 0&&(this.fullscreen=K,_.S("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(K){this.active!==void 0&&(_.iX(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.S("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(K>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(K){this.initCsi_();this.updatePageData_(K)},
updatePageData_:function(K){var X=this;if(K)if(this.data===K){this.onPageLoadWithSameData_();var F;(F=this.watchController)==null||F.setWatchNextResponse(this.data)}else this.data=K;this.playlist&&_.T6({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Ac("nw");this.loading=!1;_.cu(_.A9,function(){X.initDclkstatus_();var P,H=((P=X.player)==null?void 0:P.getVideoData().cpn)||"";_.J8G(function(f,u){_.uoF(f,u,H)})})},
onPageLoadWithSameData_:function(){_.S("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 K=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!K);this.set("loadingData.playlistLoading",K&&K!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),K=this.watchNextSkeletonEl_.firstElementChild;K;)K.classList.remove("hidden"),K=K.nextElementSibling;if(_.S("kevlar_watch_frame0_loading_state")){var X,F,P;K=(X=this.loadingData)==null?void 0:(F=X.endpoint)==null?void 0:(P=F.watchEndpoint)==null?void 0:P.videoId;var H;K&&(H="https://i.ytimg.com/vi/"+K+"/frame0.jpg");_.C$(this.hostElement).querySelector("#player").style.backgroundImage=H?"url("+H+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var K=_.C$(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&K&&(K.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var X,F;(F=(X=this.watchMetadata).updateSentimentBarWidth)==
null||F.call(X);var P,H;(H=(P=this.watchMetadata).resize)==null||H.call(P)}_.S("kevlar_watch_frame0_loading_state")&&(_.C$(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(K){var X=_.C$(this.hostElement).querySelector(K);X?_.Cy(X,!1):_.yy(new _.nG("Overscroll monitor not found for component: ",K))},
removeSplitScrollMouseTrap:function(K){var X=_.C$(this.hostElement).querySelector(K);X?_.N$(X):_.yy(new _.nG("Disposal component for  overscroll monitoring not found: ",K))},
onLoadingChanged_:function(K){K?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(K){var X=this;K?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.A9.addLowPriorityJob(function(){X.onWindowResized_(_.qD(!0))})},
updateTheaterModeState_:function(K){if(!_.S("kevlar_watch_flexy_theater_manager")){K=K||this.fullWindowMode_;if(this.theater!==void 0||K)this.theater=K;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();K&&_.rJJ()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var K=this.theater;_.S("external_fullscreen")&&this.fullscreen&&(K=!0);K=K?_.C$(this.hostElement).querySelector("#player-full-bleed-container"):_.C$(this.hostElement).querySelector("#player-container-inner");var X=this.getPlayerContainer(),F=_.S("kevlar_watch_while_v2")||_.S("web_watch_pip");X.parentElement!==K&&(F&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.te(this).appendTo(K,X),K.appendChild(_.C$(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var K=this;return _.q(function(X){if(X.nextAddress==1)return _.Y(X,_.i9().resolve(_.Wj).deactivate(),2);K.updatePlayerLocation();_.JT(X)})},
updateCinematicsLocation:function(){var K=this.getElement("CINEMATICS");if(K){var X=this.getCinematicsLocationContainer();K.parentElement!==X&&X.appendChild(K);var F;(F=this.watchController)==null||F.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.C$(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.C$(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(K,X){var F=document.documentElement.hasAttribute("dark"),P=F&&_.S("web_cinematic_theater_mode"),H=F&&_.S("web_cinematic_fullscreen");F=!F&&this.cinematicLightTheme;return K&&P||X&&H||(X||K)&&F},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var K;(K=this.watchController)==null||K.setWatchNextResponse(this.data);_.S("kevlar_watch_flexy_comments_manager")||this.initComments_();_.S("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.i9().resolve(_.AW).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.S("web_watch_start_chat_in_theater_mode")){var X,
F,P;if((X=this.data)==null?0:(F=X.contents)==null?0:(P=F.twoColumnWatchNextResults)==null?0:P.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var H,f;((H=this.data)==null?0:(f=H.contents)==null?0:f.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(K){var X;(X=this.watchController)==null||X.setPlayerResponse(this.playerData);K&&K.playabilityStatus&&(X=this.isVideoPlayable_(K.playabilityStatus,this.getPlayerOverlays_(this.data)),K=this.isLiveStreamOffline_(K.playabilityStatus),X&&!K||_.tg(this,function(){_.Ac("pbu")}));
this.setPlayerAds_();_.IJ(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(K){_.aA().dispatch(_.iY({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));K?this.activate_():this.deactivate_()},
attached:function(){var K=this;this.watchController=new xGG(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.S("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var X=_.te(this);_.S("kevlar_disable_prepare_player")||X.preparePlayer();_.S("kevlar_watch_flexy_playlist_manager")||_.i9().resolve(_.AW).setPlayer(X);this.updatePageMediaQueries();X={"--ytd-watch-flexy-scrollbar-width":_.TA()+
"px"};!_.kU("kv_pl_mx_sz_ks")&&_.kU("kevlar_watch_max_player_width")&&(X["--ytd-watch-flexy-max-player-width-wide-screen"]=_.qbs+"px");_.kU("kevlar_watch_flexy_metadata_height")&&(X["--ytd-watch-flexy-space-below-player"]=_.JS1+"px");this.safeUpdateStyles(X);_.S("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new inV(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return K.onPlayerTouchPanDown_()}}));
_.S("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.C$(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var K=_.TA(),X=_.me+K,F=X;this.fixedPanels&&(X+=_.uR1);var P=657+K;K=1327+K;_.C$(this.hostElement).querySelector("#two-column-query").query="(min-width: "+X+"px)";_.C$(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(P+"px), (min-height: 630px) and (min-width: ")+(X+"px) and (max-width: ")+(K+"px)");_.C$(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(K+"px)");
_.C$(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+F+"px)"},
calculateCurrentPlayerSize_:function(){var K=_.C$(this.hostElement).querySelector("#miniplayer-bar").firstChild;return K&&K.active||this.theater||_.S("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.q4(NaN,NaN):_.OJ(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.OJ(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.ik(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var K=this;this.onWindowResized_(_.qD());_.S("browse_skeleton_removal_on_watch_killswitch")||_.RU("IS_SHELL_LOAD")&&_.Mek();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var X=_.te(this);X.addEventListener("yt-player-updated",_.Pc(this,this.onPlayerUpdated_));X.getPlayerPromise().then(function(F){K.playerApiReady_(F)});
_.S("kevlar_watch_flexy_playlist_manager")||(X=_.i9().resolve(_.AW),_.S("kevlar_watch_observe_playlist_navigations_killswitch")&&X.addEventListener("yt-navigate",_.Pc(this,this.onYtNavigate_)),X.setPlaylistComponent(_.C$(this.hostElement).querySelector("#playlist")),X.addEventListener("yt-playlist-data-updated",_.Pc(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.A9.addLowPriorityJob(function(){_.iX(K.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.te(this).removeEventListener("yt-player-updated",_.Pc(this,this.onPlayerUpdated_));if(!_.S("kevlar_watch_flexy_playlist_manager")){var K=_.i9().resolve(_.AW);_.S("kevlar_watch_observe_playlist_navigations_killswitch")&&K.removeEventListener("yt-navigate",_.Pc(this,this.onYtNavigate_));K.cancelVideoSkip();K.removeEventListener("yt-playlist-data-updated",_.Pc(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.S("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.iX(this.hostElement,"yt-autonav-pause-player",!1);K=_.Ec();_.S("kevlar_exit_fullscreen_leaving_watch")&&K&&_.bX(K)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(K){this.player&&this.player.updateVideoData({rvs:K.rvs})},
getPageContents:function(K){return K&&K.contents&&K.contents.twoColumnWatchNextResults&&K.contents.twoColumnWatchNextResults.results&&K.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(K){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",K)},
onRetrieveLocation_:function(K,X){X.hasComments?X.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):X.locationRetrieved("/related_ajax",void 0);K.stopPropagation()},
onSubscriptionChanged_:function(K,X){this.player&&(X?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.AC("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.C$(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.C$(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(K){this.player=K;this.setPlayerState(K.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.S("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.S("kevlar_unified_player")||_.S("kevlar_player_new_bootstrap_adoption"))&&_.GX()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(K,X){X=X===void 0?!0:X;_.Ec()&&_.S("external_fullscreen")&&_.bX(document.documentElement);this.theaterRequested_=K;X&&_.Zr("wide",K?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.S("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.xr(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.iX(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(K){_.Wu(K,typeof this.player),this.player&&_.Wu(K,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var K;((K=this.player)==null?0:K.isFullscreen())?this.player.toggleFullscreen():_.xr(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(K,X){return this.loading?X:!!Object.keys(K).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(K){if(K){K=_.D(K);for(var X=K.next();!X.done;X=K.next())X=X.value,X.youThereRenderer&&_.y8V(this.youThereManager_,X.youThereRenderer)}},
setPlaylistData_:function(K){return K||{}},
userEngagementConfigDataChanged_:function(K){if(K)if(K.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var X=this.youThereManager_;_.xg()<K.lowEngagementThresholdMs||_.RCk(X,!0)}else K.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.xr(this.hostElement,"yt-autonav-pause-user-engagement",[K])},
isPlayerUnavailable_:function(K,X,F){return!!K&&!this.isVideoPlayable_(K,F)&&!X},
getPlayerOverlays_:function(K){return(K==null?void 0:K.playerOverlays)||null},
isVideoPlayable_:function(K,X){if(!K)return!1;var F=K.status==="OK"||K.status==="LIVE_STREAM_OFFLINE",P=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",K)||this.get("errorScreen.ypcTrailerRenderer",K);K=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",K);var H;X=X==null?void 0:(H=X.playerOverlayRenderer)==null?void 0:H.gatedActionsOverlayRenderer;return!!F||!!P||!!K||!!X},
hasWatchNextResponseErrorRenderer:function(K){var X=this.getPageContents(K),F,P,H,f,u;return!(K==null?0:(F=K.contents)==null?0:(P=F.twoColumnWatchNextResults)==null?0:P.secondaryResults)&&!!((H=X[0])==null?0:(f=H.itemSectionRenderer)==null?0:(u=f.contents[0])==null?0:u.backgroundPromoRenderer)},
isLiveStreamOffline_:function(K){return K?K.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(K,X,F){var P=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",X),H=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];H=_.S("web_no_skip_video_on_verification_checks")?(K==null?void 0:K.status)&&H.includes(K.status):K&&K.status==="AGE_CHECK_REQUIRED";var f=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",K);f==void 0&&(f=!0);!F||this.isVideoPlayable_(K,this.getPlayerOverlays_(X))||
P||H||!f||_.i9().resolve(_.AW).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.c8v()},
onPlayerFeedbackStartRequest_:function(K){_.xr(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:K}])},
onPlayerFeedbackArticleRequest_:function(K){_.xr(this.hostElement,"yt-help-dialog-requested",[K])},
onPlayerYpcContentRequest_:function(){var K,X,F,P,H,f,u,J,Z=((K=this.data)==null?NaN:(X=K.contents)==null?NaN:(F=X.twoColumnWatchNextResults)==null?NaN:(P=F.secondaryResults)==null?NaN:(H=P.secondaryResults)==null?NaN:(f=H.offerModule)==null?NaN:(u=f.tvfilmOfferModuleRenderer)==null?NaN:(J=u.actionButtons)==null?NaN:J.length)-1;K=[".offerButton.buttonRenderer.",".actionButtons."+(Z>=0?Z:0)+".buttonRenderer."];X=_.D(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(F=X.next();!F.done;F=X.next())for(F=F.value,P=_.D(K),H=P.next();!H.done;H=P.next())if(H="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+F+H.value,H=this.get(H+"navigationEndpoint",this.data)||this.get(H+"serviceEndpoint",this.data)||this.get(H+"command",this.data)){_.sP(H,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(K){_.iX(this.hostElement,"yt-autonav-pause-player",K)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(K){K()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(K){switch(K){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(K){switch(K){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.iX(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(K)},
setPlayerState:function(K){_.aA().dispatch(_.Y6C(K))},
onPlayerSubscribe_:function(K){_.xr(this.hostElement,"yt-player-subscribe",[K])},
onPlayerUnsubscribe_:function(K){_.xr(this.hostElement,"yt-player-unsubscribe",[K])},
onPlayerAdYtShowToast_:function(K){_.xr(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:K.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(K){if(K)return K},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(K){return!_.S("web_watch_move_summary_to_sd")&&!!K},
computeWatchMetadataRefresh:function(){return _.S("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var K,X,F,P;this.watchNextSecondaryResults=(K=this.data)==null?void 0:(X=K.contents)==null?void 0:(F=X.twoColumnWatchNextResults)==null?void 0:(P=F.secondaryResults)==null?void 0:P.secondaryResults}},
setRichGridRendererData:function(K){this.richGridRendererData=K},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var K,X=(K=this.data)==null?void 0:K.engagementPanels;if(X==null?0:X.length){K=null;X=_.D(X);for(var F=X.next();!F.done;F=X.next()){F=F.value;var P=void 0;if(((P=F.engagementPanelSectionListRenderer)==null?void 0:P.targetId)==="engagement-panel-structured-description"){K=F;break}}var H,f,u;K=(H=K)==null?void 0:(f=H.engagementPanelSectionListRenderer)==null?void 0:(u=f.content)==null?void 0:u.structuredDescriptionContentRenderer;if(K==null?0:K.items){H=
[];f=_.D(K.items);for(u=f.next();!u.done;u=f.next()){u=u.value;if(!_.S("sd_horizontal_list_show_nav_killswitch")){var J=P=F=X=K=void 0,Z=void 0,M=(K=u.horizontalCardListRenderer)==null?void 0:(X=K.header)==null?void 0:(F=X.richListHeaderRenderer)==null?void 0:(P=F.navigationButton)==null?void 0:(J=P.buttonRenderer)==null?void 0:(Z=J.command)==null?void 0:Z.commandExecutorCommand;M&&M.commands&&(M.commands=M.commands.filter(function(n){return!_.T(n,_.A$o)}))}u.expandableVideoDescriptionBodyRenderer||
u.videoDescriptionHeaderRenderer||H.push(u)}return{items:H}}}},
constructWarning_:function(K){return{text:_.GS(K),type:"WARNING"}},
isPlaShelfEnabled_:function(K){if((this.get("adPlacements",K)||[]).length)return!0;K=this.get("playerAds",K)||[];return!(!K.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",K[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var K=this;_.iX(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var X=this.getScrollTop()>0;this.gestures_&&(X?this.gestures_.detach():this.gestures_.attach());X!==this.showFullerscreenEdu_&&_.S("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=X,_.te(this).getPlayerPromise().then(function(F){F.updateFullerscreenEduButtonVisibility(K.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.iX(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var K=this;this.commentsReady=!1;_.A9.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.cu(_.A9,function(){K.setComments_()},1E3)},
setComments_:function(){if(!_.S("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Ac("cmi");_.A9.cancelJob(this.setCommentsJobId_);var K=this.getPageContents(this.data);if(K&&K.length){K=_.D(K);for(var X=K.next();!X.done;X=K.next())if(X=X.value,this.get("itemSectionRenderer.sectionIdentifier",X)==="comment-item-section"){this.comments=X.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.iX(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.S("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.S("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Ac("cmc")},
doRemoveComments_:function(){this.comments={};_.S("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.A9.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.A9.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(K,X){var F=_.T(X.endpoint,_.vg);F&&(!(X=this.get("data.currentVideoEndpoint.watchEndpoint"))||F.videoId!==X.videoId||F.playlistId&&F.playlistId!==X.playlistId||F.index!==void 0&&F.index!==X.index||typeof F.startTimeSeconds!=="number"||(K.stopPropagation(),this.setScrollTop(0),_.te(this).getPlayerPromise().then(function(P){var H=F.startTimeSeconds;P.seekTo(H);P.wakeUpControls();H<P.getDuration()&&P.playVideo()})))},
updatePlayerStartTime_:function(){var K=_.Fxd();"t"in K&&(K=_.nBs(K.t),this.player.seekTo(K,!0))},
updateTitleFromWatchNext:function(K){K=this.getPageContents(K);var X,F;(K=_.lj(K==null?void 0:(X=K[0])==null?void 0:(F=X.videoPrimaryInfoRenderer)==null?void 0:F.title))&&_.iX(this.hostElement,"yt-update-title",K)},
updateTitle_:function(K){K=this.get("videoDetails.title",K)||"";_.iX(this.hostElement,"yt-update-title",K)},
syncWithRemoteVideo_:function(K,X,F){if(this.active&&this.player){var P=this.player.getVideoData();if(P.video_id===F&&(F=P.list,_.S("polymer_enable_mdx_queue")&&F&&F.startsWith("RQ")&&(F=void 0),P.video_id!==K||F!=X)){var H;_.S("kevlar_player_watch_endpoint_navigation")?H=_.Ws4(_.Zno(K,X)):H=this.buildWatchEndpoint_(K,X);_.iX(this.hostElement,"yt-navigate",{endpoint:H,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(K,X,F){return _.Es(K,X,F)},
initDclkstatus_:function(){_.MV8()},
attachWatchPageSkeleton_:function(){var K=document.querySelector("#watch-page-skeleton");if(K){var X=K.querySelector("#primary-info"),F=K.querySelector("#secondary-info"),P=K.querySelector("#related");X&&_.C$(this.hostElement).querySelector("#info-skeleton").appendChild(X);F&&_.C$(this.hostElement).querySelector("#meta-skeleton").appendChild(F);P&&(_.C$(this.hostElement).querySelector("#related-skeleton").appendChild(P),this.watchNextSkeletonEl_=P);_.c_(K)}},
handlePlayerUpdated_:function(){_.te(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(K,X){if(this.watchNextSkeletonEl_&&typeof X!=="undefined"){var F=this.watchNextSkeletonEl_.children,P=K&&K.indexSplices.length?K.indexSplices[0].index:0;K=Math.min(this.watchNextShownItems.length,F.length);X||(P=0,K=F.length);for(X=P;X<K;X++)F[X].classList.add("hidden")}},
onPlayerFullscreenChange_:function(K){_.S("external_fullscreen")||_.xr(this.hostElement,"yt-player-fullscreen",[K.fullscreen])},
onFullscreenChange_:function(K){this.fullscreen=K;this.gestures_&&this.gestures_.update(this.fullscreen);var X=_.te(this);X.getPlayerPromise().then(function(F){F.setFauxFullscreen(!!_.Ec())});
this.updateFullBleedElementLocations();K&&(X.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(K,X){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!X},
computeIsDonationShelfCollapsed_:function(K){return K},
computeShouldShowMerchShelf:function(K,X){return X&&!!K},
computeResponseHasComments:function(K){var X,F,P,H,f;return!!(K==null?0:(X=K.contents)==null?0:(F=X.twoColumnWatchNextResults)==null?0:(P=F.results)==null?0:(H=P.results)==null?0:(f=H.contents)==null?0:f.some(function(u){var J;return(u==null?void 0:(J=u.itemSectionRenderer)==null?void 0:J.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(K,X){this.responseHasComments=this.computeResponseHasComments(this.data);return!!K&&!!Object.keys(K).length&&!X},
identity:_.vy,onWindowResized_:function(K){this.windowSize_=K;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.S("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(K){var X=this;K&&K.type!=="dataloaded"&&K.type!=="dataupdated"||_.te(this).getPlayerPromise().then(function(F){var P=F.getPlayerState();P!==5&&P!==0&&(F=1/F.getVideoAspectRatio(),X.videoHeightToWidthRatio_!==F&&(X.videoHeightToWidthRatio_=F))})},
schedulePlayerSizeUpdate_:function(K){var X=this,F=_.S("kevlar_watch_while_v2")||_.S("web_watch_pip"),P=function(){if(X.watchMetadata){var H,f;(f=(H=X.watchMetadata).resize)==null||f.call(H)}_.te(X).getPlayerPromise().then(function(u){if(_.S("kevlar_set_internal_player_size")){if(!F||!X.isMiniplayerActive()){var J=X.calculateCurrentPlayerSize_();u.setInternalSize(J.width,J.height)}}else u.setSize(NaN,NaN);_.S("kevlar_watch_while")&&X.updateWatchWhileScrollThreshold_()})};
K?P():_.QW(_.A9,P)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(K){this.set("data.survey",K.detail)},
onYtShowSurveyCommand_:function(K){this.set("data.survey",_.T(K,_.r8t).survey)},
onDownloadedVideoDeleted:function(K){var X=this,F,P;return _.q(function(H){if(H.nextAddress==1){if(!X.active||(F=X.playerData)==null||!F.offlineState||X.videoId!==K)return H.return();(P=X.player)==null||P.stopVideo();_.zC().navigatingAwayFromWatchDeletedVideo=!0;_.sP(_.Baq,X.hostElement);return _.Y(H,_.zC().navigationFinishPromise,2)}_.zC().navigatingAwayFromWatchDeletedVideo=!1;_.JT(H)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var K;this.theater?K=_.rH(.5625*this.windowSize_.width,480,this.windowSize_.height-185):K=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==K&&(this.watchWhileScrollThreshold_=K,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var K=_.C$(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&K){var X=this.windowSize_.height>=624,F=this.active?this.getScrollTop():0;!K.active&&X&&F>=this.watchWhileScrollThreshold_?(K.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):K.active&&(!X||F<this.watchWhileScrollThreshold_&&!_.Ec())&&(K.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(K,X){if(K!==!0||X!==void 0){K=!_.S("live_chat_over_engagement_panels");X=_.C$(this.hostElement).querySelector("#chat-container");var F=_.C$(this.hostElement).querySelector("#plj-sidebar"),P=_.C$(this.hostElement).querySelector("#panels"),H=_.C$(this.hostElement).querySelector("#plj-panels"),f=_.C$(this.hostElement).querySelector("#plj-playlist"),u=_.C$(this.hostElement).querySelector("#alerts"),J=_.C$(this.hostElement).querySelector("#playlist"),Z=_.C$(this.hostElement).querySelector("#related"),
M=_.C$(this.hostElement).querySelector("#donation-shelf"),n=_.C$(this.hostElement).querySelector("#comments");this.isTwoColumns_?(u=_.C$(this.hostElement).querySelector("#secondary-inner"),u.appendChild(F),F.appendChild(f),f.appendChild(J),F.appendChild(H),K&&u.appendChild(P),_.S("web_watch_theater_chat")||u.appendChild(X),K||u.appendChild(P),u.appendChild(M),u.appendChild(Z)):(K&&_.pb(P,u),_.pb(J,u),_.S("web_watch_theater_chat")||_.pb(X,u),K||_.pb(P,u),_.pb(M,u),n&&(H&&_.pb(H,n),_.pb(Z,n)));_.S("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.S("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.S("web_watch_theater_chat")){var K=_.C$(this.hostElement).querySelector("#chat-container"),X=this.theater&&!this.fullscreen||_.S("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&X?_.S("web_watch_theater_chat_beside_player")?(X=_.C$(this.hostElement).querySelector("#panels-full-bleed-container"),(K==null?void 0:K.parentElement)!==X&&X.append(K),this.panelsBesidePlayer=!0):_.S("web_watch_theater_fixed_chat")&&
(X=_.C$(this.hostElement).querySelector("#columns"),(K==null?void 0:K.parentElement)!==X&&X.append(K),this.fixedPanels=!0):(_.S("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.S("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),X=_.C$(this.hostElement).querySelector("#playlist"),K&&X?_.Bz(K,X):_.yy(new _.nG("Missing element when updating chat location",{"chatContainer defined":!!K,"playlist defined":!!X})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(K,X){return _.S("sw_metadata_vis_toggle_ks")?!0:!!K||!!X},
computeForceDarkPanelTheme:function(K){return _.S("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&K:!1},
safeUpdateStyles:function(K){try{_.XU(this.hostElement,K)}catch(X){_.yy(X)}},
videoHeightToWidthRatioChanged_:function(K,X){X&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.S("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(K){this.videoHeightToWidthRatio_=1/K},
computeIsVerticalVideo_:function(K){return K>=1},
computeIsFourThreeToSixteenNineVideo_:function(K){return K<=.7501&&K>=.5624},
computeIsExtraWideVideo_:function(K){return K<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.te(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.te(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.UGs(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(K){var X=_.KE(K)||0;_.kl(K,X+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var K=_.KE("yt-fullerscreen-edu-button-click-count")||0,X=_.KE("yt-fullerscreen-edu-button-shown-count")||0,F=_.kU("external_fullscreen_button_shown_threshold"),P=K>=_.kU("external_fullscreen_button_click_threshold")||X>=F;_.te(this).getPlayerPromise().then(function(H){H.updateFullerscreenEduButtonSubtleModeState(P)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(K,X){return X},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.i9().resolve(_.AW).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var K=this;this.panelMaxHeightUpdateJob_&&_.A9.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.A9.addLowPriorityJob(function(){K.panelMaxHeightUpdateJob_=0;var X;!K.isTwoColumns_||K.theater||K.fullscreen?X=460:X=K.calculateNormalPlayerSize_().height;var F=X+"px";_.S("live_chat_taller_height")&&!K.theater&&(F="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.S("live_chat_medium_height")&&
!K.theater&&(F="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.S("live_chat_scaled_height")&&!K.theater&&(F="calc(100vh - var(--ytd-toolbar-height) - 238px)");K.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":X+"px","--ytd-watch-flexy-chat-max-height":F,"--ytd-watch-flexy-structured-description-max-height":X+"px","--ytd-watch-flexy-comments-panel-max-height":X+"px","--ytd-comments-engagement-panel-content-height":X+"px"})})},
onYtShowEngagementPanelScrimAction_:function(K){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",K)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.X0(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(K){var X=_.C$(this.hostElement).querySelector("#engagement-panel-scrim");K?X.addEventListener("tap",_.Pc(this,this.onEngagementPanelScrimClick_)):X.removeEventListener("tap",_.Pc(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(K){if(this.hostElement.contains(K)&&!this.scrollToAnimation_.isAnimating()){var X=K.offsetTop-24;K=K.offsetTop+K.offsetHeight+24;var F=this.getPageScrollingElement(),P=this.getScrollTop(),H=P+F.clientHeight-56;if(X<P+56)X-=56;else if(K>H)X=K-F.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,X),500)}},
onYtSignalActionScrollToComments:function(){var K=this.hostElement.querySelector("#comments");if(K&&!this.scrollToAnimation_.isAnimating()){K=K.offsetTop-56-24;if(_.S("kevlar_comment_teaser_scroll_to_midpoint")&&(K-=_.JE().height/3,K<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,K),500)}},
onYtEngagementPanelVisibleChanged:function(K,X,F){this.active&&this.trackEngagementPanelVisibility&&!_.Lxo.includes(F)&&(X==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(F),X!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&X!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(F),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(K){return K?"":"watch-active-metadata"},
computeNewMetadataClass:function(K){return K?"watch-active-metadata":""},
computeFullBleedPlayer:function(K,X){return K||X},
computeDefaultLayout:function(K){return!K},
computeDefaultTwoColumnLayout:function(K,X){return!K&&X},
computeWatchWhilePanelsActive:function(K,X){return K||X},
computeNoBorderOnChat:function(K){return _.S("web_watch_theater_chat_no_border")&&K},
computeLiveChatPresentAndExpanded:function(K,X){return K&&!X},
computePanelExpanded:function(K,X,F){return K||X||F},
onChangeMarkersVisibility:function(K){_.te(this).getPlayerPromise().then(function(X){var F;(F=X.changeMarkerVisibility)==null||F.call(X,_.T(K,_.Vp).isVisible||!1,_.T(K,_.Vp).entityKeys||[],_.T(K,_.Vp).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(K){this.liveChatCollapsed=K.detail;_.aA().dispatch(_.oB1(K.detail))},
provideRenderingData:function(K,X){switch(K){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=X;break;case "PRIMARY_INFO":_.S("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=X);this.videoPrimaryInfoRendererValue=X==null?void 0:X.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.S("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=X);this.videoSecondaryInfoRendererValue=X==null?void 0:X.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
X;break;case "CLARIFICATION":this.clarifyBoxValue=X;break;case "LIVE_CHAT":this.conversationBar=X;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=X;break;case "PLAYLIST":this.externalPlaylistData_=X!=null?X:{};break;case "MERCH_SHELF":this.merchShelfValue=X==null?void 0:X.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=X;break;case "OFFER_MODULE":this.offerModule=X;break;case "LIMITED_STATE":this.limitedStateValue=X;break;case "DONATION_SHELF":this.donation=X;break;
case "ALERTS":this.alertsValue=X;break;case "COMMENTS":this.comments=X;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=X;break;case "ENGAGEMENT_PANELS":this.engagementPanels=X;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=X;break;case "RICH_GRID_RENDERER":this.richGridRendererData=X;break;case "EXPANDABLE_METADATA":this.expandableMetadata=X;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=X}},
toggleCinematicsActive:function(K){this.cinematicsActive=K},
isMiniplayerActive:function(){return _.i9().resolve(_.Wj).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(K){return kj8.map(function(X){return K.find(function(F){var P;return(F==null?void 0:(P=F.engagementPanelSectionListRenderer)==null?void 0:P.targetId)===X})}).filter(function(X){return X!==void 0})},
getNonLearningJourneyEngagementPanels:function(K){return K.filter(function(X){var F;return!kj8.includes((X==null?void 0:(F=X.engagementPanelSectionListRenderer)==null?void 0:F.targetId)||"")})}}];var Kes;var kZ=function(){var K=_.G.apply(this,arguments)||this;K.flexy=!0;K.learningJourney=!0;K.roundedInfoPanel=!0;K.viewTransitionEnabled=_.S("enable_player_resize_transition");K.smallerChatMinHeight=_.S("live_chat_smaller_min_height");K.cinematicTheaterMode=_.S("web_cinematic_theater_mode");K.transparentTheaterMode=_.S("web_transparent_theater_mode");K.cinematicFullscreen=_.S("web_cinematic_fullscreen");K.useLargerMaxPlayerValue=_.S("kevlar_flexy_use_larger_player_value");K.cinematicFullscreenV2=_.S("web_cinematic_fullscreen_v2");
K.isDarkTheme=document.documentElement.hasAttribute("dark");K.theaterLargerPlayer=_.S("web_watch_theater_larger_player");K.defaultCollapsePlaylist=_.S("web_watch_default_collapse_playlist");return K};
_.r(kZ,_.G);_.z=kZ.prototype;_.z.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.z.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.z.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.z.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.z.ready=function(){var K=this,X=function(){K.onColumnScroll()};
this.primary.addEventListener("scroll",X);this.secondary.addEventListener("scroll",X)};
_.z.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.z.updateIsTwoColumnsFromBinding=function(K){_.S("web_watch_update_narrow_width_killswitch")||_.aA().dispatch(_.BO1(!K.detail.value));this.ytdWatchBehavior.isTwoColumns_=K.detail.value};
_.z.updateFlexySmallWindowFromBinding=function(K){this.ytdWatchBehavior.flexySmallWindow_=K.detail.value};
_.z.updateFlexyLargeWindowFromBinding=function(K){this.ytdWatchBehavior.flexyLargeWindow_=K.detail.value};
_.z.updateWatchWhileWindowSizeSufficientFromBinding=function(K){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=K.detail.value};
_.z.updateWatchNextCanShowMoreFromBinding=function(K){this.ytdWatchBehavior.watchNextCanShowMore=K.detail.value};
_.z.updateShownItemsFromBinding=function(K){K.detail.path?this.set(K.detail.path,K.detail.value):this.ytdWatchBehavior.watchNextShownItems=K.detail.value};
_.z.getElement=function(K){switch(K){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20503_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20503_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Oi.Object.defineProperties(kZ.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)==null||!K.pageVisualEffects)return!1;for(var X=0;X<this.data.pageVisualEffects.length;X++)if(K=_.T(this.data.pageVisualEffects[X],_.Lh))return X=void 0,(X=K.config)==null?void 0:X.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.learningJourneyEngagementPanels)==null?void 0:K.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var K,X=(K=this.learningJourneyEngagementPanels)==null?void 0:K.find(function(B){var L;return(B==null?void 0:(L=B.engagementPanelSectionListRenderer)==null?void 0:L.panelIdentifier)==="learning-journey-engagement-panel"});
if(X){var F,P,H,f,u,J,Z,M,n;if(K=(M=((Z=(u=((f=X==null?void 0:(F=X.engagementPanelSectionListRenderer)==null?void 0:(P=F.content)==null?void 0:(H=P.sectionListRenderer)==null?void 0:H.contents)!=null?f:[])[0])==null?void 0:(J=u.itemSectionRenderer)==null?void 0:J.contents)!=null?Z:[])[0])==null?void 0:(n=M.accordionViewModel)==null?void 0:n.onTitleTap){var c=_.w$(K);if(c)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.Hn.instance.resolveCommand(c)}}}}}}});
_.Oi.Object.defineProperties(kZ,{template:{configurable:!0,enumerable:!0,get:function(){if(Kes===void 0){var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n          <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n            <yt-button-shape data="[[backButtonData]]" hidden="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n          </yt-button-shape></div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);Kes=K}K=Kes;return K}}});
kZ.prototype.updateMiniplayerIsActiveValue=kZ.prototype.updateMiniplayerIsActiveValue;kZ.prototype.updateScrollTopValue=kZ.prototype.updateScrollTopValue;kZ.prototype.updateFullscreenValue=kZ.prototype.updateFullscreenValue;kZ.prototype.updateTheaterValue=kZ.prototype.updateTheaterValue;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],kZ.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],kZ.prototype,"ytComponentBehavior",void 0);
_.O([_.W(I75.YtdLearningJourneyWatchBehavior),_.g("design:type",Object)],kZ.prototype,"ytdWatchBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],kZ.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],kZ.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],kZ.prototype,"playerData",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],kZ.prototype,"flexy",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],kZ.prototype,"learningJourney",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],kZ.prototype,"roundedInfoPanel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],kZ.prototype,"viewTransitionEnabled",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],kZ.prototype,"smallerChatMinHeight",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],kZ.prototype,"cinematicTheaterMode",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],kZ.prototype,"transparentTheaterMode",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],kZ.prototype,"cinematicFullscreen",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],kZ.prototype,"useLargerMaxPlayerValue",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],kZ.prototype,"cinematicFullscreenV2",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],kZ.prototype,"isDarkTheme",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],kZ.prototype,"theaterLargerPlayer",void 0);_.O([_.h(),_.g("design:type",Object)],kZ.prototype,"defaultCollapsePlaylist",void 0);_.O([_.h({selector:_.wV}),_.g("design:type",Object)],kZ.prototype,"theaterValue",void 0);
_.O([_.h({selector:_.yW}),_.g("design:type",Object)],kZ.prototype,"fullscreenValue",void 0);_.O([_.h({selector:_.AG}),_.g("design:type",Object)],kZ.prototype,"scrollTopValue",void 0);_.O([_.h({selector:_.LI}),_.g("design:type",Object)],kZ.prototype,"miniplayerIsActiveValue",void 0);_.O([_.fa("#ytd-plj-player"),_.g("design:type",HTMLElement)],kZ.prototype,"ytdPlayer",void 0);_.O([_.fa("#playlist"),_.g("design:type",HTMLElement)],kZ.prototype,"JSC$20503_ytdPlaylistPanelRenderer",void 0);
_.O([_.gh("ytd-comments"),_.g("design:type",HTMLElement)],kZ.prototype,"ytdComments",void 0);_.O([_.fa("#primary"),_.g("design:type",HTMLElement)],kZ.prototype,"primary",void 0);_.O([_.fa("#secondary"),_.g("design:type",HTMLElement)],kZ.prototype,"secondary",void 0);_.O([_.fa("#player-container"),_.g("design:type",HTMLElement)],kZ.prototype,"playerContainer",void 0);_.O([_.fa("#cinematics"),_.g("design:type",HTMLElement)],kZ.prototype,"JSC$20503_cinematics",void 0);
_.O([_.so("theaterValue"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],kZ.prototype,"updateTheaterValue",null);_.O([_.so("fullscreenValue"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],kZ.prototype,"updateFullscreenValue",null);_.O([_.so("scrollTopValue"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],kZ.prototype,"updateScrollTopValue",null);
_.O([_.so("miniplayerIsActiveValue"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],kZ.prototype,"updateMiniplayerIsActiveValue",null);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],kZ.prototype,"cinematicLightTheme",null);_.O([_.h({reflectToAttribute:!0}),_.U("learningJourneyEngagementPanels"),_.g("design:type",Object),_.g("design:paramtypes",[])],kZ.prototype,"hasLearningJourneyPanels",null);
_.O([_.U("learningJourneyEngagementPanels"),_.g("design:type",Object),_.g("design:paramtypes",[])],kZ.prototype,"backButtonData",null);kZ=_.O([_.v({is:"ytd-watch-learning-journey"})],kZ);_.NA.registerService(_.l3d,kZ);
_.d0();
}catch(e){_._DumpException(e)}
try{
_.W_("Tm0L3c");
var $Gd;var Ont;var VV8=function(){return _.G.apply(this,arguments)||this};
_.r(VV8,_.G);VV8=_.O([_.v({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],VV8);
_.t(VV8,"ytd-ghost-comments-renderer",function(){if(Ont===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);Ont=K}K=Ont;return K},{mode:1});var gB1;var EBs=function(){return _.G.apply(this,arguments)||this};
_.r(EBs,_.G);EBs=_.O([_.v({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],EBs);
_.t(EBs,"ytd-ghost-watch-metadata-renderer",function(){if(gB1===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);gB1=K}K=gB1;return K},{mode:1});var IS=function(){var K=_.G.apply(this,arguments)||this;K.ghostGridRenderer={rows:6};K.roundedInfoPanel=!0;K.hideOfferModules=!0;K.smallerChatMinHeight=_.S("live_chat_smaller_min_height");K.cinematicTheaterMode=_.S("web_cinematic_theater_mode");K.transparentTheaterMode=_.S("web_transparent_theater_mode");K.darkerPanels=_.S("web_watch_darker_panels");K.cinematicFullscreen=_.S("web_cinematic_fullscreen");K.cinematicFullscreenV2=_.S("web_cinematic_fullscreen_v2");K.isDarkTheme=document.documentElement.hasAttribute("dark");
return K};
_.r(IS,_.G);_.z=IS.prototype;_.z.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.z.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.z.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.z.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.z.ready=function(){var K=this,X=function(){K.onColumnScroll()};
this.primary.addEventListener("scroll",X);this.secondary.addEventListener("scroll",X)};
_.z.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.z.updateIsTwoColumnsFromBinding=function(K){this.ytdWatchBehavior.isTwoColumns_=K.detail.value};
_.z.updateFlexySmallWindowFromBinding=function(K){this.ytdWatchBehavior.flexySmallWindow_=K.detail.value};
_.z.updateFlexyLargeWindowFromBinding=function(K){this.ytdWatchBehavior.flexyLargeWindow_=K.detail.value};
_.z.updateWatchWhileWindowSizeSufficientFromBinding=function(K){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=K.detail.value};
_.z.updateWatchNextCanShowMoreFromBinding=function(K){this.ytdWatchBehavior.watchNextCanShowMore=K.detail.value};
_.z.updateShownItemsFromBinding=function(K){_.S("swatcheroo_direct_use_rich_grid")||(K.detail.path?this.set(K.detail.path,K.detail.value):this.ytdWatchBehavior.watchNextShownItems=K.detail.value)};
_.z.getElement=function(K){switch(K){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20491_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20491_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Oi.Object.defineProperties(IS.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)==null||!K.pageVisualEffects)return!1;for(var X=0;X<this.data.pageVisualEffects.length;X++)if(K=_.T(this.data.pageVisualEffects[X],_.Lh))return X=void 0,(X=K.config)==null?void 0:X.enableInLightTheme;return!1}}});
IS.prototype.updateMiniplayerIsActiveValue=IS.prototype.updateMiniplayerIsActiveValue;IS.prototype.updateScrollTopValue=IS.prototype.updateScrollTopValue;IS.prototype.updateFullscreenValue=IS.prototype.updateFullscreenValue;IS.prototype.updateTheaterValue=IS.prototype.updateTheaterValue;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],IS.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],IS.prototype,"ytComponentBehavior",void 0);
_.O([_.W(_.a7t.YtdWatchBehavior),_.g("design:type",Object)],IS.prototype,"ytdWatchBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],IS.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],IS.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],IS.prototype,"ghostGridRenderer",void 0);_.O([_.h(),_.g("design:type",Object)],IS.prototype,"playerData",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],IS.prototype,"roundedInfoPanel",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],IS.prototype,"hideOfferModules",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],IS.prototype,"smallerChatMinHeight",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],IS.prototype,"cinematicTheaterMode",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],IS.prototype,"transparentTheaterMode",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],IS.prototype,"darkerPanels",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],IS.prototype,"cinematicFullscreen",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],IS.prototype,"cinematicFullscreenV2",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],IS.prototype,"isDarkTheme",void 0);_.O([_.h({selector:_.wV}),_.g("design:type",Object)],IS.prototype,"theaterValue",void 0);
_.O([_.h({selector:_.yW}),_.g("design:type",Object)],IS.prototype,"fullscreenValue",void 0);_.O([_.h({selector:_.AG}),_.g("design:type",Object)],IS.prototype,"scrollTopValue",void 0);_.O([_.h({selector:_.LI}),_.g("design:type",Object)],IS.prototype,"miniplayerIsActiveValue",void 0);_.O([_.fa("#ytd-player"),_.g("design:type",HTMLElement)],IS.prototype,"ytdPlayer",void 0);_.O([_.fa("#playlist"),_.g("design:type",HTMLElement)],IS.prototype,"JSC$20491_ytdPlaylistPanelRenderer",void 0);
_.O([_.fa("#ytd-comments"),_.g("design:type",HTMLElement)],IS.prototype,"ytdComments",void 0);_.O([_.fa("#primary"),_.g("design:type",HTMLElement)],IS.prototype,"primary",void 0);_.O([_.fa("#secondary"),_.g("design:type",HTMLElement)],IS.prototype,"secondary",void 0);_.O([_.fa("#player-container"),_.g("design:type",HTMLElement)],IS.prototype,"playerContainer",void 0);_.O([_.fa("#cinematics"),_.g("design:type",HTMLElement)],IS.prototype,"JSC$20491_cinematics",void 0);
_.O([_.so("theaterValue"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],IS.prototype,"updateTheaterValue",null);_.O([_.so("fullscreenValue"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],IS.prototype,"updateFullscreenValue",null);_.O([_.so("scrollTopValue"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],IS.prototype,"updateScrollTopValue",null);
_.O([_.so("miniplayerIsActiveValue"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],IS.prototype,"updateMiniplayerIsActiveValue",null);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],IS.prototype,"cinematicLightTheme",null);
_.t(IS,"ytd-watch-grid",function(){if($Gd===void 0){var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n          <ytd-rich-grid-renderer continuation-show-button="[[showRichGridContinuationButton]]" data="[[richGridRendererData]]" disable-upgrade$="[[!richGridRendererData]]" hidden="[[!richGridRendererData]]" hide-chips-bar="" is-watch-default-layout="[[defaultTwoColumnLayout]]" item-max-width="[[richItemMaxWidth]]" item-min-width="[[richItemMinWidth]]" reduced-bottom-margin="" row-reduced-horizontal-margin="" transparent-background-chips-bar="" class="style-scope ytd-watch-grid">\n          </ytd-rich-grid-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[richGridRendererData]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);$Gd=K}K=$Gd;return K},{mode:2});_.NA.registerService(_.GR3,IS);
_.d0();
}catch(e){_._DumpException(e)}
try{
_.W_("CF909");
var tV8;var xZ=function(){var K=_.G.apply(this,arguments)||this;K.flexy=!0;K.roundedInfoPanel=!0;K.viewTransitionEnabled=_.S("enable_player_resize_transition");K.smallerChatMinHeight=_.S("live_chat_smaller_min_height");K.cinematicTheaterMode=_.S("web_cinematic_theater_mode");K.transparentTheaterMode=_.S("web_transparent_theater_mode");K.cinematicFullscreen=_.S("web_cinematic_fullscreen");K.useLargerMaxPlayerValue=_.S("kevlar_flexy_use_larger_player_value");K.cinematicFullscreenV2=_.S("web_cinematic_fullscreen_v2");
K.isDarkTheme=document.documentElement.hasAttribute("dark");K.defaultCollapsePlaylist=_.S("web_watch_default_collapse_playlist");K.retroModeReduxValue=!1;return K};
_.r(xZ,_.G);_.z=xZ.prototype;_.z.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.z.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.z.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.z.updateRetroModeReduxValue=function(){_.S("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.z.ready=function(){var K=this,X=function(){K.onColumnScroll()};
this.primary.addEventListener("scroll",X);this.secondary.addEventListener("scroll",X)};
_.z.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.z.updateIsTwoColumnsFromBinding=function(K){_.S("web_watch_update_narrow_width_killswitch")||_.aA().dispatch(_.BO1(!K.detail.value));this.ytdWatchBehavior.isTwoColumns_=K.detail.value};
_.z.updateFlexySmallWindowFromBinding=function(K){this.ytdWatchBehavior.flexySmallWindow_=K.detail.value};
_.z.updateFlexyLargeWindowFromBinding=function(K){this.ytdWatchBehavior.flexyLargeWindow_=K.detail.value};
_.z.updateWatchWhileWindowSizeSufficientFromBinding=function(K){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=K.detail.value};
_.z.updateWatchNextCanShowMoreFromBinding=function(K){this.ytdWatchBehavior.watchNextCanShowMore=K.detail.value};
_.z.updateShownItemsFromBinding=function(K){K.detail.path?this.set(K.detail.path,K.detail.value):this.ytdWatchBehavior.watchNextShownItems=K.detail.value};
_.z.getElement=function(K){switch(K){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20486_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20486_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Oi.Object.defineProperties(xZ.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)==null||!K.pageVisualEffects)return!1;for(var X=0;X<this.data.pageVisualEffects.length;X++)if(K=_.T(this.data.pageVisualEffects[X],_.Lh))return X=void 0,(X=K.config)==null?void 0:X.enableInLightTheme;return!1}}});
_.Oi.Object.defineProperties(xZ,{template:{configurable:!0,enumerable:!0,get:function(){if(tV8===void 0){var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);tV8=K}K=tV8;return K}}});
xZ.prototype.updateRetroModeReduxValue=xZ.prototype.updateRetroModeReduxValue;xZ.prototype.updateScrollTopValue=xZ.prototype.updateScrollTopValue;xZ.prototype.updateFullscreenValue=xZ.prototype.updateFullscreenValue;xZ.prototype.updateTheaterValue=xZ.prototype.updateTheaterValue;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],xZ.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],xZ.prototype,"ytComponentBehavior",void 0);
_.O([_.W(_.a7t.YtdWatchBehavior),_.g("design:type",Object)],xZ.prototype,"ytdWatchBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],xZ.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],xZ.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],xZ.prototype,"playerData",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],xZ.prototype,"flexy",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],xZ.prototype,"roundedInfoPanel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],xZ.prototype,"viewTransitionEnabled",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],xZ.prototype,"smallerChatMinHeight",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],xZ.prototype,"cinematicTheaterMode",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],xZ.prototype,"transparentTheaterMode",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],xZ.prototype,"cinematicFullscreen",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],xZ.prototype,"useLargerMaxPlayerValue",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],xZ.prototype,"cinematicFullscreenV2",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],xZ.prototype,"isDarkTheme",void 0);_.O([_.h(),_.g("design:type",Object)],xZ.prototype,"defaultCollapsePlaylist",void 0);_.O([_.h({selector:_.wV}),_.g("design:type",Object)],xZ.prototype,"theaterValue",void 0);_.O([_.h({selector:_.yW}),_.g("design:type",Object)],xZ.prototype,"fullscreenValue",void 0);_.O([_.h({selector:_.AG}),_.g("design:type",Object)],xZ.prototype,"scrollTopValue",void 0);
_.O([_.h({selector:_.LI}),_.g("design:type",Object)],xZ.prototype,"miniplayerIsActive",void 0);_.O([_.h({selector:function(K){return K.watch.isWatchRetroMode}}),
_.g("design:type",Object)],xZ.prototype,"retroModeReduxValue",void 0);_.O([_.gh("ytd-player"),_.g("design:type",HTMLElement)],xZ.prototype,"ytdPlayer",void 0);_.O([_.fa("#playlist"),_.g("design:type",HTMLElement)],xZ.prototype,"JSC$20486_ytdPlaylistPanelRenderer",void 0);_.O([_.gh("ytd-comments"),_.g("design:type",HTMLElement)],xZ.prototype,"ytdComments",void 0);_.O([_.fa("#primary"),_.g("design:type",HTMLElement)],xZ.prototype,"primary",void 0);
_.O([_.fa("#secondary"),_.g("design:type",HTMLElement)],xZ.prototype,"secondary",void 0);_.O([_.fa("#player-container"),_.g("design:type",HTMLElement)],xZ.prototype,"playerContainer",void 0);_.O([_.fa("#cinematics"),_.g("design:type",HTMLElement)],xZ.prototype,"JSC$20486_cinematics",void 0);_.O([_.so("theaterValue"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],xZ.prototype,"updateTheaterValue",null);
_.O([_.so("fullscreenValue"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],xZ.prototype,"updateFullscreenValue",null);_.O([_.so("scrollTopValue"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],xZ.prototype,"updateScrollTopValue",null);_.O([_.so("retroModeReduxValue"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],xZ.prototype,"updateRetroModeReduxValue",null);
_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],xZ.prototype,"cinematicLightTheme",null);xZ=_.O([_.v({is:"ytd-watch-flexy"})],xZ);_.NA.registerService(_.mNw,xZ);
_.d0();
}catch(e){_._DumpException(e)}
try{
_.W_("nmfa2d");
var XlV;var ti=function(){var K=_.G.apply(this,arguments)||this;K.hidden=!1;K.errorScreen=null;K.playlistData={};return K};
_.r(ti,_.G);_.z=ti.prototype;_.z.getPlayer=function(){return this.ytdPlayer};
_.z.configureRendererStamper=function(){return{singleColumnContents:{id:"single-column",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},clarificationData:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",
attributes:{"class":"watch"}}}},donationShelf:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[hasChat]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},richMetadataRowContainer:{id:"rich-metadata",mapping:{metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{fixie:!0}}}},
ticketShelf:{id:"ticket-shelf",mapping:{ticketShelfRenderer:"ytd-ticket-shelf-renderer"}},"playerData.playerAds":{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.je(["aa","eocs"])}}};
_.z.onActiveChanged=function(){_.aA().dispatch(_.Cx8(this.ytPageBehavior.active))};
_.z.playerDataChanged=function(){var K;(K=this.watchController)==null||K.setPlayerResponse(this.playerData)};
_.z.dataChanged=function(){var K;(K=this.watchController)==null||K.setWatchNextResponse(this.data)};
_.z.sizeChanged=function(){var K,X;(X=(K=this.metadata).resize)==null||X.call(K)};
_.z.attached=function(){this.watchController=new _.v4(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.z.detached=function(){_.ik(this.watchController);this.watchController=void 0};
_.z.getPlayerContainer=function(){return this.playerContainer};
_.z.getElement=function(K){switch(K){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20438_playlistPanel}};
_.z.provideRenderingData=function(K,X){switch(K){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=X;break;case "ERROR_SCREEN":this.errorScreen=X!=null?X:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=X;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=X;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=X;break;case "RICH_METADATA":this.richMetadataRowContainer=X;break;case "CLARIFICATION":this.clarificationData=X;break;case "PLAYLIST":this.playlistData=
X!=null?X:{};break;case "MERCH_SHELF":this.merchShelf=X;break;case "TICKET_SHELF":this.ticketShelf=X;break;case "LIMITED_STATE":this.limitedState=X;break;case "DONATION_SHELF":this.donationShelf=X;break;case "ALERTS":this.alerts=X}};
_.Oi.Object.defineProperties(ti.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return!this.hidden&&!!((K=this.data)==null?0:(X=K.contents)==null?0:(F=X.twoColumnWatchNextResults)==null?0:F.conversationBar)}}});
ti.prototype.sizeChanged=ti.prototype.sizeChanged;ti.prototype.dataChanged=ti.prototype.dataChanged;ti.prototype.playerDataChanged=ti.prototype.playerDataChanged;ti.prototype.onActiveChanged=ti.prototype.onActiveChanged;_.O([_.W(_.j2.YtPageBehavior),_.g("design:type",Object)],ti.prototype,"ytPageBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],ti.prototype,"ytComponentBehavior",void 0);
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ti.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],ti.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],ti.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],ti.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],ti.prototype,"playerData",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],ti.prototype,"hidden",void 0);_.O([_.fa("#ytd-player"),_.g("design:type",HTMLElement)],ti.prototype,"ytdPlayer",void 0);_.O([_.fa("#player-container"),_.g("design:type",HTMLElement)],ti.prototype,"playerContainer",void 0);_.O([_.fa("#metadata"),_.g("design:type",Object)],ti.prototype,"metadata",void 0);_.O([_.fa("#playlist"),_.g("design:type",HTMLElement)],ti.prototype,"JSC$20438_playlistPanel",void 0);
_.O([_.h({selector:_.yJv,reflectToAttribute:!0}),_.g("design:type",Object)],ti.prototype,"fixie",void 0);_.O([_.h({selector:_.wwv,reflectToAttribute:!0}),_.g("design:type",Object)],ti.prototype,"singleColumn",void 0);_.O([_.h({selector:function(K){return _.wV(K)&&!_.yW(K)},
reflectToAttribute:!0}),_.g("design:type",Object)],ti.prototype,"theater",void 0);_.O([_.h({selector:_.yW,reflectToAttribute:!0}),_.g("design:type",Object)],ti.prototype,"fullscreen",void 0);_.O([_.h({selector:_.bhd}),_.g("design:type",Object)],ti.prototype,"windowSize",void 0);_.O([_.h(),_.g("design:type",Object)],ti.prototype,"singleColumnContents",void 0);_.O([_.h(),_.g("design:type",Object)],ti.prototype,"errorScreen",void 0);_.O([_.h(),_.g("design:type",Object)],ti.prototype,"playlistData",void 0);
_.O([_.h(),_.g("design:type",Object)],ti.prototype,"videoPrimaryInfoRenderer",void 0);_.O([_.h(),_.g("design:type",Object)],ti.prototype,"videoSecondaryInfoRenderer",void 0);_.O([_.h(),_.g("design:type",Object)],ti.prototype,"richMetadataRowContainer",void 0);_.O([_.h(),_.g("design:type",Object)],ti.prototype,"clarificationData",void 0);_.O([_.h(),_.g("design:type",Object)],ti.prototype,"commentsEntryPointHeaderRenderer",void 0);_.O([_.h(),_.g("design:type",Object)],ti.prototype,"ticketShelf",void 0);
_.O([_.h(),_.g("design:type",Object)],ti.prototype,"merchShelf",void 0);_.O([_.h(),_.g("design:type",Object)],ti.prototype,"donationShelf",void 0);_.O([_.h(),_.g("design:type",Object)],ti.prototype,"limitedState",void 0);_.O([_.h(),_.g("design:type",Object)],ti.prototype,"alerts",void 0);_.O([_.U("playlistData"),_.g("design:type",Object),_.g("design:paramtypes",[])],ti.prototype,"hasPlaylistData",null);
_.O([_.U("data","hidden"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],ti.prototype,"hasChat",null);_.O([_.so("active"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ti.prototype,"onActiveChanged",null);_.O([_.so("playerData"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ti.prototype,"playerDataChanged",null);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ti.prototype,"dataChanged",null);_.O([_.so("windowSize","singleColumn"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ti.prototype,"sizeChanged",null);
_.t(ti,"ytd-watch-fixie",function(){if(XlV===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);XlV=K}K=XlV;return K},{mode:1});_.NA.registerService(_.hsl,ti);
_.d0();
}catch(e){_._DumpException(e)}
try{
_.W_("xwEKAe");
var o6V=function(K){var X=_.ZO();if(X.getFlag(202))X=X.getFlag(201);else{var F;X=(K==null?void 0:(F=K.config)==null?void 0:F.settingOnByDefault)!==void 0?K.config.settingOnByDefault:!_.S("web_shorts_cinematics_disabled_by_default")}return X},LR5=function(K){var X=_.ZO();
_.YX(0,201,K);_.YX(0,202,!0);X.save()},TyV=function(K){return(K=_.HKM(K))?_.z5d(K):0},rXs=function(K){return K.shorts.isSmallScreenSqueezeback},AXW=function(K){return K.shorts.isPlaybackStarted},yX8=function(K){var X=_.yVO(2),F=new Set;
_.AZ(function(){return void F.forEach(function(P){return void P()})});
return function(P){var H=_.Ng(X);try{var f=j_k(wZs(K),P);F.add(f);return function(){f();F.delete(f)}}finally{_.Ng(H)}}},WRW=function(K){var X=K.children;
var F=K.root;_.Tr(function(){var P=yX8(F)(X);_.AZ(P)});
return document.createTextNode("")},j_k=function(K,X){var F=d8w(K);
K=_.D(_.Sel(X,!0));X=K.next().value;var P=K.next().value;F.append.apply(F,_.LZ(X));return function(){P();F.remove()}},wZs=function(K){if(typeof K==="string")return K=document.querySelector(K),_.YNF(K),K;
if(_.K9(K)&&K.nodeType===Node.ELEMENT_NODE)return K;try{if(K.__count&&K.__count>1)throw _.oU.USE_ELEMENT_MULTIPLE_ASSIGNMENTS(_.r9);if(K.value){if(_.r9!==_.r9){var X=K.value.tagName.toLowerCase();if(X!==_.r9.toLowerCase())throw _.oU.USE_ELEMENT_UNEXPECTED_ELEMENT(_.r9,X);}}else throw _.oU.USE_ELEMENT_NOT_ASSIGNED(_.r9);}catch(P){var F;(F=_.Kv.handleError)==null||F.call.apply(F,[_.Kv].concat(_.LZ(_.ds(P,X))))}finally{K.__count=0}return K.value},d8w=function(K){var X=document.createElementNS(K.namespaceURI,
K.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return K.appendChild(X)},e$W=function(K,X,F,P){K=X-K;
F=P-F;return Math.sqrt(K*K+F*F)},R$s=function(K,X){K&&_.i9().resolve(_.xU).resolveCommand(K,{forceClickLogging:!0,
form:{element:X}})},U8F=function(K,X,F,P){K=X-K;
F=P-F;return Math.sqrt(K*K+F*F)},h$v=function(K,X){K&&_.i9().resolve(_.xU).resolveCommand(K,{forceClickLogging:!0,
form:{element:X}})},m8t=function(K){K.unsubscribeFromStore=_.Dg(K.storeWithShorts,_.Z9v,function(X){K.initOrDisposeActiveModules(X);
!X&&K.storeWithShorts.getState().shorts.isFullscreen&&(_.bX(document.documentElement),K.storeWithShorts.dispatch(_.nUV(!1)))});
K.initOrDisposeActiveModules(_.Z9v(K.storeWithShorts.getState()))},GWJ=function(K){var X=_.i9().resolve(_.fE);
X.rootElement=K;m8t(X)},ly5=function(){return _.i9().resolve(_.fE).dismissedIndices},v6v=function(K){return _.iY({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:K}})},ayF=function(K){return _.iY({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:K}})},s9=function(K){return _.iY({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:K}})};var zd=function(K,X){if(K instanceof zd)this.array_=K.array_;else{var F;if(F=_.xd(K))a:{for(var P=F=0;P<K.length;P++){if(!_.xd(K[P])||F>0&&K[P].length!=F){F=!1;break a}for(var H=0;H<K[P].length;H++)if(typeof K[P][H]!=="number"){F=!1;break a}F==0&&(F=K[P].length)}F=F!=0}if(F)this.array_=_.Nq(K);else if(K instanceof _.q4)this.array_=txG(K.height,K.width);else if(typeof K==="number"&&typeof X==="number"&&K>0&&X>0)this.array_=txG(K,X);else throw Error("Vl");}this.size_=new _.q4(this.array_[0].length,
this.array_.length)},$8W=function(K,X,F){for(var P=0;P<K.getSize().height;P++)for(var H=0;H<K.getSize().width;H++)X.call(F,K.array_[P][H],P,H,K)},O0w=function(K,X){var F=new zd(K.getSize());
$8W(K,function(P,H,f){F.array_[H][f]=X.call(void 0,P,H,f,K)});
return F},txG=function(K,X){for(var F=[],P=0;P<K;P++){F[P]=[];
for(var H=0;H<X;H++)F[P][H]=0}return F};
zd.prototype.add=function(K){if(!_.CAJ(this.size_,K.getSize()))throw Error("Wl");return O0w(this,function(X,F,P){return X+K.array_[F][P]})};
zd.prototype.equals=function(K,X){if(this.size_.width!=K.size_.width||this.size_.height!=K.size_.height)return!1;X=X||0;for(var F=0;F<this.size_.height;F++)for(var P=0;P<this.size_.width;P++)if(!_.bPv(this.array_[F][P],K.array_[F][P],X))return!1;return!0};
zd.prototype.getSize=function(){return this.size_};
var fc=function(K,X,F){return X>=0&&X<K.size_.height&&F>=0&&F<K.size_.width?K.array_[X][F]:null};
zd.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var D$=function(K,X,F,P){if(!(X>=0&&X<K.size_.height&&F>=0&&F<K.size_.width))throw Error("Xl`"+X+"`"+F+"`"+K.size_.height+"`"+K.size_.width);K.array_[X][F]=P};
zd.prototype.multiply=function(K){if(K instanceof zd){if(this.size_.width!=K.getSize().height)throw Error("Yl");return VxJ(this,K)}if(typeof K==="number")return g6k(this,K);throw Error("Zl");};
var VxJ=function(K,X){var F=new zd(K.size_.height,X.getSize().width);$8W(F,function(P,H,f){for(var u=P=0;u<this.size_.width;u++)P+=fc(this,H,u)*fc(X,u,f);D$(F,H,f,P)},K);
return F},g6k=function(K,X){return O0w(K,function(F){return F*X})};var E6w=new _.b("inlineSurveyRenderer");var b0W=new _.b("interstitialViewModel");var Cgt=new _.b("reelNavigateCommand");var Nyd=new _.b("reelNonVideoContentDismissalCommand");var i0J=new _.b("showReelsCommentsOverlayCommand");var x8G=new _.b("shortsSuggestedActionViewModel");var IyV=new _.b("videoInteractionPopUpRenderer");var kWd;var KVG;var Xwk;var uF=function(){var K=_.G.apply(this,arguments)||this;K.ctaVisualElement=null;K.currentCsn=null;return K};
_.r(uF,_.G);_.z=uF.prototype;_.z.onDataChanged=function(){this.maybeLogShows()};
_.z.computeButtonShape=function(){var K=this;if(this.data)return{buttonText:_.lj(this.data.text),state:"active",onTap:function(){K.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.z.maybeCreateCtaVe=function(){var K;if((K=this.data)!=null&&K.badgeInteractionLogging){var X;if(K=(X=this.data.badgeInteractionLogging)==null?void 0:X.trackingParams)this.ctaVisualElement=_.QB(K)}};
_.z.maybeLogClicks=function(){this.currentCsn=_.AD(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.vW(this.currentCsn,this.ctaVisualElement)};
_.z.maybeLogShows=function(){this.currentCsn=_.AD(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.G6(this.currentCsn,[this.ctaVisualElement])};
_.z.onTap=function(){var K;if((K=this.data)!=null&&K.onClickCommand){var X;this.ytComponentBehavior.resolveCommand((X=this.data)==null?void 0:X.onClickCommand);this.maybeLogClicks()}};
uF.prototype.onDataChanged=uF.prototype.onDataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],uF.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],uF.prototype,"ytComponentBehavior",void 0);_.O([_.h({}),_.g("design:type",Object)],uF.prototype,"data",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],uF.prototype,"onDataChanged",null);
uF=_.O([_.v({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],uF);
_.t(uF,"ytd-shopping-overlay-badge-renderer",function(){if(Xwk!==void 0)return Xwk;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Xwk=K},{mode:1});_.EP(_.aiT,"reel-sound-metadata-view-model",{props:{data:_.g$,overlayDensity:_.g$}});_.EP(_.Wv1,"player-disclosure-view-model",{props:{data:_.vU}});_.EP(_.D8C,"pivot-button-view-model",{props:{data:_.g$,className:_.g$}});_.EP(_.uVL,"reel-action-bar-view-model",{props:{data:_.vU,buttonShapeOverrideables:_.vU}});_.EP(_.$c(function(K){function X(){var Mq,pO,y9,Wy,eP=(pO=_.T((Mq=E())==null?void 0:Mq.command,_.Z6))==null?void 0:(y9=pO.item)==null?void 0:(Wy=y9.notificationTextRenderer)==null?void 0:Wy.successResponseText;if(eP)_.xr(P.value,"yt-open-popup-action",[_.$x(eP),P.value]);else if(V())R$s(V(),A.value);else{var gw;R$s((gw=E())==null?void 0:gw.command,A.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var F=K.data;var P=_.t_();K=_.D(_.u_("0px",void 0,"O1N7Ce"));var H=K.next().value,f=K.next().value;K=_.D(_.u_("0px",void 0,"tTDBdb"));var u=K.next().value,J=K.next().value;K=_.D(_.u_(0,void 0,"fh8Zkc"));var Z=K.next().value,M=K.next().value;K=_.D(_.u_(0,void 0,"CUjqGd"));var n=K.next().value,c=K.next().value,B=function(){var Mq;if(((Mq=_.Ix())==null?void 0:Mq.getPlayerState())!==-1){P.value.style.display="inherit";var pO;(pO=_.Ix())==null||pO.removeEventListener("onStateChange",B)}L()},L=function(){var Mq=
document.querySelector("video");
if(Mq){M(Mq.getBoundingClientRect().width);c(Mq.getBoundingClientRect().height);var pO;f((Mq==null?void 0:(pO=Mq.style)==null?void 0:pO.left)||"0px");var y9;J((Mq==null?void 0:(y9=Mq.style)==null?void 0:y9.top)||"0px")}};
_.rs(function(){var Mq,pO,y9;if(((Mq=_.Ix())==null?void 0:Mq.getPlayerState())===-1&&Math.round(((y9=(pO=_.Ix())==null?void 0:pO.getVideoAspectRatio())!=null?y9:0)*100)!==Math.round(Z()/n()*100)){P.value.style.display="none";var Wy,eP;c(Z()/((eP=(Wy=_.Ix())==null?void 0:Wy.getVideoAspectRatio())!=null?eP:1))}},"VB5m5");
_.Tr(function(){var Mq;(Mq=_.Ix())==null||Mq.addEventListener("onStateChange",B);window.addEventListener("resize",L);L();var pO,y9,Wy;if((Wy=(pO=F())==null?void 0:(y9=pO.regions)==null?void 0:y9[0])==null||!Wy.transformationMatrix)throw Error("cm");var eP;if((eP=F())==null?0:eP.trackingParams){var gw;_.uH().graftServerVe((gw=F().trackingParams)!=null?gw:"")}_.AZ(function(){var a3;(a3=_.Ix())==null||a3.removeEventListener("onStateChange",B);window.removeEventListener("resize",L)})});
var A=_.t_(),d=_.D(_.u_(!1,void 0,"TPsTce"));K=d.next().value;var R=d.next().value,l=_.D(_.u_(!1,void 0,"Uz6CHf"));d=l.next().value;var a=l.next().value,E=function(){var Mq;return _.T((Mq=F())==null?void 0:Mq.popUp,IyV)},V=function(){var Mq;
return(Mq=F())==null?void 0:Mq.command},x=function(){return _.T(V(),_.fS)!==void 0};
l=_.DF(function(){X();return!1});
var N={},Dl={};return _.Q("yt-player-overlay-video-interactions",{el:P},_.Q("svg",{"on:mouseover":_.DF(function(){x()&&R(!0);a(!0);return!1}),
"on:mouseout":_.DF(function(){R(!1);a(!1);return!1}),
"on:keydown":_.DF(function(Mq){Mq.key==="Enter"&&X();return!1}),
"on:focus":_.DF(function(){x()&&R(!0);return!1}),
"on:blur":_.DF(function(){x()&&R(!1);return!1}),
el:A,tabindex:0,"aria-label":function(){var Mq;return(Mq=F())==null?void 0:Mq.a11yString},
id:"player-overlay-video-interaction-svg",class:_.HO("yt-player-overlay-video-interactions__interactions-svg",(N["yt-player-overlay-video-interactions__interactions-svg-hover"]=K,N),(Dl["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=d,Dl)),role:"button",style:function(){var Mq,pO,y9,Wy=(y9=(Mq=F())==null?void 0:(pO=Mq.regions)==null?void 0:pO[0].transformationMatrix)!=null?y9:[];Mq=Z();pO=n();y9=[];for(var eP=0,gw=-1;eP<Wy.length;eP++)eP%3===0&&(gw++,y9[gw]=[]),y9[gw].push(Wy[eP]);
Wy=new zd(y9);y9=new zd([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);y9=Wy.multiply(y9);Wy=new zd([[0,0],[0,0],[0,0],[0,0]]);for(eP=0;eP<y9.getSize().width;eP++){gw=fc(y9,0,eP);var a3=fc(y9,1,eP);if(gw===null||a3===null)throw Error("bm`"+(eP+1).toString());D$(Wy,eP,0,gw*Mq);D$(Wy,eP,1,a3*pO)}Mq=fc(Wy,0,0);eP=fc(Wy,1,0);pO=fc(Wy,0,1);gw=fc(Wy,1,1);if(Mq===null||eP===null||pO===null||gw===null)throw Error("$l");y9=e$W(Mq,eP,pO,gw);a3=fc(Wy,3,0);Wy=fc(Wy,3,1);if(a3===null||Wy===null)throw Error("am");Wy=e$W(Mq,
a3,pO,Wy);gw=(Number((gw*-1).toFixed(2))-Number((pO*-1).toFixed(2)))/(Number(eP.toFixed(2))-Number(Mq.toFixed(2)));a3=Math.atan(gw)*180/Math.PI;eP=gw===Number.POSITIVE_INFINITY?-90:gw===Number.NEGATIVE_INFINITY?90:Object.is(gw,-0)?180:gw===0?0:gw>0?a3*-1:Mq<eP?a3*-1:Math.abs(a3)+180;return"left:calc("+Mq+"px + "+H()+"); top:calc("+(pO+"px + "+u()+"); width:")+(y9+"px; height:")+(Wy+"px; transform:rotate(")+(eP+"deg);")},
"on:click":l}))},"Ji"),"yt-player-overlay-video-interactions",{props:{data:_.vU}});_.EP(_.h88,"yt-reel-metapanel-view-model",{props:{data:_.vU,overlayDensity:_.vU}});var FVk=_.$c(function(K){var X=K.children;var F=K.region;K=_.D(_.u_(void 0,void 0,"rwJZyc"));var P=K.next().value,H=K.next().value;K=_.D(_.u_("0px",void 0,"H14H5c"));var f=K.next().value,u=K.next().value;K=_.D(_.u_("0px",void 0,"Mn8Uvf"));var J=K.next().value,Z=K.next().value;K=_.D(_.u_(0,void 0,"QQCIqc"));var M=K.next().value,n=K.next().value;K=_.D(_.u_(0,void 0,"HyEvh"));var c=K.next().value,B=K.next().value,L=function(){var E=P();if(E){var V;if(((V=_.Ix())==null?void 0:V.getPlayerState())!==-1){E.style.display=
"inherit";var x;(x=_.Ix())==null||x.removeEventListener("onStateChange",L)}d()}},A=function(){var E=document.querySelectorAll("video");
return Array.from(E).find(function(V){return V==null?void 0:V.style})},d=function(){var E=A();
if(E){n(E.getBoundingClientRect().width);B(E.getBoundingClientRect().height);var V;u((E==null?void 0:(V=E.style)==null?void 0:V.left)||"0px");var x;Z((E==null?void 0:(x=E.style)==null?void 0:x.top)||"0px")}};
_.rs(function(){var E=P();if(E){var V,x,N;if(((V=_.Ix())==null?void 0:V.getPlayerState())===-1&&Math.round(((N=(x=_.Ix())==null?void 0:x.getVideoAspectRatio())!=null?N:0)*100)!==Math.round(M()/c()*100)){E.style.display="none";var Dl,Mq;B(M()/((Mq=(Dl=_.Ix())==null?void 0:Dl.getVideoAspectRatio())!=null?Mq:1))}}},"RdGxIf");
var R=function(){d()},l;
_.Tr(function(){d();var E;if(!(F==null?0:(E=F())==null?0:E.transformationMatrix))throw Error("cm");var V;(V=_.Ix())==null||V.addEventListener("onStateChange",L);if(window.ResizeObserver){if(E=A())l=new ResizeObserver(R),l.observe(E)}else window.addEventListener("resize",d);_.AZ(function(){var x;(x=_.Ix())==null||x.removeEventListener("onStateChange",L);l?l.disconnect():window.removeEventListener("resize",d)})});
var a=function(){var E,V,x=(V=F==null?void 0:(E=F())==null?void 0:E.transformationMatrix)!=null?V:[];E=M();V=c();for(var N=[],Dl=0,Mq=-1;Dl<x.length;Dl++)Dl%3===0&&(Mq++,N[Mq]=[]),N[Mq].push(x[Dl]);x=new zd(N);N=new zd([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);N=x.multiply(N);x=new zd([[0,0],[0,0],[0,0],[0,0]]);for(Dl=0;Dl<N.getSize().width;Dl++){Mq=fc(N,0,Dl);var pO=fc(N,1,Dl);if(Mq===null||pO===null)throw Error("bm`"+(Dl+1).toString());D$(x,Dl,0,Mq*E);D$(x,Dl,1,pO*V)}E=fc(x,0,0);Dl=fc(x,1,0);V=fc(x,0,1);
Mq=fc(x,1,1);if(E===null||Dl===null||V===null||Mq===null)throw Error("$l");N=U8F(E,Dl,V,Mq);pO=fc(x,3,0);x=fc(x,3,1);if(pO===null||x===null)throw Error("am");x=U8F(E,pO,V,x);Mq=(Number((Mq*-1).toFixed(2))-Number((V*-1).toFixed(2)))/(Number(Dl.toFixed(2))-Number(E.toFixed(2)));pO=Math.atan(Mq)*180/Math.PI;Dl=Mq===Number.POSITIVE_INFINITY?-90:Mq===Number.NEGATIVE_INFINITY?90:Object.is(Mq,-0)?180:Mq===0?0:Mq>0?pO*-1:E<Dl?pO*-1:Math.abs(pO)+180;return"left:calc("+E+"px + "+f()+"); top:calc("+(V+"px + "+
J()+"); width:")+(N+"px; height:")+(x+"px; transform:rotate(")+(Dl+"deg);")};
return _.Q(WRW,{root:"#sticker-layer"},function(){return _.Q("yt-overlay-sticker",{el:_.$O(H),style:a,class:"ytOverlayStickerHost"},X)})},"Ki");_.EP(_.$c(function(K){function X(){var L,A,d,R,l=(A=_.T((L=Z())==null?void 0:L.command,_.Z6))==null?void 0:(d=A.item)==null?void 0:(R=d.notificationTextRenderer)==null?void 0:R.successResponseText;if(l)_.xr(P.value,"yt-open-popup-action",[_.$x(l),P.value]);else if(M())h$v(M(),P.value);else{var a;h$v((a=Z())==null?void 0:a.command,P.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var F=K.data;_.Tr(function(){var L;if((L=F())==null?0:L.trackingParams){var A;_.uH().graftServerVe((A=F().trackingParams)!=null?A:"")}});
var P=_.t_(),H=_.D(_.u_(!1,void 0,"Gjm8Mb"));K=H.next().value;var f=H.next().value,u=_.D(_.u_(!1,void 0,"JN7Pdb"));H=u.next().value;var J=u.next().value,Z=function(){var L;return _.T((L=F())==null?void 0:L.popUp,IyV)},M=function(){var L;
return(L=F())==null?void 0:L.command},n=function(){return _.T(M(),_.fS)!==void 0};
u=_.DF(function(){X();return!1});
var c={},B={};return _.Q("yt-player-overlay-interaction",null,_.Q(FVk,{region:function(){var L,A;return(L=F())==null?void 0:(A=L.regions)==null?void 0:A[0]}},_.Q("svg",{"on:mouseover":_.DF(function(){n()&&f(!0);
J(!0);return!1}),
"on:mouseout":_.DF(function(){f(!1);J(!1);return!1}),
"on:keydown":_.DF(function(L){L.key==="Enter"&&X();return!1}),
"on:focus":_.DF(function(){n()&&f(!0);return!1}),
"on:blur":_.DF(function(){n()&&f(!1);return!1}),
el:P,tabindex:0,"aria-label":function(){var L;return(L=F())==null?void 0:L.a11yString},
id:"player-overlay-video-interaction-svg",class:_.HO("ytPlayerOverlayInteractionInteractionsSvg",(c.ytPlayerOverlayInteractionInteractionsSvgHover=K,c),(B.ytPlayerOverlayInteractionInteractionsSvgHideOutline=H,B)),role:"button","on:click":u})))},"Li"),"yt-player-overlay-interaction",{props:{data:_.vU}});var qH=function(){var K=_.G.apply(this,arguments)||this;K.showScrubber=!1;K.isWatchWhileMode=!1;K.enableRemixButton=_.S("web_enable_shorts_remix_handoff_ep");K.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");K.enableNewStickers=_.S("use_shorts_sticker_overlay_web");K.anchoredPanelActive=!1;K.enableLivingroomLayout=_.S("reels_enable_livingroom_layout");K.enablePlayerMetadataContainer=_.S("reels_web_enable_metadata_container");K.enableSqueezebackPanels=_.S("web_shorts_enable_squeezeback_panels");
K.useAspectRatio=_.S("web_use_aspect_ratio");K.isSqueezebackActive=!1;K.smallScreenSqueezeback=!1;K.isPlayerStarted=!1;K.overlayDensity=0;K.isOverlay=!1;K.isImmersive=!1;K.isImmersiveHorizontal=!1;K.isFullscreen=!1;K.onWindowResized=function(){var X;K.set("isImmersive",((X=window.getComputedStyle(K.hostElement))==null?void 0:X.getPropertyValue("--immersive-mode-on"))==="1");K.set("isImmersiveHorizontal",K.isImmersive&&K.enableLivingroomLayout&&!K.isWatchWhileMode)};
return K};
_.r(qH,_.G);_.z=qH.prototype;_.z.updateIsOverlay=function(K){this.isOverlay=K.detail.value};
_.z.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.S("web_enable_flexible_overlay")||_.S("web_enable_format_first")||_.S("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.z.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.z.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.z.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.z.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.z.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.z.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.z.ready=function(){this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer")||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.KG("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.KG("reels_action_justified_content")||"flex-start")};
_.z.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.z.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.uY("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.uY("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.uY("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.uY("SHARE_LABEL",
void 0,"Share")}}});_.S("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.uY("REMIX_LABEL",void 0,"Remix")}}});this.set("data.menu",{menuRenderer:{items:[{menuServiceItemRenderer:{}}]}});this.set("data.pivotButton",{pivotButtonViewModel:{backgroundColor:"THEME_ATTRIBUTE_OVERLAY_BACKGROUND_MEDIUM",icon:{iconType:"WAVEFORM"}}});this.setEmptyOverlayMetadata()};
_.z.setEmptyOverlayMetadata=function(){_.S("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}))};
_.Oi.Object.defineProperties(qH.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.infoPanel)}}});
qH.prototype.onIsActiveChanged=qH.prototype.onIsActiveChanged;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],qH.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],qH.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],qH.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.RW.YtdGuideStateAwareBehavior),_.g("design:type",Object)],qH.prototype,"ytdGuideStateAwareBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],qH.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Boolean)],qH.prototype,"isActive",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],qH.prototype,"hidden",void 0);_.O([_.h({value:!0}),_.g("design:type",Boolean)],qH.prototype,"useShortsIcon",void 0);_.O([_.h({value:"left"}),_.g("design:type",String)],qH.prototype,"buttonTooltipPosition",void 0);
_.O([_.h({value:_.S("reels_enable_livingroom_layout")?"top":"left"}),_.g("design:type",String)],qH.prototype,"likeButtonTooltipPosition",void 0);_.O([_.h({value:"none"}),_.g("design:type",String)],qH.prototype,"textTransform",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],qH.prototype,"showScrubber",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],qH.prototype,"isWatchWhileMode",void 0);
_.O([_.h({reflectToAttribute:!0}),_.U("data.infoPanel"),_.g("design:type",Object),_.g("design:paramtypes",[])],qH.prototype,"hasInfoPanel",null);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],qH.prototype,"enableRemixButton",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],qH.prototype,"enableAnchoredPanel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],qH.prototype,"enableNewStickers",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],qH.prototype,"anchoredPanelActive",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],qH.prototype,"enableLivingroomLayout",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],qH.prototype,"enablePlayerMetadataContainer",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],qH.prototype,"enableSqueezebackPanels",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],qH.prototype,"useAspectRatio",void 0);_.O([_.h({selector:_.o6l,reflectToAttribute:!0}),_.g("design:type",Object)],qH.prototype,"isSqueezebackActive",void 0);_.O([_.h({selector:rXs,reflectToAttribute:!0}),_.g("design:type",Object)],qH.prototype,"smallScreenSqueezeback",void 0);_.O([_.h({selector:AXW}),_.g("design:type",Object)],qH.prototype,"isPlayerStarted",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],qH.prototype,"overlayDensity",void 0);_.O([_.h(),_.g("design:type",Object)],qH.prototype,"isOverlay",void 0);_.O([_.h({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.g("design:type",Boolean)],qH.prototype,"isShortsOverlay",void 0);_.O([_.h(),_.g("design:type",Object)],qH.prototype,"isImmersive",void 0);_.O([_.h(),_.g("design:type",Object)],qH.prototype,"isImmersiveHorizontal",void 0);
_.O([_.h({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.g("design:type",Boolean)],qH.prototype,"isShortsImmersive",void 0);_.O([_.h({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.g("design:type",Object)],qH.prototype,"buttonOverride",void 0);_.O([_.h({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.g("design:type",Object)],qH.prototype,"actionBarButtonOverride",void 0);
_.O([_.h({selector:_.sD,reflectToAttribute:!0}),_.g("design:type",Object)],qH.prototype,"isFullscreen",void 0);_.O([_.so("isActive"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],qH.prototype,"onIsActiveChanged",null);qH=_.O([_.v({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],qH);
_.t(qH,"ytd-reel-player-overlay-renderer",function(){if(KVG!==void 0)return KVG;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return KVG=K},{mode:1});var PEt;var JG=function(){var K=_.G.apply(this,arguments)||this;K.videoDuration=0;K.playedTime=0;K.isActive=!1;K.JSC$19700_playerEvents=new Map;return K};
_.r(JG,_.G);_.z=JG.prototype;_.z.created=function(){this.JSC$19700_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19700_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.z.attached=function(){this.getPlayerAndInitializeListeners()};
_.z.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19700_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.Pc(this,this.onPageChanged))};
_.z.getPlayerAndInitializeListeners=function(){var K=this,X;return _.q(function(F){if(F.nextAddress==1)return X=_.$f(),X?_.Y(F,X.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Pc(K,K.onPageChanged)),F.jumpTo(0));K.player=F.yieldResult;K.initializePlayerListeners();_.JT(F)})};
_.z.onPageChanged=function(K){var X=this;return _.q(function(F){if(F.nextAddress==1)return K.detail.newPageType!=="ytd-shorts"?F.return():_.Y(F,_.Oe().getPlayerPromise(),2);X.player=F.yieldResult;X.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Pc(X,X.onPageChanged));_.JT(F)})};
_.z.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19700_playerEvents)};
_.z.onVideoDataChange=function(K){var X=this;return _.q(function(F){if(!X.player||K.type!=="newdata")return F.return();X.videoDuration=_.S("web_shorts_use_progress_state_for_gapless")?X.player.getProgressState(K.playertype).seekableEnd:X.player.getDuration(K.playertype);X.playedTime=0;_.JT(F)})};
_.z.onVideoProgress=function(K){var X=this,F,P;return _.q(function(H){if(!X.player)return H.return();F=X.player.getPresentingPlayerType();P=X.player.getPlayerState();X.videoDuration=_.S("web_shorts_use_progress_state_for_gapless")?X.player.getProgressState(F).seekableEnd:X.player.getDuration(F);X.playedTime=P===0?X.videoDuration:K;_.JT(H)})};
_.z.getPercentPlayed=function(K,X){return K?_.rH(X/K,0,1):0};
_.Oi.Object.defineProperties(JG.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 K="";return K=this.videoDuration&&this.playedTime?K+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):K+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],JG.prototype,"componentBehavior",void 0);_.O([_.W(_.ld.YtPlayerListenerBehavior),_.g("design:type",_.vC)],JG.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],JG.prototype,"player",void 0);_.O([_.h(),_.g("design:type",Object)],JG.prototype,"videoDuration",void 0);_.O([_.h(),_.g("design:type",Object)],JG.prototype,"playedTime",void 0);_.O([_.h(),_.g("design:type",Object)],JG.prototype,"isActive",void 0);
_.O([_.U("videoDuration","playedTime"),_.g("design:type",Number),_.g("design:paramtypes",[])],JG.prototype,"percentPlayed",null);_.O([_.U("videoDuration","playedTime"),_.g("design:type",Object),_.g("design:paramtypes",[])],JG.prototype,"percentPlayedStyle",null);_.O([_.U("videoDuration","isActive"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],JG.prototype,"hideProgressBar",null);
_.t(JG,"ytd-progress-bar-line",function(){if(PEt===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);PEt=K}K=PEt;return K},{mode:_.Ig("kevlar_poly_si_batch_j028")?1:2});var Hek;_.EP(_.Zs1,"ytm-closed-captioning-button",{props:{captionIconType:_.vU,onClick:_.g$,ariaLabel:_.vU,ariaPressed:_.vU,isOverlay:_.g$,isModern:_.g$}});_.EP(_.ywv,"desktop-shorts-volume-controls",{props:{orientation:_.vU}});var Z$=function(){var K=_.G.apply(this,arguments)||this;K.playerState=null;K.isMuted=!1;K.shortsModernControlsEnabled=_.S("web_shorts_modern_controls");K.volumeControlsOrientationState=_.S("web_shorts_modern_controls")?"vertical_down":"horizontal_right";K.isOverlay=!0;K.captionIconType=-1;K.ariaLabel="";K.overlayDensity=0;K.JSC$19703_playerEvents=new Map;K.onClosedCaptionsButtonClick=function(){K.player&&_.Wq(K.player)&&(K.player.toggleSubtitles(),K.updateCaptionIconType())};
return K};
_.r(Z$,_.G);_.z=Z$.prototype;_.z.created=function(){this.JSC$19703_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19703_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$19703_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.z.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.cO(28662);this.playPauseButtonClientVE=_.cO(36842);this.fullscreenButtonToggleOffClientVE=_.cO(222256);this.fullscreenButtonToggleOnClientVE=_.cO(222257);var K=_.AD(),X=_.r_();K&&X&&(_.S("combine_ve_grafts")?(_.k2(_.uH(),this.muteButtonClientVE,X),_.k2(_.uH(),this.playPauseButtonClientVE,X)):_.hc(K,X,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.z.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19703_playerEvents),this.player=null)};
_.z.updateCaptionIconType=function(){var K=-1,X=void 0,F=_.uY("CLOSED_CAPTIONS_DISABLED");this.player&&_.Wq(this.player)&&(_.Kkw(this.player)?(X=!0,F=_.uY("CLOSED_CAPTIONS_ON"),K=1):(X=!1,F=_.uY("CLOSED_CAPTIONS_OFF"),K=0));this.captionIconType=K;this.ariaPressedState=X;this.ariaLabel=F};
_.z.getPlayerAndInitializeListeners=function(){var K=this,X;return _.q(function(F){if(F.nextAddress==1)return X=_.$f(),X?_.Y(F,X.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Pc(K,K.onPageChanged)),F.jumpTo(0));K.player=F.yieldResult;K.initializePlayerListeners();_.JT(F)})};
_.z.onPageChanged=function(K){var X=this;return _.q(function(F){if(F.nextAddress==1)return K.detail.newPageType!=="ytd-shorts"?F.return():_.Y(F,_.Oe().getPlayerPromise(),2);X.player=F.yieldResult;X.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Pc(X,X.onPageChanged));_.JT(F)})};
_.z.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19703_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.z.onPlayerStateChange=function(K){this.playerState=K};
_.z.onPlayerVolumeChange=function(K){this.isMuted=K.muted};
_.z.onPlayPauseButtonClick=function(){var K=this,X,F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,_.Oe().getPlayerPromise(),2);X=P.yieldResult;(F=_.AD())&&K.playPauseButtonClientVE&&_.vW(F,K.playPauseButtonClientVE);X.getPlayerState()!==1?X.playVideo():X.pauseVideo();_.JT(P)})};
_.z.computePlayPauseIcon=function(K){return K===2||K===-1||K===5?_.S("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.S("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.S("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.z.computeFullscreenLabel=function(K){return K?_.uY("FULLSCREEN_EXIT_LABEL"):_.uY("FULLSCREEN_ENTER_LABEL")};
_.z.computePlayPauseLabel=function(K){return K===1||K===3?_.uY("PLAYER_LABEL_PAUSE"):_.uY("PLAYER_LABEL_PLAY")};
_.z.onMuteButtonClick=function(){var K=this,X,F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,_.Oe().getPlayerPromise(),2);X=P.yieldResult;(F=_.AD())&&K.muteButtonClientVE&&_.vW(F,K.muteButtonClientVE);X.isMuted()?X.unMute(!0):X.mute(!0);_.JT(P)})};
_.z.computeMuteIcon=function(K){return K?"miniplayer:volume-off":"miniplayer:volume-up"};
_.z.computeMuteLabel=function(K){return K?_.uY("PLAYER_LABEL_UNMUTE"):_.uY("PLAYER_LABEL_MUTE")};
_.z.onFullscreenButtonClick=function(){var K=_.AD();K&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.vW(K,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.vW(K,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.cV1()};
_.Oi.Object.defineProperties(Z$.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var K=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(){K.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-additive-background)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.S("web_shorts_modern_controls")?"player_full_exit_delhi_player":_.S("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.S("web_shorts_modern_controls")?"player_full_enter_delhi_player":_.S("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Z$.prototype,"componentBehavior",void 0);_.O([_.W(_.ld.YtPlayerListenerBehavior),_.g("design:type",_.vC)],Z$.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],Z$.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Z$.prototype,"player",void 0);_.O([_.h(),_.g("design:type",Object)],Z$.prototype,"playerState",void 0);_.O([_.h(),_.g("design:type",Object)],Z$.prototype,"isMuted",void 0);
_.O([_.h({computed:"computePlayPauseIcon(playerState)"}),_.g("design:type",String)],Z$.prototype,"playPauseIcon",void 0);_.O([_.h({computed:"computeMuteIcon(isMuted)"}),_.g("design:type",String)],Z$.prototype,"muteIcon",void 0);_.O([_.h({selector:_.sD}),_.g("design:type",Boolean)],Z$.prototype,"isFullscreen",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Z$.prototype,"shortsModernControlsEnabled",void 0);
_.O([_.h(),_.g("design:type",Object)],Z$.prototype,"volumeControlsOrientationState",void 0);_.O([_.h(),_.g("design:type",Object)],Z$.prototype,"isOverlay",void 0);_.O([_.h(),_.g("design:type",Object)],Z$.prototype,"captionIconType",void 0);_.O([_.h(),_.g("design:type",Object)],Z$.prototype,"ariaLabel",void 0);_.O([_.h(),_.g("design:type",Object)],Z$.prototype,"ariaPressedState",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Z$.prototype,"overlayDensity",void 0);
_.O([_.U("playerState"),_.g("design:type",Object),_.g("design:paramtypes",[])],Z$.prototype,"playPauseButtonData",null);_.O([_.U("isFullscreen"),_.g("design:type",Object),_.g("design:paramtypes",[])],Z$.prototype,"fullscreenButtonData",null);_.O([_.h(),_.g("design:type",Object)],Z$.prototype,"onClosedCaptionsButtonClick",void 0);_.O([_.U("isFullscreen"),_.g("design:type",String),_.g("design:paramtypes",[])],Z$.prototype,"fullscreenIcon",null);
_.t(Z$,"ytd-shorts-player-controls",function(){if(Hek===void 0){var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);Hek=K}K=Hek;return K},{mode:1});var sl5;_.EP(_.dGW,"yt-interstitial-view-model",{props:{data:_.vU}});var zYw=_.$c(function(K){var X=K.data;return _.Q("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.Q("h1",{class:"reelWatchBreakViewModelHostTitle"},_.Q(_.Oy,{text:function(){return X().title}})),_.Q("h2",{class:"reelWatchBreakViewModelHostBody"},_.Q(_.Oy,{text:function(){return X().body},
isOverlay:!0})),_.Q(_.Md,{data:function(){return X().buttons}},{buttonViewModel:function(F,P){return _.Q("div",{class:function(){return P()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.Q(_.Af,{data:F.data}))}}))},"Mi");
zYw.idomCompat=!0;_.EP(zYw,"reel-watch-break-view-model",{props:{data:_.vU}});var YV=function(){return _.G.apply(this,arguments)||this};
_.r(YV,_.G);YV.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}}};
_.Oi.Object.defineProperties(YV.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var K;return!!_.T((K=this.data)==null?void 0:K.renderer,E6w)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var K;return!!_.T((K=this.data)==null?void 0:K.renderer,b0W)}}});
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],YV.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],YV.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],YV.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],YV.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.U("data.renderer"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],YV.prototype,"isSurvey",null);_.O([_.h({reflectToAttribute:!0}),_.U("data.renderer"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],YV.prototype,"isInterstitialViewModel",null);YV=_.O([_.v({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],YV);
_.t(YV,"ytd-reel-non-video-content-renderer",function(){if(sl5!==void 0)return sl5;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);
return sl5=K},{mode:_.Ig("kevlar_poly_si_batch_j028")?1:2});var ftF;_.EP(_.wFF,"desktop-shorts-player-controls",{});var QR=function(){var K=_.G.apply(this,arguments)||this;K.isPlayerPaused=!1;K.isPlayerStarted=!1;K.showPlayerControls=!1;K.showScrubber=!1;K.autoHideJobId=0;K.modern=_.S("web_button_rework");K.overlayType=_.KG("web_shorts_expanded_overlay_type");K.panelData=void 0;K.isWatchWhileMode=!1;K.hasError=!1;K.panelShowDelayMs=1;K.scrubberComponent={};K.isFullscreen=!1;K.shouldHideOverlay=!1;K.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");K.enablePersistentAnchoredPanel=_.S("desktop_shorts_v2_persistent_anchored_panel");
K.hideWatchWhilePanel=_.S("web_shorts_hide_watch_while_panel");K.useAspectRatio=_.S("web_use_aspect_ratio");K.isPersistentPanelActive=!1;K.anchoredPanelActive=!1;K.isShortsPipActive=!1;K.smallScreenSqueezeback=!1;K.enableFlexibleOverlay=_.S("web_enable_flexible_overlay");K.overlayDensity=0;K.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};K.onWindowResized=function(){_.eu(K,
"calculateOverlayDensity",function(){K.calculateOverlayDensity()},100)};
return K};
_.r(QR,_.G);_.z=QR.prototype;_.z.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.z.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.z.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var K=_.i9().resolve(_.cR);this.isWatchWhileMode&&(_.S("web_enable_shorts_new_carousel")?_.A9.addJob(function(){K.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):K.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.z.handleShowReelsCommentsOverlayCommand=function(K){K=_.T(K,i0J);this.isActive&&(K==null?0:K.engagementPanel)&&this.data&&(this.isWatchWhileMode&&this.isWatchWhileMode&&this.activeWatchWhilePanel==="engagement-panel-comments-section"?this.updateEngagementPanelVisibility("engagement-panel-comments-section",!1):this.updateEngagementPanelVisibility("engagement-panel-comments-section",!0))};
_.z.updateEngagementPanelVisibility=function(K,X){K&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:X?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:K}})};
_.z.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.z.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.i9().resolve(_.fE).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.z.handleWatchWhilePanelScrimClick=function(){var K=_.i9().resolve(_.cR);this.activeWatchWhilePanel&&(K.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.z.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.z.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.S("web_enable_shorts_new_carousel")?0:void 0}}};
_.z.handlePlayerClick=function(K){var X=this,F,P;if((P=(F=window).matchMedia)!=null&&P.call(F,"(any-pointer: coarse)").matches||!K)this.showPlayerControls=!0,_.A9.cancelJob(this.autoHideJobId),this.autoHideJobId=_.cu(_.A9,function(){X.showPlayerControls=!1},4E3)};
_.z.isFirstReel=function(){return this.index===0};
_.z.handleMouseenter=function(){_.A9.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.z.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.z.handleScrubberEnter=function(){this.showScrubber=!0};
_.z.handleScrubberLeave=function(){this.showScrubber=!1};
_.z.maybeLogNonDefaultAspectRatio=function(){var K;(K=this.data)!=null&&K.thumbnail&&this.isActive&&.5625!==TyV(this.data.thumbnail)&&_.GA4("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.z.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var K=document.querySelector("#shorts-container");if(K){K=K.offsetWidth/2-this.playerContainer.offsetWidth/2;K=K>=368?1:K>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&K===1&&(K=0);this.isPersistentPanelActive&&(K=0);window.innerWidth<=599&&(K=2);this.overlayDensity=K;var X;(X=this.onOverlayDensityChanged)==null||X.call(this,this.index,this.overlayDensity)}}};
_.z.onOverlayDensityChange=function(){var K;(K=this.onOverlayDensityChanged)==null||K.call(this,this.index,this.overlayDensity);(K=_.C$(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&K.set("overlayDensity",this.overlayDensity);if(K=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))K.overlayDensity=this.overlayDensity};
_.z.isVideoContent=function(K){_.i9().resolve(_.fE);return!!_.T(K,_.J6)};
_.z.isNonVideoContent=function(K){_.i9().resolve(_.fE);return!!_.T(K,_.r4)};
_.z.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.Oi.Object.defineProperties(QR.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var K,X;return _.S("web_enable_format_first")||((K=this.data)==null?void 0:K.adsOverlay)&&_.S("web_enable_format_first_ads_only")||((X=this.data)==null?void 0:X.reelPlayerOverlayRenderer)&&_.S("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var K;return!this.isActive||!this.isPlayerStarted||(K=this.data)!=null&&K.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var K;if(((K=this.data)==null?0:K.command)&&this.isVideoContent(this.data.command)){var X,F;if(((X=this.data)==null?0:X.adsOverlay)&&Object.keys((F=this.data)==null?void 0:F.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var P,H;if(((P=this.data)==null?0:P.reelPlayerOverlayRenderer)&&Object.keys((H=this.data)==null?void 0:H.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
QR.prototype.onOverlayDensityChange=QR.prototype.onOverlayDensityChange;QR.prototype.calculateOverlayDensity=QR.prototype.calculateOverlayDensity;QR.prototype.maybeLogNonDefaultAspectRatio=QR.prototype.maybeLogNonDefaultAspectRatio;QR.prototype.onEngagementPanelsChanged=QR.prototype.onEngagementPanelsChanged;QR.prototype.onScrubberDataChange=QR.prototype.onScrubberDataChange;QR.prototype.updateShouldHideOverlay=QR.prototype.updateShouldHideOverlay;
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],QR.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],QR.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.RW.YtdGuideStateAwareBehavior),_.g("design:type",Object)],QR.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],QR.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Number)],QR.prototype,"index",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],QR.prototype,"isActive",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],QR.prototype,"isHiddenInDom",void 0);_.O([_.h(),_.g("design:type",Object)],QR.prototype,"isPlayerPaused",void 0);_.O([_.h({selector:AXW}),_.g("design:type",Object)],QR.prototype,"isPlayerStarted",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],QR.prototype,"showPlayerControls",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],QR.prototype,"showScrubber",void 0);_.O([_.h(),_.g("design:type",Object)],QR.prototype,"autoHideJobId",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],QR.prototype,"modern",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],QR.prototype,"overlayType",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],QR.prototype,"ytdReduxBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],QR.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],QR.prototype,"watchWhileEngagementPanels",void 0);_.O([_.h(),_.g("design:type",Object)],QR.prototype,"panelData",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],QR.prototype,"isWatchWhileMode",void 0);_.O([_.h(),_.g("design:type",String)],QR.prototype,"activeWatchWhilePanel",void 0);
_.O([_.h(),_.g("design:type",Object)],QR.prototype,"hasError",void 0);_.O([_.h(),_.g("design:type",Object)],QR.prototype,"panelShowDelayMs",void 0);_.O([_.h(),_.g("design:type",Object)],QR.prototype,"scrubberComponent",void 0);_.O([_.h({selector:_.sD,reflectToAttribute:!0}),_.g("design:type",Object)],QR.prototype,"isFullscreen",void 0);_.O([_.h(),_.g("design:type",Object)],QR.prototype,"shouldHideOverlay",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],QR.prototype,"enableAnchoredPanel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],QR.prototype,"enablePersistentAnchoredPanel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],QR.prototype,"hideWatchWhilePanel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],QR.prototype,"useAspectRatio",void 0);
_.O([_.h({selector:_.o6l,reflectToAttribute:!0}),_.g("design:type",Object)],QR.prototype,"isPersistentPanelActive",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],QR.prototype,"anchoredPanelActive",void 0);_.O([_.h({selector:_.zX,reflectToAttribute:!0}),_.g("design:type",Object)],QR.prototype,"isShortsPipActive",void 0);_.O([_.h({selector:rXs,reflectToAttribute:!0}),_.g("design:type",Object)],QR.prototype,"smallScreenSqueezeback",void 0);
_.O([_.h({reflectToAttribute:!0}),_.U("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.g("design:type",Object),_.g("design:paramtypes",[])],QR.prototype,"enableFormatFirst",null);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],QR.prototype,"enableFlexibleOverlay",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],QR.prototype,"overlayDensity",void 0);_.O([_.h(),_.g("design:type",Function)],QR.prototype,"onOverlayDensityChanged",void 0);
_.O([_.h(),_.U("isActive","hasError"),_.g("design:type",Object),_.g("design:paramtypes",[])],QR.prototype,"shouldRenderPlayerElements",null);_.O([_.h(),_.U("isActive","isWatchWhileMode"),_.g("design:type",Object),_.g("design:paramtypes",[])],QR.prototype,"watchWhileOrPersistentActive",null);_.O([_.so("isActive","hasError","showingExpandedOverlay"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],QR.prototype,"updateShouldHideOverlay",null);
_.O([_.h({reflectToAttribute:!0}),_.U("isActive","isPlayerStarted","data"),_.g("design:type",Object),_.g("design:paramtypes",[])],QR.prototype,"shouldRenderScrubber",null);_.O([_.so("shouldRenderScrubber"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],QR.prototype,"onScrubberDataChange",null);_.O([_.U("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.g("design:type",Object),_.g("design:paramtypes",[])],QR.prototype,"overlayComponent",null);
_.O([_.so("watchWhileEngagementPanels"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],QR.prototype,"onEngagementPanelsChanged",null);_.O([_.fa("#player-container"),_.g("design:type",HTMLElement)],QR.prototype,"playerContainer",void 0);_.O([_.fa("#cinematic-container"),_.g("design:type",HTMLElement)],QR.prototype,"cinematicContainer",void 0);
_.O([_.so("isPersistentPanelActive","data.thumbnail"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],QR.prototype,"maybeLogNonDefaultAspectRatio",null);_.O([_.so("isPersistentPanelActive"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],QR.prototype,"calculateOverlayDensity",null);_.O([_.so("overlayDensity"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],QR.prototype,"onOverlayDensityChange",null);
QR=_.O([_.v({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],QR);
_.t(QR,"ytd-reel-video-renderer",function(){if(ftF!==void 0)return ftF;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return ftF=K},{mode:_.Ig("kevlar_poly_si_batch_j028")?1:2});var MH=function(){var K=_.G.apply(this,arguments)||this;K.isPreviousPageShorts=!1;K.index=0;K.delayedActiveIndex=0;K.playablePreviousIndex=null;K.isPlayerPaused=!1;K.isPlayerStarted=!1;K.intersectionObserverThreshold=.6;K.fitToVisibleBounds=!1;K.pageSubtype="shorts";K.enablePreviousContinuation=_.S("shorts_in_playlists_web");K.shortsPipEnabled=_.S("web_shorts_pip");K.isDark=document.documentElement.hasAttribute("dark");K.shortsViewTransitions=_.S("web_shorts_view_transitions");K.isFullscreen=!1;K.isShortsPipActive=
!1;K.buttonOverride={iconPosition:"icon-only",size:"XL"};K.anchoredPanelActive=!1;K.isActive=!1;K.smallScreenPersistentPanel=!1;K.isPersistentPanelActive=!1;K.smallScreenSqueezeBack=!1;K.enableScrollIntoViewCenter=_.S("web_scroll_into_view_center");K.formatFirst=_.S("web_enable_format_first")||_.S("web_enable_format_first_ads_only")||_.S("web_enable_format_first_organic_only");K.enableFlexibleOverlay=_.S("web_enable_flexible_overlay");K.useAspectRatio=_.S("web_use_aspect_ratio");K.isShortsInitialized=
!1;K.hidePreviousButtonImmediately=!1;K.showPreviousButtonImmediately=!1;K.endOfNextContinuation=!1;K.currentPlayerIndex=0;K.nextReelVe=_.cO(56921);K.prevReelVe=_.cO(56922);K.loopToggleOffVe=_.cO(198013);K.loopToggleOnVe=_.cO(198014);K.ambientModeToggleVe=_.cO(227860);K.reelPlayerPausedStateRendererVe=_.cO(141313);K.storedPlaybackSpeed=null;K.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"};K.onOverlayDensityChanged=function(X,F){var P;(P=K.getActiveReelVideo(X))==null||P.setAttribute("overlay-density",String(F))};
return K};
_.r(MH,_.G);_.z=MH.prototype;
_.z.deflateInactivePreviousSlides=function(){var K=_.kU("web_shorts_deflate_inactive_slides_aggressive_distance");if(K>0&&this.shortsProcessedSequence&&this.activeIndex){K=this.activeIndex-K;for(var X=0;X<=K;X++){var F=void 0;((F=this.shortsProcessedSequence[X].reelPlayerOverlayRenderer)==null?0:F.metapanel)&&this.set("shortsProcessedSequence."+X+".reelPlayerOverlayRenderer",{});F=void 0;((F=this.shortsProcessedSequence[X].adsOverlay)==null?0:F.adSlotMetadata)&&this.set("shortsProcessedSequence."+X+
".adsOverlay",{})}}};
_.z.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.z.onResize=function(){var K=_.aA(),X=K.dispatch,F=this.calculateIsSmallWidth();X.call(K,_.iY({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:F}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.z.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:_.S("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.z.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var K=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,X=K,F=0;K<250&&(X=K+this.shortsInnerContainer.clientWidth,F=24);_.XU(this.hostElement,{"--ytd-shorts-header-width":X+"px","--ytd-shorts-top-spacing":F+"px"})}};
_.z.isFirstShorts=function(K){return K?this.index===-K.length:this.index===0};
_.z.isActiveReel=function(K,X,F){F&&(X=this.calculatePrevIndex(X,F));return K===X};
_.z.onFullscreenChange=function(){if(_.S("web_fullscreen_shorts")){var K;(K=this.getActiveReelVideo(this.activeIndex))==null||K.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.i9().resolve(_.Wj).close(!0)}};
_.z.engagementPanelsChanged=function(){var K;this.watchWhileEngagementPanels=(K=this.data)==null?void 0:K.engagementPanels};
_.z.unregisterPanels=function(){var K=_.i9().resolve(_.cR);if(this.watchWhileEngagementPanels)for(var X=_.D(this.watchWhileEngagementPanels),F=X.next();!F.done;F=X.next()){var P=void 0,H=void 0;F=(P=F.value.engagementPanelSectionListRenderer)==null?void 0:(H=P.identifier)==null?void 0:H.tag;K&&F&&K.panelMap.delete(F)}};
_.z.isVideoContent=function(K){return this.isVideoContentCommand(K==null?void 0:K.command)};
_.z.getActiveReelVideo=function(K){return _.C$(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+K+'"]')};
_.z.calculatePrevIndex=function(K,X){return X?K-((X==null?void 0:X.length)||0):-1};
_.z.onKeydown=function(K){var X=_.lN(K)||[];if(!_.M8V(X))if(K.code==="ArrowUp")K.preventDefault(),this.handlePrevButtonClick();else if(K.code==="ArrowDown")K.preventDefault(),this.handleNextButtonClick();else if(K.code==="KeyM")this.toggleMuteUnmuteVideo();else if(K.code==="KeyK"||K.code==="Space")this.togglePlayPauseVideo();else if((K.code==="KeyA"||K.code==="ArrowLeft")&&_.S("web_shorts_keyboard_enable_seek_shortcuts")){var F;(F=this.player)==null||F.seekBy(-5)}else if((K.code==="KeyD"||K.code===
"ArrowRight")&&_.S("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var P;(P=this.player)==null||P.seekBy(5)}};
_.z.onServiceRequestCompleted=function(K,X){K=X.data;K.continuationEndpoint&&K.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:K.entries,continuationEndpoint:K.continuationEndpoint}}):K.prevContinuationEndpoint&&K.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:K.prevEntries,prevContinuationEndpoint:K.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.z.handleEngagementPanelVisibilityChanged=function(K,X){var F=_.i9().resolve(_.cR);if(K&&F){var P,H=((P=K.identifier)==null?void 0:P.tag)||K.panelIdentifier||K.targetId;if(X==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==H){F.hidePanel(this.activePanel);var f;this.activePanel=((f=K.identifier)==null?void 0:f.tag)||K.panelIdentifier}else this.isPersistentPanelActive=!0,_.aA().dispatch(v6v(!0)),this.anchoredPanelActive=!0,this.activePanel=H;else X==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===H&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.aA().dispatch(v6v(!1)))}};
_.z.handlePanelScrimClick=function(){var K=_.i9().resolve(_.cR);this.activePanel&&(K.hidePanel(this.activePanel),_.aA().dispatch(v6v(!1)))};
_.z.getShortsLoopSetting=function(){var K,X,F,P,H;return _.q(function(f){switch(f.nextAddress){case 1:return _.S("kevlar_shorts_auto_advance")?_.Y(f,_.MA.getInstance(),2):f.return(!0);case 2:return(K=f.yieldResult)?_.Y(f,K.get("sfvles"),3):f.return(!0);case 3:return F=(X=f.yieldResult)!=null?X:!1,_.Y(f,K.get("sfvle"),4);case 4:return H=(P=f.yieldResult)!=null?P:!0,F?f.return(H):f.return(!0)}})};
_.z.handleSignalActionToggleLoopShortsOff=function(){var K=this,X,F,P;return _.q(function(H){switch(H.nextAddress){case 1:if(!K.player)return H.return();K.player.setLoopVideo(!1);X=_.uH();_.XT(X,K.loopToggleOffVe);return _.Y(H,_.MA.getInstance(),2);case 2:return(F=H.yieldResult)?_.Y(H,F.set("sfvle",!1),3):H.return();case 3:return _.Y(H,F.set("sfvles",!0),4);case 4:P=_.ZO(),_.YX(0,203,!1),_.YX(0,204,!0),P.save(),_.JT(H)}})};
_.z.handleSignalActionToggleLoopShortsOn=function(){var K=this,X,F,P;return _.q(function(H){switch(H.nextAddress){case 1:if(!K.player)return H.return();K.player.setLoopVideo(!0);X=_.uH();_.XT(X,K.loopToggleOnVe);return _.Y(H,_.MA.getInstance(),2);case 2:return(F=H.yieldResult)?_.Y(H,F.set("sfvle",!0),3):H.return();case 3:return _.Y(H,F.set("sfvles",!0),4);case 4:P=_.ZO(),_.YX(0,203,!0),_.YX(0,204,!0),P.save(),_.JT(H)}})};
_.z.handleSignalActionToggleCinematicShortsOn=function(){LR5(!0);var K;(K=this.JSC$19727_cinematicController)==null||_.pZV(K,!0);_.XT(_.uH(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.z.handleSignalActionToggleCinematicShortsOff=function(){LR5(!1);var K;(K=this.JSC$19727_cinematicController)==null||_.pZV(K,!1);_.XT(_.uH(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.z.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.z.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.z.unhideCurrentOverlay=function(){if(this.overlayContainer){var K=this.overlayContainer.querySelector("#experiment-overlay");K&&_.A9.addLowPriorityJob(function(){K.style.display="unset"},100)}};
_.z.getCurrentShort=function(){if(this.currentEndpoint){var K=this.currentEndpoint;if(this.isNonVideoContentCommand(K)){var X=_.T(K,_.r4);return{reelNonVideoContentRenderer:_.T(X==null?void 0:X.renderer,_.B9E),command:K}}if(this.data){var F;X=(F=_.T(this.currentEndpoint,_.J6))==null?void 0:F.thumbnail;var P;F=(P=this.data.overlay)==null?void 0:P.reelPlayerOverlayRenderer;_.i9().resolve(_.fE);K=this.data;var H,f;P=(H=K.overlay)==null?void 0:(f=H.shortsAdsRenderer)==null?void 0:f.adSlots;if(P!==void 0)P.length===
0?(_.Ey("Shorts ads returned no ad slots."),K=void 0):(P.length>1&&_.Ey("Shorts ads has more than one ad slots."),K=_.T(P[0],_.IVZ));else{var u,J;K=_.T((u=K.overlay)==null?void 0:(J=u.shortsAdsRenderer)==null?void 0:J.overlay,_.IVZ)}u=K;K=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.T(this.currentEndpoint,_.J6),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:F,thumbnail:X,command:K,adsOverlay:u}}}};
_.z.created=function(){var K=this;this.scrollToVideoThrottle=new _.VW(function(X){var F;(F=K.getActiveReelVideo(X))==null||F.scrollIntoView({behavior:"smooth",block:"nearest",inline:K.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.VW(function(X){var F;(F=K.getActiveReelVideo(X))==null||F.scrollIntoView({behavior:"auto",block:"nearest",inline:K.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.z.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.z.attached=function(){var K=this;GWJ(this);this.pageScrollElement=_.C$(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.Pc(this,this.processResetAction));_.S("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.S("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var X=K.getActiveReelVideo(K.activeIndex);
K.maybeCreateIntersectionObserver();X==null||X.scrollIntoView({behavior:"instant",block:"nearest",inline:K.enableScrollIntoViewCenter?"center":"start"});K.shortsContainer.style.overflowY="scroll"}))};
_.z.calculateSqueezebackPanelSize=function(){var K=this,X=window.innerWidth-456-(window.innerHeight-106)*.5625;_.A9.addLowPriorityJob(function(){X<360?_.aA().dispatch(ayF(!0)):(K.hostElement.style.setProperty("--anchored-panel-width",Math.min(X,480)+"px"),_.aA().dispatch(ayF(!1)))})};
_.z.detached=function(){var K=_.i9().resolve(_.fE);K.rootElement=void 0;var X;(X=K.unsubscribeFromStore)==null||X.call(K);K.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.Pc(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.z.onResizeFinished=function(K,X){var F=this,P=new ResizeObserver(function(){F.shortsContainer.style.overflowY="hidden";_.A9.addLowPriorityJob(function(){X()},100)});
P.observe(K);return P};
_.z.resetDocumentScrollTop=function(){var K,X;if((K=document)==null?0:(X=K.scrollingElement)==null?0:X.scrollTop)document.scrollingElement.scrollTop=0};
_.z.loadPage_=function(K){var X=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),K){var F;if((F=_.T(this.currentEndpoint,_.J6))==null?0:F.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=K;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){X.isPlayerStarted&&
(X.handleOnPlaybackCommand(),X.afterPlayerStarted=function(){})};
this.registerPanel(K)}};
_.z.afterPlayerStarted=function(){};
_.z.handleOnPlaybackCommand=function(){if(_.S("web_shorts_comment_stickers")&&this.isPlayerStarted){var K,X=(K=_.T(this.currentEndpoint,_.J6))==null?void 0:K.onPlaybackCommand;X&&this.ytComponentBehavior.resolveCommand(X)}};
_.z.maybeCreateIntersectionObserver=function(){var K=this,X=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==X){this.intersectionObserverThreshold=X;var F={rootMargin:"0px",threshold:X},P;(P=this.intersectionObserver)==null||P.disconnect();this.intersectionObserver=new IntersectionObserver(function(H){H=_.D(H);for(var f=H.next();!f.done;f=H.next())if(f=f.value,f.intersectionRatio>X){f=Number(f.target.id);if(isNaN(f))break;if(f===K.index)break;
_.Hwn();K.loadVideo(f);_.wb("r_vtc")}},F);
this.observeShorts()}};
_.z.observeShorts=function(){var K=[].concat(_.LZ(_.C$(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));K=_.D(K);for(var X=K.next();!X.done;X=K.next()){X=X.value;var F=void 0;(F=this.intersectionObserver)==null||F.observe(X)}};
_.z.initCsi=function(){_.AC("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var K={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"}},X,F;if((X=this.playerData)==null?0:(F=X.cacheMetadata)==null?0:F.isCacheHit)K.isCacheHit=!0;var P;if(X=(P=_.T(this.currentEndpoint,_.J6))==null?void 0:
P.prefetchTaskId)K.prefetchInfo={taskId:X};_.T6(K)};
_.z.isAd=function(){var K,X;return!!((K=_.T(this.currentEndpoint,_.J6))==null?0:(X=K.adClientParams)==null?0:X.isAd)};
_.z.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.z.getPlayerContainer=function(){var K;return(K=_.C$(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:K.playerContainer};
_.z.onPlayerStateChange=function(K){var X=this;this.isPlayerPaused=K===2;K!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?K===1&&this.index===0&&(this.isPlayerStarted||_.aA().dispatch(s9(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.aA().dispatch(s9(!0)));this.player&&!this.player.getLoopVideo()&&_.A9.addLowPriorityJob(function(){X.getShortsLoopSetting().then(function(F){var P;(P=X.player)==null||P.setLoopVideo(F)})});
this.isPlayerPaused&&_.S("web_shorts_paused_state_logging")&&_.G6(_.AD(),[this.reelPlayerPausedStateRendererVe])};
_.z.isInBackground=function(){var K=window.document.visibilityState;return!(!K||K==="visible")};
_.z.isShortPlayable=function(){if(_.S("kevlar_playable_short_killswitch"))return!0;var K;return(K=this.playerData)!=null&&K.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.z.setNormalPlaybackSpeed=function(){var K=this,X,F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,K.getPlayer().getPlayerPromise(),2);X=P.yieldResult;F=X.getPlaybackRate();F!==1&&(K.storedPlaybackSpeed=F,X.setPlaybackRate(1));_.JT(P)})};
_.z.restorePlaybackSpeed=function(){var K=this,X;return _.q(function(F){if(F.nextAddress==1)return K.storedPlaybackSpeed===null?F.jumpTo(0):_.Y(F,K.getPlayer().getPlayerPromise(),3);X=F.yieldResult;X.setPlaybackRate(K.storedPlaybackSpeed);K.storedPlaybackSpeed=null;_.JT(F)})};
_.z.playerDataChanged=function(){var K=this,X,F,P,H,f,u,J,Z,M;return _.q(function(n){if(n.nextAddress==1){X=K.getPlayer();_.S("web_shorts_dynamic_intersection_observer_threshold")&&((F=K.intersectionObserver)==null||F.disconnect());if(K.playerData){if(((P=K.playerData.videoDetails)==null?void 0:P.videoId)!==((H=X.getPlayer())==null?void 0:H.getVideoData().video_id)){f={};if(u=_.T(K.currentEndpoint,_.J6))f.watch_endpoint=u,u.endTimeSeconds&&(f.end=u.endTimeSeconds);X.loadVideoWithPlayerResponse(K.playerData,
f)}}else return n.return();return K.player?n.jumpTo(2):_.Y(n,X.getPlayerPromise(),3)}n.nextAddress!=2&&(K.player=n.yieldResult,K.JSC$19727_playerStateChangeListener=K.onPlayerStateChange.bind(K),K.player.addEventListener("onStateChange",K.JSC$19727_playerStateChangeListener),_.S("kevlar_client_enable_shorts_player_bootstrap")&&_.GX(),K.scrollToVideoThrottle.fire(K.index),K.movePlayerToVideo(K.index),_.A9.addLowPriorityJob(function(){K.getShortsLoopSetting().then(function(c){var B;(B=K.player)==null||
B.setLoopVideo(c)})}),_.HAW.resolve(K.player),K.player.syncVolume(),K.getPlayer().focusOnPlayer());
_.S("web_shorts_caption_language_entity_killswitch")||_.A9.addLowPriorityJob(function(){var c=_.i9().resolve(_.fE),B,L=(B=K.player)==null?void 0:B.getOption("captions","track");B=_.XF("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(L){var A,d=(A=_.sy(_.CIy,B)())==null?void 0:A.value,R;A=typeof(L==null?void 0:L.translationLanguage)==="object"&&((R=L.translationLanguage)==null?void 0:R.languageName)||L.displayName||"";d!==A&&c.store.dispatch(_.zl("stringEntity",B,{key:B,value:A.toString()}))}else c.store.dispatch(_.zl("stringEntity",
B,{key:B,value:"CAPTIONS_UNAVAILABLE"}))});
_.A9.addLowPriorityJob(function(){K.observeShorts()},100);
J=K.player.getPlayerState(K.player.getPresentingPlayerType());J!==1||K.isPlayerStarted||_.aA().dispatch(s9(!0));K.updateBackNavContainerWidth();Z=_.T(K.currentEndpoint,_.J6);((M=Z)==null?0:M.startTimeSeconds)&&K.player.seekTo(Z.startTimeSeconds);if(K.JSC$19727_cinematicController||K.cinematicsInitializeJobId)return n.return();K.cinematicsInitializeJobId=_.A9.addLowPriorityJob(function(){K.initCinematicController();K.cinematicsInitializeJobId=void 0});
_.JT(n)})};
_.z.onShortUndoDismiss=function(){var K=this,X=ly5().pop();X!==void 0&&(_.tg(this,function(){K.showCardWithIndex(X)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.z.onShortsDismiss=function(K){if(K=K.detail.reelDismissalActionRenderer)(K=_.T(K.onDismissalCompletionRenderer,_.NW8))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:K}}}),this.scrollAndDismissCard()};
_.z.processReelNonVideoContentDismissalCommand=function(K){var X=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);K=_.T(K,Nyd);this.activeDimissalTimeout=setTimeout(function(){X.scrollAndDismissCard()},Number(K==null?void 0:K.delayMs))};
_.z.scrollAndDismissCard=function(){var K=this,X=this.index;ly5().push(X);_.tg(this,function(){var F=K.getPlayableNextIndex();F!==null&&(F=K.getActiveReelVideo(F),K.hideCardWithIndex(X),F==null||F.scrollIntoView({behavior:"smooth",block:"nearest",inline:K.enableScrollIntoViewCenter?"center":"start"}))})};
_.z.hideCardWithIndex=function(K){if(K=this.getActiveReelVideo(K))K.hidden=!0};
_.z.showCardWithIndex=function(K){if(K=this.getActiveReelVideo(K))K.hidden=!1};
_.z.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.z.activeChanged=function(K){_.aA().dispatch(_.iY({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:K}}));if(K)document.addEventListener("keydown",_.Pc(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var X;(X=this.player)==null||X.sendAbandonmentPing()}var F;(F=this.player)==null||F.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.Pc(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.z.graftClientVisualElements=function(){if(this.data){var K=_.uH();_.PsT(K,_.F0({response:this.reelWatchSequenceResponse}));_.k2(K,this.nextReelVe);_.k2(K,this.prevReelVe);_.S("kevlar_shorts_auto_advance")&&(_.k2(K,this.loopToggleOffVe),_.k2(K,this.loopToggleOnVe));_.k2(K,this.ambientModeToggleVe);_.G6(_.AD(),[this.nextReelVe,this.prevReelVe]);_.S("web_shorts_paused_state_logging")&&_.k2(K,this.reelPlayerPausedStateRendererVe)}};
_.z.graftNvcRenderer=function(){var K,X,F,P,H=this.index<0?(K=this.shortsProcessedPrevSequence)==null?void 0:(X=K[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:X.command:(F=this.shortsProcessedSequence)==null?void 0:(P=F[this.index])==null?void 0:P.command;if(H&&this.isNonVideoContentCommand(H)){K=_.T(H,_.r4);var f,u;(K=(f=_.T(K==null?void 0:K.renderer,_.B9E))==null?void 0:(u=f.loggingDirectives)==null?void 0:u.trackingParams)&&_.uH().graftServerVe(K)}};
_.z.setActiveIndex=function(){_.i9().resolve(_.fE).setActiveIndex(this.index)};
_.z.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.z.lazyUpdateMiniplayerData=function(){var K=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.A9.addLowPriorityJob(function(){K.updateMiniplayerData();K.updateMiniplayerDataJobId=void 0}))};
_.z.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.A9.cancelJob(this.updateMiniplayerDataJobId)};
_.z.updateMiniplayerData=function(){var K,X,F,P=_.i9().resolve(_.Wj),H={shortsData:this.getCurrentShort(),previousButtonDisabled:!((K=this.prevButtonData)==null||!K.isDisabled),nextButtonDisabled:!((X=this.nextButtonData)==null||!X.isDisabled),playabilityStatus:(F=this.playerData)==null?void 0:F.playabilityStatus};_.pr(P,H)};
_.z.resetPlayerLocation=function(){var K=this.getPlayer();this.initialPlayerContainer&&K.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.z.movePlayerToVideo=function(K,X){var F=this;X=X===void 0?!0:X;var P=this.getActiveReelVideo(K),H=this.getPlayer();if(P){this.overlayContainer||(this.overlayContainer=_.C$(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||H.appendTo(this.overlayContainer.playerContainer,void 0,!0));P.appendChild(this.overlayContainer);var f;(f=this.player)==null||f.setSize(NaN,NaN);this.isActive||_.cu(_.A9,function(){F.isActive=!0});
H.style.visibility="visible";_.S("reels_web_disable_rtr_tick")||_.S("reels_web_use_pbs_first_shorts")&&K===0||_.Ac("r_tr");this.currentPlayerIndex=K;P.appendChild(this.errorScreenContainer);var u;(u=this.JSC$19727_cinematicController)==null||_.Sd1(u)}else X?_.A9.addLowPriorityJob(function(){F.movePlayerToVideo(F.index,!1)}):Math.random()<=_.kU("web_shorts_error_logging_threshold")&&_.wc(new _.nG("Trying to movePlayerToVideo with undefined container.",{firstAttempt:X,
index:K}))};
_.z.enableFormatFirst=function(K){return _.S("web_enable_format_first")||K.adsOverlay&&_.S("web_enable_format_first_ads_only")||K.reelPlayerOverlayRenderer&&_.S("web_enable_format_first_organic_only")};
_.z.getAspectRatio=function(K){if(K!=null&&K.thumbnail&&this.enableFormatFirst(K))return"--ytd-shorts-player-ratio: "+TyV(K.thumbnail)};
_.z.getBackgroundImage=function(K){if(K!=null&&K.thumbnail)return(K=_.CB(K.thumbnail.thumbnails))?'background-image:url("'+K+'");':"background-color:black;"};
_.z.onPersistentPanelActiveChanged=function(){var K=this.getCurrentShort();if(K&&this.enableFormatFirst(K)&&(K==null?0:K.thumbnail)&&TyV(K.thumbnail)!==.5625){var X;(X=this.player)==null||X.setSize(NaN,NaN)}};
_.z.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.z.moveCinematicsToVideo=function(){var K=_.C$(this.hostElement).querySelector("ytd-reel-video-renderer");(K==null?0:K.cinematicContainer)&&K.cinematicContainer!==this.shortsCinematicContainer.parentElement&&K.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.z.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.z.updatePrevButtonData=function(){var K=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(K){var X;this.prevButtonData=K=Object.assign({},K,{accessibility:{label:_.uY("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:K.isDisabled||this.index===-(((X=this.shortsProcessedPrevSequence)==null?void 0:X.length)||0),tooltip:this.isUpArrowHidden?"":_.uY("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=K=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.z.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.z.updateNextButtonData=function(){var K=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(K){var X;this.nextButtonData=K=Object.assign({},K,{accessibility:{label:_.uY("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:K.isDisabled||this.index===((X=this.shortsProcessedSequence)==null?void 0:X.length),tooltip:_.uY("NEXT_VIDEO_LABEL")||""})}};
_.z.getPlayablePreviousIndex=function(){for(var K,X=this.index-1;X>=-(((K=this.prevShortsSequence)==null?void 0:K.length)||0);X--)if(!ly5().includes(X))return X;return null};
_.z.getIndexInSequence=function(K,X){return K.findIndex(function(F){var P;return((P=_.T(F.command,_.J6))==null?void 0:P.videoId)===X})};
_.z.handlePrevButtonClick=function(K){var X=this,F,P;return _.q(function(H){F=X.getPlayablePreviousIndex();if(F===null)return H.return();X.gestureType=((P=K)==null?void 0:P.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";F===0&&(X.hidePreviousButtonImmediately=!0);if(X.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){X.transitionToVideoThrottle.fire(F)}),H.return();
X.scrollToVideoThrottle.fire(F);_.JT(H)})};
_.z.getPlayableNextIndex=function(){for(var K,X=this.index+1;X<(((K=this.shortsProcessedSequence)==null?void 0:K.length)||0);X++)if(!ly5().includes(X))return X;return null};
_.z.handleNextButtonClick=function(K,X){var F=this,P,H;return _.q(function(f){P=F.getPlayableNextIndex();if(P===null)return f.return();P===1&&(F.showPreviousButtonImmediately=!0);F.gestureType=((H=K)==null?void 0:H.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";X&&(F.gestureType=X);if(F.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){F.transitionToVideoThrottle.fire(P)}),f.return();
F.scrollToVideoThrottle.fire(P);_.JT(f)})};
_.z.handleReelNavigateCommand=function(K,X,F){(K=_.T(K,Cgt))&&X&&K.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(F)};
_.z.loadVideo=function(K,X){X=X===void 0?!1:X;if(K!==this.currentPlayerIndex){_.aA().dispatch(s9(!1));if(this.isAd()&&!X){var F;(F=this.player)==null||F.notifyShortsAdSwipeEvent()}if((X=this.JSC$19727_cinematicController)!=null){var P;(P=X.currentCinematicEffect)==null||P.pause()}if((P=this.JSC$19727_cinematicController)!=null){var H;(H=P.currentCinematicEffect)==null||H.clear()}P=K>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(P));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var f,u,J,Z;H=K<0?(f=this.shortsProcessedPrevSequence)==null?void 0:(u=f[this.shortsProcessedPrevSequence.length+K])==null?void 0:u.command:(J=this.shortsProcessedSequence)==null?void 0:(Z=J[K])==null?void 0:Z.command;this.index=K;this.gestureType||(this.gestureType=P?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
H&&this.isVideoContentCommand(H)&&(this.ytComponentBehavior.resolveCommand(H,{form:{createScreenConfig:{clickedVisualElement:P?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(H&&this.isNonVideoContentCommand(H)){this.currentEndpoint=H;this.data=void 0;f=_.uH();u=_.T(H,_.r4);var M,n;(u=(M=_.T(u==null?void 0:u.renderer,_.B9E))==null?void 0:(n=M.screenLoggingData)==null?void 0:n.screenVeType)&&_.IZ(f,u);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(M=this.getActiveReelVideo(K))&&M.appendChild(this.overlayContainer)}var c,B;if(((c=this.reelWatchSequenceResponse)==null?0:c.continuationEndpoint)&&((B=this.reelWatchSequenceResponse)==null?0:B.entries)&&K===this.reelWatchSequenceResponse.entries.length-1){var L,A;c={contentPlaybackContext:_.Qh({},(A=_.T((L=this.currentEndpoint)==null?void 0:L.commandMetadata,_.g_))==null?void 0:A.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:c})}var d,R,l;((d=this.reelWatchSequenceResponse)==null?0:d.prevContinuationEndpoint)&&K===-(((R=this.reelWatchSequenceResponse)==null?void 0:(l=R.prevEntries)==null?void 0:l.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.z.setMiniplayerPreview=function(K){K=(K===void 0?0:K)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var X,F,P=_.i9().resolve(_.Wj),H={shortsData:void 0,shortsPreviewThumbnail:K?(X=this.shortsProcessedSequence)==null?void 0:(F=X[K])==null?void 0:F.thumbnail:void 0};_.pr(P,H)};
_.z.updateTitle=function(K){var X,F;K=(K==null?0:K.adSlots)?"":(F=K==null?void 0:(X=K.videoDetails)==null?void 0:X.title)!=null?F:"";_.iX(this.hostElement,"yt-update-title",K)};
_.z.registerPanel=function(K){var X=_.i9().resolve(_.cR);if(X){K=_.D(K.engagementPanels||[]);for(var F=K.next();!F.done;F=K.next()){F=F.value;var P=F.engagementPanelSectionListRenderer,H=void 0,f=void 0,u=void 0,J=void 0,Z=((H=P)==null?void 0:H.targetId)||((f=P)==null?void 0:f.panelIdentifier)||((u=P)==null?void 0:(J=u.identifier)==null?void 0:J.tag);H=P=void 0;(H=(P=X).registerPanelContent)==null||H.call(P,Z,F)}}};
_.z.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.reelWatchSequenceResponse=this.data=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.aA().dispatch(s9(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.aA().dispatch(v6v(!1));var K=_.i9().resolve(_.fE);K.dismissedIndices=[];K.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.i9().resolve(_.Wj).close(!0)};
_.z.processAppendReelWatchSequenceContinuationEntriesAction=function(K){var X=this,F;(F=this.intersectionObserver)==null||F.disconnect();K=K.appendReelWatchSequenceContinuationEntriesAction;if(K==null?0:K.entries){var P;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.LZ(((P=this.reelWatchSequenceResponse)==null?void 0:P.entries)||[]),_.LZ(K.entries)),continuationEndpoint:K.continuationEndpoint})}else if(K==null?0:K.prevEntries){var H;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.LZ(((H=this.reelWatchSequenceResponse)==null?void 0:H.prevEntries)||[]),_.LZ(K.prevEntries)),prevContinuationEndpoint:K.prevContinuationEndpoint});_.A9.addLowPriorityJob(function(){X.movePlayerToVideo(X.index);var f;(f=X.getActiveReelVideo(X.index))==null||f.scrollIntoView({block:"nearest",inline:X.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.A9.addLowPriorityJob(function(){X.observeShorts()},100)};
_.z.processWatchSequence=function(K){var X=this;return K.map(function(F){F=F.command;if(X.isVideoContentCommand(F)){var P=_.T(F,_.J6);return{reelPlayerOverlayRenderer:_.T(P==null?void 0:P.overlay,_.Srt),thumbnail:P.thumbnail,command:F}}return X.isNonVideoContentCommand(F)?(P=_.T(F,_.r4),{reelNonVideoContentRenderer:_.T(P==null?void 0:P.renderer,_.B9E),command:F}):{command:F}})};
_.z.calculateIntersectionObserverThreshold=function(){if(!_.S("web_shorts_dynamic_intersection_observer_threshold"))return.6;var K=_.C$(this.hostElement).querySelector("ytd-reel-video-renderer"),X=1;(K==null?0:K.offsetHeight)&&(K==null?0:K.offsetWidth)&&(X=Math.min(K.offsetHeight,this.shortsContainer.offsetHeight)/K.offsetHeight*(Math.min(K.offsetWidth,this.shortsContainer.offsetWidth)/K.offsetWidth));return Math.round(X*.6*10)/10};
_.z.isVideoContentCommand=function(K){_.i9().resolve(_.fE);return!!_.T(K,_.J6)};
_.z.isNonVideoContentCommand=function(K){_.i9().resolve(_.fE);return!!_.T(K,_.r4)};
_.z.initCinematicController=function(){var K=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19727_cinematicController=new _.H3(this.shortsCinematicContainer,this.player);var X,F=_.T((X=this.data)==null?void 0:X.background,_.Lh);_.Byw(this.JSC$19727_cinematicController,F);_.pZV(this.JSC$19727_cinematicController,o6V(F));_.cXs(this.JSC$19727_cinematicController);_.A9.addLowPriorityJob(function(){K.moveCinematicsToVideo()})}};
_.z.handleMiniplayerNavigateShorts=function(K){K==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():K==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.z.handleSignalActionToggleShortsPictureInPicture=function(){if(_.i9().resolve(_.Wj).pictureInPictureSupported()){var K=_.i9().resolve(_.fE);if(_.S("web_shorts_pip")){var X=_.i9().resolve(_.Wj);K.isShortsPipActive()?X.deactivate():X.isMiniplayerActive()||(_.zC().shortsPipActivation=!0,_.v5o(X))}}else(K=this.player)==null||K.togglePictureInPicture()};
_.Oi.Object.defineProperties(MH.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.reelWatchSequenceResponse)!=null&&K.prevEntries)return this.processWatchSequence([].concat(_.LZ(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var K=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!K)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var X=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.LZ(this.prevShortsSequence.slice(0,X)),[K],_.LZ(this.prevShortsSequence.slice(X+
1)))}X=this.index+this.shortsProcessedPrevSequence.length;K.thumbnail=this.shortsProcessedPrevSequence[X].thumbnail;return[].concat(_.LZ(this.shortsProcessedPrevSequence.slice(0,X)),[K],_.LZ(this.shortsProcessedPrevSequence.slice(X+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.reelWatchSequenceResponse)!=null&&K.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var K=this.getCurrentShort();if(!K||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[K];if(K==null||!K.reelNonVideoContentRenderer){var X=this.getIndexInSequence(this.shortsSequence,_.T(this.currentEndpoint,_.J6).videoId);if(this.index===0&&X!==-1)return this.currentPlayerIndex=this.index=X,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.LZ(this.shortsSequence.slice(0,this.index)),[K],_.LZ(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){K.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var F,P,H,f;X=((P=_.T((F=this.shortsProcessedSequence[0])==null?void 0:F.command,_.J6))==null?void 0:P.videoId)===((f=_.T((H=this.shortsSequence[0])==null?void 0:H.command,_.J6))==null?void 0:f.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.LZ(this.shortsProcessedSequence.slice(0,
this.index)),[K],_.LZ(this.shortsSequence.slice(X)))}return[K].concat(_.LZ(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var K=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;K&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(K)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 K,X;return this.index===((K=this.reelWatchSequenceResponse)==null?void 0:(X=K.entries)==null?void 0:X.length)}var F;return!((F=this.reelWatchSequenceResponse)==null?0:F.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var K;(K=this.delayedActiveIndexUpdateDebouncer)==null||K.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return this.isShortPlayable()||((X=_.T((K=this.data)==null?void 0:K.watchStatus,_.WNU))==null?void 0:(F=X.style)==null?void 0:F.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var K=this,X=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),F;if((this.data||X)&&(((F=this.data)==null?0:F.engagementPanels)||this.isAd()||X)){X=!1;this.activePanel="shorts-comments-panel";var P;F=_.D(((P=this.data)==null?void 0:P.engagementPanels)||[]);for(P=F.next();!P.done;P=F.next()){P=P.value.engagementPanelSectionListRenderer;var H=void 0,f=void 0,u=void 0,J=void 0;if((((H=P)==null?void 0:(f=H.identifier)==
null?void 0:f.tag)||((u=P)==null?void 0:u.targetId)||((J=P)==null?void 0:J.panelIdentifier))===this.activePanel){X=!0;break}}if(this.isPersistentPanelActive){var Z=_.i9().resolve(_.cR);_.cu(_.A9,function(){Z.showPanel(K.activePanel,void 0,void 0,void 0,null)},100)}var M;
F=[].concat(_.LZ(Object.values(((M=this.data)==null?void 0:M.engagementPanels)||{})));if(_.S("enable_preview_panel_for_shorts_search_suggested_action")){var n,c,B,L,A;((L=_.T((n=this.data)==null?void 0:(c=n.overlay)==null?void 0:(B=c.reelPlayerOverlayRenderer)==null?void 0:B.metapanel,_.pTL))==null?void 0:(A=L.metadataItems)==null?void 0:A.find(function(d){var R,l;return((R=_.T(d,x8G))==null?void 0:(l=R.icon)==null?void 0:l.iconType)==="SEARCH"}))!==void 0&&F.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}M=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);n=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return M===void 0&&n===void 0||(M==null?0:M.isDisabled)||(n==null?void 0:n.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!X?(X=F==null?void 0:F.findIndex(function(d){var R,
l;return((R=d.engagementPanelSectionListRenderer)==null?void 0:(l=R.identifier)==null?void 0:l.tag)==="shorts-comments-panel"}),X===-1||X===void 0||F!=null&&F.splice(X,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.uY("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.uY("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:_.uY("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.uY("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(_.LZ(Object.values(F||
{})))):F}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.shortsProcessedSequence)==null?void 0:K[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var K=this,X,F,P;if((X=this.playerData)==null?0:(F=X.playabilityStatus)==null?0:(P=F.errorScreen)==null?0:P.playerInterstitialRenderer)return _.A9.addLowPriorityJob(function(){K.movePlayerToVideo(K.index)}),this.playerData.playabilityStatus.errorScreen;
var H,f;return((H=this.data)==null?void 0:H.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((f=this.data)==null?0:f.watchStatus)&&_.T(this.data.watchStatus,_.WDC)?(_.A9.addLowPriorityJob(function(){K.movePlayerToVideo(K.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.Oi.Object.defineProperties(MH,{template:{configurable:!0,enumerable:!0,get:function(){if(kWd===void 0){var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-background="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);kWd=K}K=kWd;return K}}});
MH.prototype.onNextButtonDataChange=MH.prototype.onNextButtonDataChange;MH.prototype.onPrevButtonDataChange=MH.prototype.onPrevButtonDataChange;MH.prototype.onPersistentPanelActiveChanged=MH.prototype.onPersistentPanelActiveChanged;MH.prototype.lazyUpdateMiniplayerData=MH.prototype.lazyUpdateMiniplayerData;MH.prototype.onShortsPipActiveChanged=MH.prototype.onShortsPipActiveChanged;MH.prototype.setActiveIndex=MH.prototype.setActiveIndex;MH.prototype.graftNvcRenderer=MH.prototype.graftNvcRenderer;
MH.prototype.graftClientVisualElements=MH.prototype.graftClientVisualElements;MH.prototype.onActiveChanged=MH.prototype.onActiveChanged;MH.prototype.onShortsDismiss=MH.prototype.onShortsDismiss;MH.prototype.onShortUndoDismiss=MH.prototype.onShortUndoDismiss;MH.prototype.playerDataChanged=MH.prototype.playerDataChanged;MH.prototype.afterPlayerStarted=MH.prototype.afterPlayerStarted;MH.prototype.unhideCurrentOverlay=MH.prototype.unhideCurrentOverlay;MH.prototype.onServiceRequestCompleted=MH.prototype.onServiceRequestCompleted;
MH.prototype.engagementPanelsChanged=MH.prototype.engagementPanelsChanged;MH.prototype.onFullscreenChange=MH.prototype.onFullscreenChange;MH.prototype.onResize=MH.prototype.onResize;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],MH.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.j2.YtPageBehavior),_.g("design:type",Object)],MH.prototype,"ytPageBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],MH.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.W(_.SL),_.g("design:type",Object)],MH.prototype,"ironResizableBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],MH.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.yD),_.g("design:type",Object)],MH.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.W(_.RW.YtdGuideStateAwareBehavior),_.g("design:type",Object)],MH.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],MH.prototype,"ytdReduxBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],MH.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],MH.prototype,"playerData",void 0);_.O([_.h(),_.g("design:type",Object)],MH.prototype,"reelWatchSequenceResponse",void 0);_.O([_.h(),_.g("design:type",Object)],MH.prototype,"cachedReelWatchSequenceResponse",void 0);_.O([_.h(),_.g("design:type",Object)],MH.prototype,"currentEndpoint",void 0);_.O([_.h(),_.g("design:type",Object)],MH.prototype,"nextButtonData",void 0);
_.O([_.h(),_.g("design:type",Object)],MH.prototype,"prevButtonData",void 0);_.O([_.h(),_.g("design:type",Object)],MH.prototype,"isPreviousPageShorts",void 0);_.O([_.h(),_.g("design:type",Object)],MH.prototype,"index",void 0);_.O([_.h(),_.g("design:type",Object)],MH.prototype,"delayedActiveIndex",void 0);_.O([_.h(),_.g("design:type",Object)],MH.prototype,"playablePreviousIndex",void 0);_.O([_.h(),_.g("design:type",Object)],MH.prototype,"player",void 0);
_.O([_.h(),_.g("design:type",Object)],MH.prototype,"isPlayerPaused",void 0);_.O([_.h({selector:AXW}),_.g("design:type",Object)],MH.prototype,"isPlayerStarted",void 0);_.O([_.h(),_.g("design:type",Object)],MH.prototype,"intersectionObserver",void 0);_.O([_.h(),_.g("design:type",Number)],MH.prototype,"cinematicsInitializeJobId",void 0);_.O([_.h(),_.g("design:type",Number)],MH.prototype,"updateMiniplayerDataJobId",void 0);_.O([_.h(),_.g("design:type",Object)],MH.prototype,"fitToVisibleBounds",void 0);
_.O([_.h(),_.g("design:type",Object)],MH.prototype,"pageSubtype",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],MH.prototype,"enablePreviousContinuation",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],MH.prototype,"shortsPipEnabled",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],MH.prototype,"isDark",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],MH.prototype,"shortsViewTransitions",void 0);
_.O([_.h({selector:_.sD,reflectToAttribute:!0}),_.g("design:type",Object)],MH.prototype,"isFullscreen",void 0);_.O([_.h({selector:_.zX,reflectToAttribute:!0}),_.g("design:type",Object)],MH.prototype,"isShortsPipActive",void 0);_.O([_.fa("#shorts-inner-container"),_.g("design:type",HTMLElement)],MH.prototype,"shortsInnerContainer",void 0);_.O([_.fa("#back-nav-button ytd-button-renderer"),_.g("design:type",_.t1)],MH.prototype,"backNavButton",void 0);
_.O([_.fa("#shorts-container"),_.g("design:type",HTMLElement)],MH.prototype,"shortsContainer",void 0);_.O([_.gh("error-screen"),_.g("design:type",HTMLElement)],MH.prototype,"errorScreenContainer",void 0);_.O([_.gh("player"),_.g("design:type",Object)],MH.prototype,"playerElement",void 0);_.O([_.gh("shorts-cinematic-container"),_.g("design:type",HTMLElement)],MH.prototype,"shortsCinematicContainer",void 0);
_.O([_.gh("initial-player-container"),_.g("design:type",HTMLElement)],MH.prototype,"initialPlayerContainer",void 0);_.O([_.h(),_.g("design:type",Object)],MH.prototype,"buttonOverride",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],MH.prototype,"anchoredPanelActive",void 0);_.O([_.h(),_.g("design:type",String)],MH.prototype,"activePanel",void 0);_.O([_.h(),_.g("design:type",Object)],MH.prototype,"isActive",void 0);
_.O([_.h({selector:rXs,reflectToAttribute:!0}),_.g("design:type",Object)],MH.prototype,"smallScreenPersistentPanel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],MH.prototype,"isPersistentPanelActive",void 0);_.O([_.h(),_.g("design:type",Object)],MH.prototype,"smallScreenSqueezeBack",void 0);_.O([_.h(),_.g("design:type",Object)],MH.prototype,"enableScrollIntoViewCenter",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],MH.prototype,"formatFirst",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],MH.prototype,"enableFlexibleOverlay",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],MH.prototype,"useAspectRatio",void 0);_.O([_.h(),_.g("design:type",Object)],MH.prototype,"panelContainer",void 0);_.O([_.h(),_.g("design:type",Object)],MH.prototype,"overlayContainer",void 0);_.O([_.h(),_.g("design:type",Object)],MH.prototype,"isShortsInitialized",void 0);
_.O([_.U("reelWatchSequenceResponse"),_.g("design:type",Object),_.g("design:paramtypes",[])],MH.prototype,"prevShortsSequence",null);_.O([_.U("data","prevShortsSequence"),_.g("design:type",Object),_.g("design:paramtypes",[])],MH.prototype,"shortsProcessedPrevSequence",null);_.O([_.U("reelWatchSequenceResponse"),_.g("design:type",Object),_.g("design:paramtypes",[])],MH.prototype,"shortsSequence",null);
_.O([_.U("data","shortsSequence"),_.g("design:type",Object),_.g("design:paramtypes",[])],MH.prototype,"shortsProcessedSequence",null);_.O([_.h({reflectToAttribute:!0}),_.U("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],MH.prototype,"isUpArrowHidden",null);
_.O([_.h({reflectToAttribute:!0}),_.U("reelWatchSequenceResponse","index","endOfNextContinuation"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],MH.prototype,"isDownArrowHidden",null);_.O([_.h(),_.U("index"),_.g("design:type",Number),_.g("design:paramtypes",[])],MH.prototype,"activeIndex",null);_.O([_.U("isShortPlayable","data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],MH.prototype,"shouldRenderOfflineContent",null);
_.O([_.Hc("iron-resize"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MH.prototype,"onResize",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],MH.prototype,"anchoredEngagementPanels",null);_.O([_.h(),_.g("design:type",Object)],MH.prototype,"watchWhileEngagementPanels",void 0);_.O([_.so("isFullscreen"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MH.prototype,"onFullscreenChange",null);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MH.prototype,"engagementPanelsChanged",null);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.G9]),_.g("design:returntype")],MH.prototype,"onServiceRequestCompleted",null);_.O([_.U("data","shortsSequence","index"),_.g("design:type",Object),_.g("design:paramtypes",[])],MH.prototype,"activeReel",null);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MH.prototype,"unhideCurrentOverlay",null);_.O([_.so("isPlayerStarted"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MH.prototype,"afterPlayerStarted",null);_.O([_.U("playerData","reelWatchSequenceResponse","data"),_.g("design:type",Object),_.g("design:paramtypes",[])],MH.prototype,"errorScreen",null);
_.O([_.U("errorScreen"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],MH.prototype,"hasError",null);_.O([_.so("playerData"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype",Promise)],MH.prototype,"playerDataChanged",null);_.O([_.Hc("yt-dismissible-item-undo-feedback"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MH.prototype,"onShortUndoDismiss",null);
_.O([_.Hc("yt-disable-lockup-interaction"),_.g("design:type",Function),_.g("design:paramtypes",[Object]),_.g("design:returntype")],MH.prototype,"onShortsDismiss",null);_.O([_.JA("active"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MH.prototype,"onActiveChanged",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MH.prototype,"graftClientVisualElements",null);
_.O([_.so("currentPlayerIndex"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MH.prototype,"graftNvcRenderer",null);_.O([_.so("index"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MH.prototype,"setActiveIndex",null);_.O([_.so("isShortsPipActive"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MH.prototype,"onShortsPipActiveChanged",null);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MH.prototype,"lazyUpdateMiniplayerData",null);_.O([_.h(),_.g("design:type",Object)],MH.prototype,"onOverlayDensityChanged",void 0);_.O([_.so("isPersistentPanelActive"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MH.prototype,"onPersistentPanelActiveChanged",null);
_.O([_.so("index","data","isUpArrowHidden"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MH.prototype,"onPrevButtonDataChange",null);_.O([_.so("index","data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MH.prototype,"onNextButtonDataChange",null);MH=_.O([_.v({is:"ytd-shorts"})],MH);_.NA.registerService(_.UNP,MH);
_.d0();
}catch(e){_._DumpException(e)}
try{
_.W_("JzFVk");
var LBk=function(K){return _.Q("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},ok5(K.data.ctaButton,{buttonViewModel:{}}),_.Q(_.Oy,{text:K.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var TW5;var r2W;var U5=function(){return _.G.apply(this,arguments)||this};
_.r(U5,_.G);U5.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
U5.prototype.computeBlueBottomLink=function(K){return K};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],U5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],U5.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],U5.prototype,"data",void 0);_.O([_.h({computed:"computeIcon_(data.bottomIcon)"}),_.g("design:type",String)],U5.prototype,"bottomIcon",void 0);
_.O([_.h({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.g("design:type",Boolean)],U5.prototype,"enableBlueBottomLink",void 0);U5=_.O([_.v({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],U5);
_.t(U5,"ytd-web-answer-renderer",function(){if(r2W!==void 0)return r2W;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return r2W=K},{mode:_.Ig("kevlar_poly_si_batch_j035")?1:2});var A21;var h8=function(){var K=_.G.apply(this,arguments)||this;K.hasChipBar=!1;return K};
_.r(h8,_.G);h8.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}}};
h8.prototype.computeHasChipBar=function(K){return!(K==null||!K.chipBar)};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],h8.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],h8.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],h8.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.g("design:type",Object)],h8.prototype,"hasChipBar",void 0);h8=_.O([_.v({is:"ytd-search-header-renderer",disableElementRegistration:!0})],h8);
_.t(h8,"ytd-search-header-renderer",function(){if(A21!==void 0)return A21;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return A21=K},{mode:1});var jPs;var mx=function(){return _.G.apply(this,arguments)||this};
_.r(mx,_.G);mx.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],mx.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],mx.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],mx.prototype,"data",void 0);mx=_.O([_.v({disableElementRegistration:!0,is:"ytd-page-continuation"})],mx);
_.t(mx,"ytd-page-continuation",function(){if(jPs!==void 0)return jPs;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return jPs=K},{mode:1});var w25;var y2J;var WBG;var Gj=function(){return _.G.apply(this,arguments)||this};
_.r(Gj,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Gj.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Gj.prototype,"data",void 0);Gj=_.O([_.v({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],Gj);
_.t(Gj,"ytd-watch-card-one-vs-one-event",function(){if(WBG!==void 0)return WBG;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return WBG=K},{mode:1});var ll=function(){return _.G.apply(this,arguments)||this};
_.r(ll,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ll.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],ll.prototype,"data",void 0);ll=_.O([_.v({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],ll);
_.t(ll,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(y2J!==void 0)return y2J;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return y2J=K},{mode:1});var dj1;var vl=function(){return _.G.apply(this,arguments)||this};
_.r(vl,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],vl.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],vl.prototype,"data",void 0);vl=_.O([_.v({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],vl);
_.t(vl,"ytd-banner-and-box-hero-image-renderer",function(){if(dj1!==void 0)return dj1;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return dj1=K},{mode:1});var eRF;var am=function(){var K=_.G.apply(this,arguments)||this;K.modern=_.S("web_modern_buttons");return K};
_.r(am,_.G);am.prototype.computeIcon=function(){var K,X,F=(K=this.data)==null?void 0:(X=K.icon)==null?void 0:X.iconType;if(F)return _.Fl(F)};
am.prototype.computeButtonShape=function(){var K;return{buttonText:_.lj((K=this.data)==null?void 0:K.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.Oi.Object.defineProperties(am.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"}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],am.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],am.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],am.prototype,"modern",void 0);_.O([_.h({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.U("data.style"),_.g("design:type",Object),_.g("design:paramtypes",[])],am.prototype,"buttonColor",null);
am=_.O([_.v({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],am);
_.t(am,"ytd-call-to-action-button-renderer",function(){if(eRF!==void 0)return eRF;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return eRF=K},{mode:1});var RR1;var t8=function(){return _.G.apply(this,arguments)||this};
_.r(t8,_.G);t8.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.C$(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.bH(this.data.leftThumbnail.thumbnails,216)+")")};
t8.prototype.onLeftThumbnailChanged=t8.prototype.onLeftThumbnailChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],t8.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],t8.prototype,"data",void 0);_.O([_.so("data.leftThumbnail"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],t8.prototype,"onLeftThumbnailChanged",null);t8=_.O([_.v({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],t8);
_.t(t8,"ytd-collage-hero-image-renderer",function(){if(RR1!==void 0)return RR1;var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return RR1=K},{mode:1});var UjV;var $B=function(){return _.G.apply(this,arguments)||this};
_.r($B,_.G);$B.prototype.computeStyle=function(K){return K};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],$B.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],$B.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.g("design:type",String)],$B.prototype,"componentStyle",void 0);$B=_.O([_.v({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],$B);
_.t($B,"ytd-single-hero-image-renderer",function(){if(UjV!==void 0)return UjV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return UjV=K},{mode:1});var hRG;var O5=function(){return _.G.apply(this,arguments)||this};
_.r(O5,_.G);_.z=O5.prototype;
_.z.configureRendererStamper=function(){return{"data.heroImage":{id:"hero-image",mapping:{bannerAndBoxHeroImageRenderer:"ytd-banner-and-box-hero-image-renderer",singleHeroImageRenderer:"ytd-single-hero-image-renderer",collageHeroImageRenderer:"ytd-collage-hero-image-renderer"}},"data.callToActionButton":{id:"call-to-action-button",mapping:{callToActionButtonRenderer:"ytd-call-to-action-button-renderer"}},"data.reminderButton":{id:"reminder-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",
buttonRenderer:"ytd-button-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:"ytd-thumbnail-overlay-side-panel-renderer",thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayToggleButtonRenderer:"ytd-thumbnail-overlay-toggle-button-renderer"},
initialRenderPriority:_.S("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.z.computeSubtitle=function(K){if(this.data){var X;if(this.data.upcomingEventData){K=_.lj(K.subtitle);var F=Number(this.data.upcomingEventData.startTime);isNaN(F)||(X=_.GS(_.j6(K,F)))}else X=K.subtitle;return X}};
_.z.onHeroTap=function(K){K.preventDefault();var X=this.data&&this.data.navigationEndpoint;!X||!_.lC(_.lN(K),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.lC(_.lN(K),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.S("kevlar_watchcard_hero_video_renderer_killswitch")?_.iX(this.hostElement,"yt-navigate",{navigationEndpoint:X}):this.ytComponentBehavior.resolveCommand(X))};
_.z.computeHeroTabIndex=function(K){return K&&K.simpleText?-1:0};
_.z.computeHeroRole=function(K){return K&&K.simpleText?"":"link"};
_.z.computeIsReminderButtonPresent=function(K){return!(!K||!K.reminderButton)};
_.z.computeHideBottomItems=function(K){return!(this.computeIsReminderButtonPresent(K)||K.subtitle)};
_.z.dataChanged=function(){var K=this.get("data.buttons.buttonRenderer.serviceEndpoint"),X;((X=_.T(K==null?void 0:K.commandMetadata,_.BH))==null?0:X.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(K)};
O5.prototype.dataChanged=O5.prototype.dataChanged;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],O5.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],O5.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],O5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],O5.prototype,"data",void 0);
_.O([_.h({computed:"computeSubtitle(data)"}),_.g("design:type",String)],O5.prototype,"subtitle",void 0);_.O([_.h({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],O5.prototype,"isReminderButtonPresent",void 0);_.O([_.h({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],O5.prototype,"hideBottomItems",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],O5.prototype,"dataChanged",null);O5=_.O([_.v({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],O5);
_.t(O5,"ytd-watch-card-hero-video-renderer",function(){if(hRG!==void 0)return hRG;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return hRG=K},{mode:1});var mjt;var VT=function(){return _.G.apply(this,arguments)||this};
_.r(VT,_.G);_.z=VT.prototype;_.z.configureRendererStamper=function(){return{"data.callToActionButtons":{id:"call-to-action-buttons",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.z.computeTitleBadges=function(K){return K?[K]:[]};
_.z.computeHeaderStyle=function(K){return K?K.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.z.computeAvatarAriaLabel=function(K){if(K){var X,F,P,H;return(H=(X=K.avatar)==null?void 0:(F=X.accessibility)==null?void 0:(P=F.accessibilityData)==null?void 0:P.label)!=null?H:_.lj(K==null?void 0:K.title)}};
_.z.computeAvatarHeight=function(K){return K==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.z.computeBadgeRowClass=function(K){return(K==null?0:K[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],VT.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],VT.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],VT.prototype,"data",void 0);_.O([_.h({computed:"computeTitleBadges(data.titleBadge)"}),_.g("design:type",Array)],VT.prototype,"titleBadges",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.g("design:type",String)],VT.prototype,"headerStyle",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.g("design:type",String)],VT.prototype,"badgeRowClass",void 0);VT=_.O([_.v({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],VT);
_.t(VT,"ytd-watch-card-rich-header-renderer",function(){if(mjt!==void 0)return mjt;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return mjt=K},{mode:1});var GHt;var lc1;var g6=function(){return _.G.apply(this,arguments)||this};
_.r(g6,_.G);g6.prototype.onMetadataTap=function(K){var X=this.data&&this.data.navigationEndpoint;X&&!_.lC(_.lN(K),this.hostElement,["A".toString()])&&_.iX(this.hostElement,"yt-navigate",{endpoint:X})};
_.Oi.Object.defineProperties(g6.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 K;if(this.data.upcomingEventData){var X=_.lj(this.data.subtitle),F=Number(this.data.upcomingEventData.startTime);isNaN(F)||(K=_.GS(_.j6(X,F)))}else K=this.data.subtitle;return K}}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],g6.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],g6.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("data.style"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],g6.prototype,"isCondensed",null);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],g6.prototype,"subtitle",null);
g6=_.O([_.v({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],g6);
_.t(g6,"ytd-watch-card-compact-video-renderer",function(){if(lc1!==void 0)return lc1;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return lc1=K},{mode:1});var vkV;var E5=function(){return _.G.apply(this,arguments)||this};
_.r(E5,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],E5.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],E5.prototype,"data",void 0);E5=_.O([_.v({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],E5);
_.t(E5,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(vkV!==void 0)return vkV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return vkV=K},{mode:1});var bl=function(){return _.G.apply(this,arguments)||this};
_.r(bl,_.G);bl.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}}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],bl.prototype,"ytRendererStamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],bl.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],bl.prototype,"data",void 0);bl=_.O([_.v({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],bl);
_.t(bl,"ytd-vertical-watch-card-list-renderer",function(){if(GHt!==void 0)return GHt;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return GHt=K},{mode:1});var acs;var Cn=function(){var K=_.G.apply(this,arguments)||this;K.ariaExpanded="false";return K};
_.r(Cn,_.G);_.z=Cn.prototype;_.z.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.z.dataChanged=function(){var K;this.currentSeasonIndex=((K=this.data)==null?void 0:K.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.z.computeEpisodesInfo=function(K,X,F){if(K!==void 0&&X.length===K.length)return K[F]};
_.z.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.z.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.z.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.z.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.z.getUppercaseSimpleString=function(K){return this.ytRendererBehavior.getSimpleString(K).toUpperCase()};
_.z.updateCurrentSeasonIndexFromBinding=function(K){this.currentSeasonIndex=K.detail.value};
Cn.prototype.onIronOverlayClosed=Cn.prototype.onIronOverlayClosed;Cn.prototype.currentSeasonIndexChanged=Cn.prototype.currentSeasonIndexChanged;Cn.prototype.dataChanged=Cn.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Cn.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Cn.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Cn.prototype,"data",void 0);
_.O([_.h(),_.g("design:type",String)],Cn.prototype,"label",void 0);_.O([_.h({value:0}),_.g("design:type",Number)],Cn.prototype,"currentSeasonIndex",void 0);_.O([_.h({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.g("design:type",Object)],Cn.prototype,"episodesInfo",void 0);_.O([_.h({value:"false"}),_.g("design:type",Object)],Cn.prototype,"ariaExpanded",void 0);_.O([_.fa("#lists"),_.g("design:type",Object)],Cn.prototype,"lists",void 0);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Cn.prototype,"dataChanged",null);_.O([_.JA("currentSeasonIndex"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Cn.prototype,"currentSeasonIndexChanged",null);_.O([_.Hc("iron-overlay-closed"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],Cn.prototype,"onIronOverlayClosed",null);
Cn=_.O([_.v({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],Cn);
_.t(Cn,"ytd-watch-card-section-dropdown-renderer",function(){if(acs!==void 0)return acs;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return acs=K},{mode:1});var tC8;var NG=function(){var K=_.G.apply(this,arguments)||this;K.isSearch=!1;return K};
_.r(NG,_.G);NG.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}}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],NG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],NG.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],NG.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],NG.prototype,"isSearch",void 0);NG=_.O([_.v({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],NG);
_.t(NG,"ytd-watch-card-section-sequence-renderer",function(){if(tC8!==void 0)return tC8;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);
return tC8=K},{mode:1});var ok5=_.Jf({buttonViewModel:_.Af});_.iy(LBk);_.K4(LBk,"ytd-button-banner-view-model",{propNames:["data"]});var il=function(){var K=_.G.apply(this,arguments)||this;K.isSearch=!1;return K};
_.r(il,_.G);
il.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"}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],il.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],il.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],il.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,value:!0}),_.g("design:type",Boolean)],il.prototype,"rounded",void 0);_.O([_.h(),_.g("design:type",Object)],il.prototype,"isSearch",void 0);
il=_.O([_.v({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],il);
_.t(il,"ytd-universal-watch-card-renderer",function(){if(w25!==void 0)return w25;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return w25=K},{mode:1});var $jF;_.EP(_.$c(function(K){var X=K.data;var F;K=!((F=_.i9().resolve(_.Nu(_.m$)))==null||!F());F={};return _.Q("overview-message-view-model",{class:_.HO("ytwOverviewMessageViewModelHost",(F.ytwOverviewMessageViewModelDarkBackground=K,F.ytwOverviewMessageViewModelLightBackground=!K,F))},_.Q(_.p,{cond:function(){return X().primaryImage},
then:function(P){return _.Q(_.av,{data:P,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.Q(_.p,{cond:function(){return X().primaryText},
then:function(){return _.Q("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.Q(_.Oy,{text:function(){return X().primaryText}}))}}),_.Q(_.p,{cond:function(){return X().secondaryText},
then:function(){return _.Q("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.Q(_.Oy,{text:function(){return X().secondaryText}}))}}))},"Ii"),"overview-message-view-model",{props:{data:_.vU}});_.K4(_.s6C,"ytd-overview-answer-view-model",{propNames:["data"]});var xB=function(){return _.G.apply(this,arguments)||this};
_.r(xB,_.G);xB.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"}}}};
xB.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],xB.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],xB.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.eG),_.g("design:type",Object)],xB.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],xB.prototype,"data",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],xB.prototype,"isSearch",void 0);
xB=_.O([_.v({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],xB);
_.t(xB,"ytd-secondary-search-container-renderer",function(){if($jF!==void 0)return $jF;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);
return $jF=K},{mode:1});var OP5;var Im=function(){var K=_.G.apply(this,arguments)||this;K.renderSecondarySearchContainer=!1;K.isSearch=!1;K.isSearchDova=_.S("dova_on_search");return K};
_.r(Im,_.G);_.z=Im.prototype;_.z.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]",isSearchDova:"[[isSearchDova]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.z.created=function(){var K=this;this.boundStampSecondarySearchContainerIfFits=function(){K.stampSecondarySearchContainerIfFits()};
_.d2("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.z.computeIsSearchFrictionPage=function(K){var X,F,P,H,f;K=K==null?void 0:(X=K.primaryContents)==null?void 0:(F=X.sectionListRenderer)==null?void 0:(P=F.contents)==null?void 0:(H=P[0])==null?void 0:(f=H.itemSectionRenderer)==null?void 0:f.contents;if(!K)return!1;X=_.D(K);for(F=X.next();!F.done;F=X.next())if(P=void 0,(P=F.value)==null?0:P.searchFrictionViewModel)return!0;return!1};
_.z.computeShowSecondaryColumn=function(K,X){return!!(X&&X.secondaryContents&&K)};
_.z.activeChanged=function(){var K=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.Pc(this,this.debounceStampSecondarySearchContainerIfFits)),_.dl(function(){K.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.Pc(this,this.debounceStampSecondarySearchContainerIfFits))};
_.z.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.z.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.z.debounceStampSecondarySearchContainerIfFits=function(){_.eu(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.z.onRetrieveLocation=function(K,X){X.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);K.stopPropagation()};
_.z.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
Im.prototype.dataChanged=Im.prototype.dataChanged;Im.prototype.onRetrieveLocation=Im.prototype.onRetrieveLocation;Im.prototype.persistentGuideChanged=Im.prototype.persistentGuideChanged;Im.prototype.activeChanged=Im.prototype.activeChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Im.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Im.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.RW.YtdGuideStateAwareBehavior),_.g("design:type",Object)],Im.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.W(_.SL),_.g("design:type",Object)],Im.prototype,"ironResizableBehavior",void 0);_.O([_.h(),_.g("design:type",Boolean)],Im.prototype,"active",void 0);_.O([_.h(),_.g("design:type",Object)],Im.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.g("design:type",Boolean)],Im.prototype,"useBiggerThumbs",void 0);_.O([_.h({reflectToAttribute:!0,value:function(){return _.KG("desktop_search_bigger_thumbs_style")}}),
_.g("design:type",String)],Im.prototype,"biggerThumbsStyle",void 0);_.O([_.h(),_.g("design:type",Object)],Im.prototype,"renderSecondarySearchContainer",void 0);_.O([_.h({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.g("design:type",Boolean)],Im.prototype,"showSecondaryColumn",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.g("design:type",Boolean)],Im.prototype,"isSearchFrictionPage",void 0);
_.O([_.h(),_.g("design:type",Object)],Im.prototype,"isSearch",void 0);_.O([_.h(),_.g("design:type",Object)],Im.prototype,"isSearchDova",void 0);_.O([_.so("active"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Im.prototype,"activeChanged",null);_.O([_.so("guidePersistentAndVisible"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Im.prototype,"persistentGuideChanged",null);
_.O([_.Hc("yt-retrieve-location"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],Im.prototype,"onRetrieveLocation",null);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Im.prototype,"dataChanged",null);Im=_.O([_.v({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],Im);
_.t(Im,"ytd-two-column-search-results-renderer",function(){if(OP5!==void 0)return OP5;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return OP5=K},{mode:1});var kB=function(){var K=_.G.apply(this,arguments)||this;K.hasSearchHeader=!1;K.hasSecondaryContent=!1;K.hasBiggerThumbs=_.S("enable_desktop_search_bigger_thumbs");K.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return K};
_.r(kB,_.G);_.z=kB.prototype;_.z.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{searchHeaderRenderer:{component:"ytd-search-header-renderer"}}},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:_.je(["aa","eocs"])}}};
_.z.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.z.loadPage_=function(K){this.initCsi();K&&(this.data=K,_.d2("REFINEMENTS_TUPLE",["FromSearchResponse",K.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Vc(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.z.initCsi=function(){_.AC("results",["ol","cpt"])};
_.z.updateTitle=function(){var K=_.lB(window.location.href,"q");K||(K=_.lB(window.location.href,"search_query"));_.iX(this.hostElement,"yt-update-title",K||"")};
_.z.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.z.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.S("web_srp_data_changed_terminate_imp_killswitch")||_.xr(this.hostElement,"yt-terminate-video-preview-action")};
_.z.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.z.computeHasSearchHeader=function(K){var X;K=K==null?void 0:(X=K.header)==null?void 0:X.searchHeaderRenderer;return!!K&&(!!K.searchFilterButton||!!K.chipBar)};
_.z.computeHasSecondaryContent=function(K){var X,F;return!!(K==null?0:(X=K.contents)==null?0:(F=X.twoColumnSearchResultsRenderer)==null?0:F.secondaryContents)};
_.Oi.Object.defineProperties(kB,{template:{configurable:!0,enumerable:!0,get:function(){if(TW5===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);TW5=K}K=TW5;return K}}});
kB.prototype.onReloadContinuationFinish=kB.prototype.onReloadContinuationFinish;kB.prototype.dataChanged=kB.prototype.dataChanged;_.O([_.W(_.j2.YtPageBehavior),_.g("design:type",Object)],kB.prototype,"ytPageBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],kB.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],kB.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],kB.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.eG),_.g("design:type",Object)],kB.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],kB.prototype,"data",void 0);_.O([_.h({value:!0}),_.g("design:type",Boolean)],kB.prototype,"monitorScroll",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],kB.prototype,"hasSearchHeader",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],kB.prototype,"hasSecondaryContent",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],kB.prototype,"hasBiggerThumbs",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],kB.prototype,"dataChanged",null);
_.O([_.Hc("yt-reload-continuation-finish"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],kB.prototype,"onReloadContinuationFinish",null);kB=_.O([_.v({is:"ytd-search"})],kB);_.NA.registerService(_.RsT,kB);
_.d0();
}catch(e){_._DumpException(e)}
try{
_.W_("h8y2qb");
var Adk=function(K){if(K=_.HKM(K)){var X;(X=K.sources)!=null&&X[0]?(X=_.z5d(K),X=X<1?"VERTICAL":X>1?"HORIZONTAL":"SQUARE"):X=void 0;return X}},wU=function(K){_.Jm.call(this,"upload");
this.opts.query=K},wqW=function(K,X){return _.Q(jqF,{data:K,
onYtNavigate:X})},ydJ=function(K,X){return _.FF(K.entities,"pageHeaderEntity",X)},dwt=function(K,X){return K.map(function(F){if(F.tabRenderer)return WMF(F.tabRenderer);
if(F.expandableTabRenderer&&X){var P=F.expandableTabRenderer;return{customTabRenderable:function(){return X(P)}}}return{}})},WMF=function(K){return{identifier:K.tabIdentifier,
aTagConfig:_.Wn({innertubeCommand:K.endpoint,forceNewState:!0}),title:K.title,selected:K.selected,disabled:K.unselectable,icon:K.icon}},eod=function(K){return _.iY({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:K})},Rov=function(K){if(!_.Vk(document,"gtm-noscript")){var X=document.createElement("noscript");
X.id="gtm-noscript";X.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+K+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(X)}};_.br(wU,_.Jm);wU.prototype.JSC$8084_setLabel=function(K){wU.superClass_.JSC$8084_setLabel.call(this,K);return this};
wU.prototype.addUploadMetadata=function(K,X){wU.superClass_.addUploadMetadata.call(this,K,X);return this};var UwJ=function(K){if(K!=="youtubebanner"&&K!=="youtube-channel-banner")throw Error("Rl");wU.call(this,K)};
_.r(UwJ,wU);UwJ.prototype.JSC$8084_setLabel=function(K){wU.prototype.JSC$8084_setLabel.call(this,K);return this};
UwJ.prototype.addUploadMetadata=function(K,X){wU.prototype.addUploadMetadata.call(this,K,X);return this};var hoJ=[_.SL,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(K){_.cg(K).path[0]!==this&&(this.resetLayout(),K.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var K=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.xs(this._layoutDebouncer,_.cn,K);_.IK(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var K=this;requestAnimationFrame(function(){K.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(K){this.resizerShouldNotify(K)&&this._notifyDescendant(K)},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 mw1=[_.Gbt,{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(K,X){var F=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[K];if(!F)throw new ReferenceError(this._getUndefinedMsg(K));K=this._boundEffect(F,X||{});K.setUp();return K},
_effectsChanged:function(K,X,F){this._tearDownEffects();K&&F&&(K.split(" ").forEach(function(P){var H;P!==""&&((H=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[P])?this._effects.push(this._boundEffect(H,X[P])):console.warn(this._getUndefinedMsg(P)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(K,X){X=X||{};var F=parseFloat(X.startsAt||0),P=parseFloat(X.endsAt||1),H=P-F,f=function(){};
P=F===0&&P===1?K.run:function(u,J){K.run.call(this,Math.max(0,(u-F)/H),J)};
return{setUp:K.setUp?K.setUp.bind(this,X):f,run:K.run?P.bind(this):f,tearDown:K.tearDown?K.tearDown.bind(this):f}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(K){K.setUp()!==!1&&this._effectsRunFn.push(K.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(K){K.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(K,X){this._effectsRunFn&&this._effectsRunFn.forEach(function(F){F(K,X)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var K=this._clampedScrollTop;this._updateScrollState(K);this.threshold>0&&this._setThresholdTriggered(K>=this.threshold)}},
_getDOMRef:function(K){console.warn("_getDOMRef","`"+K+"` is undefined")},
_getUndefinedMsg:function(K){return"Scroll effect `"+K+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+K+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Sl`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(K){var X={};K=parseFloat(K.scalar);X.background=this._getDOMRef("background");X.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");X.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");X.deltaBg=X.backgroundFrontLayer.offsetHeight-X.background.offsetHeight;X.deltaBg===0?(isNaN(K)&&(K=.8),X.deltaBg=(this._dHeight||0)*K):(isNaN(K)&&(K=
1),X.deltaBg*=K);this._fxParallaxBackground=X},
run:function(K){var X=this._fxParallaxBackground;this.transform("translate3d(0px, "+X.deltaBg*Math.min(1,K)+"px, 0px)",X.backgroundFrontLayer);X.backgroundRearLayer&&this.transform("translate3d(0px, "+X.deltaBg*Math.min(1,K)+"px, 0px)",X.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var GAv;var lCk;var vPG=function(){};
_.z=vPG.prototype;_.z._scrollTargetChanged=function(){};
_.z.scroll=function(){};
_.z._isValidScrollTarget=function(){};
_.z._toggleScrollListener=function(){};
_.z.toggleScrollListener=function(){};
_.z.createEffect=function(){};
_.z._effectsChanged=function(){};
_.z._layoutIfDirty=function(){};
_.z._boundEffect=function(){};
_.z._setUpEffect=function(){};
_.z._tearDownEffects=function(){};
_.z._runEffects=function(){};
_.z._scrollHandler=function(){};
_.z._scrollStateChanged=function(){};
_.z._getUndefinedMsg=function(){};
_.z.notifyResize=function(){};
_.z.assignParentResizable=function(){};
_.z.stopResizeNotificationsFor=function(){};
_.z._subscribeIronResize=function(){};
_.z._unsubscribeIronResize=function(){};
_.z.resizerShouldNotify=function(){};
_.z._onDescendantIronResize=function(){};
_.z._fireResize=function(){};
_.z._onIronRequestResizeNotifications=function(){};
_.z._parentResizableChanged=function(){};
_.z._notifyDescendant=function(){};
_.z._requestResizeNotifications=function(){};
_.z._findParent=function(){};
_.z._appResetLayoutHandler=function(){};
_.z.resetLayout=function(){};
_.z._notifyLayoutChanged=function(){};
_.z._notifyDescendantResize=function(){};
_.z._setThresholdTriggered=function(){};
vPG=_.pa({_template:function(){if(lCk!==void 0)return lCk;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;GAv===void 0&&(GAv=document.createElement("template"));var P=GAv;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return lCk=K},
is:"tp-yt-app-header",behaviors:[mw1,hoJ],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 K=_.cg(this.$.slot).getDistributedNodes(),X=0,F;F=K[X];X++)if(F.nodeType===Node.ELEMENT_NODE)if(F.hasAttribute("sticky")){this._stickyElRef=F;break}else this._stickyElRef||(this._stickyElRef=F);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var K=this._clampedScrollTop,X=this._height===0||K===0,F=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;X||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();X?this._updateScrollState(K,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=F}},
_updateScrollState:function(K,X){if(this._height!==0){var F=0,P=this._top;var H=this._maxHeaderTop;var f=K-this._lastScrollTop,u=Math.abs(f),J=K>this._lastScrollTop,Z=performance.now();this._mayMove()&&(F=this._clamp(this.reveals?P+f:K,0,H));K>=this._dHeight&&(F=this.condenses&&!this.fixed?Math.max(this._dHeight,F):F,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&u<100){if(Z-this._initTimestamp>300||this._wasScrollingDown!==J)this._initScrollTop=K,this._initTimestamp=Z;K>=H&&
(Math.abs(this._initScrollTop-K)>30||u>10?(J&&K>=H?F=H:!J&&K>=this._dHeight&&(F=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((F-P)/(f/(Z-this._lastTimestamp)),0,300)+"ms"):F=this._top)}H=this._dHeight===0?K>0?1:0:F/this._dHeight;X||(this._lastScrollTop=K,this._top=F,this._wasScrollingDown=J,this._lastTimestamp=Z);if(X||H!==this._progress||P!==F||K===0)this._progress=H,this._runEffects(H,F),this._transformHeader(F)}},
_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(K){this.translate3d(0,-K+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&K>=this._stickyElTop?Math.min(K,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(K,X,F){return Math.min(F,Math.max(X,K))},
_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),_.cg(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(K){switch(K){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.cg(this).querySelector("[main-title]");case "condensedTitle":return _.cg(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var aCG;var teF;_.pa({_template:function(){if(teF!==void 0)return teF;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;aCG===void 0&&(aCG=document.createElement("template"));var P=aCG;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return teF=K},
is:"tp-yt-app-header-layout",behaviors:[hoJ],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.cg(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var K=this.header;if(this.isAttached&&K){this.$.wrapper.classList.remove("initializing");K.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)K.style.left=
"",K.style.right="";else{var X=this.getBoundingClientRect(),F=document.documentElement.clientWidth-X.right;K.style.left=X.left+"px";K.style.right=F+"px"}X=this.$.contentContainer.style;F=K.offsetHeight;K.fixed&&!K.condenses&&this.hasScrollingRegion?(X.marginTop=F+"px",X.paddingTop=""):(X.paddingTop=F+"px",X.marginTop="")}}});var $wG=new _.b("replaceFeedContentAction");var OrW=new _.b("alertCommand");var VeV=new _.b("manageLabsStateCommand");var gPW=new _.b("inlineFormRenderer");var yJ=new _.b("playlistSidebarPrimaryInfoRenderer");var EPs=new _.b("productDetailsThumbnailRenderer"),br8=new _.b("productDetailsVariantRenderer"),CMW=new _.b("productDetailsVariantOptionRenderer"),N8F=new _.b("productDetailsOffersContainerRenderer"),irk=new _.b("productDetailsOfferRenderer");var xw5=new _.b("shoppingFlaggingRenderer");var IC8=new _.b("playlistBylineRenderer");var kA1=new _.b("insertChannelTabCommand");var Wr=function(){return _.ub.apply(this,arguments)||this};
_.r(Wr,_.ub);_.z=Wr.prototype;_.z.activeChanged=function(){if(this.active){var K=_.C$(this.hostElement).querySelector("#header");K&&_.iX(K,"iron-resize");window.addEventListener("scroll",_.Pc(this,this.onScroll))}else window.removeEventListener("scroll",_.Pc(this,this.onScroll)),_.iX(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.z.guideVisibleChanged=function(){var K=_.C$(this.hostElement).querySelector("#header");K&&_.iX(K,"iron-resize")};
_.z.onScroll=function(){var K=this;_.eu(this,"onScroll",function(){var X=_.C$(K.hostElement).querySelector("#header");X&&X.polymerController&&(X=X.polymerController.getScrollState().progress===1?"standard":"seamed",_.iX(K.hostElement,"yt-request-panel-mode-change",{mode:X}))},10)};
_.z.tabsChanged=function(){if(this.tabs){for(var K=null,X=0,F=this.tabs.length;X<F;++X){var P=this.tabs[X].tabRenderer;if(P&&P.selected){K=X;break}}this.selected=K}};
_.z.onTabsActivate=function(K){_.iX(this.hostElement,"yt-navigate",{endpoint:this.tabs[K.detail.selected].tabRenderer.endpoint})};
Wr.prototype.tabsChanged=Wr.prototype.tabsChanged;Wr.prototype.guideVisibleChanged=Wr.prototype.guideVisibleChanged;Wr.prototype.activeChanged=Wr.prototype.activeChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Wr.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.RW.YtdGuideStateAwareBehavior),_.g("design:type",Object)],Wr.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.h(),_.g("design:type",Array)],Wr.prototype,"tabs",void 0);
_.O([_.h(),_.g("design:type",Object)],Wr.prototype,"selected",void 0);_.O([_.h(),_.g("design:type",Boolean)],Wr.prototype,"active",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Wr.prototype,"disableHeaderFluidWidth",void 0);_.O([_.so("active"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Wr.prototype,"activeChanged",null);
_.O([_.so("guidePersistentAndVisible"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Wr.prototype,"guideVisibleChanged",null);_.O([_.so("tabs"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Wr.prototype,"tabsChanged",null);Wr=_.O([_.qY()],Wr);var KKt=[_.k.YtRendererBehavior,_.RW.YtdGuideStateAwareBehavior,Wr.prototype];var X68=2/3,FKs=_.cO(130749),Ppd=function(K,X){var F=this;this.element=K;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){F.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:X68,moveAction:function(P){F.moveAction(P)},
triggerAction:function(){F.element.isReloading=!0;_.WO(_.uH(),{visualElement:FKs});_.Hn.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:F.element}})}}}};
_.Kp(_.uH(),FKs,this.layer);this.gesture=new _.qK(K,X,this.refreshConfig,"pan-down");this.attach()};
_.z=Ppd.prototype;_.z.attach=function(){this.gesture.attach()};
_.z.detach=function(){this.gesture.detach()};
_.z.reset=function(){this.element.close()};
_.z.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.z.moveAction=function(K){this.element.rotation=K*360};var HHJ=_.cO(130750),dU=function(K,X,F,P,H){var f=this;this.element=K;this.parent=F;this.channelHeader=P;this.ytdReduxDispatch=H;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){f.tabsStartAtInPx=f.channelHeader.clientHeight-48;var u;(u=f.selectedTab)!=null&&u.title&&(u=_.i9().resolve(_.Nu(_.ax)))&&(u=u.getCurrentPage(),f.lastVisitedTabScrollPosition=u.getScrollTop(),f.previousTab&&
((f.lastVisitedTabScrollPosition===void 0?0:f.lastVisitedTabScrollPosition<f.channelHeader.clientHeight-48)?f.scrollPositionForTabs.has(f.selectedTab.title)&&f.scrollPositionForTabs.delete(f.selectedTab.title):f.scrollPositionForTabs.set(f.selectedTab.title,u.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:spk(),triggerAction:function(){f.navigate(f.previousTab)},
moveAction:function(u,J){f.moveAction(u,J)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-spk(),triggerAction:function(){f.navigate(f.nextTab)},
moveAction:function(u,J){f.moveAction(u,J)}}}};
_.Kp(_.uH(),HHJ,this.layer);this.gesture=new _.qK(K,X,this.tabConfig);this.attach()};
dU.prototype.attach=function(){this.gesture.attach()};
dU.prototype.detach=function(){this.gesture.detach()};
dU.prototype.tabsChanged=function(K){if(K){var X=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;K=_.D(K);for(var F=K.next();!F.done;F=K.next()){F=F.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=F);var P=void 0;if((P=F)==null?0:P.selected)this.previousTab=X,this.selectedTab=F;X=F}X=this.gesture;K=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}});
X.config=K;this.scrollPositionNeedsUpdate=!0}};
dU.prototype.moveAction=function(K,X){if(!this.tabsElement){var F;this.tabsElement=(F=this.parent.header)==null?void 0:F.tabsElement;X==="right"&&this.previousTab?_.KrE(_.uZ.instance,this.previousTab.endpoint,{},""):X==="left"&&this.nextTab&&_.KrE(_.uZ.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}F=this.tabsElement._pos;X==="right"&&(K*=-1);this.tabsElement._positionBar(F.width,F.left*1+F.width*K)};
var spk=function(){var K,X;return(X=(K=_.i9().resolve(_.ax).getCurrentPage())==null?void 0:K.clientWidth)!=null?X:0};
dU.prototype.navigate=function(K){this.element.data=void 0;if(K=K==null?void 0:K.endpoint)this.ytdReduxDispatch(eod(!0)),_.WO(_.uH(),{visualElement:HHJ}),_.Hn.instance.resolveCommand({navigateAction:{endpoint:K}},{form:{element:this.element}})};var zBt;var fJk;var e2=function(){return _.G.apply(this,arguments)||this};
_.r(e2,_.G);e2.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],e2.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],e2.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],e2.prototype,"data",void 0);e2=_.O([_.v({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],e2);
_.t(e2,"ytd-labs-edit-renderer",function(){if(fJk!==void 0)return fJk;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return fJk=K},{mode:1});var DJV;var RN=function(){var K=_.G.apply(this,arguments)||this;K.dark=!1;K.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";K.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return K};
_.r(RN,_.G);RN.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
RN.prototype.ready=function(){var K=document.documentElement.hasAttribute("dark");this.setBackgroundImage(K);this.dark=K};
RN.prototype.onDarkModeToggledAction=function(K){this.setBackgroundImage(K);this.dark=K};
RN.prototype.setBackgroundImage=function(K){_.XU(this.hostElement,{"--yt-labs-header-background":"url("+(K?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],RN.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],RN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],RN.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],RN.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],RN.prototype,"dark",void 0);
RN=_.O([_.v({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],RN);
_.t(RN,"ytd-labs-header-renderer",function(){if(DJV!==void 0)return DJV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return DJV=K},{mode:1});var uuJ;var Un=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return K};
_.r(Un,_.G);Un.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"}}}}}};
Un.prototype.onYtToggleButton=function(K){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",K.detail.toggled)};
Un.prototype.onManageLabsState=function(K){if(K=_.T(K,VeV))K.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?K.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&K.labsItemId===this.data.labsItemId&&(K.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.xr(this.hostElement,"yt-check-labs-opted-in-state").some(function(X){return X})&&this.data.confirmationDialogCommand?_.X0(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.i9().resolve(_.xU).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&K.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.i9().resolve(_.xU).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
Un.prototype.onCheckLabsOptedInState=function(){var K=this.get("data.primaryButton.toggleButtonRenderer");return K?K.isToggled:!1};
_.Oi.Object.defineProperties(Un.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
Un.prototype.onYtToggleButton=Un.prototype.onYtToggleButton;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Un.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Un.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Un.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Un.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],Un.prototype,"itemStyle",null);_.O([_.Hc("yt-toggle-button"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Un.prototype,"onYtToggleButton",null);Un=_.O([_.v({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],Un);
_.t(Un,"ytd-labs-item-renderer",function(){if(uuJ!==void 0)return uuJ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return uuJ=K},{mode:1});var qSV;var J5J;var hC=function(){return _.G.apply(this,arguments)||this};
_.r(hC,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],hC.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],hC.prototype,"data",void 0);hC=_.O([_.v({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],hC);
_.t(hC,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(J5J!==void 0)return J5J;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return J5J=K},{mode:1});var ZHJ;var mn=function(){return _.G.apply(this,arguments)||this};
_.r(mn,_.G);mn.prototype.observeSuperchatChip=function(){if(this.data){var K={"--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)};_.XU(this.hostElement,K)}};
mn.prototype.colorFromDecimal=function(K){return _.wq(Number(K||0))};
mn.prototype.observeSuperchatChip=mn.prototype.observeSuperchatChip;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],mn.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],mn.prototype,"data",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],mn.prototype,"observeSuperchatChip",null);mn=_.O([_.v({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],mn);
_.t(mn,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(ZHJ!==void 0)return ZHJ;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return ZHJ=K},{mode:1});var Gh=function(){return _.G.apply(this,arguments)||this};
_.r(Gh,_.G);Gh.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"}}}};
_.Oi.Object.defineProperties(Gh.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Gh.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Gh.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.yD),_.g("design:type",Object)],Gh.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Gh.prototype,"data",void 0);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Gh.prototype,"hideMessageBlock",null);
Gh=_.O([_.v({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Gh);
_.t(Gh,"ytd-live-chat-history-entry-renderer",function(){if(qSV!==void 0)return qSV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return qSV=K},{mode:1});var YSJ;var lx=function(){return _.G.apply(this,arguments)||this};
_.r(lx,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],lx.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],lx.prototype,"data",void 0);lx=_.O([_.v({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],lx);
_.t(lx,"ytd-channel-options-renderer",function(){if(YSJ!==void 0)return YSJ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return YSJ=K},{mode:1});var Qpk;var vr=function(){return _.G.apply(this,arguments)||this};
_.r(vr,_.G);vr.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],vr.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],vr.prototype,"data",void 0);vr=_.O([_.v({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],vr);
_.t(vr,"ytd-settings-email-item-renderer",function(){if(Qpk!==void 0)return Qpk;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Qpk=K},{mode:1});var Ml8;var aN=function(){return _.G.apply(this,arguments)||this};
_.r(aN,_.G);aN.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"}}}};
aN.prototype.getExpansionIcon=function(K){return K?"COLLAPSE":"EXPAND"};
aN.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.Oi.Object.defineProperties(aN.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],aN.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],aN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],aN.prototype,"data",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],aN.prototype,"expanded",void 0);_.O([_.U("expanded"),_.g("design:type",String),_.g("design:paramtypes",[])],aN.prototype,"emailListExpanded",null);
_.O([_.fa("#options"),_.g("design:type",Object)],aN.prototype,"options",void 0);aN=_.O([_.v({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],aN);
_.t(aN,"ytd-settings-email-list-renderer",function(){if(Ml8!==void 0)return Ml8;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Ml8=K},{mode:1});var nnd;var tC=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return K};
_.r(tC,_.G);tC.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"}}}};
tC.prototype.handleSignalActionSubmitForm=function(){var K,X=(K=this.formRenderer)==null?void 0:K.getForm();X&&this.data.serviceEndpoint&&_.i9().resolve(_.xU).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},X,{element:this.hostElement})})};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],tC.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],tC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],tC.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],tC.prototype,"data",void 0);_.O([_.fa("yt-form-renderer"),_.g("design:type",Object)],tC.prototype,"formRenderer",void 0);
tC=_.O([_.v({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],tC);
_.t(tC,"ytd-settings-gaia-link-renderer",function(){if(nnd!==void 0)return nnd;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return nnd=K},{mode:1});var c5F;var $7=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return K};
_.r($7,_.G);$7.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.BFt()&&this.set("data.hidden",!1)};
$7.prototype.onSwitchReady=function(){var K=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.S("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.p$k().then(function(X){X&&(Notification.permission==="default"?K.set("data.hidden",!1):Notification.permission==="granted"&&_.bM("NotificationsDisabled").then(function(F){F||_.xr(K.hostElement,"yt-toggle-settings-switch",[K.data.id,!F]);K.set("data.hidden",!1)}).catch(function(){}))})})};
$7.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}}}}};
$7.prototype.handleUpdateOptionsCommand=function(K){(K=_.T(K,_.M3u))&&this.data&&this.data.id===K.id&&(this.set("data.hidden",K.hidden),K.text!==void 0&&this.set("data.text",K.text),K.clearOptions&&this.set("data.options",[]))};
$7.prototype.onSwitchReady=$7.prototype.onSwitchReady;$7.prototype.dataChanged=$7.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],$7.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],$7.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],$7.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],$7.prototype,"data",void 0);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],$7.prototype,"dataChanged",null);_.O([_.Hc("yt-settings-switch-ready"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],$7.prototype,"onSwitchReady",null);$7=_.O([_.v({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],$7);
_.t($7,"ytd-settings-options-renderer",function(){if(c5F!==void 0)return c5F;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return c5F=K},{mode:1});var p68;var On=function(){return _.G.apply(this,arguments)||this};
_.r(On,_.G);On.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
On.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
On.prototype.onYtExpanderMoreTapped=On.prototype.onYtExpanderMoreTapped;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],On.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],On.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],On.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],On.prototype,"data",void 0);
_.O([_.Hc("yt-expander-more-tapped"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],On.prototype,"onYtExpanderMoreTapped",null);On=_.O([_.v({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],On);
_.t(On,"ytd-product-details-description-renderer",function(){if(p68!==void 0)return p68;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return p68=K},{mode:1});var Bh8;var VJ=function(){var K=_.G.apply(this,arguments)||this;K.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";K.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";K.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";K.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return K};
_.r(VJ,_.G);VJ.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Oi.Object.defineProperties(VJ.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.data)==null?void 0:(X=K.offerData)==null?void 0:X.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.data)==null?void 0:K.purchaseButtonRenderers)!==void 0&&((X=this.data)==null?void 0:X.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var K,X;return!((K=this.data)==null||!K.formattedFromMerchantText)&&(!((X=this.data)==null||!X.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],VJ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],VJ.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],VJ.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],VJ.prototype,"data",void 0);
_.O([_.h({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0}),_.g("design:type",Object)],VJ.prototype,"shippingIcon",void 0);_.O([_.h({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0}),_.g("design:type",Object)],VJ.prototype,"shippingAddressIcon",void 0);_.O([_.h({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0}),_.g("design:type",Object)],VJ.prototype,"googleGuaranteeIcon",void 0);
_.O([_.h({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0}),_.g("design:type",Object)],VJ.prototype,"returnPolicyIcon",void 0);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],VJ.prototype,"showAdditionalFees",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],VJ.prototype,"showMultiPurchaseButtons",null);
_.O([_.U("data","showMultiPurchaseButtons"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],VJ.prototype,"showPurchaseData",null);VJ=_.O([_.v({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],VJ);
_.t(VJ,"ytd-product-details-hero-offer-renderer",function(){if(Bh8!==void 0)return Bh8;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Bh8=K},{mode:1});var SS8;var on1;var gU=function(){return _.G.apply(this,arguments)||this};
_.r(gU,_.G);_.z=gU.prototype;_.z.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.z.onKeyDown=function(K){K=K.keyCode;K!==13&&K!==32||this.handleSelection()};
_.z.onMouseEnterImage=function(){var K;((K=this.data)==null?void 0:K.thumbnailDetails)!==void 0&&_.IJ(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.z.onMouseLeaveImage=function(){_.IJ(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.z.handleSelection=function(){this.data&&_.iX(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.Oi.Object.defineProperties(gU.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.isSelected)}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],gU.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],gU.prototype,"data",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],gU.prototype,"isSelected",null);gU=_.O([_.v({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],gU);
_.t(gU,"ytd-product-details-thumbnail-renderer",function(){if(on1!==void 0)return on1;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return on1=K},{mode:1});var En=function(){var K=_.G.apply(this,arguments)||this;var X={};K.actionMap=(X["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",X["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",X);K.selectedThumbnailIndex=0;K.selectItem=function(F){F.target.onKeyDown(F)};
return K};
_.r(En,_.G);_.z=En.prototype;_.z.handlePreviewImageSelect=function(K){this.hoverThumbnail=K};
_.z.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.z.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.z.onThumbnailSelected=function(K,X){this.selectedThumbnailIndex=X};
_.z.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.z.updateOffset=function(){var K=_.C$(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-K));this.ytdHorizontalListBehavior.reposition_()};
_.Oi.Object.defineProperties(En.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)==null?0:K.imageRenderer){var X,F;return((X=this.data)==null?void 0:(F=X.imageRenderer)==null?void 0:F.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var K;if((K=this.data)==null?0:K.imageRenderer){var X;return(X=_.T(this.data.imageRenderer[this.selectedThumbnailIndex],EPs))==null?void 0:X.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var K=this,X,F,P,H=(P=(X=this.data)==null?void 0:(F=X.imageRenderer)==null?void 0:F.map(function(f,u){return{productDetailsThumbnailRenderer:Object.assign({},_.T(f,EPs),{index:u,isSelected:u===K.selectedThumbnailIndex})}}))!=null?P:[];
return Object.assign({},this.data,{imageRenderer:H})}}});
En.prototype.updateOffset=En.prototype.updateOffset;En.prototype.dataChanged=En.prototype.dataChanged;En.prototype.onThumbnailSelected=En.prototype.onThumbnailSelected;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],En.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],En.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.Nh.YtdHorizontalListBehavior),_.g("design:type",Object)],En.prototype,"ytdHorizontalListBehavior",void 0);
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],En.prototype,"componentBehavior",void 0);_.O([_.W([_.NT.YtActionHandlerBehavior]),_.g("design:type",Object)],En.prototype,"actionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],En.prototype,"data",void 0);_.O([_.h({value:"$.items.children"}),_.g("design:type",String)],En.prototype,"itemsPath",void 0);_.O([_.h({value:3}),_.g("design:type",Number)],En.prototype,"initialCount",void 0);
_.O([_.fa("#items"),_.g("design:type",Object)],En.prototype,"items",void 0);_.O([_.h(),_.g("design:type",Object)],En.prototype,"selectedThumbnailIndex",void 0);_.O([_.h(),_.g("design:type",Object)],En.prototype,"hoverThumbnail",void 0);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],En.prototype,"showThumbnails",null);
_.O([_.Hc("ytd-product-details-thumbnail-renderer-selected"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Number]),_.g("design:returntype")],En.prototype,"onThumbnailSelected",null);_.O([_.U("data","selectedThumbnailIndex","hoverThumbnail"),_.g("design:type",Object),_.g("design:paramtypes",[])],En.prototype,"thumbnailDetails",null);_.O([_.U("data","selectedThumbnailIndex"),_.g("design:type",Object),_.g("design:paramtypes",[])],En.prototype,"populatedData",null);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],En.prototype,"dataChanged",null);_.O([_.Hc("iron-resize"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],En.prototype,"updateOffset",null);En=_.O([_.v({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],En);
_.t(En,"ytd-product-details-image-carousel-renderer",function(){if(SS8!==void 0)return SS8;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return SS8=K},{mode:_.Ig("kevlar_poly_si_batch_j079")?1:2});var LKk;var bx=function(){return _.G.apply(this,arguments)||this};
_.r(bx,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],bx.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],bx.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],bx.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],bx.prototype,"data",void 0);bx=_.O([_.v({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],bx);
_.t(bx,"ytd-product-details-offer-renderer",function(){if(LKk!==void 0)return LKk;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return LKk=K},{mode:1});var Thw;var Ch=function(){var K=_.G.apply(this,arguments)||this;K.isOffersHidden=!0;return K};
_.r(Ch,_.G);Ch.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var K,X=_.T((K=this.data)==null?void 0:K.viewOffersButton,_.jg);X&&this.ytRendererBehavior.logExplicitClick(X)};
Ch.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.Oi.Object.defineProperties(Ch.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var K,X,F,P;return(F=_.T((K=this.data)==null?void 0:(X=K.offers)==null?void 0:X[0],irk))==null?void 0:(P=F.offerData)==null?void 0:P.vendorLogoUrl}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Ch.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Ch.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Ch.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Ch.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],Ch.prototype,"isOffersHidden",void 0);
_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],Ch.prototype,"firstOfferVendorLogoUrl",null);Ch=_.O([_.v({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],Ch);
_.t(Ch,"ytd-product-details-offers-container-renderer",function(){if(Thw!==void 0)return Thw;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Thw=K},{mode:1});var r5W;var A5W;var NK=function(){return _.G.apply(this,arguments)||this};
_.r(NK,_.G);NK.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
NK.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.IJ(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
NK.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.IJ(this,"ytd-product-details-variant-image-unselect")};
_.Oi.Object.defineProperties(NK.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 K;return((K=this.data)==null?void 0:K.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return((K=this.data)==null?void 0:K.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((X=this.data)==null?void 0:X.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((F=this.data)==null?void 0:F.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var K;if(((K=this.data)==null?void 0:K.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var K,X;return this.isUnavailable?(K=this.data)==null?void 0:K.variantOptionUnavailableAccessibilityLabel:(X=this.data)==null?void 0:X.variantOptionAccessibilityLabel}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],NK.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],NK.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],NK.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],NK.prototype,"data",void 0);_.O([_.h(),_.g("design:type",String)],NK.prototype,"displayType",void 0);
_.O([_.U("displayType","data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],NK.prototype,"isImageButton",null);_.O([_.U("displayType","data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],NK.prototype,"isPillButton",null);_.O([_.U("data"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],NK.prototype,"isActive",null);
_.O([_.U("data"),_.h({reflectToAttribute:!0}),_.g("design:type",Boolean),_.g("design:paramtypes",[])],NK.prototype,"isUnavailable",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],NK.prototype,"thumbnailDetails",null);_.O([_.U("isUnavailable","data"),_.g("design:type",Object),_.g("design:paramtypes",[])],NK.prototype,"accessibilityLabel",null);NK=_.O([_.v({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],NK);
_.t(NK,"ytd-product-details-variant-option-renderer",function(){if(A5W!==void 0)return A5W;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return A5W=K},{mode:1});var jpw;var ix=function(){var K=_.G.apply(this,arguments)||this;K.variantsExpanded=!1;K.hideShowMoreLessVariantButton=!0;K.initialized=!1;K.computeVariantsDebouncer=null;K.computeVariants=function(X){X=X===void 0?!1:X;K.variantsExpanded||K.showOptions()||!X||(K.variantsExpanded=!0);if(K.variantsExpanded){X=_.D(K.items.children);for(var F=X.next();!F.done;F=X.next())F.value.hidden=!1}K.initialized=!0};
return K};
_.r(ix,_.G);_.z=ix.prototype;_.z.ready=function(){var K=this;setTimeout(function(){K.computeVariants(!0)})};
_.z.showOptions=function(){for(var K=_.D(this.items.children),X=K.next();!X.done;X=K.next())X.value.hidden=!0;var F=this.container.getBoundingClientRect().width,P=0,H=K=0;X=!1;for(var f=_.D(this.items.children),u=f.next();!u.done;u=f.next()){u=u.value;u.hidden=!1;var J=u.getBoundingClientRect().width;if(P+J<F)P+=J;else if(++H<2)P=J;else break;K+=1;u.hasAttribute("is-active")&&(X=!0)}for(F=K;F<this.items.children.length;F++)this.items.children[F].hidden=!0;this.hideShowMoreLessVariantButton=K===this.items.children.length;
return X};
_.z.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.xs(this.computeVariantsDebouncer,_.vT.after(100),this.computeVariants)};
_.z.onShowMoreLessVariantsButtonClick=function(){var K;(K=this.data)!=null&&K.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.z.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.Oi.Object.defineProperties(ix.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var K,X,F=(K=this.data)==null?void 0:(X=K.variantOptionRenderers)==null?void 0:X.find(function(f){return _.T(f,CMW).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),P,H;
return(H=(P=_.T(F,CMW))==null?void 0:P.name)!=null?H:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.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"}}}});
ix.prototype.debouncedComputeVariants=ix.prototype.debouncedComputeVariants;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ix.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],ix.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],ix.prototype,"componentBehavior",void 0);_.O([_.W(_.SL),_.g("design:type",Object)],ix.prototype,"ironResizableBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],ix.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],ix.prototype,"variantsExpanded",void 0);_.O([_.h(),_.g("design:type",Object)],ix.prototype,"hideShowMoreLessVariantButton",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],ix.prototype,"initialized",void 0);_.O([_.fa("#items"),_.g("design:type",HTMLDivElement)],ix.prototype,"items",void 0);_.O([_.fa("#container"),_.g("design:type",HTMLDivElement)],ix.prototype,"container",void 0);
_.O([_.fa("#more-variants-button"),_.g("design:type",HTMLElement)],ix.prototype,"moreVariantsButton",void 0);_.O([_.U("data"),_.g("design:type",String),_.g("design:paramtypes",[])],ix.prototype,"selectedOptionName",null);_.O([_.so("data","variantsExpanded"),_.Hc("iron-resize"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ix.prototype,"debouncedComputeVariants",null);
_.O([_.U("data"),_.g("design:type",String),_.g("design:paramtypes",[])],ix.prototype,"displayType",null);_.O([_.U("displayType"),_.g("design:type",Object),_.g("design:paramtypes",[])],ix.prototype,"variantItemsClassname",null);ix=_.O([_.v({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],ix);
_.t(ix,"ytd-product-details-variant-renderer",function(){if(jpw!==void 0)return jpw;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return jpw=K},{mode:1});var x7=function(){return _.G.apply(this,arguments)||this};
_.r(x7,_.G);
x7.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"}}}};
_.Oi.Object.defineProperties(x7.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var K,X,F=(X=_.T((K=this.data)==null?void 0:K.offersContainerRenderer,N8F))==null?void 0:X.offers;return F!==void 0&&(F==null?void 0:F.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 K,X,F;return((F=(K=this.data)==null?void 0:(X=K.variants)==null?void 0:X.map(function(P){var H,f;P=(f=(H=_.T(P,br8))==null?void 0:H.variantOptionRenderers)==null?void 0:f.find(function(J){var Z;return((Z=_.T(J,CMW))==null?void 0:Z.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var u;return(u=_.T(P,CMW))==null?void 0:u.name}).filter(function(P){return typeof P==="string"}))!=null?F:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var K,X,F,P=(X=_.T((K=this.data)==null?void 0:K.shoppingFlaggingRenderer,xw5))==null?void 0:(F=X.reportButton)==null?void 0:F.buttonRenderer;if(P)return{text:P.text,command:P.command,icon:{iconType:"FLAG"},accessibilityData:P.accessibilityData,trackingParams:P.trackingParams,loggingDirectives:P.loggingDirectives}}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],x7.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],x7.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],x7.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],x7.prototype,"data",void 0);_.O([_.fa("#image-carousel-renderer"),_.g("design:type",Object)],x7.prototype,"imageCarouselRenderer",void 0);
_.O([_.fa("#hero-offer-renderer"),_.g("design:type",Object)],x7.prototype,"productDetailsHeroOfferRenderer",void 0);_.O([_.fa("#variants"),_.g("design:type",Object)],x7.prototype,"productDetailsVariantRenderer",void 0);_.O([_.fa("#offers"),_.g("design:type",Object)],x7.prototype,"productDetailsOffersContainerRenderer",void 0);_.O([_.fa("#description-renderer"),_.g("design:type",Object)],x7.prototype,"productDetailsDescriptionRenderer",void 0);
_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],x7.prototype,"showPurchaseData",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],x7.prototype,"showHeroOfferRenderer",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],x7.prototype,"showBrandText",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],x7.prototype,"showOffers",null);
_.O([_.U("showOffers","showPurchaseData"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],x7.prototype,"showBuySeparator",null);_.O([_.U("showOffers","showPurchaseData"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],x7.prototype,"showBuyCard",null);_.O([_.U("data"),_.g("design:type",String),_.g("design:paramtypes",[])],x7.prototype,"selectedVariantsText",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],x7.prototype,"shoppingReportingButtonData",null);
x7=_.O([_.v({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],x7);
_.t(x7,"ytd-product-details-renderer",function(){if(r5W!==void 0)return r5W;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return r5W=K},{mode:1});var w6t;var y5t;var WKV;var IN=function(){return _.G.apply(this,arguments)||this};
_.r(IN,_.G);IN.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Oi.Object.defineProperties(IN.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],IN.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],IN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],IN.prototype,"data",void 0);_.O([_.h(),_.g("design:type",String)],IN.prototype,"formattedAmount",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],IN.prototype,"ariaLabel",void 0);
_.O([_.h({reflectToAttribute:!0}),_.U("data.style"),_.g("design:type",String),_.g("design:paramtypes",[])],IN.prototype,"vcBalanceWidgetStyle",null);IN=_.O([_.Tb({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],IN);
_.t(IN,"yt-vc-balance-renderer",function(){if(WKV===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;y5t===void 0&&(y5t=document.createElement("template"));var P=y5t;F.call(X,P.content.cloneNode(!0),K.content.firstChild);WKV=K}K=WKV;return K},{mode:2});_.L4("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var k7=function(){return _.G.apply(this,arguments)||this};
_.r(k7,_.G);_.Oi.Object.defineProperties(k7.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:""}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],k7.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],k7.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],k7.prototype,"data",void 0);_.O([_.h({selectorArgs:["data.vcBalanceEntityKey"],selector:function(K,X){return _.FF(K.entities,"vcBalanceEntity",X)}}),
_.g("design:type",Object)],k7.prototype,"vcBalanceEntity",void 0);_.O([_.U("vcBalanceEntity"),_.g("design:type",String),_.g("design:paramtypes",[])],k7.prototype,"formattedAmount",null);_.O([_.U("vcBalanceEntity"),_.g("design:type",String),_.g("design:paramtypes",[])],k7.prototype,"vcBalanceAriaLabel",null);k7=_.O([_.v({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],k7);
_.t(k7,"ytd-vc-balance-renderer",function(){if(w6t!==void 0)return w6t;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return w6t=K},{mode:1});var dJk;var Kn=function(){var K=_.G.apply(this,arguments)||this;K.rotation=0;K.isReloading=!1;return K};
_.r(Kn,_.G);Kn.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
Kn.prototype.reset=function(){this.hostElement.style.opacity=""};
Kn.prototype.close=function(){var K=this;return _.q(function(X){if(X.nextAddress==1)return _.Y(X,K.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);K.hostElement.style.opacity="0";_.JT(X)})};
Kn.prototype.rotationChanged=Kn.prototype.rotationChanged;_.O([_.h(),_.g("design:type",Object)],Kn.prototype,"rotation",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Kn.prototype,"isReloading",void 0);_.O([_.fa("#icon"),_.g("design:type",HTMLElement)],Kn.prototype,"icon",void 0);_.O([_.so("rotation"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Kn.prototype,"rotationChanged",null);
Kn=_.O([_.v({disableElementRegistration:!0,is:"ytd-refresh"})],Kn);
_.t(Kn,"ytd-refresh",function(){if(dJk!==void 0)return dJk;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return dJk=K},{mode:1});var eBt;var XG=function(){return _.G.apply(this,arguments)||this};
_.r(XG,_.G);XG.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"}}}};
XG.prototype.dataChanged=function(){if(this.data){var K=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var X=_.bH(this.data.banner.thumbnails,this.hostElement.clientWidth);X&&(X.indexOf("//")===0&&(X="https:"+X),this.hasBannerArt=!0,_.XU(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+X+")"}))}this.hasBannerArt!==K&&_.C$(this.hostElement).querySelector("#header").fire("iron-resize")}};
XG.prototype.updateSelectedFromBinding=function(K){this.selected=K.detail.value};
XG.prototype.dataChanged=XG.prototype.dataChanged;_.O([_.W(KKt),_.g("design:type",Object)],XG.prototype,"ytdTabbedHeaderBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],XG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.dK),_.g("design:type",Object)],XG.prototype,"ytdGridStateAwareBehavior",void 0);_.O([_.W(_.RW.YtdGuideStateAwareBehavior),_.g("design:type",Object)],XG.prototype,"ytdGuideStateAwareBehavior",void 0);
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],XG.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],XG.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Number)],XG.prototype,"selected",void 0);_.O([_.h(),_.g("design:type",Boolean)],XG.prototype,"active",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],XG.prototype,"hasBannerArt",void 0);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],XG.prototype,"dataChanged",null);XG=_.O([_.v({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],XG);
_.t(XG,"ytd-interactive-tabbed-header-renderer",function(){if(eBt!==void 0)return eBt;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return eBt=K},{mode:1});var RBJ;var FG=function(){return _.G.apply(this,arguments)||this};
_.r(FG,_.G);FG.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
FG.prototype.computeActionsAlignment=function(K){return(K==null?void 0:K.actionsAlignment)||""};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],FG.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],FG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],FG.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.g("design:type",String)],FG.prototype,"actionsAlignment",void 0);
FG=_.O([_.v({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],FG);
_.t(FG,"ytd-page-footer-renderer",function(){if(RBJ!==void 0)return RBJ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return RBJ=K},{mode:1});var UJo;var hBv;var Pl=function(){var K=_.G.apply(this,arguments)||this;K.isEditing=!1;K.useSlot=!1;K.isMultiline=!1;return K};
_.r(Pl,_.G);_.z=Pl.prototype;_.z.onKeydown=function(K){if(K.keyCode===13&&!this.isMultiline)this.onSave();else if(K.keyCode===27)this.onCancel()};
_.z.computeComponentStyle=function(K){return(K==null?0:K.style)?K.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.z.computeisMultiline=function(K){if(this.multilineOverride!==void 0)return this.multilineOverride;var X,F;return!!(K==null?0:(X=K.formField)==null?0:(F=X.textInputFormFieldRenderer)==null?0:F.isMultiline)};
_.z.computeTextDisplayed=function(K,X){if(K)return K;if(X)return X};
_.z.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.z.onSave=function(){if(this.textForm.validate()){this.textForm.save();var K=this.textForm.value;if(K)this.set("data.textDisplayed",_.GS(K));else{var X;((X=this.data)==null?0:X.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.R9("inline-form-changed",this.data));this.isEditing=!1}};
_.z.onCancel=function(){var K=_.lj(this.data.textDisplayed);K===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(K);this.isEditing=!1};
Pl.prototype.onKeydown=Pl.prototype.onKeydown;_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],Pl.prototype,"ytEventForwardingBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Pl.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Pl.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Pl.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Pl.prototype,"isEditing",void 0);_.O([_.h(),_.g("design:type",Object)],Pl.prototype,"useSlot",void 0);_.O([_.h(),_.g("design:type",Boolean)],Pl.prototype,"multilineOverride",void 0);_.O([_.h(),_.g("design:type",Boolean)],Pl.prototype,"enableOverlayTheme",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.g("design:type",String)],Pl.prototype,"componentStyle",void 0);
_.O([_.h({computed:"computeisMultiline(data)"}),_.g("design:type",Object)],Pl.prototype,"isMultiline",void 0);_.O([_.fa("#text-form"),_.g("design:type",Object)],Pl.prototype,"textForm",void 0);_.O([_.Hc("keydown"),_.g("design:type",Function),_.g("design:paramtypes",[KeyboardEvent]),_.g("design:returntype")],Pl.prototype,"onKeydown",null);Pl=_.O([_.v({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],Pl);
_.t(Pl,"ytd-inline-form-renderer",function(){if(hBv!==void 0)return hBv;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return hBv=K},{mode:1});var mJJ;var Hl=function(){var K=_.G.apply(this,arguments)||this;K.previousSelectValue=void 0;K.selectedItemMessage=void 0;return K};
_.r(Hl,_.G);Hl.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
Hl.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var K,X,F,P,H=(K=this.data)==null?void 0:(X=K.dropdown)==null?void 0:(F=X.dropdownRenderer)==null?void 0:(P=F.entries)==null?void 0:P.map(function(J){return J.privacyDropdownItemRenderer});
K=_.D(H!=null?H:[]);for(X=K.next();!X.done;X=K.next())if((X=X.value)&&X.int32Value===this.selectedValue){this.selectedItemMessage=X.itemMessage;break}}else this.selectedItemMessage=void 0;var f;(f=this.onValueChanged)==null||f.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var u;(u=this.data)!=null&&u.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
Hl.prototype.onValueChangedForSelectedValue=function(K){this.selectedValue=K.detail.value};
Hl.prototype.selectedValueChanged=Hl.prototype.selectedValueChanged;_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],Hl.prototype,"ytEventForwardingBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Hl.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Hl.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Hl.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Hl.prototype,"data",void 0);_.O([_.h(),_.g("design:type",String)],Hl.prototype,"theme",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Number)],Hl.prototype,"selectedValue",void 0);_.O([_.h(),_.g("design:type",Function)],Hl.prototype,"onValueChanged",void 0);
_.O([_.JA("selectedValue"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Hl.prototype,"selectedValueChanged",null);Hl=_.O([_.v({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],Hl);
_.t(Hl,"ytd-dropdown-form-field-renderer",function(){if(mJJ!==void 0)return mJJ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return mJJ=K},{mode:_.Ig("kevlar_poly_si_batch_j025")?1:2});var G1v;var s5=function(){return _.G.apply(this,arguments)||this};
_.r(s5,_.G);_.Oi.Object.defineProperties(s5.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var K=[],X=_.D(this.data||[]),F=X.next();!F.done;F=X.next())(F=_.T(F.value,IC8))&&K.push(F);return K}}});
_.O([_.h(),_.g("design:type",Array)],s5.prototype,"data",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],s5.prototype,"byline",null);s5=_.O([_.v({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],s5);
_.t(s5,"ytd-playlist-byline-renderer",function(){if(G1v!==void 0)return G1v;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return G1v=K},{mode:1});var lJ5;var zj=function(){var K=_.G.apply(this,arguments)||this;K.rtlBullet=_.S("web_playlist_stats_rtl_bullet_icon_killswitch");K.modern=_.S("web_modern_buttons");K.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return K};
_.r(zj,_.G);_.z=zj.prototype;_.z.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more"}}}},"data.playButtons":{id:"play-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"},toggleButtonRenderer:{component:"ytd-toggle-button-renderer"},compactLinkRenderer:{component:"ytd-compact-link-renderer"}}}}};
_.z.attached=function(){};
_.z.computeIsCustomThumbnail=function(K){return K?!!K.playlistCustomThumbnailRenderer:!1};
_.z.onYtNavigate=function(K,X){if(X&&X.actions&&X.actions.indexOf("shuffle")>-1){K=_.i9().resolve(_.AW);var F=X.tempData||{};F.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);X.tempData=F;K.isShuffleNextPlaylist=!0}};
_.z.onUpdatePlaylistAction=function(K){var X;K=(X=_.T(K,_.EAC))==null?void 0:X.updatedRenderer;if(X=_.T(K,yJ))this.data=X};
_.z.computeStyleType=function(K){return K?K.toLowerCase().replace(/_/g,"-"):""};
_.z.computeThumbnailWidth=function(K){return K==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.z.computeHideThumbnailAria=function(K){if(K==null?0:K.thumbnailOverlays)for(var X=0;X<K.thumbnailOverlays.length;X++){var F=void 0;if((F=K.thumbnailOverlays[X])==null?0:F.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
zj.prototype.onYtNavigate=zj.prototype.onYtNavigate;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],zj.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],zj.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],zj.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],zj.prototype,"ytComponentBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],zj.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],zj.prototype,"rtlBullet",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.g("design:type",String)],zj.prototype,"styleType",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.g("design:type",Number)],zj.prototype,"thumbnailWidth",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],zj.prototype,"modern",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.g("design:type",Boolean)],zj.prototype,"isCustomThumbnail",void 0);_.O([_.Hc("yt-navigate"),_.g("design:type",Function),_.g("design:paramtypes",[Event,Object]),_.g("design:returntype")],zj.prototype,"onYtNavigate",null);
zj=_.O([_.v({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],zj);
_.t(zj,"ytd-playlist-sidebar-primary-info-renderer",function(){if(lJ5!==void 0)return lJ5;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return lJ5=K},{mode:1});var vn8;var fn=function(){return _.G.apply(this,arguments)||this};
_.r(fn,_.G);fn.prototype.computeOwnerVisibility=function(K){return!(!K.videoOwner&&!K.button)};
fn.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"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],fn.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],fn.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],fn.prototype,"data",void 0);fn=_.O([_.v({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],fn);
_.t(fn,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(vn8!==void 0)return vn8;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return vn8=K},{mode:1});var aJV;var D7=function(){var K=_.G.apply(this,arguments)||this;K.expanded=!1;K.isCompact=!1;return K};
_.r(D7,_.G);_.z=D7.prototype;_.z.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.z.dataChanged=function(){this.data&&_.v$(_.C$(this.text),_.xty(_.K4t,_.lj(this.data.text||null)))};
_.z.computeAutoScrollEnabled=function(K,X){return K&&!X};
_.z.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.z.toggleOnTap=function(){this.expanded=!this.expanded};
D7.prototype.expandedChanged=D7.prototype.expandedChanged;D7.prototype.dataChanged=D7.prototype.dataChanged;_.O([_.W(_.Vzv),_.g("design:type",Object)],D7.prototype,"ytdAutoScrollBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],D7.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],D7.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],D7.prototype,"expanded",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],D7.prototype,"isCompact",void 0);_.O([_.h({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.g("design:type",Boolean)],D7.prototype,"autoScrollEnabled",void 0);_.O([_.fa("#text"),_.g("design:type",Object)],D7.prototype,"text",void 0);_.O([_.fa("#expander-icon"),_.g("design:type",Object)],D7.prototype,"expanderIcon",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],D7.prototype,"dataChanged",null);_.O([_.so("expanded"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],D7.prototype,"expandedChanged",null);D7=_.O([_.v({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],D7);
_.t(D7,"ytd-channel-legal-info-renderer",function(){if(aJV!==void 0)return aJV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return aJV=K},{mode:1});var tld;var $Jw=_.uY("DOWNLOAD",{},"Download"),OHV=_.uY("DOWNLOADING",{},"Downloading"),Vlk=_.uY("DOWNLOADED",{},"Downloaded"),ul=function(){var K=_.G.apply(this,arguments)||this;K.downloadProgress=0;K.isDownloadComplete=!1;K.transferState="TRANSFER_STATE_UNKNOWN";return K};
_.r(ul,_.G);_.z=ul.prototype;_.z.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.z.dataChanged=function(){var K;(K=this.data)!=null&&K.tooltip||(K=_.A7(_.aA().getState(),this.playlistId),this.updateButtonState(K))};
_.z.computePlaylistId=function(K){return K};
_.z.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.z.updateButtonState=function(K){if(this.data&&(this.data.tooltip!==OHV||!_.J7(K))){this.isDownloadComplete=!1;switch(K){case "TRANSFER_STATE_UNKNOWN":K=$Jw;var X="OFFLINE_DOWNLOAD";var F="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":K=Vlk;X="OFFLINE_PIN";F="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":K=OHV;X="OFFLINE_DOWNLOADING_ZERO";F="ACTION_REMOVE_WITH_PROMPT";
break;default:K=$Jw,X="OFFLINE_DOWNLOAD",F="ACTION_ADD"}var P=Object.assign({},this.data);P.tooltip=K;P.accessibilityData={accessibilityData:{label:K}};P.icon={iconType:X};P.size="SIZE_DEFAULT";_.T(P.command,_.Fj)&&(_.T(P.command,_.Fj).action=F);this.set("data",P)}};
_.z.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var K="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?K="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?K="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?K="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?K="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?K="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(K="OFFLINE_PIN",this.isDownloadComplete=!0);var X;K!==((X=this.data.icon)==null?void 0:X.iconType)&&(X=Object.assign({},this.data),X.tooltip=OHV,X.accessibilityData={accessibilityData:{label:OHV}},X.icon={iconType:K},_.T(X.command,_.Fj)&&(_.T(X.command,_.Fj).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",X))}};
ul.prototype.updateProgress=ul.prototype.updateProgress;ul.prototype.onTransferStateChanged=ul.prototype.onTransferStateChanged;ul.prototype.dataChanged=ul.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ul.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],ul.prototype,"ytdReduxBehavior",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],ul.prototype,"forceIconButton",void 0);
_.O([_.h({value:!0}),_.g("design:type",Boolean)],ul.prototype,"forceIconOnly",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],ul.prototype,"overrides",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],ul.prototype,"buttonTooltipPosition",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],ul.prototype,"styleActionButton",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],ul.prototype,"disableTextTransform",void 0);
_.O([_.h({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.g("design:type",String)],ul.prototype,"playlistId",void 0);_.O([_.h(),_.g("design:type",Object)],ul.prototype,"data",void 0);_.O([_.h({selector:_.LQd,selectorArgs:["playlistId"]}),_.g("design:type",Object)],ul.prototype,"downloadProgress",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],ul.prototype,"isDownloadComplete",void 0);
_.O([_.h({selector:_.A7,selectorArgs:["playlistId"]}),_.g("design:type",String)],ul.prototype,"transferState",void 0);_.O([_.h({value:!0}),_.g("design:type",Boolean)],ul.prototype,"showTooltips",void 0);_.O([_.h({value:!0}),_.g("design:type",Boolean)],ul.prototype,"sendCommandWhenDisabled",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],ul.prototype,"disabled",void 0);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ul.prototype,"dataChanged",null);_.O([_.JA("transferState"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ul.prototype,"onTransferStateChanged",null);_.O([_.JA("downloadProgress"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ul.prototype,"updateProgress",null);
ul=_.O([_.v({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],ul);
_.t(ul,"ytd-download-playlist-button-renderer",function(){if(tld!==void 0)return tld;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return tld=K},{mode:1});var gnF;_.EP(_.GAt,"thumbnail-overlay-button-view-model",{props:{data:_.vU,lockupExperiments:_.vU}});var qG=function(){var K=_.G.apply(this,arguments)||this;K.isSquare=!1;K.isVertical=!1;return K};
_.r(qG,_.G);qG.prototype.computeIsSquare=function(K){return K!=null&&K.thumbnail?Adk(K.thumbnail)==="SQUARE":!1};
qG.prototype.computeIsVertical=function(K){return K!=null&&K.thumbnail?Adk(K.thumbnail)==="VERTICAL":!1};
qG.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],qG.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],qG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.g("design:type",Object)],qG.prototype,"isSquare",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.g("design:type",Object)],qG.prototype,"isVertical",void 0);
_.O([_.h(),_.g("design:type",Object)],qG.prototype,"data",void 0);qG=_.O([_.v({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],qG);
_.t(qG,"ytd-hero-playlist-thumbnail-renderer",function(){if(gnF!==void 0)return gnF;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return gnF=K},{mode:1});var J8=function(){var K=_.G.apply(this,arguments)||this;K.isDarkTheme=!1;K.isUltraWide=!1;K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return K};
_.r(J8,_.G);_.z=J8.prototype;_.z.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.i9();var K;(K=_.i9().resolve(_.Nu(_.ts)))!=null&&(K.headerElement=this.hostElement)};
_.z.detached=function(){var K;(K=_.i9().resolve(_.Nu(_.ts)))!=null&&(K.headerElement=void 0)};
_.z.onUpdateHeader=function(K){(K=K.detail)&&this.set("data",K)};
_.z.computeTextDisplayed=function(K){if(K)return K.textDisplayed?K.textDisplayed:K.placeholder};
_.z.gradientColorToLinearGradientStop=function(K){var X=this.isDarkTheme?K.darkThemeColor:K.lightThemeColor;return X?_.wq(X)+" "+((K==null?void 0:K.startLocation)||0)*100+"%":"transparent"};
_.z.onWindowResize=function(){var K;((K=this.data)==null?0:K.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.z.onIronResize=function(K){this.isUltraWide=!K.detail.value};
_.z.onDarkModeToggledAction=function(K){this.isDarkTheme=K};
_.z.onUpdatePlaylistName=function(K){var X=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},K.detail.value));_.tg(this,function(){var F;(F=X.editableTitle)==null||F.resize()})};
_.z.onUpdatePlaylistDescription=function(K){var X=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},K.detail.value));_.tg(this,function(){var F;(F=X.editableDescriptionInlineExpander)==null||F.resize()})};
_.z.getCinematicData=function(K){return _.T(K==null?void 0:K.cinematicContainer,_.Lh)};
_.Oi.Object.defineProperties(J8.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 K,X=(K=this.getCinematicData(this.data))==null?void 0:K.config;return(K=this.isDarkTheme?X==null?void 0:X.darkThemeBackgroundColor:X==null?void 0:X.lightThemeBackgroundColor)?"background-color:"+_.j0(K)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var K;return _.T((K=this.data)==null?void 0:K.descriptionForm,gPW)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var K=this,X,F,P;return"background:linear-gradient(to bottom, "+(((P=(X=this.getCinematicData(this.data))==null?void 0:(F=X.gradientColorConfig)==null?void 0:F.map(function(H){return K.gradientColorToLinearGradientStop(H)}))==null?void 0:P.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var K;return _.lj((K=this.data)==null?void 0:K.descriptionTapText)}}});
J8.prototype.onUpdateHeader=J8.prototype.onUpdateHeader;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],J8.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],J8.prototype,"actionHandlerBehavior",void 0);_.O([_.fa("#description-inline-expander"),_.g("design:type",Object)],J8.prototype,"descriptionInlineExpander",void 0);
_.O([_.fa("#editable-description-inline-expander"),_.g("design:type",Object)],J8.prototype,"editableDescriptionInlineExpander",void 0);_.O([_.h(),_.g("design:type",Object)],J8.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],J8.prototype,"isUltraWide",void 0);_.O([_.fa("#editable-title-display"),_.g("design:type",Object)],J8.prototype,"editableTitle",void 0);_.O([_.U("isUltraWide"),_.g("design:type",Object),_.g("design:paramtypes",[])],J8.prototype,"maxDescriptionLines",null);
_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],J8.prototype,"noCinematicData",null);_.O([_.Hc("yt-new-playlist-header"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],J8.prototype,"onUpdateHeader",null);_.O([_.U("data","isDarkTheme"),_.g("design:type",Object),_.g("design:paramtypes",[])],J8.prototype,"backgroundStyle",null);
_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],J8.prototype,"descriptionFormData",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],J8.prototype,"getDropdownTheme",null);_.O([_.U("data","isDarkTheme"),_.g("design:type",String),_.g("design:paramtypes",[])],J8.prototype,"gradientStyle",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],J8.prototype,"descriptionTapText",null);
J8=_.O([_.v({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],J8);
_.t(J8,"ytd-playlist-header-renderer",function(){if(UJo!==void 0)return UJo;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return UJo=K},{mode:_.Ig("kevlar_poly_si_batch_j078")?1:2});var En5;var bHw;var Z7=function(){return _.G.apply(this,arguments)||this};
_.r(Z7,_.G);Z7.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Z7.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Z7.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Z7.prototype,"data",void 0);Z7=_.O([_.v({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],Z7);
_.t(Z7,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(bHw!==void 0)return bHw;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return bHw=K},{mode:1});var YB=function(){return _.G.apply(this,arguments)||this};
_.r(YB,_.G);
YB.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}}}}};
YB.prototype.computeUsePremiumShowStyle=function(K){if(!K||!K.items)return!1;for(var X=0;X<K.items.length;X++)if(_.T(K.items[X],yJ)){var F=void 0;return((F=_.T(K.items[X],yJ))==null?void 0:F.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],YB.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],YB.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],YB.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.g("design:type",Boolean)],YB.prototype,"usePremiumShowStyle",void 0);
YB=_.O([_.v({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],YB);
_.t(YB,"ytd-playlist-sidebar-renderer",function(){if(En5!==void 0)return En5;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return En5=K},{mode:1});var Cp8;var Nhd;var iHw=function(K,X,F,P,H,f,u,J){this.minWidth=K;this.minHeight=X;this.recommendedWidth=F;this.recommendedHeight=P;this.JSC$19484_maxFileSize=H;this.title=f;this.bannerGalleryTitle=u;this.channelId=J;this.picker_=null;K=_.p9T("yt-banner");X=K.addView;F=(new UwJ("youtubebanner")).addUploadMetadata("silo_id","19");F.opts.ytMaxFileSize=this.JSC$19484_maxFileSize;P=this.recommendedHeight;F.opts.ytRecWidth=this.recommendedWidth;F.opts.ytRecHeight=P;X.call(K,F);K.addView(new _.Q2);X=K.addView;F=new _.Q2;
F.opts.type="ytbanner";X.call(K,F.JSC$8084_setLabel(this.bannerGalleryTitle));X=K.setTitle(this.title).setSize(1E3);X.urlParamMap_.set("thumbs","orig");F=this.minWidth;P=this.minHeight;if(isNaN(F)||isNaN(P))throw Error("kb`"+F+"`"+P);X.urlParamMap_.set("minSize",F+"x"+P);X.urlParamMap_.set("cropMode","ytcb");this.builder_=K};
iHw.prototype.open=function(){var K=this;return new _.fL(function(X,F){_.RjU(K.builder_,function(P){P.action=="picked"?X(P):P.action=="cancel"&&F(Error("Tl"))});
K.picker_&&K.picker_.dispose();K.picker_=K.builder_.build();K.picker_.setVisible(!0)})};
iHw.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var xJJ=function(K){this.channelId=K},IJk=function(K,X){var F="";
X.viewToken&&(F=X.viewToken[2].type);var P=X.docs[0];X=P.crop;K={channel_id:K.channelId,fife_url:P.thumbnails[0].url,photo_id:P.id,is_gallery_image:F=="ytbanner"};X&&(K.crop_top=X.top,K.crop_right=X.right,K.crop_bottom=X.bottom,K.crop_left=X.left);return _.WZy("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:K})};var QT=function(){var K=_.G.apply(this,arguments)||this;K.ariaLabel=null;return K};
_.r(QT,_.G);_.z=QT.prototype;_.z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.z.detached=function(){this.picker&&this.picker.dispose()};
_.z.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.z.computeAriaLabel=function(K){return K};
_.z.onTap=function(){var K=this,X;if((X=this.data)==null||!X.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new iHw(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 F;(F=this.picker)==null||F.open().then(function(P){K.handleBannerPicked(P)},function(){})}};
_.z.handleBannerPicked=function(K){var X=this;this.uploader||(this.uploader=new xJJ(this.data.channelId||""));this.message=this.data.uploadingText;IJk(this.uploader,K).then(function(F){X.handleBannerUploadSucceeded(F)},function(F){X.handleBannerUploadFailed(F)})};
_.z.handleBannerUploadSucceeded=function(K){K&&K.errors?this.handleBannerUploadFailed(K):(_.iX(this.hostElement,"yt-banner-updated",K),this.message=null)};
_.z.handleBannerUploadFailed=function(K){this.message=K&&K.errors&&K.errors.length?K.errors[0]:null};
QT.prototype.dataChanged=QT.prototype.dataChanged;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],QT.prototype,"componentBehavior",void 0);_.O([_.W(_.LT),_.g("design:type",Object)],QT.prototype,"ironButtonState",void 0);_.O([_.h(),_.g("design:type",Object)],QT.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.g("design:type",Object)],QT.prototype,"ariaLabel",void 0);
_.O([_.h(),_.g("design:type",Object)],QT.prototype,"message",void 0);_.O([_.h(),_.g("design:type",Object)],QT.prototype,"picker",void 0);_.O([_.h(),_.g("design:type",Object)],QT.prototype,"uploader",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],QT.prototype,"dataChanged",null);QT=_.O([_.v({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],QT);
_.t(QT,"ytd-channel-banner-editor-renderer",function(){if(Nhd!==void 0)return Nhd;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return Nhd=K},{mode:1});var k1w;var KB8=_.lr(["#"]),MG=function(){return _.G.apply(this,arguments)||this};
_.r(MG,_.G);MG.prototype.computeHrefWithDefault=function(K){return this.ytComponentBehavior.computeHref_(K,!0)||_.Tp(KB8)};
MG.prototype.dataChanged=function(){var K=this.data;K&&K.targetId&&_.n$T(_.Z9(),K.targetId,this.moreIcon)};
MG.prototype.dataChanged=MG.prototype.dataChanged;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],MG.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],MG.prototype,"data",void 0);_.O([_.fa("#more-icon"),_.g("design:type",Object)],MG.prototype,"moreIcon",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MG.prototype,"dataChanged",null);
MG=_.O([_.v({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],MG);
_.t(MG,"ytd-channel-tagline-renderer",function(){if(k1w!==void 0)return k1w;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return k1w=K},{mode:1});var X21;var nn=function(){return _.G.apply(this,arguments)||this};
_.r(nn,_.G);_.z=nn.prototype;_.z.ready=function(){var K=this;_.C$(this.hostElement).querySelector("#form").addEventListener("submit",function(X){K.onSubmit(X)})};
_.z.onDataChanged=function(){var K;((K=this.data)==null?0:K.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.z.onIconButtonKeydown=function(K){K.keyCode===13&&this.iconButton.click()};
_.z.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.z.openOnClickHandler=function(){this.input.focus()};
_.z.onSubmit=function(K){K.preventDefault();return!1};
_.z.submitOnEnterKeyUp=function(K){var X;if(K.keyCode===13&&((X=this.data)==null?0:X.expandedText)){K=this.data.endpoint;X=_.T8.unsafeClone(K);var F;((F=_.T(X==null?void 0:X.commandMetadata,_.g_))==null?0:F.url)?(_.T(X.commandMetadata,_.g_).url=_.eF(_.T(X.commandMetadata,_.g_).url,"query",this.data.expandedText),_.T(X,_.f$)&&(_.T(X,_.f$).query=this.data.expandedText),_.iX(this.hostElement,"yt-navigate",{endpoint:X,tempData:{disableCache:!0}})):(F=new _.nG("Error: Trying to navigate to an endpoint without url",
K),_.jF(F))}};
_.z.updateDataExpandedTextFromBinding=function(K){this.set("data.expandedText",K.detail.value)};
_.Oi.Object.defineProperties(nn.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
nn.prototype.onDataChanged=nn.prototype.onDataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],nn.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.w$J),_.g("design:type",Object)],nn.prototype,"ytdExpandableInputBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],nn.prototype,"data",void 0);_.O([_.fa("#input"),_.g("design:type",Object)],nn.prototype,"input",void 0);_.O([_.fa("#icon-button"),_.g("design:type",HTMLElement)],nn.prototype,"iconButton",void 0);
_.O([_.h(),_.g("design:type",String),_.g("design:paramtypes",[])],nn.prototype,"searchIcon",null);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],nn.prototype,"onDataChanged",null);nn=_.O([_.v({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],nn);
var jqF=_.xc()(nn,"ytd-expandable-tab-renderer",function(){if(X21===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);X21=K}K=X21;return K},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var FBk;var cl=function(){var K=_.G.apply(this,arguments)||this;K.avatarSize=80;K.ariaLabel=_.uY("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return K};
_.r(cl,_.G);cl.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
cl.prototype.computeHref=function(K){var X;return((X=_.T(K,_.mc))==null?0:X.url)?this.componentBehavior.computeHref_(K):null};
cl.prototype.onTap=function(){var K,X;(K=this.data)==null||!K.editAvatarServiceEndpoint||((X=_.T(this.data.editAvatarServiceEndpoint,_.mc))==null?0:X.url)||_.i9().resolve(_.xU).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.O([_.W(_.LT),_.g("design:type",Object)],cl.prototype,"ironButtonState",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],cl.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],cl.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],cl.prototype,"avatarSize",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],cl.prototype,"ariaLabel",void 0);cl=_.O([_.v({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],cl);
_.t(cl,"ytd-channel-avatar-editor",function(){if(FBk!==void 0)return FBk;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return FBk=K},{mode:1});var PA8=_.$c(function(K){var X=K.data;var F=K.noPadding;var P=K.enableBanner;var H=K.cinematicContainerTopbarOffset;var f=K.allowCinematicContainerOverflow;var u=K.displayAsSidebar;K=K.className;_.rs(function(){X().tagManagerId&&(_.nE(X().tagManagerId,_.e8("GL")),Rov(X().tagManagerId))},"xVTVTe");
var J=_.sy(ydJ,function(){return X().pageHeaderEntityKey});
return _.Q("yt-page-header-renderer",{class:_.HO("page-header-renderer-wiz",K)},_.Q(_.Md,{data:function(){var Z;return((Z=J())==null?0:Z.header)?J().header:(u==null?0:u())&&X().sidebarContent?X().sidebarContent:X().content}},{pageHeaderViewModel:function(Z){return _.Q(_.KCQ,{data:Z.data,
noPadding:F,enableBanner:P,cinematicContainerTopbarOffset:H,allowCinematicContainerOverflow:f,displayAsSidebar:function(){return(u==null?void 0:u())&&X().enableSidebarView}})}}))},"Gi");
PA8.idomCompat=!0;_.EP(PA8,"yt-page-header-renderer",{props:{data:_.vU,noPadding:_.vU,enableBanner:_.vU,cinematicContainerTopbarOffset:_.vU,allowCinematicContainerOverflow:_.vU,displayAsSidebar:_.vU,className:_.vU}});_.EP(_.IUZ,"yt-image-banner-view-model",{props:{data:_.vU,isPositionRelative:_.vU}});_.EP(_.nHu,"yt-tab-group-shape",{props:{shape:_.vU}});var pn=function(){var K=_.G.apply(this,arguments)||this;K.expandableCustomTabRenderable=function(X){return wqW(X,function(){return void K.onSearchNavigate()})};
K.isRichGrid=!1;K.isConstrainedList=!1;K.richGridMiniMode=!1;K.richGridStyle="RICH_GRID_STYLE_UNKNOWN";K.isRichGridShorts=!1;K.responsiveSizing="COMPACT";K.disableGridStateAware=!1;K.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return K};
_.r(pn,_.G);_.z=pn.prototype;_.z.computeHeaderDisabled=function(K,X){return X||!K||this.tabsHidden};
_.z.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.z.computeIsRichGridShorts=function(K){return K==="RICH_GRID_STYLE_SHORTS_GRID"||K==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.z.computeImageBannerViewModel=function(){var K,X;return _.T((X=_.T((K=this.data)==null?void 0:K.content,_.l_N))==null?void 0:X.banner,_.Rrt)};
_.z.computeHasCinematicContainer=function(){var K,X;return!((X=_.T((K=this.data)==null?void 0:K.content,_.l_N))==null||!X.background)};
_.z.handleHeaderResize=function(){var K=_.C$(this.hostElement).querySelector("#header");K&&_.iX(K,"iron-resize")};
_.z.handleInsertTabCommand=function(K){var X=_.T(K,kA1);X&&(X.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(F){return F.tabRenderer&&F.tabRenderer.tabIdentifier===X.tabIdentifier})||this.splice("tabs",X.tabIndex||-1,0,X.tab))};
_.z.handleRefreshChannelTabAction=function(K){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===K&&_.iX(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.z.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.XU(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.z.observerRichGridSlimItemsPerRow=function(){_.XU(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.z.updateCssVars=function(){this.richGridItemsPerRow&&_.XU(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.kU("rich_grid_max_item_width",500))+16)-16+"px"})};
_.z.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.XU(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.z.onDataChanged=function(){this.handleHeaderResize()};
_.z.onWindowResize=function(){this.handleHeaderResize()};
_.z.onFocusedChanged=function(K){(K=_.vI(K))&&K.is==="tp-yt-paper-tab"&&K.hasRipple()&&(K.getRipple().holdDown=!K.pointerDown&&K.focused)};
_.z.updateSelectedFromBinding=function(K){this.ytdTabbedHeaderBehavior.selected=K.detail.value};
_.z.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.Oi.Object.defineProperties(pn.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:dwt(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.imageBannerViewModel)==null?void 0:K.style)==="IMAGE_BANNER_STYLE_INSET"}}});
pn.prototype.onDataChanged=pn.prototype.onDataChanged;pn.prototype.updateCssVarsForResponsiveGrid=pn.prototype.updateCssVarsForResponsiveGrid;pn.prototype.updateCssVars=pn.prototype.updateCssVars;pn.prototype.observerRichGridSlimItemsPerRow=pn.prototype.observerRichGridSlimItemsPerRow;pn.prototype.observerRichGridItemsPerRow=pn.prototype.observerRichGridItemsPerRow;_.O([_.W(_.dK),_.g("design:type",Object)],pn.prototype,"ytdGridStateAwareBehavior",void 0);
_.O([_.W(KKt),_.g("design:type",Object)],pn.prototype,"ytdTabbedHeaderBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],pn.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],pn.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.RW.YtdGuideStateAwareBehavior),_.g("design:type",Object)],pn.prototype,"ytdGuideStateAwareBehavior",void 0);
_.O([_.W(_.jn),_.g("design:type",Object)],pn.prototype,"ytdReduxBehavior",void 0);_.O([_.fa("#tabs"),_.g("design:type",Object)],pn.prototype,"tabsElement",void 0);_.O([_.h(),_.g("design:type",Array)],pn.prototype,"tabs",void 0);_.O([_.h(),_.g("design:type",Object)],pn.prototype,"expandableCustomTabRenderable",void 0);_.O([_.U("tabs.*"),_.g("design:type",Object),_.g("design:paramtypes",[])],pn.prototype,"tabGroupShape",null);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],pn.prototype,"isRichGrid",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],pn.prototype,"isConstrainedList",void 0);_.O([_.h({reflectToAttribute:!0,selector:_.SJ}),_.g("design:type",Object)],pn.prototype,"richGridMiniMode",void 0);_.O([_.h({selector:function(K){return K.ui.richGridStyle}}),
_.g("design:type",Object)],pn.prototype,"richGridStyle",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.g("design:type",Object)],pn.prototype,"isRichGridShorts",void 0);_.O([_.h({selector:_.oA}),_.g("design:type",Number)],pn.prototype,"richGridItemsPerRow",void 0);_.O([_.h({selector:function(K){return K.ui.richGridContainerWidth}}),
_.g("design:type",Number)],pn.prototype,"richGridContainerWidth",void 0);_.O([_.h({selector:_.D2y}),_.g("design:type",Number)],pn.prototype,"richGridSlimItemsPerRow",void 0);_.O([_.h(),_.g("design:type",Object)],pn.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],pn.prototype,"responsiveSizing",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],pn.prototype,"disableGridStateAware",void 0);
_.O([_.h({computed:"computeImageBannerViewModel(data)"}),_.g("design:type",Object)],pn.prototype,"imageBannerViewModel",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.g("design:type",Boolean)],pn.prototype,"hasCinematicContainer",void 0);_.O([_.h({selector:_.Yvt,reflectToAttribute:!0}),_.g("design:type",Boolean)],pn.prototype,"guideIsVisibleButNotPersistent",void 0);
_.O([_.h({reflectToAttribute:!0}),_.U("imageBannerViewModel"),_.g("design:type",Object),_.g("design:paramtypes",[])],pn.prototype,"hasBanner",null);_.O([_.h({reflectToAttribute:!0}),_.U("imageBannerViewModel"),_.g("design:type",Object),_.g("design:paramtypes",[])],pn.prototype,"hasInsetBanner",null);_.O([_.h({computed:"computeTabsHidden(tabs)",value:!0}),_.g("design:type",Boolean)],pn.prototype,"tabsHidden",void 0);
_.O([_.so("richGridItemsPerRow","isRichGrid"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],pn.prototype,"observerRichGridItemsPerRow",null);_.O([_.so("richGridSlimItemsPerRow"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],pn.prototype,"observerRichGridSlimItemsPerRow",null);
_.O([_.so("richGridItemsPerRow","richGridMiniMode"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],pn.prototype,"updateCssVars",null);_.O([_.so("richGridContainerWidth"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],pn.prototype,"updateCssVarsForResponsiveGrid",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],pn.prototype,"onDataChanged",null);
pn=_.O([_.v({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],pn);
_.t(pn,"ytd-tabbed-page-header",function(){if(Cp8!==void 0)return Cp8;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Cp8=K},{mode:1});var HPJ;var Bl=function(){return _.G.apply(this,arguments)||this};
_.r(Bl,_.G);Bl.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.XU(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Oi.Object.defineProperties(Bl.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var K,X;return this.componentBehavior.computeIcon_(((X=_.T((K=this.data)==null?void 0:K.badge,_.jct))==null?void 0:X.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var K,X;return(X=_.T((K=this.data)==null?void 0:K.badge,_.jct))==null?void 0:X.label}}});
Bl.prototype.observerRichGridItemsPerRow=Bl.prototype.observerRichGridItemsPerRow;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Bl.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Bl.prototype,"componentBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],Bl.prototype,"ytdReduxBehavior",void 0);_.O([_.h({reflectToAttribute:!0,selector:_.SJ}),_.g("design:type",Boolean)],Bl.prototype,"richGridMiniMode",void 0);
_.O([_.h({selector:_.oA}),_.g("design:type",Number)],Bl.prototype,"richGridItemsPerRow",void 0);_.O([_.h(),_.g("design:type",Object)],Bl.prototype,"data",void 0);_.O([_.so("richGridItemsPerRow"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Bl.prototype,"observerRichGridItemsPerRow",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],Bl.prototype,"badgeIconName",null);
_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],Bl.prototype,"badgeLabel",null);Bl=_.O([_.v({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],Bl);
_.t(Bl,"ytd-member-hub-profile-renderer",function(){if(HPJ!==void 0)return HPJ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return HPJ=K},{mode:1});var sP5;var SV=function(){return _.G.apply(this,arguments)||this};
_.r(SV,_.G);SV.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],SV.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],SV.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],SV.prototype,"data",void 0);SV=_.O([_.v({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],SV);
_.t(SV,"ytd-settings-sidebar-renderer",function(){if(sP5!==void 0)return sP5;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return sP5=K},{mode:1});var zR5;var om=function(){var K=_.G.apply(this,arguments)||this;K.expandableCustomTabRenderable=function(X){return wqW(X,function(){return void K.onSearchNavigate()})};
return K};
_.r(om,_.G);om.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
om.prototype.onSearchNavigate=function(){this.selected=void 0};
om.prototype.onTabsChange=function(){var K,X=(K=this.tabs)==null?void 0:K.findIndex(function(F){var P;return F==null?void 0:(P=F.tabRenderer)==null?void 0:P.selected});
X!==void 0&&(this.selected=X)};
om.prototype.onTabsActive=function(K){if(this.tabs!==void 0){var X,F;(K=(X=this.tabs[K.detail.selected])==null?void 0:(F=X.tabRenderer)==null?void 0:F.endpoint)&&_.iX(this.hostElement,"yt-navigate",{endpoint:K})}};
_.Oi.Object.defineProperties(om.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:dwt(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
om.prototype.onTabsChange=om.prototype.onTabsChange;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],om.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.dK),_.g("design:type",Object)],om.prototype,"ytdGridStateAwareBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],om.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.RW.YtdGuideStateAwareBehavior),_.g("design:type",Object)],om.prototype,"ytdGuideStateAwareBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],om.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Array)],om.prototype,"tabs",void 0);_.O([_.h(),_.g("design:type",Number)],om.prototype,"selected",void 0);_.O([_.U("tabs.*"),_.g("design:type",Object),_.g("design:paramtypes",[])],om.prototype,"tabGroupShape",null);_.O([_.h(),_.g("design:type",Object)],om.prototype,"expandableCustomTabRenderable",void 0);
_.O([_.U("tabs"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],om.prototype,"tabsEnabled",null);_.O([_.JA("tabs"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],om.prototype,"onTabsChange",null);om=_.O([_.v({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],om);
_.t(om,"ytd-topic-channel-details-renderer",function(){if(zR5!==void 0)return zR5;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return zR5=K},{mode:1});var fct;var Ln=function(){var K=_.G.apply(this,arguments)||this;K.disableGridStateAware=!1;return K};
_.r(Ln,_.G);Ln.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]]"}}}}}};
Ln.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
Ln.prototype.updateCssVars=function(){_.XU(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.kU("rich_grid_max_item_width",500))+16)-16+"px"})};
Ln.prototype.updateCssVars=Ln.prototype.updateCssVars;Ln.prototype.activeChanged=Ln.prototype.activeChanged;_.O([_.W(_.RW.YtdGuideStateAwareBehavior),_.g("design:type",Object)],Ln.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],Ln.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Ln.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Ln.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Ln.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Array)],Ln.prototype,"tabs",void 0);_.O([_.h(),_.g("design:type",Boolean)],Ln.prototype,"active",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Ln.prototype,"disableGridStateAware",void 0);
_.O([_.h({selector:_.oA}),_.g("design:type",Number)],Ln.prototype,"richGridItemsPerRow",void 0);_.O([_.h({selector:_.SJ}),_.g("design:type",Boolean)],Ln.prototype,"richGridMiniMode",void 0);_.O([_.fa("ytd-carousel-item-renderer"),_.g("design:type",Object)],Ln.prototype,"carousel",void 0);_.O([_.so("active"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ln.prototype,"activeChanged",null);
_.O([_.so("richGridItemsPerRow","richGridMiniMode"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ln.prototype,"updateCssVars",null);Ln=_.O([_.v({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],Ln);
_.t(Ln,"ytd-carousel-header-renderer",function(){if(fct!==void 0)return fct;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return fct=K},{mode:1});var Dj5;var up5=_.lr(["https://www.google-analytics.com/analytics.js"]),Tj=function(){var K=_.G.apply(this,arguments)||this;K.scriptAnalyticsAdded=!1;return K};
_.r(Tj,_.G);Tj.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var K,X=(K=this.data)==null?void 0:K.tagManagerId;X&&(_.nE(X,_.e8("GL")),Rov(X))};
Tj.prototype.sendGoogleAnalyticsPageview=function(K){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var F=_.Ls.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(F)};
var X=window.ga;X("set","page",window.location.pathname);X.l=+new Date;X("set","forceSSL",!0);X("create",K,"'auto'");X("send","pageview")};
Tj.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var K=_.nJ("SCRIPT");K.name="ga-analytics";var X=_.Xs(up5);_.li(K,X);K.async=!0;_.C$(this.hostElement).appendChild(K)};
Tj.prototype.dataChanged=Tj.prototype.dataChanged;_.O([_.h(),_.g("design:type",Object)],Tj.prototype,"data",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Tj.prototype,"dataChanged",null);Tj=_.O([_.v({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],Tj);
_.t(Tj,"ytd-channel-metadata-renderer",function(){if(Dj5!==void 0)return Dj5;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Dj5=K},{mode:1});var q0J;var J2V;var r6=function(){return _.G.apply(this,arguments)||this};
_.r(r6,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],r6.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],r6.prototype,"data",void 0);r6=_.O([_.v({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],r6);
_.t(r6,"ytd-sub-feed-option-renderer",function(){if(J2V!==void 0)return J2V;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return J2V=K},{mode:1});var ZPG;var A8=function(){return _.G.apply(this,arguments)||this};
_.r(A8,_.G);A8.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],A8.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],A8.prototype,"ytRendererStamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],A8.prototype,"data",void 0);A8=_.O([_.v({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],A8);
_.t(A8,"ytd-sub-feed-selector-renderer",function(){if(ZPG!==void 0)return ZPG;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return ZPG=K},{mode:1});var jV=function(){return _.G.apply(this,arguments)||this};
_.r(jV,_.G);
jV.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}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],jV.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],jV.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],jV.prototype,"data",void 0);jV=_.O([_.v({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],jV);
_.t(jV,"ytd-browse-feed-actions-renderer",function(){if(q0J!==void 0)return q0J;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return q0J=K},{mode:1});var Y0k;var QPv;var w6=function(){return _.G.apply(this,arguments)||this};
_.r(w6,_.G);w6.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],w6.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],w6.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],w6.prototype,"data",void 0);w6=_.O([_.v({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],w6);
_.t(w6,"ytd-mini-channel-renderer",function(){if(QPv!==void 0)return QPv;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return QPv=K},{mode:1});var MCJ;var yT=function(){return _.G.apply(this,arguments)||this};
_.r(yT,_.G);yT.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],yT.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],yT.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],yT.prototype,"data",void 0);yT=_.O([_.v({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],yT);
_.t(yT,"ytd-vertical-channel-section-renderer",function(){if(MCJ!==void 0)return MCJ;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return MCJ=K},{mode:1});var Wl=function(){return _.G.apply(this,arguments)||this};
_.r(Wl,_.G);Wl.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Wl.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Wl.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Wl.prototype,"data",void 0);Wl=_.O([_.v({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Wl);
_.t(Wl,"ytd-browse-secondary-contents-renderer",function(){if(Y0k!==void 0)return Y0k;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);
return Y0k=K},{mode:1});var nk1;var d6=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};K.notActive=!1;K.isConstrainedList=!1;return K};
_.r(d6,_.G);_.z=d6.prototype;
_.z.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"},matcher:function(K){var X;return(K==null?void 0:(X=K.webComponentHint)==null?void 0:X.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}}}}};
_.z.getPath=function(K,X){var F="data.tabs.#"+X+".";K.tabs[X].tabRenderer?F+="tabRenderer.":K.tabs[X].expandableTabRenderer&&(F+="expandableTabRenderer.");return F+"content.sectionListRenderer"};
_.z.computeDisplayedContent=function(K){this.unlinkPaths("content");if(K&&K.tabs)for(var X=K.tabs.length,F=0;F<X;F++){var P=K.tabs[F].tabRenderer||K.tabs[F].expandableTabRenderer;if(P.selected&&P.content)return this.linkPaths("content",this.getPath(K,F)),P.content}return null};
_.z.computeHasSecondaryColumnData=function(K){return!!K&&!!K.secondaryContents};
_.z.onRetrieveLocation=function(K,X){X.locationRetrieved(X.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);K.stopPropagation()};
_.z.onYtServiceRequestSent=function(K,X){_.S("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(X)};
_.z.onYtServiceRequestCompleted=function(K,X){_.S("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(X)};
_.z.onReplaceFeedContentAction=function(K){if(!_.S("replace_feed_content_action_killswitch")&&!this.notActive){var X;(K=(X=_.T(K,$wG))==null?void 0:X.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(K)}};
_.z.handleServiceRequestActions=function(K){if(K=K.actions){K=_.D(K);for(var X=K.next();!X.done;X=K.next()){X=X.value;var F=void 0;((F=_.T(X,$wG))==null?0:F.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.T(X,$wG).items)}}};
d6.prototype.onYtServiceRequestCompleted=d6.prototype.onYtServiceRequestCompleted;d6.prototype.onYtServiceRequestSent=d6.prototype.onYtServiceRequestSent;d6.prototype.onRetrieveLocation=d6.prototype.onRetrieveLocation;_.O([_.W(_.dK),_.g("design:type",Object)],d6.prototype,"ytdGridStateAwareBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],d6.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],d6.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],d6.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],d6.prototype,"data",void 0);_.O([_.h({computed:"computeDisplayedContent(data)"}),_.g("design:type",Object)],d6.prototype,"content",void 0);
_.O([_.h({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],d6.prototype,"hasSecondaryColumnData",void 0);_.O([_.h({value:function(){return window.outerHeight>1024?3:2}}),
_.g("design:type",Number)],d6.prototype,"initialCount",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],d6.prototype,"pageSubtype",void 0);_.O([_.fa("ytd-section-list-renderer"),_.g("design:type",Object)],d6.prototype,"listRenderer",void 0);_.O([_.h(),_.g("design:type",Object)],d6.prototype,"notActive",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],d6.prototype,"isConstrainedList",void 0);
_.O([_.h(),_.g("design:type",String)],d6.prototype,"responsiveSizing",void 0);_.O([_.Hc("yt-retrieve-location"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],d6.prototype,"onRetrieveLocation",null);_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.yk]),_.g("design:returntype")],d6.prototype,"onYtServiceRequestSent",null);
_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.G9]),_.g("design:returntype")],d6.prototype,"onYtServiceRequestCompleted",null);d6=_.O([_.v({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],d6);
_.t(d6,"ytd-two-column-browse-results-renderer",function(){if(nk1!==void 0)return nk1;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return nk1=K},{mode:2});var c2k;var p2G;var eV=function(){var K=_.G.apply(this,arguments)||this;K.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"]);K.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"]);K.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return K};
_.r(eV,_.G);_.z=eV.prototype;_.z.attached=function(){this.requestElementsPerRow()};
_.z.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[dismissBoundButtonTap_]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[acceptBoundButtonTap_]]"}}}}}};
_.z.onUpdateElementsPerRowAction=function(K){K&&this.elementsPerRow!==K&&(this.elementsPerRow=K)};
_.z.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.z.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.z.computeAlertStyle_=function(K){return K};
_.z.observerElementsPerRow=function(){this.elementsPerRow&&_.XU(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.z.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.z.requestElementsPerRow=function(){_.iX(this.hostElement,"yt-request-elements-per-row")};
eV.prototype.onIsVisibleChanged_=eV.prototype.onIsVisibleChanged_;eV.prototype.observerElementsPerRow=eV.prototype.observerElementsPerRow;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],eV.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],eV.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],eV.prototype,"actionHandlerBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],eV.prototype,"data",void 0);_.O([_.h({value:6,reflectToAttribute:!0}),_.g("design:type",Number)],eV.prototype,"elementsPerRow",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],eV.prototype,"wrapButtons",void 0);_.O([_.h({value:_.e8("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.g("design:type",Boolean)],eV.prototype,"isMusic",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.g("design:type",String)],eV.prototype,"alertStyle",void 0);_.O([_.h({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.g("design:type",Function)],eV.prototype,"dismissBoundButtonTap_",void 0);_.O([_.h({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.g("design:type",Function)],eV.prototype,"acceptBoundButtonTap_",void 0);_.O([_.so("elementsPerRow"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],eV.prototype,"observerElementsPerRow",null);_.O([_.so("data.isVisible"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],eV.prototype,"onIsVisibleChanged_",null);eV=_.O([_.Tb({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],eV);
_.t(eV,"yt-alert-with-actions-renderer",function(){if(p2G===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;c2k===void 0&&(c2k=document.createElement("template"));var P=c2k;F.call(X,P.content.cloneNode(!0),K.content.firstChild);p2G=K}K=p2G;return K},{mode:2});_.EP(_.$c(function(K){function X(B){var L={};return _.Q(_.Oy,{text:B,className:_.HO("ytPersonalGreetingViewModelHeadline",(L.ytPersonalGreetingViewModelHeadlineSmall=function(){return J()===48},L))})}
function F(B,L){return _.Q("span",{el:B,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},X(L))}
var P=_.t_(),H=_.t_(),f=_.t_(),u=function(){return K.data().canvasPromoData},J=function(){var B;
return(B=K.data().bannerHeight)!=null?B:56},Z=_.zJn(P,{throttleMs:100}),M=_.zJn(H,{throttleMs:100}),n=_.zJn(f,{throttleMs:100}),c=function(){return M.width()-Z.width()>1};
_.m_(P,function(){var B;return(B=K.data())==null?void 0:B.rendererContext},void 0,void 0,void 0,!0);
return _.Q("yt-personal-greeting-view-model",{el:P,"aria-hidden":c,class:_.HO(K.className,"ytPersonalGreetingViewModelHost"),style:_.Je({height:(0,_.oO)(function(){return c()?0:J()})})},_.Q(_.p,{cond:function(){return K.data().avatar&&!(n.width()+(K.data().avatar?48:0)-Z.width()>1)},
then:function(){return _.Q(_.Md,{data:function(){return K.data().avatar}},{decoratedAvatarViewModel:function(B){return _.Q(_.SZ,{data:B.data,
className:_.HO("ytPersonalGreetingViewModelAvatar")})}})}}),_.Q("h1",null,X(function(){var B;
return(u==null?void 0:(B=u())==null?void 0:B.headline)||(n.width()+(K.data().avatar?48:0)-Z.width()>1?K.data().shorterGreeting:K.data().greeting)})),F(f,function(){return K.data().greeting}),F(H,function(){return K.data().shorterGreeting}))},"Hi"),"yt-personal-greeting-view-model",{props:{data:_.vU,
className:_.vU}});var Rm=function(){var K=_.G.apply(this,arguments)||this;K.hidden=!1;K.isConstrainedList=!1;K.darkerDarkTheme=_.S("web_darker_dark_theme");K.responsiveSizing="COMPACT";K.attachedPlayers=_.S("kevlar_channel_trailer_multi_attach")?[]:void 0;K.player=null;K.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return K};
_.r(Rm,_.G);_.z=Rm.prototype;
_.z.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{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}}}}};
_.z.created=function(){var K=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){K.disposeMastheadAd()}]};
_.z.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new Ppd(this.refresh,this.contents))};
_.z.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.z.activeChanged=function(){var K=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=K)};
_.z.tabsChanged=function(){var K=this,X,F;if(this.pageSubtype==="channels"||_.S("kevlar_tab_gestures_for_tabbed_header_data")&&((X=this.data)==null?0:(F=X.header)==null?0:F.carouselHeaderRenderer))this.tabGestures=new dU(this.contents,this.contents,this.hostElement,this.header,function(u){K.ytdReduxBehavior.dispatch(u)});
var P,H,f;X=(P=this.data)==null?void 0:(H=P.contents)==null?void 0:(f=H.twoColumnBrowseResultsRenderer)==null?void 0:f.tabs;this.tabGestures&&this.tabGestures.tabsChanged(X)};
_.z.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.z.engagementPanelsChanged=function(){var K=_.i9().resolve(_.cR);if(K){if(this.engagementPanels)for(var X=_.D(this.engagementPanels),F=X.next();!F.done;F=X.next()){var P=void 0;(F=(P=F.value.identifier)==null?void 0:P.tag)&&K.panelMap.delete(F)}this.engagementPanels=[];var H;X=_.D(((H=this.data)==null?void 0:H.panels)||[]);for(H=X.next();!H.done;H=X.next()){H=_.T(H.value,_.mQv);var f=F=void 0,u=void 0,J=void 0;if(P=((F=H)==null?void 0:F.targetId)||((f=H)==null?void 0:f.panelIdentifier)||((u=H)==
null?void 0:(J=u.identifier)==null?void 0:J.tag))f=F=void 0,(f=(F=K).registerPanelContent)==null||f.call(F,P,{engagementPanelSectionListRenderer:H}),this.engagementPanels.push(H)}}};
_.z.onStampFinished=function(){var K=this;_.tg(this,function(){if(K.tabGestures){var X=K.tabGestures;if(X.scrollPositionNeedsUpdate){var F=_.i9().resolve(_.Nu(_.ax)),P;if((P=X.selectedTab)!=null&&P.title&&F&&(P=F.getCurrentPage())){if(X.scrollPositionForTabs.has(X.selectedTab.title)){var H,f;F=(f=(H=F.getCurrentPage())==null?void 0:H.clientHeight)!=null?f:0;H=X.scrollPositionForTabs.get(X.selectedTab.title);P.setScrollTop(H);F>H+100&&(X.scrollPositionNeedsUpdate=!1)}else P.setScrollTop(Math.min(X.lastVisitedTabScrollPosition!==
void 0?X.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,X.tabsStartAtInPx)),X.scrollPositionNeedsUpdate=!1;X.ytdReduxDispatch(eod(!1))}}}})};
_.z.loadPage_=function(K){this.initCsi();K&&(this.data=K);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.z.getTitle=function(K){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",K))return this.get("microformat.microformatDataRenderer.title",K);if(this.get("header.feedTabbedHeaderRenderer.title",K))return _.lj(this.get("header.feedTabbedHeaderRenderer.title",K));if(this.get("header.interactiveTabbedHeaderRenderer.title",K))return this.get("header.interactiveTabbedHeaderRenderer.title",K);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
K))return _.lj(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",K));var X,F;return _.S("enable_page_header_page_title")&&(K==null?0:(X=K.header)==null?0:(F=X.pageHeaderRenderer)==null?0:F.pageTitle)?K.header.pageHeaderRenderer.pageTitle:""};
_.z.updateTitle=function(K){_.iX(this.hostElement,"yt-update-title",this.getTitle(K))};
_.z.initCsi=function(){_.AC(this.pageSubtype||"browse",["ol","cpt"])};
_.z.getPlayer=function(){if(_.S("kevlar_channel_trailer_multi_attach")){for(var K=_.D(this.attachedPlayers),X=K.next();!X.done;X=K.next())if(X=X.value,X.isConnected||_.G3(this.hostElement,X))return X;return null}return this.player};
_.z.getPlayerContainer=function(){return null};
_.z.onPlayerAttached=function(K,X){_.S("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(X):this.player=X};
_.z.onPlayerDetached=function(K,X){_.S("kevlar_channel_trailer_multi_attach")?(K=this.attachedPlayers.indexOf(X),K<0||this.attachedPlayers.splice(K,1)):this.player=null};
_.z.getServiceTrackingParams=function(){var K,X;return((K=this.data)==null?void 0:(X=K.responseContext)==null?void 0:X.serviceTrackingParams)||[]};
_.z.setMastheadAd=function(K){K&&K.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=K&&K.mastheadAd};
_.z.dataChanged=function(){var K=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.Mek();_.tg(this,function(){_.IJ(K.hostElement,"ytd-update-grid-state-action")})};
_.z.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.z.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var K=this.data.alerts;return K&&K.find(function(X){return!!X.alertWithActionsRenderer})}};
_.z.computeGreetingData=function(){if(this.data&&this.data.alerts){var K=this.data.alerts;return K&&K.find(function(X){return!!X.personalGreetingViewModel})}};
_.z.computeHasMemberHubProfileRenderer=function(K){var X;return!!(K==null?0:(X=K.header)==null?0:X.memberHubProfileRenderer)};
_.z.handleAlertCommand=function(K){this.get("alertCommand.alert.alertWithActionsRenderer",K)&&(K=_.T(K,OrW),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",K.alert))};
_.z.handleYtPlaylistDeletionRedirect=function(K){K=this.get("playlistDeletionRedirectCommand.redirectEndpoint",K);_.iX(this.hostElement,"yt-navigate",{endpoint:K})};
_.z.computeFluidWidth=function(K,X,F){if(X==="mini_app"||F)return!0;var P,H,f;K=K==null?void 0:(P=K.contents)==null?void 0:(H=P.twoColumnBrowseResultsRenderer)==null?void 0:(f=H.tabs)==null?void 0:f.find(function(Z){var M;return Z==null?void 0:(M=Z.tabRenderer)==null?void 0:M.selected});
if(!K)return!1;var u,J;return!!((u=K.tabRenderer)==null?0:(J=u.content)==null?0:J.richGridRenderer)&&!["channel","channels","playables"].includes(X)};
_.z.computeHeaderFluidWidth=function(K){return K==="hashtag-landing-page"};
_.z.computeHasSidebar=function(K){var X;return!!(K.sidebar||((X=K.header)==null?0:X.playlistHeaderRenderer))};
_.z.computeHasPageHeaderSidebar=function(K){var X,F;return!!((X=K.header)==null?0:(F=X.pageHeaderRenderer)==null?0:F.enableSidebarView)};
_.z.computeUseUnifiedShowPageLayout=function(K){if(!K||this.pageSubtype!=="show"||!K.sidebar||!K.sidebar.playlistSidebarRenderer)return!1;K=K.sidebar.playlistSidebarRenderer;if(!K.items)return!1;for(var X=0;X<K.items.length;X++)if(_.T(K.items[X],yJ)){var F=void 0;return((F=_.T(K.items[X],yJ))==null?void 0:F.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.z.computeIsConstrainedList=function(K){return _.S("web_enable_constrained_list_subscriptions_channels")&&K==="subscriptions-channels"};
_.z.computeResponsiveSizing=function(K){return K==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.Oi.Object.defineProperties(Rm.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var K,X;return((K=this.data)==null?0:(X=K.header)==null?0:X.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var K,X;if(!((K=this.data)==null?0:(X=K.sidebar)==null?0:X.playlistSidebarRenderer))return!1;var F;return(F=this.data)!=null&&F.header?!1:!0}}});
_.Oi.Object.defineProperties(Rm,{template:{configurable:!0,enumerable:!0,get:function(){if(zBt===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);zBt=K}K=zBt;return K}}});
Rm.prototype.dataChanged=Rm.prototype.dataChanged;Rm.prototype.onPlayerDetached=Rm.prototype.onPlayerDetached;Rm.prototype.onPlayerAttached=Rm.prototype.onPlayerAttached;Rm.prototype.onStampFinished=Rm.prototype.onStampFinished;Rm.prototype.engagementPanelsChanged=Rm.prototype.engagementPanelsChanged;Rm.prototype.scrollAtTopChanged=Rm.prototype.scrollAtTopChanged;Rm.prototype.tabsChanged=Rm.prototype.tabsChanged;Rm.prototype.activeChanged=Rm.prototype.activeChanged;
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Rm.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.v9),_.g("design:type",Object)],Rm.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Rm.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],Rm.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.j2.YtPageBehavior),_.g("design:type",Object)],Rm.prototype,"ytPageBehavior",void 0);
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Rm.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.RW.YtdGuideStateAwareBehavior),_.g("design:type",Object)],Rm.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Rm.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Rm.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Rm.prototype,"hidden",void 0);
_.O([_.h(),_.g("design:type",Object)],Rm.prototype,"mastheadAdData",void 0);_.O([_.h({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.g("design:type",Object)],Rm.prototype,"alertBannerData",void 0);_.O([_.h({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.g("design:type",Object)],Rm.prototype,"greetingData",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],Rm.prototype,"pageSubtype",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.g("design:type",Boolean)],Rm.prototype,"hasMemberHubProfileRenderer",void 0);_.O([_.h({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],Rm.prototype,"hasSidebar",void 0);_.O([_.h({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],Rm.prototype,"hasPageHeaderSidebar",void 0);
_.O([_.h({reflectToAttribute:!0,value:!0}),_.g("design:type",Boolean)],Rm.prototype,"roundedContainer",void 0);_.O([_.h({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],Rm.prototype,"useUnifiedShowPageLayout",void 0);_.O([_.h({computed:"computeIsConstrainedList(pageSubtype)"}),_.g("design:type",Object)],Rm.prototype,"isConstrainedList",void 0);
_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Rm.prototype,"usePlaylistHeaderRenderer",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Rm.prototype,"useOldPlaylistSidebarRenderer",null);_.O([_.h({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.g("design:type",Boolean)],Rm.prototype,"fluidWidth",void 0);_.O([_.h({selector:function(K){return K.ui.scrollAtTop}}),
_.g("design:type",Boolean)],Rm.prototype,"scrollAtTop",void 0);_.O([_.h({selector:_.Qfd}),_.g("design:type",Boolean)],Rm.prototype,"tabGesturesIsActive",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Rm.prototype,"darkerDarkTheme",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.g("design:type",Boolean)],Rm.prototype,"disableHeaderFluidWidth",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.g("design:type",String)],Rm.prototype,"responsiveSizing",void 0);_.O([_.fa("ytd-two-column-browse-results-renderer"),_.g("design:type",HTMLElement)],Rm.prototype,"contents",void 0);_.O([_.fa("#header"),_.g("design:type",HTMLElement)],Rm.prototype,"header",void 0);_.O([_.fa("ytd-refresh"),_.g("design:type",Object)],Rm.prototype,"refresh",void 0);
_.O([_.so("active"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Rm.prototype,"activeChanged",null);_.O([_.so("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Rm.prototype,"tabsChanged",null);_.O([_.so("scrollAtTop"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Rm.prototype,"scrollAtTopChanged",null);
_.O([_.h(),_.g("design:type",Object)],Rm.prototype,"engagementPanels",void 0);_.O([_.so("data.panels"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Rm.prototype,"engagementPanelsChanged",null);_.O([_.Hc("yt-rendererstamper-finished"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Rm.prototype,"onStampFinished",null);
_.O([_.Hc("yt-player-attached"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Element]),_.g("design:returntype")],Rm.prototype,"onPlayerAttached",null);_.O([_.Hc("yt-player-detached"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Element]),_.g("design:returntype")],Rm.prototype,"onPlayerDetached",null);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Rm.prototype,"dataChanged",null);
Rm=_.O([_.v({is:"ytd-browse"})],Rm);_.NA.registerService(_.es9,Rm);
_.d0();
}catch(e){_._DumpException(e)}
try{
_.W_("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 xn=function(K){if(!K)return"browse";var X=K.page,F=K.url,P,H,f,u=(P=K.response)==null?void 0:(H=P.responseContext)==null?void 0:(f=H.webResponseContextExtensionData)==null?void 0:f.pageTheme;if(u)X=u.toLowerCase().replace(/_/g,"-");else if(X!=="watch"&&X!=="learning_journey_watch"){var J,Z;if((X==="browse"||X==="settings")&&((J=K.response)==null?0:(Z=J.sidebar)==null?0:Z.settingsSidebarRenderer))X="WEB_PAGE_TYPE_SETTINGS";else{var M,n;X==="browse"&&((M=K.response)==null?0:(n=M.metadata)==null?
0:n.channelMetadataRenderer)?X="channel":F&&(X=_.sm(F)||X)}}return X},SNW=function(){var K=_.mz("yt.aba.att");
return K?K:_.Nb.instance!==void 0?_.Nb.instance.xdQ.bind(_.Nb.instance):null},oUG=function(K,X){var F;
return _.q(function(P){return(F=SNW())?P.return(F(K,X,6E4)):P.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},Lzo=function(K,X,F,P,H){X=X===void 0?[]:X;
H=H?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:H}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.bY(K),dialogMessages:X.map(function(f){return _.bY(f)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.bY(F),serviceEndpoint:H}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.bY(P)}}}}}},T21=function(K){var X=!!_.dz().queueProxy;
var F,P,H;K=K==null?void 0:(F=K.response)==null?void 0:(P=F.currentVideoEndpoint)==null?void 0:(H=P.watchEndpoint)==null?void 0:H.playlistId;return!(!X&&!K)},rVV=function(K,X){var F=_.zC();
if(T21(K))return F.playlistWatchPageActivation=!0;switch(xn(X)){case "yts-products":return F.productDetailsPageActivation=!0;case "mini_app":return F.miniAppPageActivation=!0;case "playables":return F.playablesDestPageActivation=!0;default:return!1}},AVJ=function(K,X,F){for(var P=typeof K==="string"?K.split(""):K,H=K.length-1;H>=0;--H)H in P&&X.call(F,P[H],H,K)},jUk=function(K,X){X=_.cMl(K,X);
X>=0&&_.bT(K,X)},wdd=function(K){return Array.prototype.concat.apply([],arguments)},yVt=function(K){var X=0;
X=X===void 0?0:X;if(!_.pt(K))throw _.ZQ("uint64");var F=typeof K;switch(X){case 512:switch(F){case "string":return _.qZO(K);case "bigint":return String((0,_.hw)(64,K));default:return _.DVq(K)}case 1024:switch(F){case "string":return _.Jt9(K);case "bigint":return _.CW((0,_.hw)(64,K));default:return _.uLd(K)}case 0:switch(F){case "string":return _.qZO(K);case "bigint":return _.CW((0,_.hw)(64,K));default:return _.fQP(K)}default:return _.zJ(X,"Unknown format requested type for int64")}},WzJ=function(K){K!=
null&&(K=K.JSC$6830_value_||"",K=typeof K==="string"?K:new Uint8Array(K));
return K},duW=function(K){for(var X=_.Ls.apply(1,arguments),F=K[0],P=0;P<K.length-1;P++)F+=String(X[P]),F+=K[P+1];
X=document.implementation.createHTMLDocument("");P=X.createElement("style");X.head.appendChild(P);X=P.sheet;X.insertRule(F,0);if(X.cssRules.length===1&&(F=X.cssRules[0],F instanceof CSSStyleRule))return new _.gF(F.cssText.replace(/</g,"\\3C "))},eDJ=function(K,X){if(/-[a-z]/.test(X))return null;
if(_.MUV&&K.dataset){if(_.Dq3()&&!(X in K.dataset))return null;K=K.dataset[X];return K===void 0?null:K}return K.getAttribute("data-"+_.Dv(X))},Uu8=function(){var K=RDG;
_.mz("yt.ads.biscotti.getId_")||_.gS("yt.ads.biscotti.getId_",K)},hDd=function(K){_.gS("yt.ads.biscotti.lastId_",K)},Grd=function(){var K={};
for(_.ot=new mus(K.handleError===void 0?_.wc:K.handleError,K.logEvent===void 0?_.LL:K.logEvent);_.Ty.length>0;)switch(K=_.Ty.shift(),K.type){case "ERROR":_.ot.logError(K.payload);break;case "EVENT":_.ot.logEvent(K.eventType,K.payload)}},lqt=function(K,X,F){return _.$$d(function(P){return F?P.userIdentifier!==void 0&&!K.includes(P.userIdentifier)&&F.includes(P.publicName):P.userIdentifier!==void 0&&!K.includes(P.userIdentifier)},X)},vUd=function(K){var X,F;
return _.q(function(P){if(P.nextAddress==1)return X=_.Qq("YtIdbMeta hasAnyMeta other"),_.Y(P,_.$$d(function(H){return H.userIdentifier!==void 0&&H.userIdentifier!==X},K),2);
F=P.yieldResult;return P.return(F.length>0)})},t88=function(K,X){aq5||(aq5=_.A9.addLowPriorityJob(function(){var F,P,H,f,u;
return _.q(function(J){switch(J.nextAddress){case 1:return _.Y(J,_.EU(),2);case 2:F=J.yieldResult;if(!F)return J.return();P=!0;_.s2(J,3);return _.Y(J,lqt(K,F,X),5);case 5:H=J.yieldResult;if(!H.length){P=!1;J.jumpTo(6);break}f=H[0];return _.Y(J,_.lD(f.actualName),7);case 7:return _.Y(J,_.tv(f.actualName,F),6);case 6:_.Gy(J,4);break;case 3:u=_.qc(J),_.rS(u),P=!1;case 4:_.A9.cancelJob(aq5),aq5=0,P&&t88(K,X),_.JT(J)}})}))},$u8=function(){var K;
return _.q(function(X){return X.nextAddress==1?_.Y(X,_.EU(),2):(K=X.yieldResult)?X.return(vUd(K)):X.return(!1)})},O9G=function(K){var X=100;
X=X===void 0?500:X;var F,P,H,f,u,J;return _.q(function(Z){return Z.nextAddress==1?(F=_.e8("INNERTUBE_CONTEXT_CLIENT_NAME",0),P=[F,(0,_.CG)()-2592E6],H=[F,(0,_.CG)()],f=IDBKeyRange.bound(P,H),_.Y(Z,_.Qjy(K),2)):Z.nextAddress!=3?(u=Z.yieldResult,J=[],_.Y(Z,_.at(u,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(M){J.length=0;return _.NU(M.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:f,direction:"prev"},function(n){if(n.getValue()&&J.length<X)return J.push(n.getValue()),
n.delete().then(function(){return n.continue()})})}),3)):Z.return(J)})},V8v=function(){var K;
return _.q(function(X){if(X.nextAddress==1)return _.Y(X,_.EU(),2);K=X.yieldResult;if(!K||!_.MU()&&!_.S("nwl_init_require_datasync_id_killswitch")||!_.UDd())return X.jumpTo(0);_.mDP=!0;_.hZw.isNwlInitialized=_.mDP;return _.Y(X,_.r9t().awaitInitialization(),0)})},Ip=function(K,X){_.Imq[K]=!0;
var F=_.Ia();F&&F.publish.apply(F,arguments);_.Imq[K]=!1},EUv=function(){if(_.WXP()&&!gU1){var K=function(F){F=F.data;
if(F.op==="serializedGelBatch"){var P=_.kbO.get(F.key);P&&(_.Xn3(F.serializedBatch,P.client,P.resolve,P.networklessOptions,P.isIsolated,P.useVSSEndpoint,P.dangerousLogToVisitorSession,P.requestsOutstanding),_.kbO.delete(F.key))}},X=_.y7M();
X&&(X.addEventListener("message",K),X.onerror=function(){_.kbO.clear()});
gU1=!0}},kn=function(){this.relativeTimeStart_=_.E$()},b95=function(K,X){K!=null&&this.append.apply(this,arguments)},C9W=function(){return _.Wg("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},N2v=function(K,X,F){F=F===void 0?!1:F;
var P,H,f,u,J;return _.q(function(Z){switch(Z.nextAddress){case 1:_.Zr("SOCS",K,34128E3,"youtube.com",!0);if(_.KM)return H=fetch(X,{method:"POST",mode:_.mH(X),credentials:_.hD(X),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),f=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.mH("/upgrade_visitor_cookie?eom=1"),credentials:_.hD("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.Y(Z,Promise.all([H,f]).then(function(M){return M[1]}),5);
fetch(X,{method:"POST",mode:_.mH(X),credentials:_.hD(X),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.Y(Z,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.mH("/upgrade_visitor_cookie?eom=1"),credentials:_.hD("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:P=Z.yieldResult;Z.jumpTo(3);break;case 5:P=u=Z.yieldResult;case 3:if(!P.ok)throw Error("kf");return _.Y(Z,P.text(),7);case 7:J=Z.yieldResult,
!J.includes('"state_switch":true')&&!F||J.includes("skip_reload_for_test")||window.location.reload(),_.JT(Z)}})},i9W=function(K){return _.q(function(X){return X.nextAddress==1?_.Y(X,N2v(K.socsCookie,K.savePreferenceUrl,!0),2):X.return()})},xuo=function(K){return _.q(function(X){return X.nextAddress==1?_.Y(X,N2v(K.socsCookie,K.savePreferenceUrl),2):X.return()})},krF=function(K){K=K.xhr.responseText;
if(!_.Hy(K,")]}'"))throw new KP;K=JSON.parse(K.substr(4));if((K.type||1)>1)throw new KP;K=K.id;hDd(K);Xp=_.mQ(K);IqG(18E5,2);return K},Xmt=function(K,X){X=new KSd(X);
hDd("");Xp=_.N4L(X);K>0&&IqG(12E4,K-1);throw X;},IqG=function(K,X){_.Pm(function(){_.H9s().then(krF,function(F){return Xmt(X,F)}).thenCatch(_.zM)},K)},RDG=function(){var K=_.fqV();
if(K!==void 0)return _.pB(K);Xp||(Xp=_.H9s().then(krF).thenCatch(function(X){return Xmt(2,X)}));
return Xp},FS5=function(){var K=document;
return _.lT(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(X){return"on"+X.toLowerCase()in K})},PDo=function(K){K.addEventListener("click",function(X){var F=X.target;
F&&F.getAttribute("href")&&(F=F.getAttribute("href"),_.ei(window,F,"_blank"),X.preventDefault(),X.stopImmediatePropagation())})},HGt=function(K){var X,F,P,H=(P=(F=((X=K.mainDownloadsListEntity)!=null?X:{})[_.FQn])==null?void 0:F.refresh)!=null?P:"",f;
K=(f=K.refresh)==null?void 0:f[H];H=K!=null?K:{};return(H==null?0:H.refreshTime)?Number(H==null?void 0:H.refreshTime):0},stW=function(K,X){var F=_.nI(K);
return X.every(function(P){var H;P=P==null?void 0:(H=P.playbackDataEntity)==null?void 0:H.key;if(!P)return!1;H=_.XF(_.I7(P).entityId,"mainVideoEntity");return!!F[H]})},zOV=function(K){K=_.Yx(K.entities);
return _.MLn(K).length},frs=function(K,X){if(X){var F;
K=(F=_.FF(K.entities,"downloadQualityPickerEntity",X))!=null?F:void 0}else K=void 0;return K},qUW=function(){DUw||(_.mX=_.I6y,DUw=new u$1);
return DUw},JvF=function(K){var X=document.getElementsByTagName("ytd-enforcement-message-view-model");
X.length===0||getComputedStyle(X[0]).display==="none"?K(0,"p.h_"):K(1,"p.h_")},ZGF=function(){Fp=0;
var K=[_.qD(!0)];P2&&_.IJ(P2,"yt-window-resized",K)},YUG=function(){Fp||(Fp=_.A9.addLowPriorityJob(ZGF,200))},Mps=function(){H2=0;
QtJ=_.ndT(document);var K=[QtJ];P2&&_.IJ(P2,"yt-window-scrolled",K)},nS1=function(){H2||(H2=_.A9.addLowPriorityJob(Mps,200))},pm8=function(K){K=K===void 0?null:K;
cv8.push(_.CQ(window,"resize",YUG));cv8.push(_.CQ(window,"scroll",nS1));K&&(P2=K)},SUs=function(){var K={isWide:_.Jv.get("wide","0")==="1"},X=_.ZO();
if(X=X.getFlag(165)||X.getFlag(174))K.theme=_.n$(!0);if(_.Z3M()){var F=_.MD()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";K.systemTheme=F}!X&&_.S("parent_tools_enable_app_settings")&&_.tV(window.location.href).theme!==void 0&&(K.theme=_.n$());if((X=s0)?!_.T8.equals(X,K):K)X={currentValue:K},BSd&&(X.timeSinceLastSnapshotSecs=Math.round(((0,_.CG)()-BSd)/1E3)),s0&&(X.previousValue=s0),_.LL("appSettingsCaptured",X),s0=K,BSd=(0,_.CG)()},oS8=function(K){_.q(function(X){if(X.nextAddress==1)return _.Y(X,
K.delete("yt-appshell-assets"),2);
_.JT(X)})},LSd=function(K){return _.vm((0,_.ANC)(),K)},rv8=function(){var K;
_.q(function(X){return X.nextAddress==1?_.Y(X,zH.getInstance(),2):(K=X.yieldResult)?_.Y(X,TSV(K),0):X.jumpTo(0)})},jto=function(){var K;
_.q(function(X){return X.nextAddress==1?_.Y(X,fP.getInstance(),2):(K=X.yieldResult)?_.Y(X,AvG(K),0):X.jumpTo(0)})},wm1=function(K){oS8(K);
rv8();jto()},yvv=function(K){var X,F;
return _.q(function(P){if(P.nextAddress==1)return _.Y(P,_.hlM(K),2);if(X=P.yieldResult){var H;a:{if(X.headers&&(H=X.headers.get("date"))&&(H=Date.parse(H),!isNaN(H))){H=Math.round((0,_.CG)()-H);break a}H=-1}F=H;if(F>-1)return P.return(F)}return P.return(-1)})},WSs=function(){var K=_.FP.caches,X=_.RU("IS_SHELL_LOAD"),F,P;
_.q(function(H){if(H.nextAddress==1)return F=-1,X?_.Y(H,yvv(K),3):(P=_.nl(),F=Math.round((0,_.CG)()-P),H.jumpTo(2));H.nextAddress!=2&&(F=H.yieldResult);F>=0&&F<2147483648&&_.T6({appInstallDataAgeMs:F});_.JT(H)})},dU1=function(K){var X=_.az(_.FP.location.href),F={};
"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(P){var H=X.JSC$8042_queryData_.getValues(P);if(H==null?0:H.length)F[P]=H});
return _.Fs(K,new Map(Object.entries(F)))},eO1=function(K){K=K.match(/(.*)::.*::.*/);
if(K!==null)return K[1]},ROd=function(K){if(_.kKT()){var X=Object.keys(window.localStorage);
X=_.D(X);for(var F=X.next();!F.done;F=X.next()){F=F.value;var P=eO1(F);P===void 0||K.includes(P)||self.localStorage.removeItem(F)}}},UUJ=function(){if(!_.kKT())return!1;
var K=_.Qq(),X=Object.keys(window.localStorage);X=_.D(X);for(var F=X.next();!F.done;F=X.next())if(F=eO1(F.value),F!==void 0&&F!==K)return!0;return!1},hOt=function(K){return _.OS("NotificationsDisabled",K)},mUV=function(){return Notification.permission!="granted"?Promise.resolve():_.Mio().then(function(K){return K?K.pushManager.getSubscription().then(function(X){if(X)return Promise.resolve();
X={userVisibleOnly:!0,applicationServerKey:_.Jt("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return K.pushManager.subscribe(X).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},Gyt=function(K){return _.Mio().then(function(X){if(!X||!X.active)return Promise.reject(new _.nG("serviceworker.postMessage",K,X));
try{return X.active.postMessage(K),Promise.resolve()}catch(F){return Promise.reject(F)}})},lr5=function(){Gyt({type:"notifications_register",
data:_.e8("ID_TOKEN")})},vSt=function(){if(!_.RU("LOGGED_IN"))return Promise.resolve(!1);
var K=_.KG("service_worker_push_force_notification_prompt_tag");return K?_.bM("PromptTags").then(function(X){if(!X)return!0;var F=[];try{F=JSON.parse(X)}catch(P){return!1}return F&&F.indexOf(K)==-1}):Promise.resolve(!1)},arW=function(){var K=_.kU("service_worker_push_prompt_delay_microseconds");
return K?_.bM("PromptTime").then(function(X){return Promise.resolve(Date.now()-K>(X||0))}):Promise.resolve(!0)},tpJ=function(){var K=_.kU("service_worker_push_logged_out_prompt_watches");
return K==-1?Promise.resolve(!1):_.bM("WatchCount").then(function(X){return X>=K})},$U8=function(){var K=_.Vk(document,"yt-push-prompt-modal-bg");
K&&_.c_(K)},OGW=function(){return _.kU("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.bM("PromptCount").then(function(K){K||(K=0);
return Promise.resolve(K<_.kU("service_worker_push_prompt_cap"))})},Vps=function(K){return _.RU("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.RU("LOGGED_IN")&&(K===void 0?0:K)?vSt().then(function(X){if(X)return!0;
X=[OGW(),arW()];_.RU("LOGGED_IN")||X.push(tpJ());return Promise.all(X).then(function(F){return F.every(function(P){return P})})}):Promise.resolve(!1)},gSV=function(){_.bM("PromptCount").then(function(K){return _.OS("PromptCount",K+1)}).then(function(){return _.OS("PromptTime",Date.now())}).then(function(){var K=_.KG("service_worker_push_force_notification_prompt_tag");
if(K)return _.bM("PromptTags").then(function(X){var F=[];if(X)try{F=JSON.parse(X)}catch(P){return!1}F||(F=[]);F.push(K);return _.OS("PromptTags",JSON.stringify(F))})})},bGs=function(){ESG||$U8()},CD1=function(K){K.style.zIndex=2147483648;
K.style.pointerEvents="auto";K.style.backgroundColor="rgba(0, 0, 0, 0.6)";K.style.width="100%";K.style.height="100vh";K.style.position="absolute";K.style.top="0";K.style.left="0";K.style.border="none"},NS8=function(){var K=_.Vk(document,"yt-push-prompt-modal-bg");
ESG=_.S("service_worker_push_prompt_modal_ignore_click");K?CD1(K):(K=_.Qm("div",{id:"yt-push-prompt-modal-bg"}),CD1(K),document.body.appendChild(K),_.CNT(document,"click",bGs))},iGG=function(){var K=arguments;
_.S("service_worker_push_prompt_modal_enable")&&NS8();return Notification.requestPermission().then(function(X){$U8();var F=document.getElementById("ticker");F&&(F.className=F.classList.remove("show"));if(X=="granted")return mUV().then(function(){hOt(!1);lr5();return Promise.resolve(!0)});
X=="denied"&&lr5();return Promise.resolve(!1)}).catch(function(){$U8();
return Promise.reject.apply(Promise,_.LZ(K))})},xUG=function(K){K=K===void 0?!1:K;
var X=_.c13().client;if(X&&X.browserVersion){var F=X.browserVersion,P=X.browserName=="CHROME"&&_.Q9(F,"50.0.0")<0;X=X.browserName=="OPERA"&&_.Q9(F,"42.0.0")<0;if(P||X)return Promise.resolve()}return _.p$k().then(function(H){if(!H)return Promise.resolve();H=mUV().then(function(){return Gyt({type:"notifications_check_registration",data:_.e8("ID_TOKEN")})});
return Notification.permission!="default"?H.catch(function(){}):H.then(function(){return Vps(K)}).then(function(f){if(f)return gSV(),iGG().then(function(){})}).catch(function(){})})},IrJ=function(K){return _.nit(K)?xUG():Promise.resolve()},kyk=function(K){var X=K.installing||K.waiting;
return K.active||!X?Promise.resolve(K):new Promise(function(F){var P=function(H){H=H.target;if(H.state==="activated"||H.state==="redundant")X.removeEventListener("statechange",P),F(K)};
X.addEventListener("statechange",P)})},K3k=function(){var K=new _.m6l("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.s$(K,{mainAppWeb:_.Um()});var X=_.O5W;_.S("service_worker_forward_exp_params")&&(X=dU1(X));try{var F=_.BK3(X).catch(function(){_.zt(K,"FAILURE");return new Promise(function(){})});
_.S("service_worker_push_enabled")&&F.then(function(P){_.zt(K,"SUCCESS");return P}).then(kyk).then(IrJ)}catch(P){if(_.zt(K,"FAILURE"),P.name!=="SecurityError")throw P;
}},XEJ=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&K3k()},F3J=function(K,X){var F={};
X&&(F.serializedYpcFamilyCreateLoggingParams=X);_.LL(K,F);_.A_()},PUw=function(K,X){var F={};
F.serializedYpcRefundFlowLoggingParams=X;K&&(F.eventType=K);_.LL("ypcRefundFlowEvent",F);_.A_()},HQV=function(K){K&&_.oWd("transactionFlowSucceeded",K)},saw=function(K){K&&_.Ad("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",K,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},zEJ=function(K){var X,F,P,H,f,u,J;
_.q(function(Z){if(Z.nextAddress==1)return _.Y(Z,_.PwT(),2);if(Z.nextAddress!=3){if(!Z.yieldResult)return Z.return(!1);X=[];return _.Y(Z,_.Iv.keys(),3)}F=Z.yieldResult;P=_.D(F);for(H=P.next();!H.done;H=P.next())f=H.value,u=_.XXP(f),J=u.datasyncId,!J||K.includes(J)||X.push(_.Iv.delete(f));return Z.return(Promise.all(X).then(function(M){return M.some(function(n){return n})}))})},fTt=function(){var K,X,F,P,H,f,u;
return _.q(function(J){if(J.nextAddress==1)return _.Y(J,_.PwT(),2);if(J.nextAddress!=3){if(!J.yieldResult)return J.return(!1);K=_.Qq("cache contains other");return _.Y(J,_.Iv.keys(),3)}X=J.yieldResult;F=_.D(X);for(P=F.next();!P.done;P=F.next())if(H=P.value,f=_.XXP(H),(u=f.datasyncId)&&u!==K)return J.return(!0);return J.return(!1)})},DiW=function(){var K=_.i9().resolve(_.Nu(_.WOT));
return K?K.getCurrentTime():0},uCv=function(){var K,X,F,P,H,f,u,J,Z,M,n,c,B,L;
return _.q(function(A){switch(A.nextAddress){case 1:K={},X=_.CLq(),F=_.D(Object.entries(X)),P=F.next();case 4:if(P.done){A.jumpTo(3);break}H=P.value;f=_.D(H);u=f.next().value;J=f.next().value;Z=u;M=J;if(!M){A.jumpTo(5);break}return _.Y(A,M(),8);case 8:K[Z]=A.yieldResult;case 5:P=F.next();A.jumpTo(4);break;case 2:n=_.D(void 0),c=n.next();case 9:if(c.done){A.jumpTo(3);break}B=c.value;L=X[B];if(!L){A.jumpTo(10);break}return _.Y(A,L(),13);case 13:K[B]=A.yieldResult;case 10:c=n.next();A.jumpTo(9);break;
case 3:return A.return(K)}})},qM8=function(){var K;
_.q(function(X){if(X.nextAddress==1)return _.Y(X,uCv(),2);K=X.yieldResult;return _.Y(X,navigator.clipboard.writeText(JSON.stringify(K,null,2)),0)})},J9J=function(K,X){return _.FF(K.entities,"superThanksSelectedTierEntity",X)},ZQt=function(K){var X;
return(X=K.sharedUi)==null?void 0:X.currentPageType},YMW=function(K,X){return{popup:{searchSuggestionReportDialog:{searchQuery:K,
title:_.uY("SBOX_INAPPROPRIATE_TITLE"),suggestions:X,categoryLabel:_.uY("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.uY("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.uY("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.uY("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.uY("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.uY("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.uY("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.uY("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.uY("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.uY("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},QaW=function(K){var X,F,P,H,f,u,J,Z,M,n,c,B,L,A,d,R,l,a,E;
return _.q(function(V){switch(V.nextAddress){case 1:return _.Y(V,_.sz(),2);case 2:return(X=V.yieldResult)?_.Y(V,_.Biw(X),3):V.return();case 3:F=V.yieldResult;if(!F)return V.return();H=((P=F.offlineVideos)==null?void 0:P.length)||0;u=((f=F.offlinePlaylists)==null?void 0:f.length)||0;if(H===0&&u===0)return V.return();J=0;if(F.offlineVideos)for(Z=_.D(F.offlineVideos),M=Z.next();!M.done;M=Z.next())n=M.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===n.videoState&&(J+=1);K.offline_videos_count=H.toString();_.S("kevlar_log_offline_current_network_type_ks")||
(K.offline_current_network_type=(c=_.M44())!=null?c:"CONN_INVALID");_.S("kevlar_log_updated_time_for_smart_downloads")&&(B=_.aA().getState().entities,L=_.Bv(B),A=HGt(B),K.offline_smart_downloads_last_sync_time_ms=L.toString(),K.offline_smart_downloads_next_sync_time_ms=A.toString());K.offline_videos_playable=J.toString();K.offline_playlists_count=u.toString();if(!_.S("woffle_used_state_report")){V.jumpTo(4);break}F.offlineVideos&&(d=F.offlineVideos.reduce(function(x,N){N.downloadedBytes&&(x+=Number(N.downloadedBytes));
return x},0).toString())&&(K.offline_used_disk_space_bytes=d);
if(!((R=navigator)==null?0:(l=R.storage)==null?0:l.estimate)){V.jumpTo(4);break}return _.Y(V,navigator.storage.estimate(),6);case 6:a=V.yieldResult,K.offline_free_disk_space_bytes=(((E=a)==null?void 0:E.quota)||0).toString();case 4:K.offline_client_state=JSON.stringify(F),_.JT(V)}})},Mtd=function(K){K=K.match(/(.*)::.*::.*/);
if(K!==null)return K[1]},ng8=function(K){if(_.Mc3()){var X=Object.keys(window.sessionStorage);
X=_.D(X);for(var F=X.next();!F.done;F=X.next()){F=F.value;var P=Mtd(F);P===void 0||K.includes(P)||self.sessionStorage.removeItem(F)}}},c98=function(){if(!_.Mc3())return!1;
var K=_.Qq(),X=Object.keys(window.sessionStorage);X=_.D(X);for(var F=X.next();!F.done;F=X.next())if(F=Mtd(F.value),F!==void 0&&F!==K)return!0;return!1},Dc=function(K,X,F){(_.S("desktop_keyboard_shortcut_usage_log")||F&&_.S("web_shorts_keyboard_shortcut_usage_log"))&&(X?_.CH.get(K):_.bp.get(K))&&(K=X?_.ip.get(K):_.NJ.get(K))&&_.vW(_.AD(),K)},pEs=function(K){return K.visibility!=="hidden"&&K.display!=="none"},BG8=function(K){if(!K.matches("a[href],a[tabindex],area[href],iframe,[tabindex],[contentEditable],summary,details:not(:has(summary)),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),object:not([disabled])"))return-1;
K=K.getAttribute("tabindex")||"0";return Number(K)},SMv=function(K){return K.some(function(X){return BG8(X)>0})},og5=function(K){if(K.textContent)return!0;
if(K instanceof HTMLInputElement){if(!K.labels)return!1;K=_.D(K.labels);for(var X=K.next();!X.done;X=K.next())if(X.value.textContent)return!0}return!1},L3W=function(K){return K.sort(function(X,F){return BG8(F)-BG8(X)})},TG8=function(K){K=Array.from(K.querySelectorAll("a[href],a[tabindex],area[href],iframe,[tabindex],[contentEditable],summary,details:not(:has(summary)),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),object:not([disabled])")).filter(function(X){return(pEs(X.style)?
pEs(window.getComputedStyle(X)):!1)&&og5(X)});
return SMv(K)?L3W(K):K},r9v=function(K){K=TG8(K);
K.length>0&&K[0].focus()},A9v=function(K,X){X.stack&&(K.stack+="\n"+X.stack);
return K},y9t=function(K){var X=uA(K,"Content-Type");
if(!X)return null;X=X.toLowerCase();if(X.startsWith("application/json"))return X.startsWith("application/json+protobuf")?new jad:new _.NM;if(X.startsWith("application/x-protobuf")){K=uA(K,"Content-Transfer-Encoding");if(!K)return new qj;if(K.toLowerCase()=="base64")return new wE8}return null},lTG=function(K,X,F,P){var H=new W3F(function(J,Z){return dik.has(Z)?J.sentinel==="gal"&&J.event!==void 0:!1},function(J){J.event?(J=eEo(J.event),J=!J||REw(P,J)?!0:_.fM(K.lastEvent,J2,2,Zc)?!_.fM(J,Yk,1,Zc)&&
!_.fM(J,J2,2,Zc):!_.fM(J,Yk,1,Zc)&&!_.fM(J,J2,3,Zc)):J=!0;
return J});
F=_.Fs(K.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",UiV(F)]]));if(K.nestedOrigins!==void 0)for(var f=_.D(K.nestedOrigins),u=f.next();!u.done;u=f.next())F=_.Fs(F,new Map([["origin",u.value]]));return hEv(H,F,X).then(function(J){J=mid(J.event);if(_.fM(J,Yk,1,Zc)){var Z,M=(Z=_.TQ(J,Yk,1,Zc))==null?void 0:_.S3(Z,2);M&&P.JSC$17103_logErrorEvent(Go8(M));Z=_.TQ(J,Yk,1,Zc);_.S3(Z,2)===4?(J=_.TQ(J,Yk,1,Zc),J={statusCode:11,statusMessage:_.BL(J,
3)}):(J=_.TQ(J,Yk,1,Zc),J={statusCode:12,statusMessage:_.BL(J,3)});return J}_.fM(J,J2,3,Zc)?(J=_.TQ(J,J2,3,Zc),J={statusCode:1,consentLanguageKeys:_.BL(J,2)}):J={statusCode:1};return J}).catch(function(J){return J.errorCode!==void 0?{statusCode:J.errorCode,
statusMessage:J.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},$iW=function(K){var X={};
if(K===void 0||K===null)return X;K.getToken()!==void 0&&vgV(K.getToken())&&vgV(K.getToken()).length>0&&(X.scopes=new Set(vgV(K.getToken())));K.getToken()!==void 0&&aT5(K.getToken())&&aT5(K.getToken()).length>0&&(X.capabilities=new Set(aT5(K.getToken())));_.BL(K,3)!==void 0&&(X.consistencyKey=_.BL(K,3));K.getName()!==void 0&&K.getName()!==""&&(X.linkName=K.getName());_.zQ(K,ttV,4)&&(K=_.xS(K,ttV,4),K=Object.assign({},_.BL(K,1)&&{userId:_.BL(K,1)},_.BL(K,2)&&{displayName:_.BL(K,2)},_.BL(K,3)&&{email:_.BL(K,
3)},_.BL(K,5)&&{username:_.BL(K,5)},_.BL(K,4)&&{profilePicture:_.BL(K,4)}),X.profile=K);return X},OQs=function(K,X){var F=K.flowParams;
return{serviceId:F.serviceId,sessionId:F.sessionId,currentFlow:K.currentFlow,googleScopesString:X,linkingSessionSerialized:K.session.serialize(),consentLanguageKeys:F.consentLanguageKeys,callerState:K.callerState,dynamicUrlParameters:F.dynamicUrlParameters,partnerConfigMinReadTimestamp:F.partnerConfigMinReadTimestamp}},CU5=function(K){var X=K.googleScopes!==void 0?Array.from(K.googleScopes).join(","):"";
Vto(OQs(K,X));X=ggd(K);return X===null?Promise.resolve(EgJ):X.start().then(function(F){var P,H=(P=F.link)==null?void 0:P.consistencyKey;return F.statusCode===1&&K.googleScopes!==void 0&&K.googleScopes.size>0&&H!==void 0?(P=K.flowParams,bQo(P.serviceId,P.sessionId,K.googleScopes,H,P.galService,K.config,F)):F})},NGV=function(K){var X=ggd(K);
return X===null?Promise.resolve(Qx({statusCode:7,statusMessage:"Failed to create flow object"},K.callerState)):X.complete().then(function(F){var P,H=(P=F.link)==null?void 0:P.consistencyKey;return F.statusCode===1&&K.googleScopes!==void 0&&K.googleScopes.size>0&&H!==void 0?(P=K.flowParams,bQo(P.serviceId,P.sessionId,K.googleScopes,H,P.galService,K.config,F)):Qx(F,K.callerState)},function(F){return Qx({statusCode:12,
statusMessage:"Failed to complete the flow: "+F.message},K.callerState)})},bQo=function(K,X,F,P,H,f,u){return iQ5(H,{serviceId:K,
sessionId:X,googleScopes:F,consistencyKey:P}).then(function(){return u},function(J){return H.deleteLink({serviceId:K,
sessionId:X,accountLinkingEntryPoint:f.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+J.message}},function(Z){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+Z.message}})})},ggd=function(K){switch(K.currentFlow){case 1:var X=K.flowParams;
K=_.xS(K.session,xi8,1);return Mj.createOAuthFlow(X,K);case 2:case 3:return X=K.flowParams,K=_.xS(K.session,ITt,6),nP.createStreamlinedFlow(X,K);default:return null}},ko1=function(K,X){K===2&&(K=3);
var F=0;c2.indexOf(K)!==-1&&(F=c2.indexOf(K)+1);for(K=F;K<c2.length;K++)if(X.has(c2[K]))return c2[K]},FcJ=function(K){var X=K.serviceId;
var F=K.sessionId;var P=K.config;var H=K.galService;var f=K.capabilities;var u=K.scopes;var J=K.loginHint;var Z=K.callerState;var M=K.consentLanguageKeys;var n=K.linkName;var c=K.dynamicUrlParameters;var B=K.partnerConfigMinReadTimestamp;K=P.dataUsageNoticeConfig?P.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return H.startLinkingSession({serviceId:X,sessionId:F,capabilities:f,scopes:u,loginHint:J,callerState:Z,supportedFlows:Kc8(P.supportedFlows),completionUrl:P.completionUrl,accountLinkingEntryPoint:P.accountLinkingEntryPoint,
consentLanguageKeys:M,dataUsageNoticeConfig:K,linkName:n,dynamicUrlParameters:c,partnerConfigMinReadTimestamp:B}).then(function(L){return new XuG(X,F,P,H,L,void 0,Z,M,c,B)})},fW8=function(K,X,F){a:{var P=new Pys;
if(P.storage!==null)try{var H=P.storage.get("SAVED_SESSION");if(H===void 0){var f=null;break a}if(H.serviceId===K){f=H;break a}}catch(u){}f=null}if(f===null)return Promise.resolve({statusCode:2});HLV(K);P=sI8(f.linkingSessionSerialized);return zM5(new XuG(K,f.sessionId,X,F,P,f.googleScopesString!==""&&f.googleScopesString!==void 0?new Set(f.googleScopesString.split(",")):void 0,f.callerState,f.consentLanguageKeys,f.dynamicUrlParameters,f.partnerConfigMinReadTimestamp),f.currentFlow,f.consentLanguageKeys)},
Vto=function(K){var X=new Pys;
X.storage!==null&&X.storage.set("SAVED_SESSION",K)},HLV=function(K){var X=new Pys;
if(X.storage!==null){var F=X.storage.get("SAVED_SESSION");F!==void 0&&F.serviceId===K&&X.storage.remove("SAVED_SESSION")}},Kc8=function(K){var X=new Set;
K=_.D(K);for(var F=K.next();!F.done;F=K.next())F=F.value,F!==1&&DFW.has(F)&&X.add(DFW.get(F));return X},Qx=function(K,X){X!==void 0&&(K.callerState=X);
return K},uYW=function(K){switch(K){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},ZL1=function(){var K={timeout:5E3};
K=K===void 0?{}:K;return qj8!=null?qj8:qj8=J_5(K)},YjF=function(){return new Promise(function(K,X){window.gapi.load("client",{callback:K,
onerror:X})})},J_5=function(K){K=K===void 0?{}:K;
var X;return _.q(function(F){if(F.nextAddress==1){if((X=window.gapi)&&X.client&&X.client.load)F=F.return(X);else{var P=_.DX("https://apis.google.com/js/api.js");F=_.Y(F,_.Sa(P,K),2)}return F}if(F.nextAddress!=3){X=window.gapi;if(!X)throw Error("Vj");return X.client&&X.client.load?F.jumpTo(3):_.Y(F,YjF(),3)}return F.return(X)})},MFW=function(K,X){X=X===void 0?0:X;
var F=K.auth2.getAuthInstance().currentUser.get(),P=F.getAuthResponse(!0);if(P&&P.expires_at-Date.now()<X){if(QIv.has(K))return QIv.get(K);X=Promise.resolve(F.reloadAuthResponse()).finally(function(){QIv.delete(K)});
QIv.set(K,X);return X}return Promise.resolve()},n35=function(K,X){var F;
return K.client.init({apiKey:X.apiKey,clientId:X.clientId,scope:X.scope,discoveryDocs:X.discoveryDocs,hostedDomain:X.hostedDomain,fetchBasicProfile:(F=X.fetchBasicProfile)!=null?F:!0})},c_F=function(K){if(K.queryParams!=null){var X={},F;
for(F in K.queryParams)K.queryParams[F]!==void 0&&(X[F]=K.queryParams[F]);K.queryParams=X}},Sjk=function(K){return new puG(K,new Bcd(K))},Tcw=function(K,X){X=X===void 0?!1:X;
var F=document.createElement("div");K&&(F.style.transform="scaleX(-1)");F.style.backgroundColor=X?"rgba(138,180,248,.24)":"#e8f0fe";F.style.height="4px";F.style.overflow="hidden";F.style.position="absolute";F.style.top="0";F.style.width="100%";F.style.zIndex="1500";F.setAttribute("aria-label","Loading");F.setAttribute("aria-live","polite");K=document.createElement("style");K.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  }";
F.appendChild(K);K=o3J();K.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";K.style.left="-145.166611%";var P=Lct(X);P.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";K.appendChild(P);F.appendChild(K);K=o3J();K.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";K.style.left="-54.888891%";X=Lct(X);X.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
K.appendChild(X);F.appendChild(K);return F},o3J=function(){var K=document.createElement("div");
K.style.height="100%";K.style.position="absolute";K.style.transformOrigin="top left";K.style.width="100%";return K},Lct=function(K){var X=document.createElement("span");
X.style.borderTop=K?"4px solid #669df6":"4px solid #4285f4";X.style.display="inline-block";X.style.position="absolute";X.style.width="100%";return X},r_G=function(K){return K==null?void 0:_.LtZ(K).valueOf()},y_1=function(K){var X=document.body,F=!1,P=function(){F||(F=!0,A_1(H,f),setTimeout(function(){X.removeChild(f);
X.removeChild(H)},150))},H=jIG(K,getComputedStyle(X).direction==="rtl",P),f=wuW(P);
A_1(H,f);X.appendChild(f);X.appendChild(H);window.requestAnimationFrame(function(){f.style.opacity="1";H.style.opacity="1";H.style.transform="translate(-50%, -50%) scale(1)";H.children[0].focus()})},jIG=function(K,X,F){var P=document.createElement("div");
P.style.position="fixed";P.style.alignItems="center";P.style.backgroundColor=K?"rgb(32, 33, 36)":"white";P.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";P.style.display="flex";P.style.flexDirection="column";P.style.justifyContent="center";P.style.left="50%";P.style.top="50%";P.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";P.style.zIndex="2002";document.body.clientWidth>=660?(P.style.borderRadius="8px",P.style.minHeight="220px",
P.style.maxHeight="90%",P.style.maxWidth="90%",P.style.minWidth="540px"):(P.style.height="100%",P.style.width="100%");P.setAttribute("aria-label","Error");P.setAttribute("aria-modal","true");P.setAttribute("role","alertdialog");P.addEventListener("keydown",function(f){f.key==="Escape"&&F()});
X=Wc1(K,X,F);P.appendChild(dFG(X));P.appendChild(X);var H=document.createElement("img");H.src=K?"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey200-36dp/2x/gm_alert_gm_grey200_36dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey600-36dp/2x/gm_alert_gm_grey600_36dp.png";H.style.height="72px";H.style.width="72px";H.style.color="#9aa0a6";H.setAttribute("alt","");P.appendChild(H);H=document.createElement("h1");H.textContent="Something went wrong.  Try again.";
H.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";H.style.lineHeight="24px";H.style.fontSize="16px";H.style.textAlign="center";H.style.letterSpacing="0.1px";H.style.color=K?"rgb(232,234,237)":"#3c4043";P.appendChild(H);P.appendChild(dFG(X));return P},Wc1=function(K,X,F){var P=document.createElement("button");
P.style.backgroundColor="transparent";P.style.border="none";P.style.borderRadius="50%";P.style.cursor="pointer";P.style.outline="none";P.style.padding="12px";P.setAttribute("aria-label","Close dialog");P.style.position="absolute";P.style.top="0";X?P.style.right="0":P.style.left="0";P.addEventListener("focus",function(){P.style.backgroundColor=K?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
P.addEventListener("blur",function(){P.style.backgroundColor="transparent"});
P.addEventListener("mouseenter",function(){P.style.backgroundColor=K?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
P.addEventListener("mouseleave",function(){P.style.backgroundColor="transparent"});
P.addEventListener("click",F);P.addEventListener("keydown",function(H){H.key!=="Enter"&&H.key!=="Space"||F()});
X=document.createElement("img");X.src=K?"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";X.style.display="block";X.style.height="24px";X.style.width="24px";X.setAttribute("alt","");P.appendChild(X);return P},dFG=function(K){var X=document.createElement("div");
X.setAttribute("tabindex","0");X.setAttribute("aria-hidden","true");X.addEventListener("focus",function(){return void K.focus()});
return X},wuW=function(K){var X=document.createElement("div");
X.style.backgroundColor="rgba(32,33,36,0.6)";X.style.bottom="0";X.style.left="0";X.style.position="fixed";X.style.right="0";X.style.top="0";X.style.transition=" opacity 150 ms linear";X.style.zIndex="2001";X.addEventListener("click",K);return X},A_1=function(K,X){X.style.opacity="0";
K.style.opacity="0";K.style.transform="translate(-50%, -50%) scale(0.8)"},eM1=function(K,X){K.sandbox&&K.sandbox.add&&(K.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),K.sandbox.add("allow-downloads"));
K.src=X},pP=function(K){RMJ.call(this,K)},B2=function(K,X){X=X===void 0?!1:X;
this.parsedImageUrl_=null;K instanceof UF8||(hMo==void 0&&(hMo=new mF1),K=hMo.parse(K.toString(),X));K=this.parsedImageUrl_=K;K.JSC$17334_parsedOptions_==void 0&&((X=K.getOptions())||(X=""),K.JSC$17334_parsedOptions_=(new GTv).parse(X));RMJ.call(this,K.JSC$17334_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;K=this.parsedImageUrl_;X=K.uri_.JSC$8042_port_;this.JSC$17336_domain_=K.uri_.JSC$8042_domain_+(X?":"+X:"");this.JSC$17336_query_=this.parsedImageUrl_.uri_.JSC$8042_queryData_.toString()},
lWt=function(K){this.mode=4;
this.data=K;this.parsedData=[];K=0;for(var X=this.data.length;K<X;K++){var F=[],P=this.data.charCodeAt(K);P>65536?(F[0]=240|(P&1835008)>>>18,F[1]=128|(P&258048)>>>12,F[2]=128|(P&4032)>>>6,F[3]=128|P&63):P>2048?(F[0]=224|(P&61440)>>>12,F[1]=128|(P&4032)>>>6,F[2]=128|P&63):P>128?(F[0]=192|(P&1984)>>>6,F[1]=128|P&63):F[0]=P;this.parsedData.push(F)}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))},v3w=function(K){this.typeNumber=0;
this.errorCorrectLevel=K===void 0?2:K;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},SC=function(K,X){if(K.length==void 0)throw Error("pk`"+K.length+"`"+X);
for(var F=0;F<K.length&&K[F]==0;)F++;this.num=Array(K.length-F+X);for(X=0;X<K.length-F;X++)this.num[X]=K[X+F]},aW1=function(K,X){this.totalCount=K;
this.dataCount=X},tFW=function(){this.buffer=[];
this.length=0},$F5=function(){var K=!1;
if(_.ZOl()){K=_.nO();var X="";_.MPl()?(X=/Windows (?:NT|Phone) ([0-9.]+)/,X=(K=X.exec(K))?K[1]:"0.0"):_.hM()?(X=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,X=(K=X.exec(K))&&K[1].replace(/_/g,".")):_.Q3l()?(X=/Mac OS X ([0-9_.]+)/,X=(K=X.exec(K))?K[1].replace(/_/g,"."):"10"):_.JM(_.nO(),"KaiOS")?(X=/(?:KaiOS)\/(\S+)/i,X=(K=X.exec(K))&&K[1]):_.ZOl()?(X=/Android\s+([^\);]+)(\)|;)/,X=(K=X.exec(K))&&K[1]):_.ndy()&&(X=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,X=(K=X.exec(K))&&K[1]);K=X||""}return K},CyF=function(K,
X){this.JSC$17359__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(X)for(var F in X)this.JSC$17359__htOption[F]=X[F];this.JSC$17359__htOption.useSVG&&(OLt=VFv);this.JSC$17359__android=$F5();this.JSC$17359__el=K;this._oQRCode=null;this._oDrawing=new OLt(this.JSC$17359__el,this.JSC$17359__htOption);this.JSC$17359__htOption.text&&(K=this.JSC$17359__htOption.text,this._oQRCode=new v3w(this.JSC$17359__htOption.correctLevel),g3k(this._oQRCode,K),X=this._oQRCode,E3t(X,!1,bLv(X)),this.JSC$17359__el.title=
K,this._oDrawing.draw(this._oQRCode),this.makeImage())},Nc8=function(K,X,F,P,H){K.save();
var f=new Path2D;f.roundRect(X,F,P*7,P*7,P*2);f.roundRect(X+P,F+P,P*5,P*5,P*1.3);f.roundRect(X+2*P,F+2*P,P*3,P*3,P);K.clip(f,"evenodd");K.fillStyle=H;K.fillRect(0,0,K.canvas.width,K.canvas.height);K.restore()},oP=function(K,X){if(typeof K!=="function")throw Error("sk");
return _.FP.setTimeout(function(){K()},X)},LP=function(){},xFW=function(K,X,F,P,H){(new LP).debug("TestLoadImageWithRetries: "+H);
if(P==0)F(!1);else{var f=H||0;P--;iLW(K,X,function(u){u?F(!0):_.FP.setTimeout(function(){xFW(K,X,F,P,f)},f)})}},iLW=function(K,X,F){var P=new LP;
P.debug("TestLoadImage: loading "+K);var H=new Image;H.onload=function(){try{P.debug("TestLoadImage: loaded"),IWd(H),F(!0)}catch(f){}};
H.onerror=function(){try{P.debug("TestLoadImage: error"),IWd(H),F(!1)}catch(f){}};
H.onabort=function(){try{P.debug("TestLoadImage: abort"),IWd(H),F(!1)}catch(f){}};
H.ontimeout=function(){try{P.debug("TestLoadImage: timeout"),IWd(H),F(!1)}catch(f){}};
_.FP.setTimeout(function(){if(H.ontimeout)H.ontimeout()},X);
H.src=K},IWd=function(K){K.onload=null;
K.onerror=null;K.onabort=null;K.ontimeout=null},kTJ=function(){this.front_=[];
this.back_=[]},K7o=function(K,X){_.LJ.call(this);
this.delay_=new _.r0(this.JSC$17485_onTick_,0,this);_.JH(this,this.delay_);this.JSC$17483_interval_=5E3;this.nextTickTime_=0;if(typeof K==="function")X&&(K=(0,_.T3)(K,X));else if(K&&typeof K.handleEvent==="function")K=(0,_.T3)(K.handleEvent,K);else throw Error("Ca");this.JSC$17485_listener_=K},TH=function(K,X,F,P,H,f,u,J,Z,M,n,c,B,L){F=F===void 0?!1:F;
P=P===void 0?function(){return""}:P;
H=H===void 0?!1:H;f=f===void 0?!1:f;u=u===void 0?!1:u;J=J===void 0?function(){return _.F0({})}:J;
Z=Z===void 0?!1:Z;n=n===void 0?!1:n;c=c===void 0?!1:c;B=B===void 0?!1:B;L=L===void 0?!1:L;this.JSC$17486_pathPrefix_=K;this.defaultQueryParams_=X;this.pubsub_=new _.uD;this.reconnectTimer_=new K7o(this.safeReconnect_,this);this.JSC$17486_channel_=null;this.JSC$17486_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17486_pendingMessages_=[];this.enableAsyncTest_=F;this.JSC$17486_getXsrfToken_=P;this.useAsyncBrowserChannelHandler_=f;this.getAuthorizationHeader_=
J;this.getAuthorizationHeaderSync_=M;this.enableCachedUpdateAuthorizationHeader_=u;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.F0();this.enableLoungeTokenRefresh_=H;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=Z;this.disableMdxAuthForNonPlaybackMessages_=n;this.disableMdxAuthForAdMessages_=c;this.enableMdxAuthForConnectionOnly_=B;this.disableMdxAuthForShortsMessages_=L;this.JSC$17486_channelOpenedCounter=new Xb8;this.JSC$17486_channelClosedCounter=new F7o;this.channelMessageSentCounter=
new Pv8;this.JSC$17486_channelMessageReceivedCounter=new HD8;this.JSC$17486_channelErrorCounter=new s2V;this.pendingMapsOnClosedCounter=new zb1;this.undeliveredMapsOnClosedCounter=new fpw},rW=function(K){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;K=K||document.location.href;var X=Number(_.V8(K)[4]||null)||"";X&&(this.port=":"+X);this.domain=_.g2(K)||"";K=_.nO();K.search("MSIE")>=0&&_.Q9(K.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},A2=function(K){K=K||{};
this.name=K.name||"";this.id=K.id||K.screenId||"";this.token=K.token||K.loungeToken||"";this.uuid=K.uuid||K.dialId||"";this.idType=K.screenIdType||"normal"},Dzd=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(K){var X=Math.random()*16|0;
return(K=="x"?X:X&3|8).toString(16)})},uSt=function(K){return _.AE(K,function(X){return{key:X.id,
name:X.name}})},qiW=function(K,X){return _.lT(K,function(F){return F||X?!F!=!X?!1:F.id==X.id:!0})},wW=function(K,X){return _.lT(K,function(F){return jC(F,X)})},MWV=function(){var K=JgV(),X=ZD8();
if(YiG()){var F=K,P=_.ody(F,X);P<0&&_.Sly(F,-(P+1),0,X)}K=Q2w(K);if(K.length==0)try{_.JDP("remote_sid")}catch(H){}else try{_.Zr("remote_sid",K.join(","),-1)}catch(H){}},JgV=function(){var K=_.KE("yt-remote-connected-devices")||[];
K.sort(_.HN);return K},Q2w=function(K){if(K.length==0)return[];
var X=K[0].indexOf("#"),F=X==-1?K[0]:K[0].substring(0,X);return _.AE(K,function(P,H){return H==0?P:P.substring(F.length)})},nhk=function(K){_.kl("yt-remote-connected-devices",K,86400)},ZD8=function(){if(cg8)return cg8;
var K=_.KE("yt-remote-device-id");K||(K=Dzd(),_.kl("yt-remote-device-id",K,31536E3));for(var X=JgV(),F=1,P=K;_.Ol(X,P);)F++,P=K+"#"+F;return cg8=P},pb8=function(){return _.KE("yt-remote-session-browser-channel")},YiG=function(){return _.KE("yt-remote-session-screen-id")},ohJ=function(K){K.length>5&&(K=K.slice(K.length-5));
var X=_.AE(Bg1(),function(P){return P.loungeToken}),F=_.AE(K,function(P){return P.loungeToken});
_.i3y(F,function(P){return!_.Ol(X,P)})&&Si8();
_.kl("yt-remote-local-screens",K,31536E3)},Bg1=function(){return _.KE("yt-remote-local-screens")||[]},Si8=function(){_.kl("yt-remote-lounge-token-expiration",!0,86400)},yx=function(K){K||(_.XE("yt-remote-session-screen-id"),_.XE("yt-remote-session-video-id"));
MWV();K=JgV();_.CO(K,ZD8());nhk(K)},Tgw=function(){L7w();
return W2?!!W2.get("yt-remote-use-staging-server"):!1},L7w=function(){if(!W2){var K=_.ScO();
K&&(W2=new _.cm(K))}},wbv=function(K,X,F,P,H){F=F===void 0?function(){return""}:F;
var f=function(){return new TH(dW(K,"/bc"),X,!1,F,P)};
return _.S("enable_mdx_web_channel_desktop")?new rgk(function(){return new Ags(dW(K,"/wc"),X,F)}):new j2F(f,H)},eb1=function(){var K=ygV;
W7k();eC.push(K);dzw()},RP=function(K,X){W7k();
var F=RbW(K,String(X));eC.length==0?UzW(F):(dzw(),_.vd(eC,function(P){P(F)}))},U0=function(K){RP("CP",K)},W7k=function(){eC||(eC=_.mz("yt.mdx.remote.debug.handlers_")||[],_.gS("yt.mdx.remote.debug.handlers_",eC))},UzW=function(K){var X=(h2+1)%50;
h2=X;hbG[X]=K;mzJ||(mzJ=X==49)},dzw=function(){var K=eC;
if(hbG[0]){var X=mzJ?h2:-1,F={};do F={record$jscomp$13:void 0},X=(X+1)%50,F.record$jscomp$13=hbG[X],_.vd(K,function(P){return function(H){H(P.record$jscomp$13)}}(F));
while(X!=h2);hbG=Array(50);h2=-1;mzJ=!1}},RbW=function(K,X){var F=(Date.now()-GBJ)/1E3;
F.toFixed&&(F=F.toFixed(3));var P=[];P.push("[",F+"s","] ");P.push("[","yt.mdx.remote","] ");P.push(K+": "+X,"\n");return P.join("")},mB=function(K){_.ES.call(this);
this.JSC$17510_logName_=K;this.screens=[]},lA=function(K){mB.call(this,"LocalScreenService");
this.JSC$17517_http_=K;this.loungeTokenRefreshTimer_=NaN;GH(this);this.info("Initializing with "+lp5(this.screens))},v2=function(K,X){X=X===void 0?!1:X;
mB.call(this,"ScreenService");this.JSC$17523_http_=K;this.disableAutomaticScreenCache_=X;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};vhJ(this)},aP=function(K,X,F){_.ES.call(this);
this.JSC$17527_logName_=F;this.JSC$17527_screenService_=K;this.receiver_=X;this.screen_=null},KHv=function(K,X,F){F.disableCastApi?t2("Cannot initialize because disabled by Mdx config."):apW()?tWV(K,F)&&($z5(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?ODW(X):(window.__onGCastApiAvailable=function(P,H){P?ODW(X):($k("Failed to load cast API: "+H),VWW(!1),$z5(!1),_.XE("yt-remote-cast-available"),_.XE("yt-remote-cast-receiver"),ghF(),X(!1))},F.loadCastApiSetupScript?_.e4("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):
window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?Eh8()>=60&&bDs():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?CvW():Eh8()>=89?NgV():(iDv(),xz1(Ips.map(kB8))))):t2("Cannot initialize because not running Chrome")},ghF=function(){t2("dispose");
var K=O0();K&&K.dispose();_.gS("yt.mdx.remote.cloudview.instance_",null);Xg8(!1);_.kwl(FHV);FHV.length=0},PXV=function(){return!!_.KE("yt-remote-cast-installed")},Hyk=function(){var K=_.KE("yt-remote-cast-receiver");
return K?K.friendlyName:null},sJ8=function(){t2("clearCurrentReceiver");
_.XE("yt-remote-cast-receiver")},zFw=function(){return PXV()?O0()?O0().getCastSession():($k("getCastSelector: Cast is not initialized."),null):($k("getCastSelector: Cast API is not installed!"),null)},D$1=function(K,X){fvw()?O0().setConnectedScreenStatus(K,X):$k("setConnectedScreenStatus called before ready.")},apW=function(){var K=_.nO().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.XX||K},tWV=function(K,X){var F=!1;
O0()||(K=new Vx(K,X),K.subscribe("yt-remote-cast2-availability-change",function(P){_.kl("yt-remote-cast-available",P);Ip("yt-remote-cast2-availability-change",P)}),K.subscribe("yt-remote-cast2-receiver-selected",function(P){t2("onReceiverSelected: "+P.friendlyName);
_.kl("yt-remote-cast-receiver",P);Ip("yt-remote-cast2-receiver-selected",P)}),K.subscribe("yt-remote-cast2-receiver-resumed",function(P){t2("onReceiverResumed: "+P.friendlyName);
_.kl("yt-remote-cast-receiver",P);Ip("yt-remote-cast2-receiver-resumed",P)}),K.subscribe("yt-remote-cast2-session-change",function(P){t2("onSessionChange: "+u11(P));
P||_.XE("yt-remote-cast-receiver");Ip("yt-remote-cast2-session-change",P)}),_.gS("yt.mdx.remote.cloudview.instance_",K),F=!0);
t2("cloudview.createSingleton_: "+F);return F},O0=function(){return _.mz("yt.mdx.remote.cloudview.instance_")},ODW=function(K){VWW(!0);
$z5(!1);O0().init(!1,function(X){X?(Xg8(!0),_.Kad("yt-remote-cast2-api-ready")):($k("Failed to initialize cast API."),VWW(!1),_.XE("yt-remote-cast-available"),_.XE("yt-remote-cast-receiver"),ghF());K(X)})},t2=function(K){RP("cloudview",K)},$k=function(K){RP("cloudview",K)},VWW=function(K){t2("setCastInstalled_ "+K);
_.kl("yt-remote-cast-installed",K)},fvw=function(){return!!_.mz("yt.mdx.remote.cloudview.apiReady_")},Xg8=function(K){t2("setApiReady_ "+K);
_.gS("yt.mdx.remote.cloudview.apiReady_",K)},$z5=function(K){_.gS("yt.mdx.remote.cloudview.initializing_",K)},gW=function(K){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(K)},qck=function(){var K,X;
return _.q(function(F){if(F.nextAddress==1)return(_.GwP()||_.S("use_new_nwl"))&&_.RZP().isNetworkAvailable()?_.Y(F,_.EU(),2):F.return();if(F.nextAddress!=3)return(K=F.yieldResult)?_.Y(F,O9G(K),3):F.return();X=F.yieldResult;if(!X.length)return F.return();X.forEach(function(P){var H={timestamp:P.timestamp};P=P.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:P.appShellAssetLoadReport,options:H}:P.clientError?{payloadName:"clientError",payload:P.clientError,options:H}:void 0;P&&
_.LL(P.payloadName,P.payload,P.options)});
X.length===100&&_.A9.addLowPriorityJob(qck);_.JT(F)})},JDk=function(K){if(K.playerResponse){if(K=K.playerResponse,K.messages&&K.messages.length>0&&(K=K.messages.find(function(X){return!(!X||!X.mealbarPromoRenderer)}))&&K.mealbarPromoRenderer)return K.mealbarPromoRenderer}else if(K.response&&(K=K.response)&&K.overlay&&K.overlay.mealbarPromoRenderer)return K.overlay.mealbarPromoRenderer},Zyv=function(K){if(K.response){var X=K.response;
if(X&&X.overlay&&X.overlay.tooltipRenderer)return X.overlay.tooltipRenderer}if(K.playerResponse&&(K=K.playerResponse,K.messages&&K.messages.length>0&&(K=K.messages.find(function(F){return!(!F||!F.tooltipRenderer)}))&&K.tooltipRenderer))return K.tooltipRenderer},QJV=function(K){if(!Ycd&&(K=K||_.e8("ZWIEBACK_PING_URLS"))&&K.length){Ycd=!0;
for(var X=0;X<K.length;X++)_.m3(K[X])}},nrs=function(K){if(_.T8.get(_.e8("PLAYER_VARS",{}),"privembed",!1)!="1"){K&&Uu8();
try{M4v().then(function(){},function(){}),_.Pm(nrs,18E5)}catch(X){_.UN(X)}}},cDV=function(){var K=_.ZO(),X=K.getFlag(119),F=window.devicePixelRatio>1;
document.body&&_.dY(document.body,"exp-invert-logo")&&(F&&!_.dY(document.body,"inverted-hdpi")?_.tY(document.body,"inverted-hdpi"):!F&&_.dY(document.body,"inverted-hdpi")&&_.vn(document.body,"inverted-hdpi"));X!=F&&(_.YX(0,119,F),K.save())},pgs=function(K){return K.filter(function(X){return"ypcGetCartEndpoint"in X||"ypcFixInstrumentEndpoint"in X})},B_s=function(K){return K.filter(function(X){return!_.T(X,_.Rnt)})},or1=function(K){K=_.D(K);
for(var X=K.next(),F={};!X.done;F={setter$jscomp$6:void 0},X=K.next()){var P=X.value;X=P.params;P=P.service;X&&P&&(F.setter$jscomp$6=Sct[P],F.setter$jscomp$6&&X.forEach(function(H){return function(f){var u=f.key;f=f.value;u&&f&&(0,H.setter$jscomp$6)(u,f)}}(F)))}},T_s=function(K,X){var F,P,H,f,u,J,Z;
_.q(function(M){switch(M.nextAddress){case 1:F=_.BI.getInstance();P=_.Hn.instance;H=_.dn.instance;if(!H)return LH1(K,P,X),M.return();_.s2(M,2);K.onLoadingCommand&&P.resolveCommand(K.onLoadingCommand);return _.Y(M,F.getCurrentPositionFromGeolocation(),4);case 4:f=M.yieldResult;if(!K.resolveLocationCommand){M.jumpTo(5);break}u=F.createLocationInfo(f);return _.Y(M,_.Rx(H,K.resolveLocationCommand,{locationInfo:u}),6);case 6:J=M.yieldResult;if(!J||"error"in J&&J.error||J.errorMetadata)return LH1(K,P,X),
M.return();var n;if(J==null?0:(n=J.onResponseReceivedActions)==null?0:n.length){n=_.D(J.onResponseReceivedActions);for(var c=n.next();!c.done;c=n.next())P.resolveCommand(c.value)}(_.T(K.onSuccessCommand,_.vg)||_.T(K.onSuccessCommand,_.f$))&&_.iX(X.hostElement,"yt-navigate",{endpoint:K.onSuccessCommand,reload:!0});case 5:_.Gy(M,0);break;case 2:Z=_.qc(M);if(Z instanceof GeolocationPositionError&&Z.code===GeolocationPositionError.PERMISSION_DENIED)return K.onDeniedCommand&&P.resolveCommand(K.onDeniedCommand),
M.return();LH1(K,P,X);_.JT(M)}})},LH1=function(K,X,F){K.onFailureCommand&&(X.resolveCommand(K.onFailureCommand),_.xr(F.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},ADs=function(K,X){var F=_.T(K,_.bkt);
if(F&&X){K=F.videoIds||[F.videoId];var P;X=(P=_.iX(X,"yt-lockup-requested",{videoIds:K}).detail)==null?void 0:P.returnValue;var H;F.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?H=X?X:K.map(function(f){return{videoId:f,navigationEndpoint:F.videoCommand}}):X&&(H=X);
H&&(P=H.map(function(f){var u=Object,J=u.assign;var Z=f.navigationEndpoint;if(!_.T(Z,_.J6)){var M=_.T(Z,_.vg);if(M){if(delete M.index,delete M.playlistId,M=_.T(Z==null?void 0:Z.commandMetadata,_.g_),M==null?0:M.url){var n=M.url;n=_.Vn(n,"list");n=_.Vn(n,"index");M.url=n}}else Z=void 0}return J.call(u,{},f,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:Z})}),rDF(P,F))}},jJF=function(K){var X=_.dz();
if(K=_.T(K,_.CrE))K.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&X.clearQueue(),K.closeMiniplayer&&_.i9().resolve(_.Wj).close(!0)},yDt=function(K){wg8(_.dz(),K)},WHv=function(K){var X;
(K=(X=_.T(K,_.gAV))==null?void 0:X.setVideoIds)&&K.forEach(function(F){_.EWN(_.dz(),F)})},eFk=function(K){d$v(_.dz(),K)},RF8=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(K){return!1}},U$k=function(){var K,X;
return(X=(K=window).matchMedia)==null?void 0:X.call(K,"(prefers-reduced-motion: reduce)").matches},hFG=function(K){var X=_.i9().resolve(_.Nu(_.YP));
if(X){var F={beforeTransition:function(){K.style.viewTransitionName="miniplayer-page-transition"},
afterTransition:function(){K.style.viewTransitionName=""}};
E0(X,"slide",F);E0(X,"zoom",F)}},m$v=function(K,X,F){return{horizontalAlignment:K.x+F.width/2<X.width/2?"west":"east",
verticalAlignment:K.y+F.height/2<X.height/2?"north":"south"}},vrv=function(K,X,F,P,H){H=H===void 0?new _.jA(0,0):H;
return GYd(lvV(K,X,F,P),H)},lvV=function(K,X,F,P){return new _.jA(K==="west"?16:F.width-P.width-16,X==="north"?16:F.height-P.height-16)},avF=function(K,X){var F=0;
K&&(F+=76);X&&(F+=285);return F},t48=function(K){var X=["h",
"m","s"],F=_.Nq(X);F.reverse();var P={};K=(K.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(u){var J=(u.match(/[hms]/)||[""])[0];return J?(P[J]=parseInt(u.match(/\d+/)[0],10),!1):!0});
for(K.reverse();K.length&&F.length;){var H=F.shift();H in P||(P[H]=parseInt(K.shift(),10))}if(K.length||P.s>59||P.m>59||P.h>9)return null;var f="";X.forEach(function(u){P[u]&&(f+=""+P[u]+u)});
return f||null},$$5=function(K){K=K.data;
return _.Q("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.Q("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.Q(_.av,{data:{thumbnails:[{url:K.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.Q("div",{class:"profile-badge-view-model-wiz__content"},_.Q("div",{class:"profile-badge-view-model-wiz__badge-description"},K.badgeDesc),K.badgeSubtitle?_.Q("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},K.badgeSubtitle):null))},OyF=function(K){K=
K.data;
var X=_.t_();_.FK3(X,K.rendererContext);return _.Q("yt-comment-interaction-view-model",{el:X,class:"yt-comment-interaction-view-model-wiz"},_.Q("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":K.onTapA11yLabel,"on:keydown":_.irP(),tabindex:0},_.Q("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.Q("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},K.headerPrefix,' "',K.videoTitle),_.Q("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.Q("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.Q("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},K.commentContent),_.Q("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.Q(_.av,{data:{thumbnails:[{url:K.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},grs=function(K){K=K.data;
return _.Q("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},V4o(K.avatar),_.Q("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},K.channelName))},byF=function(K){K=K.data;
var X;return _.Q("div",{class:"yt-profile-info-view-model-wiz__activity"},_.Q("div",{class:"yt-profile-info-view-model-wiz__header"},_.Q("div",{class:"yt-profile-info-view-model-wiz__section-title"},K.commentsInteractionTitle)),(X=K.comments)==null?void 0:X.map(function(F){return _.Q("div",{class:"yt-profile-info-view-model-wiz__activity"},Erw(F))}))},CX8=function(K){K=K.data;
var X=_.Wn({elementsCommand:K.subscriptionsAccessButtonCommand}),F=_.t_();_.RBn(F,_.w$(K.subscriptionsAccessButtonCommand));var P;return _.Q("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.Q("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.Q("a",{el:F,"on:click":_.DF(function(H){if(X==null?0:X.onclick)X.onclick(H);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.Q("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},K.sharedSubscriptionsTitle),_.Q("div",null,Erw(K.subscriptionsAccessButton)))),_.Q("div",{class:"yt-profile-info-view-model-wiz__subs"},(P=K.sharedSubscriptions)==null?void 0:P.slice(0,5).map(function(H){return _.Q("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",Erw(H))})))},N_8=function(K){K=K.data;
var X;return _.Q("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.Q("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.Q("h2",{class:"yt-profile-info-view-model-wiz__section-title"},K.sharedSubscriptionsTitle)),_.Q("div",{class:"yt-profile-info-view-model-wiz__subs"},(X=K.sharedSubscriptions)==null?void 0:X.slice(0,5).map(function(F){return _.Q("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",Erw(F))})))},iyo=function(K){K=K.data;
return _.Q("div",{class:"yt-profile-info-view-model-wiz__activity"},[K.profileBadgeInfoYtWide,K.profileBadgeInfoChannelWide].map(function(X){var F,P,H,f,u;return X?_.Q(_.ID,null,_.Q("div",{class:"yt-profile-info-view-model-wiz__header"},_.Q("div",{class:"yt-profile-info-view-model-wiz__section-title"},X==null?void 0:X.profileSectionTitle),_.Q("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.Q("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},X==null?void 0:(F=X.commentBadge)==
null?void 0:F.commentDesc),(X==null?0:(P=X.commentBadge)==null?0:P.blackHeartDesc)?_.Q("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.Q("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.Q(_.av,{data:{thumbnails:[{url:X==null?void 0:(H=X.commentBadge)==null?void 0:H.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.Q("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},X==null?void 0:(f=
X.commentBadge)==null?void 0:f.blackHeartDesc))),_.Q("div",{class:"yt-profile-info-view-model-wiz__badge"},X==null?void 0:(u=X.badges)==null?void 0:u.map(function(J){return _.Q($$5,{data:J})}))):null}))},x$F=function(K){K=K.data;
return _.Q("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.Q(iyo,{data:K}),K.comments?_.Q(byF,{data:K}):null,K.sharedSubscriptionsTitle?K.subscriptionsAccessButtonCommand?_.Q(CX8,{data:K}):_.Q(N_8,{data:K}):null)},kYG=function(K){var X=K.data;
K=X?Iv8(X.profileIdentityInfo):void 0;X=X?Iv8(X.profileInfo):void 0;return _.Q("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},K,X)},KbV=function(K,X){var F=_.wGQ(X,{},K,!0);
return new Promise(function(P,H){F.listenOnce("n",function(){H(Error("cl`"+F.JSC$25879_getErrorDescription()))});
F.listenOnce("l",function(){var f=F.getResponseCode();if(f!==200)H(Error("dl`"+X+"`"+K.type+"`"+K.size+"`"+f));else try{P(JSON.parse(F.getResponseText()).encryptedBlobId)}catch(u){H(u)}});
F.run()})},XWG=function(K){return K.substring(K.indexOf(":")+1,K.indexOf(";"))},FbJ=function(K){return new Promise(function(X,F){var P=new FileReader;
P.onloadend=function(){try{var H=new Uint8Array(P.result);H.length<8&&F(void 0);var f=H.subarray(0,8);H="";for(var u=0;u<f.length;u++)H+=("0"+f[u].toString(16)).substr(-2);H.startsWith("ffd8ff")?X("image/jpeg"):H.startsWith("47494638")?X("image/gif"):H.startsWith("89504e470d0a1a0a")?X("image/png"):H.startsWith("424d")?X("image/bmp"):X(void 0)}catch(J){F(J)}};
P.onerror=F;P.readAsArrayBuffer(K)})},PYk=function(K){return new Promise(function(X,F){var P=new Image;
P.crossOrigin="anonymous";P.onload=function(){var H=document.createElement("canvas");H.width=P.naturalWidth;H.height=P.naturalHeight;var f=H.getContext("2d");if(!f)throw Error("el");f.drawImage(P,0,0);f=XWG(K);H.toBlob(function(u){u?X(u):F()},f)};
P.src=K})},s71=function(K,X){var F;
if(((F=_.T(K,_.J6))==null?void 0:F.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var P;_.iX((P=X.hostElement)!=null?P:X,"yt-shorts-reset");_.ifC(_.i9().resolve(_.fE),K).then(function(f){Hls(f,X,K)})}else{var H;
_.Kl((H=X.hostElement)!=null?H:X,[K]).then(function(f){f&&Hls(f.data,X,K)})}},Hls=function(K,X,F){if(K){var P=_.T(K.replacementEndpoint,_.J6);
if(P){K.sequenceContinuation&&(P.sequenceParams=K.sequenceContinuation);var H;_.iX((H=X.hostElement)!=null?H:X,"yt-navigate",{endpoint:K.replacementEndpoint})}else if((K==null?void 0:K.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(K==null?0:K.watchStatus)&&_.T(K.watchStatus,_.WDC)){var f;_.iX((f=X.hostElement)!=null?f:X,"yt-navigate",{endpoint:F})}}},z3t=function(K){var X=_.i9().resolve(_.jE),F=ZQt(X.getState())||"";
X=_.vny(X.getState())||"";F=F==="ytd-browse"&&X==="home";return _.S("web_guide_entry_enable_cache_for_non_home_pages")?(K=(K==null?void 0:K.navigationEndpoint)&&_.zw(K.navigationEndpoint)==="home",{disableCache:F&&K}):{disableCache:F}},fO5=function(K){if(!K)return!1;
try{if(K.host&&K.host.tagName==="YT-FORMATTED-STRING"&&K.host.id==="contenteditable-textarea"||K.nodeType===Node.ELEMENT_NODE&&K.tagName==="YTD-COMMENT-INPUT")return!0}catch(X){return!1}return fO5(K.parentNode)},bA=function(K){return K?K.tagName==="A"&&K.href&&K.classList.contains("yt-simple-endpoint"):!1},Dms=function(K){return K?K.tagName==="IMG"&&K.classList.contains("emoji"):!1},u0t=function(K,X,F){if(!K)return null;
var P=bA(K);if(P&&F)return X=K.pathname.substring(K.pathname.indexOf("/channel/")+9),document.createTextNode("@"+X);if(P&&!F)return document.createTextNode("");if(Dms(K))return F=K.alt,K=K.dataset.emojiId,!K&&X&&(X=_.DV(X,F))&&X.isCustomEmoji&&(K=X.emojiId),K?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+K+">"):document.createTextNode(F);P=K.cloneNode(!1);for(var H=0;H<K.childNodes.length;++H){var f=u0t(K.childNodes[H],X,F);f&&P.appendChild(f)}return P},CP=function(K){return K?bA(K)?K:CP(K.lastChild):
null},qsk=function(K){return K?bA(K)?K:qsk(K.firstChild):null},JcJ=function(K){if(!K)return null;
for(var X=K.previousSibling;X;)if(X.nodeType===Node.ELEMENT_NODE&&X.nodeName==="BR")X=X.previousSibling;else if(X.nodeType===Node.TEXT_NODE&&/\s+/.test(X.textContent))X=X.previousSibling;else break;(X=CP(X))?K=X:K=(K=K.parentNode)?CP(K.previousElementSibling):null;return K},Zlw=function(K){if(!K)return null;
for(var X=K.nextSibling;X;)if(X.nodeType===Node.ELEMENT_NODE&&X.nodeName==="BR")X=X.nextSibling;else if(X.nodeType===Node.TEXT_NODE&&/\s+/.test(X.textContent))X=X.nextSibling;else break;return(X=qsk(X))?X:Zlw(K.parentNode)},Ys8=function(K){var X=_.qy(),F=X.JSC$9253_getStartNode();
if(!fO5(F.parentNode))return null;X=X.JSC$9253_getStartOffset();if(F.nodeType===Node.TEXT_NODE){var P=_.RR(F,bA);if(P){if(K&&X===0||!K&&X===F.length)return P}else{if(K&&X===F.length)return!F||F.nodeName==="BR"||F.nextElementSibling&&_.Jq(F.nextElementSibling,"display")==="block"?null:qsk(F.nextElementSibling);if(!K&&X===0)return F?CP(F.previousElementSibling):null}}if(F.nodeType===Node.ELEMENT_NODE)if(K){if(0<=X&&X<F.childNodes.length)return qsk(F.childNodes[X])}else if(0<X&&X<=F.childNodes.length)return CP(F.childNodes[X-
1]);return null},Q75=function(K,X,F){if(!K)return null;
if(K.nodeType===Node.TEXT_NODE)if(F){var P=JcJ(K);if(P&&!/^\s+\S/.test(K.wholeText.substr(0,X)))return P}else if((P=Zlw(K))&&!/\S\s+/.test(K.wholeText.substr(X,K.wholeText.length)))return P;return K.nodeType===Node.ELEMENT_NODE?F?JcJ(K.childNodes[X]):Zlw(K.childNodes[X]):Q75(K.parentNode,X,F)},Mvv=function(K){if(K.hasChildNodes())switch(K.tagName){case "DIV":case "A":case "SPAN":var X="";
for(K=K.firstChild;K;K=K.nextSibling)X+=Mvv(K);return X;default:return""}else switch(K.nodeType){case 3:return K.textContent;default:return""}},nXs=function(K){K=K.data;
return _.Q("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.Q("div",null,_.Q(_.Oy,{text:K.title})),K.subtitle?_.Q("div",{class:"ytd-menu-title-renderer__subtitle"},_.Q(_.Oy,{text:K.subtitle})):null)},ccF=function(K){switch(K){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"}},pW8=function(K){return K.map(function(X){return{settingsRadioOptionRenderer:{title:_.Nm(X.name),
asideText:_.Nm(X.approximateSize),id:ccF(X.format)}}})},SsF=function(K){if(K&&K.length!==0)return K.filter(Bb8()).map(function(X){return{settingsRadioOptionRenderer:{title:X.name,
asideText:X.approximateSize,id:ccF(X.formatType)}}})},Nj=function(K){if(K)return K.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},oX8=function(K,X){K=new Set(K!=null?K:[]);
if(K.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(K.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(K.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(K.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(K.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(X)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},LbV=function(K){var X=K.indexOf("(");
return X!==-1?K.substring(X+1,K.length-1):K},Tbo=function(K){switch(K){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},AcF=function(K,X,F,P,H,f){var u=_.T8.clone(rc5);
u.locale=_.e8("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;u.report={description:H||"<empty>"};H=_.e8("SBOX_SETTINGS",{});X=X.join(",");var J=Date.now();K={choice_cc:P,choice_id_cc:F,choices_sc:X,gl:H.REQUEST_DOMAIN,hl:H.REQUEST_LANGUAGE,query:K,time:J};f&&(K.choice_additional_comment_cc=f);_.UyE(u,K)},j7G=function(K){var X=new Map;
X.set("authuser",_.e8("SESSION_INDEX","0"));return _.Fs(K,X)},yc5=function(K){var X;
return _.q(function(F){switch(F.nextAddress){case 1:if(!K||!wWG(K))return F.return(null);X=null;switch(_.e8("INNERTUBE_CLIENT_NAME")){case "WEB":return F.jumpTo(2);case "WEB_REMIX":X=K.getPlayer()}F.jumpTo(3);break;case 2:return _.Y(F,K.getPlayerPromise(),4);case 4:X=F.yieldResult;F.jumpTo(3);break;case 3:return F.return(X)}})},wWG=function(K){return["ytd-player",
"ytmusic-player"].includes(String(K.tagName||"").toLowerCase())},Wb8=function(K){K=Math.round(K);
return K%2?K-1:K},dm8=function(K){K=Math.round(K);
return K%2===0?K-1:K},e31=function(K){var X,F,P;
if(K=(X=K.createPlaylistDialogFormSchema)==null?void 0:(F=X.fieldSchemas)==null?void 0:(P=F.title)==null?void 0:P.validationSchema)for(X=[K.syncStep,K.asyncStep].filter(function(H){return H!==void 0}),X=_.D(X),F=X.next();!F.done;F=X.next()){F=F.value.rules;
if(!F)break;F=_.D(F);for(F=F.next();!F.done;F=F.next())return _.T(F.value,_.mc1)}},UmW=function(K){var X,F,P;
if(K=(X=K.createPlaylistDialogFormSchema)==null?void 0:(F=X.fieldSchemas)==null?void 0:(P=F.visibility)==null?void 0:P.validationSchema)for(X=[K.syncStep,K.asyncStep].filter(function(H){return H!==void 0}),X=_.D(X),F=X.next();!F.done;F=X.next()){F=F.value.rules;
if(!F)break;F=_.D(F);for(P=F.next();!P.done;P=F.next())if(P=_.T(P.value,R3J))return X=void 0,(X=P.translations)==null?void 0:X.visibilityNotValidErrorMessage}},h3G=function(){var K,X;
return(X=(K=_.i9().resolve(_.Nu(_.m$)))==null?void 0:K())!=null?X:!1},mmk=function(K){var X=21;
if(!K)return X;X+=K.headerTitle?27:0;X+=K.headerTitle&&K.hasHeaderActionHeader?4:0;return X+=K.headerTitle&&K.headerSubtitle?16:0},G65=function(K){var X=0;
if(!K)return X;X+=K.hasFooterPrimaryButton||K.hasFooterSecondaryButton?48:0;X+=K.footerTrailingLabel||K.footerLeadingLabel?30:0;return X+=K.hasFooterPrimaryButton||K.hasFooterSecondaryButton||!K.footerTrailingLabel&&!K.footerLeadingLabel?0:12},lO8=function(K){var X=new _.uD,F=K;
return{subscribe:function(P){X.subscribe("changed",P)},
dispatch:function(P,H){var f=F;P==="Touch Start"?F=Object.assign({},f,{isAnimating:!1,initialY:H.event.touches[0].clientY}):P==="Touch Move"?(P=Math.min(H.fullContentWrapperHeight,H.contentHeightMap[H.contentWrapperId]+mmk(H.header)-G65(H.footer)),F=Object.assign({},f,{currentY:Math.max(H.contentScrollable?-1*(f.initialY-24):0,H.event.touches[0].clientY-f.initialY),maxHeightForContentWrapper:Math.min(P,Math.max(0,(f.isFullScreen?P:H.contentWrapperHeight)-f.currentY))})):F=P==="Snap To Full Screen"?
Object.assign({},f,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:H.maxHeight}):P==="Snap To Neutral Position"?Object.assign({},f,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:H.maxHeight}):P==="Close Sheet"?Object.assign({},f,{isAnimating:!0,currentY:H.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:H.maxHeight}):f;X.publish("changed",F)}}},vXG=function(K){return _.DF(function(X){K(X);
return!1})},aOd=function(){_.i9().resolve(_.pf).closeSheet()},tvw=function(K){var X,F,P,H,f,u,J,Z,M,n,c;
return{headerTitle:(X=K.headerTitle)==null?void 0:X.call(K),headerSubtitle:(F=K.headerSubtitle)==null?void 0:F.call(K),headerActionHeader:K.headerActionHeader,footerPrimaryButton:K.footerPrimaryButton,footerSecondaryButton:K.footerSecondaryButton,footerButtonType:(P=K.footerButtonType)==null?void 0:P.call(K),footerLeadingLabel:(H=K.footerLeadingLabel)==null?void 0:H.call(K),footerTrailingLabel:(f=K.footerTrailingLabel)==null?void 0:f.call(K),shouldShowIcons:(u=K.shouldShowIcons)==null?void 0:u.call(K),
skipContentClick:(J=K.skipContentClick)==null?void 0:J.call(K),additionalClassName:(Z=K.additionalClassName)==null?void 0:Z.call(K),onClosedCallback:K.onClosedCallback,focusOnClose:(M=K.focusOnClose)==null?void 0:M.call(K),isDisabled:(n=K.isDisabled)==null?void 0:n.call(K),disabledCommand:(c=K.disabledCommand)==null?void 0:c.call(K),headerFn:K.headerFn,contentFn:K.contentFn,footerFn:K.footerFn,hasHeaderFn:K.hasHeaderFn(),hasContentFn:K.hasContentFn(),hasFooterFn:K.hasFooterFn(),hasFooterPrimaryButton:K.hasFooterPrimaryButton(),
hasFooterSecondaryButton:K.hasFooterSecondaryButton(),hasHeaderActionHeader:K.hasHeaderActionHeader()}},$md=function(K){switch(K){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""}},Ol8=function(K){switch(K){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""}},Vvt=function(K){switch(K){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""}},gXk=function(K,X,F){X.forEach(function(P){_.FT(_.i9().resolve(_.n3),P)});
_.xr(K,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",F])},NbJ=function(K,X,F,P){var H=_.T(F,_.eg).commandLifeCycleConfig;
H&&H.onStartCommand&&_.X0(K,[H.onStartCommand],X);_.hq(X);var f=_.dn.instance;f&&_.ed(f,F)?_.Rx(f,F,P).then(function(u){if(!u||(u==null?0:u.error))return u=_.T(F,_.eg).serializedTransactionFlowLoggingParams,_.mm(X),_.pB(new iA("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",u));_.mm(X);return{data:u}}).then(function(u){_.mm(X);
EX8(u.data);var J=u.data.command;J&&_.X0(K,[J],X);J=blF(F,u.data);if(!J){var Z=u.data;u=!1;if(Z&&Z.command&&_.T(Z.command,_.PW)){var M;Z=((M=_.T(Z.command,_.PW))==null?void 0:M.commands)||[];for(M=0;M<Z.length;M++)if(_.T(Z[M],_.MgT)){u=!0;break}}u||_.cU('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!J&&H&&H.onSuccessCommand?_.X0(K,[H.onSuccessCommand],X):J&&H&&H.onFailureCommand&&_.X0(K,[H.onFailureCommand],X)},function(){_.mm(X);
H&&H.onFailureCommand&&_.X0(K,[H.onFailureCommand],X);CYw(F)}):_.jF(Error("vl"),"ERROR")},ilw=function(K,X,F){var P=[X];
F&&P.push(F);return _.Kl(K,P).then(function(H){var f=_.T(X,_.eg).serializedTransactionFlowLoggingParams,u=H.data,J=blF(X,u);J?H=_.pB(new iA(J,f)):EX8(u);return H},function(){var H=_.T(X,_.eg).serializedTransactionFlowLoggingParams;
CYw(X);return _.pB(new iA("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",H))})},blF=function(K,X){K=_.T(K,_.eg).serializedTransactionFlowLoggingParams;
var F=null;switch(X.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":F="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":F="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":F="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}F?_.m5(F,K):HQV(K);return F},CYw=function(K){_.m5("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.T(K,_.eg).serializedTransactionFlowLoggingParams)},
EX8=function(K){if(K.trackingParams){var X=_.AD(),F=_.r_();
X&&F&&_.Us(X,F,_.QB(K.trackingParams))}},xm5=function(K,X,F){var P=_.dn.instance,H=_.ED9(_.e8("YPC_MB_URL")),f=(new _.Vwy).init(),u=_.gDT(),J=_.T(F,_.JpU).languageCode;
J===void 0?_.jF(Error("zi"),"ERROR"):_.ZG([f,H]).then(function(){var Z={ctk:payments.business.integration.ClientTokenFactory.createClientToken(J,u)};P&&_.ed(P,F)?_.Rx(P,F,Z).then(function(M){return{data:M}}).then(function(M){_.iX(X,"yt-service-request-completed",M);
M.code!=="ERROR"&&(M=M.data.command)&&_.X0(K,[M],X)}):_.jF(Error("vl"),"ERROR")})},KXF=function(K,X,F,P){var H=_.dn.instance;
H&&_.ed(H,F)?_.Rx(H,F,P).then(function(f){return{data:f}}).then(function(f){IOV(K,X,F,f)},function(){k6V(F)}):(H=_.i9().resolve(_.Nu(_.oj)))&&H.requestDataForServiceEndpoint(F,P).then(function(f){IOV(K,X,F,f)},function(){k6V(F)})},IOV=function(K,X,F,P){_.iX(X,"yt-service-request-completed",P);
if(P.code&&P.code=="ERROR")k6V(F);else{(P=P.data.commands)&&_.X0(K,P,X);var H;(K=(H=_.T(F,_.cpW))==null?void 0:H.serializedYpcPauseFlowLoggingParams)&&K&&_.Ad("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",K)}},k6V=function(K){var X;
(K=(X=_.T(K,_.cpW))==null?void 0:X.serializedYpcPauseFlowLoggingParams)&&K&&_.Ad("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",K,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},Pjk=function(K,X,F){var P=_.dn.instance;
P&&_.ed(P,F)?_.Rx(P,F).then(function(H){return{data:H}}).then(function(H){Xv8(K,X,F,H)},function(){FX5(F)}):(P=_.i9().resolve(_.Nu(_.oj)))&&P.requestDataForServiceEndpoint(F).then(function(H){Xv8(K,X,F,H)},function(){FX5(F)})},Xv8=function(K,X,F,P){_.iX(X,"yt-service-request-completed",P);
P.code&&P.code=="ERROR"?FX5(F):((P=P.data.commands)&&_.X0(K,P,X),(K=_.T(F,_.pHL).serializedYpcResumeFlowLoggingParams)&&K&&_.Ad("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",K))},FX5=function(K){(K=_.T(K,_.pHL).serializedYpcResumeFlowLoggingParams)&&K&&_.Ad("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",K,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},HIv=function(K){K=K===void 0?{}:K;
_.i9().resolve(_.T6Q).showFeedbackDialog(K.customProductData,K.feedbackContent,K.onFeedbackSubmitted,K.bucket)},sAd=function(K){K=K===void 0?{}:K;
_.i9().resolve(_.T6Q).showHelpDialog(K.helpContext,K.articleId,K.productData)},zX8=function(){sAd()},fHJ=function(){HIv()},uF5=function(K,X,F){var P,H,f,u,J,Z,M;
return _.q(function(n){switch(n.nextAddress){case 1:P=_.T(K,Da1);if((H=P)==null?0:H.productId){Z={productId:P.productId,bucket:P.bucket,enableAnonymousFeedback:(J=P.enableAnonymousFeedback)!=null?J:!0,allowNonLoggedInFeedback:!0};M={feedbackChoice:F.feedbackChoice};if(!_.S("web_collect_offline_state")){n.jumpTo(8);break}_.s2(n,9);return _.Y(n,QaW(M),11)}u={bucket:(f=P)==null?void 0:f.bucket};if(!_.S("web_collect_offline_state")){n.jumpTo(4);break}u.customProductData={};_.s2(n,5);return _.Y(n,QaW(u.customProductData),
7);case 7:_.Gy(n,4);break;case 5:_.qc(n);case 4:HIv(u);n.jumpTo(0);break;case 11:_.Gy(n,8);break;case 9:_.qc(n);case 8:_.Guy(M),_.mCq("GFEEDBACK",M),P.productId==="5295751"&&(M.client_attestation=Number(_.e8("CATSTAT",0))),P.productId==="5295751"&&(M.client_time=Date.now()/1E3/3600),P.productId==="5295751"&&(M.original_playback_id=_.PqL||""),_.UyE(Z,M),_.JT(n)}})},qz8=function(K){if(K=_.T(K,_.Rf3)){var X={bucket:K.bucketIdentifier};
K.additionalDatas&&(X.customProductData={},K.additionalDatas.forEach(function(F){if(F=F.userFeedbackEndpointProductSpecificValueData)X.customProductData[F.key]=F.value}));
HIv(X)}},J7o=function(K){var X=_.GT.getInstance();
var F=_.uY("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var P=_.uY("DELETE",void 0,"Delete"),H=_.uY("CANCEL",void 0,"Cancel");F=Lzo(F,void 0,P,H,{signal:"DELETE_ALL_DOWNLOADS"});_.TO(X,[{openPopupAction:F}],K)},Yzo=function(){return _.q(function(K){return K.nextAddress==1?_.Y(K,_.i9().resolve(_.b5),2):_.Y(K,ZIF(),0)})},QAk=function(K){var X,F;
return _.q(function(P){return P.nextAddress==1?(F=(X=_.T(K,_.Uj))==null?void 0:X.targetId)?_.Y(P,_.i9().resolve(_.b5),3):P.jumpTo(0):_.Y(P,_.i9().resolve(_.Ef).deleteVideo(F),0)})},nxo=function(K){var X,F;
return _.q(function(P){return P.nextAddress==1?(F=(X=_.T(K,_.Uj))==null?void 0:X.targetId)?_.Y(P,_.i9().resolve(_.b5),3):P.jumpTo(0):_.Y(P,MJo(_.i9().resolve(_.Ef),F),0)})},pvo=function(K){var X,F;
return _.q(function(P){return(F=(X=_.T(K,_.Uj))==null?void 0:X.targetId)?_.Y(P,c71(F),0):P.jumpTo(0)})},Sz8=function(){_.S("kevlar_woffle_refresh_dl_load_killswitch")||BIG()},LX1=function(){_.S("kevlar_woffle")&&_.p$.instance&&ox8()},r78=function(K){var X;
if((X=_.T(K,_.Xj))==null||!X.videoId)return!1;TI8(_.i9().resolve(_.Ef),_.T(K,_.Xj),K.clickTrackingParams);return!0},jAv=function(K){var X;
if((X=_.T(K,_.Fj))==null||!X.playlistId)return!1;A7W(_.i9().resolve(_.Ef),_.T(K,_.Fj),K.clickTrackingParams);return!0},y7w=function(K){var X=_.T(K,_.q_C);
(X==null?void 0:X.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(X==null?void 0:X.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||wv8(_.i9().resolve(_.Ef),_.T(K,_.q_C))},dat=function(K){K=_.T(K,_.lBL);
var X;(K==null?0:(X=K.actions)==null?0:X.length)&&WX8(K)},Ua8=function(K){var X,F;
return _.q(function(P){X=_.T(K,eXF);return(F=X)!=null&&F.localWatchHistoryCommandType?_.Y(P,RX1(X),0):P.return()})},hXV=function(K){setTimeout(function(){requestAnimationFrame(K)},80)},mak=function(K){return Object.entries(K).map(function(X){return X.join(":")}).join(";")},lH8=function(K){var X,F,P;
_.q(function(H){if(H.nextAddress==1)return _.Y(H,GSV(),2);X=H.yieldResult;F=_.Hn.instance;switch(X){case "granted":P=K.getLocationCommand;break;case "denied":P=K.openDeniedDialogAction;break;case "prompt":P=K.openCollectionDialogAction;break;default:P=K.openCollectionDialogAction}P&&F.resolveCommand(P);_.JT(H)})},GSV=function(){var K,X;
return _.q(function(F){if(F.nextAddress==1)return K="prompt",navigator.permissions?_.Y(F,navigator.permissions.query({name:"geolocation"}),3):F.jumpTo(2);F.nextAddress!=2&&(X=F.yieldResult,K=X.state);return F.return(K)})},aHk=function(){_.q(function(K){return _.Y(K,_.vxW(),0)})},tJv=function(){var K,X,F;
return _.q(function(P){if(P.nextAddress==1)return K=_.i9().resolve(_.L$),K?_.Y(P,_.Rx(K,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.yy(Error("yl")),P.return(void 0));if(X=P.yieldResult){if(X.errorMetadata)return _.yy(Error("zl`"+X.errorMetadata.status+"`"+X.error)),P.return(void 0);F=X.datasyncIds;_.T7E=F.length;return P.return(F)}_.yy(Error("Al"));return P.return(void 0)})},$a1=function(){tJv().then(function(K){K&&(t88(K),zEJ(K),ROd(K),ng8(K))})},OIG=function(K){_.A9.addLowPriorityJob(function(){var X,
F,P,H,f;
return _.q(function(u){switch(u.nextAddress){case 1:if(_.S("ytidb_clear_optimizations_killswitch")){u.jumpTo(2);break}X=_.Qq("clear");if(X.startsWith("V")&&X.endsWith("||")){var J=[X];t88(J);zEJ(J);ROd(J);ng8(J);return u.return()}F=UUJ();P=c98();return _.Y(u,fTt(),3);case 3:return H=u.yieldResult,_.Y(u,$u8(),4);case 4:if(f=u.yieldResult,!(F||P||H||f))return u.return();case 2:K.isNetworkAvailable()?$a1():K.listenOnce("publicytnetworkstatus-online",$a1),_.JT(u)}})})},xk=function(K){K={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.GS(K)}}}};_.Hn.instance&&_.Hn.instance.resolveCommand(K)},VJo=function(K){if(K){var X=_.uH();
_.IZ(X,3854,void 0,{layer:0,parentLayer:4});switch(K){case 1:var F=238708;break;case 2:F=238715;break;case 3:F=238710;break;case 6:F=238709}F&&(K=_.Da(X,{veType:F}))&&_.XT(X,K)}},gxt=function(K){if(K){var X=_.uH();
_.IZ(X,3854,void 0,{layer:0,parentLayer:4});switch(K){case 1:var F=238714;break;case 2:F=238711;break;case 8:F=238709;break;case 7:F=238713;break;case 3:case 4:case 5:F=238712}F&&(K=_.Da(X,{veType:F}))&&_.XT(X,K)}},Exw=function(K){switch(K.latencyType){case 0:_.rb("consent_primitive_flow");
_.Ac("cpit",K.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Ac("cpist",K.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Ac("cprtif",K.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Ac("cprtli",K.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Ac("cprt",K.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Ac("cpdt",K.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.Ac("cpjct",K.timestampEpochMillis,"consent_primitive_flow")}},
F5w=function(K,X){var F,P,H,f,u,J,Z,M,n,c,B,L,A,d,R,l,a,E,V,x;
return _.q(function(N){switch(N.nextAddress){case 1:_.s2(N,2);(P=(F=_.T(K,bIk))==null?void 0:F.serializedConsentRequest)||(P=(H=_.T(K,Cj5))==null?void 0:H.serializedConsentRequest);P&&(f=NIG(_.Jt(P)));if(f===void 0)return N.return();u=iIt(f);u.latencyCallback=Exw;X&&xaw(u,function(){X.then(function(Dl){Dl.pauseVideo();(new IHw).increment()})});
return((J=_.T(K,bIk))==null?void 0:J.consentAction)==="CONSENT_ACTION_PREWARM"||((Z=_.T(K,Cj5))==null?void 0:Z.consentAction)==="CONSENT_ACTION_PREWARM"?_.Y(N,kSG(u),5):_.Y(N,K5k(u),6);case 6:M=N.yieldResult;n=_.qe(M,IP);if(n===1){if(((c=_.TQ(M,kk,1,IP))==null?void 0:_.S3(c,1))===1||((B=_.TQ(M,kk,1,IP))==null?void 0:_.S3(B,1))===2||((L=_.TQ(M,kk,1,IP))==null?void 0:_.S3(L,1))===3)_.T(K,Cj5)?xk(_.uY("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
xk(_.uY("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));VJo((A=_.TQ(M,kk,1,IP))==null?void 0:_.S3(A,1),_.kp(M,XIF,3,_.KJ()))}else n===2?(((d=K0(M))==null?void 0:_.S3(d,1))===5?_.T(K,Cj5)?xk(_.uY("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):xk(_.uY("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((R=K0(M))==null?void 0:_.S3(R,1))===1||((l=K0(M))==null?void 0:_.S3(l,1))===4?xk(_.uY("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((a=K0(M))==null?void 0:_.S3(a,1))===7&&((E=f)==null?void 0:(V=_.xS(E,XV,4))==null?void 0:_.S3(V,4))!==1&&xk(_.uY("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),gxt((x=K0(M))==null?void 0:_.S3(x,1))):xk(_.uY("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));N.jumpTo(5);break;case 5:_.Gy(N,0);break;case 2:_.qc(N),xk(_.uY("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.JT(N)}})},H$8=function(){if(!PNk.has("Worker")){PNk.set("Worker",
!0);
var K={api:"BROWSER_API_WEB_WORKER"};K.available="Worker"in window?!0:!1;_.LL("apiTest",K)}},sjv=function(K){return typeof K==="undefined"?"-1":String(Math.ceil(K/1048576))},uNJ=function(K,X){zZG(new fmW(_.T(X,DDF).addToken,_.T(X,DDF).commonToken)).then(function(){_.iX(K,"yt-invoke-instrument-manager-action-completed")},function(F){_.iX(K,"yt-invoke-instrument-manager-action-error",F)})},qmG=function(K){return _.yg(K)},J61=function(K){var X=1;
K=K.split(":");for(var F=[];X>0&&K.length;)F.push(K.shift()),X--;K.length&&F.push(K.join(":"));return F},Z$w=function(K,X){X=K.aspectRatio()<=X.aspectRatio()?X.width/K.width:X.height/K.height;
K.scale(X)},Yms=function(K,X){X=K.aspectRatio()>X.aspectRatio()?X.width/K.width:X.height/K.height;
return K.scale(X)},QjF=function(K){var X=new _.xo;
return _.rd(X,11,K)},M0d=function(K){var X={};
K=K.getAllResponseHeaders().split("\r\n");for(var F=0;F<K.length;F++)if(!_.fO(K[F])){var P=J61(K[F]),H=P[0];P=P[1];if(typeof P==="string"){P=P.trim();var f=X[H]||[];X[H]=f;f.push(P)}}return _.T8.map(X,function(u){return u.join(", ")})},uA=function(K,X){return K.JSC$7807_xhr_?K.JSC$7807_xhr_.getResponseHeader(X):null},FV=function(K,X,F){Array.isArray(F)||(F=[String(F)]);
_.npC(K.JSC$8042_queryData_,X,F);return K},ox8=function(){var K=_.p$.instance;
_.q(function(X){return K.deferredInstallPrompt?_.Y(X,K.deferredInstallPrompt.prompt(),0):X.jumpTo(0)})},n1F=function(K,X,F){if(_.xd(K))_.vd(K,X,F);
else for(K=_.TSZ(K);;){var P=K.next();if(P.done)break;X.call(F,P.value,void 0,K)}},c6F={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}"]},Yos,Qgo,Mus,ncG,cAk,pc1,Bld,Sov,ock,c71,MJo,ZIF,LaW,Tlw,rAJ,AAv,jg8,A7W,TI8,wcs,yAd,WaV,BIG,wv8,dY8,WX8,ees,RX1,Re8,UY8,hes,mYV,Gbw,lAt,vcv,E0,aAV,tud,
wg8,rDF,$YG,Dy,ug,q8,JX,Oat,VuJ,gct,Ec8,bav,Cbt,Nl8,ia1,xYJ,IA8;c6F={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 pI5=function(K,X){var F=[];n1F(X,function(P){try{var H=_.I2.prototype.getWrapper.call(this,P,!0)}catch(f){if(f=="Storage: Invalid value was encountered")return;throw f;}H===void 0?F.push(P):_.LSQ(H)&&F.push(P)},K);
return F},Bq1=function(K,X){pI5(K,X).forEach(function(F){_.I2.prototype.remove.call(this,F)},K)},Sm8=function(K){var X=_.U_;
X._minimumZ=Math.max(X._minimumZ,K)},o1G=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],L5v=function(K,X){_.ik(K.xh);K.xh=X},TqF=function(K,X,F,P){K.setState(5);
var H=!!K.cmC&&o1G.includes(_.g2(K.cmC)||"");try{var f=new _.oG({program:X,globalName:F,tb:{disable:!_.S("att_web_record_metrics")||!_.S("att_skip_metrics_for_cookieless_domains_ks")&&H,uS:"aGIf"}});f.qH3.then(function(){K.setState(6);P&&P(X)});
L5v(K,f)}catch(u){K.setState(7),u instanceof Error&&_.yy(u)}},r6V=function(K,X,F,P,H,f){var u=u===void 0?"trayride":u;
F?(K.setState(2),_.e4(F,function(){if(window[u])TqF(K,P,u,H);else{K.setState(3);var J=_.iun(F),Z=document.getElementById(J);Z&&(_.Fay(J),Z.parentNode.removeChild(Z));_.yy(new _.nG("BL:ULB",F))}},f)):X?(f=_.nJ("SCRIPT"),X instanceof _.Uv?_.Gp(f,X):f.textContent=X,f.nonce=_.Rf(document),document.head.appendChild(f),document.head.removeChild(f),window[u]?TqF(K,P,u,H):(K.setState(4),_.yy(new _.nG("BL:ULBJ")))):_.yy(new _.nG("BL:ULV"))},A6G=function(){this.state=1;
this.xh=null;this.cmC=void 0};
_.z=A6G.prototype;_.z.initialize=function(K,X,F,P){this.cmC=P;if(K.program){var H;P=(H=K.interpreterUrl)!=null?H:null;if(K.interpreterSafeScript)H=_.r7P(K.interpreterSafeScript);else{var f;H=(f=K.interpreterScript)!=null?f:null}K.interpreterSafeUrl&&(P=_.jt(K.interpreterSafeUrl).toString());r6V(this,H,P,K.program,X,F)}else _.yy(Error("hf"))};
_.z.isInitialized=function(){return!!this.xh};
_.z.getState=function(){return this.state};
_.z.isLoading=function(){return this.state===2};
_.z.invoke=function(K){K=K===void 0?{}:K;var X;this.xh?X=_.HsL(this.xh,{fS:K}):X=null;return X};
_.z.dispose=function(){L5v(this,null);this.setState(8)};
_.z.setState=function(K){this.state=K};
var jjW=function(K,X){return K.xh.snapshot(X)},wId=function(K,X){var F=_.kU("botguard_async_snapshot_timeout_ms",3E3);
X=X===void 0?{}:X;F=F===void 0?3E3:F;return K.xh?new Promise(function(P,H){var f=!1,u=_.A9.addJob(function(){f=!0;H(Error("jf"))},1,F);
K.xh?jjW(K,{fS:X}).then(function(J){_.A9.cancelJob(u);f||P(J)}).catch(function(J){_.A9.cancelJob(u);
f||H(J)}):(_.A9.cancelJob(u),P(null))}):Promise.resolve(null)},y6F=["att/log"],W5d;
W5d={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var dDJ={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},eZt=function(K,X){return _.DH(K,{mode:"readwrite",enableRetries:!0},function(F){return _.TZ9(F,X,"settingEntity")})},RZ8=function(K,X,F){return _.DH(K,{mode:"readonly",
enableRetries:!0},function(P){return _.$lO(P,X,F)})},UD5=function(K){if(!K.storage)return!1;
a:{if(K.storage){try{var X=K.storage.get("TLPQtimestamp")}catch(F){}K=Number(X);if(!isNaN(K))break a}K=void 0}return K?Date.now()-K<864E5:!1},hZ1=function(K){if(K.storage){try{var X=K.storage.get("TLPQindex")}catch(F){}K=Number(X);
if(!isNaN(K))return K}},mD8=function(K,X){K.queueProxy&&X.forEach(function(F){if(F.videoId&&F.trackingParams&&K.queueProxy instanceof _.Lp){var P=_.AD();
K.queueProxy.attributionData.set(F.videoId,{enqueueingVe:_.QB(F.trackingParams).getAsJson(),enqueueingCsn:P?P:void 0,clientEnqueueingTimeMs:Math.floor((0,_.CG)()).toString()})}})},Gwk=function(K){var X=_.ozT(K);
X!=K.currentSnapState_&&(K.currentSnapState_=X,K.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},PZ=function(K){this.JSC$11050_networkManager_=K;
this.partCallbacks_=[]};
PZ.prototype.getCacheKeyForEndpoint=function(K){return _.H33(K,!1)};
PZ.prototype.onPartsCallback_=function(K){this.partCallbacks_.forEach(function(X){K&&X(K)})};
var HZ=function(K,X,F){PZ.call(this,K);this.player_=X;this.autoplayData_=F};
_.r(HZ,PZ);HZ.prototype.getCacheKeyForEndpoint=function(K){return _.H33(K,!!this.autoplayData_)};
HZ.prototype.getTempData=function(K,X){X=X.timeBeforeNextVideo;K={itct:K.clickTrackingParams,lact:_.xg(),pbis:X,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(K.autonav=1);return K};
HZ.prototype.getXhrParams=function(K){return Object.assign({pbj:"prefetch"},K)};
HZ.prototype.getParams=function(K){K={frags:K.fragmentsRequested.join(",")};_.S("kevlar_droppable_prefetchable_requests")&&(K.prefetch=1);return K};
var lmk=function(K){K.playerEvents_.forEach(function(X){K.player.removeEventListener(X.eventName,X.callback)});
K.playerEvents_.length=0},sd=function(K,X,F){this.player=K;
this.JSC$11060_taskManager=X;this.prefetchDelay=F;this.completionResolver_=null;this.playerEvents_=[]};
sd.prototype.start=function(){var K=this;this.completionResolver_=_.Ue();_.Yv(this.completionResolver_.promise,function(){lmk(K);K.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var v1v=function(K,X,F){K.player.addEventListener(X,F);K.playerEvents_.push({eventName:X,callback:F})},am1={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},t0v={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},$Dd=function(K,X,F){sd.call(this,K,X,F);this.cueId_="playbackTrigger-"+Math.random()};
_.r($Dd,sd);
$Dd.prototype.prepareTrigger=function(K){var X=this,F=this.player.getDuration(),P=this.player.getVideoData(),H=P.isLive&&P.hasProgressBarBoundaries;if(H&&P.progressBarEndPositionUtcTimeMillis){var f=P.progressBarEndPositionUtcTimeMillis/1E3;isNaN(f)||(F=f)}var u=0;this.prefetchDelay>=0?H?P.progressBarStartPositionUtcTimeMillis&&(P=P.progressBarStartPositionUtcTimeMillis/1E3,isNaN(P)||(u=P+this.prefetchDelay)):u=this.prefetchDelay:u=F+this.prefetchDelay;H?this.player.addUtcCueRange(this.cueId_,u,F):
this.player.addCueRange(this.cueId_,u,F);_.Yv(K.promise,function(){X.player.removeCueRange(X.cueId_)});
v1v(this,"onCueRangeEnter",function(J){J==X.cueId_&&K.resolve(F-u)})};
var O$o=function(K,X){K.fragmentConfiguration_[X].requiredKeys.every(function(F){return!!K.prefetchedData_[F]})&&(K.validatedFragments_.push(X),X=K.missingFragments_.indexOf(X),X!==-1&&K.missingFragments_.splice(X,1))},V0k=function(K){K.prefetchedFragments_.forEach(function(X){O$o(K,X)})},g1d=function(K,X,F){this.pageFragments_=K;
this.prefetchedFragments_=X;this.fragmentConfiguration_=t0v;this.prefetchedData_=F;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;V0k(this)},E1G=function(){},b$s=function(K){this.JSC$11074_playlistManager_=K};
_.r(b$s,E1G);b$s.prototype.getPrefetchEndpoint=function(){return this.JSC$11074_playlistManager_.getAutoplayEndpoint()};
var CNW=function(K){this.autonavEndpoints_=K};
_.r(CNW,E1G);CNW.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var Nqs=function(K,X,F,P,H){this.autonavEndpoints=K;this.foregroundTrigger=X;this.backgroundTrigger=F;this.pageType=P;this.isInPlaylist=H},i$v=function(K,X){if(K.webPrefetchData&&K.webPrefetchData.navigationEndpoints&&K.webPrefetchData.navigationEndpoints.length){K=K.webPrefetchData.navigationEndpoints;
var F=_.T(K[0],_.vg);if(F.watchEndpointSupportedPrefetchConfig&&F.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var P=F.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;F=P.playbackRelativeSecondsPrefetchCondition;F=typeof F==="number"&&Math.abs(F)<X.videoDuration?F:void 0;P=P.countdownUiRelativeSecondsPrefetchCondition;P=typeof P!=="number"||_.S("prefetch_job_config_cleanup_ks")&&X.inPlaylist?void 0:P;if(typeof P==="number")return new Nqs(K,X.makeUpNextTrigger(P),X.makePlaybackTrigger(P),
"watch",X.inPlaylist);if(typeof F==="number")return new Nqs(K,X.makePlaybackTrigger(F),null,"watch",X.inPlaylist)}}},xDF=function(K){return K.prefetchJobConfig_.backgroundTrigger?_.hV(_.NRl)()==0?K.prefetchJobConfig_.backgroundTrigger:K.prefetchJobConfig_.foregroundTrigger:K.prefetchJobConfig_.foregroundTrigger},Imo=function(K){_.DG(document,"visibilitychange",K.onVisibilityChange_,!1,K)},zW=function(K){PZ.call(this,K)};
_.r(zW,PZ);zW.prototype.getCacheKeyForEndpoint=function(K){return PZ.prototype.getCacheKeyForEndpoint.call(this,K)};
zW.prototype.getTempData=function(){return{}};
zW.prototype.getXhrParams=function(K){return K};
zW.prototype.getParams=function(){return{}};
var kwV=function(K,X,F){var P=K.prefetchDelay*1E3;if(Math.abs(P)>X)F.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var H=P,f=X-P;P<0&&(H=X+P,f=Math.abs(P));var u=K.JSC$11060_taskManager.addJob(function(){F.resolve(f/1E3)},10,H);
F.promise.thenCatch(function(){K.JSC$11060_taskManager.cancelJob(u)})}},Ka5=function(K,X,F){sd.call(this,K,X,F)};
_.r(Ka5,sd);Ka5.prototype.prepareTrigger=function(K){var X=this;v1v(this,"onAutonavCoundownStarted",function(F){kwV(X,F,K)})};
var Xc8=function(K){K.pendingPrefetchJob_&&(K.pendingPrefetchJob_.cancel(),K.pendingPrefetchJob_=null)},Fa8=function(K,X,F){if(!K.triggeredTargets.has(X)){var P=_.MZQ(K,X);
P.action=F;_.YGC(K,X,P)}},Pbk=function(K){_.KTV();
_.f14("cpt")&&_.yy(Error("gh"));_.FP.requestAnimationFrame(function(){_.FP.setTimeout(function(){_.Ac("cpt");var X=_.yi("vpl"),F=_.yi("cpt");X&&F&&_.Ac("ol",Math.max(X,F))})});
try{_.Ac("fr_s"),K()}catch(X){_.jF(X)}_.FP.requestAnimationFrame(function(){_.Ac("bcp")})},HaW=function(K,X){K.serviceEndpointHandlers.push(X)},sgV=function(K,X){X=K.pendingPages_.indexOf(X);
X>-1&&K.pendingPages_.splice(X,1)},zeW=function(K,X){var F=_.csL.indexOf(X);
F>-1&&_.csL.splice(F,1);K.targetPage_==X?(K.abort(),_.BDO(K)):sgV(K,X)},fAt=function(K,X,F,P){X={challenge:X};
F&&(X.webResponse=F);return _.rz(K.innertubeTransportService,X,_.t7(y6F),P)},DY1=function(K,X,F){if(!X.challenge)throw Error("ii");
if(X.botguardData&&X.botguardData.program){var P=new A6G;P.initialize(X.botguardData,function(){wId(P,{atr_challenge:X.challenge}).then(function(H){if(!H)throw Error("ji");return fAt(K,X.challenge,H,F)}).catch(function(H){_.yy(H);
return fAt(K,X.challenge,void 0,F)})},void 0)}else fAt(K,X.challenge,void 0,F)},uUo=function(K,X,F){var P={};
X.ids&&(P.ids=[].concat(_.LZ(X.ids)));X.engagementType&&(P.engagementType=X.engagementType);return _.rz(K.innertubeTransportService,P,_.t7(_.Hpt),F).then(function(H){if(!H)throw new _.nG("GetAttestationChallenge returned falsy");DY1(K,H,F)}).thenCatch(function(H){_.jF(H)})},qo5=function(K,X,F){return new _.fL(function(P,H){var f;
return _.q(function(u){if(u.nextAddress==1){var J=X.engagementType,Z=X.ids,M={};Z=_.D(Z!=null?Z:[]);for(var n=Z.next();!n.done;n=Z.next())n=n.value,n.encryptedVideoId?M.encryptedVideoId=n.encryptedVideoId:n.externalChannelId?M.externalChannelId=n.externalChannelId:n.commentId?M.commentId=n.commentId:n.externalOwnerId?M.externalOwnerId=n.externalOwnerId:n.artistId?M.artistId=n.artistId:n.playlistId?M.playlistId=n.playlistId:n.externalPostId?M.externalPostId=n.externalPostId:n.shareId&&(M.shareId=n.shareId);
return _.Y(u,oUG(J,M),2)}f=u.yieldResult;if(!f.challenge)return _.yy(Error("ki")),uUo(K,X,F).then(P,H),u.return();J=f;M={challenge:J.challenge};M.webResponse=J.webResponse;M.engagementType=X.engagementType;M.ids=X.ids;_.rz(K.innertubeTransportService,M,_.t7(y6F),F).then(P,H);_.JT(u)})})},d$v=function(K,X){var F,P,H,f;
_.q(function(u){if(u.nextAddress==1){F=_.T(X,_.ikN);if(!(F&&F.listId&&K.response&&K.response.playingVideoId)||K.listId!==F.listId)return u.return();K.index===void 0&&(K.index=0);return _.Y(u,_.TKZ(K.JSC$10805_playlistNetworkManager,F.listId,K.index,K.response.playingVideoId),2)}P=u.yieldResult;if(!P)return u.return();H=P.playlistId;f=P.playlistPanelRenderer;K.setPlaylistData(H,f,P.autoplayRenderer);_.JT(u)})},JAV=function(K,X,F){var P=K.getParams(F),H=_.hcn(X,P),f=K.getTempData(X,F);
f.endpoint=JSON.stringify(X);_.S("enable_unknown_lact_fix_on_html5")&&(_.i9().resolve(_.BO),f.lact=_.xg());var u={headers:{"X-YouTube-STS":_.e8("STS"),"x-youtube-csoc":1}};_.Oc(H,f);return new _.fL(function(J,Z){var M=K.getXhrParams(P),n;_.S("kevlar_cache_on_ttl_player")&&(n=_.uZ.instance);n&&_.Ezt(n,X)?_.KrE(n,X,f,window.location.href).then(function(c){c?J(c):Z()},Z):_.MKO(K.JSC$11050_networkManager_,X,M,K.onPartsCallback_.bind(K),u).then(function(c){c?J(c):Z()},Z)})},Za1=function(K,X){K.triggerPromise_=
X.start();
K.triggerPromise_.then(function(F){var P=K.prefetchEndpointProvider_.getPrefetchEndpoint();if(P){var H=am1[K.prefetchJobConfig_.pageType].prefetchedFragments;K.prefetchRequestPromise_=JAV(K.JSC$11086_networkPrefetchRequest_,P,{fragmentsRequested:H,timeBeforeNextVideo:F});K.prefetchResponseCacheKey_=K.JSC$11086_networkPrefetchRequest_.getCacheKeyForEndpoint(P);Imo(K);K.prefetchRequestPromise_.then(function(f){K.storePrefetchedDataCallback_(K.prefetchResponseCacheKey_,f);if(_.S("web_prefetch_preload_video")&&
H.length===1&&H[0]==="pl"&&f&&!f.playerAds&&!f.adPlacements){var u=_.T(P,_.J6),J=u!=null,Z={raw_player_response:f,watch_endpoint:u};(f=_.i9().resolve(J?_.sWE:_.bC))&&P&&f.then(function(M){J&&_.S("web_queue_preload_video")?(Z.prefer_gapless=!0,M.queueNextVideo(Z)):M.preloadVideoByPlayerVars(Z)})}})}})},f0=function(K,X,F,P){this.prefetchEndpointProvider_=K;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=X;this.prefetchJobConfig_=F;this.JSC$11086_networkPrefetchRequest_=P;this.prefetchResponseCacheKey_=null};
f0.prototype.enqueue=function(){this.triggerPromise_||(Za1(this,xDF(this)),_.nB(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
f0.prototype.resolve=function(){this.cancel()};
f0.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.");Imo(this)};
f0.prototype.onVisibilityChange_=function(){var K=this;_.hV(_.NRl)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){K.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||Za1(this,xDF(this))};
Yos=function(K,X,F,P,H){X&&(X==null?0:X.videoId)&&F&&F.entries&&_.S("kevlar_enable_shorts_prefetch_in_sequence")&&(Xc8(K),X=F.entries.map(function(f){var u;return(u=_.T(f.command,_.J6))==null?void 0:u.videoId}).indexOf(X.videoId),F=F.entries[X+1],F!=null&&F.command&&!_.T(F==null?void 0:F.command,_.r4)&&(P=new Nqs([F.command],new $Dd(P,_.A9,1),null,"shorts",!1),K.pendingPrefetchJob_=new f0(new CNW(P.autonavEndpoints),function(){return!1},P,new zW(H)),K.pendingPrefetchJob_.enqueue()))};
Qgo=function(K,X,F,P,H,f){var u=_.$2.getInstance();if(!_.S("block_all_player_prefetch_requests")){Xc8(K);var J=!!F.getPlaylistId(),Z=F.getVideoData().isLive&&F.getVideoData().hasProgressBarBoundaries;if((u.getState()==2||J||Z)&&(!F.getVideoData().isLive||Z)){u={inPlaylist:J,videoDuration:F.getDuration(),makeUpNextTrigger:function(n){return new Ka5(F,_.A9,n)},
makePlaybackTrigger:function(n){return new $Dd(F,_.A9,n)}};
var M=i$v(X,u);M&&(K.pendingPrefetchJob_=new f0(M.isInPlaylist?new b$s(H):new CNW(M.autonavEndpoints),function(n,c){c=new g1d(am1[M.pageType].pageFragments,am1[M.pageType].prefetchedFragments,c);return _.H5u(c)?(K.prefetchCache_.set(n,c),!0):!1},M,new HZ(P,F,f,H)),K.pendingPrefetchJob_.enqueue())}}};
Mus=function(){var K=_.dz();K.signals.parkOrScheduleJob(function(){var X=K.storage;if(X.storage)if(UD5(X)){var F=X.getPlaylistId();X=hZ1(X);F=!!F&&X!==void 0}else X.clear(),F=!1;else F=!1;if(F){F=K.pageManager.isOnWatch();a:{var P=K.storage;if(P.storage&&UD5(P)&&(X=P.getPlaylistId(),P=hZ1(P),X&&P!==void 0)){F={recoverPlaylistCommand:{listId:X,index:P,openMiniplayer:!F,openListPanel:F,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}F=void 0}F&&_.TO(K.JSC$10805_actionRouter,[F],null)}},0,"ma")};
ncG=function(K,X,F,P,H,f){var u=_.cO(7111);_.k2(K.JSC$16108_screenManager,u,f?_.QB(f):void 0);_.XT(K.JSC$16108_screenManager,u,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:P,offlineId:X,offlineabilityFormatType:F,isDefaultFormatType:H==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:H}})};
cAk=function(K,X,F,P,H){var f,u,J,Z,M;return _.q(function(n){if(n.nextAddress==1)return _.Y(n,K.JSC$16108_playerApiPromise,2);f=n.yieldResult;ncG(K,X,F,"OFFLINE_OBJECT_TYPE_PLAYLIST",P,H);if(J=_.NAC[K.entityTypeMap.listEntityType])M={},u=(M[J]={maximumDownloadQuality:(Z=F)!=null?Z:void 0},M);return _.Y(n,f.queueOfflineAction(X,K.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",u),0)})};
pc1=function(K,X){var F,P,H,f;return _.q(function(u){if(u.nextAddress==1)return _.Y(u,K.JSC$16108_persistentStorePromiseAccessor(),2);if(u.nextAddress!=3){F=u.yieldResult;if(!F)return _.yy(new _.nG("PES is undefined")),u.return();P=_.XF(X,"downloadStatusEntity");return _.Y(u,RZ8(F,P,"downloadStatusEntity"),3)}H=u.yieldResult;return u.return((f=H)==null?void 0:f.downloadState)})};
Bld=function(K,X,F,P,H){var f,u,J,Z,M,n;return _.q(function(c){switch(c.nextAddress){case 1:return _.Y(c,K.JSC$16108_playerApiPromise,2);case 2:f=c.yieldResult;ncG(K,X,F,"OFFLINE_OBJECT_TYPE_VIDEO",P,H);if(J=_.NAC[K.entityTypeMap.singleEntityType])M={},u=(M[J]={maximumDownloadQuality:(Z=F)!=null?Z:void 0},M);return _.Y(c,pc1(K,X),3);case 3:n=c.yieldResult;if(n!=="DOWNLOAD_STATE_USER_DELETED"){c.jumpTo(4);break}return _.Y(c,K.deleteVideo(X),4);case 4:return _.Y(c,f.queueOfflineAction(X,K.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",u),0)}})};
Sov=function(K,X,F,P,H){return _.q(function(f){return f.nextAddress==1?_.Y(f,K.deleteVideo(X,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.Y(f,Bld(K,X,F,P,H),0)})};
ock=function(K,X,F){var P,H;return _.q(function(f){if(f.nextAddress==1)return _.Y(f,K.JSC$16108_playerApiPromise,2);P=f.yieldResult;H=_.XF(X,"mainVideoDownloadStateEntity");return _.Y(f,P.updateDownloadState(H,F),0)})};
c71=function(K){var X=_.i9().resolve(_.Ef);return _.q(function(F){if(F.nextAddress==1)return X.previousDownloadStateForVideo[K]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&X.previousDownloadStateForVideo[K]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?F.jumpTo(2):_.Y(F,X.resumeVideoDownload(K),2);if(F.nextAddress!=4)return _.Y(F,ock(X,K,X.previousDownloadStateForVideo[K]),4);delete X.previousDownloadStateForVideo[K];_.JT(F)})};
MJo=function(K,X){var F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,K.JSC$16108_playerApiPromise,2);F=P.yieldResult;return _.Y(P,F.queueOfflineAction(X,K.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
ZIF=function(){var K=_.i9().resolve(_.Ef),X,F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,K.JSC$16108_playerApiPromise,2);if(P.nextAddress!=3)return X=P.yieldResult,F={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.Y(P,X.queueOfflineAction("!*$_ALL_ENTITIES_!*$",K.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",F),3);var H=K.JSC$16108_commandHandler,f=H.resolveCommand,u=_.uY("DELETING_ALL",void 0,"Downloads are being deleted");
f.call(H,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.bY(u)}},popupType:"TOAST"}});_.JT(P)})};
LaW=function(K){var X,F;return _.q(function(P){if(P.nextAddress==1)return _.Y(P,K.JSC$16108_prefStorage,2);X=P.yieldResult;return P.return((F=X)==null?void 0:F.get("sdois"))})};
Tlw=function(K){var X,F,P,H,f,u;return _.q(function(J){if(J.nextAddress==1)return _.Y(J,K.JSC$16108_persistentStorePromiseAccessor(),2);if(J.nextAddress!=3){X=J.yieldResult;if(!X)return _.yy(new _.nG("PES is undefined")),J.return();F=_.XF("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.Y(J,RZ8(X,F,"settingEntity"),3)}P=J.yieldResult;return J.return((u=(H=P)==null?void 0:(f=H.settingOptionValue)==null?void 0:f.boolValue)!=null?u:!1)})};
rAJ=function(K,X){var F,P,H,f;return _.q(function(u){switch(u.nextAddress){case 1:return((F=X)==null?void 0:F.formatType)===void 0?u.return():_.Y(u,K.JSC$16108_prefStorage,2);case 2:P=u.yieldResult;if(P===void 0)return u.return();if(((H=X)==null?void 0:H.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.Y(u,P.set("lmqf",X.formatType),8);if(((f=X)==null?void 0:f.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){u.jumpTo(0);break}return _.Y(u,P.set("lmqf",X.formatType),
6);case 6:return _.Y(u,P.set("lmqflst",Math.floor((0,_.CG)())),0);case 8:return _.Y(u,P.remove("lmqflst"),0)}})};
AAv=function(K){var X,F;return _.q(function(P){switch(P.nextAddress){case 1:return _.Y(P,K.JSC$16108_prefStorage,2);case 2:X=P.yieldResult;if(!X){P.jumpTo(3);break}return _.Y(P,X.get("lmqflst"),4);case 4:if(F=P.yieldResult,F!==void 0)return P.return(F);case 3:return P.return(0)}})};
jg8=function(K){var X,F;return _.q(function(P){switch(P.nextAddress){case 1:return _.Y(P,K.JSC$16108_prefStorage,2);case 2:X=P.yieldResult;if(X===void 0){P.jumpTo(3);break}return _.Y(P,X.get("lmqf"),4);case 4:if(F=P.yieldResult,F!==void 0)return P.return(F);case 3:return P.return("SD")}})};
A7W=function(K,X,F){var P,H,f,u,J,Z,M,n;_.q(function(c){switch(c.nextAddress){case 1:return _.Y(c,rAJ(K,(P=X)==null?void 0:P.actionParams),2);case 2:H=X.playlistId;if(!H)return c.return();if(X.action==="ACTION_ADD")return((u=X.actionParams)==null?0:u.formatType)?_.Y(c,cAk(K,H,X.actionParams.formatType,(n=X.actionParams)==null?void 0:n.settingsAction,F),0):_.Y(c,K.offlineWebClientEligibility,14);if(X.action==="ACTION_REMOVE_WITH_PROMPT"){var B=K.JSC$16108_commandHandler,L=B.resolveCommand,A=_.e8("INNERTUBE_CLIENT_NAME");
var d=A==="WEB_REMIX"?_.uY("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.uY("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var R=A==="WEB_REMIX"?[_.uY("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];A=A==="WEB_REMIX"?_.uY("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.uY("DELETE",void 0,"Delete");var l=_.uY("CANCEL",void 0,"Cancel");d=Lzo(d,R,A,l,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:H});L.call(B,{openPopupAction:d});
return c.return()}if(X.action==="ACTION_REMOVE")return _.Y(c,MJo(K,H),0);if(X.action!=="ACTION_SYNC"){c.jumpTo(0);break}return _.Y(c,K.JSC$16108_playerApiPromise,9);case 9:return f=c.yieldResult,_.Y(c,f.queueOfflineAction(H,K.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return J=c.yieldResult,_.Y(c,jg8(K),15);case 15:return Z=c.yieldResult,_.Y(c,AAv(K),16);case 16:M=c.yieldResult,X.onAddCommand&&K.JSC$16108_commandHandler.resolveCommand(X.onAddCommand,{form:{preferredFormatType:Z,
offlineWebClientEligibility:J,lastOfflineQualitySettingsSavedMs:M.toString()}}),c.jumpTo(0)}})};
TI8=function(K,X,F){var P,H,f,u,J,Z,M,n,c,B,L,A,d,R;_.q(function(l){switch(l.nextAddress){case 1:return _.Y(l,rAJ(K,(P=X)==null?void 0:P.actionParams),2);case 2:H=X.videoId;if(!H)return l.return();if(X.action==="ACTION_REMOVE_WITH_PROMPT"){var a=K.JSC$16108_commandHandler,E=a.resolveCommand,V=_.e8("INNERTUBE_CLIENT_NAME");var x=V==="WEB_REMIX"?_.uY("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.uY("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var N=V==="WEB_REMIX"?[_.uY("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];V=V==="WEB_REMIX"?_.uY("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.uY("DELETE",void 0,"Delete");var Dl=_.uY("CANCEL",void 0,"Cancel");x=Lzo(x,N,V,Dl,{signal:"DELETE_DOWNLOAD",targetId:H});E.call(a,{openPopupAction:x});return l.return()}if(X.action==="ACTION_ADD")return((B=X.actionParams)==null?0:B.formatType)?_.Y(l,Bld(K,H,X.actionParams.formatType,(R=X.actionParams)==null?void 0:R.settingsAction,F),0):_.Y(l,K.offlineWebClientEligibility,
23);if(X.action==="ACTION_RETRY")return _.Y(l,jg8(K),19);if(X.action==="ACTION_PAUSE")return _.Y(l,K.pauseVideoDownload(H),0);if(X.action==="ACTION_RESUME")return _.Y(l,K.resumeVideoDownload(H),0);if(X.action!=="ACTION_REMOVE"){l.jumpTo(0);break}return _.Y(l,pc1(K,H),13);case 13:return f=l.yieldResult,K.previousDownloadStateForVideo[H]=(u=f)!=null?u:"DOWNLOAD_STATE_UNKNOWN",_.Y(l,ock(K,H,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(K.previousDownloadStateForVideo[H]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
K.previousDownloadStateForVideo[H]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){l.jumpTo(15);break}return _.Y(l,K.pauseVideoDownload(H),15);case 15:a=_.uY("DELETED_VIDEO",void 0,"Video deleted from downloads.");E=_.uY("UNDO_ACTION",void 0,"Undo");x=_.uY("CLOSE",void 0,"Close");J={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.bY(a),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.bY(E),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:H}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:a+" "+E}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:H}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:x}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};K.JSC$16108_commandHandler.resolveCommand(J);
l.jumpTo(0);break;case 19:Z=l.yieldResult;Z==="UNKNOWN_FORMAT_TYPE"&&(Z="SD");M="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((n=X.actionParams)==null?0:n.formatType)Z=X.actionParams.formatType,M=(c=X.actionParams)==null?void 0:c.settingsAction;return _.Y(l,Sov(K,H,Z,M,F),20);case 20:return l.return();case 23:return L=l.yieldResult,_.Y(l,jg8(K),24);case 24:return A=l.yieldResult,_.Y(l,AAv(K),25);case 25:d=l.yieldResult,X.onAddCommand&&K.JSC$16108_commandHandler.resolveCommand(X.onAddCommand,
{form:{preferredFormatType:A,offlineWebClientEligibility:L,lastOfflineQualitySettingsSavedMs:d.toString()}}),l.jumpTo(0)}})};
wcs=function(K,X){var F,P,H,f,u,J,Z;return _.q(function(M){if(M.nextAddress==1)return _.Y(M,K.JSC$16108_persistentStorePromiseAccessor(),2);F=M.yieldResult;if(!F)return _.yy(new _.nG("PES is undefined")),M.return();if((P=X)==null||!P.settingItemId)return M.return();H=X;f=H.settingItemId;u=H.boolValue;J=_.XF(f,"settingEntity");Z={key:J,settingOptionValue:{boolValue:u}};return _.Y(M,eZt(F,Z),0)})};
yAd=function(K,X){var F,P,H,f,u,J,Z;return _.q(function(M){switch(M.nextAddress){case 1:return _.Y(M,K.JSC$16108_prefStorage,2);case 2:return F=M.yieldResult,P=_.ZO(),_.Y(M,K.JSC$16108_persistentStorePromiseAccessor(),3);case 3:return H=M.yieldResult,F?H?_.Y(M,F.get("sdois"),4):(_.yy(new _.nG("PES is undefined")),M.return()):(_.yy(new _.nG("prefStorage is undefined")),M.return());case 4:f=M.yieldResult;J=(u=X)==null?void 0:u.boolValue;J===void 0||_.S("kevlar_set_sd_enabled_flag_killswitch")||_.YX(0,
197,!0);f===void 0&&J===void 0&&(J=!1);if(J===void 0){M.jumpTo(0);break}return _.Y(M,F.set("sdois",J),6);case 6:return _.S("kevlar_set_sd_enabled_flag_killswitch")||(_.YX(0,196,J),P.save()),Z={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:J},_.Y(M,wcs(K,Z),0)}})};
WaV=function(K,X,F){var P,H,f,u,J;return _.q(function(Z){switch(Z.nextAddress){case 1:return _.Y(Z,LaW(K),2);case 2:return P=Z.yieldResult,_.Y(Z,yAd(K,F),3);case 3:return _.Y(Z,LaW(K),4);case 4:return H=Z.yieldResult,f=H!==P,_.Y(Z,Tlw(K),5);case 5:u=Z.yieldResult&&!_.S("kevlar_modern_downloads_page");if((J=!H&&!u)||f)return _.Y(Z,X.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);Z.jumpTo(0)}})};
BIG=function(){var K=_.i9().resolve(_.Ef),X;_.q(function(F){switch(F.nextAddress){case 1:return _.Y(F,K.JSC$16108_playerApiPromise,2);case 2:X=F.yieldResult;if(!_.S("kevlar_force_refresh_smart_downloads")){F.jumpTo(3);break}return _.Y(F,X.refreshAllStaleEntities(0),4);case 4:return F.return();case 3:return _.Y(F,X.refreshAllStaleEntities(),5);case 5:return _.Y(F,WaV(K,X),0)}})};
wv8=function(K,X){var F,P;_.q(function(H){switch(H.nextAddress){case 1:return _.Y(H,K.JSC$16108_playerApiPromise,2);case 2:F=H.yieldResult;switch((P=X)==null?void 0:P.settingItemId){case "SMART_DOWNLOADS_ENABLED":return H.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return H.jumpTo(4)}H.jumpTo(0);break;case 3:return _.Y(H,WaV(K,F,X),6);case 6:H.jumpTo(0);break;case 4:return _.Y(H,wcs(K,X),7);case 7:H.jumpTo(0)}})};
dY8=function(K,X){var F,P,H;return _.q(function(f){if(f.nextAddress==1)return _.Y(f,K.JSC$16108_persistentStorePromiseAccessor(),2);if(f.nextAddress!=3){F=f.yieldResult;if(!F)return _.yy(new _.nG("PES is undefined")),f.return(!1);if(!X)return f.return(!1);P=_.XF(X,"mainVideoEntity");return _.Y(f,RZ8(F,P,"mainVideoEntity"),3)}H=f.yieldResult;return f.return(H!==void 0)})};
WX8=function(K){var X=_.i9().resolve(_.Ef),F,P,H,f,u,J,Z,M,n,c,B;_.q(function(L){switch(L.nextAddress){case 1:return _.Y(L,X.JSC$16108_playerApiPromise,2);case 2:F=L.yieldResult;H=(P=K)==null?void 0:P.actions;if(!H)return L.return();f=_.D(H);u=f.next();case 3:if(u.done){L.jumpTo(0);break}J=u.value;M=Z=void 0;if(!(((Z=J)==null?0:Z.entityKey)&&((M=J)==null?0:M.actionType))){L.jumpTo(4);break}n=_.I7(J.entityKey);c=n.entityId;B=n.entityType;return _.Y(L,F.queueOfflineAction(c,B,J.actionType),4);case 4:u=
f.next(),L.jumpTo(3)}})};
ees=function(K,X){var F,P,H,f,u;return _.q(function(J){if(J.nextAddress==1)return _.Y(J,K.JSC$16108_prefStorage,2);if(J.nextAddress!=3)return(F=J.yieldResult)?_.Y(J,F.get("psi"),3):J.return();P=J.yieldResult;u={isPaused:X,lastSyncTimestamp:(f=(H=P)==null?void 0:H.lastSyncTimestamp)!=null?f:"0"};return _.Y(J,F.set("psi",u),0)})};
RX1=function(K){var X=_.i9().resolve(_.Ef),F,P,H,f,u,J,Z,M;return _.q(function(n){switch(n.nextAddress){case 1:return _.Y(n,X.JSC$16108_playerApiPromise,2);case 2:F=n.yieldResult;H=((P=K)==null?void 0:P.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((J=K)==null?void 0:J.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":f="!*$_ALL_ENTITIES_!*$";u="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return n.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return n.jumpTo(4)}n.jumpTo(5);break;case 3:return _.Y(n,ees(X,H),6);case 6:n.jumpTo(5);break;case 4:return _.Y(n,dY8(X,(Z=K)==null?void 0:Z.videoId),7);case 7:n.yieldResult&&(f=(M=K)==null?void 0:M.videoId,u="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");n.jumpTo(5);break;case 5:if(f&&u)return _.Y(n,F.queueOfflineAction(f,"videoPlaybackPositionEntity",u),0);n.jumpTo(0)}})};
Re8=function(K,X){var F;X!==1||((F=K.currentPersistentToast)==null?0:F.isOpened())?K.openToast():K.currentPersistentToast=void 0};
UY8=function(){var K,X,F,P;return _.q(function(H){if(H.nextAddress==1)return K=navigator,(X=K.storage)!=null&&X.persisted?_.Y(H,(F=K.storage)==null?void 0:F.persisted(),2):H.return("PERSISTED_STATE_NOT_SUPPORTED");P=H.yieldResult;return H.return(P?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
hes=function(){var K,X,F,P;return _.q(function(H){if(H.nextAddress==1)return K=navigator,(X=K.storage)!=null&&X.persist?_.Y(H,(F=K.storage)==null?void 0:F.persist(),2):H.return("PERSISTED_STATE_NOT_SUPPORTED");P=H.yieldResult;return H.return(P?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
mYV=function(){var K,X;return _.q(function(F){switch(F.nextAddress){case 1:return K="PERSISTED_STATE_NOT_SUPPORTED",_.s2(F,2),_.Y(F,UY8(),4);case 4:K=F.yieldResult;if(K!=="PERSISTED_STATE_NOT_GRANTED"){F.jumpTo(5);break}return _.Y(F,hes(),6);case 6:K=F.yieldResult;case 5:_.Gy(F,3);break;case 2:X=_.qc(F),X instanceof Error&&_.jF(X);case 3:return _.LL("persistentStorageStateChecked",{persistedState:K}),F.return(K)}})};
Gbw=function(K,X){var F=[],P=!1;X=_.D(X);for(var H=X.next();!H.done;H=X.next()){H=K.moduleRegistry[H.value];var f=void 0,u=void 0;((f=H)==null?0:f.isFetching)&&((u=H)==null?0:u.resolver)?(F.push(H.resolver.promise),P=!0):(H=new _.K$,H.resolve(void 0),F.push(H.promise))}return P?Promise.all(F):void 0};
lAt=function(K,X,F){F=F===void 0?{}:F;var P=K.defaultViewTransitionOptions,H=X.map(function(u){return u.beforeTransition}),f=X.map(function(u){return u.afterTransition});
return Object.assign({},P,F,{beforeTransition:function(){var u;(u=P.beforeTransition)==null||u.call(P);var J,Z;(Z=(J=F).beforeTransition)==null||Z.call(J);u=_.D(H);for(J=u.next();!J.done;J=u.next())J=J.value,J()},
afterTransition:function(){var u;(u=P.afterTransition)==null||u.call(P);var J,Z;(Z=(J=F).afterTransition)==null||Z.call(J);u=_.D(f);for(J=u.next();!J.done;J=u.next())J=J.value,J()}})};
vcv=function(K,X,F){var P,H,f,u,J,Z,M;_.q(function(n){if(K.config.disableAllTransitions)return n.return(X());if((P=F)==null||!P.transitionName)return n.return(_.$Rw(X,(H=F)==null?void 0:H.viewTransitionOptions));f=F;u=f.transitionName;J=f.viewTransitionOptions;Z=K.config.transitionConfigs.get(u);if(!Z)return n.return(X());var c;M=(c=K.transitionTasksMap.get(u))!=null?c:[];return n.return(_.$Rw(X,lAt(Z,M,J)))})};
E0=function(K,X,F){K.transitionTasksMap.has(X)?K.transitionTasksMap.get(X).push(F):(K=new _.nG("Transition task registered for unknown transition name",X),_.jF(K))};
aAV=function(K,X,F){if(K.isInitialized()){var P=xn(F),H=P==="watch";P=P==="shorts";var f=xn(X)==="watch";if(H)f||(K.backgroundPageData=X),K.watchPipMode&&f||K.deactivate(F.endpoint);else if(P){if(xn(X)!=="shorts"){var u;(u=K.getPlayerElement())==null||u.pause()}}else f&&!K.watchPipMode&&(rVV(X,F)?(K.watchWhileMode&&_.VkV(K,!1),_.ldJ(K,X)):K.isMiniplayerActive()&&K.watchWhileMode&&K.deactivate());f&&_.E5k(K);K.shortsPipMode&&!P&&(window.focus(),K.deactivate());if(K.pictureInPictureEnabled())if(P&&
K.shortsPipEnabled||H&&K.watchPipEnabled)_.wK9(K.handleMediaSessionPipActivation);else if(!K.isMiniplayerActive()&&(K.shortsPipEnabled||K.watchPipEnabled)&&window.documentPictureInPicture&&_.dw()&&_.JMd("Chromium")>=120){K=_.joM().mediaSession;try{K.setActionHandler("enterpictureinpicture",null)}catch(J){}}}};
tud=function(K,X){var F,P;_.q(function(H){if(H.nextAddress==1){if(!K||!K.navigationEndpoint)return H.return();_.zC().lockupActivation=!0;var f;X?f=_.GS(_.uY("QUEUE",void 0,"Queue")):f=K.longBylineText;P=(F=f)&&K.title?{miniplayerTitle:K.title,miniplayerSubtitle:F,playlistData:null}:void 0;return _.Y(H,_.C3L(_.i9().resolve(_.Wj),K.navigationEndpoint,!0,P),2)}_.zC().userActivation=!0;_.JT(H)})};
wg8=function(K,X){var F,P,H,f,u,J;_.q(function(Z){if(Z.nextAddress==1){F=_.T(X,_.NHC);if(!F||!F.listId)return Z.return();K.index=F.index||K.index||0;P=K.response&&K.response.playingVideoId||void 0;return _.Y(Z,_.TKZ(K.JSC$10805_playlistNetworkManager,F.listId,K.index,P),2)}H=Z.yieldResult;if(!H)return Z.return();f=H.playlistId;u=H.playlistPanelRenderer;!K.queueProxy&&f&&u&&f.startsWith("TLPQ")&&(K.queueProxy=new _.Lp(K.JSC$10805_playlistNetworkManager,f,K.setPlaylistData.bind(K),K.clearQueue.bind(K),
_.ipw(u),K.storage));if(F.openMiniplayer&&(J=_.xAM(u))&&!K.pageManager.isOnWatch()){var M=J,n=F.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";K.isMiniplayerActive()?K.openToast(M):tud(M,n)}K.setPlaylistData(f,u,H.autoplayRenderer);_.JT(Z)})};
rDF=function(K,X){var F=_.dz();F.index===void 0&&(F.index=0);F.temporaryItems.push.apply(F.temporaryItems,_.LZ(K));if((X.videoId||X.videoIds)&&F.index!==void 0&&X.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!F.queueProxy){var P=[];if(F.response){var H=_.i9().resolve(_.Wj).isMiniplayerActive();if(F.response.playlistPanelRenderer&&F.response.playlistId&&!F.response.playlistId.startsWith("TLPQ")){if(F.pageManager.isOnWatch()||H)P=_.ipw(F.response.playlistPanelRenderer)}else F.response.playingVideoId&&
!X.openMiniplayer?P.push(F.response.playingVideoId):H&&F.response.playingVideoId&&X.openMiniplayer&&P.push(F.response.playingVideoId)}F.queueProxy=new _.Lp(F.JSC$10805_playlistNetworkManager,"",F.setPlaylistData.bind(F),F.clearQueue.bind(F),P,F.storage);F.queueProxy.JSC$10751_setCurrentIndex(F.index)}F.queueProxy.addVideos(X.videoIds||[X.videoId],X)}mD8(F,K);F.response&&_.e7(F,_.RE(F,F.response.autoplayRenderer));F.pageManager.isOnWatch()?F.isMiniplayerActive()&&F.openToast(K[0]):(K=K[0],X=X.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",F.isMiniplayerActive()?F.openToast(K):tud(K,X))};
$YG=function(K){var X=_.Jw(K);if(X=="object"||X=="array"){if(typeof K.clone==="function")return K.clone();if(typeof Map!=="undefined"&&K instanceof Map)return new Map(K);if(typeof Set!=="undefined"&&K instanceof Set)return new Set(K);X=X=="array"?[]:{};for(var F in K)X[F]=$YG(K[F]);return X}return K};
Dy=function(K,X){return _.Nw9(_.sX(K,X,void 0,_.HL))};
ug=function(K,X){return _.Aw(_.sX(K,X,void 0,_.HL))};
q8=function(K,X){return _.QCq(_.sX(K,X,void 0,_.HL))};
JX=function(K,X){return _.sX(K,X,void 0,_.HL,_.qo)};
Oat=_.Vd(function(K,X,F){if(K.nextWireType_!==0)return!1;_.gj(X,F,_.wd(K.decoder_,_.F8));return!0},_.ic,_.dd);
VuJ=_.Vd(function(K,X,F,P){if(K.nextWireType_!==0)return!1;_.uQ(X,F,P,_.wd(K.decoder_,_.F8));return!0},_.ic,_.dd);
gct=_.Vd(function(K,X,F){if(K.nextWireType_!==1)return!1;var P=K.decoder_;K=_.WL(P);P=_.WL(P);K=_.kC(K,P);_.gj(X,F,K);return!0},_.E5P,_.Q4w);
Ec8=_.Vd(function(K,X,F){if(K.nextWireType_!==5)return!1;_.gj(X,F,_.WL(K.decoder_));return!0},function(K,X,F){X=_.jk(X);
X!=null&&(_.bc(K,F,5),_.NR(K.encoder_,X))},_.Y94);
bav=_.Vd(function(K,X,F){if(K.nextWireType_!==0)return!1;K=_.bnd(K.decoder_);_.gj(X,F,K===!1?void 0:K);return!0},_.CWM,_.uIP);
Cbt=_.Vd(function(K,X,F){if(K.nextWireType_!==2)return!1;K=_.kjy(K);_.gj(X,F,K===""?void 0:K);return!0},_.itT,_.q9l);
Nl8=_.Vd(function(K,X,F){if(K.nextWireType_!==2)return!1;K=_.Ke3(K);_.gj(X,F,K===_.GE()?void 0:K);return!0},_.Idd,_.cGy);
ia1=_.ldn(function(K,X,F){if(K.nextWireType_!==0&&K.nextWireType_!==2)return!1;X=_.rj(X,X[_.LW]|0,F);K.nextWireType_==2?_.X34(K,qmG,X):X.push(_.yg(K.decoder_));return!0},function(K,X,F){X=_.GJq(_.Aw,X,!0);
if(X!=null&&X.length){F=_.YV4(K,F);for(var P=0;P<X.length;P++)_.Otq(K.encoder_,X[P]);_.Qs4(K,F)}},_.p3y);
xYJ=_.Vd(function(K,X,F){if(K.nextWireType_!==0)return!1;K=_.yg(K.decoder_);_.gj(X,F,K===0?void 0:K);return!0},_.kJq,_.p3y);
IA8=_.Vd(function(K,X,F,P){if(K.nextWireType_!==0)return!1;_.uQ(X,F,P,_.yg(K.decoder_));return!0},_.kJq,_.p3y);
_.gF=function(K){this.privateDoNotAccessOrElseWrappedStyleSheet=K};
_.gF.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var GYd=function(K,X){return new _.jA(K.x+X.x,K.y+X.y)},kbt=function(K){return K.previousElementSibling!==void 0?K.previousElementSibling:_.TwV(K.previousSibling,!1)},K$G=function(K,X){var F=[];
for(X=X||0;X<K.length;X+=2)_.ZWt(K[X],K[X+1],F);return F.join("&")},Xns=function(K,X){var F=arguments.length==2?K$G(arguments[1],0):K$G(arguments,1);
return _.JtO(K,F)},F$W=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(F$W,_.Gm);F$W.prototype.getValue=function(){var K=_.sX(this,2);if(Array.isArray(K)||K instanceof _.Gm)throw Error("aa");return _.DR(this,2)};
var Xb8=function(){var K=_.ij();this.JSC$7928_streamzService=K;K.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.H_("channel_type"))};
Xb8.prototype.increment=function(K){this.JSC$7928_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",K)};
var F7o=function(){var K=_.ij();this.JSC$7931_streamzService=K;K.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.H_("channel_type"))};
F7o.prototype.increment=function(K){this.JSC$7931_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",K)};
var HD8=function(){var K=_.ij();this.JSC$7934_streamzService=K;K.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.H_("channel_type"))};
HD8.prototype.increment=function(K){this.JSC$7934_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",K)};
var Pv8=function(){var K=_.ij();this.JSC$7937_streamzService=K;K.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
Pv8.prototype.increment=function(){this.JSC$7937_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var s2V=function(){var K=_.ij();this.JSC$7940_streamzService=K;K.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.H_("channel_type"),_.H_("error_type"))};
s2V.prototype.increment=function(K,X){this.JSC$7940_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",K,X)};
var zb1=function(){var K=_.ij();this.JSC$7943_streamzService=K;K.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
zb1.prototype.increment=function(){this.JSC$7943_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var fpw=function(){var K=_.ij();this.JSC$7946_streamzService=K;K.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
fpw.prototype.increment=function(){this.JSC$7946_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var IHw=function(){var K=_.ij();this.JSC$7952_streamzService=K;K.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
IHw.prototype.increment=function(){this.JSC$7952_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var PHG=function(K){return K.getCount&&typeof K.getCount=="function"?K.getCount():_.xd(K)||typeof K==="string"?K.length:_.T8.getCount(K)},HBV=function(K,X){if(typeof K.every=="function")return K.every(X,void 0);
if(_.xd(K)||typeof K==="string")return Array.prototype.every.call(K,X,void 0);for(var F=_.fwO(K),P=_.aG(K),H=P.length,f=0;f<H;f++)if(!X.call(void 0,P[f],F&&F[f],K))return!1;return!0},sv5=function(K,X,F,P){var H=new _.aJ(null);
K&&_.tr(H,K);X&&_.$v(H,X);F&&_.OQ(H,F);P&&_.Vt(H,P);return H},zc8=function(){var K=_.dS&&_.Q9(_.BsW,10)>=0,X;
if(X=_.f7T)X=_.Q9(_.pMu,10)>=0;var F=_.XX&&_.Q9(_.BsW,85)>=0;return _.xA||K||X||F},faw=function(K){var X=_.Edt(K);
return X&&zc8()?-K.scrollLeft:X&&_.m8(K,"overflowX")!="visible"?K.scrollWidth-K.clientWidth-K.scrollLeft:K.scrollLeft},D01=function(K,X){X=Math.max(X,0);
_.Edt(K)?zc8()?K.scrollLeft=-X:K.scrollLeft=K.scrollWidth-X-K.clientWidth:K.scrollLeft=X},aq5=0,gU1=!1;
kn.prototype.set=function(K){this.relativeTimeStart_=K};
kn.prototype.reset=function(){this.set(_.E$())};
kn.prototype.get=function(){return this.relativeTimeStart_};
var uls=null,qPo=function(){uls||(uls=new kn)},JYJ=function(){uls||(uls=new kn)};
_.br(JYJ,qPo);_.z=b95.prototype;_.z.JSC$9262_buffer_="";_.z.set=function(K){this.JSC$9262_buffer_=""+K};
_.z.append=function(K,X,F){this.JSC$9262_buffer_+=String(K);if(X!=null)for(var P=1;P<arguments.length;P++)this.JSC$9262_buffer_+=arguments[P];return this};
_.z.clear=function(){this.JSC$9262_buffer_=""};
_.z.getLength=function(){return this.JSC$9262_buffer_.length};
_.z.toString=function(){return this.JSC$9262_buffer_};
var ZBG=function(){var K={type:"unit",style:"narrow"};this.listType_=K&&K.type?K.type:"conjunction";this.listStyle_=K&&K.style?K.style:"long";this.listSymbols_=c6F;K=0;switch(this.listStyle_){case "short":K=1;break;case "narrow":K=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[K];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[K];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[K];this.listEndPattern_=
this.listSymbols_.AND_END[K];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[K];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[K];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[K];this.listEndPattern_=this.listSymbols_.OR_END[K];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[K],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[K],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[K],this.listEndPattern_=this.listSymbols_.UNIT_END[K]}};
ZBG.prototype.format=function(K){return YP8(this,K)};
var YP8=function(K,X){var F=X.length;switch(F){case 0:return"";case 1:return String(X[0]);case 2:return K.listTwoPattern_.replace("{0}",String(X[0])).replace("{1}",String(X[1]))}for(var P=K.listStartPattern_.replace("{0}",String(X[0])).replace("{1}",String(X[1])),H=2;H<F-1;++H)P=K.listMiddlePattern_.replace("{0}",P).replace("{1}",String(X[H]));return K.listEndPattern_.replace("{0}",P).replace("{1}",String(X[F-1]))},u$1=function(){var K={style:1};
this.style_=(K==null?void 0:K.style)||0;this.durationSymbols_=_.xlT||_.KXN},Qvw=function(K,X){switch(X){default:case "years":return K.durationSymbols_.YEAR;
case "months":return K.durationSymbols_.MONTH;case "weeks":return K.durationSymbols_.WEEK;case "days":return K.durationSymbols_.DAY;case "hours":return K.durationSymbols_.HOUR;case "minutes":return K.durationSymbols_.MINUTE;case "seconds":return K.durationSymbols_.SECOND}},Zy=function(K,X,F){a:{F=Qvw(K,F);
switch(K.style_){case 1:if(F.LONG!=void 0){K=F.LONG;break a}case 2:if(F.NARROW!=void 0){K=F.NARROW;break a}default:K=F.SHORT;break a}K=void 0}return K?(new _.LXL("{DURATION_VALUE,plural,"+K+"}")).format({DURATION_VALUE:X}):""};
u$1.prototype.format=function(K){var X=[],F=K.years,P=K.months,H=K.weeks,f=K.days,u=K.hours,J=K.minutes;K=K.seconds;F!=null&&X.push(Zy(this,F,"years"));P!=null&&X.push(Zy(this,P,"months"));H!=null&&X.push(Zy(this,H,"weeks"));f!=null&&X.push(Zy(this,f,"days"));u!=null&&X.push(Zy(this,u,"hours"));J!=null&&X.push(Zy(this,J,"minutes"));K!=null&&X.push(Zy(this,K,"seconds"));return(new ZBG).format(X)};
var M9J=!1,KSd=function(K){_.KO.call(this,K.message||K.description||K.name);this.isMissing=K instanceof KP;this.isTimeout=K instanceof _.$n&&K.errorCode=="net.timeout";this.isCanceled=K instanceof _.UD};
_.r(KSd,_.KO);KSd.prototype.name="BiscottiError";var KP=function(){_.KO.call(this,"Biscotti ID is missing from server")};
_.r(KP,_.KO);KP.prototype.name="BiscottiMissingError";var Xp=null,M4v=function(){try{var K=_.mz("yt.ads.biscotti.getId_");return K?K():RDG()}catch(X){return _.pB(X)}},DUw,nO8=function(K){return _.iY({type:"SET_GUIDE_IS_EXPANDED",
payload:K})},cYo=function(K){return _.iY({type:"SET_ONLINE_STATUS",
payload:K})},pnW=function(K,X){return _.iY({type:"SET_TRANSCRIPTION_STATE",
payload:{high:K,low:X}})},B$W=function(K){return _.iY({type:"SET_OVERLAY_STATE",
payload:K})},SP8=0,oOW=function(K,X,F){var P=this;
this.priority=X;this.delay=F;this.jobId=0;this.completionCallback=_.zM;this.wrappedJob=function(){K();P.completionCallback()};
this.id=++SP8};
oOW.prototype.enqueue=function(K){this.completionCallback=K;this.jobId=_.A9.addJob(this.wrappedJob,this.priority,this.delay)};
var Y6=function(){_.Eh.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.r(Y6,_.Eh);Y6.prototype.addJob=function(K,X,F){K=new oOW(K,X,F);this.taskIdToTask.set(K.id,K);this.isActive?L$5(this,K):this.suspendedTasks.add(K);return K.id};
var L$5=function(K,X){K.scheduledTasks.add(X);X.enqueue(function(){K.scheduledTasks.delete(X)})};
Y6.prototype.cancelJob=function(K){(K=this.taskIdToTask.get(K))&&(this.scheduledTasks.delete(K)?_.A9.cancelJob(K.jobId):this.suspendedTasks.delete(K))};
Y6.prototype.pause=function(){var K=this;this.isActive=!1;this.scheduledTasks.forEach(function(X){_.A9.cancelJob(X.jobId);K.suspendedTasks.add(X)});
this.scheduledTasks.clear()};
Y6.prototype.start=function(){var K=this;this.isActive=!0;this.suspendedTasks.forEach(function(X){L$5(K,X)});
this.suspendedTasks.clear()};
Y6.prototype.reset=function(){this.scheduledTasks.forEach(function(K){_.A9.cancelJob(K.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var QV=function(K,X){this.JSC$10934_networkService_=K;this.pageRequestPromise=X};
QV.prototype.fetchData=function(K){T$J(this,this.JSC$10934_networkService_.fetchData(K))};
QV.prototype.postData=function(K,X){T$J(this,this.JSC$10934_networkService_.postData(K,X))};
QV.prototype.requestDataForServiceEndpoint=function(K,X){T$J(this,this.JSC$10934_networkService_.requestDataForServiceEndpoint(K,X))};
var T$J=function(K,X){X.then(K.pageRequestPromise.onSuccess,K.pageRequestPromise.onFailure,K.pageRequestPromise)};
QV.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var M8=function(K){this.buildNetworkRequest_=K;this.pendingRequests_=new Set};
M8.prototype.reset=function(){this.pendingRequests_.forEach(function(K){K.cancel()});
this.pendingRequests_.clear()};
M8.prototype.fetchData=function(K){var X=rY1(this);X.fetchData(K);return X.pageRequestPromise};
M8.prototype.postData=function(K,X){var F=rY1(this);F.postData(K,X);return F.pageRequestPromise};
M8.prototype.requestDataForServiceEndpoint=function(K,X){var F=rY1(this);F.requestDataForServiceEndpoint(K,X);return F.pageRequestPromise};
var rY1=function(K){var X=K.buildNetworkRequest_();K.pendingRequests_.add(X);var F=function(){K.pendingRequests_.delete(X)};
X.pageRequestPromise.then(F,F);return X},AYW=function(K){var X=new Y6;
this.JSC$10941_networkService_=K;this.JSC$10941_taskManager_=X;this.JSC$10941_networkManager_=new M8(this.networkRequestFactory_.bind(this))};
_.z=AYW.prototype;_.z.networkRequestFactory_=function(){return new QV(this.JSC$10941_networkService_,new _.EL(this.JSC$10941_taskManager_))};
_.z.reset=function(){this.JSC$10941_taskManager_.reset();this.JSC$10941_networkManager_.reset()};
_.z.start=function(){this.JSC$10941_taskManager_.start()};
_.z.pause=function(){this.JSC$10941_taskManager_.pause()};
_.z.getTaskManager=function(){return this.JSC$10941_taskManager_};
_.z.getNetworkManager=function(){return this.JSC$10941_networkManager_};
var QtJ=null,cv8=[],Fp=0,H2=0,P2=null,jv8=!1,s0=null,BSd=void 0,wn5=function(){var K=(0,_.GZu)();K&&Bq1(K,K.mechanism.__iterator__(!0))},fP=function(K){this.token=K};
fP.getInstance=function(){var K;return _.q(function(X){if(X.nextAddress==1)return _.Y(X,_.EU(),2);K=X.yieldResult;if(!K)return X.return();fP.instance||(fP.instance=new fP(K));return X.return(fP.instance)})};
var AvG=function(K){var X;return _.q(function(F){if(F.nextAddress==1)return _.Y(F,LSd(K.token),2);X=F.yieldResult;return F.return(X.clear("resource-manifest-assets"))})},zH=function(K){this.token=K};
zH.getInstance=function(){var K;return _.q(function(X){if(X.nextAddress==1)return _.Y(X,_.EU(),2);K=X.yieldResult;if(!K)return X.return();zH.instance||(zH.instance=new zH(K));return X.return(zH.instance)})};
var TSV=function(K){var X;return _.q(function(F){if(F.nextAddress==1)return _.Y(F,LSd(K.token),2);X=F.yieldResult;return _.Y(F,X.clear("auth"),0)})},ESG=!1,yYd=function(K){_.KO.call(this,K)};
_.r(yYd,_.FBU);var Eh8=function(){var K=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return K?parseInt(K[1],10):0},W$G=function(K){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+K)!=-1||document.currentScript.src.indexOf("&"+K)!=-1)},d0J=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},xz1=function(K){K.length?ecG(K.shift(),function(){xz1(K)}):CvW()},kB8=function(K){return"chrome-extension://"+K+"/cast_sender.js"},ecG=function(K,
X,F){var P=document.createElement("script");
P.onerror=X;F&&(P.onload=F);_.li(P,_.AH(K));(document.head||document.documentElement).appendChild(P)},Rcw=function(){var K=Eh8(),X=[];
if(K>1){var F=K-1;X.push("//www.gstatic.com/eureka/clank/"+K+"/cast_sender.js");X.push("//www.gstatic.com/eureka/clank/"+F+"/cast_sender.js")}return X},CvW=function(){var K=d0J();
K&&K(!1,"No cast extension found")},iDv=function(){if(U0F){var K=2,X=d0J(),F=function(){K--;
K==0&&X&&X(!0)};
window.__onGCastApiAvailable=F;ecG("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",CvW,F)}},bDs=function(){iDv();
var K=Rcw();K.push("//www.gstatic.com/eureka/clank/cast_sender.js");xz1(K)},NgV=function(){iDv();
var K=Rcw();K.push.apply(K,_.LZ(Ips.map(kB8)));K.push("//www.gstatic.com/eureka/clank/cast_sender.js");xz1(K)},U0F=W$G("loadCastFramework")||W$G("loadCastApplicationFramework"),Ips=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var hcJ=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(hcJ,_.Gm);var m08=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(m08,_.Gm);var GDJ=function(){var K=new m08;return _.Ab(K,1,3)};var n0=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(n0,_.Gm);var ttV=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(ttV,_.Gm);var lav=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(lav,_.Gm);lav.prototype.getToken=function(){return _.BL(this,1)};
lav.prototype.setToken=function(K){return _.$R(this,1,K)};
var vgV=function(K){return _.BJ(K,3,_.vF,_.KJ())},aT5=function(K){return _.BJ(K,6,_.vF,_.KJ())};var cZ=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(cZ,_.Gm);cZ.prototype.getToken=function(){return _.xS(this,lav,2)};
cZ.prototype.setToken=function(K){return _.Fw(this,2,K)};
cZ.prototype.getName=function(){return _.BL(this,6)};
var vO5=_.Ks(cZ);var aaW=function(K,X,F){this.requestMessage=K;this.methodDescriptor=X;this.metadata=F};
aaW.prototype.getMetadata=function(){return this.metadata};var t98=function(K,X){X=X===void 0?{}:X;this.responseMessage=K;this.metadata=X;this.status=null};
t98.prototype.getMetadata=function(){return this.metadata};
t98.prototype.getStatus=function(){return this.status};var p0=function(K,X,F,P,H){this.name=K;this.methodType="unary";this.requestType=X;this.responseType=F;this.requestSerializeFn=P;this.responseDeserializeFn=H},$0J=function(K,X,F){F=F===void 0?{}:F;
return new aaW(X,K,F)};
p0.prototype.getName=function(){return this.name};var BZ=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(BZ,_.Gm);BZ.prototype.setHeader=function(K){return _.Fw(this,1,K)};
BZ.prototype.hasHeader=function(){return _.zQ(this,n0,1)};var OB8=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(OB8,_.Gm);var V9w=new p0("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",BZ,OB8,function(K){return K.serialize()},_.Ks(OB8));var Sx=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(Sx,_.Gm);Sx.prototype.setHeader=function(K){return _.Fw(this,1,K)};
Sx.prototype.hasHeader=function(){return _.zQ(this,n0,1)};var gOs=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(gOs,_.Gm);var EO8=new p0("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",Sx,gOs,function(K){return K.serialize()},_.Ks(gOs));var o_=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(o_,_.Gm);o_.prototype.setHeader=function(K){return _.Fw(this,1,K)};
o_.prototype.hasHeader=function(){return _.zQ(this,n0,1)};var bBW=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(bBW,_.Gm);bBW.prototype.getLink=function(){return _.xS(this,cZ,1)};var CH8=new p0("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",o_,bBW,function(K){return K.serialize()},_.Ks(bBW));var L0=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(L0,_.Gm);L0.prototype.setHeader=function(K){return _.Fw(this,1,K)};
L0.prototype.hasHeader=function(){return _.zQ(this,n0,1)};var N$V=new p0("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",L0,cZ,function(K){return K.serialize()},vO5);var iBv=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(iBv,_.Gm);var x0s=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(x0s,_.Gm);x0s.prototype.getUrl=function(){return _.BL(this,2)};
x0s.prototype.setUrl=function(K){return _.$R(this,2,K)};var Ia5=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(Ia5,_.Gm);var kDo=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(kDo,_.Gm);var KWk=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(KWk,_.Gm);var ITt=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(ITt,_.Gm);var xi8=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(xi8,_.Gm);var XOJ=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(XOJ,_.Gm);var sI8=_.Ks(XOJ);var FWF=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(FWF,_.Gm);var TW=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(TW,_.Gm);TW.prototype.setHeader=function(K){return _.Fw(this,1,K)};
TW.prototype.hasHeader=function(){return _.zQ(this,n0,1)};
TW.prototype.getCompletionUrl=function(){return _.BL(this,6)};
TW.prototype.getDeviceId=function(){return _.BL(this,11)};var PC5=new p0("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",TW,XOJ,function(K){return K.serialize()},sI8);var H4t=new Set(["SAPISIDHASH","APISIDHASH"]);var sx1=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(sx1,_.Gm);sx1.prototype.getMessage=function(){return _.BL(this,2)};
var zWd=_.Ks(sx1);var ry=function(K,X){this.xhrNodeReadableStream_=K.nodeReadableStream;this.grpcResponseDeserializeFn_=X;this.JSC$17029_xhr_=K.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$17029_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&fFo(this)},Yew=function(K,X){var F=new DBo;
_.nB(K.JSC$17029_xhr_,"complete",function(){if(K.JSC$17029_xhr_.isSuccess()){var P=K.JSC$17029_xhr_.getResponseText();var H;if(H=X)H=K.JSC$17029_xhr_,H.JSC$7807_xhr_&&H.isComplete()?(H=H.JSC$7807_xhr_.getResponseHeader("Content-Type"),H=H===null?void 0:H):H=void 0,H=H==="text/plain";if(H){if(!atob)throw Error("Gj");P=atob(P)}try{var f=K.grpcResponseDeserializeFn_(P)}catch(J){AX(K,A9v(new _.M6(13,"Error when deserializing response data; error: "+J+(", response: "+P)),F));return}P=_.uB(K.JSC$17029_xhr_.getStatus());
uqt(K,qeo(K));P==0?Jed(K,f):AX(K,A9v(new _.M6(P,"Xhr succeeded but the status code is not 200"),F))}else{P=K.JSC$17029_xhr_.getResponseText();f=qeo(K);if(P){var u=Z4W(K,P);P=u.code;H=u.details;u=u.metadata}else P=2,H="Rpc failed due to xhr error. uri: "+String(K.JSC$17029_xhr_.JSC$7807_lastUri_)+", error code: "+K.JSC$17029_xhr_.JSC$7807_lastErrorCode_+", error: "+K.JSC$17029_xhr_.getLastError(),u=f;uqt(K,f);AX(K,A9v(new _.M6(P,H,u),F))}})},fFo=function(K){K.xhrNodeReadableStream_.on("data",function(X){if("1"in
X){var F=X["1"];
try{var P=K.grpcResponseDeserializeFn_(F)}catch(H){AX(K,new _.M6(13,"Error when deserializing response data; error: "+H+(", response: "+F)))}P&&Jed(K,P)}if("2"in X)for(X=Z4W(K,X["2"]),F=0;F<K.onStatusCallbacks_.length;F++)K.onStatusCallbacks_[F](X)});
K.xhrNodeReadableStream_.on("end",function(){uqt(K,qeo(K));for(var X=0;X<K.onEndCallbacks_.length;X++)K.onEndCallbacks_[X]()});
K.xhrNodeReadableStream_.on("error",function(){if(K.JSC$17029_onErrorCallbacks_.length!=0){var X=K.JSC$17029_xhr_.JSC$7807_lastErrorCode_;X!==0||K.JSC$17029_xhr_.isSuccess()||(X=6);var F=-1;switch(X){case 0:var P=2;break;case 7:P=10;break;case 8:P=4;break;case 6:F=K.JSC$17029_xhr_.getStatus();P=_.uB(F);break;default:P=14}uqt(K,qeo(K));X=_.v8N(X)+", error: "+K.JSC$17029_xhr_.getLastError();F!=-1&&(X+=", http status code: "+F);AX(K,new _.M6(P,X))}})},qeo=function(K){var X={},F=M0d(K.JSC$17029_xhr_);
Object.keys(F).forEach(function(P){X[P]=F[P]});
return X},Z4W=function(K,X){var F=2,P={};
try{var H=zWd(X);F=_.XA(H,1);var f=H.getMessage();_.kp(H,F$W,3,_.KJ()).length&&(P["grpc-web-status-details-bin"]=X)}catch(u){K.JSC$17029_xhr_&&K.JSC$17029_xhr_.getStatus()===404?(F=5,f="Not Found: "+String(K.JSC$17029_xhr_.JSC$7807_lastUri_)):(F=14,f="Unable to parse RpcStatus: "+u)}return{code:F,details:f,metadata:P}};
ry.prototype.on=function(K,X){K=="data"?this.onDataCallbacks_.push(X):K=="metadata"?this.onMetadataCallbacks_.push(X):K=="status"?this.onStatusCallbacks_.push(X):K=="end"?this.onEndCallbacks_.push(X):K=="error"&&this.JSC$17029_onErrorCallbacks_.push(X);return this};
var jx=function(K,X){X=K.indexOf(X);X>-1&&K.splice(X,1)};
ry.prototype.removeListener=function(K,X){K=="data"?jx(this.onDataCallbacks_,X):K=="metadata"?jx(this.onMetadataCallbacks_,X):K=="status"?jx(this.onStatusCallbacks_,X):K=="end"?jx(this.onEndCallbacks_,X):K=="error"&&jx(this.JSC$17029_onErrorCallbacks_,X);return this};
ry.prototype.cancel=function(){this.JSC$17029_xhr_.abort()};
var Jed=function(K,X){for(var F=0;F<K.onDataCallbacks_.length;F++)K.onDataCallbacks_[F](X)},uqt=function(K,X){for(var F=0;F<K.onMetadataCallbacks_.length;F++)K.onMetadataCallbacks_[F](X)},AX=function(K,X){for(var F=0;F<K.JSC$17029_onErrorCallbacks_.length;F++)K.JSC$17029_onErrorCallbacks_[F](X)};
ry.prototype.cancel=ry.prototype.cancel;ry.prototype.removeListener=ry.prototype.removeListener;ry.prototype.on=ry.prototype.on;var DBo=function(){var K=Error.call(this);this.message=K.message;"stack"in K&&(this.stack=K.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.r(DBo,Error);var wy=function(K){this.JSC$17038_worker_=K.worker||null;this.JSC$17038_streamBinaryChunks_=K.streamBinaryChunks||!1;this.JSC$17038_credentialsMode_=void 0};
_.br(wy,_.N04);wy.prototype.createInstance=function(){var K=new yV(this.JSC$17038_worker_,this.JSC$17038_streamBinaryChunks_);this.JSC$17038_credentialsMode_&&K.setCredentialsMode(this.JSC$17038_credentialsMode_);return K};
wy.prototype.setCredentialsMode=function(K){this.JSC$17038_credentialsMode_=K};
var yV=function(K,X){_.ua.call(this);this.JSC$17042_worker_=K;this.JSC$17042_streamBinaryChunks_=X;this.JSC$17042_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$17042_responseHeaders_=null;this.JSC$17042_method_="GET";this.JSC$17042_url_="";this.inProgress_=!1;this.JSC$17042_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.br(yV,_.ua);yV.prototype.open=function(K,X){if(this.readyState!=0)throw this.abort(),Error("Hj");this.JSC$17042_method_=K;this.JSC$17042_url_=X;this.readyState=1;WZ(this)};
yV.prototype.send=function(K){if(this.readyState!=1)throw this.abort(),Error("Ij");this.inProgress_=!0;var X={headers:this.requestHeaders_,method:this.JSC$17042_method_,credentials:this.JSC$17042_credentialsMode_,cache:void 0};K&&(X.body=K);(this.JSC$17042_worker_||_.FP).fetch(new Request(this.JSC$17042_url_,X)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
yV.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,dy(this));this.readyState=0};
yV.prototype.handleResponse_=function(K){if(this.inProgress_&&(this.fetchResponse_=K,this.JSC$17042_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$17042_responseHeaders_=K.headers,this.readyState=2,WZ(this)),this.inProgress_&&(this.readyState=3,WZ(this),this.inProgress_)))if(this.responseType==="arraybuffer")K.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.FP.ReadableStream!==
"undefined"&&"body"in K){this.currentReader_=K.body.getReader();if(this.JSC$17042_streamBinaryChunks_){if(this.responseType)throw Error("Jj");this.response=[]}else this.response=this.responseText="",this.JSC$17042_textDecoder_=new TextDecoder;Qx8(this)}else K.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var Qx8=function(K){K.currentReader_.read().then(K.handleDataFromStream_.bind(K)).catch(K.handleSendFailure_.bind(K))};
yV.prototype.handleDataFromStream_=function(K){if(this.inProgress_){if(this.JSC$17042_streamBinaryChunks_&&K.value)this.response.push(K.value);else if(!this.JSC$17042_streamBinaryChunks_){var X=K.value?K.value:new Uint8Array(0);if(X=this.JSC$17042_textDecoder_.decode(X,{stream:!K.done}))this.response=this.responseText+=X}K.done?dy(this):WZ(this);this.readyState==3&&Qx8(this)}};
yV.prototype.handleResponseText_=function(K){this.inProgress_&&(this.response=this.responseText=K,dy(this))};
yV.prototype.handleResponseArrayBuffer_=function(K){this.inProgress_&&(this.response=K,dy(this))};
yV.prototype.handleSendFailure_=function(){this.inProgress_&&dy(this)};
var dy=function(K){K.readyState=4;K.fetchResponse_=null;K.currentReader_=null;K.JSC$17042_textDecoder_=null;WZ(K)};
yV.prototype.setRequestHeader=function(K,X){this.requestHeaders_.append(K,X)};
yV.prototype.getResponseHeader=function(K){return this.JSC$17042_responseHeaders_?this.JSC$17042_responseHeaders_.get(K.toLowerCase())||"":""};
yV.prototype.getAllResponseHeaders=function(){if(!this.JSC$17042_responseHeaders_)return"";for(var K=[],X=this.JSC$17042_responseHeaders_.entries(),F=X.next();!F.done;)F=F.value,K.push(F[0]+": "+F[1]),F=X.next();return K.join("\r\n")};
yV.prototype.setCredentialsMode=function(K){this.JSC$17042_credentialsMode_=K};
var WZ=function(K){K.onreadystatechange&&K.onreadystatechange.call(K)};
Object.defineProperty(yV.prototype,"withCredentials",{get:function(){return this.JSC$17042_credentialsMode_==="include"},
set:function(K){this.setCredentialsMode(K?"include":"same-origin")}});var MdG=function(K){var X="";_.T8.forEach(K,function(F,P){X+=P;X+=":";X+=F;X+="\r\n"});
return X},nfW=function(K,X,F){if(_.T8.isEmpty(F))return K;
F=MdG(F);if(typeof K==="string")return _.Wz(K,_.l9(X),F);_.$L(K,X,F);return K};var ceJ=function(){this.isInputValid_=!0;this.JSC$17047_streamPos_=0;this.leftoverInput_=""};
ceJ.prototype.isInputValid=function(){return this.isInputValid_};var qj=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$17050_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
qj.prototype.isInputValid=function(){return this.state_!=3};
var ex=function(K,X,F,P){K.state_=3;K.errorMessage_="The stream is broken @"+K.JSC$17050_streamPos_+"/"+F+". Error: "+P+". With input:\n"+X;throw Error(K.errorMessage_);};
qj.prototype.acceptsBinaryInput=function(){return!0};
qj.prototype.parse=function(K){function X(Z){Z&128&&ex(f,u,J,"invalid tag");(Z&7)!=2&&ex(f,u,J,"invalid wire type");f.tag_=Z>>>3;f.tag_!=1&&f.tag_!=2&&f.tag_!=15&&ex(f,u,J,"unexpected tag");f.state_=1;f.length_=0;f.countLengthBytes_=0}
function F(Z){f.countLengthBytes_++;f.countLengthBytes_==5&&Z&240&&ex(f,u,J,"message length too long");f.length_|=(Z&127)<<(f.countLengthBytes_-1)*7;Z&128||(f.state_=2,f.countMessageBytes_=0,typeof Uint8Array!=="undefined"?f.messageBuffer_=new Uint8Array(f.length_):f.messageBuffer_=Array(f.length_),f.length_==0&&H())}
function P(Z){f.messageBuffer_[f.countMessageBytes_++]=Z;f.countMessageBytes_==f.length_&&H()}
function H(){if(f.tag_<15){var Z={};Z[f.tag_]=f.messageBuffer_;f.result_.push(Z)}f.state_=0}
for(var f=this,u=K instanceof Array?K:new Uint8Array(K),J=0;J<u.length;){switch(f.state_){case 3:ex(f,u,J,"stream already broken");break;case 0:X(u[J]);break;case 1:F(u[J]);break;case 2:P(u[J]);break;default:throw Error("Lj`"+f.state_);}f.JSC$17050_streamPos_++;J++}K=f.result_;f.result_=[];return K.length>0?K:null};var wE8=function(){this.errorMessage_=null;this.JSC$17053_streamPos_=0;this.base64Decoder_=new ceJ;this.pbParser_=new qj};
wE8.prototype.isInputValid=function(){return this.errorMessage_===null};
var pOo=function(K,X,F){K.errorMessage_="The stream is broken @"+K.JSC$17053_streamPos_+". Error: "+F+". With input:\n"+X;throw Error(K.errorMessage_);};
wE8.prototype.acceptsBinaryInput=function(){return!1};
wE8.prototype.parse=function(K){this.errorMessage_!==null&&pOo(this,K,"stream already broken");var X=null;try{var F=this.base64Decoder_;if(!F.isInputValid_)throw F.isInputValid_=!1,Error("Kj`"+F.JSC$17047_streamPos_+"`stream already broken`"+K);F.leftoverInput_+=K;var P=Math.floor(F.leftoverInput_.length/4);if(P==0)var H=null;else{try{var f=_.xCT(F.leftoverInput_.slice(0,P*4))}catch(Z){var u=F.leftoverInput_,J=Z.message;F.isInputValid_=!1;throw Error("Kj`"+F.JSC$17047_streamPos_+"`"+J+"`"+u);}F.JSC$17047_streamPos_+=
P*4;F.leftoverInput_=F.leftoverInput_.slice(P*4);H=f}X=H===null?null:this.pbParser_.parse(H)}catch(Z){pOo(this,K,Z.message)}this.JSC$17053_streamPos_+=K.length;return X};var jad=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$17056_streamPos_=0;this.result_=[];this.statusParsed_=!1};
jad.prototype.isInputValid=function(){return this.errorMessage_===null};
jad.prototype.acceptsBinaryInput=function(){return!1};
jad.prototype.parse=function(K){function X(Z){f.state_=6;f.errorMessage_="The stream is broken @"+f.JSC$17056_streamPos_+"/"+u+". Error: "+Z+". With input:\n";throw Error(f.errorMessage_);}
function F(){f.jsonStreamParser_=new _.NM({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function P(Z){if(Z)for(var M=0;M<Z.length;M++){var n={};n[1]=Z[M];f.result_.push(n)}}
function H(Z){if(Z){(f.statusParsed_||Z.length>1)&&X("extra status: "+Z);f.statusParsed_=!0;var M={};M[2]=Z[0];f.result_.push(M)}}
for(var f=this,u=0;u<K.length;){var J;if(J=f.state_!==2){a:{for(;u<K.length;){if(!_.CY(K[u])){J=!0;break a}u++;f.JSC$17056_streamPos_++}J=!1}J=!J}if(J)return null;switch(f.state_){case 6:X("stream already broken");break;case 0:K[u]==="["?(f.state_=1,u++,f.JSC$17056_streamPos_++):X("unexpected input token");break;case 1:K[u]==="["?(f.state_=2,F()):K[u]===","||K.slice(u,u+5)=="null,"?f.state_=3:K[u]==="]"?(f.state_=5,u++,f.JSC$17056_streamPos_++):X("unexpected input token");break;case 2:J=f.jsonStreamParser_.parse(K.substring(u));
P(J);f.jsonStreamParser_.done()?(f.state_=3,J=f.jsonStreamParser_.JSC$9389_buffer_,f.JSC$17056_streamPos_+=K.length-u-J.length,K=J,u=0):(f.JSC$17056_streamPos_+=K.length-u,u=K.length);break;case 3:K[u]===","||K.slice(u,u+5)=="null,"?(f.state_=4,F(),f.jsonStreamParser_.parse("["),u+=K[u]===","?1:5,f.JSC$17056_streamPos_++):K[u]==="]"&&(f.state_=5,u++,f.JSC$17056_streamPos_++);break;case 4:J=f.jsonStreamParser_.parse(K.substring(u));H(J);f.jsonStreamParser_.done()?(f.state_=5,J=f.jsonStreamParser_.JSC$9389_buffer_,
f.JSC$17056_streamPos_+=K.length-u-J.length,K=J,u=0):(f.JSC$17056_streamPos_+=K.length-u,u=K.length);break;case 5:X("extra input after stream end")}}return f.result_.length>0?(K=f.result_,f.result_=[],K):null};var Bn5=function(K){this.JSC$17059_xhr_=K;this.JSC$17059_parser_=null;this.status_=this.JSC$17059_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$17059_textDecoder_=null;this.JSC$17059_eventHandler_=new _.iv(this);this.JSC$17059_eventHandler_.listen(this.JSC$17059_xhr_,"readystatechange",this.JSC$17061_readyStateChangeHandler_)},R_=function(K,X){K.status_!=X&&(K.status_=X,K.statusHandler_&&K.statusHandler_())},Ud=function(K){K.JSC$17059_eventHandler_.removeAll();
if(K.JSC$17059_xhr_){var X=K.JSC$17059_xhr_;K.JSC$17059_xhr_=null;X.abort();X.dispose()}};
Bn5.prototype.getStatus=function(){return this.status_};
Bn5.prototype.JSC$17061_readyStateChangeHandler_=function(K){K=K.target;try{if(K==this.JSC$17059_xhr_)a:{var X=_.pu(this.JSC$17059_xhr_),F=this.JSC$17059_xhr_.JSC$7807_lastErrorCode_,P=this.JSC$17059_xhr_.getStatus(),H=this.JSC$17059_xhr_.getResponseText();K=[];if(this.JSC$17059_xhr_.getResponse()instanceof Array){var f=this.JSC$17059_xhr_.getResponse();f.length>0&&f[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,K=f)}if(!(X<3||X==3&&!H&&K.length==0))if(P=P==200||P==206,X==4&&(F==8?R_(this,
7):F==7?R_(this,8):P||R_(this,3)),this.JSC$17059_parser_||(this.JSC$17059_parser_=y9t(this.JSC$17059_xhr_),this.JSC$17059_parser_==null&&R_(this,5)),this.status_>2)Ud(this);else{if(K.length>this.JSC$17059_pos_){var u=K.length;F=[];try{if(this.JSC$17059_parser_.acceptsBinaryInput())for(var J=0;J<u;J++){var Z=this.JSC$17059_parser_.parse(Array.from(K[J]));Z&&(F=F.concat(Z))}else{Z="";if(!this.JSC$17059_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Mj");this.JSC$17059_textDecoder_=new TextDecoder}for(J=
0;J<u;J++)Z+=this.JSC$17059_textDecoder_.decode(K[J],{stream:X==4&&J==u-1});F=this.JSC$17059_parser_.parse(Z)}K.splice(0,u);F&&this.dataHandler_(F)}catch(n){R_(this,5);Ud(this);break a}}else if(H.length>this.JSC$17059_pos_){J=H.slice(this.JSC$17059_pos_);this.JSC$17059_pos_=H.length;try{var M=this.JSC$17059_parser_.parse(J);M!=null&&this.dataHandler_&&this.dataHandler_(M)}catch(n){R_(this,5);Ud(this);break a}}X==4?(H.length!=0||this.hasStreamingResponseData_?R_(this,2):R_(this,4),Ud(this)):R_(this,
1)}}}catch(n){R_(this,6),Ud(this)}};var Sed=function(K){K=this.xhrReader_=K;var X=(0,_.T3)(this.onData_,this);K.dataHandler_=X;K=this.xhrReader_;X=(0,_.T3)(this.onStatusChange_,this);K.statusHandler_=X;this.JSC$17063_callbackMap_={};this.callbackOnceMap_={}};
_.z=Sed.prototype;_.z.on=function(K,X){var F=this.JSC$17063_callbackMap_[K];F||(F=[],this.JSC$17063_callbackMap_[K]=F);F.push(X);return this};
_.z.addListener=function(K,X){this.on(K,X);return this};
_.z.removeListener=function(K,X){var F=this.JSC$17063_callbackMap_[K];F&&_.CO(F,X);(K=this.callbackOnceMap_[K])&&_.CO(K,X);return this};
_.z.once=function(K,X){var F=this.callbackOnceMap_[K];F||(F=[],this.callbackOnceMap_[K]=F);F.push(X);return this};
_.z.onData_=function(K){var X=this.JSC$17063_callbackMap_.data;X&&ofv(K,X);(X=this.callbackOnceMap_.data)&&ofv(K,X);this.callbackOnceMap_.data=[]};
var ofv=function(K,X){for(var F={},P=0;P<K.length;F={message$jscomp$969:void 0},P++)F.message$jscomp$969=K[P],X.forEach(function(H){return function(f){try{f(H.message$jscomp$969)}catch(u){}}}(F))};
Sed.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:LW5(this,"readable");break;case 5:case 6:case 4:case 7:case 3:LW5(this,"error");break;case 8:LW5(this,"close");break;case 2:LW5(this,"end")}};
var LW5=function(K,X){var F=K.JSC$17063_callbackMap_[X];F&&F.forEach(function(P){try{P()}catch(H){}});
(F=K.callbackOnceMap_[X])&&F.forEach(function(P){P()});
K.callbackOnceMap_[X]=[]};var Tno=function(){var K={format:"jspb"};K=K===void 0?{}:K;this.suppressCorsPreflight=K.suppressCorsPreflight||_.mz("suppressCorsPreflight",K)||!1;this.withCredentials=K.withCredentials||_.mz("withCredentials",K)||!1;this.streamInterceptors=K.streamInterceptors||[];this.unaryInterceptors=K.unaryInterceptors||[];this.workerScope=K.workerScope;this.chunkedServerStreaming=K.useFetchDownloadStreams||!1},jxv=function(K,X,F,P,H,f){f=f===void 0?{}:f;
var u=X.substring(0,X.length-H.name.length),J,Z=(J=f)==null?void 0:J.signal;return rev(function(M){return new Promise(function(n,c){if(Z==null?0:Z.aborted){var B=new _.M6(1,"Aborted");B.cause=Z.reason;c(B)}else{var L={},A=Aet(K,M,u);A.on("error",function(d){return void c(d)});
A.on("metadata",function(d){L=d});
A.on("data",function(d){var R=L;R=R===void 0?{}:R;n(new t98(d,R))});
Z&&Z.addEventListener("abort",function(){A.cancel();var d=new _.M6(1,"Aborted");d.cause=Z.reason;c(d)})}})},K.unaryInterceptors).call(K,$0J(H,F,P)).then(function(M){return M.responseMessage})},hX=function(K,X,F,P,H,f){f=f===void 0?{}:f;
return jxv(K,X,F,P,H,f)};
Tno.prototype.serverStreaming=function(K,X,F,P){var H=this,f=K.substring(0,K.length-P.name.length);return wOF(function(u){var J=u.methodDescriptor,Z=u.getMetadata(),M=yew(H,!1);Z=WW1(H,Z,M,f+J.getName());var n=dB8(M,J.responseDeserializeFn,!0);u=J.requestSerializeFn(u.requestMessage);M.send(Z,"POST",u);return n},this.streamInterceptors).call(this,$0J(P,X,F))};
var Aet=function(K,X,F){var P=X.methodDescriptor,H=X.getMetadata(),f=yew(K,!0);K=WW1(K,H,f,F+P.getName());F=dB8(f,P.responseDeserializeFn,!1);Yew(F,H["X-Goog-Encode-Response-If-Executable"]==="base64");X=P.requestSerializeFn(X.requestMessage);f.send(K,"POST",X);return F},yew=function(K,X){X=K.chunkedServerStreaming&&!X;
return K.workerScope||X?new _.cD(new wy({worker:K.workerScope,streamBinaryChunks:X})):new _.cD},WW1=function(K,X,F,P){X["Content-Type"]="application/json+protobuf";
X["X-User-Agent"]="grpc-web-javascript/0.1";var H=X.Authorization;if(H&&H4t.has(H.split(" ")[0])||K.withCredentials)F.JSC$7807_withCredentials_=!0;if(K.suppressCorsPreflight)P=nfW(P,"$httpHeaders",X);else for(K=_.D(Object.keys(X)),H=K.next();!H.done;H=K.next())H=H.value,F.headers.set(H,X[H]);return P},dB8=function(K,X,F){if(F){F=new Bn5(K);
var P=new Sed(F)}return new ry({xhr:K,nodeReadableStream:P},X)},wOF=function(K,X){return X.reduce(function(F,P){return function(H){return P.intercept(H,F)}},K)},rev=function(K,X){return X.reduce(function(F,P){return function(H){return P.intercept(H,F)}},K)};var eWV=function(K){this.client_=new Tno;this.hostname_=K==void 0?K:K.replace(/\/+$/,"")};
_.z=eWV.prototype;_.z.JSC$17082_depositGoogleCredential=function(K,X,F){return hX(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",K,X||{},EO8,F)};
_.z.deleteLink=function(K,X,F){return hX(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",K,X||{},V9w,F)};
_.z.JSC$17082_finishOAuth=function(K,X,F){return hX(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",K,X||{},CH8,F)};
_.z.getLink=function(K,X,F){return hX(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",K,X||{},N$V,F)};
_.z.startLinkingSession=function(K,X,F){return hX(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",K,X||{},PC5,F)};var RW1=[0,bav,1,ia1,[0,_.GQ,[0,Cbt,-1]],[0,Nl8],[0,xYJ,-1]];var UBJ=function(){this.storage=new Map},mBJ=function(K,X,F,P,H){if(!K.storage.has(X))return null;
K=_.D(K.storage.get(X));for(X=K.next();!X.done;X=K.next())if(X=X.value,!H||X.linkName===H)if(F&&X.scopes&&hWJ(X.scopes,F)||P&&X.capabilities&&hWJ(X.capabilities,P))return X;return null},G9V=function(K,X,F){if(!F)K.storage.delete(X);
else if(K.storage.has(X)){var P=K.storage.get(X).filter(function(H){return H.linkName!==F});
P.length>0?K.storage.set(X,P):K.storage.delete(X)}},hWJ=function(K,X){X=_.D(X);
for(var F=X.next();!F.done;F=X.next())if(!K.has(F.value))return!1;return!0};var lFG=function(){var K=_.e8("LINK_GAL_DOMAIN");this.alsDomain1p=_.e8("LINK_GAL_DOMAIN");this.alsDomain3p=K;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},vft=function(K,X){K.apiKey=X;
return K};
lFG.prototype.build=function(){var K={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Nj");K.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Oj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Pj");K.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(K.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)K.apiKey=
this.apiKey,K.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Qj");K.oauthToken=this.oauthToken;K.alsDomain=this.alsDomain3p}K.clientXd3=this.clientXd3;K.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(K.authUser=this.authUser);this.bucket!==void 0&&(K.bucket=this.bucket);this.completionUrl!==void 0&&(K.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(K.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(K.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(K.locale=this.locale);K.loggerType=this.loggerType;K.clientEnvironment=this.clientEnvironment;K.colorScheme=this.colorScheme;K.showCloseOption=this.showCloseOption;return K};var J2=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(J2,_.Gm);var aFJ=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(aFJ,_.Gm);var tdG=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(tdG,_.Gm);var Yk=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(Yk,_.Gm);var $Bw=function(K){return _.S3(K,1)};var O4s=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(O4s,_.Gm);var mid=_.Ks(O4s),Zc=[1,2,3,4,5];var eEo=function(K){try{return mid(K)}catch(X){return null}},Vdt=function(){},REw=function(K,X){switch(_.qe(X,Zc)){case 4:return(X=_.TQ(X,tdG,4,Zc))&&K.logStateTransition(_.S3(X,1)),!0;
case 5:return(X=_.TQ(X,aFJ,5,Zc))&&K.logInternalEvent(_.S3(X,1)),!0}return!1},Go8=function(K){switch(K){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.zJ(K)}};var W3F=function(K,X){var F=this;this.validator=K;this.messageListener=X;this.dismissCallback=function(){gfF(F,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$17111_receiveMessage=function(P){P.type==="message"&&(P=P.event_,P!==null&&(new URL(F.iframe.src)).origin===P.origin&&F.validator(P.data,P.origin)&&!F.messageListener(P.data)&&(F.JSC$17111_resolveCb!==void 0&&F.JSC$17111_resolveCb(P.data),EfV(F)))}},hEv=function(K,X,F){K.uiHandler!==void 0&&gfF(K,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(P,H){K.JSC$17111_resolveCb=P;K.JSC$17111_rejectCb=H;K.iframe=document.createElement("iframe");_.W$(K.iframe,X);K.uiHandler=F.displayContent(K.iframe,K.dismissCallback);_.nB(window,"message",K.JSC$17111_receiveMessage,!1,K)})},gfF=function(K,X){K.JSC$17111_rejectCb!==void 0&&K.JSC$17111_rejectCb(X);
EfV(K)},EfV=function(K){K.uiHandler!==void 0&&K.uiHandler.hideContent();
_.DG(window,"message",K.JSC$17111_receiveMessage,!1,K);K.JSC$17111_resolveCb=void 0;K.JSC$17111_rejectCb=void 0;K.uiHandler=void 0;K.iframe=void 0};var b4t=function(K){if(K===2){var X;K=((X=window)==null?0:X.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return K},UiV=function(K){K=b4t(K);
switch(K){case 0:return"light";case 1:return"dark";default:_.zJ(K)}};var dik=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),CC8=function(K,X){this.JSC$17123_linkingSession=K;this.noticeConfig=X;this.displayInfoMap=new Map;var F=new Map;if(_.zQ(this.JSC$17123_linkingSession,Ia5,7))for(K=_.xS(this.JSC$17123_linkingSession,Ia5,7),K=_.kp(K,x0s,1,_.KJ()),K=_.D(K),X=K.next();!X.done;X=K.next())X=X.value,F.set(_.S3(X,1),_.h_T(_.xS(X,_.FU9,3)));if(F.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){X=this.noticeConfig.enabledDataUsageNoticeUis;K=X.has(0)?F.get(1):void 0;X=X.has(1)?F.get(2):void 0;F=K!==void 0&&X!==void 0?F.get(3):void 0;var P=this.noticeConfig.nestedOrigins;var H=new O4s;var f=new J2;H=_.P$(H,2,Zc,f);f=new O4s;var u=new J2;f=_.P$(f,3,Zc,u);u=[];K!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:K,lastEvent:H,nestedOrigins:P}]),u.push({trustedUrl:K,lastEvent:H,nestedOrigins:P}));X!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:X,lastEvent:f,nestedOrigins:P}]),u.push({trustedUrl:X,lastEvent:f,nestedOrigins:P}));F!==void 0?this.displayInfoMap.set(3,[{trustedUrl:F,lastEvent:f,nestedOrigins:P}]):this.displayInfoMap.set(3,u)}};var Nnw=function(K){var X=new UBJ;this.galService=K;this.galCache=X};
Nnw.prototype.getLink=function(K){var X=K.serviceId;var F=K.scopes;var P=K.capabilities;var H=K.linkName;var f=this,u;return _.q(function(J){if(P!==void 0&&F!==void 0)throw Error("Rj");u=mBJ(f.galCache,X,F,P,H);return u!==null?J.return(u):J.return(f.galService.getLink({serviceId:X,sessionId:Math.floor(Math.random()*2147483648),scopes:F,capabilities:P,linkName:H}).then(function(Z){Z=$iW(Z);var M=f.galCache;M.storage.has(X)?M.storage.get(X).push(Z):M.storage.set(X,[Z]);return Z}))})};
Nnw.prototype.deleteLink=function(K,X,F){var P=this;return _.q(function(H){G9V(P.galCache,K,F);return H.return(P.galService.deleteLink({serviceId:K,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:X,linkName:F}).then(function(){return!0}))})};var xB8=function(K,X){var F=this;this.validator=K;this.msgHandler=X;this.closedPopupTimeout=this.JSC$17145_rejectCb=this.JSC$17145_resolveCb=this.popup=null;this.JSC$17145_receiveMessage=function(P){if(P!==null&&(P=P.event_,P.source===F.popup)){var H=P.data;if(F.validator(H,P.origin)){var f;(f=F.msgHandler)!=null&&f.call(F,H)||(F.JSC$17145_resolveCb!==null&&F.JSC$17145_resolveCb(H),i4k(F))}}}};
xB8.prototype.open=function(K,X){var F=this;this.popup!==null&&IFV(this);return new Promise(function(P,H){F.JSC$17145_resolveCb=P;F.JSC$17145_rejectCb=H;F.popup=_.ei(window,K,"",X);_.nB(window,"message",F.JSC$17145_receiveMessage,!1,F);k9w(F)})};
var IFV=function(K,X){K.JSC$17145_rejectCb!==null&&K.JSC$17145_rejectCb(X);i4k(K)},i4k=function(K){K.closedPopupTimeout&&(K.closedPopupTimeout.cancel(),K.closedPopupTimeout=null);
K.popup&&K.popup.close();_.DG(window,"message",K.JSC$17145_receiveMessage,!1,K);K.popup=null;K.JSC$17145_resolveCb=null;K.JSC$17145_rejectCb=null},k9w=function(K){K.closedPopupTimeout=_.URN(100).then(function(){K.popup?K.popup.closed?K_5(K):k9w(K):IFV(K,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},K_5=function(K){K.closedPopupTimeout=_.URN(100).then(function(){IFV(K,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var Xp8=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),F_k=function(K,X,F,P,H,f,u,J,Z,M){var n=this;this.serviceId=K;this.sessionId=X;this.galService=F;this.oauthDetails=P;this.galLogger=H;this.interactionMode=f;this.redirectServiceUrl=u;this.consentLanguageKeys=J;this.dynamicUrlParameters=Z;this.partnerConfigMinReadTimestamp=M;this.started=!1;this.JSC$17151_dataValidator=function(c,
B){var L=Xp8.has(B);L||n.redirectServiceUrl===void 0||(L=n.redirectServiceUrl===B);return L?c.sentinel==="gdi":!1}};
F_k.prototype.complete=function(){var K=this,X;return _.q(function(F){if(K.interactionMode!==1)return F.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));X=Mj.getRedirectStateFromUri();return X===null?F.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):F.return(P6v(K,X))})};
F_k.prototype.start=function(){var K=this,X;return _.q(function(F){if(K.started)return F.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.BL(K.oauthDetails,1))return F.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(K.interactionMode===1)return Mj.setLocation(_.BL(K.oauthDetails,1)),F.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));K.started=!0;K.galLogger.logStateTransition(5);
X=Mj.getPostMessagePopup(K.JSC$17151_dataValidator);return F.return(X.open(_.BL(K.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(P){K.started=!1;var H=K.galLogger;if((P==null?void 0:P.error)!==void 0)throw H.logInternalEvent(59),Error("Sj");if((P==null?void 0:P.redirect_state)===void 0)throw H.logInternalEvent(131),Error("Tj");return P6v(K,P.redirect_state)}).catch(function(P){K.started=
!1;
return P.errorCode!==void 0?{statusCode:P.errorCode,statusMessage:P.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var P6v=function(K,X){return _.q(function(F){return F.return(HSs(K.galService,{serviceId:K.serviceId,sessionId:K.sessionId,dynamicUrlParameters:K.dynamicUrlParameters,redirectState:X,consentLanguageKeys:K.consentLanguageKeys,partnerConfigMinReadTimestamp:K.partnerConfigMinReadTimestamp}).then(function(P){var H={statusCode:1,link:$iW(P.getLink())};WzJ(_.DR(P,3))!==void 0&&(H.callerState=WzJ(_.DR(P,3)));K.galLogger.logInternalEvent(134);return H}))})},Mj={getPostMessagePopup:function(K){return new xB8(K)},
getRedirectStateFromUri:function(){var K=_.az(Mj.getLocation()).fragment_;return(new _.Cu(K)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(K){_.Ev(window.location,_.ps(K))},
createOAuthFlow:function(K,X){return new F_k(K.serviceId,K.sessionId,K.galService,X,K.galLogger,K.interactionMode,K.redirectServiceUrl,K.consentLanguageKeys,K.dynamicUrlParameters,K.partnerConfigMinReadTimestamp)}};var skV=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(skV,_.Gm);var z4V=_.Ks(skV);var fbV=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),Ddv=function(K,X,F,P,H,f,u,J,Z){var M=this;this.serviceId=K;this.sessionId=X;this.galService=F;this.gsiWebFlowDetails=P;this.colorScheme=H;this.showCloseOption=f;this.galLogger=u;this.interactionMode=J;this.redirectServiceUrl=Z;this.started=!1;this.JSC$17163_dataValidator=function(n,c){var B=fbV.has(c);B||M.redirectServiceUrl===
void 0||(B=M.redirectServiceUrl===c);return B?n.sentinel==="gal":!1};
this.logEventProcessor=function(n){return n.result?(n=eEo(n.result))?REw(M.galLogger,n):!1:!1}};
Ddv.prototype.complete=function(){var K=this,X,F;return _.q(function(P){if(K.interactionMode!==1)return P.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));X=nP.getRedirectStateFromUri();if(X===void 0)return K.galLogger.JSC$17103_logErrorEvent(131),P.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return F=ujW(K,X),P.return(qyG(K,F))}catch(H){return P.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
Ddv.prototype.start=function(){var K=this,X;return _.q(function(F){if(K.started)return F.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.BL(K.gsiWebFlowDetails,1))return F.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(K.interactionMode===1)return nP.setLocation(JfJ(K,_.BL(K.gsiWebFlowDetails,1))),F.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
K.started=!0;X=nP.getPostMessagePopup(K.JSC$17163_dataValidator,K.logEventProcessor);return F.return(X.open(JfJ(K,_.BL(K.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(P){K.started=!1;if((P==null?void 0:P.result)===void 0)throw K.galLogger.JSC$17103_logErrorEvent(131),Error("Tj");P=ujW(K,P.result);return qyG(K,P)}).catch(function(P){K.started=!1;
return P.errorCode!==void 0?{statusCode:P.errorCode,statusMessage:P.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var JfJ=function(K,X){K=["result_channel",K.interactionMode===1?"2":"1","color_scheme",UiV(K.colorScheme),"show_close_option",K.showCloseOption];return Xns(X,K)},qyG=function(K,X){if(X!==null&&_.zQ(X,Yk,2)){var F,P=X==null?void 0:(F=_.xS(X,Yk,2))==null?void 0:_.S3(F,2);
P&&K.galLogger.JSC$17103_logErrorEvent(Go8(P));return $Bw(_.xS(X,Yk,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 K.galService.getLink({serviceId:K.serviceId,sessionId:K.sessionId,consistencyKey:_.BL(X,1)}).then(function(H){H=$iW(H);K.galLogger.logInternalEvent(134);return{statusCode:1,link:H}})},ujW=function(K,X){X=z4V(X);
if(!_.zQ(X,Yk,2)&&_.BL(X,1)==="")throw K.galLogger.JSC$17103_logErrorEvent(5),Error("Uj");return X},nP={getPostMessagePopup:function(K,X){return new xB8(K,X)},
getRedirectStateFromUri:function(){return _.tH(_.az(nP.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(K){_.Ev(window.location,_.ps(K))},
createStreamlinedFlow:function(K,X){return new Ddv(K.serviceId,K.sessionId,K.galService,X,K.colorScheme,K.showCloseOption,K.galLogger,K.interactionMode,K.redirectServiceUrl)}};var Pys=function(){var K=_.orw("GAL");this.storage=K?new _.cm(K):null};var mR=function(){};
_.r(mR,Vdt);mR.prototype.logStateTransition=function(){};
mR.prototype.logInternalEvent=function(){};
mR.prototype.JSC$17103_logErrorEvent=function(){};var ZSJ=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(ZSJ,_.Gm);ZSJ.prototype.getCompletionUrl=function(){return _.BL(this,15)};var GW=function(K,X,F,P,H,f){this.serviceId=K;this.environment=X;this.sessionId=F;this.colorSchemeSelected=P;this.colorThemeDisplayed=H;this.JSC$17176_transport=f;this.currentState=1};
_.r(GW,Vdt);GW.prototype.logStateTransition=function(K){var X=Yyo(this);X=_.It(X,3,this.currentState);X=_.It(X,1,K);this.currentState=K;K=QjF(1);this.dispatch(X,K)};
GW.prototype.logInternalEvent=function(K){K=QjF(K);this.dispatch(Yyo(this),K)};
GW.prototype.JSC$17103_logErrorEvent=function(K){var X=Yyo(this);X=_.It(X,1,10);K=QjF(K);this.dispatch(X,K)};
var Yyo=function(K){var X=new ZSJ;X=_.It(X,1,K.currentState);X=_.Qf(X,7,K.serviceId);var F,P;var H=((F=window)==null?0:(P=F.location)==null?0:P.href)?_.az(window.location.href).JSC$8042_domain_:"NO_PACKAGE_NAME";F=_.Qf(X,8,H);F=_.It(F,6,K.environment);F=_.Qf(F,5,"100");F=_.It(F,11,K.colorSchemeSelected);return _.It(F,12,K.colorThemeDisplayed)};
GW.prototype.dispatch=function(K,X){X===void 0&&(X=new _.xo);var F=X;K=K.serialize();F=_.Qf(F,8,K);_.MF(F,12,this.sessionId);this.JSC$17176_transport.dispatch(X)};var QkJ=function(K,X){this.loggerType=K;this.sessionIndex=X!=null?X:0},M6k;
QkJ.prototype.create=function(K,X,F,P,H){switch(this.loggerType){case 0:return new mR;case 1:return M6k||(M6k=(new _.qg(555,this.sessionIndex.toString())).build()),new GW(K,X,F,P,H,M6k);default:_.zJ(this.loggerType,"unknown logger type")}};var c2=[6,2,3,1],DFW=new Map([[4,1],[1,6],[2,2],[3,3]]),EgJ={statusCode:7,statusMessage:"Failed to create flow object"},XuG=function(K,X,F,P,H,f,u,J,Z,M){this.serviceId=K;this.sessionId=X;this.config=F;this.galService=P;this.JSC$17183_linkingSession=H;this.googleScopes=f;this.callerState=u;this.consentLanguageKeys=J;this.dynamicUrlParameters=Z;this.partnerConfigMinReadTimestamp=M;this.currentFlow=0;P=this.JSC$17183_linkingSession;H=new Set;_.zQ(P,xi8,1)&&H.add(1);_.zQ(P,KWk,2)&&_.zQ(P,ITt,6)&&H.add(2);
_.zQ(P,kDo,3)&&_.zQ(P,ITt,6)&&H.add(3);_.zQ(P,iBv,4)&&H.add(6);this.supportedFlows=H;P=F.loggerType;H=F.clientEnvironment;a:{f=F.colorScheme;switch(f){case 0:f=1;break a;case 1:f=2;break a;case 2:f=3;break a;default:_.zJ(f)}f=void 0}a:{u=F.colorScheme;u=b4t(u);switch(u){case 0:u=1;break a;case 1:u=2;break a;default:_.zJ(u)}u=void 0}this.galLogger=(new QkJ(P,F.authUser)).create(K,H,X,f,u)},cfs=function(K){return new Promise(function(X){var F,P,H,f,u,J,Z,M,n,c;
return _.q(function(B){switch(B.nextAddress){case 1:F=ko1(K.currentFlow,K.supportedFlows),P=!1,H=new CC8(K.JSC$17183_linkingSession,K.config.dataUsageNoticeConfig);case 2:if(F===void 0){B.jumpTo(4);break}_.s2(B,5);var L=H,A=F,d=void 0;P?A===1&&(d=L.displayInfoMap.get(2)):A===2||A===3?d=L.displayInfoMap.get(1):A===1&&(d=L.displayInfoMap.get(3));f=d?d:[];u=K.consentLanguageKeys;J=_.D(f);Z=J.next();case 7:if(Z.done)return K.currentFlow=F,_.Y(B,CU5(naG(K,u)),11);M=Z.value;return _.Y(B,lTG(M,K.config.dataUsageNoticeConfig.uiAdapter,
K.config.colorScheme,K.galLogger),10);case 10:n=B.yieldResult;if(n.statusCode!==1)return HLV(K.serviceId),K.currentFlow=0,X(Qx({statusCode:n.statusCode,statusMessage:n.statusMessage},K.callerState)),B.return();n.consentLanguageKeys!==void 0&&(u=n.consentLanguageKeys);Z=J.next();B.jumpTo(7);break;case 11:c=B.yieldResult;if(c.statusCode!==10)return c.statusCode!==6&&(HLV(K.serviceId),K.currentFlow=0),c.statusCode!==1&&K.callerState!==void 0&&(c.callerState=K.callerState),X(c),B.return();_.Gy(B,6);break;
case 5:_.qc(B);case 6:F=ko1(K.currentFlow,K.supportedFlows);P=!0;B.jumpTo(2);break;case 4:HLV(K.serviceId),K.currentFlow=0,X(Qx({statusCode:12,statusMessage:"Linking failed"},K.callerState)),_.JT(B)}})})},zM5=function(K,X,F){K.currentFlow=X;
return NGV(naG(K,F)).then(function(P){return P.statusCode===10&&K.config.interactionMode===1&&ko1(K.currentFlow,K.supportedFlows)!==void 0?cfs(K):P})},naG=function(K,X){return{flowParams:{serviceId:K.serviceId,
sessionId:K.sessionId,galService:K.galService,galLogger:K.galLogger,interactionMode:K.config.interactionMode,redirectServiceUrl:K.config.redirectServiceUrl,colorScheme:K.config.colorScheme,consentLanguageKeys:X,dynamicUrlParameters:K.dynamicUrlParameters,showCloseOption:K.config.showCloseOption,partnerConfigMinReadTimestamp:K.partnerConfigMinReadTimestamp},currentFlow:K.currentFlow,config:K.config,session:K.JSC$17183_linkingSession,googleScopes:K.googleScopes,callerState:K.callerState}};var puG=function(K,X){this.config=K;this.galService=X.getService();this.JSC$17196_galRepository=X.JSC$17233_galRepository};
puG.prototype.getLink=function(K,X){return ppv(this,K,X)};
var ppv=function(K,X,F){return K.JSC$17196_galRepository.getLink({serviceId:X,scopes:void 0,capabilities:void 0,linkName:F}).then(function(P){return{statusCode:1,link:P}}).catch(function(P){return{statusCode:uYW(P.code),
statusMessage:P.message}})};
puG.prototype.deleteLink=function(K,X){return this.JSC$17196_galRepository.deleteLink(K,this.config.accountLinkingEntryPoint,X).then(function(){return{statusCode:1}}).catch(function(F){return{statusCode:uYW(F.code),
statusMessage:F.message}})};
puG.prototype.startLinkingSession=function(K){var X=K.serviceId;var F=K.sessionId;return FcJ({serviceId:X,sessionId:F!==void 0?F:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:K.loginHint,callerState:K.callerState,consentLanguageKeys:K.consentLanguageKeys,linkName:K.linkName,dynamicUrlParameters:K.dynamicUrlParameters,partnerConfigMinReadTimestamp:K.partnerConfigMinReadTimestamp})};var qj8=null,QIv=new WeakMap;var BVk=function(){};
BVk.prototype.send=function(K,X){c_F(K);return this.makeRequest(K).then(function(F){if(X){var P=new X;if(F!=null){if(X==null)throw Error("Wj");new X;throw Error("Yj");}F=P}return F})};var Sy1=function(K,X,F,P,H){this.gapiUrl=K;this.gapiKey=X;this.gapiConfigUpdates=F||{};this.gapiAuthParams=P||{};this.defaultApiId=H};
_.r(Sy1,BVk);var L_o=function(K){return ZL1().then(function(X){X=X||window.gapi;oat(K,X);return n35(X,{apiKey:K.gapiKey,clientId:K.gapiAuthParams.clientId,scope:K.gapiAuthParams.scope,hostedDomain:K.gapiAuthParams.hostedDomain,fetchBasicProfile:K.gapiAuthParams.fetchBasicProfile}).then(function(){return X})})};
Sy1.prototype.makeRequest=function(K){var X=this;return L_o(this).then(function(F){return _.q(function(P){if(P.nextAddress==1)return X.gapiAuthParams.minAuthTokenTimeRemaining===void 0?P.jumpTo(2):_.Y(P,MFW(F,X.gapiAuthParams.minAuthTokenTimeRemaining),2);oat(X,F);return P.return(TV8(F.client.request({root:X.gapiUrl,path:K.path,method:K.httpMethod,body:K.body,params:K.queryParams,headers:K.headers,authType:K.authType,apiId:K.apiId||X.defaultApiId})))})})};
var TV8=function(K){return new Promise(function(X,F){K.then(function(P){X(P.result===!1&&P.body!=null?{data:P.body}:P.result)},function(P){F(P.result===!1&&P.body!=null?{data:P.body}:P.result)})})},oat=function(K,X){for(var F in K.gapiConfigUpdates)if(K.gapiConfigUpdates.hasOwnProperty(F)){var P=X,H=F,f=K.gapiConfigUpdates[F],u=P.config.get(H);
f!==u&&P.config.update(H,f)}};
Sy1.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var lg=function(K,X,F,P,H,f,u,J){this.apiKey=X;this.authUser=F;this.oauthToken=P;this.bucket=H;this.locale=u;this.galSdkEventHandler=J;if(P===void 0){if(X===void 0)throw Error("Zj");this.requestService=new Sy1(K,X,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":f===void 0||f===!1,"client/xd3":f===!0})}this.galServiceClient=new eWV(K)};
lg.prototype.deleteLink=function(K){var X=K.serviceId;var F=K.sessionId;var P=K.accountLinkingEntryPoint;var H=K.linkName;var f=this,u;return _.q(function(J){var Z=(new BZ).setHeader(vZ(f,F));var M=rfW({serviceId:X,linkName:H});Z=_.Fw(Z,2,M);u=_.Ab(Z,3,P);return J.return(f.makeRequest(f.galServiceClient.deleteLink,u,[1,3],[2,4]))})};
var HSs=function(K,X){var F=X.serviceId;var P=X.sessionId;var H=X.dynamicUrlParameters;var f=X.redirectState;var u=X.consentLanguageKeys;var J=X.partnerConfigMinReadTimestamp;var Z;return _.q(function(M){var n=(new o_).setHeader(vZ(K,P,H));n=_.$R(n,2,F);Z=_.$R(n,4,f);u!==void 0&&_.$R(Z,5,u);J!==void 0&&_.Fw(Z,6,J);return M.return(K.makeRequest(K.galServiceClient.JSC$17082_finishOAuth,Z,[1,3],[2,4]))})};
lg.prototype.getLink=function(K){var X=K.serviceId;var F=K.sessionId;var P=K.scopes;var H=K.capabilities;var f=K.consistencyKey;var u=K.linkName;var J=this,Z;return _.q(function(M){var n=(new L0).setHeader(vZ(J,F)),c=rfW({serviceId:X,scopes:P,capabilities:H,linkName:u});Z=_.Fw(n,2,c);f!==void 0&&(n=GDJ(),n=_.$R(n,2,f),_.Fw(Z,3,n));return M.return(J.makeRequest(J.galServiceClient.getLink,Z,[1,3],[2,4]))})};
var iQ5=function(K,X){var F=X.serviceId;var P=X.sessionId;var H=X.googleScopes;var f=X.consistencyKey;var u;return _.q(function(J){var Z=(new Sx).setHeader(vZ(K,P));Z=_.$R(Z,2,F);var M=Array.from(H.values());Z=_.Lx(Z,3,M,_.GJ);M=GDJ();M=_.$R(M,2,f);u=_.Fw(Z,4,M);return J.return(K.makeRequest(K.galServiceClient.JSC$17082_depositGoogleCredential,u,[1,3],[2,4]))})};
lg.prototype.startLinkingSession=function(K){var X=K.serviceId;var F=K.sessionId;var P=K.scopes;var H=K.capabilities;var f=K.loginHint;var u=K.supportedFlows;var J=K.completionUrl;var Z=K.usePingPong;var M=K.twoWayLinking;var n=K.accountLinkingEntryPoint;var c=K.callerState;var B=K.consentLanguageKeys;var L=K.googleScopes;var A=K.dataUsageNoticeConfig;var d=K.linkName;var R=K.dynamicUrlParameters;var l=K.partnerConfigMinReadTimestamp;var a=this,E,V;return _.q(function(x){if(H!==void 0&&P!==void 0)throw Error("Rj");
var N=(new TW).setHeader(vZ(a,F,R));E=_.$R(N,2,X);d!==void 0&&_.$R(E,14,d);if(H!==void 0){N=E;var Dl=Array.from(H.values());_.Lx(N,5,Dl,_.GJ)}else P!==void 0&&(N=E,Dl=Array.from(P.values()),_.Lx(N,3,Dl,_.GJ));J!==void 0&&_.$R(E,6,J);Z!==void 0&&_.oJ(E,15,Z);u!==void 0&&(N=E,Dl=Array.from(u.values()),_.Lx(N,4,Dl,_.os));if(M!==void 0){if(M&&(!L||L.size===0))throw Error("$j");_.oJ(E,8,M)}n!==void 0&&_.Ab(E,9,n);f!==void 0&&_.$R(E,13,f);c!==void 0&&(N=E,Dl=(new TextEncoder).encode(c),_.Tm(N,12,_.lu(Dl,
!1),_.GE()));B!==void 0&&_.$R(E,16,B);l!==void 0&&_.Fw(E,18,l);if(A!==void 0&&A.size>0||L!==void 0&&L.size>0)V=new FWF,L!==void 0&&L.size>0&&(N=V,Dl=Array.from(L.values()),_.Lx(N,1,Dl,_.GJ)),A!==void 0&&(A.has(0)&&_.fdn(V,2,_.os,1,_.Lt),A.has(1)&&_.fdn(V,2,_.os,2,_.Lt)),_.Fw(E,17,V);return x.return(a.makeRequest(a.galServiceClient.startLinkingSession,E,[1],[2]))})};
lg.prototype.getMetadata=function(){var K=this,X,F,P;return _.q(function(H){if(H.nextAddress==1)return X={},K.requestService?_.Y(H,L_o(K.requestService),3):(X.Authorization="Bearer "+K.oauthToken,H.jumpTo(2));H.nextAddress!=2&&(F=H.yieldResult,X["X-Goog-Api-Key"]=K.apiKey,X["X-Goog-AuthUser"]=K.authUser!==void 0?K.authUser.toString():"0",(P=F.auth.getAuthHeaderValueForFirstParty([]))&&(X.Authorization=P));K.locale&&(X["accept-language"]=K.locale);return H.return(X)})};
lg.prototype.makeRequest=function(K,X,F,P){var H=this,f;return _.q(function(u){if(u.nextAddress==1)return _.Y(u,H.getMetadata(),2);f=u.yieldResult;Afv(H,F);return u.return(K.bind(H.galServiceClient)(X,f).finally(function(){Afv(H,P)}))})};
var Afv=function(K,X){K.galSdkEventHandler!==void 0&&X.forEach(function(F){K.galSdkEventHandler.onEvent(F)})},vZ=function(K,X,F){var P=new n0;
X=_.Tm(P,2,_.r1(X),0);X=_.Ab(X,5,3);F=_.Lx(X,8,F,_.GJ);K.bucket!==void 0&&_.$R(F,1,K.bucket);return F},rfW=function(K){var X=K.serviceId;
var F=K.scopes;var P=K.capabilities;K=K.linkName;if(P!==void 0&&F!==void 0)throw Error("Rj");var H=new hcJ;X=_.$R(H,1,X);P!==void 0?(F=Array.from(P.values()),_.Lx(X,5,F,_.GJ)):F!==void 0&&(F=Array.from(F.values()),_.Lx(X,3,F,_.GJ));K!==void 0&&_.$R(X,6,K);return X};var Bcd=function(K){this.galService=new lg(K.alsDomain,K.apiKey,K.authUser,K.oauthToken,K.bucket,K.clientXd3,K.locale,K.galSdkEventHandler);this.JSC$17233_galRepository=new Nnw(this.galService)};
Bcd.prototype.getService=function(){return this.galService};var jk8=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(jk8,_.Gm);var wpd=function(K){var X=new jk8;return _.It(X,1,K)};
jk8.prototype.setErrorMessage=function(K){return _.Qf(this,2,K)};var yft=[0,_.vL,_.mg,_.vL];var a_=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(a_,_.Gm);var W_s=[0,[1,2,3],_.lQ,[0,Oat,Ec8,-1],_.lQ,[0,gct,-1],_.Wel];var ddv=[0,_.Rc,1,_.vL,_.mg,-1,1,_.RgP,_.e3,_.vL,-1,W_s];var e4V=[0,_.vL,[0,_.RgP,_.e3,[0,_.mg]],_.UX,[0,_.vL,-1]];var XV=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(XV,_.Gm);var R4o=[0,_.mg,_.vL,-2,_.Rc,_.vL,_.Rc,_.vL,-2,1,_.UX];var Uds=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(Uds,_.Gm);var h4G=[0,_.Rc];var mdV=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(mdV,_.Gm);var Glt=[0,_.vL,e4V,h4G,R4o,ddv];var NIG=_.x8(mdV,Glt);var lbv=[0,RW1];var XIF=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(XIF,_.Gm);var va5=[0,[1,3],IA8,_.vL,IA8];var kk=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(kk,_.Gm);var abv=[0,_.vL];var t6s=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(t6s,_.Gm);var K0=function(K){return _.TQ(K,jk8,2,IP)},$d5=function(K){var X=new t6s;
return _.P$(X,2,IP,K)},IP=[1,
2];var OSV=[0,IP,_.lQ,abv,_.lQ,yft,_.GQ,va5,1,_.vL,lbv];var V61=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(V61,_.Gm);var Eat=function(K){var X=new V61;return _.P$(X,3,ga5,K)},ga5=[2,
3];var tX=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(tX,_.Gm);var bSv=function(K,X){return _.Fw(K,2,X)},C6k=function(K,X){return _.Fw(K,8,X)},NVd=function(K,X){return _.Fw(K,3,X)};var iSw=[0,_.vL,OSV,Glt,_.hTt,[0,[5,6],[0,_.vL,-2],[0,_.Rc,_.vL,_.mg],[0,W_s],[0,_.mg,_.vL,-1,_.UVC,_.vL],_.lQ,[0,[0,_.Rc],_.vL,-1],_.lQ,[0,[3,4],_.vL,-1,_.lQ,[0,[0,_.vL,_.UX]],_.lQ,[0,[0,[0,[1,2],_.lQ,[0],_.lQ,[0]]]]]],_.hTt,-1,[0,ga5,_.vL,_.lQ,abv,_.lQ,yft,_.GQ,va5,[0,RW1]]];var xd8=_.x8(tX,iSw),Ibt=_.I0(iSw);var klJ=function(){_.LJ.call(this)};
_.r(klJ,_.LJ);klJ.prototype.init=function(){};
new klJ;var Kmd=_.lr(["data-"]),XGk=_.lr(["aria-"]),Fmv=_.lr(["aria-"]),$6=function(K,X){this.isLatencyMeasurementExperiment=K===void 0?!1:K;this.enableDialogA11yFix=X===void 0?!1:X;this.JSC$17262_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.fQL(_.FP.location.href)},xaw=function(K,X){K.onConsentPrimitiveShownCallback=X},Pf5=function(K,X){return K.overriddenIframeLoadTimeout?K.overriddenIframeLoadTimeout:X!==void 0?X:5E3},kSG=function(K){if(K.prewarmPromise!==void 0)return K.prewarmPromise;
K.prewarmPromise=new Promise(function(X,F){Od(K,1);Hjw(K,sns(K,!0),zIo(K));K.iframe?K.prewarmChannel||fV8(K,K.iframe,X):F(Error("ak"))});
K.prewarmPromise.finally(function(){K.prewarmPromise=void 0});
return K.prewarmPromise};
$6.prototype.showPrimitive=function(){var K=this;if(this.consentPromise!==void 0)return this.consentPromise;var X=Date.now();Dyw(this,X);this.consentPromise=new Promise(function(F,P){Od(K,0,X);var H=K.isDarkTheme();K.isLatencyMeasurementExperiment||K.initialLoadingStrategy===1||K.initialLoadingStrategy===2||(K.loadingBar||(K.loadingBar=Tcw(getComputedStyle(document.body).direction==="rtl",H),K.loadingBar.style.position="fixed",K.loadingBar.style.zIndex="15000"),document.body.appendChild(K.loadingBar));
Hjw(K,sns(K),zIo(K));K.iframe?K.channel||ucs(K,K.iframe,F,P):(qDv(K),P(Error("ak")))});
this.consentPromise.finally(function(){K.consentPromise=void 0});
return this.consentPromise};
var ucs=function(K,X,F,P){var H,f;_.q(function(u){switch(u.nextAddress){case 1:Od(K,3);H=!1;setTimeout(function(){if(!H){qDv(K);JqF(K);Zj8(K);var J=wpd(7).setErrorMessage("Timeout connecting to iframe");F(C6k(bSv(new tX,$d5(J)),Eat(J)))}},Pf5(K,YDF(K)));
if(!K.prewarmPromise){u.jumpTo(2);break}_.s2(u,3);return _.Y(u,K.prewarmPromise,5);case 5:_.Gy(u,2);break;case 3:_.qc(u),f=wpd(4).setErrorMessage("Error while prewarming."),F(C6k(bSv(new tX,$d5(f)),Eat(f)));case 2:K.prewarmChannel&&K.prewarmChannel.send(Ibt(NVd(new tX,K.consentPrimitiveRequest))),K.channel=_.$_({destination:K.JSC$17262_win,iframe:X,origin:Qn8(K),channelName:"cpw",onEstablished:function(){H=!0;qDv(K);K.isLatencyMeasurementExperiment||(K.JSC$17262_previousBodyOverflow=document.body.style.overflow,
K.JSC$17262_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,K.JSC$17262_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",K.enableDialogA11yFix&&window.addEventListener("blur",K.focusChangeListener));var J=K.iframe;J.style.bottom="0";J.style.position="fixed";J.style.right="0";J.style.border="none";J.style.left="0";J.style.top=
"0";J.style.zIndex="5000";J.style.pointerEvents="";J.style.visibility="";K.initialLoadingStrategy===2||K.initialLoadingStrategy===3?Od(K,4):Od(K,6);var Z;(Z=K.onConsentPrimitiveShownCallback)==null||Z.call(K)},
onMessage:function(J){J=xd8(J.data);switch(_.S3(J,1)){case 1:JqF(K);var Z=r_G(_.xS(J,_.y$,7));Z&&(K.initialLoadingStrategy!==2&&K.initialLoadingStrategy!==3||Od(K,6,Z),Od(K,5,Z));if(Z=r_G(_.xS(J,_.y$,6)))Od(K,7,Z),Od(K,8);var M,n;((M=_.xS(J,t6s,2))==null?void 0:_.qe(M,IP))!==0&&((n=_.xS(J,V61,8))==null?void 0:_.qe(n,ga5))!==0||P(Error("bk"));F(J);break;case 2:Zj8(K)}}}),_.JT(u)}})},fV8=function(K,X,F){K.prewarmChannel=_.$_({destination:K.JSC$17262_win,
iframe:X,origin:Qn8(K),channelName:"pwcp",onEstablished:function(){Od(K,2);F()}})},Qn8=function(K){var X=_.ui(K.src).toString();
return X&&X.indexOf("://")<0&&X.indexOf("//")!==0?K.origin:_.fQL(X)},sns=function(K,X){X=X===void 0?!1:X;
var F,P=new Map([["origin",K.origin],["hl",(F=MIW(K))!=null?F:null]]);X&&P.set("pw","1");X=_.D([["cpr",K.consentPrimitiveRequest.serialize()]]);for(F=X.next();!F.done;F=X.next()){var H=_.D(F.value);F=H.next().value;H=H.next().value;P.set(F,H)}K.isDarkTheme()&&P.set("color_scheme","dark");return _.Fs(K.src,P)},qDv=function(K){K.isLatencyMeasurementExperiment||K.loadingBar&&document.body.removeChild(K.loadingBar)};
$6.prototype.getSrc=function(){var K=_.g2(this.origin),X;var F=(X=_.xS(this.consentPrimitiveRequest,Uds,3))==null?void 0:_.XA(X,1);X="consent.google.com";F=F?"/u/"+encodeURIComponent(F.toString()):"";(K==null?0:K.endsWith("youtube.com"))?X="consent.youtube.com":(K=K==null?void 0:K.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(X="consent.google."+((K[1]?"co.":"")+encodeURIComponent(K[2])));return _.DX("https://"+X+"/signedin"+F+"/landing")};
var Hjw=function(K,X,F){K.iframe||(K.iframe=document.createElement("iframe"),K.iframe.style.width="100%",K.iframe.style.height="100%",F!==112496729&&(K.iframe.style.colorScheme="auto"),K.isLatencyMeasurementExperiment&&(K.iframe.style.display="none"),_.W$(K.iframe,X),K.iframe.setAttribute("jsname","C5o1O"),nRt(K.iframe),document.body.appendChild(K.iframe))},nRt=function(K){K.style.bottom="-200vh";
K.style.position="fixed";K.style.right="-200vw";K.style.border="";K.style.left="";K.style.top="";K.style.zIndex="";K.style.pointerEvents="none";K.style.visibility="hidden"},JqF=function(K){K.iframe&&(K.isLatencyMeasurementExperiment||(K.JSC$17262_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=K.JSC$17262_previousHtmlOverscroll),K.JSC$17262_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=K.JSC$17262_previousBodyOverscroll),K.JSC$17262_previousBodyOverflow!==
void 0&&(document.body.style.overflow=K.JSC$17262_previousBodyOverflow),K.enableDialogA11yFix&&cqW(K,!1)),nRt(K.iframe))};
$6.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(cqW(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var cqW=function(K,X){var F,P,H=(F=K.iframe)==null?void 0:(P=F.parentElement)==null?void 0:P.children;if(H)for(F=0;F<H.length;F++)P=H[F],P!==K.iframe&&(X?(P.hasAttribute("aria-hidden")&&_.af([_.kE(Kmd)],P,"data-old-aria-hidden",P.getAttribute("aria-hidden")),_.af([_.kE(XGk)],P,"aria-hidden","true")):(P.removeAttribute("aria-hidden"),P.hasAttribute("data-old-aria-hidden")&&(_.af([_.kE(Fmv)],P,"aria-hidden",P.getAttribute("data-old-aria-hidden")),P.removeAttribute("data-old-aria-hidden"))))},Od=function(K,
X,F){var P;
(P=K.latencyCallback)==null||P.call(K,{latencyType:X,timestampEpochMillis:F!=null?F:Date.now()})};var pGd=function(K,X,F){$6.call(this,X,F===void 0?!1:F);this.consentPrimitiveRequest=K;K=MIW(this);_.YNF(K);this.src=this.getSrc();var P;this.initialLoadingStrategy=(P=_.xS(this.consentPrimitiveRequest,XV,4))==null?void 0:_.S3(P,4)},BMF;
_.r(pGd,$6);var iIt=function(K){var X=_.S("enable_primitive_dialog_aria_hide_siblings");K={request:K,enableDialogA11yFix:X===void 0?!1:X};BMF||(BMF=new pGd(K.request,K.isLatencyMeasurementExperiment||_.S3(K.request,1)===2,K.enableDialogA11yFix));return BMF},MIW=function(K){var X;
return(X=_.xS(K.consentPrimitiveRequest,XV,4))==null?void 0:_.BL(X,1)},Dyw=function(K,X){if(!_.zQ(K.consentPrimitiveRequest,a_,5)){var F=K.consentPrimitiveRequest,P=new a_;
_.Fw(F,5,P)}var H;if((H=_.xS(K.consentPrimitiveRequest,a_,5))==null||_.ZW4(_.sX(H,8))==null){var f;(f=_.xS(K.consentPrimitiveRequest,a_,5))!=null&&_.MF(f,8,X)}},zIo=function(K){var X;
return(X=_.xS(K.consentPrimitiveRequest,a_,5))==null?void 0:_.XA(X,1)};
pGd.prototype.isDarkTheme=function(){var K;return((K=_.xS(this.consentPrimitiveRequest,XV,4))==null?void 0:_.S3(K,2))===2};
var YDF=function(K){var X;return((X=_.xS(K.consentPrimitiveRequest,XV,4))==null?void 0:_.XA(X,5))||void 0},Zj8=function(K){K.channel=void 0;
K.prewarmChannel=void 0;K.iframe&&(document.body.contains(K.iframe)&&document.body.removeChild(K.iframe),K.iframe=void 0);BMF=void 0},K5k=function(K){return $6.prototype.showPrimitive.call(K).then(function(X){return _.xS(X,t6s,2)})};for(var VV={},SDv=(VV[64]="ma",VV[73]="ogb",VV[89]="cr",VV[21]="test",VV[0]="unkn",VV[137]="con",VV[155]="hl",VV[78]="yt",VV[171]="lp",VV[172]="ap",VV[177]="amo",VV[178]="pqe",VV[74]="gg",VV[1]="gm",VV[140]="am",VV[193]="sc",VV),oRt=_.D(Object.keys(SDv)),Lm8=oRt.next();!Lm8.done;Lm8=oRt.next());var TMs=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(TMs,_.Gm);var rqF=[0,[2,3,4],_.vL,VuJ,IA8,_.Wel];var Aqd=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(Aqd,_.Gm);var jn1=_.x8(Aqd,[0,xYJ,_.mg,_.vL,_.mg,_.vL,rqF]);var wGd=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(wGd,_.Gm);wGd.prototype.getCommand=function(){return _.S3(this,1)};
var yqd=function(){var K=new wGd;return _.Ab(K,1,0)};var Wmv=_.I0([0,xYJ,_.mg,[0,_.vL,_.mg,-1]]);var dyo=new _.PD("s"),eIt=new _.PD("t"),RI8=new _.PD("u"),UyJ=new _.PD("v"),hIW=function(K,X,F){_.HD.call(this,dyo);this.mediaKey=K;this.photoUrl=X;this.photoSource=F};
_.r(hIW,_.HD);var my8=function(){_.HD.call(this,eIt)};
_.r(my8,_.HD);var GXk=function(K){K=K===void 0?!1:K;_.HD.call(this,RI8);this.isError=K};
_.r(GXk,_.HD);var lVV=function(){_.HD.call(this,UyJ)};
_.r(lVV,_.HD);var vRV=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,Ojw=function(K){if(typeof K=="string"){if(K.charAt(0)==".")return aV8(K.substr(1));if(K.charAt(0)=="["){var X=vRV.exec(K);K=K.indexOf("=")==-1?void 0:X[3];return tIt(X[1],K)}return $yv(K)}return K},aV8=function(K){return function(X){return X.getAttribute&&_.dY(X,K)}},tIt=function(K,X){return function(F){return X!==void 0?F.getAttribute&&F.getAttribute(K)==X:F.hasAttribute&&F.hasAttribute(K)}},$yv=function(K){K=K.toUpperCase();
return function(X){return(X=X.tagName)&&X.toUpperCase()==K}},VIG=function(){return!0};var gy=function(K,X){this.JSC$17290_key_=K;this.JSC$17290_value_=X},Ed=function(K){throw Error("ck`"+K.JSC$17290_key_);
},gRJ=function(K,X){return new TypeError("dk`"+X+"`"+K.JSC$17290_key_+"`"+K.JSC$17290_value_+"`"+typeof K.JSC$17290_value_)};
gy.prototype.string=function(K){if(arguments.length==0)var X=ERv(this);else{var F;X=(F=bj1(this))!=null?F:K}return X};
var ERv=function(K){var X=bj1(K);X===null&&Ed(K);return X},bj1=function(K){var X=K.JSC$17290_value_;
if(X==null)return null;if(typeof X==="string")return X;throw gRJ(K,"string");};
gy.prototype.bool=function(K){if(arguments.length==0){var X=this.optionalBool();X===null&&Ed(this)}else{var F;X=(F=this.optionalBool())!=null?F:K}return X};
gy.prototype.optionalBool=function(){var K=this.JSC$17290_value_;if(K==null)return null;if(typeof K==="boolean")return K;if(typeof K==="string"){K=K.toLowerCase();if(K==="true"||K==="1")return!0;if(K==="false"||K==="0")return!1}throw gRJ(this,"boolean");};
gy.prototype.number=function(K){if(arguments.length==0){var X=Cfd(this);X===null&&Ed(this)}else{var F;X=(F=Cfd(this))!=null?F:K}return X};
var Cfd=function(K){var X=K.JSC$17290_value_;if(X==null)return null;if(typeof X==="number")return X;if(typeof X==="string"){var F=Number(X);if(!isNaN(F)&&(F!==0||X.trim().length!==0))return F}throw gRJ(K,"number");};
gy.prototype.toString=function(){return ERv(this)};
gy.prototype.array=function(K){if(arguments.length==0){var X=NMk(this);X===null&&Ed(this);return X}X=NMk(this);return X==null?K:X};
var NMk=function(K){var X=K.JSC$17290_value_;if(X==null)return null;Array.isArray(X)||(typeof X!=="string"?X=[X]:(X=X.trim(),X=X==""?[]:X.split(",").map(function(F){return F.trim()})));
return ijs(K,X)},ijs=function(K,X){var F=K.JSC$17290_key_+"[";
return Array.from(X,function(P,H){return new gy(F+H+"]",P)})};
gy.prototype.object=function(K){var X=this.JSC$17290_value_;if(X==null)return K===void 0&&Ed(this),K;if(typeof X==="object"&&X.constructor===Object){K={};var F=this.JSC$17290_key_+".",P;for(P in X)K[P]=new gy(F+P,X[P]);return K}throw gRJ(this,"object");};var bg=function(K){this.list_=xys(K)},xys=function(K){if(K instanceof bg)K=K.list_;
else if(K[0]instanceof bg){for(var X=new Set,F=0;F<K.length;F++)for(var P=_.D(K[F].list_),H=P.next();!H.done;H=P.next())X.add(H.value);K=X}return[].concat(_.LZ(K))};
_.z=bg.prototype;_.z.each=function(K,X,F){((F===void 0?0:F)?AVJ:_.vd)(this.list_,K,X);return this};
_.z.size=function(){return this.list_.length};
_.z.isEmpty=function(){return this.list_.length===0};
_.z.get=function(K){return this.list_[K]||null};
_.z.el=function(){return this.list_[0]||null};
_.z.map=function(K,X){return _.AE(this.list_,K,X)};
_.z.equals=function(K){return this===K||_.fW(this.list_,K.list_)};
_.z.first=function(){return this.list_.length==0?null:new C0(this.list_[0])};
_.z.find=function(K){var X=[];this.each(function(F){F=F.querySelectorAll(String(K));for(var P=0;P<F.length;P++)X.push(F[P])});
return new bg(X)};
_.z.parent=function(){var K=[];this.each(function(X){(X=X.parentElement||null)&&!_.Ol(K,X)&&K.push(X)});
return new bg(K)};
_.z.children=function(){var K=[];this.each(function(X){X=_.Sh(X);for(var F=0;F<X.length;F++)K.push(X[F])});
return new bg(K)};
_.z.filter=function(K){K=_.Ck(this.list_,Ojw(K));return new bg(K)};
_.z.closest=function(K){var X=[],F=Ojw(K),P=function(H){return _.gG(H)&&F(H)};
this.each(function(H){(H=_.RR(H,P,!0))&&!_.Ol(X,H)&&X.push(H)});
return new bg(X)};
_.z.next=function(K){return IVV(this,_.rMQ,K)};
_.z.prev=function(K){return IVV(this,kbt,K)};
var IVV=function(K,X,F){var P=[];var H=F?Ojw(F):VIG;K.each(function(f){(f=X(f))&&H(f)&&P.push(f)});
return new bg(P)};
bg.prototype.setClass=function(K){return this.each(function(X){_.WD(X,K)})};
var kXF=function(K,X){return K.each(function(F){_.tY(F,X)})},Klw=function(K,X){return K.each(function(F){_.vn(F,X)})};
bg.prototype.toggleClass=function(K,X){return X===!0?kXF(this,K):X===!1?Klw(this,K):this.each(function(F){_.dY(F,K)?_.vn(F,K):_.tY(F,K)})};
bg.prototype.setText=function(K){return this.each(function(X){_.oY(X,K)})};
var XjW=function(K){K.each(function(X){X.removeAttribute("aria-hidden")})};
bg.prototype.getStyle=function(K){if(this.list_.length>0){var X=this.list_[0],F=X.style[_.uX(K)];return typeof F!=="undefined"?F:X.style[_.llL(X,K)]||""}};
bg.prototype.getData=function(K){if(this.list_.length===0)return new gy(K,null);var X=eDJ(this.list_[0],K);return new gy(K,X)};
bg.prototype.focus=function(K){try{K?this.el().focus(K):this.el().focus()}catch(X){}return this};
bg.prototype.click=function(){var K=_.yf(this.el());if(K.createEvent){var X=K.createEvent("MouseEvents");X.initMouseEvent("click",!0,!0,K.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(X)}else K=K.createEventObject(),K.clientX=0,K.clientY=0,K.screenX=0,K.screenY=0,K.altKey=!1,K.ctrlKey=!1,K.shiftKey=!1,K.button=0,this.el().fireEvent("onclick",K)};
var N8=function(K,X,F,P){function H(J,Z,M){var n=Z;Z&&Z.parentNode&&(n=Z.cloneNode(!0));J(n,M)}
P=P===void 0?!1:P;if(K.list_.length==1){var f=K.list_[0],u=function(J){return X(J,f)};
F instanceof bg?F.each(u,void 0,P):Array.isArray(F)?(P?AVJ:_.vd)(F,u):u(F);return K}return K.each(function(J){F instanceof bg?F.each(function(Z){H(X,Z,J)}):Array.isArray(F)?_.vd(F,function(Z){H(X,Z,J)}):H(X,F,J)})};
_.z=bg.prototype;_.z.append=function(K){return N8(this,function(X,F){X&&F.appendChild(X)},K)};
_.z.appendTo=function(K){(new bg([K])).append(this);return this};
_.z.remove=function(){return N8(this,function(K,X){_.c_(X)},null)};
_.z.empty=function(){return N8(this,function(K,X){_.cz(X)},null)};
_.z.after=function(K,X){return N8(this,function(F,P){F&&_.Bz(F,P)},K,!(X===void 0||X))};
_.z.before=function(K){return N8(this,function(X,F){X&&_.pb(X,F)},K)};
_.z.replaceWith=function(K){return N8(this,function(X,F){X&&_.odN(X,F)},K)};
_.z.toggle=function(K){return this.each(function(X){_.Ow(X,K)})};
_.z.show=function(){return this.toggle(!0)};
_.z.hide=function(){return this.toggle(!1)};
_.z.trigger=function(K,X,F,P){return FlW(this,K,X,F,P)};
var FlW=function(K,X,F,P,H){return K.each(function(f){_.rVl(_.yf(f)).triggerWizEventInternal(f,X,F,P,H)})},C0=function(K,X){K instanceof bg&&(X=K.list_,K=null);
this.list_=xys(K!=null?[K]:X)};
_.br(C0,bg);_.z=C0.prototype;_.z.children=function(){return new bg(Array.prototype.slice.call(_.Sh(this.list_[0])))};
_.z.each=function(K,X){K.call(X,this.list_[0],0);return this};
_.z.size=function(){return 1};
_.z.el=function(){return this.list_[0]};
_.z.first=function(){return this};var ig=function(K,X){X=X===void 0?window:X;this.hostId=K;this.JSC$17301_win=X;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$17301_previousHtmlOverscroll=this.JSC$17301_previousBodyOverscroll=this.JSC$17301_previousBodyOverflow="";this.eventTarget=new _.ua;this.JSC$17301_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
si1=function(K){var X=Prw(Prw(Prw(new Hks(78),"po"),"hppp"),"hhc");
X.authUser=Number(_.e8("SESSION_INDEX","0"));X.colorScheme=K;return X};
ig.prototype.getOrigin=function(){return this.origin?this.origin:_.OQ(_.$v(_.tr(new _.aJ,this.JSC$17301_win.location.protocol),this.JSC$17301_win.location.hostname),this.JSC$17301_win.location.port).toString()};
ig.prototype.getTargetOrigin=function(){return _.OQ(_.$v(_.tr(new _.aJ,this.scheme),this.domain),this.port)};
ig.prototype.preloadIframe=function(K){var X=this;if(this.iframeLoadPromise===void 0){var F=document.createElement("iframe");this.iframe=F;eM1(F,K);this.iframeLoadPromise=new Promise(function(P,H){var f=!1,u=function(J){J.stopPropagation();F.removeEventListener("error",u);F.removeEventListener("securitypolicyviolation",u);H(Error("ek",{cause:J}))};
F.addEventListener("error",u);F.addEventListener("securitypolicyviolation",u);setTimeout(function(){f||H(Error("fk"))},3E4);
zU8(X,F,function(){f=!0;F.removeEventListener("error",u);F.removeEventListener("securitypolicyviolation",u);P()})});
fZJ(this);K=this.getTargetOrigin().toString();F.setAttribute("allow","camera "+K+"; display-capture "+K);this.parentElement.appendChild(F)}return this.iframeLoadPromise};
var q$5=function(K,X){var F,P;return _.q(function(H){if(H.nextAddress==1)return F=Tcw(getComputedStyle(K.parentElement).direction==="rtl"),K.parentElement.appendChild(F),document.activeElement instanceof HTMLElement&&(K.elementToFocusAfterClose=document.activeElement),_.s2(H,2),_.Y(H,K.preloadIframe(X),4);if(H.nextAddress!=2){K.parentElement.removeChild(F);K.JSC$17301_previousBodyOverflow=K.parentElement.style.overflow;K.JSC$17301_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
K.JSC$17301_previousBodyOverscroll=K.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";K.parentElement.style.overscrollBehavior="contain";K.parentElement.style.overflow="hidden";var f=K.iframe;f.style.bottom="0";f.style.border="none";f.style.height="100%";f.style.left="0";f.style.position=K.iframePosition;f.style.right="0";f.style.top="0";f.style.width="100%";f.style.zIndex="2202";f.setAttribute("aria-hidden","false");f.setAttribute("aria-modal","true");
K.opened=!0;DLJ(K);return _.Gy(H,0)}P=_.qc(H);K.parentElement.removeChild(F);y_1(K.isDarkTheme());uJ1(K,!1);throw Error("gk",{cause:P});})},uJ1=function(K,X){X=X===void 0?!0:X;
K.iframe!==void 0&&(J41(K),document.documentElement.style.overscrollBehavior=K.JSC$17301_previousHtmlOverscroll,K.parentElement.style.overscrollBehavior=K.JSC$17301_previousBodyOverscroll,K.parentElement.style.overflow=K.JSC$17301_previousBodyOverflow,K.elementToFocusAfterClose!==void 0&&(K.elementToFocusAfterClose.focus(),K.elementToFocusAfterClose=void 0),X?fZJ(K):(K.parentElement.removeChild(K.iframe),K.iframe=void 0,K.iframeLoadPromise=void 0,K.mainChannel=void 0),K.opened=!1)},J41=function(K){K.backgroundElementsAriaHiddenIsNull&&
(XjW(K.backgroundElementsAriaHiddenIsNull),K.backgroundElementsAriaHiddenIsNull=void 0);
K.backgroundElementsAriaHiddenIsFalse&&(K.backgroundElementsAriaHiddenIsFalse.each(function(X){X.setAttribute("aria-hidden","false")}),K.backgroundElementsAriaHiddenIsFalse=void 0);
K.backgroundElementsWithoutInert&&(K.backgroundElementsWithoutInert.each(function(X){X.removeAttribute("inert")}),K.backgroundElementsWithoutInert=void 0)},DLJ=function(K){K.backgroundElementsAriaHiddenIsNull=(new C0(K.iframe.parentElement)).children().filter(function(X){return X.getAttribute("aria-hidden")===null&&X!==K.iframe});
K.backgroundElementsAriaHiddenIsNull.each(function(X){X.setAttribute("aria-hidden","true")});
K.backgroundElementsAriaHiddenIsFalse=(new C0(K.iframe.parentElement)).children().filter(function(X){return X.getAttribute("aria-hidden")==="false"&&X!==K.iframe});
K.backgroundElementsAriaHiddenIsFalse.each(function(X){X.setAttribute("aria-hidden","true")});
K.backgroundElementsWithoutInert=(new C0(K.iframe.parentElement)).children().filter(function(X){return!X.hasAttribute("inert")&&X!==K.iframe});
K.backgroundElementsWithoutInert.each(function(X){X.setAttribute("inert","true")})},fZJ=function(K){K=K.iframe;
K.style.bottom="-1000px";K.style.position="fixed";K.style.right="-1000px";K.style.border="";K.style.height="";K.style.left="";K.style.top="";K.style.width="";K.style.zIndex="";K.setAttribute("aria-hidden","true");K.setAttribute("aria-modal","false")};
ig.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var Hks=function(K,X){ig.call(this,SDv[K],X);this.options=[];this.style=""};
_.r(Hks,ig);var ZkJ=function(K){K.style="youtube";return K},Y$s=function(K,X){K.eventTarget.listen(RI8,X);
return K},Qi5=function(K,X){K.eventTarget.listen(dyo,X);
return K},Prw=function(K,X){K.options.push(X);
return K},MNo=function(K){var X=[K.getOrigin()];
K.ancestorOrigins&&X.push.apply(X,_.LZ(K.ancestorOrigins));var F=new _.aJ(K.JSC$17301_win.location.href),P=K.startUrl?K.startUrl:K.options.includes("po")?"profile-picture/art":"profile-picture";X=FV(_.Vt(K.getTargetOrigin(),P),"origin",X);K.startUrl&&_.$L(X,"startPath",K.startUrl);K.authUser>0&&_.$L(X,"authuser",K.authUser);K.pageId!==void 0&&_.$L(X,"pageId",K.pageId);_.$L(X,"hostId",K.hostId);K.jsMode!==void 0&&_.$L(X,"jsmode",K.jsMode);K.rectangleRatio!==void 0&&_.$L(X,"rectangleRatio",K.rectangleRatio);
K.options.length>0&&_.$L(X,"opts",K.options.join(","));try{for(var H=_.D(["utm_source","utm_medium","utm_campaign","utm_content"]),f=H.next();!f.done;f=H.next()){var u=f.value;_.tH(F,u)&&_.$L(X,u,_.tH(F,u))}var J,Z=(J=K.hl)!=null?J:_.tH(F,"hl");Z!==void 0&&_.$L(X,"hl",Z)}catch(M){if(!(M instanceof URIError))throw M;}K.colorScheme&&_.$L(X,"theme",K.colorScheme);K.style&&_.$L(X,"style",K.style);return X},nAW=function(K,X){K.mainChannel=_.$_({destination:K.JSC$17301_win,
iframe:X,origin:K.getTargetOrigin().toString(),channelName:"ow",onMessage:function(F){F=jn1(F.data);if(X===K.iframe)switch(_.S3(F,1)){case 1:K.eventTarget.dispatchEvent(new GXk);uJ1(K);break;case 2:K.eventTarget.dispatchEvent(new hIW(_.BL(F,4),_.BL(F,2),_.S3(F,5),_.xS(F,TMs,6)));break;case 0:var P;K.eventTarget.dispatchEvent(new my8(_.BL(F,2),(P=_.S3(F,3))!=null?P:0));break;case 3:K.eventTarget.dispatchEvent(new GXk(!0));uJ1(K,!1);break;case 4:K.eventTarget.dispatchEvent(new lVV)}}})},zU8=function(K,
X,F){_.$_({destination:K.JSC$17301_win,
iframe:X,origin:_.OQ(_.$v(_.tr(new _.aJ,K.scheme),K.domain),K.port).toString(),channelName:"owi",onMessage:function(P){X===K.iframe&&(F!==void 0&&F(),nAW(K,X),K.opened&&K.mainChannel.send(Wmv(yqd())),P.reply(),zU8(K,X))}})};
Hks.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?ig.prototype.preloadIframe.call(this,MNo(this).toString()):this.iframeLoadPromise};
Hks.prototype.openPicker=function(K){var X=this;return _.q(function(F){if(F.nextAddress==1)return X.startUrl=K?K:X.options.includes("po")?"profile-picture/art":"profile-picture",_.Y(F,q$5(X,MNo(X).toString()),2);if(X.mainChannel){var P=X.mainChannel,H=P.send;var f=yqd();f=_.Qf(f,2,X.startUrl);H.call(P,Wmv(f))}_.JT(F)})};var c4k=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(c4k,_.Gm);_.z=c4k.prototype;_.z.getSize=function(){return ug(this,1)};
_.z.setSize=function(K){return _.rd(this,1,K)};
_.z.getWidth=function(){return ug(this,12)};
_.z.getHeight=function(){return ug(this,13)};
_.z.setCenterCrop=function(K){return _.sw(this,20,K)};
_.z.getHtml=function(){return _.nM(this,4)};
_.z.getToken=function(){return _.Mg(this,24)};
_.z.setToken=function(K){return _.Qf(this,24,K)};
_.z.getBackgroundColor=function(){return ug(this,87)};
_.z.hasBackgroundColor=function(){return _.Aw(_.sX(this,87))!=null};
_.z.getStoryboardLevel=function(){return ug(this,109)};var x6=function(K){this.JSC$17309_value_=void 0;this.childNodes_={};if(K){var X=_.fwO(K);K=_.aG(K);for(var F=0;F<X.length;F++)this.set(X[F],K[F])}};
x6.prototype.set=function(K,X){pjF(this,K,X,!1)};
x6.prototype.add=function(K,X){pjF(this,K,X,!0)};
var pjF=function(K,X,F,P){for(var H=0;H<X.length;H++){var f=X.charAt(H);K.childNodes_[f]||(K.childNodes_[f]=new x6);K=K.childNodes_[f]}if(P&&K.JSC$17309_value_!==void 0)throw Error("hk`"+X);K.JSC$17309_value_=F},BH8=function(K,X){for(var F=0;F<X.length;F++)if(K=K.childNodes_[X.charAt(F)],!K)return;
return K};
x6.prototype.get=function(K){return(K=BH8(this,K))?K.JSC$17309_value_:void 0};
x6.prototype.getValues=function(){var K=[];S$8(this,K);return K};
var S$8=function(K,X){K.JSC$17309_value_!==void 0&&X.push(K.JSC$17309_value_);for(var F in K.childNodes_)S$8(K.childNodes_[F],X)};
x6.prototype.getKeys=function(K){var X=[];if(K){for(var F=this,P=0;P<K.length;P++){var H=K.charAt(P);if(!F.childNodes_[H])return[];F=F.childNodes_[H]}oAt(F,K,X)}else oAt(this,"",X);return X};
var oAt=function(K,X,F){K.JSC$17309_value_!==void 0&&F.push(X);for(var P in K.childNodes_)oAt(K.childNodes_[P],X+P,F)};
_.z=x6.prototype;_.z.containsKey=function(K){return this.get(K)!==void 0};
_.z.containsValue=function(K){if(this.JSC$17309_value_===K)return!0;for(var X in this.childNodes_)if(this.childNodes_[X].containsValue(K))return!0;return!1};
_.z.clear=function(){this.childNodes_={};this.JSC$17309_value_=void 0};
_.z.remove=function(K){for(var X=this,F=[],P=0;P<K.length;P++){var H=K.charAt(P);if(!X.childNodes_[H])throw Error("ik`"+K);F.push([X,H]);X=X.childNodes_[H]}K=X.JSC$17309_value_;for(delete X.JSC$17309_value_;F.length>0;)if(P=F.pop(),X=P[0],P=P[1],X.childNodes_[P].isEmpty())delete X.childNodes_[P];else break;return K};
_.z.clone=function(){return new x6(this)};
_.z.getCount=function(){return PHG(this.getValues())};
_.z.isEmpty=function(){return this.JSC$17309_value_===void 0&&_.T8.isEmpty(this.childNodes_)};var GTv=function(){if(!Ll5){var K=Ll5=new x6,X;for(X in YQG)K.add(X,YQG[X])}},Ll5,I_=function(K,X){this.types=K;
this.setters=X},YQG={a:new I_([3,
0],[function(K,X){_.sw(K,21,X)},
function(K,X){_.rd(K,56,X)}]),
al:new I_([3],[function(K,X){_.sw(K,74,X)}]),
b:new I_([3,0],[function(K,X){_.sw(K,23,X)},
function(K,X){_.rd(K,38,X)}]),
ba:new I_([0],[function(K,X){_.rd(K,85,X)}]),
bc:new I_([0],[function(K,X){_.rd(K,87,X)}]),
br:new I_([0],[function(K,X){_.rd(K,86,X)}]),
c:new I_([3,0],[function(K,X){_.sw(K,2,X)},
function(K,X){_.rd(K,39,X)}]),
cc:new I_([3],[function(K,X){_.sw(K,51,X)}]),
ci:new I_([3],[function(K,X){_.sw(K,32,X)}]),
ckm:new I_([3],[function(K,X){_.sw(K,104,X)}]),
cp:new I_([0],[function(K,X){_.rd(K,92,X)}]),
cr:new I_([3],[function(K,X){_.sw(K,108,X)}]),
cv:new I_([0],[function(K,X){_.rd(K,94,X)}]),
d:new I_([3],[function(K,X){_.sw(K,3,X)}]),
dc:new I_([5],[function(K,X){_.Qf(K,99,X)}]),
df:new I_([3],[function(K,X){_.sw(K,80,X)}]),
dv:new I_([3],[function(K,X){_.sw(K,90,X)}]),
e:new I_([0],[function(K,X){_.rd(K,15,X)}]),
em:new I_([0],[function(K,X){_.rd(K,107,X)}]),
f:new I_([4],[function(K,X){_.Qf(K,16,X)}]),
fg:new I_([3],[function(K,X){_.sw(K,34,X)}]),
fh:new I_([3],[function(K,X){_.sw(K,30,X)}]),
fm:new I_([3],[function(K,X){_.sw(K,84,X)}]),
fo:new I_([2],[function(K,X){_.kS(K,79,_.uW(X))}]),
ft:new I_([3],[function(K,X){_.sw(K,50,X)}]),
fv:new I_([3],[function(K,X){_.sw(K,31,X)}]),
g:new I_([3],[function(K,X){_.sw(K,14,X)}]),
gce:new I_([4],[function(K,X){_.Qf(K,112,X)}]),
gd:new I_([3],[function(K,X){_.sw(K,83,X)}]),
gm:new I_([3],[function(K,X){_.sw(K,105,X)}]),
h:new I_([3,0],[function(K,X){_.sw(K,4,X)},
function(K,X){_.rd(K,13,X)}]),
i:new I_([3],[function(K,X){_.sw(K,22,X)}]),
ic:new I_([0],[function(K,X){_.rd(K,71,X)}]),
id:new I_([3],[function(K,X){_.sw(K,70,X)}]),
il:new I_([3],[function(K,X){_.sw(K,96,X)}]),
ip:new I_([3],[function(K,X){_.sw(K,54,X)}]),
iv:new I_([0],[function(K,X){_.MF(K,75,X)}]),
j:new I_([1],[function(K,X){X=X==null?X:yVt(X);_.kS(K,29,X)}]),
k:new I_([3,0],[function(K,X){_.sw(K,17,X)},
function(K,X){_.rd(K,42,X)}]),
l:new I_([0],[function(K,X){_.rd(K,44,X)}]),
lf:new I_([3],[function(K,X){_.sw(K,65,X)}]),
lo:new I_([3],[function(K,X){_.sw(K,97,X)}]),
m:new I_([0],[function(K,X){_.rd(K,63,X)}]),
md:new I_([3],[function(K,X){_.sw(K,91,X)}]),
mm:new I_([4],[function(K,X){_.Qf(K,81,X)}]),
mo:new I_([3],[function(K,X){_.sw(K,73,X)}]),
mv:new I_([3],[function(K,X){_.sw(K,66,X)}]),
n:new I_([3],[function(K,X){K.setCenterCrop(X)}]),
nc:new I_([3],[function(K,X){_.sw(K,55,X)}]),
nd:new I_([3],[function(K,X){_.sw(K,53,X)}]),
ng:new I_([3],[function(K,X){_.sw(K,95,X)}]),
ngm:new I_([3],[function(K,X){_.sw(K,106,X)}]),
no:new I_([3],[function(K,X){_.sw(K,37,X)}]),
ns:new I_([3],[function(K,X){_.sw(K,40,X)}]),
nt0:new I_([4],[function(K,X){_.Qf(K,36,X)}]),
ntm:new I_([3],[function(K,X){_.sw(K,114,X)}]),
nu:new I_([3],[function(K,X){_.sw(K,46,X)}]),
nw:new I_([3],[function(K,X){_.sw(K,48,X)}]),
o:new I_([1,3],[function(K,X){X=X==null?X:yVt(X);_.kS(K,7,X)},
function(K,X){_.sw(K,27,X)}]),
p:new I_([3,0],[function(K,X){_.sw(K,19,X)},
function(K,X){_.rd(K,43,X)}]),
pa:new I_([3],[function(K,X){_.sw(K,61,X)}]),
pc:new I_([0],[function(K,X){_.rd(K,88,X)}]),
pd:new I_([3],[function(K,X){_.sw(K,60,X)}]),
pf:new I_([3],[function(K,X){_.sw(K,67,X)}]),
pg:new I_([3],[function(K,X){_.sw(K,72,X)}]),
pi:new I_([2],[function(K,X){_.kS(K,76,_.uW(X))}]),
pp:new I_([3],[function(K,X){_.sw(K,52,X)}]),
pt:new I_([4],[function(K,X){_.Qf(K,111,X)}]),
q:new I_([4],[function(K,X){_.Qf(K,28,X)}]),
r:new I_([3,0],[function(K,X){_.sw(K,6,X)},
function(K,X){_.rd(K,26,X)}]),
ra:new I_([3],[function(K,X){_.sw(K,103,X)}]),
rf:new I_([3],[function(K,X){_.sw(K,100,X)}]),
rg:new I_([3],[function(K,X){_.sw(K,59,X)}]),
rh:new I_([3],[function(K,X){_.sw(K,49,X)}]),
rj:new I_([3],[function(K,X){_.sw(K,57,X)}]),
ro:new I_([2],[function(K,X){_.kS(K,78,_.uW(X))}]),
rp:new I_([3],[function(K,X){_.sw(K,58,X)}]),
rw:new I_([3],[function(K,X){_.sw(K,35,X)}]),
rwa:new I_([3],[function(K,X){_.sw(K,64,X)}]),
rwu:new I_([3],[function(K,X){_.sw(K,41,X)}]),
s:new I_([3,0],[function(K,X){_.sw(K,33,X)},
function(K,X){K.setSize(X)}]),
sb:new I_([0],[function(K,X){_.rd(K,110,X)}]),
sc:new I_([0],[function(K,X){_.rd(K,89,X)}]),
sg:new I_([3],[function(K,X){_.sw(K,82,X)}]),
sl:new I_([0],[function(K,X){_.rd(K,109,X)}]),
sm:new I_([3],[function(K,X){_.sw(K,93,X)}]),
t:new I_([4],[function(K,X){K.setToken(X)}]),
tm:new I_([3],[function(K,X){_.sw(K,113,X)}]),
u:new I_([3],[function(K,X){_.sw(K,18,X)}]),
ut:new I_([3],[function(K,X){_.sw(K,45,X)}]),
v:new I_([0],[function(K,X){_.rd(K,62,X)}]),
vb:new I_([0],[function(K,X){_.MF(K,68,X)}]),
vf:new I_([4],[function(K,X){_.Qf(K,102,X)}]),
vl:new I_([0],[function(K,X){_.MF(K,69,X)}]),
vm:new I_([3],[function(K,X){_.sw(K,98,X)}]),
w:new I_([0],[function(K,X){_.rd(K,12,X)}]),
x:new I_([0],[function(K,X){_.rd(K,9,X)}]),
y:new I_([0],[function(K,X){_.rd(K,10,X)}]),
ya:new I_([2],[function(K,X){_.kS(K,77,_.uW(X))}]),
z:new I_([0],[function(K,X){_.rd(K,11,X)}])};
GTv.prototype.parse=function(K){var X=new c4k,F=new c4k;if(K=="")K=!0;else{K=K.split("-");for(var P=!0,H=0;H<K.length;H++){var f=K[H];if(f.length==0)P=!1;else{var u=f,J=!1;var Z=u;var M=u.charAt(0);M!=M.toLowerCase()&&(J=!0,Z=u.charAt(0).toLowerCase()+u.substring(1));var n=Ll5;for(M=1;M<=Z.length;++M){var c=n,B=Z.substring(0,M);if(B.length==0?c.isEmpty():!BH8(c,B))break}Z=M==1?null:(Z=n.get(Z.substring(0,M-1)))?{option:u.substring(0,M-1),value:u.substring(M-1),signed:J,attributes:Z}:null;if(Z){u=
[];J=[];M=!1;for(n=0;n<Z.attributes.types.length;n++){c=Z.attributes.types[n];var L=Z.value;B=H;if(Z.signed&&c==1)for(var A=L.length;A<12&&B<K.length-1;)L+="-"+K[B+1],A=L.length,++B;else if(c==2)for(;B<K.length-1&&K[B+1].match(/^[\d\.]/);)L+="-"+K[B+1],++B;A=Z.attributes.setters[n];L=QGF(this,c)(Z.option,L,X,F,A);if(L===null){M=!0;H=B;break}else u.push(c),J.push(L)}if(!M)for(Z=0;Z<J.length;Z++)n=u[Z],L=J[Z],MQV(this,n)(f,L);P=P&&M}else P=!1}}K=P}return new nv5(X,F,K)};
var k6=function(K,X,F,P,H,f){H(F,X);K=K.charAt(0);f=f(K==K.toUpperCase());H(P,f)};
_.z=GTv.prototype;_.z.parseAndSetIntOption_=function(K,X,F,P,H){if(X=="")return 0;isFinite(X)&&(X=String(X));X=typeof X==="string"?/^\s*-?0x/i.test(X)?parseInt(X,16):parseInt(X,10):NaN;if(isNaN(X))return 1;k6(K,X,F,P,H,Number);return null};
_.z.logIntParseError_=function(){};
_.z.parseAndSetFloatOption_=function(K,X,F,P,H){if(X=="")return 0;var f=Number(X);X=f==0&&_.fO(X)?NaN:f;if(isNaN(X))return 1;k6(K,X,F,P,H,Number);return null};
_.z.logFloatParseError_=function(){};
_.z.parseAndSetBoolOption_=function(K,X,F,P,H){if(X!="")return 2;k6(K,!0,F,P,H,Boolean);return null};
_.z.logBoolParseError_=function(){};
_.z.parseAndSetStringOption_=function(K,X,F,P,H){if(X=="")return 0;k6(K,X,F,P,H,function(f){return f?"1":""});
return null};
_.z.logStringParseError_=function(){};
_.z.parseAndSetUint64Base64Option_=function(K,X,F,P,H){if(X=="")return 0;k6(K,X,F,P,H,function(f){return f?1:0});
return null};
var QGF=function(K,X){switch(X){case 0:return(0,_.T3)(K.parseAndSetIntOption_,K);case 2:return(0,_.T3)(K.parseAndSetFloatOption_,K);case 3:return(0,_.T3)(K.parseAndSetBoolOption_,K);case 4:return(0,_.T3)(K.parseAndSetStringOption_,K);case 1:return(0,_.T3)(K.parseAndSetUint64Base64Option_,K);default:return function(){}}},MQV=function(K,X){switch(X){case 0:return(0,_.T3)(K.logIntParseError_,K);
case 2:return(0,_.T3)(K.logFloatParseError_,K);case 3:return(0,_.T3)(K.logBoolParseError_,K);case 4:case 1:return(0,_.T3)(K.logStringParseError_,K);default:return function(){}}},nv5=function(K,X,F){this.valueProto_=K;
this.signatureFlagProto_=X;this.JSC$17321_valid_=F};
nv5.prototype.isValid=function(){return this.JSC$17321_valid_};var RMJ=function(K){this.JSC$17322_parser_=null;this.JSC$17322_components_=[];this.JSC$17322_parsedOptions_=null;cr8(this,K)},pDG=function(K){K.JSC$17322_parser_==null&&(K.JSC$17322_parser_=new GTv);
return K.JSC$17322_parser_},cr8=function(K,X){K.JSC$17322_parsedOptions_=X?typeof X==="string"?pDG(K).parse(X):X:pDG(K).parse("")},Ke=function(K,X){return K==X?!1:!0};
_.z=RMJ.prototype;_.z.JSC$17324_setCrop=function(K){K=K||void 0;var X=this.JSC$17322_parsedOptions_,F=X.valueProto_;Ke(K,_.nM(F,2),_.nM(X.signatureFlagProto_,2))&&_.sw(F,2,K);return this};
_.z.JSC$17324_setCircleCrop=function(K){K=K||void 0;var X=this.JSC$17322_parsedOptions_,F=X.valueProto_;Ke(K,Dy(F,51),Dy(X.signatureFlagProto_,51))&&_.sw(F,51,K);return this};
_.z.JSC$17324_setImageCrop=function(K){K=K||void 0;var X=this.JSC$17322_parsedOptions_,F=X.valueProto_;Ke(K,Dy(F,32),Dy(X.signatureFlagProto_,32))&&_.sw(F,32,K);return this};
_.z.JSC$17324_setHeight=function(K){var X=this.JSC$17322_parsedOptions_,F=X.valueProto_;Ke(K,F.getHeight(),X.signatureFlagProto_.getHeight())&&_.rd(F,13,K);return this};
_.z.setCenterCrop=function(K){K=K||void 0;var X=this.JSC$17322_parsedOptions_,F=X.valueProto_;Ke(K,_.nM(F,20),_.nM(X.signatureFlagProto_,20))&&F.setCenterCrop(K);return this};
_.z.JSC$17324_setSmartCrop=function(K){K=K||void 0;var X=this.JSC$17322_parsedOptions_,F=X.valueProto_;Ke(K,_.nM(F,19),_.nM(X.signatureFlagProto_,19))&&_.sw(F,19,K);return this};
_.z.JSC$17324_setPad=function(K){K=K||void 0;var X=this.JSC$17322_parsedOptions_,F=X.valueProto_;Ke(K,Dy(F,60),Dy(X.signatureFlagProto_,60))&&_.sw(F,60,K);return this};
_.z.JSC$17324_setSmartCropUseFace=function(K){K=K||void 0;var X=this.JSC$17322_parsedOptions_,F=X.valueProto_;Ke(K,_.nM(F,67),_.nM(X.signatureFlagProto_,67))&&_.sw(F,67,K);return this};
_.z.JSC$17324_setSmartCropNoClip=function(K){K=K||void 0;var X=this.JSC$17322_parsedOptions_,F=X.valueProto_;Ke(K,_.nM(F,52),_.nM(X.signatureFlagProto_,52))&&_.sw(F,52,K);return this};
_.z.setSize=function(K){var X=this.JSC$17322_parsedOptions_,F=X.valueProto_;Ke(K,F.getSize(),X.signatureFlagProto_.getSize())&&F.setSize(K);return this};
_.z.setToken=function(K){K=K||void 0;var X=this.JSC$17322_parsedOptions_,F=X.valueProto_;Ke(K,F.getToken(),X.signatureFlagProto_.getToken())&&F.setToken(K);return this};
_.z.JSC$17324_setWidth=function(K){var X=this.JSC$17322_parsedOptions_,F=X.valueProto_;Ke(K,F.getWidth(),X.signatureFlagProto_.getWidth())&&_.rd(F,12,K);return this};
_.z.clearOptions=function(){cr8(this,"");return this};
_.z.build=function(){this.JSC$17322_components_.length=0;var K=this.JSC$17322_parsedOptions_,X=K.valueProto_;K=K.signatureFlagProto_;Xb(this,"s",X.getSize(),K.getSize());Xb(this,"w",X.getWidth(),K.getWidth());Fb(this,"c",_.nM(X,2),_.nM(K,2));Fb(this,"d",_.nM(X,3),_.nM(K,3));Xb(this,"h",X.getHeight(),K.getHeight());Fb(this,"s",Dy(X,33),Dy(K,33));Fb(this,"h",X.getHtml(),K.getHtml());Fb(this,"p",_.nM(X,19),_.nM(K,19));Fb(this,"pp",_.nM(X,52),_.nM(K,52));Fb(this,"pf",_.nM(X,67),_.nM(K,67));Fb(this,"n",
_.nM(X,20),_.nM(K,20));Xb(this,"r",ug(X,26),ug(K,26));Fb(this,"r",_.nM(X,6),_.nM(K,6));Fb(this,"o",Dy(X,27),Dy(K,27));var F=_.Me(X,7,_.HL);Pw(this,"o",F,_.Me(K,7,_.HL));F=_.Me(X,29,_.HL);Pw(this,"j",F,_.Me(K,29,_.HL));Xb(this,"x",ug(X,9),ug(K,9));Xb(this,"y",ug(X,10),ug(K,10));Xb(this,"z",ug(X,11),ug(K,11));Fb(this,"g",_.nM(X,14),_.nM(K,14));Xb(this,"e",ug(X,15),ug(K,15));Pw(this,"f",_.Mg(X,16),_.Mg(K,16));Fb(this,"k",Dy(X,17),Dy(K,17));Fb(this,"u",Dy(X,18),!0);Fb(this,"ut",Dy(X,45),!0);Fb(this,"i",
Dy(X,22),!0);Fb(this,"a",Dy(X,21),Dy(K,21));Fb(this,"b",_.nM(X,23),_.nM(K,23));Xb(this,"b",ug(X,38),ug(K,38));Xb(this,"c",ug(X,39),ug(K,39),16,8);Pw(this,"q",_.Mg(X,28),_.Mg(K,28));Fb(this,"fh",Dy(X,30),Dy(K,30));Fb(this,"fv",Dy(X,31),Dy(K,31));Fb(this,"fg",_.nM(X,34),_.nM(K,34));Fb(this,"ci",Dy(X,32),Dy(K,32));Pw(this,"t",X.getToken(),K.getToken());Pw(this,"nt0",_.Mg(X,36),_.Mg(K,36));Fb(this,"rw",_.nM(X,35),_.nM(K,35));Fb(this,"rwu",_.nM(X,41),_.nM(K,41));Fb(this,"rwa",_.nM(X,64),_.nM(K,64));Fb(this,
"nw",_.nM(X,48),_.nM(K,48));Fb(this,"rh",_.nM(X,49),_.nM(K,49));Fb(this,"no",_.nM(X,37),_.nM(K,37));Fb(this,"ns",Dy(X,40),Dy(K,40));Xb(this,"k",ug(X,42),ug(K,42));Xb(this,"p",ug(X,43),ug(K,43));Xb(this,"l",ug(X,44),ug(K,44));Xb(this,"v",ug(X,62),ug(K,62));Fb(this,"nu",Dy(X,46),Dy(K,46));Fb(this,"ft",Dy(X,50),Dy(K,50));Fb(this,"cc",Dy(X,51),Dy(K,51));Fb(this,"nd",Dy(X,53),Dy(K,53));Fb(this,"ip",Dy(X,54),Dy(K,54));Fb(this,"nc",Dy(X,55),Dy(K,55));Xb(this,"a",ug(X,56),ug(K,56));Fb(this,"rj",Dy(X,57),
Dy(K,57));Fb(this,"rp",Dy(X,58),Dy(K,58));Fb(this,"rg",Dy(X,59),Dy(K,59));Fb(this,"pd",Dy(X,60),Dy(K,60));Fb(this,"pa",Dy(X,61),Dy(K,61));Xb(this,"m",ug(X,63),ug(K,63));Xb(this,"vb",q8(X,68),q8(K,68));Xb(this,"vl",q8(X,69),q8(K,69));Fb(this,"lf",Dy(X,65),Dy(K,65));Fb(this,"mv",Dy(X,66),Dy(K,66));Fb(this,"id",Dy(X,70),Dy(K,70));Xb(this,"ic",ug(X,71),!0);Fb(this,"pg",_.nM(X,72),_.nM(K,72));Fb(this,"mo",Dy(X,73),Dy(K,73));Fb(this,"al",Dy(X,74),Dy(K,74));Xb(this,"iv",q8(X,75),q8(K,75));Xb(this,"pi",JX(X,
76),JX(K,76));Xb(this,"ya",JX(X,77),JX(K,77));Xb(this,"ro",JX(X,78),JX(K,78));Xb(this,"fo",JX(X,79),JX(K,79));Fb(this,"df",Dy(X,80),Dy(K,80));Pw(this,"mm",_.Mg(X,81),_.Mg(K,81));Fb(this,"sg",Dy(X,82),Dy(K,82));Fb(this,"gd",Dy(X,83),Dy(K,83));Fb(this,"fm",Dy(X,84),Dy(K,84));Xb(this,"ba",ug(X,85),ug(K,85));Xb(this,"br",ug(X,86),ug(K,86));Xb(this,"bc",X.getBackgroundColor(),K.getBackgroundColor(),16,8);Xb(this,"pc",ug(X,88),ug(K,88),16,8);Xb(this,"sc",ug(X,89),ug(K,89),16,8);Fb(this,"dv",Dy(X,90),Dy(K,
90));Fb(this,"md",Dy(X,91),Dy(K,91));Xb(this,"cp",ug(X,92),ug(K,92));Fb(this,"sm",Dy(X,93),Dy(K,93));Xb(this,"cv",ug(X,94),ug(K,94));Fb(this,"ng",Dy(X,95),Dy(K,95));Fb(this,"il",Dy(X,96),Dy(K,96));Fb(this,"lo",Dy(X,97),Dy(K,97));Fb(this,"vm",Dy(X,98),Dy(K,98));Pw(this,"dc",_.Mg(X,99),_.Mg(K,99));Fb(this,"rf",Dy(X,100),Dy(K,100));Pw(this,"vf",_.Mg(X,102),_.Mg(K,102));Fb(this,"ra",_.nM(X,103),_.nM(K,103));Fb(this,"ckm",Dy(X,104),Dy(K,104));Fb(this,"gm",Dy(X,105),Dy(K,105));Fb(this,"ngm",Dy(X,106),Dy(K,
106));Xb(this,"em",ug(X,107),ug(K,107));Fb(this,"cr",Dy(X,108),Dy(K,108));Xb(this,"sl",X.getStoryboardLevel(),K.getStoryboardLevel());Xb(this,"sb",ug(X,110),ug(K,110));Pw(this,"pt",_.Mg(X,111),_.Mg(K,111));Pw(this,"gce",_.Mg(X,112),_.Mg(K,112));Fb(this,"tm",Dy(X,113),Dy(K,113));Fb(this,"ntm",Dy(X,114),Dy(K,114));return this.JSC$17322_components_.join("-")};
var Xb=function(K,X,F,P,H,f){if(F!=null){var u=H==void 0||H!=10&&H!=16?10:H;F=Number(F).toString(u);H=new b95;H.append(u==16?"0x":"");u=H.append;f==void 0?f="":(f-=F.length,f=f<=0?"":(0,_.fiT)("0",f));u.call(H,f);H.append(F);BYo(K,X,H.toString(),!!Number(P))}},Fb=function(K,X,F,P){F&&BYo(K,X,"",!!P)},Pw=function(K,X,F,P){F&&BYo(K,X,String(F),!!Number(P))},BYo=function(K,X,F,P){P&&(X=X.charAt(0).toUpperCase()+X.substring(1));
K.JSC$17322_components_.push(X+F)};_.br(pP,RMJ);_.z=pP.prototype;_.z.JSC$17324_setCrop=function(K){K&&Hw(this);return pP.superClass_.JSC$17324_setCrop.call(this,K)};
_.z.JSC$17324_setHeight=function(K){K=K==null||K<0?void 0:K;K!=null&&this.setSize();return pP.superClass_.JSC$17324_setHeight.call(this,K)};
_.z.JSC$17324_setImageCrop=function(K){K&&Hw(this);return pP.superClass_.JSC$17324_setImageCrop.call(this,K)};
_.z.JSC$17324_setCircleCrop=function(K){K&&Hw(this);return pP.superClass_.JSC$17324_setCircleCrop.call(this,K)};
_.z.setSize=function(K){_.XL(K)&&(K=Math.max(K.width,K.height));K=K==null||K<0?void 0:K;K!=null&&(this.JSC$17324_setWidth(),this.JSC$17324_setHeight());return pP.superClass_.setSize.call(this,K)};
_.z.JSC$17324_setSmartCrop=function(K){K&&Hw(this);return pP.superClass_.JSC$17324_setSmartCrop.call(this,K)};
_.z.JSC$17324_setSmartCropNoClip=function(K){K&&Hw(this);return pP.superClass_.JSC$17324_setSmartCropNoClip.call(this,K)};
_.z.JSC$17324_setSmartCropUseFace=function(K){K&&Hw(this);return pP.superClass_.JSC$17324_setSmartCropUseFace.call(this,K)};
_.z.setCenterCrop=function(K){K&&Hw(this);return pP.superClass_.setCenterCrop.call(this,K)};
_.z.JSC$17324_setPad=function(K){K&&Hw(this);return pP.superClass_.JSC$17324_setPad.call(this,K)};
_.z.JSC$17324_setWidth=function(K){K=K==null||K<0?void 0:K;K!=null&&this.setSize();return pP.superClass_.JSC$17324_setWidth.call(this,K)};
var SQ8=function(K){K.clearOptions();var X=K.JSC$17322_parsedOptions_,F=X.valueProto_;Ke(!0,_.nM(F,3),_.nM(X.signatureFlagProto_,3))&&_.sw(F,3,!0);return K},Hw=function(K){K.setCenterCrop();
K.JSC$17324_setCircleCrop();K.JSC$17324_setCrop();K.JSC$17324_setImageCrop();K.JSC$17324_setPad();K.JSC$17324_setSmartCrop();K.JSC$17324_setSmartCropNoClip();K.JSC$17324_setSmartCropUseFace()};
pP.prototype.build=function(){var K=this.JSC$17322_parsedOptions_.valueProto_;Dy(K,18)||Dy(K,45)?K.getSize()||this.setSize(0):(K=this.JSC$17322_parsedOptions_.valueProto_,K.getSize()||K.getWidth()||K.getHeight()||(this.setSize(),this.JSC$17324_setHeight(),this.JSC$17324_setWidth(),Hw(this)));return pP.superClass_.build.call(this)};var ovt=/^[^\/]*\/\//,sk=function(K,X){X=X===void 0?!1:X;this.original_=K;this.originalPrefix_="";(K=this.original_.match(ovt))&&K[0]?(this.originalPrefix_=K[0],K=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):K="http://"+this.original_;this.uri_=_.az(K,!0);this.isFreeformUrl_=X;this.JSC$17328_valid_=!0;this.obfuscated_=!1},L68=function(K,X){K.JSC$17330_pathPrefix_=K.JSC$17330_pathPrefix_?K.JSC$17330_pathPrefix_+("/"+X):X},zF=function(K){if(K.JSC$17330_components_==
void 0){var X=K.uri_.getPath().substring(1);
K.JSC$17330_pathPrefix_=null;if(K.isFreeformUrl_){K.JSC$17330_components_=[];if((X.match(/=/g)||[]).length>1)return K.JSC$17328_valid_=!1,K.JSC$17330_components_;var F=X.indexOf("=");F!=-1?(K.JSC$17330_components_.push(X.substr(0,F)),K.JSC$17330_components_.push(X.substr(F+1))):K.JSC$17330_components_.push(X);return K.JSC$17330_components_}K.JSC$17330_components_=X.split("/");X=K.JSC$17330_components_.length;X>2&&K.JSC$17330_components_[0]=="u"&&(L68(K,K.JSC$17330_components_[0]+"/"+K.JSC$17330_components_[1]),
K.JSC$17330_components_.shift(),K.JSC$17330_components_.shift(),X-=2);if(X==0||X==4||X>7)return K.JSC$17328_valid_=!1,K.JSC$17330_components_;if(X==2)L68(K,K.JSC$17330_components_[0]);else if(K.JSC$17330_components_[0]=="image")L68(K,K.JSC$17330_components_[0]);else if(X==7||X==3)return K.JSC$17328_valid_=!1,K.JSC$17330_components_;if(X<=3){K.obfuscated_=!0;X==3&&(L68(K,K.JSC$17330_components_[1]),K.JSC$17330_components_.shift(),--X);--X;F=K.JSC$17330_components_[X];var P=F.indexOf("=");P!=-1&&(K.JSC$17330_components_[X]=
F.substr(0,P),K.JSC$17330_components_.push(F.substr(P+1)))}}return K.JSC$17330_components_};
sk.prototype.isValid=function(){zF(this);return this.JSC$17328_valid_};
sk.prototype.isObfuscated=function(){zF(this);return this.obfuscated_};
var TYw=function(K){zF(K);return K.isFreeformUrl_},fe=function(K){zF(K);
K.JSC$17330_pathPrefix_==void 0&&(K.JSC$17330_pathPrefix_=null);return K.JSC$17330_pathPrefix_},rrF=function(K){switch(zF(K).length){case 7:return!0;
case 6:return fe(K)==null;case 5:return!1;case 3:return!0;case 2:return fe(K)==null;case 1:return!1;default:return!1}},Dt=function(K,X){if(TYw(K))a:{switch(X){case 7:X=0;
break;case 4:if(!rrF(K)){K=null;break a}X=1;break;default:K=null;break a}K=zF(K)[X]}else if(K.isObfuscated())a:{var F=fe(K)!=null?1:0;switch(X){case 6:X=F;break;case 4:if(!rrF(K)){K=null;break a}X=1+F;break;default:K=null;break a}K=zF(K)[X]}else a:{F=fe(K)!=null?1:0;switch(X){case 0:X=F;break;case 1:X=1+F;break;case 2:X=2+F;break;case 3:X=3+F;break;case 4:if(!rrF(K)){K=null;break a}X=4+F;break;case 5:X=rrF(K)?1:0;X=4+F+X;break;default:K=null;break a}K=zF(K)[X]}return K};
sk.prototype.getOptions=function(){this.options_==void 0&&(this.options_=Dt(this,4));return this.options_};var mF1=function(){};
mF1.prototype.parse=function(K,X){return new UF8(K,X===void 0?!1:X)};
var UF8=function(K,X){sk.call(this,K,X===void 0?!1:X)};
_.r(UF8,sk);_.br(B2,pP);var hMo;B2.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
B2.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var K=B2.superClass_.build.call(this),X=[];fe(this.parsedImageUrl_)!=null&&X.push(fe(this.parsedImageUrl_));var F=TYw(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var P=this.parsedImageUrl_;P.obfuscatedData_==void 0&&(P.obfuscatedData_=Dt(P,6));X.push(P.obfuscatedData_+(K?"="+K:""))}else if(F){P=X.push;var H=this.parsedImageUrl_;H.freeformUrlPath_===void 0&&(H.freeformUrlPath_=Dt(H,
7));P.call(X,H.freeformUrlPath_);K&&X.push(K)}else P=X.push,H=this.parsedImageUrl_,H.obfuscatedGaiaId_==void 0&&(H.obfuscatedGaiaId_=Dt(H,0)),P.call(X,H.obfuscatedGaiaId_),P=X.push,H=this.parsedImageUrl_,H.photoId_==void 0&&(H.photoId_=Dt(H,1)),P.call(X,H.photoId_),P=X.push,H=this.parsedImageUrl_,H.imageVersion_==void 0&&(H.imageVersion_=Dt(H,2)),P.call(X,H.imageVersion_),P=X.push,H=this.parsedImageUrl_,H.signature_==void 0&&(H.signature_=Dt(H,3)),P.call(X,H.signature_),K&&X.push(K),K=X.push,P=this.parsedImageUrl_,
P.filename_==void 0&&(P.filename_=Dt(P,5)),K.call(X,P.filename_);X=F?X.join("="):X.join("/");X=_.az(this.protocolPrefix_+this.JSC$17336_domain_+"/"+X+(this.JSC$17336_query_?"?"+this.JSC$17336_query_:"")).toString();X.startsWith("%3a//")&&(X=X.replace("%3a//","://"));return X};var ArJ=_.lr(["viewBox"]),jGF=_.lr(["width"]),wDo=_.lr(["height"]),yr8=_.lr(["fill"]),W6t=_.lr(["id"]),d61=_.lr(["x"]),eho=_.lr(["y"]);lWt.prototype.getLength=function(){return this.parsedData.length};
lWt.prototype.write=function(K){for(var X=0,F=this.parsedData.length;X<F;X++)K.put(this.parsedData[X],8)};
var g3k=function(K,X){var F=new lWt(X);K.dataList.push(F);F=K.errorCorrectLevel;var P=1,H=encodeURI(X).toString().replace(/%[0-9a-fA-F]{2}/g,"a");X=H.length+(H.length!=X?3:0);H=0;for(var f=uE.length;H<=f;H++){var u=0;switch(F){case 1:u=uE[H][0];break;case 0:u=uE[H][1];break;case 3:u=uE[H][2];break;case 2:u=uE[H][3]}if(X<=u)break;else P++}if(P>uE.length)throw Error("rk");K.typeNumber=P;K.dataCache=null};
v3w.prototype.isDark=function(K,X){if(K<0||this.moduleCount<=K||X<0||this.moduleCount<=X)throw Error("jk`"+K+"`"+X);return this.modules[K][X]};
for(var E3t=function(K,X,F){K.moduleCount=K.typeNumber*4+17;K.modules=Array(K.moduleCount);for(var P=0;P<K.moduleCount;P++){K.modules[P]=Array(K.moduleCount);for(var H=0;H<K.moduleCount;H++)K.modules[P][H]=null}Rh8(K,0,0);Rh8(K,K.moduleCount-7,0);Rh8(K,0,K.moduleCount-7);P=U6s[K.typeNumber-1];for(H=0;H<P.length;H++)for(var f=0;f<P.length;f++){var u=P[H],J=P[f];if(K.modules[u][J]==null)for(var Z=-2;Z<=2;Z++)for(var M=-2;M<=2;M++)K.modules[u+Z][J+M]=Z==-2||Z==2||M==-2||M==2||Z==0&&M==0?!0:!1}for(P=
8;P<K.moduleCount-8;P++)K.modules[P][6]==null&&(K.modules[P][6]=P%2==0);for(P=8;P<K.moduleCount-8;P++)K.modules[6][P]==null&&(K.modules[6][P]=P%2==0);P=K.errorCorrectLevel<<3|F;for(H=P<<10;qp(H)-qp(1335)>=0;)H^=1335<<qp(H)-qp(1335);P=(P<<10|H)^21522;for(H=0;H<15;H++)f=!X&&(P>>H&1)==1,H<6?K.modules[H][8]=f:H<8?K.modules[H+1][8]=f:K.modules[K.moduleCount-15+H][8]=f;for(H=0;H<15;H++)f=!X&&(P>>H&1)==1,H<8?K.modules[8][K.moduleCount-H-1]=f:H<9?K.modules[8][15-H-1+1]=f:K.modules[8][15-H-1]=f;K.modules[K.moduleCount-
8][8]=!X;if(K.typeNumber>=7){P=K.typeNumber;for(H=P<<12;qp(H)-qp(7973)>=0;)H^=7973<<qp(H)-qp(7973);P=P<<12|H;for(H=0;H<18;H++)f=!X&&(P>>H&1)==1,K.modules[Math.floor(H/3)][H%3+K.moduleCount-8-3]=f;for(H=0;H<18;H++)f=!X&&(P>>H&1)==1,K.modules[H%3+K.moduleCount-8-3][Math.floor(H/3)]=f}if(K.dataCache==null){H=K.typeNumber;f=K.dataList;X=K.errorCorrectLevel;P=hhJ(H,X);if(P==void 0)throw Error("qk`"+H+"`"+X);u=P.length/3;X=[];for(J=0;J<u;J++){Z=P[J*3];M=P[J*3+1];for(var n=P[J*3+2],c=0;c<Z;c++)X.push(new aW1(M,
n))}P=new tFW;for(u=0;u<f.length;u++)J=f[u],P.put(J.mode,4),P.put(J.getLength(),m6V(J.mode,H)),J.write(P);for(u=H=0;u<X.length;u++)H+=X[u].dataCount;if(P.length>H*8)throw Error("kk`"+P.length+"`"+H*8);for(P.length+4<=H*8&&P.put(0,4);P.length%8!=0;)G4v(P,!1);for(;!(P.length>=H*8);){P.put(236,8);if(P.length>=H*8)break;P.put(17,8)}f=H=M=0;u=Array(X.length);J=Array(X.length);for(Z=0;Z<X.length;Z++){c=X[Z].dataCount;var B=X[Z].totalCount-c;H=Math.max(H,c);f=Math.max(f,B);u[Z]=Array(c);for(n=0;n<u[Z].length;n++)u[Z][n]=
255&P.buffer[n+M];M+=c;n=B;c=new SC([1],0);for(B=0;B<n;B++)c=c.multiply(new SC([1,lGV(B)],0));n=c;c=(new SC(u[Z],n.getLength()-1)).mod(n);J[Z]=Array(n.getLength()-1);for(n=0;n<J[Z].length;n++)B=n+c.getLength()-J[Z].length,J[Z][n]=B>=0?c.get(B):0}for(n=P=0;n<X.length;n++)P+=X[n].totalCount;P=Array(P);for(n=M=0;n<H;n++)for(Z=0;Z<X.length;Z++)n<u[Z].length&&(P[M++]=u[Z][n]);for(n=0;n<f;n++)for(Z=0;Z<X.length;Z++)n<J[Z].length&&(P[M++]=J[Z][n]);K.dataCache=P}X=K.dataCache;P=-1;H=K.moduleCount-1;f=7;u=
0;for(J=K.moduleCount-1;J>0;J-=2)for(J==6&&J--;;){for(Z=0;Z<2;Z++)K.modules[H][J-Z]==null&&(M=!1,u<X.length&&(M=(X[u]>>>f&1)==1),vvw(F,H,J-Z)&&(M=!M),K.modules[H][J-Z]=M,f--,f==-1&&(u++,f=7));H+=P;if(H<0||K.moduleCount<=H){H-=P;P=-P;break}}},Rh8=function(K,X,F){for(var P=-1;P<=7;P++)if(!(X+P<=-1||K.moduleCount<=X+P))for(var H=-1;H<=7;H++)F+H<=-1||K.moduleCount<=F+H||(K.modules[X+P][F+H]=0<=P&&P<=6&&(H==0||H==6)||0<=H&&H<=6&&(P==0||P==6)||2<=P&&P<=4&&2<=H&&H<=4?!0:!1)},bLv=function(K){for(var X=0,
F=0,P=0;P<8;P++){E3t(K,!0,P);
var H=K;for(var f=H.moduleCount,u=0,J=0;J<f;J++)for(var Z=0;Z<f;Z++){for(var M=0,n=H.isDark(J,Z),c=-1;c<=1;c++)if(!(J+c<0||f<=J+c))for(var B=-1;B<=1;B++)Z+B<0||f<=Z+B||(c!=0||B!=0)&&n==H.isDark(J+c,Z+B)&&M++;M>5&&(u+=3+M-5)}for(J=0;J<f-1;J++)for(Z=0;Z<f-1;Z++)if(M=0,H.isDark(J,Z)&&M++,H.isDark(J+1,Z)&&M++,H.isDark(J,Z+1)&&M++,H.isDark(J+1,Z+1)&&M++,M==0||M==4)u+=3;for(J=0;J<f;J++)for(Z=0;Z<f-6;Z++)H.isDark(J,Z)&&!H.isDark(J,Z+1)&&H.isDark(J,Z+2)&&H.isDark(J,Z+3)&&H.isDark(J,Z+4)&&!H.isDark(J,Z+5)&&
H.isDark(J,Z+6)&&(u+=40);for(Z=0;Z<f;Z++)for(J=0;J<f-6;J++)H.isDark(J,Z)&&!H.isDark(J+1,Z)&&H.isDark(J+2,Z)&&H.isDark(J+3,Z)&&H.isDark(J+4,Z)&&!H.isDark(J+5,Z)&&H.isDark(J+6,Z)&&(u+=40);for(Z=M=0;Z<f;Z++)for(J=0;J<f;J++)H.isDark(J,Z)&&M++;H=u+=Math.abs(100*M/f/f-50)/5*10;if(P==0||X>H)X=H,F=P}return F},U6s=[[],
[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]],qp=function(K){for(var X=0;K!=0;)X++,K>>>=1;return X},vvw=function(K,X,F){switch(K){case 0:return(X+F)%2==0;
case 1:return X%2==0;case 2:return F%3==0;case 3:return(X+F)%3==0;case 4:return(Math.floor(X/2)+Math.floor(F/3))%2==0;case 5:return X*F%2+X*F%3==0;case 6:return(X*F%2+X*F%3)%2==0;case 7:return(X*F%3+(X+F)%2)%2==0;default:throw Error("lk`"+K);}},m6V=function(K,X){if(1<=X&&X<10)switch(K){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("mk`"+K);}else if(X<27)switch(K){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("mk`"+K);}else if(X<41)switch(K){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("mk`"+K);}else throw Error("nk`"+X);},JJ=function(K){if(K<1)throw Error("ok`"+K);
return aGd[K]},lGV=function(K){for(;K<0;)K+=255;
for(;K>=256;)K-=255;return Zt[K]},Zt=Array(256),aGd=Array(256),tQw=0;tQw<8;tQw++)Zt[tQw]=1<<tQw;
for(var YK=8;YK<256;YK++)Zt[YK]=Zt[YK-4]^Zt[YK-5]^Zt[YK-6]^Zt[YK-8];for(var $68=0;$68<255;$68++)aGd[Zt[$68]]=$68;SC.prototype.get=function(K){return this.num[K]};
SC.prototype.getLength=function(){return this.num.length};
SC.prototype.multiply=function(K){for(var X=Array(this.getLength()+K.getLength()-1),F=0;F<this.getLength();F++)for(var P=0;P<K.getLength();P++)X[F+P]^=lGV(JJ(this.get(F))+JJ(K.get(P)));return new SC(X,0)};
SC.prototype.mod=function(K){if(this.getLength()-K.getLength()<0)return this;for(var X=JJ(this.get(0))-JJ(K.get(0)),F=Array(this.getLength()),P=0;P<this.getLength();P++)F[P]=this.get(P);for(P=0;P<K.getLength();P++)F[P]^=lGV(JJ(K.get(P))+X);return(new SC(F,0)).mod(K)};
var Ou1=[[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]],hhJ=function(K,X){switch(X){case 1:return Ou1[(K-1)*4];case 0:return Ou1[(K-1)*4+1];case 3:return Ou1[(K-1)*4+2];case 2:return Ou1[(K-1)*4+3]}};
tFW.prototype.get=function(K){return(this.buffer[Math.floor(K/8)]>>>7-K%8&1)==1};
tFW.prototype.put=function(K,X){for(var F=0;F<X;F++)G4v(this,(K>>>X-F-1&1)==1)};
var G4v=function(K,X){var F=Math.floor(K.length/8);K.buffer.length<=F&&K.buffer.push(0);X&&(K.buffer[F]|=128>>>K.length%8);K.length++},uE=[[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]],VFv=function(){var K=function(X,F){this.JSC$17356__el=X;this.JSC$17356__htOption=F};
K.prototype.draw=function(X){function F(n,c){n=document.createElementNS("http://www.w3.org/2000/svg",n);for(var B in c)c.hasOwnProperty(B)&&(B==="href"?_.Osw(n,c[B]):_.af([_.kE(ArJ),_.kE(jGF),_.kE(wDo),_.kE(yr8),_.kE(W6t),_.kE(d61),_.kE(eho)],n,B,c[B]));return n}
var P=this.JSC$17356__htOption,H=this.JSC$17356__el,f=X.moduleCount;this.clear();var u=F("svg",{viewBox:"0 0 "+String(f)+" "+String(f),width:"100%",height:"100%",fill:P.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});H.appendChild(u);u.appendChild(F("rect",{fill:P.colorLight,width:"100%",height:"100%"}));u.appendChild(F("rect",{fill:P.colorDark,width:"1",height:"1",id:"template"}));for(var J=0;J<f;J++)for(var Z=0;Z<f;Z++)if(X.isDark(J,Z)){var M=F("use",{x:String(J),y:String(Z),href:"#template"});
u.appendChild(M)}};
K.prototype.clear=function(){for(;this.JSC$17356__el.hasChildNodes();)this.JSC$17356__el.removeChild(this.JSC$17356__el.lastChild)};
return K}(),OLt=document.documentElement.tagName.toLowerCase()==="svg"?VFv:typeof CanvasRenderingContext2D!="undefined"?function(){var K=function(X,F){this._bIsPainted=!1;
$F5();this.JSC$17356__htOption=F;this._elCanvas=document.createElement("canvas");this._elCanvas.width=F.width;this._elCanvas.height=F.height;X.appendChild(this._elCanvas);this.JSC$17356__el=X;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$17356__el.appendChild(this._elImage);this._bSupportDataURI=null};
K.prototype._onMakeImage=function(){var X=this._elCanvas.toDataURL("image/png");this._elImage.src=X;this._elImage.style.display="block";this._elCanvas.style.display="none"};
K.prototype._safeSetDataURI=function(X,F){var P=this;P._fFail=F;P._fSuccess=X;P._bSupportDataURI===null?(X=_.nJ("IMG"),F=function(){P._bSupportDataURI=!1;P._fFail&&P._fFail.call(P)},X.onabort=F,X.onerror=F,X.onload=function(){P._bSupportDataURI=!0;
P._fSuccess&&P._fSuccess.call(P)},X.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):P._bSupportDataURI===!0&&P._fSuccess?P._fSuccess.call(P):P._bSupportDataURI===!1&&P._fFail&&P._fFail.call(P)};
K.prototype.draw=function(X){var F=this._oContext,P=this.JSC$17356__htOption,H=X.moduleCount,f=P.width/H,u=P.height/H,J=Math.round(f),Z=Math.round(u);this._elImage.style.display="none";this.clear();for(var M=0;M<H;M++)for(var n=0;n<H;n++){var c=X.isDark(M,n),B=n*f,L=M*u;F.strokeStyle=c?P.colorDark:P.colorLight;F.lineWidth=1;F.fillStyle=c?P.colorDark:P.colorLight;F.fillRect(B,L,f,u);F.strokeRect(Math.floor(B)+.5,Math.floor(L)+.5,J,Z);F.strokeRect(Math.ceil(B)-.5,Math.ceil(L)-.5,J,Z)}this._bIsPainted=
!0};
K.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
K.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
K.prototype.round=function(X){return X?Math.floor(X*1E3)/1E3:X};
return K}():function(){var K=function(X,F){this.JSC$17356__el=X;
this.JSC$17356__htOption=F};
K.prototype.draw=function(X){for(var F=this.JSC$17356__htOption,P=this.JSC$17356__el,H=X.moduleCount,f=Math.floor(F.width/H),u=Math.floor(F.height/H),J=['<table style="border:0;border-collapse:collapse;">'],Z=0;Z<H;Z++){J.push("<tr>");for(var M=0;M<H;M++)J.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+f+"px;height:"+u+"px;background-color:"+(X.isDark(Z,M)?F.colorDark:F.colorLight)+';"></td>');J.push("</tr>")}J.push("</table>");X=J.join("");X=_.xty(_.kfl,X);_.v$(P,X);
X=P.childNodes[0];H=(F.width-X.offsetWidth)/2;f=(F.height-X.offsetHeight)/2;H>0&&f>0&&(X.style.margin=f+"px "+H+"px")};
K.prototype.clear=function(){this.JSC$17356__el.textContent=""};
return K}();
CyF.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17359__android||this.JSC$17359__android>=3)&&this._oDrawing.makeImage()};
CyF.prototype.clear=function(){this._oDrawing.clear()};
_.FP.QRCode=CyF;var VQF={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var QN=function(){};
QN.prototype.stringify=function(K){return _.FP.JSON.stringify(K,void 0)};
QN.prototype.parse=function(K){return _.FP.JSON.parse(K,void 0)};var gvV=function(){_.HD.call(this,"z")};
_.br(gvV,_.HD);var Evs=function(){_.HD.call(this,"y")};
_.br(Evs,_.HD);var buG=null,Cak=function(){return buG=buG||new _.ua},NY5=function(K){_.HD.call(this,"serverreachability",K)};
_.br(NY5,_.HD);var Mp=function(K){var X=Cak();X.dispatchEvent(new NY5(X,K))},iuJ=function(K){_.HD.call(this,"statevent",K)};
_.br(iuJ,_.HD);var ne=function(K){var X=Cak();X.dispatchEvent(new iuJ(X,K))},x6V=function(K,X,F,P){_.HD.call(this,"timingevent",K);
this.size=X;this.rtt=F;this.retries=P};
_.br(x6V,_.HD);var IGV=function(K,X,F){var P=Cak();P.dispatchEvent(new x6V(P,K,X,F))},cw=function(K,X){if(typeof K!=="function")throw Error("sk");
return _.FP.setTimeout(function(){K()},X)};var pe=function(){this.redactEnabled_=!0};
pe.prototype.disableRedact=function(){this.redactEnabled_=!1};
var k45=function(K,X,F,P,H,f){K.info(function(){if(K.redactEnabled_)if(f){var u="";for(var J=f.split("&"),Z=0;Z<J.length;Z++){var M=J[Z].split("=");if(M.length>1){var n=M[0];M=M[1];var c=n.split("_");u=c.length>=2&&c[1]=="type"?u+(n+"="+M+"&"):u+(n+"=redacted&")}}}else u=null;else u=f;return"XMLHTTP REQ ("+P+") [attempt "+H+"]: "+X+"\n"+F+"\n"+u})},K91=function(K,X,F,P,H,f,u){K.info(function(){return"XMLHTTP RESP ("+P+") [ attempt "+H+"]: "+X+"\n"+F+"\n"+f+" "+u})},Bw=function(K,X,F,P){K.info(function(){return"XMLHTTP TEXT ("+
X+"): "+XVd(K,F)+(P?" "+P:"")})},F9k=function(K,X){K.info(function(){return"TIMEOUT: "+X})};
pe.prototype.debug=function(){};
pe.prototype.info=function(){};
pe.prototype.warning=function(){};
var XVd=function(K,X){if(!K.redactEnabled_)return X;if(!X)return null;try{var F=JSON.parse(X);if(F)for(var P=0;P<F.length;P++)if(Array.isArray(F[P])){var H=F[P];if(!(H.length<2)){var f=H[1];if(Array.isArray(f)&&!(f.length<1)){var u=f[0];if(u!="noop"&&u!="stop"&&u!="close")for(var J=1;J<f.length;J++)f[J]=""}}}return(0,_.nu)(F)}catch(Z){return K.debug("Exception parsing expected JS array - probably was not JS"),X}};var Sr=function(K,X,F,P,H){this.JSC$17381_channel_=K;this.JSC$17381_channelDebug_=X;this.sid_=F;this.JSC$17381_rid_=P;this.JSC$17381_retryId_=H||1;this.JSC$17381_eventHandler_=new _.iv(this);this.timeout_=45E3;this.JSC$17381_extraHeaders_=null;this.JSC$17381_successful_=!1;this.JSC$17381_postData_=this.JSC$17381_requestUri_=this.JSC$17381_baseUri_=this.JSC$17381_type_=this.JSC$17381_requestStartTime_=this.JSC$17381_watchDogTimeoutTime_=this.JSC$17381_watchDogTimerId_=null;this.JSC$17381_pendingMessages_=
[];this.JSC$17381_xmlHttp_=null;this.JSC$17381_xmlHttpChunkStart_=0;this.JSC$17381_lastError_=this.JSC$17381_verb_=null;this.JSC$17381_lastStatusCode_=-1;this.JSC$17381_cancelled_=!1;this.JSC$17381_readyStateChangeThrottleMs_=0;this.JSC$17381_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new PRJ},PRJ=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},H1s=function(K,X){switch(K){case 0:return"Non-200 return code ("+X+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},s5k={},z0o={};
Sr.prototype.setTimeout=function(K){this.timeout_=K};
var DEW=function(K,X,F){K.JSC$17381_type_=1;K.JSC$17381_baseUri_=_.ia(X.clone());K.JSC$17381_postData_=F;K.decodeChunks_=!0;fBk(K,null)},fBk=function(K,X){K.JSC$17381_requestStartTime_=Date.now();
uk8(K);K.JSC$17381_requestUri_=K.JSC$17381_baseUri_.clone();FV(K.JSC$17381_requestUri_,"t",K.JSC$17381_retryId_);K.JSC$17381_xmlHttpChunkStart_=0;var F=K.JSC$17381_channel_.JSC$17400_supportsCrossDomainXhrs_;K.fetchResponseState_=new PRJ;K.JSC$17381_xmlHttp_=qhv(K.JSC$17381_channel_,F?X:null,!K.JSC$17381_postData_);K.JSC$17381_readyStateChangeThrottleMs_>0&&(K.JSC$17381_readyStateChangeThrottle_=new _.VW((0,_.T3)(K.JSC$17385_xmlHttpHandler_,K,K.JSC$17381_xmlHttp_),K.JSC$17381_readyStateChangeThrottleMs_));
K.JSC$17381_eventHandler_.listen(K.JSC$17381_xmlHttp_,"readystatechange",K.JSC$17385_readyStateChangeHandler_);X=K.JSC$17381_extraHeaders_?_.T8.clone(K.JSC$17381_extraHeaders_):{};K.JSC$17381_postData_?(K.JSC$17381_verb_||(K.JSC$17381_verb_="POST"),X["Content-Type"]="application/x-www-form-urlencoded",K.JSC$17381_xmlHttp_.send(K.JSC$17381_requestUri_,K.JSC$17381_verb_,K.JSC$17381_postData_,X)):(K.JSC$17381_verb_="GET",K.JSC$17381_xmlHttp_.send(K.JSC$17381_requestUri_,K.JSC$17381_verb_,null,X));Mp(1);
k45(K.JSC$17381_channelDebug_,K.JSC$17381_verb_,K.JSC$17381_requestUri_,K.JSC$17381_rid_,K.JSC$17381_retryId_,K.JSC$17381_postData_)};
Sr.prototype.JSC$17385_readyStateChangeHandler_=function(K){K=K.target;var X=this.JSC$17381_readyStateChangeThrottle_;X&&_.pu(K)==3?(this.JSC$17381_channelDebug_.debug("Throttling readystatechange."),X.fire()):this.JSC$17385_xmlHttpHandler_(K)};
Sr.prototype.JSC$17385_xmlHttpHandler_=function(K){try{K==this.JSC$17381_xmlHttp_?JmW(this):this.JSC$17381_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(X){this.JSC$17381_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),Z1G(this)}finally{}};
var JmW=function(K){var X=_.pu(K.JSC$17381_xmlHttp_),F=K.JSC$17381_xmlHttp_.JSC$7807_lastErrorCode_,P=K.JSC$17381_xmlHttp_.getStatus();if(!(X<3||X==3&&!Z1G(K))){K.JSC$17381_cancelled_||X!=4||F==7||(F==8||P<=0?Mp(3):Mp(2));Yho(K);var H=K.JSC$17381_xmlHttp_.getStatus();K.JSC$17381_lastStatusCode_=H;F=Q51(K);Z1G(K)||K.JSC$17381_channelDebug_.debug(function(){return"No response text for uri "+K.JSC$17381_requestUri_+" status "+H});
K.JSC$17381_successful_=H==200;K91(K.JSC$17381_channelDebug_,K.JSC$17381_verb_,K.JSC$17381_requestUri_,K.JSC$17381_rid_,K.JSC$17381_retryId_,X,H);if(K.JSC$17381_successful_){if(K.decodeInitialResponse_&&!K.initialResponseDecoded_)if(P=MaV(K))Bw(K.JSC$17381_channelDebug_,K.JSC$17381_rid_,P,"Initial handshake response via X-HTTP-Initial-Response"),K.initialResponseDecoded_=!0,n0W(K,P);else{K.JSC$17381_successful_=!1;K.JSC$17381_lastError_=3;ne(12);K.JSC$17381_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
K.JSC$17381_rid_+")");ol(K);Le(K);return}K.decodeChunks_?cmJ(K,X,F):(Bw(K.JSC$17381_channelDebug_,K.JSC$17381_rid_,F,null),n0W(K,F));X==4&&ol(K);K.JSC$17381_successful_&&!K.JSC$17381_cancelled_&&(X==4?pV8(K.JSC$17381_channel_,K):(K.JSC$17381_successful_=!1,uk8(K)))}else M0d(K.JSC$17381_xmlHttp_),H==400&&F.indexOf("Unknown SID")>0?(K.JSC$17381_lastError_=3,ne(12),K.JSC$17381_channelDebug_.warning("XMLHTTP Unknown SID ("+K.JSC$17381_rid_+")")):(K.JSC$17381_lastError_=0,ne(13),K.JSC$17381_channelDebug_.warning("XMLHTTP Bad status "+
H+" ("+K.JSC$17381_rid_+")")),ol(K),Le(K)}},MaV=function(K){return K.JSC$17381_xmlHttp_&&(K=uA(K.JSC$17381_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.fO(K)?K:null},Q51=function(K){if(!BRo(K))return K.JSC$17381_xmlHttp_.getResponseText();
var X=K.JSC$17381_xmlHttp_.getResponse();if(X==="")return"";var F="",P=X.length,H=_.pu(K.JSC$17381_xmlHttp_)==4;if(!K.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return ol(K),Le(K),"";K.fetchResponseState_.textDecoder=new _.FP.TextDecoder}for(var f=0;f<P;f++)K.fetchResponseState_.responseArrivedForFetch=!0,F+=K.fetchResponseState_.textDecoder.decode(X[f],{stream:!(H&&f==P-1)});X.length=0;K.fetchResponseState_.responseBuffer+=F;K.JSC$17381_xmlHttpChunkStart_=0;return K.fetchResponseState_.responseBuffer},
Z1G=function(K){return K.JSC$17381_xmlHttp_?K.fetchResponseState_.responseArrivedForFetch?!0:!(!K.JSC$17381_xmlHttp_.getResponseText()&&!K.JSC$17381_xmlHttp_.getResponse()):!1},BRo=function(K){return K.JSC$17381_xmlHttp_?K.JSC$17381_verb_=="GET"&&K.JSC$17381_type_!=2&&K.JSC$17381_channel_.usesFetchStreams_:!1},cmJ=function(K,X,F){for(var P=!0,H;!K.JSC$17381_cancelled_&&K.JSC$17381_xmlHttpChunkStart_<F.length;)if(H=Shk(K,F),H==z0o){X==4&&(K.JSC$17381_lastError_=4,ne(14),P=!1);
Bw(K.JSC$17381_channelDebug_,K.JSC$17381_rid_,null,"[Incomplete Response]");break}else if(H==s5k){K.JSC$17381_lastError_=4;ne(15);Bw(K.JSC$17381_channelDebug_,K.JSC$17381_rid_,F,"[Invalid Chunk]");P=!1;break}else Bw(K.JSC$17381_channelDebug_,K.JSC$17381_rid_,H,null),n0W(K,H);BRo(K)&&K.JSC$17381_xmlHttpChunkStart_!=0&&(K.fetchResponseState_.responseBuffer=K.fetchResponseState_.responseBuffer.slice(K.JSC$17381_xmlHttpChunkStart_),K.JSC$17381_xmlHttpChunkStart_=0);X!=4||F.length!=0||K.fetchResponseState_.responseArrivedForFetch||
(K.JSC$17381_lastError_=1,ne(16),P=!1);K.JSC$17381_successful_=K.JSC$17381_successful_&&P;P?F.length>0&&!K.firstByteReceived_&&(K.firstByteReceived_=!0,X=K.JSC$17381_channel_,X.JSC$17400_backChannelRequest_==K&&X.detectBufferingProxy_&&!X.bpDetectionDone_&&(X.JSC$17400_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+F.length),o0w(X),X.bpDetectionDone_=!0,ne(11))):(Bw(K.JSC$17381_channelDebug_,K.JSC$17381_rid_,F,"[Invalid Chunked Response]"),ol(K),Le(K))},Shk=function(K,X){var F=
K.JSC$17381_xmlHttpChunkStart_,P=X.indexOf("\n",F);
if(P==-1)return z0o;F=Number(X.substring(F,P));if(isNaN(F))return s5k;P+=1;if(P+F>X.length)return z0o;X=X.slice(P,P+F);K.JSC$17381_xmlHttpChunkStart_=P+F;return X};
Sr.prototype.cancel=function(){this.JSC$17381_cancelled_=!0;ol(this)};
var uk8=function(K){K.JSC$17381_watchDogTimeoutTime_=Date.now()+K.timeout_;L9W(K,K.timeout_)},L9W=function(K,X){if(K.JSC$17381_watchDogTimerId_!=null)throw Error("tk");
K.JSC$17381_watchDogTimerId_=cw((0,_.T3)(K.JSC$17385_onWatchDogTimeout_,K),X)},Yho=function(K){K.JSC$17381_watchDogTimerId_&&(_.FP.clearTimeout(K.JSC$17381_watchDogTimerId_),K.JSC$17381_watchDogTimerId_=null)};
Sr.prototype.JSC$17385_onWatchDogTimeout_=function(){this.JSC$17381_watchDogTimerId_=null;var K=Date.now();K-this.JSC$17381_watchDogTimeoutTime_>=0?(F9k(this.JSC$17381_channelDebug_,this.JSC$17381_requestUri_),this.JSC$17381_type_!=2&&(Mp(3),ne(17)),ol(this),this.JSC$17381_lastError_=2,Le(this)):(this.JSC$17381_channelDebug_.warning("WatchDog timer called too early"),L9W(this,this.JSC$17381_watchDogTimeoutTime_-K))};
var Le=function(K){K.JSC$17381_channel_.state_==0||K.JSC$17381_cancelled_||pV8(K.JSC$17381_channel_,K)},ol=function(K){Yho(K);
_.ik(K.JSC$17381_readyStateChangeThrottle_);K.JSC$17381_readyStateChangeThrottle_=null;K.JSC$17381_eventHandler_.removeAll();if(K.JSC$17381_xmlHttp_){var X=K.JSC$17381_xmlHttp_;K.JSC$17381_xmlHttp_=null;X.abort();X.dispose()}};
Sr.prototype.getLastError=function(){return this.JSC$17381_lastError_};
var n0W=function(K,X){try{var F=K.JSC$17381_channel_;if(F.state_!=0&&(F.JSC$17400_backChannelRequest_==K||TRt(F.forwardChannelRequestPool_,K)))if(!K.initialResponseDecoded_&&TRt(F.forwardChannelRequestPool_,K)&&F.state_==3){try{var P=F.wireCodec_.JSC$17395_parser_.parse(X)}catch(J){P=null}if(Array.isArray(P)&&P.length==3){X=P;if(X[0]==0)a:if(F.JSC$17400_channelDebug_.debug("Server claims our backchannel is missing."),F.JSC$17400_backChannelTimerId_)F.JSC$17400_channelDebug_.debug("But we are currently starting the request.");
else{if(F.JSC$17400_backChannelRequest_)if(F.JSC$17400_backChannelRequest_.JSC$17381_requestStartTime_+3E3<K.JSC$17381_requestStartTime_)rm8(F),Amt(F);else break a;else F.JSC$17400_channelDebug_.warning("We do not have a BackChannel established");j5o(F);ne(18)}else{F.JSC$17400_lastPostResponseArrayId_=X[1];var H=F.JSC$17400_lastPostResponseArrayId_-F.JSC$17400_lastArrayId_;if(0<H){var f=X[2];F.JSC$17400_channelDebug_.debug(f+" bytes (in "+H+" arrays) are outstanding on the BackChannel");f<37500&&
F.enableStreaming_&&F.JSC$17400_backChannelRetryCount_==0&&!F.JSC$17400_deadBackChannelTimerId_&&(F.JSC$17400_deadBackChannelTimerId_=cw((0,_.T3)(F.JSC$17402_onBackChannelDead_,F),6E3))}}if(wVF(F.forwardChannelRequestPool_)<=1&&F.forwardChannelFlushedCallback_){try{F.forwardChannelFlushedCallback_()}catch(J){}F.forwardChannelFlushedCallback_=void 0}}else F.JSC$17400_channelDebug_.debug("Bad POST response data returned"),TF(F,11)}else if((K.initialResponseDecoded_||F.JSC$17400_backChannelRequest_==
K)&&rm8(F),!_.fO(X)){var u=F.wireCodec_.JSC$17395_parser_.parse(X);F.onInput_(u,K)}Mp(4)}catch(J){}};var ymo=function(K,X){this.JSC$17388_mapId=K;this.map=X;this.context=null};var W9F=function(K){this.maxPoolSizeConfigured_=K||10;_.FP.PerformanceNavigationTiming?(K=_.FP.performance.getEntriesByType("navigation"),K=K.length>0&&(K[0].nextHopProtocol=="hq"||K[0].nextHopProtocol=="h2")):K=!!(_.FP.chrome&&_.FP.chrome.loadTimes&&_.FP.chrome.loadTimes()&&_.FP.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17391_maxSize_=K?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17391_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17391_request_=null;this.JSC$17391_pendingMessages_=
[]},dE5=function(K){return K.JSC$17391_request_?!0:K.requestPool_?K.requestPool_.size>=K.JSC$17391_maxSize_:!1},wVF=function(K){return K.JSC$17391_request_?1:K.requestPool_?K.requestPool_.size:0},TRt=function(K,X){return K.JSC$17391_request_?K.JSC$17391_request_==X:K.requestPool_?K.requestPool_.has(X):!1},e0s=function(K,X){K.requestPool_?K.requestPool_.add(X):K.JSC$17391_request_=X},R0o=function(K,X){K.JSC$17391_request_&&K.JSC$17391_request_==X?K.JSC$17391_request_=null:K.requestPool_&&K.requestPool_.has(X)&&
K.requestPool_.delete(X)};
W9F.prototype.cancel=function(){this.JSC$17391_pendingMessages_=UEV(this);if(this.JSC$17391_request_)this.JSC$17391_request_.cancel(),this.JSC$17391_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var K=_.D(this.requestPool_.values()),X=K.next();!X.done;X=K.next())X.value.cancel();this.requestPool_.clear()}};
var UEV=function(K){if(K.JSC$17391_request_!=null)return K.JSC$17391_pendingMessages_.concat(K.JSC$17391_request_.JSC$17381_pendingMessages_);if(K.requestPool_!=null&&K.requestPool_.size!==0){var X=K.JSC$17391_pendingMessages_;K=_.D(K.requestPool_.values());for(var F=K.next();!F.done;F=K.next())X=X.concat(F.value.JSC$17381_pendingMessages_);return X}return _.Nq(K.JSC$17391_pendingMessages_)},h0F=function(K,X){K.JSC$17391_pendingMessages_=K.JSC$17391_pendingMessages_.concat(X)};var mEV=function(K,X){var F=new pe;F.debug("TestLoadImage: loading "+K);if(_.FP.Image){var P=new Image;P.onload=_.Jc(ra,F,"TestLoadImage: loaded",!0,X,P);P.onerror=_.Jc(ra,F,"TestLoadImage: error",!1,X,P);P.onabort=_.Jc(ra,F,"TestLoadImage: abort",!1,X,P);P.ontimeout=_.Jc(ra,F,"TestLoadImage: timeout",!1,X,P);_.FP.setTimeout(function(){if(P.ontimeout)P.ontimeout()},1E4);
P.src=K}else X(!1)},GVo=function(K,X){var F=new pe,P=new AbortController,H=setTimeout(function(){P.abort();
ra(F,"TestPingServer: timeout",!1,X)},1E4);
fetch(K,{signal:P.signal}).then(function(f){clearTimeout(H);f.ok?ra(F,"TestPingServer: ok",!0,X):ra(F,"TestPingServer: server error",!1,X)}).catch(function(){clearTimeout(H);
ra(F,"TestPingServer: error",!1,X)})},ra=function(K,X,F,P,H){try{K.debug(X),H&&(H.onload=null,H.onerror=null,H.onabort=null,H.ontimeout=null),P(F)}catch(f){}};var lB1=function(){this.JSC$17395_parser_=new QN},v0d=function(K,X,F){var P=F||"";
try{_.D4t(K,function(H,f){var u=H;_.XL(H)&&(u=(0,_.nu)(H));X.push(P+f+"="+encodeURIComponent(u))})}catch(H){throw X.push(P+"type="+encodeURIComponent("_badmap")),H;
}};var AJ=function(K,X,F){return F&&F.internalChannelParams?F.internalChannelParams[K]||X:X},jr=function(K){this.serverVersion_=0;
this.JSC$17400_outgoingMaps_=[];this.JSC$17400_channelDebug_=new pe;this.JSC$17400_hostPrefix_=this.JSC$17400_backChannelUri_=this.JSC$17400_forwardChannelUri_=this.JSC$17400_path_=this.JSC$17400_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17400_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17400_extraHeaders_=null;this.JSC$17400_nextMapId_=this.JSC$17400_nextRid_=0;this.JSC$17400_failFast_=AJ("failFast",!1,K);this.enableStreaming_=this.JSC$17400_deadBackChannelTimerId_=
this.JSC$17400_backChannelTimerId_=this.JSC$17400_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17400_lastPostResponseArrayId_=this.JSC$17400_lastArrayId_=-1;this.JSC$17400_backChannelAttemptId_=this.JSC$17400_backChannelRetryCount_=this.JSC$17400_forwardChannelRetryCount_=0;this.JSC$17400_baseRetryDelayMs_=AJ("baseRetryDelayMs",5E3,K);this.JSC$17400_retryDelaySeedMs_=AJ("retryDelaySeedMs",1E4,K);this.JSC$17400_forwardChannelMaxRetries_=
AJ("forwardChannelMaxRetries",2,K);this.JSC$17400_forwardChannelRequestTimeoutMs_=AJ("forwardChannelRequestTimeoutMs",2E4,K);this.JSC$17400_xmlHttpFactory_=K&&K.xmlHttpFactory||void 0;this.networkTestUrl_=K&&K.networkTestUrl||void 0;this.usesFetchStreams_=K&&K.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17400_supportsCrossDomainXhrs_=K&&K.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new W9F(K&&K.concurrentRequestLimit);this.wireCodec_=new lB1;this.fastHandshake_=
K&&K.fastHandshake||!1;this.encodeInitMessageHeaders_=K&&K.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17400_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=K&&K.blockingHandshake||!1;K&&K.disableRedact&&this.JSC$17400_channelDebug_.disableRedact();K&&K.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
K&&K.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;K&&K.longPollingTimeout&&K.longPollingTimeout>0&&(this.longPollingTimeout_=K.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
jr.prototype.JSC$17402_channelVersion_=8;jr.prototype.state_=1;
jr.prototype.connect=function(K,X,F,P){this.JSC$17400_channelDebug_.debug("connect()");ne(0);this.JSC$17400_path_=K;this.JSC$17400_extraParams_=X||{};F&&P!==void 0&&(this.JSC$17400_extraParams_.OSID=F,this.JSC$17400_extraParams_.OAID=P);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17400_channelDebug_.debug("connectChannel_()");K=aBv(this,null,this.JSC$17400_path_);this.JSC$17400_channelDebug_.debug("GetForwardChannelUri: "+K);this.JSC$17400_forwardChannelUri_=K;tas(this)};
jr.prototype.disconnect=function(){this.JSC$17400_channelDebug_.debug("disconnect()");$Et(this);if(this.state_==3){var K=this.JSC$17400_nextRid_++,X=this.JSC$17400_forwardChannelUri_.clone();_.$L(X,"SID",this.sid_);_.$L(X,"RID",K);_.$L(X,"TYPE","terminate");wa(this,X);K=new Sr(this,this.JSC$17400_channelDebug_,this.sid_,K);K.JSC$17381_type_=2;K.JSC$17381_baseUri_=_.ia(X.clone());X=!1;if(_.FP.navigator&&_.FP.navigator.sendBeacon)try{X=_.FP.navigator.sendBeacon(K.JSC$17381_baseUri_.toString(),"")}catch(F){}!X&&
_.FP.Image&&((new Image).src=K.JSC$17381_baseUri_,X=!0);X||(K.JSC$17381_xmlHttp_=qhv(K.JSC$17381_channel_,null),K.JSC$17381_xmlHttp_.send(K.JSC$17381_baseUri_));K.JSC$17381_requestStartTime_=Date.now();uk8(K)}O1w(this)};
var Amt=function(K){K.JSC$17400_backChannelRequest_&&(o0w(K),K.JSC$17400_backChannelRequest_.cancel(),K.JSC$17400_backChannelRequest_=null)},$Et=function(K){Amt(K);
K.JSC$17400_backChannelTimerId_&&(_.FP.clearTimeout(K.JSC$17400_backChannelTimerId_),K.JSC$17400_backChannelTimerId_=null);rm8(K);K.forwardChannelRequestPool_.cancel();K.JSC$17400_forwardChannelTimerId_&&(typeof K.JSC$17400_forwardChannelTimerId_==="number"&&_.FP.clearTimeout(K.JSC$17400_forwardChannelTimerId_),K.JSC$17400_forwardChannelTimerId_=null)};
jr.prototype.getState=function(){return this.state_};
var tas=function(K){dE5(K.forwardChannelRequestPool_)||K.JSC$17400_forwardChannelTimerId_||(K.JSC$17400_forwardChannelTimerId_=!0,_.Jr(K.JSC$17402_onStartForwardChannelTimer_,K),K.JSC$17400_forwardChannelRetryCount_=0)},g08=function(K,X){if(wVF(K.forwardChannelRequestPool_)>=K.forwardChannelRequestPool_.JSC$17391_maxSize_-(K.JSC$17400_forwardChannelTimerId_?1:0))return!1;
if(K.JSC$17400_forwardChannelTimerId_)return K.JSC$17400_channelDebug_.debug("Use the retry request that is already scheduled."),K.JSC$17400_outgoingMaps_=X.JSC$17381_pendingMessages_.concat(K.JSC$17400_outgoingMaps_),!0;if(K.state_==1||K.state_==2||K.JSC$17400_forwardChannelRetryCount_>=(K.JSC$17400_failFast_?0:K.JSC$17400_forwardChannelMaxRetries_))return!1;K.JSC$17400_channelDebug_.debug("Going to retry POST");K.JSC$17400_forwardChannelTimerId_=cw((0,_.T3)(K.JSC$17402_onStartForwardChannelTimer_,
K,X),VaW(K,K.JSC$17400_forwardChannelRetryCount_));K.JSC$17400_forwardChannelRetryCount_++;return!0};
jr.prototype.JSC$17402_onStartForwardChannelTimer_=function(K){if(this.JSC$17400_forwardChannelTimerId_)if(this.JSC$17400_forwardChannelTimerId_=null,this.JSC$17400_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!K){this.JSC$17400_channelDebug_.debug("open_()");this.JSC$17400_nextRid_=Math.floor(Math.random()*1E5);K=this.JSC$17400_nextRid_++;var X=new Sr(this,this.JSC$17400_channelDebug_,"",K),F=this.JSC$17400_extraHeaders_;this.initHeaders_&&(F?(F=_.T8.clone(F),_.T8.extend(F,this.initHeaders_)):
F=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(X.JSC$17381_extraHeaders_=F,F=null);var P;if(this.fastHandshake_)a:{for(var H=P=0;H<this.JSC$17400_outgoingMaps_.length;H++){b:{var f=this.JSC$17400_outgoingMaps_[H];if("__data__"in f.map&&(f=f.map.__data__,typeof f==="string")){f=f.length;break b}f=void 0}if(f===void 0)break;P+=f;if(P>4096){P=H;break a}if(P===4096||H===this.JSC$17400_outgoingMaps_.length-1){P=H+1;break a}}P=1E3}else P=1E3;P=E08(this,X,P);
H=this.JSC$17400_forwardChannelUri_.clone();_.$L(H,"RID",K);_.$L(H,"CVER",22);this.httpSessionIdParam_&&_.$L(H,"X-HTTP-Session-Id",this.httpSessionIdParam_);wa(this,H);F&&(this.encodeInitMessageHeaders_?P="headers="+_.l9(MdG(F))+"&"+P:this.httpHeadersOverwriteParam_&&nfW(H,this.httpHeadersOverwriteParam_,F));e0s(this.forwardChannelRequestPool_,X);this.blockingHandshake_&&_.$L(H,"TYPE","init");this.fastHandshake_?(_.$L(H,"$req",P),_.$L(H,"SID","null"),X.decodeInitialResponse_=!0,DEW(X,H,null)):DEW(X,
H,P);this.state_=2}}else this.state_==3&&(K?b1J(this,K):this.JSC$17400_outgoingMaps_.length==0?this.JSC$17400_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):dE5(this.forwardChannelRequestPool_)||(b1J(this),this.JSC$17400_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var b1J=function(K,X){var F;X?F=X.JSC$17381_rid_:F=K.JSC$17400_nextRid_++;var P=K.JSC$17400_forwardChannelUri_.clone();_.$L(P,"SID",K.sid_);_.$L(P,"RID",F);_.$L(P,"AID",K.JSC$17400_lastArrayId_);wa(K,P);K.httpHeadersOverwriteParam_&&K.JSC$17400_extraHeaders_&&nfW(P,K.httpHeadersOverwriteParam_,K.JSC$17400_extraHeaders_);F=new Sr(K,K.JSC$17400_channelDebug_,K.sid_,F,K.JSC$17400_forwardChannelRetryCount_+1);K.httpHeadersOverwriteParam_===null&&(F.JSC$17381_extraHeaders_=K.JSC$17400_extraHeaders_);X&&
(K.JSC$17400_outgoingMaps_=X.JSC$17381_pendingMessages_.concat(K.JSC$17400_outgoingMaps_));X=E08(K,F,1E3);F.setTimeout(Math.round(K.JSC$17400_forwardChannelRequestTimeoutMs_*.5)+Math.round(K.JSC$17400_forwardChannelRequestTimeoutMs_*.5*Math.random()));e0s(K.forwardChannelRequestPool_,F);DEW(F,P,X)},wa=function(K,X){K.JSC$17400_extraParams_&&_.T8.forEach(K.JSC$17400_extraParams_,function(F,P){_.$L(X,P,F)});
K.handler_&&_.D4t({},function(F,P){_.$L(X,P,F)})},E08=function(K,X,F){F=Math.min(K.JSC$17400_outgoingMaps_.length,F);
var P=K.handler_?(0,_.T3)(K.handler_.JSC$17406_badMapError,K.handler_,K):null;a:{for(var H=K.JSC$17400_outgoingMaps_,f=-1;;){var u=["count="+F];f==-1?F>0?(f=H[0].JSC$17388_mapId,u.push("ofs="+f)):f=0:u.push("ofs="+f);for(var J=!0,Z=0;Z<F;Z++){var M=H[Z].JSC$17388_mapId,n=H[Z].map;M-=f;if(M<0)f=Math.max(0,H[Z].JSC$17388_mapId-100),J=!1;else try{v0d(n,u,"req"+M+"_")}catch(c){P&&P(n)}}if(J){P=u.join("&");break a}}P=void 0}K=K.JSC$17400_outgoingMaps_.splice(0,F);X.JSC$17381_pendingMessages_=K;return P},
CRw=function(K){K.JSC$17400_backChannelRequest_||K.JSC$17400_backChannelTimerId_||(K.JSC$17400_backChannelAttemptId_=1,_.Jr(K.JSC$17402_onStartBackChannelTimer_,K),K.JSC$17400_backChannelRetryCount_=0)},j5o=function(K){if(K.JSC$17400_backChannelRequest_||K.JSC$17400_backChannelTimerId_||K.JSC$17400_backChannelRetryCount_>=3)return!1;
K.JSC$17400_channelDebug_.debug("Going to retry GET");K.JSC$17400_backChannelAttemptId_++;K.JSC$17400_backChannelTimerId_=cw((0,_.T3)(K.JSC$17402_onStartBackChannelTimer_,K),VaW(K,K.JSC$17400_backChannelRetryCount_));K.JSC$17400_backChannelRetryCount_++;return!0};
jr.prototype.JSC$17402_onStartBackChannelTimer_=function(){this.JSC$17400_backChannelTimerId_=null;NRd(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17400_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17400_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17400_backChannelRequest_+" "+this.handshakeRttMs_);else{var K=2*this.handshakeRttMs_;this.JSC$17400_channelDebug_.info("BP detection timer enabled: "+K);this.bpDetectionTimerId_=cw((0,_.T3)(this.onBpDetectionTimer_,
this),K)}};
jr.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17400_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17400_backChannelRequest_.JSC$17381_xmlHttp_!=null){var K=this.JSC$17400_backChannelRequest_.JSC$17381_xmlHttp_.getResponseText();K&&this.JSC$17400_channelDebug_.warning("Timer should have been cancelled : "+K)}this.JSC$17400_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;ne(10);Amt(this);NRd(this)}else this.JSC$17400_channelDebug_.warning("Invalid operation.")};
var o0w=function(K){K.bpDetectionTimerId_!=null&&(K.JSC$17400_channelDebug_.debug("Cancel the BP detection timer."),_.FP.clearTimeout(K.bpDetectionTimerId_),K.bpDetectionTimerId_=null)},NRd=function(K){K.JSC$17400_channelDebug_.debug("Creating new HttpRequest");
K.JSC$17400_backChannelRequest_=new Sr(K,K.JSC$17400_channelDebug_,K.sid_,"rpc",K.JSC$17400_backChannelAttemptId_);K.httpHeadersOverwriteParam_===null&&(K.JSC$17400_backChannelRequest_.JSC$17381_extraHeaders_=K.JSC$17400_extraHeaders_);K.JSC$17400_backChannelRequest_.JSC$17381_readyStateChangeThrottleMs_=0;var X=K.JSC$17400_backChannelUri_.clone();_.$L(X,"RID","rpc");_.$L(X,"SID",K.sid_);_.$L(X,"AID",K.JSC$17400_lastArrayId_);_.$L(X,"CI",K.enableStreaming_?"0":"1");!K.enableStreaming_&&K.longPollingTimeout_&&
_.$L(X,"TO",K.longPollingTimeout_);_.$L(X,"TYPE","xmlhttp");wa(K,X);K.httpHeadersOverwriteParam_&&K.JSC$17400_extraHeaders_&&nfW(X,K.httpHeadersOverwriteParam_,K.JSC$17400_extraHeaders_);K.backChannelRequestTimeoutMs_&&K.JSC$17400_backChannelRequest_.setTimeout(K.backChannelRequestTimeoutMs_);var F=K.JSC$17400_backChannelRequest_,P=K.JSC$17400_hostPrefix_;F.JSC$17381_type_=1;F.JSC$17381_baseUri_=_.ia(X.clone());F.JSC$17381_postData_=null;F.decodeChunks_=!0;fBk(F,P);K.JSC$17400_channelDebug_.debug("New Request created")};
jr.prototype.JSC$17402_onBackChannelDead_=function(){this.JSC$17400_deadBackChannelTimerId_!=null&&(this.JSC$17400_deadBackChannelTimerId_=null,Amt(this),j5o(this),ne(19))};
var rm8=function(K){K.JSC$17400_deadBackChannelTimerId_!=null&&(_.FP.clearTimeout(K.JSC$17400_deadBackChannelTimerId_),K.JSC$17400_deadBackChannelTimerId_=null)},pV8=function(K,X){K.JSC$17400_channelDebug_.debug("Request complete");
var F=null;if(K.JSC$17400_backChannelRequest_==X){rm8(K);o0w(K);K.JSC$17400_backChannelRequest_=null;var P=2}else if(TRt(K.forwardChannelRequestPool_,X))F=X.JSC$17381_pendingMessages_,R0o(K.forwardChannelRequestPool_,X),P=1;else return;if(K.state_!=0)if(X.JSC$17381_successful_)P==1?(IGV(X.JSC$17381_postData_?X.JSC$17381_postData_.length:0,Date.now()-X.JSC$17381_requestStartTime_,K.JSC$17400_forwardChannelRetryCount_),tas(K)):CRw(K);else{var H=X.JSC$17381_lastStatusCode_,f=X.getLastError();if(f==3||
f==0&&H>0)K.JSC$17400_channelDebug_.debug("Not retrying due to error type"),H>200&&(K.errorResponseStatusCode_=X.JSC$17381_lastStatusCode_);else{K.JSC$17400_channelDebug_.debug(function(){return"Maybe retrying, last error: "+H1s(f,K.errorResponseStatusCode_)});
if(P==1&&g08(K,X)||P==2&&j5o(K))return;K.JSC$17400_channelDebug_.debug("Exceeded max number of retries")}F&&F.length>0&&h0F(K.forwardChannelRequestPool_,F);K.JSC$17400_channelDebug_.debug("Error: HTTP request failed");switch(f){case 1:TF(K,5);break;case 4:TF(K,10);break;case 3:TF(K,6);break;default:TF(K,2)}}},VaW=function(K,X){var F=K.JSC$17400_baseRetryDelayMs_+Math.floor(Math.random()*K.JSC$17400_retryDelaySeedMs_);
K.isActive()||(K.JSC$17400_channelDebug_.debug("Inactive channel"),F*=2);return F*X};
jr.prototype.onInput_=function(K,X){for(var F=0;F<K.length;F++){var P=K[F];this.JSC$17400_lastArrayId_=P[0];P=P[1];if(this.state_==2)if(P[0]=="c"){this.sid_=P[1];this.JSC$17400_hostPrefix_=P[2];var H=P[3];H!=null&&(this.JSC$17402_channelVersion_=H,this.JSC$17400_channelDebug_.info("VER="+this.JSC$17402_channelVersion_));H=P[4];H!=null&&(this.serverVersion_=H,this.JSC$17400_channelDebug_.info("SVER="+this.serverVersion_));P=P[5];P!=null&&typeof P==="number"&&P>0&&(this.backChannelRequestTimeoutMs_=
P*=1.5,this.JSC$17400_channelDebug_.info("backChannelRequestTimeoutMs_="+P));if(P=X.JSC$17381_xmlHttp_){var f=uA(P,"X-Client-Wire-Protocol");f&&(H=this.forwardChannelRequestPool_,!H.requestPool_&&(_.qq(f,"spdy")||_.qq(f,"quic")||_.qq(f,"h2"))&&(H.JSC$17391_maxSize_=H.maxPoolSizeConfigured_,H.requestPool_=new Set,H.JSC$17391_request_&&(e0s(H,H.JSC$17391_request_),H.JSC$17391_request_=null)));this.httpSessionIdParam_&&((P=uA(P,"X-HTTP-Session-Id"))?(this.httpSessionId_=P,_.$L(this.JSC$17400_forwardChannelUri_,
this.httpSessionIdParam_,P)):this.JSC$17400_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17406_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-X.JSC$17381_requestStartTime_,this.JSC$17400_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));P=X;H=aBv(this,this.JSC$17400_supportsCrossDomainXhrs_?this.JSC$17400_hostPrefix_:null,this.JSC$17400_path_);this.JSC$17400_channelDebug_.debug("GetBackChannelUri: "+
H);this.JSC$17400_backChannelUri_=H;P.initialResponseDecoded_?(this.JSC$17400_channelDebug_.debug("Upgrade the handshake request to a backchannel."),R0o(this.forwardChannelRequestPool_,P),H=P,(f=this.backChannelRequestTimeoutMs_)&&H.setTimeout(f),H.JSC$17381_watchDogTimerId_&&(Yho(H),uk8(H)),this.JSC$17400_backChannelRequest_=P):CRw(this);this.JSC$17400_outgoingMaps_.length>0&&tas(this)}else P[0]!="stop"&&P[0]!="close"||TF(this,7);else this.state_==3&&(P[0]=="stop"||P[0]=="close"?P[0]=="stop"?TF(this,
7):this.disconnect():P[0]!="noop"&&this.handler_&&this.handler_.JSC$17406_channelHandleArray(P),this.JSC$17400_backChannelRetryCount_=0)}};
var TF=function(K,X){K.JSC$17400_channelDebug_.info("Error code "+X);if(X==2){var F=(0,_.T3)(K.testNetworkCallback_,K),P=K.networkTestUrl_,H=!P;P=new _.aJ(P||"//www.google.com/images/cleardot.gif");_.FP.location&&_.FP.location.protocol=="http"||_.tr(P,"https");_.ia(P);H?mEV(P.toString(),F):GVo(P.toString(),F)}else ne(2);K.onError_(X)};
jr.prototype.testNetworkCallback_=function(K){K?(this.JSC$17400_channelDebug_.info("Successfully pinged google.com"),ne(2)):(this.JSC$17400_channelDebug_.info("Failed to ping google.com"),ne(1))};
jr.prototype.onError_=function(K){this.JSC$17400_channelDebug_.debug("HttpChannel: error - "+K);this.state_=0;this.handler_&&this.handler_.JSC$17406_channelError(K);O1w(this);$Et(this)};
var O1w=function(K){K.state_=0;K.nonAckedMapsAtChannelClose_=[];if(K.handler_){var X=UEV(K.forwardChannelRequestPool_);if(X.length!=0||K.JSC$17400_outgoingMaps_.length!=0)K.JSC$17400_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+X.length+", outgoing: "+K.JSC$17400_outgoingMaps_.length}),_.I3(K.nonAckedMapsAtChannelClose_,X),_.I3(K.nonAckedMapsAtChannelClose_,K.JSC$17400_outgoingMaps_),K.forwardChannelRequestPool_.JSC$17391_pendingMessages_.length=0,_.Nq(K.JSC$17400_outgoingMaps_),
K.JSC$17400_outgoingMaps_.length=0;
K.handler_.JSC$17406_channelClosed()}},i1w=function(K){if(K.state_==0)return K.nonAckedMapsAtChannelClose_;
var X=[];_.I3(X,UEV(K.forwardChannelRequestPool_));_.I3(X,K.JSC$17400_outgoingMaps_);return X},aBv=function(K,X,F){var P=_.az(F);
P.JSC$8042_domain_!=""?(X&&_.$v(P,X+"."+P.JSC$8042_domain_),_.OQ(P,P.JSC$8042_port_)):(P=_.FP.location,P=sv5(P.protocol,X?X+"."+P.hostname:P.hostname,+P.port,F));X=K.httpSessionIdParam_;F=K.httpSessionId_;X&&F&&_.$L(P,X,F);_.$L(P,"VER",K.JSC$17402_channelVersion_);wa(K,P);return P},qhv=function(K,X,F){if(X&&!K.JSC$17400_supportsCrossDomainXhrs_)throw Error("uk");
X=K.usesFetchStreams_&&!K.JSC$17400_xmlHttpFactory_?new _.cD(new wy({streamBinaryChunks:F})):new _.cD(K.JSC$17400_xmlHttpFactory_);X.JSC$7807_withCredentials_=K.JSC$17400_supportsCrossDomainXhrs_;return X};
jr.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var xEV=function(){};
_.z=xEV.prototype;_.z.JSC$17406_channelOpened=function(){};
_.z.JSC$17406_channelHandleArray=function(){};
_.z.JSC$17406_channelError=function(){};
_.z.JSC$17406_channelClosed=function(){};
_.z.isActive=function(){return!0};
_.z.JSC$17406_badMapError=function(){};var IBo=function(){},Ww=function(K,X){_.ua.call(this);
this.JSC$17409_channel_=new jr(X);this.JSC$17409_url_=K;this.messageUrlParams_=X&&X.messageUrlParams||null;K=X&&X.messageHeaders||null;X&&X.clientProtocolHeaderRequired&&(K?_.T8.set(K,"X-Client-Protocol","webchannel"):K=_.T8.create("X-Client-Protocol","webchannel"));this.JSC$17409_channel_.JSC$17400_extraHeaders_=K;K=X&&X.initMessageHeaders||null;X&&X.messageContentType&&(K?_.T8.set(K,"X-WebChannel-Content-Type",X.messageContentType):K=_.T8.create("X-WebChannel-Content-Type",X.messageContentType));
X&&X.clientProfile&&(K?_.T8.set(K,"X-WebChannel-Client-Profile",X.clientProfile):K=_.T8.create("X-WebChannel-Client-Profile",X.clientProfile));this.JSC$17409_channel_.initHeaders_=K;(K=X&&X.httpHeadersOverwriteParam)&&!_.fO(K)&&(this.JSC$17409_channel_.httpHeadersOverwriteParam_=K);this.supportsCrossDomainXhr_=X&&X.supportsCrossDomainXhr||!1;this.sendRawJson_=X&&X.sendRawJson||!1;(X=X&&X.httpSessionIdParam)&&!_.fO(X)&&(this.JSC$17409_channel_.httpSessionIdParam_=X,_.T8.containsKey(this.messageUrlParams_,
X)&&_.T8.remove(this.messageUrlParams_,X));this.channelHandler_=new yN(this)};
_.br(Ww,_.ua);Ww.prototype.open=function(){this.JSC$17409_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17409_channel_.JSC$17400_supportsCrossDomainXhrs_=!0);this.JSC$17409_channel_.connect(this.JSC$17409_url_,this.messageUrlParams_||void 0)};
Ww.prototype.close=function(){this.JSC$17409_channel_.disconnect()};
Ww.prototype.send=function(K){var X=this.JSC$17409_channel_;if(typeof K==="string"){var F={};F.__data__=K;K=F}else this.sendRawJson_&&(F={},F.__data__=(0,_.nu)(K),K=F);X.JSC$17400_outgoingMaps_.push(new ymo(X.JSC$17400_nextMapId_++,K));X.state_==3&&tas(X)};
Ww.prototype.disposeInternal=function(){this.JSC$17409_channel_.handler_=null;delete this.channelHandler_;this.JSC$17409_channel_.disconnect();delete this.JSC$17409_channel_;Ww.superClass_.disposeInternal.call(this)};
var kV8=function(K){gvV.call(this);K.__headers__&&(this.headers=K.__headers__,this.statusCode=K.__status__,delete K.__headers__,delete K.__status__);var X=K.__sm__;X?this.data=(this.metadataKey=_.T8.getAnyKey(X))?_.T8.get(X,this.metadataKey):X:this.data=K};
_.br(kV8,gvV);var KNt=function(K){Evs.call(this);this.status=1;this.errorCode=K};
_.br(KNt,Evs);var yN=function(K){this.JSC$17416_channel_=K};
_.br(yN,xEV);yN.prototype.JSC$17406_channelOpened=function(){this.JSC$17416_channel_.dispatchEvent("w")};
yN.prototype.JSC$17406_channelHandleArray=function(K){this.JSC$17416_channel_.dispatchEvent(new kV8(K))};
yN.prototype.JSC$17406_channelError=function(K){this.JSC$17416_channel_.dispatchEvent(new KNt(K))};
yN.prototype.JSC$17406_channelClosed=function(){this.JSC$17416_channel_.dispatchEvent("x")};
var XT5=function(K,X){this.transportChannel_=K;this.JSC$17419_channel_=X},FNW=function(K){return i1w(K.JSC$17419_channel_).map(function(X){var F=K.transportChannel_;
X=X.map;"__data__"in X?(X=X.__data__,F=F.sendRawJson_?(0,_.lsW)(X):X):F=X;return F})};var da=function(K){Pzv.dispatchEvent(new HwJ(Pzv,K))},Pzv=new _.ua,HwJ=function(K){_.HD.call(this,"statevent",K)};
_.r(HwJ,_.HD);var er=function(K,X,F,P,H){this.JSC$17424_channel_=K;this.JSC$17424_channelDebug_=X;this.sid_=F;this.JSC$17424_rid_=P;this.JSC$17424_retryId_=H||1;this.timeout_=45E3;this.JSC$17424_eventHandler_=new _.iv(this);this.pollingTimer_=new _.Nz;this.pollingTimer_.setInterval(250)};
_.z=er.prototype;_.z.JSC$17426_extraHeaders_=null;_.z.JSC$17426_successful_=!1;_.z.JSC$17426_watchDogTimerId_=null;_.z.JSC$17426_watchDogTimeoutTime_=null;_.z.JSC$17426_requestStartTime_=null;_.z.JSC$17426_type_=null;_.z.JSC$17426_baseUri_=null;_.z.JSC$17426_requestUri_=null;_.z.JSC$17426_postData_=null;_.z.JSC$17426_xmlHttp_=null;_.z.JSC$17426_xmlHttpChunkStart_=0;_.z.trident_=null;_.z.JSC$17426_verb_=null;_.z.JSC$17426_lastError_=null;_.z.JSC$17426_lastStatusCode_=-1;_.z.sendClose_=!0;
_.z.JSC$17426_cancelled_=!1;_.z.JSC$17426_readyStateChangeThrottleMs_=0;_.z.JSC$17426_readyStateChangeThrottle_=null;var sKw=function(K,X){switch(K){case 0:return"Non-200 return code ("+X+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},zLF={},f1v={};
er.prototype.setTimeout=function(K){this.timeout_=K};
var urG=function(K,X,F){K.JSC$17426_type_=1;K.JSC$17426_baseUri_=_.ia(X.clone());K.JSC$17426_postData_=F;K.decodeChunks_=!0;DOo(K,null)},qrV=function(K,X,F,P,H){K.JSC$17426_type_=1;
K.JSC$17426_baseUri_=_.ia(X.clone());K.JSC$17426_postData_=null;K.decodeChunks_=F;H&&(K.sendClose_=!1);DOo(K,P)},DOo=function(K,X){K.JSC$17426_requestStartTime_=Date.now();
JKG(K);K.JSC$17426_requestUri_=K.JSC$17426_baseUri_.clone();FV(K.JSC$17426_requestUri_,"t",K.JSC$17424_retryId_);K.JSC$17426_xmlHttpChunkStart_=0;K.JSC$17426_xmlHttp_=K.JSC$17424_channel_.JSC$17433_createXhrIo(K.JSC$17424_channel_.JSC$17433_shouldUseSecondaryDomains()?X:null);K.JSC$17426_readyStateChangeThrottleMs_>0&&(K.JSC$17426_readyStateChangeThrottle_=new _.VW((0,_.T3)(K.JSC$17426_xmlHttpHandler_,K,K.JSC$17426_xmlHttp_),K.JSC$17426_readyStateChangeThrottleMs_));K.JSC$17424_eventHandler_.listen(K.JSC$17426_xmlHttp_,
"readystatechange",K.JSC$17426_readyStateChangeHandler_);X=K.JSC$17426_extraHeaders_?_.T8.clone(K.JSC$17426_extraHeaders_):{};K.JSC$17426_postData_?(K.JSC$17426_verb_="POST",X["Content-Type"]="application/x-www-form-urlencoded",K.JSC$17426_xmlHttp_.send(K.JSC$17426_requestUri_,K.JSC$17426_verb_,K.JSC$17426_postData_,X)):(K.JSC$17426_verb_="GET",K.sendClose_&&!_.Ii&&(X.Connection="close"),K.JSC$17426_xmlHttp_.send(K.JSC$17426_requestUri_,K.JSC$17426_verb_,null,X));K.JSC$17424_channel_.notifyServerReachabilityEvent(1);
X=K.JSC$17424_channelDebug_;var F=K.JSC$17426_postData_;if(F){var P="";F=F.split("&");for(var H=0;H<F.length;H++){var f=F[H].split("=");if(f.length>1){var u=f[0];f=f[1];var J=u.split("_");P=J.length>=2&&J[1]=="type"?P+(u+"="+f+"&"):P+(u+"=redacted&")}}}else P=null;X.info("XMLHTTP REQ ("+K.JSC$17424_rid_+") [attempt "+K.JSC$17424_retryId_+"]: "+K.JSC$17426_verb_+"\n"+K.JSC$17426_requestUri_+"\n"+P)};
er.prototype.JSC$17426_readyStateChangeHandler_=function(K){K=K.target;var X=this.JSC$17426_readyStateChangeThrottle_;X&&_.pu(K)==3?(this.JSC$17424_channelDebug_.debug("Throttling readystatechange."),X.fire()):this.JSC$17426_xmlHttpHandler_(K)};
er.prototype.JSC$17426_xmlHttpHandler_=function(K){try{if(K==this.JSC$17426_xmlHttp_)a:{var X=_.pu(this.JSC$17426_xmlHttp_),F=this.JSC$17426_xmlHttp_.JSC$7807_lastErrorCode_,P=this.JSC$17426_xmlHttp_.getStatus();if(_.Ii&&!_.kA("420+")){if(X<4)break a}else if(X<3||X==3&&!this.JSC$17426_xmlHttp_.getResponseText())break a;this.JSC$17426_cancelled_||X!=4||F==7||(F==8||P<=0?this.JSC$17424_channel_.notifyServerReachabilityEvent(3):this.JSC$17424_channel_.notifyServerReachabilityEvent(2));ZwJ(this);var H=
this.JSC$17426_xmlHttp_.getStatus();this.JSC$17426_lastStatusCode_=H;var f=this.JSC$17426_xmlHttp_.getResponseText();f||this.JSC$17424_channelDebug_.debug("No response text for uri "+this.JSC$17426_requestUri_+" status "+H);this.JSC$17426_successful_=H==200;this.JSC$17424_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17424_rid_+") [ attempt "+this.JSC$17424_retryId_+"]: "+this.JSC$17426_verb_+"\n"+this.JSC$17426_requestUri_+"\n"+X+" "+H);if(this.JSC$17426_successful_){X==4&&Rl(this);if(this.decodeChunks_){for(K=
!0;!this.JSC$17426_cancelled_&&this.JSC$17426_xmlHttpChunkStart_<f.length;){var u=Yr1(this,f);if(u==f1v){X==4&&(this.JSC$17426_lastError_=4,da(15),K=!1);Uk(this.JSC$17424_channelDebug_,this.JSC$17424_rid_,null,"[Incomplete Response]");break}else if(u==zLF){this.JSC$17426_lastError_=4;da(16);Uk(this.JSC$17424_channelDebug_,this.JSC$17424_rid_,f,"[Invalid Chunk]");K=!1;break}else Uk(this.JSC$17424_channelDebug_,this.JSC$17424_rid_,u,null),QKW(this,u)}X==4&&f.length==0&&(this.JSC$17426_lastError_=1,
da(17),K=!1);this.JSC$17426_successful_=this.JSC$17426_successful_&&K;K||(Uk(this.JSC$17424_channelDebug_,this.JSC$17424_rid_,f,"[Invalid Chunked Response]"),Rl(this),Mq8(this))}else Uk(this.JSC$17424_channelDebug_,this.JSC$17424_rid_,f,null),QKW(this,f);this.JSC$17426_successful_&&!this.JSC$17426_cancelled_&&(X==4?this.JSC$17424_channel_.JSC$17433_onRequestComplete(this):(this.JSC$17426_successful_=!1,JKG(this)))}else H==400&&f.indexOf("Unknown SID")>0?(this.JSC$17426_lastError_=3,da(13),this.JSC$17424_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17424_rid_+")")):(this.JSC$17426_lastError_=0,da(14),this.JSC$17424_channelDebug_.warning("XMLHTTP Bad status "+H+" ("+this.JSC$17424_rid_+")")),Rl(this),Mq8(this)}else this.JSC$17424_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(J){this.JSC$17424_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var Yr1=function(K,X){var F=K.JSC$17426_xmlHttpChunkStart_,P=X.indexOf("\n",F);if(P==-1)return f1v;F=Number(X.substring(F,P));if(isNaN(F))return zLF;P+=1;if(P+F>X.length)return f1v;X=X.slice(P,P+F);K.JSC$17426_xmlHttpChunkStart_=P+F;return X};
er.prototype.cancel=function(){this.JSC$17426_cancelled_=!0;Rl(this)};
var JKG=function(K){K.JSC$17426_watchDogTimeoutTime_=Date.now()+K.timeout_;nsJ(K,K.timeout_)},nsJ=function(K,X){if(K.JSC$17426_watchDogTimerId_!=null)throw Error("tk");
K.JSC$17426_watchDogTimerId_=oP((0,_.T3)(K.JSC$17426_onWatchDogTimeout_,K),X)},ZwJ=function(K){K.JSC$17426_watchDogTimerId_&&(_.FP.clearTimeout(K.JSC$17426_watchDogTimerId_),K.JSC$17426_watchDogTimerId_=null)};
er.prototype.JSC$17426_onWatchDogTimeout_=function(){this.JSC$17426_watchDogTimerId_=null;var K=Date.now();K-this.JSC$17426_watchDogTimeoutTime_>=0?(this.JSC$17424_channelDebug_.info("TIMEOUT: "+this.JSC$17426_requestUri_),this.JSC$17426_type_!=2&&this.JSC$17424_channel_.notifyServerReachabilityEvent(3),Rl(this),this.JSC$17426_lastError_=2,da(18),Mq8(this)):(this.JSC$17424_channelDebug_.warning("WatchDog timer called too early"),nsJ(this,this.JSC$17426_watchDogTimeoutTime_-K))};
var Mq8=function(K){K.JSC$17424_channel_.JSC$17433_isClosed()||K.JSC$17426_cancelled_||K.JSC$17424_channel_.JSC$17433_onRequestComplete(K)},Rl=function(K){ZwJ(K);
_.ik(K.JSC$17426_readyStateChangeThrottle_);K.JSC$17426_readyStateChangeThrottle_=null;K.pollingTimer_.stop();K.JSC$17424_eventHandler_.removeAll();if(K.JSC$17426_xmlHttp_){var X=K.JSC$17426_xmlHttp_;K.JSC$17426_xmlHttp_=null;X.abort();X.dispose()}K.trident_&&(K.trident_=null)};
er.prototype.getLastError=function(){return this.JSC$17426_lastError_};
var QKW=function(K,X){try{K.JSC$17424_channel_.JSC$17433_onRequestData(K,X),K.JSC$17424_channel_.notifyServerReachabilityEvent(4)}catch(F){}};var Uk=function(K,X,F,P){var H=K.info;a:if(F&&F!="y2f%"){try{var f=JSON.parse(F);if(f)for(var u=0;u<f.length;u++)if(Array.isArray(f[u])){var J=f[u];if(!(J.length<2)){var Z=J[1];if(Array.isArray(Z)&&!(Z.length<1)){var M=Z[0];if(M!="noop"&&M!="stop")for(var n=1;n<Z.length;n++)Z[n]=""}}}var c=(0,_.nu)(f);break a}catch(B){K.debug("Exception parsing expected JS array - probably was not JS");c=F;break a}c=void 0}else c=F;H.call(K,"XMLHTTP TEXT ("+X+"): "+c+(P?" "+P:""))};
LP.prototype.debug=function(K){this.info(K)};
LP.prototype.info=function(){};
LP.prototype.warning=function(){};var cK8=function(K,X){this.JSC$17431_channel_=K;this.JSC$17431_channelDebug_=X;this.JSC$17431_parser_=new QN};
_.z=cK8.prototype;_.z.JSC$17433_extraHeaders_=null;_.z.JSC$17433_request_=null;_.z.receivedIntermediateResult_=!1;_.z.JSC$17433_path_=null;_.z.state_=null;_.z.JSC$17433_lastStatusCode_=-1;_.z.JSC$17433_hostPrefix_=null;_.z.blockedPrefix_=null;
_.z.connect=function(K){this.JSC$17433_path_=K;K=pT8(this.JSC$17431_channel_,this.JSC$17433_path_);da(3);Date.now();var X=this.JSC$17431_channel_.firstTestResults_;X!=null?(this.JSC$17433_hostPrefix_=X[0],(this.blockedPrefix_=X[1])?(this.state_=1,B9J(this)):(this.state_=2,Srv(this))):(FV(K,"MODE","init"),this.JSC$17433_request_=new er(this,this.JSC$17431_channelDebug_),this.JSC$17433_request_.JSC$17426_extraHeaders_=this.JSC$17433_extraHeaders_,qrV(this.JSC$17433_request_,K,!1,null,!0),this.state_=
0)};
var B9J=function(K){var X=osw(K.JSC$17431_channel_,K.blockedPrefix_,"/mail/images/cleardot.gif");_.ia(X);xFW(X.toString(),5E3,(0,_.T3)(K.checkBlockedCallback_,K),3,2E3);K.notifyServerReachabilityEvent(1)};
cK8.prototype.checkBlockedCallback_=function(K){if(K)this.state_=2,Srv(this);else{da(4);var X=this.JSC$17431_channel_;X.JSC$17434_channelDebug_.debug("Test Connection Blocked");X.JSC$17438_lastStatusCode_=X.connectionTest_.JSC$17433_lastStatusCode_;hJ(X,9)}K&&this.notifyServerReachabilityEvent(2)};
var Srv=function(K){K.JSC$17431_channelDebug_.debug("TestConnection: starting stage 2");var X=K.JSC$17431_channel_.secondTestResults_;X!=null?(K.JSC$17431_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+X?"Buffered":"Unbuffered"),da(5),X?(da(11),mV(K.JSC$17431_channel_,K,!1)):(da(12),mV(K.JSC$17431_channel_,K,!0))):(K.JSC$17433_request_=new er(K,K.JSC$17431_channelDebug_),K.JSC$17433_request_.JSC$17426_extraHeaders_=K.JSC$17433_extraHeaders_,X=LNs(K.JSC$17431_channel_,
K.JSC$17433_hostPrefix_,K.JSC$17433_path_),da(5),FV(X,"TYPE","xmlhttp"),qrV(K.JSC$17433_request_,X,!1,K.JSC$17433_hostPrefix_,!1))};
_.z=cK8.prototype;_.z.JSC$17433_createXhrIo=function(K){return this.JSC$17431_channel_.JSC$17433_createXhrIo(K)};
_.z.abort=function(){this.JSC$17433_request_&&(this.JSC$17433_request_.cancel(),this.JSC$17433_request_=null);this.JSC$17433_lastStatusCode_=-1};
_.z.JSC$17433_isClosed=function(){return!1};
_.z.JSC$17433_onRequestData=function(K,X){this.JSC$17433_lastStatusCode_=K.JSC$17426_lastStatusCode_;if(this.state_==0)if(this.JSC$17431_channelDebug_.debug("TestConnection: Got data for stage 1"),X){try{var F=this.JSC$17431_parser_.parse(X)}catch(P){T9V(this.JSC$17431_channel_,this);return}this.JSC$17433_hostPrefix_=F[0];this.blockedPrefix_=F[1]}else this.JSC$17431_channelDebug_.debug("TestConnection: Null responseText"),T9V(this.JSC$17431_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(da(7),Date.now()):X=="11111"?(da(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17433_lastStatusCode_=200,this.JSC$17433_request_.cancel(),this.JSC$17431_channelDebug_.debug("Test connection succeeded; using streaming connection"),da(12),mV(this.JSC$17431_channel_,this,!0)):(da(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.z.JSC$17433_onRequestComplete=function(){this.JSC$17433_lastStatusCode_=this.JSC$17433_request_.JSC$17426_lastStatusCode_;this.JSC$17433_request_.JSC$17426_successful_?this.state_==0?(this.JSC$17431_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,B9J(this)):(this.state_=2,Srv(this))):this.state_==2&&(this.JSC$17431_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17431_channelDebug_.debug("Test connection succeeded; using streaming connection"),
da(12),mV(this.JSC$17431_channel_,this,!0)):(this.JSC$17431_channelDebug_.debug("Test connection failed; not using streaming"),da(11),mV(this.JSC$17431_channel_,this,!1))):(this.JSC$17431_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?da(9):this.state_==2&&da(10),T9V(this.JSC$17431_channel_,this,this.JSC$17433_request_.getLastError()))};
_.z.JSC$17433_shouldUseSecondaryDomains=function(){return this.JSC$17431_channel_.JSC$17433_shouldUseSecondaryDomains()};
_.z.isActive=function(){return this.JSC$17431_channel_.isActive()};
_.z.notifyServerReachabilityEvent=function(K){this.JSC$17431_channel_.notifyServerReachabilityEvent(K)};var GF=function(K,X,F){this.state_=1;this.JSC$17434_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17434_channelDebug_=new LP;this.JSC$17434_parser_=new QN;this.firstTestResults_=K||null;this.secondTestResults_=X!=null?X:null;this.asyncTest_=F||!1},rK1=function(K,X){this.JSC$17436_mapId=K;
this.map=X;this.context=null};
_.z=GF.prototype;_.z.JSC$17438_extraHeaders_=null;_.z.JSC$17438_extraParams_=null;_.z.forwardChannelRequest_=null;_.z.JSC$17438_backChannelRequest_=null;_.z.JSC$17438_path_=null;_.z.JSC$17438_forwardChannelUri_=null;_.z.JSC$17438_backChannelUri_=null;_.z.JSC$17438_hostPrefix_=null;_.z.JSC$17438_nextRid_=0;_.z.JSC$17438_nextMapId_=0;_.z.handler_=null;_.z.JSC$17438_forwardChannelTimerId_=null;_.z.JSC$17438_backChannelTimerId_=null;_.z.JSC$17438_deadBackChannelTimerId_=null;_.z.connectionTest_=null;
_.z.useChunked_=null;_.z.JSC$17438_lastArrayId_=-1;_.z.JSC$17438_lastPostResponseArrayId_=-1;_.z.JSC$17438_lastStatusCode_=-1;_.z.JSC$17438_forwardChannelRetryCount_=0;_.z.JSC$17438_backChannelRetryCount_=0;_.z.JSC$17438_channelVersion_=8;var AK1={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},jKd=function(K,X,F,P){_.HD.call(this,"timingevent",K);this.size=X;this.rtt=F;this.retries=P};
_.br(jKd,_.HD);var wTW=function(K){_.HD.call(this,"serverreachability",K)};
_.br(wTW,_.HD);GF.prototype.connect=function(K,X,F,P,H){this.JSC$17434_channelDebug_.debug("connect()");da(0);this.JSC$17438_path_=X;this.JSC$17438_extraParams_=F||{};P&&H!==void 0&&(this.JSC$17438_extraParams_.OSID=P,this.JSC$17438_extraParams_.OAID=H);this.asyncTest_?(oP((0,_.T3)(this.connectTest_,this,K),100),yKs(this)):this.connectTest_(K)};
GF.prototype.disconnect=function(){this.JSC$17434_channelDebug_.debug("disconnect()");WNk(this);if(this.state_==3){var K=this.JSC$17438_nextRid_++,X=this.JSC$17438_forwardChannelUri_.clone();_.$L(X,"SID",this.sid_);_.$L(X,"RID",K);_.$L(X,"TYPE","terminate");lE(this,X);K=new er(this,this.JSC$17434_channelDebug_,this.sid_,K);K.JSC$17426_type_=2;K.JSC$17426_baseUri_=_.ia(X.clone());(new Image).src=K.JSC$17426_baseUri_.toString();K.JSC$17426_requestStartTime_=Date.now();JKG(K)}dOG(this)};
GF.prototype.connectTest_=function(K){this.JSC$17434_channelDebug_.debug("connectTest_()");this.connectionTest_=new cK8(this,this.JSC$17434_channelDebug_);this.connectionTest_.JSC$17433_extraHeaders_=this.JSC$17438_extraHeaders_;this.connectionTest_.JSC$17431_parser_=this.JSC$17434_parser_;this.connectionTest_.connect(K)};
var yKs=function(K){K.JSC$17434_channelDebug_.debug("connectChannel_()");K.JSC$17438_ensureInState_(1,0);K.JSC$17438_forwardChannelUri_=pT8(K,K.JSC$17438_path_);eL8(K)},WNk=function(K){K.connectionTest_&&(K.connectionTest_.abort(),K.connectionTest_=null);
K.JSC$17438_backChannelRequest_&&(K.JSC$17438_backChannelRequest_.cancel(),K.JSC$17438_backChannelRequest_=null);K.JSC$17438_backChannelTimerId_&&(_.FP.clearTimeout(K.JSC$17438_backChannelTimerId_),K.JSC$17438_backChannelTimerId_=null);RLt(K);K.forwardChannelRequest_&&(K.forwardChannelRequest_.cancel(),K.forwardChannelRequest_=null);K.JSC$17438_forwardChannelTimerId_&&(_.FP.clearTimeout(K.JSC$17438_forwardChannelTimerId_),K.JSC$17438_forwardChannelTimerId_=null)},UOw=function(K,X){if(K.state_==0)throw Error("wk");
K.JSC$17434_outgoingMaps_.length==1E3&&K.JSC$17434_parser_.stringify(X);K.JSC$17434_outgoingMaps_.push(new rK1(K.JSC$17438_nextMapId_++,X));K.state_!=2&&K.state_!=3||eL8(K)};
GF.prototype.JSC$17433_isClosed=function(){return this.state_==0};
GF.prototype.getState=function(){return this.state_};
var eL8=function(K){K.forwardChannelRequest_||K.JSC$17438_forwardChannelTimerId_||(K.JSC$17438_forwardChannelTimerId_=oP((0,_.T3)(K.JSC$17438_onStartForwardChannelTimer_,K),0),K.JSC$17438_forwardChannelRetryCount_=0)};
GF.prototype.JSC$17438_onStartForwardChannelTimer_=function(K){this.JSC$17438_forwardChannelTimerId_=null;hLF(this,K)};
var hLF=function(K,X){K.JSC$17434_channelDebug_.debug("startForwardChannel_");if(K.state_==1){if(!X){K.JSC$17434_channelDebug_.debug("open_()");K.JSC$17438_nextRid_=Math.floor(Math.random()*1E5);X=K.JSC$17438_nextRid_++;var F=new er(K,K.JSC$17434_channelDebug_,"",X);F.JSC$17426_extraHeaders_=K.JSC$17438_extraHeaders_;var P=mOt(K),H=K.JSC$17438_forwardChannelUri_.clone();_.$L(H,"RID",X);_.$L(H,"CVER","1");lE(K,H);urG(F,H,P);K.forwardChannelRequest_=F;K.state_=2}}else K.state_==3&&(X?GOJ(K,X):K.JSC$17434_outgoingMaps_.length==
0?K.JSC$17434_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):K.forwardChannelRequest_||(GOJ(K),K.JSC$17434_channelDebug_.debug("startForwardChannel_ finished, sent request")))},GOJ=function(K,X){if(X)if(K.JSC$17438_channelVersion_>6){K.JSC$17434_outgoingMaps_=K.pendingMaps_.concat(K.JSC$17434_outgoingMaps_);
K.pendingMaps_.length=0;var F=K.JSC$17438_nextRid_-1;X=mOt(K)}else F=X.JSC$17424_rid_,X=X.JSC$17426_postData_;else F=K.JSC$17438_nextRid_++,X=mOt(K);var P=K.JSC$17438_forwardChannelUri_.clone();_.$L(P,"SID",K.sid_);_.$L(P,"RID",F);_.$L(P,"AID",K.JSC$17438_lastArrayId_);lE(K,P);F=new er(K,K.JSC$17434_channelDebug_,K.sid_,F,K.JSC$17438_forwardChannelRetryCount_+1);F.JSC$17426_extraHeaders_=K.JSC$17438_extraHeaders_;F.setTimeout(1E4+Math.round(1E4*Math.random()));K.forwardChannelRequest_=F;urG(F,P,X)},
lE=function(K,X){K.handler_&&(K=K.handler_.JSC$17445_getAdditionalParams())&&_.T8.forEach(K,function(F,P){_.$L(X,P,F)})},mOt=function(K){var X=Math.min(K.JSC$17434_outgoingMaps_.length,1E3),F=["count="+X];
if(K.JSC$17438_channelVersion_>6&&X>0){var P=K.JSC$17434_outgoingMaps_[0].JSC$17436_mapId;F.push("ofs="+P)}else P=0;for(var H={},f=0;f<X;H={mapId$jscomp$3:void 0},f++){H.mapId$jscomp$3=K.JSC$17434_outgoingMaps_[f].JSC$17436_mapId;var u=K.JSC$17434_outgoingMaps_[f].map;H.mapId$jscomp$3=K.JSC$17438_channelVersion_<=6?f:H.mapId$jscomp$3-P;try{_.T8.forEach(u,function(J){return function(Z,M){F.push("req"+J.mapId$jscomp$3+"_"+M+"="+encodeURIComponent(Z))}}(H))}catch(J){F.push("req"+H.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}K.pendingMaps_=K.pendingMaps_.concat(K.JSC$17434_outgoingMaps_.splice(0,X));
return F.join("&")},l15=function(K){K.JSC$17438_backChannelRequest_||K.JSC$17438_backChannelTimerId_||(K.JSC$17438_backChannelAttemptId_=1,K.JSC$17438_backChannelTimerId_=oP((0,_.T3)(K.JSC$17438_onStartBackChannelTimer_,K),0),K.JSC$17438_backChannelRetryCount_=0)},a1k=function(K){if(K.JSC$17438_backChannelRequest_||K.JSC$17438_backChannelTimerId_||K.JSC$17438_backChannelRetryCount_>=3)return!1;
K.JSC$17434_channelDebug_.debug("Going to retry GET");K.JSC$17438_backChannelAttemptId_++;K.JSC$17438_backChannelTimerId_=oP((0,_.T3)(K.JSC$17438_onStartBackChannelTimer_,K),vsG(K,K.JSC$17438_backChannelRetryCount_));K.JSC$17438_backChannelRetryCount_++;return!0};
GF.prototype.JSC$17438_onStartBackChannelTimer_=function(){this.JSC$17438_backChannelTimerId_=null;this.JSC$17434_channelDebug_.debug("Creating new HttpRequest");this.JSC$17438_backChannelRequest_=new er(this,this.JSC$17434_channelDebug_,this.sid_,"rpc",this.JSC$17438_backChannelAttemptId_);this.JSC$17438_backChannelRequest_.JSC$17426_extraHeaders_=this.JSC$17438_extraHeaders_;this.JSC$17438_backChannelRequest_.JSC$17426_readyStateChangeThrottleMs_=0;var K=this.JSC$17438_backChannelUri_.clone();_.$L(K,
"RID","rpc");_.$L(K,"SID",this.sid_);_.$L(K,"CI",this.useChunked_?"0":"1");_.$L(K,"AID",this.JSC$17438_lastArrayId_);lE(this,K);_.$L(K,"TYPE","xmlhttp");qrV(this.JSC$17438_backChannelRequest_,K,!0,this.JSC$17438_hostPrefix_,!1);this.JSC$17434_channelDebug_.debug("New Request created")};
var mV=function(K,X,F){K.JSC$17434_channelDebug_.debug("Test Connection Finished");K.useChunked_=K.secondTestResults_==null?F:!K.secondTestResults_;K.JSC$17438_lastStatusCode_=X.JSC$17433_lastStatusCode_;K.asyncTest_||yKs(K)},T9V=function(K,X){K.JSC$17434_channelDebug_.debug("Test Connection Failed");
K.JSC$17438_lastStatusCode_=X.JSC$17433_lastStatusCode_;hJ(K,2)};
GF.prototype.JSC$17433_onRequestData=function(K,X){if(this.state_!=0&&(this.JSC$17438_backChannelRequest_==K||this.forwardChannelRequest_==K))if(this.JSC$17438_lastStatusCode_=K.JSC$17426_lastStatusCode_,this.forwardChannelRequest_==K&&this.state_==3)if(this.JSC$17438_channelVersion_>7){try{var F=this.JSC$17434_parser_.parse(X)}catch(P){F=null}if(Array.isArray(F)&&F.length==3)if(X=F,X[0]==0)a:if(this.JSC$17434_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17438_backChannelTimerId_)this.JSC$17434_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17438_backChannelRequest_)if(this.JSC$17438_backChannelRequest_.JSC$17426_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17426_requestStartTime_)RLt(this),this.JSC$17438_backChannelRequest_.cancel(),this.JSC$17438_backChannelRequest_=null;else break a;else this.JSC$17434_channelDebug_.warning("We do not have a BackChannel established");a1k(this);da(19)}else this.JSC$17438_lastPostResponseArrayId_=X[1],K=this.JSC$17438_lastPostResponseArrayId_-this.JSC$17438_lastArrayId_,0<
K&&(X=X[2],this.JSC$17434_channelDebug_.debug(X+" bytes (in "+K+" arrays) are outstanding on the BackChannel"),X<37500&&this.useChunked_&&this.JSC$17438_backChannelRetryCount_==0&&!this.JSC$17438_deadBackChannelTimerId_&&(this.JSC$17438_deadBackChannelTimerId_=oP((0,_.T3)(this.JSC$17438_onBackChannelDead_,this),6E3)));else this.JSC$17434_channelDebug_.debug("Bad POST response data returned"),hJ(this,11)}else X!="y2f%"&&(this.JSC$17434_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
hJ(this,11));else this.JSC$17438_backChannelRequest_==K&&RLt(this),_.fO(X)||(K=this.JSC$17434_parser_.parse(X),this.onInput_(K))};
GF.prototype.JSC$17438_onBackChannelDead_=function(){this.JSC$17438_deadBackChannelTimerId_!=null&&(this.JSC$17438_deadBackChannelTimerId_=null,this.JSC$17438_backChannelRequest_.cancel(),this.JSC$17438_backChannelRequest_=null,a1k(this),da(20))};
var RLt=function(K){K.JSC$17438_deadBackChannelTimerId_!=null&&(_.FP.clearTimeout(K.JSC$17438_deadBackChannelTimerId_),K.JSC$17438_deadBackChannelTimerId_=null)};
GF.prototype.JSC$17433_onRequestComplete=function(K){this.JSC$17434_channelDebug_.debug("Request complete");if(this.JSC$17438_backChannelRequest_==K){RLt(this);this.JSC$17438_backChannelRequest_=null;var X=2}else if(this.forwardChannelRequest_==K)this.forwardChannelRequest_=null,X=1;else return;this.JSC$17438_lastStatusCode_=K.JSC$17426_lastStatusCode_;if(this.state_!=0)if(K.JSC$17426_successful_)if(X==1){X=K.JSC$17426_postData_?K.JSC$17426_postData_.length:0;K=Date.now()-K.JSC$17426_requestStartTime_;
var F=Pzv;F.dispatchEvent(new jKd(F,X,K,this.JSC$17438_forwardChannelRetryCount_));eL8(this);this.handler_&&this.handler_.JSC$17445_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else l15(this);else{F=K.getLastError();if(F==3||F==7||F==0&&this.JSC$17438_lastStatusCode_>0)this.JSC$17434_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17434_channelDebug_.debug("Maybe retrying, last error: "+sKw(F,this.JSC$17438_lastStatusCode_));var P;if(P=X==1)this.forwardChannelRequest_||
this.JSC$17438_forwardChannelTimerId_||this.state_==1||this.JSC$17438_forwardChannelRetryCount_>=2?P=!1:(this.JSC$17434_channelDebug_.debug("Going to retry POST"),this.JSC$17438_forwardChannelTimerId_=oP((0,_.T3)(this.JSC$17438_onStartForwardChannelTimer_,this,K),vsG(this,this.JSC$17438_forwardChannelRetryCount_)),this.JSC$17438_forwardChannelRetryCount_++,P=!0);if(P||X==2&&a1k(this))return;this.JSC$17434_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17434_channelDebug_.debug("Error: HTTP request failed");
switch(F){case 1:hJ(this,5);break;case 4:hJ(this,10);break;case 3:hJ(this,6);break;case 7:hJ(this,12);break;default:hJ(this,2)}}};
var vsG=function(K,X){var F=5E3+Math.floor(Math.random()*1E4);K.isActive()||(K.JSC$17434_channelDebug_.debug("Inactive channel"),F*=2);return F*X};
GF.prototype.onInput_=function(K){for(var X=0;X<K.length;X++){var F=K[X];this.JSC$17438_lastArrayId_=F[0];F=F[1];this.state_==2?F[0]=="c"?(this.sid_=F[1],this.JSC$17438_hostPrefix_=F[2],F=F[3],F!=null?this.JSC$17438_channelVersion_=F:this.JSC$17438_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17445_channelOpened(),this.JSC$17438_backChannelUri_=LNs(this,this.JSC$17438_hostPrefix_,this.JSC$17438_path_),l15(this)):F[0]=="stop"&&hJ(this,7):this.state_==3&&(F[0]=="stop"?hJ(this,7):
F[0]!="noop"&&this.handler_&&this.handler_.JSC$17445_channelHandleArray(F),this.JSC$17438_backChannelRetryCount_=0)}};
GF.prototype.JSC$17438_ensureInState_=function(K){if(!_.Ol(arguments,this.state_))throw Error("xk`"+this.state_);};
var hJ=function(K,X){K.JSC$17434_channelDebug_.info("Error code "+X);if(X==2||X==9){var F=null;K.handler_&&(F=null);var P=(0,_.T3)(K.testGoogleComCallback_,K);F||(F=new _.aJ("//www.google.com/images/cleardot.gif"),_.ia(F));iLW(F.toString(),1E4,P)}else da(2);K.onError_(X)};
GF.prototype.testGoogleComCallback_=function(K){K?(this.JSC$17434_channelDebug_.info("Successfully pinged google.com"),da(2)):(this.JSC$17434_channelDebug_.info("Failed to ping google.com"),da(1),this.onError_(8))};
GF.prototype.onError_=function(K){this.JSC$17434_channelDebug_.debug("HttpChannel: error - "+K);this.state_=0;this.handler_&&this.handler_.JSC$17445_channelError(K);dOG(this);WNk(this)};
var dOG=function(K){K.state_=0;K.JSC$17438_lastStatusCode_=-1;if(K.handler_)if(K.pendingMaps_.length==0&&K.JSC$17434_outgoingMaps_.length==0)K.handler_.JSC$17445_channelClosed();else{K.JSC$17434_channelDebug_.debug("Number of undelivered maps, pending: "+K.pendingMaps_.length+", outgoing: "+K.JSC$17434_outgoingMaps_.length);var X=_.Nq(K.pendingMaps_),F=_.Nq(K.JSC$17434_outgoingMaps_);K.pendingMaps_.length=0;K.JSC$17434_outgoingMaps_.length=0;K.handler_.JSC$17445_channelClosed(X,F)}},pT8=function(K,
X){X=osw(K,null,X);
K.JSC$17434_channelDebug_.debug("GetForwardChannelUri: "+X);return X},LNs=function(K,X,F){X=osw(K,K.JSC$17433_shouldUseSecondaryDomains()?X:null,F);
K.JSC$17434_channelDebug_.debug("GetBackChannelUri: "+X);return X},osw=function(K,X,F){var P=_.az(F);
if(P.JSC$8042_domain_!="")X&&_.$v(P,X+"."+P.JSC$8042_domain_),_.OQ(P,P.JSC$8042_port_);else{var H=window.location;P=sv5(H.protocol,X?X+"."+H.hostname:H.hostname,+H.port,F)}K.JSC$17438_extraParams_&&_.T8.forEach(K.JSC$17438_extraParams_,function(f,u){_.$L(P,u,f)});
_.$L(P,"VER",K.JSC$17438_channelVersion_);lE(K,P);return P};
GF.prototype.JSC$17433_createXhrIo=function(K){if(K)throw Error("uk");K=new _.cD;K.JSC$7807_withCredentials_=!1;return K};
GF.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
GF.prototype.notifyServerReachabilityEvent=function(K){var X=Pzv;X.dispatchEvent(new wTW(X,K))};
GF.prototype.JSC$17433_shouldUseSecondaryDomains=function(){return!1};
new JYJ;var tqt=function(){};
_.z=tqt.prototype;_.z.JSC$17445_channelOpened=function(){};
_.z.JSC$17445_channelHandleArray=function(){};
_.z.JSC$17445_channelSuccess=function(){};
_.z.JSC$17445_channelError=function(){};
_.z.JSC$17445_channelClosed=function(){};
_.z.JSC$17445_getAdditionalParams=function(){return{}};
_.z.isActive=function(){return!0};var $OF=function(K){K.front_.length===0&&(K.front_=K.back_,K.front_.reverse(),K.back_=[])};
_.z=kTJ.prototype;_.z.enqueue=function(K){this.back_.push(K)};
_.z.peek=function(){$OF(this);return _.m4(this.front_)};
_.z.getCount=function(){return this.front_.length+this.back_.length};
_.z.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.z.clear=function(){this.front_=[];this.back_=[]};
_.z.contains=function(K){return _.Ol(this.front_,K)||_.Ol(this.back_,K)};
_.z.remove=function(K){var X=this.front_;var F=Array.prototype.lastIndexOf.call(X,K,X.length-1);F>=0?(_.bT(X,F),X=!0):X=!1;return X||_.CO(this.back_,K)};
_.z.getValues=function(){for(var K=[],X=this.front_.length-1;X>=0;--X)K.push(this.front_[X]);X=this.back_.length;for(var F=0;F<X;++F)K.push(this.back_[F]);return K};var vw=function(K){this.JSC$17449_map_=new _.Ir;this.size=0;K&&this.addAll(K)},Ow1=function(K){var X=typeof K;
return X=="object"&&K||X=="function"?"o"+_.FL(K):X.charAt(0)+K};
_.z=vw.prototype;_.z.getCount=function(){return this.JSC$17449_map_.size};
_.z.add=function(K){this.JSC$17449_map_.set(Ow1(K),K);this.size=this.JSC$17449_map_.size};
_.z.addAll=function(K){K=_.aG(K);for(var X=K.length,F=0;F<X;F++)this.add(K[F]);this.size=this.JSC$17449_map_.size};
_.z.removeAll=function(K){K=_.aG(K);for(var X=K.length,F=0;F<X;F++)this.remove(K[F]);this.size=this.JSC$17449_map_.size};
_.z.delete=function(K){K=this.JSC$17449_map_.remove(Ow1(K));this.size=this.JSC$17449_map_.size;return K};
_.z.remove=function(K){return this.delete(K)};
_.z.clear=function(){this.JSC$17449_map_.clear();this.size=0};
_.z.isEmpty=function(){return this.JSC$17449_map_.size===0};
_.z.has=function(K){return this.JSC$17449_map_.containsKey(Ow1(K))};
_.z.contains=function(K){return this.JSC$17449_map_.containsKey(Ow1(K))};
_.z.getValues=function(){return this.JSC$17449_map_.getValues()};
_.z.values=function(){return this.JSC$17449_map_.values()};
_.z.clone=function(){return new vw(this)};
_.z.equals=function(K){return this.getCount()==PHG(K)&&Vq8(this,K)};
var Vq8=function(K,X){var F=PHG(X);if(K.getCount()>F)return!1;!(X instanceof vw)&&F>5&&(X=new vw(X));return HBV(K,function(P){var H=X;return H.contains&&typeof H.contains=="function"?H.contains(P):H.containsValue&&typeof H.containsValue=="function"?H.containsValue(P):_.xd(H)||typeof H==="string"?_.Ol(H,P):_.T8.containsValue(H,P)})};
vw.prototype.__iterator__=function(){return this.JSC$17449_map_.__iterator__(!1)};
vw.prototype[Symbol.iterator]=function(){return this.values()};var gsv={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(K){return(this._clampValue(K)-this.min)/(this.max-this.min)},
_clampValue:function(K){return Math.min(this.max,Math.max(this.min,this._calcStep(K)))},
_calcStep:function(K){K=parseFloat(K);if(!this.step)return K;K=Math.round((K-this.min)/this.step);return this.step<1?K/(1/this.step)+this.min:K*this.step+this.min},
_validateValue:function(){var K=this._clampValue(this.value);this.value=this.oldValue=isNaN(K)?this.oldValue:K;return this.value!==K},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var EsF;var bws;_.pa({_template:function(){if(bws!==void 0)return bws;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;EsF===void 0&&(EsF=document.createElement("template"));var P=EsF;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return bws=K},
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(){_.tg(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(K){K.keyCode===27&&(K.preventDefault(),this.close())},
_track:function(K){if(!this.persistent&&!this.disableSwipe)switch(K.preventDefault(),K.detail.state){case "start":this._trackStart(K);break;case "track":this._trackMove(K);break;case "end":this._trackEnd(K)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var K=this.$.contentContainer.getBoundingClientRect();this._savedWidth=K.width;this._translateOffset=this.position==="left"?K.left:K.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(K){this._trackDetails&&(this._translateDrawer(K.detail.dx+this._translateOffset),this._trackDetails.push({dx:K.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(K){if(this._trackDetails){var X=K.detail.dx+this._translateOffset,F=this.getWidth();X=this.position==="left"?X>=0||X<=-F:X<=0||X>=F;if(!X){var P=this._trackDetails;this._trackDetails=null;this._flingDrawer(K,P);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}F/=2;K.detail.dx<-F?this.opened=this.position==="right":K.detail.dx>F&&(this.opened=this.position==="left");X?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(K,X){for(var F=Date.now(),P=F-100,H,f=0,u=X.length-1;f<=u;){var J=f+u>>1,Z=X[J];Z.timeStamp>=P?(H=Z,u=J-1):f=J+1}return H?(K.detail.dx-H.dx)/(F-H.timeStamp||1):0},
_flingDrawer:function(K,X){X=this._calculateVelocity(K,X);if(!(Math.abs(X)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;K=K.detail.dx+this._translateOffset;var F=this.getWidth(),P=this.position==="left",H=X>0;H?(X=Math.max(X,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(X=Math.min(X,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");X=this._FLING_INITIAL_SLOPE*(!H&&P?-(K+F):H&&!P?F-K:-K)/X;this._styleTransitionDuration(X);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,X)}},
_styleTransitionDuration:function(K){this.style.transitionDuration=K+"ms";this.$.contentContainer.style.transitionDuration=K+"ms";this.$.scrim.style.transitionDuration=K+"ms"},
_styleTransitionTimingFunction:function(K){this.$.contentContainer.style.transitionTimingFunction=K;this.$.scrim.style.transitionTimingFunction=K},
_translateDrawer:function(K){var X=this.getWidth();this.position==="left"?(K=Math.max(-X,Math.min(K,0)),this.$.scrim.style.opacity=1+K/X):(K=Math.max(0,Math.min(K,X)),this.$.scrim.style.opacity=1-K/X);this.translate3d(K+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var K=this._drawerState;K===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;K!==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=""),K!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var K=_.cg(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"])');K.length>0?(this._firstTabStop=K[0],this._lastTabStop=K[K.length-1]):
this._lastTabStop=this._firstTabStop=null;(K=this.getAttribute("tabindex"))&&parseInt(K,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(K){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||K.keyCode!==9||(K.shiftKey?this._firstTabStop&&_.cg(K).localTarget===this._firstTabStop&&(K.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.cg(K).localTarget===this._lastTabStop&&(K.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(K,X){this.toggleClass("visible",K&&!X,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 CzF;var N9s;_.pa({_template:function(){if(N9s!==void 0)return N9s;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;CzF===void 0&&(CzF=document.createElement("template"));var P=CzF;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return N9s=K},
is:"tp-yt-paper-progress",behaviors:[gsv],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(K){this.toggleClass("indeterminate",K,this.$.primaryProgress)},
_transformProgress:function(K,X){K.style.transform=K.style.webkitTransform="scaleX("+X/100+")"},
_mainRatioChanged:function(K){this._transformProgress(this.$.primaryProgress,K)},
_progressChanged:function(K,X,F,P,H){K=this._clampValue(K);X=this._clampValue(X);var f=this._calcRatio(K)*100,u=this._calcRatio(X)*100;this._setSecondaryRatio(f);this._transformProgress(this.$.secondaryProgress,f);this._transformProgress(this.$.primaryProgress,u);this.secondaryProgress=K;H?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",X);this.setAttribute("aria-valuemin",F);this.setAttribute("aria-valuemax",P)},
_disabledChanged:function(K){this.setAttribute("aria-disabled",K?"true":"false")},
_hideSecondaryProgress:function(K){return K===0}});var iwv;var xOw;var I1w=function(){};
_.z=I1w.prototype;_.z.registered=function(){};
_.z.addOwnKeyBinding=function(){};
_.z.removeOwnKeyBindings=function(){};
_.z.keyboardEventMatchesKeys=function(){};
_.z._collectKeyBindings=function(){};
_.z._prepKeyBindings=function(){};
_.z._addKeyBinding=function(){};
_.z._resetKeyEventListeners=function(){};
_.z._listenKeyEventListeners=function(){};
_.z._unlistenKeyEventListeners=function(){};
_.z._onKeyBindingEvent=function(){};
_.z._triggerKeyHandler=function(){};
_.z._tapHandler=function(){};
_.z._focusChanged=function(){};
_.z._detectKeyboardFocus=function(){};
_.z._userActivate=function(){};
_.z._upHandler=function(){};
_.z._spaceKeyDownHandler=function(){};
_.z._spaceKeyUpHandler=function(){};
_.z._asyncClick=function(){};
_.z._pressedChanged=function(){};
_.z._ariaActiveAttributeChanged=function(){};
_.z._activeChanged=function(){};
_.z._controlStateChanged=function(){};
_.z._changedButtonState=function(){};
_.z._focusBlurHandler=function(){};
_.z._disabledChanged=function(){};
_.z._changedControlState=function(){};
_.z._buttonStateChanged=function(){};
_.z._downHandler=function(){};
_.z.ensureRipple=function(){};
_.z.getRipple=function(){};
_.z.hasRipple=function(){};
_.z._noinkChanged=function(){};
_.z._calcRatio=function(){};
_.z._clampValue=function(){};
_.z._calcStep=function(){};
_.z._validateValue=function(){};
_.z._update=function(){};
_.z._setImmediateValue=function(){};
_.z._setExpand=function(){};
_.z._setDragging=function(){};
_.z._setTransiting=function(){};
_.z._setMarkers=function(){};
_.z._setPressed=function(){};
_.z._setPointerDown=function(){};
_.z._setReceivedFocusFromKeyboard=function(){};
_.z._setFocused=function(){};
_.z._setRatio=function(){};
I1w=_.pa({_template:function(){if(xOw!==void 0)return xOw;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;iwv===void 0&&(iwv=document.createElement("template"));var P=iwv;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return xOw=K},
is:"tp-yt-paper-slider",behaviors:[_.JP,_.Mf,_.SeQ,gsv],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&&_.Ag(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(K,X,F){this.setAttribute("aria-valuemin",X);this.setAttribute("aria-valuemax",F);this.setAttribute("aria-valuenow",K);this._positionKnob(this._calcRatio(K)*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(K){this._setImmediateValue(this._calcStep(this._calcKnobPosition(K)));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(K){return(this.max-this.min)*K/100+this.min},
_onTrack:function(K){K.stopPropagation();switch(K.detail.state){case "start":this._trackStart(K);break;case "track":this._trackX(K);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(K){this.dragging||this._trackStart(K);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,K.detail.dx*(this._isRTL?-1:1)));K=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(K);K=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(K+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var K=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;K.transform=K.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(K){this._expandKnob();K.preventDefault();this.focus()},
_bartrack:function(K){this._allowBarEvent(K)&&this._onTrack(K)},
_barclick:function(K){this._w=this.$.sliderBar.offsetWidth;var X=this.$.sliderBar.getBoundingClientRect();X=(K.detail.x-X.left)/this._w*100;this._isRTL&&(X=100-X);var F=this.ratio;this._setTransiting(!0);this._positionKnob(X);F===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
K.preventDefault();this.focus()},
_bardown:function(K){this._allowBarEvent(K)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(K))},
_knobTransitionEnd:function(K){K.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(K,X,F,P){P||this._setMarkers([]);X=Math.round((F-X)/this.step);X>K&&(X=K);if(X<0||!isFinite(X))X=0;this._setMarkers(Array(X))},
_mergeClasses:function(K){return Object.keys(K).filter(function(X){return K[X]}).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(K){return!this.ignoreBarTouch||K.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(K){this._isRTL?this._incrementKey(K):this._decrementKey(K)},
_rightKey:function(K){this._isRTL?this._decrementKey(K):this._incrementKey(K)},
_incrementKey:function(K){this.disabled||(K.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),K.preventDefault())},
_decrementKey:function(K){this.disabled||(K.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),K.preventDefault())},
_changeValue:function(K){this.value=K.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(K){K.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.BnC._createRipple.call(this)},
_focusedChanged:function(K){K&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=K?"":"none",this._ripple.holdDown=K)}});var kOo;var Ky1;var al=null,X0t=function(){};
_.z=X0t.prototype;_.z.fit=function(){};
_.z._discoverInfo=function(){};
_.z.resetFit=function(){};
_.z.refit=function(){};
_.z.position=function(){};
_.z.constrain=function(){};
_.z._sizeDimension=function(){};
_.z.__sizeDimension=function(){};
_.z.center=function(){};
_.z.__getNormalizedRect=function(){};
_.z.__getOffscreenArea=function(){};
_.z.__getPosition=function(){};
_.z.notifyResize=function(){};
_.z.assignParentResizable=function(){};
_.z.stopResizeNotificationsFor=function(){};
_.z._subscribeIronResize=function(){};
_.z._unsubscribeIronResize=function(){};
_.z.resizerShouldNotify=function(){};
_.z._onDescendantIronResize=function(){};
_.z._fireResize=function(){};
_.z._onIronRequestResizeNotifications=function(){};
_.z._parentResizableChanged=function(){};
_.z._notifyDescendant=function(){};
_.z._requestResizeNotifications=function(){};
_.z._findParent=function(){};
_.z.toggle=function(){};
_.z.open=function(){};
_.z.close=function(){};
_.z.cancel=function(){};
_.z.invalidateTabbables=function(){};
_.z._ensureSetup=function(){};
_.z._canceledChanged=function(){};
_.z._withBackdropChanged=function(){};
_.z._prepareRenderOpened=function(){};
_.z._finishRenderOpened=function(){};
_.z._finishRenderClosed=function(){};
_.z._preparePositioning=function(){};
_.z._finishPositioning=function(){};
_.z._applyFocus=function(){};
_.z._onCaptureClick=function(){};
_.z._onCaptureFocus=function(){};
_.z._onCaptureEsc=function(){};
_.z._onCaptureTab=function(){};
_.z._onIronResize=function(){};
_.z._onNodesChange=function(){};
_.z.__ensureFirstLastFocusables=function(){};
_.z.__openedChanged=function(){};
_.z.__deraf=function(){};
_.z.__updateScrollObservers=function(){};
_.z.__addScrollListeners=function(){};
_.z.__removeScrollListeners=function(){};
_.z.__isValidScrollAction=function(){};
_.z.__onCaptureScroll=function(){};
_.z.__saveScrollPosition=function(){};
_.z.__restoreScrollPosition=function(){};
_.z._setCanceled=function(){};
X0t=_.pa({_template:function(){if(Ky1!==void 0)return Ky1;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;kOo===void 0&&(kOo=document.createElement("template"));var P=kOo;F.call(X,P.content.cloneNode(!0),K.content.firstChild);return Ky1=K},
is:"tp-yt-paper-toast",behaviors:[_.m2],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(){_.Zo._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.dC.requestAvailability()},
show:function(K){typeof K=="string"&&(K={text:K});for(var X in K)X.indexOf("_")===0?_.Zo._warn('The property "'+X+'" is private and was not set.'):X in this?this[X]=K[X]:_.Zo._warn('The property "'+X+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(K){K&&K.target===this&&K.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(al&&al!==this&&al.close(),al=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):al===this&&(al=null);_.hP._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(K){this.positionTarget=K},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var Fy8=new _.b("disablePersonalizationAction");var bIk=new _.b("showDmaConsentFlowCommand");var Cj5=new _.b("showMmgNoticeCommand");var P$s=new _.b("saveConsentAction");var HYW=function(K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Fm(K)};
_.r(HYW,_.Gm);var sr5=_.k8(HYW);var zVo=new _.b("updateTopbarAvatarAction");var fow=new _.b("channelHandleValidationResultRenderer");var DM1=new _.b("generateHandleFromNameResultRenderer");var uzW=new _.b("channelHandleInputRenderer");var qKV=new _.b("copyLinkRenderer");var JLV=new _.b("timedCommand");var ZYs=new _.b("clearCookieAction");var YKG=new _.b("getMultiPageMenuAction");var Qr8=new _.b("addToGuideSectionAction"),MTW=new _.b("removeFromGuideSectionAction");var n4t=new _.b("updateNotificationsUnseenCountAction");var cLo=new _.b("resetChannelUnreadCountCommand");var p0J=new _.b("resetSubscriptionsUnreadDotCommand");var BZ8=new _.b("selectLanguageCommand");var Da1=new _.b("sendFeedbackAction");var SKs=new _.b("uploadImageToScottyCommand");var o4v=new _.b("registerPromoCommand");var Lyw=new _.b("setPushNotificationsEnabledCommand");var TZG=new _.b("desktopTopbarRenderer");var rLV=new _.b("surveyFollowUpRenderer");var ALs=new _.b("handlesClaimingRadioOptionRenderer");var jr5=new _.b("hotkeyDialogRenderer");var w0J=new _.b("modifyReportFormCommand");var yLd=new _.b("accountLinkCommand");var WyG=new _.b("accountUnlinkCommand");var dMt=new _.b("logAccountLinkingEventCommand");var eVk=new _.b("guideCollapsibleEntryRenderer");var RVv=new _.b("guideDownloadsEntryRenderer");var tJ=new _.b("guideEntryRenderer");var UMV=new _.b("getLocationCommand");var hVs=new _.b("locationCollectionCommand");var mMw=new _.b("storiesItemViewModel");var Gi8=new _.b("addToRemoteQueueAction");var loG=new _.b("insertInRemoteQueueAction");var v4W=new _.b("removeFromRemoteQueueAction");var aok=new _.b("notificationRenderer");var eXF=new _.b("localWatchHistoryCommand");var tTV=new _.b("pdgBuyFlowHeaderRenderer");var $MJ=new _.b("pdgColorSliderRenderer");var OYG=new _.b("pdgCommentOptionRenderer");var VTs=new _.b("pdgCommentPreviewRenderer");var g4G=new _.b("superVodSelectableItemButtonRenderer");var E4J=new _.b("switchButtonRenderer");var bY1=new _.b("upsellDialogRenderer");var C$V=new _.b("feedbackQuestionRenderer"),NZw=new _.b("feedbackOptionRenderer");var iYF=new _.b("sponsorshipsTierRenderer"),xMk=new _.b("sponsorshipsPromotionChannelRenderer");var IoJ=new _.b("simpleSurveyMessageRenderer");var DDF=new _.b("invokeInstrumentManagerAction");var kiV=new _.b("logYpcFlowDismissCommand");var K2k=new _.b("logYpcFlowStartCommand");var Xxt=new _.b("unlimitedCreateFamilyEndpoint");var F2F=new _.b("iconBadgeRenderer");var R3J=new _.b("collaborativePlaylistVisibilityValidationRule");var P48=function(K){_.HD.call(this,"channelMessage");this.message=K};
_.r(P48,_.HD);var HTF=function(K){_.HD.call(this,"channelError");this.error=K};
_.r(HTF,_.HD);var sy1={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"},zr8={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",
GAMING:"g",UNPLUGGED:"up"},f_W={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},Dfv={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},uv8={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var $K=function(K){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 _.Ir;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;K&&(this.id=K.id||K.name,this.name=K.name,this.clientName=K.clientName?K.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=K.app,this.type=K.type||"REMOTE_CONTROL",this.username=K.user||"",this.avatar=K.userAvatarUri||"",this.obfuscatedGaiaId=K.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=K.ownerObfuscatedGaiaId||"",this.castUserId=K.castUserId||"",this.theme=K.theme||"u",q_5(this,K.capabilities||""),JP8(this,
K.compatibleSenderThemes||""),ZTk(this,K.experiments||""),this.remoteControllerUrl=K.remoteControllerUrl||"",this.localChannelEncryptionKey=K.localChannelEncryptionKey||"",this.deviceContext=K.deviceContext,this.brand=K.brand||"",this.model=K.model||"",this.year=K.year||0,this.os=K.os||"",this.osVersion=K.osVersion||"",this.chipset=K.chipset||"",this.mdxDialServerType=K.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=K.pairingType||"unknown",K=K.deviceInfo)&&(K=JSON.parse(K),this.brand=
K.brand||"",this.model=K.model||"",this.year=K.year||0,this.os=K.os||"",this.osVersion=K.osVersion||"",this.chipset=K.chipset||"",this.clientName=K.clientName?K.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=K.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
$K.prototype.copy=function(){var K={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&&(K.brand=this.brand);
this.model&&(K.model=this.model);this.year&&(K.year=this.year);this.os&&(K.os=this.os);this.osVersion&&(K.osVersion=this.osVersion);this.chipset&&(K.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(K.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(K.mdxDialServerType=this.mdxDialServerType);K=new $K(K);K.connected=this.connected;K.remoteControllerUrl=this.remoteControllerUrl;K.localChannelEncryptionKey=this.localChannelEncryptionKey;K.deviceContext=
this.deviceContext;K.castUserId=this.castUserId;return K};
$K.prototype.equals=function(K){return K?this.id==K.id:!1};
var q_5=function(K,X){K.capabilities.clear();_.Ck(X.split(","),_.Jc(_.T8.contains,sy1)).forEach(function(F){K.capabilities.add(F)})},JP8=function(K,X){K.compatibleSenderThemes.clear();
_.Ck(X.split(","),_.Jc(_.T8.contains,zr8)).forEach(function(F){K.compatibleSenderThemes.add(F)})},ZTk=function(K,X){K.experiments.clear();
X.split(",").forEach(function(F){K.experiments.add(F)})};var Y_1=function(K,X){this.action=K;this.params=X||{}};_.br(K7o,_.LJ);_.z=K7o.prototype;_.z.JSC$17485_onTick_=function(){this.JSC$17483_interval_=Math.min(3E5,this.JSC$17483_interval_*2);this.JSC$17485_listener_();this.nextTickTime_&&this.start()};
_.z.start=function(){var K=this.JSC$17483_interval_+15E3*Math.random(),X=this.delay_;X.isActive()||X.start(K);this.nextTickTime_=Date.now()+K};
_.z.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.z.isActive=function(){return this.delay_.isActive()};
_.z.reset=function(){this.delay_.stop();this.JSC$17483_interval_=5E3};_.br(TH,tqt);_.z=TH.prototype;_.z.subscribe=function(K,X,F){return this.pubsub_.subscribe(K,X,F)};
_.z.unsubscribe=function(K,X,F){return this.pubsub_.unsubscribe(K,X,F)};
_.z.unsubscribeByKey=function(K){return this.pubsub_.unsubscribeByKey(K)};
_.z.publish=function(K,X){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.z.dispose=function(){this.JSC$17486_disposed_||(this.JSC$17486_disposed_=!0,_.ik(this.pubsub_),this.disconnect(),_.ik(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17486_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.F0({})})};
_.z.isDisposed=function(){return this.JSC$17486_disposed_};
_.z.connect=function(K,X,F){var P=this,H,f,u,J;return _.q(function(Z){if(Z.nextAddress==1)return _.D4(Z,2),P.useAsyncBrowserChannelHandler_?_.Y(Z,P.connectPromise_,2):Z.jumpTo(2);_.fZ(Z);if(P.JSC$17486_disposed_||P.JSC$17486_channel_&&P.JSC$17486_channel_.getState()==2)return Z.return();P.sCookie_="";P.reconnectTimer_.stop();P.connectionParams_=K||null;P.connectUi_=X||0;H=P.JSC$17486_pathPrefix_+"/test";f=P.JSC$17486_pathPrefix_+"/bind";u=new GF(F?F.firstTestResults:null,F?F.secondTestResults:null,
P.enableAsyncTest_);if(J=P.JSC$17486_channel_)J.handler_=null;u.handler_=P;P.JSC$17486_channel_=u;if(P.useAsyncBrowserChannelHandler_)return P.connectPromise_=Qyk(P).then(function(){return MLJ(P,H,f,J,F)}),Z.return(P.connectPromise_.then(function(){P.connectPromise_=_.F0()}));
MLJ(P,H,f,J,F);return _.uK(Z,0)})};
var MLJ=function(K,X,F,P,H){nw1(K);if(K.JSC$17486_channel_){var f=_.e8("ID_TOKEN"),u=K.JSC$17486_channel_.JSC$17438_extraHeaders_||{};f?u["x-youtube-identity-token"]=f:delete u["x-youtube-identity-token"];K.JSC$17486_channel_.JSC$17438_extraHeaders_=u}cPJ(K);P?(P.getState(),K.JSC$17486_channel_.connect(X,F,K.defaultQueryParams_,P.sid_,P.JSC$17438_lastArrayId_)):H?K.JSC$17486_channel_.connect(X,F,K.defaultQueryParams_,H.sessionId,H.arrayId):K.JSC$17486_channel_.connect(X,F,K.defaultQueryParams_)};
TH.prototype.disconnect=function(K){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.F0())}finally{this.disconnectUi_=K||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),nw1(this),this.JSC$17486_channel_&&(this.JSC$17486_channel_.getState()==3&&hLF(this.JSC$17486_channel_),this.JSC$17486_channel_.disconnect()),this.disconnectUi_=0}};
TH.prototype.sendMessage=function(K,X){var F=this,P;return _.q(function(H){switch(H.nextAddress){case 1:_.D4(H,2);if(!F.useAsyncBrowserChannelHandler_){H.jumpTo(2);break}return _.Y(H,F.connectPromise_,2);case 2:_.fZ(H);if(F.JSC$17486_disposed_)return H.return();P={_sc:K};X&&_.T8.extend(P,X);if(F.reconnectTimer_.isActive()||(F.JSC$17486_channel_?F.JSC$17486_channel_.getState():0)==2){F.JSC$17486_pendingMessages_.push(P);H.jumpTo(6);break}if(!F.isChannelOpened()){H.jumpTo(6);break}_.D4(H,8);if(!F.useAsyncBrowserChannelHandler_||
pxo(F,K)){H.jumpTo(8);break}return _.Y(H,Qyk(F),8);case 8:_.fZ(H,0,0,1);F.isChannelOpened()&&(pxo(F,K)||cPJ(F),nw1(F),UOw(F.JSC$17486_channel_,P));_.uK(H,6,1);break;case 6:_.uK(H,0)}})};
var pxo=function(K,X){return K.enableMdxAuthForConnectionOnly_?!0:K.disableMdxAuthForAdMessages_?Object.values(f_W).includes(X):K.disableMdxAuthForNonPlaybackMessages_?!Object.values(Dfv).includes(X):K.disableMdxAuthForShortsMessages_?Object.values(uv8).includes(X):!1};
TH.prototype.JSC$17445_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17486_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)BCd(this);else{var K=this.JSC$17486_pendingMessages_;this.JSC$17486_pendingMessages_=[];var X=K.length;cPJ(this);S_F(this,K,X);owG(this)}else owG(this)};
var BCd=function(K){var X,F;_.q(function(P){if(P.nextAddress==1)return _.D4(P,2),_.Y(P,Qyk(K),2);_.fZ(P);X=K.JSC$17486_pendingMessages_;K.JSC$17486_pendingMessages_=[];F=X.length;S_F(K,X,F);owG(K);return _.uK(P,0)})},S_F=function(K,X,F){for(var P=0;P<F;++P)UOw(K.JSC$17486_channel_,X[P]);
owG(K)},owG=function(K){K.publish("handlerOpened");
K.JSC$17486_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.z=TH.prototype;_.z.JSC$17445_channelError=function(K){var X=K==2&&this.JSC$17486_channel_.JSC$17438_lastStatusCode_==401;K==4||X||this.reconnectTimer_.start();this.publish("handlerError",K,X);X=Object.keys(AK1).find(function(F){return AK1[F]===K});
this.JSC$17486_channelErrorCounter.increment("BROWSER_CHANNEL",X!=null?X:"UNKNOWN")};
_.z.JSC$17445_channelClosed=function(K,X){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(X)for(var F=X.length,P=0;P<F;++P){var H=X[P].map;H&&this.JSC$17486_pendingMessages_.push(H)}this.JSC$17486_channelClosedCounter.increment("BROWSER_CHANNEL");K&&this.pendingMapsOnClosedCounter.JSC$7943_streamzService.JSC$7798_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",K.length);X&&this.undeliveredMapsOnClosedCounter.JSC$7946_streamzService.JSC$7798_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
X.length)};
_.z.JSC$17445_channelSuccess=function(K,X){X!=null&&K!=null&&this.channelMessageSentCounter.increment()};
_.z.JSC$17445_getAdditionalParams=function(){var K={v:2};this.sCookie_&&(K.gsessionid=this.sCookie_);this.connectUi_!=0&&(K.ui=""+this.connectUi_);this.disconnectUi_!=0&&(K.ui=""+this.disconnectUi_);this.connectionParams_&&_.T8.extend(K,this.connectionParams_);return K};
_.z.JSC$17445_channelHandleArray=function(K){K[0]=="S"?this.sCookie_=K[1]:K[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17486_channel_.disconnect()):this.publish("handlerMessage",new Y_1(K[0],K[1]));this.JSC$17486_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.z.isChannelOpened=function(){return!!this.JSC$17486_channel_&&this.JSC$17486_channel_.getState()==3};
var nw1=function(K){if(K.JSC$17486_channel_){var X=K.JSC$17486_getXsrfToken_(),F=K.JSC$17486_channel_.JSC$17438_extraHeaders_||{};X?F["x-youtube-lounge-xsrf-token"]=X:delete F["x-youtube-lounge-xsrf-token"];K.JSC$17486_channel_.JSC$17438_extraHeaders_=F}},Qyk=function(K){if(K.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.F0();
if(!K.enableCachedUpdateAuthorizationHeader_)return L28(K);K.updateAuthorizationHeaderPromise_===null&&(K.updateAuthorizationHeaderPromise_=L28(K));return K.updateAuthorizationHeaderPromise_},L28=function(K){return _.Yv(K.getAuthorizationHeader_().then(function(X){TC1(K,X)}).thenCatch(function(){}),function(){K.updateAuthorizationHeaderPromise_=null})},TC1=function(K,X){if(K.JSC$17486_channel_){var F=K.JSC$17486_channel_.JSC$17438_extraHeaders_||{};
X&&Object.keys(X).length>0?F=Object.assign({},F,X):delete F.Authorization;K.JSC$17486_channel_.JSC$17438_extraHeaders_=F}},cPJ=function(K){K.getAuthorizationHeaderSync_&&!K.useAsyncBrowserChannelHandler_&&TC1(K,K.getAuthorizationHeaderSync_())};
_.z=TH.prototype;_.z.setLoungeToken=function(K){(this.defaultQueryParams_.loungeIdToken=K)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17486_channel_){var X=this.JSC$17486_channel_.JSC$17438_extraHeaders_||{};K?X["X-YouTube-LoungeId-Token"]=K:delete X["X-YouTube-LoungeId-Token"];this.JSC$17486_channel_.JSC$17438_extraHeaders_=X}};
_.z.getDeviceId=function(){return this.defaultQueryParams_.id};
_.z.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.z.reconnect=function(){var K=this.reconnectTimer_;K.delay_.fire();K.start()};
_.z.safeReconnect_=function(){var K=this.JSC$17486_channel_,X=0;K.JSC$17438_backChannelRequest_&&X++;K.forwardChannelRequest_&&X++;X==0&&this.connect(this.connectionParams_,this.connectUi_)};var dW=function(K,X){var F=K.basePath;K.supportCors&&(F=K.scheme+"://"+K.domain+K.port+K.basePath);return _.ON(F+X,{})};
rW.prototype.sendRequest=function(K,X,F,P,H,f,u){K={format:f?"RAW":"JSON",method:K,context:this,timeout:5E3,withCredentials:!!u,onSuccess:_.Jc(this.JSC$17491_onSuccess_,P,!f),onError:_.Jc(this.onError_,H),onTimeout:_.Jc(this.JSC$17491_onTimeout_,H)};F&&(K.postParams=F,K.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.fG(X,K)};
rW.prototype.JSC$17491_onSuccess_=function(K,X,F,P){X?K(P):K({text:F.responseText})};
rW.prototype.onError_=function(K,X){K(Error("yk`"+X.status))};
rW.prototype.JSC$17491_onTimeout_=function(K){K(Error("zk"))};var jC=function(K,X){return!!X&&(K.id==X||K.uuid==X)},rP8=function(K){return{name:K.name,
screenId:K.id,loungeToken:K.token,dialId:K.uuid,screenIdType:K.idType}},AP5=function(K){return new A2(K)},jyJ=function(K){return Array.isArray(K)?_.AE(K,AP5):[]},u11=function(K){if(!K)return"null";
var X=K.token?".."+K.token.slice(-6):"-",F=K.uuid?".."+K.uuid.slice(-6):"-";return'{name:"'+K.name+'",id:'+K.id.substr(0,6)+"..,token:"+(X+",uuid:"+F+",idType:"+K.idType+"}")},lp5=function(K){return Array.isArray(K)?"["+_.AE(K,u11).join(",")+"]":"null"};var cg8="",W2=null;var j2F=function(K,X){_.ua.call(this);var F=this;this.handler=K();this.handler.subscribe("handlerOpened",this.JSC$17498_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(P,H){F.onError(H)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=X};
_.r(j2F,_.ua);_.z=j2F.prototype;_.z.connect=function(K,X,F){this.handler.connect(K,X,F)};
_.z.disconnect=function(K){this.handler.disconnect(K)};
_.z.reconnect=function(){this.handler.reconnect()};
_.z.getDeviceId=function(){return this.handler.getDeviceId()};
_.z.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.z.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.z.JSC$17498_onOpened=function(){this.dispatchEvent("channelOpened");var K=this.handler,X=this.currentScreenId;_.kl("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!K.JSC$17486_channel_.useChunked_,sessionId:K.JSC$17486_channel_.sid_,arrayId:K.JSC$17486_channel_.JSC$17438_lastArrayId_});_.kl("yt-remote-session-screen-id",X);K=JgV();X=ZD8();_.Ol(K,X)||K.push(X);nhk(K);MWV()};
_.z.onClosed=function(){this.dispatchEvent("channelClosed")};
_.z.onMessage=function(K){this.dispatchEvent(new P48(K))};
_.z.onError=function(K){this.dispatchEvent(new HTF(K?1:0))};
_.z.sendMessage=function(K,X){this.handler.sendMessage(K,X)};
_.z.setLoungeToken=function(K){this.handler.setLoungeToken(K)};
_.z.dispose=function(){this.handler.dispose()};var Ags=function(K,X,F){var P=this;F=F===void 0?function(){return""}:F;
var H=H===void 0?new IBo:H;var f=f===void 0?new _.uD:f;this.pathPrefix=K;this.defaultQueryParams=X;this.getXsrfToken=F;this.JSC$17501_pubsub=f;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new K7o(function(){var u;((u=P.channel)==null?void 0:wVF((new XT5(u,u.JSC$17409_channel_)).JSC$17419_channel_.forwardChannelRequestPool_))===0&&P.connect(P.connectionParams,P.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17501_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17501_channelOpenedCounter=new Xb8;this.JSC$17501_channelClosedCounter=new F7o;this.JSC$17501_channelMessageReceivedCounter=new HD8;this.JSC$17501_channelErrorCounter=new s2V};
Ags.prototype.connect=function(K,X){K=K===void 0?{}:K;X=X===void 0?0:X;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=K,this.connectUi=X,wxF(this),(K=_.e8("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=K: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 Ww(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,yPG(this))};
var yPG=function(K){_.nB(K.channel,"w",function(){K.channelState=3;K.reconnectTimer.reset();K.connectionParams=null;K.connectUi=0;for(var X=_.D(K.nonAckedMessagesOnChannelClosed),F=X.next();!F.done;F=X.next())F=F.value,K.channel&&K.channel.send(F);K.nonAckedMessagesOnChannelClosed=[];K.publish("webChannelOpened");K.JSC$17501_channelOpenedCounter.increment("WEB_CHANNEL")});
_.nB(K.channel,"x",function(){K.channelState=0;K.reconnectTimer.isActive()||K.publish("webChannelClosed");var X,F=(X=K.channel)==null?void 0:FNW(new XT5(X,X.JSC$17409_channel_));F&&(K.nonAckedMessagesOnChannelClosed=[].concat(_.LZ(F)));K.JSC$17501_channelClosedCounter.increment("WEB_CHANNEL")});
_.nB(K.channel,"z",function(X){var F=X.data;F[0]==="gracefulReconnect"?(K.reconnectTimer.start(),K.channel&&K.channel.close()):K.publish("webChannelMessage",new Y_1(F[0],F[1]));K.lastStatusCode=X.statusCode;K.JSC$17501_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.nB(K.channel,"y",function(){K.lastStatusCode===401||K.reconnectTimer.start();K.publish("webChannelError");K.JSC$17501_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.z=Ags.prototype;_.z.disconnect=function(K){this.disconnectUi=K===void 0?0:K;this.reconnectTimer.stop();wxF(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.z.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.z.reconnect=function(){var K=this.reconnectTimer;K.delay_.fire();K.start()};
_.z.sendMessage=function(K,X){this.channel&&(wxF(this),K=Object.assign({},{_sc:K},X),this.channel.send(K))};
_.z.setLoungeToken=function(K){K||this.reconnectTimer.stop();K?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=K:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var wxF=function(K){var X=K.getXsrfToken();X?K.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=X:delete K.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.z=Ags.prototype;_.z.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.z.publish=function(K){return this.JSC$17501_pubsub.publish.apply(this.JSC$17501_pubsub,[K].concat(_.LZ(_.Ls.apply(1,arguments))))};
_.z.subscribe=function(K,X,F){return this.JSC$17501_pubsub.subscribe(K,X,F)};
_.z.unsubscribe=function(K,X,F){return this.JSC$17501_pubsub.unsubscribe(K,X,F)};
_.z.unsubscribeByKey=function(K){return this.JSC$17501_pubsub.unsubscribeByKey(K)};
_.z.dispose=function(){this.JSC$17501_disposed||(this.JSC$17501_disposed=!0,_.ik(this.JSC$17501_pubsub),this.disconnect(),_.ik(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.z.isDisposed=function(){return this.JSC$17501_disposed};var rgk=function(K){_.ua.call(this);this.webChannelService=K();this.webChannelService.subscribe("webChannelOpened",this.JSC$17509_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.r(rgk,_.ua);_.z=rgk.prototype;_.z.connect=function(K,X){this.webChannelService.connect(K,X)};
_.z.disconnect=function(K){this.webChannelService.disconnect(K)};
_.z.reconnect=function(){this.webChannelService.reconnect()};
_.z.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.z.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.z.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.z.JSC$17509_onOpened=function(){this.dispatchEvent("channelOpened")};
_.z.onClosed=function(){this.dispatchEvent("channelClosed")};
_.z.onMessage=function(K){this.dispatchEvent(new P48(K))};
_.z.onError=function(){this.dispatchEvent(new HTF(this.webChannelService.lastStatusCode===401?1:0))};
_.z.sendMessage=function(K,X){this.webChannelService.sendMessage(K,X)};
_.z.setLoungeToken=function(K){this.webChannelService.setLoungeToken(K)};
_.z.dispose=function(){this.webChannelService.dispose()};var GBJ=Date.now(),eC=null,hbG=Array(50),h2=-1,mzJ=!1;_.br(mB,_.ES);mB.prototype.getScreens=function(){return this.screens};
mB.prototype.contains=function(K){return!!qiW(this.screens,K)};
mB.prototype.get=function(K){return K?wW(this.screens,K):null};
var W2V=function(K,X){var F=K.get(X.uuid)||K.get(X.id);if(F)return K=F.name,F.id=X.id||F.id,F.name=X.name,F.token=X.token,F.uuid=X.uuid||F.uuid,F.name!=K;K.screens.push(X);return!0},df5=function(K,X){var F=K.screens.length!=X.length;
K.screens=_.Ck(K.screens,function(f){return!!qiW(X,f)});
for(var P=X.length,H=0;H<P;H++)F=W2V(K,X[H])||F;return F},erd=function(K,X){var F=K.screens.length;
K.screens=_.Ck(K.screens,function(P){return!(P||X?!P!=!X?0:P.id==X.id:1)});
return K.screens.length<F};
mB.prototype.info=function(K){RP(this.JSC$17510_logName_,K)};var Rrw=function(K,X,F,P,H){_.ES.call(this);this.JSC$17513_http_=K;this.pairingCode_=X;this.deviceId_=F;this.friendlyName_=P;this.enableShortLivedLoungeToken_=H;this.pollIndex_=0;this.JSC$17513_xhr_=null;this.JSC$17513_timer_=NaN};
_.r(Rrw,_.ES);_.z=Rrw.prototype;_.z.start=function(){!this.JSC$17513_xhr_&&isNaN(this.JSC$17513_timer_)&&this.poll_()};
_.z.stop=function(){this.JSC$17513_xhr_&&(this.JSC$17513_xhr_.abort(),this.JSC$17513_xhr_=null);isNaN(this.JSC$17513_timer_)||(_.sU(this.JSC$17513_timer_),this.JSC$17513_timer_=NaN)};
_.z.disposeInternal=function(){this.stop();_.ES.prototype.disposeInternal.call(this)};
_.z.poll_=function(){this.JSC$17513_timer_=NaN;this.JSC$17513_xhr_=_.fG(dW(this.JSC$17513_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.T3)(this.JSC$17515_onSuccess_,this),onError:(0,_.T3)(this.onError_,this),onTimeout:(0,_.T3)(this.JSC$17515_onTimeout_,this)})};
_.z.JSC$17515_onSuccess_=function(K,X){this.JSC$17513_xhr_=null;K=X.screen||{};K.dialId=this.deviceId_;K.name=this.friendlyName_;X=-1;this.enableShortLivedLoungeToken_&&K.shortLivedLoungeToken&&K.shortLivedLoungeToken.value&&K.shortLivedLoungeToken.refreshIntervalMs&&(K.screenIdType="shortLived",K.loungeToken=K.shortLivedLoungeToken.value,X=K.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new A2(K),X)};
_.z.onError_=function(K){this.JSC$17513_xhr_=null;K.status&&K.status==404?this.pollIndex_>=UfF.length?this.publish("pairingFailed",Error("Ak")):(K=UfF[this.pollIndex_],this.JSC$17513_timer_=_.Pm((0,_.T3)(this.poll_,this),K),this.pollIndex_++):this.publish("pairingFailed",Error("Bk`"+K.status))};
_.z.JSC$17515_onTimeout_=function(){this.JSC$17513_xhr_=null;this.publish("pairingFailed",Error("Ck"))};
var UfF=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.br(lA,mB);_.z=lA.prototype;_.z.start=function(){GH(this)&&this.publish("screenChange");!_.KE("yt-remote-lounge-token-expiration")&&hr5(this);_.sU(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.Pm((0,_.T3)(this.start,this),1E4)};
_.z.add=function(K,X){GH(this);W2V(this,K);mfv(this,!1);this.publish("screenChange");X(K);K.token||hr5(this)};
_.z.remove=function(K,X){var F=GH(this);erd(this,K)&&(mfv(this,!1),F=!0);X(K);F&&this.publish("screenChange")};
_.z.updateName=function(K,X,F,P){var H=GH(this),f=this.get(K.id);f?(f.name!=X&&(f.name=X,mfv(this,!1),H=!0),F(K)):P(Error("Dk"));H&&this.publish("screenChange")};
_.z.disposeInternal=function(){_.sU(this.loungeTokenRefreshTimer_);lA.superClass_.disposeInternal.call(this)};
var hr5=function(K){if(K.screens.length){var X=_.AE(K.screens,function(P){return P.id}),F=dW(K.JSC$17517_http_,"/pairing/get_lounge_token_batch");
K.JSC$17517_http_.sendRequest("POST",F,{screen_ids:X.join(",")},(0,_.T3)(K.handleLoungeTokens_,K),(0,_.T3)(K.handleLoungeTokenError_,K))}};
lA.prototype.handleLoungeTokens_=function(K){GH(this);var X=this.screens.length;K=K&&K.screens||[];for(var F=K.length,P=0;P<F;++P){var H=K[P],f=this.get(H.screenId);f&&(f.token=H.loungeToken,--X)}mfv(this,!X);X&&RP(this.JSC$17510_logName_,"Missed "+X+" lounge tokens.")};
lA.prototype.handleLoungeTokenError_=function(K){RP(this.JSC$17510_logName_,"Requesting lounge tokens failed: "+K)};
var GH=function(K){if(_.S("deprecate_pair_servlet_enabled"))return df5(K,[]);var X=jyJ(Bg1());X=_.Ck(X,function(F){return!F.uuid});
return df5(K,X)},mfv=function(K,X){ohJ(_.AE(K.screens,rP8));
X&&Si8()};var Ok=function(K,X){_.ES.call(this);this.getScreensToCheck_=X;X=(X=_.KE("yt-remote-online-screen-ids")||"")?X.split(","):[];for(var F={},P=this.getScreensToCheck_(),H=P.length,f=0;f<H;++f){var u=P[f].id;F[u]=_.Ol(X,u)}this.screenIdSet_=F;this.JSC$17520_http_=K;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;Ge5("Initialized with "+(0,_.nu)(this.screenIdSet_))};
_.r(Ok,_.ES);Ok.prototype.isOnline=function(K){return!!this.screenIdSet_[K]};
Ok.prototype.start=function(){var K=parseInt(_.KE("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.E$()-144E5<K?0:K)?l_F(this):(this.fastCheckEndTime_=_.E$()+3E5,_.kl("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
Ok.prototype.isEmpty=function(){return _.T8.isEmpty(this.screenIdSet_)};
Ok.prototype.update=function(){Ge5("Updating availability on schedule.");var K=this.getScreensToCheck_(),X=_.T8.filter(this.screenIdSet_,function(F,P){return F&&!!wW(K,P)},this);
vw8(this,X)};
var a_G=function(K,X,F){var P=dW(K.JSC$17520_http_,"/pairing/get_screen_availability");K.JSC$17520_http_.sendRequest("POST",P,{lounge_token:X.token},(0,_.T3)(function(H){H=H.screens||[];for(var f=H.length,u=0;u<f;++u)if(H[u].loungeToken==X.token){F(H[u].status=="online");return}F(!1)},K),(0,_.T3)(function(){F(!1)},K))};
Ok.prototype.disposeInternal=function(){_.sU(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.ES.prototype.disposeInternal.call(this)};
var vw8=function(K,X){a:if(_.T8.getCount(X)!=_.T8.getCount(K.screenIdSet_))var F=!1;else{F=_.T8.getKeys(X);for(var P=F.length,H=0;H<P;++H)if(!K.screenIdSet_[F[H]]){F=!1;break a}F=!0}F||(Ge5("Updated online screens: "+(0,_.nu)(K.screenIdSet_)),K.screenIdSet_=X,K.publish("screenChange"));tLW(K)},l_F=function(K){isNaN(K.refreshTimer_)||_.sU(K.refreshTimer_);
K.refreshTimer_=_.Pm((0,_.T3)(K.requestScreenAvailability_,K),K.fastCheckEndTime_>0&&K.fastCheckEndTime_<_.E$()?2E4:1E4)};
Ok.prototype.requestScreenAvailability_=function(){_.sU(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var K=$fw(this);if(_.T8.getCount(K)){var X=dW(this.JSC$17520_http_,"/pairing/get_screen_availability"),F={lounge_token:_.T8.getKeys(K).join(",")};this.currentRequest_=this.JSC$17520_http_.sendRequest("POST",X,F,(0,_.T3)(this.onScreenAvailability_,this,K),(0,_.T3)(this.onScreenAvailabilityError_,this))}else vw8(this,{}),l_F(this)};
Ok.prototype.onScreenAvailability_=function(K,X){this.currentRequest_=null;var F=_.T8.getKeys($fw(this));if(_.fW(F,_.T8.getKeys(K))){X=X.screens||[];F={};for(var P=X.length,H=0;H<P;++H)F[K[X[H].loungeToken]]=X[H].status=="online";vw8(this,F);l_F(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
Ok.prototype.onScreenAvailabilityError_=function(K){this.warn_("Screen availability failed: "+K);this.currentRequest_=null;l_F(this)};
var Ge5=function(K){RP("OnlineScreenService",K)};
Ok.prototype.warn_=function(K){RP("OnlineScreenService",K)};
var $fw=function(K){var X={};_.vd(K.getScreensToCheck_(),function(F){F.token?X[F.token]=F.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return X},tLW=function(K){K=_.T8.getKeys(_.T8.filter(K.screenIdSet_,function(X){return X}));
K.sort(_.HN);K.length?_.kl("yt-remote-online-screen-ids",K.join(","),60):_.XE("yt-remote-online-screen-ids")};_.br(v2,mB);_.z=v2.prototype;_.z.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.z.add=function(K,X,F){this.localScreenService_.add(K,X,F)};
_.z.remove=function(K,X,F){this.localScreenService_.remove(K,X,F);this.onlineScreenService_.update()};
_.z.updateName=function(K,X,F,P){this.localScreenService_.contains(K)?this.localScreenService_.updateName(K,X,F,P):(K="Updating name of unknown screen: "+K.name,RP(this.JSC$17510_logName_,K),P(Error(K)))};
_.z.getScreens=function(K){return K?this.screens:wdd(this.screens,_.Ck(this.automaticScreens_,function(X){return!this.contains(X)},this))};
_.z.JSC$17525_getOnlineScreens=function(){return _.Ck(this.getScreens(!0),function(K){return this.onlineScreenService_.isOnline(K.id)},this)};
var VL8=function(K,X,F,P,H,f){K.info("getAutomaticScreenByIds "+F+" / "+X);F||(F=K.deviceToScreenId_[X]);var u=K.getScreens(),J=F?wW(u,F):null;F&&(K.disableAutomaticScreenCache_||J)||(J=wW(u,X));if(J){J.uuid=X;var Z=VN(K,J);a_G(K.onlineScreenService_,Z,function(M){H(M?Z:null)})}else F?OTJ(K,F,(0,_.T3)(function(M){var n=VN(this,new A2({name:P,
screenId:F,loungeToken:M,dialId:X||""}));a_G(this.onlineScreenService_,n,function(c){H(c?n:null)})},K),f):H(null)};
v2.prototype.JSC$17525_getScreenByPollingPairingCode=function(K,X,F,P,H,f){var u=this;this.info("getDialScreenByPairingCode "+K+" / "+X);var J=new Rrw(this.JSC$17523_http_,K,X,F,P);J.subscribe("pairingComplete",function(Z,M){_.ik(J);H(VN(u,Z),M)});
J.subscribe("pairingFailed",function(Z){_.ik(J);f(Z)});
J.start();return(0,_.T3)(J.stop,J)};
var gwk=function(K,X){for(var F=K.screens.length,P=0;P<F;++P)if(K.screens[P].name==X)return K.screens[P];return null};
v2.prototype.JSC$17525_getScreenByPairingCode=function(K,X,F,P){_.fG(dW(this.JSC$17523_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:K},timeout:5E3,onSuccess:(0,_.T3)(function(H,f){H=new A2(f.screen||{});if(!H.name||gwk(this,H.name)){a:{f=H.name;for(var u=2,J=X(f,u);gwk(this,J);){u++;if(u>20)break a;J=X(f,u)}f=J}H.name=f}F(VN(this,H))},this),
onError:(0,_.T3)(function(H){P(Error("Ek`"+H.status))},this),
onTimeout:(0,_.T3)(function(){P(Error("Fk"))},this)})};
var EwJ=function(K,X,F){a_G(K.onlineScreenService_,X,F)};
v2.prototype.disposeInternal=function(){_.ik(this.localScreenService_);_.ik(this.onlineScreenService_);v2.superClass_.disposeInternal.call(this)};
var OTJ=function(K,X,F,P){K.info("requestLoungeToken_ for "+X);var H={postParams:{screen_ids:X},method:"POST",context:K,onSuccess:function(f,u){f=u&&u.screens||[];f[0]&&f[0].screenId==X?F(f[0].loungeToken):P(Error("Gk"))},
onError:function(){P(Error("Hk"))}};
_.fG(dW(K.JSC$17523_http_,"/pairing/get_lounge_token_batch"),H)},bTV=function(K){K.screens=K.localScreenService_.getScreens();
for(var X=_.T8.transpose(K.deviceToScreenId_),F=K.screens.length,P=0;P<F;++P){var H=K.screens[P];H.uuid=X[H.id]||""}K.info("Updated manual screens: "+lp5(K.screens))};
v2.prototype.handleScreenChange_=function(){bTV(this);this.publish("screenChange");this.onlineScreenService_.update()};
var vhJ=function(K){C4V(K);K.localScreenService_=new lA(K.JSC$17523_http_);K.localScreenService_.subscribe("screenChange",(0,_.T3)(K.handleScreenChange_,K));bTV(K);K.disableAutomaticScreenCache_||(K.automaticScreens_=jyJ(_.KE("yt-remote-automatic-screen-cache")||[]));C4V(K);K.info("Initializing automatic screens: "+lp5(K.automaticScreens_));K.onlineScreenService_=new Ok(K.JSC$17523_http_,(0,_.T3)(K.getScreens,K,!0));K.onlineScreenService_.subscribe("screenChange",(0,_.T3)(function(){this.publish("onlineScreenChange")},
K))},VN=function(K,X){var F=K.get(X.id);
F?(F.uuid=X.uuid,X=F):((F=wW(K.automaticScreens_,X.uuid))?(F.id=X.id,F.token=X.token,X=F):K.automaticScreens_.push(X),K.disableAutomaticScreenCache_||NCt(K));C4V(K);K.deviceToScreenId_[X.uuid]=X.id;_.kl("yt-remote-device-id-map",K.deviceToScreenId_,31536E3);return X},NCt=function(K){K=_.Ck(K.automaticScreens_,function(X){return X.idType!="shortLived"});
_.kl("yt-remote-automatic-screen-cache",_.AE(K,rP8))},C4V=function(K){K.deviceToScreenId_=_.KE("yt-remote-device-id-map")||{}};
v2.prototype.dispose=v2.prototype.dispose;_.br(aP,_.ES);var Ek=function(K,X){K.screen_=X;K.publish("sessionScreen",K.screen_)},iTW=function(K,X){K.screen_&&(K.screen_.token=X,VN(K.JSC$17527_screenService_,K.screen_));
K.publish("sessionScreen",K.screen_)};
aP.prototype.onSessionStopped=function(K){this.isDisposed()||(K&&(bE(this,""+K),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
aP.prototype.info=function(K){RP(this.JSC$17527_logName_,K)};
var bE=function(K,X){RP(K.JSC$17527_logName_,X)};
aP.prototype.JSC$17529_getCastSession=function(){return null};
aP.prototype.setDisplayStatus=function(K){var X=this.receiver_;K?(X.displayStatus=new chrome.cast.ReceiverDisplayStatus(K,[]),X.displayStatus.showStop=!0):X.displayStatus=null;chrome.cast.setReceiverDisplayStatus(X,(0,_.T3)(function(){this.info("Updated receiver status for "+X.friendlyName+": "+K)},this),(0,_.T3)(function(){bE(this,"Failed to update receiver status for: "+X.friendlyName)},this))};
aP.prototype.disposeInternal=function(){this.setDisplayStatus("");aP.superClass_.disposeInternal.call(this)};var Ce=function(K,X,F){aP.call(this,K,X,"CastSession");var P=this;this.config_=F;this.JSC$17532_session_=null;this.JSC$17532_boundSessionUpdate_=(0,_.T3)(this.JSC$17534_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.T3)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.Pm(function(){xfv(P,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17532_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17532_isInitLoungeToken_=!1;this.JSC$17532_lastLoungeTokenRefreshError_="unknown"};
_.r(Ce,aP);_.z=Ce.prototype;
_.z.setCastSession=function(K){if(this.JSC$17532_session_){if(this.JSC$17532_session_==K)return;bE(this,"Overriding cast session with new session object");I_V(this);this.JSC$17532_isInitLoungeToken_=!1;this.JSC$17532_lastLoungeTokenRefreshError_="unknown";this.JSC$17532_session_.removeUpdateListener(this.JSC$17532_boundSessionUpdate_);this.JSC$17532_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17532_session_=K;this.JSC$17532_session_.addUpdateListener(this.JSC$17532_boundSessionUpdate_);this.JSC$17532_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);keW(this,"getMdxSessionStatus")};
_.z.launchWithParams=function(K){this.info("launchWithParams no-op for Cast: "+(0,_.nu)(K))};
_.z.stop=function(){if(this.JSC$17532_session_)this.JSC$17532_session_.stop((0,_.T3)(function(){this.onSessionStopped()},this),(0,_.T3)(function(){this.onSessionStopped(Error("Ik"))},this));
else this.onSessionStopped(Error("Jk"))};
_.z.setDisplayStatus=function(){};
_.z.disposeInternal=function(){this.info("disposeInternal");I_V(this);this.JSC$17532_session_&&(this.JSC$17532_session_.removeUpdateListener(this.JSC$17532_boundSessionUpdate_),this.JSC$17532_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17532_session_=null;aP.prototype.disposeInternal.call(this)};
var XHV=function(K,X){_.sU(K.getLoungeTokenTimeoutKey_);K.getLoungeTokenTimeoutKey_=0;X==0?KQ5(K):K.getLoungeTokenTimeoutKey_=_.Pm(function(){KQ5(K)},X)},KQ5=function(K){keW(K,"getLoungeToken");
_.sU(K.onLoungeTokenTimeoutKey_);K.onLoungeTokenTimeoutKey_=_.Pm(function(){FQJ(K,null)},3E4)},keW=function(K,X){K.info("sendYoutubeMessage_: "+X+" "+(0,_.nu)(void 0));
var F={};F.type=X;K.JSC$17532_session_?K.JSC$17532_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",F,function(){},(0,_.T3)(function(){bE(this,"Failed to send message: "+X+".")},K)):bE(K,"Sending yt message without session: "+(0,_.nu)(F))};
Ce.prototype.onYoutubeMessage_=function(K,X){if(!this.isDisposed())if(X)if(X=(0,_.S4)(X),_.XL(X))switch(K=""+X.type,X=X.data||{},this.info("onYoutubeMessage_: "+K+" "+(0,_.nu)(X)),K){case "mdxSessionStatus":xfv(this,X);break;case "loungeToken":FQJ(this,X);break;default:bE(this,"Unknown youtube message: "+K)}else bE(this,"Unable to parse message.");else bE(this,"No data in message.")};
var POt=function(K,X){if(X)K.info("onConnectedScreenId_: Received screenId: "+X),K.screen_&&K.screen_.id==X||K.getScreen_(X,function(F){Ek(K,F)},function(){return K.onSessionStopped()},5);
else K.onSessionStopped(Error("Kk"))},sZW=function(K,X,F){K.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(X));
var P=new A2(X);Hzw(K,P,function(H){H?(K.JSC$17532_isInitLoungeToken_=!0,VN(K.JSC$17527_screenService_,P),Ek(K,P),K.JSC$17532_lastLoungeTokenRefreshError_="unknown",XHV(K,F)):(_.UN(Error("Lk`"+JSON.stringify(X))),K.onSessionStopped())},5)},xfv=function(K,X){_.sU(K.sessionStatusTimeoutKey_);
K.sessionStatusTimeoutKey_=0;if(X)K.config_.enableCastLoungeToken&&X.loungeToken?X.deviceId?K.screen_&&K.screen_.uuid==X.deviceId||(X.loungeTokenRefreshIntervalMs?sZW(K,{name:K.receiver_.friendlyName,screenId:X.screenId,loungeToken:X.loungeToken,dialId:X.deviceId,screenIdType:"shortLived"},X.loungeTokenRefreshIntervalMs):(_.UN(Error("Nk`"+JSON.stringify(X))),POt(K,X.screenId))):(_.UN(Error("Mk`"+JSON.stringify(X))),POt(K,X.screenId)):POt(K,X.screenId);else K.onSessionStopped(Error("Kk"))},FQJ=function(K,
X){_.sU(K.onLoungeTokenTimeoutKey_);
K.onLoungeTokenTimeoutKey_=0;var F=null;if(X)if(X.loungeToken){var P;((P=K.screen_)==null?void 0:P.token)==X.loungeToken&&(F="staleLoungeToken")}else F="missingLoungeToken";else F="noLoungeTokenResponse";F?(K.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(X)+", error: "+F)),K.JSC$17532_lastLoungeTokenRefreshError_=F,XHV(K,3E4)):(iTW(K,X.loungeToken),K.JSC$17532_isInitLoungeToken_=!1,K.JSC$17532_lastLoungeTokenRefreshError_="unknown",XHV(K,X.loungeTokenRefreshIntervalMs))};
Ce.prototype.getScreen_=function(K,X,F,P){_.sU(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;VL8(this.JSC$17527_screenService_,this.receiver_.label,K,this.receiver_.friendlyName,(0,_.T3)(function(H){H?X(H):P>=0?(bE(this,"Screen "+K+" appears to be offline. "+P+" retries left."),this.getScreenTimeoutKey_=_.Pm((0,_.T3)(this.getScreen_,this,K,X,F,P-1),300)):F(Error("Ok"))},this),F)};
var Hzw=function(K,X,F,P){_.sU(K.JSC$17532_checkScreenAvailabilityTimeoutKey_);K.JSC$17532_checkScreenAvailabilityTimeoutKey_=0;EwJ(K.JSC$17527_screenService_,X,function(H){H||P<0?F(H):K.JSC$17532_checkScreenAvailabilityTimeoutKey_=_.Pm(function(){Hzw(K,X,F,P-1)},300)})};
Ce.prototype.JSC$17529_getCastSession=function(){return this.JSC$17532_session_};
Ce.prototype.JSC$17534_onSessionUpdate_=function(K){this.isDisposed()||K||(bE(this,"Cast session died."),this.onSessionStopped())};
var I_V=function(K){_.sU(K.getScreenTimeoutKey_);K.getScreenTimeoutKey_=0;_.sU(K.JSC$17532_checkScreenAvailabilityTimeoutKey_);K.JSC$17532_checkScreenAvailabilityTimeoutKey_=0;_.sU(K.sessionStatusTimeoutKey_);K.sessionStatusTimeoutKey_=0;_.sU(K.onLoungeTokenTimeoutKey_);K.onLoungeTokenTimeoutKey_=0;_.sU(K.getLoungeTokenTimeoutKey_);K.getLoungeTokenTimeoutKey_=0};var Np=function(K,X,F,P){aP.call(this,K,X,"DialSession");this.config_=P;this.JSC$17536_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17536_theme_=F;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17536_deferredLaunchDeadlineTimer_=NaN;this.JSC$17536_boundSessionUpdate_=(0,_.T3)(this.JSC$17538_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17536_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17536_isInitLoungeToken_=!1;this.JSC$17536_lastLoungeTokenRefreshError_="unknown"};
_.r(Np,aP);Np.prototype.setCastSession=function(K){this.JSC$17536_session_=K;this.JSC$17536_session_.addUpdateListener(this.JSC$17536_boundSessionUpdate_)};
Np.prototype.launchWithParams=function(K){this.connectData_=K;this.deferredLaunch_()};
Np.prototype.stop=function(){znt(this);if(this.JSC$17536_session_)this.JSC$17536_session_.stop((0,_.T3)(this.onSessionStopped,this,null),(0,_.T3)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
Np.prototype.disposeInternal=function(){znt(this);this.JSC$17536_session_&&this.JSC$17536_session_.removeUpdateListener(this.JSC$17536_boundSessionUpdate_);this.JSC$17536_session_=null;aP.prototype.disposeInternal.call(this)};
var f68=function(K){var X;return!!(K.config_.enableDialLoungeToken&&((X=K.JSC$17536_session_)==null?0:X.getDialAppInfo))},D2F=function(K){K.cancelPolling_=K.JSC$17527_screenService_.JSC$17525_getScreenByPollingPairingCode(K.reversePairingCode_,K.receiver_.label,K.receiver_.friendlyName,f68(K),function(X,F){K.cancelPolling_=function(){};
K.JSC$17536_isInitLoungeToken_=!0;Ek(K,X);X.idType=="shortLived"&&F>0&&iE(K,F)},function(X){K.cancelPolling_=function(){};
K.onSessionStopped(X)})};
Np.prototype.JSC$17538_onSessionUpdate_=function(K){this.isDisposed()||K||(bE(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var u5t=function(K){var X={};X.pairingCode=K.reversePairingCode_;X.theme=K.JSC$17536_theme_;Tgw()&&(X.env_useStageMdx=1);return _.Dr(X)},qHd=function(K){return new Promise(function(X){K.reversePairingCode_=Dzd();
if(K.connectData_){var F=new chrome.cast.DialLaunchResponse(!0,u5t(K));X(F);D2F(K)}else K.deferredLaunch_=function(){_.sU(K.JSC$17536_deferredLaunchDeadlineTimer_);K.deferredLaunch_=function(){};
K.JSC$17536_deferredLaunchDeadlineTimer_=NaN;var P=new chrome.cast.DialLaunchResponse(!0,u5t(K));X(P);D2F(K)},K.JSC$17536_deferredLaunchDeadlineTimer_=_.Pm(function(){K.deferredLaunch_()},100)})},Zzo=function(K,X,F){K.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(X));
var P=new A2(X);return(new Promise(function(H){Jpk(K,P,function(f){f?(K.JSC$17536_isInitLoungeToken_=!0,VN(K.JSC$17527_screenService_,P),Ek(K,P),iE(K,F)):_.UN(Error("Qk`"+JSON.stringify(X)));H(f)},5)})).then(function(H){return H?new chrome.cast.DialLaunchResponse(!1):qHd(K)})},YHo=function(K,X){var F=K.launchData_.receiver.label,P=K.receiver_.friendlyName;
return(new Promise(function(H){VL8(K.JSC$17527_screenService_,F,X,P,function(f){f&&f.token&&Ek(K,f);H(f)},function(f){bE(K,"Failed to get DIAL screen: "+f);
H(null)})})).then(function(H){return H&&H.token?new chrome.cast.DialLaunchResponse(!1):qHd(K)})},Jpk=function(K,X,F,P){_.sU(K.JSC$17536_checkScreenAvailabilityTimeoutKey_);
K.JSC$17536_checkScreenAvailabilityTimeoutKey_=0;EwJ(K.JSC$17527_screenService_,X,function(H){H||P<0?F(H):K.JSC$17536_checkScreenAvailabilityTimeoutKey_=_.Pm(function(){Jpk(K,X,F,P-1)},300)})},iE=function(K,X){K.info("getDialAppInfoWithTimeout_ "+X);
f68(K)&&(_.sU(K.getDialAppInfoTimeoutKey_),K.getDialAppInfoTimeoutKey_=0,X==0?QZ8(K):K.getDialAppInfoTimeoutKey_=_.Pm(function(){QZ8(K)},X))},QZ8=function(K){f68(K)&&K.JSC$17536_session_.getDialAppInfo(function(X){K.info("getDialAppInfo dialLaunchData: "+JSON.stringify(X));
X=X.extraData||{};var F=null;if(X.loungeToken){var P;((P=K.screen_)==null?void 0:P.token)==X.loungeToken&&(F="staleLoungeToken")}else F="missingLoungeToken";F?(K.JSC$17536_lastLoungeTokenRefreshError_=F,iE(K,3E4)):(K.JSC$17536_isInitLoungeToken_=!1,K.JSC$17536_lastLoungeTokenRefreshError_="unknown",iTW(K,X.loungeToken),iE(K,X.loungeTokenRefreshIntervalMs))},function(X){K.info("getDialAppInfo error: "+X);
K.JSC$17536_lastLoungeTokenRefreshError_="noLoungeTokenResponse";iE(K,3E4)})},znt=function(K){_.sU(K.JSC$17536_checkScreenAvailabilityTimeoutKey_);
K.JSC$17536_checkScreenAvailabilityTimeoutKey_=0;_.sU(K.getDialAppInfoTimeoutKey_);K.getDialAppInfoTimeoutKey_=0;K.cancelPolling_();K.cancelPolling_=function(){};
_.sU(K.JSC$17536_deferredLaunchDeadlineTimer_)};var xK=function(K,X){aP.call(this,K,X,"ManualSession");this.JSC$17540_deferredLaunchDeadlineTimer_=_.Pm((0,_.T3)(this.launchWithParams,this,null),150)};
_.r(xK,aP);xK.prototype.stop=function(){this.onSessionStopped()};
xK.prototype.setCastSession=function(){};
xK.prototype.launchWithParams=function(){_.sU(this.JSC$17540_deferredLaunchDeadlineTimer_);this.JSC$17540_deferredLaunchDeadlineTimer_=NaN;var K=wW(this.JSC$17527_screenService_.getScreens(),this.receiver_.label);if(K)Ek(this,K);else this.onSessionStopped(Error("Rk"))};
xK.prototype.disposeInternal=function(){_.sU(this.JSC$17540_deferredLaunchDeadlineTimer_);this.JSC$17540_deferredLaunchDeadlineTimer_=NaN;aP.prototype.disposeInternal.call(this)};var Vx=function(K,X){_.ES.call(this);this.config_=X;this.JSC$17543_screenService_=K;this.JSC$17543_appId_=X.appId||"233637DE";this.JSC$17543_theme_=X.theme||"cl";this.disableDial_=X.disableCastApi||!1;this.forceMirroring_=X.forceMirroring||!1;this.JSC$17543_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.T3)(this.onReceiverAction_,this)};
_.r(Vx,_.ES);
Vx.prototype.init=function(K,X){chrome.cast.timeout.requestSession=3E4;var F=new chrome.cast.SessionRequest(this.JSC$17543_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.S("desktop_enable_cast_connect")&&(F.androidReceiverCompatible=!0);this.disableDial_||(F.dialRequest=new chrome.cast.DialRequest("YouTube"));var P=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;K=K||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var H=(0,_.T3)(this.onReceiverUpdated_,
this);F=new chrome.cast.ApiConfig(F,(0,_.T3)(this.onSessionEstablished_,this),H,P,K);F.customDialLaunchCallback=(0,_.T3)(this.onDialLaunchRequested_,this);chrome.cast.initialize(F,(0,_.T3)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),eb1(),this.JSC$17543_screenService_.subscribe("onlineScreenChange",(0,_.T3)(this.JSC$17545_onScreenChange_,this)),this.customReceivers_=Mg8(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.T3)(function(f){this.warn_("Failed to set initial custom receivers: "+(0,_.nu)(f))},this)),this.publish("yt-remote-cast2-availability-change",Il(this)),X(!0))},this),(0,_.T3)(function(f){this.warn_("Failed to initialize API: "+(0,_.nu)(f));
X(!1)},this))};
Vx.prototype.setConnectedScreenStatus=function(K,X){kK("Setting connected screen ID: "+K+" -> "+X);if(this.JSC$17543_session_){var F=this.JSC$17543_session_.screen_;if(!K||F&&F.id!=K)kK("Unsetting old screen status: "+this.JSC$17543_session_.receiver_.friendlyName),Ko(this,null)}if(K&&X){if(!this.JSC$17543_session_){K=wW(this.JSC$17543_screenService_.getScreens(),K);if(!K){kK("setConnectedScreenStatus: Unknown screen.");return}if(K.idType=="shortLived"){kK("setConnectedScreenStatus: Screen with id type to be short lived.");
return}F=n2V(this,K);F||(kK("setConnectedScreenStatus: Connected receiver not custom..."),F=new chrome.cast.Receiver(K.uuid?K.uuid:K.id,K.name),F.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(F),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.T3)(function(P){this.warn_("Failed to set initial custom receivers: "+(0,_.nu)(P))},this)));
kK("setConnectedScreenStatus: new active receiver: "+F.friendlyName);Ko(this,new xK(this.JSC$17543_screenService_,F),!0)}this.JSC$17543_session_.setDisplayStatus(X)}else kK("setConnectedScreenStatus: no screen.")};
var n2V=function(K,X){return X?_.lT(K.customReceivers_,function(F){return jC(X,F.label)},K):null};
Vx.prototype.setLaunchParams=function(K){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17543_session_?this.JSC$17543_session_.launchWithParams(K):this.warn_("Setting connection data without a session")};
Vx.prototype.JSC$17545_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17543_session_?(this.JSC$17543_session_.stop(),Ko(this,null)):kK("Stopping non-existing session")};
Vx.prototype.requestSession=function(){chrome.cast.requestSession((0,_.T3)(this.onSessionEstablished_,this),(0,_.T3)(this.onSessionRequestFailed_,this))};
Vx.prototype.disposeInternal=function(){this.JSC$17543_screenService_.unsubscribe("onlineScreenChange",(0,_.T3)(this.JSC$17545_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.CO(_.mz("yt.mdx.remote.debug.handlers_")||[],ygV);_.ik(this.JSC$17543_session_);_.ES.prototype.disposeInternal.call(this)};
var kK=function(K){RP("Controller",K)};
Vx.prototype.warn_=function(K){RP("Controller",K)};
var ygV=function(K){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(K)},Il=function(K){return K.hasCastReceiver_||!!K.customReceivers_.length||!!K.JSC$17543_session_},Ko=function(K,X,F){X!=K.JSC$17543_session_&&(_.ik(K.JSC$17543_session_),(K.JSC$17543_session_=X)?(F?K.publish("yt-remote-cast2-receiver-resumed",X.receiver_):K.publish("yt-remote-cast2-receiver-selected",X.receiver_),X.subscribe("sessionScreen",(0,_.T3)(K.onSessionScreen_,K,X)),X.subscribe("sessionFailed",
function(){return cpt(K,X)}),X.screen_?K.publish("yt-remote-cast2-session-change",X.screen_):F&&K.JSC$17543_session_.launchWithParams(null)):K.publish("yt-remote-cast2-session-change",null))},cpt=function(K,X){K.JSC$17543_session_==X&&K.publish("yt-remote-cast2-session-failed")};
_.z=Vx.prototype;_.z.onSessionScreen_=function(K,X){this.JSC$17543_session_==K&&(X||Ko(this,null),this.publish("yt-remote-cast2-session-change",X))};
_.z.onReceiverAction_=function(K,X){if(!this.isDisposed())if(K)switch(K.friendlyName=chrome.cast.unescape(K.friendlyName),kK("onReceiverAction_ "+K.label+" / "+K.friendlyName+"-- "+X),X){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17543_session_)if(this.JSC$17543_session_.receiver_.label!=K.label)kK("onReceiverAction_: Stopping active receiver: "+this.JSC$17543_session_.receiver_.friendlyName),this.JSC$17543_session_.stop();else{kK("onReceiverAction_: Casting to active receiver.");this.JSC$17543_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17543_session_.screen_);break}switch(K.receiverType){case chrome.cast.ReceiverType.CUSTOM:Ko(this,new xK(this.JSC$17543_screenService_,K));break;case chrome.cast.ReceiverType.DIAL:Ko(this,new Np(this.JSC$17543_screenService_,K,this.JSC$17543_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:Ko(this,new Ce(this.JSC$17543_screenService_,K,this.config_));break;default:this.warn_("Unknown receiver type: "+K.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17543_session_&&
this.JSC$17543_session_.receiver_.label==K.label?this.JSC$17543_session_.stop():this.warn_("Stopping receiver w/o session: "+K.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.z.onDialLaunchRequested_=function(K){if(this.isDisposed())return Promise.reject(Error("Sk"));var X=K.receiver;X.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+X.friendlyName),X.receiverType=chrome.cast.ReceiverType.DIAL);var F=this.JSC$17543_session_?this.JSC$17543_session_.receiver_:null;if(!F||F.label!=X.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+X.friendlyName),Promise.reject(Error("Tk"));if(F&&F.label==X.label&&F.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17543_session_.screen_)return kK("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17543_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+F.receiverType+'" to "dial" for '+X.friendlyName);Ko(this,new Np(this.JSC$17543_screenService_,X,this.JSC$17543_theme_,this.config_))}X=this.JSC$17543_session_;X.launchData_=K;X.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(K=X.launchData_.extraData||{},F=K.screenId||null,f68(X)&&K.loungeToken?K.loungeTokenRefreshIntervalMs?K=Zzo(X,{name:X.receiver_.friendlyName,screenId:K.screenId,loungeToken:K.loungeToken,dialId:X.launchData_.receiver.label,screenIdType:"shortLived"},K.loungeTokenRefreshIntervalMs):(_.UN(Error("Pk`"+JSON.stringify(K))),K=YHo(X,F)):K=YHo(X,F)):K=qHd(X);return K};
_.z.onSessionEstablished_=function(K){var X=this;if(!this.isDisposed()&&!this.forceMirroring_){kK("New cast session ID: "+K.sessionId);var F=K.receiver;if(F.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17543_session_)if(F.receiverType==chrome.cast.ReceiverType.CAST)kK("Got resumed cast session before resumed mdx connection."),F.friendlyName=chrome.cast.unescape(F.friendlyName),Ko(this,new Ce(this.JSC$17543_screenService_,F,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var P=this.JSC$17543_session_.receiver_,H=wW(this.JSC$17543_screenService_.getScreens(),P.label);H&&jC(H,F.label)&&P.receiverType!=chrome.cast.ReceiverType.CAST&&F.receiverType==chrome.cast.ReceiverType.CAST&&(kK("onSessionEstablished_: manual to cast session change "+F.friendlyName),_.ik(this.JSC$17543_session_),this.JSC$17543_session_=new Ce(this.JSC$17543_screenService_,F,this.config_),this.JSC$17543_session_.subscribe("sessionScreen",(0,_.T3)(this.onSessionScreen_,this,this.JSC$17543_session_)),
this.JSC$17543_session_.subscribe("sessionFailed",function(){return cpt(X,X.JSC$17543_session_)}),this.JSC$17543_session_.launchWithParams(null));
this.JSC$17543_session_.setCastSession(K)}}};
_.z.JSC$17545_getCastSession=function(){return this.JSC$17543_session_?this.JSC$17543_session_.JSC$17529_getCastSession():null};
_.z.onSessionRequestFailed_=function(K){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.nu)(K)),K.code!=chrome.cast.ErrorCode.CANCEL&&Ko(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.z.onReceiverUpdated_=function(K){kK("Receiver availability updated: "+K);if(!this.isDisposed()){var X=Il(this);this.hasCastReceiver_=K==chrome.cast.ReceiverAvailability.AVAILABLE;Il(this)!=X&&this.publish("yt-remote-cast2-availability-change",Il(this))}};
var Mg8=function(K){var X=K.JSC$17543_screenService_.JSC$17525_getOnlineScreens(),F=K.JSC$17543_session_&&K.JSC$17543_session_.receiver_;K=_.AE(X,function(P){F&&jC(P,F.label)&&(F=null);var H=P.uuid?P.uuid:P.id,f=n2V(this,P);f?(f.label=H,f.friendlyName=P.name):(f=new chrome.cast.Receiver(H,P.name),f.receiverType=chrome.cast.ReceiverType.CUSTOM);return f},K);
F&&(F.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(F=new chrome.cast.Receiver(F.label,F.friendlyName),F.receiverType=chrome.cast.ReceiverType.CUSTOM),K.push(F));return K};
Vx.prototype.JSC$17545_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=Mg8(this),kK("Updating custom receivers: "+(0,_.nu)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.T3)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",Il(this)))};
Vx.prototype.setLaunchParams=Vx.prototype.setLaunchParams;Vx.prototype.setConnectedScreenStatus=Vx.prototype.setConnectedScreenStatus;Vx.prototype.stopSession=Vx.prototype.JSC$17545_stopSession;Vx.prototype.getCastSession=Vx.prototype.JSC$17545_getCastSession;Vx.prototype.requestSession=Vx.prototype.requestSession;Vx.prototype.init=Vx.prototype.init;Vx.prototype.dispose=Vx.prototype.dispose;var FHV=[];var pH1=function(K){K.audioTrackId=null;K.trackData=null;K.playerState=-1;K.hasPrevious=!1;K.hasNext=!1;K.playerTime_=0;K.playerTimeAt_=_.E$();K.seekableStart_=0;K.seekableEnd_=0;K.duration_=0;K.loadedTime=0;K.liveIngestionTime_=NaN;K.isLive_=!1};
_.z=gW.prototype;
_.z.reset=function(K){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;K&&(this.index=K.index,this.listId=K.listId,this.videoId=K.videoId,this.playerState=K.playerState,this.volume=K.volume,this.muted=K.muted,this.audioTrackId=K.audioTrackId,this.trackData=K.trackData,this.hasPrevious=K.hasPrevious,this.hasNext=K.hasNext,this.playerTime_=K.playerTime,this.playerTimeAt_=K.playerTimeAt,this.seekableStart_=K.seekableStart,this.seekableEnd_=K.seekableEnd,this.duration_=K.duration,this.loadedTime=
K.loadedTime,this.liveIngestionTime_=K.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.z.stopPlayer=function(){this.index=-1;this.videoId="";pH1(this)};
_.z.isPlaying=function(){return this.playerState==1};
_.z.isBuffering=function(){return this.playerState==3};
_.z.isAdPlaying=function(){return this.playerState==1081};
var Xh=function(K,X){K.playerTime_=X;K.playerTimeAt_=_.E$()},B4k=function(K){switch(K.playerState){case 1:case 1081:return(_.E$()-K.playerTimeAt_)/1E3+K.playerTime_;
case -1E3:return 0}return K.playerTime_};
gW.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.E$()-this.playerTimeAt_)/1E3:0):this.duration_};
var SHo=function(K,X,F){var P=K.videoId;K.videoId=X;K.index=F;X!=P&&pH1(K)},o2G=function(K){var X={};
X.index=K.index;X.listId=K.listId;X.videoId=K.videoId;X.playerState=K.playerState;X.volume=K.volume;X.muted=K.muted;X.audioTrackId=K.audioTrackId;X.trackData=_.T8.unsafeClone(K.trackData);X.hasPrevious=K.hasPrevious;X.hasNext=K.hasNext;X.playerTime=K.playerTime_;X.playerTimeAt=K.playerTimeAt_;X.seekableStart=K.seekableStart_;X.seekableEnd=K.seekableEnd_;X.duration=K.duration_;X.loadedTime=K.loadedTime;X.liveIngestionTime=K.liveIngestionTime_;return X};
gW.prototype.clone=function(){return new gW(o2G(this))};var Fh=function(K,X){_.ES.call(this);var F=this;this.state_=0;this.connection_=K;this.contextSubscriptions_=[];this.actionQueue_=new kTJ;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.T3)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.T3)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.T3)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.T3)(this.onCloudviewAvailabilityChange_,this);var P=0;K?(P=K.getProxyState(),
P!=3&&(K.subscribe("proxyStateChange",this.setState_,this),LQ5(this))):P=3;P!=0&&(X?this.setState_(P):_.Pm(function(){F.setState_(P)},0));
(K=zFw())&&T45(this,K);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.r(Fh,_.ES);Fh.prototype.getState=function(){return this.state_};
Fh.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Fh.prototype.reconnect=function(){this.connection_.reconnect()};
var Pt=function(K){return new gW(K.connection_.getPlayerContextData())};
_.z=Fh.prototype;_.z.play=function(){Ht(this)?(this.castMedia_?this.castMedia_.play(null,_.zM,rpt(this,"play")):sC(this,"play"),ApG(this,1,B4k(Pt(this))),this.publish("remotePlayerChange")):zq(this,this.play)};
_.z.pause=function(){Ht(this)?(this.castMedia_?this.castMedia_.pause(null,_.zM,rpt(this,"pause")):sC(this,"pause"),ApG(this,2,B4k(Pt(this))),this.publish("remotePlayerChange")):zq(this,this.pause)};
_.z.seekTo=function(K){if(Ht(this)){if(this.castMedia_){var X=Pt(this),F=new chrome.cast.media.SeekRequest;F.currentTime=K;X.isPlaying()||X.isBuffering()?F.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:F.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(F,_.zM,rpt(this,"seekTo",{newTime:K}))}else sC(this,"seekTo",{newTime:K});ApG(this,3,K);this.publish("remotePlayerChange")}else zq(this,_.Jc(this.seekTo,K))};
_.z.stop=function(){if(Ht(this)){this.castMedia_?this.castMedia_.stop(null,_.zM,rpt(this,"stopVideo")):sC(this,"stopVideo");var K=Pt(this);K.stopPlayer();fo(this,K);this.publish("remotePlayerChange")}else zq(this,this.stop)};
_.z.setVolume=function(K,X){if(Ht(this)){var F=Pt(this);if(this.castSession_){if(F.volume!=K){var P=Math.round(K)/100;this.castSession_.setReceiverVolumeLevel(P,(0,_.T3)(function(){U0("set receiver volume: "+P)},this),(0,_.T3)(function(){this.warn_("failed to set receiver volume.")},this))}F.muted!=X&&this.castSession_.setReceiverMuted(X,(0,_.T3)(function(){U0("set receiver muted: "+X)},this),(0,_.T3)(function(){this.warn_("failed to set receiver muted.")},this))}else{var H={volume:K,
muted:X};F.volume!=-1&&(H.delta=K-F.volume);sC(this,"setVolume",H)}F.muted=X;F.volume=K;fo(this,F)}else zq(this,_.Jc(this.setVolume,K,X))};
_.z.setAudioTrack=function(K,X){Ht(this)?(X=X.getLanguageInfo().getId(),sC(this,"setAudioTrack",{videoId:K,audioTrackId:X}),K=Pt(this),K.audioTrackId=X,fo(this,K)):zq(this,_.Jc(this.setAudioTrack,K,X))};
_.z.addVideo=function(K){Ht(this)?sC(this,"addVideo",{videoId:K}):zq(this,_.Jc(this.addVideo,K))};
_.z.addPlaylist=function(K){Ht(this)?sC(this,"addVideos",{listId:K}):zq(this,_.Jc(this.addPlaylist,K))};
_.z.addVideos=function(K){K.length==0?this.warn_("Ignore add videos request due to empty list"):Ht(this)?sC(this,"addVideos",{videoIds:K.join(",")}):zq(this,_.Jc(this.addVideos,K))};
_.z.JSC$17555_removeVideo=function(K){Ht(this)?sC(this,"removeVideo",{videoId:K}):zq(this,_.Jc(this.JSC$17555_removeVideo,K))};
_.z.JSC$17555_insertVideo=function(K){Ht(this)?sC(this,"insertVideo",{videoId:K}):zq(this,_.Jc(this.JSC$17555_insertVideo,K))};
_.z.playVideo=function(K,X,F,P,H,f,u){P=P===void 0?null:P;H=H===void 0?null:H;f=f===void 0?null:f;u=u===void 0?null:u;var J=Pt(this),Z={videoId:K};F!==void 0&&(Z.currentIndex=F);SHo(J,K,F||0);X!==void 0&&(Xh(J,X),Z.currentTime=X);P&&(Z.listId=P);H&&(Z.playerParams=H);f&&(Z.clickTrackingParams=f);u&&(Z.locationInfo=(0,_.nu)(u));sC(this,"setPlaylist",Z);P||fo(this,J)};
_.z.nextVideo=function(K,X){if(Ht(this)){if(K&&X){var F=Pt(this);SHo(F,K,X);fo(this,F)}sC(this,"next")}else zq(this,_.Jc(this.nextVideo,K,X))};
_.z.clearPlaylist=function(){if(Ht(this)){sC(this,"clearPlaylist");var K=Pt(this);K.reset();fo(this,K);this.publish("remotePlayerChange")}else zq(this,this.clearPlaylist)};
_.z.dispose=function(){if(this.state_!=3){var K=this.state_;this.state_=3;this.publish("proxyStateChange",K,this.state_)}_.ES.prototype.dispose.call(this)};
_.z.disposeInternal=function(){jZG(this);this.connection_=null;this.actionQueue_.clear();T45(this,null);_.ES.prototype.disposeInternal.call(this)};
var LQ5=function(K){_.vd("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(X){this.contextSubscriptions_.push(this.connection_.subscribe(X,_.Jc(this.onProxyEvent_,X),this))},K)},jZG=function(K){_.vd(K.contextSubscriptions_,function(X){this.connection_.unsubscribeByKey(X)},K);
K.contextSubscriptions_.length=0},Ht=function(K){return K.getState()==1},zq=function(K,X){K.actionQueue_.getCount()<50&&K.actionQueue_.enqueue(X)},ApG=function(K,X,F){var P=Pt(K);
Xh(P,F);P.playerState!=-1E3&&(P.playerState=X);fo(K,P)},sC=function(K,X,F){K.connection_.sendMessage(X,F)},fo=function(K,X){jZG(K);
K.connection_.setPlayerContextData(o2G(X));LQ5(K)};
Fh.prototype.setState_=function(K){if((K!=this.state_||K==2)&&this.state_!=3&&K!=0){var X=this.state_;this.state_=K;this.publish("proxyStateChange",X,K);if(K==1)for(;!this.actionQueue_.isEmpty();)K=this.actionQueue_,$OF(K),K.front_.pop().apply(this);else K==3&&this.dispose()}};
Fh.prototype.onProxyEvent_=function(K,X){this.publish(K,X)};
var T45=function(K,X){K.castSession_&&(K.castSession_.removeUpdateListener(K.boundCastStatusListener_),K.castSession_.removeMediaListener(K.boundCastMediaListener_),K.onCastMediaChange_(null));K.castSession_=X;if(K.castSession_&&(U0("Setting cast session: "+K.castSession_.sessionId),K.castSession_.addUpdateListener(K.boundCastStatusListener_),K.castSession_.addMediaListener(K.boundCastMediaListener_),K.castSession_.media.length))K.onCastMediaChange_(K.castSession_.media[0])};
Fh.prototype.onCastStatusUpdate_=function(K){if(!K)this.onCastMediaChange_(null),T45(this,null);else if(this.castSession_.receiver.volume){K=this.castSession_.receiver.volume;var X=Pt(this),F=Math.round(100*K.level||0);if(X.volume!=F||X.muted!=K.muted)U0("Cast volume update: "+K.level+(K.muted?" muted":"")),X.volume=F,X.muted=!!K.muted,fo(this,X)}};
Fh.prototype.onCastMediaChange_=function(K){U0("Cast media: "+!!K);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=K)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),wHs(this),this.publish("remotePlayerChange")};
var wHs=function(K){var X=K.castMedia_.media,F=K.castMedia_.customData;if(X&&F){var P=Pt(K);X.contentId!=P.videoId&&U0("Cast changing video to: "+X.contentId);P.videoId=X.contentId;P.playerState=F.playerState;Xh(P,K.castMedia_.getEstimatedTime());fo(K,P)}else U0("No cast media video. Ignoring state update.")};
Fh.prototype.onCastMediaUpdate_=function(K){if(K)wHs(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Fh.prototype.onCloudviewAvailabilityChange_=function(){var K=zFw();K&&T45(this,K)};
Fh.prototype.warn_=function(K){RP("CP",K)};
var rpt=function(K,X,F){return(0,_.T3)(function(P){this.warn_("Failed to "+X+" with cast v2 channel. Error code: "+P.code);P.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+X+" using MDx browser channel."),sC(this,X,F))},K)};var uo=function(K,X,F,P){P=P===void 0?!1:P;_.ES.call(this);var H=this;this.connectTimerId_=NaN;this.reconnecting_=!1;this.idleDisconnectTimerId_=this.clientSetVideoTimerId_=this.playingSyncTimerId_=this.reconnectedCheckScreenTimeout_=NaN;this.listeners_=[];this.autoplayMode_=this.autoplayVideoId_=this.clientVideoId_=this.playerContext_=this.channelService=null;this.JSC$17562_http_=K;this.enableConnectWithInitialState_=P;this.listeners_.push(_.CQ(window,"beforeunload",function(){H.JSC$17565_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new gW;this.currentScreenId_=X.id;this.currentScreenIdType_=X.idType;this.channelService=wbv(this.JSC$17562_http_,F,this.JSC$17565_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){ypJ(H)});
this.channelService.listen("channelClosed",function(){Dx("Channel closed");isNaN(H.connectTimerId_)?yx(!0):yx();H.dispose()});
this.channelService.listen("channelError",function(f){yx();isNaN(H.getReconnectTimeout_())?(f==1&&H.currentScreenIdType_=="shortLived"&&H.publish("browserChannelAuthError",f),Dx("Channel error: "+f+" without reconnection"),H.dispose()):(H.reconnecting_=!0,Dx("Channel error: "+f+" with reconnection in "+H.getReconnectTimeout_()+" ms"),WQd(H,2))});
this.channelService.listen("channelMessage",function(f){d28(H,f)});
this.channelService.setLoungeToken(X.token);this.subscribe("remoteQueueChange",function(){var f=H.playerContext_.videoId;YiG()&&_.kl("yt-remote-session-video-id",f)})};
_.r(uo,_.ES);
uo.prototype.connect=function(K,X){if(X){var F=X.listId,P=X.videoId,H=X.videoIds,f=X.playerParams,u=X.clickTrackingParams,J=X.index,Z={videoId:P},M=X.currentTime,n=X.locationInfo;X=X.loopMode;M!==void 0&&(Z.currentTime=M<=5?0:M);f&&(Z.playerParams=f);n&&(Z.locationInfo=n);u&&(Z.clickTrackingParams=u);F&&(Z.listId=F);H&&H.length>0&&(Z.videoIds=H.join(","));J!==void 0&&(Z.currentIndex=J);this.enableConnectWithInitialState_&&(Z.loopMode=X||"LOOP_MODE_OFF");F&&(this.playerContext_.listId=F);this.playerContext_.videoId=
P;this.playerContext_.index=J||0;this.playerContext_.state=3;Xh(this.playerContext_,M);this.autoplayMode_="UNSUPPORTED";F=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";Dx("Connecting with "+F+" and params: "+(0,_.nu)(Z));this.channelService.connect({method:F,params:(0,_.nu)(Z)},K,pb8())}else Dx("Connecting without params"),this.channelService.connect({},K,pb8());enw(this)};
uo.prototype.setLoungeToken=function(K){this.channelService.setLoungeToken(K)};
uo.prototype.dispose=function(){this.isDisposed()||(_.gS("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),WQd(this,3));_.ES.prototype.dispose.call(this)};
uo.prototype.disposeInternal=function(){Rnw(this);U2o(this);hnk(this);_.sU(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.sU(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.b$3(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.ES.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var m2o=function(K){return _.lT(K.connectedDevices_,function(X){return X.type=="LOUNGE_SCREEN"})},Dx=function(K){RP("conn",K)},WQd=function(K,X){K.publish("proxyStateChange",X)},enw=function(K){K.connectTimerId_=_.Pm(function(){Dx("Connecting timeout");
K.JSC$17565_disconnect_(1)},2E4)},Rnw=function(K){_.sU(K.connectTimerId_);
K.connectTimerId_=NaN},hnk=function(K){_.sU(K.reconnectedCheckScreenTimeout_);
K.reconnectedCheckScreenTimeout_=NaN},GIs=function(K){U2o(K);
K.playingSyncTimerId_=_.Pm(function(){q7(K,"getNowPlaying")},2E4)},U2o=function(K){_.sU(K.playingSyncTimerId_);
K.playingSyncTimerId_=NaN},ypJ=function(K){Dx("Channel opened");
K.reconnecting_&&(K.reconnecting_=!1,hnk(K),K.reconnectedCheckScreenTimeout_=_.Pm(function(){Dx("Timing out waiting for a screen.");K.JSC$17565_disconnect_(1)},15E3))},v2s=function(K,X){var F=null;
if(X){var P=m2o(K);P&&(F={clientName:P.clientName,deviceMake:P.brand,deviceModel:P.model,osVersion:P.osVersion})}_.gS("yt.mdx.remote.remoteClient_",F);X&&(Rnw(K),hnk(K));F=K.channelService.isChannelOpened()&&isNaN(K.connectTimerId_);X==F?X&&(WQd(K,1),q7(K,"getSubtitlesTrack")):X?(K.getOtherConnectedRemoteId_()&&K.playerContext_.reset(),WQd(K,1),q7(K,"getNowPlaying"),l6s(K)):K.JSC$17565_disconnect_(1)},a6V=function(K,X){var F=X.params.videoId;
delete X.params.videoId;F==K.playerContext_.videoId&&(_.T8.isEmpty(X.params)?K.playerContext_.trackData=null:K.playerContext_.trackData=X.params,K.publish("remotePlayerChange"))},tg8=function(K,X,F){var P=X.params.videoId||X.params.video_id,H=parseInt(X.params.currentIndex,10);
K.playerContext_.listId=X.params.listId||K.playerContext_.listId;SHo(K.playerContext_,P,H);K.publish("remoteQueueChange",F)},$2w=function(K,X){X.params=X.params||{};
tg8(K,X,"NOW_PLAYING_MAY_CHANGE");K.onStateChange_(X);K.publish("autoplayDismissed")};
uo.prototype.onStateChange_=function(K){var X=parseInt(K.params.currentTime||K.params.current_time,10);Xh(this.playerContext_,isNaN(X)?0:X);X=parseInt(K.params.state,10);X=isNaN(X)?-1:X;X==-1&&this.playerContext_.playerState==-1E3&&(X=-1E3);this.playerContext_.playerState=X;X=Number(K.params.loadedTime);this.playerContext_.loadedTime=isNaN(X)?0:X;X=Number(K.params.duration);this.playerContext_.duration_=isNaN(X)?0:X;X=this.playerContext_;var F=Number(K.params.liveIngestionTime);X.liveIngestionTime_=
F;X.isLive_=isNaN(F)?!1:!0;X=this.playerContext_;F=Number(K.params.seekableStartTime);K=Number(K.params.seekableEndTime);X.seekableStart_=isNaN(F)?0:F;X.seekableEnd_=isNaN(K)?0:K;this.playerContext_.playerState==1?GIs(this):U2o(this);this.publish("remotePlayerChange")};
uo.prototype.onAdStateChange_=function(K){if(this.playerContext_.playerState!=-1E3){var X=1085;switch(parseInt(K.params.adState,10)){case 1:X=1081;break;case 2:X=1084;break;case 0:X=1083}this.playerContext_.playerState=X;K=parseInt(K.params.currentTime,10);Xh(this.playerContext_,isNaN(K)?0:K);this.publish("remotePlayerChange")}};
var Ozw=function(K,X){var F=X.params.muted=="true";K.playerContext_.volume=parseInt(X.params.volume,10);K.playerContext_.muted=F;K.publish("remotePlayerChange")},Vgo=function(K,X){K.autoplayVideoId_=X.params.videoId;
K.publish("nowAutoplaying",parseInt(X.params.timeout,10))},g2G=function(K,X){K.autoplayVideoId_=X.params.videoId||null;
K.publish("autoplayUpNext",K.autoplayVideoId_)},E2k=function(K,X){K.autoplayMode_=X.params.autoplayMode;
K.publish("autoplayModeChange",K.autoplayMode_);K.autoplayMode_=="DISABLED"&&K.publish("autoplayDismissed")},bzt=function(K,X){var F=X.params.hasNext=="true";
K.playerContext_.hasPrevious=X.params.hasPrevious=="true";K.playerContext_.hasNext=F;K.publish("previousNextChange")};
uo.prototype.isCapabilitySupportedOnConnectedDevices_=function(K){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var X=_.D(this.connectedDevices_),F=X.next();!F.done;F=X.next())if(!F.value.capabilities.has(K))return!1;return!0};
var d28=function(K,X){X=X.message;X.params?Dx("Received: action="+X.action+", params="+(0,_.nu)(X.params)):Dx("Received: action="+X.action+" {}");switch(X.action){case "loungeStatus":X=(0,_.S4)(X.params.devices);K.connectedDevices_=_.AE(X,function(P){return new $K(P)});
X=!!_.lT(K.connectedDevices_,function(P){return P.type=="LOUNGE_SCREEN"});
v2s(K,X);X=K.isCapabilitySupportedOnConnectedDevices_("mlm");K.publish("multiStateLoopEnabled",X);break;case "loungeScreenDisconnected":jUk(K.connectedDevices_,function(P){return P.type=="LOUNGE_SCREEN"});
v2s(K,!1);break;case "remoteConnected":var F=new $K((0,_.S4)(X.params.device));_.lT(K.connectedDevices_,function(P){return P.equals(F)})||_.El(K.connectedDevices_,F);
break;case "remoteDisconnected":F=new $K((0,_.S4)(X.params.device));jUk(K.connectedDevices_,function(P){return P.equals(F)});
break;case "gracefulDisconnect":break;case "playlistModified":tg8(K,X,"QUEUE_MODIFIED");break;case "nowPlaying":$2w(K,X);break;case "onStateChange":K.onStateChange_(X);break;case "onAdStateChange":K.onAdStateChange_(X);break;case "onVolumeChanged":Ozw(K,X);break;case "onSubtitlesTrackChanged":a6V(K,X);break;case "nowAutoplaying":Vgo(K,X);break;case "autoplayDismissed":K.publish("autoplayDismissed");break;case "autoplayUpNext":g2G(K,X);break;case "onAutoplayModeChanged":E2k(K,X);break;case "onHasPreviousNextChanged":bzt(K,
X);break;case "requestAssistedSignIn":K.publish("assistedSignInRequested",X.params.authCode);break;case "onLoopModeChanged":K.publish("loopModeChange",X.params.loopMode);break;default:Dx("Unrecognized action: "+X.action)}};
_.z=uo.prototype;_.z.getProxyState_=function(){var K=3;this.isDisposed()||(K=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(K=1):K=2);return K};
_.z.JSC$17565_disconnect_=function(K){Dx("Disconnecting with "+K);_.gS("yt.mdx.remote.remoteClient_",null);Rnw(this);this.publish("beforeDisconnect",K);K==1&&yx();this.channelService.disconnect(K);this.dispose()};
_.z.getPlayerContextData_=function(){var K=this.playerContext_;this.clientVideoId_&&(K=this.playerContext_.clone(),SHo(K,this.clientVideoId_,K.index));return o2G(K)};
_.z.setPlayerContextData_=function(K){var X=this,F=new gW(K);F.videoId&&F.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=F.videoId,_.sU(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.Pm(function(){if(X.clientVideoId_){var H=X.clientVideoId_;X.clientVideoId_=null;X.playerContext_.videoId!=H&&q7(X,"getNowPlaying")}},5E3));
var P=[];this.playerContext_.listId==F.listId&&this.playerContext_.videoId==F.videoId&&this.playerContext_.index==F.index||P.push("remoteQueueChange");this.playerContext_.playerState==F.playerState&&this.playerContext_.volume==F.volume&&this.playerContext_.muted==F.muted&&B4k(this.playerContext_)==B4k(F)&&(0,_.nu)(this.playerContext_.trackData)==(0,_.nu)(F.trackData)||P.push("remotePlayerChange");this.playerContext_.reset(K);_.vd(P,function(H){this.publish(H)},this)};
_.z.getOtherConnectedRemoteId_=function(){var K=this.channelService.getDeviceId(),X=_.lT(this.connectedDevices_,function(F){return F.type=="REMOTE_CONTROL"&&F.id!=K});
return X?X.id:""};
_.z.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.z.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.z.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.z.JSC$17565_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var l6s=function(K){_.sU(K.idleDisconnectTimerId_);K.idleDisconnectTimerId_=_.Pm(function(){K.JSC$17565_disconnect_(1)},864E5)},q7=function(K,X,F){F?Dx("Sending: action="+X+", params="+(0,_.nu)(F)):Dx("Sending: action="+X);
K.channelService.sendMessage(X,F)};
uo.prototype.sendMessageWithUserAction_=function(K,X){q7(this,K,X);l6s(this)};
uo.prototype.JSC$17565_getXsrfToken_=function(){var K=_.Jv.get("SAPISID","")||_.Jv.get("__Secure-1PAPISID",void 0)||"",X=_.Jv.get("__Secure-3PAPISID","")||"";if(!K&&!X)return"";K=_.iW(_.oz(K),2);X=_.iW(_.oz(X),2);return _.iW(_.oz(","+K+","+X),2)};
uo.prototype.subscribe=uo.prototype.subscribe;uo.prototype.unsubscribeByKey=uo.prototype.unsubscribeByKey;uo.prototype.getProxyState=uo.prototype.getProxyState_;uo.prototype.disconnect=uo.prototype.JSC$17565_disconnect_;uo.prototype.getPlayerContextData=uo.prototype.getPlayerContextData_;uo.prototype.setPlayerContextData=uo.prototype.setPlayerContextData_;uo.prototype.getOtherConnectedRemoteId=uo.prototype.getOtherConnectedRemoteId_;uo.prototype.getReconnectTimeout=uo.prototype.getReconnectTimeout_;
uo.prototype.getAutoplayMode=uo.prototype.getAutoplayMode_;uo.prototype.getAutoplayVideoId=uo.prototype.getAutoplayVideoId_;uo.prototype.reconnect=uo.prototype.JSC$17565_reconnect_;uo.prototype.sendMessage=uo.prototype.sendMessageWithUserAction_;uo.prototype.getXsrfToken=uo.prototype.JSC$17565_getXsrfToken_;uo.prototype.isCapabilitySupportedOnConnectedDevices=uo.prototype.isCapabilitySupportedOnConnectedDevices_;var COG=function(K){mB.call(this,"ScreenServiceProxy");this.instance_=K;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.T3)(this.JSC$17568_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.T3)(this.onOnlineScreenChange_,this)))};
_.r(COG,mB);_.z=COG.prototype;_.z.getScreens=function(K){return this.instance_.$_gs(K)};
_.z.contains=function(K){return!!this.instance_.$_c(K)};
_.z.get=function(K){return this.instance_.$_g(K)};
_.z.start=function(){this.instance_.$_st()};
_.z.add=function(K,X,F){this.instance_.$_a(K,X,F)};
_.z.remove=function(K,X,F){this.instance_.$_r(K,X,F)};
_.z.updateName=function(K,X,F,P){this.instance_.$_un(K,X,F,P)};
_.z.disposeInternal=function(){for(var K=this.subscriptionKeys_.length,X=0;X<K;++X)this.instance_.$_ubk(this.subscriptionKeys_[X]);this.subscriptionKeys_.length=0;this.instance_=null;mB.prototype.disposeInternal.call(this)};
_.z.JSC$17568_onScreenChange_=function(){this.publish("screenChange")};
_.z.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
v2.prototype.$_st=v2.prototype.start;v2.prototype.$_gspc=v2.prototype.JSC$17525_getScreenByPairingCode;v2.prototype.$_gsppc=v2.prototype.JSC$17525_getScreenByPollingPairingCode;v2.prototype.$_c=v2.prototype.contains;v2.prototype.$_g=v2.prototype.get;v2.prototype.$_a=v2.prototype.add;v2.prototype.$_un=v2.prototype.updateName;v2.prototype.$_r=v2.prototype.remove;v2.prototype.$_gs=v2.prototype.getScreens;v2.prototype.$_gos=v2.prototype.JSC$17525_getOnlineScreens;v2.prototype.$_s=v2.prototype.subscribe;
v2.prototype.$_ubk=v2.prototype.unsubscribeByKey;var Xhv=function(K){L7w();if(!W2||!W2.get("yt-remote-disable-remote-module-for-dev")){K=_.e8("MDX_CONFIG")||K;wn5();MWV();J$||(J$=new rW(K?K.loungeApiHost:void 0),Tgw()&&(J$.basePath="/api/loungedev"));Zx||(Zx=_.mz("yt.mdx.remote.deferredProxies_")||[],_.gS("yt.mdx.remote.deferredProxies_",Zx));N48();var X=Qb();if(!X){var F=new v2(J$,K?K.disableAutomaticScreenCache||!1:!1);_.gS("yt.mdx.remote.screenService_",F);X=Qb();var P={};K&&(P={appId:K.appId,disableDial:K.disableDial,theme:K.theme,loadCastApiSetupScript:K.loadCastApiSetupScript,
disableCastApi:K.disableCastApi,enableDialLoungeToken:K.enableDialLoungeToken,enableCastLoungeToken:K.enableCastLoungeToken,forceMirroring:K.forceMirroring});_.gS("yt.mdx.remote.enableConnectWithInitialState_",K?K.enableConnectWithInitialState||!1:!1);KHv(F,function(f){f?M7()&&D$1(M7(),"YouTube TV"):F.subscribe("onlineScreenChange",function(){Ip("yt-remote-receiver-availability-change")})},P)}if(K&&!_.mz("yt.mdx.remote.initialized_")){_.gS("yt.mdx.remote.initialized_",!0);
no("Initializing: "+(0,_.nu)(K));ct.push(_.XY("yt-remote-cast2-api-ready",function(){Ip("yt-remote-api-ready")}));
ct.push(_.XY("yt-remote-cast2-availability-change",function(){Ip("yt-remote-receiver-availability-change")}));
ct.push(_.XY("yt-remote-cast2-receiver-selected",function(){izv();Ip("yt-remote-auto-connect","cast-selector-receiver")}));
ct.push(_.XY("yt-remote-cast2-receiver-resumed",function(){Ip("yt-remote-receiver-resumed","cast-selector-receiver")}));
ct.push(_.XY("yt-remote-cast2-session-change",x2V));ct.push(_.XY("yt-remote-connection-change",function(f){f?D$1(M7(),"YouTube TV"):I6F()||(D$1(null,null),sJ8())}));
ct.push(_.XY("yt-remote-cast2-session-failed",function(){Ip("yt-remote-connection-failed")}));
P=kIt();K.isAuto&&(P.id+="#dial");var H=K.capabilities||[];H.length>0&&(P.capabilities=H);P.name=K.device;P.app=K.app;(K=K.theme)&&(P.theme=K);no(" -- with channel params: "+(0,_.nu)(P));P?(_.kl("yt-remote-session-app",P.app),_.kl("yt-remote-session-name",P.name)):(_.XE("yt-remote-session-app"),_.XE("yt-remote-session-name"));_.gS("yt.mdx.remote.channelParams_",P);X.start();M7()||Kf8()}}},Pmk=function(){var K=Qb().instance_.$_gos();
var X=Ffs();X&&po()&&(qiW(K,X)||K.push(X));return uSt(K)},Hpw=function(){var K=Pmk(),X=Ffs();
X||(X=I6F());return _.lT(K,function(F){return X&&jC(X,F.key)?!0:!1})},Ffs=function(){var K=M7();
if(!K)return null;var X=Qb().getScreens();return wW(X,K)},x2V=function(K){no("remote.onCastSessionChange_: "+u11(K));
if(K){var X=Ffs();X&&X.id==K.id?(D$1(X.id,"YouTube TV"),K.idType=="shortLived"&&(K=K.token)&&(X=po())&&X.setLoungeToken(K)):(X&&sEF(),z6V(K,1))}else po()&&sEF()},sEF=function(){fvw()?O0().stopSession():$k("stopSession called before API ready.");
var K=po();K&&(K.disconnect(1),fgF(null))},DAd=function(){var K=po();
return K&&K.getProxyState()!=3?new Fh(po(),void 0):null},no=function(K){RP("remote",K)},Qb=function(){if(!uTw){var K=_.mz("yt.mdx.remote.screenService_");
uTw=K?new COG(K):null}return uTw},M7=function(){return _.mz("yt.mdx.remote.currentScreenId_")},qLV=function(K){_.gS("yt.mdx.remote.currentScreenId_",K)},izv=function(){_.gS("yt.mdx.remote.connectData_",null)},po=function(){return _.mz("yt.mdx.remote.connection_")},fgF=function(K){var X=po();
izv();K||qLV("");_.gS("yt.mdx.remote.connection_",K);Zx&&(_.vd(Zx,function(F){F(K)}),Zx.length=0);
X&&!K?Ip("yt-remote-connection-change",!1):!X&&K&&Ip("yt-remote-connection-change",!0)},I6F=function(){var K=YiG();
if(!K)return null;var X=Qb();if(!X)return null;X=X.getScreens();return wW(X,K)},z6V=function(K,X){qLV(K.id);
K=new uo(J$,K,kIt(),_.mz("yt.mdx.remote.enableConnectWithInitialState_")||!1);K.connect(X,_.mz("yt.mdx.remote.connectData_"));K.subscribe("beforeDisconnect",function(F){Ip("yt-remote-before-disconnect",F)});
K.subscribe("beforeDispose",function(){po()&&fgF(null)});
K.subscribe("browserChannelAuthError",function(){var F=Ffs();F&&F.idType=="shortLived"&&(fvw()?O0().handleBrowserChannelAuthError():$k("refreshLoungeToken called before API ready."))});
fgF(K)},Kf8=function(){var K=I6F();
K?(no("Resume connection to: "+u11(K)),z6V(K,0)):(yx(),sJ8(),no("Skipping connecting because no session screen found."))},J$=null,Zx=null,uTw=null,N48=function(){var K=kIt();
if(_.T8.isEmpty(K)){K=ZD8();var X=_.KE("yt-remote-session-name")||"",F=_.KE("yt-remote-session-app")||"";K={device:"REMOTE_CONTROL",id:K,name:X,app:F,mdxVersion:3};K.authuser=String(_.e8("SESSION_INDEX","0"));(X=_.e8("DELEGATED_SESSION_ID"))&&(K.pageId=String(X));_.gS("yt.mdx.remote.channelParams_",K)}},kIt=function(){return _.mz("yt.mdx.remote.channelParams_")||{}},ct=[];var JWo=new _.dG("yt-menu"),Zpt=function(){},QEV=function(K,X,F){K=X=="right-click"?F.rightClickMenuPopupHint:F.menuPopupHint;
if(!(YLG(X)>10))return X=X||"default",JWo.set(X+"-impression",YLG(X)+1),K},YLG=function(K){return parseInt(JWo.get((K||"default")+"-impression")||0,10)};
_.gH(Zpt);var M7t=function(){this.contexts_=new WeakMap;this.JSC$17574_networkService_=this.activeContext_=null},nld=function(K,X,F){var P=K.contexts_.get(X);
P||(P=new AYW(K.JSC$17574_networkService_),K.contexts_.set(X,P));K.activeContext_=P;F&&K.activeContext_.reset();K.activeContext_.start();return K.activeContext_};var Bt=function(){};
Bt.prototype.enqueue=function(){var K=this,X;return _.q(function(F){if(K.isCounterfactual())return(X=K.getCounterfactualData())&&K.shouldLogCounterfactualImpression()&&K.sendImpressionEndpoints(X),F.return();K.doEnqueue();_.JT(F)})};
Bt.prototype.sendImpressionEndpoints=function(K){_.GT.getInstance().triggerOptionalAction("yt-service-request",{},K[0])};var Sf=function(K,X){this.renderer=K;this.page=X};
_.r(Sf,Bt);Sf.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
Sf.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
Sf.prototype.shouldLogCounterfactualImpression=function(){return!0};
Sf.prototype.doEnqueue=function(){var K=_.te(this.page);K&&K.pause();this.renderer.impressionCommand&&_.GT.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.TO(_.GT.getInstance(),[this.renderer.promoCommand],this.page)};var cWG=function(K,X){this.renderer=K;this.resolver=_.Ue();this.JSC$17586_enforcementCounter=new _.f4C;X?this.JSC$17586_playerManager=_.te(X):this.JSC$17586_playerManager=null;_.HI(1,!0)};
_.r(cWG,Bt);_.z=cWG.prototype;_.z.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var K=[];this.renderer.impressionEndpoints.forEach(function(X){(X=_.w$(X))&&K.push(X)});
return K}};
_.z.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.z.shouldLogCounterfactualImpression=function(){var K=_.geP();K?(this.JSC$17586_enforcementCounter.increment("POPUP"),_.HI(3)):_.HI(2);return K};
_.z.cancel=function(){this.resolver.promise.cancel()};
_.z.doEnqueue=function(){var K=this;_.geP()?(this.JSC$17586_enforcementCounter.increment("POPUP"),_.HI(3),pht(this)):this.JSC$17586_playerManager?(this.resolver.promise.then(function(){pht(K)}),Bzw(this.resolver,this.JSC$17586_playerManager)):_.HI(2)};
var Bzw=function(K,X){var F=_.Ue();X.getPlayerPromise().then(function(P){F.resolve(P)});
F.promise.then(function(P){P.addEventListener("onAbnormalityDetected",K.resolve);_.Yv(K.promise,function(){P.removeEventListener("onAbnormalityDetected",K.resolve)})});
K.promise.thenCatch(function(){F.promise.cancel()})},pht=function(K){_.HI(3);
var X={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:K.renderer}};X=_.GT.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:X},{});Promise.all(X).then(function(){SLG();K.JSC$17586_playerManager&&K.JSC$17586_playerManager.pause()})},SLG=function(){JvF(function(K,X){_.uoF(K,X);
K===0?_.HI(7):_.HI(4)})};var olV=function(K,X){this.renderer=K;this.page=X;this.resolver=_.Ue()};
_.r(olV,Bt);_.z=olV.prototype;_.z.cancel=function(){this.resolver.promise.cancel()};
_.z.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.z.isCounterfactual=function(){return!this.renderer.isVisible};
_.z.shouldLogCounterfactualImpression=function(){return!0};
_.z.doEnqueue=function(){var K=this;this.resolver.promise.then(function(){var F={popup:{mealbarPromoRenderer:K.renderer},popupType:"MEALBAR"};_.GT.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:F},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var X=_.te(this.page);X&&LfW(this.resolver,X)}break;default:this.resolver.resolve()}};
var LfW=function(K,X){var F=_.Ue();X.getPlayerPromise().then(function(P){F.resolve(P)});
F.promise.then(function(P){P.addEventListener("onAdEnd",K.resolve);_.Yv(K.promise,function(){P.removeEventListener("onAdEnd",K.resolve)})});
K.promise.thenCatch(function(){F.promise.cancel()})};var Tz1=function(K,X){this.renderer=K;this.page=X};
_.r(Tz1,Bt);_.z=Tz1.prototype;_.z.cancel=function(){this.JSC$17594_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17594_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17594_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.z.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.z.isCounterfactual=function(){return!this.renderer.isVisible};
_.z.shouldLogCounterfactualImpression=function(){return!0};
_.z.doEnqueue=function(){var K=this,X,F;((X=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(F=X.playbackUpsellDialogTriggerConditionData)==null?void 0:F.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17594_downloadedVideosCountSelectorUnsubscriber=_.Dg(_.aA(),zOV,function(P,H){P>H&&(rWv(K),K.cancel())}):rWv(this)};
var rWv=function(K){var X={popup:{upsellDialogRenderer:K.renderer},popupType:"MODAL"};_.GT.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:X},{});(K=_.te(K.page))&&K.pause()};var oH={},AW8=(oH.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",oH.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",oH.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",oH.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",oH.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",oH.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",oH.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",oH),jEt=function(K,X){this.renderer=K;this.targetManager=
X};
_.r(jEt,Bt);_.z=jEt.prototype;_.z.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17601_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17601_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17601_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.z.getCounterfactualData=function(){if(this.isCounterfactual()){var K;return(K=this.renderer.promoConfig)==null?void 0:K.impressionEndpoints}};
_.z.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.z.shouldLogCounterfactualImpression=function(){return!0};
_.z.doEnqueue=function(){var K=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17601_downloadedVideosCountSelectorUnsubscriber=_.Dg(_.aA(),zOV,function(X,F){K.renderer.targetId&&X>F&&(Fa8(K.targetManager,K.renderer.targetId,whk(K)),K.cancel())});
break;default:Fa8(this.targetManager,this.renderer.targetId,whk(this))}};
var whk=function(K){var X;if((X=K.renderer.suggestedPosition)==null?0:X.type)var F=AW8[K.renderer.suggestedPosition.type];F||(F="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:K.renderer},popupType:"HINT",position:F}}};var yW8=function(){this.previousPage=null},Wfv;
yW8.prototype.registerPromoCommand=function(K,X){dA8(this,void 0,void 0,_.T(K.roadblock,bY1),void 0,void 0,X)};
var dA8=function(K,X,F,P,H,f,u){K.previousPage!==u&&K.pendingTooltipPromo&&K.pendingTooltipPromo.cancel();K.previousPage=u;H?(K.pendingEnforcementPromo&&K.pendingEnforcementPromo.cancel(),K.pendingEnforcementPromo=new cWG(H,u),K.pendingEnforcementPromo.enqueue()):f?(K.pendingCommandWrapperPromo=new Sf(f,u),K.pendingCommandWrapperPromo.enqueue()):P?(K.pendingRoadblockPromo&&K.pendingRoadblockPromo.cancel(),K.pendingRoadblockPromo=new Tz1(P,u),K.pendingRoadblockPromo.enqueue()):X?(K.pendingMealbarPromo&&
K.pendingMealbarPromo.cancel(),K.pendingMealbarPromo=new olV(X,u),K.pendingMealbarPromo.enqueue()):F&&(K.pendingTooltipPromo&&K.pendingTooltipPromo.cancel(),K.pendingTooltipPromo=new jEt(F,_.Z9()),K.pendingTooltipPromo.enqueue())},e6o=function(){Wfv||(Wfv=new yW8);
return Wfv};var Ycd=!1;var fmW=function(K,X){var F=_.e8("SESSION_INDEX");this.actionToken_=K;this.commonToken_=X;this.sessionIndex_=F},zZG=function(K){var X=_.Ue(),F=_.mz("payments.business.integration.bootstrap"),P=_.mz("payments.business.integration"),H=P.Style.create().withMaterialDesignStyle(),f=P.mashupMode.popup("instrument-manager");
F.asMashupMode(f).usingUserIndex(K.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(H).inStandaloneContext(P.standaloneContextAuthId.forUserId()).instrumentManager(K.actionToken_,K.commonToken_.length>0?K.commonToken_:void 0,function(u){var J=u.instrumentId;J?X.resolve(J):(J=_.mz("payments.business.integration.scenario.InstrumentManager"),X.reject(u.errorCode&&u.errorCode===J.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(u){_.UN(u);
X.reject("instrumentManagerLoadError")});
return X.promise};var iA=function(K,X,F){this.payloadName="transactionFlowFailed";this.payload={errorType:K,serializedTransactionFlowLoggingParams:X,isUserDismiss:F===void 0?!1:F}};
_.gS("yt.ypc.shared.YpcTransactionFlowError",iA);var Lo=function(){return _.ub.apply(this,arguments)||this};
_.r(Lo,_.ub);Lo.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Lo.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
Lo.prototype.onErrorMessageDismiss=Lo.prototype.onErrorMessageDismiss;_.O([_.h({readOnly:!0,observer:"errorRendererChanged"}),_.g("design:type",Object)],Lo.prototype,"errorRenderer",void 0);_.O([_.Hc("yt-live-chat-error-message-dismiss"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Lo.prototype,"onErrorMessageDismiss",null);Lo=_.O([_.qY()],Lo);var R6W=[Lo.prototype];var UA8;var h6W;var mAv=new _.dG("yt-live-chat"),GC5=new Map;GC5.set("timestamp_toggle","show-timestamps");GC5.set("reactions_toggle","allow-reactions");var Tq=function(){return _.G.apply(this,arguments)||this};
_.r(Tq,_.G);_.z=Tq.prototype;_.z.menuItemIdentifierChanged=function(){var K;(K=this.data)!=null&&K.menuItemIdentifier&&(K=GC5.get(this.data.menuItemIdentifier))&&(_.S("enable_lwe_web_mute")?(K=mAv.get(K),this.isToggled=!(K===void 0?!this.data.isToggled:!K)):this.isToggled=mAv.get(K))};
_.z.onFocus=function(){this.toggleButton.focus()};
_.z.onTap=function(){var K=this.data.command;K&&this.componentBehavior.resolveCommand(K)};
_.z.computeText=function(K,X,F){return this.componentBehavior.getSimpleString(K?F:X)};
_.z.computeIcon=function(K,X,F){return(K=K?F:X)&&K.iconType?_.Fl(K.iconType):""};
Tq.prototype.onTap=Tq.prototype.onTap;Tq.prototype.onFocus=Tq.prototype.onFocus;Tq.prototype.menuItemIdentifierChanged=Tq.prototype.menuItemIdentifierChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Tq.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Tq.prototype,"componentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Tq.prototype,"data",void 0);
_.O([_.h({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.g("design:type",String)],Tq.prototype,"icon",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],Tq.prototype,"isToggled",void 0);_.O([_.fa("tp-yt-paper-toggle-button"),_.g("design:type",Object)],Tq.prototype,"toggleButton",void 0);_.O([_.so("data.menuItemIdentifier"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Tq.prototype,"menuItemIdentifierChanged",null);
_.O([_.Hc("focus"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Tq.prototype,"onFocus",null);_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Tq.prototype,"onTap",null);Tq=_.O([_.Tb({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],Tq);
_.t(Tq,"yt-live-chat-toggle-renderer",function(){if(h6W===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;UA8===void 0&&(UA8=document.createElement("template"));var P=UA8;F.call(X,P.content.cloneNode(!0),K.content.firstChild);h6W=K}K=h6W;return K},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var lgJ=new _.Oh("NAVIGATION_PROGRESS_TOKEN");_.d2("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var vl1={},Sct=(vl1.CSI=function(K,X){var F={};F[K]=X;K=_.hV(_.i1M)(F);Object.keys(K).length>0&&_.T6(K)},vl1.ECATCHER=function(K){return function(X,F){_.e8(K)[X]=F}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),vl1);var ag5={},t7v={},$At=(t7v[hVs.name]=!0,t7v),rO=function(){var K=_.ub.apply(this,arguments)||this;K._noAccessors=!0;K.tabGesturesIsActive=!1;K.actionRouterIsRoot=!0;K.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"};K.pageTitle="";K.titleSuffix="YouTube";K.unseenNotificationCount=
0;K.hasNavigated=!1;K.hasSetScrollTopForNavigation=!1;K.pagePreparer=null;K.zwiebackInitJobId=0;K.dataUpdatePromise=null;K.loadDepsPromise=_.F0();K.hasPendingNavigation=!1;K.pendingPlayerOnResponseReceivedActions=[];return K};
_.r(rO,_.ub);rO.prototype.attached=function(){Opo(this);document.addEventListener("yt-navigate-cache",_.Pc(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var K=A$();K.init();K.dispatchElement=this.hostElement};
var Opo=function(K,X){X=X===void 0?0:X;var F=_.i9().resolve(_.Nu(_.Jk));if(F)V7v(K,F);else{if(X>=5)throw Error("Uk");setTimeout(function(){Opo(K,X+1)},0)}},V7v=function(K,X){X.addEventListener("yt-navigate-start",_.Pc(K,K.onYtNavigateStart));
X.addEventListener("yt-navigate-finish",_.Pc(K,K.onYtNavigateFinish));X.addEventListener("yt-navigate-error",_.Pc(K,K.onYtNavigateError));X.addEventListener("yt-page-data-fetched",_.Pc(K,K.onYtPageDataFetched))};
_.z=rO.prototype;_.z.detached=function(){var K=_.i9().resolve(_.Jk);K.removeEventListener("yt-navigate-start",_.Pc(this,this.onYtNavigateStart));K.removeEventListener("yt-navigate-finish",_.Pc(this,this.onYtNavigateFinish));K.removeEventListener("yt-navigate-error",_.Pc(this,this.onYtNavigateError));K.removeEventListener("yt-page-data-fetched",_.Pc(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.Pc(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.z.setPageOffset=function(K,X){K?_.xr(this.hostElement,"yt-set-page-offset",[K,X]):_.jF(Error("Vk"))};
_.z.setPageOffsetForNavigation=function(K,X){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(K,X))};
_.z.onYtNavigateSetPageOffset=function(K,X){this.setPageOffsetForNavigation(X.page,X.offset)};
_.z.getPageOffset=function(){var K=_.C$(this.hostElement).querySelector("#page-manager").getCurrentPage(),X=0;K&&(X=_.xr(this.hostElement,"yt-get-page-offset",[K])[0]);return X};
_.z.onYtHistoryPop=function(K,X){if(_.RU("DISABLE_WARM_LOADS"))K.preventDefault(),window.location.reload();else{var F=_.i9().resolve(_.Jk);F.hasPendingNavigation()&&K.preventDefault();F.cancelPendingNavigation();_.IJ(this.hostElement,"yt-pending-navigation-cancelled");X.errorMsg&&(K=X.errorMsg.split(" - "),X=Error(K[0]),K.length==2&&K[1]&&(_.Wu(X,K[1]),_.yy(X)),window.location.reload())}};
_.z.onYtHistoryLoad=function(K,X){var F=this;if(_.RU("DISABLE_WARM_LOADS"))window.location.reload();else{(K=X.endpoint)&&Object.keys(K).length||(K=null);var P=X.historyEntry,H=_.i9().resolve(_.Jk),f=_.i9().resolve(_.ax),u=null;P&&P.rootData&&(u=P.rootData);var J=u&&gl8(u);!u||J||u.filler?K?(H.navigate(K,!0),Elw(this,K)):(X.legacyBorder||J||(X.JSC$26576_savedComponentState==null&&u==null?_.yy(new _.nG("Incomplete history entry",X.forward)):_.wc(new _.nG("Malformed history entry",X.JSC$26576_savedComponentState,
X.forward,u))),window.location.reload()):(_.Hwn({isHot:!0}),_.T6({webInfo:{navigationReason:"h"}}),_.PSd(),_.Ac("srt"),_.Ac("pdc"),this.cancelPendingTasks(),bp8(this,X.forward,u),u.player&&(u.player.loaded=!1),Elw(this,K),_.KIQ(H,K||{},u,2,{},!1,X).then(function(){F.setPageOffset(f.getCurrentPage(),P.scrollTop||0)}))}};
_.z.initHistoryManager=function(K){if(!this.hasNavigated){this.hasNavigated=!0;var X=_.C$(this.hostElement).querySelector("#page-manager").getCurrentData();K=isNaN(K)?this.getPageOffset():K;var F=_.i9().resolve(_.Jk).currentEndpoint;this.replaceState(F,X,K)}};
_.z.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.z.onYtNavigateStart=function(K,X){this.cancelPendingTasks();X.noProgressBar||(K=_.i9().resolve(_.Nu(lgJ)))&&K.start();K=this.hasPendingNavigation?null:this.data;var F=_.i9().resolve(_.ax),P,H,f;_.S("kevlar_use_vimio_behavior")&&!((P=X.endpoint)==null?0:(H=P.commandMetadata)==null?0:(f=H.webCommandMetadata)==null?0:f.ignoreNavigation)&&(P=F.getCurrentPage())&&P.disconnectVisibilityRoot();F.prepareForNavigation(X.pageType,X.endpoint);_.S("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.Ex(1,
"pcl"),_.bZ(this.pagePreparer,F.preparePage.bind(F,X.pageType,X.endpoint)));P=this.getPageOffset();this.initHistoryManager(P);X.reload||this.hasPendingNavigation?this.replaceState(X.endpoint,K,P):(K==null?void 0:K.page)==="watch"&&X.pageType==="watch"&&_.S("kevlar_replace_watch_to_watch_history_state")?this.replaceState(X.endpoint,K,P):(K==null?void 0:K.page)!=="shorts"||X.pageType!=="shorts"||X.endpoint.reelWatchEndpoint.sequenceParams||_.S("short_to_short_back_nav_killswitch")?X.type!="navigate-back"&&
X.type!="navigate-forward"&&(X.pageType==="shorts"&&_.iX(this.hostElement,"yt-shorts-reset"),this.saveAndPush(X.url,X.endpoint,K,P)):this.replaceState(X.endpoint,K,0);this.hasPendingNavigation=!0};
var Cmo=function(K){K.hasPendingNavigation=!1;(K=_.i9().resolve(_.Nu(lgJ)))&&K.finish()};
rO.prototype.onYtNavigateError=function(K,X){Cmo(this);K=this.get("endpoint.commandMetadata.webCommandMetadata.url",X);var F=_.tV(window.location.href);K&&!F.pbjreload&&(X=X.navigationErrorReason||"10",_.S("kevlar_parent_on_pbjreload")&&(F={csn:_.AD()},this.get("data.endpoint.clickTrackingParams")&&(F.itct=this.data.endpoint.clickTrackingParams),_.Oc(K,F)),_.Rj(_.$U(K,{pbjreload:X})))};
rO.prototype.onYtNavigateCache=function(K,X){var F=this,P=X.url,H=X.endpoint,f=X.data;K=!!X.miniplayer;X=!!X.skipHistory;if(P&&H&&f){var u=this.getPageOffset(),J=this.data||null;X||this.saveAndPush(P,H,J,u);P=_.KIQ(_.i9().resolve(_.Jk),H,f,K?4:3,{},K);K&&P.then(function(){F.dataUpdatePromise&&F.dataUpdatePromise.then(function(){var Z=_.i9().resolve(_.ax);F.setPageOffset(Z.getCurrentPage(),0)})})}};
rO.prototype.onYtNavigateFinish=function(K,X){var F=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){Nz1(F,X.fromHistory)})};
var Nz1=function(K,X){Cmo(K);if(K.pendingPlayerOnResponseReceivedActions){for(var F=_.D(K.pendingPlayerOnResponseReceivedActions),P=F.next();!P.done;P=F.next())_.sP(P.value,K.hostElement);K.pendingPlayerOnResponseReceivedActions=[]}F=_.i9().resolve(_.ax);!X&&K.hasNavigated&&((X=F.getCurrentPage())?X.is==="ytd-shorts"||K.tabGesturesIsActive||K.setPageOffsetForNavigation(X,0):_.yy(Error("Wk")));_.dl(function(){_.dl(function(){_.Ac("pda")})})};
rO.prototype.onYtNavigate=function(K){if(!K.detail.endpoint){var X=new _.nG("Error: Missing yt-navigate endpoint from target:",K.target,K.target.nodeName);_.jF(X)}if(X=_.S("cold_missing_history"))X=A$(),X.init(!1),X=!(X.browserHistory.boundHistoryReplaceState&&X.browserHistory.boundHistoryPushState);if(X){_.d2("DISABLE_WARM_LOADS",!0);X=new _.nG("Failed to initialize history manager",this.getDebugString());var F=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
F?_.yy(X):_.jF(X)}X=K.detail.endpoint;var P,H;_.S("debug_forward_web_query_parameters")&&((P=X.commandMetadata)==null?0:(H=P.webCommandMetadata)==null?0:H.url)&&(X=JSON.parse(JSON.stringify(X)),X.commandMetadata.webCommandMetadata.url=_.Ehy(X.commandMetadata.webCommandMetadata.url,window.location.search));K={type:0,command:X,form:{params:K.detail.params,tempData:K.detail.tempData||{},requestType:K.detail.type,createScreenConfig:K.detail.createScreenConfig,reload:K.detail.reload?K.detail.reload:!1,
requestForm:K.detail}};_.S("kevlar_yt_navigate_command_handler")?(P=_.i9().resolve(_.xU),K.form.skipDefaultElement=!0,P.resolveCommand(X,{form:K.form})):this.handleNavigate(K)};
rO.prototype.handleNavigate=function(K){this.hasSetScrollTopForNavigation=!1;var X=_.i9().resolve(_.Jk),F=K.form||{};X.navigate(K.command,F.reload,F.params,F.tempData,F.requestType,F.createScreenConfig,F.ignoreConfirmation,F.requestForm)&&Elw(this,K.command,F.tempData)};
rO.prototype.onYtPageDataFetched=function(K,X){try{_.KTV().reset();this.data=X.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.i9().resolve(_.ax).updatePageData(this.data);var F=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);F&&or1(F);var P=this.get("response.responseContext.serviceTrackingParams",this.data);P&&or1(P);var H=
this.get("playerResponse.onResponseReceivedActions",this.data);H&&(H=ip1(this,H));H&&_.X0(this.hostElement,H,this.hostElement);var f=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),u=this.get("response.responseContext.consistencyTokenJar",this.data);if(f||u){var J=_.nqy(),Z=(0,_.T8.getValues)(J.tokenJars);f&&J.replace(Z,f);u&&J.replace(Z,u)}}catch(M){_.jF(M)}};
var Elw=function(K,X,F){try{K.onYtEndpointChangeHandler(X,F)}catch(P){_.jF(P)}};
_.z=rO.prototype;_.z.onYtEndpointChangeHandler=function(){};
_.z.setPageTitle=function(K){K=(this.pageTitle=K)?K+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+K};
_.z.onYtUpdateTitle=function(K,X){this.setPageTitle(X)};
_.z.setUnseenNotificationCount=function(K){this.unseenNotificationCount=K;this.setPageTitle(this.pageTitle)};
_.z.handleUpdateNotificationsUnseenCountAction=function(K){_.T(K,n4t)&&((K=_.T(K,n4t).unseenCount)?this.setUnseenNotificationCount(K):this.setUnseenNotificationCount(0))};
_.z.handleClearCookieAction=function(K){var X;(K=(X=_.T(K,ZYs))==null?void 0:X.cookieName)&&_.JDP(K)};
_.z.onYtUpdateUnseenNotificationCount=function(K,X){this.setUnseenNotificationCount(X)};
_.z.loadData=function(K){var X=this;this.loadDepsPromise.then(function(){var F=_.i9().resolve(_.Nu(_.Jk));F||_.jF(Error("Xk"));if(K&&K.response){if(!K.endpoint){var P=_.Uc(window.document.location.href)||"/",H="";if(P==="/"||P.startsWith("/?"))H="WEB_PAGE_TYPE_BROWSE";K.endpoint={commandMetadata:{webCommandMetadata:{url:P,webPageType:H,rootVe:3854}}}}_.KIQ(F,K.endpoint,K,5,{})}else K.endpoint?F.navigate(K.endpoint):F.navigate(_.fp);_.A9.cancelJob(X.zwiebackInitJobId);X.zwiebackInitJobId=_.A9.addLowPriorityJob(QJV)})};
var A$=function(){return _.i9().resolve(_.sI)};
rO.prototype.getDebugString=function(){return A$().getDebugString()};
rO.prototype.getThirdPartyManipulationSuspected=function(){return A$().getThirdPartyManipulationSuspected()};
rO.prototype.replaceState=function(K,X,F){A$().saveAndReplace(K,X,F)};
rO.prototype.saveAndPush=function(K,X,F,P){A$().saveAndPush(K,X,F,P)};
var gl8=function(K){return _.T(K.endpoint,_.vg)||_.T(K.endpoint,_.J6)?!0:!K||isNaN(K.expirationTime)?!1:(0,_.CG)()>K.expirationTime},bp8=function(K,X,F){var P=K.get("response.trackingParams",F),H=_.r_(),f=_.AD();
if(P&&H&&f&&(P=K.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",F),!P&&F.rootVe&&(P=F.rootVe),H=X?"forwardButton":"backButton",X=K.get("playerResponse.topbar.desktopTopbarRenderer."+H+".buttonRenderer.command.clickTrackingParams",K.data),K=K.get("response.topbar.desktopTopbarRenderer."+H+".buttonRenderer.command.clickTrackingParams",K.data),X=(K=X||K)?_.QB(K):void 0,K=_.uH(),H=[_.F0(F)],_.IZ(K,P,X,{dataPromises:H,csnToClone:F.csn}),F.graftedVes))for(F=
_.D(F.graftedVes),P=F.next();!P.done;P=F.next())_.k2(K,P.value)};
rO.prototype.onStoreGraftedVeAction=function(K){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(K)):_.yy(Error("Yk"))};
var ip1=function(K,X){return X.filter(function(F){for(var P in F)if($At[P])return K.pendingPlayerOnResponseReceivedActions.push(F),!0;return!1})};
_.Oi.Object.defineProperties(rO.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
rO.prototype.onStoreGraftedVeAction=rO.prototype.onStoreGraftedVeAction;rO.prototype.loadData=rO.prototype.loadData;rO.prototype.onYtUpdateUnseenNotificationCount=rO.prototype.onYtUpdateUnseenNotificationCount;rO.prototype.handleClearCookieAction=rO.prototype.handleClearCookieAction;rO.prototype.handleUpdateNotificationsUnseenCountAction=rO.prototype.handleUpdateNotificationsUnseenCountAction;rO.prototype.setUnseenNotificationCount=rO.prototype.setUnseenNotificationCount;
rO.prototype.onYtUpdateTitle=rO.prototype.onYtUpdateTitle;rO.prototype.setPageTitle=rO.prototype.setPageTitle;rO.prototype.onYtEndpointChangeHandler=rO.prototype.onYtEndpointChangeHandler;rO.prototype.onYtPageDataFetched=rO.prototype.onYtPageDataFetched;rO.prototype.handleNavigate=rO.prototype.handleNavigate;rO.prototype.onYtNavigate=rO.prototype.onYtNavigate;rO.prototype.onYtNavigateFinish=rO.prototype.onYtNavigateFinish;rO.prototype.onYtNavigateCache=rO.prototype.onYtNavigateCache;
rO.prototype.onYtNavigateError=rO.prototype.onYtNavigateError;rO.prototype.onYtNavigateStart=rO.prototype.onYtNavigateStart;rO.prototype.cancelPendingTasks=rO.prototype.cancelPendingTasks;rO.prototype.initHistoryManager=rO.prototype.initHistoryManager;rO.prototype.onYtHistoryLoad=rO.prototype.onYtHistoryLoad;rO.prototype.onYtHistoryPop=rO.prototype.onYtHistoryPop;rO.prototype.onYtNavigateSetPageOffset=rO.prototype.onYtNavigateSetPageOffset;rO.prototype.setPageOffset=rO.prototype.setPageOffset;
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],rO.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],rO.prototype,"data",void 0);_.O([_.Hc("yt-navigate-set-page-offset"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],rO.prototype,"onYtNavigateSetPageOffset",null);
_.O([_.Hc("yt-history-pop"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],rO.prototype,"onYtHistoryPop",null);_.O([_.Hc("yt-history-load"),_.g("design:type",Function),_.g("design:paramtypes",[Event,_.SAQ]),_.g("design:returntype")],rO.prototype,"onYtHistoryLoad",null);_.O([_.Hc("yt-navigate"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],rO.prototype,"onYtNavigate",null);
_.O([_.Hc("yt-update-title"),_.g("design:type",Function),_.g("design:paramtypes",[Event,String]),_.g("design:returntype")],rO.prototype,"onYtUpdateTitle",null);_.O([_.Hc("yt-update-unseen-notification-count"),_.g("design:type",Function),_.g("design:paramtypes",[Event,Number]),_.g("design:returntype")],rO.prototype,"onYtUpdateUnseenNotificationCount",null);rO=_.O([_.qY()],rO);ag5.YtdAppBehavior=[_.NT.YtActionHandlerBehavior,rO.prototype];var jf=function(){var K=_.ub.apply(this,arguments)||this;K._noAccessors=!0;return K};
_.r(jf,_.ub);jf.prototype.ready=function(){var K=this;_.C$(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){K.onChange_()})};
jf.prototype.dataChanged_=function(){_.C$(this.hostElement).querySelector("#checkbox").checked=!1};
jf.prototype.onChange_=function(){var K=_.C$(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.iX(this.hostElement,"yt-dismissal-reason-"+K,this.data.feedbackToken)};
jf.prototype.dataChanged_=jf.prototype.dataChanged_;_.O([_.h(),_.g("design:type",Object)],jf.prototype,"data",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],jf.prototype,"dataChanged_",null);jf=_.O([_.qY()],jf);var xAw=[jf.prototype];var wO=function(){var K=_.ub.apply(this,arguments)||this;K.timeoutJobId=0;K.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return K};
_.r(wO,_.ub);wO.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
wO.prototype.startTimeout=function(){var K=this,X=this.data&&this.data.displayDurationSeconds;X&&!this.timeoutJobId&&(this.timeoutJobId=_.cu(_.A9,function(){_.xr(K.hostElement,"yt-close-popup-action",[K.is]);K.timeoutJobId=0},X*1E3))};
wO.prototype.cancelTimeout=function(){_.A9.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
wO.prototype.ytdHatsSurveyBehaviorDataChanged=wO.prototype.ytdHatsSurveyBehaviorDataChanged;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],wO.prototype,"ytActionHandlerBehavior",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],wO.prototype,"ytdHatsSurveyBehaviorDataChanged",null);wO=_.O([_.qY()],wO);var Igd=[_.NT.YtActionHandlerBehavior,wO.prototype];var kCW=function(K,X){return K.SHARED_RENDERERS_.hasOwnProperty(X)?"yt":K.prefix},yb={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}};yb.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.S("kevlar_mealbar_above_player"),modern:_.S("web_modern_dialogs"),noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
yb.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};yb.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};yb.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
yb.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)"}};
yb.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};
yb.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};
yb.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};
yb.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};yb.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"}};
yb.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};yb.TOAST={component:null,properties:{}};var KiG=new function(K,X,F){this.supportedPopups=K;this.navigationEndpointPopupMap=X;this.popupTypeMap=F;this.supportedPopups=K;this.navigationEndpointPopupMap=X;this.popupTypeMap=F}({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:_.S("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"}),XUv=new function(){this.prefix="ytd";this.SHARED_RENDERERS_={aboutThisAdRenderer:!0,
bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,ypcUpgradeDialogRenderer:!0,
loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$17653_popupConfig=yb;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 FiG=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.oW.getInstance()},Wt=function(K,X){var F=K.pageNameToElement.get(X);
if(!F){switch(X){case "watch":var P=_.S("web_watch_force_learning_journey_for_testing")?_.gk("ytd-watch-learning-journey"):_.S("kevlar_watch_fixie")?_.gk("ytd-watch-fixie"):_.S("kevlar_watch_grid")?_.gk("ytd-watch-grid"):_.gk("ytd-watch-flexy");break;case "learning_journey_watch":P=_.gk("ytd-watch-learning-journey");break;case "shorts":P=_.gk("ytd-shorts");break;case "search":P=_.gk("ytd-search");break;case "channel":P=_.gk("ytd-browse");P.pageSubtype="channels";break;case "trending":P=_.gk("ytd-browse");
P.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":P=
_.gk("ytd-browse");P.pageSubtype=X;break;case "browse":P=_.gk("ytd-browse");break;default:_.yy(new _.nG("Error getting page element for type",X))}F=P;K.pageNameToElement.set(X,F)}return F};
FiG.prototype.preparePage=function(K,X,F){F&&(K=_.zw(F)||K);if(K!=="watch"){var P=this.elementPoolPopulator,H=K;H!=P.targetPage_&&P.pendingPages_.indexOf(H)>-1&&(P.targetPage_&&(P.pendingPages_.unshift(P.targetPage_),P.abort()),sgV(P,H),_.paT(P,H))}if((P=Wt(this,K))||!_.T(F,_.mc)){P.isAttached||P===X||(P.hidden=!0);if(!(P.data||K==="watch"&&_.S("swatcheroo_page_pool_dont_provide_filler_data"))){var f;if(K=(f=_.e8("FILLER_DATA",{})[K])==null?void 0:f.response)P.data=K}return P}};var PZ8=function(K){this.JSC$28469_clientRoot=K;this.playlistHandlerActionMap={"yt-add-to-playlist-command":ADs,"yt-end-playlist-command":jJF,"yt-recover-playlist-command":yDt,"yt-refresh-playlist-command":eFk,"yt-playlist-remove-videos-action":WHv};_.ly(_.GT.getInstance(),this.playlistHandlerActionMap,this.JSC$28469_clientRoot);Mus()},HEG;var dO=function(K,X,F){this.apiKey=K;this.endpoint=X;this.confidenceThreshold=F===void 0?.5:F;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=X==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||X==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
X==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||X==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new IBo};
_.z=dO.prototype;
_.z.start=function(K){if(this.state===0)if(this.isOnline()){K.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=K.supportsHttpHeadersOverwriteParam);K.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=K.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.rb("voice_assistant");_.jv("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=K.languageCode||"en-US";this.supportsCrossDomainXhr=K.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=K.youtubeAssistantRequest||null;this.listeningHandler=K.listeningHandler||this.listeningHandler;this.audioDetectedHandler=K.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=K.stopHandler||this.stopHandler;this.completeHandler=K.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=K.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=K.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
K.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=K.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=K.accessToken;this.additionalHeaders=K.additionalHeaders||{};var X;this.prefetchResponseTimeoutMs=(X=K.prefetchResponseTimeoutMs)!=null?X:this.prefetchResponseTimeoutMs;sus(this);this.startAudio();zA5(this)}else this.errorHandler("OFFLINE")};
_.z.stop=function(K){var X=K===void 0?{}:K;K=X.logCancel===void 0?!0:X.logCancel;var F=X.logMicClosed===void 0?!0:X.logMicClosed;var P=X.handleError===void 0?!0:X.handleError;X=X.handleStop===void 0?!0:X.handleStop;this.state!==0&&(K&&ef("voz_cx"),RH(this,{logMicClosed:F,handleStop:X}),P&&this.errorHandler("ABORTED"))};
_.z.getState=function(){return this.state};
_.z.isSupported=function(){return!0};
_.z.stopAudio=function(K){(K===void 0||K)&&ef("voz_mf")};
_.z.startAudio=function(){ef("voz_vp");return _.F0(null)};
var f9w=function(K,X){K.channelOpen&&(K.state!==2&&(K.state=2,ef("voz_ss"),K.listeningHandler()),X=new Uint8Array(X),X='{ "audioIn": "'+_.iW(X)+'" }',K.channel.send(X))},RH=function(K,X){var F=X===void 0?{}:X;
X=F.logMicClosed===void 0?!0:F.logMicClosed;F=F.handleStop===void 0?!0:F.handleStop;K.vozEndOfDataTimeout>-1&&(clearTimeout(K.vozEndOfDataTimeout),K.vozEndOfDataTimeout=-1);DT5(K);K.stopAudio(X);K.channel&&(K.channelOpen=!1,K.manuallyClosedChannel=!0,K.channel.close(),K.channel=void 0);K.transcribedSpeechResults=[];K.state=0;F&&K.stopHandler()},sus=function(K){var X={httpHeadersOverwriteParam:K.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},K.additionalHeaders,K.accessToken&&K.isUsingVoz?{Authorization:"Bearer "+K.accessToken}:{"x-goog-api-key":K.apiKey}),supportsCrossDomainXhr:K.supportsCrossDomainXhr};K.channel=new Ww(K.endpoint,X);K.channel.open();_.nB(K.channel,"w",function(){var F=K.channel,P=F.send,H=K.isUsingVoz?"PLACEHOLDER":"example";H={config:{dialogStateIn:{languageCode:K.languageCode},deviceConfig:{deviceId:H,deviceModelId:H},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!K.isUsingVoz)H.config.requestType=4;else if(K.isUsingVoz&&K.youtubeAssistantRequest){var f=JSON.stringify(K.youtubeAssistantRequest);H.config.internalIn={youtubeAssistantS3InputJson:f}}P.call(F,H);K.channelOpen=!0;K.manuallyClosedChannel=!1});
_.nB(K.channel,"x",function(){K.manuallyClosedChannel||(K.channelOpen=!1,K.channel=void 0,RH(K))});
_.nB(K.channel,"z",function(F){if(F.data){DT5(K);for(var P=0;P<F.data.length;P++){var H=K,f=F.data[P],u=f.speechResults;if(u)a:{var J=[];f=[];var Z=!1;u=_.D(u);for(var M=u.next();!M.done;M=u.next()){M=M.value;if(M.noSpeech){RH(H);H.errorHandler("NO_SPEECH");break a}M.transcript!==void 0&&M.stability!==void 0&&(M.stability<H.confidenceThreshold&&(Z=!0),Z?f.push(M.transcript):J.push(M.transcript))}if(J.length!==0||f.length!==0)J=J.join(" "),f=f.join(" "),H.receivedEndOfUtterance&&!H.isUsingVoz?H.isUsingVoz||
H.completeHandler([J,f]):(Z=H,u=J,M=f,ef("voz_sf"),Z.transcriptionUpdateHandler(u,M),Z.transcribedSpeechResults=[u,M]),H.receivedEndOfUtterance&&(ef("voz_eou"),H.transcriptionCompleteHandler([J,f]),H.isUsingVoz&&(H.prefetchResponseTimeoutMs===0?RH(H,{logMicClosed:!1,handleStop:!0}):H.prefetchResponseTimeoutMs>0&&uEV(H)))}else H.isUsingVoz&&(f==null?0:f.internalOut)?(f=JSON.parse(f.internalOut.youtubeAssistantS3OutputJson),f.userHasOptedInToVaa||f.vaaConsent?H.vaaConsentUpdateHandler(!!f.userHasOptedInToVaa,
!!f.vaaConsent):(qx8(H),f&&(J=H.transcribedSpeechResults,ef("voz_rqf"),H.completeHandler(J,f)))):f.eventType==="END_OF_UTTERANCE"?H.receivedEndOfUtterance=!0:(ef("voz_err"),H.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.yy(Error("Zk")))}}});
_.nB(K.channel,"y",function(F){RH(K);switch(F.status){case 1:F="WEBCHANNEL_NETWORK_ERROR";break;case 2:F="WEBCHANNEL_SERVER_ERROR";break;default:F="WEBCHANNEL_UNKNOWN_ERROR"}K.errorHandler(F);K.logError(Error(F))})};
dO.prototype.logError=function(K){_.jF(K)};
dO.prototype.isOnline=function(){return!0};
var uEV=function(K){qx8(K);K.prefetchResponseSetTimeoutId=setTimeout(function(){RH(K,{logMicClosed:!1,handleStop:!0})},K.prefetchResponseTimeoutMs)},qx8=function(K){K.prefetchResponseSetTimeoutId>-1&&(clearTimeout(K.prefetchResponseSetTimeoutId),K.prefetchResponseSetTimeoutId=-1)},zA5=function(K){DT5(K);
K.noResponseReceivedTimeout=window.setTimeout(function(){RH(K);K.errorHandler("NO_SPEECH")},11E3)},DT5=function(K){K.noResponseReceivedTimeout>-1&&(window.clearTimeout(K.noResponseReceivedTimeout),K.noResponseReceivedTimeout=-1)},ef=function(K){_.Ac(K,void 0,"voice_assistant")};var UC=function(){dO.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.r(UC,dO);UC.prototype.isSupported=function(){return RF8()};
UC.prototype.startAudio=function(){var K=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.pB(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(P){Jks(K,P)};
this.processor.connect(this.audioContext.destination);var X=function(P){K.stream=P;if(!K.audioContext)return _.F0(null);P=K.audioContext.createMediaStreamSource(P);K.processor&&P.connect(K.processor);return _.F0(null)},F={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?X(this.stream):navigator.mediaDevices.getUserMedia(F).then(X).catch(function(P){RH(K);P.name&&P.name==="NotAllowedError"?K.errorHandler("NO_MICROPHONE_PERMISSION"):(K.errorHandler("AUDIO_ERROR"),K.logError(P));return _.pB(null)});
return dO.prototype.startAudio.call(this)};
UC.prototype.stopAudio=function(K){K=K===void 0?!0:K;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(X){X.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;dO.prototype.stopAudio.call(this,K)};
UC.prototype.isOnline=function(){return navigator.onLine};
var Jks=function(K,X){if(K.audioContext)if(window.OfflineAudioContext){var F=K.audioContext.sampleRate,P=X.inputBuffer.getChannelData(0);X=new window.OfflineAudioContext(1,P.length,16E3);for(var H=X.createBuffer(1,P.length,F),f=H.getChannelData(0),u=0,J=0;J<P.length;J++)f[J]=P[J],u+=f[J]*f[J];!K.audioDetected&&Math.sqrt(u/P.length)>.01&&(K.audioDetected=!0,K.audioDetectedHandler());P=X.createBufferSource();P.buffer=H;P.connect(X.destination);P.start(0);X.oncomplete=function(Z){Z=Z.renderedBuffer.getChannelData(0);
for(var M=Math.floor(16384E3/F),n=new Int16Array(M),c=0;c<M;++c)n[c]=Math.max(-1,Math.min(1,Z[c]))*32767;f9w(K,n.buffer)};
X.startRendering()}else ZEd(K,X)},ZEd=function(K,X){var F=K.audioContext.sampleRate,P=X.inputBuffer.getChannelData(0),H=Math.floor((F+8E3)/16E3);
F=P.length/H;X=new Float32Array(F);for(var f=0;f<F;++f)X[f]=P[f*H];P=new Int16Array(F);for(H=0;H<F;++H)P[H]=Math.max(-1,Math.min(1,X[H]))*32767;f9w(K,P.buffer)};var Yx1={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var QuG=function(){this.JSC$17718_audioEnabled=!0;this.audioFeedbackHolder={}};
QuG.prototype.isPlaying=function(K){return K.currentTime>0&&!K.paused&&!K.ended&&K.readyState>2};
var MEV=function(K){for(var X=_.D(Object.values(Yx1)),F=X.next();!F.done;F=X.next())F=F.value,K.audioFeedbackHolder[F]=new Audio,K.audioFeedbackHolder[F].src="/s/search/audio/"+F+".mp3",K.audioFeedbackHolder[F].load()},h$=function(K,X){if(K.JSC$17718_audioEnabled!==!1&&X in K.audioFeedbackHolder){for(var F=_.D(Object.values(K.audioFeedbackHolder)),P=F.next();!P.done;P=F.next())P=P.value,K.isPlaying(P)&&P.pause();
K.audioFeedbackHolder[X].currentTime=0;K.audioFeedbackHolder[X].play().catch(function(){})}};var nud=function(K,X){var F=this;this.store=K;this.service=X;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){F.setState("offline");F.stop()};
this.audioPlayer=new QuG;var P;(P=this.audioPlayer)==null||MEV(P)};
_.z=nud.prototype;_.z.getService=function(){return this.service};
_.z.isEnabled=function(){return!!this.service};
_.z.isSupported=function(){var K;return(K=this.service)==null?void 0:K.isSupported()};
_.z.start=function(){var K=this,X,F,P,H,f,u,J,Z,M,n,c,B,L;return _.q(function(A){switch(A.nextAddress){case 1:K.store.dispatch(pnW("",""));if(!navigator.onLine)return K.setState("offline"),A.return();window.addEventListener("offline",K.handleOfflineEvent);K.stream=null;if(!K.permissionsSupported){A.jumpTo(2);break}_.s2(A,3);return _.Y(A,ckG(K),5);case 5:X=A.yieldResult;if(!X)return(F=K.audioPlayer)==null||h$(F,"failure"),A.return();K.service.stream=K.stream;K.setState("listening");_.Gy(A,2);break;
case 3:_.qc(A),K.permissionsSupported=!1;case 2:P={context:_.pWy(_.iD())},P.youtubeAssistantParams={searchParams:{inlineSearchResponse:K.enableInlineSearchResponse}},H=function(d,R){K.store.dispatch(B$W("transcribing"));K.store.dispatch(pnW(d,R))},f=function(){var d;
(d=K.audioPlayer)==null||h$(d,"open");K.setState("listening")},u=function(){K.setState("transcribing")},J=function(d){K.setErrorState(d)},Z=function(d,R){var l;
(l=K.audioPlayer)==null||h$(l,"success");R&&(_.S("kevlar_voice_search_inline_search")&&(K.responseProcessor=_.i9().resolve(_.V$9),K.responseProcessor&&(l=R.navigationAction,d=R.prefetchedSearchResponse,l&&d&&(l=(new _.cQL).JSC$11005_getStoreKey(l),_.U$(K.responseProcessor,d,l)))),K.JSC$17736_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",R))},M=function(){window.removeEventListener("offline",K.handleOfflineEvent)},n=_.wW9(!1),c=n.Authorization!=null,B=K.enableFirstPartyAuth||
K.enableFPAForSignedInUsers&&c?n:{"X-Goog-Visitor-Id":n["X-Goog-Visitor-Id"]},L={completeHandler:Z,
errorHandler:J,listeningHandler:f,audioDetectedHandler:u,stopHandler:M,transcriptionUpdateHandler:H,youtubeAssistantRequest:P,languageCode:pUG(),additionalHeaders:B,supportsCrossDomainXhr:K.enableFirstPartyAuth||K.enableFPAForSignedInUsers&&c,supportsHttpHeadersOverwriteParam:!K.disableHttpHeadersOverwrite},K.service.start(L),_.JT(A)}})};
_.z.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.z.reset=function(){this.store.dispatch(_.iY({type:"RESET_VOICE_SEARCH_STATE"}))};
_.z.setState=function(K){this.store.dispatch(B$W(K))};
_.z.setErrorState=function(K){switch(K){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var X;(X=this.audioPlayer)==null||h$(X,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)ckG(this);else{var F;(F=this.audioPlayer)==null||h$(F,"failure");this.setState("permission-denied")}break;case "ABORTED":var P;(P=this.audioPlayer)==null||h$(P,"no_input");break;default:var H;(H=this.audioPlayer)==
null||h$(H,"no_input");this.setState("timeout")}};
var ckG=function(K){var X,F;return _.q(function(P){switch(P.nextAddress){case 1:return _.Y(P,navigator.permissions.query({name:"microphone"}),2);case 2:X=P.yieldResult;if(X.state==="granted")return P.return(!0);if(X.state==="denied")return K.setState("permission-denied"),P.return(!1);K.setState("permission");F={audio:{sampleSize:16,channelCount:1},video:!1};_.s2(P,3);return _.Y(P,navigator.mediaDevices.getUserMedia(F),5);case 5:return K.stream=P.yieldResult,P.return(!0);case 3:return _.qc(P),K.setState("permission-denied"),
P.return(!1)}})},pUG=function(){var K=_.e8("INNERTUBE_CONTEXT_HL"),X=_.e8("INNERTUBE_CONTEXT_GL");
return K.indexOf("-")>-1?K:K+"-"+X};var BkV=function(K,X,F){nud.call(this,X,F);this.JSC$17736_actionRouter=K;this.enableInlineSearchResponse=_.S("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.S("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.S("kevlar_voice_search_enable_fpa_signedin_users")},Sxo;
_.r(BkV,nud);
var ou5=function(){if(!Sxo){var K="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.S("kevlar_voice_search_auth_enabled")||_.S("kevlar_voice_search_use_yt_endpoint")?K="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.S("kevlar_voice_search_use_fp_endpoint")&&(K="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");Sxo=
new BkV(_.GT.getInstance(),_.aA(),new UC(_.e8("VOZ_API_KEY"),K,.5))}return Sxo};var Lik=function(K){this.JSC$17740_clientRoot=K;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$17740_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)]]));K=_.D(this.eventListeners);for(var X=K.next();!X.done;X=K.next()){var F=_.D(X.value);X=F.next().value;F=F.next().value;F=_.D(F);for(var P=F.next();!P.done;P=F.next()){var H=
_.D(P.value);P=H.next().value;H=H.next().value;X.addEventListener(P,H)}}_.ly(_.GT.getInstance(),this.autonavPauseActionMap,this.JSC$17740_clientRoot)},TkV,rkG=function(K){return _.S("kevlar_autonav_popup_filtering")?(K=_.vI(K))?K.hasAttribute("prevent-autonav"):!0:!0};
_.z=Lik.prototype;_.z.onIronOverlayOpened=function(K){rkG(K)&&(this.autonavPauseReasons.overlayOpen=!0,mp(this))};
_.z.onIronOverlayClosed=function(K){rkG(K)&&(this.autonavPauseReasons.overlayOpen=!1,mp(this))};
_.z.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;mp(this)};
_.z.onYtAutonavPauseBlur=function(){var K=this;_.A9.addJob(function(){K.isInBackground()||(K.autonavPauseReasons.inputBoxFocus=!1,mp(K))},8,0)};
_.z.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;mp(this)};
_.z.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;mp(this)};
_.z.onYtAutonavPauseScroll=function(){var K=_.i9().resolve(_.ax);K.isOnWatch()&&(K=K.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=K.getBoundingClientRect().top<-200,mp(this))};
_.z.onYtAutonavPauseUserEngagement=function(K){var X=this;if(_.S("user_engagement_enable_autoplay_pause_feature")){var F=Number(K.lowEngagementThresholdMs);isNaN(F)||F<=0||K.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.Vv("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.i9().resolve(_.BO),_.xg()<F?_.cu(_.A9,function(){_.Vv("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.JVV()?(this.userEngagementCsn=_.AD(),_.cu(_.A9,function(){_.Vv("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
X.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,mp(this)):_.Vv("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.ec9(Error("$k`"+JSON.stringify(K)))};
_.z.onYtAutonavPausePlayer=function(K){this.autonavPauseReasons.requestedByPlayer=!!K.detail;mp(this)};
_.z.onYtAutonavVisibilityChanged=function(){var K=this,X,F,P;return _.q(function(H){if(H.nextAddress==1)return(X=_.$f())?_.Y(H,X.getPlayerPromise(),2):H.return();F=H.yieldResult;P=F.isMuted()||F.getVolume()===0;K.autonavPauseReasons.backgroundAndMute=K.isInBackground()&&P;mp(K);_.JT(H)})};
_.z.onYtAutonavPausePlayerEnded=function(){_.i9().resolve(_.BO);var K=144E5;_.S("user_engagement_enable_autoplay_pause_feature")||_.S("is_part_of_any_user_engagement_experiment")||(K=45E5);this.autonavPauseReasons.longIdle=_.xg()>K;Ak8(this);mp(this)};
_.z.onYtUserActivity=function(){var K=this;this.autonavPauseReasons.userEngagement&&(_.cu(_.A9,function(){_.Vv("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",K.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,mp(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.cu(_.A9,function(){_.Vv("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",K.userEngagementCsn);_.A_()}),this.autonavPauseReasons.youthereLactExperiment=!1,mp(this));
this.autonavPauseReasons.longIdle&&!_.S("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,mp(this))};
_.z.isInBackground=function(){var K=window.document.visibilityState;return!(!K||K==="visible")};
var mp=function(K){for(var X=!1,F=_.D(Object.values(K.autonavPauseReasons)),P=F.next();!P.done;P=F.next())P=P.value,X=X||P;X?_.$2.getInstance().pause(K.autonavPauseReasons):(K=_.$2.getInstance(),K.autonavState_==3?(K.setState(2,!1,!1),K.autonavPauseReason_=void 0):K.autonavState_==1&&(K.disabledAutonavPauseReason_=void 0))},Ak8=function(K){var X=!1;
if(_.S("enable_autoplay_pause_by_lact")){_.i9().resolve(_.BO);X=_.kU("autoplay_pause_by_lact_sec")*1E3;var F=_.kU("autoplay_pause_by_lact_sampling_fraction");(X=_.xg()>=X&&Math.random()<F)&&!_.JVV()&&(_.cu(_.A9,function(){_.Vv("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),X=!1)}X!==K.autonavPauseReasons.youthereLactExperiment&&(K.autonavPauseReasons.youthereLactExperiment=X)&&(K.userEngagementCsn=_.AD(),_.cu(_.A9,function(){_.Vv("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",K.userEngagementCsn)}));
K.autonavPauseReasons.userEngagement&&_.cu(_.A9,function(){_.Vv("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",K.userEngagementCsn)})};
Lik.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.Vv("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.A_(),this.autonavPauseReasons.youthereLactExperiment=!1,mp(this));this.autonavPauseReasons.userEngagement&&(_.Vv("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,mp(this))};
Lik.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var Gq=function(){var K=_.G.apply(this,arguments)||this;K.miniGuideVisible=!1;K.guideOpened=_.S("disable_initial_guide_state_fix")?!1:K.canFitPersistentGuide(K.initialBodyClientWidth);K.guideUserStateOpened=K.getInitialGuideUserStateOpened();K.isFullscreenShorts=!1;K.miniGuideWidthThreshold=_.kU("kevlar_mini_guide_width_threshold",791);K.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");K.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
K.persistentGuideBlockedPagePathRegex=new RegExp(K.persistentGuideBlockedPagesPatterns.join("|"));K.animationTransitionDuration=0;K.lateDataResolver=_.Ue();K.initialGuideDataFetchFailed=!1;K.initialLoad=!0;K.guideRenderers=new Set;K.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return K};
_.r(Gq,_.G);_.z=Gq.prototype;_.z.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.z.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.z.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.z.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.z.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.z.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.z.ready=function(){_.i9().addProvider({provide:_.en,useValue:this.hostElement})};
_.z.attached=function(){var K=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.Pc(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.Pc(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.Pc(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.Pc(this,this.onYtGuideShow));_.tg(this,function(){K.animationTransitionDuration=200})};
_.z.detached=function(){document.removeEventListener("yt-navigate-finish",_.Pc(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.Pc(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.Pc(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.Pc(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.Pc(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.Pc(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.Pc(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.z.getData=function(){return this.data};
_.z.load=function(){var K=this,X,F,P,H;return _.q(function(f){switch(f.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=K.lateDataResolver.resolve.bind(K),f.return(K.lateDataResolver.promise);if(window.ytInitialGuideData)return X=_.Ue(),X.resolve(window.ytInitialGuideData),f.return(X.promise);P=!1;_.s2(f,2);return _.Y(f,K.fetchGuideData(),4);case 4:F=f.yieldResult;_.Gy(f,3);break;case 2:H=_.qc(f),H.message==="Returned error"&&(P=!0);
case 3:if(F)return f.return(F);K.onYtGuideClose();P||(K.initialGuideDataFetchFailed=!0);return f.return(K.lateDataResolver.promise)}})};
_.z.fetchGuideData=function(){var K=this,X,F,P,H,f,u,J;return _.q(function(Z){if(Z.nextAddress==1)return X=_.i9(),K.guidePromise||(F=X.resolve(_.L$),K.guidePromise=_.Rx(F,dDJ)),_.Y(Z,K.guidePromise,2);if(Z.nextAddress!=3)return P=Z.yieldResult,H=X.resolve(_.l5),_.Y(Z,H(),3);(f=Z.yieldResult)&&((u=P)==null?void 0:(J=u.responseContext)==null?void 0:J.maxAgeSeconds)!==0&&f.put("service:guide:fallback",new _.XM({innertubeResponse:P}));return Z.return(P)})};
_.z.initializeGuideDataIfEmpty=function(){var K=this,X,F;return _.q(function(P){if(P.nextAddress==1){if(!K.initialGuideDataFetchFailed||K.data)return P.return();_.s2(P,2);return _.Y(P,K.fetchGuideData(),4)}if(P.nextAddress!=2)return(X=P.yieldResult)&&K.lateDataResolver.resolve(X),_.Gy(P,0);F=_.qc(P);_.yy(F);_.JT(P)})};
_.z.initializeGuideData=function(){var K=this,X;return _.q(function(F){switch(F.nextAddress){case 1:return _.s$(C9W(),{mainAppWeb:_.Um()}),_.s2(F,2),_.Y(F,K.load(),4);case 4:K.data=F.yieldResult;_.Gy(F,3);break;case 2:_.qc(F),_.zt(C9W(),"FAILURE");case 3:X=K.data&&K.data.items&&K.data.items.length>0?"SUCCESS":"FAILURE",_.zt(C9W(),X),_.JT(F)}})};
_.z.setGuideData=function(K){var X=this,F,P;return _.q(function(H){if(H.nextAddress==1)return X.disabled?H.return():X.data?(K.data=X.data,X.guideRenderers.add(K),H.return()):_.Y(H,X.initializeGuideData(),2);X.graftGuideToPage();F=_.RU("IS_HOMEPAGE_COLD")?"eop":void 0;_.S("disable_element_pool_populator")?X.setGuideDataAfterInit(K):(P=new _.Ex(1,F),_.bZ(P,X.setGuideDataAfterInit.bind(X,K)));_.JT(H)})};
_.z.setGuideDataAfterInit=function(K){K.data=this.data;K.markDirty();this.guideRenderers.add(K);_.dl(function(){_.Ac("gle")});
_.tg(this,function(){_.Ac("gpe")})};
_.z.graftGuideToPage=function(){if(this.data){var K=this.data&&this.data.trackingParams;K&&(K=_.QB(K),_.Kp(_.uH(),K))}};
_.z.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.Pc(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.z.onDrawerOpenedChanged=function(K,X){!X.value&&this.guideOpened&&(this.guideOpened=!1)};
_.z.onYtGuideToggle=function(K){var X=this.guideOpened;this.guideOpened=!X;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var F=_.ZO();_.YX(0,109,!this.guideUserStateOpened);F.save()}this.updateGuideDrawerElementState();if(this.guideElement){var P;this.guideOpened&&((P=K.detail)==null?0:P.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.Pc(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.Pc(this,
this.onAppDrawerTransitioned))}X||this.initializeGuideDataIfEmpty()};
_.z.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Pc(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Vc(this.guideElement)};
_.z.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Pc(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(nO8(this.guideOpened))};
_.z.guidePersistentAndVisibleChanged=function(){_.IJ(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.z.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.iY({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.z.miniGuideVisibleChanged=function(){_.IJ(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.z.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(nO8(this.guideOpened)),this.initialLoad=!1);_.IJ(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.z.activeEndpointChanged=function(){_.IJ(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.z.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.z.onYtGuideShow=function(){this.forceMiniGuideClose=!1;this.guidePersistent=this.canFitPersistentGuide(this.cachedClientWidth);this.guideUserStateOpened&&this.guidePersistent?this.renderGuide=this.guideOpened=!0:this.guideOpened=!1;this.observeForMiniGuideVisible();this.updateGuideDrawerElementState()};
_.z.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var K=this.canFitPersistentGuide(this.cachedClientWidth);K?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=K}this.updateGuideDrawerElementState()};
_.z.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.z.getGuideOpened=function(){return this.guideOpened};
_.z.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.z.getActiveEndpoint=function(){return this.activeEndpoint};
_.z.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.z.updateGuideDrawerElementState=function(){this.guideElement&&(this.guidePersistent?this.disableGuideAnimation():this.guideElement.persistent?this.disableGuideAnimation():this.enableGuideAnimation(),this.guideElement.opened=this.guideOpened,this.guideElement.persistent=this.guidePersistent,this.guideOpened&&this.guidePersistent&&_.iX(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.z.computeGuidePersistentAndVisible=function(){var K=this;_.eu(this,"computeGuidePersistentAndVisible",function(){K.guidePersistentAndVisible=K.guideOpened&&K.guidePersistent;K.guideIsVisibleButNotPersistent=!(!K.guideOpened||K.guidePersistent)})};
_.z.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.z.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.z.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.z.startLoadingWatch=function(){this.closeGuide()};
_.z.startLoadingShorts=function(){_.S("web_hide_guide_on_shorts")&&this.closeGuide()};
_.z.onYtNavigateFinish=function(K,X){if(!_.ir||X){this.activeEndpoint=X.endpoint;this.pageType=X.pageType;this.pageUrl=X.response.url;var F,P;K=(P=_.T((F=X.endpoint)==null?void 0:F.commandMetadata,_.g_))==null?void 0:P.url;!this.pageUrl&&K&&(this.pageUrl=K);_.S("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.z.getVisibleGuideRenderer=function(){for(var K=_.D(this.guideRenderers),X=K.next();!X.done;X=K.next())if(X=X.value,this.miniGuideVisible&&X.is==="ytd-mini-guide-renderer"||this.guideOpened&&X.is==="ytd-guide-renderer")return X;return null};
_.z.markGuideRendererDirty=function(K){if(K){typeof K.markDirty==="function"&&K.markDirty();K=_.D([].concat(_.LZ(_.C$(K).children)));for(var X=K.next();!X.done;X=K.next())this.markGuideRendererDirty(X.value)}};
_.z.persistentGuideEnabled=function(K,X){if(!X||K==="watch"||K==="settings"||K==="shorts"&&this.isFullscreenShorts||_.S("reels_web_disable_persistent_guide_shorts")&&K==="shorts")return!1;var F=_.zy(X)||"";return _.S("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(P){return F===P}):!this.persistentGuideBlockedPagePathRegex.test(F)};
_.z.canFitPersistentGuide=function(K){var X=_.kU("kevlar_persistent_guide_width_threshold",1312);return X===-1||_.S("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:K>X};
_.z.canFitMiniGuide=function(K){return this.miniGuideWidthThreshold===-1?!1:K>this.miniGuideWidthThreshold};
_.z.onResize=function(){var K=this;_.eu(this,"calculateGuideState",function(){K.onResizeDebounced()})};
_.z.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.z.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.z.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.z.getInitialGuideUserStateOpened=function(){return!_.ZO().getFlag(109)};
_.Oi.Object.defineProperties(Gq.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.e8("initialBodyClientWidth")||window.innerWidth}}});
Gq.prototype.onResize=Gq.prototype.onResize;Gq.prototype.observeForMiniGuideVisible=Gq.prototype.observeForMiniGuideVisible;Gq.prototype.computeGuidePersistentAndVisible=Gq.prototype.computeGuidePersistentAndVisible;Gq.prototype.cachedClientWidthChanged=Gq.prototype.cachedClientWidthChanged;Gq.prototype.resetGuide=Gq.prototype.resetGuide;Gq.prototype.activeEndpointChanged=Gq.prototype.activeEndpointChanged;Gq.prototype.guideOpenedChanged=Gq.prototype.guideOpenedChanged;
Gq.prototype.miniGuideVisibleChanged=Gq.prototype.miniGuideVisibleChanged;Gq.prototype.guideIsVisibleButNotPersistentChanged=Gq.prototype.guideIsVisibleButNotPersistentChanged;Gq.prototype.guidePersistentAndVisibleChanged=Gq.prototype.guidePersistentAndVisibleChanged;Gq.prototype.onGuideElementChanged=Gq.prototype.onGuideElementChanged;Gq.prototype.onGuidePersistentChanged=Gq.prototype.onGuidePersistentChanged;Gq.prototype.onRenderGuideChanged=Gq.prototype.onRenderGuideChanged;
Gq.prototype.onActiveEndpointChanged=Gq.prototype.onActiveEndpointChanged;Gq.prototype.onMiniGuideVisibleChanged=Gq.prototype.onMiniGuideVisibleChanged;Gq.prototype.onGuideIsVisibleButNotPersistentChanged=Gq.prototype.onGuideIsVisibleButNotPersistentChanged;Gq.prototype.onGuidePersistendAndVisibleChanged=Gq.prototype.onGuidePersistendAndVisibleChanged;_.O([_.W(_.SL),_.g("design:type",Object)],Gq.prototype,"ironResizableBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Gq.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Gq.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],Gq.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Gq.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Boolean)],Gq.prototype,"disabled",void 0);
_.O([_.h(),_.g("design:type",Boolean)],Gq.prototype,"guidePersistentAndVisible",void 0);_.O([_.so("guidePersistentAndVisible"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Gq.prototype,"onGuidePersistendAndVisibleChanged",null);_.O([_.h(),_.g("design:type",Boolean)],Gq.prototype,"guideIsVisibleButNotPersistent",void 0);
_.O([_.so("guideIsVisibleButNotPersistent"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Gq.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.O([_.h(),_.g("design:type",Object)],Gq.prototype,"miniGuideVisible",void 0);_.O([_.so("miniGuideVisible"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Gq.prototype,"onMiniGuideVisibleChanged",null);_.O([_.h(),_.g("design:type",Boolean)],Gq.prototype,"forceMiniGuideClose",void 0);
_.O([_.h(),_.g("design:type",Object)],Gq.prototype,"activeEndpoint",void 0);_.O([_.so("activeEndpoint"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Gq.prototype,"onActiveEndpointChanged",null);_.O([_.h(),_.g("design:type",Boolean)],Gq.prototype,"renderGuide",void 0);_.O([_.so("renderGuide"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Gq.prototype,"onRenderGuideChanged",null);
_.O([_.h(),_.g("design:type",Object)],Gq.prototype,"guideOpened",void 0);_.O([_.h(),_.g("design:type",Boolean)],Gq.prototype,"guidePersistent",void 0);_.O([_.so("guidePersistent"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Gq.prototype,"onGuidePersistentChanged",null);_.O([_.h(),_.g("design:type",Object)],Gq.prototype,"guideUserStateOpened",void 0);_.O([_.h(),_.g("design:type",String)],Gq.prototype,"pageUrl",void 0);
_.O([_.h(),_.g("design:type",String)],Gq.prototype,"pageType",void 0);_.O([_.h(),_.g("design:type",Number)],Gq.prototype,"cachedClientWidth",void 0);_.O([_.h(),_.g("design:type",Object)],Gq.prototype,"guideElement",void 0);_.O([_.h({selector:_.sD}),_.g("design:type",Object)],Gq.prototype,"isFullscreenShorts",void 0);_.O([_.so("guideElement"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Gq.prototype,"onGuideElementChanged",null);
_.O([_.so("guidePersistentAndVisible"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Gq.prototype,"guidePersistentAndVisibleChanged",null);_.O([_.JA("guideIsVisibleButNotPersistent"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Gq.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.O([_.so("miniGuideVisible"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Gq.prototype,"miniGuideVisibleChanged",null);_.O([_.JA("guideOpened"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Gq.prototype,"guideOpenedChanged",null);_.O([_.so("activeEndpoint"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Gq.prototype,"activeEndpointChanged",null);
_.O([_.JA("pageUrl"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Gq.prototype,"resetGuide",null);_.O([_.JA("cachedClientWidth"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Gq.prototype,"cachedClientWidthChanged",null);_.O([_.so("guideOpened","guidePersistent"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Gq.prototype,"computeGuidePersistentAndVisible",null);
_.O([_.JA("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Gq.prototype,"observeForMiniGuideVisible",null);_.O([_.Hc("iron-resize"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Gq.prototype,"onResize",null);Gq=_.O([_.v({disableElementRegistration:!0,is:"yt-guide-manager"})],Gq);var juv=_.t(Gq,"yt-guide-manager",void 0,{mode:_.Ig("kevlar_poly_si_batch_j081")?1:2});var lo=function(){var K=_.G.apply(this,arguments)||this;K.JSC$17750_keyboardInUse=!1;K.boundHandleCapturedKeydownEvent=function(X){K.handleCapturedKeydownEvent(X)};
return K};
_.r(lo,_.G);_.z=lo.prototype;_.z.attached=function(){this.listenToDocument(document)};
_.z.listenToDocument=function(K){K.addEventListener("keydown",_.Pc(this,this.onKeyDownEvent));K.addEventListener("keyup",_.Pc(this,this.onKeyUpEvent));K.addEventListener("mousedown",_.Pc(this,this.onMouseDownEvent));_.S("desktop_keyboard_capture_keydown_killswitch")||K.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);K.addEventListener("yt-page-data-updated",_.Pc(this,this.onPageUpdate))};
_.z.detached=function(){this.unlistenFromDocument(document)};
_.z.unlistenFromDocument=function(K){K.removeEventListener("keydown",_.Pc(this,this.onKeyDownEvent));K.removeEventListener("keyup",_.Pc(this,this.onKeyUpEvent));K.removeEventListener("mousedown",_.Pc(this,this.onMouseDownEvent));_.S("desktop_keyboard_capture_keydown_killswitch")||K.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);K.removeEventListener("yt-page-data-updated",_.Pc(this,this.onPageUpdate))};
_.z.ready=function(){_.i9().addProvider({provide:_.Iu,useValue:this})};
_.z.isKeyBoardInUse=function(){return this.JSC$17750_keyboardInUse};
_.z.handleCapturedKeydownEvent=function(K){if(K.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(K)};
_.z.onMouseDownEvent=function(){this.JSC$17750_keyboardInUse=!1};
_.z.onPageUpdate=function(){if(_.S("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.S("web_shorts_keyboard_shortcut_usage_log")){_.NJ.clear();for(var K=_.D(_.bp),X=K.next();!X.done;X=K.next()){var F=_.D(X.value);X=F.next().value;F=F.next().value;F=_.cO(F);_.NJ.set(X,F);_.Us(_.AD(),_.r_(),F)}_.ip.clear();K=_.D(_.CH);for(X=K.next();!X.done;X=K.next())F=_.D(X.value),X=F.next().value,F=F.next().value,F=_.cO(F),_.ip.set(X,F),_.Us(_.AD(),_.r_(),F);_.hc(_.AD(),_.r_(),[].concat(_.LZ(_.ip.values()),
_.LZ(_.NJ.values())));_.G6(_.AD(),[].concat(_.LZ(_.ip.values()),_.LZ(_.NJ.values())))}};
_.z.onMiniplayerActiveChange=function(){var K;(K=_.i9().resolve(_.Wj).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(K.document):this.unlistenFromDocument(K.document))};
_.z.ignoreKeyEvent=function(K){if(K.ctrlKey||K.altKey)if(_.S("kevlar_macro_markers_keyboard_shortcut")){if(K.keyCode!==37&&K.keyCode!==39)return!0}else return!0;var X=_.lN(K)||[];return _.M8V(X)?!0:K.defaultPrevented?(Dc(K.keyCode,K.shiftKey,this.isShortsPage),!0):K.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(K):!1};
_.z.isSpacebarClick=function(K){var X=K||window.event;var F;X.composedPath&&typeof X.composedPath==="function"?F=X.composedPath():F=X.path;F&&F.length?X=F[0]:(X=X||window.event,X=X.target||X.srcElement,X.nodeType==3&&(X=X.parentNode));return X&&K.keyCode===32&&(K=X.tagName==="BUTTON"||X.tagName==="A"||X.tagName==="INPUT",X=(X=X.getAttribute("role"))&&(X==="option"||X==="button"||X.indexOf("menuitem")===0),K||X)?!0:!1};
_.z.onKeyDownEvent=function(K){if(!this.ignoreKeyEvent(K)&&(K.keyCode===191&&(K.shiftKey||K.metaKey?K.repeat!=null&&K.repeat||(this.openHotkeyDialog(),Dc(K.keyCode,K.shiftKey,this.isShortsPage)):(this.focusSearchBox(),K.preventDefault())),!K.metaKey)){var X=_.i9().resolve(_.Wj);switch(K.keyCode){case 9:this.JSC$17750_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(K);break;case 84:X.pipController.getWindow()&&window.focus();this.toggleTheaterMode(K.keyCode,K.shiftKey);break;case 73:X.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(K.keyCode,K.shiftKey);break;case 70:if(this.isShortsPage&&_.S("web_fullscreen_shorts")){_.cV1();break}this.isMiniplayerActive()?X.pipController.getWindow()&&(X.close(!0),window.focus()):this.passEventToPlayer(K);break;case 27:this.closeMiniplayer(K.keyCode,K.shiftKey)||this.passEventToPlayer(K);break;case 13:K.shiftKey&&_.S("web_ephemeral_actions")&&_.i9().resolve(_.sR).activate(K);break;default:this.passEventToPlayer(K)}}};
_.z.onKeyUpEvent=function(K){if(!this.ignoreKeyEvent(K))if(_.S("web_speedmaster_spacebar_control")&&K.keyCode===32)this.handlePlayerSpaceKey(K,!0);else{var X=this.getPlayerManager();X&&(X=X.getPlayer())&&X.handleGlobalKeyUp(K.keyCode,K.shiftKey,K.ctrlKey,K.altKey,K.metaKey,K.key,K.code)}};
_.z.getPlayerManager=function(){var K=_.$f(),X=_.i9().resolve(_.Nu(_.ax));return K&&X&&X.isOnWatch()?K:null};
_.z.passEventToPlayer=function(K,X){var F=this,P,H,f;return _.q(function(u){if(u.nextAddress==1)return!_.S("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&F.isMiniplayerActive()?P=_.i9().resolve(_.Wj).getPlayerElement():F.inlinePreviewIsActive?(H=_.IJ(F.hostElement,"yt-get-inline-preview-player-action"))&&H[0]&&(P=H[0]):P=_.$f(),P?_.Y(u,P.getPlayerPromise(),3):u.jumpTo(0);f=u.yieldResult;X?f.handleGlobalKeyUp(K.keyCode,K.shiftKey,K.ctrlKey,K.altKey,K.metaKey,K.key,K.code,K.repeat):f.handleGlobalKeyDown(K.keyCode,
K.shiftKey,K.ctrlKey,K.altKey,K.metaKey,K.key,K.code,K.repeat);K.keyCode!==38&&K.keyCode!==40&&Dc(K.keyCode,K.shiftKey,F.isShortsPage);_.JT(u)})};
_.z.focusSearchBox=function(){_.iX(this.hostElement,"yt-focus-searchbox")};
_.z.openHotkeyDialog=function(){_.iX(this.hostElement,"yt-open-hotkey-dialog")};
_.z.isMiniplayerActive=function(){return _.i9().resolve(_.Wj).isMiniplayerActive()};
_.z.closeMiniplayer=function(K,X){return this.isMiniplayerActive()?(_.i9().resolve(_.Wj).close(),Dc(K,X,this.isShortsPage),!0):!1};
_.z.toggleTheaterMode=function(K,X){var F=_.wV(_.aA().getState()),P=this.getPlayerManager(),H=_.S("disable_theater_mode_keyboard")||_.RU("START_IN_FULL_WINDOW_MODE");P&&!H&&(F=!F,_.Ec()&&_.S("external_fullscreen")&&(F=!0),_.xr(this.hostElement,"yt-toggle-theater-mode",[F]),Dc(K,X,this.isShortsPage))};
_.z.toggleMiniplayer=function(K,X){var F=this.getPlayerManager();if(this.isMiniplayerActive()){var P;((P=_.i9().resolve(_.Nu(_.ax)))==null?0:P.isOnWatch())?_.i9().resolve(_.Wj).close(!0):_.Qr(_.i9().resolve(_.Wj));Dc(K,X,this.isShortsPage)}else F&&(_.xr(this.hostElement,"yt-activate-miniplayer-from-watch-action"),Dc(K,X,this.isShortsPage))};
_.z.handlePlayerSpaceKey=function(K,X){var F=!!_.$f()||this.isMiniplayerActive();F=_.S("disable_space_scroll_fix")||F;_.S("global_spacebar_pause")&&!this.isKeyBoardInUse()&&F&&(K.preventDefault(),this.passEventToPlayer(K,X))};
lo.prototype.onMiniplayerActiveChange=lo.prototype.onMiniplayerActiveChange;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],lo.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],lo.prototype,"ytdReduxBehavior",void 0);_.O([_.h({selector:_.Zzq}),_.g("design:type",Boolean)],lo.prototype,"inlinePreviewIsActive",void 0);_.O([_.h({selector:_.Z9v}),_.g("design:type",Boolean)],lo.prototype,"isShortsPage",void 0);
_.O([_.h({selector:_.LI}),_.g("design:type",Boolean)],lo.prototype,"miniplayerIsActive",void 0);_.O([_.so("miniplayerIsActive"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],lo.prototype,"onMiniplayerActiveChange",null);lo=_.O([_.v({disableElementRegistration:!0,is:"yt-hotkey-manager"})],lo);_.t(lo,"yt-hotkey-manager",void 0,{mode:_.Ig("kevlar_poly_si_batch_j081")?1:2});var vt=function(){var K=_.G.apply(this,arguments)||this;K.loopStateEntityKey_=null;K.playlistLoopStateEntity_=null;K.isShuffleNextPlaylist=!1;K.PLAYER_EVENTS_=new Map;K.playerListenersSetup_=!1;K.videoSkipJob_=0;K.canAutoAdvance_=!1;K.playerManager_=null;K.TEST_ONLY={};return K};
_.r(vt,_.G);_.z=vt.prototype;_.z.ready=function(){_.i9().addProvider({provide:_.AW,useValue:this.hostElement})};
_.z.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_)};
_.z.attached=function(){document.addEventListener("yt-navigate-start",_.Pc(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.Pc(this,this.onYtNavigateFinish_))};
_.z.detached=function(){document.removeEventListener("yt-navigate-start",_.Pc(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.Pc(this,this.onYtNavigateFinish_))};
_.z.updatePlaylistEventListeners=function(K,X){X&&!this.playerListenersSetup_?(this.playerManager_=K,this.registerPlaylistEventListeners_(K)):!X&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(K))};
_.z.setPlayer=function(K){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=K};
_.z.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.z.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.z.registerPlaylistEventListeners_=function(K){var X=this;K.getPlayerPromise().then(function(F){X.playerListenersSetup_||(X.ytPlayerListenerBehavior.listenToPlayerEvents(F,X.PLAYER_EVENTS_),X.playerListenersSetup_=!0)})};
_.z.removePlaylistEventListeners_=function(K){var X=this;K.getPlayerPromise().then(function(F){X.playerListenersSetup_&&(X.ytPlayerListenerBehavior.unlistenFromPlayerEvents(F,X.PLAYER_EVENTS_),X.playerListenersSetup_=!1)})};
_.z.setPlaylistComponent=function(K){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.Pc(this,this.onPlaylistYtNavigate_)),K&&(K.data&&this.playlistComponent.data&&K.data.playlistId==this.playlistComponent.data.playlistId?(K.loopOn=this.playlistComponent.loopOn,K.shuffleOn=this.playlistComponent.shuffleOn):(K.loopOn=!1,K.shuffleOn=!1),this.isShuffleNextPlaylist&&(K.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=K;this.playlistComponent.addEventListener("yt-navigate",
_.Pc(this,this.onPlaylistYtNavigate_))};
_.z.setAutoplayRenderer=function(K){this.autoplayData=K};
_.z.setPlaylistData=function(K){this.currentPlaylistData_=K;_.iX(this.hostElement,"yt-playlist-data-updated");_.T8.isEmpty(K)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(K)};
_.z.setPlayerPlaybackControlData=function(K){this.playerManager_&&this.playerManager_.updatePlayerComponents(K.playlistPanelRenderer)};
_.z.getPlaylistData=function(){return this.currentPlaylistData_};
_.z.getTempData_=function(K,X){if(this.playlistComponent==null)return null;K={};this.playlistComponent.shuffleOn&&(K.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(K.loop_on=this.playlistComponent.loopOn);X&&(K.autonav="1",_.i9().resolve(_.BO),X=_.xg(),X>0&&(K.lact=X),this.playerManager_&&(X=this.playerManager_.getPlayer())&&X.shouldSendVisibilityState()&&(X=X.getVisibilityState(),X!=0&&(K.vis=X)));_.S("enable_unknown_lact_fix_on_html5")&&(_.i9().resolve(_.BO),K.lact=
_.xg());return K};
_.z.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.z.setLoopStateEntityKey_=function(K){var X;this.loopStateEntityKey_=((X=this.getPlaylistLoopData_(K))==null?void 0:X.playlistLoopStateEntityKey)||null};
_.z.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.z.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.z.skipVideo=function(){var K=this,X=_.S("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||X)X=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.u6(_.A9,function(){K.onPlaylistNext();K.videoSkipJob_=0},X)};
_.z.cancelVideoSkip=function(){this.videoSkipJob_&&(_.A9.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.z.isInBackground_=function(){var K=window.document.visibilityState;return!(!K||K=="visible")};
_.z.onPlaylistIndex_=function(K){this.playlistComponent&&(K=this.playlistComponent.data.contents[K].playlistPanelVideoRenderer.navigationEndpoint,_.iX(this.hostElement,"yt-navigate",{endpoint:K,tempData:this.getTempData_(K)}))};
_.z.onPlayerStateChange_=function(K){if(K=K==0&&this.playlistComponent&&this.canAutoAdvance_)K=_.$2.getInstance(),K=!(K.autonavState_===3?K.autonavPauseReason_&&K.autonavPauseReason_.inputBoxFocus===!0:K.autonavState_===1&&K.disabledAutonavPauseReason_&&K.disabledAutonavPauseReason_.inputBoxFocus===!0);K&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.z.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.z.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.z.navigateToAutoplayWatchEndpoint_=function(K,X,F){var P=this.playlistComponent.data.currentIndex,H=this.getNumPlayableVideos_();K=="NORMAL"&&X=="autoplayVideo"&&P+1>=H&&F||!(K=this.getVideoEndpoint_(K,X))||(F=this.getTempData_(K,F),_.iX(this.hostElement,"yt-navigate",{endpoint:K,tempData:F}))};
_.z.getNumPlayableVideos_=function(){for(var K=0,X=_.D(this.playlistComponent.data.contents||[]),F=X.next();!F.done;F=X.next())F.value.playlistPanelVideoRenderer&&(K+=1);return K};
_.z.getVideoEndpoint_=function(K,X){if(this.autoplayData&&this.autoplayData.sets)for(var F=0,P=this.autoplayData.sets.length;F<P;F++){var H=this.autoplayData.sets[F];if(H.mode==K){if(H[X])return H[X];break}}else K=new _.nG("AutoplayData is undefined in playlist manager","Mode: "+K+" endpoint: "+X),_.yy(K)};
_.z.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.z.onPlaylistYtNavigate_=function(K){if(K.detail.endpoint){K.stopPropagation();var X=K.detail;X.tempData=this.getTempData_(K.detail.endpoint);_.iX(this.hostElement,"yt-navigate",X)}};
_.z.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.z.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.z.playlistLoopStateEntityChanged_=function(K){var X=this,F,P,H;return _.q(function(f){if(f.nextAddress==1){if(!K)return f.return();F=K.state==="PLAYLIST_LOOP_STATE_ONE";return X.playerManager_?_.Y(f,X.playerManager_.getPlayerPromise(),3):f.jumpTo(2)}f.nextAddress!=2&&(P=f.yieldResult,P.setLoopVideo(F));H=K.state==="PLAYLIST_LOOP_STATE_ALL";X.playlistComponent&&(X.playlistComponent.loopOn=H);_.JT(f)})};
_.z.getPlaylistLoopData_=function(K){var X,F;if(K=K==null?void 0:(X=K.playlistButtons)==null?void 0:(F=X.menuRenderer)==null?void 0:F.topLevelButtons)for(X=_.D(K),F=X.next();!F.done;F=X.next())if(F=F.value,F.playlistLoopButtonRenderer)return F.playlistLoopButtonRenderer};
_.z.getLoopStateCommand_=function(K){var X=this.getPlaylistData(),F;X=((F=this.getPlaylistLoopData_(X))==null?void 0:F.states)||[];var P;K=(P=_.T(X[K?1:2],_.ybZ))==null?void 0:P.button;var H;return(H=_.T(K,_.jg))==null?void 0:H.command};
_.z.onPlayerLoopChange_=function(K){this.playlistLoopStateEntity_&&(K?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(K=this.getLoopStateCommand_(K))&&this.ytComponentBehavior.resolveCommand(K)};
_.z.onSleepTimerSettingsChanged_=function(K){this.canAutoAdvance_=K!=="End of video"};
vt.prototype.onPlaylistLoopStateEntityChanged=vt.prototype.onPlaylistLoopStateEntityChanged;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],vt.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.ld.YtPlayerListenerBehavior),_.g("design:type",_.vC)],vt.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],vt.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],vt.prototype,"loopStateEntityKey_",void 0);
_.O([_.h({selectorArgs:["loopStateEntityKey_"],selector:_.o99}),_.g("design:type",Object)],vt.prototype,"playlistLoopStateEntity_",void 0);_.O([_.so("playlistLoopStateEntity_"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],vt.prototype,"onPlaylistLoopStateEntityChanged",null);vt=_.O([_.v({disableElementRegistration:!0,is:"yt-playlist-manager"})],vt);_.t(vt,"yt-playlist-manager",void 0,{mode:_.Ig("kevlar_poly_si_batch_j081")?1:2});var wU8,yk1=function(){if(wU8!==void 0)return wU8;var K=document.createElement("template");_.w(K,"\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");K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return wU8=K};var OC=function(){var K=_.G.apply(this,arguments)||this;K.lastCallback=null;K.getAccountLinkPromises={};K.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);K.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return K};
_.r(OC,_.G);_.z=OC.prototype;_.z.getLocation=function(){return window.location.href};
_.z.getCompletionUrl=function(){return _.$r(this.getLocation())};
_.z.containsRedirectState=function(K){return(K=_.pk(_.KIl(K)))?(new URLSearchParams(K)).get("redirect_state")!==null:!1};
_.z.createGalConfig=function(K,X){var F=new lFG;K=F=X?this.getPopupOrRedirectSetting(F,_.e8("LINK_API_KEY"),_.e8("LINK_API_KEY_REDIRECT"),K):vft(F,_.e8("LINK_API_KEY"));K.authUser=_.e8("SESSION_INDEX")||0;K.supportedFlows=new Set([4]);return K.build()};
_.z.getPopupOrRedirectSetting=function(K,X,F,P){this.isGalInteractionPopupMode(P)?(K.interactionMode=0,K=vft(K,X)):(K.interactionMode=1,X=this.getCompletionUrl(),K.completionUrl=X,K=vft(K,F));return K};
_.z.isGalInteractionPopupMode=function(K){if(this.redirectModeProviderAllowlist.has(K))switch(K){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.z.getStatusEntityKeyForProviderId=function(K){return _.XF(K+":all","accountLinkStatusEntity")};
_.z.findNestedPropValue=function(K,X){var F=!1,P=null;JSON.stringify(K,function(H,f){F||H!==X||(F=!0,P=f);return F?null:f});
return P};
_.z.findAccountLinkButtonViewModel=function(K,X){var F=null,P=!1;JSON.stringify(K,function(H,f){P||f.accountLinkStatusEntityKey!==X||f.accountLinkStatusSecondaryEntityKey||(P=!0,F=f);return P?null:f});
return F};
_.z.executeLinkingSuccessOrFailureCommands=function(K,X,F){var P=null,H;(X==null?0:(H=X.url)==null?0:H.includes("account_sharing"))?P=X==null?void 0:X.response:P=X==null?void 0:X.response;(X=this.findAccountLinkButtonViewModel(P,K))?(K=F?this.findNestedPropValue(X,"onSuccessCommand"):this.findNestedPropValue(X,"onFailureCommand"))?_.HW([K],this.hostElement):_.Gr(Error("al")):_.Gr(Error("bl`"+K))};
_.z.handleInitializeRequest=function(K,X){var F=this,P=Sjk(this.createGalConfig(K,!0));this.containsRedirectState(this.getLocation())?fW8(K,P.config,P.galService).then(function(H){var f=F.getStatusEntityKeyForProviderId(K);if(H.statusCode===1)X&&F.executeLinkingSuccessOrFailureCommands(f,X,!0),H=F.getLocation().indexOf("#"),H!==-1&&window.history.pushState(null,"",F.getLocation().substring(0,H));else return X&&F.executeLinkingSuccessOrFailureCommands(f,X,!1),Promise.reject(Error(H.statusMessage))}).catch(function(H){_.yy(H);
_.LL("gamingAccountLinkStatusChanged",{serviceId:K,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(H)}):this.getAccountLinkPromises[K]=P.startLinkingSession({serviceId:K})};
_.z.handleAccountLinkCommand=function(K){_.T(K,yLd)&&this.handleLinkRequest(_.T(K,yLd))};
_.z.handleLinkRequest=function(K){var X=this,F=K.thirdPartyId;if(F)if(this.isGalInteractionPopupMode(F)){var P=function(){X.closeAndFire("ytd-gaming-account-link-setting-renderer",K.onFailureCommand)},H=function(){X.closeAndFire("ytd-gaming-account-link-setting-renderer",K.onSuccessCommand)};
this.lastCallback=H;this.getAccountLinkPromises[F].then(function(f){cfs(f).then(function(u){u.statusCode===1?H():P()})}).catch(function(){P()})}else this.getAccountLinkPromises[F].then(function(f){cfs(f).then(function(u){if(u.statusCode!==1)return Promise.reject(Error(u.statusMessage))})}).catch(function(f){_.yy(f);
_.LL("gamingAccountLinkStatusChanged",{serviceId:F,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(f)})};
_.z.closeAndFire=function(K,X){_.xr(this.hostElement,"yt-close-popup-action",[K]);X&&_.HW([X],this.hostElement)};
_.z.handleAccountUnlinkCommand=function(K){_.T(K,WyG)&&this.handleUnlinkRequest(_.T(K,WyG))};
_.z.handleUnlinkRequest=function(K){var X=this,F=K.thirdPartyId;if(F){var P=function(){X.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",K.onFailureCommand)},H=function(){X.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",K.onSuccessCommand)};
this.lastCallback=H;var f=Sjk(this.createGalConfig(F,!1));this.unlinkUserGal(f,F).then(function(u){u.statusCode===1?H():P()}).catch(function(){P()})}};
_.z.unlinkUserGal=function(K,X){return K.deleteLink(X)};
_.z.handleLogAccountLinkingEventCommand=function(K){_.S("enable_gel_log_commands")&&_.T(K,dMt)&&(K=_.T(K,dMt).event)&&_.LL("gamingAccountLinkStatusChanged",K)};
_.Oi.Object.defineProperties(OC,{template:{configurable:!0,enumerable:!0,get:function(){return yk1()}}});
_.O([_.W(_.sT.YtOpenPopupBehavior),_.g("design:type",Object)],OC.prototype,"ytOpenPopupBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],OC.prototype,"ytActionHandlerBehavior",void 0);OC=_.O([_.v({disableElementRegistration:!0,is:"ytd-third-party-manager"})],OC);_.t(OC,"ytd-third-party-manager",function(){return yk1()},{mode:_.Ig("kevlar_poly_si_batch_j081")?1:2});var WiF,dTW=function(){return WiF!==void 0?WiF:WiF=document.createElement("template")};
document.head.appendChild(dTW().content);var eAF,RAv=function(){if(eAF!==void 0)return eAF;var K=document.createElement("template");_.w(K,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.pages.ytd_page_manager.ytd.page.manager.transitions.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");K.content.insertBefore(dTW().content.cloneNode(!0),K.content.firstChild);K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return eAF=K};var UTV=_.lr(["\n          :root {\n            --page-manager-transition-exit-ms: ","ms;\n            --page-manager-transition-wait-ms: ","ms;\n            --page-manager-transition-enter-ms: ","ms;\n          }\n      "]),Vb=function(){var K=_.G.apply(this,arguments)||this;K.currentPage=void 0;K.renderLoadingStateJobId=0;K.updatePageDataJobId=0;K.pageDisposeJobsets=new WeakMap;K.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"};K.applyZoomTransition=_.KG("web_page_transition_type")==="zoom";K.applySlideTransition=_.KG("web_page_transition_type")==="slide";K.TEST_ONLY=void 0;return K};
_.r(Vb,_.G);_.z=Vb.prototype;_.z.ready=function(){var K=_.i9();K.addProvider({provide:_.ax,useValue:this});K.addProvider({provide:_.aIN,useValue:this})};
_.z.created=function(){this.pagePool=new FiG;this.contextSwitcher=new M7t};
_.z.attached=function(){_.iX(this.hostElement,"attached");var K=_.i9().resolve(_.Nu(_.oj));K&&(this.contextSwitcher.JSC$17574_networkService_=K);this.viewTransitionManager=_.i9().resolve(_.Nu(_.YP));this.setupPageTransitionAnimation()};
_.z.getPageOffset=function(K){return K.getScrollTop()};
_.z.setPageOffset=function(K,X){try{K.setScrollTop(X)}catch(F){}};
_.z.setPageOffsetForNavigation=function(K,X){_.iX(this.hostElement,"yt-navigate-set-page-offset",{page:K,offset:X===void 0?0:X})};
_.z.pauseActiveContext=function(){var K=this.contextSwitcher;K.activeContext_&&K.activeContext_.pause()};
_.z.getModuleNameForType=function(K){return K==="watch"?_.S("kevlar_watch_fixie")?"watchFixie":_.S("kevlar_watch_grid")?"watchGrid":"watchFlexy":K==="shorts"||K==="search"?K:"browse"};
_.z.attachPage=function(K){var X,F=!_.S("pc_is_attached_ks")&&(K==null?void 0:(X=K.polymerController)==null?void 0:X.isAttached);if(!K.isAttached&&!F)try{_.C$(this.hostElement).appendChild(K)}catch(H){var P;_.yy(new _.nG("Error attaching page element for component",{origin:(P=this.currentPage)==null?void 0:P.is,component:K.is}))}};
_.z.setActivePage=function(K){var X=this,F=!1,P=function(){var H=X.isOnWatch(),f=X.currentPage;if(K)if(K!==X.currentPage){f&&(f.hidden=!0,f.active=!1,f.removeAttribute("role"));X.currentPage=K;var u,J=_.zw((u=X.data)==null?void 0:u.endpoint);f&&_.iX(X.hostElement,"yt-page-type-changed",{oldPageType:f.is,newPageType:K.is,newPageSubtype:J});_.Gb().dispatch(_.iY({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:K.is}));_.Gb().dispatch(_.iY({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:J||""}));K.hidden=
!1;X.attachPage(K);K.active=!0;K.setAttribute("role","main");f&&X.setPageOffsetForNavigation(K,0);_.S("kevlar_remove_page_dom_on_switch")&&!H&&f&&_.C$(X.hostElement).removeChild(f)}else F=!0;else H=new _.nG("Unable to set active page",f?f.is:"unknown origin",(J=X.data)==null?void 0:J.endpoint),_.jF(H)};
this.viewTransitionManager?vcv(this.viewTransitionManager,P,this.viewTransitionConfigForSetActivePage(this.currentPage,K)):P();return F};
_.z.viewTransitionConfigForSetActivePage=function(K,X){return _.S("web_thumbnail_to_watch_transition")&&(K==null?void 0:K.is)==="ytd-browse"&&this.isWatchPage(X)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(K==null?void 0:K.is)==="ytd-browse"&&(X==null?void 0:X.is)==="ytd-browse"&&K!==X?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.z.updatePageData=function(K){var X=this,F=this.data;this.updatePageDataJobId&&_.A9.cancelJob(this.updatePageDataJobId);this.data=K;return new _.fL(function(P){var H=function(){K.filler?X.performDataUpdate(K,F):Pbk(function(){X.performDataUpdate(K,F)});
var Z=_.wz();_.yZ(Z,"cr")||Z.processSignal("cr");P()},f=function(){K&&K.page==="watch"?X.updatePageDataJobId=_.u6(_.A9,H):H()};
if(_.S("kevlar_enable_mss_page_modules_client")&&K){var u=_.i9().resolve(_.eN),J=X.getModuleNameForType(K.page);(u=Gbw(u,[J]))?u.then(f):f()}else f()})};
_.z.isDownloadsPage=function(K){var X,F;return(K==null?void 0:(X=K.endpoint)==null?void 0:(F=X.browseEndpoint)==null?void 0:F.browseId)==="FEdownloads"};
_.z.setPlayerSyncInterval=function(K){var X;return _.q(function(F){if(F.nextAddress==1)return _.Y(F,_.i9().resolve(_.bC),2);X=F.yieldResult;X.setUpPositionSyncInterval(K);_.JT(F)})};
_.z.performDataUpdate=function(K,X){_.S("kevlar_early_popup_close")||_.xr(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var F=!K.filler;F&&(_.Ac("lps"),_.S("config_age_report_killswitch")||WSs());var P=xn(K),H,f=!1;if(_.S("kevlar_remove_page_dom_on_switch")){var u=X&&xn(X);P===u&&(H=this.getCurrentPage())}H||(H=Wt(this.pagePool,P));F&&zeW(this.pagePool.elementPoolPopulator,P);F&&!this.renderLoadingStateJobId&&(f=this.setActivePage(H));if(H){u=P==="watch";var J=
P==="shorts",Z=P==="learning_journey_watch";_.S("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(H);if(u||J||Z)H.playerData=K.playerResponse;if(J){K.reelWatchSequenceResponse?H.reelWatchSequenceResponse=K.reelWatchSequenceResponse:K.cachedReelWatchSequenceResponse?H.reelWatchSequenceResponse=K.cachedReelWatchSequenceResponse:_.S("web_enable_cached_reel_sequence_fix")&&H.cachedReelWatchSequenceResponse&&!H.reelWatchSequenceResponse&&(H.reelWatchSequenceResponse=H.cachedReelWatchSequenceResponse);
H.currentEndpoint=K.endpoint;var M;H.isPreviousPageShorts=!!(X==null?0:(M=X.endpoint)==null?0:M.reelWatchEndpoint);K.cachedReelWatchSequenceResponse=K.reelWatchSequenceResponse||K.cachedReelWatchSequenceResponse||(X==null?void 0:X.cachedReelWatchSequenceResponse);H.cachedReelWatchSequenceResponse=K.cachedReelWatchSequenceResponse}M=this.isDownloadsPage(K);var n=this.isDownloadsPage(X);M&&!n?this.setPlayerSyncInterval(6E5):!M&&n&&this.setPlayerSyncInterval();_.S("block_all_player_prefetch_requests")||
this.preparePrefetchRequest(K,H,F,u,J,Z);aAV(_.i9().resolve(_.Wj),X,K);_.gK(_.i9().resolve(_.BO));_.S("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(H);F?(F=typeof H.loadPage,F==="function"?(H.pageContext=nld(this.contextSwitcher,H,H.data!==K.response),F=function(){H.loadPage(K.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&H.is==="ytd-browse"&&f&&this.isDifferentBrowseId(K==null?void 0:K.endpoint,X==null?void 0:X.endpoint)?
this.applySlideTransition?vcv(this.viewTransitionManager,F,{transitionName:"slide"}):vcv(this.viewTransitionManager,F,{transitionName:"zoom"}):F()):_.wc(new _.nG("b/38014653 ",[P,
H.is,H.nodeName,F,H.isAttached,X&&xn(X),this.hostElement.children.length])),_.Ac("pdl")):(H.hidden=!0,K.response.filler=!0,H.data=K.response,this.attachPage(H));_.iX(this.hostElement,"yt-page-data-updated",{pageType:P})}_.cu(_.A9,function(){_.S("logging_avoid_blocking_during_navigation")&&_.PH9().transition("none");var c=e6o(),B=H;if(K){var L=JDk(K),A=Zyv(K),d;a:{if(K.playerResponse){var R=K.playerResponse,l;if((d=R.auxiliaryUi)==null?0:(l=d.messageRenderers)==null?0:l.upsellDialogRenderer){d=R.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(K.response&&(d=K.response,(R=d.overlay)==null?0:R.upsellDialogRenderer)){d=d.overlay.upsellDialogRenderer;break a}d=void 0}var a;var E;l=(a=K.playerResponse)==null?void 0:(E=a.auxiliaryUi)==null?void 0:E.messageRenderers;a=(l==null?void 0:l.enforcementMessageViewModel)||(l==null?void 0:l.bkaEnforcementMessageViewModel);a=(a==null?void 0:a.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?a:void 0;var V;a:{if(K.response&&(E=K.response,(V=E.overlay)==null?0:V.commandWrapperPromoRenderer)){V=
E.overlay.commandWrapperPromoRenderer;break a}V=void 0}dA8(c,L,A,d,a,V,B)}})};
_.z.preparePrefetchRequest=function(K,X,F,P,H,f){var u,J,Z,M,n,c,B,L,A,d,R,l,a,E,V;return _.q(function(x){if(x.nextAddress==1)return!F||!(P||H||f)||_.S("kevlar_disable_background_prefetch")&&_.hV(_.NRl)()===0?x.return():(u=_.te(X))?_.Y(x,u.getPlayerPromise(),2):x.return();J=x.yieldResult;Z=_.i9().resolve(_.Nu(_.oj));if(!Z)return x.return();if(H)return M=_.In(_.qT),Yos(M,(n=K.endpoint)==null?void 0:n.reelWatchEndpoint,X.reelWatchSequenceResponse,J,Z),x.return();L=(c=K.response)==null?void 0:(B=c.responseContext)==
null?void 0:B.webResponseContextExtensionData;if(!L)return x.return();a=(A=K.response)==null?void 0:(d=A.contents)==null?void 0:(R=d.twoColumnWatchNextResults)==null?void 0:(l=R.autoplay)==null?void 0:l.autoplay;E=_.i9().resolve(_.AW);V=_.In(_.qT);Qgo(V,L,J,Z,E,a);_.JT(x)})};
_.z.movePlayerToWatch=function(K){var X=this,F,P;return _.q(function(H){F=Wt(X.pagePool,"watch");P=F.getPlayerContainer();K.appendTo(P);_.JT(H)})};
_.z.movePlayerToShorts=function(K){var X=this,F,P,H;return _.q(function(f){F=Wt(X.pagePool,"shorts");P=F.getPlayerContainer();(H=K)==null||H.appendTo(P,void 0,!0);_.JT(f)})};
_.z.getPlayerFromWatch=function(){var K=Wt(this.pagePool,"watch");return _.te(K)};
_.z.getPlayerFromShorts=function(){var K=Wt(this.pagePool,"shorts");return _.te(K)};
_.z.startLoadingWatch=function(){var K=Wt(this.pagePool,"watch");this.renderLoadingStateJobId?(_.A9.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(K)};
_.z.startLoadingShorts=function(){var K=Wt(this.pagePool,"shorts");this.setActivePage(K)};
_.z.startLoadingLearningJourney=function(){var K=Wt(this.pagePool,"learning_journey_watch");this.setActivePage(K)};
_.z.getCurrentPage=function(){return this.currentPage};
_.z.getDestinationPageType=function(){return this.destinationPageType};
_.z.getCurrentData=function(){return this.data};
_.z.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.z.isOnShorts=function(){var K;return((K=this.currentPage)==null?void 0:K.is)==="ytd-shorts"};
_.z.isWatchPage=function(K){return!!K&&(K.is==="ytd-watch-flexy"||K.is==="ytd-watch-fixie"||K.is==="ytd-watch-grid")};
_.z.preparePage=function(K,X){var F=this,P=function(){var u=F.pagePool.preparePage(K,F.currentPage,X);u&&F.attachPage(u)},H=function(u){_.Wu(u,X);
_.yy(u)};
if(_.S("kevlar_enable_mss_page_modules_client")){var f=this.getModuleNameForType(K);if(f=Gbw(_.i9().resolve(_.eN),[f])){f.then(P.bind(this)).catch(H.bind(this));return}}try{P()}catch(u){H(u)}};
_.z.lazyPrepareCriticalPages=function(K,X){K=_.zw(X)||K;_.S("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(K).then(this.maybePrepareWatchPage.bind(this,K)):this.maybePrepareWatchPage(K)};
_.z.maybePrepareWatchPage=function(K){K!=="watch"&&_.cu(_.A9,this.preparePage.bind(this,"watch"))};
_.z.downloadPageModules=function(K){K=this.getModuleNameForType(K);var X=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);X.delete(K);var F=_.i9().resolve(_.eN);F.JSC$16309_loadModules(K);return F.JSC$16309_loadModules.apply(F,_.LZ(X))};
_.z.renderPageLoadingState=function(K,X){this.preparePage(K,X);var F=Wt(this.pagePool,K);F.loadingData&&(F.loadingData.endpoint=X);F.loading=!0;this.setActivePage(F);K==="watch"&&_.iX(this.hostElement,"yt-guide-close")};
_.z.prepareForNavigation=function(K,X){var F=this;if(this.currentPage&&this.data){var P=_.zw(X)||K;this.destinationPageType=P;xn(this.data)==P&&_.iX(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(K==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.A9.cancelJob(this.renderLoadingStateJobId);_.i9().resolve(_.Wj).deactivate(X);var H=this.data;this.renderLoadingStateJobId=_.QW(_.A9,function(){if(F.data!=H){var f=Wt(F.pagePool,K);F.setActivePage(f)}else F.renderPageLoadingState(K,
X);F.renderLoadingStateJobId=0},150)}};
_.z.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var K=new _.Ex(1);this.currentPage.pageDisposeJobs.forEach(function(X){_.bZ(K,X)});
this.pageDisposeJobsets.set(this.currentPage,K)}};
_.z.flushPageDisposeJobset=function(K){var X=this.pageDisposeJobsets.get(K);X&&(X.flushJobs(),this.pageDisposeJobsets.delete(K))};
_.z.onYtStopOldPlayer=function(K,X){X=X===void 0?!1:X;var F,P=_.X$("kevlar_new_stop_old_player_logic_pages");if(_.S("kevlar_check_current_page_on_stop_old_player")&&(P.length===0||this.currentPage&&P.includes(this.currentPage.is)))if(this.data&&(F=xn(this.data)),xn(K)===F&&this.currentPage&&xn(this.currentPage.data)!==F)var H=_.te(this.currentPage);else F=xn(this.data),H=Wt(this.pagePool,F),H=_.te(H);else this.data&&(F=xn(this.data),H=Wt(this.pagePool,F),H=_.te(H));if(H)if(K=xn(K),P=Wt(this.pagePool,
K),P=_.te(P),H==P)X&&!_.S("kevlar_disable_preemptive_player_reset")&&H.resetForNewPlayback();else if(X=F==="watch"&&K!=="watch",!X||K==="shorts"||_.MYT()&&!T21(this.data)&&K!=="yts-products"&&K!="mini_app"&&K!="playables")F=_.i9().resolve(_.Wj),X&&F.isMiniplayerActive()&&F.pipController.getWindow()||H.stop()};
_.z.setupPageTransitionAnimation=function(){var K=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){E0(this.viewTransitionManager,"slide",{beforeTransition:function(){K.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){K.hostElement.style.viewTransitionName=""}});
E0(this.viewTransitionManager,"zoom",{beforeTransition:function(){K.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){K.hostElement.style.viewTransitionName=""}});
var X=_.kU("web_page_transition_exit_ms"),F=_.kU("web_page_transition_wait_ms"),P=_.kU("web_page_transition_enter_ms");if(!isNaN(X)||!isNaN(F)||!isNaN(P))if(X=duW(UTV,X,F,P))F=document.createElement("style"),F.textContent=_.Tj3(X),document.head.appendChild(F)}};
_.z.isDifferentBrowseId=function(K,X){K=_.T(K,_.f$);X=_.T(X,_.f$);return(K==null?void 0:K.browseId)!==(X==null?void 0:X.browseId)};
_.Oi.Object.defineProperties(Vb,{template:{configurable:!0,enumerable:!0,get:function(){return RAv()}}});
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Vb.prototype,"ytActionHandlerBehavior",void 0);Vb=_.O([_.v({disableElementRegistration:!0,is:"ytd-page-manager"})],Vb);_.t(Vb,"ytd-page-manager",function(){return RAv()},{mode:_.Ig("kevlar_poly_si_batch_j081")?1:2});var gO=function(K,X,F){F=F===void 0?!1:F;_.LJ.call(this);this.draggableElement=K;this.callbacks=X;this.allowClicks=F;this.dragOccurred=!1;this.internalDragger=new _.ja(this.draggableElement);this.dragDelay=new _.Ei(this.delayedDrag.bind(this));hAo(this);this.allowClicks&&(_.wMt(this.internalDragger,5),K.addEventListener("click",_.Pc(this,this.validateClick),{capture:!0}))};
_.r(gO,_.LJ);var hAo=function(K){_.nB(K.internalDragger,"earlycancel",function(){K.allowClicks&&(K.dragOccurred=!1)});
_.nB(K.internalDragger,"start",function(X){var F,P;(P=(F=K.callbacks).onStartDrag)==null||P.call(F,X);!X.defaultPrevented&&K.allowClicks&&(K.dragOccurred=!0)});
_.nB(K.internalDragger,"beforedrag",function(X){X.preventDefault();K.lastOffset=new _.jA(X.clientX-K.internalDragger.startX,X.clientY-K.internalDragger.startY);K.dragDelay.start()});
_.nB(K.internalDragger,"end",function(){K.dragDelay.stop();var X,F;(F=(X=K.callbacks).onEndDrag)==null||F.call(X);K.lastOffset=void 0})};
gO.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
gO.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.Pc(this,this.validateClick),{capture:!0})};
gO.prototype.validateClick=function(K){this.dragOccurred&&(this.dragOccurred=!1,K.stopPropagation(),K.preventDefault())};var EC=function(K,X){_.LJ.call(this);this.JSC$17775_resizeContainer=K;this.callbacks=X;this.aspectRatio=16/9;this.JSC$17775_resizers=[];K=_.D(this.JSC$17775_resizeContainer.children);for(X=K.next();!X.done;X=K.next())mTs(this,X.value)};
_.r(EC,_.LJ);EC.prototype.disposeInternal=function(){for(var K=_.D(this.JSC$17775_resizers),X=K.next();!X.done;X=K.next())X.value.dispose();K=_.D(this.JSC$17775_resizeContainer.children);for(X=K.next();!X.done;X=K.next())X.value.setAttribute("disabled","");this.JSC$17775_resizers.length=0};
EC.prototype.setSize=function(K){this.currentMiniplayerSize=K};
EC.prototype.setAspectRatio=function(K){this.aspectRatio=K};
EC.prototype.update=function(K,X){for(var F=_.D(this.JSC$17775_resizeContainer.children),P=F.next();!P.done;P=F.next()){P=P.value;var H=P.getAttribute("alignment");_.x1(P,"disabled",H===K||H===X)}};
var mTs=function(K,X){var F=X.getAttribute("alignment"),P=new gO(X,{onStartDrag:function(H){if(X.hasAttribute("disabled"))H.preventDefault();else{K.dragStartSize=K.currentMiniplayerSize;var f,u;(u=(f=K.callbacks).onStartResize)==null||u.call(f)}},
onDrag:function(H){if(K.dragStartSize){F!=="north"&&F!=="west"||H.scale(-1);var f=F==="north"||F==="south";H=f?H.y:H.x;f&&K.aspectRatio>=1?H*=K.aspectRatio:!f&&K.aspectRatio<1&&(H/=K.aspectRatio);K.callbacks.onResize(K.dragStartSize+H)}}});
K.JSC$17775_resizers.push(P)};var GP8,l9o=function(){return GP8!==void 0?GP8:GP8=document.createElement("template")};
document.head.appendChild(l9o().content);var vu8;var a91=_.$c(function(K){var X=_.t_(),F=K.onDrag,P=K.onDragStart,H=K.onDragEnd,f=_.tA(K,{allowClicks:!1,dragThreshold:5}),u=f.dragThreshold,J=f.allowClicks;K=f.children;f=f.className;var Z=void 0,M=void 0,n=new _.jA(0,0),c=!1;_.AV(function(){Z=new _.ja(X.value);M=new _.Ei(L);B(Z,M);if(J()){_.wMt(Z,u());var d;(d=X.value)==null||d.addEventListener("click",A,{capture:!0})}_.AZ(function(){var R;(R=Z)==null||R.dispose();if(J()){var l;(l=X.value)==null||l.removeEventListener("click",A,{capture:!0})}})});
var B=function(d,R){_.nB(d,"earlycancel",function(){J()&&(c=!1)});
_.nB(d,"start",function(l){P==null||P(l);l.defaultPrevented||J()&&(c=!0)});
_.nB(d,"beforedrag",function(l){Z&&M&&(l.preventDefault(),n=new _.jA(l.clientX-Z.startX,l.clientY-Z.startY),M.start())});
_.nB(d,"end",function(){R.stop();H==null||H();n=new _.jA(0,0)})},L=function(){n&&F(n)},A=function(d){c&&(c=!1,d.stopPropagation(),d.preventDefault())};
return _.Q("yt-draggable",{el:X,class:_.HO("ytDraggableComponentHost",f)},K)},"ng");var tEW=_.$c(function(K){var X=_.D(_.u_(0,void 0,"CvAwBd")),F=X.next().value,P=X.next().value;X=function(H){var f={},u={};return _.Q(a91,{className:_.HO("ytdMiniplayerComponentResizer",(f.ytdMiniplayerComponentResizerDisabled=function(){return H===K.horizontalAlignment()||H===K.verticalAlignment()},f.ytdMiniplayerComponentResizerNorth=H==="north",f.ytdMiniplayerComponentResizerEast=H==="east",f.ytdMiniplayerComponentResizerSouth=H==="south",f.ytdMiniplayerComponentResizerWest=H==="west",f)),
onDragStart:function(){P(K.currentMiniplayerSize());if(K.onResizeStart)K.onResizeStart()},
onDrag:function(J){H!=="north"&&H!=="west"||J.scale(-1);var Z;J=(Z=H==="north"||H==="south")?J.y:J.x;var M=K.currentAspectRatio();Z&&M>=1?J*=M:!Z&&M<1&&(J/=M);Z=J;K.onResize(F()+Z)}},_.Q("div",{class:_.HO("ytdMiniplayerComponentResizerCorner",(u.ytdMiniplayerComponentResizerNorthCorner=H==="north",u.ytdMiniplayerComponentResizerEastCorner=H==="east",u.ytdMiniplayerComponentResizerSouthCorner=H==="south",u.ytdMiniplayerComponentResizerWestCorner=H==="west",u))}))};
return _.Q("div",{class:"ytdMiniplayerComponentResizers"},X("north"),X("east"),X("south"),X("west"))},"og");var $TJ=16/9,OE1=_.$c(function(){var K=_.t_(),X=_.D(_.u_(new _.q4(NaN,NaN),void 0,"YeKki")),F=X.next().value,P=X.next().value;X=_.D(_.u_(!1,void 0,"DcXgUd"));var H=X.next().value,f=X.next().value;X=_.D(_.u_(!1,void 0,"aDeXOc"));var u=X.next().value,J=X.next().value;X=_.D(_.u_(!1,void 0,"JpZfjb"));var Z=X.next().value,M=X.next().value;X=_.D(_.u_(!1,void 0,"EmCWpc"));var n=X.next().value,c=X.next().value;X=_.D(_.u_(!1,void 0,"ovvtt"));var B=X.next().value,L=X.next().value;X=_.D(_.u_(!1,void 0,"wPIoNd"));
var A=X.next().value,d=X.next().value;X=_.D(_.u_($TJ,void 0,"AmisJf"));var R=X.next().value,l=X.next().value,a=_.D(_.u_(!1,void 0,"uNKP1c"));X=a.next().value;var E=a.next().value;a=_.D(_.u_(!1,void 0,"n9hvIf"));var V=a.next().value,x=a.next().value;a=_.D(_.u_(void 0,void 0,"Sjx4Dc"));var N=a.next().value,Dl=a.next().value;a=_.D(_.u_(_.e8("HTML_DIR")==="rtl"?"west":"east",void 0,"Qv2TXd"));var Mq=a.next().value,pO=a.next().value;a=_.D(_.u_("south",void 0,"jyzxy"));var y9=a.next().value,Wy=a.next().value;
a=_.D(_.u_(400,void 0,"JFUs2d"));var eP=a.next().value,gw=a.next().value,a3=_.i9().resolve(_.Wj).miniplayerPropSignalMap[0],dL=a3.data,nt=a3.externalPlaylistData;a=a3.toastData;var ht=a3.playabilityStatus,YC=a3.isReadyToResume,uu=a3.isDisabled,X8=a3.watchWhile,qV=a3.playerVe,J0=a3.expandVe,yd=a3.closeVe,uT=a3.readyToResumeVe,SU=a3.readyToResumeCloseVe,RC=a3.repositionVe,tw=a3.resizeVe;a3=_.D(_.qB(YC));var TE=a3.next().value,NV=a3.next().value,$E=!1,bu=!1,sZ;_.AV(function(){P(_.qD());K.value.addEventListener("animationend",
function(OZ){OZ.target===K.value&&(L(!1),d(!1))});
hFG(K.value)});
_.aI("yt-window-resized",function(OZ){OZ&&P(OZ)});
var tt=function(){sZ&&l(sZ.getVideoAspectRatio())},BF=function(){if(sZ){var OZ=sZ.getPlayerState()===1;
TE()&&OZ&&NV(!1)}},BN=function(){var OZ=J0();
if(OZ){var TJ=_.AD(3);TJ&&_.vW(TJ,OZ)}},wL=function(){var OZ=yd(),TJ=SU();
OZ&&_.vW(_.AD(3),OZ);YC()&&TJ&&_.vW(_.AD(3),TJ)};
_.aI("yt-activate-miniplayer",function(OZ){var TJ;return _.q(function(x5){if(x5.nextAddress==1)return H()?x5.return():_.Y(x5,(TJ=_.i9().resolve(_.Wj).getPlayerElement())==null?void 0:TJ.getPlayerPromise(),2);sZ=x5.yieldResult;if(!sZ)return x5.return();!V()&&_.S("kevlar_watch_while_v2")&&(Wy(OZ&&!_.S("kevlar_watch_while_bottom_align")?"north":"south"),pO(_.e8("HTML_DIR")==="rtl"?"west":"east"));var fx=sZ;fx.addEventListener("onVideoDataChange",tt);fx.addEventListener("onStateChange",BF);fx.addEventListener("onExpandMiniplayer",
BN);fx.addEventListener("onCloseMiniplayer",wL);l(sZ.getVideoAspectRatio());f(!0);U$k()||L(!0);_.JT(x5)})});
_.aI("yt-deactivate-miniplayer",function(OZ){return _.q(function(TJ){if(!H())return TJ.return();f(!1);NV(!1);d(OZ);c(!1);J(!1);if(sZ){var x5=sZ;x5.removeEventListener("onVideoDataChange",tt);x5.removeEventListener("onStateChange",BF);x5.removeEventListener("onExpandMiniplayer",BN);x5.removeEventListener("onCloseMiniplayer",wL)}U$k()||L(!0);_.JT(TJ)})});
var Zd=function(){return!(X8()&&_.S("kevlar_watch_while_modern"))},fs=function(){var OZ;
return!((OZ=nt())==null||!OZ.contents)},ft=function(){var OZ=eP();
var TJ=F();TJ=Math.min(Math.min(TJ.width,TJ.height)-32,720);var x5=R(),fx=Zd(),qu=fs()&&u(),jO=Math.min(OZ,TJ);OZ=new _.q4(192,fx?116:192);x5=Yms(new _.q4(qu?$TJ:x5,1),new _.q4(jO,fx?jO-76:jO));OZ.width<=x5.width&&OZ.height<=x5.height||(Z$w(x5,OZ),x5.width=Math.min(x5.width,TJ),x5.height=Math.min(x5.height,TJ));return new _.q4(x5.width,_.rH(192,x5.height+avF(fx,qu),720))},Bk=function(){var OZ=ft(),TJ=Zd(),x5=fs()&&u();
return new _.q4(OZ.width,OZ.height-avF(TJ,x5))},z6=function(){var OZ=function(TJ){TJ.target===K.value&&n()&&(c(!1),K.value.removeEventListener("transitionend",OZ))};
U$k()||(K.value.addEventListener("transitionend",OZ),c(!0));J(!u())};
_.rs(function(){var OZ=qV(),TJ=_.AD(3),x5=_.r_(3);if(TJ&&x5&&OZ){_.Us(TJ,x5,OZ);x5=RC();var fx=tw(),qu=J0(),jO=yd(),LG=SU();qu&&jO&&LG&&(_.hc(TJ,OZ,[qu,jO,LG]),_.G6(TJ,[qu,jO]));x5&&fx&&_.hc(TJ,OZ,[x5,fx])}},"yiTJkc");
_.rs(function(){var OZ=uT();if(OZ){var TJ=_.AD(0),x5=_.r_(0);TJ&&x5&&(_.Us(TJ,x5,OZ),_.G6(TJ,[OZ]))}},"fy89qe");
a3={};return _.Q("ytd-miniplayer",{el:K,class:_.HO("ytdMiniplayerComponentHost",(a3.ytdMiniplayerComponentVisible=function(){return H()||B()},a3.ytdMiniplayerComponentAnimatingSnap=Z,a3.ytdMiniplayerComponentAnimatingPlaylistExpand=n,a3.ytdMiniplayerComponentAnimatingFade=B,a3),function(){if(B()){var OZ=y9();
var TJ=H(),x5=A();OZ=TJ?OZ==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":x5?OZ==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":OZ==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else OZ="";return OZ}),
style:_.Je({top:function(){return y9()==="north"?"16px":""},
right:function(){return Mq()==="east"?"16px":""},
bottom:function(){return y9()==="south"?"16px":""},
left:function(){return Mq()==="west"?"16px":""},
width:function(){return ft().width+"px"},
height:function(){return ft().height+"px"},
transform:function(){var OZ=N();return OZ?"translate("+OZ.x+"px, "+OZ.y+"px)":""}})},_.Q("div",{class:"ytdMiniplayerComponentContent"},_.Q(a91,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(OZ){var TJ=vrv(Mq(),y9(),F(),ft(),N()),x5=Bk();Math.abs(OZ.clientY-(TJ.y+x5.height))>15?(E(!0),OZ=_.AD(3),TJ=RC(),$E||($E=!0,OZ&&TJ&&_.G6(OZ,[TJ])),OZ&&TJ&&_.vW(OZ,TJ)):OZ.preventDefault()},
onDrag:function(OZ){Dl(OZ)},
onDragEnd:function(){var OZ=m$v(vrv(Mq(),y9(),F(),ft(),N()),F(),ft()),TJ=lvV(Mq(),y9(),F(),ft()),x5=lvV(OZ.horizontalAlignment,OZ.verticalAlignment,F(),ft());x5=new _.jA(x5.x-TJ.x,x5.y-TJ.y);var fx;TJ=TJ.y+(((fx=N())==null?void 0:fx.y)||0)+ft().height/2;var qu=function(){Mq()===OZ.horizontalAlignment&&y9()===OZ.verticalAlignment||x(!0);pO(OZ.horizontalAlignment);Wy(OZ.verticalAlignment);Dl(void 0)},jO=function(LG){LG.target===K.value&&Z()&&(M(!1),qu(),K.value.removeEventListener("transitionend",jO))};
E(!1);y9()==="south"&&TJ>F().height?(qu(),_.i9().resolve(_.Wj).close()):(K.value.addEventListener("transitionend",jO),M(!0),Dl(x5))}},_.Q(_.p,{cond:H,
then:function(){return _.Q(_.OWt,{isDisabled:uu,playabilityStatus:ht,size:Bk})}}),_.Q(_.p,{cond:Zd,
then:function(){return _.Q(_.tU8,{isReadyToResume:TE,data:dL,expanded:u,onExpandClick:z6,playlistData:nt})}}),_.Q(_.p,{cond:X,
then:function(){return _.Q("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.Q(_.p,{cond:function(){return fs()&&u()||n()},
then:function(){return _.Q(_.uGE,{className:"ytdMiniplayerComponentPlaylistPanel",data:nt,hideHeaderText:!0,withinMiniplayer:!0})}}),_.Q("div",{class:"ytdMiniplayerComponentToast"},_.Q(_.VUv,{toastData:a}))),_.Q(tEW,{onResize:function(OZ){gw(_.rH(192,OZ,720))},
onResizeStart:function(){var OZ=_.AD(3),TJ=tw();bu||(bu=!0,OZ&&TJ&&_.G6(OZ,[TJ]));OZ&&TJ&&_.vW(OZ,TJ)},
currentAspectRatio:R,currentMiniplayerSize:eP,horizontalAlignment:Mq,verticalAlignment:y9}))},"pg");_.S("ytd_miniplayer_to_wiz")&&_.EP(OE1,"ytd-miniplayer",{});_.EP(_.VUv,"ytd-miniplayer-toast",{props:{toastData:_.vU}});var VE5=16/9,gus=new _.q4(400,400/VE5),bo=function(){var K=_.G.apply(this,arguments)||this;K.active=!1;K.hasNoData=!1;K.enabled=!1;K.expanded=!1;K.readyToResume=!1;K.isDisabled=!1;K.externalPlaylistData={};K.premiumBadges=[];K.watchWhile=!1;K.playerState=null;K.verticalAttachment="south";K.horizontalAttachment=_.e8("HTML_DIR")==="rtl"?"west":"east";K.isAnimatingFade=!1;K.isAnimatingSnap=!1;K.isAnimatingExpand=!1;K.isDragging=!1;K.playerHidden=!1;K.hasPlaylistData=!1;K.closed=!1;K.expandedClosed=!1;
K.isForReadyToResume=!1;K.watchResponse=null;K.player=null;K.playerVe=null;K.expandVe=null;K.closeVe=null;K.readyToResumeCloseVe=null;K.disabledInitialStateIsPlaying=!1;K.PLAYER_EVENTS=new Map;K.aspectRatio=VE5;K.currentMiniplayerSize=400;K.userSetSize=!1;K.userSetPosition=!1;K.userHasDragged=!1;K.maxMiniplayerSize=720;K.transform=new _.jA(0,0);K.windowDimensions=new _.q4(NaN,NaN);K.dimensions=gus;K.screenLayer=3;K.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return K};
_.r(bo,_.G);_.z=bo.prototype;_.z.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerViewTransitionTasks()};
_.z.ready=function(){this.setUpDragging();this.setUpResizing()};
_.z.attached=function(){this.onWindowResized(_.qD());this.hostElement.addEventListener("animationend",_.Pc(this,this.resetFadingAnimation))};
_.z.detached=function(){this.hostElement.removeEventListener("animationend",_.Pc(this,this.resetFadingAnimation))};
_.z.resetFadingAnimation=function(K){K.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.z.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.z.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.z.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var K=_.AD(this.screenLayer);this.readyToResumeCloseVe&&K&&_.G6(K,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.z.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var K=_.AD(0),X=_.r_(0);K&&X&&(_.Us(K,X,this.readyToResumeVe),_.G6(K,[this.readyToResumeVe]))}};
_.z.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var K=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=K===-1||K===1||K===3)&&this.player.pauseVideo()}};
_.z.activate=function(K,X){X=X===void 0?!1:X;var F=this,P;return _.q(function(H){if(H.nextAddress==1)return F.setInitialActivatePositioning(X),F.enabled=!0,F.active=!0,F.expanded=!1,F.closed=!1,F.expandedClosed=!1,F.watchWhileHidden||(F.isAnimatingFade=!0),_.i9().resolve(_.AW).setPlaylistComponent(F.JSC$17786_playlistPanel),K.appendTo(F.playerContainer),_.Y(H,K.getPlayerPromise(),2);P=H.yieldResult;P.setSizeStyle(!1,!0);F.ytPlayerListenerBehavior.listenToPlayerEvents(P,F.PLAYER_EVENTS);F.player=P;
F.watchWhile&&_.S("kevlar_watch_while_minimum_size")&&F.setMiniplayerSize(192);F.setAspectRatio(F.player.getVideoAspectRatio());F.onIsDisabledChanged();_.JT(H)})};
_.z.setInitialActivatePositioning=function(K){if(!this.userSetPosition&&_.S("kevlar_watch_while_v2")){this.verticalAttachment=K&&!_.S("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.e8("HTML_DIR")==="rtl"?"west":"east";var X;(X=this.JSC$17786_resizers)==null||X.update(this.horizontalAttachment,this.verticalAttachment)}};
_.z.deactivate=function(K,X){var F=this;return _.q(function(P){if(!F.active)return P.return();K||(F.expanded?F.expandedClosed=!0:F.closed=!0);F.active=!1;F.isForReadyToResume=!1;X&&_.S("kevlar_watch_while_counterfactual")||(F.isAnimatingFade=!0);F.player&&F.ytPlayerListenerBehavior.unlistenFromPlayerEvents(F.player,F.PLAYER_EVENTS);F.player=null;_.JT(P)})};
_.z.onMetadataTap=function(K){this.expandVe&&(K===void 0||K)&&(K=_.AD(this.screenLayer))&&_.vW(K,this.expandVe);_.Qr(_.i9().resolve(_.Wj))};
_.z.onDisabledTap=function(K){K.target===_.C$(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.z.onPlaylistExpandTap=function(K){if(this.hasPlaylistData){K=_.lN(K)||[];K=_.D(K);for(var X=K.next();!X.done;X=K.next()){X=X.value;if(X===this.hostElement)break;if(X.classList&&X.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.z.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.Pc(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.z.animatedResizePlaylist=function(K){K.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.Pc(this,this.animatedResizePlaylist)))};
_.z.getExpandIcon=function(K){return K?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.z.onPlayerVideoDataChange=function(){var K,X=(K=this.player)==null?void 0:K.getVideoAspectRatio();X&&X!==this.aspectRatio&&this.setAspectRatio(X)};
_.z.setAspectRatio=function(K){if(this.active){this.aspectRatio=K;this.updateDimensionsAndResize();var X;(X=this.JSC$17786_resizers)==null||X.setAspectRatio(K)}};
_.z.updateDimensionsAndResize=function(){var K=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),X=this.expanded?VE5:this.aspectRatio,F=new _.q4(192,this.showInfoBar?116:192);K=Yms(new _.q4(X,1),new _.q4(K,this.showInfoBar?K-76:K));F.width<=K.width&&F.height<=K.height||(Z$w(K,F),K.width=Math.min(K.width,this.maxMiniplayerSize),K.height=Math.min(K.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&X<=1?Math.max(K.width,K.height)+76:Math.max(K.width,K.height)));this.dimensions=
new _.q4(K.width,this.clamp(K.height+this.getNonPlayerHeight()));this.resize()};
_.z.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var K=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=K.height+"px";var X;(X=this.player)==null||X.setInternalSize(K.width,K.height)};
_.z.getPlayerSize=function(K){var X=Math.max(0,K.height-this.getNonPlayerHeight());return new _.q4(K.width,X)};
_.z.getNonPlayerHeight=function(){var K=0;this.showInfoBar&&(K+=76);this.expanded&&(K+=285);return K};
_.z.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.i9().resolve(_.Wj).close()};
_.z.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.z.logClosingClick=function(){this.closeVe&&_.vW(_.AD(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.vW(_.AD(this.screenLayer),this.readyToResumeCloseVe)};
_.z.onPlayerExpandMiniplayer=function(){if(this.expandVe){var K=_.AD(this.screenLayer);K&&_.vW(K,this.expandVe)}};
_.z.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var K=this.playerState===1;this.continueWatching&&K&&(this.continueWatching=!1);this.premiumBadges.length&&K&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.z.getScreenLayer=function(){return this.screenLayer};
_.z.logMiniplayer=function(){var K=_.AD(this.screenLayer),X=_.r_(this.screenLayer);K&&X&&this.playerVe&&(_.Us(K,X,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.hc(K,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.G6(K,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.hc(K,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.z.computePlaylistData=function(K,X){return X};
_.z.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.z.computeExpandButtonHidden=function(K,X,F){return!K||!X||F};
_.z.computePlaylistIndexHidden=function(K,X){return!K||X};
_.z.computePlaylistPanelHidden=function(K,X){return!X&&!K};
_.z.computeExpandButtonLabel=function(K){return K?_.uY("MINIPLAYER_COLLAPSE_LABEL"):_.uY("MINIPLAYER_EXPAND_LABEL")};
_.z.computeDisabledStateCloseButtonLabel=function(){return _.uY("MINIPLAYER_CLOSE",void 0,"Close")};
_.z.onWindowResized=function(K){K&&(K=this.windowDimensions=K,this.maxMiniplayerSize=Math.min(Math.min(K.width,K.height)-32,720),this.updateDimensionsAndResize())};
_.z.setUpResizing=function(){var K=this;this.JSC$17786_resizers||(this.JSC$17786_resizers=new EC(this.JSC$17786_resizeContainer,{onStartResize:function(){K.handleResizeStart()},
onResize:function(X){K.handleResize(X)}}),this.JSC$17786_resizers.setSize(this.currentMiniplayerSize),this.JSC$17786_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.z.handleResizeStart=function(){var K=_.AD(this.screenLayer);this.userSetSize||(this.userSetSize=!0,K&&this.resizeVe&&_.G6(K,[this.resizeVe]));K&&this.resizeVe&&_.vW(K,this.resizeVe)};
_.z.handleResize=function(K){this.setMiniplayerSize(K);this.updateDimensionsAndResize()};
_.z.setUpDragging=function(){var K=this;this.JSC$17786_dragger||(this.JSC$17786_dragger=new gO(this.draggableContainer,{onStartDrag:function(X){!K.isSafeToDrag(X)||K.isAnimatingSnap?X.preventDefault():K.handleDragStart()},
onDrag:function(X){K.transform=X;K.setTransform(K.transform)},
onEndDrag:function(){K.handleDragEnd()}},!0))};
_.z.handleDragStart=function(){this.isDragging=!0;var K=_.AD(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,K&&this.repositionVe&&_.G6(K,[this.repositionVe]));K&&this.repositionVe&&_.vW(K,this.repositionVe)};
_.z.handleDragEnd=function(){this.isDragging=!1;var K=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&K>this.windowDimensions.height&&_.i9().resolve(_.Wj).close();this.animateSnapToCorner()};
_.z.animateSnapToCorner=function(){var K=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),X=this.getNearestAttachments();X=this.getGlobalPositionFromAttachments(X.horizontalAttachment,X.verticalAttachment);K=new _.jA(X.x-K.x,X.y-K.y);this.isAnimatingSnap=!0;this.setTransform(K);this.hostElement.addEventListener("transitionend",_.Pc(this,this.endSnapAnimation))};
_.z.endSnapAnimation=function(K){K.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.Pc(this,this.endSnapAnimation)),this.endDrag())};
_.z.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.z.setTransform=function(K){this.hostElement.style.transform=K?"translate("+K.x+"px, "+K.y+"px)":""};
_.z.getGlobalPositionFromAttachments=function(K,X){return new _.jA(K==="west"?16:this.windowDimensions.width-this.dimensions.width-16,X==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.z.updateAttachments=function(){var K=this.getNearestAttachments();if(this.horizontalAttachment!==K.horizontalAttachment||this.verticalAttachment!==K.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=K.horizontalAttachment;this.verticalAttachment=K.verticalAttachment;var X;(X=this.JSC$17786_resizers)==null||X.update(this.horizontalAttachment,this.verticalAttachment)};
_.z.getNearestAttachments=function(){var K=this.getCurrentGlobalPosition();return{horizontalAttachment:K.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:K.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.z.getCurrentGlobalPosition=function(){var K=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return GYd(K,this.transform)};
_.z.isSafeToDrag=function(K){var X=this.playerContainer.getBoundingClientRect();return Math.abs(K.clientY-(X.y+X.height))>15};
_.z.setMiniplayerSize=function(K){this.currentMiniplayerSize=this.clamp(K);var X;(X=this.JSC$17786_resizers)==null||X.setSize(this.currentMiniplayerSize)};
_.z.clamp=function(K){return _.rH(192,K,720)};
_.z.registerViewTransitionTasks=function(){var K=this,X=_.i9().resolve(_.Nu(_.YP));if(X){var F={beforeTransition:function(){K.hostElement&&(K.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){K.hostElement&&(K.hostElement.style.viewTransitionName="")}};
E0(X,"slide",F);E0(X,"zoom",F)}};
_.Oi.Object.defineProperties(bo.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.S("kevlar_watch_while_modern"):!0}},
showOverlayPremiumBadges:{configurable:!0,enumerable:!0,get:function(){return!this.showInfoBar&&!!this.premiumBadges.length}},
miniplayerSubtitle:{configurable:!0,enumerable:!0,get:function(){if(this.continueWatching)return{simpleText:_.uY("CONTINUE_WATCHING",void 0,"Continue watching")};var K;if((K=this.externalPlaylistData)==null?0:K.contents)return this.externalPlaylistData.titleText;var X;return(X=this.data)==null?void 0:X.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.externalPlaylistData)==null?0:K.contents){var X;return(X=_.xAM(this.externalPlaylistData))==null?void 0:X.title}var F;return(F=this.data)==null?void 0:F.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var K,X,F,P;return((K=this.externalPlaylistData)==null?void 0:K.currentIndex)!==void 0&&((X=this.externalPlaylistData)==null?0:X.totalVideos)&&!((F=this.data)==null?0:(P=F.playlistData)==null?0:P.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.EIl(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.S("kevlar_watch_while_counterfactual")}}});
bo.prototype.onIsDisabledChanged=bo.prototype.onIsDisabledChanged;bo.prototype.readyToResumeVeChanged=bo.prototype.readyToResumeVeChanged;bo.prototype.premiumBrandingChanged=bo.prototype.premiumBrandingChanged;bo.prototype.onPlayerVeChange=bo.prototype.onPlayerVeChange;bo.prototype.hasPlaylistDataChanged=bo.prototype.hasPlaylistDataChanged;_.O([_.W(_.ld.YtPlayerListenerBehavior),_.g("design:type",_.vC)],bo.prototype,"ytPlayerListenerBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],bo.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],bo.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],bo.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],bo.prototype,"ytdReduxBehavior",void 0);_.O([_.fa("#draggable"),_.g("design:type",HTMLDivElement)],bo.prototype,"draggableContainer",void 0);
_.O([_.fa("#resize-container"),_.g("design:type",HTMLDivElement)],bo.prototype,"JSC$17786_resizeContainer",void 0);_.O([_.fa("#video-container"),_.g("design:type",HTMLDivElement)],bo.prototype,"videoContainer",void 0);_.O([_.fa("#player-container"),_.g("design:type",HTMLDivElement)],bo.prototype,"playerContainer",void 0);_.O([_.fa("#playlist"),_.g("design:type",HTMLDivElement)],bo.prototype,"JSC$17786_playlistPanel",void 0);_.O([_.h(),_.g("design:type",Object)],bo.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],bo.prototype,"active",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],bo.prototype,"hasNoData",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],bo.prototype,"enabled",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],bo.prototype,"expanded",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],bo.prototype,"readyToResume",void 0);
_.O([_.h(),_.g("design:type",Object)],bo.prototype,"isDisabled",void 0);_.O([_.h(),_.g("design:type",Object)],bo.prototype,"externalPlaylistData",void 0);_.O([_.h(),_.g("design:type",Array)],bo.prototype,"premiumBadges",void 0);_.O([_.h(),_.g("design:type",Object)],bo.prototype,"toastData",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],bo.prototype,"watchWhile",void 0);_.O([_.h(),_.g("design:type",Boolean)],bo.prototype,"premiumBranding",void 0);
_.O([_.h(),_.g("design:type",Object)],bo.prototype,"playerState",void 0);_.O([_.h(),_.g("design:type",Boolean)],bo.prototype,"continueWatching",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],bo.prototype,"verticalAttachment",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],bo.prototype,"horizontalAttachment",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],bo.prototype,"isAnimatingFade",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],bo.prototype,"isAnimatingSnap",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],bo.prototype,"isAnimatingExpand",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],bo.prototype,"isDragging",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],bo.prototype,"playerHidden",void 0);
_.O([_.h({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.g("design:type",Object)],bo.prototype,"playlistData",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.g("design:type",Object)],bo.prototype,"hasPlaylistData",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],bo.prototype,"closed",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],bo.prototype,"expandedClosed",void 0);
_.O([_.h({selector:_.qHl}),_.g("design:type",Boolean)],bo.prototype,"isSingleOptionSurveyActive",void 0);_.O([_.h({reflectToAttribute:!0,selector:_.TS}),_.g("design:type",Boolean)],bo.prototype,"isWatchPage",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("watchWhile"),_.g("design:type",Object),_.g("design:paramtypes",[])],bo.prototype,"showInfoBar",null);_.O([_.U("premiumBadges","showInfoBar"),_.g("design:type",Object),_.g("design:paramtypes",[])],bo.prototype,"showOverlayPremiumBadges",null);
_.O([_.h(),_.g("design:type",Object)],bo.prototype,"watchResponse",void 0);_.O([_.h(),_.g("design:type",Object)],bo.prototype,"miniplayerRenderer",void 0);_.O([_.h(),_.g("design:type",Object)],bo.prototype,"playabilityStatus",void 0);_.O([_.h(),_.g("design:type",Object)],bo.prototype,"playerVe",void 0);_.O([_.h(),_.g("design:type",Object)],bo.prototype,"expandVe",void 0);_.O([_.h(),_.g("design:type",Object)],bo.prototype,"closeVe",void 0);
_.O([_.h(),_.g("design:type",Object)],bo.prototype,"readyToResumeCloseVe",void 0);_.O([_.h(),_.g("design:type",_.TY)],bo.prototype,"readyToResumeVe",void 0);_.O([_.h(),_.g("design:type",_.TY)],bo.prototype,"resizeVe",void 0);_.O([_.h(),_.g("design:type",_.TY)],bo.prototype,"repositionVe",void 0);_.O([_.so("hasPlaylistData"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],bo.prototype,"hasPlaylistDataChanged",null);
_.O([_.so("playerVe"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],bo.prototype,"onPlayerVeChange",null);_.O([_.so("premiumBranding"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],bo.prototype,"premiumBrandingChanged",null);_.O([_.so("readyToResumeVe"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],bo.prototype,"readyToResumeVeChanged",null);
_.O([_.so("isDisabled"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],bo.prototype,"onIsDisabledChanged",null);_.O([_.U("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.g("design:type",Object),_.g("design:paramtypes",[])],bo.prototype,"miniplayerSubtitle",null);_.O([_.U("data.miniplayerTitle","externalPlaylistData"),_.g("design:type",Object),_.g("design:paramtypes",[])],bo.prototype,"miniplayerTitle",null);
_.O([_.U("externalPlaylistData","continueWatching"),_.g("design:type",Object),_.g("design:paramtypes",[])],bo.prototype,"playlistIndexMessage",null);_.O([_.h({reflectToAttribute:!0}),_.U("playabilityStatus"),_.g("design:type",Object),_.g("design:paramtypes",[])],bo.prototype,"showErrorScreen",null);_.O([_.h({reflectToAttribute:!0}),_.U("watchWhile"),_.g("design:type",Object),_.g("design:paramtypes",[])],bo.prototype,"watchWhileHidden",null);
_.S("ytd_miniplayer_to_wiz")||_.t(bo,"ytd-miniplayer",function(){if(vu8===void 0){var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.player.ytd_miniplayer.ytd.miniplayer.view.transition.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
K.content.insertBefore(l9o().content.cloneNode(!0),K.content.firstChild);K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);vu8=K}K=vu8;return K},{mode:2});var Eut;var Co=function(){var K=_.G.apply(this,arguments)||this;K.useListItemStyles=_.S("web_list_item_style_for_menu_items");K.systemIcons=_.S("kevlar_system_icons");return K};
_.r(Co,_.G);_.z=Co.prototype;_.z.ready=function(){this.hostElement.addEventListener("tap",_.Pc(this,this.onEndpointTapExtra))};
_.z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.z.onFocus=function(){var K;(K=_.C$(this.hostElement).querySelector("tp-yt-paper-item"))==null||K.focus()};
_.z.onEndpointTapExtra=function(K){_.iX(this.hostElement,"iron-activate");var X=this.data.navigationEndpoint;X&&_.T(X,_.Rf3)&&(K.stopPropagation(),_.X0(this.hostElement,[X],this.hostElement))};
_.z.computeIcon=function(K){return K&&K.iconType?_.Fl(K.iconType):""};
_.z.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.z.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.z.forceUpdateStylesOnLegacyBrowsers=function(){_.S("kevlar_legacy_browsers")&&_.XU(this.hostElement)};
Co.prototype.forceUpdateStylesOnLegacyBrowsers=Co.prototype.forceUpdateStylesOnLegacyBrowsers;Co.prototype.onFocus=Co.prototype.onFocus;_.O([_.W(_.v9),_.g("design:type",Object)],Co.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.W(_.ZnV.YtConditionalRendererBehavior),_.g("design:type",Object)],Co.prototype,"ytConditionalRendererBehavior",void 0);_.O([_.W(_.DP.YtEndpointBehavior),_.g("design:type",Object)],Co.prototype,"ytEndpointBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],Co.prototype,"data",void 0);_.O([_.h({computed:"computeIcon(data.icon)",value:""}),_.g("design:type",String)],Co.prototype,"icon",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],Co.prototype,"useIcons",void 0);_.O([_.h({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.g("design:type",Boolean)],Co.prototype,"hasSeparator",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Co.prototype,"useListItemStyles",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Co.prototype,"systemIcons",void 0);_.O([_.Hc("focus"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Co.prototype,"onFocus",null);_.O([_.so("useIcons","hasSeparator"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Co.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.t(Co,"ytd-menu-navigation-item-renderer",function(){if(Eut===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);Eut=K}K=Eut;return K},{mode:1});var bEd;var CZ8=_.GS(_.uY("DOWNLOAD",{},"Download")),Nkv=_.GS(_.uY("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),iEs=_.GS(_.uY("RETRY",{},"Retry")),xT1=_.GS(_.uY("PAUSE_DOWNLOADING",{},"Pause downloading")),I95=_.GS(_.uY("RESUME_DOWNLOAD",{},"Resume download")),N7=function(){var K=_.G.apply(this,arguments)||this;K.primaryText=CZ8;K.primaryIconType="OFFLINE_DOWNLOAD";K.hasSecondaryContent=!1;K.hasSeparator=!1;K.transferState="TRANSFER_STATE_UNKNOWN";K.isVideoDeletedByUser=!1;K.isHidden=!1;K.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return K};
_.r(N7,_.G);_.z=N7.prototype;_.z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.z.onFocus=function(){this.primaryEntry.focus()};
_.z.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.z.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.z.getRemoveAction=function(){return"ACTION_REMOVE"};
_.z.sendOfflineAction=function(K){var X=this.data.serviceEndpoint;if(X){var F=_.T(X,_.Xj);F&&K&&(F.action=K);this.ytComponentBehavior.resolveCommand(X)}};
_.z.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=CZ8,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=CZ8;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=iEs;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=Nkv;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=I95;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=Nkv;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
xT1;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=Nkv;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=Nkv;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=CZ8,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.z.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.z.isSecondaryEntryHidden=function(K,X){return K?!0:!X};
_.z.computeHasSeparator=function(){var K;return!((K=this.data)==null||!K.hasSeparator)};
N7.prototype.showHideButton=N7.prototype.showHideButton;N7.prototype.onTransferStateChange=N7.prototype.onTransferStateChange;N7.prototype.onFocus=N7.prototype.onFocus;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],N7.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],N7.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],N7.prototype,"ytComponentBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],N7.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],N7.prototype,"primaryText",void 0);_.O([_.h(),_.g("design:type",String)],N7.prototype,"primaryIconType",void 0);_.O([_.h(),_.g("design:type",String)],N7.prototype,"primaryAction",void 0);_.O([_.h(),_.g("design:type",Object)],N7.prototype,"secondaryText",void 0);_.O([_.h(),_.g("design:type",String)],N7.prototype,"secondaryIconType",void 0);
_.O([_.h(),_.g("design:type",String)],N7.prototype,"secondaryAction",void 0);_.O([_.h(),_.g("design:type",Object)],N7.prototype,"hasSecondaryContent",void 0);_.O([_.h({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.g("design:type",Object)],N7.prototype,"hasSeparator",void 0);_.O([_.h({selector:_.rI,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.g("design:type",String)],N7.prototype,"transferState",void 0);
_.O([_.h({selector:_.d2P,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.g("design:type",Object)],N7.prototype,"isVideoDeletedByUser",void 0);_.O([_.h(),_.g("design:type",Object)],N7.prototype,"isHidden",void 0);_.O([_.h({selector:_.rpO,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.g("design:type",Object)],N7.prototype,"offlineabilityState",void 0);_.O([_.fa("#primary-entry"),_.g("design:type",Object)],N7.prototype,"primaryEntry",void 0);
_.O([_.Hc("focus"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],N7.prototype,"onFocus",null);_.O([_.JA("transferState","isVideoDeletedByUser"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],N7.prototype,"onTransferStateChange",null);_.O([_.JA("offlineabilityState"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],N7.prototype,"showHideButton",null);
_.t(N7,"ytd-menu-service-item-download-renderer",function(){if(bEd===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);bEd=K}K=bEd;return K},{mode:1});var kP1;var io=function(){var K=_.G.apply(this,arguments)||this;K.useIcons=!1;K.systemIcons=_.S("kevlar_system_icons");K.useListItemStyles=_.S("web_list_item_style_for_menu_items");return K};
_.r(io,_.G);_.z=io.prototype;_.z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.z.onFocus=function(){var K;(K=_.C$(this.hostElement).querySelector("tp-yt-paper-item"))==null||K.focus()};
_.z.onTap=function(){_.IJ(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var K=this.data.serviceEndpoint,X=this.data.command;if(K){var F,P=(F=this.data)==null?void 0:F.trackingParams;F=!!_.T(K,_.R0V);P&&F&&_.aA().dispatch(_.iY({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:P}}));this.ytComponentBehavior.resolveCommand(K)||_.i9().resolve(_.xU).resolveCommand(K,{form:{element:this.hostElement}})}X&&(this.ytComponentBehavior.resolveCommand(X)||_.X0(this.hostElement,
[X],this.hostElement))};
_.z.computeIcon=function(K){return K&&K.iconType?_.Fl(K.iconType):""};
_.z.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.z.computeHasSeparator=function(){var K;return!((K=this.data)==null||!K.hasSeparator)};
_.z.forceUpdateStylesOnLegacyBrowsers=function(){_.S("kevlar_legacy_browsers")&&_.XU(this.hostElement)};
_.z.computeIsSelected=function(){var K;return!((K=this.data)==null||!K.isSelected)};
io.prototype.forceUpdateStylesOnLegacyBrowsers=io.prototype.forceUpdateStylesOnLegacyBrowsers;io.prototype.onTap=io.prototype.onTap;io.prototype.onFocus=io.prototype.onFocus;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],io.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.v9),_.g("design:type",Object)],io.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],io.prototype,"ytComponentBehavior",void 0);
_.O([_.W(_.ZnV.YtConditionalRendererBehavior),_.g("design:type",Object)],io.prototype,"ytConditionalRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],io.prototype,"data",void 0);_.O([_.h({computed:"computeIcon(data.icon)",value:""}),_.g("design:type",String)],io.prototype,"icon",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],io.prototype,"useIcons",void 0);
_.O([_.h({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.g("design:type",Boolean)],io.prototype,"hasSeparator",void 0);_.O([_.h({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.g("design:type",Boolean)],io.prototype,"isSelected",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],io.prototype,"systemIcons",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],io.prototype,"useListItemStyles",void 0);
_.O([_.Hc("focus"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],io.prototype,"onFocus",null);_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],io.prototype,"onTap",null);_.O([_.so("useIcons","hasSeparator"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],io.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.t(io,"ytd-menu-service-item-renderer",function(){if(kP1===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);kP1=K}K=kP1;return K},{mode:2});var Kd5;var xT=function(){return _.G.apply(this,arguments)||this};
_.r(xT,_.G);_.z=xT.prototype;_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.onDataChanged=function(){var K=this;_.tg(this,function(){K.postbox.openDialog();K.focus();_.iX(K.hostElement,"yt-refit")})};
_.z.focus=function(){this.postbox.focus()};
_.z.closePopup=function(){_.xr(this.hostElement,"yt-close-popup-action")};
_.z.onYtCommentboxDismiss=function(){this.closePopup()};
xT.prototype.onYtCommentboxDismiss=xT.prototype.onYtCommentboxDismiss;xT.prototype.onDataChanged=xT.prototype.onDataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],xT.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],xT.prototype,"data",void 0);_.O([_.h({value:function(){return _.uY("SBOX_INAPPROPRIATE_CANCEL")}}),
_.g("design:type",String)],xT.prototype,"closeButtonAriaLabel",void 0);_.O([_.fa("#postbox"),_.g("design:type",Object)],xT.prototype,"postbox",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],xT.prototype,"onDataChanged",null);_.O([_.Hc("yt-commentbox-dismiss"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],xT.prototype,"onYtCommentboxDismiss",null);
xT=_.O([_.v({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],xT);
_.t(xT,"ytd-backstage-post-dialog-popup-renderer",function(){if(Kd5!==void 0)return Kd5;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Kd5=K},{mode:1});var X9k;var IH=function(){return _.G.apply(this,arguments)||this};
_.r(IH,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],IH.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],IH.prototype,"data",void 0);IH=_.O([_.v({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],IH);
_.t(IH,"ytd-sender-id-section-renderer",function(){if(X9k!==void 0)return X9k;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);
return X9k=K},{mode:1});var FdF;var Ps8;var H3s;var kT=function(){return _.G.apply(this,arguments)||this};
_.r(kT,_.G);kT.prototype.closePopup=function(){_.xr(this.hostElement,"yt-close-popup-action")};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],kT.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],kT.prototype,"data",void 0);kT=_.O([_.Tb({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],kT);
_.t(kT,"yt-community-post-section-renderer",function(){if(H3s===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;Ps8===void 0&&(Ps8=document.createElement("template"));var P=Ps8;F.call(X,P.content.cloneNode(!0),K.content.firstChild);H3s=K}K=H3s;return K},{mode:2});var s9s;var zl1;var fP8;var Dlk;var uiG;var qTv;var Kg=function(){return _.G.apply(this,arguments)||this};
_.r(Kg,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Kg.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Kg.prototype,"data",void 0);Kg=_.O([_.Tb({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],Kg);
_.t(Kg,"yt-share-start-time-with-context-renderer",function(){if(qTv===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;uiG===void 0&&(uiG=document.createElement("template"));var P=uiG;F.call(X,P.content.cloneNode(!0),K.content.firstChild);qTv=K}K=qTv;return K},{mode:2});var FR=function(){return _.G.apply(this,arguments)||this};
_.r(FR,_.G);FR.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],FR.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],FR.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],FR.prototype,"data",void 0);FR=_.O([_.Tb({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],FR);
_.t(FR,"yt-share-panel-title-v15-renderer",function(){if(Dlk===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;fP8===void 0&&(fP8=document.createElement("template"));var P=fP8;F.call(X,P.content.cloneNode(!0),K.content.firstChild);Dlk=K}K=Dlk;return K},{mode:2});var PP=function(){return _.G.apply(this,arguments)||this};
_.r(PP,_.G);PP.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"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],PP.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],PP.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],PP.prototype,"data",void 0);PP=_.O([_.Tb({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],PP);
_.t(PP,"yt-share-panel-header-renderer",function(){if(zl1===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;s9s===void 0&&(s9s=document.createElement("template"));var P=s9s;F.call(X,P.content.cloneNode(!0),K.content.firstChild);zl1=K}K=zl1;return K},{mode:2});var J1F;var Z3w;var HP=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-open-popup-action":"onOpen"};return K};
_.r(HP,_.G);_.z=HP.prototype;_.z.attached=function(){this.onOpen()};
_.z.updateTimeSecs=function(K){this.currentTimeSecs=K};
_.z.computeTimeString=function(K){K=K.toString();var X=Math.floor(Number(K)/3600),F=Math.floor(Number(K)%3600%60);return(X>0?X+":":"")+_.gd(Math.floor(Number(K)%3600/60),X>0?2:1)+":"+_.gd(F,2)};
_.z.computeTimeStringA11y=function(K){K=_.RnM({seconds:K});var X=K.hours===void 0?0:K.hours,F=K.minutes===void 0?0:K.minutes,P=K.seconds===void 0?0:K.seconds;K=[];if(X>0){var H=qUW().format({hours:X});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.Wv)||X>9999)H=H.replace(X.toString(),_.U2q(X)),_.Wv==="km"&&(H=H.replace(".",","));K.push(H)}F>0&&K.push(qUW().format({minutes:F}));P>0&&K.push(qUW().format({seconds:P}));X="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");F=_.Wv==
"am"?"{0}\u1363 ":_.Wv=="fa"?"{0}\u060c\u200f ":_.Wv=="my"?"{0} - ":_.Wv=="ne"?"{0},":_.Wv=="th"?"{0} ":_.Wv=="ur"?"{0}\u060c ":_.Wv=="ar"||_.Wv=="ar-XB"?"{0} \u0648":_.Wv=="ja"||_.Wv=="zh-CN"||_.Wv=="zh-HK"||_.Wv=="zh-TW"?"{0}\u3001":"{0}, ";P=_.Wv=="am"?"\u1363 ":_.Wv=="fa"?"\u060c\u200f ":_.Wv=="my"?" - ":_.Wv=="th"?" ":_.Wv=="ur"?"\u060c ":_.Wv=="ar"||_.Wv=="ar-XB"?" \u0648":_.Wv=="ja"||_.Wv=="zh-CN"||_.Wv=="zh-HK"||_.Wv=="zh-TW"?"\u3001":", ";H=_.Wv=="am"?" \u12a5\u1293 {0}":_.Wv=="as"?" \u0986\u09f0\u09c1 {0}":
_.Wv=="az"?" v\u0259 {0}":_.Wv=="bn"?" \u098f\u09ac\u0982 {0}":_.Wv=="cs"?" a\u00a0{0}":_.Wv=="de"?" und {0}":_.Wv=="el"?" \u03ba\u03b1\u03b9 {0}":_.Wv=="eu"?" eta {0}":_.Wv=="fa"?"\u060c \u0648 {0}":_.Wv=="fil"?", at {0}":_.Wv=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.Wv=="hi"?", \u0914\u0930 {0}":_.Wv=="hu"?" \u00e9s {0}":_.Wv=="hy"?" \u0587 {0}":_.Wv=="id"?", dan {0}":_.Wv=="iw"?" \u05d5-{0}":_.Wv=="ja"?"\u3001{0}":_.Wv=="ka"?" \u10d3\u10d0 {0}":_.Wv=="km"?" \u1793\u17b7\u1784 {0}":_.Wv=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.Wv=="ko"?" \ubc0f {0}":_.Wv=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.Wv=="lt"?" ir {0}":_.Wv=="lv"?" un {0}":_.Wv=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.Wv=="mr"?" \u0906\u0923\u093f {0}":_.Wv=="ms"?" dan {0}":_.Wv=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.Wv=="ne"?" \u0930 {0}":_.Wv=="or"?", \u0b13 {0}":_.Wv=="pa"?" \u0a05\u0a24\u0a47 {0}":_.Wv=="ro"?" \u0219i {0}":_.Wv=="si"?", \u0dc3\u0dc4 {0}":_.Wv=="sk"?" a {0}":_.Wv=="sl"?" in {0}":_.Wv=="sq"?" dhe {0}":_.Wv=="sv"?" och {0}":
_.Wv=="sw"?" na {0}":_.Wv=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.Wv=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.Wv=="th"?" \u0e41\u0e25\u0e30{0}":_.Wv=="tr"?" ve {0}":_.Wv=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.Wv=="uz"?" va {0}":_.Wv=="vi"?" v\u00e0 {0}":_.Wv=="zh-HK"?"\u53ca{0}":_.Wv=="zu"?", ne-{0}":_.Wv=="af"||_.Wv=="nl"?" en {0}":_.Wv=="ar"||_.Wv=="ar-XB"?" \u0648{0}":_.Wv=="be"||_.Wv=="uk"?" \u0456 {0}":_.Wv=="en-GB"||_.Wv=="en-IN"?" and {0}":_.Wv=="en"||_.Wv=="en-XA"?
", and {0}":_.Wv=="et"||_.Wv=="fi"?" ja {0}":_.Wv=="fr"||_.Wv=="fr-CA"?" et {0}":_.Wv=="zh-CN"||_.Wv=="zh-TW"?"\u548c{0}":_.Wv=="da"||_.Wv=="is"||_.Wv=="no"?" og {0}":_.Wv=="es"||_.Wv=="es-419"||_.Wv=="es-US"?" y {0}":_.Wv=="kk"||_.Wv=="lo"||_.Wv=="mn"?", {0}":_.Wv=="bg"||_.Wv=="mk"||_.Wv=="ru"||_.Wv=="sr"?" \u0438 {0}":_.Wv=="gl"||_.Wv=="it"||_.Wv=="pt-BR"||_.Wv=="pt-PT"?" e {0}":" i {0}";var f=_.Wv=="am"?"{0} \u12a5\u1293 {1}":_.Wv=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.Wv=="az"?"{0} v\u0259 {1}":
_.Wv=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.Wv=="de"?"{0} und {1}":_.Wv=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.Wv=="eu"?"{0} eta {1}":_.Wv=="fa"?"{0} \u0648 {1}":_.Wv=="fil"?"{0} at {1}":_.Wv=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.Wv=="hi"?"{0} \u0914\u0930 {1}":_.Wv=="hu"?"{0} \u00e9s {1}":_.Wv=="hy"?"{0} \u0587 {1}":_.Wv=="iw"?"{0} \u05d5-{1}":_.Wv=="ja"?"{0}\u3001{1}":_.Wv=="ka"?"{0} \u10d3\u10d0 {1}":_.Wv=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.Wv=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.Wv=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.Wv=="ko"?"{0} \ubc0f {1}":_.Wv=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.Wv=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.Wv=="lt"?"{0} ir {1}":_.Wv=="lv"?"{0} un {1}":_.Wv=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.Wv=="mn"?"{0}, {1}":_.Wv=="mr"?"{0} \u0906\u0923\u093f {1}":_.Wv=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.Wv=="ne"?"{0} \u0930 {1}":_.Wv=="or"?"{0} \u0b13 {1}":_.Wv=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.Wv=="ro"?"{0} \u0219i {1}":_.Wv==
"si"?"{0} \u0dc3\u0dc4 {1}":_.Wv=="sl"?"{0} in {1}":_.Wv=="sq"?"{0} dhe {1}":_.Wv=="sv"?"{0} och {1}":_.Wv=="sw"?"{0} na {1}":_.Wv=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.Wv=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.Wv=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.Wv=="tr"?"{0} ve {1}":_.Wv=="ur"?"{0} \u0627\u0648\u0631 {1}":_.Wv=="uz"?"{0} va {1}":_.Wv=="vi"?"{0} v\u00e0 {1}":_.Wv=="zh-HK"?"{0}\u53ca{1}":_.Wv=="zu"?"{0} ne-{1}":_.Wv=="af"||_.Wv=="nl"?"{0} en {1}":_.Wv=="ar"||_.Wv==
"ar-XB"?"{0} \u0648{1}":_.Wv=="be"||_.Wv=="uk"?"{0} \u0456 {1}":_.Wv=="cs"||_.Wv=="sk"?"{0} a\u00a0{1}":_.Wv=="et"||_.Wv=="fi"?"{0} ja {1}":_.Wv=="fr"||_.Wv=="fr-CA"?"{0} et {1}":_.Wv=="id"||_.Wv=="ms"?"{0} dan {1}":_.Wv=="zh-CN"||_.Wv=="zh-TW"?"{0}\u548c{1}":_.Wv=="da"||_.Wv=="is"||_.Wv=="no"?"{0} og {1}":_.Wv=="es"||_.Wv=="es-419"||_.Wv=="es-US"?"{0} y {1}":_.Wv=="bg"||_.Wv=="mk"||_.Wv=="ru"||_.Wv=="sr"?"{0} \u0438 {1}":_.Wv=="en"||_.Wv=="en-GB"||_.Wv=="en-IN"||_.Wv=="en-XA"?"{0} and {1}":_.Wv==
"gl"||_.Wv=="it"||_.Wv=="pt-BR"||_.Wv=="pt-PT"?"{0} e {1}":"{0} i {1}";_.Wv==="sq"?(H=H.replace("dhe","e"),f=f.replace("dhe","e")):_.Wv==="th"?(P=P.replace("{0}"," {0}"),f=f.replace("{0}","{0} "),f=f.replace("{1}"," {1}")):_.Wv==="ne"?P=",":_.Wv==="zh-CN"?P="":X.includes(_.Wv)&&(P=" ");return K.length<2?K.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(_.Wv)?K.length===2?
f.replace("{0}",K[0]).replace("{1}",K[1]):F.replace("{0}",K[0])+K.slice(1,-1).join(P)+H.replace("{0}",K[K.length-1]):K.join(P)};
_.z.getTimeParam=function(){return t48(this.timeString)};
_.z.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var K={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},X;_.FT(_.uH(),(X=this.data)==null?void 0:X.trackingParams,K,7)};
_.z.onChangeStartAtTimestamp=function(){for(var K=this.startAtTimestamp.value.split(":"),X=0,F=1,P=K.length-1;P>=0;P--)X+=Number(K[P])*F,F*=60;this.updateTimeSecs(X);this.setTimestamp()};
_.z.onOpen=function(){var K=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var X=_.$f();X?X.getPlayerPromise().then(function(F){F=F.getCurrentTime();K.updateTimeSecs(F)}):DiW()&&this.updateTimeSecs(DiW())};
_.z.setTimestamp=function(){var K=Math.floor(this.currentTimeSecs);_.xr(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!K,timestamp:K||""}])};
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],HP.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],HP.prototype,"data",void 0);_.O([_.h({value:!1,notify:!0}),_.g("design:type",Boolean)],HP.prototype,"isStartAtChecked",void 0);_.O([_.h(),_.g("design:type",Number)],HP.prototype,"currentTimeSecs",void 0);
_.O([_.h({computed:"computeTimeString(currentTimeSecs)"}),_.g("design:type",String)],HP.prototype,"timeString",void 0);_.O([_.h({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.g("design:type",String)],HP.prototype,"timeStringA11y",void 0);_.O([_.fa("#start-at-timestamp"),_.g("design:type",Object)],HP.prototype,"startAtTimestamp",void 0);HP=_.O([_.Tb({is:"yt-start-at-renderer",disableElementRegistration:!0})],HP);
_.t(HP,"yt-start-at-renderer",function(){if(Z3w===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;J1F===void 0&&(J1F=document.createElement("template"));var P=J1F;F.call(X,P.content.cloneNode(!0),K.content.firstChild);Z3w=K}K=Z3w;return K},{mode:2});var YTk;var Q9J;var MY8=new Map([["ADD_TO_PLAYLIST","playlist_add"],["ADD_TO_REMOTE_QUEUE","add_to_queue"],["CAST_ICON","chromecast-filled"],["CAST_OUTLINE","chromecast"],["DISLIKE","dislike_outline"],["DISLIKE_SELECTED","dislike"],["ERROR_WHITE","error"],["FAVORITE","like_outline"],["LIKE","like_outline"],["LIKE_SELECTED","like"],["LOOP","music_repeat_all"],["LOOP_ONE","music_repeat_one"],["PLAYLIST_PLAY","playlists"],["QUEUE_PLAY_NEXT","playlists"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST",
"delete"],["SHUFFLE","music_shuffle"],["SUBSCRIPTIONS","subscriptions"],["TAB_EXPLORE","explore"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like"]]),nq8=new Map([["BOOKMARK","bookmark-filled"],["CLOUD_UPLOAD","cloud_arrow_up"],["DISLIKE","dislike"],["DISLIKE_SELECTED","dislike-filled"],["ERROR_WHITE","error-filled"],["FAVORITE","like"],["INSERT_CHART_OUTLINED","bar_graph_box_vertical"],["LIKE","like"],["LIKE_SELECTED","like-filled"],["MUSIC_EXPLICIT_BADGE","music_explicit_badge-filled"],
["MUSIC_SHUFFLE","shuffle"],["PAUSE","offline_pause"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST","delete"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like-filled"],["VOLUME_UP","volume_up"],["DISMISS_QUEUE","list_remove"]]),c1s=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var p9W={};p9W.YtBindingExpressionsBehavior={identity:_.vy,msg:function(K,X){X=X===void 0?{}:X;return _.uY(K,X,K)},
msgPlural:function(K,X){return _.qm(K,X)},
getMusicIconFromType:function(K){if(_.S("music_web_enable_icon_wil"))K=_.Fl(K);else if(nq8.has(K))K="yt-sys-icons:"+nq8.get(K);else{var X=MY8.get(K)||_.Fl(K).split(":")[1];X=_.rnl(X);var F;K=((F=c1s.get(K))!=null?F:"yt-sys-icons:")+X}return K}};var BAk;var ST1;var oqd;var LdW=document.head,TAd=LdW.appendChild,r11;if(oqd===void 0){var A1d=document.createElement("template");_.w(A1d,'\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>');oqd=A1d}r11=oqd;TAd.call(LdW,r11.content);var sb=function(){var K=_.G.apply(this,arguments)||this;K.screenLayer=7;return K};
_.r(sb,_.G);sb.prototype.getScreenLayer=function(){return this.screenLayer};
sb.prototype.onTap=function(K){K&&K.detail&&(K.detail.x||K.detail.y)&&_.C$(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.Kl(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(K=this.getScreenLayer(),_.iX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:K}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.Oi.Object.defineProperties(sb.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()}}});
sb.prototype.onTap=sb.prototype.onTap;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],sb.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],sb.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],sb.prototype,"data",void 0);_.O([_.U("data.title"),_.g("design:type",Object),_.g("design:paramtypes",[])],sb.prototype,"title",null);
_.O([_.U("data.serviceName"),_.g("design:type",String),_.g("design:paramtypes",[])],sb.prototype,"icon",null);_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],sb.prototype,"onTap",null);sb=_.O([_.Tb({is:"yt-share-target-renderer",disableElementRegistration:!0})],sb);
_.t(sb,"yt-share-target-renderer",function(){if(ST1===void 0){var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" icon="[[icon]]"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;BAk===void 0&&(BAk=document.createElement("template"));var P=BAk;F.call(X,P.content.cloneNode(!0),K.content.firstChild);ST1=K}K=ST1;return K},{mode:2});var j9s;var w9G;var zu=function(){var K=_.G.apply(this,arguments)||this;K.SHARE_TARGET_WIDTH=70;K.SHARE_TARGET_MARGIN_RIGHT=8;K.PAGE_SCROLL_SPEED=9;K.actionMap={"yt-share-panel-reset-action":"onReset_"};return K};
_.r(zu,_.G);_.z=zu.prototype;_.z.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.z.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.C$(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.C$(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.z.onReset_=function(){if(_.C$(this.hostElement).querySelector("#list")){var K=_.C$(this.hostElement).querySelector("#list");var X=_.C$(this.hostElement).querySelector("#list");var F=X.offsetLeft,P=X.offsetParent;P||_.alu(X)!="fixed"||(P=_.yf(X).documentElement);if(P){if(_.xA&&!_.kA(58)){var H=_.CTZ(P);F+=H.left}else Number(_.c84)>=8&&!(Number(_.c84)>=9)&&(H=_.CTZ(P),F-=H.left);X=_.Edt(P)?P.clientWidth-(F+X.offsetWidth):F}else X=F;D01(K,X);this.updateScrollButtons_()}};
_.z.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.z.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.z.onScrollWheel_=function(K){K.stopPropagation();K.preventDefault();var X=faw(_.C$(this.hostElement).querySelector("#list"));K=Math.abs(K.deltaX)>Math.abs(K.deltaY)?K.deltaX:K.deltaY;D01(_.C$(this.hostElement).querySelector("#list"),X+K);this.updateScrollButtons_()};
_.z.smoothScrollByOnePage_=function(K){var X=_.C$(this.hostElement).querySelector("#list"),F=(Math.floor(X.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,P=faw(X),H=F*(K?1:-1),f=this.PAGE_SCROLL_SPEED,u=this.updateScrollButtons_.bind(this),J=0,Z;(function n(){J+=f;Z=J/F*2;D01(X,P+H*(Z<1?Z*Z:-Z*Z+4*Z-2));J<F?window.requestAnimationFrame(n):u()})()};
_.z.updateScrollButtons_=function(){var K=faw(_.C$(this.hostElement).querySelector("#list")),X=_.C$(this.hostElement).querySelector("#list").scrollWidth-_.C$(this.hostElement).querySelector("#list").clientWidth;_.C$(this.hostElement).querySelector("#scroll-button-back").hidden=K<=0;_.C$(this.hostElement).querySelector("#scroll-button-forward").hidden=K>=X};
zu.prototype.onScrollWheel_=zu.prototype.onScrollWheel_;zu.prototype.onDataChanged_=zu.prototype.onDataChanged_;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],zu.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],zu.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(p9W.YtBindingExpressionsBehavior),_.g("design:type",Object)],zu.prototype,"ytBindingExpressionsBehavior",void 0);
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],zu.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],zu.prototype,"data",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],zu.prototype,"onDataChanged_",null);_.O([_.Hc("wheel"),_.g("design:type",Function),_.g("design:paramtypes",[WheelEvent]),_.g("design:returntype")],zu.prototype,"onScrollWheel_",null);
zu=_.O([_.Tb({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],zu);
_.t(zu,"yt-third-party-share-target-section-renderer",function(){if(w9G===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;j9s===void 0&&(j9s=document.createElement("template"));var P=j9s;F.call(X,P.content.cloneNode(!0),K.content.firstChild);w9G=K}K=w9G;return K},{mode:2});var fg=function(){return _.G.apply(this,arguments)||this};
_.r(fg,_.G);fg.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"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],fg.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],fg.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],fg.prototype,"data",void 0);fg=_.O([_.Tb({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],fg);
_.t(fg,"yt-third-party-network-section-renderer",function(){if(Q9J===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;YTk===void 0&&(YTk=document.createElement("template"));var P=YTk;F.call(X,P.content.cloneNode(!0),K.content.firstChild);Q9J=K}K=Q9J;return K},{mode:2});_.EP(_.$c(function(K){return _.Q("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.Q("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.Q(_.Md,{data:function(){return K.data().firstPartyItems}},{listItemViewModel:_.Ta})))},"qg"),"first-party-network-section-view-model",{props:{data:_.vU}});var y18=_.lr(["data:image/svg+xml;charset=UTF-8;base64,",""]),D8=function(){var K=_.G.apply(this,arguments)||this;K.screenLayer=7;K.qrCodeEnabled=_.S("web_enable_sharing_qr_code");K.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return K};
_.r(D8,_.G);_.z=D8.prototype;_.z.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"ytd-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.z.attached=function(){this.JSC$17838_scroller&&(this.JSC$17838_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17838_scroller.attached&&typeof this.JSC$17838_scroller.attached==="function"&&this.JSC$17838_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.z.onDataChanged=function(){var K=this,X;(X=this.data)!=null&&X.contents&&(this.hostElement.setAttribute("links-only","true"),_.x1(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.tg(this,function(){_.iX(K.hostElement,"yt-refit");K.focusSharePanelHeader()}))};
_.z.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.z.handleSetTimestamp=function(K){var X=this.shortUrl();K.isSet&&(X=_.Wz(X,"t",K.timestamp));this.maybeRenderQrCode(X)};
_.z.shortUrl=function(){var K,X=(K=this.data)==null?void 0:K.contents;if(X)for(K=0;K<X.length;K++){var F=void 0,P=void 0;if((F=X[K])==null?0:(P=F.thirdPartyNetworkSection)==null?0:P.copyLinkContainer){var H=P=F=void 0;return(H=_.T((F=X[K])==null?void 0:(P=F.thirdPartyNetworkSection)==null?void 0:P.copyLinkContainer,qKV))==null?void 0:H.shortUrl}}};
_.z.maybeRenderQrCode=function(K){var X=this,F,P,H,f,u,J,Z,M,n;return _.q(function(c){if(c.nextAddress==1){F=_.C$(X.hostElement).querySelector("#qr-code");if(!X.qrCodeEnabled||!K)return F&&(F.style.display="none"),c.return();P=_.mby(_.i9().resolve(_.Pn),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});H=document.createElement("div");return typeof P==="function"?(P(H),c.jumpTo(2)):_.Y(c,P,3)}c.nextAddress!=2&&(f=c.yieldResult,f(H));Z=(u=H)==null?void 0:(J=u.firstChild)==null?void 0:J.firstChild;
M=document.createElement("img");n=_.Tp(y18,btoa(Z.outerHTML));M.onload=function(){var B={canvas:F,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:M},L=new v3w;g3k(L,K);E3t(L,!1,bLv(L));var A=L.modules,d=Object.assign({},VQF,B);A=structuredClone(A);B=A.length;var R,l=(R=d.canvas)!=null?R:document.createElement("canvas");R=d.cellSize;L=d.logo;var a,E=(a=d.logoSize)!=null?a:Math.floor(B/4);B%2!==E%2&&E++;var V=d.logoPadding,x=d.backgroundColor;a=B*R;var N=
d.width,Dl=0;N&&(Dl=d.padding,Dl=Math.ceil(Dl*a/(N-Dl*2)),l.style.width=N+"px",l.style.height=N+"px");l.width!==a+Dl*2&&(l.width=a+Dl*2);l.height!==a+Dl*2&&(l.height=a+Dl*2);a=l.getContext("2d");d.autoClear&&a.clearRect(0,0,l.width,l.height);a.fillStyle=x;a.beginPath();a.roundRect(0,0,l.width,l.height,d.borderRadius);a.fill();a.save();a.translate(Dl,Dl);if(L)for(l=Math.floor(B-E)/2-V,V=Math.floor(B+E)/2+V,x=l;x<V;x++)for(N=l;N<V;N++)A[x][N]=!1;for(l=0;l<B;l++)for(V=0;V<B;V++)(l<7&&V<7||l<7&&V>=B-
7||l>=B-7&&V<7)&&(A[l][V]=!1);var Mq;l=(Mq=d.markerColor)!=null?Mq:d.color;Nc8(a,0,0,R,l);Nc8(a,R*(B-7),0,R,l);Nc8(a,0,R*(B-7),R,l);switch(d.cellStyle){case 0:Mq=A;A=Mq.length;l=d.cellSize;a.beginPath();for(V=0;V<A;V++)for(x=0;x<A;x++)Mq[V][x]&&a.rect(V*l,x*l,l,l);a.fillStyle=d.color;a.fill();break;case 1:Mq=A;A=Mq.length;l=d.cellSize;V=l*d.relativeCircleSize;a.fillStyle=d.color;a.beginPath();for(d=0;d<A;d++)for(x=0;x<A;x++)Mq[d][x]&&(a.beginPath(),a.ellipse((d+.5)*l,(x+.5)*l,V/2,V/2,0,0,2*Math.PI),
a.fill());a.fill();break;case 2:Mq=A;A=Mq.length;l=d.cellSize;a.fillStyle=d.color;d=[[1,1],[-1,1],[-1,-1],[1,-1]];a.beginPath();for(V=0;V<A;V++)for(x=0;x<A;x++)if(Mq[V][x])a.roundRect(V*l,x*l,l,l,l/2),V+1<A&&Mq[V+1][x]&&a.rect(V*l+l/2,x*l,l,l),x+1<A&&Mq[V][x+1]&&a.rect(V*l,x*l+l/2,l,l);else{N=V*l+l/2;Dl=x*l+l/2;for(var pO=0;pO<4;pO++){var y9=_.D(d[pO]),Wy=y9.next().value;y9=y9.next().value;V+Wy>=0&&V+Wy<A&&x+y9>=0&&x+y9<A&&Mq[V+Wy][x]&&Mq[V][x+y9]&&Mq[V+Wy][x+y9]&&(Wy=pO*Math.PI/2,y9=l/2,a.moveTo(N+
y9*Math.cos(Wy),Dl+y9*Math.sin(Wy)),a.arc(N,Dl,l/2,Wy,Wy+Math.PI/2,!1),a.lineTo(N+y9*(Math.cos(Wy)-Math.sin(Wy)),Dl+y9*(Math.cos(Wy)+Math.sin(Wy))),a.lineTo(N+y9*Math.cos(Wy),Dl+y9*Math.sin(Wy)))}}a.fill()}L&&a.drawImage(L,(B-E)*R/2,(B-E)*R/2,E*R,E*R);a.restore();F.style.removeProperty("display")};
M.src=_.Qz(n);_.JT(c)})};
_.z.hasCommunityPostRenderer=function(){var K,X,F,P;return!!((K=this.data)==null?0:(X=K.header)==null?0:(F=X.sharePanelHeaderRenderer)==null?0:(P=F.communityPost)==null?0:P.communityPostSectionRenderer)};
_.z.onTapClose=function(){_.xr(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.z.getScreenLayer=function(){return this.screenLayer};
_.z.logSharePanelPage=function(){if(!_.S("enable_share_panel_navigation_logging_fix_on_web")){var K;if((K=this.data)!=null&&K.trackingParams){K=this.data.trackingParams;var X=this.parentClickTrackingParams;X=X?_.QB(X):void 0;var F=_.uH();_.IZ(F,21760,X,{layer:7,parentLayer:0});F.graftServerVe(K,void 0,7);_.aA().dispatch(_.iY({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
D8.prototype.onDataChanged=D8.prototype.onDataChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],D8.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],D8.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],D8.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],D8.prototype,"data",void 0);_.O([_.h({value:_.uY("SBOX_INAPPROPRIATE_CANCEL")}),_.g("design:type",String)],D8.prototype,"closeButtonAriaLabel",void 0);_.O([_.fa("yt-share-panel-header-renderer"),_.g("design:type",HTMLElement)],D8.prototype,"header",void 0);_.O([_.h({selector:function(K){return K.share.parentClickTrackingParams}}),
_.g("design:type",String)],D8.prototype,"parentClickTrackingParams",void 0);_.O([_.h(),_.g("design:type",Object)],D8.prototype,"qrCodeEnabled",void 0);_.O([_.fa("#scroller"),_.g("design:type",Object)],D8.prototype,"JSC$17838_scroller",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],D8.prototype,"onDataChanged",null);D8=_.O([_.v({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],D8);
_.t(D8,"ytd-unified-share-panel-renderer",function(){if(FdF!==void 0)return FdF;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return FdF=K},{mode:1});var Wdw;var u3=function(){var K=_.G.apply(this,arguments)||this;K.modernModal=_.S("kevlar_sign_in_modal_modernization");return K};
_.r(u3,_.G);u3.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
u3.prototype.computeShouldHideOldButtons=function(){var K;return!((K=this.data)==null?0:K.button)};
_.Oi.Object.defineProperties(u3.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var K,X;if(this.modernModal&&((K=this.data)==null?0:(X=K.button)==null?0:X.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var F,P;return(F=this.data)==null?void 0:(P=F.button)==null?void 0:P.buttonRenderer}}});
_.O([_.h(),_.g("design:type",Object)],u3.prototype,"data",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],u3.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],u3.prototype,"ytEventForwardingBehavior",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],u3.prototype,"modernModal",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],u3.prototype,"buttonRendererData",null);
u3=_.O([_.v({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],u3);
_.t(u3,"ytd-modal-with-title-and-button-renderer",function(){if(Wdw!==void 0)return Wdw;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Wdw=K},{mode:1});var dlF;var qC=function(){return _.G.apply(this,arguments)||this};
_.r(qC,_.G);qC.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R9("page-changed",this.page))};
qC.prototype.pageChangedForBinding=qC.prototype.pageChangedForBinding;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],qC.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],qC.prototype,"data",void 0);_.O([_.h(),_.g("design:type",String)],qC.prototype,"page",void 0);_.O([_.so("page"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],qC.prototype,"pageChangedForBinding",null);
qC=_.O([_.v({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],qC);
_.t(qC,"ytd-account-item-section-header-renderer",function(){if(dlF!==void 0)return dlF;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return dlF=K},{mode:1});var elG;var JS=function(){return _.G.apply(this,arguments)||this};
_.r(JS,_.G);JS.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"}}}};
JS.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],JS.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],JS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.eG),_.g("design:type",Object)],JS.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],JS.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!1}),_.g("design:type",Function)],JS.prototype,"onAccountItemTap",void 0);
JS=_.O([_.v({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],JS);
_.t(JS,"ytd-account-item-section-renderer",function(){if(elG!==void 0)return elG;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return elG=K},{mode:1});var Rlw;var Uls;var Z8=function(){return _.G.apply(this,arguments)||this};
_.r(Z8,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Z8.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Z8.prototype,"data",void 0);Z8=_.O([_.v({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],Z8);
_.t(Z8,"ytd-accounts-dialog-header-renderer",function(){if(Uls!==void 0)return Uls;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Uls=K},{mode:1});var hlw;var Ye=function(){return _.G.apply(this,arguments)||this};
_.r(Ye,_.G);Ye.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Ye.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Ye.prototype,"data",void 0);Ye=_.O([_.v({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],Ye);
_.t(Ye,"ytd-google-account-header-renderer",function(){if(hlw!==void 0)return hlw;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return hlw=K},{mode:1});var Qe=function(){return _.G.apply(this,arguments)||this};
_.r(Qe,_.G);Qe.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"}}}};
Qe.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R9("page-changed",this.page))};
Qe.prototype.pageChangedForBinding=Qe.prototype.pageChangedForBinding;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Qe.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Qe.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Qe.prototype,"data",void 0);_.O([_.h(),_.g("design:type",String)],Qe.prototype,"page",void 0);
_.O([_.so("page"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Qe.prototype,"pageChangedForBinding",null);Qe=_.O([_.v({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],Qe);
_.xc()(Qe,"ytd-account-section-list-renderer",function(){if(Rlw===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);Rlw=K}K=Rlw;return K},{allowedProps:["data"],
mode:1});var mlo;var MC=function(){var K=_.G.apply(this,arguments)||this;K.enableHandlesAccountMenuSwitcher=_.S("enable_handles_account_menu_switcher");return K};
_.r(MC,_.G);MC.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
MC.prototype.dataChanged=MC.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],MC.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],MC.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],MC.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.O([_.fa("#avatar"),_.g("design:type",Object)],MC.prototype,"avatar",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MC.prototype,"dataChanged",null);MC=_.O([_.v({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],MC);
_.xc()(MC,"ytd-active-account-header-renderer",function(){if(mlo===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);mlo=K}K=mlo;return K},{allowedProps:["data"],
mode:1});var GKt;var lPs;var cP=function(){return _.G.apply(this,arguments)||this};
_.r(cP,_.G);cP.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
cP.prototype.onBackTap=function(){_.iX(this.hostElement,"yt-menu-back-tapped")};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],cP.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],cP.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],cP.prototype,"data",void 0);cP=_.O([_.v({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],cP);
_.xc()(cP,"ytd-simple-menu-header-renderer",function(){if(lPs===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);lPs=K}K=lPs;return K},{allowedProps:["data"],
mode:2});var vqt;var pg=function(){return _.G.apply(this,arguments)||this};
_.r(pg,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],pg.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],pg.prototype,"data",void 0);pg=_.O([_.v({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],pg);
_.t(pg,"ytd-comment-video-thumbnail-header-renderer",function(){if(vqt!==void 0)return vqt;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return vqt=K},{mode:1});var aPw;var BP=function(){return _.G.apply(this,arguments)||this};
_.r(BP,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],BP.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],BP.prototype,"data",void 0);BP=_.O([_.v({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],BP);
_.t(BP,"ytd-abuse-type-selector-renderer",function(){if(aPw!==void 0)return aPw;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return aPw=K},{mode:1});var tYw;var Ss=function(){return _.G.apply(this,arguments)||this};
_.r(Ss,_.G);Ss.prototype.attached=function(){var K=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){K.additionalContextInput.focusTextInput()})};
Ss.prototype.handleAdditionalContextChanged=function(){var K=this;_.eu(this,"ytd-report-channel-additional-context-update",function(){K.ytdReduxBehavior.dispatch(_.iY({type:"ADDITIONAL_CONTEXT_UPDATED",payload:K.additionalContext}))},300)};
Ss.prototype.updateAdditionalContextFromBinding=function(K){this.additionalContext=K.detail.value};
Ss.prototype.handleAdditionalContextChanged=Ss.prototype.handleAdditionalContextChanged;_.O([_.W(_.jn),_.g("design:type",Object)],Ss.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",String)],Ss.prototype,"additionalContext",void 0);_.O([_.h({selector:function(K){return K.reportChannelAbuse.additionalContext}}),
_.g("design:type",String)],Ss.prototype,"additionalContextRedux",void 0);_.O([_.h(),_.g("design:type",Object)],Ss.prototype,"data",void 0);_.O([_.fa("yt-text-input-form-field-renderer"),_.g("design:type",Object)],Ss.prototype,"additionalContextInput",void 0);_.O([_.so("additionalContext"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ss.prototype,"handleAdditionalContextChanged",null);
Ss=_.O([_.v({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],Ss);
_.t(Ss,"ytd-report-channel-modal-additional-context-renderer",function(){if(tYw!==void 0)return tYw;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return tYw=K},{mode:1});var $lG;var o$=function(){var K=_.G.apply(this,arguments)||this;K.nextButtonDisabled=null;K.submitEndpoint=null;K.navigationEndpoint=null;K.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return K};
_.r(o$,_.G);_.z=o$.prototype;_.z.computeNextButtonData=function(K,X,F){var P={};X&&(P.navigationEndpoint=X);F&&(P.serviceEndpoint=F);K&&K.buttonRenderer&&_.T8.extend(P,K.buttonRenderer);return P};
_.z.handleReportChannelModalDisableNextButtonAction=function(K){this.setNextButtonIsDisabled(K)};
_.z.handleReportFormEndpointUpdateAction=function(K){this.setNextButtonIsDisabled(!!K.disableSubmitButton);this.resetEndpointData();K.submitEndpoint?this.submitEndpoint=K.submitEndpoint:K.submitNavigationEndpoint&&(this.navigationEndpoint=K.submitNavigationEndpoint)};
_.z.handleSignalActionSubmitForm=function(){var K,X=Object.keys(((K=this.reportChannelAbuseForm)==null?void 0:K.selectedVideoIds)||{}),F;K=((F=this.reportChannelAbuseForm)==null?void 0:F.additionalContext)||"";var P;F=((P=this.reportChannelAbuseForm)==null?void 0:P.impersonatedChannelUrl)||"";var H;if((H=this.data)==null?0:H.submitEndpoint){X={impersonated_channel_url:F,text:K,video_ids:X};var f;_.i9().resolve(_.xU).resolveCommand((f=this.data)==null?void 0:f.submitEndpoint,{form:Object.assign({},
X,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.z.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.z.onYtServiceRequestError=function(K){this.setNextButtonIsDisabled(!1);_.b6(this.hostElement,K.detail.error.message)};
_.z.setNextButtonIsDisabled=function(K){this.set("data.nextButton.buttonRenderer.isDisabled",K)};
_.z.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
o$.prototype.onYtServiceRequestError=o$.prototype.onYtServiceRequestError;o$.prototype.onYtServiceRequestCompleted=o$.prototype.onYtServiceRequestCompleted;_.O([_.h(),_.g("design:type",Object)],o$.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],o$.prototype,"nextButtonDisabled",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],o$.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],o$.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],o$.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],o$.prototype,"submitEndpoint",void 0);_.O([_.h(),_.g("design:type",Object)],o$.prototype,"navigationEndpoint",void 0);_.O([_.h({selector:function(K){return K.reportChannelAbuse}}),
_.g("design:type",Object)],o$.prototype,"reportChannelAbuseForm",void 0);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],o$.prototype,"onYtServiceRequestCompleted",null);_.O([_.Hc("yt-service-request-error"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],o$.prototype,"onYtServiceRequestError",null);
o$=_.O([_.v({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],o$);
_.t(o$,"ytd-report-channel-modal-footer-renderer",function(){if($lG!==void 0)return $lG;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return $lG=K},{mode:1});var O38;var Lg=function(){var K=_.G.apply(this,arguments)||this;K.boundOnTapDismissButton=function(){K.closePopup()};
return K};
_.r(Lg,_.G);Lg.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
Lg.prototype.handleDataChanged=function(){_.OM(this.hostElement)};
Lg.prototype.closePopup=function(){_.xr(this.hostElement,"yt-close-popup-action")};
Lg.prototype.handleDataChanged=Lg.prototype.handleDataChanged;_.O([_.h(),_.g("design:type",Object)],Lg.prototype,"boundOnTapDismissButton",void 0);_.O([_.h(),_.g("design:type",Object)],Lg.prototype,"data",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Lg.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Lg.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Lg.prototype,"handleDataChanged",null);Lg=_.O([_.v({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],Lg);
_.t(Lg,"ytd-report-channel-modal-header-renderer",function(){if(O38!==void 0)return O38;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return O38=K},{mode:1});var VYW;var Tu=function(){var K=_.G.apply(this,arguments)||this;K.autoValidate=!1;K.invalid=!1;K.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return K};
_.r(Tu,_.G);_.z=Tu.prototype;_.z.attached=function(){var K=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){K.channelUrlInput.focusTextInput()})};
_.z.disableNextButton=function(K){_.xr(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[K])};
_.z.handleImpersonatedChannelUrlChanged=function(){var K=this;this.disableNextButton(!0);this.invalid=!1;_.eu(this,"ytd-report-channel-impersonated-channel-update",function(){var X=K.impersonatedChannelUrl.trim();K.ytdReduxBehavior.dispatch(_.iY({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:X}));var F;((F=K.data)==null?0:F.submitEndpoint)&&X&&_.i9().resolve(_.xU).resolveCommand(K.data.submitEndpoint,{form:{impersonated_channel_url:X,element:K.hostElement}})},500)};
_.z.handleModifyReportFormCommand=function(K){this.invalid=this.get("modifyReportFormCommand.action",K)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.z.updateInvalidFromBinding=function(K){this.invalid=K.detail.value};
_.z.updateImpersonatedChannelUrlFromBinding=function(K){this.impersonatedChannelUrl=K.detail.value};
Tu.prototype.handleImpersonatedChannelUrlChanged=Tu.prototype.handleImpersonatedChannelUrlChanged;_.O([_.W(_.jn),_.g("design:type",Object)],Tu.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Tu.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Tu.prototype,"autoValidate",void 0);_.O([_.h(),_.g("design:type",Object)],Tu.prototype,"invalid",void 0);
_.O([_.h(),_.g("design:type",String)],Tu.prototype,"impersonatedChannelUrl",void 0);_.O([_.h({selector:function(K){return K.reportChannelAbuse.impersonatedChannelUrl}}),
_.g("design:type",String)],Tu.prototype,"impersonatedChannelUrlRedux",void 0);_.O([_.h(),_.g("design:type",Object)],Tu.prototype,"data",void 0);_.O([_.fa("#text-input"),_.g("design:type",Object)],Tu.prototype,"channelUrlInput",void 0);_.O([_.so("impersonatedChannelUrl"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Tu.prototype,"handleImpersonatedChannelUrlChanged",null);
Tu=_.O([_.v({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],Tu);
_.t(Tu,"ytd-report-channel-modal-impersonation-renderer",function(){if(VYW!==void 0)return VYW;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return VYW=K},{mode:1});var gqF;var Eq8;var rf=function(){return _.G.apply(this,arguments)||this};
_.r(rf,_.G);rf.prototype.onCheckboxToggled=function(K){var X,F,P=(F=_.T((X=this.data)==null?void 0:X.video,_.y3))==null?void 0:F.videoId;P&&this.ytdReduxBehavior.dispatch(K.target.checked?_.iY({type:"VIDEO_SELECTED",payload:P}):_.iY({type:"VIDEO_UNSELECTED",payload:P}))};
rf.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.Oi.Object.defineProperties(rf.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var K,X=(K=this.data)==null?void 0:K.video;if(!X)return{};var F;K=(F=_.T(X,_.y3))==null?void 0:F.navigationEndpoint;if(!K)return X;_.T(K==null?void 0:K.commandMetadata,_.g_)&&(_.T(K.commandMetadata,_.g_).ignoreNavigation=!0);return X}}});
_.O([_.h({reflectToAttribute:!0,selector:function(K,X){return X in K.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.g("design:type",Boolean)],rf.prototype,"checked",void 0);_.O([_.h(),_.g("design:type",Object)],rf.prototype,"data",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],rf.prototype,"video",null);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],rf.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],rf.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.W(_.jn),_.g("design:type",Object)],rf.prototype,"ytdReduxBehavior",void 0);rf=_.O([_.v({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],rf);
_.t(rf,"ytd-selectable-video-renderer",function(){if(Eq8!==void 0)return Eq8;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Eq8=K},{mode:1});var AS=function(){var K=_.G.apply(this,arguments)||this;K.monitorScroll=!0;return K};
_.r(AS,_.G);AS.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],AS.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],AS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],AS.prototype,"data",void 0);AS=_.O([_.v({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],AS);
_.t(AS,"ytd-selectable-video-list-renderer",function(){if(gqF!==void 0)return gqF;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return gqF=K},{mode:1});var b38;_.L4("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var js=function(){return _.G.apply(this,arguments)||this};
_.r(js,_.G);js.prototype.onChange=function(K){if(K=_.vI(K).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.S("kevlar_command_handler_migration_killswitch"))_.X0(this.hostElement,K,this.hostElement);else{K=_.D(K);for(var X=K.next();!X.done;X=K.next())this.ytComponentBehavior.resolveCommand(X.value)}};
js.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
js.prototype.updateDataToggledFromBinding=function(K){this.set("data.toggled",K.detail.value)};
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],js.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],js.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],js.prototype,"data",void 0);_.O([_.h({computed:"isEnabled(data)"}),_.g("design:type",Boolean)],js.prototype,"enabled",void 0);js=_.O([_.v({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],js);
_.t(js,"ytd-toggle-item-renderer",function(){if(b38!==void 0)return b38;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return b38=K},{mode:1});var Css;var NA5;var i3F;var wf=function(){var K=_.G.apply(this,arguments)||this;K.setVisible=!1;K.boundOnSubmitButtonClick=function(){K.onSubmitButtonClick()};
K.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return K};
_.r(wf,_.G);wf.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}}}}}};
wf.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
wf.prototype.onSubmitButtonClick=function(){var K;((K=this.data)==null?0:K.submitEndpoint)&&!_.S("enable_ytc_refunds_submit_form_signal_action")&&_.Kl(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
wf.prototype.handleSignalActionSubmitForm=function(){var K;((K=this.data)==null?0:K.submitEndpoint)&&_.Kl(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.Oi.Object.defineProperties(wf.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.hiddenByDefault)&&!this.setVisible}}});
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],wf.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],wf.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],wf.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],wf.prototype,"setVisible",void 0);_.O([_.h(),_.g("design:type",Object)],wf.prototype,"data",void 0);
_.O([_.h(),_.g("design:type",Object)],wf.prototype,"surveyFeedbackData",void 0);_.O([_.h(),_.g("design:type",Object)],wf.prototype,"boundOnSubmitButtonClick",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("data","setVisible"),_.g("design:type",Object),_.g("design:paramtypes",[])],wf.prototype,"visibilityHidden",null);wf=_.O([_.Tb({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],wf);
_.t(wf,"yt-flow-footer-renderer",function(){if(i3F===void 0){var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;NA5===void 0&&(NA5=document.createElement("template"));var P=NA5;F.call(X,P.content.cloneNode(!0),K.content.firstChild);i3F=K}K=i3F;return K},{mode:2});var ye=function(){return _.G.apply(this,arguments)||this};
_.r(ye,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ye.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],ye.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],ye.prototype,"data",void 0);_.O([_.h({selector:function(K){return K.ypc.surveyFeedbackData}}),
_.g("design:type",Object)],ye.prototype,"surveyFeedbackData",void 0);ye=_.O([_.v({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],ye);
_.t(ye,"ytd-flow-footer-renderer",function(){if(Css!==void 0)return Css;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Css=K},{mode:_.Ig("kevlar_poly_si_batch_j025")?1:2});var xl8;var IP5;var WP=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return K};
_.r(WP,_.G);_.z=WP.prototype;_.z.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.T9("multiPageMenuSectionItems")}}};
_.z.handleHideEnclosingAction_=function(K){if(this.data&&this.data.items)for(var X=0;X<this.data.items.length;X++){var F=this.data.items[X].notificationRenderer;if(F&&F.notificationId==K.hideEnclosingAction.notificationId){this.splice("data.items",X,1);_.xr(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.z.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.x1(this.hostElement,"hidden",!0)};
_.z.updateMenu_=function(K){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&K&&!K.doNotRefreshInbox){K=this.data.continuations;for(var X=0;X<K.length;X++)if(K[X].invalidationContinuationData){var F=void 0;var P=(F=K[X].invalidationContinuationData)==null?void 0:F.continuation;break}K=_.T8.clone(this.data.continuationUpdateEndpoint||null);K.continuation=P;K.click_tracking_params=this.data.trackingParams;_.Kl(this.hostElement,[K])}};
_.z.onServiceRequestCompleted_=function(K,X){if(this.data&&(K=X.actions)){X=0;for(var F=K.length;X<F;X++){var P=_.T(K[X],_.tNO);if(!P)break;if((P.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||P.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&P.continuationItems&&this.data.items){var H=this.data.items.length-1;this.data.items[H].continuationItemRenderer&&this.splice.apply(this,["data.items",H,1].concat(P.continuationItems))}}}};
WP.prototype.onServiceRequestCompleted_=WP.prototype.onServiceRequestCompleted_;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],WP.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],WP.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],WP.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],WP.prototype,"data",void 0);
_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.G9]),_.g("design:returntype")],WP.prototype,"onServiceRequestCompleted_",null);WP=_.O([_.Tb({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],WP);
_.xc()(WP,"yt-multi-page-menu-section-renderer",function(){if(IP5===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;xl8===void 0&&(xl8=document.createElement("template"));var P=xl8;F.call(X,P.content.cloneNode(!0),K.content.firstChild);IP5=K}K=IP5;return K},{allowedProps:["data"],
mode:2});var kKW;var KE8;var df=function(){return _.G.apply(this,arguments)||this};
_.r(df,_.G);df.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.Oi.Object.defineProperties(df.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.progress)==null?0:this.data.progress*100}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],df.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],df.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],df.prototype,"data",void 0);_.O([_.U("data.progress"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],df.prototype,"showProgressBar",null);
_.O([_.U("data.progress"),_.g("design:type",Number),_.g("design:paramtypes",[])],df.prototype,"progress",null);df=_.O([_.Tb({is:"yt-flow-header-renderer",disableElementRegistration:!0})],df);
_.t(df,"yt-flow-header-renderer",function(){if(KE8===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;kKW===void 0&&(kKW=document.createElement("template"));var P=kKW;F.call(X,P.content.cloneNode(!0),K.content.firstChild);KE8=K}K=KE8;return K},{mode:2});var XCv;var FEF;var es=function(){return _.G.apply(this,arguments)||this};
_.r(es,_.G);es.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],es.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],es.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],es.prototype,"data",void 0);es=_.O([_.Tb({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],es);
_.t(es,"yt-post-confirmation-flow-step-renderer",function(){if(FEF===void 0){var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;XCv===void 0&&(XCv=document.createElement("template"));var P=XCv;F.call(X,P.content.cloneNode(!0),K.content.firstChild);FEF=K}K=FEF;return K},{mode:2});var PdF;var HAt;var R$=function(){return _.G.apply(this,arguments)||this};
_.r(R$,_.G);
R$.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"}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],R$.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],R$.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],R$.prototype,"data",void 0);R$=_.O([_.Tb({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],R$);
_.t(R$,"yt-refund-confirmation-flow-step-renderer",function(){if(HAt===void 0){var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;PdF===void 0&&(PdF=document.createElement("template"));var P=PdF;F.call(X,P.content.cloneNode(!0),K.content.firstChild);HAt=K}K=HAt;return K},{mode:2});_.iy($$5);_.iy(OyF);var V4o=_.Jf({avatarViewModel:_.BY});_.iy(grs);var Erw=_.Jf({commentInteractionViewModel:OyF,sharedSubscriptionViewModel:grs,buttonViewModel:_.Af});_.iy(byF);_.iy(CX8);_.iy(N_8);_.iy(iyo);_.iy(x$F);var Iv8=_.Jf({profileIdentityInfoViewModel:_.kpo,profileInfoViewModel:x$F});_.iy(kYG);_.K4(kYG,"yt-profile-card-view-model",{propNames:["data"]});var Ub=function(){var K=_.G.apply(this,arguments)||this;K.enableFocusFix=_.S("music_web_enable_focus_on_setting_menu_fix")&&_.RU("IS_MOBILE_WEB",!1);K.covered=!1;K.hideMenu=!1;K.isCommentNotificationOnProfileCard=!1;K.scrolledByTouch=!1;K.disableBackdropFilter=_.S("web_disable_backdrop_filter");K.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return K};
_.r(Ub,_.G);_.z=Ub.prototype;
_.z.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{activeAccountHeaderRenderer:"ytd-active-account-header-renderer",flowHeaderRenderer:"yt-flow-header-renderer",simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer",reportChannelModalHeaderRenderer:"ytd-report-channel-modal-header-renderer"}},"data.sections":{id:"sections",mapping:{additionalContextRenderer:"ytd-report-channel-modal-additional-context-renderer",abuseTypeSelectorRenderer:"ytd-abuse-type-selector-renderer",accountSectionListRenderer:"ytd-account-section-list-renderer",
backgroundPromoRenderer:"ytd-background-promo-renderer",commentVideoThumbnailHeaderRenderer:"ytd-comment-video-thumbnail-header-renderer",impersonationScreenRenderer:"ytd-report-channel-modal-impersonation-renderer",itemSectionRenderer:"ytd-comments",messageRenderer:"ytd-message-renderer",multiPageMenuNotificationSectionRenderer:"yt-multi-page-menu-section-renderer",multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",postConfirmationFlowStepRenderer:"yt-post-confirmation-flow-step-renderer",
refundConfirmationFlowStepRenderer:"yt-refund-confirmation-flow-step-renderer",selectableVideoListRenderer:"ytd-selectable-video-list-renderer",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",toggleItemRenderer:"ytd-toggle-item-renderer",profileCardViewModel:"yt-profile-card-view-model",continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.footer":{id:"footer",mapping:{multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",reportChannelModalFooterRenderer:"ytd-report-channel-modal-footer-renderer",
flowFooterRenderer:"ytd-flow-footer-renderer"}}}};
_.z.ready=function(){var K=this;this.JSC$17947_containerElement.addEventListener("scroll",function(){K.ytRendererBehavior.markDirty()})};
_.z.attributeChanged=function(K,X){K==="menu-style"&&_.xr(this.hostElement,"yt-multi-page-menu-closed-action",[X])};
_.z.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Pc(this,this.focusOnStampFinished))};
_.z.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.Pc(this,this.focusOnStampFinished))};
_.z.reset=function(){this.closeJobId&&(_.A9.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.z.focusOnStampFinished=function(K){K.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Pc(this,this.focusOnStampFinished)),this.doFocus())};
_.z.doFocus=function(){var K=_.KWU(this.sectionsElement);K.length&&K[0].focus()};
_.z.computeMenuStyle=function(K){return K?K.toLowerCase().replace(/_/g,"-"):""};
_.z.computeIsCommentNotificationOnProfileCard=function(K){return _.S("enable_profile_cards_on_comments")&&K.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.z.computeHideMenu=function(K,X){return K||!(!X||!X.showLoadingSpinner)};
_.z.onPopupClosed=function(){this.isPopUpOpen=!1;_.xr(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.z.onPopupOpened=function(K,X){this.isPopUpOpen=!0;X.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.iX(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.iY({type:"CHANNEL_REPORT_RESET"})))};
_.z.onYtNavigate=function(K,X){this.shouldCloseOnNavigateEvent(X.endpoint)&&_.xr(this.hostElement,"yt-close-all-popups-action")};
_.z.handleEndpoint=function(K){K=_.T(K,_.Lz);!this.isCommentNotificationOnProfileCard&&K&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17947_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.z.handleActions=function(K){for(var X=0,F=K.length;X<F;X++){var P=_.T(K[X],YKG);P&&this.handleGetMultiPageMenuAction(P);(P=_.T(K[X],_.tNO))&&this.handleAppendContinuationItemsAction(P)}};
_.z.onServiceRequestSentOrCompleted=function(K,X){K.detail&&K.detail.endpoint&&this.handleEndpoint(K.detail.endpoint);X.actions&&this.handleActions(X.actions)};
_.z.handleGetMultiPageMenuAction=function(K){var X=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.C$(this.submenuElement).appendChild(X);(K=K.menu.multiPageMenuRenderer)&&this.logSubmenu(K);X.data=K;X.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.z.handleAppendContinuationItemsAction=function(K){if(this.data&&K.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&K.continuationItems&&this.data.sections){var X=this.data.sections.length-1;this.data.sections[X].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),X--);if(this.data.sections[X].multiPageMenuNotificationSectionRenderer&&K.continuationItems){K=_.D(K==null?void 0:K.continuationItems);for(var F=K.next();!F.done;F=K.next())if(F=F.value,_.T(F,aok)){var P=
void 0,H=void 0,f=void 0,u=void 0,J=void 0;((P=this)==null?0:(H=P.data)==null?0:(f=H.sections)==null?0:(u=f[X])==null?0:(J=u.multiPageMenuNotificationSectionRenderer)==null?0:J.items)&&this.push("data.sections."+X+".multiPageMenuNotificationSectionRenderer.items",F)}else if(_.T(F,_.wLU)||_.T(F,_.xR))this.push("data.sections",F),X++}}};
_.z.logSubmenu=function(K){if(!_.S("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var X=this.ytRendererBehavior.getScreenLayer(),F=_.AD(X),P=_.r_(X);if((K=K.trackingParams)&&F&&P){var H=_.QB(K);_.S("combine_ve_grafts")?_.uH().graftServerVe(K,P,X):_.Us(F,P,H)}}};
_.z.emptySubmenuContainer=function(){for(var K=_.C$(this.submenuElement);K.firstChild;)K.removeChild(K.firstChild)};
_.z.onMenuBackTap=function(K){_.iX(this.hostElement,"yt-submenu-closed");K.stopPropagation()};
_.z.onSubmenuClosed=function(K){_.vI(K)!==this.hostElement&&(this.covered=!1,_.iX(this.hostElement,"yt-refit"),K.stopPropagation())};
_.z.onRetrieveLocation=function(K,X){X.hasComments&&(X.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),K.stopPropagation())};
_.z.shouldCloseOnNavigateEvent=function(K){if(!K)return!0;if(_.T(K,_.AmW)||_.T(K,_.j5V)||_.T(K,_.rmT)||_.T(K,_.mc))return!1;var X;return((X=_.T(K==null?void 0:K.commandMetadata,_.g_))==null?0:X.ignoreNavigation)?!1:!0};
_.z.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.z.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.z.refitAfterRender=function(){var K=this;_.tg(this,function(){_.iX(K.hostElement,"yt-refit")})};
Ub.prototype.refitAfterRender=Ub.prototype.refitAfterRender;Ub.prototype.onRetrieveLocation=Ub.prototype.onRetrieveLocation;Ub.prototype.onSubmenuClosed=Ub.prototype.onSubmenuClosed;Ub.prototype.onMenuBackTap=Ub.prototype.onMenuBackTap;Ub.prototype.onServiceRequestSentOrCompleted=Ub.prototype.onServiceRequestSentOrCompleted;Ub.prototype.onYtNavigate=Ub.prototype.onYtNavigate;Ub.prototype.onPopupOpened=Ub.prototype.onPopupOpened;Ub.prototype.onPopupClosed=Ub.prototype.onPopupClosed;
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Ub.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],Ub.prototype,"ytEventForwardingBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Ub.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],Ub.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Ub.prototype,"data",void 0);
_.O([_.h(),_.g("design:type",Object)],Ub.prototype,"enableFocusFix",void 0);_.O([_.h(),_.g("design:type",Object)],Ub.prototype,"covered",void 0);_.O([_.h({computed:"computeHideMenu(covered, data)"}),_.g("design:type",Object)],Ub.prototype,"hideMenu",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.g("design:type",String)],Ub.prototype,"menuStyle",void 0);
_.O([_.h({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.g("design:type",Object)],Ub.prototype,"isCommentNotificationOnProfileCard",void 0);_.O([_.h(),_.g("design:type",Boolean)],Ub.prototype,"isPopUpOpen",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Ub.prototype,"scrolledByTouch",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Ub.prototype,"disableBackdropFilter",void 0);
_.O([_.fa("#sections"),_.g("design:type",HTMLElement)],Ub.prototype,"sectionsElement",void 0);_.O([_.fa("#spinner"),_.g("design:type",HTMLElement)],Ub.prototype,"spinnerElement",void 0);_.O([_.fa("#header"),_.g("design:type",HTMLElement)],Ub.prototype,"headerElement",void 0);_.O([_.fa("#container"),_.g("design:type",HTMLElement)],Ub.prototype,"JSC$17947_containerElement",void 0);_.O([_.fa("#submenu"),_.g("design:type",HTMLElement)],Ub.prototype,"submenuElement",void 0);
_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ub.prototype,"onPopupClosed",null);_.O([_.Hc("yt-popup-opened"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],Ub.prototype,"onPopupOpened",null);_.O([_.Hc("yt-navigate"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],Ub.prototype,"onYtNavigate",null);
_.O([_.Hc("yt-service-request-completed"),_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.G9]),_.g("design:returntype")],Ub.prototype,"onServiceRequestSentOrCompleted",null);_.O([_.Hc("yt-menu-back-tapped"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Ub.prototype,"onMenuBackTap",null);
_.O([_.Hc("yt-submenu-closed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Ub.prototype,"onSubmenuClosed",null);_.O([_.Hc("yt-retrieve-location"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],Ub.prototype,"onRetrieveLocation",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ub.prototype,"refitAfterRender",null);
Ub=_.O([_.v({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],Ub);
_.t(Ub,"ytd-multi-page-menu-renderer",function(){if(GKt!==void 0)return GKt;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return GKt=K},{mode:1});var sWJ;var hS=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return K};
_.r(hS,_.G);_.z=hS.prototype;_.z.created=function(){this.showTooltips=!0};
_.z.computeAccessibility_=function(K){return this.get("accessibility.accessibilityData",K)||null};
_.z.onTap=function(){var K=_.IJ(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(K&&K.length===1&&K[0])_.xr(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var X;if((X=this.data)==null?0:X.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var F;((F=this.data)==null?0:F.menuRequest)&&_.Kl(this.hostElement,[this.data.menuRequest])}}};
_.z.handleTopbarMenuClosedAction=function(K){var X,F;(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(K)===((X=this.data)==null?void 0:(F=X.icon)==null?void 0:F.iconType)&&this.toggleIconState(!1)};
_.z.toggleIconState=function(K){_.S("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=K)};
_.z.handleUpdateTopbarAvatarAction=function(K){var X;K=(X=_.T(K,zVo))==null?void 0:X.avatarUrl;var F,P;X=(F=this.data)==null?void 0:(P=F.avatar)==null?void 0:P.thumbnails;K&&X&&(F={thumbnails:[Object.assign({},X[0],{url:K})]},this.set("data.avatar",F))};
_.Oi.Object.defineProperties(hS.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.C$(this.hostElement).querySelector("#button")}}});
hS.prototype.onTap=hS.prototype.onTap;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],hS.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],hS.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.v9),_.g("design:type",Object)],hS.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.W(_.KFL.YtButtonBehavior),_.g("design:type",Object)],hS.prototype,"ytButtonBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],hS.prototype,"data",void 0);
_.O([_.fa("yt-icon-button#button"),_.g("design:type",Object)],hS.prototype,"iconButton",void 0);_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],hS.prototype,"onTap",null);hS=_.O([_.v({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],hS);
_.t(hS,"ytd-topbar-menu-button-renderer",function(){if(sWJ!==void 0)return sWJ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return sWJ=K},{mode:1});var zkk;var mZ=function(){return _.G.apply(this,arguments)||this};
_.r(mZ,_.G);mZ.prototype.getSelected=function(){return this.reasons.selected};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],mZ.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],mZ.prototype,"data",void 0);_.O([_.fa("#reasons"),_.g("design:type",Object)],mZ.prototype,"reasons",void 0);mZ=_.O([_.v({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],mZ);
_.t(mZ,"ytd-ad-feedback-content",function(){if(zkk!==void 0)return zkk;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return zkk=K},{mode:1});var fDV;var Gu=function(){return _.G.apply(this,arguments)||this};
_.r(Gu,_.G);_.z=Gu.prototype;_.z.onPopupOpened=function(){_.xr(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.z.computeConfirmButton=function(K){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:K.confirmLabel}};
_.z.computeCancelButton=function(K){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:K.cancelLabel}};
_.z.onConfirmTap=function(){var K=this.content.getSelected();K!==void 0&&(K=this.data.reasons[K].endpoint)&&(_.i9().resolve(_.xU).resolveCommand(K,{form:{element:this.hostElement}}),_.xr(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.z.sendFeedbackSubmitToastAction=function(){var K;(K=this.data)!=null&&K.completionMessage&&_.xr(this.hostElement,"yt-open-popup-action",[_.$x(this.data.completionMessage),this])};
_.z.onCancelTap=function(){_.xr(this.hostElement,"yt-close-popup-action")};
Gu.prototype.onPopupOpened=Gu.prototype.onPopupOpened;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Gu.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Gu.prototype,"data",void 0);_.O([_.fa("#content"),_.g("design:type",Object)],Gu.prototype,"content",void 0);_.O([_.Hc("yt-popup-opened"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Gu.prototype,"onPopupOpened",null);
Gu=_.O([_.v({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],Gu);
_.t(Gu,"ytd-ad-feedback-renderer",function(){if(fDV!==void 0)return fDV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return fDV=K},{mode:1});var DhW;var l3=function(){return _.G.apply(this,arguments)||this};
_.r(l3,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],l3.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],l3.prototype,"data",void 0);l3=_.O([_.v({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],l3);
_.t(l3,"ytd-ad-info-dialog-content",function(){if(DhW!==void 0)return DhW;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return DhW=K},{mode:1});var uak;var vP=function(){return _.G.apply(this,arguments)||this};
_.r(vP,_.G);vP.prototype.computeConfirmButton=function(K){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:K.confirmLabel}};
vP.prototype.onConfirmTap=function(){_.xr(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
vP.prototype.computeShouldShowTitle=function(){var K;return!((K=this.data)==null||!K.title)};
vP.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.i9().resolve(_.xU).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
vP.prototype.onPopupClosed=vP.prototype.onPopupClosed;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],vP.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],vP.prototype,"data",void 0);_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],vP.prototype,"onPopupClosed",null);vP=_.O([_.v({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],vP);
_.t(vP,"ytd-ad-info-dialog-renderer",function(){if(uak!==void 0)return uak;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return uak=K},{mode:1});var q6W;var a$=function(){var K=_.G.apply(this,arguments)||this;K.actionButtonClass="action-button";K.dismissButtonId="dismiss-button";K.dialogDismiss=!0;return K};
_.r(a$,_.G);_.z=a$.prototype;_.z.computeInPlayer=function(K){return(K==null?void 0:K.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.z.computedLogo=function(){var K,X;return this.isDarkTheme()?(K=this.data)==null?void 0:K.logoDark:(X=this.data)==null?void 0:X.logo};
_.z.computedHeaderImage=function(){var K,X;return this.isDarkTheme()?(K=this.data)==null?void 0:K.headerImageDark:(X=this.data)==null?void 0:X.headerImage};
_.z.computeLogoIconId=function(){var K,X,F,P=(K=this.computedLogo())==null?void 0:(X=K.sources)==null?void 0:(F=X[0])==null?void 0:F.height;return P&&P%31===0?"logo-icon-with-padding":"logo-icon"};
_.z.computeLogoIconHeight=function(){var K,X,F,P=(K=this.computedLogo())==null?void 0:(X=K.sources)==null?void 0:(F=X[0])==null?void 0:F.height;return P&&P%31===0?"31":"24"};
_.z.onPopupClosed=function(){_.i9().resolve(_.K7).dispose()};
_.z.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.z.onShow=function(){this.inPlayer&&_.HI(6)};
_.z.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var K=0;K<this.data.impressionEndpoints.length;K++){var X=_.T(this.data.impressionEndpoints[K],_.j9);X&&this.ytComponentBehavior.resolveCommand(X)}};
_.z.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.xr(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.Oi.Object.defineProperties(a$.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var K,X;return!((K=this.data)==null||!K.headerImageDark)&&!((X=this.data)==null||!X.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.secondaryButton)}}});
a$.prototype.onPopupClosed=a$.prototype.onPopupClosed;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],a$.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],a$.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.Ux.YtVisibilityBehavior),_.g("design:type",Object)],a$.prototype,"ytVisibilityBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],a$.prototype,"data",void 0);
_.O([_.h(),_.g("design:type",Object)],a$.prototype,"actionButtonClass",void 0);_.O([_.h(),_.g("design:type",Object)],a$.prototype,"dismissButtonId",void 0);_.O([_.h(),_.g("design:type",Object)],a$.prototype,"dialogDismiss",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],a$.prototype,"hasHeaderImage",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],a$.prototype,"hasPremiumButton",null);
_.O([_.h({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.g("design:type",Boolean)],a$.prototype,"inPlayer",void 0);_.O([_.fa("#dismiss-button"),_.g("design:type",HTMLElement)],a$.prototype,"dismissButton",void 0);_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],a$.prototype,"onPopupClosed",null);a$=_.O([_.v({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],a$);
_.t(a$,"ytd-enforcement-message-view-model",function(){if(q6W!==void 0)return q6W;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return q6W=K},{mode:1});var Jj5;var ZA8;var tS=function(){var K=_.G.apply(this,arguments)||this;K.TEST_ONLY={immediateValidation:function(){K.immediateValidation()},
onValidationResponse:function(X){K.onValidationResponse(X)},
onGenerateHandleFromNameResponse:function(X){K.onGenerateHandleFromNameResponse(X)}};
return K};
_.r(tS,_.G);_.z=tS.prototype;_.z.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.z.validate=function(){this.immediateValidation()};
_.z.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.z.setHandleInputValue=function(K){this.handleDir=this.getHandleDir(K);this.handleInput.value=K;this.validationState={status:"PENDING"};this.immediateValidation()};
_.z.getHandleDir=function(K){var X=K===""&&!1;return(X=_.EUt.test.call(_.EUt,K))?"rtl":"ltr"};
_.z.onDataChanged=function(){var K,X;this.handleDir=this.getHandleDir((X=(K=this.data)==null?void 0:K.handle)!=null?X:"");var F;this.validationState=((F=this.data)==null?0:F.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var P;((P=this.data)==null?0:P.validateOnInit)&&this.immediateValidation()};
_.z.stopPropagation=function(K){K.stopPropagation()};
_.z.onInput=function(){var K;this.handleDir=this.getHandleDir((K=this.handleInput.value)!=null?K:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.z.onFocusout=function(K){this.handleInput.contains(K.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.z.delayedValidation=function(){var K,X;this.debouncedValidation((X=(K=this.data)==null?void 0:K.validationDelayMs)!=null?X:1E3)};
_.z.immediateValidation=function(){this.debouncedValidation(0)};
_.z.debouncedValidation=function(K){var X=this;_.eu(this,"debouncedValidation",function(){var F,P=X.staticValidation((F=X.handleInput.value)!=null?F:"");if(P!==void 0)X.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:P};else{var H;if((H=X.data)!=null&&H.validateChannelHandleCommand){X.validationState={status:"LOADING"};var f;X.ytComponentBehavior.resolveCommand(X.data.validateChannelHandleCommand,{form:{handle:(f=X.handleInput.value)!=null?f:""},commandController:{onSuccess:function(u,
J){X.onValidationResponse(J)},
onServerError:function(u,J){X.onValidationServerError(J)}}})}else X.handleUnexpectedValidationError(new _.nG("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",X.data))}},K)};
_.z.staticValidation=function(K){var X;if(((X=this.data)==null?void 0:X.channelHandleStaticValidationParams)!==void 0){X=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(K)&&X.validValueRegexpErrorMessage!==void 0)return X.validValueRegexpErrorMessage;if(X.minLength!==void 0&&K.length<X.minLength&&X.minLengthErrorMessage!==void 0)return X.minLengthErrorMessage;if(X.maxLength!==void 0&&K.length>X.maxLength&&X.maxLengthErrorMessage!==void 0)return X.maxLengthErrorMessage}};
_.z.onValidationResponse=function(K){var X=_.T(K.result,fow);X===void 0?this.handleUnexpectedValidationError(new _.nG("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",K)):this.handleValidationResultRenderer(X)};
_.z.onValidationServerError=function(K){this.handleUnexpectedValidationError(new _.nG("ValidateChannelHandle request failed.",K))};
_.z.handleValidationResultRenderer=function(K){if(K.handle===void 0)this.handleUnexpectedValidationError(new _.nG("ChannelHandleValidationResultRenderer does not contain handle.",K));else if(K.handle===this.handleInput.value)switch(K.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:K.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:K.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.nG("Unrecognized ChannelHandleValidationResult",K));break;default:_.zJ(K.result)}};
_.z.handleUnexpectedValidationError=function(K){var X;this.validationState={status:"UNKNOWN",handle:(X=this.handleInput.value)!=null?X:""};_.yy(K)};
_.z.stopEventPropagation=function(K){K.stopPropagation()};
_.z.updateHandleOnChannelNameInputChange=function(K){if(!this.wasEdited){var X,F;this.debouncedGenerateHandleFromName(K,(F=(X=this.data)==null?void 0:X.validationDelayMs)!=null?F:1E3)}};
_.z.debouncedGenerateHandleFromName=function(K,X){var F=this;_.eu(this,"debouncedGenerateHandleFromName",function(){var P;(P=F.data)!=null&&P.validateChannelHandleCommand?F.ytComponentBehavior.resolveCommand(F.data.validateChannelHandleCommand,{form:{name:K},commandController:{onSuccess:function(H,f){F.onGenerateHandleFromNameResponse(f)},
onServerError:function(H,f){_.yy(new _.nG("Error calling GenerateHandleFromName",f))}}}):_.yy(new _.nG("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",F.data))},X)};
_.z.onGenerateHandleFromNameResponse=function(K){this.wasEdited||((K=_.T(K.result,DM1))?this.setHandleInputValue(K.handle):_.yy(new _.nG("Invalid results when generate handle from name")))};
_.Oi.Object.defineProperties(tS.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var K;if(K=this.validationState)K=this.validationState,K=K.status==="OK"||K.status==="UNKNOWN";if(K)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var K;if(((K=this.validationState)==null?void 0:K.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 K,X=(K=this.channelHandleEntity)==null?void 0:K.handleEdit;this.handleDir=this.getHandleDir(X!=null?X:"");return X}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var K,X;if(((K=this.data)==null?void 0:(X=K.channelHandleStaticValidationParams)==null?void 0:X.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
tS.prototype.stopEventPropagation=tS.prototype.stopEventPropagation;tS.prototype.onDataChanged=tS.prototype.onDataChanged;tS.prototype.applyHandleEdit=tS.prototype.applyHandleEdit;tS.prototype.onValueChanged=tS.prototype.onValueChanged;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],tS.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],tS.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],tS.prototype,"data",void 0);
_.O([_.h(),_.g("design:type",Boolean)],tS.prototype,"wasEdited",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],tS.prototype,"handleDir",void 0);_.O([_.fa("#handle-input"),_.g("design:type",Object)],tS.prototype,"handleInput",void 0);_.O([_.h(),_.U("validationState"),_.g("design:type",Object),_.g("design:paramtypes",[])],tS.prototype,"value",null);
_.O([_.so("value"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],tS.prototype,"onValueChanged",null);_.O([_.U("validationState"),_.g("design:type",Object),_.g("design:paramtypes",[])],tS.prototype,"errorIndicator",null);_.O([_.h({reflectToAttribute:!0}),_.U("errorIndicator"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],tS.prototype,"borderErrorIndicator",null);
_.O([_.h({selectorArgs:["data.channelHandleEntityKey"],selector:function(K,X){return _.FF(K.entities,"channelHandle",X)}}),
_.g("design:type",Object)],tS.prototype,"channelHandleEntity",void 0);_.O([_.U("channelHandleEntity"),_.g("design:type",Object),_.g("design:paramtypes",[])],tS.prototype,"handleEdit",null);_.O([_.so("handleEdit"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],tS.prototype,"applyHandleEdit",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],tS.prototype,"onDataChanged",null);
_.O([_.U("data.channelHandleStaticValidationParams.validValueRegexp"),_.g("design:type",Object),_.g("design:paramtypes",[])],tS.prototype,"validValueRegexp",null);_.O([_.Hc("yt-service-request-sent"),_.Hc("yt-service-request-completed"),_.Hc("yt-service-request-error"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],tS.prototype,"stopEventPropagation",null);tS=_.O([_.v({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],tS);
_.t(tS,"ytd-channel-handle-input-renderer",function(){if(ZA8!==void 0)return ZA8;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return ZA8=K},{mode:_.Ig("kevlar_poly_si_batch_j025")?1:2});var $e=function(){var K=_.G.apply(this,arguments)||this;K.data=null;K.errorMessage=null;K.isLoading=!0;K.hideContainer=!1;K.enableNewChannelCreationOnIdForAll=_.S("enable_new_channel_creation_for_id4all");K.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"};K.testOnly={setErrorMessage:function(X){K.resetErrorState();
K.setErrorState(X)}};
return K};
_.r($e,_.G);_.z=$e.prototype;_.z.created=function(){this.logScreenVe()};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.toggleCreateChannelButton();this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.hostElement.parentElement.style.overflowY="auto")};
_.z.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var K;((K=this.zeroStepErrorMessageEntity)==null?0:K.value)&&this.set("errorMessage",_.GS(this.zeroStepErrorMessageEntity.value))};
_.z.onCreateTap=function(){var K=this;if(this.data&&this.data.channelCreationEndpoint){var X,F;if(!((X=this.data.createChannelButton)==null?0:(F=X.buttonRenderer)==null?0:F.isDisabled)){var P;if((P=this.nameInput)!=null&&P.value){this.setLoadingState();var H,f;X=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(H=this.handleInput)==null?void 0:H.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((f=this.handleInput)==null?void 0:f.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:X,commandController:{onSuccess:function(u,J){K.onChannelCreationEndpointSuccess(J);K.obakeImageSource&&_.LL("channelCreatedWithObakeImage",{imageSourceType:K.obakeImageSource})},
onServerError:function(){K.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.z.endpointRequiresServiceRequestAction=function(K){return!!_.T(K,_.Lk)||!!_.T(K,zVo)};
_.z.isNavigateAction=function(K){var X;return!!_.T(K,_.GA)||!!_.T((X=_.T(K,JLV))==null?void 0:X.command,_.GA)};
_.z.isPlaylistAction=function(K){return!!_.T(K,_.TI)||!!_.T(K,_.WH)};
_.z.onChannelCreationEndpointSuccess=function(K){if(K.createChannelError){var X;this.setErrorState((X=K.createChannelError)==null?void 0:X.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.S("enable_secondary_channel_creation_form")&&K.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(K.navigationEndpoint);if(K.actions){X=_.D(K.actions);for(var F=X.next();!F.done;F=X.next())if(F=F.value,this.endpointRequiresServiceRequestAction(F)&&this.ytComponentBehavior.resolveCommand(F),
this.isNavigateAction(F)){var P=void 0;F=_.T((P=_.T(F,JLV))==null?void 0:P.command,_.GA);P=void 0;this.isPlaylistAction((P=F)==null?void 0:P.endpoint)&&(_.xr(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),P=void 0,this.ytComponentBehavior.resolveCommand((P=F)==null?void 0:P.endpoint))}}K.actions&&K.actions.some(function(H){var f;return _.T(H,_.GA)||_.T((f=_.T(H,JLV))==null?void 0:f.command,_.GA)})||_.xr(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.z.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.z.onCancelTap=function(){var K,X,F;if(!((K=this.data)==null?0:(X=K.cancelButton)==null?0:(F=X.buttonRenderer)==null?0:F.isDisabled)){var P,H,f;K=(P=this.data)==null?void 0:(H=P.cancelButton)==null?void 0:(f=H.buttonRenderer)==null?void 0:f.command;if(!K||!_.T(K,_.qAO)){var u;this.nameInput&&((u=this.data)==null?0:u.name)&&(this.nameInput.value=this.data.name);var J;this.handleInput&&((J=this.data)==null?0:J.channelHandleInput)&&(this.handleInput.data=_.T(this.data.channelHandleInput,uzW));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.z.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.z.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.z.onClearProfilePhotoTap=function(){var K,X,F;((K=this.data)==null?0:(X=K.clearProfilePhotoButton)==null?0:(F=X.buttonRenderer)==null?0:F.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.z.onEditAvatarTap=function(){var K,X,F;((K=this.data)==null?0:(X=K.editAvatarButton)==null?0:(F=X.buttonRenderer)==null?0:F.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.z.setLoadingState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("errorMessage",null)};
_.z.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var K;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((K=this.data)==null?0:K.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.z.setErrorState=function(K){this.resetErrorState();if(K)this.set("errorMessage",K);else{var X;if((X=this.zeroStepErrorMessageEntity)==null?0:X.value)this.set("errorMessage",_.GS(this.zeroStepErrorMessageEntity.value));else{var F;((F=this.data)==null?0:F.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.z.fetchImageBlobWithAlr=function(K,X){X=X===void 0?5:X;var F=this,P,H,f,u,J;return _.q(function(Z){switch(Z.nextAddress){case 1:return _.Y(Z,fetch(K,{method:"GET",mode:"cors"}),2);case 2:P=Z.yieldResult;if(P.ok){Z.jumpTo(3);break}if(X===0)throw Error();H=F.addJitter(Math.pow(2,5-X));return _.Y(Z,new Promise(function(M){setTimeout(M,H*1E3)}),4);
case 4:return Z.return(F.fetchImageBlobWithAlr(K,X-1));case 3:if(!P.headers.get("content-type").split(";").some(function(M){return M.trim()==="text/plain"})){Z.jumpTo(5);
break}f=F;u=f.fetchImageBlobWithAlr;return _.Y(Z,P.text(),6);case 6:return Z.return(u.call(f,Z.yieldResult,X-1));case 5:return _.Y(Z,P.blob(),7);case 7:return J=Z.yieldResult,Z.return(J)}})};
_.z.addJitter=function(K){var X=K*.3*Math.random();Math.random()>.5&&(X*=-1);return K+X};
_.z.openProfilePicturePicker=function(){var K=this,X,F,P,H,f;return _.q(function(u){if(u.nextAddress==1){X=K.data.scottyUploadUrl;if(!X)return u.return();F=document.documentElement.hasAttribute("dark");P=document.body.style.colorScheme;F&&(document.body.style.colorScheme="dark");H=Y$s(Qi5(ZkJ(si1(F?"dark":"light")),function(J){var Z,M,n,c,B;return _.q(function(L){if(L.nextAddress==1)return Z=_.Wz(SQ8(new B2(J.photoUrl,!1)).build(),"alr","yes"),K.obakeImageSource=K.pictureChangeSourceToObakeImageSourceType(J.photoSource),
_.s2(L,2),K.setLoadingState(),_.Y(L,K.fetchImageBlobWithAlr(Z),4);if(L.nextAddress!=2)return M=L.yieldResult,n=new FileReader,n.addEventListener("load",function(){var A,d,R,l,a,E;return _.q(function(V){if(V.nextAddress==1){if(M.size>15728640)return K.setErrorState((A=K.data)==null?void 0:A.imageSizeErrorMessage),_.yy(Error("fl")),V.return();if(!n.result)return K.setErrorState((d=K.data)==null?void 0:d.genericImageLoadErrorMessage),_.yy(Error("gl")),V.return();R=n.result;_.s2(V,2);return _.Y(V,KbV(M,
X),4)}if(V.nextAddress!=2)return l=V.yieldResult,K.handleImageUpdatedAction(R,l),K.resetErrorState(),_.Gy(V,0);a=_.qc(V);K.setErrorState((E=K.data)==null?void 0:E.uploadErrorMessage);if(a instanceof Error)_.jF(a);else{var x=new _.nG(JSON.stringify(a));_.jF(x)}_.JT(V)})}),n.readAsDataURL(M),_.Gy(L,0);
c=_.qc(L);K.setErrorState((B=K.data)==null?void 0:B.genericImageLoadErrorMessage);c instanceof Error?_.jF(c):_.wc(new _.nG(JSON.stringify(c)));_.JT(L)})}),function(){K.hideContainer=!1;
document.body.style.colorScheme=P});
_.s2(u,2);return _.Y(u,H.openPicker(),4)}if(u.nextAddress!=2)return _.Gy(u,0);_.qc(u);K.setErrorState((f=K.data)==null?void 0:f.selectImageErrorMessage);_.JT(u)})};
_.z.pictureChangeSourceToObakeImageSourceType=function(K){switch(K){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.z.logScreenVe=function(){_.IZ(_.uH(),124448)};
_.z.graftServerVe=function(){var K=_.r_(),X,F,P=(X=this.data)==null?void 0:(F=X.loggingDirectives)==null?void 0:F.trackingParams;P&&K&&(this.channelCreationFormVe=_.uH().graftServerVe(P,K),K={visualElement:this.channelCreationFormVe},_.fB().reportShown(K))};
_.z.isNameChanged=function(K){var X;return((X=this.data)==null?void 0:X.name)!==K};
_.z.isHandleChanged=function(K){var X,F=_.T((X=this.data)==null?void 0:X.channelHandleInput,uzW);return F&&K?F.handle!==K:!1};
_.z.handleImageUpdatedAction=function(K,X){this.hideContainer=!1;this.previewDataUrl=K;this.encryptedBlobId=X};
_.z.handleImageSelectionErrorAction=function(K){this.hideContainer=!1;this.setErrorState(K)};
_.z.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.z.showContainer=function(){this.hideContainer=!1};
_.z.maybeWipeZeroStepErrorMessage=function(){var K,X=(K=this.data)==null?void 0:K.zeroStepErrorMessageEntityKey,F;X&&((F=this.zeroStepErrorMessageEntity)==null?0:F.value)&&this.ytdReduxBehavior.dispatch(_.zl("stringEntity",X,{key:X,value:""}))};
_.Oi.Object.defineProperties($e.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 K;return((K=this.photoThumbnail)==null?0:K.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 K;return!((K=this.data)==null||!K.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.descriptionInfo}}});
$e.prototype.dataChanged=$e.prototype.dataChanged;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],$e.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],$e.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],$e.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],$e.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],$e.prototype,"errorMessage",void 0);
_.O([_.h(),_.g("design:type",Object)],$e.prototype,"isLoading",void 0);_.O([_.h(),_.g("design:type",String)],$e.prototype,"previewDataUrl",void 0);_.O([_.h(),_.g("design:type",Number)],$e.prototype,"obakeImageSource",void 0);_.O([_.h(),_.g("design:type",Object)],$e.prototype,"hideContainer",void 0);_.O([_.fa("#title-input"),_.g("design:type",Object)],$e.prototype,"nameInput",void 0);_.O([_.fa("#handle-input"),_.g("design:type",Object)],$e.prototype,"handleInput",void 0);
_.O([_.h(),_.g("design:type",Boolean)],$e.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.O([_.h({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.CIy}),_.g("design:type",Object)],$e.prototype,"zeroStepErrorMessageEntity",void 0);_.O([_.U("data","data.isDefaultProfilePhoto","previewDataUrl"),_.g("design:type",Object),_.g("design:paramtypes",[])],$e.prototype,"photoThumbnail",null);
_.O([_.U("data","data.isDefaultProfilePhoto","photoThumbnail"),_.g("design:type",Object),_.g("design:paramtypes",[])],$e.prototype,"userSetPhotoThumbnailUrl",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],$e.prototype,"hideProfilePhotoButtonLayer",null);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],$e.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.O([_.JA("data","zeroStepErrorMessageEntity"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],$e.prototype,"dataChanged",null);_.O([_.h({reflectToAttribute:!0}),_.U("data.descriptionInfo","zeroStepErrorMessageEntity"),_.g("design:type",Object),_.g("design:paramtypes",[])],$e.prototype,"description",null);$e=_.O([_.v({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],$e);
_.t($e,"ytd-channel-creation-dialog-renderer",function(){if(Jj5!==void 0)return Jj5;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return Jj5=K},{mode:1});var Y65;var Ob=function(){var K=_.G.apply(this,arguments)||this;K.isLoading=!1;K.isDisabled=!1;return K};
_.r(Ob,_.G);Ob.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Ob.prototype.updateDisabled=function(){var K;this.isDisabled=this.isLoading||((K=this.handleInput)==null?void 0:K.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
Ob.prototype.onSaveClick=function(){var K=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var X;((X=this.data)==null?void 0:X.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 F;if((F=K.data)==null?0:F.nextEndpoint){var P;K.ytComponentBehavior.resolveCommand((P=K.data)==null?void 0:P.nextEndpoint)}else K.isLoading=
!1,K.closeDialog()},
onServerError:function(){K.isLoading=!1;K.handleInput.validate();var F;K.errorMessage=(F=K.data)==null?void 0:F.errorMessage}}}))}};
Ob.prototype.closeDialog=function(){_.xr(this.hostElement,"yt-close-popup-action",[this.is])};
Ob.prototype.updateDisabled=Ob.prototype.updateDisabled;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Ob.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Ob.prototype,"data",void 0);_.O([_.fa("#handle-input"),_.g("design:type",Object)],Ob.prototype,"handleInput",void 0);_.O([_.so("isLoading"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ob.prototype,"updateDisabled",null);
Ob=_.O([_.v({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],Ob);
_.t(Ob,"ytd-channel-handle-edit-dialog-renderer",function(){if(Y65!==void 0)return Y65;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Y65=K},{mode:1});var QW8;var Ve=function(){return _.G.apply(this,arguments)||this};
_.r(Ve,_.G);Ve.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Ve.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Ve.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Ve.prototype,"data",void 0);Ve=_.O([_.v({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],Ve);
_.t(Ve,"ytd-channel-switcher-footer-renderer",function(){if(QW8!==void 0)return QW8;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return QW8=K},{mode:1});var Mn8;var nW5;var gf=function(){return _.G.apply(this,arguments)||this};
_.r(gf,_.G);gf.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
gf.prototype.onIronChange=gf.prototype.onIronChange;_.O([_.h(),_.g("design:type",Object)],gf.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!1}),_.g("design:type",Function)],gf.prototype,"onDontAskAgainChanged",void 0);_.O([_.fa("#checkbox"),_.g("design:type",Object)],gf.prototype,"checkbox",void 0);_.O([_.Hc("iron-change"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],gf.prototype,"onIronChange",null);
gf=_.O([_.v({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],gf);
_.t(gf,"ytd-identity-prompt-footer-renderer",function(){if(nW5!==void 0)return nW5;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return nW5=K},{mode:1});var Eb=function(){var K=_.G.apply(this,arguments)||this;K.dontAskAgain=!1;K.showPopup=!1;K.boundDontAskAgainChanged=function(X){K.dontAskAgainChanged(X)};
K.boundOnAccountItemTap=function(X){K.onAccountItemTap(X)};
return K};
_.r(Eb,_.G);_.z=Eb.prototype;
_.z.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{accountItemSectionRenderer:{component:"ytd-account-item-section-renderer",properties:{onAccountItemTap:"[[boundOnAccountItemTap]]"}}}},"data.header":{id:"header",mapping:{simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer"}},"data.footer":{id:"footer",mapping:{channelSwitcherFooterRenderer:"ytd-channel-switcher-footer-renderer",identityPromptFooterRenderer:{component:"ytd-identity-prompt-footer-renderer",properties:{onDontAskAgainChanged:"[[boundDontAskAgainChanged]]"}}}}}};
_.z.ready=function(){var K=this;_.C$(this.hostElement).querySelector("#container").addEventListener("scroll",function(){K.ytRendererBehavior.markDirty()})};
_.z.dontAskAgainChanged=function(K){this.dontAskAgain=K};
_.z.onAccountItemTap=function(K){if(K){var X={};this.dontAskAgain&&(X={dont_ask_again:this.dontAskAgain});_.Rj(K,X)}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.z.redirectOnlyAccount=function(K){K.sections&&K.sections.length>0&&(K=_.T(K.sections[0],_.vRZ),(K==null?0:K.contents)&&(K==null?void 0:K.contents.length)<=1?(K=_.tV(window.location.href),(K==null?0:K.next)&&_.Ag3(K.next)?_.Rj(K.next):_.Rj("/")):this.showPopup=!0)};
Eb.prototype.dataChanged=Eb.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Eb.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Eb.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Eb.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!1}),_.g("design:type",Object)],Eb.prototype,"dontAskAgain",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Eb.prototype,"showPopup",void 0);_.O([_.h({reflectToAttribute:!1}),_.g("design:type",Object)],Eb.prototype,"boundDontAskAgainChanged",void 0);_.O([_.h({reflectToAttribute:!1}),_.g("design:type",Object)],Eb.prototype,"boundOnAccountItemTap",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Eb.prototype,"dataChanged",null);
Eb=_.O([_.v({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],Eb);
_.t(Eb,"ytd-channel-switcher-renderer",function(){if(Mn8!==void 0)return Mn8;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Mn8=K},{mode:1});var cjW;var b3=function(){return _.G.apply(this,arguments)||this};
_.r(b3,_.G);_.Oi.Object.defineProperties(b3.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.O([_.h(),_.g("design:type",Object)],b3.prototype,"data",void 0);_.O([_.U("data"),_.g("design:type",Array),_.g("design:paramtypes",[])],b3.prototype,"steps",null);b3=_.O([_.v({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],b3);
_.t(b3,"ytd-channel-transfer-stepper-renderer",function(){if(cjW!==void 0)return cjW;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return cjW=K},{mode:1});var pCJ;var Cg=function(){var K=_.G.apply(this,arguments)||this;K.data=null;K.isError=!1;K.isLoading=!1;return K};
_.r(Cg,_.G);_.z=Cg.prototype;_.z.configureRendererStamper=function(){return{"data.personalAccountTile.selectButton":{id:"personal-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.brandAccountTile.selectButton":{id:"brand-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.z.computeProfileName=function(K){return K?K.givenNameValue+" "+K.familyNameValue:""};
_.z.onYtServiceRequestSent=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("isError",!1)};
_.z.onYtServiceRequestError=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.set("isLoading",!1);this.set("isError",!0)};
Cg.prototype.onYtServiceRequestError=Cg.prototype.onYtServiceRequestError;Cg.prototype.onYtServiceRequestSent=Cg.prototype.onYtServiceRequestSent;Cg.prototype.dataChanged=Cg.prototype.dataChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Cg.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Cg.prototype,"data",void 0);
_.O([_.h({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.g("design:type",String)],Cg.prototype,"profileName",void 0);_.O([_.h(),_.g("design:type",Object)],Cg.prototype,"isError",void 0);_.O([_.h(),_.g("design:type",Object)],Cg.prototype,"isLoading",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Cg.prototype,"dataChanged",null);
_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.yk]),_.g("design:returntype")],Cg.prototype,"onYtServiceRequestSent",null);_.O([_.Hc("yt-service-request-error"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.yk]),_.g("design:returntype")],Cg.prototype,"onYtServiceRequestError",null);Cg=_.O([_.v({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],Cg);
_.t(Cg,"ytd-channel-warm-welcome-cont-renderer",function(){if(pCJ!==void 0)return pCJ;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return pCJ=K},{mode:1});var BKs;var NC=function(){var K=_.G.apply(this,arguments)||this;K.data=null;return K};
_.r(NC,_.G);NC.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
NC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],NC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],NC.prototype,"data",void 0);NC=_.O([_.v({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],NC);
_.t(NC,"ytd-channel-warm-welcome-renderer",function(){if(BKs!==void 0)return BKs;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return BKs=K},{mode:1});var S6k;var i3=function(){return _.G.apply(this,arguments)||this};
_.r(i3,_.G);_.Oi.Object.defineProperties(i3.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.authorThumbnail)||{}}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],i3.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],i3.prototype,"data",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],i3.prototype,"thumbnailDetails",null);i3=_.O([_.v({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],i3);
_.t(i3,"ytd-comment-preview-renderer",function(){if(S6k!==void 0)return S6k;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return S6k=K},{mode:1});var oW5;var xe=function(){return _.G.apply(this,arguments)||this};
_.r(xe,_.G);xe.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Oi.Object.defineProperties(xe.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.submitButton}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],xe.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],xe.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],xe.prototype,"data",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],xe.prototype,"submitButton",null);xe=_.O([_.v({is:"ytd-notice-renderer",disableElementRegistration:!0})],xe);
_.t(xe,"ytd-notice-renderer",function(){if(oW5!==void 0)return oW5;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return oW5=K},{mode:1});var LE1;var I$=function(){return _.G.apply(this,arguments)||this};
_.r(I$,_.G);I$.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],I$.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],I$.prototype,"data",void 0);I$=_.O([_.v({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],I$);
_.t(I$,"ytd-preview-comment-dialog-content",function(){if(LE1!==void 0)return LE1;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return LE1=K},{mode:1});var TKV;var ke=function(){return _.G.apply(this,arguments)||this};
_.r(ke,_.G);ke.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
ke.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ke.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],ke.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],ke.prototype,"data",void 0);ke=_.O([_.v({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],ke);
_.t(ke,"ytd-preview-comment-dialog-renderer",function(){if(TKV!==void 0)return TKV;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return TKV=K},{mode:1});var rjG;var Aj8=_.S("web_button_rework")&&_.RU("BUTTON_REWORK")||_.S("web_button_rework_with_live"),Kd=function(){var K=_.G.apply(this,arguments)||this;K.closeLabel=_.uY("CLOSE");K.selectedAmountIndex=1;K.privacyCheckboxValue=!1;K.useAmsterdamStyle=Aj8;K.amountPlaceholderIndex=-1;return K};
_.r(Kd,_.G);_.z=Kd.prototype;_.z.onAmountClick=function(K){this.selectedAmountIndex=_.C$(this.hostElement).querySelector("#amounts").indexForElement(K.currentTarget)};
_.z.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.xr(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.z.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.xr(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.xr(this.hostElement,"yt-close-popup-action",[this.is]);var K;(K=_.$f())==null||K.getPlayerPromise().then(function(X){X.pauseVideo()})}};
_.z.donationCallback=function(K){K.success?(this.hostElement.hasAttribute("live-chat")&&K.response&&K.response.data&&K.response.data.actions&&_.xr(this.hostElement,"yt-live-chat-open-popup",[K.response.data.actions[0]]),_.xr(this.hostElement,"yt-close-popup-action",[this.is]),_.xr(this.hostElement,"yt-live-chat-close-buy-flow")):K.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(K.errorMessageRenderer)};
_.z.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.C$(this.hostElement).querySelector("#custom-amount-input").focus()};
_.z.updateConfirmationDialogTextWithAmount=function(K){var X=this.getConfirmDialogRuns();X&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(X),"text"],this.getFormattedAmount(K))};
_.z.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.z.getAmountPlaceholderIndex=function(K){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=K.findIndex(function(X){return X.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.z.getFormattedAmount=function(K){var X;return(new _.dI(4,((X=this.data)==null?void 0:X.currencyCode)||"")).format(K)};
_.z.isAmountValid=function(K){if(K==="")return!1;K=Number(K)*1E6;var X=this.get("minAmountMicros",this.data),F=this.get("maxAmountMicros",this.data);return X&&K<X||F&&K>F?!1:!0};
_.z.setInputError=function(){this.shouldShowValidationError?_.C$(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.C$(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.z.setInitialCheckboxValue=function(){var K;this.privacyCheckboxValue=!((K=this.data)==null||!K.privacyCheckboxInitialState)};
_.z.updateCustomAmountInputFromBinding=function(K){this.customAmountInput=K.detail.value};
_.z.updatePrivacyCheckboxValueFromBinding=function(K){this.privacyCheckboxValue=K.detail.value};
_.Oi.Object.defineProperties(Kd.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var K=this,X,F;return((X=this.data)==null?void 0:(F=X.suggestedAmounts)==null?void 0:F.map(function(P,H){return{buttonRenderer:{style:K.selectedAmountIndex===H?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:P.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 K;return!((K=this.data)==null||!K.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 K=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(K&&this.amountMicros!==null)return Object.assign({},K,{ypcGetCartEndpoint:Object.assign({},K.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 K=this.get("confirmLargeAmount",this.data);if(K&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),K}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var K=this.get("donateButton.buttonRenderer",this.data);if(K)return Object.assign({},K,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
Kd.prototype.setInitialCheckboxValue=Kd.prototype.setInitialCheckboxValue;Kd.prototype.setInputError=Kd.prototype.setInputError;Kd.prototype.setFocusOnCustomAmountInput=Kd.prototype.setFocusOnCustomAmountInput;_.O([_.W(R6W),_.g("design:type",Object)],Kd.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Kd.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Kd.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Kd.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],Kd.prototype,"closeLabel",void 0);_.O([_.h(),_.g("design:type",Object)],Kd.prototype,"selectedAmountIndex",void 0);_.O([_.h(),_.g("design:type",String)],Kd.prototype,"customAmountInput",void 0);_.O([_.h(),_.g("design:type",Object)],Kd.prototype,"privacyCheckboxValue",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Kd.prototype,"useAmsterdamStyle",void 0);_.O([_.so("customAmount"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Kd.prototype,"setFocusOnCustomAmountInput",null);_.O([_.U("data","selectedAmountIndex"),_.g("design:type",Array),_.g("design:paramtypes",[])],Kd.prototype,"suggestedAmountButtons",null);
_.O([_.U("data","selectedAmountIndex"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Kd.prototype,"isCustomAmountSelected",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Kd.prototype,"showPrivacyCheckbox",null);_.O([_.U("data","selectedAmountIndex","customAmount"),_.g("design:type",Object),_.g("design:paramtypes",[])],Kd.prototype,"amountMicros",null);
_.O([_.U("isCustomAmountSelected","customAmountInput"),_.g("design:type",Object),_.g("design:paramtypes",[])],Kd.prototype,"customAmount",null);_.O([_.U("customAmount"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Kd.prototype,"shouldShowValidationError",null);_.O([_.U("customAmount"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],Kd.prototype,"isDonateButtonEnabled",null);
_.O([_.U("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.g("design:type",Object),_.g("design:paramtypes",[])],Kd.prototype,"donateCommand",null);_.O([_.U("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.g("design:type",Object),_.g("design:paramtypes",[])],Kd.prototype,"donateCommandWithConfirmation",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],Kd.prototype,"largeDonationThreshold",null);
_.O([_.U("customAmount","donateCommand","amountMicros"),_.g("design:type",Object),_.g("design:paramtypes",[])],Kd.prototype,"confirmLargeAmountCommand",null);_.O([_.U("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.g("design:type",Object),_.g("design:paramtypes",[])],Kd.prototype,"donateButtonRenderer",null);_.O([_.so("shouldShowValidationError"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Kd.prototype,"setInputError",null);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Kd.prototype,"setInitialCheckboxValue",null);Kd=_.O([_.v({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],Kd);
_.t(Kd,"ytd-donation-amount-picker-renderer",function(){if(rjG!==void 0)return rjG;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return rjG=K},{mode:1});var jWv;var Xy=function(){return _.G.apply(this,arguments)||this};
_.r(Xy,_.G);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],Xy.prototype,"ytComponentBehavior",void 0);_.O([_.h({}),_.g("design:type",Object)],Xy.prototype,"data",void 0);Xy=_.O([_.v({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],Xy);
_.t(Xy,"ytd-donation-post-transaction-content",function(){if(jWv!==void 0)return jWv;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return jWv=K},{mode:1});var wCw;var Fy=function(){return _.G.apply(this,arguments)||this};
_.r(Fy,_.G);Fy.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Fy.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Fy.prototype,"ytRendererBehavior",void 0);_.O([_.h({}),_.g("design:type",Object)],Fy.prototype,"data",void 0);Fy=_.O([_.v({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],Fy);
_.t(Fy,"ytd-donation-post-transaction-renderer",function(){if(wCw!==void 0)return wCw;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return wCw=K},{mode:1});var yjG;var WEo;var Pe=function(){return _.G.apply(this,arguments)||this};
_.r(Pe,_.G);Pe.prototype.computeIsStreamingProvider=function(K){return!!K.isStreamingShelf};
Pe.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Pe.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Pe.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Pe.prototype,"data",void 0);_.O([_.h({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],Pe.prototype,"isStreamingProvider",void 0);
Pe=_.O([_.v({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],Pe);
_.t(Pe,"ytd-media-provider-renderer",function(){if(WEo!==void 0)return WEo;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return WEo=K},{mode:1});var dhF;var He=function(){return _.G.apply(this,arguments)||this};
_.r(He,_.G);He.prototype.observeLightsourcePalette=function(){var K,X=(K=this.data)==null?void 0:K.vibrantsourceColorPaletteData;X&&_.Sd(this.hostElement,X)};
He.prototype.observeLightsourcePalette=He.prototype.observeLightsourcePalette;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],He.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],He.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],He.prototype,"data",void 0);
_.O([_.so("data.vibrantsourceColorPaletteData"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],He.prototype,"observeLightsourcePalette",null);He=_.O([_.v({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],He);
_.t(He,"ytd-streaming-pop-up-dialog",function(){if(dhF!==void 0)return dhF;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return dhF=K},{mode:1});var sF=function(){return _.G.apply(this,arguments)||this};
_.r(sF,_.G);sF.prototype.onPopupOpened_=function(){var K;((K=this.data)==null?0:K.serviceEndpoint)&&_.i9().resolve(_.xU).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
sF.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
sF.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"}}}}};
sF.prototype.onPopupOpened_=sF.prototype.onPopupOpened_;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],sF.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],sF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.eG),_.g("design:type",Object)],sF.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],sF.prototype,"data",void 0);
_.O([_.Hc("yt-popup-opened"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],sF.prototype,"onPopupOpened_",null);sF=_.O([_.v({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],sF);
_.t(sF,"ytd-brandconnect-popup-renderer",function(){if(yjG!==void 0)return yjG;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return yjG=K},{mode:1});var ekt;var z0=function(){return _.G.apply(this,arguments)||this};
_.r(z0,_.G);_.z=z0.prototype;_.z.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.dataChanged=function(){for(var K=0;K<this.getOptionRenderers().length;K++)this.notifyPath("data.options."+K+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+K+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.z.updateSubmitButton=function(K){this.set("data.submitButton.buttonRenderer.isDisabled",!K)};
_.z.computeAlt=function(K){return _.lj(K)};
_.z.onDismissTap=function(){_.xr(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.i9().resolve(_.xU).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.z.getOptionRenderers=function(K){return(K=K||this.data)&&K.options?K.options.reduce(function(X,F){F.checkboxSurveyOptionRenderer&&X.push(F.checkboxSurveyOptionRenderer);return X},[]):[]};
_.z.onOptionChange=function(K){var X=this,F=!1;if(K.detail.checked)for(var P=this.getOptionRenderers().find(function(J){return J.value===K.detail.value}),H=this.getOptionRenderers(),f=0;f<H.length;f++){var u=H[f];
this.notifyPath("data.options."+f+".checkboxSurveyOptionRenderer.checked");u.checked&&((P==null?0:P.isExclusiveOption)?!u.isExclusiveOption:u.isExclusiveOption)?this.set("data.options."+f+".checkboxSurveyOptionRenderer.checked",!1):u.checked&&(F=!0)}else F=this.getOptionRenderers().some(function(J,Z){X.notifyPath("data.options."+Z+".checkboxSurveyOptionRenderer.checked");return J.checked});
this.updateSubmitButton(F)};
_.z.onSubmitTap=function(){var K=this.getOptionRenderers().filter(function(f){return f.checked});
if(K.length!==0){var X=K.map(function(f){return f.responseEndpoint});
K=[];for(var F=1;F<X.length;F++){var P=void 0,H=(P=_.T(X[F],_.Tt))==null?void 0:P.feedbackToken;H&&K.push(H)}X=[X[0]];K.length&&X.push({extra_feedback_tokens:K});_.Kl(this.hostElement,X);_.xr(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);K=this.data&&this.data.submitActions||[];if(_.S("kevlar_command_handler_migration_killswitch"))_.X0(this.hostElement,K,this.hostElement);else for(K=_.D(K),X=K.next();!X.done;X=K.next())this.ytComponentBehavior.resolveCommand(X.value)}};
z0.prototype.onOptionChange=z0.prototype.onOptionChange;z0.prototype.dataChanged=z0.prototype.dataChanged;_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],z0.prototype,"ytEventForwardingBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],z0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],z0.prototype,"ytComponentBehavior",void 0);
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],z0.prototype,"ytRendererBehavior",void 0);_.O([_.W(Igd),_.g("design:type",Object)],z0.prototype,"ytdHatsSurveyBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],z0.prototype,"data",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],z0.prototype,"dataChanged",null);
_.O([_.Hc("ytd-checkbox-survey-option-changed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],z0.prototype,"onOptionChange",null);z0=_.O([_.v({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],z0);
_.t(z0,"ytd-checkbox-survey-renderer",function(){if(ekt!==void 0)return ekt;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return ekt=K},{mode:1});var RkF;var UhG;var fd=function(){return _.G.apply(this,arguments)||this};
_.r(fd,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],fd.prototype,"ytRendererBehavior",void 0);_.O([_.W(xAw),_.g("design:type",Object)],fd.prototype,"ytdDismissalReasonBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],fd.prototype,"data",void 0);fd=_.O([_.v({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],fd);
_.t(fd,"ytd-dismissal-reason-text-renderer",function(){if(UhG!==void 0)return UhG;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return UhG=K},{mode:1});var hk5;var Dz=function(){return _.G.apply(this,arguments)||this};
_.r(Dz,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Dz.prototype,"ytRendererBehavior",void 0);_.O([_.W(xAw),_.g("design:type",Object)],Dz.prototype,"ytdDismissalReasonBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Dz.prototype,"data",void 0);Dz=_.O([_.v({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],Dz);
_.t(Dz,"ytd-dismissal-reason-video-renderer",function(){if(hk5!==void 0)return hk5;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return hk5=K},{mode:1});var uG=function(){var K=_.G.apply(this,arguments)||this;K.darkerDarkTheme=_.S("web_darker_dark_theme");return K};
_.r(uG,_.G);_.z=uG.prototype;_.z.created=function(){this.selectedFeedbackTokens=new vw};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.z.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.z.onDismissalReasonSelected=function(K,X){_.iX(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(X);this.hasReasonsSelected=!0};
_.z.onDismissalReasonDeselected=function(K,X){_.iX(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(X);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.z.onCancelTap=function(){_.xr(this.hostElement,"yt-close-popup-action")};
_.z.onSubmitTap=function(){var K=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(K={feedback_tokens:K},_.i9().resolve(_.xU).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},K,{element:this.hostElement})}));_.xr(this.hostElement,"yt-close-popup-action")};
uG.prototype.onDismissalReasonDeselected=uG.prototype.onDismissalReasonDeselected;uG.prototype.onDismissalReasonSelected=uG.prototype.onDismissalReasonSelected;uG.prototype.dataChanged=uG.prototype.dataChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],uG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],uG.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],uG.prototype,"data",void 0);
_.O([_.h(),_.g("design:type",Boolean)],uG.prototype,"hasReasonsSelected",void 0);_.O([_.h(),_.g("design:type",vw)],uG.prototype,"selectedFeedbackTokens",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],uG.prototype,"darkerDarkTheme",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],uG.prototype,"dataChanged",null);
_.O([_.Hc("yt-dismissal-reason-selected"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,String]),_.g("design:returntype")],uG.prototype,"onDismissalReasonSelected",null);_.O([_.Hc("yt-dismissal-reason-deselected"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,String]),_.g("design:returntype")],uG.prototype,"onDismissalReasonDeselected",null);uG=_.O([_.v({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],uG);
_.t(uG,"ytd-dismissal-follow-up-renderer",function(){if(RkF!==void 0)return RkF;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return RkF=K},{mode:1});var mhV;var qW=function(){return _.G.apply(this,arguments)||this};
_.r(qW,_.G);_.z=qW.prototype;_.z.onCheckedChange=function(){this.multiselect||_.iX(this.hostElement,"yt-feedback-single-select-changed");_.C$(this.hostElement).querySelector("#freeform").focus();_.iX(this.hostElement,"yt-refit")};
_.z.showTextBox=function(K,X){return K&&X};
_.z.dataChanged=function(){this.data&&(this.data.resultText===void 0&&this.set("data.resultText",""),this.data.checked===void 0&&this.set("data.checked",!1),this.data.allowFreeTextInput===void 0&&this.set("data.allowFreeTextInput",!1))};
_.z.updateDataCheckedFromBinding=function(K){this.set("data.checked",K.detail.value)};
_.z.updateDataResultTextFromBinding=function(K){this.set("data.resultText",K.detail.value)};
qW.prototype.dataChanged=qW.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],qW.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],qW.prototype,"data",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],qW.prototype,"multiselect",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],qW.prototype,"dataChanged",null);
qW=_.O([_.v({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],qW);
_.t(qW,"ytd-feedback-option-renderer",function(){if(mhV!==void 0)return mhV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return mhV=K},{mode:1});var G_1;var J3=function(){return _.G.apply(this,arguments)||this};
_.r(J3,_.G);J3.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
J3.prototype.onSingleSelectCheckedChanged=function(K){K=_.vI(K);for(var X=0;X<this.data.options.length;X++)if(K.data!==_.T(this.data.options[X],NZw)){var F="data.options."+X+".feedbackOptionRenderer.checked";this.notifyPath(F);this.set(F,!1)}};
J3.prototype.onSingleSelectCheckedChanged=J3.prototype.onSingleSelectCheckedChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],J3.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],J3.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],J3.prototype,"data",void 0);
_.O([_.Hc("yt-feedback-single-select-changed"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],J3.prototype,"onSingleSelectCheckedChanged",null);J3=_.O([_.v({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],J3);
_.t(J3,"ytd-feedback-question-renderer",function(){if(G_1!==void 0)return G_1;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return G_1=K},{mode:1});var lDW;var Zz=function(){return _.G.apply(this,arguments)||this};
_.r(Zz,_.G);Zz.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
Zz.prototype.getSelectedFeedbackResults=function(){for(var K={},X=0;X<this.data.questions.length;X++)for(var F=_.T(this.data.questions[X],C$V),P=0;P<F.options.length;P++){var H=_.T(F.options[P],NZw);H&&H.checked&&(K[H.optionKey]=H.resultText)}return K};
Zz.prototype.onKeyUp=function(){var K=this;_.xO(_.A9,function(){_.iX(K.hostElement,"yt-refit")});
_.A9.start()};
Zz.prototype.submitSurvey=function(){var K=this.getSelectedFeedbackResults();Object.keys(K).length>0&&this.data.submitFeedbackEndpoint&&(K={survey_results:K,is_feedback_token_unencrypted:!0},_.i9().resolve(_.xU).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},K,{element:this.hostElement})}))};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Zz.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Zz.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Zz.prototype,"data",void 0);Zz=_.O([_.v({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],Zz);
_.t(Zz,"ytd-feedback-survey-renderer",function(){if(lDW!==void 0)return lDW;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return lDW=K},{mode:1});var vWd;var aDk;var YD=function(){return _.G.apply(this,arguments)||this};
_.r(YD,_.G);YD.prototype.computeAlt=function(K){return _.lj(K)};
YD.prototype.submitResponse=function(){var K,X;(K=this.data)!=null&&K.feedbackToken&&((X=this.data)==null?void 0:X.nextStageIndex)!==void 0&&(_.IJ(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.IJ(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
YD.prototype.onClick=function(){this.submitResponse()};
YD.prototype.onClick=YD.prototype.onClick;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],YD.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],YD.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],YD.prototype,"vertical",void 0);_.O([_.Hc("click"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],YD.prototype,"onClick",null);
YD=_.O([_.v({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],YD);
_.t(YD,"ytd-single-select-answer-option-renderer",function(){if(aDk!==void 0)return aDk;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return aDk=K},{mode:1});var tn1;var Q1=function(){var K=_.G.apply(this,arguments)||this;K.darkerDarkTheme=_.S("web_darker_dark_theme");K.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return K};
_.r(Q1,_.G);Q1.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
Q1.prototype.dataChanged=function(){var K,X;this.vertical=((X=(K=this.data)==null?void 0:K.answerOrientation)!=null?X:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
Q1.prototype.submitFeedback=function(K){var X;((X=this.data)==null?0:X.responseEndpoint)&&K&&_.Kl(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[K]}])};
Q1.prototype.dataChanged=Q1.prototype.dataChanged;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Q1.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],Q1.prototype,"eventForwardingBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Q1.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Q1.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],Q1.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Q1.prototype,"vertical",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Q1.prototype,"darkerDarkTheme",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Q1.prototype,"dataChanged",null);Q1=_.O([_.v({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],Q1);
_.t(Q1,"ytd-single-select-question-renderer",function(){if(tn1!==void 0)return tn1;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return tn1=K},{mode:1});var MW=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return K};
_.r(MW,_.G);_.z=MW.prototype;_.z.configureRendererStamper=function(){return{currentStage:{id:"current-stage",mapping:{singleSelectQuestionRenderer:"ytd-single-select-question-renderer",simpleMessageRenderer:"ytd-simple-message-renderer",surveyFollowUpRenderer:"ytd-survey-follow-up-renderer"}}}};
_.z.dataChanged=function(){this.jumpToStage(0)};
_.z.jumpToStage=function(K){var X,F;if((X=this.data)==null?0:(F=X.stages)==null?0:F[K])this.currentStage=this.data.stages[K],this.refitAfterRender()};
_.z.computeAlt=function(K){return _.lj(K)};
_.z.computeSimpleMessage=function(K){var X;return(X=_.T(K,IoJ))==null?void 0:X.messageText};
_.z.computeHideDismiss=function(K){var X;return(X=_.T(K,rLV))==null?void 0:X.hideParentDismissButton};
_.z.onDismissTap=function(){_.xr(this.hostElement,"yt-close-popup-action");_.T(this.currentStage,IoJ)||this.data.dismissalEndpoint&&_.i9().resolve(_.xU).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.z.refitAfterRender=function(){var K=this;_.tg(this,function(){_.iX(K.hostElement,"yt-refit")})};
MW.prototype.dataChanged=MW.prototype.dataChanged;_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],MW.prototype,"eventForwardingBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],MW.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],MW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],MW.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.W(Igd),_.g("design:type",Object)],MW.prototype,"ytdHatsSurveyBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],MW.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],MW.prototype,"currentStage",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MW.prototype,"dataChanged",null);MW=_.O([_.v({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],MW);
_.t(MW,"ytd-multi-stage-survey-renderer",function(){if(vWd!==void 0)return vWd;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return vWd=K},{mode:1});var $h8;var nd=function(){return _.G.apply(this,arguments)||this};
_.r(nd,_.G);nd.prototype.computeAlt=function(K){return _.lj(K)};
nd.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.i9().resolve(_.xU).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.xr(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.$vd(!1)))};
nd.prototype.onTap=function(){this.vertical&&this.submitResponse()};
nd.prototype.onTap=nd.prototype.onTap;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],nd.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],nd.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],nd.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],nd.prototype,"vertical",void 0);
_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],nd.prototype,"onTap",null);nd=_.O([_.v({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],nd);
_.t(nd,"ytd-single-option-survey-option-renderer",function(){if($h8!==void 0)return $h8;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return $h8=K},{mode:1});var OAG;var ce=function(){return _.G.apply(this,arguments)||this};
_.r(ce,_.G);_.z=ce.prototype;_.z.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.dataChanged=function(){var K,X;this.vertical=(((K=this.data)==null?void 0:(X=K.surveyOrientation)==null?void 0:X.type)||"HORIZONTAL")==="VERTICAL"};
_.z.computeAlt=function(K){return _.lj(K)};
_.z.onDismissTap=function(){_.xr(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.i9().resolve(_.xU).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.$vd(!1))};
ce.prototype.dataChanged=ce.prototype.dataChanged;_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],ce.prototype,"eventForwardingBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ce.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],ce.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(Igd),_.g("design:type",Object)],ce.prototype,"ytdHatsSurveyBehavior",void 0);
_.O([_.W(_.jn),_.g("design:type",Object)],ce.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],ce.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],ce.prototype,"vertical",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ce.prototype,"dataChanged",null);ce=_.O([_.v({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],ce);
_.t(ce,"ytd-single-option-survey-renderer",function(){if(OAG!==void 0)return OAG;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return OAG=K},{mode:1});var Vno;var pd=function(){var K=_.G.apply(this,arguments)||this;K.darkerDarkTheme=_.S("web_darker_dark_theme");return K};
_.r(pd,_.G);pd.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
pd.prototype.onDismissTap=function(){_.xr(this.hostElement,"yt-close-popup-action")};
pd.prototype.onNavigate=function(){_.xr(this.hostElement,"yt-close-popup-action")};
pd.prototype.onNavigate=pd.prototype.onNavigate;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],pd.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],pd.prototype,"ytEventForwardingBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],pd.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],pd.prototype,"darkerDarkTheme",void 0);
_.O([_.Hc("yt-navigate"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],pd.prototype,"onNavigate",null);pd=_.O([_.v({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],pd);
_.t(pd,"ytd-survey-follow-up-renderer",function(){if(Vno!==void 0)return Vno;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Vno=K},{mode:1});var gWt;var EWF;var bAs;var Be=function(){var K=_.G.apply(this,arguments)||this;K.polymer2="Element"in Polymer;return K};
_.r(Be,_.G);_.z=Be.prototype;_.z.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.z.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.z.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.z.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R9("minutes-changed",this.minutes))};
_.z.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R9("seconds-changed",this.seconds))};
_.z.updateMinutesFromBinding=function(K){this.minutes=K.detail.value};
_.z.updateSecondsFromBinding=function(K){this.seconds=K.detail.value};
Be.prototype.secondsChangedForBinding=Be.prototype.secondsChangedForBinding;Be.prototype.minutesChangedForBinding=Be.prototype.minutesChangedForBinding;Be.prototype.secondsChanged=Be.prototype.secondsChanged;_.O([_.h(),_.g("design:type",String)],Be.prototype,"minutes",void 0);_.O([_.h(),_.g("design:type",String)],Be.prototype,"seconds",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Be.prototype,"polymer2",void 0);
_.O([_.fa("#seconds"),_.g("design:type",Object)],Be.prototype,"secondsEl",void 0);_.O([_.so("seconds"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Be.prototype,"secondsChanged",null);_.O([_.so("minutes"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Be.prototype,"minutesChangedForBinding",null);
_.O([_.so("seconds"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Be.prototype,"secondsChangedForBinding",null);Be=_.O([_.Tb({is:"yt-timestamp-input",disableElementRegistration:!0})],Be);
_.t(Be,"yt-timestamp-input",function(){if(bAs===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;EWF===void 0&&(EWF=document.createElement("template"));var P=EWF;F.call(X,P.content.cloneNode(!0),K.content.firstChild);bAs=K}K=bAs;return K},{mode:2});var Sw=function(){return _.G.apply(this,arguments)||this};
_.r(Sw,_.G);_.z=Sw.prototype;_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18119_scroller.dialogElement=this.hostElement.parentNode};
_.z.dataChanged=function(){var K=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.Oe().getPlayerPromise().then(function(X){X=X.getCurrentTime();K.minutes=Math.floor(X/60).toString();K.seconds=(Math.floor(X)%60).toString()})};
_.z.onTapSubmit=function(K){K.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(K={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(K.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(K.minutes=this.minutes,K.seconds=this.seconds),_.i9().resolve(_.xU).resolveCommand(this.serviceEndpoint,{form:Object.assign({},K,{element:this.hostElement})}))};
_.z.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.z.onYtServiceRequestCompleted=function(K,X){X=X.actions;if(Array.isArray(X))for(var F=0,P=X.length;F<P;F++)_.T(X[F],_.pz)&&(K.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(X[F]))};
_.z.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.z.toggleSubmitButton=function(K){this.set("submitButton.isDisabled",!K)};
_.z.handleInput=function(){var K=this.issueType,X=this.affiliation,F=this.minutes,P=this.seconds;F=!this.showTimestamp||!!F&&!!P;this.toggleSubmitButton(!!this.descriptionText&&!!K&&!!X&&F)};
_.z.computeServiceEndpoint=function(K){return this.get("submitButton.buttonRenderer.serviceEndpoint",K)};
_.z.computeSubmitButton=function(K){(K=this.get("submitButton.buttonRenderer",K))&&(K=Object.assign({},K,{serviceEndpoint:void 0}));return K};
_.z.computeShowTimestamp=function(K){return!!K};
_.z.onValueChangedForIssueType=function(K){this.issueType=K.detail.value};
_.z.onValueChangedForAffiliation=function(K){this.affiliation=K.detail.value};
_.z.updateDescriptionTextFromBinding=function(K){this.descriptionText=K.detail.value};
_.z.updateFullNameTextFromBinding=function(K){this.fullNameText=K.detail.value};
_.z.updateMinutesFromBinding=function(K){this.minutes=K.detail.value};
_.z.updateSecondsFromBinding=function(K){this.seconds=K.detail.value};
Sw.prototype.handleInput=Sw.prototype.handleInput;Sw.prototype.onYtServiceRequestError=Sw.prototype.onYtServiceRequestError;Sw.prototype.onYtServiceRequestCompleted=Sw.prototype.onYtServiceRequestCompleted;Sw.prototype.onYtServiceRequestSent=Sw.prototype.onYtServiceRequestSent;Sw.prototype.dataChanged=Sw.prototype.dataChanged;_.O([_.W(_.sT.YtOpenPopupBehavior),_.g("design:type",Object)],Sw.prototype,"ytOpenPopupBehavior",void 0);
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Sw.prototype,"ytRendererBehavior",void 0);_.O([_.fa("#scroller"),_.g("design:type",Object)],Sw.prototype,"JSC$18119_scroller",void 0);_.O([_.fa("#description"),_.g("design:type",HTMLInputElement)],Sw.prototype,"description",void 0);_.O([_.fa("#full-name"),_.g("design:type",Object)],Sw.prototype,"fullName",void 0);_.O([_.h(),_.g("design:type",Object)],Sw.prototype,"data",void 0);
_.O([_.h({computed:"computeShowTimestamp(data.timestampLabel)"}),_.g("design:type",Boolean)],Sw.prototype,"showTimestamp",void 0);_.O([_.h({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.g("design:type",Object)],Sw.prototype,"serviceEndpoint",void 0);_.O([_.h({computed:"computeSubmitButton(data)"}),_.g("design:type",Object)],Sw.prototype,"submitButton",void 0);_.O([_.h(),_.g("design:type",String)],Sw.prototype,"descriptionText",void 0);
_.O([_.h(),_.g("design:type",Number)],Sw.prototype,"issueType",void 0);_.O([_.h(),_.g("design:type",Number)],Sw.prototype,"affiliation",void 0);_.O([_.h(),_.g("design:type",String)],Sw.prototype,"fullNameText",void 0);_.O([_.h(),_.g("design:type",String)],Sw.prototype,"minutes",void 0);_.O([_.h(),_.g("design:type",String)],Sw.prototype,"seconds",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Sw.prototype,"dataChanged",null);
_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.yk]),_.g("design:returntype")],Sw.prototype,"onYtServiceRequestSent",null);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.G9]),_.g("design:returntype")],Sw.prototype,"onYtServiceRequestCompleted",null);
_.O([_.Hc("yt-service-request-error"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Sw.prototype,"onYtServiceRequestError",null);_.O([_.so("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Sw.prototype,"handleInput",null);Sw=_.O([_.v({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],Sw);
_.t(Sw,"ytd-legal-report-details-form-renderer",function(){if(gWt!==void 0)return gWt;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return gWt=K},{mode:1});var CdG;var oT=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return K};
_.r(oT,_.G);oT.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
oT.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var K=this.formRenderer.getForm();K&&this.data.submitEndpoint&&(_.i9().resolve(_.xU).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},K,{element:this.hostElement})}),_.xr(this.hostElement,"yt-close-popup-action"))}};
oT.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.xr(this.hostElement,"yt-close-popup-action"))};
oT.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
oT.prototype.onPopupClosed=oT.prototype.onPopupClosed;_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],oT.prototype,"ytEventForwardingBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],oT.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],oT.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],oT.prototype,"ytRendererBehavior",void 0);
_.O([_.fa("yt-form-renderer"),_.g("design:type",Object)],oT.prototype,"formRenderer",void 0);_.O([_.h(),_.g("design:type",Object)],oT.prototype,"data",void 0);_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],oT.prototype,"onPopupClosed",null);oT=_.O([_.v({is:"ytd-form-popup-content",disableElementRegistration:!0})],oT);
_.t(oT,"ytd-form-popup-content",function(){if(CdG!==void 0)return CdG;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return CdG=K},{mode:1});var NKW;var Ld=function(){return _.G.apply(this,arguments)||this};
_.r(Ld,_.G);Ld.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ld.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ld.prototype.onPopupOpened=function(){_.iX(this.hostElement,"yt-invalidate-popup-tabbables")};
Ld.prototype.onYtServiceRequestCompleted=function(K,X){X.data&&X.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.iX(this.hostElement,"yt-invalidate-popup-tabbables"))};
Ld.prototype.onYtServiceRequestCompleted=Ld.prototype.onYtServiceRequestCompleted;Ld.prototype.onPopupOpened=Ld.prototype.onPopupOpened;_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],Ld.prototype,"ytEventForwardingBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Ld.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Ld.prototype,"ytRendererBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],Ld.prototype,"data",void 0);_.O([_.Hc("yt-popup-opened"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Ld.prototype,"onPopupOpened",null);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.G9]),_.g("design:returntype")],Ld.prototype,"onYtServiceRequestCompleted",null);Ld=_.O([_.v({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],Ld);
_.t(Ld,"ytd-form-popup-renderer",function(){if(NKW!==void 0)return NKW;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return NKW=K},{mode:1});var iAV;var T0=function(){var K=_.G.apply(this,arguments)||this;K.isLoading=!1;return K};
_.r(T0,_.G);_.z=T0.prototype;_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");PDo(this.hostElement)};
_.z.onYtServiceRequestSent=function(){this.isLoading=!0};
_.z.onYtServiceRequestCompleted=function(){_.xr(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.z.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.X0(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.z.closePopupHandler=function(){this.fireOnCloseActions()};
_.z.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var K=this.get("data.headerImage.thumbnails");K&&(K=_.bH(K,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+K+")")}};
_.z.onYtNavigate=function(K){(K=_.vI(K))&&K.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
T0.prototype.onYtNavigate=T0.prototype.onYtNavigate;T0.prototype.onHeaderImageChanged=T0.prototype.onHeaderImageChanged;T0.prototype.closePopupHandler=T0.prototype.closePopupHandler;T0.prototype.onYtServiceRequestCompleted=T0.prototype.onYtServiceRequestCompleted;T0.prototype.onYtServiceRequestSent=T0.prototype.onYtServiceRequestSent;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],T0.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],T0.prototype,"ytEventForwardingBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],T0.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],T0.prototype,"isLoading",void 0);_.O([_.fa("#header"),_.g("design:type",HTMLDivElement)],T0.prototype,"header",void 0);_.O([_.fa("#confirm-button"),_.g("design:type",_.Yq)],T0.prototype,"confirmButton",void 0);
_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],T0.prototype,"onYtServiceRequestSent",null);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],T0.prototype,"onYtServiceRequestCompleted",null);
_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],T0.prototype,"closePopupHandler",null);_.O([_.so("data.headerImage"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],T0.prototype,"onHeaderImageChanged",null);_.O([_.Hc("yt-navigate"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],T0.prototype,"onYtNavigate",null);
T0=_.O([_.v({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],T0);
_.t(T0,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(iAV!==void 0)return iAV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return iAV=K},{mode:1});var xhJ;var rm=function(){var K=_.G.apply(this,arguments)||this;K.isLoading=!1;return K};
_.r(rm,_.G);_.z=rm.prototype;_.z.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.linkButton":{id:"link-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);PDo(this.hostElement)};
_.z.onYtServiceRequestCompleted=function(){_.xr(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.z.onYtServiceRequestError=function(K){_.b6(this.hostElement,K.detail.error.message)};
_.z.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.z.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.xr(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.z.onDataChanged=function(){this.isLoading=!1;var K=this.get("data.headerImage.thumbnails");K&&(K=_.bH(K,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+K+")");K=_.AD();var X=_.r_(),F=this.get("data.trackingParams");F&&X&&K&&_.Us(K,X,_.QB(F))};
_.Oi.Object.defineProperties(rm.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
rm.prototype.onDataChanged=rm.prototype.onDataChanged;rm.prototype.onDomChange=rm.prototype.onDomChange;rm.prototype.onYtServiceRequestError=rm.prototype.onYtServiceRequestError;rm.prototype.onYtServiceRequestCompleted=rm.prototype.onYtServiceRequestCompleted;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],rm.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],rm.prototype,"ytRendererBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],rm.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],rm.prototype,"isLoading",void 0);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],rm.prototype,"hasDescription",null);_.O([_.fa("tp-yt-paper-dialog-scrollable"),_.g("design:type",Object)],rm.prototype,"scrollable",void 0);_.O([_.fa("#header"),_.g("design:type",HTMLElement)],rm.prototype,"header",void 0);
_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],rm.prototype,"onYtServiceRequestCompleted",null);_.O([_.Hc("yt-service-request-error"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],rm.prototype,"onYtServiceRequestError",null);
_.O([_.Hc("dom-change"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],rm.prototype,"onDomChange",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],rm.prototype,"onDataChanged",null);rm=_.O([_.v({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],rm);
_.t(rm,"ytd-gaming-account-link-setting-renderer",function(){if(xhJ!==void 0)return xhJ;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return xhJ=K},{mode:1});var ID8;var k_w;var A3=function(){var K=_.G.apply(this,arguments)||this;K.isHeader=!1;K.getEndpointForm=function(){return z3t(K.data)};
return K};
_.r(A3,_.G);_.z=A3.prototype;_.z.triggerHintActions=function(){var K=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var X=_.IJ(K.hostElement,"yt-get-opened-popups-action");!(X&&X.length===1?X[0]:[]).some(function(F){F=F.openPopupAction.popupType;return F==="SURVEY"||F==="MEALBAR"||F==="HINT"})&&K.data.hintActions&&K.guideOpened&&(_.X0(K.hostElement,K.data.hintActions,K.hostElement),K.data.hintActions=void 0)})};
_.z.getBadgeIconType=function(K){return K&&K.liveBroadcasting?"live":null};
_.z.onDown=function(){this.interaction.triggerDown()};
_.z.onUp=function(){this.interaction.triggerUp()};
_.z.onTap=function(K){if(this.data.serviceEndpoint){var X;_.S("shorts_controller_retrieve_seedless_sequence_v2")&&((X=_.T(this.data.serviceEndpoint,_.J6))==null?void 0:X.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):s71(this.data.serviceEndpoint,this);K.preventDefault()}else this.data.navigationEndpoint&&!_.lC(_.lN(K),this.hostElement,["A".toString()])&&_.iX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.z.computeActive=function(K,X){if(!K)return!1;var F=K.navigationEndpoint;K=K.serviceEndpoint;if(!F&&!K||!X)return!1;if(F){K=(K=_.zw(X))&&["subscriptions","filteredsubscriptions"].includes(K);if(_.T(F,_.f$)&&_.T(X,_.f$)&&!K){var P=_.T(F,_.f$).browseId;X=_.T(X,_.f$).browseId;return P!==void 0&&X!==void 0&&(P===X||P==="VLWL"&&X==="FEwatch_later"||P==="FEwatch_later"&&X==="VLWL")}var H;F=(H=_.T(F.commandMetadata,_.g_))==null?void 0:H.url;X=(P=_.T(X.commandMetadata,_.g_))==null?void 0:P.url;return!(!F||
!X||F!==X&&F!==_.zy(X))}return this.isActiveShortsTab(K,X)};
_.z.isActiveShortsTab=function(K,X){X=!!_.T(X,_.J6)||!!_.T(X,_.r4);return(!!_.T(K,_.J6)||!!_.T(K,_.r4))&&X};
_.z.computeIsPrimary=function(K){return!!K};
_.Oi.Object.defineProperties(A3.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 K=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&K)return K}}});
A3.prototype.onTap=A3.prototype.onTap;A3.prototype.onUp=A3.prototype.onUp;A3.prototype.onDown=A3.prototype.onDown;A3.prototype.triggerHintActions=A3.prototype.triggerHintActions;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],A3.prototype,"componentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],A3.prototype,"rendererBehavior",void 0);_.O([_.W(_.Vj.YtTaskEmitterBehavior),_.g("design:type",Object)],A3.prototype,"taskEmitterBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],A3.prototype,"activeEndpoint",void 0);_.O([_.h(),_.g("design:type",Object)],A3.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Boolean)],A3.prototype,"guideOpened",void 0);_.O([_.h(),_.g("design:type",String)],A3.prototype,"type",void 0);_.O([_.fa("yt-interaction"),_.g("design:type",Object)],A3.prototype,"interaction",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],A3.prototype,"isHeader",void 0);
_.O([_.h({reflectToAttribute:!0}),_.U("data","activeEndpoint"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],A3.prototype,"active",null);_.O([_.h({reflectToAttribute:!0}),_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],A3.prototype,"isPrimary",null);_.O([_.h({reflectToAttribute:!0}),_.U("data.count","data.presentationStyle","data.badges.*"),_.g("design:type",String),_.g("design:paramtypes",[])],A3.prototype,"lineEndStyle",null);
_.O([_.U("lineEndStyle"),_.g("design:type",Object),_.g("design:paramtypes",[])],A3.prototype,"ariaLabel",null);_.O([_.so("data.hintActions","guideOpened"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],A3.prototype,"triggerHintActions",null);_.O([_.Hc("down"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],A3.prototype,"onDown",null);
_.O([_.Hc("up"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],A3.prototype,"onUp",null);_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],A3.prototype,"onTap",null);A3=_.O([_.v({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],A3);
_.t(A3,"ytd-guide-entry-renderer",function(){if(k_w!==void 0)return k_w;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return k_w=K},{mode:1});var jw=function(){var K=_.G.apply(this,arguments)||this;K.userToggled=!1;return K};
_.r(jw,_.G);_.z=jw.prototype;_.z.getItemsPath=function(){return"data.expandableItems"};
_.z.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.z.onExpanderItemTapped=function(K){var X=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.S("kevlar_guide_expandable_items_killswitch")&&_.tg(this,function(){_.Vc(X.expandableItems)});
K.preventDefault()};
_.z.onCollapserItemTapped=function(K){var X=this;this._setExpanded(!1);this.userToggled=!0;K.preventDefault();this.expandableItems&&!_.S("kevlar_guide_collapsible_items_killswitch")&&_.tg(this,function(){_.OM(X.hostElement)})};
_.z.observeActiveEndpoint=function(){for(var K=this.activeEndpoint,X=this.data,F=this.expandableItems.children,P=0,H=F.length;P<H;P++)F[P].activeEndpoint=K;X&&X.autoExpandCommand&&K&&!this.userToggled&&(F=this.data.autoExpandCommand,X=!(!_.T(F,_.f$)||!_.T(K,_.f$)||_.T(F,_.f$).browseId!==_.T(K,_.f$).browseId),K=this.get("commandMetadata.webCommandMetadata.url",K),F=this.get("commandMetadata.webCommandMetadata.url",F),X=X||!!(K&&F&&K.includes(F)),this._setExpanded(X),X&&this.ytLazyListBehavior.fillRemainingListItems())};
jw.prototype.observeActiveEndpoint=jw.prototype.observeActiveEndpoint;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],jw.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],jw.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.CA.YtLazyListBehavior),_.g("design:type",Object)],jw.prototype,"ytLazyListBehavior",void 0);_.O([_.fa("#expandable-items"),_.g("design:type",HTMLElement)],jw.prototype,"expandableItems",void 0);
_.O([_.h(),_.g("design:type",Object)],jw.prototype,"data",void 0);_.O([_.h({readOnly:!0,reflectToAttribute:!0}),_.g("design:type",Boolean)],jw.prototype,"expanded",void 0);_.O([_.h({value:0}),_.g("design:type",Number)],jw.prototype,"initialCount",void 0);_.O([_.h(),_.g("design:type",Object)],jw.prototype,"activeEndpoint",void 0);_.O([_.so("data","activeEndpoint","canShowMore"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],jw.prototype,"observeActiveEndpoint",null);
jw=_.O([_.v({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],jw);
_.t(jw,"ytd-guide-collapsible-entry-renderer",function(){if(ID8!==void 0)return ID8;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return ID8=K},{mode:_.Ig("kevlar_poly_si_batch_j079")?1:2});var KYW;var XRv;var wm=function(){var K=_.G.apply(this,arguments)||this;K.allVideosCount=0;K.renderGuideEntry=!1;return K};
_.r(wm,_.G);wm.prototype.observeRenderEntry=function(){var K;this.renderGuideEntry=!((K=this.data)==null||!K.alwaysShow)||!!this.allVideosCount};
wm.prototype.observeRenderEntry=wm.prototype.observeRenderEntry;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],wm.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],wm.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],wm.prototype,"activeEndpoint",void 0);_.O([_.h({selector:_.B4P}),_.g("design:type",Object)],wm.prototype,"allVideosCount",void 0);
_.O([_.h(),_.g("design:type",Object)],wm.prototype,"renderGuideEntry",void 0);_.O([_.JA("allVideosCount","data.alwaysShow"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],wm.prototype,"observeRenderEntry",null);wm=_.O([_.v({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],wm);
_.t(wm,"ytd-guide-downloads-entry-renderer",function(){if(XRv===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);XRv=K}K=XRv;return K},{mode:1});var y1=function(){var K=_.G.apply(this,arguments)||this;K.youtab=_.S("web_enable_youtab");K.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return K};
_.r(y1,_.G);_.z=y1.prototype;_.z.configureRendererStamper=function(){return{"data.sectionItems":{id:"section-items",mapping:{guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideEntryRenderer:{component:"ytd-guide-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideDownloadsEntryRenderer:{component:"ytd-guide-downloads-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}}}}}};
_.z.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var K=this.sectionItems.children,X=0,F=K.length;X<F;X++)K[X].activeEndpoint=this.activeEndpoint}};
_.z.handleAddToGuideSectionAction=function(K){var X=_.T(K,Qr8);if(X&&this.data&&(K=X.items,X=X.handlerData,K&&X&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(X)>-1)){X=0;for(var F=K.length;X<F;X++)K[X].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,K[X])}};
_.z.handleRemoveFromGuideSectionAction=function(K){var X=_.T(K,MTW);X&&this.data&&(K=X.guideEntryId,X=X.handlerData,K&&X&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(X)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(K,this.data.sectionItems),this.removeFromCollapsedSection(K,this.data.sectionItems)))};
_.z.removeFromExpandedSection=function(K,X){K=this.getEntryIndexMatchingId(K,X);K!==-1&&this.splice("data.sectionItems",K,1)};
_.z.removeFromCollapsedSection=function(K,X){var F=X.findIndex(function(P){return!!_.T(P,eVk)});
F&&F!==-1&&X[F]&&_.T(X[F],eVk)&&(X=_.T(X[F],eVk).expandableItems)&&(K=this.getEntryIndexMatchingId(K,X),K!==-1&&this.splice("data.sectionItems."+F+".guideCollapsibleEntryRenderer.expandableItems",K,1))};
_.z.getEntryIndexMatchingId=function(K,X){var F=this;return X.findIndex(function(P){return F.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",P)===K})};
y1.prototype.activeEndpointChanged=y1.prototype.activeEndpointChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],y1.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],y1.prototype,"actionHandlerBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],y1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.fa("#section-items"),_.g("design:type",HTMLDivElement)],y1.prototype,"sectionItems",void 0);
_.O([_.fa("#header-entry"),_.g("design:type",Object)],y1.prototype,"headerEntry",void 0);_.O([_.h(),_.g("design:type",Object)],y1.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],y1.prototype,"activeEndpoint",void 0);_.O([_.h(),_.g("design:type",Object)],y1.prototype,"youtab",void 0);_.O([_.so("activeEndpoint"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],y1.prototype,"activeEndpointChanged",null);
y1=_.O([_.v({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],y1);
_.t(y1,"ytd-guide-collapsible-section-entry-renderer",function(){if(KYW===void 0){var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);KYW=K}K=KYW;return K},{mode:1});var FYs;var Pq8;var We=function(){var K=_.G.apply(this,arguments)||this;K.modernTypography=_.S("web_modern_typography");K.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 K};
_.r(We,_.G);_.z=We.prototype;
_.z.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",guideOpened:"[[guideOpened]]",type:"[[type]]"},noInjection:!0},guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0},guideCollapsibleSectionEntryRenderer:{component:"ytd-guide-collapsible-section-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},
noInjection:!0}}}}};
_.z.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var K=_.IJ(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);K&&K.length===1&&K[0]&&_.IJ(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.z.handleResetChannelUnreadCountCommand=function(K){var X;(K=(X=_.T(K,cLo))==null?void 0:X.channelId)&&this.data&&this.data.items&&(X=this.getPathToEntryMatchingId(K))&&(this.set(X+".guideEntryRenderer.count",0),this.set(X+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.z.handleResetSubscriptionsUnreadDotCommand=function(K){var X,F=(X=_.T(K,p0J))==null?void 0:X.targetId,P;F&&(P=this.data)!=null&&P.items&&(K=this.data.items.findIndex(function(H){var f;return((f=H.guideEntryRenderer)==null?void 0:f.targetId)===F}),K<0||this.set("data.items."+K+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.z.getPathToEntryMatchingId=function(K){if(this.data&&this.data.items){var X=this.getEntryIndexMatchingId(K,this.data.items);if(X>-1)return"data.items."+X;for(var F=0;F<this.data.items.length;F++)if(X=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[F]))if(X=this.getEntryIndexMatchingId(K,X),X>-1)return"data.items."+F+".guideCollapsibleEntryRenderer.expandableItems."+X}};
_.z.handleAddToGuideSectionAction=function(K){var X=this;if(_.T(K,Qr8)){var F=_.T(K,Qr8).items;K=_.T(K,Qr8).handlerData;var P,H;F&&K&&((P=this.data)==null?void 0:(H=P.handlerDatas)==null?void 0:H.indexOf(K))>-1&&(F=F.filter(function(f){return(f=X.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",f))&&!X.isGuideItemPresent(f)}),this.unshift.apply(this,["data.items"].concat(_.LZ(F))))}};
_.z.isGuideItemPresent=function(K){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(K,this.data.items)!==-1)return!0;var X=this.data.items.find(function(F){return!!F.guideCollapsibleEntryRenderer});
if((X==null?0:X.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(K,X.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.z.getEntryIndexMatchingId=function(K,X){var F=this;return X.findIndex(function(P){return F.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",P)===K})};
_.z.handleRemoveFromGuideSectionAction=function(K){if(_.T(K,MTW)){var X=_.T(K,MTW).guideEntryId;K=_.T(K,MTW).handlerData;var F,P;X&&K&&((F=this.data)==null?void 0:(P=F.handlerDatas)==null?void 0:P.indexOf(K))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(X,this.data.items),this.removeFromCollapsedSection(X,this.data.items))}};
_.z.removeFromExpandedSection=function(K,X){K=this.getEntryIndexMatchingId(K,X);K!==-1&&this.splice("data.items",K,1)};
_.z.removeFromCollapsedSection=function(K,X){var F=X.findIndex(function(P){return!!P.guideCollapsibleEntryRenderer});
F!==-1&&(X=X[F].guideCollapsibleEntryRenderer.expandableItems)&&(K=this.getEntryIndexMatchingId(K,X),K!==-1&&this.splice("data.items."+F+".guideCollapsibleEntryRenderer.expandableItems",K,1))};
_.z.activeEndpointChanged=function(){for(var K=_.C$(this.hostElement).querySelector("#items").children,X=0,F=K.length;X<F;X++)K[X].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.z.guideOpenedChanged=function(){for(var K=_.C$(this.hostElement).querySelector("#items").children,X=0,F=K.length;X<F;X++)K[X].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
We.prototype.guideOpenedChanged=We.prototype.guideOpenedChanged;We.prototype.activeEndpointChanged=We.prototype.activeEndpointChanged;We.prototype.persistentGuideChanged=We.prototype.persistentGuideChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],We.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],We.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],We.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.CA.YtLazyListBehavior),_.g("design:type",Object)],We.prototype,"ytLazyListBehavior",void 0);_.O([_.W(_.RW.YtdGuideStateAwareBehavior),_.g("design:type",Object)],We.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],We.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],We.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],We.prototype,"modernTypography",void 0);_.O([_.h(),_.g("design:type",String)],We.prototype,"type",void 0);_.O([_.h({value:20}),_.g("design:type",Number)],We.prototype,"initialCount",void 0);_.O([_.h({value:10}),_.g("design:type",Number)],We.prototype,"targetFramerate",void 0);_.O([_.h({value:!0}),_.g("design:type",Boolean)],We.prototype,"autoFill",void 0);_.O([_.h({value:50}),_.g("design:type",Number)],We.prototype,"renderDelay",void 0);
_.O([_.so("guidePersistentAndVisible"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],We.prototype,"persistentGuideChanged",null);_.O([_.JA("activeEndpoint"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],We.prototype,"activeEndpointChanged",null);_.O([_.JA("guideOpened"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],We.prototype,"guideOpenedChanged",null);
We=_.O([_.v({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],We);
_.t(We,"ytd-guide-section-renderer",function(){if(Pq8!==void 0)return Pq8;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Pq8=K},{mode:_.Ig("kevlar_poly_si_batch_j073")?1:2});var HfW;var dm=function(){return _.G.apply(this,arguments)||this};
_.r(dm,_.G);_.Oi.Object.defineProperties(dm.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],dm.prototype,"rendererBehaviors",void 0);_.O([_.h(),_.g("design:type",Object)],dm.prototype,"data",void 0);_.O([_.h(),_.U("data.signInButton.buttonRenderer.style"),_.g("design:type",Object),_.g("design:paramtypes",[])],dm.prototype,"alignByText",null);dm=_.O([_.v({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],dm);
_.t(dm,"ytd-guide-signin-promo-renderer",function(){if(HfW===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);HfW=K}K=HfW;return K},{mode:1});var ew=function(){var K=_.G.apply(this,arguments)||this;K.showFooter=!1;return K};
_.r(ew,_.G);ew.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}}}}};
ew.prototype.attached=function(){var K=this,X;return _.q(function(F){if(F.nextAddress==1){X=_.i9().resolve(_.Nu(_.en));if(!X)return F.jumpTo(0);X.setGuideData(K.hostElement);return _.Y(F,0,3)}K.ytLazyListBehavior.initialCount=2;return F.return()})};
ew.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
ew.prototype.dataChanged=ew.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ew.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],ew.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.CA.YtLazyListBehavior),_.g("design:type",Object)],ew.prototype,"ytLazyListBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],ew.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],ew.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],ew.prototype,"showFooter",void 0);_.O([_.h({value:!0}),_.g("design:type",Boolean)],ew.prototype,"autoFill",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ew.prototype,"dataChanged",null);ew=_.O([_.v({is:"ytd-guide-renderer",disableElementRegistration:!0})],ew);
_.t(ew,"ytd-guide-renderer",function(){if(FYs!==void 0)return FYs;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return FYs=K},{mode:_.Ig("kevlar_poly_si_batch_j073")?1:2});var sXV;var RT=function(){var K=_.G.apply(this,arguments)||this;K.systemIcons=_.S("kevlar_system_icons");K.frostedGlass=_.S("web_frosted_glass");K.getEndpointForm=function(){return z3t(K.data)};
return K};
_.r(RT,_.G);_.z=RT.prototype;_.z.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.z.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.lj(this.data.formattedTitle))};
_.z.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.z.onDown=function(){this.interaction.triggerDown()};
_.z.onUp=function(){this.interaction.triggerUp()};
_.z.onTap=function(K){if(this.data.serviceEndpoint){var X;_.S("shorts_controller_retrieve_seedless_sequence_v2")&&((X=_.T(this.data.serviceEndpoint,_.J6))==null?void 0:X.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):s71(this.data.serviceEndpoint,this);K.preventDefault()}else{var F;((F=this.data)==null?0:F.navigationEndpoint)&&!_.lC(_.lN(K),this.hostElement,["A".toString()])&&_.iX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.z.computeActive=function(K,X){if(!K)return!1;var F=K.navigationEndpoint;K=K.serviceEndpoint;if(!F&&!K||!X)return!1;if(F){K=_.T(F,_.f$);var P=_.T(X,_.f$);if(K&&P)return K.browseId===P.browseId&&K.params===P.params;var H;F=(H=_.T(F.commandMetadata,_.g_))==null?void 0:H.url;var f;X=(f=_.T(X.commandMetadata,_.g_))==null?void 0:f.url;return!(!F||!X||F!==X&&F!==_.zy(X))}return this.isActiveShortsTab(K,X)};
_.z.isActiveShortsTab=function(K,X){X=!!_.T(X,_.J6)||!!_.T(X,_.r4);return(!!_.T(K,_.J6)||!!_.T(K,_.r4))&&X};
_.z.computeTitle=function(K,X){return X?"":_.lj(K)};
_.Oi.Object.defineProperties(RT.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
RT.prototype.onTap=RT.prototype.onTap;RT.prototype.onUp=RT.prototype.onUp;RT.prototype.onDown=RT.prototype.onDown;RT.prototype.onActiveStateChange=RT.prototype.onActiveStateChange;RT.prototype.dataChanged=RT.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],RT.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],RT.prototype,"ytComponentBehavior",void 0);
_.O([_.W(_.LT),_.g("design:type",Object)],RT.prototype,"ironButtonState",void 0);_.O([_.h(),_.g("design:type",Object)],RT.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],RT.prototype,"activeEndpoint",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],RT.prototype,"noLabels",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.g("design:type",Boolean)],RT.prototype,"isActive",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],RT.prototype,"systemIcons",void 0);_.O([_.fa("yt-interaction"),_.g("design:type",Object)],RT.prototype,"interaction",void 0);_.O([_.U("isActive"),_.g("design:type",Object),_.g("design:paramtypes",[])],RT.prototype,"ariaSelected",null);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],RT.prototype,"frostedGlass",void 0);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],RT.prototype,"dataChanged",null);_.O([_.so("isActive"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],RT.prototype,"onActiveStateChange",null);_.O([_.Hc("down"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],RT.prototype,"onDown",null);
_.O([_.Hc("up"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],RT.prototype,"onUp",null);_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],RT.prototype,"onTap",null);RT=_.O([_.v({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],RT);
_.t(RT,"ytd-mini-guide-entry-renderer",function(){if(sXV!==void 0)return sXV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return sXV=K},{mode:_.Ig("kevlar_poly_si_batch_j063")?1:2});var zv5;var UF=function(){var K=_.G.apply(this,arguments)||this;K.allVideosCount=0;K.noLabels=_.S("kevlar_mini_guide_no_labels");K.frostedGlass=_.S("web_frosted_glass");return K};
_.r(UF,_.G);_.z=UF.prototype;_.z.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.z.visibleChanged=function(){if(this.visible&&!this.data){var K=_.i9().resolve(_.Nu(_.en));K&&K.setGuideData(this.hostElement)}};
_.z.dataChanged=function(){var K=[],X;if((X=this.data)!=null&&X.items){X=_.D(this.data.items);for(var F=X.next();!F.done;F=X.next()){F=F.value;var P=void 0;if((P=F.guideSectionRenderer)==null?0:P.items)for(P=void 0,F=_.D((P=F.guideSectionRenderer)==null?void 0:P.items),P=F.next();!P.done;P=F.next())if(P=P.value,P.guideEntryRenderer)P=P.guideEntryRenderer,P.isPrimary&&K.push({guideEntryRenderer:P});else if(P.guideCollapsibleSectionEntryRenderer){var H=void 0;((H=_.T(P.guideCollapsibleSectionEntryRenderer.headerEntry,
tJ))==null?0:H.isPrimary)&&K.push({guideEntryRenderer:_.T(P.guideCollapsibleSectionEntryRenderer.headerEntry,tJ)});if(P=P.guideCollapsibleSectionEntryRenderer.sectionItems)for(P=_.D(P),H=P.next();!H.done;H=P.next()){var f=H.value;H=_.T(f,RVv);var u=void 0;((u=_.T(f,tJ))==null?0:u.isPrimary)?K.push({guideEntryRenderer:_.T(f,tJ)}):H&&(f=void 0,_.T((f=H)==null?void 0:f.entryRenderer,tJ)&&(H.alwaysShow||this.allVideosCount)&&K.push({guideEntryRenderer:_.T(H.entryRenderer,tJ)}))}}}}this.miniGuideItems=
K};
_.z.activeEndpointChanged=function(){for(var K=this.items.children,X=0;X<K.length;X++)K[X].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
UF.prototype.activeEndpointChanged=UF.prototype.activeEndpointChanged;UF.prototype.dataChanged=UF.prototype.dataChanged;UF.prototype.visibleChanged=UF.prototype.visibleChanged;_.O([_.W(_.jn),_.g("design:type",Object)],UF.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],UF.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],UF.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.W(_.RW.YtdGuideStateAwareBehavior),_.g("design:type",Object)],UF.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],UF.prototype,"ytComponentBehavior",void 0);_.O([_.fa("#items"),_.g("design:type",Object)],UF.prototype,"items",void 0);_.O([_.h(),_.g("design:type",Object)],UF.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Boolean)],UF.prototype,"visible",void 0);
_.O([_.h(),_.g("design:type",Object)],UF.prototype,"miniGuideItems",void 0);_.O([_.h({selector:_.B4P}),_.g("design:type",Object)],UF.prototype,"allVideosCount",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],UF.prototype,"noLabels",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],UF.prototype,"frostedGlass",void 0);_.O([_.JA("visible"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],UF.prototype,"visibleChanged",null);
_.O([_.JA("data","allVideosCount"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],UF.prototype,"dataChanged",null);_.O([_.JA("activeEndpoint"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],UF.prototype,"activeEndpointChanged",null);UF=_.O([_.v({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],UF);
_.t(UF,"ytd-mini-guide-renderer",function(){if(zv5===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);zv5=K}K=zv5;return K},{mode:1});var fY8;var DSo=/^[\x00-\x7F]+$/,h3=function(){var K=_.G.apply(this,arguments)||this;K.darkerDarkTheme=_.S("web_darker_dark_theme");return K};
_.r(h3,_.G);_.Oi.Object.defineProperties(h3.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var K,X=_.lj((K=this.data)==null?void 0:K.handle);if(X)return _.GS("@"+X)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var K=_.lj(this.displayHandle),X,F=_.lj((X=this.data)==null?void 0:X.handleUrl);if(K&&F)return _.GS(F+K)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var K=_.lj(this.displayHandle);if(K&&!DSo.test(K)){var X;return(X=this.data)==null?void 0:X.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var K=_.lj(this.displayHandleUrl),X,F=_.lj((X=this.data)==null?void 0:X.urlInfoText);if(K&&F)return _.GS(F+" "+K)}}});
_.O([_.h(),_.g("design:type",Object)],h3.prototype,"data",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],h3.prototype,"displayHandle",null);_.O([_.U("displayHandle"),_.g("design:type",Object),_.g("design:paramtypes",[])],h3.prototype,"displayHandleUrl",null);_.O([_.U("displayHandle"),_.g("design:type",Object),_.g("design:paramtypes",[])],h3.prototype,"warningText",null);
_.O([_.U("displayHandleUrl"),_.g("design:type",Object),_.g("design:paramtypes",[])],h3.prototype,"urlInfoTextWithUrl",null);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],h3.prototype,"darkerDarkTheme",void 0);h3=_.O([_.v({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],h3);
_.t(h3,"ytd-handles-claiming-confirm-dialog-content",function(){if(fY8!==void 0)return fY8;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return fY8=K},{mode:1});var uMF;var mU=function(){var K=_.G.apply(this,arguments)||this;K.okButtonOverride={style:"mono",type:"outline",size:"M"};return K};
_.r(mU,_.G);mU.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
mU.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],mU.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],mU.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],mU.prototype,"okButtonOverride",void 0);_.O([_.h(),_.g("design:type",Object)],mU.prototype,"data",void 0);mU=_.O([_.v({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],mU);
_.t(mU,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(uMF!==void 0)return uMF;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return uMF=K},{mode:1});var qIV;var Jls=/^[\x00-\x7F]+$/,G0=function(){var K=_.G.apply(this,arguments)||this;K.isLoading=!1;K.darkerDarkTheme=_.S("web_darker_dark_theme");return K};
_.r(G0,_.G);G0.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var K;this.selectedHandle=(K=this.handleInput)==null?void 0:K.value;this.onSelectedHandleChanged(this.selectedHandle);_.IJ(this.hostElement,"yt-refit-popups-action")}};
_.Oi.Object.defineProperties(G0.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var K;return(K=this.data)==null?void 0:K.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.GS("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.GS(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!Jls.test(this.selectedHandle)){var K;return(K=this.data)==null?void 0:K.warningText}}}});
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],G0.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],G0.prototype,"data",void 0);_.O([_.h(),_.g("design:type",String)],G0.prototype,"selectedHandle",void 0);_.O([_.h(),_.g("design:type",Object)],G0.prototype,"isLoading",void 0);_.O([_.h(),_.g("design:type",Function)],G0.prototype,"onSelectedHandleChanged",void 0);_.O([_.fa("#channel-handle-input"),_.g("design:type",Object)],G0.prototype,"handleInput",void 0);
_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],G0.prototype,"handleUrlPrefix",null);_.O([_.U("selectedHandle"),_.g("design:type",Object),_.g("design:paramtypes",[])],G0.prototype,"displayHandle",null);_.O([_.U("selectedHandle"),_.g("design:type",Object),_.g("design:paramtypes",[])],G0.prototype,"displayHandleUrl",null);_.O([_.U("selectedHandle"),_.g("design:type",Object),_.g("design:paramtypes",[])],G0.prototype,"warningText",null);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],G0.prototype,"darkerDarkTheme",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],G0.prototype,"ytRendererBehavior",void 0);G0=_.O([_.v({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],G0);
_.t(G0,"ytd-handles-claiming-edit-dialog-content",function(){if(qIV!==void 0)return qIV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return qIV=K},{mode:1});var ZfV;var lG=function(){var K=_.G.apply(this,arguments)||this;K.actionButtonOverride={style:"mono",type:"filled",size:"M"};K.cancelButtonOverride={style:"mono",type:"text",size:"M"};K.selectButtonDisabled=!1;K.isLoading=!1;K.hasSelectedHandleEventListener=!1;K.selectedHandleChanged=function(X){K.selectedHandle=X};
return K};
_.r(lG,_.G);_.z=lG.prototype;_.z.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.z.onDataChanged=function(){var K,X;this.selectedHandle=(X=_.T((K=this.data)==null?void 0:K.inputField,uzW))==null?void 0:X.handle};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.onCancel=function(){this.selectedHandle="";_.xr(this.hostElement,"yt-close-popup-action",[this.is])};
_.z.onSelectHandle=function(){var K=this;if(this.selectedHandle!==void 0){var X;((X=this.data)==null?void 0:X.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(F,P){if(P.newHandleUpdateStatus!==void 0&&P.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&P.newHandleUpdateStatus.errorMessage)_.b6(K.hostElement,_.lj(P.newHandleUpdateStatus.errorMessage)),
K.isLoading=!1;else{var H;if((H=K.data)==null?0:H.onChannelUpdateSuccess){F=K.data.onChannelUpdateSuccess;var f,u;if(P=(f=_.T(F,_.pz))==null?void 0:(u=f.popup)==null?void 0:u.handlesClaimingConfirmDialogRenderer)P.handle=_.GS(K.selectedHandle);K.ytComponentBehavior.resolveCommand(F);_.xr(K.hostElement,"yt-close-popup-action",[K.is])}else K.isLoading=!1}},
onServerError:function(){var F;K.content&&((F=K.content)==null?0:F.handleInput)&&K.content.handleInput.validate();K.isLoading=!1;_.b6(K.hostElement,_.uY("TRY_AGAIN_LATER"))}}}))}};
_.z.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
lG.prototype.onDataChanged=lG.prototype.onDataChanged;lG.prototype.onSelectedHandleChanged=lG.prototype.onSelectedHandleChanged;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],lG.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],lG.prototype,"actionButtonOverride",void 0);_.O([_.h(),_.g("design:type",Object)],lG.prototype,"cancelButtonOverride",void 0);_.O([_.h(),_.g("design:type",Object)],lG.prototype,"data",void 0);
_.O([_.h(),_.g("design:type",String)],lG.prototype,"selectedHandle",void 0);_.O([_.h(),_.g("design:type",Object)],lG.prototype,"selectButtonDisabled",void 0);_.O([_.h(),_.g("design:type",Object)],lG.prototype,"isLoading",void 0);_.O([_.h(),_.g("design:type",Object)],lG.prototype,"hasSelectedHandleEventListener",void 0);_.O([_.h(),_.g("design:type",Object)],lG.prototype,"handleInput",void 0);
_.O([_.so("selectedHandle"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],lG.prototype,"onSelectedHandleChanged",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],lG.prototype,"onDataChanged",null);_.O([_.fa("ytd-handles-claiming-edit-dialog-content"),_.g("design:type",Object)],lG.prototype,"content",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],lG.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],lG.prototype,"ytRendererstamperBehavior",void 0);lG=_.O([_.v({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],lG);
_.t(lG,"ytd-handles-claiming-edit-dialog-renderer",function(){if(ZfV!==void 0)return ZfV;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return ZfV=K},{mode:1});var YId;var ve=function(){return _.G.apply(this,arguments)||this};
_.r(ve,_.G);_.Oi.Object.defineProperties(ve.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)==null?0:K.handle){var X;return _.GS("@"+_.lj((X=this.data)==null?void 0:X.handle))}}}});
_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],ve.prototype,"formattedHandle",null);_.O([_.h(),_.g("design:type",Object)],ve.prototype,"data",void 0);ve=_.O([_.v({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],ve);
_.t(ve,"ytd-handles-claiming-radio-option-renderer",function(){if(YId!==void 0)return YId;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return YId=K},{mode:1});var QXv;var M1J=/^[\x00-\x7F]+$/,aT=function(){var K=_.G.apply(this,arguments)||this;K.initialRadioIndex="-1";K.isLoading=!1;K.darkerDarkTheme=_.S("web_darker_dark_theme");K.maybeSubmitFeedback=function(){K.feedbackSurveyRenderer.submitSurvey()};
return K};
_.r(aT,_.G);aT.prototype.updateSelectedHandleIndexFromBinding=function(K){this.selectedRadioIndex=+K.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(K)};
aT.prototype.selectedHandleChanged=function(K){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var X;this.selectedHandle=(X=this.handleInput)==null?void 0:X.value;this.onSelectedHandleChanged(K)}};
_.Oi.Object.defineProperties(aT.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var K;return(((K=this.data)==null?void 0:K.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var K;return this.ytRendererBehavior.getSimpleString((K=this.data)==null?void 0:K.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.GS("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.GS(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!M1J.test(this.selectedHandle)){var K;return(K=this.data)==null?void 0:K.warningText}}}});
_.O([_.h(),_.g("design:type",Object)],aT.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],aT.prototype,"initialRadioIndex",void 0);_.O([_.h(),_.g("design:type",Number)],aT.prototype,"selectedRadioIndex",void 0);_.O([_.h(),_.g("design:type",String)],aT.prototype,"selectedHandle",void 0);_.O([_.h(),_.g("design:type",Object)],aT.prototype,"isLoading",void 0);_.O([_.h(),_.g("design:type",Function)],aT.prototype,"onSelectedHandleChanged",void 0);
_.O([_.h(),_.g("design:type",Function)],aT.prototype,"onSelectedRadioIndexChanged",void 0);_.O([_.fa("#channel-handle-input"),_.g("design:type",Object)],aT.prototype,"handleInput",void 0);_.O([_.fa("ytd-feedback-survey-renderer"),_.g("design:type",Object)],aT.prototype,"feedbackSurveyRenderer",void 0);_.O([_.U("data"),_.g("design:type",Number),_.g("design:paramtypes",[])],aT.prototype,"radioButtonLength",null);
_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],aT.prototype,"handleUrlPrefix",null);_.O([_.U("selectedHandle"),_.g("design:type",Object),_.g("design:paramtypes",[])],aT.prototype,"displayHandle",null);_.O([_.U("selectedHandle"),_.g("design:type",Object),_.g("design:paramtypes",[])],aT.prototype,"displayHandleUrl",null);_.O([_.U("selectedHandle"),_.g("design:type",Object),_.g("design:paramtypes",[])],aT.prototype,"warningText",null);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],aT.prototype,"darkerDarkTheme",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],aT.prototype,"ytRendererBehavior",void 0);aT=_.O([_.v({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],aT);
_.t(aT,"ytd-handles-claiming-select-dialog-content",function(){if(QXv!==void 0)return QXv;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return QXv=K},{mode:1});var nzJ;var t3=function(){var K=_.G.apply(this,arguments)||this;K.actionButtonOverride={style:"mono",type:"filled",size:"M"};K.cancelButtonOverride={style:"mono",type:"text",size:"M"};K.initialRadioIndex="-1";K.selectButtonDisabled=!1;K.isLoading=!1;K.selectedRadioIndexChanged=function(X){K.selectedRadioIndex=Number(X.detail.value)};
K.selectedHandleChanged=function(X){K.selectedHandle=X.detail.value};
K.darkerDarkTheme=_.S("web_darker_dark_theme");return K};
_.r(t3,_.G);_.z=t3.prototype;_.z.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.z.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.z.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.IJ(this.hostElement,"yt-refit-popups-action")};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.xr(this.hostElement,"yt-close-popup-action",[this.is])};
_.z.onSelectHandle=function(){var K=this;if(this.selectedHandle!==void 0){var X;((X=this.data)==null?void 0:X.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(F,P){if(P.newHandleUpdateStatus!==void 0&&P.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&P.newHandleUpdateStatus.errorMessage)_.b6(K.hostElement,_.lj(P.newHandleUpdateStatus.errorMessage)),
K.isLoading=!1;else{var H;if((H=K.data)==null?0:H.onChannelUpdateSuccess){F=K.data.onChannelUpdateSuccess;P=_.T(F,_.pz);var f;if(P==null?0:(f=P.popup)==null?0:f.handlesClaimingConfirmDialogRenderer)P.popup.handlesClaimingConfirmDialogRenderer.handle=_.GS(K.selectedHandle);K.ytComponentBehavior.resolveCommand(F);_.xr(K.hostElement,"yt-close-popup-action",[K.is])}else K.isLoading=!1}},
onServerError:function(){if(K.selectedRadioIndex===K.radioButtonLength){var F;K.content&&((F=K.content)==null?0:F.handleInput)&&K.content.handleInput.validate()}K.isLoading=!1;_.b6(K.hostElement,_.uY("TRY_AGAIN_LATER"))}}}))}};
_.z.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var K,X;this.selectedHandle=(K=this.content)==null?void 0:(X=K.handleInput)==null?void 0:X.value}else this.selectedRadioIndex>=0&&((K=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(K==null?void 0:K.handle):this.selectedHandle=void 0)};
_.z.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.z.getRadioItem=function(K){if(this.radioButtonLength>K&&K>=0)return _.T(this.data.radioButton[K],ALs)};
_.Oi.Object.defineProperties(t3.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var K;return(((K=this.data)==null?void 0:K.radioButton)||[]).length}}});
t3.prototype.onSelectedHandleChanged=t3.prototype.onSelectedHandleChanged;t3.prototype.onSelectedHandleIndexChanged=t3.prototype.onSelectedHandleIndexChanged;t3.prototype.onDataChanged=t3.prototype.onDataChanged;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],t3.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],t3.prototype,"actionButtonOverride",void 0);_.O([_.h(),_.g("design:type",Object)],t3.prototype,"cancelButtonOverride",void 0);
_.O([_.h(),_.g("design:type",Object)],t3.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],t3.prototype,"initialRadioIndex",void 0);_.O([_.h(),_.g("design:type",Number)],t3.prototype,"selectedRadioIndex",void 0);_.O([_.h(),_.g("design:type",String)],t3.prototype,"selectedHandle",void 0);_.O([_.h(),_.g("design:type",Object)],t3.prototype,"selectButtonDisabled",void 0);_.O([_.h(),_.g("design:type",Object)],t3.prototype,"isLoading",void 0);
_.O([_.U("data"),_.g("design:type",Number),_.g("design:paramtypes",[])],t3.prototype,"radioButtonLength",null);_.O([_.fa("ytd-handles-claiming-select-dialog-content"),_.g("design:type",Object)],t3.prototype,"content",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],t3.prototype,"onDataChanged",null);
_.O([_.so("selectedRadioIndex"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],t3.prototype,"onSelectedHandleIndexChanged",null);_.O([_.so("selectedHandle"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],t3.prototype,"onSelectedHandleChanged",null);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],t3.prototype,"darkerDarkTheme",void 0);
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],t3.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],t3.prototype,"ytRendererstamperBehavior",void 0);t3=_.O([_.v({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],t3);
_.t(t3,"ytd-handles-claiming-select-dialog-renderer",function(){if(nzJ!==void 0)return nzJ;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return nzJ=K},{mode:1});var clG;var pRt;var $D=function(){return _.G.apply(this,arguments)||this};
_.r($D,_.G);$D.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],$D.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],$D.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],$D.prototype,"data",void 0);$D=_.O([_.v({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],$D);
_.t($D,"ytd-hotkey-dialog-section-option-renderer",function(){if(pRt!==void 0)return pRt;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return pRt=K},{mode:1});var Br8;var OF=function(){return _.G.apply(this,arguments)||this};
_.r(OF,_.G);OF.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],OF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],OF.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],OF.prototype,"data",void 0);OF=_.O([_.v({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],OF);
_.t(OF,"ytd-hotkey-dialog-section-renderer",function(){if(Br8!==void 0)return Br8;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return Br8=K},{mode:1});var V1=function(){var K=_.G.apply(this,arguments)||this;K.darkerDarkTheme=_.S("web_darker_dark_theme");return K};
_.r(V1,_.G);V1.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],V1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],V1.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],V1.prototype,"darkerDarkTheme",void 0);V1=_.O([_.v({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],V1);
_.t(V1,"ytd-hotkey-dialog-content",function(){if(clG!==void 0)return clG;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return clG=K},{mode:1});var SIF;var gm=function(){return _.G.apply(this,arguments)||this};
_.r(gm,_.G);gm.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var K=document.querySelector("ytd-hotkey-dialog-content #scrollable");K&&(K.dialogElement=this.hostElement.parentElement)};
gm.prototype.onCloseTap=function(){_.xr(this.hostElement,"yt-close-popup-action")};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],gm.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],gm.prototype,"data",void 0);gm=_.O([_.v({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],gm);
_.t(gm,"ytd-hotkey-dialog-renderer",function(){if(SIF!==void 0)return SIF;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return SIF=K},{mode:1});var oz8;var EF=function(){return _.G.apply(this,arguments)||this};
_.r(EF,_.G);EF.prototype.onYtServiceRequestError=function(){if(this.blocked){var K;var X=(K=this.data)==null?void 0:K.defaultServiceEndpoint}else{var F;X=(F=this.data)==null?void 0:F.toggledServiceEndpoint}var P;(X=(P=_.T(X,_.e1C))==null?void 0:P.onFailureAction)&&this.ytComponentBehavior.resolveCommand(X);this.updateBlockState(!this.blocked)};
EF.prototype.onYtToggleButton=function(K){this.updateBlockState(K.detail.toggled)};
EF.prototype.updateBlockState=function(K){if(K!==this.blocked){var X=this.blockedEntityKey;X&&this.ytdReduxBehavior.dispatch(_.zl("blockStateEntity",X,{key:X,blocked:K}));this.set("data.isToggled",K)}};
_.Oi.Object.defineProperties(EF.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)}}});
EF.prototype.onYtToggleButton=EF.prototype.onYtToggleButton;EF.prototype.onYtServiceRequestError=EF.prototype.onYtServiceRequestError;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],EF.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],EF.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],EF.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],EF.prototype,"blockedEntityKey",void 0);
_.O([_.h({selectorArgs:["blockedEntityKey"],selector:function(K,X){return _.FF(K.entities,"blockStateEntity",X)}}),
_.g("design:type",Object)],EF.prototype,"blockStateEntity",void 0);_.O([_.U("data","blockStateEntity"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],EF.prototype,"blocked",null);_.O([_.Hc("yt-service-request-error"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],EF.prototype,"onYtServiceRequestError",null);
_.O([_.Hc("yt-toggle-button"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],EF.prototype,"onYtToggleButton",null);EF=_.O([_.v({is:"ytd-block-button",disableElementRegistration:!0})],EF);
_.t(EF,"ytd-block-button",function(){if(oz8!==void 0)return oz8;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return oz8=K},
{mode:1});var LY5;var TrV;var bG=function(){return _.G.apply(this,arguments)||this};
_.r(bG,_.G);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],bG.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],bG.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],bG.prototype,"data",void 0);bG=_.O([_.v({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],bG);
_.t(bG,"ytd-kids-blocklist-picker-item-renderer",function(){if(TrV!==void 0)return TrV;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return TrV=K},{mode:1});var Cd=function(){return _.G.apply(this,arguments)||this};
_.r(Cd,_.G);Cd.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Cd.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Cd.prototype,"data",void 0);Cd=_.O([_.v({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],Cd);
_.t(Cd,"ytd-kids-blocklist-picker-content",function(){if(LY5!==void 0)return LY5;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return LY5=
K},{mode:_.Ig("kevlar_poly_si_batch_j025")?1:2});var rl5;var NW=function(){var K=_.G.apply(this,arguments)||this;K.hasAnyRequestSucceeded=!1;K.hasAnyRequestFailed=!1;K.numPendingRequests=0;return K};
_.r(NW,_.G);_.z=NW.prototype;_.z.attached=function(){this.hostElement.setAttribute("dialog","")};
_.z.onDoneButtonTap=function(){_.xr(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.z.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.z.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.z.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.z.onPopupClosed=function(K){var X,F;if(((X=K.detail)==null?void 0:(F=X.popup)==null?void 0:F.is)==="tp-yt-paper-dialog"){var P;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((P=this.data)==null?0:P.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.$x(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
NW.prototype.onPopupClosed=NW.prototype.onPopupClosed;NW.prototype.onYtServiceRequestError=NW.prototype.onYtServiceRequestError;NW.prototype.onYtServiceRequestCompleted=NW.prototype.onYtServiceRequestCompleted;NW.prototype.onYtServiceRequestSent=NW.prototype.onYtServiceRequestSent;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],NW.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],NW.prototype,"ytRendererBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],NW.prototype,"data",void 0);_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],NW.prototype,"onYtServiceRequestSent",null);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],NW.prototype,"onYtServiceRequestCompleted",null);
_.O([_.Hc("yt-service-request-error"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],NW.prototype,"onYtServiceRequestError",null);_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],NW.prototype,"onPopupClosed",null);NW=_.O([_.v({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],NW);
_.t(NW,"ytd-kids-blocklist-picker-renderer",function(){if(rl5!==void 0)return rl5;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return rl5=K},{mode:1});var AlF;var jXs;var iG=function(){return _.G.apply(this,arguments)||this};
_.r(iG,_.G);iG.prototype.setTip=function(K){var X=this;this.data&&(this.tip=QEV(Zpt.getInstance(),K,this.data),_.tg(this,function(){_.iX(X.hostElement,"yt-refit")}))};
iG.prototype.clearTip=function(){this.tip=void 0};
iG.prototype.computeHidden=function(K){return!K};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],iG.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],iG.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.g("design:type",Boolean)],iG.prototype,"hidden",void 0);_.O([_.h(),_.g("design:type",Object)],iG.prototype,"tip",void 0);iG=_.O([_.v({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],iG);
_.t(iG,"ytd-menu-popup-tip-renderer",function(){if(jXs!==void 0)return jXs;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);
return jXs=K},{mode:1});var wR8;var xD=function(){var K=_.G.apply(this,arguments)||this;K.useIcons=!1;K.systemIcons=_.S("kevlar_system_icons");K.useListItemStyles=_.S("web_list_item_style_for_menu_items");return K};
_.r(xD,_.G);_.z=xD.prototype;_.z.onFocus=function(){var K;(K=_.C$(this.hostElement).querySelector("tp-yt-paper-item"))==null||K.focus()};
_.z.onTap=function(){var K=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(K&&_.T(K,_.PW))this.componentBehavior.resolveCommand(K),this.updateToggledStateInEntity();else if(K){this.componentBehavior.resolveCommand(K)||_.i9().resolve(_.xU).resolveCommand(K,{form:{element:this.hostElement}});var X;((X=_.T(K,_.ss))==null?void 0:X.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.z.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.z.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.z.updateToggledStateInEntity=function(){var K=this.data.toggleMenuServiceItemEntityKey,X=!this.data.isToggled;K&&this.ytdReduxBehavior.dispatch(_.zl("toggleMenuServiceItemEntity",K,{key:K,isToggled:X}))};
_.z.computeIcon=function(K,X,F){return(K=K?F:X)&&K.iconType?_.Fl(K.iconType):""};
_.z.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.z.isIconActive=function(K){return!_.S("toggle_menu_active_icon_killswitch")&&K};
_.Oi.Object.defineProperties(xD.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return((K=this.data)==null?0:K.isToggled)?(X=this.data)==null?void 0:X.toggledText:(F=this.data)==null?void 0:F.defaultText}}});
xD.prototype.toggledStateEntityChanged=xD.prototype.toggledStateEntityChanged;xD.prototype.onYtServiceRequestCompleted=xD.prototype.onYtServiceRequestCompleted;xD.prototype.onTap=xD.prototype.onTap;xD.prototype.onFocus=xD.prototype.onFocus;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],xD.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],xD.prototype,"componentBehavior",void 0);
_.O([_.W(_.jn),_.g("design:type",Object)],xD.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],xD.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],xD.prototype,"useIcons",void 0);_.O([_.h({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.g("design:type",String)],xD.prototype,"icon",void 0);
_.O([_.h({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(K,X){return _.FF(K.entities,"toggleMenuServiceItemEntity",X)}}),
_.g("design:type",Object)],xD.prototype,"toggleMenuServiceItemEntity",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],xD.prototype,"systemIcons",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],xD.prototype,"useListItemStyles",void 0);_.O([_.Hc("focus"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],xD.prototype,"onFocus",null);
_.O([_.U("data.isToggled"),_.g("design:type",Object),_.g("design:paramtypes",[])],xD.prototype,"toggleButtonText",null);_.O([_.Hc("tap"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],xD.prototype,"onTap",null);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],xD.prototype,"onYtServiceRequestCompleted",null);
_.O([_.so("toggleMenuServiceItemEntity.isToggled","data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],xD.prototype,"toggledStateEntityChanged",null);xD=_.O([_.v({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],xD);
_.t(xD,"ytd-toggle-menu-service-item-renderer",function(){if(wR8!==void 0)return wR8;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return wR8=K},{mode:1});var ylw;var IT=function(){return _.G.apply(this,arguments)||this};
_.r(IT,_.G);IT.prototype.onFocus=function(){var K;(K=_.C$(this.hostElement).querySelector("tp-yt-paper-item"))==null||K.focus()};
_.Oi.Object.defineProperties(IT.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.ps(this.data.iconUrl)}}});
IT.prototype.onFocus=IT.prototype.onFocus;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],IT.prototype,"rendererBehavior",void 0);_.O([_.W(_.DP.YtEndpointBehavior),_.g("design:type",Object)],IT.prototype,"ytEndpointBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],IT.prototype,"data",void 0);_.O([_.Hc("focus"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],IT.prototype,"onFocus",null);
_.O([_.U("data.iconUrl"),_.g("design:type",Object),_.g("design:paramtypes",[])],IT.prototype,"imageSource",null);IT=_.O([_.v({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],IT);
_.t(IT,"ytd-menu-custom-icon-item-renderer",function(){if(ylw!==void 0)return ylw;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return ylw=K},{mode:_.Ig("kevlar_poly_si_batch_j028")?1:2});_.EP(_.Ta,"yt-list-item-view-model",{props:{data:_.vU,isMenuItem:_.vU,isCompact:_.vU,onTap:_.g$,trailingAccessory:_.g$,hideSelectionTextChevron:_.vU,disabled:_.vU,inPopup:_.vU,disableHorizontalPadding:_.vU,isOverlay:_.vU}});var kD=function(){var K=_.G.apply(this,arguments)||this;K.disableBackdropFilter=_.S("web_disable_backdrop_filter");return K};
_.r(kD,_.G);_.z=kD.prototype;
_.z.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{menuNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},
toggleMenuServiceItemRenderer:{component:"ytd-toggle-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},listItemViewModel:{component:"yt-list-item-view-model",params:{isCompact:!0}},menuCustomIconItemRenderer:{component:"ytd-menu-custom-icon-item-renderer"},menuServiceItemDownloadRenderer:{component:"ytd-menu-service-item-download-renderer"},clientSideToggleMenuItemRenderer:{component:"yt-live-chat-toggle-renderer"}}},"data.footer":{id:"footer",mapping:{menuPopupTipRenderer:"ytd-menu-popup-tip-renderer"}}}};
_.z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.z.computeAriaLabel=function(K){return K};
_.z.onPopupOpened=function(){this.items.selected=0;for(var K=_.D(_.C$(this.items).children),X=K.next();!X.done;X=K.next())X.value.popupPositionTarget=this.positionTarget;if(K=this.popupTip||void 0)K.setTip(this.source||""),this.source=void 0;this.veData&&(K=_.AD())&&_.G6(K,[this.veData])};
_.z.onPopupClosed=function(){var K=this.popupTip||void 0;K&&K.clearTip()};
_.z.onIronActivate=function(K){this.shouldPersist(K)||_.xr(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(K=_.AD())&&_.vW(K,this.veData)};
_.z.shouldPersist=function(K){var X,F;if(((X=K.detail)==null?void 0:X.selected)===void 0||(F=this.data)==null||!F.items)return!1;var P,H;return!((H=(P=this.data.items[K.detail.selected])==null?void 0:P.toggleMenuServiceItemRenderer)==null||!H.persistentOnMenuPopup)};
_.z.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(K){return K.menuNavigationItemRenderer?!!K.menuNavigationItemRenderer.icon:K.menuServiceItemRenderer?!!K.menuServiceItemRenderer.icon:K.menuConditionalServiceItemRenderer?!!K.menuConditionalServiceItemRenderer.icon:K.menuConditionalNavigationItemRenderer?!!K.menuConditionalNavigationItemRenderer.icon:K.toggleMenuServiceItemRenderer?!!K.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
kD.prototype.onPopupClosed=kD.prototype.onPopupClosed;kD.prototype.onPopupOpened=kD.prototype.onPopupOpened;_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],kD.prototype,"ytEventForwardingBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],kD.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],kD.prototype,"ytRendererBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],kD.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],kD.prototype,"veData",void 0);_.O([_.h({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.g("design:type",String)],kD.prototype,"ariaLabel",void 0);_.O([_.h({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],kD.prototype,"useIcons",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],kD.prototype,"disableBackdropFilter",void 0);_.O([_.fa("#items"),_.g("design:type",Object)],kD.prototype,"items",void 0);_.O([_.fa("ytd-menu-popup-tip-renderer"),_.g("design:type",Object)],kD.prototype,"popupTip",void 0);_.O([_.Hc("yt-popup-opened"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],kD.prototype,"onPopupOpened",null);
_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],kD.prototype,"onPopupClosed",null);kD=_.O([_.v({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],kD);
_.t(kD,"ytd-menu-popup-renderer",function(){if(AlF!==void 0)return AlF;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return AlF=K},{mode:1});var WY8;var dSt=_.$c(function(K){K=_.tA(K,{icon:void 0});var X=K.data;K=K.icon;var F=function(){return X().iconBadgeText},P={},H=_.HO("yt-spec-icon-badge-shape",function(){a:switch(X().iconBadgeType){case "notification":var f="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":f="yt-spec-icon-badge-shape--type-cart";break a;default:f=""}return f},function(){a:switch(X().iconBadgeStyle){case "overlay":var f="yt-spec-icon-badge-shape--style-overlay";
break a;default:f=""}return f},(P["yt-spec-icon-badge-shape--text-size-small"]=function(){var f=F();
return!!((f==null?0:f.length)&&f.length>2)},P));
return _.Q("yt-icon-badge-shape",null,_.Q(_.p,{cond:K,then:function(f){return _.Q("div",{class:H},_.Q("div",{class:"yt-spec-icon-badge-shape__icon"},_.Q(_.ZF,{icon:f})),_.Q(_.p,{cond:F,then:function(u){return _.Q("div",{class:"yt-spec-icon-badge-shape__badge"},u)}}))}}))},"rg");
dSt.idomCompat=!0;_.EP(dSt,"yt-icon-badge-shape",{props:{data:_.vU,icon:_.vU}});var K6=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};K.unseenCount=0;K.isOverlay=!1;return K};
_.r(K6,_.G);_.z=K6.prototype;_.z.attached=function(){var K=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(X){K.onServiceWorkerMessage(X)})};
_.z.onDataChanged=function(){this.isAttached&&!this.JSC$18250_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18250_lastData=this.data};
_.z.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.z.computeIcon=function(){var K,X;return(K=this.data)==null?void 0:(X=K.icon)==null?void 0:X.iconType};
_.z.onServiceWorkerMessage=function(K){K.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.z.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.T(this.data.updateUnseenCountEndpoint,_.ss)&&_.T(this.data.updateUnseenCountEndpoint,_.ss).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.z.handleUpdateNotificationsUnseenCountAction=function(K){var X=this;K=_.T(K,n4t);K!=null&&K.unseenCount&&K.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(K.unseenCount),_.A9.addLowPriorityJob(function(){X.data.updateUnseenCountEndpoint&&X.ytComponentBehavior.resolveCommand(X.data.updateUnseenCountEndpoint)},K.timeoutMs))};
_.z.onClick=function(){_.iX(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var K=_.IJ(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),X=this.data.menuRequest;K&&K.length===1&&K[0]?_.xr(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):X&&this.ytComponentBehavior.resolveCommand(X)};
_.z.handleTopbarMenuClosedAction=function(K){K==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.z.toggleIconState=function(K){this.iconButton&&(this.iconButton.pressed=K)};
_.z.sendUnseenCountRequest=function(K){var X=this;_.cu(_.A9,function(){X.ytComponentBehavior.resolveCommand(K)})};
_.z.updateCountUI=function(K){this.set("unseenCount",K<9?K:"9+")};
_.Oi.Object.defineProperties(K6.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
K6.prototype.handleUpdateNotificationsUnseenCountAction=K6.prototype.handleUpdateNotificationsUnseenCountAction;K6.prototype.onDataChanged=K6.prototype.onDataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],K6.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],K6.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.v9),_.g("design:type",Object)],K6.prototype,"ytdOpenPopupBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],K6.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],K6.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],K6.prototype,"unseenCount",void 0);_.O([_.h(),_.g("design:type",Object)],K6.prototype,"isOverlay",void 0);_.O([_.h({value:!0}),_.g("design:type",Boolean)],K6.prototype,"showTooltips",void 0);_.O([_.fa("yt-icon-button"),_.g("design:type",Object)],K6.prototype,"iconButton",void 0);
_.O([_.U("unseenCount"),_.g("design:type",Object),_.g("design:paramtypes",[])],K6.prototype,"showNotificationCount",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],K6.prototype,"onDataChanged",null);_.O([_.Hc("yt-update-notifications-unseen-count-action"),_.g("design:type",Function),_.g("design:paramtypes",[Object]),_.g("design:returntype")],K6.prototype,"handleUpdateNotificationsUnseenCountAction",null);
K6=_.O([_.v({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],K6);
_.t(K6,"ytd-notification-topbar-button-renderer",function(){if(WY8!==void 0)return WY8;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return WY8=K},{mode:_.Ig("kevlar_poly_si_batch_j025")?1:2});var evt;var X2=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return K};
_.r(X2,_.G);X2.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}}}}}};
X2.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
X2.prototype.onDarkModeToggled=function(K){this.dark=K};
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],X2.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],X2.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],X2.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],X2.prototype,"data",void 0);_.O([_.h({value:!0,reflectToAttribute:!0}),_.g("design:type",Boolean)],X2.prototype,"dark",void 0);
X2=_.O([_.v({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],X2);
_.t(X2,"yt-pdg-buy-flow-header-renderer",function(){if(evt!==void 0)return evt;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return evt=K},{mode:1});var RvF;var US8;var F2=function(){var K=_.G.apply(this,arguments)||this;K.immediateValue=0;K.isDarkTheme=!1;K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return K};
_.r(F2,_.G);_.z=F2.prototype;_.z.created=function(){_.dC.requestAvailability()};
_.z.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.z.dataChanged=function(){var K=_.C$(this.hostElement).querySelector("#color-slider");K.immediateValue&&this.updateSliderKnobAndGradientStyles(K.immediateValue);this.data.notches[0].knobColorArgb&&_.XU(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.wq(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.e8("HTML_DIR")==="rtl"&&_.C$(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.z.onSliderImmediateChange=function(){var K=_.C$(this.hostElement).querySelector("#color-slider");K.dragging&&(K.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(K.immediateValue),this.updateSliderKnobAndGradientStyles(K.immediateValue)),this.updateSliderAria())};
_.z.onSliderChange=function(){var K=_.C$(this.hostElement).querySelector("#color-slider");K.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(K.immediateValue),this.updateSliderKnobAndGradientStyles(K.immediateValue));this.updateSliderAria()};
_.z.updateSliderAria=function(){var K=_.C$(this.hostElement).querySelector("#color-slider"),X=_.C$(this.hostElement).querySelector("#color-slider");X=_.lj(this.data.notches[X.immediateValue].tierValue);_.R3()&&_.iX(this.hostElement,"iron-announce",{text:X});K.setAttribute("aria-valuetext",X)};
_.z.updateSuperThanksSelectedTierEntity=function(K){if(K!==this.immediateValue){var X,F,P=this==null?void 0:(X=this.data)==null?void 0:(F=X.superThanksSelectedTierEntity)==null?void 0:F.key;P&&P.length>0&&this.ytdReduxBehavior.dispatch(_.zl("superThanksSelectedTierEntity",P,{key:P,index:K}))}};
_.z.onDarkModeToggledAction=function(K){this.isDarkTheme=K};
_.z.updateSliderKnobAndGradientStyles=function(K){this.immediateValue=K;K=this.data.notches[K];if(K==null?0:K.knobColorArgb)var X={"--ytd-pdg-color-slider-knob-color":_.wq(K.knobColorArgb)};(K==null?0:K.linearGradientCssStyle)&&X!==null&&(X=Object.assign({},X,{"--ytd-pdg-color-slider-active-color":K==null?void 0:K.linearGradientCssStyle}));X!==null&&_.XU(this.hostElement,X)};
F2.prototype.onSliderChange=F2.prototype.onSliderChange;F2.prototype.onSliderImmediateChange=F2.prototype.onSliderImmediateChange;F2.prototype.dataChanged=F2.prototype.dataChanged;_.O([_.h(),_.g("design:type",Object)],F2.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],F2.prototype,"immediateValue",void 0);_.O([_.h(),_.g("design:type",Number)],F2.prototype,"maxMarkers",void 0);
_.O([_.h({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:J9J}),_.g("design:type",Object)],F2.prototype,"superThanksSelectedTierEntity",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],F2.prototype,"isDarkTheme",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],F2.prototype,"ytdReduxBehavior",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],F2.prototype,"dataChanged",null);
_.O([_.Hc("immediate-value-change"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],F2.prototype,"onSliderImmediateChange",null);_.O([_.Hc("change"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],F2.prototype,"onSliderChange",null);F2=_.O([_.v({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],F2);
_.t(F2,"ytd-pdg-color-slider-renderer",function(){if(US8!==void 0)return US8;var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return US8=K},{mode:1});var hv1;var mSo;var PK=null;
_.pa({is:"ytd-comment-input",_template:function(){if(mSo!==void 0)return mSo;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return mSo=K},
behaviors:[_.Krn.YtHostElementBehavior,_.JP,_.dk.YtComponentBehavior,_.CE.YtRendererstamperBehavior,_.wat.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 _.yU}},
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",_.Pc(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;_.Fz();this.focus()},
detached:function(){document.removeEventListener("tap",_.Pc(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(K){K=K.detail;K=K.isCustomEmoji?K.shortcuts[0]:K.emojiId;var X=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(X,K);this.maybeUpdateTextDirection_();_.iX(this.hostElement,"input")},
getInputRange_:function(){var K=_.qy();if(K){K=K.getBrowserRangeObject();for(var X=K.commonAncestorContainer;X;){if(X===this.getEditableTextArea_())return K;X=X.parentNode}}K=this.getEditableTextArea_();K=_.AL(K,K.childNodes.length);K.select();return K.getBrowserRangeObject()},
insertTextWithEmojis_:function(K,X,F){(X=this.emojiManager.createDocumentFragment(X,!0,!1,F===void 0?!0:F))&&X.childNodes.length!==0&&(K.collapsed||K.deleteContents(),F=X.lastChild,K.insertNode(X),_.XWO(F).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var K=_.qy();if(K){var X=K.JSC$9253_getStartNode(),F=K.JSC$9253_getEndNode();if(fO5(X)&&fO5(F)){var P=K.JSC$9253_getStartOffset(),H;if(_.KM&&X.nodeType===Node.ELEMENT_NODE&&(H=_.YlZ(X)))_.AL(H,0).select();else{H=bA(X)?X:_.RR(X,bA);var f=bA(F)?F:_.RR(F,bA);if(H||f)if(K.isCollapsed()){if(X.nodeType===Node.TEXT_NODE){K=!0;P===X.length&&(K=!1);if(PK==="end"||PK==="right")K=!1;X=X.parentNode;K=[].concat(_.LZ(X.parentNode.childNodes)).indexOf(X)+(K?0:1);_.AL(X.parentNode,K).select()}}else H?
H.previousSibling&&H.previousSibling.length>0?_.jT(F,K.JSC$9253_getEndOffset(),H.previousSibling,H.previousSibling.length-1).select():(X=document.createTextNode("\u200b"),H.parentNode.insertBefore(X,H),_.jT(F,K.JSC$9253_getEndOffset(),X,0).select()):f&&(f.nextSibling&&f.nextSibling.length>0?_.jT(X,K.JSC$9253_getStartOffset(),f.nextSibling,1).select():(F=document.createTextNode("\u200b"),f.parentNode.insertBefore(F,f.nextSibling),_.jT(X,K.JSC$9253_getStartOffset(),F,F.length).select()));PK=null}}else PK=
null}else PK=null},
leftKeyPressed_:function(){PK="left"},
rightKeyPressed_:function(){PK="right"},
endKeyPressed_:function(){PK="end"},
maybeDeleteChip_:function(){var K=Ys8(!0);if(K){var X=_.qy(),F=X.JSC$9253_getStartNode();X=X.JSC$9253_getStartOffset();_.ST(F,X,K,K.childNodes.length).select()}},
maybeBackspaceChip_:function(){var K=Ys8(!1);if(K){var X=_.qy(),F=X.JSC$9253_getStartNode();X=X.JSC$9253_getStartOffset();_.ST(F,X,K,0).select()}},
maybeBackspaceChipWordMode_:function(K){var X=_.qy();if(X.isCollapsed()){var F=X.JSC$9253_getStartNode();X=X.JSC$9253_getStartOffset();var P=Q75(F,X,!0);P&&(_.ST(F,X,P,0).select(),document.execCommand("delete"),K.preventDefault(),K.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(K){var X=_.qy();if(X.isCollapsed()){var F=X.JSC$9253_getStartNode();X=X.JSC$9253_getStartOffset();var P=Q75(F,X,!1);P&&(_.ST(F,X,P,P.childNodes.length).select(),document.execCommand("delete"),K.preventDefault(),K.stopImmediatePropagation())}},
onContentClick:function(K){K.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(K){K.defaultPrevented||K.currentTarget.tagName==="YTD-COMMENT-INPUT"&&bA(K.target)&&K.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.C$(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.C$(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(K,X){K=u0t(K,this.emojiManager,X).cloneNode(!0);for(X=K.firstChild;X;)if(X.nodeType!==1)X=X.nextSibling;else switch(X.tagName){case "BR":var F=_.M_();_.odN(F,X);X=F.nextSibling;break;case "DIV":(F=X.lastChild)&&X.nextSibling&&_.Bz(_.M_(),F);X.previousSibling&&(X.previousSibling.nodeType===1||X.previousSibling.nodeType===3&&!X.previousSibling.textContent.endsWith("\n"))&&_.pb(_.M_(),X);F&&F.nodeName==="BR"&&_.c_(F);F=X;X.hasChildNodes()?(X=X.firstChild,
_.L4N(F)):(X=X.nextSibling,_.c_(F));break;default:X=X.nextSibling}return Mvv(K)},
setTextAreaValue:function(K){K||(K="");var X=this.getEditableFormattedString_();X.text="";this.getEditableTextArea_().innerText="";typeof K==="string"&&(K={runs:[{text:K}]});X.text=K},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();PK=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var K=this.getEditableTextArea_();K&&(_.AL(K,K.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.e8("HTML_DIR")==="rtl"){var K=this.getEditableTextArea_(),X=this.getTextAreaValue()!==""?"auto":"rtl";K.setAttribute("dir",X)}},
handleInputEvent_:function(){var K=null;if(this.isEmojiButtonDisplayed){var X=this.getInputRange_();X&&(K=this.emojiInput.retrieveTextBeforeRange(X))}this.insertText_(K,!0);this.updateCharCount_();K=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=K.scrollHeight>K.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var K=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:K})},
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(K){this.isEmojiButtonDisplayed&&(K.preventDefault(),K.stopImmediatePropagation(),K=K.clipboardData.getData("text/plain"),this.insertText_(K,!1,!1),_.iX(this.hostElement,"input"))},
insertText_:function(K,X,F){X=X===void 0?!1:X;F=F===void 0?!0:F;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&K){var P=this.getInputRange_().cloneRange();this.emojiManager&&P&&(X&&this.emojiInput.offsetStartOfRangeBy(P,K.length),this.insertTextWithEmojis_(P,K,F),Dms(this.getEditableTextArea_().lastChild)||(P=this.getInputRange_().cloneRange()),P&&(this.emojiInput.updateSuggestions(P,K),this.updateSuggestionOffset_(P)))}},
getSimpleString:_.lj,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(K){return K?"focused":"not-focused"},
computePlaceholderText_:function(K){return this.getSimpleString(K)},
computeEditableText_:function(K){return this.getSimpleString(K)},
onPrefilledContentDismissed_:function(K){K.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(K,X){K?this.fire("yt-autonav-pause-focus"):X!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(K){var X=this.getEditableTextArea_();[].concat(_.LZ(K.dataTransfer.items)).forEach(function(F){F.kind==="string"&&F.type.match("^text/plain")&&F.getAsString(function(P){X.appendChild(document.createTextNode(P))})});
K.preventDefault()},
preventDefault_:function(K){K.preventDefault()},
onSuggestionInsert_:function(K){this.insertTextWithEmojis_(K.detail.range,K.detail.text)},
onEmojiSuggestionClick_:function(K){this.emojiInput.insertSuggestion(K.detail)},
updateSuggestionOffset_:function(K){if(this.emojiInput&&_.C$(this.emojiInput).querySelector("#dropdown")){var X=this.getEditableTextArea_().getBoundingClientRect().bottom,F=K.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(X-F)+5;X=this.getEditableTextArea_().getBoundingClientRect().left;K=K.getBoundingClientRect().left-X;_.C$(this.emojiInput).querySelector("#dropdown").style.marginLeft=K+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.dG("yt-post"));return this.localStorage}});var HK=function(){var K=_.G.apply(this,arguments)||this;K.currentCommentOptionIndex=0;K.isEmojiPickerDisplayed=!1;K.emojiManager=_.yU;K.isUgcEmpty=!1;K.userGeneratedCommentChangedHandler=function(){_.iX(K.hostElement,"ytd-pdg-user-generated-comment-changed");K.isEmojiYtdCommentInputEnabled&&(K.isUgcEmpty=!K.ytdCommentInputEl.getTextAreaValue())};
K.pasteHandler=function(X){X.preventDefault();X.stopImmediatePropagation();var F;if(X=(F=X.clipboardData)==null?void 0:F.getData("text/plain"))F=document.getSelection().getRangeAt(0),F.collapsed||F.deleteContents(),X=document.createTextNode(X),F.insertNode(X),F.selectNodeContents(X),F.collapse(!1),X=window.getSelection(),X.removeAllRanges(),X.addRange(F)};
K.onDocumentClick=function(X){if(K.isEmojiPickerDisplayed){var F,P,H;!(X.target instanceof Node)||(F=X.composedPath())!=null&&F.includes(K.editableTextEl)||(P=X.composedPath())!=null&&P.includes(K.emojiButtonEl)||(H=X.composedPath())!=null&&H.includes(K.emojiPickerEl)||(K.isEmojiPickerDisplayed=!1)}};
return K};
_.r(HK,_.G);_.z=HK.prototype;_.z.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.z.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.z.detached=function(){var K;(K=this.contentEl)==null||K.removeEventListener("input",this.userGeneratedCommentChangedHandler);var X;(X=this.contentEl)==null||X.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.z.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.z.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var K;this.contentEl.textContent=this.rendererBehavior.getSimpleString((K=this.data)==null?void 0:K.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.z.reloadEmojis=function(){this.emojiPickerEl&&_.T(this.emojiPicker,_.ObQ)&&this.emojiPickerEl.updateEmojiCategories()};
_.z.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.XU(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.z.handleBackgroundColorStyling=function(){var K;if((K=this.currentCommentOption)==null?0:K.commentBackgroundColorArgb){var X;_.XU(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.wq((X=this.currentCommentOption)==null?void 0:X.commentBackgroundColorArgb)})}else _.XU(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.z.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var K;(K=this.contentEl)==null||K.focus()}};
_.z.onEditButtonClick=function(K){var X=document.getSelection();X&&this.contentEl&&(K.stopPropagation(),K.preventDefault(),X.selectAllChildren(this.contentEl),X.collapseToEnd())};
_.z.onContentDrop=function(K){var X=this;if(K.dataTransfer){K=_.D(K.dataTransfer.items);for(var F=K.next();!F.done;F=K.next())F=F.value,F.kind==="string"&&F.type.match("^text/plain")&&F.getAsString(function(P){var H;(H=X.contentEl)==null||H.appendChild(document.createTextNode(P))})}};
_.z.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.z.getUserGeneratedCommentText=function(){var K,X=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(K=this.contentEl)==null?void 0:K.textContent;return X?X.trim():""};
_.z.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.z.onEmojiSelect=function(K){this.ytdCommentInputEl.onEmojiSelect(K)};
_.Oi.Object.defineProperties(HK.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.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 K;return!((K=this.currentCommentOption)==null||!K.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var K;if(_.T((K=this.currentCommentOption)==null?void 0:K.chipRenderer,_.XTC)){var X;return _.T((X=this.currentCommentOption)==null?void 0:X.chipRenderer,_.XTC)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var K,X;return((K=this.data)==null?0:K.commentOptionRenderers)?_.T((X=this.data)==null?void 0:X.commentOptionRenderers[this.superThanksSelectedTierEntity.index],OYG):void 0}var F,P;return((F=this.data)==null?0:F.commentOptionRenderers)?_.T((P=this.data)==null?void 0:P.commentOptionRenderers[this.currentCommentOptionIndex],OYG):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var K;return this.rendererBehavior.getSimpleString((K=this.data)==null?void 0:K.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var K;return this.rendererBehavior.getSimpleString((K=this.data)==null?void 0:K.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var K,X;return(X=_.T((K=this.data)==null?void 0:K.commentDialog,_.hUV))==null?void 0:X.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var K,X;return(X=_.T((K=this.data)==null?void 0:K.commentDialog,_.hUV))==null?void 0:X.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var K,X;return(X=_.T((K=this.data)==null?void 0:K.commentDialog,_.hUV))==null?void 0:X.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var K,X,F=(X=_.T((K=this.data)==null?void 0:K.commentDialog,_.hUV))==null?void 0:X.emojiPicker;if(!_.T(F,_.ObQ)||!_.T(F,_.ObQ).categories)return!1;K=function(f){return f.emojiPickerCategoryRenderer?f.emojiPickerCategoryRenderer.emojiIds&&f.emojiPickerCategoryRenderer.emojiIds.length>0:f.emojiPickerUpsellCategoryRenderer?f.emojiPickerUpsellCategoryRenderer.emojis&&f.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var P,H;return((P=_.T(F,_.ObQ))==null?0:(H=P.categories)==null?0:H.find(K))?!0:!1}}});
HK.prototype.onEmojiSelect=HK.prototype.onEmojiSelect;HK.prototype.dataChanged=HK.prototype.dataChanged;HK.prototype.currentCommentOptionChanged=HK.prototype.currentCommentOptionChanged;_.O([_.W(_.jn),_.g("design:type",Object)],HK.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],HK.prototype,"rendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],HK.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.fa("#content-dom-if"),_.g("design:type",_.Su)],HK.prototype,"contentDomIfEl",void 0);_.O([_.fa("#content-no-emojis"),_.g("design:type",HTMLElement)],HK.prototype,"contentEl",void 0);_.O([_.fa("#container"),_.g("design:type",HTMLElement)],HK.prototype,"containerEl",void 0);_.O([_.fa("#comment-chip-container"),_.g("design:type",HTMLElement)],HK.prototype,"paidCommentChipContainerEl",void 0);_.O([_.fa("#text-input"),_.g("design:type",HTMLElement)],HK.prototype,"editableTextEl",void 0);
_.O([_.fa("#emoji-button"),_.g("design:type",HTMLElement)],HK.prototype,"emojiButtonEl",void 0);_.O([_.fa("#emoji-picker > yt-emoji-picker-renderer"),_.g("design:type",Object)],HK.prototype,"emojiPickerEl",void 0);_.O([_.fa("#text-input > ytd-comment-input"),_.g("design:type",Object)],HK.prototype,"ytdCommentInputEl",void 0);_.O([_.h(),_.g("design:type",Object)],HK.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],HK.prototype,"currentCommentOptionIndex",void 0);
_.O([_.h({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:J9J}),_.g("design:type",Object)],HK.prototype,"superThanksSelectedTierEntity",void 0);_.O([_.h(),_.g("design:type",Object)],HK.prototype,"isEmojiPickerDisplayed",void 0);_.O([_.h(),_.g("design:type",Object)],HK.prototype,"emojiManager",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],HK.prototype,"isUgcEmpty",void 0);
_.O([_.so("currentCommentOption"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],HK.prototype,"currentCommentOptionChanged",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],HK.prototype,"dataChanged",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],HK.prototype,"isEmojiYtdCommentInputEnabled",null);
_.O([_.U("data.title"),_.g("design:type",Object),_.g("design:paramtypes",[])],HK.prototype,"title",null);_.O([_.U("data.authorText"),_.g("design:type",Object),_.g("design:paramtypes",[])],HK.prototype,"channelName",null);_.O([_.U("data.commentOptionRenderers","currentCommentOption"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],HK.prototype,"shouldShowPaidCommentChipRenderer",null);
_.O([_.U("data.commentOptionRenderers","currentCommentOption"),_.g("design:type",Object),_.g("design:paramtypes",[])],HK.prototype,"paidCommentChipRenderer",null);_.O([_.U("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.g("design:type",Object),_.g("design:paramtypes",[])],HK.prototype,"currentCommentOption",null);
_.O([_.U("data.defaultCommentText","superThanksSelectedTierEntity"),_.g("design:type",Object),_.g("design:paramtypes",[])],HK.prototype,"commentText",null);_.O([_.U("data.placeholderText"),_.g("design:type",Object),_.g("design:paramtypes",[])],HK.prototype,"placeholderText",null);_.O([_.U("data.commentDialog.commentDialogRenderer.editableText"),_.g("design:type",Object),_.g("design:paramtypes",[])],HK.prototype,"editableText",null);
_.O([_.U("data.commentDialog.commentDialogRenderer.emojiButton"),_.g("design:type",Object),_.g("design:paramtypes",[])],HK.prototype,"emojiButton",null);_.O([_.U("data.commentDialog.commentDialogRenderer.emojiPicker"),_.g("design:type",Object),_.g("design:paramtypes",[])],HK.prototype,"emojiPicker",null);
_.O([_.U("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],HK.prototype,"isEmojiButtonDisplayed",null);_.O([_.Hc("yt-emoji-select"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],HK.prototype,"onEmojiSelect",null);HK=_.O([_.v({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],HK);
_.t(HK,"ytd-pdg-comment-preview-renderer",function(){if(hv1!==void 0)return hv1;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return hv1=K},{mode:2});var GZW;var sq=function(){var K=_.G.apply(this,arguments)||this;K.selected=!1;return K};
_.r(sq,_.G);_.z=sq.prototype;_.z.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.z.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.z.dataChanged=function(){this.data&&(_.ND(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.XU(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.wq(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.wq(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.z.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.z.onClick=function(){this.logClick()};
_.z.onKeyboardSelect=function(){_.iX(this.hostElement,"tap");this.onClick()};
_.z.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
sq.prototype.onClick=sq.prototype.onClick;sq.prototype.selectedChanged=sq.prototype.selectedChanged;sq.prototype.dataChanged=sq.prototype.dataChanged;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],sq.prototype,"componentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],sq.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.JP),_.g("design:type",Object)],sq.prototype,"ironA11yKeysBehavior",void 0);
_.O([_.W(_.Uo),_.g("design:type",Object)],sq.prototype,"ironSelectableBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],sq.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],sq.prototype,"shownThumbnail",void 0);_.O([_.h(),_.g("design:type",Object)],sq.prototype,"basePriceText",void 0);_.O([_.h(),_.g("design:type",Object)],sq.prototype,"purchaseCommand",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],sq.prototype,"selected",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],sq.prototype,"dataChanged",null);_.O([_.so("selected"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],sq.prototype,"selectedChanged",null);_.O([_.Hc("click"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],sq.prototype,"onClick",null);
sq=_.O([_.v({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],sq);
_.t(sq,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(GZW!==void 0)return GZW;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return GZW=K},{mode:1});var zN=function(){var K=_.G.apply(this,arguments)||this;K.selectedItemIndex=0;K.buyButtonDisabled=!1;return K};
_.r(zN,_.G);_.z=zN.prototype;
_.z.configureRendererStamper=function(){return{"data.commentPreview":{id:"comment-preview",mapping:{pdgCommentPreviewRenderer:{component:"ytd-pdg-comment-preview-renderer",properties:{currentCommentOptionIndex:"[[selectedItemIndex]]"}}}},"data.selectableItemButtons":{id:"selectable-items",mapping:{buttonRenderer:{component:"ytd-button-renderer"},superVodSelectableItemButtonRenderer:{component:"ytd-pdg-super-vod-selectable-item-button-renderer"}}},"data.colorSlider":{id:"slider",mapping:{pdgColorSliderRenderer:{component:"ytd-pdg-color-slider-renderer",
properties:{immediateValue:"[[selectedItemIndex]]"}}}}}};
_.z.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var K;var X=(K=_.T(this.data.colorSlider,$MJ))==null?void 0:K.notches[this.selectedItemIndex].purchaseCommand}else{var F;X=(F=_.T(this.data.selectableItemButtons[this.selectedItemIndex],g4G))==null?void 0:F.purchaseCommand}if(X){K=_.T(X,_.Rnt);K.productData||(K.productData={});var P;K.productData={pdgData:{commentMessageText:(P=this.commentPreviewRenderer)==null?void 0:P.getUserGeneratedCommentText()}};
_.iX(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(X)}}};
_.z.dataChanged=function(){if(this.data){_.yU.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.fuC(_.yU,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.yU.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var K;this.buyButtonDisabled=!((K=_.T(this.data.commentPreview,VTs))==null||!K.placeholderText);this.updatePriceSelectorStatus();var X;if((X=this.data)==null?0:X.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;K=[];this.data.preloadImages&&(K=this.data.preloadImages);
K=K.map(function(F){return _.bH(F.thumbnails,1920)});
K=_.D(K);for(X=K.next();!X.done;X=K.next())(X=X.value)&&_.oGl(X).thenCatch(function(){_.yy(Error("hl"))})}};
_.z.superThanksSelectedTierEntityChanged=function(){var K;(this==null?void 0:(K=this.superThanksSelectedTierEntity)==null?void 0:K.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.z.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.z.updatePriceSelectorStatus=function(){this.isColorSlider?(_.C$(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.C$(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.C$(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.C$(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.z.closeBuyFlow=function(){_.xr(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.z.onUserGeneratedContentChanged=function(){var K;this.buyButtonDisabled=!((K=this.commentPreviewRenderer)==null?0:K.getUserGeneratedCommentText())};
_.z.updateSelectedItemIndexFromBinding=function(K){this.selectedItemIndex=K.detail.value};
_.Oi.Object.defineProperties(zN.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var K;return!((K=this.data)==null||!K.disclaimerText)}}});
zN.prototype.onUserGeneratedContentChanged=zN.prototype.onUserGeneratedContentChanged;zN.prototype.closeBuyFlow=zN.prototype.closeBuyFlow;zN.prototype.selectedItemIndexChanged=zN.prototype.selectedItemIndexChanged;zN.prototype.superThanksSelectedTierEntityChanged=zN.prototype.superThanksSelectedTierEntityChanged;zN.prototype.dataChanged=zN.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],zN.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],zN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],zN.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],zN.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],zN.prototype,"selectedItemIndex",void 0);_.O([_.h(),_.g("design:type",Boolean)],zN.prototype,"isColorSlider",void 0);
_.O([_.h(),_.g("design:type",Object)],zN.prototype,"buyButtonDisabled",void 0);_.O([_.h({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:J9J}),_.g("design:type",Object)],zN.prototype,"superThanksSelectedTierEntity",void 0);_.O([_.fa("ytd-pdg-comment-preview-renderer"),_.g("design:type",Object)],zN.prototype,"commentPreviewRenderer",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],zN.prototype,"ytdReduxBehavior",void 0);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],zN.prototype,"dataChanged",null);_.O([_.so("superThanksSelectedTierEntity"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],zN.prototype,"superThanksSelectedTierEntityChanged",null);_.O([_.so("selectedItemIndex"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],zN.prototype,"selectedItemIndexChanged",null);
_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],zN.prototype,"closeBuyFlow",null);_.O([_.Hc("ytd-pdg-user-generated-comment-changed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],zN.prototype,"onUserGeneratedContentChanged",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],zN.prototype,"isDisclaimerTextShown",null);
zN=_.O([_.v({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],zN);
_.t(zN,"yt-super-vod-buy-flow-content-renderer",function(){if(RvF!==void 0)return RvF;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return RvF=K},{mode:1});var lY8;var f6=function(){var K=_.G.apply(this,arguments)||this;K.lottieAnimationRef={};return K};
_.r(f6,_.G);_.z=f6.prototype;_.z.created=function(){_.dC.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.Pc(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.z.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.iX(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.z.detached=function(){this.autoCloseJobId&&_.A9.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.Pc(this,this.onPopupIronOverlayOpened))};
_.z.dataChanged=function(){var K=this;this.data&&this.data.autoCloseDelay&&(_.xr(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.xO(_.A9,function(){K.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.XU(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.z.onDOMLoadedLottie=function(){var K=this,X,F,P=Number((X=this.data)==null?void 0:(F=X.autoCloseDelay)==null?void 0:F.seconds)||0;this.fadeOutJobId=_.xO(_.A9,function(){K.lottiePlayerEl.classList.add("fadeout")},(P-.25)*1E3);
this.autoCloseJobId=_.xO(_.A9,function(){K.closePopup()},P*1E3)};
_.z.openPopup=function(){this.ironOverlayBehavior.open()};
_.z.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.xr(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.X0(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.i9().resolve(_.xU).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.A9.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.A9.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.z.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var K,X;(K=this.lottieAnimationRef)==null||(X=K.lottieEl)==null||X.destroy();K=this.data.lottie;var F,P;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:K.url+"_"+Math.random(),path:K.url,autoplay:!0,loop:(P=(F=K.settings)==null?void 0:F.loop)!=null?P:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.Oi.Object.defineProperties(f6.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var K,X;return!!((K=this.data)==null?0:(X=K.lottie)==null?0:X.url)}}});
f6.prototype.maybeInitializeLottie=f6.prototype.maybeInitializeLottie;f6.prototype.dataChanged=f6.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],f6.prototype,"rendererBehavior",void 0);_.O([_.W(_.m2),_.g("design:type",Object)],f6.prototype,"ironOverlayBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],f6.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],f6.prototype,"lottiePlayerProps",void 0);
_.O([_.h(),_.g("design:type",Object)],f6.prototype,"lottieAnimationRef",void 0);_.O([_.fa("ytd-lottie-player"),_.g("design:type",HTMLElement)],f6.prototype,"lottiePlayerEl",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],f6.prototype,"dataChanged",null);_.O([_.U("data"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],f6.prototype,"hasLottieAnimation",null);
_.O([_.so("data.lottie.url"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],f6.prototype,"maybeInitializeLottie",null);f6=_.O([_.v({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],f6);
_.t(f6,"ytd-desktop-image-overlay-renderer",function(){if(lY8!==void 0)return lY8;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return lY8=K},{mode:1});var vzW;var DU=function(){return _.G.apply(this,arguments)||this};
_.r(DU,_.G);_.z=DU.prototype;_.z.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{pdgBuyFlowHeaderRenderer:{component:"yt-pdg-buy-flow-header-renderer"}}},"data.content":{id:"content",mapping:{superVodBuyFlowContentRenderer:{component:"yt-super-vod-buy-flow-content-renderer"}}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("tabIndex")||this.hostElement.setAttribute("tabIndex","0");this.hostElement.addEventListener("yt-popup-closed",_.Pc(this,this.closePopup))};
_.z.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Pc(this,this.closePopup))};
_.z.dataChanged=function(){_.IJ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.T(this.data.header,tTV)&&(this.hasBackgroundBanner=!!_.T(this.data.header,tTV).backgroundBanner)};
_.z.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Pc(this,this.closePopup))};
_.z.closePopup=function(){this.data&&this.data.onCloseCommand&&_.Kl(this.hostElement,[this.data.onCloseCommand])};
DU.prototype.handleBuyflowSelectionSubmitted=DU.prototype.handleBuyflowSelectionSubmitted;DU.prototype.dataChanged=DU.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],DU.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],DU.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],DU.prototype,"data",void 0);
_.O([_.h({value:!0,reflectToAttribute:!0}),_.g("design:type",Boolean)],DU.prototype,"hasBackgroundBanner",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],DU.prototype,"dataChanged",null);_.O([_.Hc("yt-pdg-buy-flow-selection-submitted"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],DU.prototype,"handleBuyflowSelectionSubmitted",null);
DU=_.O([_.v({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],DU);
_.t(DU,"ytd-pdg-buy-flow-renderer",function(){if(vzW!==void 0)return vzW;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return vzW=K},{mode:1});var aYW;var un=function(){var K=_.G.apply(this,arguments)||this;K.isOpen=!1;K.isPlaylistCreated=!1;return K};
_.r(un,_.G);_.z=un.prototype;_.z.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.z.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.iX(this.hostElement,"yt-refit")};
_.z.onCreateTap=function(){var K=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.Kl(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(X,F){if(!_.S("killswitch_ep_in_create_playlist_response")&&(F==null?0:F.actions))for(X=_.D(F.actions),F=X.next();!F.done;F=X.next())F=F.value,_.T(F,_.Lk)&&K.ytComponentBehavior.resolveCommand(F)}}]),this.isPlaylistCreated=!0)};
_.z.onKeydown=function(K){if(K.keyCode===13)this.onCreateTap()};
_.z.onServiceRequestCompleted=function(K){K.stopPropagation();_.xr(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.z.computePrivacyBadge=function(K){return K?[{metadataBadgeRenderer:K}]:[]};
un.prototype.onServiceRequestCompleted=un.prototype.onServiceRequestCompleted;un.prototype.onKeydown=un.prototype.onKeydown;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],un.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],un.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],un.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],un.prototype,"isOpen",void 0);
_.O([_.h(),_.g("design:type",Object)],un.prototype,"isPlaylistCreated",void 0);_.O([_.h({value:{REQUIRED_LABEL:_.uY("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.uY("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.g("design:type",Object)],un.prototype,"addToStrings",void 0);_.O([_.h({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.g("design:type",Array)],un.prototype,"privacyBadge",void 0);
_.O([_.fa("#privacy-input"),_.g("design:type",Object)],un.prototype,"privacyInput",void 0);_.O([_.fa("#name-input"),_.g("design:type",Object)],un.prototype,"nameInput",void 0);_.O([_.Hc("keydown"),_.g("design:type",Function),_.g("design:paramtypes",[KeyboardEvent]),_.g("design:returntype")],un.prototype,"onKeydown",null);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],un.prototype,"onServiceRequestCompleted",null);
un=_.O([_.v({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],un);
_.t(un,"ytd-add-to-playlist-create-renderer",function(){if(aYW!==void 0)return aYW;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return aYW=K},{mode:1});var t1k;var $Ss;var qP=function(){var K=_.G.apply(this,arguments)||this;K.transferState="TRANSFER_STATE_UNKNOWN";return K};
_.r(qP,_.G);qP.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
qP.prototype.onCheckboxChange=function(K){var X=this;this.data&&_.eu(this,"yt-playlist-checkbox-changed",function(){var F=_.vI(K).checked?X.data.addToPlaylistServiceEndpoint:X.data.removeFromPlaylistServiceEndpoint;F&&_.i9().resolve(_.xU).resolveCommand(F,{form:{element:X.hostElement}});_.S("dl_playlist_killswitch")||X.transferState!=="TRANSFER_STATE_UNKNOWN"&&X.transferState!=="TRANSFER_STATE_FAILED"&&X.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:X.data.playlistId,action:"ACTION_SYNC"}})},
100)};
qP.prototype.computeIconType=function(K){return K?"yt-icons:"+K.toLowerCase():null};
qP.prototype.dataChanged=qP.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],qP.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],qP.prototype,"data",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],qP.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],qP.prototype,"ytComponentBehavior",void 0);_.O([_.fa("#checkbox"),_.g("design:type",HTMLInputElement)],qP.prototype,"checkbox",void 0);
_.O([_.h({selector:_.A7,selectorArgs:["data.playlistId"]}),_.g("design:type",String)],qP.prototype,"transferState",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],qP.prototype,"dataChanged",null);qP=_.O([_.v({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],qP);
_.t(qP,"ytd-playlist-add-to-option-renderer",function(){if($Ss!==void 0)return $Ss;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return $Ss=K},{mode:1});_.iy(nXs);_.K4(nXs,"ytd-menu-title-renderer",{propNames:["data"]});var JO=function(){var K=_.G.apply(this,arguments)||this;K.addToStrings={ADD_TO_DROPDOWN_LABEL:_.uY("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};K.closeButtonAriaLabel=_.uY("SBOX_INAPPROPRIATE_CANCEL");K.dialog=_.S("desktop_add_to_playlist_renderer_dialog_popup");return K};
_.r(JO,_.G);_.z=JO.prototype;_.z.configureRendererStamper=function(){return{"data.playlists":{id:"playlists",mapping:{playlistAddToOptionRenderer:"ytd-playlist-add-to-option-renderer"}},"data.actions":{id:"actions",mapping:{addToPlaylistCreateRenderer:"ytd-add-to-playlist-create-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.z.onPopupOpened=function(){_.iN(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.z.onPopupClosed=function(){_.iN(this.playlists,"scrollable",!1)};
_.z.computeAriaLabel=function(){var K;if(this==null?0:(K=this.data)==null?0:K.actions){K=_.D(this.data.actions);for(var X=K.next();!X.done;X=K.next())if(X=X.value,X.menuTitleRenderer)return _.lj(X.menuTitleRenderer.title)}};
_.z.onTapClose=function(){_.xr(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.Oi.Object.defineProperties(JO.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var K;if(this==null?0:(K=this.data)==null?0:K.actions){K=_.D(this.data.actions);for(var X=K.next();!X.done;X=K.next())if(X=X.value,X.menuTitleRenderer)return X.menuTitleRenderer}return!1}}});
JO.prototype.onPopupClosed=JO.prototype.onPopupClosed;JO.prototype.onPopupOpened=JO.prototype.onPopupOpened;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],JO.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],JO.prototype,"ytEventForwardingBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],JO.prototype,"ytRendererStamperBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],JO.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],JO.prototype,"addToStrings",void 0);_.O([_.h({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.g("design:type",String)],JO.prototype,"ariaLabel",void 0);_.O([_.h(),_.g("design:type",String)],JO.prototype,"closeButtonAriaLabel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],JO.prototype,"dialog",void 0);
_.O([_.fa("#playlists"),_.g("design:type",HTMLElement)],JO.prototype,"playlists",void 0);_.O([_.fa("ytd-add-to-playlist-create-renderer"),_.g("design:type",Object)],JO.prototype,"createRenderer",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],JO.prototype,"menuTitleRenderer",null);_.O([_.Hc("yt-popup-opened"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],JO.prototype,"onPopupOpened",null);
_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],JO.prototype,"onPopupClosed",null);JO=_.O([_.v({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],JO);
_.t(JO,"ytd-add-to-playlist-renderer",function(){if(t1k!==void 0)return t1k;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return t1k=K},{mode:1});var Oft;var ZU=function(){var K=_.G.apply(this,arguments)||this;K.isPlaylistEditComplete=!1;K.isCollabEngagementDisabled=!1;K.closeButtonAriaLabel=_.uY("SBOX_INAPPROPRIATE_CANCEL");K.saveButton={title:_.uY("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"};K.onValueChanged=function(){K.updateSaveButtonState();K.computeCollabEngagementDisabled()};
return K};
_.r(ZU,_.G);_.z=ZU.prototype;_.z.attached=function(){this.JSC$18306_scroller&&(this.JSC$18306_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18306_scroller.attached&&typeof this.JSC$18306_scroller.attached==="function"&&this.JSC$18306_scroller.attached())};
_.z.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.z.onPopupClosed=function(){this.reset()};
_.z.close=function(){_.xr(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.z.onClickSave=function(){var K=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var X=[];this.nameInput.value!==null&&X.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&X.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var F=Number(this.privacyInput.value);isNaN(F)||X.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:F})}this.votingInput.value!==null&&(F=this.votingInput.value)&&X.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:F});if(X.length>0){var P;_.T((P=this.data)==null?void 0:P.updateSettingsEndpoint,_.TI).actions=X;var H;if((H=this.data)==null?0:H.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){K.close()}}}),this.isPlaylistEditComplete=!0}}};
_.z.computePrivacyBadge=function(K){return K?[{metadataBadgeRenderer:K}]:[]};
_.z.computeEditorData=function(K){var X,F;return K==null?void 0:(X=K.sections)==null?void 0:(F=X[0])==null?void 0:F.playlistSettingsEditorCasualSectionRenderer};
_.z.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.z.configureRendererStamper=function(){return{"editorData.thumbnail":{id:"thumbnail",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",params:{width:9999}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",params:{size:312}}}}}};
_.z.computeAriaLabel=function(){var K,X,F,P=(K=this.data)==null?void 0:(X=K.sections)==null?void 0:(F=X[0])==null?void 0:F.playlistSettingsEditorCasualSectionRenderer;return _.lj(P==null?void 0:P.title)};
_.z.updateSaveButtonState=function(){this.isFormChanged()&&this.isFormValid()?this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"})):this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_DISABLED"}))};
_.z.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.z.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.z.isNameChanged=function(){var K,X,F;return(((K=this.editorData)==null?void 0:(X=K.name)==null?void 0:(F=X.textInputFormFieldRenderer)==null?void 0:F.value)||"")!==(this.nameInput.value||"")};
_.z.isDescriptionChanged=function(){var K,X,F;return(((K=this.editorData)==null?void 0:(X=K.description)==null?void 0:(F=X.textInputFormFieldRenderer)==null?void 0:F.value)||"")!==(this.descriptionInput.value||"")};
_.z.isPrivacyChanged=function(){var K,X,F,P,H,f,u,J;return((u=(K=this.editorData)==null?void 0:(X=K.privacy)==null?void 0:(F=X.dropdownFormFieldRenderer)==null?void 0:(P=F.dropdown)==null?void 0:(H=P.dropdownRenderer)==null?void 0:(f=H.entries)==null?void 0:f.find(function(Z){var M;return Z==null?void 0:(M=Z.privacyDropdownItemRenderer)==null?void 0:M.isSelected}))==null?void 0:(J=u.privacyDropdownItemRenderer)==null?void 0:J.int32Value)!==this.privacyInput.value};
_.z.isVotingChanged=function(){var K,X,F,P,H,f,u,J;return((u=(K=this.editorData)==null?void 0:(X=K.voting)==null?void 0:(F=X.dropdownFormFieldRenderer)==null?void 0:(P=F.dropdown)==null?void 0:(H=P.dropdownRenderer)==null?void 0:(f=H.entries)==null?void 0:f.find(function(Z){var M;return Z==null?void 0:(M=Z.privacyDropdownItemRenderer)==null?void 0:M.isSelected}))==null?void 0:(J=u.privacyDropdownItemRenderer)==null?void 0:J.int32Value)!==this.votingInput.value};
ZU.prototype.onPopupClosed=ZU.prototype.onPopupClosed;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ZU.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],ZU.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],ZU.prototype,"ytEventForwardingBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],ZU.prototype,"ytRendererStamperBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],ZU.prototype,"data",void 0);_.O([_.h({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.g("design:type",Array)],ZU.prototype,"privacyBadge",void 0);_.O([_.h({computed:"computeEditorData(data)"}),_.g("design:type",Object)],ZU.prototype,"editorData",void 0);_.O([_.h(),_.g("design:type",Object)],ZU.prototype,"isPlaylistEditComplete",void 0);_.O([_.h(),_.g("design:type",Object)],ZU.prototype,"isCollabEngagementDisabled",void 0);
_.O([_.h({value:{REQUIRED_LABEL:_.uY("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.uY("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.g("design:type",Object)],ZU.prototype,"addToStrings",void 0);_.O([_.h({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.g("design:type",String)],ZU.prototype,"ariaLabel",void 0);_.O([_.h(),_.g("design:type",String)],ZU.prototype,"closeButtonAriaLabel",void 0);
_.O([_.h(),_.g("design:type",Object)],ZU.prototype,"saveButton",void 0);_.O([_.fa("#name-input"),_.g("design:type",Object)],ZU.prototype,"nameInput",void 0);_.O([_.fa("#description-input"),_.g("design:type",Object)],ZU.prototype,"descriptionInput",void 0);_.O([_.fa("#privacy-input"),_.g("design:type",Object)],ZU.prototype,"privacyInput",void 0);_.O([_.fa("#voting-input"),_.g("design:type",Object)],ZU.prototype,"votingInput",void 0);
_.O([_.fa("#scroller"),_.g("design:type",Object)],ZU.prototype,"JSC$18306_scroller",void 0);_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ZU.prototype,"onPopupClosed",null);_.O([_.h(),_.g("design:type",Object)],ZU.prototype,"onValueChanged",void 0);ZU=_.O([_.v({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],ZU);
_.t(ZU,"ytd-playlist-settings-editor-renderer",function(){if(Oft===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);Oft=K}K=Oft;return K},{mode:1});var V1k;_.L4("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var YI=function(){return _.G.apply(this,arguments)||this};
_.r(YI,_.G);_.z=YI.prototype;_.z.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-confirm":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",classListBinding:"[[buttonClass_]]",attributes:{"dialog-dismiss":!0}}}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.dataChanged=function(){switch(this.get("data.singleOptions.preselectMode")){case "SINGLE_OPTION_PRESELECT_MODE_LAST":this.selectedResponseIndex=this.get("data.singleOptions.styles").length-1;break;default:this.selectedResponseIndex=void 0}var K=this.get("data.nextButton.buttonRenderer.navigationEndpoint");K&&(this.nextNavigationEndpoint=K,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.z.onSelectedResponseIndexChange=function(){if(this.get("data.nextButton.buttonRenderer")!=null){switch(this.get("data.submissionMode")){case "SURVEY_SUBMISSION_MODE_ONE_SELECTED_OPTION":this.set("data.nextButton.buttonRenderer.isDisabled",this.selectedResponseIndex===void 0);break;default:this.set("data.nextButton.buttonRenderer.isDisabled",!1)}if(this.selectedResponseIndex!=null){var K={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",K)}}};
_.z.onPopupOpened=function(K){K.detail!==this&&K.detail!==this.hostElement||!_.S("enable_premium_voluntary_pause")||_.xr(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.z.onNextButtonTap=function(){var K=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);K&&this.ytdOpenPopupBehavior.openPopup(K)};
_.z.updateSelectedResponseIndexFromBinding=function(K){this.selectedResponseIndex=K.detail.value};
YI.prototype.onPopupOpened=YI.prototype.onPopupOpened;YI.prototype.onSelectedResponseIndexChange=YI.prototype.onSelectedResponseIndexChange;YI.prototype.dataChanged=YI.prototype.dataChanged;_.O([_.W(_.v9),_.g("design:type",Object)],YI.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],YI.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],YI.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],YI.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Number)],YI.prototype,"selectedResponseIndex",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],YI.prototype,"dataChanged",null);_.O([_.so("selectedResponseIndex"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],YI.prototype,"onSelectedResponseIndexChange",null);
_.O([_.Hc("yt-popup-opened"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],YI.prototype,"onPopupOpened",null);YI=_.O([_.v({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],YI);
_.t(YI,"ytd-red-cancel-survey-renderer",function(){if(V1k!==void 0)return V1k;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return V1k=K},{mode:1});var gz8;var QL=function(){var K=_.G.apply(this,arguments)||this;K.closeButtonAriaLabel=_.uY("SBOX_INAPPROPRIATE_CANCEL");return K};
_.r(QL,_.G);QL.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
QL.prototype.onClickClose=function(){_.xr(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],QL.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],QL.prototype,"rendererStamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],QL.prototype,"data",void 0);_.O([_.h(),_.g("design:type",String)],QL.prototype,"closeButtonAriaLabel",void 0);QL=_.O([_.v({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],QL);
_.t(QL,"ytd-search-filter-options-dialog-renderer",function(){if(gz8!==void 0)return gz8;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return gz8=K},{mode:1});var Ezw;var Bb8=function(){return function(K){K=K.availabilityType;return K===void 0||K==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||K==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var MP=function(){var K=_.G.apply(this,arguments)||this;K.qualityOptions=[];K.upsellOptions=[];K.showUpsellSection=!1;K.darkerDarkTheme=_.S("web_darker_dark_theme");K.rememberSettingsChecked=!1;return K};
_.r(MP,_.G);_.z=MP.prototype;_.z.configureRendererStamper=function(){return{qualityOptions:{id:"quality-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}},upsellOptions:{id:"upsell-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.z.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.z.updateQualityOptions=function(){if(this.formats===void 0)_.xr(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var K=[],X=[];this.showUpsellSection=!1;for(var F=_.D(this.formats),P=F.next();!P.done;P=F.next())(P=P.value)&&(P.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?X.push(P):K.push(P));K.length&&(this.qualityOptions=pW8(K));X.length&&(this.showUpsellSection=!0,this.upsellOptions=pW8(X))}};
_.z.updateRememberString=function(){if(this.downloadQualityPickerEntity)var K=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var X;K=(X=this.data)==null?void 0:X.premiumRememberSettingString}else{var F;K=(F=this.data)==null?void 0:F.rememberSettingString}K=K===void 0?_.uY("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):K;this.rememberSettingsCheckboxRenderer={title:_.bY(K),disabled:!1}};
_.z.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.Oi.Object.defineProperties(MP.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var K;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(K=this.data)==null?void 0:K.qualityFormats}}});
MP.prototype.updateRememberString=MP.prototype.updateRememberString;MP.prototype.updateQualityOptions=MP.prototype.updateQualityOptions;MP.prototype.dataChanged=MP.prototype.dataChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],MP.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],MP.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],MP.prototype,"data",void 0);
_.O([_.W(_.jn),_.g("design:type",Object)],MP.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Boolean)],MP.prototype,"selectedUpsellQuality",void 0);_.O([_.h({computed:"computeIcon_(data.premiumIcon)",value:""}),_.g("design:type",String)],MP.prototype,"premiumIcon",void 0);_.O([_.h({selector:frs,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.g("design:type",Object)],MP.prototype,"downloadQualityPickerEntity",void 0);
_.O([_.h(),_.g("design:type",Array)],MP.prototype,"qualityOptions",void 0);_.O([_.h(),_.g("design:type",Array)],MP.prototype,"upsellOptions",void 0);_.O([_.h(),_.g("design:type",Object)],MP.prototype,"showUpsellSection",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],MP.prototype,"darkerDarkTheme",void 0);_.O([_.h(),_.g("design:type",Object)],MP.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.O([_.fa("#remember-settings"),_.g("design:type",HTMLInputElement)],MP.prototype,"rememberSettingsCheckbox",void 0);_.O([_.h(),_.g("design:type",Object)],MP.prototype,"rememberSettingsChecked",void 0);_.O([_.h(),_.g("design:type",Function)],MP.prototype,"onRememberSettingsCheckedChanged",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MP.prototype,"dataChanged",null);
_.O([_.so("downloadQualityPickerEntity"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MP.prototype,"updateQualityOptions",null);_.O([_.so("selectedUpsellQuality"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MP.prototype,"updateRememberString",null);MP=_.O([_.v({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],MP);
_.t(MP,"ytd-download-quality-selector-content",function(){if(Ezw!==void 0)return Ezw;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return Ezw=K},{mode:1});var bfW;var n6=function(){var K=_.G.apply(this,arguments)||this;K.selectedUpsellQuality=!1;K.qualityOptions=[];K.darkerDarkTheme=_.S("web_darker_dark_theme");K.useUpsellDismissAlternate=_.S("use_not_now_dl_upsell_dismiss_cta");K.shouldShowAlternateUpsellDimiss=!1;K.rememberSettings=!1;K.rememberSettingsChecked=!1;K.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};K.rememberSettingsCheckedChanged=function(X){K.rememberSettingsChecked=X};
return K};
_.r(n6,_.G);_.z=n6.prototype;
_.z.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.bY(_.uY("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.bY(_.uY("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.bY(_.uY("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.bY(_.uY("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.z.updateQualityOptions=function(){this.formats===void 0?_.xr(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=pW8(this.formats)};
_.z.onQualityOptionsSelect=function(K){if(this.qualityOptions&&K){K!==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 X=_.D(this.qualityOptions.entries()),F=X.next();!F.done;F=
X.next()){F=_.D(F.value);var P=F.next().value;F=F.next().value;var H=void 0,f=void 0;if(((H=F)==null?void 0:(f=H.settingsRadioOptionRenderer)==null?void 0:f.id)===K){this.selectedQualityIndex=P;K=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((K=this.formats[P])==null?void 0:K.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.z.onClickSubmit=function(){var K;if((K=this.downloadButtonRenderer)==null||!K.isDisabled){var X,F;K=(F=(X=this.data)==null?void 0:X.onSubmitEndpoint)!=null?F:{};var P,H;if(this.formats&&(((P=_.T(K,_.Xj))==null?0:P.videoId)||((H=_.T(K,_.Fj))==null?0:H.playlistId))){var f,u,J,Z,M,n;X={formatType:(Z=(f=this.formats)==null?void 0:(u=f[(J=this.selectedQualityIndex)!=null?J:0])==null?void 0:u.format)!=null?Z:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(M=this.getOfflineEndpoint(K))==null?void 0:(n=M.actionParams)==null?void 0:n.settingsAction)};this.getOfflineEndpoint(K).actionParams=X;this.ytComponentBehavior.resolveCommand(K)}_.xr(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.z.onClickUpsell=function(){var K;if((K=this.upsellButtonRenderer)==null||!K.isDisabled){var X,F;K=(F=(X=this.data)==null?void 0:X.upsellEndpoint)!=null?F:{};this.ytComponentBehavior.resolveCommand(K);_.xr(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);X="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var P,H,f,u;X=(u=(P=this.formats)==null?void 0:(H=P[(f=this.selectedQualityIndex)!=null?f:0])==null?void 0:H.format)!=null?u:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:X}})}};
_.z.onClickClose=function(){_.xr(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.z.getOfflineSettingsAction=function(K,X){return K?X===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":X:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.z.getOfflineEndpoint=function(K){return _.T(K,_.Xj)?_.T(K,_.Xj):_.T(K,_.Fj)};
_.Oi.Object.defineProperties(n6.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.bY(_.uY("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var K;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(K=this.data)==null?void 0:K.qualityFormats}}});
n6.prototype.updateQualityOptions=n6.prototype.updateQualityOptions;n6.prototype.dataChanged=n6.prototype.dataChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],n6.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],n6.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],n6.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],n6.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],n6.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Number)],n6.prototype,"selectedQualityIndex",void 0);_.O([_.h(),_.g("design:type",Object)],n6.prototype,"selectedUpsellQuality",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],n6.prototype,"ytdReduxBehavior",void 0);
_.O([_.h({selector:frs,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.g("design:type",Object)],n6.prototype,"downloadQualityPickerEntity",void 0);_.O([_.h(),_.g("design:type",Array)],n6.prototype,"qualityOptions",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],n6.prototype,"darkerDarkTheme",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],n6.prototype,"useUpsellDismissAlternate",void 0);
_.O([_.h(),_.g("design:type",Object)],n6.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.O([_.h(),_.g("design:type",Object)],n6.prototype,"downloadButtonRenderer",void 0);_.O([_.h(),_.g("design:type",Object)],n6.prototype,"upsellButtonRenderer",void 0);_.O([_.h(),_.g("design:type",Object)],n6.prototype,"cancelButtonRenderer",void 0);_.O([_.h(),_.g("design:type",Object)],n6.prototype,"upsellCancelButtonRenderer",void 0);_.O([_.h(),_.g("design:type",Object)],n6.prototype,"rememberSettings",void 0);
_.O([_.h(),_.g("design:type",Object)],n6.prototype,"rememberSettingsChecked",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],n6.prototype,"dataChanged",null);_.O([_.so("downloadQualityPickerEntity"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],n6.prototype,"updateQualityOptions",null);n6=_.O([_.v({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],n6);
_.t(n6,"ytd-download-quality-selector-renderer",function(){if(bfW!==void 0)return bfW;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return bfW=K},{mode:1});var Cq8;var cK=function(){var K=_.G.apply(this,arguments)||this;K.darkerDarkTheme=_.S("web_darker_dark_theme");return K};
_.r(cK,_.G);cK.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
cK.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"}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],cK.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],cK.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],cK.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],cK.prototype,"darkerDarkTheme",void 0);_.O([_.h({computed:"computeIcon_(data.infoIcon)"}),_.g("design:type",Object)],cK.prototype,"infoIcon",void 0);
_.O([_.h({computed:"computeIcon_(data.warningIcon)"}),_.g("design:type",Object)],cK.prototype,"warningIcon",void 0);cK=_.O([_.v({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],cK);
_.t(cK,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(Cq8!==void 0)return Cq8;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Cq8=K},{mode:1});var Nr8;var p6=function(){var K=_.G.apply(this,arguments)||this;K.darkerDarkTheme=_.S("web_darker_dark_theme");return K};
_.r(p6,_.G);p6.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
p6.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"}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],p6.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],p6.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],p6.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],p6.prototype,"darkerDarkTheme",void 0);p6=_.O([_.v({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],p6);
_.t(p6,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(Nr8!==void 0)return Nr8;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return Nr8=K},{mode:1});var ifs;var BK=function(){var K=_.G.apply(this,arguments)||this;K.darkerDarkTheme=_.S("web_darker_dark_theme");return K};
_.r(BK,_.G);BK.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
BK.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"}}}}};
BK.prototype.onServiceRequestSentOrCompleted=function(K,X){X&&X.actions&&X.actions.length>0&&_.xr(this.hostElement,"yt-close-popup-action",[this.is])};
BK.prototype.onServiceRequestSentOrCompleted=BK.prototype.onServiceRequestSentOrCompleted;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],BK.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],BK.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],BK.prototype,"darkerDarkTheme",void 0);_.O([_.h(),_.g("design:type",Object)],BK.prototype,"data",void 0);
_.O([_.Hc("yt-service-request-completed"),_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.G9]),_.g("design:returntype")],BK.prototype,"onServiceRequestSentOrCompleted",null);BK=_.O([_.v({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],BK);
_.t(BK,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(ifs!==void 0)return ifs;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return ifs=K},{mode:1});var xSk;var SB=function(){var K=_.G.apply(this,arguments)||this;K.darkerDarkTheme=_.S("web_darker_dark_theme");K.submitButtonDisabled=!0;return K};
_.r(SB,_.G);_.z=SB.prototype;_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.z.onDataChanged=function(){var K,X,F;if(((K=this.data)==null?void 0:(X=K.confirmButton)==null?void 0:(F=X.buttonRenderer)==null?void 0:F.isDisabled)!==void 0){var P,H,f;this.submitButtonDisabled=(P=this.data)==null?void 0:(H=P.confirmButton)==null?void 0:(f=H.buttonRenderer)==null?void 0:f.isDisabled}};
_.z.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.z.updateSubmitButtonDisabledFromBinding=function(K){this.submitButtonDisabled=K.detail.value};
_.z.updateSubmitButtonDisabledFromConfirmCheckbox=function(K){this.submitButtonDisabled=!K.detail.value};
SB.prototype.onDataChanged=SB.prototype.onDataChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],SB.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],SB.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],SB.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],SB.prototype,"darkerDarkTheme",void 0);
_.O([_.h(),_.g("design:type",Object)],SB.prototype,"submitButtonDisabled",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],SB.prototype,"onDataChanged",null);SB=_.O([_.v({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],SB);
_.t(SB,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(xSk!==void 0)return xSk;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return xSk=K},{mode:1});var IYw;var oo=function(){return _.G.apply(this,arguments)||this};
_.r(oo,_.G);_.Oi.Object.defineProperties(oo.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var K,X,F;return((K=this.data)==null?void 0:K.title)+" "+((X=this.data)==null?void 0:X.metadataPrimary)+" "+((F=this.data)==null?void 0:F.metadataSecondary)}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],oo.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],oo.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],oo.prototype,"data",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],oo.prototype,"ariaLabel",null);oo=_.O([_.v({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],oo);
_.t(oo,"ytd-compact-product-list-item-renderer",function(){if(IYw!==void 0)return IYw;var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return IYw=K},{mode:1});var kZG;var L6=function(){return _.G.apply(this,arguments)||this};
_.r(L6,_.G);L6.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]]"}}}}}};
_.Oi.Object.defineProperties(L6.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],L6.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],L6.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],L6.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],L6.prototype,"data",void 0);L6=_.O([_.v({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],L6);
_.t(L6,"ytd-compact-product-list-renderer",function(){if(kZG!==void 0)return kZG;var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return kZG=K},{mode:1});var KrJ;var TN=function(){var K=_.G.apply(this,arguments)||this;K.darkerDarkTheme=_.S("web_darker_dark_theme");return K};
_.r(TN,_.G);_.z=TN.prototype;_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.z.getBackgroundUrl=function(){var K=this.get("data.headerImage.thumbnails");return K?"url("+_.bH(K,this.hostElement.clientWidth)+")":""};
_.z.onDataChanged=function(){var K=this.getBackgroundUrl();K&&(this.header.style.backgroundImage=K);K=_.AD();var X=_.r_(),F=this.get("data.trackingParams");F&&X&&K&&_.Us(K,X,_.QB(F));K=_.D(this.hostElement.querySelectorAll("yt-img-shadow"));for(X=K.next();!X.done;X=K.next())X.value.onShow()};
_.z.onPopupClosed=function(K){_.vI(K).localName==="ytd-membership-post-cancel-renderer"&&_.xr(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
TN.prototype.onPopupClosed=TN.prototype.onPopupClosed;TN.prototype.onDataChanged=TN.prototype.onDataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],TN.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],TN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],TN.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],TN.prototype,"darkerDarkTheme",void 0);
_.O([_.fa("#header"),_.g("design:type",HTMLDivElement)],TN.prototype,"header",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],TN.prototype,"onDataChanged",null);_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],TN.prototype,"onPopupClosed",null);TN=_.O([_.v({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],TN);
_.t(TN,"ytd-membership-post-cancel-renderer",function(){if(KrJ!==void 0)return KrJ;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return KrJ=K},{mode:1});var XY8;var ri=function(){var K=_.G.apply(this,arguments)||this;K.darkerDarkTheme=_.S("web_darker_dark_theme");return K};
_.r(ri,_.G);ri.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
ri.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],ri.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],ri.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],ri.prototype,"darkerDarkTheme",void 0);_.O([_.fa("ytd-feedback-survey-renderer"),_.g("design:type",Object)],ri.prototype,"feedbackSurveyRenderer",void 0);ri=_.O([_.v({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],ri);
_.t(ri,"ytd-sponsorship-confirm-cancel-content",function(){if(XY8!==void 0)return XY8;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return XY8=K},{mode:1});var Fr8;var AO=function(){var K=_.G.apply(this,arguments)||this;K.darkerDarkTheme=_.S("web_darker_dark_theme");K.maybeSubmitFeedback=function(){K.content&&K.content.maybeSubmitFeedback()};
return K};
_.r(AO,_.G);_.z=AO.prototype;_.z.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.z.onYtPopupOpened=function(K,X){X===this&&this.data&&this.data.onOpenCommands&&_.X0(this.hostElement,this.data.onOpenCommands,this.hostElement);_.xr(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.z.onYtPopupClosed=function(K,X){(X&&X.canceled===!0||X&&X.canceled===!1&&X.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.X0(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.z.onYtServiceRequestCompleted=function(){_.xr(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.z.onYtServiceRequestError=function(K){_.b6(this.hostElement,K.detail.error.message)};
_.z.onDataChanged=function(){if(this.isAttached){var K=this.backgroundUrl;K&&(_.C$(this.hostElement).querySelector("#header").style.backgroundImage=K)}};
_.Oi.Object.defineProperties(AO.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var K=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return K?"url("+_.bH(K,this.hostElement.clientWidth)+")":""}}});
AO.prototype.onDataChanged=AO.prototype.onDataChanged;AO.prototype.onYtServiceRequestError=AO.prototype.onYtServiceRequestError;AO.prototype.onYtServiceRequestCompleted=AO.prototype.onYtServiceRequestCompleted;AO.prototype.onYtPopupClosed=AO.prototype.onYtPopupClosed;AO.prototype.onYtPopupOpened=AO.prototype.onYtPopupOpened;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],AO.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],AO.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],AO.prototype,"data",void 0);_.O([_.h({value:function(){return _.uY("SBOX_INAPPROPRIATE_CANCEL")}}),
_.g("design:type",String)],AO.prototype,"closeButtonAriaLabel",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],AO.prototype,"darkerDarkTheme",void 0);_.O([_.fa("#scrollable"),_.g("design:type",Object)],AO.prototype,"scrollable",void 0);_.O([_.fa("ytd-sponsorship-confirm-cancel-content"),_.g("design:type",Object)],AO.prototype,"content",void 0);
_.O([_.Hc("yt-popup-opened"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],AO.prototype,"onYtPopupOpened",null);_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],AO.prototype,"onYtPopupClosed",null);
_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],AO.prototype,"onYtServiceRequestCompleted",null);_.O([_.Hc("yt-service-request-error"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],AO.prototype,"onYtServiceRequestError",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],AO.prototype,"onDataChanged",null);
AO=_.O([_.v({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],AO);
_.t(AO,"ytd-sponsorship-confirm-cancel-renderer",function(){if(Fr8!==void 0)return Fr8;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Fr8=K},{mode:_.Ig("kevlar_poly_si_batch_j081")?1:2});var PJ8;var jB=function(){var K=_.G.apply(this,arguments)||this;K.darkerDarkTheme=_.S("web_darker_dark_theme");return K};
_.r(jB,_.G);jB.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],jB.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],jB.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],jB.prototype,"darkerDarkTheme",void 0);jB=_.O([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],jB);
_.t(jB,"ytd-sponsorships-celebration-content",function(){if(PJ8!==void 0)return PJ8;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return PJ8=
K},{mode:1});var H5W;var sBW=_.lr(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),wi=function(){var K=_.G.apply(this,arguments)||this;K.scriptsAppended=!1;K.buttonOverrides={type:"tonal",style:"overlay-dark"};return K};
_.r(wi,_.G);_.z=wi.prototype;
_.z.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"},params:{forceModernIconButton:_.S("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.onDataChanged=function(){var K;(K=this.header)==null||K.style.setProperty("background-color",this.backgroundColor);if(K=this.headerImageUrl){var X;(X=this.header)==null||X.style.setProperty("background-image",K)}X=_.AD(4);K=_.r_(4);var F=this.get("data.trackingParams");if(F&&K&&X){var P=_.QB(F);_.Us(X,K,P);_.S("combine_ve_grafts")?_.uH().graftServerVe(F,K,4):_.Us(X,K,P)}X=_.D(this.hostElement.querySelectorAll("yt-img-shadow"));for(K=X.next();!K.done;K=X.next())K.value.onShow();if(X=this.get("data.gtmId"))_.nE(X,
_.e8("GL","")),this.setupConversionTracking()};
_.z.setupConversionTracking=function(){if(!this.scriptsAppended){var K=document.createElement("script");var X=_.ho(sBW.join(""));_.Gp(K,X);document.head.appendChild(K);K=document.createElement("noscript");K.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(K);this.scriptsAppended=!0}};
_.z.onPopupClosed=function(K){if(_.vI(K).localName==="ytd-sponsorships-celebration-renderer"){_.xr(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var X;this.data&&((X=this.data)==null?0:X.dismissCommand)&&_.Hn.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.Oi.Object.defineProperties(wi.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var K=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.wq(K)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var K=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return K?"url("+_.bH(K,this.hostElement.getBoundingClientRect().width)+")":""}}});
wi.prototype.onPopupClosed=wi.prototype.onPopupClosed;wi.prototype.onDataChanged=wi.prototype.onDataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],wi.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],wi.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],wi.prototype,"data",void 0);_.O([_.fa("#header"),_.g("design:type",HTMLElement)],wi.prototype,"header",void 0);
_.O([_.h(),_.g("design:type",Object)],wi.prototype,"scriptsAppended",void 0);_.O([_.h(),_.g("design:type",Object)],wi.prototype,"buttonOverrides",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],wi.prototype,"onDataChanged",null);_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],wi.prototype,"onPopupClosed",null);
wi=_.O([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],wi);
_.t(wi,"ytd-sponsorships-celebration-renderer",function(){if(H5W!==void 0)return H5W;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return H5W=K},{mode:1});var zpw;var yL=function(){var K=_.G.apply(this,arguments)||this;K.isToggleChecked=!1;return K};
_.r(yL,_.G);yL.prototype.onDataChanged=function(){var K;this.isToggleChecked=((K=this.data)==null?void 0:K.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
yL.prototype.close=function(){var K;((K=this.data)==null?0:K.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
yL.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var K,X=_.T((K=this.data)==null?void 0:K.switchButton,E4J);X&&(this.isToggleChecked&&X.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(X.switchOnInnertubeCommand),!this.isToggleChecked&&X.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(X.switchOffInnertubeCommand))};
yL.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
yL.prototype.onDataChanged=yL.prototype.onDataChanged;_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],yL.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],yL.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],yL.prototype,"isToggleChecked",void 0);_.O([_.h({value:_.uY("CLOSE")}),_.g("design:type",String)],yL.prototype,"closeButtonAriaLabel",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],yL.prototype,"onDataChanged",null);yL=_.O([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],yL);
_.t(yL,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(zpw!==void 0)return zpw;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return zpw=K},{mode:1});var ffk;var WK=function(){return _.G.apply(this,arguments)||this};
_.r(WK,_.G);_.z=WK.prototype;_.z.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.header.sponsorshipsHeaderRenderer.menuButton":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.detached=function(){this.playerElement.stop()};
_.z.onYtServiceRequestCompleted=function(){_.xr(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.z.onYtServiceRequestError=function(K){_.b6(this.hostElement,K.detail.error.message)};
_.z.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.z.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.z.getTier=function(K,X){return!K||!K.tiers||X<0?null:_.T(K.tiers[X],iYF)};
_.z.moreThanOne=function(K){return!!(K&&K.length>1)};
_.z.tierOverviewTap=function(K){var X=this;this.selectedTier=K.model.index;_.tg(this,function(){_.iX(X.hostElement,"yt-refit")})};
_.z.computeSelectedClass=function(K,X){return this.isSelected(K,X)?"selected":""};
_.z.computeButtonAriaPressed=function(K,X){return this.isSelected(K,X)?"true":"false"};
_.z.isSelected=function(K,X){return K===X};
_.z.onDataChanged=function(){_.C$(this.hostElement).querySelector("#header-overlay").style.visibility="";_.C$(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 K=_.D(this.hostElement.querySelectorAll("yt-img-shadow")),
X=K.next();!X.done;X=K.next())X.value.onShow();var F;this.set("selectedTier",(F=this.get("data.targetTierIndex"))!=null?F:0);var P;(K=(P=this.data)==null?void 0:P.onVisible)&&this.ytComponentBehavior.resolveCommand(K)};
_.z.initializeVe=function(K){var X=_.AD(),F=_.r_(),P=this.get("data.trackingParams");F&&X&&(this.screenLayer=4,X=_.hV(_.cKy)(void 0,69877,{clientScreenNonce:X,visualElement:F},void 0,void 0,void 0),_.w_(X,69877,4),F=_.r_(4),P&&F&&(P=_.QB(P),_.Us(X,F,P),K&&(this.offerVideoVe=_.cO(74659),_.Us(X,P,this.offerVideoVe))))};
_.z.setHeaderBackground=function(){var K=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.C$(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.wq(K);if(K=this.getHeaderImage())K=_.bH(K,screen.width),_.C$(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+K+")"};
_.z.getHeaderImage=function(){var K=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&K?K:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.z.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.z.setupVideoPlayer=function(K){var X=this,F,P,H,f;return _.q(function(u){if(u.nextAddress==1)return F=X.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),P=X.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.S("kevlar_player_update_killswitch")?X.playerElement.update({args:{autoplay:F,video_id:K,player_params:P}}):X.playerElement.loadVideoWithPlayerVars({autoplay:F,video_id:K,player_params:P}),
_.Y(u,X.playerElement.getPlayerPromise(),2);H=u.yieldResult;H.addEventListener("onStateChange",function(J){X.onPlayerStateChange(J)});
H.setScreenLayer(X.screenLayer);(f=_.AD(4))&&X.offerVideoVe&&_.mb(f,X.offerVideoVe);F&&(X.pauseOtherPlayers(),X.playerElement.focusOnPlayer(),X.playerElement.getPlayer().hideControls(),_.cu(_.A9,function(){X.fadeOutHeaderOverlay()},4E3));
_.JT(u)})};
_.z.onPlayerStateChange=function(K){K===1?this.backgroundPlayerElement&&(K=this.backgroundPlayerElement.player_.getPlayerState(),K!==1&&K!==3||this.backgroundPlayerElement.pause()):K===0&&(_.C$(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.C$(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.z.fadeOutHeaderOverlay=function(){_.C$(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.z.onHeaderTap=function(){if(this.offerVideo){_.C$(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var K;((K=this.playerElement.player_)==null?void 0:K.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(K=_.AD(4))&&this.offerVideoVe&&_.vW(K,this.offerVideoVe)}};
_.z.getBackgroundImageLayerClass=function(K){return K?"background-image-layer-with-video":""};
_.z.getHeaderClass=function(K){return K?"header-with-video":""};
_.z.getHeaderOverlayClass=function(K){return K?"header-overlay-with-video":""};
_.z.getTitleContainerClass=function(K,X){return K?"title-container-with-video":X?"title-container-without-video-flexible":"title-container-without-video"};
_.z.tierTitleDisplayStatus=function(K){return this.moreThanOne(K)?"hide":"show"};
_.z.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.i9().resolve(_.Wj).getPlayerElement():this.backgroundPlayerElement=_.$f();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var K=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=K===1||K===3;this.backgroundPlayerElement.pause()}};
_.z.isMiniplayerActive=function(){return _.i9().resolve(_.Wj).isMiniplayerActive()};
_.z.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R9("selected-tier-changed",this.selectedTier))};
WK.prototype.selectedTierChangedForBinding=WK.prototype.selectedTierChangedForBinding;WK.prototype.onDataChanged=WK.prototype.onDataChanged;WK.prototype.onYtPopupClosed=WK.prototype.onYtPopupClosed;WK.prototype.onYtPopupOpened=WK.prototype.onYtPopupOpened;WK.prototype.onYtServiceRequestError=WK.prototype.onYtServiceRequestError;WK.prototype.onYtServiceRequestCompleted=WK.prototype.onYtServiceRequestCompleted;
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],WK.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],WK.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],WK.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],WK.prototype,"data",void 0);_.O([_.h({value:0}),_.g("design:type",Number)],WK.prototype,"selectedTier",void 0);
_.O([_.h({value:""}),_.g("design:type",String)],WK.prototype,"offerVideo",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],WK.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.O([_.h({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.FL(this)}}),
_.g("design:type",String)],WK.prototype,"playerId",void 0);_.O([_.fa("tp-yt-paper-dialog-scrollable"),_.g("design:type",Object)],WK.prototype,"scrollable",void 0);_.O([_.fa("ytd-sponsorships-tier-renderer"),_.g("design:type",Object)],WK.prototype,"tierRenderer",void 0);_.O([_.fa("#player"),_.g("design:type",Object)],WK.prototype,"playerElement",void 0);
_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],WK.prototype,"onYtServiceRequestCompleted",null);_.O([_.Hc("yt-service-request-error"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],WK.prototype,"onYtServiceRequestError",null);
_.O([_.Hc("yt-popup-opened"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],WK.prototype,"onYtPopupOpened",null);_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],WK.prototype,"onYtPopupClosed",null);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],WK.prototype,"onDataChanged",null);
_.O([_.so("selectedTier"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],WK.prototype,"selectedTierChangedForBinding",null);WK=_.O([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],WK);
_.t(WK,"ytd-sponsorships-offer-renderer",function(){if(ffk!==void 0)return ffk;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return ffk=K},{mode:_.Ig("kevlar_poly_si_batch_j077")?1:2});var D1t;var di=function(){var K=_.G.apply(this,arguments)||this;K.buttonOverrides={type:"filled",style:"mono"};return K};
_.r(di,_.G);di.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}}}}}};
di.prototype.backgroundColorChanged=function(){var K,X,F,P=(X=_.T((K=this.data)==null?void 0:K.content,xMk))==null?void 0:(F=X.backgroundColor)==null?void 0:F.backgroundColor;P&&(K=_.j0(P),_.C$(this.hostElement).querySelector("#banner").style.backgroundColor=K,_.C$(this.hostElement).querySelector("#abstract-art").style.backgroundColor=K)};
di.prototype.attached=function(){this.JSC$18392_scroller&&(this.JSC$18392_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18392_scroller.attached&&typeof this.JSC$18392_scroller.attached==="function"&&this.JSC$18392_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
di.prototype.backgroundColorChanged=di.prototype.backgroundColorChanged;_.O([_.h(),_.g("design:type",Object)],di.prototype,"data",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],di.prototype,"ytRendererstamperBehavior",void 0);_.O([_.fa("#scroller"),_.g("design:type",Object)],di.prototype,"JSC$18392_scroller",void 0);_.O([_.h(),_.g("design:type",Object)],di.prototype,"buttonOverrides",void 0);
_.O([_.so("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],di.prototype,"backgroundColorChanged",null);di=_.O([_.v({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],di);
_.t(di,"ytd-sponsorships-promotion-celebration-renderer",function(){if(D1t!==void 0)return D1t;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return D1t=K},{mode:_.Ig("kevlar_poly_si_batch_j077")?1:2});var uW1;var qGk;var eB=function(){return _.G.apply(this,arguments)||this};
_.r(eB,_.G);eB.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
eB.prototype.computeIsInitiallyChecked=function(K){return K===1};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],eB.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],eB.prototype,"data",void 0);_.O([_.fa("#checkbox"),_.g("design:type",Object)],eB.prototype,"checkbox",void 0);eB=_.O([_.v({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],eB);
_.t(eB,"ytd-subscription-toggle-option-renderer",function(){if(qGk!==void 0)return qGk;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return qGk=K},{mode:1});var Ro=function(){var K=_.G.apply(this,arguments)||this;K.darkerDarkTheme=_.S("web_darker_dark_theme");K.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return K};
_.r(Ro,_.G);Ro.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"}}}};
Ro.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ro.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var K=_.C$(this.hostElement).querySelector("#options").selected;K=this.data.options[K].subscriptionRadioOptionRenderer.serviceEndpoint;var X=_.C$(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");X&&K&&K.modifyChannelNotificationPreferenceEndpoint&&(X=X.getValue())&&(K.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[X]);_.i9().resolve(_.xU).resolveCommand(K,{form:{element:this.hostElement}});
_.xr(this.hostElement,"yt-close-popup-action")};
_.Oi.Object.defineProperties(Ro.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var K=this.data.options,X=0;X<K.length;X++){var F=K[X].subscriptionRadioOptionRenderer;if(F&&F.selected)return X}return null}}});
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Ro.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Ro.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],Ro.prototype,"eventForwardingBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],Ro.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Ro.prototype,"darkerDarkTheme",void 0);_.O([_.U("data.options"),_.g("design:type",Object),_.g("design:paramtypes",[])],Ro.prototype,"initialIndex",null);Ro=_.O([_.v({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],Ro);
_.t(Ro,"ytd-subscription-notification-options-renderer",function(){if(uW1!==void 0)return uW1;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return uW1=K},{mode:1});var JNW;var Uq=function(){return _.G.apply(this,arguments)||this};
_.r(Uq,_.G);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Uq.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Uq.prototype,"data",void 0);Uq=_.O([_.v({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],Uq);
_.t(Uq,"ytd-tvfilm-offer-groups-renderer",function(){if(JNW!==void 0)return JNW;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return JNW=K},{mode:1});var Z5s;var hO=function(){var K=_.G.apply(this,arguments)||this;K.darkerDarkTheme=_.S("web_darker_dark_theme");return K};
_.r(hO,_.G);_.z=hO.prototype;_.z.configureRendererStamper=function(){return{"data.offers":{id:"offers",mapping:{tvfilmOffersRenderer:{component:"ytd-tvfilm-offer-groups-renderer"}}},"data.coupon":{id:"coupon",mapping:{ypcCouponRenderer:"ytd-ypc-coupon-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.z.computeThumbnailClass=function(K){return K.thumbnailOverlays?K.isShow?"thumbnail-show":"thumbnail-movie":K.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.z.computeCommerceSectionClass=function(K){return K.offers&&K.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.z.computeTitleClass=function(K){return K.offers&&K.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.z.onDataChanged=function(){[].concat(_.LZ(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(K){K.onShow()})};
hO.prototype.onDataChanged=hO.prototype.onDataChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],hO.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],hO.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],hO.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],hO.prototype,"darkerDarkTheme",void 0);
_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],hO.prototype,"onDataChanged",null);hO=_.O([_.v({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],hO);
_.t(hO,"ytd-ypc-offers-overlay-renderer",function(){if(Z5s!==void 0)return Z5s;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return Z5s=K},{mode:_.Ig("kevlar_poly_si_batch_j028")?1:2});var YG5;var QB1=function(){this.usedMethods=new Set};
QB1.prototype.add=function(K){this.usedMethods.add(K)};
QB1.prototype.reset=function(){this.usedMethods.clear()};var cNJ=function(K,X){this.query=K;this.previousSearchQuery=X;this.id=MZd++;if(!n$8){X=_.e8("SBOX_SETTINGS");K="https://"+((X==null?void 0:X.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var F=X==null?void 0:X.REQUEST_LANGUAGE;F&&(K+="&hl="+F);(F=X==null?void 0:X.REQUEST_DOMAIN)&&(K+="&gl="+F);K+="&client=youtube&gs_ri=youtube";(F=X==null?void 0:X.SUGG_EXP_ID)&&(K+="&sugexp="+encodeURIComponent(F));(F=X==null?void 0:X.PSUGGEST_TOKEN)&&(K+="&tok="+F);(X=
X==null?void 0:X.SESSION_INDEX)&&(K+="&authuser="+X);_.S("desktop_enable_visual_suggest")&&(K+="&h=180&w=320&ytvs=1");n$8=K}},pYF=function(K){var X="q="+encodeURIComponent(K.query);
K.previousSearchQuery&&(X+="&pq="+encodeURIComponent(K.previousSearchQuery));return X},BJt=function(){var K=_.e8("SBOX_SETTINGS"),X={};
if(K==null?0:K.SEND_VISITOR_DATA)X["X-Goog-Visitor-Id"]=K==null?void 0:K.VISITOR_DATA;return X},SGd=function(K){var X=n$8;
X+="&gs_id="+K.id.toString(36);X+="&q="+encodeURIComponent(K.query);X+="&cp="+K.query.length;K.previousSearchQuery&&(X+="&pq="+encodeURIComponent(K.previousSearchQuery));(K=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(X+="&video_id="+K);return X},MZd=0,n$8="";var o$k=_.ap.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,Lrd=_.ap.SEARCH_ENTITY_SUGGESTION_MOVIE,TJJ=_.ap.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,rNW=_.ap.SEARCH_ENTITY_SUGGESTION_TV_SHOW,ANs=function(K,X){this.text=K;this.bold=X},jBw=function(K,X,F){this.input=X;
this.index=F;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=K[0];this.type=K[1];this.subtypes=K[2];var P;this.displayText=Nj((P=K[3])==null?void 0:P.b);var H;this.ignoredPrefix=Nj((H=K[3])==null?void 0:H.a);var f,u;this.hasNewVideo=((f=K[3])==null?void 0:(u=f.zam)==null?void 0:u.toString())==="true"?!0:!1;var J;this.visualSuggestUrl=(J=K[3])==null?void 0:J.zai;var Z;this.entityType=Nj((Z=K[3])==null?void 0:Z.zap);var M;this.entityName=Nj((M=K[3])==null?void 0:M.zao);var n;X=Nj((n=
K[3])==null?void 0:n.zaf);var c;this.entityMid=(c=K[3])==null?void 0:c.zae;n=oX8(this.subtypes,this.entityMid);if(X&&n){if(X){c="";switch(n){case "YOUTUBE_ENTITY_TYPE_SONG":c=TJJ;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":c=o$k;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":c=rNW;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":c=Lrd}n=n==="YOUTUBE_ENTITY_TYPE_SONG"||n==="YOUTUBE_ENTITY_TYPE_ALBUM"?c+" \u2022  \u2022 "+X:X}else n="";this.entitySubtitle=n}var B;this.externalChannelId=(B=K[3])==null?void 0:B.zav;var L;
this.entityThumbnailAttributionUrl=(L=K[3])==null?void 0:L.zaq},yNk=function(K,X){var F=[],P,H=(P=K.displayText)!=null?P:K.text;
(X==null?0:X.useEntityName)&&wYF(K)&&K.entityName&&(H=K.entityName);if(K.type===33)return F.push(new ANs(H,!1)),F;if(H.length>=K.input.length&&H.substring(0,K.input.length)===K.input)F.push(new ANs(K.input,!1)),F.push(new ANs(H.substring(K.input.length),!0));else{var f=new Set(K.input.split(/\s/)),u=H.split(/\s/);F=u.map(function(J,Z){return new ANs(J.trim()+(Z===u.length-1?"":" "),!f.has(J))})}return F},wYF=function(K){var X=!!oX8(K.subtypes);
K=!!K.entityMid;return X||K};var Wr8=function(K){this.rawResponse=["",[],{}];this.suggestions=[];try{var X=JSON.parse(LbV(K));if(typeof X==="object"&&X!==null)this.rawResponse=X;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(P){console.log("Suggest: Failed to parse SuggestResponse!");return}var F=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(P,H){return new jBw(P,F,H)})};var d15=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new QB1;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18429_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},epF,Rpk=function(){epF||(epF=new d15);
return epF};
d15.prototype.updateSuggestions=function(K){var X=this;this.availableSuggestions.forEach(function(F){X.previousSuggestions[F]=!0});
this.availableSuggestions=K.map(function(F){var P=F.type.toString();F.subtypes.length>0&&(P+="i"+F.subtypes.join("i"),P+="k"+F.suggestionSources.COMPLETE_SERVER.toString());return P})};
var U1o=function(K,X){var F=Date.now();K.firstEditTime<0&&(K.firstEditTime=F);X&&(K.lastQueryBuildTime=F);K.lastEditTime=F};
d15.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18429_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var hpv=function(K){var X="";K.availableSuggestions.forEach(function(H){delete K.previousSuggestions[H]});
for(var F=_.D(Object.keys(K.previousSuggestions)),P=F.next();!P.done;P=F.next())P=P.value,K.previousSuggestions[P]&&(X+=(X?"j":"")+P);return X},m1k=function(K,X){var F=[];
X&&(F[1]=X.toString());F[0]="youtube";F[7]=Date.now()-K.startTime;F[6]=K.sessionNumber;K.zeroPrefixSuggestionCount>=0&&(F[33]=K.zeroPrefixSuggestionCount);F[13]=K.outOfSyncResponseCount;if(K.availableSuggestions.length>0){for(var P=X="",H=0,f=_.D(K.availableSuggestions),u=f.next();!u.done;u=f.next())u=u.value,u!==P&&(H>1&&(X+="l"+H),X+=(P?"j":"")+u,H=0,P=u),H+=1;H>1&&(X+="l"+H);F[3]=X}F[35]=hpv(K);K.selectedSuggestionIndex>=0&&(F[2]=K.selectedSuggestionIndex);var J;if(X=(J=_.e8("SBOX_SETTINGS"))==
null?void 0:J.SUGG_EXP_ID)F[19]=K.normalize(X),J=0,K.experimentTriggeredBeforeFinal&&(J|=1),K.experimentTriggeredFinal&&(J|=2),F[20]=J;F[26]=Array.from(K.inputMethodsTracker.usedMethods).join("j");if(K.JSC$18429_totalRoundTripTime>0){F[15]=K.JSC$18429_totalRoundTripTime;F[14]=K.maxRoundTripTime;J=[];for(H=X=0;H<10;H++)P=K.roundTripTimeHistogram[H],P===0?X++:(X>1?J.push(H+"-"+P):X===1?J.push("0j"+P):J.push(P.toString()),X=0);J=J.join("j");F[16]=J}K.zeroPrefixRoundTripTime>0&&(F[36]=K.zeroPrefixRoundTripTime);
K.lastQueryBuildTime>0&&(F[18]=K.lastQueryBuildTime-K.startTime);K.firstEditTime>0&&(F[4]=K.firstEditTime-K.startTime);K.lastEditTime>0&&(F[5]=K.lastEditTime-K.startTime);return F.join(".")};
d15.prototype.normalize=function(K){return K.replaceAll(".","-")};
var G58=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var mu=function(){var K=_.G.apply(this,arguments)||this;K.microphoneSpinnerActive=!1;K.noAnimations=!1;K.boundExitClick=function(){K.onExitButtonClick()};
K.speechOverlayClassName="";K.isLevelAnimating=!1;K.playCloseDialogAudioFeedback=!0;K.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return K};
_.r(mu,_.G);_.z=mu.prototype;_.z.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.z.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=ou5()};
_.z.dataChanged=function(){this.logDialog()};
_.z.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var K;(K=this.manager.audioPlayer)!=null&&(K.JSC$17718_audioEnabled=!1)}this.manager.stop();(K=this.manager.audioPlayer)!=null&&(K.JSC$17718_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.z.handleSpeechQueryCompleteAction=function(K){var X=K.navigationAction;X&&(K.trackingParams&&_.uH().graftServerVe(K.trackingParams,this.dialogVe,5),_.iX(this.hostElement,"yt-navigate",{endpoint:X,tempData:this.getNavigationParams(X),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.z.onExitButtonClick=function(){this.closeDialog()};
_.z.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var K;if((K=this.manager)!=null){var X;(X=K.audioPlayer)==null||h$(X,"failure");K.setState("microphone-off");K.stop()}}else(K=this.manager)==null||K.start()};
_.z.transcriptionChanged=function(){var K,X;(((K=this.transcription)==null?0:K.low)||((X=this.transcription)==null?0:X.high))&&this.setState("transcribing",this.transcription)};
_.z.stateChanged=function(){this.setState(this.state,this.transcription)};
_.z.logDialog=function(){var K;(K=this.data)!=null&&K.trackingParams&&(K=_.uH(),_.IZ(K,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=K.graftServerVe(this.data.trackingParams,void 0,5))};
_.z.getNavigationParams=function(K){var X={};if(_.S("web_yt_searchbox")){var F=Rpk();F.inputMethodsTracker.add(6);F=m1k(F,15);X.gs_l=F;var P;X.oq=((P=_.T(K,_.Dm))==null?void 0:P.query)||""}else if(K=window.ytvoicesearchloggingparams){if(K=K())X.oq=K.oq,X.gs_l=K.gs_l}else _.Gr(Error("il"));return X};
_.z.closeDialog=function(){_.xr(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.z.setState=function(K,X){if(this.data){var F=this.data,P={};switch(K){case "listening":P={headerText:F.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:F.microphoneButtonAriaLabel};break;case "timeout":P={headerText:F.promptHeader,microphoneState:"try-again",microphoneLabel:F.promptMicrophoneLabel,microphoneAriaLabel:F.promptMicrophoneLabel};break;case "microphone-off":P={headerText:F.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:F.promptMicrophoneLabel,
microphoneAriaLabel:F.promptMicrophoneLabel};break;case "transcribing":(X==null?0:X.low)||(X==null?0:X.high)?P={transcriptionLow:X==null?void 0:X.low,transcriptionHigh:X==null?void 0:X.high,microphoneState:"speaking",microphoneAriaLabel:F.microphoneButtonAriaLabel}:P={headerText:F.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:F.microphoneButtonAriaLabel};break;case "processing":P={headerText:F.loadingHeader,microphoneState:"processing",microphoneAriaLabel:F.microphoneButtonAriaLabel};
break;case "offline":P={headerText:F.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:F.connectionErrorMicrophoneLabel,microphoneAriaLabel:F.connectionErrorMicrophoneLabel};break;case "permission":P={headerText:F.permissionsHeader,bodyLine1:F.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:F.permissionsSubtext};break;case "permission-denied":P={headerText:F.disabledHeader,bodyLine1:F.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:F.disabledSubtext}}P.className=
K;this.speechOverlayState=P;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.z.setMicrophoneState=function(K){var X=this.isLevelAnimating;this.isLevelAnimating=K==="speaking";!X&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=K==="processing"&&!this.noAnimations};
_.z.setClass=function(K){this.speechOverlayClassName&&_.iN(this.hostElement,this.speechOverlayClassName,!1);K&&(this.speechOverlayClassName=K,_.iN(this.hostElement,K,!0))};
_.z.runLevelAnimation=function(){var K=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var X=1+Math.random()*.75,F=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+F/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+X+")");_.A9.addJob(function(){K.runLevelAnimation()},3,F)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
mu.prototype.stateChanged=mu.prototype.stateChanged;mu.prototype.transcriptionChanged=mu.prototype.transcriptionChanged;mu.prototype.onPopupClosed=mu.prototype.onPopupClosed;mu.prototype.dataChanged=mu.prototype.dataChanged;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],mu.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],mu.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],mu.prototype,"rendererStamperBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],mu.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],mu.prototype,"eventForwardingBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],mu.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],mu.prototype,"speechOverlayState",void 0);
_.O([_.h(),_.g("design:type",Object)],mu.prototype,"microphoneSpinnerActive",void 0);_.O([_.h({type:_.S("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.g("design:type",Object)],mu.prototype,"noAnimations",void 0);_.O([_.h({selector:function(K){var X;return(X=K.voiceSearch)==null?void 0:X.transcription}}),
_.g("design:type",Object)],mu.prototype,"transcription",void 0);_.O([_.h({selector:function(K){var X;return(X=K.voiceSearch)==null?void 0:X.overlay}}),
_.g("design:type",String)],mu.prototype,"state",void 0);_.O([_.h(),_.g("design:type",Object)],mu.prototype,"boundExitClick",void 0);_.O([_.fa("#microphone-levels"),_.g("design:type",HTMLElement)],mu.prototype,"level",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],mu.prototype,"dataChanged",null);_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],mu.prototype,"onPopupClosed",null);
_.O([_.JA("transcription"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],mu.prototype,"transcriptionChanged",null);_.O([_.JA("state"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],mu.prototype,"stateChanged",null);mu=_.O([_.v({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],mu);
_.t(mu,"ytd-voice-search-dialog-renderer",function(){if(YG5!==void 0)return YG5;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return YG5=K},{mode:1});var lf5;var GN=function(){var K=_.G.apply(this,arguments)||this;K.isOverlay=!1;K.hidden=!1;return K};
_.r(GN,_.G);_.z=GN.prototype;_.z.onPopupClosed=function(){this.toggleIconState(!1)};
_.z.computeIcon=function(){var K,X,F;return(X=_.T((K=this.data)==null?void 0:K.icon,F2F))==null?void 0:(F=X.icon)==null?void 0:F.iconType};
_.z.computeIconBadgeShape=function(){var K;return{iconBadgeType:"cart",iconBadgeText:(K=this.iconBadgeEntity)==null?void 0:K.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.z.onClick=function(){var K;(K=this.data)!=null&&K.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.z.computeHidden=function(K){return!K};
_.z.toggleIconState=function(K){this.iconButton&&(this.iconButton.pressed=K)};
GN.prototype.onPopupClosed=GN.prototype.onPopupClosed;_.O([_.W(_.jn),_.g("design:type",Object)],GN.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],GN.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],GN.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],GN.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],GN.prototype,"isOverlay",void 0);
_.O([_.h({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.g("design:type",Object)],GN.prototype,"hidden",void 0);_.O([_.h({selectorArgs:["data.iconBadgeEntityKey"],selector:function(K,X){return _.FF(K.entities,"iconBadgeEntity",X)}}),
_.g("design:type",Object)],GN.prototype,"iconBadgeEntity",void 0);_.O([_.fa("yt-icon-button"),_.g("design:type",HTMLButtonElement)],GN.prototype,"iconButton",void 0);_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],GN.prototype,"onPopupClosed",null);GN=_.O([_.v({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],GN);
_.t(GN,"ytd-icon-badge-topbar-button-renderer",function(){if(lf5!==void 0)return lf5;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return lf5=K},{mode:1});var v$8;var ln=function(){var K=_.G.apply(this,arguments)||this;K.premiumOptions=[];K.darkerDarkTheme=_.S("web_darker_dark_theme");return K};
_.r(ln,_.G);ln.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.Oi.Object.defineProperties(ln.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],ln.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],ln.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Array)],ln.prototype,"premiumOptions",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],ln.prototype,"darkerDarkTheme",void 0);_.O([_.U("premiumOptions"),_.g("design:type",Object),_.g("design:paramtypes",[])],ln.prototype,"hasPremiumOptions",null);
ln=_.O([_.v({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],ln);
_.t(ln,"ytd-offline-promo-content",function(){if(v$8!==void 0)return v$8;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!hasPremiumOptions]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return v$8=K},{mode:1});var aft;var vK=function(){var K=_.G.apply(this,arguments)||this;K.premiumOptions=[];return K};
_.r(vK,_.G);vK.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var K;this.premiumOptions=SsF((K=this.data)==null?void 0:K.formats)};
vK.prototype.onClickSubmit=function(){_.xr(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var K;(K=_.$f())==null||K.pause()};
vK.prototype.attached=function(){this.JSC$18449_scroller&&(this.JSC$18449_scroller.dialogElement=this.hostElement.parentNode)};
_.Oi.Object.defineProperties(vK.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
vK.prototype.dataChanged=vK.prototype.dataChanged;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],vK.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],vK.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],vK.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],vK.prototype,"data",void 0);
_.O([_.h({computed:"computeIcon_(data.headersIcon)",value:""}),_.g("design:type",String)],vK.prototype,"headersIcon",void 0);_.O([_.h(),_.g("design:type",Array)],vK.prototype,"premiumOptions",void 0);_.O([_.fa("#scroller"),_.g("design:type",Object)],vK.prototype,"JSC$18449_scroller",void 0);_.O([_.U("headersIcon"),_.g("design:type",Object),_.g("design:paramtypes",[])],vK.prototype,"showIcon",null);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],vK.prototype,"dataChanged",null);vK=_.O([_.v({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],vK);
_.t(vK,"ytd-offline-promo-renderer",function(){if(aft!==void 0)return aft;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return aft=K},{mode:1});var tZ8;var ao=function(){var K=_.G.apply(this,arguments)||this;K.playbackPauseInterval=NaN;K.isLoading=!1;K.hasError=!1;K.dialogClass="";K.youtubeLabel=_.uY("LOGO_ALT_LABEL",{},"YouTube Home");K.logoName="yt-logos-ext:yt-logo-updated";K.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return K};
_.r(ao,_.G);_.z=ao.prototype;_.z.onDataChange=function(){var K;if(this.showEOMV1Text=!((K=this.data)==null||!K.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.z.attached=function(){this.pausePlayer()};
_.z.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.z.handleLangSelect=function(K){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[K.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.z.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.z.handleSaveConsent=function(K){var X=this;this.showLoadingSpinner();this.showLoadingSpinner();i9W(_.T(K,P$s)).catch(function(F){_.yy(new _.nG("Something went wrong when save consent "+(F.message?F.message:F)+"."));X.hideLoadingSpinner();X.showErrorMessage()})};
_.z.handleDisablePersonalization=function(K){var X=this;this.showLoadingSpinner();xuo(_.T(K,Fy8)).then(function(){X.dialog.close();X.resumePlayer()}).catch(function(F){_.yy(new _.nG("Something went wrong when disable personalization "+(F.message?F.message:F)+"."));
X.hideLoadingSpinner();X.showErrorMessage()})};
_.z.showLoadingSpinner=function(){var K=this;this.showSpinnerJobId=_.A9.addLowPriorityJob(function(){K.isLoading=!0},500)};
_.z.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.A9.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.z.showErrorMessage=function(){var K=this;this.hasError=!0;_.A9.addLowPriorityJob(function(){K.hasError=!1},2E3)};
_.z.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.Hm(function(){try{var K=_.$f();K&&K.pause()}catch(X){}},100))};
_.z.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var K=_.$f();K&&K.play()}catch(X){}};
_.Oi.Object.defineProperties(ao.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)==null||!K.eomV1Text)return[];K=[];for(var X=["SHIELD","WARNING","BAR_CHART"],F=this.data.eomV1Text.essentialCookieMsg.items,P=0;P<X.length&&P<F.length;P++)K.push({icon:X[P],text:F[P]});return K}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var K;if((K=this.data)==null||!K.eomV1Text)return[];K=[];for(var X=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],F=this.data.eomV1Text.nonEssentialCookieMsg.items,P=0;P<X.length&&P<F.length;P++)K.push({icon:X[P],text:F[P]});return K}}});
ao.prototype.onDataChange=ao.prototype.onDataChange;_.O([_.h(),_.g("design:type",Object)],ao.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Boolean)],ao.prototype,"showEOMV1Text",void 0);_.O([_.h(),_.g("design:type",Object)],ao.prototype,"isLoading",void 0);_.O([_.h(),_.g("design:type",Object)],ao.prototype,"hasError",void 0);_.O([_.h(),_.g("design:type",Number)],ao.prototype,"showSpinnerJobId",void 0);_.O([_.h(),_.g("design:type",Object)],ao.prototype,"dialogClass",void 0);
_.O([_.fa("#dialog"),_.g("design:type",Object)],ao.prototype,"dialog",void 0);_.O([_.fa("#cb-header"),_.g("design:type",HTMLElement)],ao.prototype,"header",void 0);_.O([_.fa("#lang-select"),_.g("design:type",HTMLElement)],ao.prototype,"langSelect",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],ao.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],ao.prototype,"ytComponentBehavior",void 0);
_.O([_.h(),_.g("design:type",String)],ao.prototype,"youtubeLabel",void 0);_.O([_.h(),_.g("design:type",Object)],ao.prototype,"logoName",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ao.prototype,"onDataChange",null);_.O([_.U("data"),_.g("design:type",Array),_.g("design:paramtypes",[])],ao.prototype,"eomEssentialCookieMsgItems",null);
_.O([_.U("data"),_.g("design:type",Array),_.g("design:paramtypes",[])],ao.prototype,"eomNonEssentialCookieMsgItems",null);ao=_.O([_.v({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],ao);
_.t(ao,"ytd-consent-bump-v2-lightbox",function(){if(tZ8!==void 0)return tZ8;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return tZ8=K},{mode:1});var $1s;var tO=function(){return _.G.apply(this,arguments)||this};
_.r(tO,_.G);tO.prototype.ready=function(){if(!_.YS()||M9J)var K=!0;else M9J=!0,K=!1;K||(K=document.querySelector("ytd-app"),K||(K=document.body),this.internalLightBox=_.C$(K).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.O([_.h(),_.g("design:type",Object)],tO.prototype,"data",void 0);_.O([_.fa("#lightbox"),_.g("design:type",Object)],tO.prototype,"lightBox",void 0);tO=_.O([_.v({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],tO);
_.t(tO,"ytd-consent-bump-v2-renderer",function(){if($1s!==void 0)return $1s;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return $1s=K},{mode:1});var O5t;var VZw;var g$v;var F_=function(){var K=_.G.apply(this,arguments)||this;K.ephemeralActionsEnabled=_.S("web_ephemeral_actions");return K};
_.r(F_,_.G);_.z=F_.prototype;_.z.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&Re8(this.toastManager,this.toastType)};
_.z.open=function(K){this.toast&&(this.ephemeralAction&&_.i9().resolve(_.sR).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=K!=null?K:0,this.toastManager.enqueue(this.toast,K)):this.toast.open())};
_.z.close=function(K){var X;(X=this.toast)==null||X.close();this.toastManager&&K===1&&Re8(this.toastManager,K)};
_.z.refit=function(){var K;(K=this.toast)==null||K.refit()};
_.z.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var K;(K=this.toast)==null||K.close()}};
_.z.setVerticalOffset=function(K){this.toast&&(this.toast.verticalOffset=K,this.toast.fit())};
_.z.computeButtonClass_=function(K){return K?"toast-button":""};
_.z.computeText_=function(K){return _.lj(K)};
_.z.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R9("toast-opened-changed",this.toastOpened))};
_.z.updateToastOpenedFromBinding=function(K){this.toastOpened=K.detail.value};
_.Oi.Object.defineProperties(F_.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var K,X,F=(K=this.data)==null?void 0:(X=K.actionButton)==null?void 0:X.buttonRenderer;return(F==null?void 0:F.command)||(F==null?void 0:F.serviceEndpoint)||(F==null?void 0:F.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.ephemeralActionsEnabled&&this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var K=[],X;((X=this.data)==null?0:X.responseText)&&K.push(_.lj(this.data.responseText));var F;((F=this.data)==null?0:F.subText)&&K.push(_.lj(this.data.subText));var P,H;if((P=this.data)==null?0:(H=P.actionButton)==null?0:H.buttonRenderer){var f,u;K.push(((f=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(u=f.accessibilityData)==null?void 0:u.label)||_.lj(this.data.actionButton.buttonRenderer.text))}return K.filter(function(J){return J}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var K,X;return(X=(K=this.toast)==null?void 0:K.opened)!=null?X:!1}}});
F_.prototype.toastOpenedChangedForBinding=F_.prototype.toastOpenedChangedForBinding;F_.prototype.toastOpenedChanged=F_.prototype.toastOpenedChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],F_.prototype,"ytEventForwardingBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],F_.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],F_.prototype,"duration",void 0);
_.O([_.h(),_.g("design:type",Number)],F_.prototype,"toastType",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],F_.prototype,"useCloseButton",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],F_.prototype,"closeToastOnActionButtonClick",void 0);_.O([_.h({value:function(){return _.uY("SBOX_INAPPROPRIATE_CANCEL")}}),
_.g("design:type",String)],F_.prototype,"closeButtonAriaLabel",void 0);_.O([_.h(),_.g("design:type",Boolean)],F_.prototype,"toastOpened",void 0);_.O([_.h(),_.g("design:type",Boolean)],F_.prototype,"hasOpened",void 0);_.O([_.h(),_.g("design:type",Object)],F_.prototype,"ephemeralActionsEnabled",void 0);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],F_.prototype,"command",null);
_.O([_.U("ephemeralActionsEnabled","labelText","command","duration"),_.g("design:type",Object),_.g("design:paramtypes",[])],F_.prototype,"ephemeralAction",null);_.O([_.U("ephemeralAction"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],F_.prototype,"hasEphemeralAction",null);_.O([_.fa("#toast"),_.g("design:type",Object)],F_.prototype,"toast",void 0);_.O([_.h({value:function(){return{style:"call-to-action-inverse"}}}),
_.g("design:type",Object)],F_.prototype,"buttonOverrides",void 0);_.O([_.h({value:{style:"mono-inverse"}}),_.g("design:type",Object)],F_.prototype,"closeButtonOverrides",void 0);_.O([_.h({value:function(){return _.i9().resolve(_.Nu(_.eqQ))}}),
_.g("design:type",Object)],F_.prototype,"toastManager",void 0);_.O([_.U("data.responseText","data.subText","data.actionButton"),_.g("design:type",Object),_.g("design:paramtypes",[])],F_.prototype,"labelText",null);_.O([_.so("toastOpened"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],F_.prototype,"toastOpenedChanged",null);
_.O([_.so("toastOpened"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],F_.prototype,"toastOpenedChangedForBinding",null);F_=_.O([_.Tb({is:"yt-notification-action-renderer",disableElementRegistration:!0})],F_);
_.t(F_,"yt-notification-action-renderer",function(){if(g$v===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;VZw===void 0&&(VZw=document.createElement("template"));var P=VZw;F.call(X,P.content.cloneNode(!0),K.content.firstChild);g$v=K}K=g$v;return K},{mode:2});var P7=function(){var K=_.G.apply(this,arguments)||this;K.duration=4E3;K.downloadingCount=0;K.downloadedCount=0;K.downloadingOnlySmartDownloads=!1;K.sessionTotalDownloads=0;K.sessionDownloaded=0;K.previousSessionsDownloaded=0;K.totalDownloadPercentage=0;K.currentDownloadProgress=0;K.currentDownloadPercentage=0;K.isLeaderTab=!0;K.isFullScreen=!1;K.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};K.boundBeforeUnload=function(X){K.isLeaderTab&&K.downloadingCount>0&&(X.preventDefault(),
X.returnValue=!0)};
return K};
_.r(P7,_.G);_.z=P7.prototype;
_.z.open=function(){this.updateDownloadState();if(this.data){var K=this.sessionDownloaded+1,X=this.sessionTotalDownloads>1?_.uY("VIDEOS_DOWNLOADING_RATIO",{downloaded:K.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+K+"/"+this.sessionTotalDownloads):_.uY("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(X=this.sessionTotalDownloads>1?_.uY("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:K.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
K+"/"+this.sessionTotalDownloads):_.uY("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));K=this.isLeaderTab?_.uY("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.lj(this.data.responseText)!==X||_.lj(this.data.subText)!==K)this.set("data.responseText",_.GS(X)),this.set("data.subText",_.GS(K)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.z.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.z.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.z.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.z.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var K=this.downloadedCount-this.previousSessionsDownloaded;K<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-K);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.z.handleFullscreenChange=function(K){(this.isFullScreen=K)||this.updatePopup()};
P7.prototype.updateCurrentDownloadProgress=P7.prototype.updateCurrentDownloadProgress;P7.prototype.updatePopup=P7.prototype.updatePopup;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],P7.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],P7.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],P7.prototype,"ytEventForwardingBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],P7.prototype,"actionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],P7.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],P7.prototype,"duration",void 0);_.O([_.h({selector:function(K){return _.BCl(K.entities).length}}),
_.g("design:type",Object)],P7.prototype,"downloadingCount",void 0);_.O([_.h({selector:zOV}),_.g("design:type",Object)],P7.prototype,"downloadedCount",void 0);_.O([_.h({selector:function(K){var X=_.BCl(K.entities);return stW(K.entities,X)}}),
_.g("design:type",Object)],P7.prototype,"downloadingOnlySmartDownloads",void 0);_.O([_.h(),_.g("design:type",Object)],P7.prototype,"sessionTotalDownloads",void 0);_.O([_.h(),_.g("design:type",Object)],P7.prototype,"sessionDownloaded",void 0);_.O([_.h(),_.g("design:type",Object)],P7.prototype,"previousSessionsDownloaded",void 0);_.O([_.h(),_.g("design:type",Object)],P7.prototype,"totalDownloadPercentage",void 0);
_.O([_.h({selector:function(K){var X;K=(X=_.BCl(K.entities))!=null?X:[];return K.length>0?_.Df4(K.slice(-1)):0}}),
_.g("design:type",Object)],P7.prototype,"currentDownloadProgress",void 0);_.O([_.h(),_.g("design:type",Object)],P7.prototype,"currentDownloadPercentage",void 0);_.O([_.h({selector:_.T4d}),_.g("design:type",Object)],P7.prototype,"isLeaderTab",void 0);_.O([_.fa("yt-notification-action-renderer"),_.g("design:type",Object)],P7.prototype,"notificationActionRenderer",void 0);
_.O([_.JA("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],P7.prototype,"updatePopup",null);_.O([_.JA("currentDownloadProgress"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],P7.prototype,"updateCurrentDownloadProgress",null);P7=_.O([_.v({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],P7);
_.t(P7,"ytd-video-download-toast-renderer",function(){if(O5t!==void 0)return O5t;var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return O5t=K},{mode:1});var E$8;var b5t;var H7=function(){return _.G.apply(this,arguments)||this};
_.r(H7,_.G);H7.prototype.computeIsRedLogo=function(K,X){!K&&X&&(K=X);return K==="YOUTUBE_RED_LOGO"||K==="YOUTUBE_PREMIUM_LOGO"};
H7.prototype.computeLogoName=function(K){K=this.componentBehavior.computeIcon_(K);return K===""?"yt-logos-ext:yt-logo-updated":K};
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],H7.prototype,"componentBehavior",void 0);_.O([_.h({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.g("design:type",Boolean)],H7.prototype,"isRedLogo",void 0);_.O([_.h({computed:"computeLogoName(data)"}),_.g("design:type",String)],H7.prototype,"logoName",void 0);_.O([_.h({value:{}}),_.g("design:type",Object)],H7.prototype,"data",void 0);
_.O([_.h(),_.g("design:type",Object)],H7.prototype,"logoType",void 0);H7=_.O([_.v({disableElementRegistration:!0,is:"ytd-logo"})],H7);
_.t(H7,"ytd-logo",function(){if(b5t!==void 0)return b5t;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return b5t=K},{mode:_.Ig("kevlar_poly_si_batch_j074")?1:2});var s3=function(){var K=_.G.apply(this,arguments)||this;K.animationRef={};return K};
_.r(s3,_.G);_.z=s3.prototype;_.z.attached=function(){document.addEventListener("yt-navigate-finish",_.Pc(this,this.logYoodle))};
_.z.detached=function(){document.removeEventListener("yt-navigate-finish",_.Pc(this,this.logYoodle))};
_.z.logYoodle=function(){var K,X;if((K=this.data)==null?0:(X=K.loggingDirectives)==null?0:X.trackingParams)this.ytRendererBehavior.markDirty(),_.uH().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.z.computeHideImg=function(K,X){return!!K||!!X};
_.z.computeHideYtdLogo=function(K,X){return!K||!!X};
_.z.computeHideLottie=function(K){return!K};
_.z.computeIsRedLogo=function(K){return K==="YOUTUBE_RED_LOGO"||K==="YOUTUBE_PREMIUM_LOGO"};
_.z.renderLogoEntity=function(){var K=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),X=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),F=this.getLogoTitleText(this.data),P=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==K&&(this.url=K);this.animatedUrl!==X&&(this.animatedUrl=X);this.logoTitleText!==F&&(this.logoTitleText=F);this.lottieUrl!==P&&(this.lottieUrl=P,this.lottiePlayerProps=this.computeLottiePlayerProps(P))};
_.z.getSanitizedThumbnail=function(K){return K&&K.thumbnails?_.EYl(K.thumbnails,122)||"":""};
_.z.getThumbnailUrl=function(K,X){if(!X)return"";var F,P;K=K?(F=X.darkThemeLogo)==null?void 0:F.thumbnail:(P=X.lightThemeLogo)==null?void 0:P.thumbnail;return this.getSanitizedThumbnail(K)};
_.z.getAnimatedThumbnailUrl=function(K,X){return X?this.getSanitizedThumbnail(K?X.darkThemeAnimatedLogo:X.lightThemeAnimatedLogo):""};
_.z.getLogoTitleText=function(K){if(K)return _.lj(K.tooltipText)};
_.z.computeLogoIcon=function(K,X){if(X){var F,P;return K?(F=X.darkThemeLogo)==null?void 0:F.icon:(P=X.lightThemeLogo)==null?void 0:P.icon}};
_.z.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.z.getLottieUrl=function(K,X){var F,P,H,f;return K?X==null?void 0:(F=X.darkThemeLogo)==null?void 0:(P=F.lottieAnimation)==null?void 0:P.url:X==null?void 0:(H=X.lightThemeLogo)==null?void 0:(f=H.lottieAnimation)==null?void 0:f.url};
_.z.computeLottiePlayerProps=function(K){if(K){var X;if((X=this.animationRef)==null?0:X.lottieEl){var F;(F=this.animationRef)==null||F.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:K,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.z.onLottieError=function(){this.data&&this.lottieUrl&&_.iX(this.hostElement,"yoodle-error")};
_.z.onImgError=function(){this.data&&!this.lottieUrl&&_.iX(this.hostElement,"yoodle-error")};
s3.prototype.playAnimation=s3.prototype.playAnimation;s3.prototype.renderLogoEntity=s3.prototype.renderLogoEntity;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],s3.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],s3.prototype,"data",void 0);_.O([_.h({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.g("design:type",Boolean)],s3.prototype,"hideImg",void 0);
_.O([_.h({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.g("design:type",Boolean)],s3.prototype,"hideYtdLogo",void 0);_.O([_.h({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.g("design:type",Boolean)],s3.prototype,"hideLottie",void 0);_.O([_.h({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.g("design:type",Boolean)],s3.prototype,"isRedLogo",void 0);
_.O([_.h(),_.g("design:type",Boolean)],s3.prototype,"useDarkThemeYoodle",void 0);_.O([_.h(),_.g("design:type",String)],s3.prototype,"url",void 0);_.O([_.h(),_.g("design:type",String)],s3.prototype,"animatedUrl",void 0);_.O([_.h(),_.g("design:type",String)],s3.prototype,"logoTitleText",void 0);_.O([_.h({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.g("design:type",Object)],s3.prototype,"logoIcon",void 0);_.O([_.h(),_.g("design:type",Object)],s3.prototype,"logoType",void 0);
_.O([_.h(),_.g("design:type",String)],s3.prototype,"lottieUrl",void 0);_.O([_.h(),_.g("design:type",Object)],s3.prototype,"lottiePlayerProps",void 0);_.O([_.h(),_.g("design:type",Object)],s3.prototype,"animationRef",void 0);_.O([_.so("data"),_.so("useDarkThemeYoodle"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],s3.prototype,"renderLogoEntity",null);
_.O([_.Hc("click"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],s3.prototype,"playAnimation",null);s3=_.O([_.v({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],s3);
_.t(s3,"ytd-yoodle-renderer",function(){if(E$8!==void 0)return E$8;var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return E$8=K},{mode:_.Ig("kevlar_poly_si_batch_j074")?1:2});var CJw;var NJw;var zc=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return K};
_.r(zc,_.G);_.z=zc.prototype;_.z.onYoodleError=function(){_.S("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.z.computeLogoName=function(K){K=this.componentBehavior.computeIcon_(K);return K===""?"yt-logos-ext:yt-logo-updated":K};
_.z.computeTitle=function(K,X,F){return F&&(X==null?0:X.tooltipText)?_.lj(X.tooltipText):_.lj(K)};
_.z.computeAriaLabel=function(K,X,F){return F&&(X==null?0:X.tooltipText)?_.lj(K):""};
_.z.computeShowYoodle=function(K,X,F){return!K||!X&&!!F&&!_.T8.isEmpty(F)};
_.z.onNavigateHomeAction=function(){if(_.S("kevlar_miniplayer_navigate_home_from_app_killswitch")){var K;(K=_.C$(this.hostElement).querySelector(".yt-simple-endpoint"))==null||K.click()}};
_.z.computeLogoHref=function(K,X,F){var P;(F==null?0:F.onTapCommand)?P=this.componentBehavior.computeHref_(F.onTapCommand):K&&(P=this.componentBehavior.computeHref_(K));return P?P:X};
_.z.computeCommand=function(K,X){return(X==null?void 0:X.onTapCommand)||K};
_.z.getEndpointForm=function(){if(_.S("kevlar_topbar_disable_cache_only_home")){var K=_.i9().resolve(_.jE),X=ZQt(K.getState())||"";K=_.vny(K.getState())||"";return{disableCache:X==="ytd-browse"&&K==="home"}}return{disableCache:!0}};
zc.prototype.onYoodleError=zc.prototype.onYoodleError;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],zc.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],zc.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],zc.prototype,"componentBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],zc.prototype,"ytdReduxBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],zc.prototype,"data",void 0);_.O([_.h(),_.g("design:type",String)],zc.prototype,"countryCode",void 0);_.O([_.h({selectorArgs:["data.overrideEntityKey"],selector:function(K,X){return _.FF(K.entities,"logoEntity",X)}}),
_.g("design:type",Object)],zc.prototype,"logoEntity",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.g("design:type",Boolean)],zc.prototype,"showYoodle",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],zc.prototype,"yoodleError",void 0);_.O([_.h({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.g("design:type",String)],zc.prototype,"titleText",void 0);
_.O([_.h({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.g("design:type",String)],zc.prototype,"ariaLabelText",void 0);_.O([_.h({value:"/"}),_.g("design:type",String)],zc.prototype,"defaultEndpointUrl",void 0);_.O([_.h({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.g("design:type",String)],zc.prototype,"endpointUrl",void 0);
_.O([_.h({computed:"computeCommand(data.endpoint, logoEntity)"}),_.g("design:type",String)],zc.prototype,"command",void 0);_.O([_.h(),_.g("design:type",Object)],zc.prototype,"logoType",void 0);_.O([_.h({}),_.g("design:type",Boolean)],zc.prototype,"useDarkThemeYoodle",void 0);_.O([_.Hc("yoodle-error"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],zc.prototype,"onYoodleError",null);zc=_.O([_.v({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],zc);
_.t(zc,"ytd-topbar-logo-renderer",function(){if(NJw!==void 0)return NJw;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return NJw=K},{mode:_.Ig("kevlar_poly_si_batch_j027")?1:2});var i58=0;var x1k=_.ap.SEARCH_APPEND_LABEL,Ifk=_.ap.SUGGESTION_NEW_VIDEOS_TEXT,k5F=_.ap.SUGGESTION_THUMBNAIL_LABEL,Kjo=_.ap.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,XA8=_.$c(function(K){function X(wL){var Zd,fs;return _.q(function(ft){if(ft.nextAddress==1)return Zd=new Request(wL),_.s2(ft,2),_.Y(ft,fetch(Zd,{credentials:"include"}),4);if(ft.nextAddress!=2)return J0(!0),_.Gy(ft,0);fs=_.qc(ft);_.yy(fs);_.JT(ft)})}
var F=K.isHighlighted;var P=K.suggestion;var H=K.onClickCallback;var f=K.onHoverUpdateCallback;var u=K.labels;var J=K.queryBuilderFunction;var Z=K.onRemoveCallback;var M=K.suggestionIndex;var n=K.generateUniqueId;var c=K.highlightedId;var B=K.useScrollMargin;var L=K.isKeyboardMode;var A=null,d=null,R=_.t_(),l=_.t_();K=_.D(_.u_(!1,void 0,"CgAMgc"));var a=K.next().value,E=K.next().value,V=_.$3(function(wL){wL&&_.A4(237477,wL,d,function(Zd){d=Zd})}),x=_.$3(function(wL){wL&&_.A4(237477,wL,d,function(Zd){d=
Zd})}),N=_.DF(function(wL){if((wL==null?void 0:wL.button)===2)return wL.preventDefault(),!1;
var Zd=_.AD();Zd&&A&&_.a7(Zd,A,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var fs;H(wL,P().text,P().index,P().entityMid,wL==null?void 0:(fs=wL.detail)==null?void 0:fs.wasSelectedByKeyboard);return!1}),Dl=function(){return P().type===35},Mq=function(){return _.S("desktop_enable_single_suggestion_highlight")},pO=function(){return _.kU("desktop_suggestions_panel_row_height")||0},y9=function(){var wL;
return _.S("desktop_enable_new_video_metadata")&&((wL=P())==null?void 0:wL.hasNewVideo)===!0},Wy=function(){return _.S("desktop_enable_visual_suggest")},eP=function(){return _.S("desktop_enable_entity_suggest")&&wYF(P())},gw=function(){return P().entitySubtitle},a3=function(){return Mq()?(F==null?void 0:F())||SU()&&!(L==null?0:L()):(F==null?void 0:F())||SU()},dL=function(){var wL=_.e8("SBOX_SETTINGS");
return Dl()&&!(wL==null?0:wL.HIDE_REMOVE_LINK)},nt=function(){return yNk(P(),{useEntityName:eP()})},ht,YC=!((ht=_.i9().resolve(_.Nu(_.m$)))==null||!ht()),uu=function(){return Dl()?_.S("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},X8=function(){return u==null?void 0:u().SUGGESTION_DISMISS_LABEL},qV=function(){return u==null?void 0:u().SUGGESTION_DISMISSED_LABEL};
K=_.D(_.u_(!1,void 0,"RcUcKd"));ht=K.next().value;var J0=K.next().value;K=_.D(_.u_(!1,void 0,"yGR7je"));var yd=K.next().value,uT=K.next().value,SU=yd,RC=_.DF(function(){J(l.value.innerText);return!1}),tw=_.DF(function(wL){wL.preventDefault();
return!1}),TE=_.DF(function(wL){var Zd=P().text,fs=_.e8("SBOX_SETTINGS"),ft="https://"+(fs.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
ft+="&delq="+encodeURIComponent(Zd);(Zd=fs==null?void 0:fs.PSUGGEST_TOKEN)&&(ft+="&tok="+Zd);(fs=fs==null?void 0:fs.SESSION_INDEX)&&(ft+="&authuser="+fs);X(ft);wL.preventDefault();(wL=_.AD())&&d&&_.a7(wL,d,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");Z(M==null?void 0:M());return!1}),NV=_.DF(function(){if(Mq()&&(L==null?0:L()))return!1;
uT(!0);f(!0);return!1}),$E=_.DF(function(){uT(!1);
f(!1);return!1}),bu=_.DF(function(){E(!0);
return!1}),sZ=_.DF(function(){E(!1);
return!1}),tt=_.DF(function(wL){wL.preventDefault();
var Zd;(wL=(Zd=P().entityThumbnailAttributionUrl)!=null?Zd:"")&&_.QWy(wL);return!1});
K=_.D(_.u_("",void 0,"k9uVge"));var BF=K.next().value,BN=K.next().value;_.Tr(function(){dL()&&BN(n==null?void 0:n(M==null?void 0:M()));R.value&&_.A4(12453,R.value,A,function(wL){A=wL})});
return _.Q(_.p,{cond:ht,then:function(){var wL={};return _.Q("div",{class:_.HO("ytSuggestionComponentRemovedText",(wL.ytSuggestionComponentLargerRemovedText=function(){return Wy()},wL)),
style:function(){return pO()>0?"height: "+pO()+"px;":""},
role:"button"},qV)},
else:function(){var wL={},Zd={};return _.Q("div",{class:_.HO("ytSuggestionComponentSuggestion",(wL.ytSuggestionComponentSuggestionHover=function(){return!Mq()},wL.ytSuggestionComponentHighlighted=a3,wL.ytSuggestionComponentPersonalizedSuggestion=Dl,wL.ytSuggestionComponentMweb=!1,wL.ytSuggestionComponentLargerSuggestion=function(){return y9()||Wy()},wL.ytSuggestionComponentThumbnailSuggestion=function(){return Wy()},wL.ytSuggestionComponentRoundedSuggestion=function(){return _.S("desktop_enable_scrollable_suggestions_panel")&&
_.S("desktop_enable_suggestions_panel_padding")},wL.ytSuggestionComponentThumbnailPadding=function(){return Wy()&&!Dl()},wL)),
style:function(){return pO()>0?"height: "+pO()+"px;":""},
role:"presentation","on:mousedown":N,"on:mouseover":NV,"on:mouseout":$E,el:R},_.Q("div",{class:_.HO("ytSuggestionComponentText",(Zd.ytSuggestionComponentScrollMargin=B,Zd)),"aria-label":function(){return y9()?P().text+" "+Ifk:P().text},
id:function(){return n==null?void 0:n(M==null?void 0:M())},
"on:mousedown":N,role:"option"},_.Q(_.p,{cond:function(){return P().type!==33},
then:function(){return _.Q(_.ZF,{icon:uu,className:"ytSuggestionComponentIcon"})}}),_.Q("div",{class:"ytSuggestionComponentLeftContainer"},_.Q("span",{el:l,
role:"button",tabindex:0},_.Q(_.cd,{each:nt},function(fs){return fs.bold?_.Q("span",{class:"ytSuggestionComponentBold"},fs.text):_.Q("span",null,fs.text)})),_.Q(_.p,{cond:function(){return eP()&&!!P().entitySubtitle||y9()},
then:function(){return _.Q("div",{class:"ytSuggestionComponentMetadataContainer"},_.Q(_.p,{cond:function(){return eP()&&!!P().entitySubtitle},
then:function(){return _.Q("div",{class:"ytSuggestionComponentEntitySubtitle"},gw)}}),_.Q(_.p,{cond:function(){return y9()},
then:function(){return _.Q("div",{class:"ytSuggestionComponentNewVideoContainer"},_.Q("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.Q("div",{class:"ytSuggestionComponentNewVideoText"},Ifk))}}))}}))),_.Q("div",{class:"ytSuggestionComponentRightContainer"},_.Q(_.p,{cond:function(){return Wy()&&P().visualSuggestUrl!==void 0},
then:function(){var fs={};return _.Q("div",{class:"ytSuggestionComponentThumbnailContainer"},_.Q("img",{"aria-label":k5F,class:_.HO("ytSuggestionComponentVisualSuggestThumbnail",(fs.ytSuggestionComponentCircularFrame=function(){return eP()&&P().subtypes.includes(790)},fs.ytSuggestionComponentEntitySuggestThumbnail=function(){return eP()},fs)),
src:function(){return P().visualSuggestUrl}}),_.Q(_.p,{cond:function(){return eP()&&!!P().entityThumbnailAttributionUrl},
then:function(){var ft={};return _.Q("span",{title:Kjo,role:"tooltip"},_.Q("div",{"on:mouseover":bu,"on:mouseout":sZ,"on:mousedown":tt,class:_.HO("ytSuggestionComponentThumbnailOverlay",(ft.ytSuggestionComponentThumbnailOverlayHidden=function(){return!a()},ft))},_.Q(_.ZF,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.Q(_.S8,null,_.Q(_.p9,{when:function(){return Wy()&&dL()}},function(){var fs={};
return _.Q("button",{class:_.HO("ytSuggestionComponentRemoveLinkClearButton",(fs.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return BF()&&BF()===(c==null?void 0:c())},fs.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!a3()},fs)),
el:x,"on:mousedown":TE,"aria-label":X8,id:function(){return BF()}},_.Q(_.ZF,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.Q(_.p9,{when:function(){return!(Wy()&&P().visualSuggestUrl!==void 0)&&dL()}},function(){var fs={};
return _.Q("a",{class:_.HO("ytSuggestionComponentRemoveLink",(fs.ytSuggestionComponentRemoveLinkDark=YC,fs.ytSuggestionComponentRemoveLinkSelected=function(){return BF()&&BF()===(c==null?void 0:c())},fs)),
el:V,"on:mousedown":TE,"aria-label":X8,tabindex:0,role:"button",id:function(){return BF()}},X8)}),_.Q(_.p9,{when:function(){return!1}},function(){return _.Q("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":RC,"on:mousedown":tw,role:"button","aria-label":x1k},_.Q(_.ZF,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"sg");var FjG=_.$c(function(){return _.Q("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.Q("button",{class:"ytdTextInputAssistantButton","on:click":_.DF(function(){Rpk().inputMethodsTracker.add(3);var K,X=(K=_.e8("SBOX_SETTINGS"))==null?void 0:K.REQUEST_LANGUAGE;if(X)return _.e4("//www.google.com/textinputassistant/14/"+X+"_tia.js"),!1})},_.Q("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"tg");var Pe8=function(){this.cache=new Map},HUw=function(K){for(var X=_.D(K.cache.entries()),F=X.next();!F.done;F=X.next()){var P=_.D(F.value);
F=P.next().value;P=P.next().value;P.suggestions.some(function(H){return H.type===35})&&K.cache.delete(F)}};var sQ8=_.ap.SEARCH,zm1=_.ap.SEARCH_CLEAR_LABEL,f5W=new _.Oh("FAKE_SUGGEST_RESPONSE");_.EP(_.$c(function(K){function X(){bu||(bu=setTimeout(function(){tt()},1E3))}
function F(cN,MV,Sk){if(cN.trim()){$E=cN;_.d2("REFINEMENTS_TUPLE",void 0);TE=!0;var Zs;MV=m1k(yd,MV);var zE=(Zs=K.searchEndpoint)==null?void 0:Zs.call(K);Zs=uu.value.value;zE||(zE=W5d);var B$;(B$=_.T(zE.commandMetadata,_.g_))!=null&&B$.url||(B$=Error("jl`"+JSON.stringify(zE)),_.jF(B$),zE=W5d);B$=_.T8.unsafeClone(zE);zE=_.eF(_.T(B$.commandMetadata,_.g_).url,"search_query",cN);_.lB(location.href,"sv")==="1"&&(_.T(B$,_.Dm).params="EgOAAgE%3D",zE=_.eF(zE,"sv","1"));_.T(B$,_.Dm)&&(_.T(B$,_.Dm).query=cN);
zE=zE.replace(/%20/g,"+");_.T(B$.commandMetadata,_.g_).url=zE;Sk=_.S("desktop_enable_entity_suggest")?{entityMid:Sk}:{};_.i9().resolve(_.xU).resolveCommand(B$,{form:{tempData:Object.assign({},{gs_l:MV,oq:Zs!=null?Zs:cN},Sk)}});tt();uu.value.value=cN;uu.value.blur();yd.reset()}}
function P(cN){return _.q(function(MV){return MV.return(new Promise(function(Sk){var Zs=new XMLHttpRequest;Zs.open("GET",SGd(cN),!0);Zs.withCredentials=!0;var zE=_.e8("SBOX_SETTINGS");(zE==null?0:zE.SEND_VISITOR_DATA)&&Zs.setRequestHeader("X-Goog-Visitor-Id",zE==null?void 0:zE.VISITOR_DATA);Zs.onload=function(){Sk(Zs.responseText)};
Zs.onerror=function(){_.yy(Error("kl"));Sk(null)};
setTimeout(function(){Zs.abort()},1E4);
Zs.send(null)}))})}
function H(cN){var MV,Sk,Zs,zE;return _.q(function(B$){switch(B$.nextAddress){case 1:return MV={credentials:"include",headers:BJt()},window.AbortController&&(Sk=new AbortController,setTimeout(function(){Sk.abort("ytsbox-suggest-timeout")},1E4),MV.signal=Sk.signal),_.s2(B$,2),_.Y(B$,fetch(SGd(cN),MV),4);
case 4:Zs=B$.yieldResult.text();_.Gy(B$,3);break;case 2:return zE=_.qc(B$),zE!=="ytsbox-abort-last"&&zE!=="ytsbox-suggest-timeout"&&_.yy(zE),B$.return(null);case 3:return B$.return(Zs)}})}
function f(cN){var MV,Sk,Zs;return _.q(function(zE){switch(zE.nextAddress){case 1:if(MV=_.i9().resolve(_.Nu(f5W)))return zE.return(MV);Sk=Date.now();X();return _.S("yt_searchbox_xhr")?_.Y(zE,P(cN),5):_.Y(zE,H(cN),4);case 4:Zs=zE.yieldResult;zE.jumpTo(3);break;case 5:Zs=zE.yieldResult;case 3:if(Zs){bu&&(clearTimeout(bu),bu=null);var B$=yd,Ms=Sk,h0=cN.query.length===0;Ms=Date.now()-Ms;h0?B$.zeroPrefixRoundTripTime=Ms:(B$.JSC$18429_totalRoundTripTime+=Ms,B$.maxRoundTripTime=Math.max(B$.maxRoundTripTime,
Ms),h0=Math.floor(Ms/100),h0>=G58.length?++B$.roundTripTimeHistogram[9]:++B$.roundTripTimeHistogram[G58[h0]])}return zE.return(Zs)}})}
function u(cN){var MV,Sk,Zs;return _.q(function(zE){if(zE.nextAddress==1)return(MV=J0.cache.get(pYF(cN)))?zE.return(MV):_.Y(zE,f(cN),2);Sk=zE.yieldResult;if(Sk===null)return zE.return(null);Zs=new Wr8(Sk);cN.query.length===0&&Zs.suggestions.length===0||J0.cache.set(pYF(cN),Zs);return zE.return(Zs)})}
function J(cN){var MV,Sk;return _.q(function(Zs){if(Zs.nextAddress==1){NV=!1;var zE=$E;zE=_.XZT()==="search"?(_.lB(location.href,"search_query")||_.lB(location.href,"q"))===zE:!1;MV=new cNJ(cN,zE?$E:null);return _.Y(Zs,u(MV),2)}Sk=Zs.yieldResult;if(Sk===null)return Zs.return();MV.query.length===0&&(yd.zeroPrefixSuggestionCount=Sk.suggestions.length);if(MV.id<=sZ)return yd.outOfSyncResponseCount++,Zs.return();if(document.activeElement!==uu.value)return Zs.return();sZ=MV.id;var B$=yd,Ms=Sk.rawResponse[2]||
{};B$.experimentTriggeredBeforeFinal||(B$.experimentTriggeredBeforeFinal=B$.experimentTriggeredFinal);B$.experimentTriggeredFinal=!!Ms.e;yd.updateSuggestions(Sk.suggestions);R(-1);dL([]);Sk.suggestions!==L()&&JV(Sk.suggestions.length);A(Sk.suggestions);Mq(Sk.suggestions.length>0&&Sk.suggestions[0].type===33);qV&&(qV.hidden=Sk.suggestions.length===0,Dl()?(qV.style.minWidth="",B$=qV.style,Ms=(zE=L()[0])==null?void 0:zE.ignoredPrefix,B$.marginLeft=(Ms?Math.min(Ms.length*6,X8.value.offsetWidth):0).toString()+
"px"):(qV.style.minWidth=X8.value.offsetWidth+"px",qV.style.marginLeft="0"),to());_.JT(Zs)})}
function Z(){if(!TE)return!1;var cN=_.e8("REFINEMENTS_TUPLE");return cN?(cN=cN[1].map(function(MV,Sk){return new jBw([MV,0,[71]],uu.value.value,Sk)}),L()!==cN&&JV(cN.length),dL([]),A(cN),yd.updateSuggestions(cN),TE=!1,qV.hidden=cN.length===0,NV=cN.length>0,!0):!1}
function M(){var cN=uu.value.value;(typeof cN==="string"||cN instanceof String)&&cN!==""?V(!0):V(!1)}
function n(){if(_.XZT()==="search"){var cN=window.location.href;try{var MV=_.lB(cN,"search_query")||_.lB(cN,"q")||""}catch(Sk){MV=""}MV&&(uu.value.value=MV,V(!0))}}
var c=_.D(_.u_([],void 0,"kGFAjf")),B=c.next().value;c=c.next().value;var L=B,A=c;B=_.D(_.u_(-1,void 0,"mLGL9e"));var d=B.next().value,R=B.next().value;B=_.D(_.u_(-1,void 0,"u2rYdc"));var l=B.next().value,a=B.next().value;B=_.D(_.u_(!1,void 0,"W9DFC"));var E=B.next().value,V=B.next().value;B=_.D(_.u_(!1,void 0,"Ip4dNc"));var x=B.next().value,N=B.next().value;c=_.D(_.u_(!1,void 0,"ZNKSQb"));B=c.next().value;c=c.next().value;var Dl=B,Mq=c;c=_.D(_.u_(!1,void 0,"JBrGLd"));B=c.next().value;var pO=c.next().value;
c=_.D(_.u_(!1,void 0,"P2pD6e"));var y9=c.next().value,Wy=c.next().value;c=_.D(_.u_(1,void 0,"SjP20c"));var eP=c.next().value,gw=c.next().value;c=_.D(_.u_([],void 0,"h4dRaf"));var a3=c.next().value,dL=c.next().value;c=_.D(_.u_(!1,void 0,"TUTzaf"));var nt=c.next().value,ht=c.next().value;c=_.S("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var YC=_.t_(),uu=_.t_(),X8=_.t_(),qV,J0=new Pe8,yd=Rpk(),uT=_.i9().resolve(_.Nu(_.m$)),
SU=function(){var cN;return((cN=K.forceDarkMode)==null?void 0:cN.call(K))||!(uT==null||!uT())},RC=function(){return _.S("desktop_enable_scrollable_suggestions_panel")},tw="i"+i58++,TE=!1,NV=!1,$E="",bu=null,sZ=-1,tt=function(){dL([]);
A([]);Mq(!1);qV&&(qV.hidden=!0);bu&&(clearTimeout(bu),bu=null);R(-1)},BF=function(cN,MV){cN.preventDefault();
ht(!0);qV&&(qV.hidden=!1);var Sk=d();cN=L();var Zs=a3();MV=Tbo(MV);Sk+=MV;for(Sk>=cN.length?Sk=-1:Sk<-1&&(Sk=cN.length-1);Sk!==-1&&(Zs.includes(Sk)||Sk>=cN.length||Sk<0);)Sk+=MV,Sk>=cN.length&&(Sk=-1);R(Sk);d()>=0&&(uu.value.value=L()[d()].text,a(0),M(),cN=d(),Zs=l(),(Zs=document.getElementById(jO[cN][Zs]))&&RC()&&(cN===L().length-1?qV.scrollTop=qV.scrollHeight:Zs.scrollIntoView({block:"nearest",inline:"start"})))},BN=_.DF(function(cN){if(!(cN.relatedTarget instanceof Element&&cN.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){N(!0);
var MV;(MV=K.focusCallback)==null||MV.call(K,!0);Z()||(NV?qV.hidden=!1:(_.iX(YC.value,"yt-autonav-pause-focus",{}),J(cN.target.value)))}}),wL=_.DF(function(cN){if(!(cN.relatedTarget instanceof Element&&cN.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){N(!1);
var MV;(MV=K.focusCallback)==null||MV.call(K,!1);qV.scrollTop=0;qV.hidden=!0;_.iX(YC.value,"yt-autonav-pause-blur",{})}}),Zd=function(cN){cN=Tbo(cN);
var MV;((MV=jO[d()])==null?0:MV[l()+cN])&&a(l()+cN)},fs=_.DF(function(cN){var MV=cN.target;
switch(cN.keyCode){case 13:cN.preventDefault();var Sk;if((Sk=jO[d()])==null?0:Sk[l()]){var Zs;(Zs=document.getElementById(jO[d()][l()]))==null||Zs.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}cN=cN.shiftKey?4:3;Sk=yd;Zs=d();Sk.selectedSuggestionIndex=Zs;F(MV.value,cN);break;case 27:qV&&(qV.hidden=!0);break;case 40:BF(cN,40);break;case 38:BF(cN,38);break;case 39:Zd(39);break;case 37:Zd(37);break;case 229:yd.inputMethodsTracker.add(4);break;default:yd.inputMethodsTracker.add(1),
U1o(yd)}return!1}),ft=_.DF(function(cN){J(cN.target.value);
M();RC()&&qV&&(qV.scrollTop=0);return!1}),Bk=_.DF(function(){yd.inputMethodsTracker.add(2);
U1o(yd);return!1});
_.Tr(function(){if(qV){yd.reset();if(window.ResizeObserver){var cN=new ResizeObserver(function(){Dl()||(qV.style.minWidth=X8.value.offsetWidth+"px")});
cN.observe(X8.value);(new ResizeObserver(function(){to()})).observe(qV);
_.AZ(function(){cN.disconnect()})}n();
window.addEventListener("yt-navigate-finish",n);window.addEventListener("yt-focus-searchbox",function(){uu.value.focus()});
var MV;pO((MV=_.e8("SBOX_SETTINGS"))==null?void 0:MV.HAS_ON_SCREEN_KEYBOARD)}else _.jF(new _.nG("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var z6=_.DF(function(cN){cN.preventDefault();F(uu.value.value,12);return!1}),OZ=_.DF(function(cN){cN.preventDefault();
var MV,Sk;(MV=uu)==null||(Sk=MV.value)==null||Sk.focus();var Zs,zE;((Zs=uu)==null?void 0:(zE=Zs.value)==null?void 0:zE.value)!==""&&(uu.value.value="",uu.value.dispatchEvent(new Event("input")));return!1}),TJ=_.DF(function(){var cN=YMW(uu.value.value,L().filter(function(MV){return MV.type!==35}).map(function(MV){return{label:MV.text}}));
_.xr(YC.value,"yt-open-popup-action",[{openPopupAction:cN},document.body]);return!1}),x5=_.DF(function(){uu.value.focus();
return!1}),fx=function(cN,MV,Sk,Zs,zE){yd.selectedSuggestionIndex=Sk;
F(MV,zE?3:1,Zs)},qu=function(cN){uu.value.value=cN;
uu.value.dispatchEvent(new Event("input"));yd.inputMethodsTracker.add(5);U1o(yd,!0)},jO=[[]],LG=function(cN){var MV="searchbox-suggestion"+_.L1(_.SK);
jO[cN].push(MV);return MV},JV=function(cN){if(L()){jO=[[]];
for(var MV=0;MV<cN;MV++)jO.push([])}},to=function(){if(RC()){var cN=qV,MV=cN.scrollTop;
cN=cN.scrollHeight-cN.clientHeight;Wy(MV>=cN);MV=Math.abs(cN-MV);MV<=40?gw(1-(40-MV)/40):gw(1)}},fl=function(){return"opacity: "+eP()*100+"%"},LO=_.DF(function(){to();
return!1}),Gn=_.DF(function(){ht(!1);
return!1}),$d,nW={},sV={},WJ={},Y5={};
return _.Q("yt-searchbox",{class:_.HO("ytSearchboxComponentHost",(nW.ytSearchboxComponentMweb=!1,nW.ytSearchboxComponentDesktop=!0,nW["yt-searchbox-filled-query"]=function(){return E()},nW["ytd-masthead"]=function(){return!x()},nW.ytSearchboxComponentHostDark=SU,nW)),
role:"search",el:YC,"client-ve-type":10349},_.Q("div",{el:X8,"on:click":x5,class:_.HO("ytSearchboxComponentInputBox",(sV.ytSearchboxComponentInputBoxDark=SU,sV.ytSearchboxComponentInputBoxHasFocus=x,sV))},_.Q("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":z6},_.Q(_.p,{cond:x,then:function(){return _.Q("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.Q(_.ZF,{icon:"SEARCH"}))}}),_.Q("input",{el:uu,
class:_.HO("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":tw,"aria-expanded":!(($d=qV)==null?0:$d.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":wL,"on:focus":BN,"on:input":ft,"on:keydown":fs,"on:paste":Bk,placeholder:K.placeholderText,"aria-activedescendant":function(){var cN;return(cN=jO[d()])==null?void 0:cN[l()]},
"aria-autocomplete":"list",role:"combobox"})),_.Q(_.p,{cond:B,then:function(){return _.Q("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.Q(FjG,null))}}),_.Q(_.p,{cond:E,
then:function(){return _.Q("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.Q("button",{class:"ytSearchboxComponentClearButton","on:click":OZ,"aria-label":K.clearButtonAriaLabel||zm1},_.Q(_.ZF,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.Q(_.MB,{model:{}})))}})),_.Q("button",{class:_.HO("ytSearchboxComponentSearchButton",(WJ.ytSearchboxComponentSearchButtonDark=SU,WJ)),
"on:click":z6,"aria-label":sQ8,title:K.placeholderText},_.Q(_.ZF,{icon:"SEARCH"})),_.Q(_.p,{cond:function(){if(RF8()&&_.S("mweb_voice_search")&&K.voiceSearchButton)return K.voiceSearchButton()},
then:function(cN){var MV={};return _.Q("div",{class:_.HO("ytSearchboxComponentVoiceSearchWrapper",(MV.ytSearchboxComponentHideVoiceSearchButton=function(){return E()},MV))},_.Q(_.Md,{data:cN},{buttonRenderer:function(Sk){return _.Q(_.mr,{data:Sk.data,
onButtonClickCallback:function(){}})}}))}}),_.Q("div",{el:_.$O(function(cN){return void(qV=cN)}),
id:tw,class:_.HO("ytSearchboxComponentSuggestionsContainer",(Y5.ytSearchboxComponentSuggestionsContainerDark=SU,Y5["yt-searchbox-suggestions-container"]=!1,Y5.ytSearchboxComponentSuggestionsContainerScrollable=RC(),Y5.ytSearchboxComponentSuggestionsContainerAnimated=c,Y5)),"on:scroll":LO,"on:mousemove":Gn,role:"listbox",hidden:!0},_.Q(_.cd,{each:L},function(cN,MV){return _.Q(XA8,{suggestion:cN,isHighlighted:function(){return MV()===d()},
onClickCallback:fx,onHoverUpdateCallback:function(Sk){if(_.S("desktop_enable_single_suggestion_highlight")){var Zs=MV();Sk&&(a(0),R(Zs))}},
onRemoveCallback:function(Sk){HUw(J0);Sk===void 0||Sk<0||a3().includes(Sk)||dL([].concat(_.LZ(a3()),[Sk]))},
labels:K.labels,queryBuilderFunction:qu,suggestionIndex:MV,generateUniqueId:LG,highlightedId:function(){var Sk;return(Sk=jO[d()])==null?void 0:Sk[l()]},
useScrollMargin:RC(),isKeyboardMode:nt})}),_.Q(_.p,{cond:function(){return!Dl()&&L().find(function(cN){return cN.type!==35})&&_.S("searchbox_reporting")},
then:function(){return _.Q("button",{class:"ytSearchboxComponentReportButton","on:mousedown":TJ},_.uY("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.Q(_.p,{cond:function(){return!y9()&&RC()},
then:function(){return _.Q("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.Q("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:fl}))}})))},"ug"),"yt-searchbox",{props:{searchEndpoint:_.vU,
placeholderText:_.vU,labels:_.vU,voiceSearchButton:_.vU,focusCallback:_.g$,clearButtonAriaLabel:_.vU,forceDarkMode:_.vU}});var fq=function(){var K=_.G.apply(this,arguments)||this;K.menuButtonTargetId="topbar-guide-menu";K.narrow=!1;K.menuStrings={BACK_ALT_LABEL:_.uY("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.uY("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.uY("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.uY("SBOX_PLACEHOLDER",void 0,"Search")};K.pageDarkTheme=document.documentElement.hasAttribute("dark");K.watchPageScrollTop=0;K.theater=!1;K.fullscreen=!1;K.desktopUnifiedSearchPanelMode=_.S("desktop_enable_unified_search_panel");
K.cinematicTheaterMode=_.S("web_cinematic_theater_mode");K.ytSearchboxFocused=!1;K.searchboxLabels=_.e8("SBOX_LABELS");K.topbarIsAboveChipbar=!1;K.isDarkThemeForced=!1;K.areGhostCardsHidden=!1;K.guideKeyboardToggle=!1;K.voiceSearchManager=ou5();K.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};K.setYtSearchboxFocused=function(X){K.ytSearchboxFocused=X};
return K};
_.r(fq,_.G);_.z=fq.prototype;_.z.computeSimpleText=function(K){return _.lj(K)};
_.z.onDarkChanged=function(){for(var K=_.D(this.buttons||[]),X=K.next();!X.done;X=K.next())X.value.isOverlay=!!this.dark;K=_.D(this.buttonRenderers||[]);for(X=K.next();!X.done;X=K.next())X.value.overrides=this.computeButtonOverride()};
_.z.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.z.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var K=_.yZ(_.wz(),"aa");_.iN(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||K||(this.isDarkThemeForced=this.dark=!0);this.logoType?(K=this.hostElement.querySelector("#masthead-logo"))&&(_.S("polymer_on_demand_shady_dom")?K.setAttribute("slot","masthead-logo-old"):_.c_(K)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.Pc(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.Pc(this,this.onSetTheaterModeEnabled))};
_.z.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.Pc(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.Pc(this,this.onSetTheaterModeEnabled))};
_.z.dataChanged=function(){var K=this.data;K&&(this.voiceEnabled=K.voiceSearchButton?ou5().isSupported():!1,_.n$T(_.Z9(),this.menuButtonTargetId,this.guideButton),K.onReceivedActions&&K.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.X0(this.hostElement,K.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&K&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.iN(this.hostElement,"dark",!1),_.iN(this.hostElement,"theater",!1),
(K=this.hostElement.querySelector("#masthead-logo"))&&(_.S("polymer_on_demand_shady_dom")?K.setAttribute("slot","masthead-logo-old"):_.c_(K))))};
_.z.computeCenterHidden=function(){var K;return this.data&&!((K=this.data.searchbox)==null?0:K.fusionSearchboxRenderer)};
_.z.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.iN(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.z.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.z.onWatchScroll=function(K){this.watchPageScrollTop=K.detail||0;this.updateMastheadBackgroundOpacity()};
_.z.onFullscreenChangeAction=function(K){K||(this.watchPageScrollTop=0);this.fullscreen=K;this.updateMastheadBackgroundOpacity()};
_.z.onSetTheaterModeEnabled=function(K){this.theater=K.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.z.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.z.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.z.setBackgroundOpacity=function(K){K=this.calculateBackgroundOpacity(K);this.background.style.opacity=""+K};
_.z.calculateBackgroundOpacity=function(K){var X=this.theater&&this.cinematicTheaterMode?.6:0,F=this.hostElement.clientHeight/2;return Math.min(Math.max(K,0),F)/F*(1-X)+X};
_.z.shouldShowCinematicMastHead=function(){var K=_.S("kevlar_watch_grid")&&!_.S("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(K||this.pageDarkTheme)};
_.z.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.z.focusGuide=function(){this.guideButton.focus()};
_.z.onGuideToggleTap=function(){_.iX(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.z.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.z.onGuideToggleHover=function(){_.iX(this.hostElement,"yt-guide-hover")};
_.z.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.z.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.z.closeOnOutsideClickCondition=function(K){for(K=_.lN(K);K[0];){var X=K.shift();if(X instanceof Element&&X.id==="kbd")return!1}return!0};
_.z.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.z.pausePlayer=function(){var K;(K=_.$f())==null||K.pause();this.pauseMiniplayer()};
_.z.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var K;(K=_.i9().resolve(_.Wj).getPlayerElement())==null||K.pause()}};
_.z.isMiniplayerActive=function(){return _.i9().resolve(_.Wj).isMiniplayerActive()};
_.z.updateNarrowFromBinding=function(K){this.narrow=K.detail.value};
_.z.onYtSendFeedbackAction=function(){_.xr(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.Oi.Object.defineProperties(fq.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var K;return(K=this.data)==null?void 0:K.voiceSearchButton}}}});
fq.prototype.narrowChanged=fq.prototype.narrowChanged;fq.prototype.onWatchPageChange=fq.prototype.onWatchPageChange;fq.prototype.onRendererStamperFinished=fq.prototype.onRendererStamperFinished;fq.prototype.dataChanged=fq.prototype.dataChanged;fq.prototype.onDarkChanged=fq.prototype.onDarkChanged;_.O([_.W(_.SL),_.g("design:type",Object)],fq.prototype,"ironResizableBehavior",void 0);_.O([_.W(_.w$J),_.g("design:type",Object)],fq.prototype,"ytdExpandableInputBehavior",void 0);
_.O([_.W(_.RW.YtdGuideStateAwareBehavior),_.g("design:type",Object)],fq.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],fq.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],fq.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],fq.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],fq.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.jn),_.g("design:type",Object)],fq.prototype,"ytdReduxBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],fq.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],fq.prototype,"narrow",void 0);_.O([_.h(),_.g("design:type",Object)],fq.prototype,"logoType",void 0);_.O([_.h(),_.g("design:type",Boolean)],fq.prototype,"voiceEnabled",void 0);
_.O([_.h(),_.g("design:type",Object)],fq.prototype,"menuStrings",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],fq.prototype,"dark",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],fq.prototype,"pageDarkTheme",void 0);_.O([_.h(),_.g("design:type",Object)],fq.prototype,"watchPageScrollTop",void 0);_.O([_.h({reflectToAttribute:!0,selector:_.TS}),_.g("design:type",Boolean)],fq.prototype,"isWatchPage",void 0);
_.O([_.h({reflectToAttribute:!0,selector:_.JpP}),_.g("design:type",Boolean)],fq.prototype,"isShortsPage",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],fq.prototype,"theater",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],fq.prototype,"fullscreen",void 0);_.O([_.h({reflectToAttribute:!0,selector:_.n2l}),_.g("design:type",String)],fq.prototype,"frostedGlassMode",void 0);_.O([_.h(),_.g("design:type",Object)],fq.prototype,"ytSearchboxFocused",void 0);
_.O([_.DA("#buttons > *"),_.g("design:type",Array)],fq.prototype,"buttons",void 0);_.O([_.DA("ytd-button-renderer"),_.g("design:type",Array)],fq.prototype,"buttonRenderers",void 0);_.O([_.fa("#background"),_.g("design:type",HTMLDivElement)],fq.prototype,"background",void 0);_.O([_.fa("#guide-button"),_.g("design:type",Object)],fq.prototype,"guideButton",void 0);_.O([_.fa("#logo"),_.g("design:type",Object)],fq.prototype,"logo",void 0);
_.O([_.h({computed:"computeButtonOverride(dark)"}),_.g("design:type",Object)],fq.prototype,"buttonOverrides",void 0);_.O([_.JA("dark"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],fq.prototype,"onDarkChanged",null);_.O([_.h({value:function(){return this.onVoiceTap.bind(this)}}),
_.g("design:type",Function)],fq.prototype,"boundOnTapVoiceButton",void 0);_.O([_.h(),_.g("design:type",Object)],fq.prototype,"topbarIsAboveChipbar",void 0);_.O([_.h(),_.g("design:type",String),_.g("design:paramtypes",[])],fq.prototype,"guideIcon",null);_.O([_.U("voiceEnabled"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],fq.prototype,"shouldShowVoiceSearchButton",null);_.O([_.U("data"),_.g("design:type",Object),_.g("design:paramtypes",[])],fq.prototype,"voiceSearchButton",null);
_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],fq.prototype,"dataChanged",null);_.O([_.Hc("yt-rendererstamper-finished"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],fq.prototype,"onRendererStamperFinished",null);_.O([_.JA("isWatchPage"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],fq.prototype,"onWatchPageChange",null);
_.O([_.JA("narrow"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],fq.prototype,"narrowChanged",null);fq=_.O([_.v({disableElementRegistration:!0,is:"ytd-masthead"})],fq);
_.t(fq,"ytd-masthead",function(){if(CJw!==void 0)return CJw;var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return CJw=K},{mode:_.Ig("kevlar_poly_si_batch_j036")?1:2});var DrF;var uf8={},qak={},JU8={},ZU1={},Yak=(ZU1.OFFLINE=(uf8["publicytnetworkstatus-online"]="BACK_ONLINE",uf8),ZU1.ONLINE=(qak["publicytnetworkstatus-offline"]="OFFLINE",qak),ZU1.BACK_ONLINE=(JU8["publicytnetworkstatus-offline"]="OFFLINE",JU8.TIMER_TRIGGER="ONLINE",JU8),ZU1),DS=function(){var K=_.G.apply(this,arguments)||this;K.currentState="ONLINE";K.scheduledJobId=0;K.bannerString="";K.bannerVe=null;K.networkStatusManagerInstance=new _.lU;return K};
_.r(DS,_.G);_.z=DS.prototype;_.z.attached=function(){var K=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){K.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){K.stateChangeHandler("publicytnetworkstatus-offline")})};
_.z.detached=function(){var K=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){K.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){K.stateChangeHandler("publicytnetworkstatus-offline")})};
_.z.enterState=function(K){var X=this;this.scheduledJobId&&_.A9.cancelJob(this.scheduledJobId);K==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):K==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.uY("NO_INTERNET_CONNECTION",void 0,"No internet connection")):K==="BACK_ONLINE"&&(this.bannerString=_.uY("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.cu(_.A9,function(){X.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=K};
_.z.stateChangeHandler=function(K){(K=Yak[this.currentState][K])&&this.enterState(K)};
_.z.logVisibility=function(K){var X=_.AD();this.createBannerVe(K);X&&this.bannerVe&&(K?_.G6(X,[this.bannerVe]):_.lY(X,[this.bannerVe]))};
_.z.createBannerVe=function(K){!this.bannerVe&&K&&(this.bannerVe=_.cO(37929),_.Kp(_.uH(),this.bannerVe))};
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",String)],DS.prototype,"currentState",void 0);_.O([_.h(),_.g("design:type",Object)],DS.prototype,"scheduledJobId",void 0);_.O([_.h(),_.g("design:type",Object)],DS.prototype,"bannerString",void 0);DS=_.O([_.v({disableElementRegistration:!0,is:"ytd-network-status-banner"})],DS);
_.t(DS,"ytd-network-status-banner",function(){if(DrF!==void 0)return DrF;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return DrF=
K},{mode:1});var QQw;var u7=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};K.hidden=!0;K.frostedGlass=_.S("web_frosted_glass");return K};
_.r(u7,_.G);u7.prototype.computeHidden=function(K){return K&&K.status?!1:!0};
u7.prototype.handleUpdatePermissionRoleCommand=function(K){if(K=_.T(K,_.Pzt))if(K=_.T(K.renderer,_.FNu))this.data=K};
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],u7.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],u7.prototype,"componentBehavior",void 0);_.O([_.h({value:!0,computed:"computeHidden(data)"}),_.g("design:type",Object)],u7.prototype,"hidden",void 0);_.O([_.h(),_.g("design:type",Object)],u7.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],u7.prototype,"frostedGlass",void 0);
u7=_.O([_.v({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],u7);
_.t(u7,"ytd-permission-role-bottom-bar-renderer",function(){if(QQw!==void 0)return QQw;var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);return QQw=K},{mode:1});var MGv;var nFv;var rc5={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var qI=function(){return _.G.apply(this,arguments)||this};
_.r(qI,_.G);_.z=qI.prototype;_.z.attached=function(){this.JSC$18532_scroller&&(this.JSC$18532_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18532_scroller.attached&&typeof this.JSC$18532_scroller.attached==="function"&&this.JSC$18532_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(F){F.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var K=_.C$(this.hostElement);K.querySelector("tp-yt-paper-radio-group").selected="";var X=K.querySelector("#reason-text");X&&(X.value="");K.querySelector("#description-text").value=""}};
_.z.canSubmit=function(K,X){_.iX(this.hostElement,"yt-invalidate-popup-tabbables");return!(K&&X)};
_.z.onCancel=function(){_.xr(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.z.onSubmit=function(){var K=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(f){return f.active}).map(function(f){return f.innerText.trim()}),X=this.hostElement.querySelector("tp-yt-paper-radio-group"),F=X.selectedItem,P=F.name;
F=F.innerText.trim();var H=X.querySelector("#reason-text");X=void 0;H&&(X=H.value);(H=this.descriptionText.value)&&(H=H.trim());AcF(this.data.searchQuery,K,P,F,H,X);_.xr(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.z.sendFormSubmitToast=function(){var K=_.Oz(_.uY("SBOX_INAPPROPRIATE_TOAST"));_.xr(this.hostElement,"yt-open-popup-action",[K,this])};
_.z.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(K){return K.active})};
_.z.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
qI.prototype.onIronSelect=qI.prototype.onIronSelect;qI.prototype.onIronChange=qI.prototype.onIronChange;qI.prototype.dataChanged=qI.prototype.dataChanged;_.O([_.h(),_.g("design:type",Object)],qI.prototype,"data",void 0);_.O([_.h({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.g("design:type",Boolean)],qI.prototype,"submitDisabled",void 0);_.O([_.h(),_.g("design:type",Boolean)],qI.prototype,"suggestionSelected",void 0);
_.O([_.h(),_.g("design:type",Boolean)],qI.prototype,"catagorySelected",void 0);_.O([_.fa("#scroller"),_.g("design:type",Object)],qI.prototype,"JSC$18532_scroller",void 0);_.O([_.fa("#description-text"),_.g("design:type",Object)],qI.prototype,"descriptionText",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],qI.prototype,"dataChanged",null);
_.O([_.Hc("iron-change"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],qI.prototype,"onIronChange",null);_.O([_.Hc("iron-select"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],qI.prototype,"onIronSelect",null);qI=_.O([_.v({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],qI);
_.t(qI,"ytd-search-suggestion-report-dialog",function(){if(nFv!==void 0)return nFv;var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return nFv=K},{mode:1});var Jz=function(K){var X=K.openPopupAction;var F=K.target;var P=K.container;var H=K.popupContainerConfig;var f=K.getElement;K=K.removeWhenClosed===void 0?!1:K.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=X;this.target=F;this.container=P;this.popupContainerConfig=H;this.getElement=f;this.JSC$18538_popupConfig=this.popupContainerConfig.JSC$17653_popupConfig[this.openPopupAction.popupType];this.rendererName=(X=this.getName())?_.la4(X,kCW(this.popupContainerConfig,
X)):"";_.S("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=K);this.createPopup()};
Jz.prototype.updatePopup=function(K){this.openPopupAction=K;this.JSC$18538_popupConfig=this.popupContainerConfig.JSC$17653_popupConfig[this.openPopupAction.popupType];cUJ(this);_.S("reorder_popup_updates_killswitch")&&pAt(this);_.S("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var oFF=function(K,X,F){K.target=F;var P;F=((P=K.target.polymerController)!=null?P:K.target).popupPositionTarget||K.target;K.JSC$18538_popupConfig.targetContainer&&(F=K.container);K.popup.positionTarget=F;K.popupContent.positionTarget=F;_.S("reorder_popup_updates_killswitch")||pAt(K);K.JSC$18538_popupConfig.forceFocus&&(K.popupContent.style.outline="none");K.popupContent.tabIndex=-1;K.JSC$18538_popupConfig.narrowProperties&&(K.popup.style.position="static");K.JSC$18538_popupConfig.preventAutonav&&
K.popup.setAttribute("prevent-autonav",!0);K.JSC$18538_popupConfig.forceCloseOnOutsideClick&&K.popup.setAttribute("force-close-on-outside-click",!0);BQV(K,X);Sa8(K,K.JSC$18538_popupConfig.styles);K.isRtl()&&Sa8(K,K.JSC$18538_popupConfig.rtlStyles);if(!K.openPopupAction.shouldStopParentSignal){var H;X=(H=K.target.polymerController)!=null?H:K.target;(K.popupContent.startForwardingEvents||K.popupContainerConfig.forwardingEnabledPopups.has(K.rendererName))&&X.parentComponent!==K.popupContent&&K.popupContent!==
K.target&&K.target!==document.body&&(K.popupContent.startForwardingEvents?K.popupContent.startForwardingEvents(K.popupContainerConfig.forwardedEvents,K.target):(K.JSC$18538_eventForwarder||(K.JSC$18538_eventForwarder=new _.Hj(K.popupContent)),K.JSC$18538_eventForwarder.start(K.popupContainerConfig.forwardedEvents,K.target)))}};
Jz.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var BQV=function(K,X){Ljk(K,X&&K.JSC$18538_popupConfig.narrowProperties?K.JSC$18538_popupConfig.narrowProperties:K.JSC$18538_popupConfig.properties);K.isRtl()&&Ljk(K,K.JSC$18538_popupConfig.rtlProperties);pAt(K)};
Jz.prototype.createPopup=function(){var K=this.JSC$18538_popupConfig.component;if(this.popupContent=TQ8(this,this.rendererName)){if(K){this.popup=TQ8(this,K);var X=this.popupContent;_.S("web_enable_wrapper_for_cow_component_in_popup")&&(X=document.createElement("div"),X.appendChild(this.popupContent));_.S("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18538_popupConfig.slotName&&X.setAttribute("slot",this.JSC$18538_popupConfig.slotName);K=this.popup;var F=this.container.tagName.toLowerCase(),
P=_.aj(X);_.FY3(_.$1(K),_.gq(X,F,P));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.S("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.C$(this.container).appendChild(this.popup)}};
var cUJ=function(K){var X,F,P=(X=K.openPopupAction.accessibilityData)==null?void 0:(F=X.accessibilityData)==null?void 0:F.label;P&&(K.popup.ariaLabel=P);var H;((H=K.popupContent.polymerController)!=null?H:K.popupContent).data=(0,_.T8.unsafeClone)(K.openPopupAction.popup[K.getName()]);K.popupContent.duration=rUW(K);K.popupContent.positionType=K.openPopupAction.position;var f=K.openPopupAction.properties;f&&Object.keys(f).forEach(function(u){K.popupContent[u]=f[u]})},Ljk=function(K,X){if(X)for(var F=
_.D(Object.keys(X)),P=F.next();!P.done;P=F.next())P=P.value,K.popup[P]=X[P]},pAt=function(K){if(K.openPopupAction.position){var X=K.JSC$18538_popupConfig.positionalProperties&&K.JSC$18538_popupConfig.positionalProperties[K.openPopupAction.position],F=K.JSC$18538_popupConfig.rtlPositionalProperties&&K.JSC$18538_popupConfig.rtlPositionalProperties[K.openPopupAction.position];
X=K.isRtl()&&F?F:X;X.shiftedHorizontalOffset&&(F=K.popup.style.display,K.popup.style.display="block",K.popupContent&&K.popup.positionTarget&&K.popupContent.clientWidth>K.popup.positionTarget.clientWidth&&(X.horizontalOffset=K.popup.positionTarget.clientWidth/2-X.shiftedHorizontalOffset),K.popup.style.display=F);Ljk(K,X)}},Sa8=function(K,X){if(X)for(var F=_.D(Object.keys(X)),P=F.next();!P.done;P=F.next())P=P.value,K.popup.style[P]=X[P]};
Jz.prototype.getName=function(){return _.y8(this.openPopupAction.popup,"renderer")||_.y8(this.openPopupAction.popup,"dialog")||_.y8(this.openPopupAction.popup,"model")||void 0};
var rUW=function(K){K=K.openPopupAction.durationHintMs;return K===0?K:Math.max(4E3,K||4E3)};
Jz.prototype.isRtl=function(){return _.e8("HTML_DIR")==="rtl"};
var TQ8=function(K,X){K=K.getElement(X,K.target);K==null&&_.yy(new _.nG("popup getElement returned null",X));return K};var AU5={};
AU5.YtPopupContainerBehavior=[_.dk.YtComponentBehavior,_.NT.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.Cy(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.N$(this.hostElement)},
closePopup:function(K){var X=this.createCacheKey(void 0,K);this.popups_[X]&&this.handleClosePopupAction_(void 0,K)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.A9.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.A9.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(K){K.opened&&K.keepBelowPlayer&&this.ensurePopupBelowPlayer(K)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var K in this.popups_){var X=this.popups_[K];if(X.popup.scrollAction==="refit"){var F=X.popup.positionTarget.getBoundingClientRect(),P=X.popup;F=F.top;var H=X;if(!H.naturalHeight){H.popup.hidden=!1;H.popup.style.position="fixed";H.popup.style.top="0px";H.popup.style.left="0px";var f=H.popup.getBoundingClientRect();H.naturalHeight=f.bottom-f.top;H.popup.refit()}P.hidden=!(F>=H.naturalHeight+60);X.popupContent.clientHeight===0&&X.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(K){this.popupContainerConfig=K},
handleOpenPopupAction:function(K,X){var F=K.openPopupAction,P=_.i9().resolve(_.Nu(_.eqQ))&&F.popupType==="TOAST";P&&!F.uniqueId&&(F.uniqueId=_.Lr());if(!_.S("popup_container_parent_target_killswitch")){var H;X=(H=this.getParentTarget(X))!=null?H:X}var f=this.ensurePopup_(F,X);return new _.fL(function(u){f.then(function(J){if(!J)return u();this.maybeCreateNarrowMediaQuery_();var Z=this.createCacheKey(J.rendererName,J.openPopupAction.uniqueId);if(F.showOncePerUniqueId){if(this.shownPopupKeys_.has(Z))return u();
this.shownPopupKeys_.add(Z)}Z=this.popups_[Z];var M=!(!Z||!Z.openPopupAction.beReused);M=!!F.reusePopup||M;if(J.popup.opened&&!M){P&&!J.openPopupAction.replacePopup||this.handleClosePopupAction_(J.rendererName,J.openPopupAction.uniqueId);M=F.popupType==="DIALOG"&&!_.S("popup_container_dialog_reopen_killswitch");if(!P&&!M&&Z&&Z.target==X&&!J.openPopupAction.replacePopup)return u();_.tg(J.popup,function(){this.completeOpenPopupAction_(F,X,J);u()}.bind(this))}else J.popup.opened?J.updatePopup(F):this.completeOpenPopupAction_(F,
X,J),u()}.bind(this))}.bind(this))},
getParentTarget:function(K){if(K&&K instanceof HTMLElement)for(var X=_.D(Object.entries(this.popups_)),F=X.next();!F.done;F=X.next())if(F=_.D(F.value),F.next(),F=F.next().value,F.popup.tagName==="TP-YT-IRON-DROPDOWN"&&K.closest(F.rendererName))return F.target},
completeOpenPopupAction_:function(K,X,F){_.S("reorder_popup_updates_killswitch")?(oFF(F,this.narrowMediaQuery_.queryMatches,X),F.updatePopup(K)):(F.updatePopup(K),oFF(F,this.narrowMediaQuery_.queryMatches,X));K=F.popup;K.addEventListener("iron-overlay-opened",_.Pc(this,this.onPopupIronOverlayOpened_));K.addEventListener("iron-overlay-closed",_.Pc(this,this.onPopupIronOverlayClosed_));K.addEventListener("iron-overlay-canceled",_.Pc(this,this.onPopupIronOverlayCanceled_));K.addEventListener("yt-refit",
_.Pc(this,this.refitPopup_));K.addEventListener("yt-invalidate-popup-tabbables",_.Pc(this,this.handleInvalidatePopupTabbables_));K.open()},
getPopupDurationMs_:function(K){return K.durationHintMs===0?K.durationHintMs:Math.max(4E3,K.durationHintMs||4E3)},
handleClosePopupAction_:function(K,X){var F=_.S("web_popup_cache_key_killswitch")||!!X;if(K||F){var P=this.createCacheKey(K,X);K=(K=this.popups_[P])&&K.popup}else K=_.PCC(_.U_);if(K&&K.close){if(X=_.i9().resolve(_.Nu(_.Iu)))K.restoreFocusOnClose=X.isKeyBoardInUse();K.close();this.removePopup_(K,P)}},
handleClosePopupCommand_:function(K){K.closePopupCommand&&K.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,K.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(K){var X={},F;for(F in this.popups_)if(X={key$jscomp$1165:X.key$jscomp$1165},X.key$jscomp$1165=F,!K||!K.some(function(f){return function(u){return u==f.key$jscomp$1165}}(X))){var P=this.popups_[X.key$jscomp$1165],H=P.popup;
_.i9().resolve(_.Nu(_.eqQ))&&P.openPopupAction.popupType==="TOAST"||(H&&H.close&&H.close(),this.removePopup_(H,X.key$jscomp$1165))}},
handleClosePopupsAction_:function(K){K.forEach(function(X){var F=this.popups_[X];F&&((F=F.popup)&&F.close&&F.close(),this.removePopup_(F,X))}.bind(this))},
handleGetPopupOpenedAction_:function(K,X){return(X=this.createCacheKey(K,X))&&this.popups_[X]?this.popups_[K].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var K=[],X;for(X in this.popups_){var F=this.popups_[X];F.popup.opened&&K.push(F)}return K},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(K,X){_.S("ytpopup_disable_default_html_caching")&&K&&K.removeWhenClosed&&(_.C$(this.hostElement).removeChild(K),X&&this.popups_[X]&&delete this.popups_[X])},
shouldReusePopup_:function(K){return!(!K||!K.reusePopup)||!(!K||!K.beReused)},
ensurePopup_:function(K,X){this.maybeCreateNarrowMediaQuery_();var F=_.y8(K.popup,"renderer")||_.y8(K.popup,"dialog")||_.y8(K.popup,"model");if(!F)return _.F0();F=_.la4(F,kCW(this.popupContainerConfig,F));return _.F0(this.getAndMaybeCreatePopup_(K,F,X))},
getAndMaybeCreatePopup_:function(K,X,F){var P=this.createCacheKey(X,K.uniqueId);if(this.popups_[P])return this.popups_[P];K=new Jz({openPopupAction:K,target:F,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(X)});return this.popups_[P]=K},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(K){return _.S("ytpopup_disable_default_html_caching")?K&&K.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",_.Pc(this,this.openPopupQueryMatchesChanged_)),_.C$(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(K){K=K.detail.value;for(var X in this.popups_)BQV(this.popups_[X],K)},
onPopupIronOverlayClosed_:function(K){var X=K.currentTarget,F=_.LYd(X);F=F.length>0?F[0]:X;if(F.is!=="ytd-reel-watch-while-dialog-renderer"||K.target.is!=="tp-yt-iron-dropdown"){K.detail.popup=X;K.detail.popupRenderer=F;var P,H={context:{openingElement:((P=this.popups_[(F==null?void 0:F.is)||""])==null?void 0:P.target)||void 0}};Object.assign(H,K.detail);var f;_.iX((f=F.hostElement)!=null?f:F,"yt-popup-closed",H);X.removeEventListener("yt-refit",_.Pc(this,this.refitPopup_));X.removeEventListener("yt-invalidate-popup-tabbables",
_.Pc(this,this.handleInvalidatePopupTabbables_));X.removeEventListener("iron-overlay-canceled",_.Pc(this,this.onPopupIronOverlayCanceled_));X.removeEventListener("iron-overlay-closed",_.Pc(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(X)}},
onPopupIronOverlayCanceled_:function(K,X){var F=K.currentTarget,P=_.LYd(F);P=P.length>0?P[0]:F;if(P.is!=="ytd-reel-watch-while-dialog-renderer"||K.target.is!=="tp-yt-iron-dropdown"){var H;_.iX((H=P.hostElement)!=null?H:P,"yt-popup-canceled",K.detail);H=X?_.lN(X):null;(!X||["click","tap"].includes(X.type))&&!F.hasAttribute("force-close-on-outside-click")&&F.positionTarget&&H&&H.includes(F.positionTarget)&&K.preventDefault();F.restoreFocusOnClose=_.JP.keyboardEventMatchesKeys(X,"esc")}},
onPopupIronOverlayOpened_:function(K){K=K.currentTarget;var X=_.LYd(K);X=X.length>0?X[0]:K;var F,P;_.iX((F=X.hostElement)!=null?F:X,"yt-popup-opened",(P=X.hostElement)!=null?P:X);K.keepBelowPlayer&&(this.ensurePopupBelowPlayer(K,!0),this.dynamicallyPositionedElements_.add(K));F=_.i9().resolve(_.Nu(_.Iu));P=!!X.querySelector("#toast");F&&F.isKeyBoardInUse()&&!P&&(typeof X.focusFirstItem==="function"?X.focusFirstItem():(X=_.KWU(K),X.length&&X[0].focus()));K.removeEventListener("iron-overlay-opened",
_.Pc(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(K){K=K.currentTarget;K.refit&&K.refit()},
refitPopups_:function(){for(var K in this.popups_)this.popups_[K].refit()},
handleInvalidatePopupTabbables_:function(K){K=K.currentTarget;K.invalidateTabbables&&K.invalidateTabbables()},
createCacheKey:function(K,X){return _.S("web_popup_cache_key_killswitch")?X?K+"#"+X:K:X?"#"+X:K},
openSheet:function(K,X){var F=K==null?void 0:K.openPopupActionCommand;!F&&(K==null?0:K.viewModel)&&(F={openPopupAction:{popup:{sheetViewModel:K.viewModel},popupType:"CONTEXTUAL_SHEET"}});F&&this.handleOpenPopupAction(F,X)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var K=this;return _.q(function(X){return X.return(K.handleGetOpenedPopupsAction_().filter(function(F){var P;return((P=F.openPopupAction)==null?void 0:P.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(K,X,F){if(_.S("web_dialog_utils_killswitch")){var P=K==null?void 0:K.openPopupActionCommand,H=(F==null?0:F.ariaLabel)?{accessibilityData:{accessibilityData:{label:F.ariaLabel}}}:void 0;!P&&(K==null?0:K.viewModel)&&(P={openPopupAction:Object.assign({},{popup:{dialogViewModel:K.viewModel},popupType:(F==null?0:F.isModal)?"MODAL":"DIALOG"},H&&H)});P&&this.handleOpenPopupAction(P,X)}else{if(H=K==null?void 0:K.viewModel){var f=F=F===void 0?{}:F;F=f.ariaLabel;H={popup:{dialogViewModel:H},
popupType:f.isModal?"MODAL":"DIALOG"};f={accessibilityData:{label:F}};F&&(H.accessibilityData=f);H={openPopupAction:H}}else H=void 0;(H=(P=H)!=null?P:K==null?void 0:K.openPopupActionCommand)&&this.handleOpenPopupAction(H,X)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var K=this;return _.q(function(X){return X.return(K.handleGetOpenedPopupsAction_().filter(function(F){var P;return((P=F.openPopupAction)==null?void 0:P.popupType)==="DIALOG"}).length>0)})}}];var jQJ;var wAo;var yUJ=_.lr(["about:blank"]),ZS=function(){var K=_.G.apply(this,arguments)||this;K.isMuted=!1;K.pageLoadTimeoutId=void 0;return K};
_.r(ZS,_.G);_.z=ZS.prototype;_.z.dataChanged=function(){var K=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var X=this.data.url,F=_.jt(X);_.S("enable_yt_ata_iframe_authuser")?(F=_.jt(X),_.W$(this.iframe,j7G(F))):_.W$(this.iframe,F);this.pageLoadTimeoutId=_.cu(_.Bj(),function(){return void K.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.$_({destination:window,iframe:this.iframe,origin:_.fQL(F.toString()),channelName:"ataiframe",onMessage:_.p1q(HYW,function(P){sr5(P.data)?(P=_.BJ(P.data,1,_.Lt,_.KJ()),P.length!==1?_.yy(Error("ll")):(P=P[0],P===3?(K.isMuted=!0,K.logStateChanged({adMuteRequested:!0})):P===1&&K.close())):_.yy(Error("ml"))}),
onEstablished:function(){K.cancelPageLoadTimeout();K.logStateChanged({pageLoadSucceeded:!0})}})}};
_.z.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.Bj().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.z.logStateChanged=function(K){var X;if((X=this.data)==null?0:X.trackingParams)K={adsClientData:{aboutThisAdData:K}},_.uH().stateChanged(this.data.trackingParams,K)};
_.z.close=function(){_.xr(this.hostElement,"yt-close-popup-action",[this.is])};
_.z.handlesPopupClosed=function(K,X){var F=this,P,H;return _.q(function(f){if(f.nextAddress==1)return _.e8("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.xr(F.hostElement,"on-about-this-ad-popup-closed",[F.isMuted,X]),f.jumpTo(0)):K&&wWG(K)?_.Y(f,yc5(K),4):(F.isMuted&&_.xr(F.hostElement,"yt-mute-ad-action",[F.is,F]),f.jumpTo(0));if(P=f.yieldResult){var u=H=new _.Z5(P),J=F.isMuted;u.getOptions().includes("onAboutThisAdPopupClosed")?_.hBt(u,"onAboutThisAdPopupClosed",{isMuted:J,layoutId:X}):_.Ey("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.JT(f)})};
_.z.onPopupClosed=function(K){var X=this,F,P;return _.q(function(H){F=_.Xs(yUJ);_.W$(X.iframe,F);X.cancelPageLoadTimeout();if(!X.data)return H.jumpTo(0);X.ytRendererBehavior.markDirty();P=K.detail.context.openingElement;return _.Y(H,X.handlesPopupClosed(P,X.data.layoutId),0)})};
_.z.detached=function(){this.cancelPageLoadTimeout()};
_.z.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ZS.prototype.onPopupClosed=ZS.prototype.onPopupClosed;ZS.prototype.dataChanged=ZS.prototype.dataChanged;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ZS.prototype,"ytRendererBehavior",void 0);_.O([_.fa("#iframe"),_.g("design:type",HTMLIFrameElement)],ZS.prototype,"iframe",void 0);_.O([_.h(),_.g("design:type",Object)],ZS.prototype,"data",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],ZS.prototype,"dataChanged",null);
_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype",Promise)],ZS.prototype,"onPopupClosed",null);ZS=_.O([_.Tb({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],ZS);
_.t(ZS,"yt-about-this-ad-renderer",function(){if(wAo===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;jQJ===void 0&&(jQJ=document.createElement("template"));var P=jQJ;F.call(X,P.content.cloneNode(!0),K.content.firstChild);wAo=K}K=wAo;return K},{mode:2});var WjF;var dr8;var YH=function(K){var X=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=X.message;"stack"in X&&(this.stack=X.stack);this.maxFileSizeMB=K;Object.setPrototypeOf(this,YH.prototype)};
_.r(YH,Error);var emv=function(K,X){var F=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=F.message;"stack"in F&&(this.stack=F.stack);this.minWidth=K;this.minHeight=X;Object.setPrototypeOf(this,emv.prototype)};
_.r(emv,Error);var RmG=function(K){this.requirements=K;this.JSC$18566_maxFileSize=K.maxFileSizeMB*1024*1024},UrV=function(K,X){if(X.size>K.JSC$18566_maxFileSize)throw new YH(K.requirements.maxFileSizeMB);
};var hmv=function(K,X){this.canvas=K;this.imageEditorBuilder=X};
hmv.prototype.addEventListeners=function(K){var X=function(H){mrG(K,H)};
this.JSC$18572_mouseDownEvent=X;var F=function(H){Gko(K,H)};
this.JSC$18572_mouseMoveEvent=F;var P=function(){l5k(K)};
this.JSC$18572_mouseUpEvent=P;this.canvas.addEventListener("mousedown",X);this.canvas.addEventListener("mousemove",F);document.addEventListener("mouseup",P)};
hmv.prototype.removeEventListeners=function(){this.JSC$18572_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18572_mouseDownEvent);this.JSC$18572_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18572_mouseMoveEvent);this.JSC$18572_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18572_mouseUpEvent)};
var vF8=function(K,X){K.removeEventListeners();return new Promise(function(F){var P=new Image;P.crossOrigin="anonymous";P.onload=function(){var H=K.imageEditorBuilder(K.canvas,P);K.addEventListeners(H);F(H)};
P.src=X})},QM=function(K,X,F,P,H,f,u,J){this.canvas=K;
this.image=X;this.requiredRatio=F;this.minImageCropDimension=P;this.minOutputImageResolution=H;this.component=f;this.styleFocusedCorner=J===void 0?!0:J;this.action=2;this.focusedCorner=this.resizeCorner=0;K=this.canvas.getContext("2d");if(!K)throw Error("nl");this.ctx=K;this.canvasMargin=u!=null?u:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;u=this.image;K=this.canvasInnerWidth/u.width;u.height*K>912&&(K=u.width/u.height*912/u.width);u=K;this.scaledImageWidth=this.canvas.width%2?
dm8(this.image.width*u):Wb8(this.image.width*u);this.scaledImageHeight=Math.round(this.image.height*u);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18575_overlayMarginBottom=this.JSC$18575_overlayMarginTop=this.canvasMargin;this.JSC$18575_overlayMarginRight=this.JSC$18575_overlayMarginLeft=this.horizontalMargin;this.JSC$18575_overlayWidth=this.scaledImageWidth;this.JSC$18575_overlayHeight=this.scaledImageHeight;
K=this.image.width/this.image.height;K>this.requiredRatio?(this.JSC$18575_overlayWidth=this.canvas.width%2?dm8(this.scaledImageHeight*this.requiredRatio):Wb8(this.scaledImageHeight*this.requiredRatio),this.JSC$18575_overlayMarginRight=this.JSC$18575_overlayMarginLeft=(this.canvas.width-this.JSC$18575_overlayWidth)/2):K<this.requiredRatio&&(this.JSC$18575_overlayHeight=this.canvas.height%2?dm8(this.scaledImageWidth/this.requiredRatio):Wb8(this.scaledImageWidth/this.requiredRatio),this.JSC$18575_overlayMarginBottom=
this.JSC$18575_overlayMarginTop=(this.canvas.height-this.JSC$18575_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*u,this.scaledImageWidth);a51(this)};
QM.prototype.getContext=function(){return this.ctx};
var mrG=function(K,X){X={x:Math.round(X.pageX-K.canvas.getBoundingClientRect().left),y:Math.round(X.pageY-K.canvas.getBoundingClientRect().top)};K.dragStart=X;tGt(K,X)!==0?(K.action=1,$r8(K,X),K.resizeCorner=tGt(K,X)):X.x>K.JSC$18575_overlayMarginLeft&&X.x<K.JSC$18575_overlayMarginLeft+K.JSC$18575_overlayWidth&&X.y>K.JSC$18575_overlayMarginTop&&X.y<K.JSC$18575_overlayMarginTop+K.JSC$18575_overlayHeight&&(K.action=0)},OU8=function(K,X){switch(X){case 1:return{x:K.JSC$18575_overlayMarginLeft,
y:K.JSC$18575_overlayMarginTop};case 2:return{x:K.JSC$18575_overlayMarginLeft,y:K.JSC$18575_overlayMarginTop+K.JSC$18575_overlayHeight};case 3:return{x:K.JSC$18575_overlayMarginLeft+K.JSC$18575_overlayWidth,y:K.JSC$18575_overlayMarginTop};case 4:return{x:K.JSC$18575_overlayMarginLeft+K.JSC$18575_overlayWidth,y:K.JSC$18575_overlayMarginTop+K.JSC$18575_overlayHeight};default:throw Error("ol");}},gFd=function(K,X){if(K.focusedCorner!==0){K.dragStart=OU8(K,K.focusedCorner);
K.action=1;K.resizeCorner=K.focusedCorner;var F=K.dragStart.x,P=K.dragStart.y;switch(X){case 0:K.focusedCorner===1||K.focusedCorner===4?(F-=10,P-=10):(F-=10,P+=10);break;case 1:K.focusedCorner===1||K.focusedCorner===4?(F+=10,P+=10):(F+=10,P-=10);break;case 2:F=K.focusedCorner===1||K.focusedCorner===4?F-10:F+10;P-=10;break;case 3:F=K.focusedCorner===1||K.focusedCorner===4?F+10:F-10;P+=10;break;default:throw Error("pl");}VG8(K,{x:F,y:P});a51(K);K.action=2;K.dragStart=void 0}},Gko=function(K,X){X={x:Math.round(X.pageX-
K.canvas.getBoundingClientRect().left),
y:Math.round(X.pageY-K.canvas.getBoundingClientRect().top)};$r8(K,X);switch(K.action){case 1:VG8(K,X);break;case 0:K.dragStart&&(K.JSC$18575_overlayMarginLeft=Math.max(K.horizontalMargin,Math.min(K.JSC$18575_overlayMarginLeft-(K.dragStart.x-X.x),K.horizontalMargin+K.scaledImageWidth-K.JSC$18575_overlayWidth)),K.JSC$18575_overlayMarginRight=K.canvas.width-K.JSC$18575_overlayMarginLeft-K.JSC$18575_overlayWidth,K.JSC$18575_overlayMarginTop=Math.max(K.canvasMargin,Math.min(K.JSC$18575_overlayMarginTop-
(K.dragStart.y-X.y),K.scaledImageHeight-K.JSC$18575_overlayHeight+K.canvasMargin)),K.JSC$18575_overlayMarginBottom=K.canvas.height-(K.JSC$18575_overlayMarginTop+K.JSC$18575_overlayHeight));break;default:return}a51(K);K.dragStart=X},l5k=function(K){K.action=2;
K.dragStart=void 0;document.body.style.cursor="auto"},$r8=function(K,X){switch(tGt(K,X)){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:K.action!==1&&(document.body.style.cursor="auto")}},tGt=function(K,X){var F=K.JSC$18575_overlayMarginLeft-5,P=K.JSC$18575_overlayMarginTop-5,H=K.JSC$18575_overlayMarginLeft+K.JSC$18575_overlayWidth-5;
K=K.JSC$18575_overlayMarginTop+K.JSC$18575_overlayHeight-5;return EFJ(X,{x:F,y:P})?1:EFJ(X,{x:H,y:P})?3:EFJ(X,{x:F,y:K})?2:EFJ(X,{x:H,y:K})?4:0},EFJ=function(K,X){return K.x>=X.x&&K.x<=X.x+10&&K.y>=X.y&&K.y<=X.y+10},VG8=function(K,X){if(K.dragStart)switch(K.resizeCorner){case 2:Math.abs((K.JSC$18575_overlayMarginLeft+K.JSC$18575_overlayWidth-X.x)/(X.y-K.JSC$18575_overlayMarginTop))>=K.requiredRatio?bUk(K,X.x):Cek(K,X.y);
break;case 1:Math.abs((K.JSC$18575_overlayMarginLeft+K.JSC$18575_overlayWidth-X.x)/(K.JSC$18575_overlayMarginTop+K.JSC$18575_overlayHeight-X.y))>=K.requiredRatio?NQw(K,X.x):Cek(K,X.y);break;case 4:Math.abs((X.x-K.JSC$18575_overlayMarginLeft)/(X.y-K.JSC$18575_overlayMarginTop))>=K.requiredRatio?bUk(K,X.x):iUt(K,X.y);break;case 3:Math.abs((X.x-K.JSC$18575_overlayMarginLeft)/(K.JSC$18575_overlayMarginTop+K.JSC$18575_overlayHeight-X.y))>=K.requiredRatio?NQw(K,X.x):iUt(K,X.y);break;default:throw Error("ql");
}},bUk=function(K,X){var F=K.JSC$18575_overlayMarginTop;
K.JSC$18575_overlayMarginBottom=xrt(K,X);K.JSC$18575_overlayHeight=K.canvas.height-K.JSC$18575_overlayMarginBottom-F;K.JSC$18575_overlayWidth=Math.round(K.JSC$18575_overlayHeight*K.requiredRatio);I55(K)},NQw=function(K,X){var F=K.JSC$18575_overlayMarginTop+K.JSC$18575_overlayHeight;
K.JSC$18575_overlayMarginTop=xrt(K,X);K.JSC$18575_overlayHeight=F-K.JSC$18575_overlayMarginTop;K.JSC$18575_overlayWidth=Math.round(K.JSC$18575_overlayHeight*K.requiredRatio);I55(K)},I55=function(K){switch(K.resizeCorner){case 2:case 1:K.JSC$18575_overlayMarginLeft=K.canvas.width-K.JSC$18575_overlayMarginRight-K.JSC$18575_overlayWidth;
break;case 4:case 3:K.JSC$18575_overlayMarginRight=K.canvas.width-K.JSC$18575_overlayMarginLeft-K.JSC$18575_overlayWidth;break;default:throw Error("ql");}},Cek=function(K,X){var F=K.JSC$18575_overlayMarginLeft+K.JSC$18575_overlayWidth;
K.JSC$18575_overlayMarginLeft=kkV(K,X);K.JSC$18575_overlayWidth=F-K.JSC$18575_overlayMarginLeft;K.JSC$18575_overlayHeight=Math.round(K.JSC$18575_overlayWidth/K.requiredRatio);KLF(K)},iUt=function(K,X){var F=K.JSC$18575_overlayMarginLeft;
K.JSC$18575_overlayMarginRight=kkV(K,X);K.JSC$18575_overlayWidth=K.canvas.width-K.JSC$18575_overlayMarginRight-F;K.JSC$18575_overlayHeight=Math.round(K.JSC$18575_overlayWidth/K.requiredRatio);KLF(K)},KLF=function(K){switch(K.resizeCorner){case 2:case 4:K.JSC$18575_overlayMarginBottom=K.canvas.height-K.JSC$18575_overlayMarginTop-K.JSC$18575_overlayHeight;
break;case 1:case 3:K.JSC$18575_overlayMarginTop=K.canvas.height-K.JSC$18575_overlayMarginBottom-K.JSC$18575_overlayHeight;break;default:throw Error("ql");}},xrt=function(K,X){switch(K.resizeCorner){case 2:X=K.canvas.height-(K.JSC$18575_overlayMarginTop+Xso(K,X));
break;case 4:X=K.canvas.height-(K.JSC$18575_overlayMarginTop+FLk(K,X));break;case 1:X=K.JSC$18575_overlayMarginTop+K.JSC$18575_overlayHeight-Xso(K,X);break;case 3:X=K.JSC$18575_overlayMarginTop+K.JSC$18575_overlayHeight-FLk(K,X);break;default:throw Error("ql");}return Math.max(X,K.canvasMargin)},Xso=function(K,X){X=K.JSC$18575_overlayMarginLeft+K.JSC$18575_overlayWidth-Math.max(X,K.horizontalMargin);
X=X<0?K.JSC$18575_overlayWidth:Math.max(X,K.minOverlayWidth);return Math.round(X/K.requiredRatio)},FLk=function(K,X){X=K.canvas.width-Math.max(K.canvas.width-X,K.horizontalMargin)-K.JSC$18575_overlayMarginLeft;
X=X<0?K.JSC$18575_overlayWidth:Math.max(X,K.minOverlayWidth);return Math.round(X/K.requiredRatio)},kkV=function(K,X){switch(K.resizeCorner){case 2:X=K.canvas.width-K.JSC$18575_overlayMarginRight-P8V(K,X);
break;case 4:X=K.canvas.width-K.JSC$18575_overlayMarginLeft-P8V(K,X);break;case 1:X=K.canvas.width-K.JSC$18575_overlayMarginRight-HiV(K,X);break;case 3:X=K.canvas.width-K.JSC$18575_overlayMarginLeft-HiV(K,X);break;default:throw Error("ql");}return Math.max(X,K.horizontalMargin)},P8V=function(K,X){X=K.canvas.height-Math.max(K.canvas.height-X,K.canvasMargin)-K.JSC$18575_overlayMarginTop;
return X<0?K.JSC$18575_overlayWidth:Math.max(Math.round(X*K.requiredRatio),K.minOverlayWidth)},HiV=function(K,X){X=K.JSC$18575_overlayMarginTop+K.JSC$18575_overlayHeight-Math.max(X,K.canvasMargin);
return X<0?K.JSC$18575_overlayWidth:Math.max(Math.round(X*K.requiredRatio),K.minOverlayWidth)},a51=function(K){K.ctx.clearRect(0,0,K.canvas.width,K.canvas.height);
K.ctx.drawImage(K.image,0,0,K.image.width,K.image.height,K.horizontalMargin,K.canvasMargin,K.canvas.width-2*K.horizontalMargin,K.scaledImageHeight);K.ctx.fillStyle="rgba(0, 0, 0, 0.7)";K.ctx.fillRect(K.horizontalMargin,K.JSC$18575_overlayMarginTop,K.JSC$18575_overlayMarginLeft-K.horizontalMargin,K.JSC$18575_overlayHeight);K.ctx.fillRect(K.JSC$18575_overlayMarginLeft+K.JSC$18575_overlayWidth,K.JSC$18575_overlayMarginTop,K.JSC$18575_overlayMarginRight-K.horizontalMargin,K.JSC$18575_overlayHeight);K.ctx.fillRect(K.horizontalMargin,
K.canvasMargin,K.scaledImageWidth,K.JSC$18575_overlayMarginTop-K.canvasMargin);K.ctx.fillRect(K.horizontalMargin,K.JSC$18575_overlayMarginTop+K.JSC$18575_overlayHeight,K.scaledImageWidth,K.JSC$18575_overlayMarginBottom-K.canvasMargin);K.drawOverlay();K.component&&_.iX(K.component,"image-updated")};
QM.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18575_overlayMarginLeft,this.JSC$18575_overlayMarginTop,this.JSC$18575_overlayWidth,this.JSC$18575_overlayHeight);sb1(this)};
var sb1=function(K){var X=K.JSC$18575_overlayMarginLeft-5,F=K.JSC$18575_overlayMarginTop-5,P=K.JSC$18575_overlayMarginLeft+K.JSC$18575_overlayWidth-5,H=K.JSC$18575_overlayMarginTop+K.JSC$18575_overlayHeight-5;K.ctx.fillStyle="#FFF";K.ctx.fillRect(X,F,10,10);K.ctx.strokeRect(X,F,10,10);K.ctx.fillRect(P,F,10,10);K.ctx.strokeRect(P,F,10,10);K.ctx.fillRect(X,H,10,10);K.ctx.strokeRect(X,H,10,10);K.ctx.fillRect(P,H,10,10);K.ctx.strokeRect(P,H,10,10);if(K.focusedCorner!==0&&K.styleFocusedCorner){K.ctx.lineWidth=
4;K.ctx.strokeStyle="#3EA6FF";switch(K.focusedCorner){case 1:--X;--F;break;case 2:--X;F=H-1;break;case 3:X=P-1;--F;break;case 4:X=P-1;F=H-1;break;default:return}K.ctx.strokeRect(X,F,12,12)}};
QM.prototype.crop=function(K,X){X=X===void 0?!0:X;var F=this.image.width/this.scaledImageWidth,P=document.createElement("canvas"),H=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],f=this.JSC$18575_overlayWidth*F,u=this.JSC$18575_overlayHeight*F;P.width=Math.max(f,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);P.height=Math.max(u,H);K&&(P.width=Math.min(P.width,P.height),P.height=Math.min(P.width,P.height));
K=P.getContext("2d");if(!K)throw Error("el");H=(this.JSC$18575_overlayMarginLeft-this.horizontalMargin)*F;F*=this.JSC$18575_overlayMarginTop-this.canvasMargin;X||(K.fillStyle="white",K.fillRect(0,0,P.width,P.height));K.drawImage(this.image,H,F,f,u,0,0,P.width,P.height);return P};var zw8=function(K,X,F,P,H){QM.call(this,K,X,F,P,void 0,H,8,!1)};
_.r(zw8,QM);zw8.prototype.drawOverlay=function(){var K=this.getContext(),X=this.JSC$18575_overlayWidth,F=this.JSC$18575_overlayHeight,P=this.JSC$18575_overlayMarginTop,H=this.JSC$18575_overlayMarginLeft;K.lineWidth=2;K.strokeStyle="#3EA6FF";K.beginPath();K.arc(H+X/2,P+F/2,X/2,0,2*Math.PI);K.stroke();K.strokeRect(H,P,X,F);sb1(this)};
var fMd={maxFileSizeMB:15,minWidth:98,minHeight:98},Dxv=["image/png","image/jpeg","image/gif"],MI=function(){var K=_.G.apply(this,arguments)||this;K.fileSelectorFocusListener=null;K.errorMessage=null;K.isLoading=!0;K.hideContainer=!0;K.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return K};
_.r(MI,_.G);_.z=MI.prototype;_.z.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.z.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.z.computePlaylistThumbnail=function(K){return K==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.z.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.xr(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.z.setErrorState=function(K){this.resetErrorState();K&&(this.errorMessage=K)};
_.z.showPopup=function(){var K=this;this.hideContainer=!1;_.cu(_.A9,function(){_.iX(K.hostElement,"yt-refit")});
this.isLoading=!1};
_.z.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.z.closePopup=function(){this.resetFileSelector();_.xr(this.hostElement,"yt-close-popup-action",[this.is])};
_.z.onCancelTap=function(){this.isPlaylistThumbnail||_.xr(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.z.openFileSelector=function(){var K=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.cu(_.A9,function(){setTimeout(function(){if(!K.fileSelector.files||K.fileSelector.files.length===0)K.onCancelTap();K.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(X){X instanceof Error?_.jF(X):_.wc(new _.nG(JSON.stringify(X)))}};
_.z.handleFileSelection=function(){var K=this,X,F,P,H,f,u;return _.q(function(J){switch(J.nextAddress){case 1:_.s2(J,2);if(!K.fileSelector.files||!K.imageEditorCanvas)return K.onCancelTap(),J.return();X=K.fileSelector.files[0];UrV(K.imageChecker,X);_.s2(J,4);return _.Y(J,FbJ(X),6);case 6:K.mimeType=J.yieldResult;_.Gy(J,5,2);break;case 4:_.qc(J,2),_.xr(K.hostElement,"yt-image-selection-error-action",[(F=K.data)==null?void 0:F.genericImageLoadErrorMessage]),K.onCancelTap();case 5:P=new FileReader;P.addEventListener("load",
function(){var Z,M;return _.q(function(n){if(n.nextAddress==1){if(!P.result)return _.yy(Error("gl")),n.return();Z=P.result;M=new Image;M.src=Z;M.onload=function(){try{var c=K.imageChecker;if(M.width<c.requirements.minWidth||M.height<c.requirements.minHeight)throw new emv(c.requirements.minWidth,c.requirements.minHeight);}catch(L){if(L instanceof emv){var B;_.xr(K.hostElement,"yt-image-selection-error-action",[(B=K.data)==null?void 0:B.imageDimensionErrorMessage]);K.logImageDimensionErrorVe()}else L instanceof
Error?_.jF(L):(c=new _.nG(JSON.stringify(L)),_.jF(c));K.onCancelTap()}K.showPopup()};
M.onerror=function(){var c;_.xr(K.hostElement,"yt-image-selection-error-action",[(c=K.data)==null?void 0:c.genericImageLoadErrorMessage]);K.onCancelTap()};
return _.Y(n,vF8(K.imageEditorCanvas,Z),2)}K.imageEditor=n.yieldResult;K.updatePositionOfAllCorners();K.addEventListeners(K.imageEditor);_.JT(n)})},!1);
P.readAsDataURL(X);_.Gy(J,0);break;case 2:H=_.qc(J),H instanceof YH?_.xr(K.hostElement,"yt-image-selection-error-action",[(f=K.data)==null?void 0:f.imageSizeErrorMessage]):(H instanceof Error?_.jF(H):_.wc(new _.nG(JSON.stringify(H))),_.xr(K.hostElement,"yt-image-selection-error-action",[(u=K.data)==null?void 0:u.genericImageLoadErrorMessage])),K.onCancelTap(),_.JT(J)}})};
_.z.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var K=_.Da(_.uH(),{veType:232707,visualElement:_.cO(232707)});K&&(K={visualElement:K},_.fB().reportShown(K))}};
_.z.handleImageSelectionErrorAction=function(K){this.isPlaylistThumbnail&&_.CAn(this.hostElement,K)};
_.z.convertToImageFormatBundle=function(K){var X=this,F,P,H;return _.q(function(f){switch(f.nextAddress){case 1:return F=K.toDataURL(X.outputMimeType,1),_.Y(f,PYk(F),2);case 2:P=f.yieldResult;_.s2(f,3);UrV(X.imageChecker,P);_.Gy(f,4);break;case 3:H=_.qc(f);if(!(H instanceof YH))throw H;_.yy(new _.nG("Output size is bigger than input size for image",X.mimeType,X.outputMimeType,P.size));F=K.toDataURL("image/jpeg",.95);return _.Y(f,PYk(F),6);case 6:P=f.yieldResult;case 4:return f.return({dataUrl:F,imageFile:P})}})};
_.z.handleUploadImageToScottyCommand=function(K){var X=this,F,P,H,f,u,J,Z,M,n,c;return _.q(function(B){switch(B.nextAddress){case 1:if(!X.imageEditor||!_.T(K,SKs))return B.return();F=_.T(K,SKs).scottyUploadUrl;if(!F){var L=new _.nG("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.jF(L);return B.return()}_.s2(B,2);X.setLoadingState();P=X.imageEditor.crop(!1,!1);return _.Y(B,X.convertToImageFormatBundle(P),4);case 4:return H=B.yieldResult,_.Y(B,KbV(H.imageFile,F),5);case 5:f=
B.yieldResult;((u=X.data)==null?0:u.onUploadEndpoint)?(J=X.buildUploadServiceEndpoint(f),X.ytComponentBehavior.resolveCommand(J),Z=_.T(J,_.TI),((M=Z)==null?0:M.params)?X.closePopup():X.resetFileSelector()):(_.xr(X.hostElement,"yt-image-updated-action",[H.dataUrl,f]),X.closePopup());_.Gy(B,0);break;case 2:n=_.qc(B),X.setErrorState((c=X.data)==null?void 0:c.uploadErrorMessage),n instanceof Error?_.jF(n):(L=new _.nG(JSON.stringify(n)),_.jF(L)),_.JT(B)}})};
_.z.buildUploadServiceEndpoint=function(K){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",K),this.data.onUploadEndpoint):null};
_.z.dataChanged=function(){var K=this,X;return _.q(function(F){if(F.nextAddress==1){if(!K.data||!K.canvasElement)return F.return();K.data.imageRatio&&K.data.minImageCropWidth||_.wc(new _.nG("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));X=function(P,H){return K.data.imageType==="IMAGE_TYPE_AVATAR"?new zw8(P,H,K.data.imageRatio,[K.data.minImageCropWidth,K.data.minImageCropWidth/K.data.imageRatio],K.hostElement):new QM(P,H,K.data.imageRatio,[K.data.minImageCropWidth,
K.data.minImageCropWidth/K.data.imageRatio],void 0,K.hostElement,8,!1)};
K.imageEditorCanvas=new hmv(K.canvasElement,X);return K.data.url?_.Y(F,vF8(K.imageEditorCanvas,K.data.url),3):(K.hideContainer=!0,K.openFileSelector(),F.jumpTo(0))}K.imageEditor=F.yieldResult;K.showPopup();K.addEventListeners(K.imageEditor);_.JT(F)})};
_.z.addEventListeners=function(K){this.removeEventListeners();var X=function(H){mrG(K,H)};
this.JSC$18583_mouseDownEvent=X;var F=function(H){Gko(K,H)};
this.JSC$18583_mouseMoveEvent=F;var P=function(){l5k(K)};
this.JSC$18583_mouseUpEvent=P;this.topLeftCorner.addEventListener("mousedown",X);this.topLeftCorner.addEventListener("mousemove",F);this.topLeftCorner.addEventListener("mouseup",P);this.topRightCorner.addEventListener("mousedown",X);this.topRightCorner.addEventListener("mousemove",F);this.topRightCorner.addEventListener("mouseup",P);this.bottomLeftCorner.addEventListener("mousedown",X);this.bottomLeftCorner.addEventListener("mousemove",F);this.bottomLeftCorner.addEventListener("mouseup",P);this.bottomRightCorner.addEventListener("mousedown",
X);this.bottomRightCorner.addEventListener("mousemove",F);this.bottomRightCorner.addEventListener("mouseup",P)};
_.z.removeEventListeners=function(){this.JSC$18583_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18583_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18583_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18583_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18583_mouseDownEvent));this.JSC$18583_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18583_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18583_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18583_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18583_mouseMoveEvent));this.JSC$18583_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18583_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18583_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18583_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18583_mouseUpEvent))};
_.z.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var K=document.activeElement;K&&K.shadowRoot&&K.shadowRoot.activeElement;)K=K.shadowRoot.activeElement;switch(K){case this.topLeftCorner:this.imageEditor.focusedCorner=1;break;case this.topRightCorner:this.imageEditor.focusedCorner=3;break;case this.bottomLeftCorner:this.imageEditor.focusedCorner=2;break;case this.bottomRightCorner:this.imageEditor.focusedCorner=4;break;default:return this.imageEditor.focusedCorner=0,!1}return!0};
_.z.updatePositionOfCorner=function(K,X){var F=K.y-X.offsetHeight/2+4;X.style.left=K.x-X.offsetWidth/2+16+"px";X.style.top=F+"px"};
_.z.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var K=_.D([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),X=K.next();!X.done;X=K.next()){X=X.value;var F=OU8(this.imageEditor,X.corner);this.updatePositionOfCorner(F,X.div)}};
_.z.onLeft=function(K){this.imageEditor&&this.setFocusInImageEditor()&&(gFd(this.imageEditor,0),this.updatePositionOfAllCorners(),K.preventDefault())};
_.z.onRight=function(K){this.imageEditor&&this.setFocusInImageEditor()&&(gFd(this.imageEditor,1),this.updatePositionOfAllCorners(),K.preventDefault())};
_.z.onUp=function(K){this.imageEditor&&this.setFocusInImageEditor()&&(gFd(this.imageEditor,2),this.updatePositionOfAllCorners(),K.preventDefault())};
_.z.onDown=function(K){this.imageEditor&&this.setFocusInImageEditor()&&(gFd(this.imageEditor,3),this.updatePositionOfAllCorners(),K.preventDefault())};
_.z.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.Oi.Object.defineProperties(MI.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&Dxv.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var K,X,F;((X=this.data)==null?0:X.imageRatio)&&((F=this.data)==null?0:F.minImageCropWidth)?K={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:K=fMd;return new RmG(K)}}});
MI.prototype.updatePositionOfAllCorners=MI.prototype.updatePositionOfAllCorners;MI.prototype.dataChanged=MI.prototype.dataChanged;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],MI.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],MI.prototype,"ytComponentBehavior",void 0);_.O([_.W(_.JP),_.g("design:type",Object)],MI.prototype,"ironA11yKeysBehavior",void 0);
_.O([_.fa("#canvas"),_.g("design:type",HTMLCanvasElement)],MI.prototype,"canvasElement",void 0);_.O([_.fa("#file-selector"),_.g("design:type",HTMLInputElement)],MI.prototype,"fileSelector",void 0);_.O([_.fa("#top-left-corner"),_.g("design:type",HTMLDivElement)],MI.prototype,"topLeftCorner",void 0);_.O([_.fa("#top-right-corner"),_.g("design:type",HTMLDivElement)],MI.prototype,"topRightCorner",void 0);
_.O([_.fa("#bottom-left-corner"),_.g("design:type",HTMLDivElement)],MI.prototype,"bottomLeftCorner",void 0);_.O([_.fa("#bottom-right-corner"),_.g("design:type",HTMLDivElement)],MI.prototype,"bottomRightCorner",void 0);_.O([_.h(),_.g("design:type",Object)],MI.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],MI.prototype,"errorMessage",void 0);_.O([_.h(),_.g("design:type",Object)],MI.prototype,"isLoading",void 0);_.O([_.h(),_.g("design:type",Object)],MI.prototype,"hideContainer",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.g("design:type",Boolean)],MI.prototype,"isPlaylistThumbnail",void 0);_.O([_.JA("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype",Promise)],MI.prototype,"dataChanged",null);_.O([_.Hc("image-updated"),_.Hc("yt-refit"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],MI.prototype,"updatePositionOfAllCorners",null);
MI=_.O([_.Tb({is:"yt-image-editor-renderer",disableElementRegistration:!0})],MI);
_.t(MI,"yt-image-editor-renderer",function(){if(dr8===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;WjF===void 0&&(WjF=document.createElement("template"));var P=WjF;F.call(X,P.content.cloneNode(!0),K.content.firstChild);dr8=K}K=dr8;return K},{mode:2});var uBw;var qYv;var nq=function(){return _.G.apply(this,arguments)||this};
_.r(nq,_.G);nq.prototype.updateMinutesFromBinding=function(K){this.handleMinutesChanged&&this.handleMinutesChanged(K)};
nq.prototype.updateSecondsFromBinding=function(K){this.handleSecondsChanged&&this.handleSecondsChanged(K)};
nq.prototype.updateDescriptionFromBinding=function(K){this.handleDescriptionChanged&&this.handleDescriptionChanged(K)};
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],nq.prototype,"ytComponentBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],nq.prototype,"data",void 0);_.O([_.h(),_.g("design:type",String)],nq.prototype,"minutes",void 0);_.O([_.h(),_.g("design:type",String)],nq.prototype,"seconds",void 0);_.O([_.h(),_.g("design:type",String)],nq.prototype,"description",void 0);_.O([_.h(),_.g("design:type",Function)],nq.prototype,"handleMinutesChanged",void 0);
_.O([_.h(),_.g("design:type",Function)],nq.prototype,"handleSecondsChanged",void 0);_.O([_.h(),_.g("design:type",Function)],nq.prototype,"handleDescriptionChanged",void 0);_.O([_.h(),_.g("design:type",Number)],nq.prototype,"characterLimit",void 0);_.O([_.h(),_.g("design:type",Number)],nq.prototype,"textNumRows",void 0);nq=_.O([_.Tb({is:"yt-report-details-form-content",disableElementRegistration:!0})],nq);
_.t(nq,"yt-report-details-form-content",function(){if(qYv===void 0){var K=document.createElement("template");_.w(K,'\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>');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;uBw===void 0&&(uBw=document.createElement("template"));var P=uBw;F.call(X,P.content.cloneNode(!0),K.content.firstChild);qYv=K}K=qYv;return K},{mode:2});var JxJ;var ZiW;var c7=function(){var K=_.G.apply(this,arguments)||this;K.updateMinutesFromBinding=function(X){K.minutes=X.detail.value};
K.updateSecondsFromBinding=function(X){K.seconds=X.detail.value};
K.updateDescriptionFromBinding=function(X){K.description=X.detail.value};
return K};
_.r(c7,_.G);_.z=c7.prototype;_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.z.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.submitButton":{id:"submit-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.z.ready=function(){_.C$(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.z.onSubmitYtAction=function(K){var X=K.detail;X.actionName==="yt-service-request"&&(X=X.args[1],X.flagEndpoint&&(K.stopPropagation(),this.refireAction(X)))};
_.z.refireAction=function(K){var X={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(X.vss_id=this.vssId);_.Kl(this.hostElement,[K,X]);this.submitDisabled=!0};
_.z.dataChanged=function(){var K=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var X=_.$f();X&&X.getPlayerPromise().then(function(F){var P=F.getOption("cc","track")||F.getOption("captions","track");P&&(K.vssId=P.vss_id);F=F.getCurrentTime();K.minutes=Math.floor(F/60).toString();K.seconds=(Math.floor(F)%60).toString()})};
_.z.updateSubmitButtonState=function(){var K;((K=this.data)==null?0:K.isFreeformReason)?this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds===""||!this.description||this.description.length<3):this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds==="")};
_.z.onYtServiceRequestCompleted=function(){_.xr(this.hostElement,"yt-close-popup-action")};
_.z.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.Oi.Object.defineProperties(c7.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var K;return((K=this.data)==null?void 0:K.textNumRows)||4}}});
c7.prototype.onYtServiceRequestError=c7.prototype.onYtServiceRequestError;c7.prototype.onYtServiceRequestCompleted=c7.prototype.onYtServiceRequestCompleted;c7.prototype.updateSubmitButtonState=c7.prototype.updateSubmitButtonState;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],c7.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);
_.O([_.h({observer:"dataChanged"}),_.g("design:type",Object)],c7.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Boolean)],c7.prototype,"submitDisabled",void 0);_.O([_.h(),_.g("design:type",String)],c7.prototype,"minutes",void 0);_.O([_.h(),_.g("design:type",String)],c7.prototype,"seconds",void 0);_.O([_.h(),_.g("design:type",String)],c7.prototype,"description",void 0);_.O([_.h(),_.g("design:type",String)],c7.prototype,"vssId",void 0);
_.O([_.h({value:_.e8("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.g("design:type",Boolean)],c7.prototype,"isMusic",void 0);_.O([_.U("data"),_.g("design:type",Number),_.g("design:paramtypes",[])],c7.prototype,"characterLimit",null);_.O([_.U("data"),_.g("design:type",Number),_.g("design:paramtypes",[])],c7.prototype,"textNumRows",null);
_.O([_.JA("minutes","seconds","description","submitDisabled"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],c7.prototype,"updateSubmitButtonState",null);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],c7.prototype,"onYtServiceRequestCompleted",null);
_.O([_.Hc("yt-service-request-error"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],c7.prototype,"onYtServiceRequestError",null);c7=_.O([_.Tb({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],c7);
_.t(c7,"yt-report-details-form-renderer",function(){if(ZiW===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;JxJ===void 0&&(JxJ=document.createElement("template"));var P=JxJ;F.call(X,P.content.cloneNode(!0),K.content.firstChild);ZiW=K}K=ZiW;return K});var YY1;var QbV;var MXv;var nQV;var pq=function(){return _.G.apply(this,arguments)||this};
_.r(pq,_.G);
pq.prototype.onCheckedChanged_=function(){if(this.data){var K=_.C$(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.xr(this.hostElement,"yt-additional-detail-checkbox-update",[K]):this.data.identifier==="yt-hide-user-checkbox"?_.xr(this.hostElement,"yt-hide-user-checkbox-update",[K]):K&&this.data.enableCommand?_.xr(this.hostElement,"yt-modify-report-form-command",[_.T(this.data.enableCommand,w0J)]):!K&&this.data.disableCommand&&_.xr(this.hostElement,
"yt-modify-report-form-command",[_.T(this.data.enableCommand,w0J)])}};
pq.prototype.onLabelTap_=function(K){K.target.tagName!="A"&&(_.C$(this.hostElement).querySelector("#checkbox").checked=!_.C$(this.hostElement).querySelector("#checkbox").checked)};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],pq.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],pq.prototype,"data",void 0);pq=_.O([_.Tb({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],pq);
_.t(pq,"yt-boolean-form-field-v2-renderer",function(){if(nQV===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;MXv===void 0&&(MXv=document.createElement("template"));var P=MXv;F.call(X,P.content.cloneNode(!0),K.content.firstChild);nQV=K}K=nQV;return K});var B7=function(){var K=_.G.apply(this,arguments)||this;K.canShowAdditionalDetailCheckbox=!1;K.canShowCheckbox=!1;K.keepDropdownFocusedAfterSelection=!0;return K};
_.r(B7,_.G);B7.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}}}}};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],B7.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],B7.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],B7.prototype,"canShowAdditionalDetailCheckbox",void 0);_.O([_.h(),_.g("design:type",Object)],B7.prototype,"canShowCheckbox",void 0);_.O([_.h(),_.g("design:type",Object)],B7.prototype,"keepDropdownFocusedAfterSelection",void 0);
B7=_.O([_.Tb({is:"yt-report-form-modal-content",disableElementRegistration:!0})],B7);
_.t(B7,"yt-report-form-modal-content",function(){if(QbV===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;YY1===void 0&&(YY1=document.createElement("template"));var P=YY1;F.call(X,P.content.cloneNode(!0),K.content.firstChild);QbV=K}K=QbV;return K},{mode:2});var cx8;var ps1;var Sc=function(){var K=_.G.apply(this,arguments)||this;K.submitting=!1;K.submitButtonDisabled=!0;K.command=null;K.canShowCheckbox=!1;K.canShowAdditionalDetailCheckbox=!1;K.canShowNextButton=!1;K.additionalDetailCheckboxChecked=!1;K.refitJob=0;K.keepDropdownFocusedAfterSelection=!0;K.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 K};
_.r(Sc,_.G);_.z=Sc.prototype;_.z.created=function(){this.refitJob=0};
_.z.attached=function(){this.JSC$18606_scroller&&(this.JSC$18606_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18606_scroller.attached&&typeof this.JSC$18606_scroller.attached==="function"&&this.JSC$18606_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.dataChanged=function(K){K&&(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,K.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),K.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.z.onYtPopupOpened=function(){var K=_.$f();K&&K.getPlayerPromise().then(function(X){X.pauseVideo()})};
_.z.onYtNavigate=function(K){_.T(K.detail.endpoint,_.nAu)&&(K.stopPropagation(),this.hideReportForm=!0)};
_.z.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.z.onYtServiceRequestCompleted=function(K,X){var F=X.actions;if(F){if(F.length===1&&_.T(F[0],_.PW)){var P;F=((P=_.T(F[0],_.PW))==null?void 0:P.commands)||[]}P=0;for(var H=F.length;P<H;P++)_.T(F[P],_.pz)&&(K.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(F[P]))}if(X.data&&(K=this.get("feedbackResponses",X.data)))for(X=0;X<K.length;X++)if(K[X].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.z.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.z._onDescendantIronResize=function(K){K.stopPropagation();return!1};
_.z.handleReportFormEndpointUpdateAction=function(K){if(K.submitEndpoint){var X=this.command=K.submitEndpoint;X=_.T(X,_.Ptt);if(X==null?0:X.additionalDetailCheckboxChecked)X.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else K.submitNavigationEndpoint?(this.command=K.submitNavigationEndpoint,this.toggleSubmitButton(!1)):K.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:K.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;K.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",K));this.refit()};
_.z.handleConfirmDialogCloseAction=function(K){K.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.z.submitButtonDisabledChanged=function(){var K=this.hostElement.parentElement;K&&K.invalidateTabbables&&K.invalidateTabbables()};
_.z.handleModifyReportFormCommand=function(K){K=this.get("action",K);K==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:K==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:K==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:K==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:K==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:K==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.z.updateDialogStyling=function(){var K,X,F,P,H,f=((H=(K=this.data)==null?void 0:(X=K.optionsSupportedRenderers)==null?void 0:(F=X.optionsRenderer)==null?void 0:(P=F.items)==null?void 0:P.length)!=null?H:0)<=2?0:240;_.XU(this.hostElement,{"--yt-report-form-modal-renderer-min-width":f+"px"})};
_.z.toggleSubmitButton=function(K){this.submitButtonDisabled=!K;this.submitButtonDisabled=K};
_.z.computeSubmitButtonData=function(K,X){var F={};_.T(X,_.nAu)?F.navigationEndpoint=X:F.command=X||void 0;K&&K.buttonRenderer&&_.T8.extend(F,K.buttonRenderer);return F};
_.z.computeNextButtonData=function(K,X){var F={};if(!K||!K.buttonRenderer)return F;_.T8.extend(F,K.buttonRenderer);if(!X)return F;if(_.T(X,_.nAu))F.navigationEndpoint=$YG(X);else if(F.command=$YG(X),K=_.T(F.command,_.Ptt))K.legalCheckboxChecked=!0;return F};
_.z.computeShowNextButton=function(K,X,F){return!!K&&X&&F};
_.z.refit=function(){var K=this;this.refitJob||(this.refitJob=_.A9.addLowPriorityJob(function(){_.iX(K.hostElement,"yt-refit");K.refitJob=0}))};
_.z.handleAdditionalDetailCheckboxUpdateAction=function(K){this.additionalDetailCheckboxChecked=K;_.T(this.command,_.Ptt).additionalDetailCheckboxChecked=K};
_.Oi.Object.defineProperties(Sc,{template:{configurable:!0,enumerable:!0,get:function(){if(ps1===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;cx8===void 0&&(cx8=document.createElement("template"));var P=cx8;F.call(X,P.content.cloneNode(!0),K.content.firstChild);ps1=K}K=ps1;return K}}});
Sc.prototype.onYtServiceRequestError=Sc.prototype.onYtServiceRequestError;Sc.prototype.onYtServiceRequestCompleted=Sc.prototype.onYtServiceRequestCompleted;Sc.prototype.onYtServiceRequestSent=Sc.prototype.onYtServiceRequestSent;Sc.prototype.onYtNavigate=Sc.prototype.onYtNavigate;Sc.prototype.onYtPopupOpened=Sc.prototype.onYtPopupOpened;_.O([_.W(_.sT.YtOpenPopupBehavior),_.g("design:type",Object)],Sc.prototype,"openPopupBehavior",void 0);
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Sc.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Sc.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],Sc.prototype,"eventForwardingBehavior",void 0);_.O([_.W(_.SL),_.g("design:type",Object)],Sc.prototype,"ironResizableBehavior",void 0);_.O([_.h({observer:"dataChanged"}),_.g("design:type",Object)],Sc.prototype,"data",void 0);
_.O([_.h(),_.g("design:type",Object)],Sc.prototype,"submitting",void 0);_.O([_.h({observer:"submitButtonDisabledChanged"}),_.g("design:type",Object)],Sc.prototype,"submitButtonDisabled",void 0);_.O([_.h(),_.g("design:type",Object)],Sc.prototype,"command",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],Sc.prototype,"hideReportForm",void 0);_.O([_.h(),_.g("design:type",Object)],Sc.prototype,"canShowCheckbox",void 0);
_.O([_.h(),_.g("design:type",Object)],Sc.prototype,"canShowAdditionalDetailCheckbox",void 0);_.O([_.h(),_.g("design:type",Object)],Sc.prototype,"canShowNextButton",void 0);_.O([_.h(),_.g("design:type",Object)],Sc.prototype,"additionalDetailCheckboxChecked",void 0);_.O([_.h(),_.g("design:type",Object)],Sc.prototype,"refitJob",void 0);_.O([_.h(),_.g("design:type",Object)],Sc.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.O([_.fa("#scroller"),_.g("design:type",Object)],Sc.prototype,"JSC$18606_scroller",void 0);_.O([_.Hc("yt-popup-opened"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Sc.prototype,"onYtPopupOpened",null);_.O([_.Hc("yt-navigate"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Sc.prototype,"onYtNavigate",null);
_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.yk]),_.g("design:returntype")],Sc.prototype,"onYtServiceRequestSent",null);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.G9]),_.g("design:returntype")],Sc.prototype,"onYtServiceRequestCompleted",null);
_.O([_.Hc("yt-service-request-error"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],Sc.prototype,"onYtServiceRequestError",null);Sc=_.O([_.Tb({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],Sc);var BuG;var SYV;var o6=function(){return _.G.apply(this,arguments)||this};
_.r(o6,_.G);_.z=o6.prototype;_.z.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.z.onVisible=function(){if(_.S("web_ephemeral_actions_focus")){var K,X;(X=_.i9().resolve(_.Nu(_.sR)))==null||X.enqueue({label:_.lj((K=this.data)==null?void 0:K.messageTitle),elementToFocus:this.hostElement})}};
_.z.onThumbnailLoaded=function(){_.iX(this.hostElement,"yt-refit")};
_.z.onDismissTap=function(){_.xr(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.z.computeAlternateIcon=function(K){return K?K==="BACKSTAGE_ARTWORK"?"backstage:artwork":K:null};
_.z.computeFontFamily=function(K){return K==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.z.computeBackgroundStyle=function(K,X){if(K=this.computeBackgroundImage(K,X))if(K=_.CB(K.thumbnails))return'background-image: url("'+K+'");'};
_.z.computeHasFullHeightImage=function(K){return!(!(K&&K.thumbnails&&K.thumbnails.length>0)||this.modern)};
_.z.isModernStyle=function(K){return K.style==="STYLE_MODERN"};
_.z.computeIcon=function(K,X){if(K&&K.icon)return X?K.iconDark:K.icon};
_.z.computeBackgroundImage=function(K,X){if(K&&K.backgroundImage)return X?K.backgroundImageDark:K.backgroundImage};
_.z.computeLogo=function(K,X){if(K&&K.logo)return X?K.logoDark:K.logo};
_.z.computeShouldShowModernIcon=function(K,X){return K&&!!X};
_.z.getLogoContainerClassName=function(K){return this.logoWithPadding(K)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.z.getLogoImageId=function(K){return this.logoWithPadding(K)?"mealbar-logo-with-padding":"mealbar-logo"};
_.z.logoWithPadding=function(K){var X,F,P;return(K=(X=this.computeLogo(K,this.isDarkTheme))==null?void 0:(F=X.thumbnails)==null?void 0:(P=F[0])==null?void 0:P.height)&&K%31===0?!0:!1};
o6.prototype.onThumbnailLoaded=o6.prototype.onThumbnailLoaded;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],o6.prototype,"ytRendererBehavior",void 0);_.O([_.h({}),_.g("design:type",Object)],o6.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.g("design:type",Boolean)],o6.prototype,"modern",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],o6.prototype,"isDarkTheme",void 0);
_.O([_.h({computed:"computeIcon(data, isDarkTheme)"}),_.g("design:type",Object)],o6.prototype,"icon",void 0);_.O([_.h({computed:"computeLogo(data, isDarkTheme)"}),_.g("design:type",Object)],o6.prototype,"logo",void 0);_.O([_.h({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.g("design:type",Object)],o6.prototype,"backgroundStyle",void 0);_.O([_.h({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.g("design:type",Object)],o6.prototype,"alternateIcon",void 0);
_.O([_.h({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.g("design:type",Boolean)],o6.prototype,"hasFullHeightImage",void 0);_.O([_.h({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.g("design:type",Boolean)],o6.prototype,"useYoutubeSans",void 0);_.O([_.h({computed:"computeShouldShowModernIcon(modern, icon)"}),_.g("design:type",Boolean)],o6.prototype,"shouldShowModernIcon",void 0);
_.O([_.Hc("yt-img-shadow-loaded"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],o6.prototype,"onThumbnailLoaded",null);o6=_.O([_.Tb({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],o6);
_.t(o6,"yt-mealbar-promo-renderer",function(){if(SYV===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;BuG===void 0&&(BuG=document.createElement("template"));var P=BuG;F.call(X,P.content.cloneNode(!0),K.content.firstChild);SYV=K}K=SYV;return K},{mode:2});var oQ5;var LL5;var Lq=function(){return _.G.apply(this,arguments)||this};
_.r(Lq,_.G);_.z=Lq.prototype;_.z.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}},"data.acceptButton":{id:"accept-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}}}};
_.z.computeHasButtons_=function(K){return!(!K.dismissButton&&!K.acceptButton)};
_.z.computeStyle_=function(K){return K||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.z.observeImpressionEndpoints_=function(){var K=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(X){X.clickTrackingParams&&delete X.clickTrackingParams;_.Kl(K.hostElement,[X])})};
_.z.onTap_=function(){_.xr(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
Lq.prototype.observeImpressionEndpoints_=Lq.prototype.observeImpressionEndpoints_;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Lq.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],Lq.prototype,"ytEventForwardingBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Lq.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Lq.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],Lq.prototype,"positionType",void 0);_.O([_.h({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.g("design:type",Boolean)],Lq.prototype,"hasButtons_",void 0);_.O([_.h({value:function(){return this.onTap_.bind(this)}}),
_.g("design:type",Function)],Lq.prototype,"boundOnTap_",void 0);_.O([_.h({value:{style:"mono-inverse"}}),_.g("design:type",Object)],Lq.prototype,"buttonOverride",void 0);_.O([_.so("data.promoConfig.impressionEndpoints"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Lq.prototype,"observeImpressionEndpoints_",null);Lq=_.O([_.Tb({is:"yt-tooltip-renderer",disableElementRegistration:!0})],Lq);
_.t(Lq,"yt-tooltip-renderer",function(){if(LL5===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;oQ5===void 0&&(oQ5=document.createElement("template"));var P=oQ5;F.call(X,P.content.cloneNode(!0),K.content.firstChild);LL5=K}K=LL5;return K},{mode:2});var Tud;var rx5;var Axk={},jb5=(Axk.WEB_REMIX="music.youtube.com",Axk),Tc=function(){var K=_.G.apply(this,arguments)||this;K.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return K};
_.r(Tc,_.G);_.z=Tc.prototype;_.z.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.created=function(){this.embedHost_=jb5[_.e8("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.z.ready=function(){_.C$(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.z.computeEmbedCode_=function(K,X,F,P,H){if(!K)return"";var f=K.videoId,u=K.fullListId,J=[];K.attributionId&&J.push("si="+K.attributionId);P||J.push("controls=0");F&&Number(X)>0&&J.push("start="+X);u&&(f="videoseries",J.push("list="+u));F="https://"+(H?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+f;K.clipId&&(J.push("clip="+K.clipId),J.push("clipt="+K.clipTiming));X=J.length>0?F+"?"+J.join("&amp;"):F;K.encryptedEmbedConfig&&J.push("embed_config="+JSON.stringify({enc:K.encryptedEmbedConfig}));
J=J.length>0?F+"?"+J.join("&amp;"):F;_.S("web_sharing_embed_preview_killswitch")?_.C$(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(J,K.previewWidth||854,K.previewHeight||480):(_.cz(this.videoPreviewContainer),_.C$(this.videoPreviewContainer).appendChild(this.buildIframeElement(J)));return this.getEmbedCode_(X,K.width||560,K.height||315)};
_.z.buildIframeElement=function(K){var X=document.createElement("iframe"),F,P;X.width=""+((P=(F=this.data)==null?void 0:F.previewWidth)!=null?P:854);var H,f;X.height=""+((f=(H=this.data)==null?void 0:H.previewHeight)!=null?f:480);_.pJn(X,2,K);X.title="YouTube video player";X.frameBorder="0";X.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";X.referrerPolicy="strict-origin-when-cross-origin";X.allowFullscreen=!0;return X};
_.z.computeIsSquareAspectRatio_=function(K){return K.previewHeight&&K.previewWidth?K.previewHeight==K.previewWidth:!1};
_.z.computeShowEmbedOptions_=function(K){return!!K.enablePrivacyModeOptionLabel||!!K.showPlayerControlsOptionLabel};
_.z.getEmbedCode_=function(K,X,F){return'<iframe width="'+X+'" height="'+F+'" src="'+K+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>'};
_.z.handleSignalActionCopyShareEmbedUrl_=function(){_.C$(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.z.handleSetTimestamp_=function(K){this.startAtTimeStamp_=(this.startAtChecked_=K.isSet)?K.timestamp:0};
_.z.closePanel_=function(){_.xr(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.z.onEmbedCode_=function(){_.C$(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.z.onYtPopupClosed_=function(){_.cz(_.C$(this.hostElement).querySelector("#video-preview"))};
_.z.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.T(this.data.actionButtons[0],_.jg)&&this.ytRendererBehavior.logExplicitClick(_.T(this.data.actionButtons[0],_.jg))};
Tc.prototype.onYtPopupClosed_=Tc.prototype.onYtPopupClosed_;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Tc.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Tc.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],Tc.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Tc.prototype,"data",void 0);
_.O([_.h({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.g("design:type",String)],Tc.prototype,"embedCode_",void 0);_.O([_.h({value:!0}),_.g("design:type",Boolean)],Tc.prototype,"isPlayerControlsOptionChecked_",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],Tc.prototype,"isPrivacyModeOptionChecked_",void 0);_.O([_.h({value:!1,notify:!0}),_.g("design:type",Boolean)],Tc.prototype,"startAtChecked_",void 0);
_.O([_.h({value:0}),_.g("design:type",Number)],Tc.prototype,"startAtTimeStamp_",void 0);_.O([_.h({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],Tc.prototype,"isSquareAspectRatio_",void 0);_.O([_.fa("#video-preview"),_.g("design:type",HTMLElement)],Tc.prototype,"videoPreviewContainer",void 0);_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Tc.prototype,"onYtPopupClosed_",null);
Tc=_.O([_.Tb({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],Tc);
_.t(Tc,"yt-sharing-embed-renderer",function(){if(rx5===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;Tud===void 0&&(Tud=document.createElement("template"));var P=Tud;F.call(X,P.content.cloneNode(!0),K.content.firstChild);rx5=K}K=rx5;return K},{mode:2});var wsw={};
wsw.YtUnlimitedFamilyInterstitialBehavior=[_.sT.YtOpenPopupBehavior,_.NT.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(K){K=_.GnZ(_.vI(K),"yt-button-renderer");return K?K.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(K){this.dialogHistory_.push(K)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var K=this.popFromHistory();if(K){var X={openPopupAction:{popupType:"DIALOG",popup:{}}};X.openPopupAction.popup[K.renderer]=K.data;this.showingPreviousDialog_=!0;this.openPopup(X)}},
handleOpenPopupAction_:function(K){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var X=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(P){return!!K.openPopupAction.popup[P]}),F=this.getElementName_();
X&&this.data&&(this.pushToHistory({renderer:F,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(K){if(K=_.T(K,Xxt))this.loading=!0,_.xr(this.hostElement,"yt-open-create-family-dialog",[K,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var K=this.hostElement.nodeName.split("-").slice(1).map(function(X){return""+X[0].toUpperCase()+X.slice(1).toLowerCase()}).join("");
return K[0].toLowerCase()+K.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var yx8;var WL1;var re=function(){return _.G.apply(this,arguments)||this};
_.r(re,_.G);_.z=re.prototype;_.z.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"footer-button":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0,"footer-button":!0}}}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.xr(this.hostElement,"yt-register-create-family-dialog");_.C$(this.hostElement).querySelector("#thumbnail").onShow()};
_.z.fireOnCloseCommand_=function(){var K;((K=this.data)==null?0:K.onCloseCommand)&&_.X0(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.z.onYtServiceRequestSent_=function(K,X){X&&X.endpoint&&_.T(X.endpoint,_.ss)||(this.loading=!0)};
_.z.onYtServiceRequestCompleted_=function(){var K=this.hostElement.parentElement;K.close&&K.close();this.loading=!1};
_.z.openPopupHandler_=function(K){if(K.detail==this){var X;((X=this.data)==null?0:X.onOpenCommands)&&_.X0(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.z.closePopupHandler_=function(K,X){this.fireOnCloseCommand_();if(X&&X.canceled===!0||X&&X.canceled===!1&&X.confirmed===!1){var F;((F=this.data)==null?0:F.onDismissCommands)&&_.X0(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.z.dataChanged_=function(){this.loading=!1};
re.prototype.dataChanged_=re.prototype.dataChanged_;re.prototype.closePopupHandler_=re.prototype.closePopupHandler_;re.prototype.openPopupHandler_=re.prototype.openPopupHandler_;re.prototype.onYtServiceRequestCompleted_=re.prototype.onYtServiceRequestCompleted_;re.prototype.onYtServiceRequestSent_=re.prototype.onYtServiceRequestSent_;_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],re.prototype,"ytEventForwardingBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],re.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(wsw.YtUnlimitedFamilyInterstitialBehavior),_.g("design:type",Object)],re.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],re.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],re.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],re.prototype,"loading",void 0);_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.yk]),_.g("design:returntype")],re.prototype,"onYtServiceRequestSent_",null);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.G9]),_.g("design:returntype")],re.prototype,"onYtServiceRequestCompleted_",null);
_.O([_.Hc("yt-popup-opened"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],re.prototype,"openPopupHandler_",null);_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],re.prototype,"closePopupHandler_",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],re.prototype,"dataChanged_",null);
re=_.O([_.Tb({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],re);
_.t(re,"yt-unlimited-family-message-interstitial-renderer",function(){if(WL1===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;yx8===void 0&&(yx8=document.createElement("template"));var P=yx8;F.call(X,P.content.cloneNode(!0),K.content.firstChild);WL1=K}K=WL1;return K},{mode:2});var dxo;var ewt;var Az=function(){return _.G.apply(this,arguments)||this};
_.r(Az,_.G);Az.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"}}}};
Az.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.C$(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(K){K.onShow()});
_.C$(this.hostElement).querySelector("#main-thumbnail").onShow()};
Az.prototype.onButtonTap_=function(K){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(K)};
Az.prototype.computeMainThumbnailWidth_=function(K){return K&&K.length!==0?72:96};
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],Az.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Az.prototype,"ytRendererBehavior",void 0);_.O([_.W(wsw.YtUnlimitedFamilyInterstitialBehavior),_.g("design:type",Object)],Az.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Az.prototype,"data",void 0);
_.O([_.h({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.g("design:type",Number)],Az.prototype,"mainThumbnailWidth_",void 0);_.O([_.h({value:function(){return this.onButtonTap_.bind(this)}}),
_.g("design:type",Function)],Az.prototype,"boundButtonTap_",void 0);Az=_.O([_.Tb({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],Az);
_.t(Az,"yt-unlimited-family-profile-interstitial-renderer",function(){if(ewt===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;dxo===void 0&&(dxo=document.createElement("template"));var P=dxo;F.call(X,P.content.cloneNode(!0),K.content.firstChild);ewt=K}K=ewt;return K},{mode:2});var Rwo;var UxG;var jc=function(){var K=_.G.apply(this,arguments)||this;K.sliderAriaValueText_=null;K.selectedIndex_=0;K.messages={PAUSE_SLIDER:_.uY("PAUSE_SLIDER",void 0,"Pause Duration")};return K};
_.r(jc,_.G);_.z=jc.prototype;_.z.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[onButtonTap_]]"}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},properties:{"on-tap":"[[onSecondaryTap_]]"}}}}}};
_.z.onPopupOpened_=function(K){K.detail==this&&_.S("enable_premium_voluntary_pause")&&(_.xr(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z.setDialogData=function(K){this.data=K;this.resetSlider_()};
_.z.dataChanged_=function(){this.data&&this.resetSlider_()};
_.z.onSubmitTap_=function(){if(this.data.confirmCommand){var K=this.data.confirmCommand;_.T(K,_.cpW)&&_.Kl(this.hostElement,[K,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.z.onExitButtonTap_=function(){_.xr(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.z.closePopupHandler_=function(K,X){(X&&X.canceled===!0||X.canceled===!1&&X.confirmed===!1)&&this.handleOnDismissCommands_()};
_.z.onSliderChange_=function(){this.selectedIndex_=_.C$(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.z.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.z.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.z.resetSlider_=function(){if(this.data){var K=this.data.defaultEndOptionIndex||0,X=_.C$(this.hostElement).querySelector("#id-pause-slider");if(X.immediateValue<K)for(;X.immediateValue!=K;)X.increment();else if(K<X.immediateValue)for(;X.immediateValue!=K;)X.decrement();this.selectedIndex_=K;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.z.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.X0(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.z.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.X0(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.z.onYtServiceRequestSent=function(){this.loading=!0};
_.z.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
jc.prototype.onYtServiceRequestCompleted=jc.prototype.onYtServiceRequestCompleted;jc.prototype.onYtServiceRequestSent=jc.prototype.onYtServiceRequestSent;jc.prototype.closePopupHandler_=jc.prototype.closePopupHandler_;jc.prototype.dataChanged_=jc.prototype.dataChanged_;jc.prototype.onPopupOpened_=jc.prototype.onPopupOpened_;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],jc.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],jc.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],jc.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],jc.prototype,"loading",void 0);_.O([_.h(),_.g("design:type",Number)],jc.prototype,"selectIndexMax_",void 0);_.O([_.h(),_.g("design:type",Object)],jc.prototype,"selectedData_",void 0);
_.O([_.h(),_.g("design:type",Object)],jc.prototype,"sliderAriaValueText_",void 0);_.O([_.h({value:function(){return this.onSubmitTap_.bind(this)}}),
_.g("design:type",Function)],jc.prototype,"onButtonTap_",void 0);_.O([_.h({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.g("design:type",Function)],jc.prototype,"onSecondaryTap_",void 0);_.O([_.h(),_.g("design:type",Object)],jc.prototype,"messages",void 0);_.O([_.Hc("yt-popup-opened"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],jc.prototype,"onPopupOpened_",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],jc.prototype,"dataChanged_",null);
_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],jc.prototype,"closePopupHandler_",null);_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.yk]),_.g("design:returntype")],jc.prototype,"onYtServiceRequestSent",null);
_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.G9]),_.g("design:returntype")],jc.prototype,"onYtServiceRequestCompleted",null);jc=_.O([_.Tb({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],jc);
_.t(jc,"yt-unplugged-pause-membership-dialog-renderer",function(){if(UxG===void 0){var K=document.createElement("template");_.w(K,'\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>');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;Rwo===void 0&&(Rwo=document.createElement("template"));var P=Rwo;F.call(X,P.content.cloneNode(!0),K.content.firstChild);UxG=K}K=UxG;return K},{mode:2});var hwV;var mxG;var we=function(){return _.G.apply(this,arguments)||this};
_.r(we,_.G);we.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.T9("vcBalanceRenderer")}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],we.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],we.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],we.prototype,"data",void 0);we=_.O([_.Tb({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],we);
_.t(we,"yt-vc-offer-layout-header-renderer",function(){if(mxG===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;hwV===void 0&&(hwV=document.createElement("template"));var P=hwV;F.call(X,P.content.cloneNode(!0),K.content.firstChild);mxG=K}K=mxG;return K},{mode:2});var Gz8;var lMk;var vQs;var aMk;var yM=function(){return _.G.apply(this,arguments)||this};
_.r(yM,_.G);yM.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Oi.Object.defineProperties(yM.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)}}});
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],yM.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],yM.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.ZmL.YtTappableItemBehavior),_.g("design:type",Object)],yM.prototype,"ytTappableItemBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],yM.prototype,"data",void 0);
_.O([_.h({reflectToAttribute:!0}),_.U("data.accessibilityText"),_.g("design:type",String),_.g("design:paramtypes",[])],yM.prototype,"ariaLabel",null);_.O([_.h({reflectToAttribute:!0}),_.U("data.style"),_.g("design:type",String),_.g("design:paramtypes",[])],yM.prototype,"vcOfferStyle",null);_.O([_.U("data.style","data.titleText"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],yM.prototype,"showTitleText",null);yM=_.O([_.Tb({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],yM);
_.t(yM,"yt-vc-offer-renderer",function(){if(aMk===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;vQs===void 0&&(vQs=document.createElement("template"));var P=vQs;F.call(X,P.content.cloneNode(!0),K.content.firstChild);aMk=K}K=aMk;return K},{mode:2});var W7=function(){return _.G.apply(this,arguments)||this};
_.r(W7,_.G);W7.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}}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],W7.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],W7.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],W7.prototype,"data",void 0);W7=_.O([_.Tb({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],W7);
_.t(W7,"yt-vc-offer-layout-renderer",function(){if(lMk===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;Gz8===void 0&&(Gz8=document.createElement("template"));var P=Gz8;F.call(X,P.content.cloneNode(!0),K.content.firstChild);lMk=K}K=lMk;return K},{mode:2});var tXk;var $x8;var OiW;var VX5;var de=function(){return _.G.apply(this,arguments)||this};
_.r(de,_.G);de.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}}}}}};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],de.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],de.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],de.prototype,"data",void 0);de=_.O([_.Tb({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],de);
_.t(de,"yt-ypc-offers-modal-top-bar-renderer",function(){if(VX5===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;OiW===void 0&&(OiW=document.createElement("template"));var P=OiW;F.call(X,P.content.cloneNode(!0),K.content.firstChild);VX5=K}K=VX5;return K},{mode:2});var ec=function(){return _.G.apply(this,arguments)||this};
_.r(ec,_.G);ec.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"}}}}};
ec.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
ec.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var K=this.scrollable;K.attached&&typeof K.attached==="function"&&K.attached()};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],ec.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],ec.prototype,"ytRendererstamperBehavior",void 0);_.O([_.fa("#scrollable"),_.g("design:type",Object)],ec.prototype,"scrollable",void 0);_.O([_.h(),_.g("design:type",Object)],ec.prototype,"data",void 0);ec=_.O([_.Tb({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],ec);
_.t(ec,"yt-ypc-offers-modal-renderer",function(){if($x8===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;tXk===void 0&&(tXk=document.createElement("template"));var P=tXk;F.call(X,P.content.cloneNode(!0),K.content.firstChild);$x8=K}K=$x8;return K},{mode:2});var gQV;var EQ8;var R6=function(){return _.G.apply(this,arguments)||this};
_.r(R6,_.G);_.z=R6.prototype;_.z.configureRendererStamper=function(){return{"data.continueButton":{id:"continue-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[bindOnContinueTapped_]]"}}}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.C$(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.z.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.xr(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.z.onYtPopupOpened_=function(K,X){(X==null?void 0:X.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.X0(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.z.onYtPopupClosed_=function(K,X){this.continueButtonTapped||X&&(X.canceled===!0||X.canceled===!1&&X.confirmed===!1)&&this.data.onDismissCommands&&_.X0(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.z.onYtServiceRequestError_=function(K){this.set("showSpinner",!1);_.b6(this.hostElement,K.detail.error.message)};
_.z.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.S("enable_ypc_spinners")?_.xr(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
R6.prototype.onYtServiceRequestError_=R6.prototype.onYtServiceRequestError_;R6.prototype.onYtPopupClosed_=R6.prototype.onYtPopupClosed_;R6.prototype.onYtPopupOpened_=R6.prototype.onYtPopupOpened_;R6.prototype.onYtServiceRequestCompleted_=R6.prototype.onYtServiceRequestCompleted_;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],R6.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.h(),_.g("design:type",Object)],R6.prototype,"data",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],R6.prototype,"showSpinner",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],R6.prototype,"continueButtonTapped",void 0);_.O([_.h({value:function(){return this.onContinueTapped_.bind(this)}}),
_.g("design:type",Function)],R6.prototype,"bindOnContinueTapped_",void 0);_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],R6.prototype,"onYtServiceRequestCompleted_",null);_.O([_.Hc("yt-popup-opened"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],R6.prototype,"onYtPopupOpened_",null);
_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],R6.prototype,"onYtPopupClosed_",null);_.O([_.Hc("yt-service-request-error"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],R6.prototype,"onYtServiceRequestError_",null);R6=_.O([_.Tb({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],R6);
_.t(R6,"yt-ypc-upgrade-dialog-renderer",function(){if(EQ8===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;gQV===void 0&&(gQV=document.createElement("template"));var P=gQV;F.call(X,P.content.cloneNode(!0),K.content.firstChild);EQ8=K}K=EQ8;return K},{mode:2});var bik;var C8J;var U3=function(){return _.G.apply(this,arguments)||this};
_.r(U3,_.G);U3.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
U3.prototype.computeHasButtons_=function(K){return!(!K.dismissButton&&!K.confirmButton)};
U3.prototype.computeStyle_=function(K){return K||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],U3.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],U3.prototype,"ytEventForwardingBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],U3.prototype,"ytRendererstamperBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],U3.prototype,"data",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],U3.prototype,"positionType",void 0);
_.O([_.h({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.g("design:type",Boolean)],U3.prototype,"hasButtons_",void 0);_.O([_.h({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.g("design:type",Boolean)],U3.prototype,"style_",void 0);U3=_.O([_.Tb({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],U3);
_.t(U3,"yt-bubble-hint-renderer",function(){if(C8J===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;bik===void 0&&(bik=document.createElement("template"));var P=bik;F.call(X,P.content.cloneNode(!0),K.content.firstChild);C8J=K}K=C8J;return K},{mode:2});var Nus;var iiW;var hz=function(){var K=_.VF.apply(this,arguments)||this;K.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return K};
_.r(hz,_.VF);_.z=hz.prototype;_.z.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.z.attached=function(){var K=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){K.$.thumbnail.onShow();K.$["header-image"].onShow()})};
_.z.handleCheckBoxUpdateAction_=function(K){this.canShowCheckboxEnabledConfirmButton=K};
_.z.computeUseOverlayForSpinner_=function(K,X){return!!K&&X};
_.z.computeShowSpinner_=function(K,X){return K||!!X};
_.z.fireOnCloseActions_=function(){var K,X=_.D(((K=this.data)==null?void 0:K.onClosedActions)||[]);for(K=X.next();!K.done;K=X.next())this.ytRendererBehavior.resolveCommand(K.value)};
_.z.fireOnOpenCommands_=function(K){var X,F=(X=this.data)==null?void 0:X.onOpenCommands;if(F)for(K.stopImmediatePropagation(),K=_.D(F),X=K.next();!X.done;X=K.next())this.ytRendererBehavior.resolveCommand(X.value)};
_.z.fireOnDismissCommands_=function(K){var X,F=(X=this.data)==null?void 0:X.onDismissCommands;if(F)for(K.stopImmediatePropagation(),K=_.D(F),X=K.next();!X.done;X=K.next())this.ytRendererBehavior.resolveCommand(X.value)};
_.z.openPopupHandler_=function(K){K.detail==this&&this.fireOnOpenCommands_(K)};
_.z.closePopupHandler_=function(K,X){_.IJ(this,"yt-confirm-dialog-close-action",[X]);this.fireOnCloseActions_();(X&&X.canceled===!0||X&&X.canceled===!1&&X.confirmed===!1)&&this.fireOnDismissCommands_(K)};
_.z.onHeaderImageChanged_=function(){var K;((K=this.data)==null?0:K.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.z.computeHasHeaderImageWidth_=function(K){return K!=void 0};
_.z.computeHasLoadingMessage=function(K){return!!K};
_.z.onHeaderImageWidthChanged_=function(){var K,X=(K=this.data)==null?void 0:K.headerImageWidth;if(X){if(K=1.25*X*2+X,this.$.main.style.width=K+"px",X=this.$.scroller.firstElementChild)X.style.minWidth=K+"px"}else this.$.main.style.width="100%"};
_.z.onThumbnailChanged_=function(){var K;((K=this.data)==null?0:K.thumbnail)?(this.setAttribute("dialog-with-thumbnail",""),this.$.scroller.scrollTarget.style.maxHeight="139px",this.$.thumbnail.onShow()):(this.removeAttribute("dialog-with-thumbnail"),this.$.scroller.scrollTarget.style.maxHeight="none")};
_.z.onYtNavigate_=function(K){K=_.vI(K);K instanceof Node&&_.ND(this.$["confirm-button"]).contains(K)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.z.computePrimaryIsCancel_=function(K){return K};
_.z.computeIsCancelButtonHidden_=function(K){return K.skipCancelButton||!K.cancelButton};
_.z.computeIsCheckboxHidden_=function(K){return!K.checkbox};
_.z.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.z.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.z.onYtServiceRequestCompleted_=function(){var K;((K=this.data)==null?0:K.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.Oi.Object.defineProperties(hz,{template:{configurable:!0,enumerable:!0,get:function(){if(iiW===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;Nus===void 0&&(Nus=document.createElement("template"));var P=Nus;F.call(X,P.content.cloneNode(!0),K.content.firstChild);iiW=K}K=iiW;return K}}});
hz.prototype.onYtServiceRequestCompleted_=hz.prototype.onYtServiceRequestCompleted_;hz.prototype.onYtServiceRequestSent_=hz.prototype.onYtServiceRequestSent_;hz.prototype.onThumbnailLoaded_=hz.prototype.onThumbnailLoaded_;hz.prototype.onYtNavigate_=hz.prototype.onYtNavigate_;hz.prototype.onThumbnailChanged_=hz.prototype.onThumbnailChanged_;hz.prototype.onHeaderImageWidthChanged_=hz.prototype.onHeaderImageWidthChanged_;hz.prototype.onHeaderImageChanged_=hz.prototype.onHeaderImageChanged_;
hz.prototype.closePopupHandler_=hz.prototype.closePopupHandler_;hz.prototype.openPopupHandler_=hz.prototype.openPopupHandler_;_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],hz.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],hz.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],hz.prototype,"ytRendererBehavior",void 0);
_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],hz.prototype,"ytEventForwardingBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],hz.prototype,"data",void 0);_.O([_.h({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.g("design:type",Boolean)],hz.prototype,"primaryIsCancel",void 0);_.O([_.h({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.g("design:type",Boolean)],hz.prototype,"isCancelButtonHidden",void 0);
_.O([_.h({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.g("design:type",Boolean)],hz.prototype,"isCheckboxHidden",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],hz.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.O([_.h({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.g("design:type",Boolean)],hz.prototype,"useOverlayForSpinner_",void 0);
_.O([_.h({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.g("design:type",Boolean)],hz.prototype,"showSpinner_",void 0);_.O([_.h({value:!1}),_.g("design:type",Boolean)],hz.prototype,"isActionInProgress_",void 0);_.O([_.h({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.g("design:type",Boolean)],hz.prototype,"hasHeaderImageWidth_",void 0);
_.O([_.h({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.g("design:type",Boolean)],hz.prototype,"hasLoadingMessage",void 0);_.O([_.Hc("yt-popup-opened"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],hz.prototype,"openPopupHandler_",null);_.O([_.Hc("yt-popup-closed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],hz.prototype,"closePopupHandler_",null);
_.O([_.so("data.headerImage"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],hz.prototype,"onHeaderImageChanged_",null);_.O([_.so("data.headerImageWidth"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],hz.prototype,"onHeaderImageWidthChanged_",null);_.O([_.so("data.thumbnail"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],hz.prototype,"onThumbnailChanged_",null);
_.O([_.Hc("yt-navigate"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],hz.prototype,"onYtNavigate_",null);_.O([_.Hc("yt-img-shadow-loaded"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],hz.prototype,"onThumbnailLoaded_",null);_.O([_.Hc("yt-service-request-sent"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.yk]),_.g("design:returntype")],hz.prototype,"onYtServiceRequestSent_",null);
_.O([_.Hc("yt-service-request-completed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,_.G9]),_.g("design:returntype")],hz.prototype,"onYtServiceRequestCompleted_",null);hz=_.O([_.Tb({is:"yt-confirm-dialog-renderer",noInjection:!0})],hz);var xxG;var IM5;var mC=function(){return _.G.apply(this,arguments)||this};
_.r(mC,_.G);mC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.C$(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
mC.prototype.computeConfirmButton_=function(K){var X={text:K.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};K.confirmNavigationEndpoint?X.navigationEndpoint=K.confirmNavigationEndpoint:K.confirmServiceEndpoint&&(X.serviceEndpoint=K.confirmServiceEndpoint);return X};
mC.prototype.computeShowTitle_=function(K){return!(K==null||!K.title)};
_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],mC.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],mC.prototype,"data",void 0);_.O([_.h({computed:"computeShowTitle_(data)"}),_.g("design:type",Boolean)],mC.prototype,"showTitle",void 0);mC=_.O([_.Tb({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],mC);
_.t(mC,"yt-fancy-dismissible-dialog-renderer",function(){if(IM5===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;xxG===void 0&&(xxG=document.createElement("template"));var P=xxG;F.call(X,P.content.cloneNode(!0),K.content.firstChild);IM5=K}K=IM5;return K});var kzw;var KTo;var Gc=function(){var K=_.G.apply(this,arguments)||this;K.spinnerActive=!1;return K};
_.r(Gc,_.G);Gc.prototype.created=function(){Sm8(2201)};
Gc.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
Gc.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
Gc.prototype.onIronOverlayClosed=Gc.prototype.onIronOverlayClosed;Gc.prototype.onIronOverlayOpened=Gc.prototype.onIronOverlayOpened;_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],Gc.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.m2),_.g("design:type",Object)],Gc.prototype,"tpYtIronOverlayBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],Gc.prototype,"data",void 0);_.O([_.h(),_.g("design:type",Object)],Gc.prototype,"spinnerActive",void 0);
_.O([_.Hc("iron-overlay-opened"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Gc.prototype,"onIronOverlayOpened",null);_.O([_.Hc("iron-overlay-closed"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],Gc.prototype,"onIronOverlayClosed",null);Gc=_.O([_.Tb({is:"yt-loading-renderer",disableElementRegistration:!0})],Gc);
_.t(Gc,"yt-loading-renderer",function(){if(KTo===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;kzw===void 0&&(kzw=document.createElement("template"));var P=kzw;F.call(X,P.content.cloneNode(!0),K.content.firstChild);KTo=K}K=KTo;return K},{mode:2});var X85;var FTt;var l7=function(){var K=_.G.apply(this,arguments)||this;K.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);K.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);K.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";K.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return K};
_.r(l7,_.G);_.z=l7.prototype;_.z.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.z.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.z.onDarkModeToggledAction=function(K){this.isDarkTheme=K};
_.z.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.z.openPopupHandler_=function(K){K.detail===this.hostElement&&this.hostElement.hidden&&_.xr(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.z.onDismissButtonTap_=function(){var K;this.closeOnDismissButton_.has(((K=this.data)==null?void 0:K.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.xr(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.z.onAcceptButtonTap_=function(){var K;this.closeOnAcceptButton_.has(((K=this.data)==null?void 0:K.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.xr(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.z.computeHasHeader_=function(K){return!!K.headerBackgroundImage};
_.z.computeLayoutStyle_=function(K){return K};
_.z.computePopupSize_=function(K){return K};
_.z.computeIconType_=function(K){return K.dialogIcon&&K.dialogIcon.iconType?K.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":K.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":K.dialogIcon.iconType:""};
_.z.computeIsLogo_=function(K){return!!K.dialogIcon&&!!K.dialogIcon.iconType&&(K.dialogIcon.iconType==="YOUTUBE_LOGO"||K.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||K.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.z.computeHasCustomLogo=function(K){return!(K==null||!K.headerForegroundImage)};
_.z.computeCustomLogo=function(K,X){if(K!=null&&K.headerForegroundImage)return K.headerForegroundImageDark?X?K.headerForegroundImageDark:K.headerForegroundImage:K.headerForegroundImage};
_.z.computeHeaderBackgroundImage=function(K,X){if(K!=null&&K.headerBackgroundImage)return X&&(K==null?0:K.headerBackgroundImageDark)?K.headerBackgroundImageDark:K.headerBackgroundImage};
_.z.shouldShowIconContainer=function(K,X){return K&&!X};
_.z.shouldShowNonYouTubeIcon=function(K,X){return!K&&!X};
_.z.getLogoImageId=function(K){var X,F,P;return(K=(X=this.computeCustomLogo(K,this.isDarkTheme))==null?void 0:(F=X.thumbnails)==null?void 0:(P=F[0])==null?void 0:P.height)&&K%31===0?"custom-logo-with-padding":"custom-logo"};
l7.prototype.openPopupHandler_=l7.prototype.openPopupHandler_;l7.prototype.dataChanged_=l7.prototype.dataChanged_;_.O([_.W(_.CE.YtRendererstamperBehavior),_.g("design:type",Object)],l7.prototype,"ytRendererstamperBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],l7.prototype,"ytRendererBehavior",void 0);_.O([_.h(),_.g("design:type",Boolean)],l7.prototype,"isDarkTheme",void 0);
_.O([_.h({computed:"computeCustomLogo(data, isDarkTheme)"}),_.g("design:type",Object)],l7.prototype,"customLogo",void 0);_.O([_.h({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.g("design:type",Object)],l7.prototype,"headerBackgroundImage",void 0);_.O([_.h(),_.g("design:type",Object)],l7.prototype,"data",void 0);_.O([_.h({computed:"computeHasHeader_(data)"}),_.g("design:type",Boolean)],l7.prototype,"hasHeader",void 0);
_.O([_.h({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.g("design:type",Object)],l7.prototype,"layoutStyle",void 0);_.O([_.h({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.g("design:type",Object)],l7.prototype,"popupSize",void 0);_.O([_.h({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],l7.prototype,"hasLogo",void 0);
_.O([_.h({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.g("design:type",Boolean)],l7.prototype,"hasCustomLogo",void 0);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],l7.prototype,"dataChanged_",null);_.O([_.Hc("yt-popup-opened"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],l7.prototype,"openPopupHandler_",null);
l7=_.O([_.Tb({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],l7);
_.t(l7,"yt-upsell-dialog-renderer",function(){if(FTt===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;X85===void 0&&(X85=document.createElement("template"));var P=X85;F.call(X,P.content.cloneNode(!0),K.content.firstChild);FTt=K}K=FTt;return K},{mode:2});var PhG=_.$c(function(K){return _.Q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.Q(_.p,{cond:K.title,then:function(X){return _.Q("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},X)}}))},"vg"),HFF=_.$c(function(K){return _.Q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.Q(_.Md,{data:K.closeButton},{buttonViewModel:function(X){return _.Q("div",null,_.Q(_.Af,{data:X.data}))}}))},"wg"),sdw=_.$c(function(K){var X=
K.data;
return _.Q(_.ID,null,_.Q("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.Q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.Q(_.p,{cond:function(){return!!X().image&&!!X().title},
then:function(){return _.Q(_.av,{data:function(){return X().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.Q("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.Q(_.p,{cond:function(){return X().title},
then:function(F){return _.Q("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},F)}}),_.Q(_.p,{cond:function(){return X().primaryGenre},
then:function(F){return _.Q("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},F)}}))),_.Q(_.p,{cond:function(){var F=X().description;
return F&&F.length<=150},
then:function(){return _.Q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.Q("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return X().description}))}}))},"xg"),zS5=_.$c(function(K){K=K.infoRows;
var X=_.i9().resolve(_.dx),F=_.S("enable_displaying_ppn");return _.Q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.Q(_.cd,{each:K},function(P){return _.Q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.Q(_.p,{cond:function(){return P.label},
then:function(H){return _.Q("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},H)}}),_.Q(_.p,{cond:function(){return P.attributedLabel},
then:function(H){return _.Q("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.Q(_.Oy,{text:H,noPreWrap:!0}))}}),_.Q(_.p,{cond:function(){return P.value},
then:function(H){return _.Q("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},H)}}),_.Q(_.p,{cond:function(){return P.attributedValue},
then:function(H){return _.Q("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.Q(_.Oy,{text:H,noPreWrap:!0}))}}))}),_.Q(_.p,{cond:function(){return F&&X.clientData.has("post_play_nonce")},
then:function(){return _.Q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.Q("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.Q("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},X.getData("post_play_nonce")))}}))},"yg"),fj8=_.$c(function(K){var X=K.data;
return _.Q("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.Q(PhG,{title:function(){return X().dialogTitle}}),_.Q(sdw,{data:X}),_.Q(_.p,{cond:function(){return X().infoRow},
then:function(F){return _.Q(zS5,{infoRows:F})}}),_.Q(HFF,{closeButton:function(){return X().closeButton}}))},"zg");
fj8.idomCompat=!0;_.EP(fj8,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.vU}});_.EP(_.$c(function(K){var X=K.data;return _.Q("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.Q(_.av,{data:function(){return X().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.Q("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.Q("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.Q(_.p,{cond:function(){var F=X().ytLogo;return F?F.iconType:null},
then:function(F){return _.Q(_.ZF,{icon:F,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.Q("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.Q("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.Q(_.Oy,{text:function(){return X().title}})),_.Q("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.Q(_.Oy,{text:function(){return X().body}})),_.Q("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.Q(_.Oy,{text:function(){return X().verifyStateText}}))),
_.Q("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.Q("div",null,_.Q(_.Md,{data:function(){return X().dismissButton}},{buttonViewModel:_.Af})),_.Q("div",null,_.Q(_.Md,{data:function(){return X().linkParentButton}},{buttonViewModel:_.Af})))))},"Ag"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.vU}});var DkF=_.$c(function(K){var X=K.data;return _.Q("installment-agreements-view-model",{class:_.HO("ytInstallmentAgreementsViewModelHost")},_.Q(_.cd,{each:_.ag(function(){return X().agreements},[])},function(F){return _.Q("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.Q("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.Q(_.Oy,{text:F.label})),_.Q("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.Q(_.Md,{data:function(){return F.openButton}},{buttonViewModel:_.Af})))}))},
"Bg");
DkF.idomCompat=!0;var uxs=_.$c(function(K){return _.Q("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.Q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.Q(_.Oy,{text:function(){return K.data().inviteMessage}})),_.Q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.Q(_.Oy,{text:function(){return K.data().attributedAccountSectionHeaderText}})),_.Q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.Q(_.Md,{data:function(){return K.data().accountAvatar}},{avatarViewModel:_.BY}),_.Q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.Q(_.Oy,{text:function(){return K.data().accountName}}),_.Q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.Q(_.Oy,{text:function(){return K.data().handle}}))),_.Q(_.Md,{data:function(){return K.data().trailingButton}},{buttonViewModel:_.Af})),_.Q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.Q(_.Oy,{text:function(){return K.data().termsOfService}})))},"Cg");var q41=_.$c(function(K){var X=_.D(_.qB(function(){var N,Dl;return((N=K.data().createPlaylistDialogFormSchema)==null?0:(Dl=N.initialValues)==null?0:Dl.title)?K.data().createPlaylistDialogFormSchema.initialValues.title:""})),F=X.next().value,P=X.next().value;
X=_.D(_.qB(function(){K.data();return!1}));
var H=X.next().value,f=X.next().value;X=_.D(_.qB(function(){K.data();return!1}));
var u=X.next().value,J=X.next().value;X=_.D(_.qB(function(){var N,Dl;return(N=K.data().createPlaylistDialogFormSchema)==null?void 0:(Dl=N.initialValues)==null?void 0:Dl.visibility}));
var Z=X.next().value,M=X.next().value;X=_.D(_.qB(function(){K.data();return!1}));
var n=X.next().value,c=X.next().value;X=_.D(_.qB(function(){var N,Dl;return(N=K.data().createPlaylistDialogFormSchema)==null?void 0:(Dl=N.initialValues)==null?void 0:Dl.isCollaborative}));
var B=X.next().value,L=X.next().value,A=_.t_();_.rs(function(){var N=A.value.querySelector("textarea");N&&(N.value=F())},"OCauEe");
_.AV(function(){var N;_.dct((N=K.data().createPlaylistDialogFormSchema)==null?void 0:N.id,{onSubmit:function(){var Dl=F();var Mq=Z(),pO=B(),y9=K.data();Dl={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:Dl,privacyStatus:Mq,videoIds:y9.videoIds,sourcePlaylistId:y9.sourcePlaylistId,params:pO?y9.createPlaylistParamsCollaborationEnabled:y9.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.i9().resolve(_.xU).resolveCommand(Dl)},
isValid:function(){return H()&&!u()&&!n()}})});
var d=function(N){if(N!==void 0&&(P(N),!H()&&N.length>0&&f(!0),H())){var Dl=e31(K.data());if(Dl){var Mq=Dl.minLength;Dl=Dl.maxLength;Mq&&N.length<Mq?J(!0):Dl&&N.length>Dl?J(!0):J(!1)}}},R=function(){var N=!(!B()||Z()!=="PRIVATE");
c(N)},l=function(N){N!==void 0&&(M(N),R())},a=function(){if(n())return UmW(K.data())},E=function(){L(!B());
R()},V=function(){return{validate:function(N){if(H()){var Dl=e31(K.data());
if(Dl){var Mq=Dl.minLength;Dl=Dl.translations;if(Mq&&N.length<Mq)return Dl==null?void 0:Dl.minLengthErrorMessage}}}}},x=function(){var N=e31(K.data()),Dl=N==null?void 0:N.maxLength,Mq;
N=N==null?void 0:(Mq=N.translations)==null?void 0:Mq.maxLengthErrorMessage;if(Dl&&N)return{maxChars:Dl,errorMessage:N}};
return _.Q("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.Q("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:A},_.Q(_.Md,{data:function(){return K.data().playlistTitle}},{textFormFieldViewModel:function(N){return _.Q(_.YgG,{data:N.data,
text:F,onInput:d,validation:V,characterLimit:x})},
textFieldViewModel:function(N){return _.Q(_.Zv8,{data:N.data,text:F,onInput:d,validation:V,characterLimit:x})}})),_.Q("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.Q(_.Md,{data:function(){return K.data().playlistVisibility}},{dropdownViewModel:function(N){return _.Q(_.AZF,{data:N.data,
onSelected:l,error:a})}})),_.Q(_.p,{cond:function(){return!!K.data().playlistCollaborate},
then:function(){return _.Q("div",null,_.Q(_.Md,{data:function(){return K.data().playlistCollaborate}},{switchListItemViewModel:function(N){return _.Q(_.oIu,{data:N.data,
onTap:E})}}))}}))},"Dg");var Jnv=_.$c(function(K){var X=_.ag(K.noPadding,!1),F=function(){var H,f;return(f=(H=K.data().logo.accessibilityData)==null?void 0:H.label)!=null?f:""},P={};
return _.Q("upsell-view-model",{class:_.HO("ytUpsellViewModelHost",(P.ytUpsellViewModelHostNoPadding=function(){return X()},P))},_.Q("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.Q(_.p,{cond:function(){return _.$a(K.data().logo)},
then:function(H){return _.Q(_.av,{data:H,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:F})}})),_.Q("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.Q(_.Oy,{text:function(){return K.data().title}})),_.Q("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.Q(_.cd,{each:function(){var H;
return(H=K.data().subtitles)!=null?H:[]},
keyBy:"INDEX"},function(H){return _.Q("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.Q(_.Oy,{text:H}))})),_.Q("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.Q(_.cd,{each:function(){var H;
return(H=K.data().benefitInfos)!=null?H:[]},
keyBy:"INDEX"},function(H){return _.Q(_.p,{cond:function(){return H().info},
then:function(f){return _.Q("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.Q(_.ZF,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.Q(_.Oy,{text:f}))}})})),_.Q("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.Q(_.cd,{each:function(){var H;
return(H=K.data().legalInfos)!=null?H:[]},
keyBy:"INDEX"},function(H){return _.Q("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.Q(_.Oy,{text:H}))})))},"Eg");var ZFt=_.$c(function(K){var X=K.data;K={};K=(K.ytMiniAppScoreChallengeViewModelScoreRadial=!0,K.ytMiniAppScoreChallengeViewModelDarkScoreRadial=h3G(),K);return _.Q("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.Q("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return X().title}),_.Q("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return X().subtitle}),_.Q("div",{class:_.z9(K)},_.Q("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return X().score})),_.Q("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return X().prompt}))},"Fg");var Y4s=function(){this.store=_.Gb();this.formId=""};var Qdv=_.$c(function(K){function X(J){if(J&&(J=_.T(J,_.Db)))return Object.assign({},J,{isSelected:f()})}
var F=_.D(_.qB(function(){var J,Z;return(Z=(J=_.T(K.data().option,_.Db))==null?void 0:J.isSelected)!=null?Z:!1})),P=F.next().value,H=F.next().value,f=P;
_.AV(function(){var J;_.dct((J=K.data().formSchema)==null?void 0:J.id,{onSubmit:function(){var Z=_.i9().resolve(_.xU),M=!!K.data().selectedCommand,n=!!K.data().unselectedCommand;if(f()){if(M)var c=K.data().selectedCommand}else n&&(c=K.data().unselectedCommand);c=_.w$(c);X(K.data().option)&&!c?(Z="",!M&&n?Z="selected ":M&&!n&&(Z="unselected "),M=new _.nG("No "+Z+"command found for SelectionListItemFormViewModel"),_.jF(M)):c&&Z.resolveCommand(c)},
isValid:function(){return!0}})});
var u=function(){H(!f())};
_.AZ(function(){var J,Z,M=(J=K.data())==null?void 0:(Z=J.formSchema)==null?void 0:Z.id;M&&_.yT5()().delete(M)});
return _.Q("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.Q("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.Q(_.Oy,{text:function(){return K.data().paragraph}})),_.Q(_.p,{cond:function(){return X(K.data().option)},
then:function(J){return _.Q(_.Ta,{data:J,isCompact:!0,hideSelectionTextChevron:!0,onTap:u,disableHorizontalPadding:!0})}}))},"Gg");var M5o=_.$c(function(K){var X=K.data;var F=K.disablePadding;var P=K.className;var H=_.t_(),f=function(){var J=X().imageBanner;a:switch(X().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var Z="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:Z="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:J,style:Z,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},u=function(){return X().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.AV(function(){var J=function(){_.xr(H.value,"yt-refit-popups-action")},Z;
(Z=H.value)==null||Z.addEventListener("image-loaded",J);_.AZ(function(){var M;(M=H.value)==null||M.removeEventListener("image-loaded",J)})});
K={};return _.Q("yt-dialog-header-view-model",{el:H,class:_.HO(P,(K.ytDialogHeaderViewModelHost=!0,K.ytDialogHeaderViewModelHostDisablePadding=F,K))},_.Q(_.p,{cond:function(){return X().imageBanner},
then:function(){var J={};return _.Q("div",{class:_.HO(P,(J.ytDialogHeaderViewModelBanner=!0,J.ytDialogHeaderViewModelBannerFullBleed=u,J)),style:_.Je({"max-height":function(){return X().assetContainerMaxHeight!==void 0?X().assetContainerMaxHeight+"px":void 0}})},_.Q(_.bJ,{data:f,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.Q(_.p,{cond:function(){return X().headerBlock},
then:function(){return _.Q("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.Q(_.Md,{data:function(){return X().headerBlock}},{contentPreviewImageViewModel:function(J){return _.Q(_.bJ,{data:J.data,
notifyOnLoaded:!0})}}))}}),_.Q(_.p,{cond:function(){return X().customAssetContainer},
then:function(J){return _.Q("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.Q(_.Md,{data:J},{avatarStackViewModel:_.oB}))}}),_.Q(_.p,{cond:function(){return X().customBanner},
then:function(J){return _.Q("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.Q(_.Md,{data:J},{avatarStackViewModel:_.oB}))}}),_.Q(_.p,{cond:function(){return X().headline},
then:function(J){return _.Q("h2",null,_.Q(_.Oy,{text:J,className:"ytDialogHeaderViewModelText"}))}}))},"Hg");
M5o.idomCompat=!0;var nJw=_.$c(function(K){var X=_.eQG(function(){return K.data().formId}),F=X.onSubmit,P=X.isValid;
return _.Q("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.Q(_.Md,{data:function(){return K.data().panelFooter}},{panelFooterViewModel:function(H){return _.Q(_.mK,{data:H.data,
disablePadding:!0,disablePrimaryButton:function(){return!P()},
onClickPrimaryButton:function(){F()}})}}))},"Ig");var cn5=_.$c(function(K){var X=function(){var F,P;return(P=(F=_.T(K.data().rendererContext,_.Jp))==null?void 0:F.label)!=null?P:""};
return _.Q("yt-dialog-image-content-view-model",{class:_.HO("ytDialogImageContentViewModelHost",K.className)},_.Q(_.p,{cond:function(){return _.$a(K.data().image)},
then:function(F){return _.Q(_.av,{data:F,alt:X,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.Q(_.Oy,{text:function(){return K.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Jg");var S4s=_.$c(function(K){var X=_.tA(K,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),F=X.elRefCallback;K=X.iconWiz;var P=X.assetWiz,H=X.assetType,f=X.titleWiz,u=X.leadingActionHeaderWiz,J=X.trailingActionHeaderWiz,Z=X.headerPosition,M=X.contentWiz,n=X.buttonLayout,c=X.buttonStyle,B=X.primaryButtonWiz,L=X.secondaryButtonWiz,A=X.contentAlignment,d=X.isFullscreen,R=X.width,l=X.maxHeight,a=X.isHeaderWizDefined,
E=X.headerWiz,V=X.isFooterWizDefined,x=X.footerWiz;X=_.t_(function(a3){F==null||F(a3)});
var N=P?function(){return P({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,Dl=B?function(){var a3={};
return B({buttonOverrides:function(){return{style:(c==null?void 0:c())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.HO((a3["yt-spec-dialog-layout__dialog-layout-button"]=!0,a3["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(n==null?void 0:n())===0||(n==null?void 0:n())===2},a3))})}:void 0,Mq=L?function(){var a3={};
return L({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.HO((a3["yt-spec-dialog-layout__dialog-layout-button"]=!0,a3["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(n==null?void 0:n())===0||(n==null?void 0:n())===2},a3))})}:void 0,pO=function(){return(!!f||!!u||!!J)&&Z()===0},y9={},Wy={},eP={},gw={};
return _.Q("dialog-layout",{el:X,class:_.HO((y9["yt-spec-dialog-layout"]=!0,y9["yt-spec-dialog-layout--dialog-layout-fullscreen"]=d,y9["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!d()},y9["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return l()===1},y9["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(H==null?void 0:H())===1},y9)),
style:function(){return(R==null?void 0:R())!==void 0?"width: "+R+"px;":""}},K?_.Q("div",{class:_.HO((Wy["yt-spec-dialog-layout__dialog-layout-icon"]=!0,Wy["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!P&&Z()===1},Wy["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return A()===1},Wy))},_.Q(K,null)):null,_.Q(_.p,{cond:a,
then:function(){return E?_.Q("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.Q(E,null)):null},
else:function(){return _.Q(_.ID,null,_.Q(_.p,{cond:pO,then:function(){return _.Q(p8V,{contentAlignment:A,LeadingActionHeader:u,TrailingActionHeader:J,Title:f,isAboveAsset:!!N})}}),N?_.Q("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.Q(N,null)):null)}}),_.Q("div",{class:_.HO((eP["yt-spec-dialog-layout__dialog-layout-container"]=!0,eP["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(A==null?void 0:A())===1},eP["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!f&&!E||!!N&&(Z==null?void 0:Z())===0},eP))},_.Q(_.p,{cond:function(){return f&&!E&&(Z==null?void 0:Z())===1},
then:function(){return _.Q(p8V,{contentAlignment:A,LeadingActionHeader:u,TrailingActionHeader:J,Title:f,isAboveAsset:!1})}}),M?_.Q("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.Q("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.Q(M,null))):null,_.Q(_.p,{cond:V,
then:function(){return x?_.Q("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.Q(x,null)):null}}),Dl||Mq?_.Q(Bot,{footerClasses:_.HO((gw["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,gw["yt-spec-dialog-layout__dialog-layout-footer"]=!0,gw["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(n==null?void 0:n())===2},gw["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(n==null?void 0:n())===1},gw)),
PrimaryButton:Dl,SecondaryButton:Mq}):null))},"Kg"),p8V=_.$c(function(K){var X=_.tA(K,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),F=X.contentAlignment,P=X.LeadingActionHeader;K=X.Title;var H=X.TrailingActionHeader,f=X.isAboveAsset,u=X.enableLeadingActionHeader;X={};return _.Q("div",{class:_.HO((X["yt-spec-dialog-layout__dialog-header-container"]=!0,X["yt-spec-dialog-layout__dialog-header"]=!0,X["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=f,X["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(F==null?void 0:F())===1&&u()},X))},_.Q(_.p,{cond:function(){return u()},
then:function(){return P?_.Q("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.Q(P,null)):null}}),K?_.Q("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.Q(K,null)):null,H?_.Q("div",null,_.Q(H,null)):null)},"Lg"),Bot=_.$c(function(K){var X=K.footerClasses;
var F=K.PrimaryButton;K=K.SecondaryButton;return _.Q("div",{class:X},K?_.Q(K,null):null,F?_.Q(F,null):null)},"Mg");var oJk=_.$c(function(K){var X=K.data;return _.Q("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.Q("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.Q(_.Md,{data:function(){return X().avatar}},{avatarViewModel:_.BY})),_.Q("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.Q(_.Oy,{text:function(){return X().title}})),_.Q(_.Oy,{text:function(){return X().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Ng");var LTJ=_.$c(function(K){var X=K.data;return _.Q("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.Q("div",{class:"ytAccessConfirmationViewModelContent"},_.Q(_.Md,{data:function(){return X().dualAvatar}},{dualAvatarViewModel:function(F){return _.Q("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.Q(_.xKQ,{data:F.data}))}}),_.Q("h2",{class:"ytAccessConfirmationViewModelTitle"},_.Q(_.Oy,{text:function(){return X().title}})),_.Q(_.Oy,{text:function(){return X().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Og");var Tow=_.$c(function(K){var X=K.data;var F=void 0;K=_.D(_.u_("",void 0,"bj3Bbf"));var P=K.next().value,H=K.next().value,f,u=function(){H("");var M;(M=F)!=null&&M.store.dispatch(_.iY({type:"RESET_COMMAND_MAP"}))};
_.AV(function(){F=new Y4s;window.addEventListener("yt-popup-closed",u)});
_.rs(function(){if(F&&f!==X().formId){var M=F,n=X();n.formId&&(M.formId=n.formId,M.store.dispatch(_.iY({type:"SET_CURRENT_FORM_ID",payload:{formId:M.formId}})));f=X().formId}},"h7G5O");
_.AZ(function(){window.removeEventListener("yt-popup-closed",u)});
var J=function(M,n,c){n.key&&c&&n.key!==P()&&(H(n.key),F&&n.command&&F.store.dispatch(_.iY({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:c,command:n.command}})))},Z=function(){if(_.T(X().content,_.CkW))return!(P==null?0:P())};
return _.Q("yt-dialog-view-model",{class:_.HO("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.Q(S4s,{headerWiz:function(){return _.Q("span",{skip:!0},_.Q(_.Md,{data:function(){return X().header}},{dialogHeaderViewModel:function(M){return _.Q(M5o,{data:M.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!X().header},
contentWiz:function(){return _.Q("span",{skip:!0},_.Q(_.Md,{data:function(){return X().customContent?X().customContent:X().content}},{basicContentViewModel:_.UtT,
createPlaylistDialogFormViewModel:q41,collaborativePlaylistInviteMessageViewModel:uxs,miniAppScoreChallengeViewModel:ZFt,radioButtonGroupViewModel:function(M){return _.Q(_.Lht,{data:M.data,selectedKey:P,onSelected:J})},
selectionListItemFormViewModel:Qdv,upsellViewModel:function(M){return _.Q(Jnv,{data:M.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:oJk,installmentAgreementsViewModel:DkF,accessConfirmationViewModel:LTJ,listViewModel:function(M){return _.Q(_.WuN,{data:M.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:cn5}))},
footerWiz:function(){return _.Q("span",{skip:!0},_.Q(_.Md,{data:function(){return X().footer}},{panelFooterViewModel:function(M){return _.Q(_.mK,{data:M.data,
disablePadding:!0,disablePrimaryButton:Z})},
formPanelFooterViewModel:nJw,formFooterViewModel:function(M){return _.Q(_.unk,{data:M.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!X().footer}}))},"Pg");
Tow.idomCompat=!0;_.EP(Tow,"yt-dialog-view-model",{props:{data:_.vU},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var rnV=_.$c(function(K){var X=K.data;K={};return _.Q("yt-panel-header-view-model",{class:_.HO("yt-panel-header-view-model-wiz",(K["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!X().shouldHideDivider},K["yt-panel-header-view-model-wiz--compact"]=function(){return!!X().subtitle},K))},_.Q("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.Q(_.p,{cond:function(){return X().title},
then:function(F){return _.Q(_.Oy,{text:F,className:"yt-panel-header-view-model-wiz__title"})}}),_.Q(_.p,{cond:function(){return X().subtitle},
then:function(F){return _.Q(_.Oy,{text:F,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.Q("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.Q(_.Md,{data:function(){return X().trailingButtons}},{buttonViewModel:function(F){return _.Q(_.Af,{data:F.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"Qg");
rnV.idomCompat=!0;var AnG=_.$c(function(K){var X=_.DF(function(f){var u;if((u=K.skipContentClick)==null?0:u.call(K))return!1;K.onContentWrapperClick(f);return!0}),F,P,H;
return _.Q("div",{class:_.HO("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return K.isAnimating()?"transform: translateY("+K.currentY()+"px);transition: 0.2s":""}},(F=K.header)==null?void 0:F.call(K),_.Q("div",{id:K.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.Je({"max-height":(0,_.oO)(K.maxHeightForContentWrapper)}),"on:scroll":vXG(K.onScroll),"on:touchmove":vXG(function(f){return void f.stopPropagation()})},_.Q("div",{el:{onRender:K.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":X},(P=K.body)==null?void 0:P.call(K))),(H=K.footer)==null?void 0:H.call(K))},"Rg");
AnG.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var jdW=_.$c(function(K){var X=_.ag(K.leadingLabel),F=_.ag(K.trailingLabel),P=_.ag(K.footerButtonType),H=function(){return X()||F()||K.hasPrimaryButton()||K.hasSecondaryButton()},f={},u=_.HO("yt-spec-bottom-sheet-layout__primary-button",(f["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return P()===0&&K.hasPrimaryButton()},f["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return P()===1&&K.hasPrimaryButton()},f["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return P()===2&&K.hasPrimaryButton()},f["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return P()===3&&K.hasPrimaryButton()},f));
f={};var J=_.HO("yt-spec-bottom-sheet-layout__secondary-button",(f["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return P()===1&&K.hasSecondaryButton()},f["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return P()===2&&K.hasSecondaryButton()},f["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return P()===3&&K.hasPrimaryButton()},f));
return _.Q(_.p,{cond:K.hasFooterOverride,then:function(){var Z;return _.Q(_.ID,null,(Z=K.footerOverride)==null?void 0:Z.call(K))},
else:function(){return _.Q(_.p,{cond:H,then:function(){return _.Q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.Q(_.p,{cond:function(){return X()||F()},
then:function(){var Z={};return _.Q("div",{class:_.HO("yt-spec-bottom-sheet-layout__footer-label-wrapper",(Z["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!K.hasPrimaryButton()},Z))},_.Q(_.p,{cond:X,
then:function(){return _.Q("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},X)}}),_.Q(_.p,{cond:F,
then:function(){return _.Q("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},F)}}))}}),_.Q(_.p,{cond:function(){return K.hasPrimaryButton()||K.hasSecondaryButton()},
then:function(){var Z={};return _.Q("div",{class:_.HO("yt-spec-bottom-sheet-layout__footer-button-wrapper",(Z["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.tXU,Z))},_.Q(_.p,{cond:function(){return K.hasSecondaryButton()&&P()!==0},
then:function(){var M;return _.Q("div",{class:J},(M=K.secondaryButton)==null?void 0:M.call(K))}}),_.Q(_.p,{cond:K.hasPrimaryButton,
then:function(){var M;return _.Q("div",{class:u},(M=K.primaryButton)==null?void 0:M.call(K))}}))}}))}})}})},"Sg");
jdW.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var w8s=_.$c(function(K){var X=_.ag(K.title),F=_.ag(K.subtitle);return _.Q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:K.headerId,"on:touchstart":_.DF(function(P){var H;(H=K.touchstart)==null||H.call(K,P);return!1}),
"on:touchmove":_.DF(function(P){var H;(H=K.touchmove)==null||H.call(K,P);return!1}),
"on:touchend":_.DF(function(P){var H;(H=K.touchend)==null||H.call(K,P);return!1})},_.Q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.Q(_.p,{cond:K.hasHeaderOverride,
then:function(){var P;return _.Q(_.ID,null,(P=K.headerOverride)==null?void 0:P.call(K))},
else:function(){var P={};return _.Q("div",{class:_.HO((P["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,P["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=X,P))},_.Q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.Q(_.p,{cond:X,then:function(){return _.Q(_.ID,null,_.Q("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},X),_.Q(_.p,{cond:F,then:function(){return _.Q("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
F)}}))}})),_.Q(_.p,{cond:function(){return X()&&K.hasActionHeader()},
then:function(){var H;return _.Q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(H=K.actionHeader)==null?void 0:H.call(K))}}))}}))},"Tg");
w8s.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.$c(function(K){function X(N){if(!l&&typeof MutationObserver!=="undefined"){var Dl={childList:!0};"MutationObserver"in window&&(l=new MutationObserver(F.bind(void 0,N)),l.observe(N,Dl))}}
function F(N){typeof l!=="undefined"&&(a["content-wrapper"]===void 0&&(a["content-wrapper"]=N.children[0].clientHeight),L(a["content-wrapper"]),B()>A()||d(B()))}
function P(){c(window.innerHeight);B()>A()||d(B());E.isFullScreen[0]()&&B()>A()?V().dispatch("Snap To Full Screen",{maxHeight:R()}):V().dispatch("Snap To Neutral Position",{maxHeight:A()})}
function H(N){document.body.style.overscrollBehavior="none";N.preventDefault();V().dispatch("Touch Start",{event:N})}
function f(N){N.preventDefault();V().dispatch("Touch Move",{event:N,contentScrollable:B()>A(),fullContentWrapperHeight:R(),contentWrapperHeight:A(),contentHeightMap:a,contentWrapperId:"content-wrapper",header:tvw(K),footer:tvw(K)})}
function u(){document.body.style.overscrollBehavior="";E.isFullScreen[0]()?E.currentY[0]()>=60?V().dispatch("Snap To Neutral Position",{maxHeight:A()}):V().dispatch("Snap To Full Screen",{maxHeight:R()}):E.currentY[0]()>=60?J():E.currentY[0]()<=-60&&B()>A()?V().dispatch("Snap To Full Screen",{maxHeight:R()}):V().dispatch("Snap To Neutral Position",{maxHeight:A()})}
function J(){V().dispatch("Close Sheet",{clientHeight:n(),maxHeight:0});setTimeout(function(){aOd()},250)}
var Z=_.D(_.u_(window.innerHeight,void 0,"NWeFS")),M=Z.next().value;Z=Z.next().value;var n=M,c=Z;Z=_.D(_.u_(0,void 0,"oxfm4"));M=Z.next().value;Z=Z.next().value;var B=M,L=Z;Z=_.D(_.qB(function(){var N=tvw(K);return.6*n()-mmk(N)-G65(N)}));
M=Z.next().value;Z=Z.next().value;var A=M,d=Z,R=function(){var N=tvw(K);return n()-mmk(N)-G65(N)-24-24},l=null,a={},E={initialY:_.u_(0,void 0,"cYBE5c"),
currentY:_.u_(0,void 0,"RndqHc"),isAnimating:_.u_(!1,void 0,"vO9DVd"),isFullScreen:_.u_(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.qB(A)},V=function(){var N=null;return function(){if(!N){var Dl={initialY:E.initialY[0](),currentY:E.currentY[0](),isAnimating:E.isAnimating[0](),isFullScreen:E.isFullScreen[0](),maxHeightForContentWrapper:E.maxHeightForContentWrapper[0]()};N=lO8(Dl)}return N}}();
_.AV(function(){window.addEventListener("resize",P);V().subscribe(function(N){E.initialY[1](N.initialY);E.currentY[1](N.currentY);E.isAnimating[1](N.isAnimating);E.isFullScreen[1](N.isFullScreen);E.maxHeightForContentWrapper[1](N.maxHeightForContentWrapper)})});
_.AZ(function(){window.removeEventListener("resize",P);l&&(l.disconnect(),l=null)});
var x=_.HO({"bottom-sheet-content-without-icon":function(){var N;return!((N=K.shouldShowIcons)==null?0:N.call(K))}});
return _.Q("bottom-sheet-layout",null,_.Q(AnG,{contentWrapperId:"content-wrapper",isAnimating:function(){return E.isAnimating[0]()},
currentY:function(){return E.currentY[0]()},
maxHeightForContentWrapper:function(){return E.maxHeightForContentWrapper[0]()},
shouldShowIcons:K.shouldShowIcons,skipContentClick:K.skipContentClick,onScroll:function(){var N=document.getElementById("header-wrapper"),Dl=document.getElementById("content-wrapper");if(N&&Dl){var Mq={};Mq=(Mq["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,Mq["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,Mq);N.className=Dl.scrollTop>1?_.z9(Mq):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:aOd,contentWrapperEl:function(N){X(N);requestAnimationFrame(function(){F(N)})},
header:function(){return _.Q(w8s,{touchstart:H,touchmove:f,touchend:u,title:K.headerTitle,subtitle:K.headerSubtitle,headerId:"header-wrapper",headerOverride:K.headerFn,hasHeaderOverride:K.hasHeaderFn,actionHeader:K.headerActionHeader,hasActionHeader:K.hasHeaderActionHeader})},
footer:function(){return _.Q(jdW,{footerButtonType:K.footerButtonType,leadingLabel:K.footerLeadingLabel,trailingLabel:K.footerTrailingLabel,primaryButton:K.footerPrimaryButton,hasPrimaryButton:K.hasFooterPrimaryButton,secondaryButton:K.footerSecondaryButton,hasSecondaryButton:K.hasFooterSecondaryButton,footerOverride:K.footerFn,hasFooterOverride:K.hasFooterFn})},
body:function(){return _.Q(_.p,{cond:K.hasContentFn,then:function(){var N;return _.Q("div",{class:x},(N=K.contentFn)==null?void 0:N.call(K))}})}}))},"Ug").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var yn1=_.$c(function(K){var X=_.i9().resolve(_.pf);return _.Q("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.DF(function(){return void X.closeSheet()})},_.Q(_.p,{cond:function(){return!!K.header},
then:function(){return _.Q("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},K.header())}}),_.Q(_.p,{cond:function(){return!!K.content},
then:function(){return _.Q("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},K.content())}}),_.Q(_.p,{cond:function(){return!!K.footer},
then:function(){return _.Q("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},K.footer())}}))},"Vg");
yn1.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var WT8=_.$c(function(K){K=K.data;var X=_.t_(function(P){if(_.S("web_focus_first_element_sheet"))return P.addEventListener("focus",function(){r9v(P)}),function(){P.removeEventListener("focus",function(){r9v(P)})}}),F={};
return _.Q("yt-sheet-view-model",{class:_.HO("yt-sheet-view-model-wiz",(F["yt-sheet-view-model-wiz--contextual"]=!0,F["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.S("web_disable_backdrop_filter"),F)),el:X,tabindex:-1},_.Q(_.p,{cond:K,then:function(P){return _.Q(yn1,{header:function(){return _.Q(_.Md,{data:function(){return P().header}},{panelHeaderViewModel:rnV})},
content:function(){return _.Q(_.Md,{data:function(){return P().content}},{listViewModel:function(H){return _.Q(_.WuN,{data:H.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:Jnv,miniAppScoreChallengeViewModel:ZFt})},
footer:function(){return _.Q(_.Md,{data:function(){return P().footer}},{panelFooterViewModel:_.mK})}})}}))},"Wg");
WT8.idomCompat=!0;_.EP(WT8,"yt-sheet-view-model",{props:{data:_.vU}});var eSG=_.$c(function(K){var X=function(){var F;return(F=K.data().enableDebuggingFeatures)!=null?F:!1};
return _.Q("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.Q(_.cd,{each:function(){var F;return(F=K.data().stickers)!=null?F:[]}},function(F){return _.Q(dkt,{data:function(){return F},
debugMode:X})}))},"Xg"),dkt=_.$c(function(K){var X=_.tA(K,{debugMode:!1}).debugMode,F=_.ag(function(){var Z;
return(Z=K.data().region)==null?void 0:Z.w},0),P=_.ag(function(){var Z;
return(Z=K.data().region)==null?void 0:Z.h},0),H=_.ag(function(){var Z;
return(Z=K.data().region)==null?void 0:Z.x},0),f=_.ag(function(){var Z;
return(Z=K.data().region)==null?void 0:Z.y},0),u=_.DF(function(){var Z=K.data().onTap;
Z&&_.e9(Z)}),J={};
return _.Q("div",{class:_.HO("ytStoriesStickerLayerViewModelSticker",(J.ytStoriesStickerLayerViewModelDebugMode=X,J)),style:_.Je({width:function(){return 100*F()+"%"},
height:function(){return 100*P()+"%"},
left:function(){return 100*H()+"%"},
top:function(){return 100*f()+"%"},
"flex-direction":function(){return $md(K.data().flexDirection)},
"justify-content":function(){return Ol8(K.data().justifyContent)},
"align-items":function(){return Vvt(K.data().alignItems)}}),
"on:click":u},_.Q(_.Md,{data:function(){return K.data().button||K.data().toggleButton}},{buttonViewModel:function(Z){return _.Q(_.Af,{data:Z.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(Z){return _.Q(_.pS,{data:Z.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Yg");var Uk1=_.$c(function(K){var X=function(){return K.data()},F=_.ag(function(){return X().backgroundColor},0),P=_.ag(function(){return X().actionButtons},[]),H=_.ag(function(){return X().stickerLayer},{}),f={},u=function(){var Z,M;
return{animationRef:f,animationConfig:{autoplay:!1,loop:!1,path:(M=(Z=X().foregroundAnimation)==null?void 0:Z.url)!=null?M:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){K.navigateToNextItemOnLottieComplete()}}}},J=function(){var Z,M,n,c,B,L,A,d;
return{animationConfig:{autoplay:(L=(Z=X().backgroundAnimation)==null?void 0:(M=Z.settings)==null?void 0:M.autoplay)!=null?L:!1,loop:(A=(n=X().backgroundAnimation)==null?void 0:(c=n.settings)==null?void 0:c.loop)!=null?A:!1,path:(d=(B=X().backgroundAnimation)==null?void 0:B.url)!=null?d:"",name:"stories_item_background_animation"}}};
_.rs(function(){if(K.isVisible()){var Z;(Z=f.lottieEl)==null||Z.play()}else{var M;(M=f.lottieEl)==null||M.stop()}},"NPvXtd");
return _.Q("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.Je({"background-color":function(){return _.wq(F())+";"}})},_.Q("div",{class:"ytStoriesItemViewModelAssetContent"},_.Q(_.p,{cond:function(){return!!X().backgroundAnimation},
then:function(){return _.Q(_.se,{data:J,animationName:function(){return J().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.Q(_.p,{cond:function(){return!!X().backgroundImage},
then:function(){return _.Q(_.av,{data:function(){return X().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.Q(_.p,{cond:function(){return!!X().foregroundAnimation},
then:function(){return _.Q(_.se,{data:u,animationName:function(){return u().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.Q(_.p,{cond:function(){return!!X().foregroundImage},
then:function(){return _.Q(_.av,{data:function(){return X().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.Q("div",{class:"ytStoriesItemViewModelTopShadow"}),_.Q(_.Md,{data:function(){return H()}},{storiesStickerLayerViewModel:eSG})),_.Q("div",{class:"ytStoriesItemViewModelBottomShadow"},_.Q("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.DF(K.pauseAutoNavigation)},_.Q(_.cd,{each:P},function(Z){return _.Q(RSs,{data:function(){return Z}})}))))},"Zg"),hSd={style:"overlay",
type:"outline"},RSs=_.$c(function(K){var X={};return _.Q("div",{class:_.HO("ytStoriesItemViewModelActionButton",(X.ytStoriesItemViewModelStretchedActionButton=function(){return K.data().size==="STORIES_BUTTON_SIZE_STRETCH"},X))},_.Q(_.Md,{data:function(){return K.data().button}},{buttonViewModel:function(F){return _.Q(_.Af,{data:F.data,
className:"ytStoriesItemViewModelButton",buttonOverrides:hSd})}}))},"$g");_.EP(_.$c(function(K){var X=function(){var E;return(E=K.data().startIndex)!=null?E:0},F=_.D(_.qB(X)),P=F.next().value,H=F.next().value;
F=_.D(_.u_(!1,void 0,"PXfG3d"));var f=F.next().value,u=F.next().value,J=function(){var E;return(E=K.data().storyItems)!=null?E:[]},Z=function(){return K.data().dismissButton},M=function(){var E;
return _.T((E=_.T(Z(),_.nS))==null?void 0:E.onTap,_.j9)},n=_.t_(),c,B=function(){var E;
(E=c)==null||E.cancel();c=L(P()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});c.onfinish=function(){L(P()).style.width="100%";var V=_.T(J()[P()],mMw),x,N;V!=null&&V.foregroundAnimation&&((V==null?0:(x=V.foregroundAnimation)==null?0:x.url)||(V==null?0:(N=V.foregroundAnimation)==null?0:N.payload))||(P()!==J().length-1?(H(P()+1),B()):M()&&_.yB(M()))}},L=function(E){return n.value.children[E].children[0]},A=function(){for(var E=0;E<P();E++)L(E).style.width="100%"};
F=_.DF(function(){f()?u(!1):(P()===J().length-1&&M()&&_.yB(M()),L(P()).style.width="100%",P()!==J().length-1&&(H(P()+1),B()))});
var d=_.DF(function(){f()?u(!1):(L(P()).style.width="0%",P()!==0?H(P()-1):H(P()),B())}),R=function(){u(!0)},l=function(){L(P()).style.width="100%";
P()!==J().length-1?(H(P()+1),B()):M()&&_.yB(M())},a=_.DF(function(){var E;
(E=c)==null||E.pause()});
_.rs(function(){if(f()){var E;(E=c)==null||E.pause()}else{var V;(V=c)==null||V.play()}},"FYQeoe");
_.rs(function(){A();P()===X()&&B()},"btiZuf");
_.AV(function(){A();B()});
return _.Q("yt-stories-viewer-view-model",{class:_.HO("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.Q("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.Q("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":d,"on:mousedown":a}),_.Q("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":F,"on:mousedown":a})),_.Q(_.Md,{data:J},{storiesItemViewModel:function(E,V){var x=E.data;return _.Q(_.p,{cond:function(){return Math.abs(V()-
P())<=1},
then:function(){var N={};return _.Q("div",{class:_.HO("ytStoriesViewerViewModelStoryItem",(N.ytStoriesViewerViewModelHiddenStoryItem=function(){return V()!==P()},N))},_.Q(Uk1,{data:x,
pauseAutoNavigation:R,navigateToNextItemOnLottieComplete:l,isVisible:function(){return V()===P()}}))}})}}),_.Q("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:n},_.Q(_.cd,{each:J},function(){return _.Q("div",{class:"ytStoriesViewerViewModelProgressBar"},_.Q("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.Q("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.Q(_.Md,{data:Z},{buttonViewModel:_.Af})))},"ah"),"yt-stories-viewer-view-model",{props:{data:_.vU}});_.EP(_.$c(function(K){var X=K.data;var F=_.t_(),P=[];return _.Q("yt-gen-ai-feedback-form-view-model",{el:F,class:"ytGenAiFeedbackFormViewModelHost"},_.Q(_.Oy,{text:function(){return X().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.Q("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.Q(_.Md,{data:function(){return X().feedbackChips}},{toggleButtonViewModel:function(H){var f=H.data;
return _.Q(_.pS,{data:f,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(u){var J=f();J=_.T(J,_.cp);J=_.T(J==null?void 0:J.defaultButtonViewModel,_.nS).trackingParams;u?P.push(J):(u=P.indexOf(J),u>-1&&P.splice(u,1))}})}})),_.Q(_.Oy,{text:function(){return X().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.Q("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.Q(_.Md,{data:function(){return X().submitButton}},{buttonViewModel:function(H){return _.Q(_.Af,{data:H.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){gXk(F.value,P,X().uniqueId)}})}}),_.Q(_.Md,{data:function(){return X().moreFeedbackButton}},{buttonViewModel:function(H){return _.Q(_.Af,{data:H.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"bh"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.vU},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var v7=function(){return _.G.apply(this,arguments)||this};
_.r(v7,_.G);v7.prototype.created=function(){Sm8(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(XUv);var K=_.i9().resolve(_.QSu);K&&(K.container=this.ytPopupContainerBehavior);if(K=_.i9().resolve(_.pf))K.container=this.ytPopupContainerBehavior;if(K=_.i9().resolve(_.BR)){var X=this.ytPopupContainerBehavior;K.containerWasInjected?_.yy(Error("Zi")):K.container=X}};
v7.prototype.ensurePopupBelowPlayer=function(K,X){var F=_.i9().resolve(_.Nu(_.ax));if(!F||!F.isOnWatch()||!_.$f())return!1;F=F.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.qD().height>F+this.getPopupHeight(K,X)?(K.style.top="auto",K.style.bottom="0px"):(K.style.top=F+"px",K.style.bottom="auto");return!0};
v7.prototype.getPopupHeight=function(K,X){X&&(K.cachedPopupHeight=0);if(!K.cachedPopupHeight){X=0;var F=K.clientHeight,P=window.getComputedStyle(K);X+=parseInt(P.marginTop,10);X+=parseInt(P.marginBottom,10);K.cachedPopupHeight=F+X}return K.cachedPopupHeight};
v7.prototype.getElement=function(K){return document.createElement(K)};
_.O([_.W(AU5.YtPopupContainerBehavior),_.g("design:type",Object)],v7.prototype,"ytPopupContainerBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],v7.prototype,"ytComponentBehavior",void 0);v7=_.O([_.v({disableElementRegistration:!0,is:"ytd-popup-container"})],v7);
_.t(v7,"ytd-popup-container",function(){if(MGv!==void 0)return MGv;var K=document.createElement("template");_.w(K,"\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");K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);return MGv=K},{mode:1});var mk8;var Gg8={};Gg8.YtLogYpcFlowCommandsBehavior=[_.NT.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(K){_.T(K,K2k)&&(K=_.T(K,K2k))&&(K.serializedTransactionFlowLoggingParams?_.LEw(K.serializedTransactionFlowLoggingParams):K.serializedYpcCancelFlowLoggingParams?(K=K.serializedYpcCancelFlowLoggingParams)&&_.Ad("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",K):K.serializedYpcResumeFlowLoggingParams?(K=K.serializedYpcResumeFlowLoggingParams)&&_.Ad("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",K):K.serializedYpcPauseFlowLoggingParams?(K=K.serializedYpcPauseFlowLoggingParams)&&
_.Ad("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",K):K.serializedYpcRefundFlowLoggingParams?(K=K.serializedYpcRefundFlowLoggingParams)&&PUw("YPC_EVENT_TYPE_START",K):K.serializedYpcDeactivateFlowLoggingParams?(K=K.serializedYpcDeactivateFlowLoggingParams)&&_.Ad("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",K):K.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(K=K.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.Ad("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",K))},
handleLogYpcFlowDismiss_:function(K){_.T(K,kiV)&&(K=_.T(K,kiV),K.serializedTransactionFlowLoggingParams?_.TKl(K.serializedTransactionFlowLoggingParams):K.serializedYpcCancelFlowLoggingParams?(K=K.serializedYpcCancelFlowLoggingParams)&&_.Ad("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",K):K.serializedYpcResumeFlowLoggingParams?(K=K.serializedYpcResumeFlowLoggingParams)&&_.Ad("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",K):K.serializedYpcPauseFlowLoggingParams?(K=
K.serializedYpcPauseFlowLoggingParams)&&_.Ad("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",K):K.serializedYpcRefundFlowLoggingParams&&(K=K.serializedYpcRefundFlowLoggingParams)&&PUw("YPC_EVENT_TYPE_CANCEL",K))}}];var lj8={};lj8.YtCancelRecurrenceBehavior=[_.dk.YtComponentBehavior,_.yut,{attached:function(){var K=this;HaW(this,function(X,F){return K.ypcCancelRecurrenceHandler(X,F)})},
ypcCancelRecurrenceHandler:function(K,X){var F=this;if(!X||!X.ypcCancelRecurrenceEndpoint)return!1;if(!X.ypcCancelRecurrenceEndpoint.params)return _.UN(Error("rl")),!0;_.hq(this.hostElement);var P=_.dn.instance,H=_.i9().resolve(_.Nu(_.oj));P&&_.ed(P,X)?_.Rx(P,X).then(function(f){F.ypcCancelRecurrenceSuccess_(K,X,{data:f})},function(f){F.ypcCancelRecurrenceFailure_(K,X,f)}).thenCatch(function(){_.UN(Error("sl"))}):H?H.requestDataForServiceEndpoint(X).then(function(f){F.ypcCancelRecurrenceSuccess_(K,
X,f)},function(f){F.ypcCancelRecurrenceFailure_(K,X,f)}).thenCatch(function(){_.UN(Error("sl"))}):_.UN(Error("tl"));
return!0},
ypcCancelRecurrenceSuccess_:function(K,X,F){_.mm(this.hostElement);F.data||(F={data:F});F.data&&F.data.actions&&_.X0(this.hostElement,F.data.actions,this.hostElement);F.data.messageRenderer?saw(X.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(X=X.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.Ad("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",X);_.iX(K,"yt-service-request-completed",F)},
ypcCancelRecurrenceFailure_:function(K,X,F){_.mm(this.hostElement);saw(X.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.iX(K,"yt-service-request-error",{error:F,params:[K,X]})}}];var vJs=function(K,X){_.KO.call(this,X)};
_.r(vJs,yYd);var aj8={};aj8.YtCompleteTransactionBehavior=[_.dk.YtComponentBehavior,_.yut,{attached:function(){var K=this;HaW(this,function(X,F){return K.ypcCompleteTransactionHandler(X,F)})},
completeTransaction:function(K,X){var F=this;X={payments_payload:window.btoa(X.integratorData),buybucket_params:K.data.buybucketParams,offer_params:K.data.offerParams};var P=_.i9().resolve(_.oj),H=K.data.completeTransactionEndpoint,f=this.get("ypcCompleteTransactionEndpoint.actions",H);f&&_.X0(this.hostElement,f,this.hostElement);return(f=_.dn.instance)&&_.ed(f,H)?_.Rx(f,H,X).then(function(u){return!u||(u==null?0:u.error)?(u=F.get("data.serializedTransactionFlowLoggingParams",K),_.pB(new iA("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
u))):{data:u}}).then(function(u){return F.handleCompleteTransactionSuccess_(u,K)},function(){return F.handleCompleteTransactionFailure_(K)}):P.requestDataForServiceEndpoint(H,X).then(function(u){return F.handleCompleteTransactionSuccess_(u,K)},function(){return F.handleCompleteTransactionFailure_(K)})},
handleCompleteTransactionSuccess_:function(K,X){K.data||(K={data:K});if(K.data.messageRenderer)return _.pB(new vJs(K.data.messageRenderer));if(K.data.trackingParams){var F=_.AD(),P=_.r_();F&&P&&_.Us(F,P,_.QB(K.data.trackingParams))}X=this.get("data.serializedTransactionFlowLoggingParams",X);HQV(X);return _.F0(K)},
handleCompleteTransactionFailure_:function(K){K=this.get("data.serializedTransactionFlowLoggingParams",K);_.m5("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",K);return _.pB(new iA("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",K))},
ypcCompleteTransactionHandler:function(K,X){var F=this;if(!X.ypcCompleteTransactionEndpoint)return!1;if(!X.ypcCompleteTransactionEndpoint.transactionParams)return _.UN(Error("ul")),!0;X.ypcCompleteTransactionEndpoint&&X.ypcCompleteTransactionEndpoint.gtmData&&_.cU(X.ypcCompleteTransactionEndpoint.gtmData);var P=_.i9().resolve(_.Nu(_.oj));if(P){_.hq(this.hostElement);var H=_.dn.instance;H&&_.ed(H,X)?_.Rx(H,X).then(function(f){return!f||(f==null?0:f.error)?(f=F.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
X),_.pB(new iA("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",f))):{data:f}}).then(function(f){_.iX(K,"yt-service-request-completed");
F.ypcCompleteTransactionSuccess_(X,f)},function(){return F.ypcCompleteTransactionFailure_(X)}):P.requestDataForServiceEndpoint(X).then(function(f){_.iX(K,"yt-service-request-completed");
F.ypcCompleteTransactionSuccess_(X,f)},function(){return F.ypcCompleteTransactionFailure_(X)})}return!0},
ypcCompleteTransactionSuccess_:function(K,X){_.mm(this.hostElement);X.data||(X={data:X});_.xr(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);X.data.messageRenderer||X.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(K):(_.cU('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",K));X.data.actions&&(K=pgs(X.data.actions),X=B_s(X.data.actions),K.length&&_.Kl(this.hostElement,
K),X.length&&_.X0(this.hostElement,X,this.hostElement))},
ypcCompleteTransactionFailure_:function(K){_.mm(this.hostElement);_.xr(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",K,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(K,X,F){if(X=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",X))X={serializedTransactionFlowLoggingParams:X},F&&(X.errorType=F),_.LL(K,X),_.A_()}}];var t5o={};t5o.YtEndpointHandlerWithYpcBehavior=[_.yut,_.NT.YtActionHandlerBehavior,[{openWalletDialog:function(K,X,F,P,H,f,u){var J=this,Z=_.Ue();X=X.replace(/-/g,"+").replace(/_/g,"/");var M=_.ZO().get("hl");_.NmO(_.In(_.Gw),X,Z.resolve,H,function(n){f&&f();Z.reject(n)},M,function(n){return J.onServerBackendAnalyticEvent_(K,F,n)},this.onDialogClose_.bind(this),P,u);
return Z.promise},
openFixFlowDialog:function(K,X,F,P){K=K.replace(/-/g,"+").replace(/_/g,"/");_.In(_.Gw).openFixFlowDialog(K,X,F,P)},
onDialogClose_:function(){_.xr(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(K,X,F){_.iX(K,"yt-commerce-action-init-done");X&&_.Kl(this.hostElement,[X,{backend_analytics:F}])}}],
_.sT.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(K,X){K=this.get("data.nativeFlowEndpoint",X);X=this.get("data.fallbackEndpoint",X);K?_.Kl(this.hostElement,[K]):X&&_.iX(this.hostElement,"yt-navigate",{endpoint:X})}}],
lj8.YtCancelRecurrenceBehavior,aj8.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 K=this;HaW(this,function(X,F,P){return K.handleYPCEndpoint(X,F,P)});
this.ypcRegisterActionMapJobId_=_.cu(_.A9,function(){K.registerActionMap(K.buyFlowActionMap_)})},
detached:function(){var K=this;_.A9.cancelJob(this.ypcRegisterActionMapJobId_);_.cu(_.A9,function(){K.unregisterActionMap(K.buyFlowActionMap_)})},
handleYPCEndpoint:function(K,X,F){var P=X.ypcGetCartEndpoint;if(P){_.rb("commerce_transaction");var H=P.gtmId;H&&_.nE(H);(P=P.gtmData)&&_.cU(P)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",X)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(K,X),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",X)!=null?(this.handleYPCFixInstrumentEndpoint_(K,X),!0):X.ypcPauseSubscriptionCommand?(KXF(this.hostElement,K,X,F),
!0):X.ypcResumeSubscriptionCommand?(Pjk(this.hostElement,K,X),!0):X.getPaymentInstrumentsParamsCommand?(xm5(this.hostElement,K,X),!0):X.ypcHandleTransactionEndpoint?(NbJ(this.hostElement,K,X,F),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(K,X){var F=this;_.Ac("ttcr",void 0,"commerce_transaction");X=X.ypcGetCartEndpoint;var P=X.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,H=P.encryptedPurchaseParams,f=P.serializedTransactionFlowLoggingParams,u=P.serializedPaymentsClientParams,J=this.createGetCartResponseFromParams_(P,X.offerParams,f);this.changeButtonState(K,!0);_.Yv(this.openWalletDialog(K,H,P.ypcLogWalletAnalyticDataEndpoint,f,function(){F.changeButtonState(K,!1)},function(){F.changeButtonState(K,
!1)},u).then(function(Z){return F.handleBuyFlowCompleteCallback_(K,J,Z)},function(){return F.handleOnLoadError(J)}).then(function(Z){return void F.handlePostPurchaseSuccess_(K,J,Z)},function(Z){return void F.handlePostPurchaseError_(Z)}),function(){F.changeButtonState(K,!1);
K instanceof Element&&_.iX(K,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(K,X,F){var P=K.completeTransactionEndpoint,H=K.handleTransactionEndpoint;X={data:{offerParams:window.btoa(X),serializedTransactionFlowLoggingParams:F}};H?X.data.handleTransactionEndpoint=H:X.data.completeTransactionEndpoint=P;K.onCartDismissCommand&&(X.data.onCartDismissCommand=K.onCartDismissCommand);return X},
onGetCartServiceRequestCompleted_:function(K,X){var F=this,P=K.target;if(X&&X.data&&X.data.messageRenderer)_.mm(this.hostElement),this.handleMessageRenderer_(X.data.messageRenderer),this.changeButtonState(P,!1);else{var H=this.get("data.encryptedPurchaseParams",X),f=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",X),u=this.get("data.ypcLogWalletAnalyticDataEndpoint",X),J=this.get("data.serializedPaymentsClientParams",X),Z=this.getLoggingParams_(X);if(Z||H||f)K.stopPropagation(),_.Ac("ttcr",
void 0,"commerce_transaction"),H||_.mm(this.hostElement),this.changeButtonState(P,!1),f?_.xr(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.e8("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:f}}},this]):H&&(this.changeButtonState(P,!0),K=null,K=this.openWalletDialog(P,H,u,Z,function(){_.mm(F.hostElement);F.changeButtonState(P,!1)},function(){_.mm(F.hostElement);
F.changeButtonState(P,!1)},J),_.Yv(K.then(function(M){return F.handleBuyFlowCompleteCallback_(P,X,M)},function(){return F.handleOnLoadError(X)}).then(function(M){return F.handlePostPurchaseSuccess_(P,X,M)},function(M){return F.handlePostPurchaseError_(M)}),function(){F.changeButtonState(P,!1);
_.iX(P,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(K,X){X&&X.endpoint&&X.endpoint.ypcGetCartEndpoint&&!X.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",X.endpoint.ypcGetCartEndpoint)&&_.X0(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",X.endpoint.ypcGetCartEndpoint)],K.target),_.hq(this.hostElement),this.changeButtonState(K.target,!0))},
onServiceRequestError_:function(K,X){if(X&&X.params&&X.params.length){X=_.D(X.params);for(var F=X.next();!F.done;F=X.next())if((F=F.value)&&F.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",F.ypcGetCartEndpoint)&&_.X0(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",F.ypcGetCartEndpoint)],K.target);_.mm(this.hostElement);this.changeButtonState(K.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(K,X,F){var P=F.integratorData;return P==null||P===""||F.error!=null?(P=this.getLoggingParams_(X),String(F.error)==="-1"?(X.data.onCartDismissCommand&&_.X0(this.hostElement,[X.data.onCartDismissCommand],K),_.pB(new iA("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",P,!0))):_.pB(new iA("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",P))):X.data.handleTransactionEndpoint?ilw(this.hostElement,X.data.handleTransactionEndpoint,{payments_payload:P,funds_guarantee_callback_client_data:F.integratorClientCallbackData}):
this.completeTransaction(X,F)},
handlePostPurchaseSuccess_:function(K,X,F){X=F.data;var P=!1,H,f;if(X&&((H=X.command)==null?0:(f=H.commandExecutorCommand)==null?0:f.commands)){var u,J;H=(u=X.command)==null?void 0:(J=u.commandExecutorCommand)==null?void 0:J.commands;for(u=0;u<H.length;u++)if(_.T(H[u],_.MgT)){P=!0;break}}P||(X&&X.gtmDatas&&X.gtmDatas.length?_.cU(X.gtmDatas[0]):_.cU('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));F.data&&F.data.actions&&(X=pgs(F.data.actions),F=B_s(F.data.actions),X.length&&
_.Kl(this.hostElement,X),F.length&&_.X0(this.hostElement,F,K))},
handlePostPurchaseError_:function(K){K&&K.payload&&K.payload.isUserDismiss||_.jF(Error("wl"))},
handleOnLoadError:function(K){K=this.getLoggingParams_(K);return _.pB(new iA("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",K))},
getLoggingParams_:function(K){return this.get("data.serializedTransactionFlowLoggingParams",K)},
handleMessageRenderer_:function(K){var X=_.y8(K,"renderer"),F=_.e8("openPopupConfig");X==="confirmDialogRenderer"&&F&&_.xr(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:F.popupTypeMap[X],popup:K}},this])},
handleYPCFixInstrumentEndpoint_:function(K,X){var F=this,P=X.ypcFixInstrumentEndpoint;X=P.encryptedFixInstrumentParameters;this.logFixFopEvent_(P,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(K,!0);this.openFixFlowDialog(X,function(H,f){F.onFixFlowCompleteCallback_(P,H,f)},function(){return F.changeButtonState(K,!1)},function(){F.changeButtonState(K,!1);
F.logFixFopEvent_(P,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(K,X,F){var P=_.mz("payments.business.integration.scenario.FixInstrument");if(X==P.IntegratorCallbackType.ON_COMPLETE){X="FIX_FOP_EVENT_TYPE_CANCEL";var H=null;F.error!=null?F.error!=P.OnCompleteCallbackError.USER_CANCELLED&&(_.X0(this.hostElement,[K.errorAction],this.hostElement),X="FIX_FOP_EVENT_TYPE_FAILURE",H="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.X0(this.hostElement,[K.successAction],this.hostElement),X="FIX_FOP_EVENT_TYPE_SUCCESS");_.X0(this.hostElement,[K.onFinishAction],
this.hostElement);this.logFixFopEvent_(K,X,H)}},
logFixFopEvent_:function(K,X,F){(K=K.serializedFixFopLoggingParams)?(X={eventType:X,serializedFixFopLoggingParams:K},F!=null&&(X.errorType=F),_.LL("fixFopFlow",X),_.A_()):_.jF(Error("xl"))},
changeButtonState:function(K,X){_.S("enable_ypc_spinners")&&K&&(K.is==="yt-button-renderer"||K.is==="ytd-button-renderer")&&(K.disabled=X)}}];var $kJ=function(K){this.JSC$28769_clientRoot=K;this.feedbackCollectorActionMap={"yt-help-dialog-requested":sAd,"yt-feedback-dialog-requested":HIv,"yt-signal-action-help":zX8,"yt-signal-action-send-feedback":fHJ,"yt-send-feedback-action":uF5,"yt-user-feedback-endpoint":qz8};_.ly(_.GT.getInstance(),this.feedbackCollectorActionMap,this.JSC$28769_clientRoot)},OFs;var V58=function(K){this.JSC$28774_clientRoot=K;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":J7o.bind(null,this.JSC$28774_clientRoot),"yt-signal-action-delete-all-downloads":Yzo,"yt-signal-action-delete-download":QAk,"yt-signal-action-delete-playlist-download":nxo,"yt-signal-action-install-pwa":LX1,"yt-signal-action-refresh-downloads":Sz8,"yt-offline-video-endpoint":r78,"yt-offline-playlist-endpoint":jAv,"yt-update-local-app-setting-command":y7w,"yt-offline-orchestration-action-command":dat,
"yt-signal-action-undo-delete-download":pvo,"yt-local-watch-history-command":Ua8};_.ly(_.GT.getInstance(),this.downloadManagerActionMap,this.JSC$28774_clientRoot);_.p$.instance=new _.p$},gJd;var a6=function(){var K=_.G.apply(this,arguments)||this;K.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_"};K.remoteApi_=null;return K};
_.r(a6,_.G);_.z=a6.prototype;
_.z.ready=function(){_.S("polymer_enable_mdx")&&(Xhv({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.S("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.S("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.S("enable_cast_short_lived_lounge_token")}),_.XY("yt-remote-connection-change",this.handleConnectionChange_,this),_.XY("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=DAd())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.z.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.z.handleConnectionChange_=function(K){(this.mdxConnected=K)?(K=Hpw(),!K&&PXV()&&Hyk()&&(K={key:"cast-selector-receiver",name:Hyk()}),K=K.name):K=null;this.receiverName=K;_.ik(this.remoteApi_);(this.remoteApi_=DAd())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.z.handleReceiverAvailabilityChange_=function(){var K=Pmk();PXV()&&_.KE("yt-remote-cast-available")&&K.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=K.length>0};
_.z.handleRemoteQueueChange_=function(){var K=this.currentVideoId_,X=this.currentListId_,F=Pt(this.remoteApi_);this.currentVideoId_=F.videoId;this.currentListId_=F.listId;this.currentVideoId_&&_.xr(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.S("polymer_enable_mdx_queue")?this.currentListId_:null,K,X])};
_.z.handleAddToQueueAction_=function(K){K=_.T(K,Gi8);this.remoteApi_&&(K.videoId?this.remoteApi_.addVideo(K.videoId):K.playlistId&&this.remoteApi_.addPlaylist(K.playlistId))};
_.z.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.z.handleInsertInQueueAction_=function(K){K=_.T(K,loG);this.remoteApi_&&K.videoId&&this.remoteApi_.JSC$17555_insertVideo(K.videoId)};
_.z.handleRemoveFromQueueAction_=function(K){K=_.T(K,v4W);this.remoteApi_&&K.videoId&&this.remoteApi_.JSC$17555_removeVideo(K.videoId)};
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],a6.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h(),_.g("design:type",Object)],a6.prototype,"appId",void 0);_.O([_.h(),_.g("design:type",Boolean)],a6.prototype,"mdxConnected",void 0);_.O([_.h(),_.g("design:type",Boolean)],a6.prototype,"receiverAvailable",void 0);_.O([_.h(),_.g("design:type",Object)],a6.prototype,"receiverName",void 0);_.O([_.h(),_.g("design:type",Object)],a6.prototype,"currentVideoId_",void 0);
_.O([_.h(),_.g("design:type",Object)],a6.prototype,"currentListId_",void 0);a6=_.O([_.Tb({is:"yt-mdx-manager",disableElementRegistration:!0})],a6);_.t(a6,"yt-mdx-manager",void 0,{mode:2});var EJ8;var bFG;var tz=function(){var K=_.G.apply(this,arguments)||this;K.APP_IDS={ytr:3,ytm:5};K.JSC$18796_timeoutId_=0;K.actionMap={"yt-open-create-family-dialog":"open"};return K};
_.r(tz,_.G);_.z=tz.prototype;_.z.created=function(){Sm8(2200)};
_.z.detached=function(){this.observer_&&this.observer_.disconnect()};
_.z.open=function(K,X){var F=this,P=K.serializedYpcFamilyCreateLoggingParams;this.JSC$18796_timeoutId_=setTimeout(this.abort_.bind(this,K.postFlowErrorEndpoint,P),3E4);X&&(this.onReadyCallback_=X);var H=_.C$(this.hostElement).querySelector("#unicorn-iframe");P&&P&&F3J("ypcFamilyCreateFlowStarted",P);_.n0T("family_creation",function(){var f=_.mz("gapi.family_creation.render");_.mz("gapi.config.update")("iframes/family_creation/url",F.getFamilyCreationUrlWithUnicornParams_());var u=3;K.appId&&K.appId in
F.APP_IDS&&(u=F.APP_IDS[K.appId]);u={authUser:_.e8("SESSION_INDEX")||0,clientId:u,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.e8("HL"),initialflow:[4,5,6,7],m:F.isMobile?1:0,onFlowComplete:F.onUnicornFlowComplete_.bind(F,K.postFlowSuccessEndpoint,P),onError:F.onUnicornFlowError_.bind(F,K.postFlowErrorEndpoint,P),onReady:F.onUnicornFlowReady_.bind(F,K.referencePcidParams)};f(H,u)})};
_.z.close=function(){_.C$(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.z.onUnicornFlowComplete_=function(K,X){this.close();X&&X&&F3J("ypcFamilyCreateFlowSucceeded",X);_.iX(this.hostElement,"yt-navigate",{endpoint:K})};
_.z.onUnicornFlowError_=function(K,X){this.close();X&&F3J("ypcFamilyCreateFlowCancelled",X);_.iX(this.hostElement,"yt-navigate",{endpoint:K})};
_.z.onUnicornFlowReady_=function(K){var X=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();K&&_.mz("gapi.family_creation.setConfig")(0,K);this.observer_=new MutationObserver(function(){_.C$(X.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.C$(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.C$(this.hostElement).querySelector("#dialog").open()};
_.z.getFamilyCreationUrlWithUnicornParams_=function(){return _.e8("YTR_FAMILY_CREATION_URL")};
_.z.getCurrentUrl_=function(){return document.location.href};
_.z.abort_=function(K,X){this.clearTimeout_();this.onUnicornFlowError_(K,X)};
_.z.clearTimeout_=function(){clearTimeout(this.JSC$18796_timeoutId_)};
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],tz.prototype,"ytActionHandlerBehavior",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],tz.prototype,"isMobile",void 0);_.O([_.h(),_.g("design:type",Object)],tz.prototype,"onReadyCallback_",void 0);_.O([_.h(),_.g("design:type",Object)],tz.prototype,"observer_",void 0);tz=_.O([_.Tb({is:"yt-create-family-dialog",disableElementRegistration:!0})],tz);
_.t(tz,"yt-create-family-dialog",function(){if(bFG===void 0){var K=document.createElement("template");_.w(K,'\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');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);var X=K.content,F=X.insertBefore;EJ8===void 0&&(EJ8=document.createElement("template"));var P=EJ8;F.call(X,P.content.cloneNode(!0),K.content.firstChild);bFG=K}K=bFG;return K},{mode:2});var Chd;var Nos;var $H=function(){var K=_.G.apply(this,arguments)||this;K.STEP=1;K.BLOCK_ON=80;K.MIN_PROGESS=0;K.MAX_PROGESS=100;return K};
_.r($H,_.G);_.z=$H.prototype;_.z.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.z.ready=function(){this.progress_=this.MIN_PROGESS;this.hostElement.hidden=!0;this.hostElement.setAttribute("aria-valuemin",String(this.MIN_PROGESS));this.hostElement.setAttribute("aria-valuemax",String(this.MAX_PROGESS));_.i9().addProvider({provide:lgJ,useValue:this})};
_.z.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.z.finish=function(){var K=this;this.progress=this.MAX_PROGESS;hXV(function(){K.progress==K.MAX_PROGESS&&(K.hostElement.hidden=!0)})};
_.z.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.Oi.Object.defineProperties($H.prototype,{progress:{configurable:!0,enumerable:!0,set:function(K){this.progress_=K;var X="scaleX("+K/this.MAX_PROGESS+")",F=_.C$(this.hostElement).querySelector("#progress").style;F.transform=X;F.webkitTransform=X;this.hostElement.setAttribute("aria-valuenow",String(K))},
get:function(){return this.progress_}}});
_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],$H.prototype,"ytComponentBehavior",void 0);$H=_.O([_.Tb({is:"yt-page-navigation-progress",disableElementRegistration:!0})],$H);
_.t($H,"yt-page-navigation-progress",function(){if(Nos===void 0){var K=document.createElement("template");_.w(K,'\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');K.content.insertBefore(_.I().content.cloneNode(!0),
K.content.firstChild);var X=K.content,F=X.insertBefore;Chd===void 0&&(Chd=document.createElement("template"));var P=Chd;F.call(X,P.content.cloneNode(!0),K.content.firstChild);Nos=K}K=Nos;return K},{mode:2});var iFk={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"},xkt={"font-size":"12px","font-style":"italic"},Ijw={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.vxW=function(){return _.q(function(K){_.JT(K)})};_.EP(_.$c(function(){var K=_.rn(_.pKw);return _.Q("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var X;return(X=K())==null?void 0:X.announcement})},"ch"),"yt-ephemeral-actions");var PNk=new Map;var mus=function(K,X){var F=this;this.handleError=K;this.logEventInternal=X;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){F.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
mus.prototype.logError=function(K){this.handleError(K)};
mus.prototype.logEvent=function(K,X){switch(K){case "IDB_DATA_CORRUPTED":_.S("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",X);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",X);break;case "IS_SUPPORTED_COMPLETED":_.S("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",X);break;case "QUOTA_EXCEEDED":kgJ(this,X);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",X);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":K=Object.assign({},X,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",K)}};
var kgJ=function(K,X){_.fr.getInstance().estimate().then(function(F){F=Object.assign({},X,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:sjv(F==null?void 0:F.usage),deviceStorageQuotaMbytes:sjv(F==null?void 0:F.quota)});K.logEventInternal("idbQuotaExceeded",F)})};var O3=function(){var K=_.G.apply(this,arguments)||this;K.tabGesturesIsActive=!1;K.deprecateFullerscreenUi=_.S("web_watch_fullerscreen_deprecation_ui");K.hasDelegation=!1;K.darkerDarkTheme=_.S("web_darker_dark_theme");K.isFrostedGlassInitialized=!1;K.frostedGlassExp=_.S("web_frosted_glass");K.mastheadHiddenFocusWithinKillswitch=_.S("web_masthead_hidden_focus_within_killswitch");K.ephemeralActionsEnabled=_.S("web_ephemeral_actions");K.scrollAtTop=!0;K.guideScrollTop=0;K.isTheaterModeSession=_.RU("START_IN_THEATER_MODE");
K.iMaxTheaterMode=_.S("web_watch_imax_theater_mode");K.isFullWindowSession=_.RU("START_IN_FULL_WINDOW_MODE");K.hasCreateFamilyDialog=!1;K.mastheadHeight=56;K.networkStatusManager=new _.lU;K.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"};K.dynamicActionMap={"yt-run-attestation-command":function(X){var F=_.bnC.instance,P=_.T(X,_.hIu);return P?_.S("use_rta_manager_for_async")&&
SNW()?qo5(F,P,X.clickTrackingParams):uUo(F,P,X.clickTrackingParams):_.pB(Error("hi"))}};
K.isFrostedGlassDisabled=!1;K.isChannelOrPlaylistPage=!1;return K};
_.r(O3,_.G);_.z=O3.prototype;_.z.created=function(){var K=_.i9();_.S("kevlar_clear_duplicate_pref_cookie")&&_.cu(_.A9,function(){var X=_.Jv.get("PREF");X&&!/f\d=/.test(X)&&(X=_.KG("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=X?"PREF=null;domain="+X+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.S("gzip_gel_with_worker")&&_.UaP();_.S("jspb_serialize_with_worker")&&EUv();_.S("web_worker_availability_check")&&H$8();_.S("nwl_init_killswitch")||V8v().then(function(){_.A9.addLowPriorityJob(qck)});
this.pageManagerAttachedPromise=_.Ue();this.ytdAppBehavior.loadDepsPromise=_.ZG([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.VW(this.onThrottledScroll,200,this);_.S("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);Grd();jv8=!!_.mz("ytappsettings.initialized");s0=_.mz("ytappsettings.previousValue");BSd=_.mz("ytappsettings.previousSnapshotTime");jv8||(jv8=!0,SUs());nrs();cDV();_.d2("DEFERRED_DETACH",
_.S("kevlar_tuner_should_defer_detach"));_.d2("REUSE_COMPONENTS",!0);_.d2("STAMPER_STABLE_LIST",!0);_.d2("SCHEDULED_LAZY_LIST",!0);_.d2("openPopupConfig",KiG);_.d2("useClickHandler",!0);_.S("kevlar_shell_cleanup")&&_.A9.addLowPriorityJob(wm1.bind(this,_.FP.caches));_.RU("IS_SHELL_LOAD")&&_.T6({shellStartupDurationMs:Math.round((0,_.CG)()-_.nl())});OIG(this.networkStatusManager);_.S("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",mak(iFk)),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!",
mak(xkt)),console.log("%cVisit http://go/join-youtube-web to apply today.",mak(Ijw)));_.lwF(K.resolve(_.Pq),1E3)};
_.z.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var K=FS5();K&&!_.S("external_fullscreen_killswitch")&&document.addEventListener(K,this.setFullscreen.bind(this));(K=window.matchMedia("(prefers-color-scheme: dark)"))&&K.addEventListener&&K.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.z.attached=function(){var K=this;_.wz().processSignal("ci");_.S("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.ZVM?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.zt(_.G44(),"SUCCESS");this.updateIconSet();_.Cy(this.guideInnerContent,!1);_.Z9().initVisibilityObserver();this.guideService.guideElement=this.guide;var X=document.createElement("ytd-miniplayer"),F=_.C$(this.hostElement).querySelector("#content");
_.C$(this.hostElement).insertBefore(X,F);_.wz().processSignal("ma");_.i9().resolve(_.Wj).init(X);_.RU("IS_SHELL_LOAD")&&(F=document.createElement("ytd-network-status-banner"),_.C$(this.hostElement).insertBefore(F,X));_.S("kevlar_right_click_on_lockups")&&_.U_._onCaptureClick&&document.addEventListener("contextmenu",_.U_._onCaptureClick.bind(_.U_),!0);var P=function(){var H=_.gk("yt-page-navigation-progress");_.C$(K.hostElement).appendChild(H)};
setTimeout(function(){_.wz().parkOrScheduleJob(P,0,"eocs",16)},0);
_.S("service_worker_push_enabled")&&_.cu(_.A9,XEJ);_.ly(_.GT.getInstance(),this.dynamicActionMap,this.hostElement);_.iX(this.hostElement,"ytd-app-attached");_.wz().processSignal("aa");pm8(this.hostElement);_.gS("gapi.load",_.n0T);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.cu(_.A9,
function(){var H=document.createElement("ytd-video-preview");_.C$(_.C$(K.hostElement).querySelector("#video-preview")).appendChild(H)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.cu(_.A9,function(){aHk();K.registerViewTransitionTasks()});
if(_.cI()&&this.isAppDarkTheme()!==_.MD())this.onDarkModeToggledAction();else X=_.n$()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==X&&(_.S("enable_dark_theme_only_on_shorts")?_.Rj(_.S("enable_dark_theme_only_on_shorts_control")?window.location.href:_.$U(window.location.href,{theme:"dark"})):_.yy(new _.nG("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(HEG=new PZ8(this.hostElement)),gJd=new V58(this.hostElement),OFs=new $kJ(this.hostElement),TkV=new Lik(this.hostElement)};
_.z.getThemeSettingsToLog=function(){var K=_.n$()==="USER_INTERFACE_THEME_DARK";K=_.cI()?_.MD()?"os-dark":"os-light":K?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:K,cookiesEnabled:_.YS()}};
_.z.detached=function(){_.N$(this.guideInnerContent);_.A9.cancelJob(Fp);Fp=0;_.A9.cancelJob(H2);H2=0;_.b$3(cv8);cv8.length=0;QtJ=_.Fdy=null;_.Z9().dispose();_.S("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.vu(_.GT.getInstance(),HEG.playlistHandlerActionMap,HEG.JSC$28469_clientRoot);_.vu(_.GT.getInstance(),gJd.downloadManagerActionMap,gJd.JSC$28774_clientRoot);_.vu(_.GT.getInstance(),OFs.feedbackCollectorActionMap,OFs.JSC$28769_clientRoot);
for(var K=_.D(TkV.eventListeners),X=K.next();!X.done;X=K.next()){var F=_.D(X.value);X=F.next().value;F=F.next().value;F=_.D(F);for(var P=F.next();!P.done;P=F.next()){var H=_.D(P.value);P=H.next().value;H=H.next().value;X.removeEventListener(P,H)}}_.vu(_.GT.getInstance(),TkV.autonavPauseActionMap,TkV.JSC$17740_clientRoot)};
_.z.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.ZO().getFlag(186)};
_.z.computeIsInlinePreviewEnabled=function(K,X,F){return!F&&_.U4W({miniplayerIsActive:K,miniplayerPlaybackState:X})};
_.z.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.iY({type:"SET_FROSTED_GLASS_MODE",payload:!_.S("web_frosted_glass")||this.isFrostedGlassDisabled?"none":!this.isFrostedGlassInitialized&&this.applyFrostedGlassToChipBar?"loading-with-chipbar":this.isFrostedGlassInitialized||this.applyFrostedGlassToChipBar?this.applyFrostedGlassToChipBar?"with-chipbar":"without-chipbar":"loading-without-chipbar"}))};
_.z.computeIsFrostedGlassDisabled=function(K,X,F,P){return K||X||F||P&&_.S("web_frosted_glass_disable_watch")};
_.z.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.S("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.z.computeIsHomePage=function(K,X){if(!K||X==null||!X.endpoint)return!1;var F;return((F=_.T(X.endpoint,_.f$))==null?void 0:F.browseId)==="FEwhat_to_watch"};
_.z.updateIsChannelOrPlaylistPage=function(){if(_.S("web_frosted_glass")){var K,X,F=(X=(K=_.i9().resolve(_.Nu(_.ax)))==null?void 0:K.getCurrentPage())==null?void 0:X.pageSubtype;this.isChannelOrPlaylistPage=F?["channel","channels","playlist"].includes(F):!1}};
_.z.scheduleFrostedGlassInitialization=function(){var K=this;_.S("web_frosted_glass")&&_.wz().parkOrScheduleJob(function(){K.isFrostedGlassInitialized=!0},0,_.je(["eocs",
"cr"]),300)};
_.z.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.JjC(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.iY({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.iY({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.z.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(cYo(!0))};
_.z.onYtSignalActionRequestPersistentStorage=function(){if(!_.S("request_persistent_storage_killswitch")){var K=_.i9().resolve(_.yiW);K.cachedPersistStatePromise||(K.cachedPersistStatePromise=mYV())}};
_.z.handleYtChannelCreationFormEndpoints=function(K){K&&this.ytComponentBehavior.resolveCommand(K)};
_.z.handleShowEngagementPanelEndpoint=function(K){K&&this.ytComponentBehavior.resolveCommand(K)};
_.z.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(cYo(!1))};
_.z.initIconDefs=function(K,X,F){var P=document.createElement("iron-iconset-svg");P.name=K;K=document.createElementNS("http://www.w3.org/2000/svg","svg");P.appendChild(K);K.appendChild(X);if(F)for(var H in F)P[H]=F[H];document.body.appendChild(P);return P};
_.z.onWindowResized=function(){_.xr(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var K=_.LYC.getInstance();K.documentWidth_=document.body.clientWidth;Gwk(K)};
_.z.onWindowScrolled=function(){var K=_.i9().resolve(_.ax).getCurrentPage();if(K!=null&&K.getScrollTop){var X=this.ytdReduxBehavior,F=X.dispatch;K=K.getScrollTop()<=0;F.call(X,_.iY({type:"SET_SCROLL_AT_TOP",payload:K}))}};
_.z.guideIsVisibleButNotPersistentSelectorChanged=function(){var K=_.i9().resolve(_.ax).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=K.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"),
K.setScrollTop(this.guideScrollTop));_.IJ(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.z.getCurrentPageScrollableElementType=function(){var K=_.i9().resolve(_.ax).getCurrentPage();if(K&&K.getPageScrollingElement())return K.getPageScrollingElement().nodeName};
_.z.observeGuideVisibility=function(){var K=_.LYC.getInstance(),X=this.miniGuideVisible;K.guidePersistentAndVisible_=this.guidePersistentAndVisible;K.miniGuideVisible_=X;Gwk(K)};
_.z.handleEduDismissAction=function(K){K&&K.eduDismissAction&&(_.xr(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.clO.getInstance(),_.tW.set(K.eduDismissAction.key+"-dismissed",!0))};
_.z.handleEduImpressionAction=function(K){if(K&&K.eduImpressionAction){var X=_.clO.getInstance();K=K.eduImpressionAction.key;X.JSC$10906_eduDisplayedThisLoad_[_.nzE[K].setKey||K]=!0;_.tW.set(K+"-impression",parseInt(_.tW.get(K+"-impression")||0,10)+1)}};
_.z.onYtSignalActionConfirmMentionsEdu=function(){_.xr(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.VZ.getInstance();_.OL.set("edu-dismissed",!0)};
_.z.onYtSignalActionRecordMentionsEduImpression=function(){_.VZ.getInstance();var K=_.OL.set,X=parseInt(_.OL.get("edu-impressions"),10);K.call(_.OL,"edu-impressions",(isFinite(X)?X:0)+1)};
_.z.onYtPageManagerAttached=function(K){var X;((X=_.vI(K))==null?void 0:X.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.z.onInvokeInstrumentManagerAction=function(K,X){uNJ(X,K)};
_.z.updateIconSet=function(){var K=this.hostElement.querySelector("#masthead");if(K){var X=_.ND(K),F=X.querySelector("g#yt-logo-updated");F&&(K=document.createElementNS("http://www.w3.org/2000/svg","defs"),K.appendChild(F.cloneNode(!0)),(X=X.querySelector("g#yt-logo-red-updated"))&&K.appendChild(X.cloneNode(!0)),this.initIconDefs("yt-logos-ext",K))}};
_.z.updateMastheadData=function(){var K=this,X,F,P,H,f;return _.q(function(u){if(u.nextAddress==1){X=K.data;F=K.hostElement.querySelector("#masthead");if(!F)return u.return();_.tg(K,function(){F.data=K.topbarData});
if(!K.get("response.topbar",X)||K.get("response.topbar.responseContext.maxAgeSeconds",X)===0)return u.jumpTo(0);if(P=_.i9().resolve(_.l5))return _.Y(u,P(),6);H=_.i9().resolve(_.Kf);return _.Y(u,H.put("service:topbar:fallback",new _.XM({innertubeResponse:K.get("response.topbar",X)})),0)}return(f=u.yieldResult)?_.Y(u,f.put("service:topbar:fallback",new _.XM({innertubeResponse:K.get("response.topbar",X)})),0):u.jumpTo(0)})};
_.z.computeTopbarData=function(K){if(!K)return null;var X;return this.isShortsPage&&this.topbarData&&!_.T((X=K.response)==null?void 0:X.topbar,TZG)?this.topbarData:K.response&&"topbar"in K.response?_.T(K.response.topbar,TZG)||null:null};
_.z.onSetTheaterModeEnabled=function(K,X){this.isTheaterModeSession=X.enabled;this.setTheaterModeStyles(X.enabled)};
_.z.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.z.onDarkModeToggledAction=function(){var K=_.zy(window.location.href);if(!_.YTP(K)){(K=!!_.tV(window.location.href).themeRefresh)&&_.yy(new _.nG("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!K){SUs();K={themeRefresh:1};var X=_.i9().resolve(_.ax);if(X.isOnWatch()){var F,P;X=((F=X.getPlayerFromWatch())==null?void 0:(P=F.getPlayer())==null?void 0:P.getCurrentTime())||0;X>=1&&(K.time_continue=Math.floor(X))}_.YS()||_.n$()!=="USER_INTERFACE_THEME_DARK"||(K.theme="dark");_.Rj(_.$U(window.location.href,
K))}_.S("web_appshell_refresh_trigger")&&_.FP.caches&&this.refreshAppShellResponse();F=_.Uc(window.location.href);_.HR(_.i9().resolve(_.sI),_.Vn(F,"theme"))}};
_.z.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.z.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.z.onPlayerFullscreen=function(K){_.Ec();this.playerFullscreen=K};
_.z.setRestrictedMode=function(K){var X=_.ZO();_.YX(0,58,K);X.save();_.i9().resolve(_.Jk).reload()};
_.z.onPageChanged=function(K){K.detail.newPageType==="ytd-watch-flexy"||K.detail.newPageType==="ytd-watch-fixie"||K.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.SN("WEB_PAGE_TYPE_WATCH")):K.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.SN("WEB_PAGE_TYPE_SHORTS")):K.detail.newPageType==="ytd-browse"&&K.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.SN("WEB_PAGE_TYPE_MINI_APP")):_.S("web_frosted_glass")&&K.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.SN("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.SN("WEB_PAGE_TYPE_UNKNOWN"));K.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.z.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.z.onGuideToggleTap=function(){_.iX(this.hostElement,"yt-guide-toggle")};
_.z.onGuideToggleHover=function(){_.iX(this.hostElement,"yt-guide-hover")};
_.z.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.z.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.z.setMastheadTheme=function(){var K=_.ND(this.hostElement).querySelector("#masthead");K&&(K.dark=K.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),K.isDarkThemeForced=!1)};
_.z.onRequestPanelModeChange=function(K,X){this.hideHeaderShadow=X.mode!=="seamed"};
_.z.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.z.onDrawerIronSelect=function(K){_.vI(K).id==="guide"&&this.processDrawerIronSelect()};
_.z.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var K="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(K="opened"));_.iX(this.hostElement,"yt-autonav-pause-guide-"+K)};
_.z.onAddElementToApp=function(K){_.C$(this.hostElement).appendChild(K.detail)};
_.z.onThrottledScroll=function(){var K=_.i9().resolve(_.ax).getCurrentPage();K&&(this.scrollAtTop=K.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.z.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.z.setFullscreen=function(){if(_.S("external_fullscreen")||!this.isWatchPage){var K=_.S("kevlar_fullerscreen_root_only_killswitch")?!!_.Ec():!!_.Ec()&&_.Ec()===document.documentElement;K=(this.isWatchPage||_.S("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(K||this.isFullWindowSession);this.fullscreen!==K&&((this.fullscreen=K)&&_.IJ(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.aA().dispatch(_.nUV(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.xr(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.z.setFullscreenLoggingForShorts=function(K){var X,F,P;return _.q(function(H){if(H.nextAddress==1)return _.Y(H,(X=_.$f())==null?void 0:X.getPlayerPromise(),2);F=H.yieldResult;(P=F)==null||P.setAppFullscreen(K);_.JT(H)})};
_.z.updateMastheadCssHeight=function(){var K=this.mastheadHeight;this.fullscreen&&(K=0);_.XU(this.hostElement,{"--ytd-masthead-height":K+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.z.updateNetworkStatusBannerDisplayStatus=function(){var K="unset";this.fullscreen&&(K="none");_.XU(this.hostElement,{"--ytd-network-status-banner-display":K})};
_.z.updateNetworkStatusBannerCssHeight=function(){var K="unset";this.fullscreen&&(K="0px");_.XU(this.hostElement,{"--ytd-network-status-banner-max-height":K})};
_.z.updateScrollAndMasthead=function(K,X,F,P){this.iMaxTheaterMode||(P=!1);var H=_.i9().resolve(_.ax).getCurrentPage();K||X||P?(document.body.classList.add("no-scroll"),H.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.Pc(this,this.onScroll)),H.setScrollTop(0),_.XU(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.TA()+"px"})):F?_.iX(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.iX(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
H.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.Pc(this,this.onScroll)));this.mastheadHidden=K||X||F;this.updateMastheadCssHeight();_.S("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.z.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.z.onYtNavigateAction=function(K){K=this.get("navigateAction.endpoint",K);_.iX(this.hostElement,"yt-navigate",{endpoint:K})};
_.z.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var K=document.createElement("yt-create-family-dialog");_.C$(this.hostElement).appendChild(K);this.hasCreateFamilyDialog=!0}};
_.z.onSetPushNotificationsEnabledCommand=function(K){var X=this,F=_.T(K,Lyw);F&&typeof F.enabled==="boolean"&&(Notification.permission!=="granted"?iGG().then(function(){Notification.permission==="granted"?(hOt(!F.enabled).then(lr5),F.successAction&&_.Kl(X.hostElement,[F.successAction])):F.failureAction&&_.Kl(X.hostElement,[F.failureAction])}):(hOt(!F.enabled).then(lr5),F.successAction&&_.Kl(this.hostElement,[F.successAction])))};
_.z.onYtSignalActionEnableChromeNotifications=function(){xUG(!0)};
_.z.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.T(this.topbarData.hotkeyDialog,jr5)}}})};
_.z.onYtSignalActionShowKeyboardShortcutDialog=function(){_.xr(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.z.onYtEndpointChangeHandler=function(K,X){var F=_.In(_.qT);F.pendingPrefetchJob_&&(X=!(!X||X.autonav!="1"),F.pendingPrefetchJob_.resolve(K&&_.Psy(K)?_.H33(K,X):""),F.pendingPrefetchJob_=null);_.xr(this.hostElement,"yt-pause-active-page-context");_.xr(this.hostElement,"ytd-log-youthere-nav");_.xr(this.hostElement,"yt-prepare-page-dispose")};
_.z.handleCommandWithCommandHandler=function(K,X){_.Hn.instance.resolveCommand(K,{form:{element:X}})};
_.z.onYtTimedCommand=function(K){var X=this;K=_.T(K,JLV);var F=K.command;F&&_.QW(_.A9,function(){var P=_.T(F,_.a1U);P?(_.Hn.instance.resolveCommand(F),X.maybeLogGetAnswerRequestTick(P)):_.X0(X.hostElement,[F],X.hostElement)},K.timeoutMs||0)};
_.z.maybeLogGetAnswerRequestTick=function(K){K&&K.isFirstRequest&&(_.rb("search_overview_answer"),_.Ac("so_rq",void 0,"search_overview_answer"))};
_.z.onYtSignalActionSkipNavigation=function(){var K=_.i9().resolve(_.ax).getCurrentPage();_.Vc(K)};
_.z.onYtSignalActionCopyDebugData=function(){qM8()};
_.z.handleEntityUpdateCommand=function(K){_.fI(_.T(K,_.OMO).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.z.logFlowLoggingEventCommand=function(K){if(K=_.T(K,_.OF3))if(K.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var X=K.flowEventNamespace,F=K.flowEventType,P=K.flowType;P&&X&&F&&_.iE3(_.XN(X,F,K.flowEventMetadata),P)}else{X=_.PI();F=K.flowEventNamespace;P=K.flowEventType;var H=K.flowType;H&&F&&P&&_.FN(X,_.XN(F,P,K.flowEventMetadata),H,K.flowNonce)}};
_.z.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.z.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.z.onTouchStart=function(){var K=_.Yu();_.AD()&&_.WO(K.JSC$11133_screenManager,{visualElement:K.ve})};
_.z.handleSelectLanguageCommand=function(K){if(K=_.T(K,BZ8).hl){var X=_.ZO();X.set("hl",K);X.save();_.i9().resolve(_.Jk).reload()}};
_.z.handleConfirmDialogEndpoint=function(K){(K=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(K))&&this.ytOpenPopupBehavior.openPopup(K)};
_.z.handleOpenPopupNavigationEndpoints=function(K,X){_.S("web_button_rework")&&(K=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(K))&&this.ytOpenPopupBehavior.openPopup(K,X)};
_.z.handleSaveCommandToSessionStorage=function(K){if(K=_.T(K,_.tIW)){var X=K.key;X&&K.command&&window.sessionStorage.setItem(X,JSON.stringify(K.command))}};
_.z.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(K){K&&K.active&&K.active.postMessage({type:"refresh_shell"})}).catch(function(K){K.name!=="SecurityError"&&_.jF(K)})};
_.z.onDeviceThemeChanged=function(){var K=_.MD();_.YX(_.ZO(),185,K);_.ZO().save()};
_.z.handleYtRegisterPromoCommand=function(K){if(_.T(K,o4v)){var X=_.i9().resolve(_.ax).getCurrentPage()||this.hostElement;e6o().registerPromoCommand(_.T(K,o4v),X)}};
_.z.onYtNavigateHomeAction=function(){if(!_.S("kevlar_miniplayer_navigate_home_from_app_killswitch")){var K,X,F,P,H=(P=(K=this.topbarData)==null?void 0:(X=K.logo)==null?void 0:(F=X.topbarLogoRenderer)==null?void 0:F.endpoint)!=null?P:_.fp;this.ytComponentBehavior.resolveCommand(H)}};
_.z.onYtLocationCollectionCommand=function(K){lH8(_.T(K,hVs))};
_.z.onYtGetLocationCommand=function(K){T_s(_.T(K,UMV),this)};
_.z.updateRenderGuideFromBinding=function(K){this.renderGuide=K.detail.value};
_.z.updateGuidePersistentAndVisibleFromBinding=function(K){this.guidePersistentAndVisible=K.detail.value};
_.z.updateMiniGuideVisibleFromBinding=function(K){this.miniGuideVisible=K.detail.value};
_.z.onThemeSelected=function(K,X){var F=_.ZO(),P=K||X?K:_.MD(),H=(P&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!P&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.YTP(_.zy(window.location.href));_.YX(0,165,K);_.YX(0,174,X);F.save();H&&_.xr(this.hostElement,"yt-dark-mode-toggled-action",[P]);_.xr(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.z.getCurrentTheme=function(){return _.cI()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.n$()};
_.z.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.z.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.z.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.z.handleShowConsentPrimitive=function(K){var X=this,F,P;return _.q(function(H){if(H.nextAddress==1){try{F=(P=_.$f())==null?void 0:P.getPlayerPromise()}catch(f){}return _.Y(H,F5w(K,F),2)}_.xr(X.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.JT(H)})};
_.z.handleSelectActiveIdentityEndpointInternal=function(K){_.WI();K=_.T(K,_.syL);if(K!=null&&K.supportedTokens){K=_.D(K.supportedTokens);for(var X=K.next();!X.done;X=K.next())X=X.value,X.accountSigninToken&&_.Rj(X.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.z.handleUpdatePermissionRoleCommand=function(K){if(K=_.T(K,_.Pzt)){var X;this.hasDelegation=!((X=_.T(K.renderer,_.FNu))==null||!X.status)}};
_.z.registerViewTransitionTasks=function(){var K=this,X=_.i9().resolve(_.Nu(_.YP));if(X){var F,P=(F=this.guide)==null?void 0:F.querySelector("#scrim"),H,f=(H=this.guide)==null?void 0:H.querySelector("#contentContainer");P&&f&&(F={beforeTransition:function(){var u;(u=K.guide)!=null&&u.persistent||(P.style.viewTransitionName="app-drawer-scrim",f.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var u;(u=K.guide)!=null&&u.persistent||(P.style.viewTransitionName="",f.style.viewTransitionName="")}},E0(X,"slide",F),E0(X,"zoom",F))}};
_.Oi.Object.defineProperties(O3.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.S("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.Oi.Object.defineProperties(O3,{template:{configurable:!0,enumerable:!0,get:function(){if(mk8===void 0){var K=document.createElement("template");_.w(K,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\n');
K.content.insertBefore(_.I().content.cloneNode(!0),K.content.firstChild);mk8=K}K=mk8;return K}}});
O3.prototype.onOpenHotkeyDialog=O3.prototype.onOpenHotkeyDialog;O3.prototype.setFullscreen=O3.prototype.setFullscreen;O3.prototype.onAddElementToApp=O3.prototype.onAddElementToApp;O3.prototype.onDrawerIronSelect=O3.prototype.onDrawerIronSelect;O3.prototype.onGuideOpenButtonHover=O3.prototype.onGuideOpenButtonHover;O3.prototype.onRequestPanelModeChange=O3.prototype.onRequestPanelModeChange;O3.prototype.onPageDataUpdated=O3.prototype.onPageDataUpdated;O3.prototype.onPageChanged=O3.prototype.onPageChanged;
O3.prototype.onSetTheaterModeEnabled=O3.prototype.onSetTheaterModeEnabled;O3.prototype.updateMastheadData=O3.prototype.updateMastheadData;O3.prototype.onYtPageManagerAttached=O3.prototype.onYtPageManagerAttached;O3.prototype.observeGuideVisibility=O3.prototype.observeGuideVisibility;O3.prototype.guideIsVisibleButNotPersistentSelectorChanged=O3.prototype.guideIsVisibleButNotPersistentSelectorChanged;O3.prototype.isInlinePreviewEnabledChanged=O3.prototype.isInlinePreviewEnabledChanged;
O3.prototype.isWatchPageChanged=O3.prototype.isWatchPageChanged;O3.prototype.dispatchFrostedGlassMode=O3.prototype.dispatchFrostedGlassMode;_.O([_.W(_.jn),_.g("design:type",Object)],O3.prototype,"ytdReduxBehavior",void 0);_.O([_.W(_.q1.YtEventForwardingBehavior),_.g("design:type",Object)],O3.prototype,"ytEventForwardingBehavior",void 0);_.O([_.W(_.sT.YtOpenPopupBehavior),_.g("design:type",Object)],O3.prototype,"ytOpenPopupBehavior",void 0);
_.O([_.W(_.NT.YtActionHandlerBehavior),_.g("design:type",Object)],O3.prototype,"ytActionHandlerBehavior",void 0);_.O([_.W({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.GT.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.S("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var K;((K=this.actionRouterNode.hostElement)!=null?K:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var K;((K=this.actionRouterNode.hostElement)!=null?K:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(K){this.actionRouter_.handleAction(K.detail)}}),
_.g("design:type",Object)],O3.prototype,"ytActionRouterBehavior",void 0);_.O([_.W(ag5.YtdAppBehavior),_.g("design:type",Object)],O3.prototype,"ytdAppBehavior",void 0);_.O([_.W(_.DP.YtEndpointBehavior),_.g("design:type",Object)],O3.prototype,"ytEndpointBehavior",void 0);_.O([_.W(t5o.YtEndpointHandlerWithYpcBehavior),_.g("design:type",Object)],O3.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.O([_.W(Gg8.YtLogYpcFlowCommandsBehavior),_.g("design:type",Object)],O3.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.O([_.W(_.k.YtRendererBehavior),_.g("design:type",Object)],O3.prototype,"ytRendererBehavior",void 0);_.O([_.W(_.dk.YtComponentBehavior),_.g("design:type",Object)],O3.prototype,"ytComponentBehavior",void 0);_.O([_.h({selector:_.Qfd}),_.g("design:type",Object)],O3.prototype,"tabGesturesIsActive",void 0);_.O([_.h(),_.g("design:type",Boolean)],O3.prototype,"renderGuide",void 0);
_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],O3.prototype,"guidePersistentAndVisible",void 0);_.O([_.h({selector:_.Yvt}),_.g("design:type",Boolean)],O3.prototype,"guideIsVisibleButNotPersistent",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],O3.prototype,"standalone",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],O3.prototype,"miniGuideVisible",void 0);
_.O([_.h({selector:_.QZP}),_.g("design:type",Number)],O3.prototype,"miniplayerPlaybackState",void 0);_.O([_.h({selector:_.LI,reflectToAttribute:!0}),_.g("design:type",Boolean)],O3.prototype,"miniplayerIsActive",void 0);_.O([_.h({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.g("design:type",Boolean)],O3.prototype,"isInlinePreviewEnabled",void 0);_.O([_.h(),_.g("design:type",Boolean)],O3.prototype,"isInlinePreviewDisabled",void 0);
_.O([_.h({reflectToAttribute:!0,value:function(){return _.RU("START_IN_FULL_WINDOW_MODE")}}),
_.g("design:type",Boolean)],O3.prototype,"mastheadHidden",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],O3.prototype,"playerFullscreen",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],O3.prototype,"deprecateFullerscreenUi",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],O3.prototype,"fullscreen",void 0);_.O([_.h({value:!1,reflectToAttribute:!0}),_.g("design:type",Boolean)],O3.prototype,"hideHeaderShadow",void 0);
_.O([_.h({value:{GUIDE_ALT_LABEL:_.uY("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.g("design:type",Object)],O3.prototype,"menuStrings",void 0);_.O([_.h({computed:"computeTopbarData(data)"}),_.g("design:type",Object)],O3.prototype,"topbarData",void 0);_.O([_.h({selector:_.TS}),_.g("design:type",Boolean)],O3.prototype,"isWatchPage",void 0);_.O([_.h({selector:_.JpP,reflectToAttribute:!0}),_.g("design:type",Boolean)],O3.prototype,"isShortsPage",void 0);
_.O([_.h({selector:function(K){return K.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.g("design:type",Boolean)],O3.prototype,"isMiniAppPage",void 0);_.O([_.h({selector:function(K){return K.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.g("design:type",Boolean)],O3.prototype,"isBrowsePage",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Boolean)],O3.prototype,"scrolling",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],O3.prototype,"hasDelegation",void 0);_.O([_.h({reflectToAttribute:!0,value:!1}),_.g("design:type",Boolean)],O3.prototype,"guideScrolledByTouch",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],O3.prototype,"darkerDarkTheme",void 0);
_.O([_.h(),_.g("design:type",Object)],O3.prototype,"isFrostedGlassInitialized",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],O3.prototype,"frostedGlassExp",void 0);_.O([_.h({selector:function(K){return K.ui.chipBarIsSticky}}),
_.g("design:type",Boolean)],O3.prototype,"chipBarIsSticky",void 0);_.O([_.h({computed:"computeIsHomePage(isBrowsePage, data)"}),_.g("design:type",Boolean)],O3.prototype,"isHomePage",void 0);_.O([_.h({reflectToAttribute:!0}),_.g("design:type",Object)],O3.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.O([_.h(),_.g("design:type",Object)],O3.prototype,"ephemeralActionsEnabled",void 0);_.O([_.gh("guide"),_.g("design:type",Object)],O3.prototype,"guide",void 0);
_.O([_.gh("guide-service"),_.g("design:type",juv)],O3.prototype,"guideService",void 0);_.O([_.gh("guide-inner-content"),_.g("design:type",HTMLDivElement)],O3.prototype,"guideInnerContent",void 0);_.O([_.h({selector:_.n2l}),_.g("design:type",String)],O3.prototype,"frostedGlassMode",void 0);
_.O([_.so("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],O3.prototype,"dispatchFrostedGlassMode",null);_.O([_.h({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.g("design:type",Object)],O3.prototype,"isFrostedGlassDisabled",void 0);
_.O([_.so("isWatchPage"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],O3.prototype,"isWatchPageChanged",null);_.O([_.U("isHomePage","chipBarIsSticky"),_.g("design:type",Boolean),_.g("design:paramtypes",[])],O3.prototype,"applyFrostedGlassToChipBar",null);_.O([_.h(),_.g("design:type",Object)],O3.prototype,"isChannelOrPlaylistPage",void 0);
_.O([_.JA("isInlinePreviewEnabled"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],O3.prototype,"isInlinePreviewEnabledChanged",null);_.O([_.so("guideIsVisibleButNotPersistent"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],O3.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.O([_.so("guidePersistentAndVisible","miniGuideVisible"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],O3.prototype,"observeGuideVisibility",null);_.O([_.Hc("attached"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],O3.prototype,"onYtPageManagerAttached",null);_.O([_.so("data"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype",Promise)],O3.prototype,"updateMastheadData",null);
_.O([_.Hc("yt-set-theater-mode-enabled"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent,Object]),_.g("design:returntype")],O3.prototype,"onSetTheaterModeEnabled",null);_.O([_.Hc("yt-page-type-changed"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],O3.prototype,"onPageChanged",null);_.O([_.Hc("yt-page-data-updated"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],O3.prototype,"onPageDataUpdated",null);
_.O([_.Hc("yt-request-panel-mode-change"),_.g("design:type",Function),_.g("design:paramtypes",[Event,Object]),_.g("design:returntype")],O3.prototype,"onRequestPanelModeChange",null);_.O([_.Hc("yt-guide-hover"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],O3.prototype,"onGuideOpenButtonHover",null);_.O([_.Hc("app-drawer-transitioned"),_.g("design:type",Function),_.g("design:paramtypes",[Event]),_.g("design:returntype")],O3.prototype,"onDrawerIronSelect",null);
_.O([_.Hc("yt-add-element-to-app"),_.g("design:type",Function),_.g("design:paramtypes",[CustomEvent]),_.g("design:returntype")],O3.prototype,"onAddElementToApp",null);_.O([_.Hc("yt-set-fullerscreen-styles"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],O3.prototype,"setFullscreen",null);_.O([_.Hc("yt-open-hotkey-dialog"),_.g("design:type",Function),_.g("design:paramtypes",[]),_.g("design:returntype")],O3.prototype,"onOpenHotkeyDialog",null);
O3=_.O([_.v({is:"ytd-app"})],O3);_.wz().processSignal("eor");
_.d0();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
